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

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

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

 Copyright 2015-present Dan Abramov
 SPDX-License-Identifier: MIT
*/
/*

 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 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
 SPDX-License-Identifier: MIT
*/
/*

 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 HhM,UrM,MNr,WVK,wFF,XFh,UM,bhc,Zhh,wK,i7,fch,Jt0,ph,Lh,KV0,ocN,FVN,R_,mV,nc0,NK7,a_,LVE,gch,z4M,tN0,BK_,rtN,lcK,$r4,e4M,qM4,vcV,TKM,Ict,AH,XB,bn,Hk_,fk,JH,UpF,pk,gm,MwE,Wwc,yh,Br,dp0,JHK,KwM,ln,Pnc,syK,nKr,hH,Nmh,Sz4,LwF,prN,RgN,jw,oKr,Iy,EK_,a3M,cH0,n8,yHK,Bm0,s$,zgc,JB,Cnr,tw4,Yzr,qzE,hgV,k2M,vK8,TmK,E$,QyN,I3K,Vw4,H8K,UXF,M7h,W5c,i8N,b88,uhE,fkM,K5N,nf7,S$E,Nhc,Bj,pjF,akK,Dk,xX_,Cmr,BhE,cBr,rBK,yB0,lm,AB8,Yf,qX,hB,e5_,vj,lkc,DXc,$Xc,Uj,Gyh,Y$_,h50,vfh,kyN,Tht,jYc,Ikc,j7,V7V,USE,M37,wyE,dM,
iN7,ONN,Ze,fe8,o5M,dSh,FOh,s5N,n50,mSr,pyh,aeE,zSc,Cv7,cR8,yRc,DSr,$S_,YjF,hSc,TM_,IeM,Q5K,HUt,A$r,WfV,bUN,J$N,yY,ost,PLK,sDt,Y5,qS,k5,HI,A$,Mo,mo_,ZO,aOc,CLr,c$h,y$0,BYr,sr,r$7,No,SG,RD,Er,Doc,$oh,lO4,Gjc,YrK,hKK,kj4,vs0,TYt,IOM,xs,aD,QDV,VGE,HFF,AzV,U2r,Ms_,WS_,wLN,$s,lL,Gj,Ys,h$,iFN,ks,d2E,Jz_,Tj,KSc,oZE,FSc,Qb,PFE,skM,nZE,Vb,pL0,U6,EZ0,m2r,Az,aU4,gZK,x2M,zN8,CFF,ts4,wN,cz7,yz8,iF,BN8,rzM,bF,dN,O6,uF,eNh,$2t,D2F,ZU,GZ7,Y6c,q67,Jz,ok,FI,PL,s6,nF,hNh,kZ0,TN_,jkE,Qk8,Hpt,Vs_,UuE,AD_,MlE,WP_,w8_,pF,
X8c,ipK,du7,Opr,uSh,Zph,fDM,JDN,KPM,mS,gN,olM,xZ,zZ,FPF,nlc,NGM,SAc,LPF,RF4,Elt,xur,zFt,CVF,tlc,cDM,yDh,BG4,$uE,yT,lD7,Gg4,YAc,hF0,vlK,GZ,jlh,IDE,QlM,Ugc,WKM,wJ7,XJt,iWV,bWF,OWh,S5c,pJ8,LKN,mgE,gR8,wG,aTc,C97,y8M,BOK,r8h,e8M,Dg_,$g_,lT0,Grc,q5c,h84,tvt,krF,vRM,TOM,jct,ITh,Qc8,Vvh,Hd7,UfF,weN,MMK,bd0,Xe0,idh,u$K,ZdK,fjE,dfc,K4t,Odc,F48,Nu,PBV,Sl,Lp,sn_,NPc,Sm4,RkF,ya0,mfV,Ep4,aj4,zkN,gpM,ljE,ekh,Gi4,Ym_,qm0,hkc,kiM,TPN,vp0,jnK,Ijt,QnE,VM7,UU8,My7,WTE,w5V,iAM,X5E,shF,xl,nVK,SWE,p5M,LT8,RYM,EV8,gVE,
aMN,xU0,rG,el,zYt,lV,rrF,Yl,DUt,qu,YW_,hYF,Aj4,jl,wK0,XKc,OOh,bO_,dK8,Mg,uUr,ZOc,Jjc,K6E,oD8,F6E,PDr,sdt,nD0,S4_,dO,pKK,O5,J8,mK4,PJ,CDK,zbK,yj0,Ng,Sv,rj0,ebK,DK0,hb0,q4K,E5,kUt,gO,vDc,Tic,jd7,QdV,H_N,VCc,UsV,DT,i_8,Gr,KyK,Z__,oBK,h8,nB_,kR,vJ,NBE,Sl4,Rrt,EB_,Tr,gBK,msF,BBh,rk0,erc,$s_,qlE,kq4,vBc,TB7,jQ8,QQt,Vx8,UaE,A9V,MD0,VX,w1V,Mf,i5E,b5h,dah,ux_,X1r,WUF,O5h,Um,fz_,Bu0,KU_,DaK,$aK,lz8,YDF,qDV,hTV,k9t,Zj,vX0,j1t,Tuc,Iz8,VD4,Kd,UCh,MXV,Pe,nd,sm,bKF,iKN,A00,f57,s$c,SoV,NVc,RaV,Ld,mCr,gAr,zat,CuM,
gP,c08,xp,zi,r0c,$Ct,GSM,Yo_,kS0,vA0,TVE,j$7,Cd,Q$c,VXc,Hvc,UjM,MUr,Wz8,wxF,Xxh,Be,Dj,djK,Ov0,ug4,JT7,Kz_,o87,pxr,Lzr,n8c,E88,mjh,g8N,Ti,jM,In,Qq,CUc,tUE,H5,cTc,yTc,BJh,rT0,Djc,$jF,l20,GP4,eWM,Yet,W5,hW8,I2F,wD,jgE,Qgr,qer,VUV,dD,UZ_,APc,MbN,WJV,XgE,wg4,i1t,O1t,b18,uKt,FJM,s2M,Ns8,LJ4,pg_,SHr,RRK,E2N,g20,xZ0,aHN,zRc,sW,tbF,cP8,yP0,Bsh,rPE,DZ_,eRF,$Z4,lHE,kRV,qHc,hR0,Tsh,j2F,IHt,VbE,Q2t,HE0,UYE,M98,wOF,bEc,OEK,dY4,DM,u_h,Wb4,Pa7,nUM,NH_,Sn0,qU,LbM,EUV,a$r,CaN,zMc,BHE,rw_,eMK,DYK,l$N,kQM,GQ8,qnt,hMr,
vUc,THc,I$M,juV,V9t,Qu0,Aj,HqE,AcF,Mp_,iqh,O4,uD,Z0,bqN,dhF,fO,ZqV,PK,s4,nO,oO7,NK,sEF,LO,nO4,N18,S_F,pC8,m6,LHK,R1F,EOE,gO_,xh8,tp8,ycc,ri,B1c,rcc,e1_,Dh7,$hE,lYE,GvN,Y_K,$D,kv4,vOc,T1F,jEh,IYt,QEM,Vp_,Hf7,Uvc,AGE,Mk4,Wq7,w4K,TU,Fq4,PNN,jC,Id,QG,src,na0,Nnt,SU_,p4t,Lq_,R2M,xvN,z24,CN7,tkc,cG4,Ak,WW,wB,Xl,dB,Ol,uS,Bnc,f_,e27,Jk,Dvt,$vc,K_,lt8,Glh,YU0,VkM,UDc,XXE,Oer,dD8,HeN,u88,Jyr,mDE,n$4,C07,Sch,xDF,tqh,Ns,yy7,p_,ry_,eD8,$Dc,ld8,GuF,qcN,El,ku7,v$E,TX4,jSF,Idc,QS7,Vq4,hDc,Ap0,Mrr,W7N,gB,OG7,u1K,
de7,fNc,JpN,o38,F7r,K7r,L7t,g3N,xeK,ex,rph,yp8,BAN,Gkr,qBt,hyt,kkM,v3t,TAc,jv4,vW,woK,iyr,MI7,AsN,Xo8,Qvt,dF0,nY_,ZyV,fW4,Js0,xF7,CZE,aWK,rsM,gYF,INV,BTh,uAh,sL8,z$V,byF,HyN,VrV,UFE,WYE,mFK,f5,QLt,Hl_,UG_,AFF,M5r,Zlt,FLN,PA4,R1,nCM,pqh,mGF,EC7,afh,xG0,CA8,t5r,cFF,yFF,rFh,B78,t9,qy0,Yyr,GnM,T78,hOh,jRF,vCV,IfN,QR4,AN_,HY7,UTM,WuF,XlM,iYF,OY0,ukE,ZY_,f9t,Ku0,ojM,Fu4,$X,siK,lM,njc,plr,NzK,Luc,gjc,a9K,CXE,cN8,v1,T9,el0,DTc,jD,I1,$T8,QZ,VZ,l9r,Ha,GsN,MC,YaN,qaN,wV,hlt,ksr,vjM,TzK,jiN,Qic,I9c,HxK,Md0,AI4,
WcK,wu7,VVE,Xu0,dP7,bxV,UPF,Ox8,uY7,Oo,Zx0,JI8,fBN,KcE,o4V,P$_,Fc8,sHE,Z5,Njh,SP4,n4h,Lch,RoV,E48,xPc,td0,eoc,Go4,fK,ho8,koK,J0,v47,Pa,so,HTF,o$,SX,UnE,Ag_,W9F,wnc,iT7,dnV,OT8,uVK,ZTN,K9K,nFV,PoE,JgM,N4E,ShN,Eo,sT8,pn7,zS,L97,RPt,EF8,mnE,zPN,gFc,xn0,ygM,B4N,lXK,$n8,qhV,IXc,QTE,HtN,AJt,M$F,wQK,XQ7,it7,dbV,Otr,uw4,JJc,PdF,sxK,K3N,Np0,pQ0,SRh,nhN,L37,Eh4,mb4,ghF,anr,xb0,Cd0,z0r,cJF,Db0,Bph,yJV,lnh,YA,qC,h0,Gec,YRM,qRK,h0F,Hx,jxV,Ue,Wx,HRK,An0,Mtc,wSN,bRM,Xg,iU,d1c,bU,ZR7,fm7,JnV,Oe,swr,pSV,RXK,Et0,m1N,
amK,x1N,zXE,cnc,Z2,ynK,eXF,fv,D1h,Y0N,JT,kzt,Kv,Px,se,vt_,jw0,Ta7,Qwr,Vtr,HBM,Uz7,Imr,XUV,iBV,dzt,ubt,Ke_,JLM,onK,Pw7,sCE,nnc,N3_,Sp0,pU0,LeN,mz8,RjN,Rg,ap7,Ee,xzK,gJ,ag,zjc,CwN,t2E,cLr,yLc,x8,B37,rLM,ejM,Dzc,lpc,GG7,YpM,qp_,hjh,vn4,kGE,Cv,jCE,QCr,V27,H3_,UAE,WMF,XRV,Bx,b34,O34,uFc,Z3t,f77,JMc,KMM,oGM,FMM,wR4,i3F,P6V,sat,pRh,LMM,ReE,EG_,l7K,q9c,he_,kIh,Y9V,Vft,AO4,HH8,Mc_,X0h,bHt,OHM,JOM,fAh,Pe4,k8,sUV,nih,vx,N$M,TP,Sgc,p08,LiN,EiF,RB8,my4,gih,aAM,xy_,rOE,Dyt,lAh,$yV,cOM,CeN,Yg0,hBV,IAE,QUF,U$N,iZ7,
d$V,Vk,OZ0,ZZK,fl0,KXF,sm7,Sxr,RZE,Ekh,m$V,gk4,tQt,al7,rf7,eZh,D$K,llK,MZ,GVr,qxE,hZK,kVE,vkM,TSM,jmE,Il0,VQF,H$E,iH,UJr,AAV,WoE,ds,MRh,Xc4,O$r,ZH,uj7,Z$t,fJN,ogc,Fo7,JAM,st7,pcK,LoV,RUt,FK,Eg8,xJ8,zUE,NZ,cAN,CYt,tR8,rA8,eUN,DJM,$Jt,a2,q78,C1,hUr,kJr,vgM,TkM,VR0,Aqc,U5F,H9_,MZc,wdc,Xdc,uX8,i97,Z9V,JqF,f4c,n6E,pdM,Rf_,m50,yqc,X_,rqF,l40,YCM,WO,Jw,jzF,HJF,VZt,Ah0,M4V,wbV,Wgc,XbE,iJ_,KE,ier,I4V,UEM,Qzc,Z$,OJc,u48,ZJr,f1V,Ru,JhK,Kg7,oyE,Fg8,PKc,au,sfc,SYM,LgM,RQN,CKN,cht,yht,Bvh,eQ0,DE7,e9,l1c,Gm0,YYK,
qYV,hQ7,km0,Tv7,I1t,V4r,Ha7,XNt,W1t,iaK,Oah,unN,vO,ZaK,f_7,Jb7,F1M,sJE,P8M,N6M,pNh,Qy,Rx0,Ev_,L18,mI8,gvM,xIF,C88,zxV,teF,a_0,cbF,ybM,B6E,rbr,ex7,DIc,$I4,l_F,GO8,hxM,q8_,kOr,T6c,vvt,Vy,jJF,VeM,MA4,I_M,XA4,imK,bmE,dMh,ZmE,sNF,n07,SFc,pAh,ZY,mMt,wic,bnc,fq,Znr,dxr,Onh,ui0,fuc,Pfc,Fz,spN,nb7,SN7,piF,L$c,RtE,mx0,gbN,reV,toF,yet,DxV,etc,$xE,luc,YNF,htt,vbt,jpt,Iu_,VoV,ddV,ZjE,J6K,KIc,oNr,FIc,Ph0,nNc,NUN,LI_,RLh,EN7,mdM,gNK,a8c,xdE,zLF,c6F,r6M,aE,xO,zv,eLE,DdV,cC,l8h,I80,M8M,UkK,sGt,nxr,No_,YdM,jj7,ktN,
pB7,Lhh,Rh4,Ext,VL4,mkE,aC0,zht,c_F,y_K,qh,qqF,kHK,Tot,jGF,QGF,ICE,ULc,Mir,OXc,bXh,whN,dLt,XhV,uD7,Kmc,dn,OU,phh,noK,Rqc,Eor,goE,aGc,Zt,xLh,tiV,cK4,yK_,BeV,Ys4,GD8,Nv,jZ0,EU,QZE,Vi8,HCc,UB8,AS7,MY4,W8K,wE4,XE8,iCK,bCr,gn,dBE,OC4,umh,ZCM,fEV,JSK,K8M,ouc,xa,F8N,PCc,sXM,nuc,NWE,SXM,pE_,L8c,RI4,Euh,mB8,gu_,aEM,Cf,zIr,tYt,ySE,eIh,lE8,GMh,YX4,hI7,vu4,TWc,jX_,$a,UNE,VY7,A77,MBM,Wlh,iu8,bu0,dNE,uOc,Vf,fot,Ir,Klt,oT0,HX,Fl7,Prt,sVF,nTM,Ay,Llc,ET0,zAc,xNh,tBK,c7K,Oc,y7t,BLF,eAF,$N0,lo0,YGc,qGN,DNc,hAr,Io8,
UH4,AQt,u0,MPM,W__,dH0,w3r,iPV,bPV,K_c,u5h,oJN,PPc,nJt,N_E,SEM,p34,L_r,R_4,mHc,gJc,agc,xH4,z_h,tPN,yQc,e_M,GXN,h_7,vJ_,Igc,PX,Q6V,VPN,HoV,UV_,AEr,WGt,wVF,XVc,io4,boE,dVV,Oo_,uoF,ZoE,fxE,JE8,oSE,KGh,s9_,Nb8,ND,Sbc,RvF,LGc,gSM,ax0,xVt,t6_,BbE,yEc,CWt,DVr,evh,qb_,$V4,gX,GTV,Q98,vSh,Tbr,j9_,Ixc,V6K,U6_,Hw8,aS,x$,bw_,Mzt,iwV,X9N,WnM,w90,uyr,fw0,Knh,JZK,odF,nd4,s4h,SZM,Rm0,m6M,Lnr,gdh,x6M,awV,CTM,yZE,yD,Bcc,rZE,emV,Gxh,Tct,rX,Iw7,VzV,Y$,AuV,HIV,U47,Gu,Xsr,MOr,WvK,iIh,d4E,bIN,ZIF,fbM,Kv7,o90,Fv7,PbN,sPc,
NEK,S28,UB,Lv4,m4F,g9t,wA,abV,zsc,$4r,OB,yut,D4t,BE8,rur,q2_,Y2V,TEc,hsM,jP_,Ibh,ZN,QPV,VOK,Hr0,KG,UQr,fG,WtK,w2c,X2K,irN,br4,Or7,JiF,Kt7,PcK,sO4,NlE,LtM,STK,p20,RCN,mQV,gz4,avF,xQM,zCM,tE7,yih,Blc,eCN,ri8,DQ4,$Q7,GYc,YTN,VEc,IvE,A57,M0c,dO0,Ogc,u9N,Zg4,fV4,J58,FCr,Ppc,s8K,nEM,SVc,pw_,LCM,RJ_,EEF,mOh,aV4,xOt,ym,c5F,t0V,Cp4,zJ8,Byt,DOr,r57,lVM,GAV,qVF,hJh,kAK,vEE,TyM,HsE,j8c,IVM,Q87,Uqt,Av0,MJr,V0N,DN,XDr,bsh,isF,lj,dqh,uJK,ZsK,fKr,Ost,JvF,KDc,o7E,FD8,POh,n7V,N5_,Sf0,pD0,E7_,R67,z6M,LDF,Y3,CO0,mqc,
xqt,cvE,yvV,B5V,rvE,e6r,$qN,lKK,G3_,qfV,h67,v7N,jsF,U7V,VJr,H6h,QsV,IKc,ACN,Ho,MHF,U3,Wp7,wT7,O67,Z60,fsM,JCE,Kpt,oeh,FpE,iZ,bZ,SK_,sbK,PG7,neV,cCV,zzt,NCh,x7h,$7r,lsh,G_K,YK0,qKM,ver,jbc,QbM,HLM,Uct,AlF,XzE,wzK,iL7,dch,gT,ZLK,fQE,Jl_,KAr,o10,FAM,P2h,xY,zB,n1F,Nw0,pzE,E10,C2c,rlc,Bw_,eVN,$c7,lQE,Ghr,YL0,qLM,hV_,rT,khV,H4h,U8F,IQc,j3K,VKK,Q3c,XtN,i4N,b4h,d8t,O4_,uRK,JY8,fZ8,Z47,ptc,N8F,L24,REt,ELE,aZ7,zE8,m8h,gLF,D8c,lZt,YuE,hEV,vLV,je7,HV7,URF,AWE,wZ_,WQc,Mu_,XZ7,iVc,bVr,dR0,OV7,u6V,ZVt,fyN,JWr,KQc,
FQ8,PzV,s0K,nPN,N0V,Skh,LQc,Rd8,EP_,mRK,gP7,ayF,tuc,cW0,B00,edV,rWV,DRF,IL,$Rt,lyc,GNE,YkV,kN0,hdc,vP0,T0N,j07,IyM,Q0V,Vu8,Hzt,Um7,AxN,MnE,WxE,wpc,XpE,izV,bzh,Ozt,dmE,uMF,Zzr,fi7,Jx8,KxN,oWc,Fxc,PqE,iA,nWc,NdV,SwE,ppV,Lxr,EWF,mmN,gWh,ai4,xmc,z9E,CqE,cx4,yxE,rxc,uA,$mc,h9c,Ywr,GwN,liF,qwh,Td0,jI0,Ii8,QIV,H0t,Ut4,A47,WsV,MaM,wkh,Xk8,i08,O0t,uv4,Z0M,fFr,J4K,Ks8,Pic,sKt,NG,LsE,RiN,mt7,xt4,aF8,zi_,Ci8,S5,Ll,c4N,mL,g7,eih,y4c,Btr,lF0,G5E,YIc,qIM,Ttt,IFM,QK7,Va7,HS_,Uw8,MF7,WWK,wfc,XfV,iSt,bSV,dwh,zn,OSM,
ur0,tF,ZS8,fP4,JXV,KWN,oHF,FWF,y8,Bq,P57,s7K,r7,nH7,NRc,St4,pf_,Ruh,EHE,gHh,tF7,C5K,zu7,cX_,yX4,GEc,euc,DwN,$w0,rX_,lP_,YtK,qt8,kEt,vH8,Df,IPc,Q7c,VFV,HbV,U3h,MS4,wGc,bbF,ZbE,Obc,$C,d30,oME,Pg7,lA,sqN,nMM,N2V,SSE,pGc,RGN,EM4,gM7,ahc,zGF,Cgh,B20,yd8,eG7,D3c,$37,lhK,YS8,qSM,hGM,kL_,vMV,T2K,jqF,IhV,Qq4,HiM,UWE,XPt,ii7,biN,dW4,Oi7,uN8,Q8,JU4,om4,Fj0,P_t,sAc,nmE,S14,pP0,LjN,Rwr,mW0,gmc,aLV,Ua,xWr,zw4,cU8,yU8,AN,MT,ewh,BQM,DW8,GfN,$Wc,Y1N,hwM,iX,kfM,vmt,TQ4,QAN,Hch,bX,A2K,M_M,WaM,w7K,X7V,icK,bcV,d_4,Oc8,
J2M,Kac,sB7,o_E,PtV,n_0,NrE,SJF,R7N,E_N,m_t,aqc,x__,BrE,y28,lqh,qJc,sa,h7c,kdN,NDV,nY,v_c,TrM,Iq0,H70,U0F,b7r,d08,O7c,utc,Z7N,fr_,ow0,F04,sF4,Nq_,Pl8,nwK,pmE,SOc,Rct,gwN,Ew8,ar7,x0_,zc4,Clc,tTM,coF,BqK,yoh,$08,YO7,lrc,qOr,hc8,kWc,ai,vw4,TqF,zs,Ir8,jF4,QFM,H2K,VT_,WNN,wMV,i2E,yI,diN,O2h,uqh,Z2M,KNh,FN7,nr_,sW8,Nft,SiE,pM7,mic,r3F,zpt,Di7,$i7,GKh,Yi0,hpV,kK7,vrV,Tf_,jWV,II8,HDE,Ul_,Amh,MjF,XHM,bD_,dlF,iDV,uc_,OD7,oQc,Fr4,P3c,sMc,nQM,NZt,SvF,Lrc,mlr,gQM,aRV,C3K,zHt,ymr,rm4,eHE,DlN,$l0,lR_,Yvh,Gc_,hHV,
IRc,HMh,Vjh,U9V,AV8,M18,w_4,AI,iM7,wj,d9h,uH4,ZM0,FZc,so8,p_K,R38,EIM,gIc,aS4,x90,CJt,cVK,yVh,rVM,$90,D9M,e3K,OP,G7N,lSt,YQ0,qQ0,h30,k7K,vI8,T9M,jot,Qo4,V1N,Hhz,Urz,Atg,MNp,WVm,wFr,XFk,ihy,drg,Ohm,uEz,Zhk,fck,KVh,ocw,FVw,nch,FY,mrh,NKn,acy,z4z,C7g,tNh,ctr,ytB,sP,YMn,l9,nx,Sd,qMg,h4h,TKz,IcH,j_w,Lx,Q_3,VNr,Hky,Upr;HhM=function(){var H,U;return typeof CSS!=="undefined"&&((U=(H=CSS).supports)==null?void 0:U.call(H,"selector(:has(*))"))};
UrM=function(H){return H.visibility!=="hidden"&&H.display!=="none"};
MNr=function(H){if(HhM()||H.tagName!=="DETAILS"?!H.matches(At4):H.querySelector("summary")!==null)return-1;H=H.getAttribute("tabindex")||"0";return Number(H)};
WVK=function(H){return H.some(function(U){return MNr(U)>0})};
wFF=function(H){if(H.textContent||H.ariaLabel)return!0;if(H instanceof HTMLInputElement){if(!H.labels)return!1;H=_.b(H.labels);for(var U=H.next();!U.done;U=H.next())if(U.value.textContent)return!0}return!1};
XFh=function(H){return H.sort(function(U,A){return MNr(A)-MNr(U)})};
_.ih_=function(H){H=Array.from(H.querySelectorAll(At4)).filter(function(U){return(UrM(U.style)?UrM(window.getComputedStyle(U)):!1)&&wFF(U)});
return WVK(H)?XFh(H):H};
_.HF=function(H,U){if(Error.captureStackTrace)Error.captureStackTrace(this,_.HF);else{var A=Error().stack;A&&(this.stack=A)}H&&(this.message=String(H));U!==void 0&&(this.cause=U)};
UM=function(){throw Error("F");};
bhc=function(H,U){U=String.fromCharCode.apply(null,U);return H==null?U:H+U};
Zhh=function(H){var U=!1;U=U===void 0?!1:U;if(dr4){if(U&&(OhK?!H.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(H)))throw Error("G");H=(uEM||(uEM=new TextEncoder)).encode(H)}else{for(var A=0,M=new Uint8Array(3*H.length),W=0;W<H.length;W++){var w=H.charCodeAt(W);if(w<128)M[A++]=w;else{if(w<2048)M[A++]=w>>6|192;else{if(w>=55296&&w<=57343){if(w<=56319&&W<H.length){var d=H.charCodeAt(++W);if(d>=56320&&d<=57343){w=(w-55296)*1024+d-56320+65536;M[A++]=w>>18|
240;M[A++]=w>>12&63|128;M[A++]=w>>6&63|128;M[A++]=w&63|128;continue}else W--}if(U)throw Error("G");w=65533}M[A++]=w>>12|224;M[A++]=w>>6&63|128}M[A++]=w&63|128}}H=A===M.length?M:M.subarray(0,A)}return H};
wK=function(H){_.Mr.setTimeout(function(){throw H;},0)};
_.XE=function(H,U){return H.lastIndexOf(U,0)==0};
i7=function(H,U){var A=H.length-U.length;return A>=0&&H.indexOf(U,A)==A};
_.b7=function(H){return/^[\s\xa0]*$/.test(H)};
_.OM=function(H,U){return H.indexOf(U)!=-1};
_.Zc=function(H,U){return _.OM(H.toLowerCase(),U.toLowerCase())};
_.Jt=function(H,U){var A=0;H=fh(String(H)).split(".");U=fh(String(U)).split(".");for(var M=Math.max(H.length,U.length),W=0;A==0&&W<M;W++){var w=H[W]||"",d=U[W]||"";do{w=/(\d*)(\D*)(.*)/.exec(w)||["","","",""];d=/(\d*)(\D*)(.*)/.exec(d)||["","","",""];if(w[0].length==0&&d[0].length==0)break;A=fch(w[1].length==0?0:parseInt(w[1],10),d[1].length==0?0:parseInt(d[1],10))||fch(w[2].length==0,d[2].length==0)||fch(w[2],d[2]);w=w[3];d=d[3]}while(A==0)}return A};
fch=function(H,U){return H<U?-1:H>U?1:0};
_.FE=function(){var H=_.Mr.navigator;return H&&(H=H.userAgent)?H:""};
Jt0=function(H){if(!nh||!Nr)return!1;for(var U=0;U<Nr.brands.length;U++){var A=Nr.brands[U].brand;if(A&&_.OM(A,H))return!0}return!1};
ph=function(H){return _.OM(_.FE(),H)};
Lh=function(){return nh?!!Nr&&Nr.brands.length>0:!1};
KV0=function(){return Lh()?!1:ph("Opera")};
ocN=function(){return Lh()?!1:ph("Trident")||ph("MSIE")};
FVN=function(){return Lh()?Jt0("Microsoft Edge"):ph("Edg/")};
R_=function(){return ph("Firefox")||ph("FxiOS")};
_.P7M=function(){return ph("Safari")&&!(mV()||(Lh()?0:ph("Coast"))||KV0()||(Lh()?0:ph("Edge"))||FVN()||(Lh()?Jt0("Opera"):ph("OPR"))||R_()||ph("Silk")||ph("Android"))};
mV=function(){return Lh()?Jt0("Chromium"):(ph("Chrome")||ph("CriOS"))&&!(Lh()?0:ph("Edge"))||ph("Silk")};
_.s_c=function(){return ph("Android")&&!(mV()||R_()||KV0()||ph("Silk"))};
nc0=function(H){var U={};H.forEach(function(A){U[A[0]]=A[1]});
return function(A){return U[A.find(function(M){return M in U})]||""}};
NK7=function(H){var U=_.FE();if(H==="Internet Explorer"){if(ocN())if((H=/rv: *([\d\.]*)/.exec(U))&&H[1])U=H[1];else{H="";var A=/MSIE +([\d\.]+)/.exec(U);if(A&&A[1])if(U=/Trident\/(\d.\d)/.exec(U),A[1]=="7.0")if(U&&U[1])switch(U[1]){case "4.0":H="8.0";break;case "5.0":H="9.0";break;case "6.0":H="10.0";break;case "7.0":H="11.0"}else H="7.0";else H=A[1];U=H}else U="";return U}var M=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");A=[];for(var W;W=M.exec(U);)A.push([W[1],W[2],W[3]||void 0]);
U=nc0(A);switch(H){case "Opera":if(KV0())return U(["Version","Opera"]);if(Lh()?Jt0("Opera"):ph("OPR"))return U(["OPR"]);break;case "Microsoft Edge":if(Lh()?0:ph("Edge"))return U(["Edge"]);if(FVN())return U(["Edg"]);break;case "Chromium":if(mV())return U(["Chrome","CriOS","HeadlessChrome"])}return H==="Firefox"&&R_()||H==="Safari"&&_.P7M()||H==="Android Browser"&&_.s_c()||H==="Silk"&&ph("Silk")?(U=A[2])&&U[1]||"":""};
_.SMV=function(H){if(Lh()&&H!=="Silk"){var U=Nr.brands.find(function(A){return A.brand===H});
if(!U||!U.version)return NaN;U=U.version.split(".")}else{U=NK7(H);if(U==="")return NaN;U=U.split(".")}return U.length===0?NaN:Number(U[0])};
a_=function(){return nh?!!Nr&&!!Nr.platform:!1};
_.pFt=function(){return a_()?Nr.platform==="Android":ph("Android")};
LVE=function(){return ph("iPhone")&&!ph("iPod")&&!ph("iPad")};
_.xc=function(){return LVE()||ph("iPad")||ph("iPod")};
_.R4r=function(){return a_()?Nr.platform==="macOS":ph("Macintosh")};
_.Ec4=function(){return a_()?Nr.platform==="Windows":ph("Windows")};
_.mr0=function(){return a_()?Nr.platform==="Chrome OS":ph("CrOS")};
_.z8=function(H){return H[H.length-1]};
gch=function(H){for(var U=_.Ch,A=typeof H==="string"?H.split(""):H,M=H.length-1;M>=0;M--)if(M in A&&U.call(void 0,A[M],M,H))return M;return-1};
_.y0=function(H,U){return _.cF(H,U)>=0};
_.ac_=function(H,U){_.y0(H,U)||H.push(U)};
_.Dc=function(H,U){U=_.cF(H,U);var A;(A=U>=0)&&_.xrh(H,U);return A};
_.xrh=function(H,U){Array.prototype.splice.call(H,U,1)};
_.$c=function(H){var U=H.length;if(U>0){for(var A=Array(U),M=0;M<U;M++)A[M]=H[M];return A}return[]};
_.qr=function(H,U){for(var A=1;A<arguments.length;A++){var M=arguments[A];if(_.l7(M)){var W=H.length||0,w=M.length||0;H.length=W+w;for(var d=0;d<w;d++)H[W+d]=M[d]}else H.push(M)}};
_.C74=function(H,U,A,M){Array.prototype.splice.apply(H,z4M(arguments,1))};
z4M=function(H,U,A){return arguments.length<=2?Array.prototype.slice.call(H,U):Array.prototype.slice.call(H,U,A)};
tN0=function(H,U){U=U||H;for(var A=0,M=0,W={};M<H.length;){var w=H[M++],d=_.ht(w)?"o"+_.vF(w):(typeof w).charAt(0)+w;Object.prototype.hasOwnProperty.call(W,d)||(W[d]=!0,U[A++]=w)}U.length=A};
_.ytE=function(H,U,A){A=A||_.ctF;for(var M=0,W=H.length,w;M<W;){var d=M+(W-M>>>1);var O=A(U,H[d]);O>0?M=d+1:(W=d,w=!O)}return w?M:-M-1};
_.jN=function(H,U,A){if(!_.l7(H)||!_.l7(U)||H.length!=U.length)return!1;var M=H.length;A=A||BK_;for(var W=0;W<M;W++)if(!A(H[W],U[W]))return!1;return!0};
_.ctF=function(H,U){return H>U?1:H<U?-1:0};
BK_=function(H,U){return H===U};
rtN=function(H,U,A){U=Array.prototype.splice.call(H,U,1);Array.prototype.splice.call(H,A,0,U[0])};
_.I_=function(H,U){U===void 0&&(U=0);e4M();U=DrF[U];for(var A=Array(Math.floor(H.length/3)),M=U[64]||"",W=0,w=0;W<H.length-2;W+=3){var d=H[W],O=H[W+1],f=H[W+2],J=U[d>>2];d=U[(d&3)<<4|O>>4];O=U[(O&15)<<2|f>>6];f=U[f&63];A[w++]=J+d+O+f}J=0;f=M;switch(H.length-W){case 2:J=H[W+1],f=U[(J&15)<<2]||M;case 1:H=H[W],A[w]=U[H>>2]+U[(H&3)<<4|J>>4]+f+M}return A.join("")};
lcK=function(H){var U="";$r4(H,function(A){U+=String.fromCharCode(A)});
return U};
_.G8E=function(H){var U=[];$r4(H,function(A){U.push(A)});
return U};
_.Q0=function(H){var U=H.length,A=U*3/4;A%3?A=Math.floor(A):_.OM("=.",H[U-1])&&(A=_.OM("=.",H[U-2])?A-2:A-1);var M=new Uint8Array(A),W=0;$r4(H,function(w){M[W++]=w});
return W!==A?M.subarray(0,W):M};
$r4=function(H,U){function A(f){for(;M<H.length;){var J=H.charAt(M++),F=V0[J];if(F!=null)return F;if(!_.b7(J))throw Error("I`"+J);}return f}
e4M();for(var M=0;;){var W=A(-1),w=A(0),d=A(64),O=A(64);if(O===64&&W===-1)break;U(W<<2|w>>4);d!=64&&(U(w<<4&240|d>>2),O!=64&&U(d<<6&192|O))}};
e4M=function(){if(!V0){V0={};for(var H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),U=["+/=","+/","-_=","-_.","-_"],A=0;A<5;A++){var M=H.concat(U[A].split(""));DrF[A]=M;for(var W=0;W<M.length;W++){var w=M[W];V0[w]===void 0&&(V0[w]=W)}}}};
qM4=function(H){return YM7[H]||""};
vcV=function(H){if(!h40)return _.Q0(H);H=k8r.test(H)?H.replace(k8r,qM4):H;H=atob(H);for(var U=new Uint8Array(H.length),A=0;A<H.length;A++)U[A]=H.charCodeAt(A);return U};
TKM=function(H,U){H.__closure__error__context__984382||(H.__closure__error__context__984382={});H.__closure__error__context__984382.severity=U};
_.Uz=function(H){H=Error(H);TKM(H,"warning");return H};
Ict=function(H,U){if(H!=null){var A;var M=(A=j_N)!=null?A:j_N={};A=M[H]||0;A>=U||(M[H]=A+1,H=Error(),TKM(H,"incident"),wK(H))}};
AH=function(H,U,A){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(A===void 0?0:A)&&Symbol.for&&H?Symbol.for(H):H!=null?Symbol(H):Symbol():U};
XB=function(H,U){Wr||_.wm in H||Q_c(H,VNF);H[_.wm]|=U};
bn=function(H,U){Wr||_.wm in H||Q_c(H,VNF);H[_.wm]=U};
Hk_=function(H){if(4&H)return 512&H?512:1024&H?1024:0};
fk=function(H){XB(H,34);return H};
JH=function(H){XB(H,8192);return H};
UpF=function(H){XB(H,32);return H};
pk=function(){return typeof BigInt==="function"};
gm=function(H,U){return U===void 0?H.copyOnWrite!==Lk&&!!(2&(H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.wm]|0)):!!(2&U)&&H.copyOnWrite!==Lk};
_.tH=function(H,U){if(H!=null)if(typeof H==="string")H=H?new ay(H,z2):_.Ck();else if(H.constructor!==ay)if(AHV&&H!=null&&H instanceof Uint8Array)H=H.length?new ay(new Uint8Array(H),z2):_.Ck();else{if(!U)throw Error();H=void 0}return H};
MwE=function(H,U){if(typeof U!=="number"||U<0||U>=H.length)throw Error();};
Wwc=function(H,U,A){var M=U&128?0:-1,W=H.length,w;if(w=!!W)w=H[W-1],w=w!=null&&typeof w==="object"&&w.constructor===Object;var d=W+(w?-1:0);for(U=U&128?1:0;U<d;U++)A(U-M,H[U]);if(w){H=H[W-1];for(var O in H)!isNaN(O)&&A(+O,H[O])}};
yh=function(H){return H&128?cr:void 0};
_.ikF=function(H){var U=wrV;if(!Xr_(H)){var A,M;U=(M=(A=typeof U==="function"?U():U)==null?void 0:A.concat("\n"))!=null?M:"";throw Error("L`"+U+"`"+String(H));}};
Br=function(H){H.isGuard_doNotManuallySetPrettyPlease=!0;return H};
dp0=function(){var H=bkt;return Br(function(U){for(var A in H)if(U===H[A]&&!/^[0-9]+$/.test(A))return!0;return!1})};
_.rm=function(H){var U=H;if(OkN(U)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(U))throw Error(String(U));}else if(uBt(U)&&!Number.isSafeInteger(U))throw Error(String(U));return Zk8?BigInt(H):H=f3M(H)?H?"1":"0":OkN(H)?H.trim()||"0":String(H)};
JHK=function(H,U){if(H.length>U.length)return!1;if(H.length<U.length||H===U)return!0;for(var A=0;A<H.length;A++){var M=H[A],W=U[A];if(M>W)return!1;if(M<W)return!0}};
KwM=function(H){var U=H>>>0;D3=U;$K=(H-U)/4294967296>>>0};
ln=function(H){if(H<0){KwM(-H);var U=_.b(oKr(D3,$K));H=U.next().value;U=U.next().value;D3=H>>>0;$K=U>>>0}else KwM(H)};
Pnc=function(H){var U=FwN||(FwN=new DataView(new ArrayBuffer(8)));U.setFloat32(0,+H,!0);$K=0;D3=U.getUint32(0,!0)};
syK=function(H,U){var A=U*4294967296+(H>>>0);return Number.isSafeInteger(A)?A:_.YK(H,U)};
nKr=function(H,U){return _.rm(pk()?BigInt.asUintN(64,(BigInt(U>>>0)<<BigInt(32))+BigInt(H>>>0)):_.YK(H,U))};
hH=function(H,U){var A=U&2147483648;A&&(H=~H+1>>>0,U=~U>>>0,H==0&&(U=U+1>>>0));H=syK(H,U);return typeof H==="number"?A?-H:H:A?"-"+H:H};
Nmh=function(H,U){return pk()?_.rm(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(U))<<BigInt(32))+BigInt.asUintN(32,BigInt(H)))):_.rm(_.vr(H,U))};
Sz4=function(H){var U=D3,A=$K,M=A>>31;A=(A<<1|U>>>31)^M;H(U<<1^M,A)};
LwF=function(H,U){return prN(H,U,hH)};
prN=function(H,U,A){var M=-(H&1);H=(H>>>1|U<<31)^M;U=U>>>1^M;return A(H,U)};
_.YK=function(H,U){U>>>=0;H>>>=0;if(U<=2097151)var A=""+(4294967296*U+H);else pk()?A=""+(BigInt(U)<<BigInt(32)|BigInt(H)):(A=(H>>>24|U<<8)&16777215,U=U>>16&65535,H=(H&16777215)+A*6777216+U*6710656,A+=U*8147497,U*=2,H>=1E7&&(A+=H/1E7>>>0,H%=1E7),A>=1E7&&(U+=A/1E7>>>0,A%=1E7),A=U+RgN(A)+RgN(H));return A};
RgN=function(H){H=String(H);return"0000000".slice(H.length)+H};
_.vr=function(H,U){U&2147483648?pk()?H=""+(BigInt(U|0)<<BigInt(32)|BigInt(H>>>0)):(U=_.b(oKr(H,U)),H=U.next().value,U=U.next().value,H="-"+_.YK(H,U)):H=_.YK(H,U);return H};
jw=function(H){if(H.length<16)ln(Number(H));else if(pk())H=BigInt(H),D3=Number(H&BigInt(4294967295))>>>0,$K=Number(H>>BigInt(32)&BigInt(4294967295));else{var U=+(H[0]==="-");$K=D3=0;for(var A=H.length,M=U,W=(A-U)%6+U;W<=A;M=W,W+=6)M=Number(H.slice(M,W)),$K*=1E6,D3=D3*1E6+M,D3>=4294967296&&($K+=Math.trunc(D3/4294967296),$K>>>=0,D3>>>=0);U&&(U=_.b(oKr(D3,$K)),H=U.next().value,U=U.next().value,D3=H,$K=U)}};
oKr=function(H,U){U=~U;H?H=~H+1:U+=1;return[H,U]};
Iy=function(H){return Array.prototype.slice.call(H)};
_.U$=function(H,U){throw Error(U===void 0?"unexpected value "+H+"!":U);};
_.AB=function(H){if(H!=null&&typeof H!=="number")throw Error("M`"+typeof H+"`"+H);return H};
_.MX=function(H){if(H==null||typeof H==="number")return H;if(H==="NaN"||H==="Infinity"||H==="-Infinity")return Number(H)};
EK_=function(H){if(H!=null&&typeof H!=="boolean")throw Error("N`"+_.Wj(H)+"`"+H);return H};
_.mp0=function(H){if(H==null||typeof H==="boolean")return H;if(typeof H==="number")return!!H};
_.Xh=function(H){switch(typeof H){case "bigint":return!0;case "number":return wh(H);case "string":return gKh.test(H);default:return!1}};
_.bm=function(H){if(!wh(H))throw _.Uz("enum");return H|0};
_.um=function(H){return H==null?H:wh(H)?H|0:void 0};
a3M=function(H){if(typeof H!=="number")throw _.Uz("int32");if(!wh(H))throw _.Uz("int32");return H|0};
_.Zk=function(H){return H==null?H:a3M(H)};
_.f8=function(H){if(H==null)return H;if(typeof H==="string"&&H)H=+H;else if(typeof H!=="number")return;return wh(H)?H|0:void 0};
_.xpM=function(H){if(H==null)return H;if(typeof H==="string"&&H)H=+H;else if(typeof H!=="number")return;return wh(H)?H>>>0:void 0};
cH0=function(H){var U=0;U=U===void 0?0:U;if(!_.Xh(H))throw _.Uz("int64");var A=typeof H;switch(U){case 512:switch(A){case "string":return JB(H);case "bigint":return String(Pj(64,H));default:return zgc(H)}case 1024:switch(A){case "string":return Cnr(H);case "bigint":return _.rm(Pj(64,H));default:return tw4(H)}case 0:switch(A){case "string":return JB(H);case "bigint":return _.rm(Pj(64,H));default:return s$(H)}default:return _.U$(U,"Unknown format requested type for int64")}};
n8=function(H){return H==null?H:cH0(H)};
yHK=function(H){var U=H.length;if(H[0]==="-"?U<20||U===20&&H<="-9223372036854775808":U<19||U===19&&H<="9223372036854775807")return H;jw(H);return _.vr(D3,$K)};
Bm0=function(H){if(H[0]==="-")var U=!1;else U=H.length,U=U<20?!0:U===20&&H<="18446744073709551615";if(U)return H;jw(H);return _.YK(D3,$K)};
s$=function(H){H=NX(H);S7(H)||(ln(H),H=hH(D3,$K));return H};
_.rHt=function(H){H=NX(H);H>=0&&S7(H)||(ln(H),H=syK(D3,$K));return H};
zgc=function(H){H=NX(H);S7(H)?H=String(H):(ln(H),H=_.vr(D3,$K));return H};
_.egc=function(H){H=NX(H);H>=0&&S7(H)?H=String(H):(ln(H),H=_.YK(D3,$K));return H};
JB=function(H){var U=NX(Number(H));if(S7(U))return String(U);U=H.indexOf(".");U!==-1&&(H=H.substring(0,U));return yHK(H)};
Cnr=function(H){var U=NX(Number(H));if(S7(U))return _.rm(U);U=H.indexOf(".");U!==-1&&(H=H.substring(0,U));return pk()?_.rm(Pj(64,BigInt(H))):_.rm(yHK(H))};
tw4=function(H){return S7(H)?_.rm(s$(H)):_.rm(zgc(H))};
_.Dp8=function(H){return S7(H)?_.rm(_.rHt(H)):_.rm(_.egc(H))};
_.$p7=function(H){var U=NX(Number(H));if(S7(U)&&U>=0)return String(U);U=H.indexOf(".");U!==-1&&(H=H.substring(0,U));return Bm0(H)};
_.l3c=function(H){var U=NX(Number(H));if(S7(U)&&U>=0)return _.rm(U);U=H.indexOf(".");U!==-1&&(H=H.substring(0,U));return pk()?_.rm((0,_.p8)(64,BigInt(H))):_.rm(Bm0(H))};
Yzr=function(H){if(H==null)return H;if(typeof H==="bigint")return G2c(H)?H=Number(H):(H=Pj(64,H),H=G2c(H)?Number(H):String(H)),H;if(_.Xh(H))return typeof H==="number"?s$(H):JB(H)};
qzE=function(H,U){U=U===void 0?!1:U;var A=typeof H;if(H==null)return H;if(A==="bigint")return String(Pj(64,H));if(_.Xh(H))return A==="string"?JB(H):U?zgc(H):s$(H)};
hgV=function(H){var U=typeof H;if(H==null)return H;if(U==="bigint")return _.rm(Pj(64,H));if(_.Xh(H))return U==="string"?Cnr(H):tw4(H)};
k2M=function(H){var U=typeof H;if(H==null)return H;if(U==="bigint")return _.rm((0,_.p8)(64,H));if(_.Xh(H))return U==="string"?_.l3c(H):_.Dp8(H)};
vK8=function(H){if(H==null)return H;var U=typeof H;if(U==="bigint")return String(Pj(64,H));if(_.Xh(H)){if(U==="string")return JB(H);if(U==="number")return s$(H)}};
TmK=function(H){if(H==null)return H;var U=typeof H;if(U==="bigint")return String((0,_.p8)(64,H));if(_.Xh(H)){if(U==="string")return _.$p7(H);if(U==="number")return _.rHt(H)}};
_.L8=function(H){if(typeof H!=="string")throw Error();return H};
E$=function(H){if(H!=null&&typeof H!=="string")throw Error();return H};
_.m5=function(H){return H==null||typeof H==="string"?H:void 0};
QyN=function(H,U,A,M){if(H!=null&&H[xf]===C8)return H;if(!Array.isArray(H))return A?M&2?U[jy8]||(U[jy8]=I3K(U)):new U:void 0;A=H[_.wm]|0;M=A|M&32|M&2;M!==A&&bn(H,M);return new U(H)};
I3K=function(H){H=new H;fk(H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return H};
Vw4=function(H,U,A){H=U?a3M(H):_.f8(H);return H==null?A?0:void 0:H|0};
H8K=function(H){return H};
UXF=function(H){return H};
M7h=function(H,U,A,M,W,w){H=QyN(H,M,A,w);W&&(H=AB8(H));return H};
W5c=function(H){return[H,this.get(H)]};
i8N=function(){return wj4||(wj4=new tB(fk([]),void 0,void 0,void 0,Xj7))};
b88=function(H){var U=cj(yp);return U?H[U]:void 0};
uhE=function(H,U){var A=A===void 0?!1:A;if(cj(dX4)&&cj(yp)&&void 0===dX4){var M=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=M[yp];if(!W)return;if(W=W.reviveUnknownFields)try{W(M,U,O84);return}catch(w){wK(w)}}A&&(H=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(A=cj(yp))&&A in H&&(H=H[A])&&delete H[U])};
fkM=function(H,U){var A=cj(yp),M;Wr&&A&&((M=H[A])==null?void 0:M[U])!=null&&Ict(Z8c,3)};
K5N=function(H,U){U<100||Ict(JBh,1)};
nf7=function(H,U,A,M){var W=M!==void 0;M=!!M;var w=cj(yp),d;!W&&Wr&&w&&(d=H[w])&&ofV(d,K5N);w=[];var O=H.length;d=4294967295;var f=!1,J=!!(U&64),F=J?U&128?0:-1:void 0;if(!(U&1)){var P=O&&H[O-1];P!=null&&typeof P==="object"&&P.constructor===Object?(O--,d=O):P=void 0;if(J&&!(U&128)&&!W){f=!0;var n;d=((n=F5t)!=null?n:H8K)(d-F,F,H,P,void 0)+F}}U=void 0;for(n=0;n<O;n++){var N=H[n];if(N!=null&&(N=A(N,M))!=null)if(J&&n>=d){var L=n-F,m=void 0;((m=U)!=null?m:U={})[L]=N}else w[n]=N}if(P)for(var z in P)O=P[z],
O!=null&&(O=A(O,M))!=null&&(n=+z,N=void 0,J&&!Number.isNaN(n)&&(N=n+F)<d?w[N]=O:(n=void 0,((n=U)!=null?n:U={})[z]=O));U&&(f?w.push(U):w[d]=U);W&&cj(yp)&&(H=b88(H))&&H instanceof PmN&&(w[yp]=sYN(H));return w};
S$E=function(H){H[0]=Nhc(H[0]);H[1]=Nhc(H[1]);return H};
Nhc=function(H){switch(typeof H){case "number":return Number.isFinite(H)?H:""+H;case "bigint":return G2c(H)?Number(H):""+H;case "boolean":return H?1:0;case "object":if(Array.isArray(H)){var U=H[_.wm]|0;return H.length===0&&U&1?void 0:nf7(H,U,Nhc)}if(H!=null&&H[xf]===C8)return pjF(H);if(H instanceof ay){U=H.JSC$9123_value_;if(U==null)H="";else if(typeof U==="string")H=U;else{if(h40){for(var A="",M=0,W=U.length-10240;M<W;)A+=String.fromCharCode.apply(null,U.subarray(M,M+=10240));A+=String.fromCharCode.apply(null,
M?U.subarray(M):U);U=btoa(A)}else U=_.I_(U);H=H.JSC$9123_value_=U}return H}if(H instanceof tB)return H=H.size!==0?L5V(H,S$E):void 0,H;return}return H};
Bj=function(H,U){if(U){F5t=U==null||U===H8K||U[R50]!==EfM?H8K:U;try{return pjF(H)}finally{F5t=void 0}}return pjF(H)};
pjF=function(H){H=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return nf7(H,H[_.wm]|0,Nhc)};
akK=function(H){switch(typeof H){case "boolean":return mX8||(mX8=[0,void 0,!0]);case "number":return H>0?void 0:H===0?gfF||(gfF=[0,void 0]):[-H,void 0];case "string":return[0,H];case "object":return H}};
Dk=function(H,U){return xX_(H,U[0],U[1])};
_.$f=function(H,U,A){return xX_(H,U,A,2048)};
xX_=function(H,U,A,M){M=M===void 0?0:M;if(H==null){var W=32;A?(H=[A],W|=128):H=[];U&&(W=W&-16760833|(U&1023)<<14)}else{if(!Array.isArray(H))throw Error("P");W=H[_.wm]|0;if(z5c&&1&W)throw Error("Q");2048&W&&!(2&W)&&Cmr();if(W&256)throw Error("R");if(W&64)return(W|M)!==W&&bn(H,W|M),H;if(A&&(W|=128,A!==H[0]))throw Error("S");a:{A=H;W|=64;var w=A.length;if(w){var d=w-1,O=A[d];if(O!=null&&typeof O==="object"&&O.constructor===Object){U=W&128?0:-1;d-=U;if(d>=1024)throw Error("U");for(var f in O)w=+f,w<d&&
(A[w+U]=O[f],delete O[f]);W=W&-16760833|(d&1023)<<14;break a}}if(U){f=Math.max(U,w-(W&128?0:-1));if(f>1024)throw Error("V");W=W&-16760833|(f&1023)<<14}}}bn(H,W|64|M);return H};
Cmr=function(){if(z5c)throw Error("T");Ict(t7V,5)};
BhE=function(H,U){if(typeof H!=="object")return H;if(Array.isArray(H)){var A=H[_.wm]|0;return H.length===0&&A&1?void 0:cBr(H,A,U)}if(H!=null&&H[xf]===C8)return yB0(H);if(H instanceof tB){U=H.arrayState;if(U&2)return H;if(!H.size)return;A=fk(L5V(H));if(H.valueCtor)for(H=0;H<A.length;H++){var M=A[H],W=M[1];W==null||typeof W!=="object"?W=void 0:W!=null&&W[xf]===C8?W=yB0(W):Array.isArray(W)?W=cBr(W,W[_.wm]|0,!!(U&32)):W=void 0;M[1]=W}return A}if(H instanceof ay)return H};
cBr=function(H,U,A){if(U&2)return H;!A||4096&U||16&U?H=lm(H,U,!1,A&&!(U&16)):(XB(H,34),U&4&&Object.freeze(H));return H};
rBK=function(H,U,A){H=new H.constructor(U);A&&(H.copyOnWrite=Lk);H.noLegacyNull=Lk;return H};
yB0=function(H){var U=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=U[_.wm]|0;return gm(H,A)?H:e5_(H,U,A)?rBK(H,U):lm(U,A)};
lm=function(H,U,A,M){M!=null||(M=!!(34&U));H=nf7(H,U,BhE,M);M=32;A&&(M|=2);U=U&16769217|M;bn(H,U);return H};
AB8=function(H){var U=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=U[_.wm]|0;return gm(H,A)?e5_(H,U,A)?rBK(H,U,!0):new H.constructor(lm(U,A,!1)):H};
Yf=function(H){if(H.copyOnWrite!==Lk)return!1;var U=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;U=lm(U,U[_.wm]|0);XB(U,2048);H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=U;H.copyOnWrite=void 0;H.noLegacyNull=void 0;return!0};
qX=function(H){if(!Yf(H)&&gm(H,H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.wm]|0))throw Error();};
hB=function(H,U){U===void 0&&(U=H[_.wm]|0);U&32&&!(U&4096)&&bn(H,U|4096)};
e5_=function(H,U,A){return A&2?!0:A&32&&!(A&4096)?(bn(U,A|2),H.copyOnWrite=Lk,!0):!1};
vj=function(H,U,A,M,W){var w=A+(W?0:-1),d=H.length-1;if(d>=1+(W?0:-1)&&w>=d){var O=H[d];if(O!=null&&typeof O==="object"&&O.constructor===Object)return O[A]=M,U}if(w<=d)return H[w]=M,U;if(M!==void 0){var f;d=((f=U)!=null?f:U=H[_.wm]|0)>>14&1023||536870912;A>=d?M!=null&&(w={},H[d+(W?0:-1)]=(w[A]=M,w)):H[w]=M}return U};
_.IY=function(H,U,A,M,W){var w=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=w[_.wm]|0;M=gm(H,d)?1:M;W=!!W||M===3;M===2&&Yf(H)&&(w=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=w[_.wm]|0);H=DXc(w,U);var O=H===Ty?7:H[_.wm]|0,f=$Xc(O,d);var J=4&f?!1:!0;if(J){4&f&&(H=Iy(H),O=0,f=j7(f,d),d=vj(w,d,U,H));for(var F=0,P=0;F<H.length;F++){var n=A(H[F]);n!=null&&(H[P++]=n)}P<F&&(H.length=P);A=(f|4)&-513;f=A&=-1025;f&=-4097}f!==O&&(bn(H,f),2&f&&Object.freeze(H));return H=lkc(H,f,w,
d,U,M,J,W)};
lkc=function(H,U,A,M,W,w,d,O){var f=U;w===1||(w!==4?0:2&U||!(16&U)&&32&M)?Uj(U)||(U|=!H.length||d&&!(4096&U)||32&M&&!(4096&U||16&U)?2:256,U!==f&&bn(H,U),Object.freeze(H)):(w===2&&Uj(U)&&(H=Iy(H),f=0,U=j7(U,M),M=vj(A,M,W,H)),Uj(U)||(O||(U|=16),U!==f&&bn(H,U)));2&U||!(4096&U||16&U)||hB(A,M);return H};
DXc=function(H,U,A){H=AR(H,U,A);return Array.isArray(H)?H:Ty};
$Xc=function(H,U){2&U&&(H|=2);return H|1};
Uj=function(H){return!!(2&H)&&!!(4&H)||!!(256&H)};
Gyh=function(H){return _.tH(H,!0)};
Y$_=function(H){H=Iy(H);for(var U=0;U<H.length;U++){var A=H[U]=Iy(H[U]);Array.isArray(A[1])&&(A[1]=fk(A[1]))}return JH(H)};
_.q$c=function(H,U,A,M,W){var w=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=w[_.wm]|0;var O=gm(H,d);a:{!O&&Yf(H)&&(w=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=w[_.wm]|0);var f=AR(w,U);H=!1;if(f==null){if(O){U=i8N();break a}f=[]}else if(f.constructor===tB)if(f.arrayState&2&&!O)f=L5V(f);else{U=f;break a}else Array.isArray(f)?H=!!((f[_.wm]|0)&2):f=[];if(O){if(!f.length){U=i8N();break a}H||(H=!0,fk(f))}else H&&(H=!1,JH(f),f=Y$_(f));!H&&d&32&&UpF(f);M=new tB(f,A,M,W);d=
vj(w,d,U,M);H||hB(w,d);U=M}!O&&A&&(U.callToMutableOnAccess=!0);return U};
_.MS=function(H,U,A,M){qX(H);var W=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=W[_.wm]|0;if(A==null)return vj(W,w,U),H;var d=A===Ty?7:A[_.wm]|0,O=d,f=Uj(d),J=f||Object.isFrozen(A);f||(d=0);J||(A=Iy(A),O=0,d=j7(d,w),J=!1);d|=5;var F;f=(F=Hk_(d))!=null?F:0;for(F=0;F<A.length;F++){var P=A[F],n=M(P,f);Object.is(P,n)||(J&&(A=Iy(A),O=0,d=j7(d,w),J=!1),A[F]=n)}d!==O&&(J&&(A=Iy(A),d=j7(d,w)),bn(A,d));vj(W,w,U,A);return H};
_.Wy=function(H,U,A,M,W){qX(H);var w=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;vj(w,w[_.wm]|0,U,(M==="0"?Number(A)===0:A===M)?void 0:A,W);return H};
_.wM=function(H,U,A){if(U&2)throw Error();var M=yh(U),W=DXc(H,A,M),w=W===Ty?7:W[_.wm]|0,d=$Xc(w,U);if(2&d||Uj(d)||16&d)d===w||Uj(d)||bn(W,d),W=Iy(W),w=0,d=j7(d,U),vj(H,U,A,W,M);d&=-13;d!==w&&bn(W,d);return W};
h50=function(H){if(Wr){var U;return(U=H[iv])!=null?U:H[iv]=new Map}if(iv in H)return H[iv];U=new Map;Object.defineProperty(H,iv,{value:U});return U};
vfh=function(H,U,A,M,W){var w=h50(H),d=kyN(w,H,U,A,W);d!==M&&(d&&(U=vj(H,U,d,void 0,W)),w.set(A,M));return U};
kyN=function(H,U,A,M,W){var w=H.get(M);if(w!=null)return w;for(var d=w=0;d<M.length;d++){var O=M[d];AR(U,O,W)!=null&&(w!==0&&(A=vj(U,A,w,void 0,W)),w=O)}H.set(M,w);return w};
Tht=function(H,U,A,M,W){var w=!1;M=AR(H,M,W,function(d){var O=QyN(d,A,!1,U);w=O!==d&&O!=null;return O});
if(M!=null)return w&&!gm(M)&&hB(H,U),M};
jYc=function(H,U,A,M,W,w,d,O){var f=gm(H,A);w=f?1:w;d=!!d||w===3;f=O&&!f;(w===2||f)&&Yf(H)&&(U=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=U[_.wm]|0);H=DXc(U,W);var J=H===Ty?7:H[_.wm]|0,F=$Xc(J,A);if(O=!(4&F)){var P=H,n=A,N=!!(2&F);N&&(n|=2);for(var L=!N,m=!0,z=0,c=0;z<P.length;z++){var C=QyN(P[z],M,!1,n);if(C instanceof M){if(!N){var v=gm(C);L&&(L=!v);m&&(m=v)}P[c++]=C}}c<z&&(P.length=c);F|=4;F=m?F&-4097:F|4096;F=L?F|8:F&-9}F!==J&&(bn(H,F),2&F&&Object.freeze(H));if(f&&!(8&F||!H.length&&
(w===1||(w!==4?0:2&F||!(16&F)&&32&A)))){Uj(F)&&(H=Iy(H),F=j7(F,A),A=vj(U,A,W,H));M=H;f=F;for(J=0;J<M.length;J++)P=M[J],F=AB8(P),P!==F&&(M[J]=F);f|=8;F=f=M.length?f|4096:f&-4097;bn(H,F)}return H=lkc(H,F,U,A,W,w,O,d)};
Ikc=function(H){H==null&&(H=void 0);return H};
j7=function(H,U){return H=(2&U?H|2:H&-3)&-273};
_.QY4=function(H,U,A,M,W){qX(H);U=_.IY(H,U,W,2,!0);var w;W=(w=Hk_(U===Ty?7:U[_.wm]|0))!=null?w:0;U.push(A(M,W));return H};
V7V=function(H,U,A,M,W,w,d){qX(H);var O=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;H=jYc(H,O,O[_.wm]|0,A,U,2,!0);if(w&&d)W!=null||(W=H.length-1),MwE(H,W),H.splice(W,w),H.length||(H[_.wm]&=-4097);else{if(w){if(typeof W!=="number"||W<0||W>H.length)throw Error();}else M=M!=null?M:new A;W!=void 0?H.splice(W,w,M):H.push(M);W=A=H===Ty?7:H[_.wm]|0;(M=gm(M))?(A&=-9,H.length===1&&(A&=-4097)):A|=4096;A!==W&&bn(H,A);M||hB(O)}};
USE=function(H,U){if(typeof H==="string")return new bv(vcV(H),U);if(Array.isArray(H))return new bv(new Uint8Array(H),U);if(H.constructor===Uint8Array)return new bv(H,!1);if(H.constructor===ArrayBuffer)return H=new Uint8Array(H),new bv(H,!1);if(H.constructor===ay)return U=HNF(H)||new Uint8Array(0),new bv(U,!0,H);if(H instanceof Uint8Array)return H=H.constructor===Uint8Array?H:new Uint8Array(H.buffer,H.byteOffset,H.byteLength),new bv(H,!1);throw Error();};
M37=function(H){switch(typeof H){case "string":AR4(H)}};
wyE=function(H){switch(typeof H){case "string":WO4(H)}};
dM=function(){var H=function(){throw Error();};
Object.setPrototypeOf(H,H.prototype);return H};
iN7=function(H,U){var A=A===void 0?XyN:A;return new Oj(H,U,A)};
ONN=function(H,U,A,M,W){bNN(H,A,dSh(U,M),W)};
Ze=function(H,U,A,M){var W=M[H];if(W)return W;W={};W.binaryFields=M;W.messageMetadata=akK(M[0]);var w=M[1],d=1;w&&w.constructor===Object&&(W.extensions=w,w=M[++d],typeof w==="function"&&(W.isMessageSet=!0,uLc!=null||(uLc=w),ZNN!=null||(ZNN=M[d+1]),w=M[d+=2]));for(var O={};w&&fe8(w);){for(var f=0;f<w.length;f++)O[w[f]]=w;w=M[++d]}for(f=1;w!==void 0;){typeof w==="number"&&(f+=w,w=M[++d]);var J=void 0;if(w instanceof Oj)var F=w;else F=JRc,d--;w=void 0;if((w=F)==null?0:w.$$isMsg){w=M[++d];J=M;var P=d;
typeof w==="function"&&(w=w(),J[P]=w);J=w}w=M[++d];P=f+1;typeof w==="number"&&w<0&&(P-=w,w=M[++d]);for(;f<P;f++){var n=O[f];J?A(W,f,F,J,n):U(W,f,F,n)}}return M[H]=W};
fe8=function(H){return Array.isArray(H)&&!!H.length&&typeof H[0]==="number"&&H[0]>0};
o5M=function(H){return Array.isArray(H)?H[0]instanceof Oj?H:[KOF,H]:[H,void 0]};
dSh=function(H,U){if(H instanceof _.fN)return H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(H))return Dk(H,U)};
FOh=function(H,U,A,M){var W=A.$$binaryReaderFn;H[U]=M?function(w,d,O){return W(w,d,O,M)}:W};
s5N=function(H,U,A,M,W){var w=A.$$binaryReaderFn,d,O;H[U]=function(f,J,F){return w(f,J,F,O||(O=Ze(Pv4,FOh,s5N,M).messageMetadata),d||(d=n50(M)),W)}};
n50=function(H){var U=H[NMN];if(U!=null)return U;var A=Ze(Pv4,FOh,s5N,H);U=A.isMessageSet?function(M,W){return uLc(M,W,A)}:function(M,W){for(;SjN(W)&&W.nextWireType_!=4;){var w=W.nextField_,d=A[w];
if(d==null){var O=A.extensions;O&&(O=O[w])&&(O=pyh(O),O!=null&&(d=A[w]=O))}if(d==null||!d(W,M,w)){O=W;d=O.fieldCursor_;LON(O);if(O.discardUnknownFields)var f=void 0;else{var J=O.decoder_.cursor_-d;O.decoder_.cursor_=d;f=RS_(O.decoder_,J)}J=O=d=void 0;var F=M;f&&((d=(O=(J=F[yp])!=null?J:F[yp]=new PmN)[w])!=null?d:O[w]=[]).push(f)}}if(M=b88(M))M.reviveUnknownFields=A.binaryFields[E5N];return!0};
H[NMN]=U;H[E5N]=mSr.bind(H);return U};
mSr=function(H,U,A,M){var W=this[Pv4],w=this[NMN],d=Dk(void 0,W.messageMetadata),O=b88(H);if(O){var f=!1,J=W.extensions;if(J){W=function(L,m,z){if(z.length!==0)if(J[m])for(L=_.b(z),m=L.next();!m.done;m=L.next()){m=g5E(m.value);try{f=!0,w(d,m)}finally{m.free()}}else M==null||M(H,m,z)};
if(U==null)ofV(O,W);else if(O!=null){var F=O[U];F&&W(O,U,F)}if(f){var P=H[_.wm]|0;if(P&2&&P&2048&&(A==null||!A.reviveIntoImmutable))throw Error();var n=yh(P),N=function(L,m){if(AR(H,L,n)!=null)switch(A==null?void 0:A.resolutionBehavior){case 1:return;default:throw Error();}m!=null&&(P=vj(H,P,L,m,n));delete O[L]};
U==null?Wwc(d,d[_.wm]|0,function(L,m){N(L,m)}):N(U,AR(d,U,n))}}}};
pyh=function(H){H=o5M(H);var U=H[0].$$binaryReaderFn;if(H=H[1]){var A=n50(H),M=Ze(Pv4,FOh,s5N,H).messageMetadata;return function(W,w,d){return U(W,w,d,M,A)}}return U};
aeE=function(H,U,A){H[U]=A.$$binaryWriterFn};
zSc=function(H,U,A,M){var W,w,d=A.$$binaryWriterFn;H[U]=function(O,f,J){return d(O,f,J,w||(w=Ze(xSN,aeE,zSc,M).messageMetadata),W||(W=Cv7(M)))}};
Cv7=function(H){var U=H[t3_];if(!U){var A=Ze(xSN,aeE,zSc,H);U=function(M,W){return cR8(M,W,A)};
H[t3_]=U}return U};
cR8=function(H,U,A){Wwc(H,H[_.wm]|0,function(M,W){if(W!=null){var w=yRc(A,M);w?w(U,W,M):M<500||Ict(BMF,3)}});
(H=b88(H))&&ofV(H,function(M,W,w){KN(U,U.encoder_.end());for(M=0;M<w.length;M++)KN(U,HNF(w[M])||new Uint8Array(0))})};
yRc=function(H,U){var A=H[U];if(A)return A;if(A=H.extensions)if(A=A[U]){A=o5M(A);var M=A[0].$$binaryWriterFn;if(A=A[1]){var W=Cv7(A),w=Ze(xSN,aeE,zSc,A).messageMetadata;A=H.isMessageSet?ZNN(w,W):function(d,O,f){return M(d,O,f,w,W)}}else A=M;
return H[U]=A}};
_.rRt=function(H,U,A){if(Array.isArray(U)){var M=U[_.wm]|0;if(M&4)return U;for(var W=0,w=0;W<U.length;W++){var d=H(U[W]);d!=null&&(U[w++]=d)}w<W&&(U.length=w);H=M|1;A&&(H=(H|4)&-1537);H!==M&&bn(U,H);A&&H&2&&Object.freeze(U);return U}};
_.o5=function(H,U,A){return new Oj(H,U,A)};
_.eS0=function(H,U,A){return new Oj(H,U,A)};
_.FL=function(H,U,A){vj(H,H[_.wm]|0,U,A,yh(H[_.wm]|0))};
DSr=function(H,U,A){U=_.MX(U);U!=null&&(_.Py(H,A,1),H=H.encoder_,A=FwN||(FwN=new DataView(new ArrayBuffer(8))),A.setFloat64(0,+U,!0),D3=A.getUint32(0,!0),$K=A.getUint32(4,!0),_.sj(H,D3),_.sj(H,$K))};
$S_=function(H,U,A){U=_.MX(U);U!=null&&(_.Py(H,A,5),H=H.encoder_,Pnc(U),_.sj(H,D3))};
_.NS=function(H,U,A){U=vK8(U);if(U!=null&&(M37(U),U!=null))switch(_.Py(H,A,0),typeof U){case "number":H=H.encoder_;ln(U);nN(H,D3,$K);break;case "bigint":A=BigInt.asUintN(64,U);A=new leV(Number(A&BigInt(4294967295)),Number(A>>BigInt(32)));nN(H.encoder_,A.JSC$9166_lo,A.JSC$9166_hi);break;default:A=AR4(U),nN(H.encoder_,A.JSC$9166_lo,A.JSC$9166_hi)}};
YjF=function(H,U,A){U=TmK(U);if(U!=null&&(wyE(U),U!=null))switch(_.Py(H,A,0),typeof U){case "number":H=H.encoder_;ln(U);nN(H,D3,$K);break;case "bigint":A=GCc(U);nN(H.encoder_,A.JSC$9164_lo,A.JSC$9164_hi);break;default:A=WO4(U),nN(H.encoder_,A.JSC$9164_lo,A.JSC$9164_hi)}};
hSc=function(H,U,A){U=_.f8(U);U!=null&&U!=null&&(_.Py(H,A,0),_.qjE(H.encoder_,U))};
_.v5r=function(H,U,A){kC7(H,A,TmK(U))};
TM_=function(H,U,A){U=_.mp0(U);U!=null&&(_.Py(H,A,0),H.encoder_.JSC$9168_buffer_.push(U?1:0))};
IeM=function(H,U,A){U=_.m5(U);U!=null&&j5r(H,A,Zhh(U))};
Q5K=function(H,U,A,M,W){bNN(H,A,dSh(U,M),W)};
_.V30=function(H,U,A){U=U==null||typeof U=="string"||U instanceof ay?U:void 0;U!=null&&j5r(H,A,USE(U,!0).buffer)};
HUt=function(H,U,A){U=_.xpM(U);U!=null&&U!=null&&(_.Py(H,A,0),S3(H.encoder_,U))};
_.Uor=function(H,U,A){U=_.f8(U);U!=null&&(U=parseInt(U,10),_.Py(H,A,0),_.qjE(H.encoder_,U))};
A$r=function(H,U,A){if(H.nextWireType_!==0)return!1;_.FL(U,A,_.pN(H.decoder_,Nmh));return!0};
_.MGV=function(H,U,A,M){if(H.nextWireType_!==0)return!1;_.R5(U,A,M,_.pN(H.decoder_,Nmh));return!0};
WfV=function(H,U,A){if(H.nextWireType_!==0)return!1;_.FL(U,A,_.pN(H.decoder_,nKr));return!0};
_.XIF=function(H,U,A){if(H.nextWireType_!==1)return!1;_.FL(U,A,wIc(H.decoder_));return!0};
_.Ej=function(H,U){return function(A,M){var W={treatNewDataAsImmutable:!0};M&&Object.assign(W,M);A=g5E(A,void 0,void 0,W);try{var w=new H,d=w.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;n50(U)(d,A);var O=w}finally{A.free()}return O}};
_.mO=function(H){return function(U){return iUh(U,H)}};
bUN=function(H){return function(){return iUh(this,H)}};
_.do8=function(H){return Br(function(U){return U instanceof H&&!gm(U)})};
_.a5=function(H){return function(U){return OUE(H,U)}};
J$N=function(H,U){return uPK({child:H,origin:U||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:ZUK,getPayloadCase:function(A){return A.getPayloadCase()},
createInitMessage:function(A){var M=new zC,W=new fOc;A=_.CN(W,1,A);return _.tR(M,5,cy,A)}})};
yY=function(H){return{valueOf:H}.valueOf()};
ost=function(){var H=null;if(!Kf4)return H;try{var U=function(A){return A};
H=Kf4.createPolicy("goog#html",{createHTML:U,createScript:U,createScriptURL:U})}catch(A){}return H};
PLK=function(){Ff_===void 0&&(Ff_=ost());return Ff_};
_.rM=function(H){var U=PLK();H=U?U.createScriptURL(H):H;return new By(H)};
_.e3=function(H){if(H instanceof By)return H.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("$");};
_.De=function(H){return Object.isFrozen(H)&&Object.isFrozen(H.raw)};
sDt=function(H){return H.toString().indexOf("`")===-1};
Y5=function(H){return new _.$5(ns8,H)};
qS=function(H){return H instanceof _.$5};
_.hR=function(H){if(qS(H))return H.privateDoNotAccessOrElseWrappedUrl;throw Error("$");};
k5=function(H){return new NYc(function(U){return U.substr(0,H.length+1).toLowerCase()===H+":"})};
_.vy=function(H,U){U=U===void 0?SrV:U;if(qS(H))return H;for(var A=0;A<U.length;++A){var M=U[A];if(M instanceof NYc&&M.isValid(H))return Y5(H)}};
_.j3=function(H,U){U=U===void 0?SrV:U;return _.vy(H,U)||TC};
_.I5=function(H){var U=window;if(typeof MediaSource!=="undefined"&&H instanceof MediaSource||typeof U.ManagedMediaSource!=="undefined"&&H instanceof U.ManagedMediaSource)return Y5(URL.createObjectURL(H));U=H.type;U.toLowerCase()==="application/octet-stream"?U=!0:(U=U.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),U=(U==null?void 0:U.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(U[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(U[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(U[1])||/^font\/[\w-]+$/i.test(U[1])));if(!U)throw Error("$");return Y5(URL.createObjectURL(H))};
_.pIc=function(H){for(var U=_.QY.apply(1,arguments),A=[H[0]],M=0;M<U.length;M++)A.push(String(U[M])),A.push(H[M+1]);return Y5(A.join(""))};
_.RKM=function(H){if(!Lf7){a:{var U=document.createElement("a");try{U.href=H}catch(A){H=void 0;break a}H=U.protocol;H=H===":"||H===""?"https:":H}return H}try{U=new URL(H)}catch(A){return"https:"}return U.protocol};
_.VY=function(H){H instanceof _.$5?H=_.hR(H):H=EsF.test(H)?H:void 0;return H};
HI=function(H,U){U=_.VY(U);U!==void 0&&(H.href=U)};
A$=function(H){var U=PLK();H=U?U.createHTML(H):H;return new Ur(H)};
Mo=function(H){if(H instanceof Ur)return H.privateDoNotAccessOrElseWrappedHtml;throw Error("$");};
_.wY=function(H,U){H.src=_.e3(U).toString()};
mo_=function(H,U){H.setAttribute("sandbox","");for(var A=0;A<U.length;A++)H.sandbox.supports&&!H.sandbox.supports(U[A])||H.sandbox.add(U[A])};
_.XP=function(H,U,A){H.removeAttribute("srcdoc");switch(U){case 0:if(A instanceof By)throw new gsV("TrustedResourceUrl",0);mo_(H,[]);U=_.VY(A);U!==void 0&&(H.src=U);break;case 1:if(!(A instanceof By))throw new gsV(typeof A,1);mo_(H,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.wY(H,A);break;case 2:if(A instanceof By)throw new gsV("TrustedResourceUrl",2);mo_(H,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
U=_.VY(A);U!==void 0&&(H.src=U);break;default:_.U$(U)}};
_.iL=function(H,U,A,M){U=_.VY(U);return U!==void 0?H.open(U,A,M):null};
_.bL=function(H){H=H===void 0?document:H;var U,A;H=(A=(U=H).querySelector)==null?void 0:A.call(U,"script[nonce]");return H==null?"":H.nonce||H.getAttribute("nonce")||""};
_.Or=function(H){var U=PLK();H=U?U.createScript(H):H;return new _.dY(H)};
ZO=function(H){if(H instanceof _.dY)return H.privateDoNotAccessOrElseWrappedScript;throw Error("$");};
aOc=function(H){var U=_.bL(H.ownerDocument);U&&H.setAttribute("nonce",U)};
_.fU=function(H,U){H.textContent=ZO(U);aOc(H)};
_.J$=function(H,U){H.src=_.e3(U);aOc(H)};
_.KU=function(H,U){if(H.nodeType===1&&/^(script|style)$/i.test(H.tagName))throw Error("$");H.innerHTML=Mo(U)};
_.oD=function(H,U,A,M){if(H.length===0)throw Error("$");H=H.map(function(w){if(w instanceof xoV)w=w.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("$");return w});
var W=A.toLowerCase();if(H.every(function(w){return W.indexOf(w)!==0}))throw Error("ba`"+A);
U.setAttribute(A,M)};
_.FP=function(H,U,A){if(U instanceof By)H.href=_.e3(U).toString(),H.rel=A;else{if(zK8.indexOf(A)===-1)throw Error("ca`"+A);U=_.VY(U);U!==void 0&&(H.href=U,H.rel=A)}};
CLr=function(H){if(H instanceof PI)return H.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("$");};
_.tGh=function(H,U){U=_.VY(U);U!==void 0&&(H.href=U)};
c$h=function(H){return new Worker(_.e3(H),void 0)};
y$0=function(H){return _.rM(H)};
BYr=function(H,U){H&&(U=H.indexOf(U),0<=U&&H.splice(U,1))};
sr=function(H){return typeof H==="function"};
r$7=function(H){return H instanceof nU||H&&"closed"in H&&sr(H.remove)&&sr(H.add)&&sr(H.unsubscribe)};
No=function(){};
SG=function(H){eK4(function(){throw H;})};
RD=function(H){return H};
Er=function(){return Doc(_.QY.apply(0,arguments))};
Doc=function(H){return H.length===0?RD:H.length===1?H[0]:function(U){return H.reduce(function(A,M){return M(A)},U)}};
$oh=function(H){var U;return(U=H!=null?H:void 0)!=null?U:Promise};
lO4=function(H,U){return new mf(function(A){var M=0;return U.schedule(function(){M===H.length?A.complete():(A.next(H[M++]),A.closed||this.schedule())})})};
Gjc=function(H,U){if(!H)throw Error("da");return new mf(function(A){var M=new nU;M.add(U.schedule(function(){var W=H[Symbol.asyncIterator]();M.add(U.schedule(function(){var w=this;W.next().then(function(d){d.done?A.complete():(A.next(d.value),w.schedule())})}))}));
return M})};
YrK=function(H,U,A){U=U.schedule(function(){try{A.call(this)}catch(M){H.error(M)}},0);
H.add(U)};
hKK=function(H,U){return new mf(function(A){var M;A.add(U.schedule(function(){M=H[qrM]();YrK(A,U,function(){var W=M.next(),w=W.value;W.done?A.complete():(A.next(w),this.schedule())})}));
return function(){var W;return sr((W=M)==null?void 0:W.return)&&M.return()}})};
kj4=function(H,U){return new mf(function(A){var M=new nU;M.add(U.schedule(function(){var W=H[gY]();M.add(W.subscribe({next:function(w){M.add(U.schedule(function(){return A.next(w)}))},
error:function(w){M.add(U.schedule(function(){return A.error(w)}))},
complete:function(){M.add(U.schedule(function(){return A.complete()}))}}))}));
return M})};
vs0=function(H,U){return new mf(function(A){return U.schedule(function(){return H.then(function(M){A.add(U.schedule(function(){A.next(M);A.add(U.schedule(function(){return A.complete()}))}))},function(M){A.add(U.schedule(function(){return A.error(M)}))})})})};
TYt=function(H){return new TypeError("ea`"+(H!==null&&typeof H==="object"?"an invalid object":"'"+H+"'"))};
IOM=function(H,U){if(H!=null){if(sr(H[gY]))return kj4(H,U);if(jDc(H))return lO4(H,U);if(sr(H==null?void 0:H.then))return vs0(H,U);if(Symbol.asyncIterator&&sr(H==null?void 0:H[Symbol.asyncIterator]))return Gjc(H,U);if(sr(H==null?void 0:H[qrM]))return hKK(H,U)}throw TYt(H);};
xs=function(H,U){return U?IOM(H,U):aD(H)};
aD=function(H){if(H instanceof mf)return H;if(H!=null){if(sr(H[gY]))return QDV(H);if(jDc(H))return VGE(H);if(sr(H==null?void 0:H.then))return HFF(H);if(Symbol.asyncIterator&&sr(H==null?void 0:H[Symbol.asyncIterator]))return U2r(H);if(sr(H==null?void 0:H[qrM]))return AzV(H)}throw TYt(H);};
QDV=function(H){return new mf(function(U){var A=H[gY]();if(sr(A.subscribe))return A.subscribe(U);throw new TypeError("fa");})};
VGE=function(H){return new mf(function(U){for(var A=0;A<H.length&&!U.closed;A++)U.next(H[A]);U.complete()})};
HFF=function(H){return new mf(function(U){H.then(function(A){U.closed||(U.next(A),U.complete())},function(A){return U.error(A)}).then(null,SG)})};
AzV=function(H){return new mf(function(U){for(var A=H[qrM]();!U.closed;){var M=A.next(),W=M.value;M.done?U.complete():U.next(W)}return function(){return sr(A==null?void 0:A.return)&&A.return()}})};
U2r=function(H){return new mf(function(U){Ms_(H,U).catch(function(A){return U.error(A)})})};
Ms_=function(H,U){var A,M,W,w,d,O;return _.u(function(f){switch(f.nextAddress){case 1:_.zj(f,2,3),w=_.t$(H);case 5:return f.yield(w.next(),8);case 8:M=f.yieldResult;if(M.done){f.jumpTo(3);break}d=M.value;U.next(d);f.jumpTo(5);break;case 3:_.cI(f);_.yb(f,9);if(!M||M.done||!(W=w.return)){f.jumpTo(9);break}return f.yield(W.call(w),9);case 9:_.cI(f,0,0,1);if(A)throw A.error;_.BI(f,10,1);break;case 10:_.BI(f,4);break;case 2:O=_.eG(f);A={error:O};f.jumpTo(3);break;case 4:U.complete(),_.DO(f)}})};
WS_=function(H,U){return U?lO4(H,U):VGE(H)};
wLN=function(H){return sr(H[H.length-1])?H.pop():void 0};
$s=function(H){var U=H[H.length-1];return U&&sr(U.schedule)?H.pop():void 0};
lL=function(){var H=_.QY.apply(0,arguments),U=$s(H);return U?lO4(H,U):WS_(H)};
Gj=function(H){var U=sr(H)?H:function(){return H};
return new mf(function(A){return A.error(U())})};
Ys=function(H){return function(U){if(sr(U==null?void 0:U.lift))return U.lift(function(A){try{return H(A,this)}catch(M){this.error(M)}});
throw new TypeError("ga");}};
h$=function(){return Ys(function(H,U){var A=null;H._refCount++;var M=new qo(U,void 0,void 0,void 0,function(){if(!H||H._refCount<=0||0<--H._refCount)A=null;else{var W=H._connection,w=A;A=null;!W||w&&W!==w||W.unsubscribe();U.unsubscribe()}});
H.subscribe(M);M.closed||(A=H.connect())})};
iFN=function(){var H=XLV;var U=U===void 0?0:U;return Ys(function(A,M){M.add(H.schedule(function(){return A.subscribe(M)},U))})};
ks=function(H){return Ys(function(U,A){var M=0;U.subscribe(new qo(A,function(W){A.next(H.call(void 0,W,M++))}))})};
d2E=function(H){return ks(function(U){return bF0(U)?H.apply(null,_.vI(U)):H(U)})};
Jz_=function(H){if(H.length===1){var U=H[0];if(OF_(U))return{args:U,keys:null};if(U&&typeof U==="object"&&uIE(U)===ZFh)return H=fU8(U),{args:H.map(function(A){return U[A]}),
keys:H}}return{args:H,keys:null}};
Tj=function(){var H=_.QY.apply(0,arguments),U=$s(H),A=wLN(H);H=Jz_(H);var M=H.args,W=H.keys;if(M.length===0)return xs([],U);U=new mf(KSc(M,U,W?function(w){for(var d={},O=0;O<w.length;O++)d[W[O]]=w[O];return d}:RD));
return A?U.pipe(d2E(A)):U};
KSc=function(H,U,A){A=A===void 0?RD:A;return function(M){oZE(U,function(){for(var W=H.length,w=Array(W),d=W,O=H.map(function(){return!1}),f=!0,J={i$jscomp$220:0};J.i$jscomp$220<W;J={i$jscomp$220:J.i$jscomp$220},J.i$jscomp$220++)oZE(U,function(F){return function(){xs(H[F.i$jscomp$220],U).subscribe(new jG(M,function(P){w[F.i$jscomp$220]=P;
f&&(O[F.i$jscomp$220]=!0,f=!O.every(RD));f||M.next(A(w.slice()))},function(){return--d===0}))}}(J),M)},M)}};
oZE=function(H,U,A){H?A.add(H.schedule(U)):U()};
FSc=function(H,U,A,M){var W=[],w=0,d=0,O=!1,f=function(J){w++;aD(A(J,d++)).subscribe(new qo(U,function(F){U.next(F)},void 0,function(){w--;
for(var F={};W.length&&w<M;F={bufferedValue:void 0})F.bufferedValue=W.shift(),f(F.bufferedValue);!O||W.length||w||U.complete()}))};
H.subscribe(new qo(U,function(J){return w<M?f(J):W.push(J)},void 0,function(){O=!0;
!O||W.length||w||U.complete()}));
return function(){W=null}};
Qb=function(H,U){var A=A===void 0?Infinity:A;if(sr(U))return Qb(function(M,W){return ks(function(w,d){return U(M,w,W,d)})(aD(H(M,W)))},A);
typeof U==="number"&&(A=U);return Ys(function(M,W){return FSc(M,W,H,A)})};
PFE=function(H){H=H===void 0?Infinity:H;return Qb(RD,H)};
skM=function(){var H=_.QY.apply(0,arguments);return PFE(1)(WS_(H,$s(H)))};
nZE=function(H){return new mf(function(U){aD(H()).subscribe(U)})};
Vb=function(H,U,A){if(sr(A)){var M=A;A=void 0}if(M)return Vb(H,U,A).pipe(d2E(M));M=_.b(sr(H.addEventListener)&&sr(H.removeEventListener)?NNM.map(function(d){return function(O){return H[d](U,O,A)}}):sr(H.addListener)&&sr(H.removeListener)?S6N.map(pL0(H,U)):sr(H.on)&&sr(H.off)?LSc.map(pL0(H,U)):[]);
var W=M.next().value,w=M.next().value;return!W&&jDc(H)?Qb(function(d){return Vb(d,U,A)})(WS_(H)):new mf(function(d){if(!W)throw new TypeError("ha");
var O=function(){var f=_.QY.apply(0,arguments);return d.next(1<f.length?f:f[0])};
W(O);return function(){return w(O)}})};
pL0=function(H,U){return function(A){return function(M){return H[A](U,M)}}};
U6=function(){var H=_.QY.apply(0,arguments),U=$s(H);var A=typeof H[H.length-1]==="number"?H.pop():Infinity;return H.length?H.length===1?aD(H[0]):PFE(A)(WS_(H,U)):HL};
EZ0=function(H){return H.length===1&&RN8(H[0])?H[0]:H};
m2r=function(){var H=EZ0(_.QY.apply(0,arguments));return Ys(function(U,A){var M=[U].concat(_.vI(H)),W=function(){if(!A.closed)if(M.length>0){try{var w=aD(M.shift())}catch(O){W();return}var d=new qo(A,void 0,No,No);A.add(w.subscribe(d));d.add(W)}else A.complete()};
W()})};
Az=function(H){return Ys(function(U,A){var M=0;U.subscribe(new qo(A,function(W){return H.call(void 0,W,M++)&&A.next(W)}))})};
aU4=function(){var H=_.QY.apply(0,arguments);H=EZ0(H);return H.length===1?aD(H[0]):new mf(gZK(H))};
gZK=function(H){return function(U){for(var A=[],M={i$jscomp$223:0};A&&!U.closed&&M.i$jscomp$223<H.length;M={i$jscomp$223:M.i$jscomp$223},M.i$jscomp$223++)A.push(aD(H[M.i$jscomp$223]).subscribe(new qo(U,function(W){return function(w){if(A){for(var d=0;d<A.length;d++)d!==W.i$jscomp$223&&A[d].unsubscribe();A=null}U.next(w)}}(M))))}};
x2M=function(){var H=_.QY.apply(0,arguments),U=wLN(H),A=EZ0(H);return A.length?new mf(function(M){var W=A.map(function(){return[]}),w=A.map(function(){return!1});
M.add(function(){W=w=null});
for(var d={sourceIndex$jscomp$1:0};!M.closed&&d.sourceIndex$jscomp$1<A.length;d={sourceIndex$jscomp$1:d.sourceIndex$jscomp$1},d.sourceIndex$jscomp$1++)aD(A[d.sourceIndex$jscomp$1]).subscribe(new qo(M,function(O){return function(f){W[O.sourceIndex$jscomp$1].push(f);W.every(function(J){return J.length})&&(f=W.map(function(J){return J.shift()}),M.next(U?U.apply(null,_.vI(f)):f),W.some(function(J,F){return!J.length&&w[F]})&&M.complete())}}(d),void 0,function(O){return function(){w[O.sourceIndex$jscomp$1]=
!0;
!W[O.sourceIndex$jscomp$1].length&&M.complete()}}(d)));
return function(){W=w=null}}):HL};
zN8=function(H){var U,A,M;return!!H&&typeof H.active==="boolean"&&typeof((U=H.clock)==null?void 0:U.now)==="function"&&((A=H.clock)==null?void 0:A.timeline)!==void 0&&!((M=H.lastMeasurement)==null||!M.timestamp)&&typeof H.equivalentTo==="function"&&typeof H.extrapolateToNow==="function"&&typeof H.extrapolateToTime==="function"&&typeof H.map==="function"&&typeof H.joinWith==="function"};
CFF=function(H){function U(A){return typeof A==="boolean"||typeof A==="string"||typeof A==="number"||A===void 0||A===null}
return U(H)?!0:Array.isArray(H)?H.every(U):typeof H==="object"?Object.keys(H).every(function(A){return typeof A==="string"})&&Object.values(H).every(function(A){return Array.isArray(A)?A.every(U):U(A)}):!1};
ts4=function(H){if(CFF(H))return H;if(zN8(H))return{lastMeasurement:{value:ts4(H.lastMeasurement.value),timestamp:M2(H.lastMeasurement.timestamp,new WL(0,H.lastMeasurement.timestamp.timeline))},active:H.active};try{return JSON.parse(JSON.stringify(H))}catch(U){}return String(H)};
wN=function(H,U){return function(A){return new mf(function(M){return A.subscribe(function(W){H.timeExecution(U,function(){M.next(W)})()},function(W){H.timeExecution(U,function(){M.error(W)})()},function(){H.timeExecution(U,function(){M.complete()})()})})}};
cz7=function(H,U){var A=!1;return new mf(function(M){var W=H.setTimeout(function(){A=!0;M.next(!0);M.complete()},U);
return function(){A||H.clearTimeout(W)}})};
yz8=function(H){H=H.global;if(H.fetchLater)return H.fetchLater.bind(H)};
iF=function(H){return Ys(function(U,A){var M=null,W=!1,w;M=U.subscribe(new qo(A,void 0,function(d){w=aD(H(d,iF(H)(U)));M?(M.unsubscribe(),M=null,w.subscribe(A)):W=!0}));
W&&(M.unsubscribe(),M=null,w.subscribe(A))})};
BN8=function(H,U,A){return function(M,W){var w=A,d=U,O=0;M.subscribe(new qo(W,function(f){var J=O++;d=w?H(d,f,J):(w=!0,f);W.next(d)},void 0,void 0))}};
rzM=function(H){H=H===void 0?null:H;return Ys(function(U,A){var M=!1;U.subscribe(new qo(A,function(W){M=!0;A.next(W)},void 0,function(){M||A.next(H);
A.complete()}))})};
bF=function(){return Ys(function(H,U){H.subscribe(new qo(U,No))})};
dN=function(H){return Ys(function(U,A){U.subscribe(new qo(A,function(){return A.next(H)}))})};
O6=function(H){return H<=0?function(){return HL}:Ys(function(U,A){var M=0;
U.subscribe(new qo(A,function(W){++M<=H&&(A.next(W),H<=M&&A.complete())}))})};
uF=function(H){var U=U===void 0?RD:U;var A;H=(A=H)!=null?A:eNh;return Ys(function(M,W){var w,d=!0;M.subscribe(new qo(W,function(O){var f=U(O);if(d||!H(w,f))d=!1,w=f,W.next(O)}))})};
eNh=function(H,U){return H===U};
$2t=function(H){H=H===void 0?D2F:H;return Ys(function(U,A){var M=!1;U.subscribe(new qo(A,function(W){M=!0;A.next(W)},void 0,function(){return M?A.complete():A.error(H())}))})};
D2F=function(){return new lUK};
ZU=function(){var H=_.QY.apply(0,arguments);return function(U){return skM(U,lL.apply(null,_.vI(H)))}};
GZ7=function(H){return Ys(function(U,A){var M=0;U.subscribe(new qo(A,function(W){H.call(void 0,W,M++,U)||(A.next(!1),A.complete())},void 0,function(){A.next(!0);
A.complete()}))})};
Y6c=function(){return Ys(function(H,U){var A=[];H.subscribe(new qo(U,function(M){A.push(M);1<A.length&&A.shift()},void 0,function(){for(var M=_.b(A),W=M.next();!W.done;W=M.next())U.next(W.value);
U.complete()},function(){A=null}))})};
q67=function(H,U){var A=arguments.length>=2;return function(M){return M.pipe(H?Az(function(W,w){return H(W,w,M)}):RD,Y6c(),A?rzM(U):$2t(function(){return new lUK}))}};
Jz=function(H){var U=sr(H)?H:function(){return H};
return sr()?Ys(function(A,M){var W=U();(void 0)(W).subscribe(M).add(A.subscribe(W))}):function(A){var M=new fF(A,U);
sr(A==null?void 0:A.lift)&&(M.lift=A.lift);M.source=A;M.subjectFactory=U;return M}};
ok=function(H){var U=new KF(H,void 0,void 0);return function(A){return Jz(function(){return U})(A)}};
FI=function(H,U){return Ys(BN8(H,U,arguments.length>=2))};
PL=function(){var H=_.QY.apply(0,arguments),U=$s(H);return Ys(function(A,M){(U?skM(H,A,U):skM(H,A)).subscribe(M)})};
s6=function(H){return Ys(function(U,A){var M=null,W=0,w=!1;U.subscribe(new qo(A,function(d){var O;(O=M)==null||O.unsubscribe();O=W++;aD(H(d,O)).subscribe(M=new qo(A,function(f){return A.next(f)},void 0,function(){M=null;
w&&!M&&A.complete()}))},void 0,function(){(w=!0,!M)&&A.complete()}))})};
nF=function(H,U){U=U===void 0?!1:U;return Ys(function(A,M){var W=0;A.subscribe(new qo(M,function(w){var d=H(w,W++);(d||U)&&M.next(w);!d&&M.complete()}))})};
hNh=function(H,U,A){var M=sr(H)||U||A?{next:H,error:U,complete:A}:H;return M?Ys(function(W,w){W.subscribe(new qo(w,function(d){var O;(O=M.next)==null||O.call(M,d);w.next(d)},function(d){var O;
(O=M.error)==null||O.call(M,d);w.error(d)},function(){var d;
(d=M.complete)==null||d.call(M);w.complete()}))}):RD};
kZ0=function(){var H=_.QY.apply(0,arguments),U=wLN(H);return Ys(function(A,M){for(var W=H.length,w=Array(W),d=H.map(function(){return!1}),O=!1,f={i$jscomp$233:0};f.i$jscomp$233<W;f={i$jscomp$233:f.i$jscomp$233},f.i$jscomp$233++)aD(H[f.i$jscomp$233]).subscribe(new qo(M,function(J){return function(F){w[J.i$jscomp$233]=F;
O||d[J.i$jscomp$233]||(d[J.i$jscomp$233]=!0,(O=d.every(RD))&&(d=null))}}(f),void 0,No));
A.subscribe(new qo(M,function(J){O&&(J=[J].concat(_.vI(w)),M.next(U?U.apply(null,_.vI(J)):J))}))})};
TN_=function(H){var U=vZ4;if(U)for(var A in U)Object.prototype.hasOwnProperty.call(U,A)&&H(U[A],A,U)};
jkE=function(){var H=[];TN_(function(U){H.push(U)});
return H};
Qk8=function(H){try{return!!H&&H.location.href!=null&&IUM(H,"foo")}catch(U){return!1}};
Hpt=function(){return nh&&Nr?Nr.mobile:!Vs_()&&(ph("iPod")||ph("iPhone")||ph("Android")||ph("IEMobile"))};
Vs_=function(){return nh&&Nr?!Nr.mobile&&(ph("iPad")||ph("Android")||ph("Silk")):ph("iPad")||ph("Android")&&!ph("Mobile")||ph("Silk")};
_.N2=function(H){return new xoV(H[0].toLowerCase())};
UuE=function(H){for(var U=_.QY.apply(1,arguments),A=H[0],M=0;M<H.length-1;M++)A+=String(U[M]),A+=H[M+1];U=document.implementation.createHTMLDocument("");M=U.createElement("style");U.head.appendChild(M);U=M.sheet;U.insertRule(A,0);if(U.cssRules.length===1&&(A=U.cssRules[0],A instanceof CSSStyleRule))return new PI(A.cssText.replace(/</g,"\\3C "))};
AD_=function(H){try{return new URL(H,window.document.baseURI)}catch(U){return new URL("about:invalid")}};
MlE=function(H,U){var A=U.createRange();A.selectNode(U.body);H=A$(H);return A.createContextualFragment(Mo(H))};
WP_=function(H){H=H.nodeName;return typeof H==="string"?H:"FORM"};
w8_=function(H){H=H.nodeType;return H===1||typeof H!=="number"};
pF=function(H,U,A){H.setAttribute(U,A)};
X8c=function(H){return H.parts.map(function(U){var A=U.descriptor;return""+U.url+(A?" "+A:"")}).join(" , ")};
_.LF=function(H){var U=_.QY.apply(1,arguments);if(U.length===0)return _.rM(H[0]);for(var A=H[0],M=0;M<U.length;M++)A+=encodeURIComponent(U[M])+H[M+1];return _.rM(A)};
_.Rk=function(H,U){H=_.e3(H).toString();var A=H.split(/[?#]/),M=/[?]/.test(H)?"?"+A[1]:"";return ipK(A[0],M,/[#]/.test(H)?"#"+(M?A[2]:A[1]):"",U)};
ipK=function(H,U,A,M){function W(d,O){d!=null&&(Array.isArray(d)?d.forEach(function(f){return W(f,O)}):(U+=w+encodeURIComponent(O)+"="+encodeURIComponent(d),w="&"))}
var w=U.length?"&":"?";M.constructor===Object&&(M=Object.entries(M));Array.isArray(M)?M.forEach(function(d){return W(d[1],d[0])}):M.forEach(W);
return _.rM(H+U+A)};
du7=function(){var H=ZO(bp4).toString();return _.rM(URL.createObjectURL(new Blob([H],{type:"text/javascript"})))};
_.E6=function(H,U){this.x=H!==void 0?H:0;this.y=U!==void 0?U:0};
Opr=function(H){var U=[],A=0,M;for(M in H)U[A++]=M;return U};
uSh=function(H,U){for(var A in H)if(H[A]==U)return!0;return!1};
Zph=function(H,U,A){for(var M in H)if(U.call(A,H[M],M,H))return M};
fDM=function(H){if(!H||typeof H!=="object")return H;if(typeof H.clone==="function")return H.clone();if(typeof Map!=="undefined"&&H instanceof Map)return new Map(H);if(typeof Set!=="undefined"&&H instanceof Set)return new Set(H);if(H instanceof Date)return new Date(H.getTime());var U=Array.isArray(H)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(H)||H instanceof DataView?{}:new H.constructor(H.length),A;for(A in H)U[A]=fDM(H[A]);return U};
JDN=function(H){var U=arguments.length;if(U==1&&Array.isArray(arguments[0]))return JDN.apply(null,arguments[0]);if(U%2)throw Error("na");for(var A={},M=0;M<U;M+=2)A[arguments[M]]=arguments[M+1];return A};
KPM=function(H){var U=arguments.length;if(U==1&&Array.isArray(arguments[0]))return KPM.apply(null,arguments[0]);for(var A={},M=0;M<U;M++)A[arguments[M]]=!0;return A};
mS=function(H,U,A,M){this.top=H;this.right=U;this.bottom=A;this.left=M};
gN=function(H,U,A,M){this.left=H;this.top=U;this.width=A;this.height=M};
olM=function(H){H=H.global;if(H.PendingGetBeacon)return H.PendingGetBeacon};
xZ=function(H){return function(U){return U.pipe(FPF(H,Jz(new ak)))}};
zZ=function(H){return function(U){return U.pipe(FPF(H,ok(1)))}};
FPF=function(H,U){function A(M){return new mf(function(W){return M.subscribe(function(w){CF(H,function(){return void W.next(w)},3)},function(w){CF(H,function(){return void W.error(w)},3)},function(){CF(H,function(){return void W.complete()},3)})})}
return Er(A,iFN(),U,h$(),A)};
nlc=function(H){var U=PVM(H);return U===null?new cL(null):U.pipe(ks(function(A){A=A.serialize();if(slc)A=_.Mr.btoa(A);else{for(var M=[],W=0,w=0;w<A.length;w++){var d=A.charCodeAt(w);d>255&&(M[W++]=d&255,d>>=8);M[W++]=d}A=_.I_(M)}return A}),O6(1),zZ(H.queue))};
NGM=function(H){var U=U===void 0?{}:U;if(typeof Event==="function")return new Event(H,U);if(typeof document!=="undefined"){var A=document.createEvent("CustomEvent");A.initCustomEvent(H,U.bubbles||!1,U.cancelable||!1,U.detail);return A}throw Error();};
SAc=function(H){return typeof H==="string"?document.getElementById(H):H};
LPF=function(H){var U=!1;U=U===void 0?!1:U;if(H.tagName==="IMG"){if(H.complete&&(!H.naturalWidth||!H.naturalHeight))return!0;var A;if(U&&((A=H.style)==null?void 0:A.display)==="none")return!0}var M,W;return p8M.test((M=H.getAttribute("width"))!=null?M:"")&&p8M.test((W=H.getAttribute("height"))!=null?W:"")};
RF4=function(H,U){if(H.tagName==="IMG")return H.naturalWidth&&H.naturalHeight?!0:!1;try{if(H.readyState)var A=H.readyState;else{var M,W;A=(M=H.contentWindow)==null?void 0:(W=M.document)==null?void 0:W.readyState}return A==="complete"}catch(w){return U===void 0?!1:U}};
Elt=function(H){H||(H=function(U,A,M){U.addEventListener(A,M)});
return H};
xur=function(H,U){var A=mu_();A=A===void 0?new glE:A;if(H=SAc(H)){var M=Elt(M);for(var W=!1,w=function(z){W||(W=!0,U(z))},d,O=2,f=0;f<aDN.length;++f)if(aDN[f]===H.tagName){O=3;
d=[H];break}d||(d=H.querySelectorAll(aDN.join(",")));var J=0,F=0,P=!0,n=H=!1;f={};for(var N=0;N<d.length;f={isImg:void 0},N++){var L=d[N];if(!LPF(L))if(f.isImg=L.tagName==="IMG",RF4(L,A.crossDomainLoadedDefault))H=!0,f.isImg&&(P=!0);else{J++;var m=function(z){return function(c){J--;!J&&P&&w(O);z.isImg&&(c=c&&c.type==="error",F--,c||(P=!0),!F&&n&&P&&w(O))}}(f);
M(L,"load",m);f.isImg&&(F++,M(L,"error",m))}}F===0&&(P=!0);d=null;d=_.Mr.document.readyState==="complete";if(J===0&&!H&&d)O=5;else if(J||!H){M(_.Mr,"load",function(){!A.pendingImagesBlockLoad||!F&&P?w(4):n=!0});
return}w(O)}};
zFt=function(H,U,A){if(H)for(var M=0;H!=null&&M<500&&!A(H);++M)H=U(H)};
CVF=function(H,U){zFt(H,function(A){try{return A===A.parent?null:A.parent}catch(M){}return null},U)};
tlc=function(H,U){if(H.tagName=="IFRAME")U(H);else{H=H.querySelectorAll("IFRAME");for(var A=0;A<H.length&&!U(H[A]);++A);}};
cDM=function(H){return(H=H.ownerDocument)&&(H.parentWindow||H.defaultView)||null};
yDh=function(H,U,A){try{var M=JSON.parse(A.data)}catch(d){}if(typeof M==="object"&&M&&M.type==="creativeLoad"){var W=cDM(H);if(A.source&&W){var w;CVF(A.source,function(d){try{if(d.parent===W)return w=d,!0}catch(O){}});
w&&tlc(H,function(d){if(d.contentWindow===w)return U(M),!0})}}};
BG4=function(H){return typeof H==="string"?document.getElementById(H):H};
$uE=function(){var H={};return H[0]=_.LF(rDF,"current"),H[1]=_.LF(eFN),H[2]=_.LF(DuE),H};
yT=function(H,U){return H.left===U.left&&H.top===U.top&&H.width===U.width&&H.height===U.height};
lD7=function(H,U){return{left:Math.max(H.left,U.left),top:Math.max(H.top,U.top),width:Math.max(0,Math.min(H.left+H.width,U.left+U.width)-Math.max(H.left,U.left)),height:Math.max(0,Math.min(H.top+H.height,U.top+U.height)-Math.max(H.top,U.top))}};
Gg4=function(H,U){return{left:Math.round(H.left+U.x),top:Math.round(H.top+U.y),width:H.width,height:H.height}};
YAc=function(H,U,A,M,W,w,d){var O="";H&&(O+=H+":");A&&(O+="//",U&&(O+=U+"@"),O+=A,M&&(O+=":"+M));W&&(O+=W);w&&(O+="?"+w);d&&(O+="#"+d);return O};
_.BL=function(H){return H.match(qAh)};
_.rN=function(H,U){return H?U?decodeURI(H):decodeURIComponent(H):H};
hF0=function(H){H=_.BL(H)[1]||null;!H&&_.Mr.self&&_.Mr.self.location&&(H=_.Mr.self.location.protocol.slice(0,-1));return H?H.toLowerCase():""};
_.es=function(H){return _.rN(_.BL(H)[3]||null,!0)};
_.DU=function(H){return _.rN(_.BL(H)[5]||null,!0)};
_.kg8=function(H){var U=H.indexOf("#");return U<0?null:H.slice(U+1)};
vlK=function(H){H=_.BL(H);return YAc(H[1],H[2],H[3],H[4])};
_.TGE=function(H){H=_.BL(H);return YAc(H[1],null,H[3],H[4])};
_.$Z=function(H){H=_.BL(H);return YAc(null,null,null,null,H[5],H[6],H[7])};
_.lF=function(H){var U=H.indexOf("#");return U<0?H:H.slice(0,U)};
GZ=function(H,U){H=_.BL(H);U=_.BL(U);return H[3]==U[3]&&H[1]==U[1]&&H[4]==U[4]};
jlh=function(H,U){if(H){H=H.split("&");for(var A=0;A<H.length;A++){var M=H[A].indexOf("="),W=null;if(M>=0){var w=H[A].substring(0,M);W=H[A].substring(M+1)}else w=H[A];U(w,W?YZ(W):"")}}};
IDE=function(H){var U=H.indexOf("#");U<0&&(U=H.length);var A=H.indexOf("?");if(A<0||A>U){A=U;var M=""}else M=H.substring(A+1,U);return[H.slice(0,A),M,H.slice(U)]};
QlM=function(H,U){return U?H?H+"&"+U:U:H};
_.VlN=function(H,U){if(!U)return H;H=IDE(H);H[1]=QlM(H[1],U);return H[0]+(H[1]?"?"+H[1]:"")+H[2]};
_.HWh=function(H,U,A){if(Array.isArray(U))for(var M=0;M<U.length;M++)_.HWh(H,String(U[M]),A);else U!=null&&A.push(H+(U===""?"":"="+_.q2(U)))};
_.hz=function(H){var U=[],A;for(A in H)_.HWh(A,H[A],U);return U.join("&")};
_.kZ=function(H,U){U=_.hz(U);return _.VlN(H,U)};
_.vL=function(H,U,A){A=A!=null?"="+_.q2(A):"";return _.VlN(H,U+A)};
Ugc=function(H,U,A,M){for(var W=A.length;(U=H.indexOf(A,U))>=0&&U<M;){var w=H.charCodeAt(U-1);if(w==38||w==63)if(w=H.charCodeAt(U+W),!w||w==61||w==38||w==35)return U;U+=W+1}return-1};
_.TZ=function(H,U){var A=H.search(A8N),M=Ugc(H,0,U,A);if(M<0)return null;var W=H.indexOf("&",M);if(W<0||W>A)W=A;M+=U.length+1;return YZ(H.slice(M,W!==-1?W:0))};
_.js=function(H,U){for(var A=H.search(A8N),M=0,W,w=[];(W=Ugc(H,M,U,A))>=0;)w.push(H.substring(M,W)),M=Math.min(H.indexOf("&",W)+1||A,A);w.push(H.slice(M));return w.join("").replace(MvV,"$1")};
_.Ik=function(H,U,A){return _.vL(_.js(H,U),U,A)};
WKM=function(H){var U=IDE(window.location.href),A=U[1],M=[];A&&A.split("&").forEach(function(W){var w=W.indexOf("=");w=w>=0?W.slice(0,w):W;H.hasOwnProperty(w)||M.push(W)});
U[1]=QlM(M.join("&"),_.hz(H));return U[0]+(U[1]?"?"+U[1]:"")+U[2]};
wJ7=function(H,U,A){if(H&&U!==null&&U!=U.top){if(!U.top)return new _.QT(-12245933,-12245933);U=U.top}try{return(A===void 0?0:A)?(new _.QT(U.innerWidth,U.innerHeight)).round():_.VT(U).round()}catch(M){return new _.QT(-12245933,-12245933)}};
XJt=function(H,U,A){try{if(H){if(!U.top)return new mS(-12245933,-12245933,-12245933,-12245933);U=U.top}var M=wJ7(H,U,A),W=M.height,w=M.width;if(w===-12245933)return new mS(w,w,w,w);var d=H8(AD(U.document)),O=d.x,f=d.y;return new mS(f,O+w,f+W,O)}catch(J){return new mS(-12245933,-12245933,-12245933,-12245933)}};
iWV=function(H){var U;return(U=H.google_tag_data)!=null?U:H.google_tag_data={}};
bWF=function(H){var U,A;return typeof((U=H.navigator)==null?void 0:(A=U.userAgentData)==null?void 0:A.getHighEntropyValues)==="function"};
OWh=function(H){if(!bWF(H))return null;var U=iWV(H);if(U.uach_promise)return U.uach_promise;H=H.navigator.userAgentData.getHighEntropyValues(dgM).then(function(A){U.uach!=null||(U.uach=A);return A});
return U.uach_promise=H};
S5c=function(H){var U;return uG8(ZWV(fTh(J80(KKh(oRh(FK_(P9N(sc0(new nRh,H.architecture||""),H.bitness||""),H.mobile||!1),H.model||""),H.platform||""),H.platformVersion||""),H.uaFullVersion||""),((U=H.fullVersionList)==null?void 0:U.map(function(A){var M=new NOc;M=_.Mu(M,1,A.brand);return _.Mu(M,2,A.version)}))||[]),H.wow64||!1)};
pJ8=function(H){var U,A;return(A=(U=OWh(H))==null?void 0:U.then(function(M){return S5c(M)}))!=null?A:null};
LKN=function(H,U){return new mf(function(A){var M=!1,W=Array(U.length);W.fill(void 0);var w=new Set,d=new Set,O=function(P,n){H.running?(W[n]=P,w.add(n),M||(M=!0,CF(H,function(){M=!1;A.next(_.$c(W))},1))):A.error(new W8(n))},f=function(P,n){d.add(n);
w.add(n);CF(H,function(){A.error(P)},1)},J=function(P){d.add(P);
CF(H,function(){d.size===U.length&&A.complete()},1)},F=U.map(function(P,n){return P.subscribe(function(N){return void O(N,n)},function(N){return void f(N,n)},function(){return void J(n)})});
return function(){F.forEach(function(P){return void P.unsubscribe()})}})};
mgE=function(H,U,A){function M(){if(U.debugChannel){var z=U.debugChannel,c=z.next;var C={creativeId:U.debugNames.getName(A),requiredSignals:W,signals:Object.assign({},w),hasPrematurelyCompleted:d,errorMessage:O,erroredSignalKey:f};C={specMajor:2,specMinor:0,specPatch:0,timestamp:M2(U.timeProvider.now(),new WL(0,U.timeProvider.timeline)),instanceId:U.debugNames.getName(U.symbol),creativeState:C};c.call(z,C)}}
for(var W=Object.keys(H),w={},d=!1,O=null,f=null,J={},F=new Set,P=[],n=[],N=_.b(W),L=N.next(),m={};!L.done;m={key$jscomp$396:void 0},L=N.next())m.key$jscomp$396=L.value,L=H[m.key$jscomp$396],L instanceof cL?(J[m.key$jscomp$396]=L.value,F.add(m.key$jscomp$396),U.debugChannel&&(w[String(m.key$jscomp$396)]=ts4(L.value))):(L=L.pipe(uF(function(z,c){return zN8(z)||zN8(c)?!1:z===c}),ks(function(z){return function(c){U.debugChannel&&(w[String(z.key$jscomp$396)]=ts4(c),M());
var C={};return C[z.key$jscomp$396]=c,C}}(m)),iF(function(z){return function(c){if(c instanceof W8)throw new R8_(String(z.key$jscomp$396));
throw c;}}(m)),hNh(function(z){return function(){F.add(z.key$jscomp$396)}}(m),function(z){return function(c){f=String(z.key$jscomp$396);
O=String(c);M()}}(m),function(z){return function(){F.has(z.key$jscomp$396)||(d=!0,M())}}(m))),n.push(m.key$jscomp$396),P.push(L));
(H=Object.keys(w).length>0)&&M();N=LKN(U.queue,P).pipe(iF(function(z){if(z instanceof W8)throw new ERV(String(n[z.inputObservableIndex]));throw z;}),ks(function(z){return Object.freeze(Object.assign.apply(Object,[{},
J].concat(_.vI(z))))}));
return(P=P.length>0)&&H?U6(lL(Object.freeze(J)),N):P?N:lL(Object.freeze(J))};
gR8=function(H,U,A,M,W){return H.performanceMonitor.timeExecution.bind(H.performanceMonitor)(733,function(){var w={};try{return U.pipe(iF(function(d){M(Object.assign({},w,{error:d}));return HL}),Qb(function(d){try{var O=A(H,d)}catch(J){return M(Object.assign({},w,{error:J instanceof Error?J:String(J)})),HL}var f={};
return mgE(O,H,d.symbol).pipe(hNh(function(J){f=J}),ok(1),h$()).pipe(W,iF(function(J){M(Object.assign({},f,{error:J}));
return HL}),ZU(void 0),ks(function(){return!0}))})).pipe(FI(function(d){return d+1},0),iF(function(d){M(Object.assign({},w,{error:d}));
return HL}))}catch(d){return M(Object.assign({},w,{error:d})),HL}})()};
wG=function(H){var U=new Map;if(typeof H!=="object"||H===null)return U;Object.values(H).forEach(function(A){A&&typeof A.extrapolateToNow==="function"&&(U.has(A.clock.timeline)||U.set(A.clock.timeline,A.clock.now()))});
return U};
aTc=function(H,U){return typeof H==="string"?encodeURIComponent(H):typeof H==="number"?String(H):Array.isArray(H)?H.map(function(A){return aTc(A,U)}).join(","):H instanceof WL?H.toString():H&&typeof H.extrapolateToNow==="function"?aTc(H.extrapolateUsingTimestampMap(U).value,U):H===!0?"1":H===!1?"0":H===void 0||H===null?null:H instanceof xgF?z8c(H):[H.top,
H.left,H.top+H.height,H.left+H.width].join()};
C97=function(H,U){H=Object.entries(H).map(function(A){var M=_.b(A);A=M.next().value;M=M.next().value;M=aTc(M,U);return M===null?"":A+"="+M}).filter(function(A){return A!==""});
return H.length?H.join("&"):""};
y8M=function(H,U){var A=tvt,M=c8V;U=U===void 0?.01:U;return function(W){U>0&&Math.random()<=U&&(H.global.HTMLFencedFrameElement&&H.global.fence&&typeof H.global.fence.reportEvent==="function"&&H.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),W=Object.assign({},W,{errorMessage:W.error instanceof Error&&W.error.message?W.error.message:String(W.error),errorStack:W.error instanceof Error&&W.error.stack?String(W.error.stack):null,errorName:W.error instanceof
Error&&W.error.name?String(W.error.name):null,errorContext:String(H.performanceMonitor.timedFunctionContext),errorEscapedQueryId:W.escapedQueryId}),A(Object.assign({},W,{payloadMapper:function(){return function(w){try{return M(Object.assign({},w))}catch(d){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),wG(W)).forEach(function(w){H.beaconFactory.makeBeacon(w).sendNow()}))}};
BOK=function(){var H=_.QY.apply(0,arguments);return function(U){var A=U.pipe(ok(1),h$());U=H.map(function(M){return A.pipe(M,ZU(!0))});
return Tj(U).pipe(O6(1),bF())}};
r8h=function(){var H=_.QY.apply(0,arguments);return function(U){var A=U.pipe(ok(1),h$());U=H.map(function(M){return A.pipe(M,ZU(!0))});
return U6.apply(null,_.vI(U)).pipe(O6(1),bF())}};
e8M=function(H,U){return function(A){var M=A.pipe(ok(1),h$());A=M.pipe(H,ZU(!0));M=M.pipe(Er(U,ok(),h$()),ZU(!0));A=Tj([A,M]);return aU4(A,M).pipe(O6(1),bF())}};
Dg_=function(H,U,A){A(!0)};
$g_=function(H,U){return Er(s6(function(A){var M=H(A),W=U(A),w={};return M&&W&&w?new mf(function(d){W(M,w,function(O){d.next(Object.assign({},A,{canEmit:O}));d.complete()});
return function(){}}):XS}),Az(function(A){return A.canEmit}))};
lT0=function(H){var U={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(A){return A.pipe(s6(function(M){return new mf(function(W){function w(){O.disconnect();f.unsubscribe()}
var d=H.MutationObserver;if(d&&M.ref!==void 0){var O=new d(function(J){W.next(J)});
O.observe(M.ref,U);var f=M.JSC$9663_released.subscribe(w);return w}})}))}};
Grc=function(H){if(H.measurementDeferralState===3)return null;if(H.timeOnScreenReason!==void 0){var U=H.creativeFound===!1?"n":null;if(U!==null)return U}return H.geometricMeasurementErrors instanceof iV?"msf":H.contextValidationErrors instanceof bV?"c":H.contextVisibilityKnown===!1?"pv":H.geometricMeasurementErrors||H.contextValidationErrors?"x":null};
q5c=function(H,U){return H.replace(Y5F,function(A,M){try{var W=_.dG.get(U,M);if(W==null||W.toString()==null)return A;W=W.toString();if(W==""||!_.b7(W==null?"":String(W)))return encodeURIComponent(W).replace(/%2C/g,",")}catch(w){}return A})};
h84=function(H,U){var A=Object.assign({},H),M=H.userAgentClientHints;A=(delete A.userAgentClientHints,A);A=H.payloadMapper(A);var W=C97(A,U);return _.OA(H.urlPrefixes,function(w){var d="";typeof M==="string"&&(d="&"+C97({uach:M},U));var O={};return q5c(w,(O.VIEWABILITY=W,O))+d})};
tvt=function(H,U){var A=H.payloadMapper(H),M=C97(A,U);return M?_.OA(H.urlPrefixes,function(W){W=W.indexOf("?")>=0?W:W+"?";W="?&".indexOf(W.slice(-1))>=0?W:W+"&";return W+M}):H.urlPrefixes};
krF=function(){return Er(Az(function(H){return H!==void 0}),ks(function(H){return H}))};
vRM=function(H){return Er(ks(function(){return!0}),PL(!1),zZ(H))};
TOM=function(H){return H.length<=0?HL:Tj(H.map(function(U){var A=0;return U.pipe(ks(function(M){return{index:A++,value:M}}))})).pipe(Az(function(U){return U.every(function(A){return A.index===U[0].index})}),ks(function(U){return U.map(function(A){return A.value})}))};
jct=function(H,U){H.currentState&&(H.previousState=H.currentState);H.currentState=U;H.previousState&&H.previousState.value?(U=Math.max(0,M2(U.timestamp,H.previousState.timestamp)),H.totalTime+=U,H.consecutiveTime+=U):H.consecutiveTime=0;return H};
ITh=function(){return Er(FI(jct,{totalTime:0,consecutiveTime:0}),ks(function(H){return H.totalTime}))};
Qc8=function(){return Er(FI(jct,{totalTime:0,consecutiveTime:0}),ks(function(H){return H.consecutiveTime}))};
Vvh=function(H,U){return function(A){return TOM(U.map(function(M){return A.pipe(H(M))}))}};
Hd7=function(){var H;return Er(hNh(function(U){return void(H=U.timestamp)}),Qc8(),ks(function(U){return{timestamp:H,
value:Math.round(U)}}))};
UfF=function(H,U){return yT(H.topWindowViewportExternalGeometry,U.topWindowViewportExternalGeometry)&&yT(H.elementGeometry,U.elementGeometry)&&yT(H.exposedViewportLocalGeometry,U.exposedViewportLocalGeometry)&&yT(H.intersectionGeometry,U.intersectionGeometry)&&H.elementGeometrySourceName===U.elementGeometrySourceName&&H.measurementRequests===U.measurementRequests&&H.viewportGeometrySourceName===U.viewportGeometrySourceName&&H.viewportLocalAppOffset.x===U.viewportLocalAppOffset.x&&H.viewportLocalAppOffset.y===
U.viewportLocalAppOffset.y};
weN=function(H,U){return function(A){return function(M){var W=M.pipe(Jz(new ak),h$());M=A.element.pipe(uF());W=W.pipe(ks(function(w){return w.value}));
return Tj([M,W,U]).pipe(ks(function(w){var d=_.b(w);w=d.next().value;var O=d.next().value;d=d.next().value;if(w.ref===void 0)var f={top:0,left:0,width:0,height:0};else{f=w.ref.getBoundingClientRect();var J=w.ref,F=H.global,P=new _.E6(0,0),n=uV(_.ZD(J));if(IUM(n,"parent")){do{if(n==F)var N=_.fp(J);else N=Aac(J),N=new _.E6(N.left,N.top);P.x+=N.x;P.y+=N.y}while(n&&n!=F&&n!=n.parent&&(J=n.frameElement)&&(n=n.parent))}f={top:P.y,left:P.x,width:f.width,height:f.height}}f=Gg4(f,O.viewportLocalAppOffset);
F=lD7(f,O.exposedViewportLocalGeometry);P=H.timeProvider.now();n=Object;J=n.assign;if(d!==2||H.inCrossDomainIframe||F.width<=0||F.height<=0)var L=!1;else try{var m=H.document.elementFromPoint(F.left+F.width/2,F.top+F.height/2);L=m?!MMK(m,w):!1}catch(z){L=!1}return{timestamp:P,value:J.call(n,{},O,{elementGeometrySourceName:"geo",intersectionGeometry:L?W4N.intersectionGeometry:F,elementGeometry:f})}}),xZ(H.queue))}}};
MMK=function(H,U,A){A=A===void 0?0:A;return H.ref===void 0||U.ref===void 0?!1:H.ref===U.ref||_.Kp(U.ref,function(M){return M===H.ref})?!0:U.ref.ownerDocument&&U.ref.ownerDocument.defaultView&&U.ref.ownerDocument.defaultView===U.ref.ownerDocument.defaultView.top?!1:A<10&&U.ref.ownerDocument&&U.ref.ownerDocument.defaultView&&U.ref.ownerDocument.defaultView.frameElement?MMK(H,new ol(U.ref.ownerDocument.defaultView.frameElement),A+1):!0};
bd0=function(H){return function(U){return U.pipe(H.ResizeObserver?Xe0(H):idh(H),ok(1),h$())}};
Xe0=function(H){return function(U){return U.pipe(s6(function(A){var M=H.ResizeObserver;if(!M||A.ref===void 0)return lL(W4N.elementGeometry);var W=(new mf(function(w){function d(){A.ref!==void 0&&O.unobserve(A.ref);O.disconnect();f.unsubscribe()}
if(A.ref===void 0)return w.complete(),function(){};
var O=new M(function(J){J.forEach(function(F){w.next(F)})});
O.observe(A.ref);var f=A.JSC$9663_released.subscribe(d);return d})).pipe(wN(H.performanceMonitor,736),ks(function(w){return w.contentRect}));
return U6(lL(A.ref.getBoundingClientRect()),W)}),uF(yT))}};
idh=function(H){return function(U){var A=U.pipe(lT0(H)),M=H.onResize;A=U6(U.pipe(ks(function(){return NGM("resize")})),A,M);
return Tj(U,A).pipe(wN(H.performanceMonitor,737),ks(function(W){W=_.b(W).next().value;return W.ref===void 0?void 0:W.ref.getBoundingClientRect()}),krF(),uF(yT))}};
u$K=function(H,U){var A=dfc(H,U).pipe(ok(1),h$());return function(M){return function(W){W=W.pipe(s6(function(w){return w.element}),uF());
return Tj([A,W]).pipe(s6(function(w){var d=_.b(w);w=d.next().value;d=d.next().value;return Odc(H,w.intersectionObserver,bd0(H),w.observations,M,w.flushRecords,d)}),xZ(H.queue))}}};
ZdK=function(H){return ks(function(U){return U.value.viewportGeometrySourceName!=="nio"?U:Object.assign({},U,{value:Object.assign({},U.value,{exposedViewportLocalGeometry:FS(H,!0),topWindowViewportExternalGeometry:FS(H,!0)})})})};
fjE=function(H,U){return lL(U).pipe(H,ks(function(){return U}))};
dfc=function(H,U){return H.timeProvider.timeline!==Jat?Gj(new iV(2)):H.MutationObserver?typeof IntersectionObserver==="undefined"?Gj(new iV(0)):(new mf(function(A){var M=new ak,W=new P8(M.next.bind(M),{threshold:[].concat(_.vI(U))});A.next({observations:M.pipe(wN(H.performanceMonitor,735)),intersectionObserver:W,flushRecords:function(w){w=W.takeRecords(w);w.length>0&&M.next(w)}})})).pipe(O6(1),ok(1),h$()):Gj(new iV(1))};
K4t=function(H){return IOM(H.sort(function(U,A){return U.time-A.time}),XLV)};
Odc=function(H,U,A,M,W,w,d){return new mf(function(O){function f(){L||(L=!0,d.ref!==void 0&&U.unobserve(W,d.ref),F.unsubscribe(),N.unsubscribe(),n.unsubscribe(),m.unsubscribe())}
if(d.ref!==void 0){opN(U,W);U.observe(W,d.ref);var J=new sA({timestamp:H.timeProvider.now(),value:Object.assign({},W4N,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),F=M.pipe(Qb(function(z){return K4t(z)}),Az(function(z){return z.target===d.ref}),ks(function(z){return{timestamp:new WL(z.time,Jat),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:z.rootBounds||np,topWindowViewportExternalGeometry:z.rootBounds||FS(H,!0),measurementRequests:P,elementGeometrySourceName:"nio",intersectionGeometry:z.intersectionRect,elementGeometry:z.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:z.isIntersecting,isV2Visible:z.isVisible}}}),Jz(J),h$()).subscribe(O),P=new ak,n=P.subscribe(function(){w(W);
O.next({timestamp:H.timeProvider.now(),value:J.value.value});d.ref!==void 0&&(U.unobserve(W,d.ref),U.observe(W,d.ref))}),N=fjE(A,d).subscribe(function(){P.next()}),L=!1,m=d.JSC$9663_released.subscribe(function(){return f()});
return f}})};
F48=function(H,U){var A=H.getOnBackgrounded().pipe(ks(function(){return"b"}));
return aU4(U,A).pipe(O6(1),zZ(H.queue))};
Nu=function(H){return function(U){var A;return U.pipe(hNh(function(M){return void(A=M.timestamp)}),ks(function(M){return M.value}),H,ks(function(M){return{timestamp:A,
value:M}}))}};
PBV=function(H){return H.intersectionGeometry.width*H.intersectionGeometry.height/(H.elementGeometry.width*H.elementGeometry.height)};
Sl=function(H,U,A){A=A===void 0?function(M,W){return M===W}:A;
return H.timestamp.equals(U.timestamp)&&A(H.value,U.value)};
Lp=function(H,U){return U.pipe(ks(function(A){return new pp(H.timeProvider,{timestamp:H.timeProvider.now(),value:A})}))};
sn_=function(H){return function(U){return U.pipe(kZ0(H),ks(function(A){var M=_.b(A);A=M.next().value;M=M.next().value;var W=A.value;return{timestamp:A.timestamp,value:W>=1?!0:W<=0?!1:W>=M}}))}};
NPc=function(){return Er(Az(function(H,U){return U>0}),npc,PL(-1),uF())};
Sm4=function(H,U,A){return H?Tj([U,A]).pipe(Az(function(M){var W=_.b(M);M=W.next().value;W=W.next().value;return M.timestamp.equals(W.timestamp)}),ks(function(M){var W=_.b(M);
M=W.next().value;W=W.next().value;return M.value>W.value?M:W})):U};
RkF=function(H){return function(U){var A=U.pipe(peN),M=U.pipe(L4F);return H instanceof mf?H.pipe(s6(function(W){return Sm4(W,A,M)})):Sm4(H.value,A,M)}};
ya0=function(H,U,A,M){var W=M.geometryIsOccluded,w=M.exposureThreshold,d=M.wasLargeAdAtRender,O=M.allowLargeAdThreshold,f=M.largeAdExposureThreshold,J=M.mayUseViewportShareExposure,F=M.hasMeasurementStarted;M=M.useIntersectionObserverV2;U=Ep4(H,A,U);A=mfV(H,A);M=gpM(U,M);var P=aj4(H,W,J,U),n=P.pipe(ks(function(D){return D.value}),uF(),zZ(H),FI(function(D,h){return Math.max(D,h)},0)),N=P.pipe(ks(function(D){return D.value}),NPc(),zZ(H)),L=U.pipe(xfV,ks(function(D){return D.value}),O6(2),uF(),zZ(H));
d=zkN(H,U,d,O);var m=d.pipe(PL(!1),uF(),ks(function(D){return D?f:w}));
O=P.pipe(sn_(m),uF(),zZ(H));var z=Tj([O,U]).pipe(Az(function(D){var h=_.b(D);D=h.next().value;h=h.next().value;return D.timestamp.equals(h.timestamp)}),ks(function(D){var h=_.b(D);
D=h.next().value;h=h.next().value;return{visible:D.value,geometry:h.value.elementGeometry}}),FI(function(D,h){return!h.visible&&D.visible?D:h},{visible:!1,
geometry:np}),ks(function(D){return D.geometry}),PL(np),zZ(H),uF(yT));
J=J instanceof mf?J.pipe(uF(),dN()):XS;m=Tj([J,m]).pipe(dN());var c=U.pipe(Az(function(D){return D.value.viewportGeometrySourceName!=="ns"&&D.value.elementGeometrySourceName!=="ns"}),FI(function(D){return D+1},0),PL(0),zZ(H)),C=A.pipe(dN(!0),PL(!1),zZ(H));
C=Tj([F,C]).pipe(ks(function(D){var h=_.b(D);D=h.next().value;h=h.next().value;return D&&!h}),zZ(H));
var v=U.pipe(CBV,uF()),Y=v.pipe(ks(function(D){return D.value}),FI(function(D,h){return Math.max(D,h)},0),uF(),zZ(H));
H=v.pipe(ks(function(D){return D.value}),NPc(),zZ(H));
return{shouldResetExposureSignals:J,shouldResetViewabilitySignals:m,geometrySignals:{readyGeometryWithDefault:U,measurementStrategy:U.pipe(tME),creativePosition:z.pipe(uF(yT)),visible:O.pipe(uF(Sl)),timestampedExposure:P.pipe(uF(Sl)),maximumExposure:n,minimumExposure:N,browserSize:U.pipe(cah,uF(_.jN)),timestampedScreenShare:v,maxScreenShare:Y,minScreenShare:H,geometricMeasurementErrors:A,measurementRequests:U.pipe(ks(function(D){return D.value.measurementRequests})),
isLargeAd:d,geometryIsOccluded:W,hasMeasurementStarted:F,geometryMeasurable:C,validMeasurementCount:c,loadTimeExposure:L,v2VisibilityBitVector:M}}};
mfV=function(H,U){return U.pipe(Az(function(){return!1}),ks(function(A){return A}),iF(function(A){return EA(new cL(A),H)}))};
Ep4=function(H,U,A){return U.pipe(m2r(XS),zZ(H)).pipe(uF(function(M,W){return Sl(M,W,UfF)}),PL({timestamp:A.now(),
value:W4N}),zZ(H))};
aj4=function(H,U,A,M){A=M.pipe(RkF(A),Nu(ks(function(W){return Math.round(W*100)/100})),zZ(H));
return U instanceof cL?A:Tj([A,U]).pipe(ks(function(W){var w=_.b(W);W=w.next().value;w=w.next().value;return{timestamp:w.timestamp.maximum(W.timestamp),value:w.value?0:W.value}}),uF(Sl),zZ(H))};
zkN=function(H,U,A,M){U=[U.pipe(ks(function(W){return W.value.elementGeometry.width*W.value.elementGeometry.height>=242500}))];
A instanceof mf&&U.push(A.pipe(ks(function(W){return!!W})));
A=Tj(U);return M?A.pipe(ks(function(W){return W.some(function(w){return w})}),PL(!1),uF(),zZ(H)):EA(new cL(!1),H)};
gpM=function(H,U){H=Tj([H,U]).pipe(ks(function(W){var w=_.b(W);W=w.next().value;if(w.next().value&&W.value.isIntersecting)return W.value.isV2Visible}),uF());
var A=H.pipe(ks(function(W){return W===void 0?!0:W}),FI(function(W,w){return W||!w},!1)),M=H.pipe(FI(function(W,w){return w===void 0?W:w?!1:W!=null?W:!0},void 0),ks(function(W){return!!W}));
return Tj([U,x2M(H,A,M)]).pipe(ks(function(W){var w=_.b(W);W=w.next().value;var d=_.b(w.next().value);w=d.next().value;var O=d.next().value;d=d.next().value;var f=0;if(!W)return 0;if(w===void 0)return 16;w&&(f|=1);w||(f|=2);O&&(f|=4);d&&(f|=8);return f}))};
ljE=function(H,U,A,M,W){var w=BPV.timeThresholdMs;var d=d===void 0?new raN(U,M):d;return(new mf(function(O){var f=A.pipe(PL(void 0),s6(function(){return ekh(W)})).pipe(ks(function(J){var F=J.value;
J=J.timestamp;var P=F.visible;F=F.consecutiveViewTime;var n=F>=w;n||!P?DfV(d):(J=Math.max(0,M2(U.now(),J)),$ft(d,Math.max(0,w-F-J)));return n}),FI(function(J,F){return F||J},!1),uF()).subscribe(O);
return function(){d.dispose();f.unsubscribe()}})).pipe(nF(function(O){return!O},!0),zZ(H))};
ekh=function(H){return TOM([H,H.pipe(Hd7())]).pipe(ks(function(U){var A=_.b(U);U=A.next().value;A=A.next().value;return{timestamp:U.timestamp,value:{visible:U.value,consecutiveViewTime:A.value}}}),uF(function(U,A){return Sl(U,A,function(M,W){return M.consecutiveViewTime===W.consecutiveViewTime&&M.visible===W.visible})}))};
Gi4=function(){return Er(Qc8(),FI(function(H,U){return Math.max(H,U)},0),ks(function(H){return Math.round(H)}))};
Ym_=function(H){return Er(sn_(lL(H)),Gi4())};
qm0=function(H,U){return U instanceof mf?U.pipe(s6(function(A){return(A=A?15:null)?Gj(new iV(A)):H})):(U=U.value?15:null)?Gj(new iV(U)):H};
hkc=function(H){var U=new iV(13);if(H.length<1)return{chain:HL,capturedErrors:HL};var A=new ak,M=H[0];return{chain:H.slice(1).reduce(function(W,w){return W.pipe(iF(function(d){A.next(d);return w}))},M).pipe(iF(function(W){A.next(W);
return Gj(U)}),Jz(new ak),h$()),
capturedErrors:A}};
kiM=function(H,U){var A=H.pipe(Jz(new ak),h$());return s6(function(M){return A.pipe(U(M))})};
TPN=function(H,U){if(H.inCrossDomainIframe)return Gj(new iV(6));var A=new ak;return U6(lL({}),U,A).pipe(ks(function(){return{timestamp:H.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:vp0(H),topWindowViewportExternalGeometry:FS(H,!0),measurementRequests:A,viewportLocalAppOffset:{x:0,y:0}}}}),xZ(H.queue))};
vp0=function(H){var U=FS(H,!1);if(!H.inIframe||!Qk8(H.global.parent)||H.global.parent===H.global)return U;var A=new gG(H.global.parent,H.debugChannel);A.beaconFactory=H.beaconFactory;A=vp0(A);H=H.global.frameElement.getBoundingClientRect();return lD7(Gg4(lD7(A,H),{x:U.left-H.left,y:U.top-H.top}),U)};
jnK=function(H){if(H.prerendering)return 3;var U;return(U={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[H.visibilityState||H.webkitVisibilityState||H.mozVisibilityState||""])!=null?U:0};
Ijt=function(H){return H.document.JSC$9674_onVisibilityChange.pipe(ks(function(U){return U==="visible"}),uF(),zZ(H.queue))};
QnE=function(H,U,A){var M;return U.pipe(uF(),s6(function(W){return A.pipe(ks(function(){if(!M){M=!0;try{W.next()}finally{M=!1}}return!0}))}),PL(!1),zZ(H.queue))};
VM7=function(H){return Er(Nu(ks(function(U){return U>=1?!0:U<=0?!1:U>=H})),ITh(),ks(function(U){return Math.round(U)}))};
UU8=function(H,U,A,M,W){var w=HAh;if(w.length>1)for(var d=0;d<w.length-1;d++)if(w[d]<w[d+1])throw Error();d=W.pipe(PL(void 0),s6(function(){return A.pipe(Hd7())}),uF(),zZ(H));
W=W.pipe(PL(void 0),s6(function(){return A.pipe(Gi4())}),uF(),zZ(H));
return{totalMeasurementTime:M.pipe(PL(void 0),s6(function(){return U.pipe(ks(function(O){return{timestamp:O.timestamp,value:!0}}),ITh())}),uF(),zZ(H)),
totalUnviewedTime:M.pipe(PL(void 0),s6(function(){return U.pipe(ks(function(O){return{timestamp:O.timestamp,value:O.value===0}}),ITh())}),uF(),zZ(H)),
maxTimeOnScreen:M.pipe(PL(void 0),s6(function(){return U.pipe(Vvh(Ym_,w))}),uF(_.jN),zZ(H)),
timeOnScreen:M.pipe(PL(void 0),s6(function(){return U.pipe(Vvh(VM7,w),ks(function(O){return O.map(function(f,J){return J>0?f-O[J-1]:f})}))}),uF(_.jN),zZ(H)),
maxConsecutiveViewTime:W,consecutiveViewTime:d.pipe(uF(Sl),zZ(H))}};
My7=function(H){var U=!0;U=U===void 0?!1:U;return Er(s6(function(A){return Ar8(H.document,A,U)}),zZ(H.queue))};
WTE=function(H,U,A){var M=A.pipe(ks(function(W){return{value:W,timestamp:H.timeProvider.now()}}),uF(Sl));
return U instanceof mf?U.pipe(uF(),s6(function(W){return W?EA(new cL({value:!1,timestamp:H.timeProvider.now()}),H.queue):M})):U.value===!1?M:new cL(!1)};
w5V=function(H,U,A,M,W,w,d){var O=BPV;U=U instanceof mf?U.pipe(PL(!1),uF()):U;var f=!H.isMobile();A=WTE(H,A,M);H=d.measurableCreative.pipe(vRM(H.queue));return Object.assign({},O,{geometryIsOccluded:A,wasLargeAdAtRender:W,allowLargeAdThreshold:f,mayUseViewportShareExposure:U,hasMeasurementStarted:H,useIntersectionObserverV2:w})};
iAM=function(H,U,A,M,W,w){var d=1;w=w===void 0?!0:w;d=d===void 0?.01:d;var O=O===void 0?H.timeProvider.intervalObservable(100).pipe(zZ(H.queue)):O;return H.performanceMonitor.timeExecution(916,function(){return X5E(H,U.pipe(xZ(H.queue)),A.pipe(xZ(H.queue)),M,W,w,d,O)})()};
X5E=function(H,U,A,M,W,w,d,O){var f=Ijt(H).pipe(ks(function(F){return!F})),J=new bA_(H,[new dUK(H,HAh),
new OA0(H,O)]);O=BOK(uQE,ZAE);return gR8(H,U,function(F,P){var n=EA(new cL(P.element),F.queue).pipe(My7(F),zZ(F.queue)),N={loadedElement:n,shouldMeasure:n.pipe(dN(!0)),measurableCreative:n.pipe(ks(function(D){var h=h===void 0?Symbol():h;return Object.freeze({symbol:h,element:EA(new cL(D),F.queue)})})),
creativeSearchResult:EA(new cL("mue"),F.queue)},L=new cL(!1),m=new cL(!1),z=new cL(17),c=new cL(!1),C=new cL(!1),v=EA(al,F.queue);L=J.buildGeometrySource(N,{inApp:L,useV2:!1,requestSource:EA(z,F.queue)}).geometrySource;N=w5V(F,c,m,f,C,v,N);m=ya0(F.queue,F.timeProvider,L,N);N=m.geometrySignals;c=m.shouldResetViewabilitySignals;m=UU8(F.queue,N.timestampedExposure,N.visible,m.shouldResetExposureSignals,c);c=ljE(F.queue,F.timeProvider,c,N.measurementRequests,N.visible);C=A.pipe(Az(function(D){return D===
P.element.ref}),ks(function(){return"ur"}));
v=cz7(F.timeProvider,W).pipe(dN("t"));C=F48(F,U6(C,v));v=QnE(F,N.measurementRequests,C.pipe(Az(function(D){return D!==null})));
L=C.pipe(Az(function(D){return D!==null}),ks(function(){return jnK(F.global.document)===1}));
var Y=fMc(F.document);return Object.assign({},{beaconFactory:new cL(F.beaconFactory),context:new cL(F),inferredPingId:new cL("lidar2"),timeOnScreenPingId:new cL("lidartos"),binaryContext:new cL(17),binaryVersion:new cL(M),requestSource:z,contextValidationErrors:new cL(F.validate()?null:new bV),contextVisibilityKnown:new cL(Y),payloadMapper:new cL(c8V),endOfSessionReason:C,timeOnScreenReason:C,requestMeasurementOnEndOfSession:v,hasImpressionFired:JrM,crossDomainIframeState:new cL(F.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:al,inFetchLaterBeaconExperiment:al,isTurtlex:al,turtlexReportEventData:new cL(""),reportFencedFrameEvent:XS,isViewableAttributionEnabled:al,inViewableAttributionExperiment:new cL(0),fetchBeaconFactory:XS,supportsPendingBeacon:al,supportsFetchLater:al,emit:new cL(Dg_),beginToRenderEvent:new cL(Symbol()),activeViewUnmeasurableEvent:new cL(Symbol()),activeViewViewableEvent:new cL(Symbol()),creativeFound:JrM,immediateUrlPrefixes:new cL(P.immediateUrls),timeOnScreenUrlPrefixes:new cL(P.timeOnScreenUrls),
cpmavUrls:XS,viewableRelayUrls:XS,measurementDeferralState:new cL(2),urlSerializer:new cL(h84),viewUrlSerializer:new cL(KTr),isCreativeLoaded:n.pipe(vRM(F.queue)),pageVisible:f.pipe(ks(function(D){return!D})),
eosPageVisible:L,timestampedExposureHistory:N.timestampedExposure.pipe(FI(function(D,h){D.push(h);return D},[]))},N,{viewable:Lp(F,c),
maxTimeOnScreen:Lp(F,m.maxTimeOnScreen),timeOnScreen:Lp(F,m.timeOnScreen),maxConsecutiveViewTime:Lp(F,m.maxConsecutiveViewTime),consecutiveViewTime:m.consecutiveViewTime.pipe(ks(function(D){return new pp(F.timeProvider,D)})),
totalMeasurementTime:Lp(F,m.totalMeasurementTime),totalUnviewedTime:Lp(F,m.totalUnviewedTime),userAgentClientHints:nlc(F),clientOrderPingCounter:new cL(new xgF)})},y8M(H,d),r8h(w?e8M(O,oVc):e8M(O,FTh),PxV))};
shF=function(H){var U=_.QY.apply(1,arguments).filter(Boolean).join("&");if(!U)return H;var A=H.match(/[?&]adurl=/);return A?H.slice(0,A.index+1)+U+"&"+H.slice(A.index+1):H+(H.indexOf("?")<0?"?":"&")+U};
xl=function(H,U){return U?"&"+H+"="+encodeURIComponent(U):""};
nVK=function(){try{var H,U;return!!((H=window)==null?0:(U=H.top)==null?0:U.location.href)&&!1}catch(A){return!0}};
_.zg=function(H){H&&typeof H.dispose=="function"&&H.dispose()};
_.Cp=function(H){for(var U=0,A=arguments.length;U<A;++U){var M=arguments[U];_.l7(M)?_.Cp.apply(null,M):_.zg(M)}};
SWE=function(){var H=NDV();H=H===void 0?"bevasrsg":H;return new Promise(function(U){var A=window===window.top?window:nVK()?window:window.top,M=A[H],W;((W=M)==null?0:W.bevasrs)?U(new tD(M.bevasrs)):(M||(M={},M=(M.nqfbel=[],M),A[H]=M),M.nqfbel.push(function(w){U(new tD(w))}))})};
p5M=function(H){var U={c:H.f2,e:H.yn7,mc:H.w9f,me:H.jGV};H.uN&&(U.co={c:H.uN.uTN,a:H.uN.a7G,s:H.uN.iWe});return U};
LT8=function(H){var U,A,M={f2:H.c,yn7:H.e,w9f:(U=H.mc)!=null?U:!1,jGV:(A=H.me)!=null?A:!1};H.co&&(M.uN={uTN:H.co.c,a7G:H.co.a,iWe:H.co.s});return M};
RYM=function(H){return function(){var U;return _.u(function(A){if(A.nextAddress==1)return A.yield(H(),2);U=A.yieldResult;return A.return({f:function(){return U.igG()},
c:function(M){return U.kJn(M)},
m:function(M){return U.nA(LT8(M))},
mws:function(M){return U.pL1(LT8(M))}})})}};
EV8=function(H,U){var A=NDV();A=A===void 0?"bevasrsg":A;U={s:function(w){var d;return H.snapshot(Object.assign({},w.c&&{f2:w.c},w.s&&{pv2:w.s},{qQU:(d=w.p)!=null?d:!0}))},
e:function(w){var d;return void((d=H.gLj)==null?void 0:d.call(H,w))},
c:function(w,d){return H.zkT(w,d)},
p:H.nCX,l:function(){return H.aZF()},
wpc:U?RYM(U):void 0};var M=window===window.top?window:nVK()?window:window.top,W=M[A];if(W){W.bevasrs=U;if(W.nqfbel!==void 0)for(A=_.b(W.nqfbel),M=A.next();!M.done;M=A.next())M=M.value,M(U);W.nqfbel=void 0}else W={},W=(W.bevasrs=U,W.nqfbel=void 0,W),M[A]=W};
gVE=function(H){var U=U===void 0?52:U;var A=[];_.c8(H,mUM,6,_.y9()).forEach(function(M){_.B8(M,2)<=U&&A.push(_.B8(M,1))});
return A};
aMN=function(H){var U=U===void 0?52:U;var A=[];_.c8(H,mUM,6,_.y9()).forEach(function(M){_.B8(M,2)>U&&A.push(_.B8(M,1))});
return A};
xU0=function(H){H.then(function(){},function(){})};
rG=function(H){return{fieldType:1,fieldName:H}};
el=function(H){return{fieldType:2,fieldName:H}};
_.$l=function(H){return{fieldType:3,fieldName:H}};
zYt=function(){function H(){W[0]=1732584193;W[1]=4023233417;W[2]=2562383102;W[3]=271733878;W[4]=3285377520;F=J=0}
function U(P){for(var n=d,N=0;N<64;N+=4)n[N/4]=P[N]<<24|P[N+1]<<16|P[N+2]<<8|P[N+3];for(N=16;N<80;N++)P=n[N-3]^n[N-8]^n[N-14]^n[N-16],n[N]=(P<<1|P>>>31)&4294967295;P=W[0];var L=W[1],m=W[2],z=W[3],c=W[4];for(N=0;N<80;N++){if(N<40)if(N<20){var C=z^L&(m^z);var v=1518500249}else C=L^m^z,v=1859775393;else N<60?(C=L&m|z&(L|m),v=2400959708):(C=L^m^z,v=3395469782);C=((P<<5|P>>>27)&4294967295)+C+c+v+n[N]&4294967295;c=z;z=m;m=(L<<30|L>>>2)&4294967295;L=P;P=C}W[0]=W[0]+P&4294967295;W[1]=W[1]+L&4294967295;W[2]=
W[2]+m&4294967295;W[3]=W[3]+z&4294967295;W[4]=W[4]+c&4294967295}
function A(P,n){if(typeof P==="string"){P=unescape(encodeURIComponent(P));for(var N=[],L=0,m=P.length;L<m;++L)N.push(P.charCodeAt(L));P=N}n||(n=P.length);N=0;if(J==0)for(;N+64<n;)U(P.slice(N,N+64)),N+=64,F+=64;for(;N<n;)if(w[J++]=P[N++],F++,J==64)for(J=0,U(w);N+64<n;)U(P.slice(N,N+64)),N+=64,F+=64}
function M(){var P=[],n=F*8;J<56?A(O,56-J):A(O,64-(J-56));for(var N=63;N>=56;N--)w[N]=n&255,n>>>=8;U(w);for(N=n=0;N<5;N++)for(var L=24;L>=0;L-=8)P[n++]=W[N]>>L&255;return P}
for(var W=[],w=[],d=[],O=[128],f=1;f<64;++f)O[f]=0;var J,F;H();return{reset:H,update:A,digest:M,digestString:function(){for(var P=M(),n="",N=0;N<P.length;N++)n+="0123456789ABCDEF".charAt(Math.floor(P[N]/16))+"0123456789ABCDEF".charAt(P[N]%16);return n}}};
lV=function(H){this.JSC$9921_document_=H||{cookie:""}};
rrF=function(H,U){U=U===void 0?Cx4:U;if(!tyc){var A;H=(A=H.navigator)==null?void 0:A.userAgentData;if(!H||typeof H.getHighEntropyValues!=="function"||H.brands&&typeof H.brands.map!=="function")return Promise.reject(Error("va"));crE((H.brands||[]).map(function(W){var w=new yrE;w=_.Mu(w,1,W.brand);return _.Mu(w,2,W.version)}));
typeof H.mobile==="boolean"&&_.Gg(BD0,2,H.mobile);tyc=H.getHighEntropyValues(U)}var M=new Set(U);return tyc.then(function(W){var w=BD0.clone();M.has("platform")&&_.Mu(w,3,W.platform);M.has("platformVersion")&&_.Mu(w,4,W.platformVersion);M.has("architecture")&&_.Mu(w,5,W.architecture);M.has("model")&&_.Mu(w,6,W.model);M.has("uaFullVersion")&&_.Mu(w,7,W.uaFullVersion);return w.serialize()}).catch(function(){return BD0.serialize()})};
Yl=function(H,U,A,M){this.initialValue_=H;this.maxValue_=U;this.currBaseValue_=this.currValue_=H;this.randomFactor_=A||0;this.backoffFactor_=M||2};
DUt=function(H,U,A,M,W){this.listener=H;this.proxy=null;this.src=U;this.type=A;this.capture=!!M;this.handler=W;this.key=++eYr;this.removed=this.callOnce=!1};
qu=function(H){this.src=H;this.listeners={};this.typeCount_=0};
YW_=function(){for(var H;H=$U4.remove();){try{H.fn.call(H.scope)}catch(U){wK(U)}lMN.put(H)}GaN=!1};
_.qWN=function(H){switch(H){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}};
hYF=function(H){switch(H){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""}};
_.kat=function(){};
Aj4=function(H,U,A,M){H=vVc(TDc(jh4(new _.hD(1828,"0"),H),new IMc)).disableWithCredentials();U.length&&QhM(H,VyN(new HOK,U));M!==void 0&&(H.destinationUrl=M);var W=new UK7(1828,"","",!1,"",H.build());_.kl(W,H);var w=new Tg({flush:function(d){try{W.flush(d)}catch(O){A(O)}}});
w.addOnDisposeCallback(function(){setTimeout(function(){try{w.snapshotAndFlush()}finally{W.dispose()}})});
w.invocationLimit=1E5;w.flushInterval=3E4;w.JSC$10090_flushTimer.setInterval(3E4);return w};
jl=function(){var H,U,A;return(A=(H=globalThis.performance)==null?void 0:(U=H.now)==null?void 0:U.call(H))!=null?A:Date.now()};
wK0=function(H,U){if(H.disable)return new MC8;U=U?gVE(U):[];H={am:H.am,h51:H.lyn,qUH:H.onQ,destinationUrl:H.destinationUrl,qO2:H.qO2,fDX:H.fDX};U=U===void 0?[]:U;return new W6h(H,U)};
XKc=function(H){if(!H)return null;H=_.Il(H,2);return H===null||H===void 0?null:A$(H)};
_.iOc=function(H){if(!H)return null;H=_.Il(H,4);return H===null||H===void 0?null:_.rM(H)};
OOh=function(H,U){return U?bO_(U):H?dK8(H):Promise.resolve()};
bO_=function(H){return new Promise(function(U,A){var M=_.Q9("SCRIPT"),W=_.iOc(H);_.J$(M,W);M.onload=function(){_.U5(M);U()};
M.onerror=function(){_.U5(M);A(Error("Ga"))};
(A8("HEAD")[0]||document.documentElement).appendChild(M)})};
dK8=function(H){return new Promise(function(U){var A=_.Q9("SCRIPT");if(H){var M=_.Il(H,6);M=M===null||M===void 0?null:_.Or(M)}else M=null;_.fU(A,M);(A8("HEAD")[0]||document.documentElement).appendChild(A);_.U5(A);U()})};
Mg=function(H,U,A){var M,W=new Promise(function(w){M=setTimeout(w,U)});
return Promise.race([H.finally(function(){return void clearTimeout(M)}),
W.then(A)])};
uUr=function(H,U){try{return globalThis.sessionStorage.setItem(H,U),!0}catch(A){return!1}};
ZOc=function(H,U,A,M){U=U===void 0?0:U;A=A===void 0?H.length:A;var W=0;for(M&&(W=ZOc(M));U<A;U++)M=typeof H==="string"?H.charCodeAt(U):H[U],W=f04(31,W)+M|0;return W};
Jjc=function(H,U){return[ZOc(H,0,H.length>>1,U),ZOc(H,H.length>>1)]};
K6E=function(H){var U=_.b(Jjc(H,WJ));H=U.next().value;U=U.next().value;return H.toString(16)+U.toString(16)};
oD8=function(H,U){var A=Jjc(U);H=new Uint32Array(H.buffer);U=H[0];var M=_.b(A);A=M.next().value;M=M.next().value;for(var W=1;W<H.length;W+=2){for(var w=U,d=W,O=A,f=M,J=0;J<22;J++)d=d>>>8|d<<24,d+=w|0,d^=O+38293,w=w<<3|w>>>29,w^=d,f=f>>>8|f<<24,f+=O|0,f^=J+38293,O=O<<3|O>>>29,O^=f;w=[w,d];H[W]^=w[0];W+1<H.length&&(H[W+1]^=w[1])}};
F6E=function(H,U,A,M,W){var w=(4-(WJ.length+A.length)%4)%4,d=new Uint8Array(4+w+WJ.length+4+A.length),O=new DataView(d.buffer),f=0;O.setUint32(f,Math.random()*4294967295);f=f+4+w;d.set(WJ,f);f+=WJ.length;O.setUint32(f,W);d.set(A,f+4);oD8(d,M);return H.insert(U,function(J){return void globalThis.sessionStorage.removeItem(J)})?uUr(U,_.I_(d))?"s":"t":"i"};
PDr=function(H,U){var A=globalThis.sessionStorage.getItem(H);if(!A)return["m"];try{var M=_.Q0(A);oD8(M,U)}catch(W){return globalThis.sessionStorage.removeItem(H),["c"]}for(U=4;U<7&&M[U]===0;)U++;for(A=0;A<WJ.length;A++)if(M[U++]!==WJ[A])return globalThis.sessionStorage.removeItem(H),["d"];A=(new DataView(M.buffer)).getUint32(U);return Math.floor(Date.now()/1E3)>=A?(globalThis.sessionStorage.removeItem(H),["e"]):["a",new Uint8Array(M.buffer,U+4)]};
sdt=function(H){return globalThis.TextEncoder?(new TextEncoder).encode(H):_.wO(H)};
nD0=function(H){var U=H,A;return function(){if(U){var M=U;U=void 0;A=M.apply(this,arguments)}return A}};
S4_=function(H){return Br(function(U){if(U instanceof H)return!0;var A,M,W=U==null?void 0:(A=U.ownerDocument)==null?void 0:(M=A.defaultView)==null?void 0:M[H.name];return NiV(W)&&U instanceof W})};
_.b9=function(H,U,A){_.XG.call(this);this.JSC$10304_listener_=H;this.JSC$10304_interval_=U||0;this.handler_=A;this.callback_=(0,_.i9)(this.JSC$10306_doAction_,this)};
dO=function(){_.XG.call(this);this.services_={}};
pKK=function(){for(var H=10,U="";H-- >0;)U+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Math.floor(Math.random()*62));return U};
O5=function(H){_.XG.call(this);this.JSC$10327_domHelper_=H||AD()};
J8=function(H,U,A,M,W){O5.call(this,A);this.JSC$10330_channel_=H;this.protocolVersion_=W||2;this.peerHostname_=U||"*";this.JSC$10330_eventHandler_=new _.u9(this);this.maybeAttemptToConnectTimer_=new _.ZT(100,this.getWindow());this.oneSidedHandshake_=!!M;this.setupAckReceived_=new fW;this.setupAckSent_=new fW;this.JSC$10330_connected_=new fW;this.endpointId_=pKK();this.peerEndpointId_=null;this.oneSidedHandshake_?L64(this.JSC$10330_channel_)==1?Rb7(this.JSC$10330_connected_,this.setupAckReceived_):
Rb7(this.JSC$10330_connected_,this.setupAckSent_):(Rb7(this.JSC$10330_connected_,this.setupAckReceived_),this.protocolVersion_==2&&Rb7(this.JSC$10330_connected_,this.setupAckSent_));ED0(this.JSC$10330_connected_,this.notifyConnected_,this);this.JSC$10330_connected_.callback(!0);this.JSC$10330_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.KW=function(H){H=mK4(H);return _.rM(H)};
mK4=function(H){return H===null?"null":H===void 0?"undefined":H};
PJ=function(H,U){dO.call(this);for(var A=0,M;M=gD7[A];A++)if(M in H&&!/^https?:\/\//.test(H[M]))throw Error("Sa`"+H[M]+"`"+M);this.cfg_=H;this.name=this.cfg_.cn||pKK();this.JSC$10331_domHelper_=U||AD();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.u9(this);H.lpu=H.lpu||vlK(this.JSC$10331_domHelper_.getWindow().location.href)+"/robots.txt";H.ppu=H.ppu||vlK(H.pu||"")+"/robots.txt";oc[this.name]=this;a0M(window,"unload",xKc)||FG(window,"unload",xKc)};
CDK=function(H){if(H&&H.focus)if(H!==document.activeElement)H.focus();else return zbK(function(){return _.u(function(U){document.activeElement&&document.activeElement.blur();return U.return(zbK(function(){H.focus()}))})})};
_.tCE=function(H){var U=U===void 0?5:U;setTimeout(function(){var A;return _.u(function(M){M.nextAddress==1&&(A=document.activeElement);if(M.nextAddress!=5)return(document.activeElement===A||document.activeElement===document.body)&&U>=0&&H?M.yield(CDK(H),5):M.jumpTo(0);if(document.activeElement===H)return M.return();H=H.parentElement;--U;return M.jumpTo(2)})},15)};
zbK=function(H){return new Promise(function(U){requestAnimationFrame(function(){U(H())})})};
yj0=function(H){if(_.s5)H(_.s5);else{var U;((U=cj7)!=null?U:cj7=[]).push(H)}};
Ng=function(){!_.s5&&_.nW&&_.BiK(_.nW());return _.s5};
_.BiK=function(H){_.s5=H;var U;(U=cj7)==null||U.forEach(yj0);cj7=void 0};
Sv=function(H){return G2c(H)?Number(H):String(H)};
rj0=function(H){this.action=H;this.wfv=!1};
ebK=function(H,U){rj0.call(this,"set-drive-options");this.appId=H;this.appOrigin=U};
DK0=function(H){rj0.call(this,"visibility");this.visible=H};
hb0=function(H,U){var A=$Kc++,M={measureTask:{id:A,fn:H.measure,context:U},mutateTask:{id:A,fn:H.mutate,context:U},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(M.args||(M.args=[]),M.args.length=0,M.args.push.apply(M.args,arguments),M.args.push(M.state)):M.args&&M.args.length!=0?(M.args[0]=M.state,M.args.length=1):M.args=[M.state];M.isScheduled||(M.isScheduled=!0,l0E[GUc].push(M));Y4_||(Y4_=!0,window.requestAnimationFrame(q4K))}};
q4K=function(){Y4_=!1;var H=l0E[GUc],U=H.length;GUc=(GUc+1)%2;for(var A,M=0;M<U;++M){A=H[M];var W=A.measureTask;A.isScheduled=!1;W.fn&&W.fn.apply(W.context,A.args)}for(M=0;M<U;++M)A=H[M],W=A.mutateTask,A.isScheduled=!1,W.fn&&W.fn.apply(W.context,A.args),A.state={};H.length=0};
E5=function(H){_.LW.call(this);this.JSC$10463_element_=H;this.listenKeyIn_=_.Rc(this.JSC$10463_element_,"focus",this,!0);this.listenKeyOut_=_.Rc(this.JSC$10463_element_,"blur",this,!0)};
kUt=function(H,U){this.JSC$10466_element_=H;this.JSC$10466_dom_=U};
gO=function(H,U){mK.call(this,U);this.useIframeMask_=!!H;this.lastFocus_=null;this.resizeBackgroundTask_=hb0({mutate:this.resizeBackground_},this);hb0({mutate:this.updateModalAndBackground_},this)};
vDc=function(H,U,A){ac.call(this,H,U,A)};
Tic=function(H){xR.call(this,H)};
jd7=function(H){H=H&&H.getWindow()||window;return H.gadgets&&H.gadgets.rpc};
QdV=function(H,U){var A=U&&U.getWindow()||window;if(jd7(U))H();else if(I0N)I0N.push(H);else var M=I0N=[H],W=A.setInterval(function(){if(jd7(U)){A.clearInterval(W);for(var w=0;w<M.length;w++)M[w]();I0N=null}},100)};
H_N=function(H,U){var A=new zr(H);_.kl(U,A);var M={passive:!1};U.listen(A,"mousewheel",function(W){return void VCc(H,W)},M).listen(H,"scroll",function(W){return void VCc(H,W)},M)};
VCc=function(H,U){var A;a:{for(A=U.target;A;){if(A.nodeType==1){var M=_.CW(A,"overflowY");if(M=="auto"||M=="scroll")break a}A=A.parentNode}A=null}if(!A||!_.t8(H,A)||A.scrollHeight==A.clientHeight||U.deltaY>0&&Math.abs(A.scrollTop-(A.scrollHeight-A.clientHeight))<=1||U.deltaY<0&&A.scrollTop==0)U.preventDefault(),U.stopPropagation()};
UsV=function(){var H;if(H=H===void 0?window:H)return H!==H.parent&&H.hasOwnProperty("pangolinIframeGlobals");var U=Error("gb");setTimeout(function(){throw U;},1);
return!1};
DT=function(H,U,A,M,W,w,d,O,f,J){O=O===void 0?!1:O;f=f===void 0?!1:f;J=J===void 0?!1:J;ac.call(this,void 0,void 0,void 0);ac.call(this,w?w+" picker modal-dialog":"picker modal-dialog",!0,A);_.TZ(H,"protocol");this.iframeManager_=new Ak4;this.targetId_=cJ();this.rpcToken_=cJ();H=_.yX(H);_.BJ(H,"hostId");this.useGapi_=!f&&!UsV();O&&_.rO(H,"fv2","true");this.setUrl(H.toString());this.preferredDialogWidth_=M;this.preferredDialogHeight_=W;M!==void 0||W!==void 0?M=!0:(M=_.BJ(_.yX(H.toString()),"hostId"),
MxV||(MxV=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),M=!MxV.has(M));this.autoSizeDialog_=M;this.JSC$10494_gadgetsDomHelper_=d||this.JSC$10445_dom_;this.JSC$10494_enablePopover_=J;U&&(d=this.JSC$10494_gadgetsDomHelper_,U=_.BJ(_.yX(this.JSC$10496_url_),"grugl")=="true"?Wy0:wW0,jd7(d)||(d=d||AD(document),J=d.createElement("SCRIPT"),_.J$(J,U),J.type="text/javascript",d.JSC$9629_document_.body.appendChild(J)));
H=H.toString();U=null;d=H.indexOf("/picker?");d>-1?U=H.substring(0,d+8-1):i7(H,"/picker")&&(U=H);U&&this.setRelayUrl(U+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(H=this.buttons_,H.JSC$10479_element_=this.buttonEl_,H.render()):_.KU(this.buttonEl_,XW0),_.ev(this.buttonEl_,!!this.buttons_))};
i_8=function(H,U){_.$R.call(this,H.type,U);this.event_=H};
_.ul_=function(H){var U=U===void 0?b__:U;var A=_.vF(H),M=function(w){w=_.b(w);w.next();w=l9(w);return U(A,w)},W=function(w){var d=_.b(w);
w=d.next().value;d=l9(d);return H.apply(w,d)};
return function(){var w=_.QY.apply(0,arguments),d=this||_.Mr,O=ds0.get(d);O||(O={},ds0.set(d,O));return O_K(O,[this].concat(_.vI(w)),W,M)}};
Gr=function(H){var U={};H=H.replace(/\r/g,"").split("\n");for(var A=0;A<H.length;A++){var M=H[A],W=M.indexOf(":");W<0||(U[M.substring(0,W)]=M.substring(W+2,M.length))}return U};
KyK=function(H,U){U.id||(U.id="ow"+_.vF(U));H.setAttribute("jsowner",U.id);H.__owner=U;var A=_.Kp(U,Z__);A&&(f6E.has(A)||f6E.set(A,[]),f6E.get(A).push(H));(A=Jk_.get(U))||Jk_.set(U,A=[]);A.includes(H)||A.push(H);U.setAttribute("__IS_OWNER",!0)};
Z__=function(H){return _.YR(H)?H.getAttribute("jsname")==="coFSxe":!1};
oBK=function(H,U,A){A=A===void 0?function(){}:A;
return H?U():A()};
_.PSc=function(H){var U;return((U=FyE.documentOverride)!=null?U:H).__wizdispatcher};
h8=function(H){var U=qg;qg=H;return U};
nB_=function(H){return H===sQ4||(H==null?void 0:H.name)==="\u0275NotFound"};
kR=function(H,U){var A;if((A=H)==null?0:A.isDisposed)throw Error("lb`"+String(H.debugName));for(;H!==void 0;){A=H;if(A.retrieve)return A.retrieve(U,{optional:!0});H=H.parent}return sQ4};
vJ=function(H){return{"\u0275prov":{providedIn:"root",token:Symbol(H),factory:void 0,value:void 0}}};
NBE=function(H){var U=qg;if(!U){switch(H===void 0?3:H){case 0:H=Error("kb");break;case 1:H=Error("mb");break;case 2:H=Error("nb");break;default:H=Error("ob")}throw H;}return U};
Sl4=function(H){var U=h8(H);H={};return H[Symbol.dispose]=function(){h8(U)},H};
Rrt=function(){var H=NBE(1);H=kR(H,pW4);if(!(nB_(H)||H[Lyt]&&!H.__hasBeenSet))return H.value};
EB_=function(H,U){H.disposables||(H.disposables=[]);H.disposables.push(U)};
Tr=function(H){var U=qg;U&&!U.isDisposed&&(EB_(U,H),H.parent=U)};
gBK=function(H){if(H.disposables){for(var U=_.b(H.disposables),A=U.next();!A.done;A=U.next())A=A.value,typeof A==="function"?A():msF(A);H.disposables.length=0}};
msF=function(H){if(!H.isDisposed){H.isDisposed=!0;var U;(U=H[Symbol.dispose])==null||U.call(H);delete H.parent;gBK(H)}};
BBh=function(H){var U={retrieve:function(A){switch(A.\u0275prov.token){case a6M.\u0275prov.token:var M=H.asyncDeps;break;case pW4.\u0275prov.token:M=H.rootElement;break;case xsE.\u0275prov.token:M=H.modelRootElement;break;case zrE.\u0275prov.token:M=H.appContext;break;case CS0.\u0275prov.token:M=H.rendererData;break;case tx0.\u0275prov.token:M=H.injectingConstructor;break;case ck0.\u0275prov.token:M=H.dispatcher}if(M)A=M;else a:{for(M=U.parent;M;){var W=M;if(W.retrieve){A=W.retrieve(A);break a}M=
M.parent}M=A.\u0275prov.token;W=ykK[M];W!==void 0?A=W:(W=A.\u0275prov.providedIn,A.\u0275prov.factory?(A=A.\u0275prov.factory(),M&&W==="root"&&(ykK[M]=A)):A=sQ4)}return A}};
Tr(U);return U};
rk0=function(){var H=NBE(1),U=kR(H,zrE);if(!nB_(U))return U;H=kR(H,ck0);if(!nB_(H))return H.getOptionalAppContext()};
erc=function(H){if(typeof document!=="undefined"&&document&&document.getElementById&&(H=document.getElementById(H))){var U=H.tagName.toUpperCase();if(U=="SCRIPT"||U=="LINK")return H}return null};
$s_=function(H,U){if((H=H===void 0?"":H)&&U)throw Error("ub");var A="";var M=_.Mr._F_jsUrl;(H=U||erc(H))&&(A=H.src?H.src:H.getAttribute("href"));if(M&&A){if(M!=A)throw Error("vb`"+M+"`"+A);A=M}else A=M||A;if(!Ds0(A))throw Error("wb");return A};
qlE=function(){if(!l6_){l6_=!0;try{var H=$s_(_.Mr._F_jsUrl?"":"base-js")}catch(M){return}var U=Gq4(YlM(H)),A=Object.keys(U);A.length!==0&&yj0(function(M){for(var W=_.b(A),w=W.next();!w.done;w=W.next()){w=w.value;for(var d=_.b(Object.keys(U[w])),O=d.next();!O.done;O=d.next())M.addExtraEdge(w,O.value)}})}};
kq4=function(){var H=Object.assign({},hrc);Object.getOwnPropertyNames(hrc).forEach(function(U){jv[U]!==void 0&&(H[U]=jv[U])});
return H};
vBc=function(H,U){if(jv.enablePerformanceTiming){var A,M;(M=(A=performance).mark)==null||M.call(A,H+"Start__"+U)}};
TB7=function(H,U){if(jv.enablePerformanceTiming){var A,M;(M=(A=performance).measure)==null||M.call(A,H+"__"+U,H+"Start__"+U)}};
jQ8=function(H,U,A){var M;return H&&U?H+"__"+U:(M=H!=null?H:U)!=null?M:A};
QQt=function(H){var U=Object.create(I6F);U.debugName=H;!qg||Tr(U);return U};
Vx8=function(H,U){var A=QQt(U);U=h8(A);try{H(A)}finally{h8(U)}return function(){return void msF(A)}};
UaE=function(H){return Ic(H)&&H57 in H};
A9V=function(H){for(H=H===void 0?qg:H;H;){if(UaE(H))return H;var U=void 0;H=(U=H.parent)!=null?U:null}return null};
MD0=function(H,U){return Object.is(H,U)};
VX=function(H){var U=QX;QX=H;return U};
w1V=function(H){if(He)throw Error("$");if(QX!==null){var U=QX.producersTail;if(U===void 0||U.producer!==H){var A=void 0,M=QX.recomputing;if(M&&(A=U!==void 0?U.nextProducer:QX.producers,A!==void 0&&A.producer===H)){QX.producersTail=A;A.lastReadVersion=H.version;return}var W=H.consumersTail,w;if(!(w=W===void 0||W.consumer!==QX)){if(M){a:{w=QX;M=w.producersTail;if(M!==void 0){w=w.producers;do{if(w===W){M=!0;break a}if(w===M)break;w=w.nextProducer}while(w!==void 0)}M=!1}M=!M}w=M}w&&(M=Um(QX),A={producer:H,
consumer:QX,nextProducer:A,prevConsumer:W,lastReadVersion:H.version,nextConsumer:void 0},QX.producersTail=A,U!==void 0?U.nextProducer=A:QX.producers=A,M&&WUF(H,A))}}};
Mf=function(H){if(!Um(H)||H.dirty)if(H.dirty||H.lastCleanEpoch!==Aa)(H.producerMustRecompute(H)||X1r(H))&&H.producerRecomputeValue(H),H.dirty=!1,H.lastCleanEpoch=Aa};
i5E=function(H){if(H.consumers!==void 0){var U=He;He=!0;try{for(var A=H.consumers;A!==void 0;A=A.nextConsumer){var M=A.consumer;M.dirty||(H=void 0,M.dirty=!0,i5E(M),(H=M.consumerMarkedDirty)==null||H.call(M,M))}}finally{He=U}}};
b5h=function(){var H;return((H=QX)==null?void 0:H.consumerAllowSignalWrites)!==!1};
dah=function(H){H&&(H.producersTail=void 0,H.recomputing=!0);return VX(H)};
ux_=function(H){H.recomputing=!1;var U=H.producersTail,A=U!==void 0?U.nextProducer:H.producers;if(A!==void 0){if(Um(H)){do A=O5h(A);while(A!==void 0)}U!==void 0?U.nextProducer=void 0:H.producers=void 0}};
X1r=function(H){for(H=H.producers;H!==void 0;H=H.nextProducer){var U=H.producer,A=H.lastReadVersion;if(A!==U.version)return!0;Mf(U);if(A!==U.version)return!0}return!1};
WUF=function(H,U){var A=H.consumersTail,M=Um(H);A!==void 0?(U.nextConsumer=A.nextConsumer,A.nextConsumer=U):(U.nextConsumer=void 0,H.consumers=U);U.prevConsumer=A;H.consumersTail=U;if(!M)for(H=H.producers;H!==void 0;H=H.nextProducer)WUF(H.producer,H)};
O5h=function(H){var U=H.producer,A=H.nextProducer,M=H.nextConsumer,W=H.prevConsumer;H.nextConsumer=void 0;H.prevConsumer=void 0;M!==void 0?M.prevConsumer=W:U.consumersTail=W;if(W!==void 0)W.nextConsumer=M;else if(U.consumers=M,!Um(U))for(H=U.producers;H!==void 0;)H=O5h(H);return A};
Um=function(H){return H.consumerIsAlwaysLive||H.consumers!==void 0};
fz_=function(H){var U=Object.create(Z5_);U.computation=H;H=function(){Mf(U);w1V(U);if(U.value===We)throw U.error;return U.value};
H[wP]=U;return H};
Bu0=function(H,U){var A=Object.create(J98);A.value=H;U!==void 0&&(A.equal=U);H=function(){w1V(A);return A.value};
H[wP]=A;return[H,function(M){return KU_(A,M)},
function(M){b5h()||oXE(A);KU_(A,M(A.value))}]};
KU_=function(H,U){b5h()||oXE(H);if(!H.equal(H.value,U)){H.value=U;H.version++;Aa++;i5E(H);var A;(A=r9V)==null||A(H)}};
DaK=function(H,U,A){var M=Object.create(eTE);M.source=H;M.computation=U;A!=void 0&&(M.equal=A);H=function(){Mf(M);w1V(M);if(M.value===We)throw M.error;return M.value};
H[wP]=M;return H};
_.X$=function(H){var U=VX(null);try{return H()}finally{VX(U)}};
$aK=function(H,U){vBc("signalSet",U.debugName);try{H()}finally{TB7("signalSet",U.debugName)}};
lz8=function(H,U,A){H=Bu0(H,U.equals);var M=H[0],W=M[wP];W.debugName=jQ8(U.debugName,A,"[signal]");if(!jv.enablePerformanceTiming)return H;var w=H[1],d=H[2];return[M,function(O){$aK(function(){return void w(O)},W)},
function(O){$aK(function(){return void d(O)},W)}]};
_.iB=function(H,U,A){return lz8(H,U!=null?U:{},A===void 0?"":A)};
YDF=function(H,U){var A=_.b(_.iB(H,void 0,"cPpJzc"));H=A.next().value;A=A.next().value;H[G9M]=A;H[Om]=U;return H};
qDV=function(H){return!!H&&typeof H==="object"&&Object.getPrototypeOf(H)===Object.prototype};
hTV=function(H){return typeof H==="function"&&G9M in H&&typeof H[G9M]==="function"};
k9t=function(H,U){Object.defineProperty(H,Om,{get:function(){return U}})};
Zj=function(H,U){if(uB(H)){var A=H.map(function(w){return Zj(w,U)});
k9t(A,U);return A}if(qDV(H)){A={};H=_.b(Object.entries(H));for(var M=H.next();!M.done;M=H.next()){var W=_.b(M.value);M=W.next().value;W=W.next().value;A[M]=Zj(W,U)}k9t(A,U);return A}return YDF(H,U)};
vX0=function(H){if(uB(H))return H.map(function(W){return vX0(W)});
if(qDV(H)){var U={};H=_.b(Object.entries(H));for(var A=H.next();!A.done;A=H.next()){var M=_.b(A.value);A=M.next().value;M=M.next().value;U[A]=vX0(M)}return U}return hTV(H)?H():H};
j1t=function(){var H={height:0,width:0};if(!qDV(H))throw Error("Lb");var U=Symbol("Mb");return[Zj(H,U),function(A,M){if(A[Om]===U)if(typeof M==="function"){var W=[].concat(_.vI(vX0(A)));M=M(W)||W;Tuc(A,[].concat(_.vI(M)))}else Tuc(A,M);else throw Error("Nb");}]};
Tuc=function(H,U){if(hTV(H))H[G9M](U);else if(uB(H)&&uB(U))U=Zj(U,H[Om]),H.length=0,H.push.apply(H,_.vI(U));else if((qDV(H)||uB(H))&&(uB(U)||typeof U==="object"&&U!==null)){U=_.b(Object.entries(U));for(var A=U.next();!A.done;A=U.next()){var M=_.b(A.value);A=M.next().value;M=M.next().value;var W=H,w=W[A];Object.hasOwn(H,A)?Tuc(w,M):W[A]=Zj(M,H[Om])}}else throw Error("Ob");};
Iz8=function(H){return Object.create(Object.assign({},fd,H))};
VD4=function(){var H;return(H=Q1M)!=null?H:Q1M=Iz8({consumerAllowSignalWrites:!0})};
_.Ja=function(H,U,A){A=A===void 0?"":A;H=fz_(H);var M=H[wP];M.debugName=jQ8(U==null?void 0:U.debugName,A,"[computed]");(U==null?void 0:U.equals)!=null&&(M.equal=U.equals);return H};
Kd=function(H){var U=VX(HKt);try{H()}finally{VX(U)}};
UCh=function(H){return Ic(H)&&H.name!==void 0&&H.isReactive!==void 0&&H.parent!==void 0};
MXV=function(H,U,A){var M=A00(H);on={name:A?M+" ("+A+")":M,isReactive:H.componentType!==F$,parent:on};H=U();on=on.parent;return H};
Pe=function(){var H=on;return H?H.isReactive:!1};
nd=function(H,U,A){var M=on;U&&(on=U);try{return A==null?H():H.call(A)}catch(w){H=w;sm(H,on);if(H!==WFV){waV=on;U=[];for(A=qg;A;){var W=void 0;U.push((W=A.debugName)!=null?W:"[context]");W=void 0;A=(W=A.parent)!=null?W:null}XaV=U.reverse()}WFV=H;throw H;}finally{on=M}};
sm=function(H,U){try{var A=iKN(U);if(A&&!H.componentStack&&(H.componentStack=A,jv.enableComponentStacksInErrorMessages)){var M=H.message+"\n\nComponent stack: "+A;H.stack&&(H.stack=H.stack.replace(H.message,M));H.message=M}}catch(W){}};
bKF=function(H){for(var U=0,A="";U<20&&H;)A+="$$XID:"+H.name+"$$ > ",H=H.parent,U++;return A.slice(0,-3)};
iKN=function(H){return UCh(H)||H===null?bKF(H):jv.enableContextBasedComponentStacks?A9V(H).getComponentStack().slice(0,20).map(function(U){return"$$XID:"+U+"$$"}).join(" > "):""};
A00=function(H){return H.debugName||H.name||"[component]"};
f57=function(H){switch(H.onInitType){case dC_:OKh.schedule(H);break;case u7h:jv.enableQueueEffectAndOnInitInitialRuns?ZKF.enqueue(H):ZKF.schedule(H);break;default:_.U$(H.onInitType)}};
s$c=function(H){if(!H.isDisposed)switch(H.effectType){case Nf:J0_.schedule(H);break;case KFK:oAh.schedule(H);break;case FFr:jv.enableQueueEffectAndOnInitInitialRuns||H.version!==0?Pu_.enqueue(H):Pu_.schedule(H);break;default:_.U$(H.effectType)}};
SoV=function(){if(SM>0)jv.flushRenderEffectsDuringRender&&J0_.flush();else{for(var H=_.b(nA7),U=H.next();!U.done;U=H.next())U.value.flush();NVc()}};
NVc=function(){_.u(function(H){if(H.nextAddress==1)return H.yield(Promise.resolve(),2);for(var U=_.b(pa4),A=U.next();!A.done;A=U.next())A.value.flush();_.DO(H)})};
RaV=function(H){pd=!0;try{for(var U=_.b(H),A=U.next();!A.done;A=U.next()){for(var M=A.value,W=[M],w=M;w.parent!==void 0;)w=w.parent,LFr(w)&&H.has(w)&&W.push(w);for(;W.length>0;){var d=W.pop();H.delete(d);d.run()}}}finally{pd=!1}};
Ld=function(H){SM--;if(H){H=_.b(EA_);for(var U=H.next();!U.done;U=H.next())U.value.clear()}else SM>0||pd&&!jv.flushRenderEffectsDuringRender||SoV()};
mCr=function(H,U,A){H=Object.create(H);U&&(H.fn=U);A&&(H.debugName=A);Tr(H);H.componentStack=on;return H};
gAr=function(H){if(!H.isDisposed){if(He)throw Error("Sb");var U=h8(H);vBc("effectRun",H.debugName);try{nd(function(){H.dirty=!1;if(!(H.version>0)||X1r(H)){H.version++;var A=dah(H);try{H.cleanup(),H.fn()}finally{VX(A),H&&ux_(H)}}},H.componentStack,H)}catch(A){throw jv.enableContextBasedComponentStacks&&sm(A),A;
}finally{TB7("effectRun",H.debugName),h8(U)}}};
_.Rn=function(H,U){H=mCr(a5K,H,U);s$c(H)};
_.Em=function(H,U){H=mCr(xC7,H,U);s$c(H)};
zat=function(H){return H};
CuM=function(H,U,A){function M(){return W()}
A=A===void 0?"":A;var W=typeof H==="function"?DaK(H,zat,U==null?void 0:U.equals):DaK(H.source,H.computation,U==null?void 0:U.equals);var w=W[wP];w.debugName=jQ8(U==null?void 0:U.debugName,A,"[linkedSignal]");M[wP]=w;return[M,function(d){$aK(function(){Mf(w);KU_(w,d);w.dirty=!1;w.lastCleanEpoch=Aa},w)},
function(d){$aK(function(){Mf(w);b5h()||oXE(w);KU_(w,d(w.value));w.dirty=!1;w.lastCleanEpoch=Aa},w)}]};
_.m4=function(H){var U=qg;if(U){var A=on;EB_(U,function(){var M=VX(VD4());try{nd(function(){return void H()},A)}catch(W){throw jv.enableContextBasedComponentStacks&&sm(W),W;
}finally{VX(M)}})}};
gP=function(H,U){var A={};(U===void 0||U)&&Tr(A);U=h8(A);try{H(A)}finally{h8(U)}return function(){return void msF(A)}};
_.an=function(H){return typeof H==="function"?H():(H==null?0:H[tXN])?H.get():H};
c08=function(H){if(qg)throw Error("pb");gP(H,!1)};
xp=function(H,U){H=h8(H);try{return _.X$(U)}finally{h8(H)}};
zi=function(H,U){var A=iKN(waV),M,W;var w=(W=(M=XaV)==null?void 0:M.slice())!=null?W:[];U={componentStack:A,contextTrace:w,errorSeverity:3,featureFlags:kq4(),tagName:U};return[H,U]};
r0c=function(H,U,A){if(Object.hasOwnProperty.call(y0E,H)&&(H=y0E[H],Object.hasOwnProperty.call(H,U)&&(H=H[U],H instanceof Array))){for(var M=null,W=!1,w=0,d=H.length;w<d;++w){var O=H[w],f=O.contingentAttribute;if(!f)return O.contract;M===null&&(M={});f=Object.hasOwnProperty.call(M,f)?M[f]:M[f]=A(f);if(f===O.requiredValue)return O.contract;f==null&&(W=!0)}if(W)return null}U=BVN[U];return typeof U==="number"?U:null};
$Ct=function(H,U,A){var M=null;(H=eaN[H])&&(M=H[U]);return typeof M!=="number"&&((H=eaN["*"])&&(M=H[U]),typeof M!=="number")?!1:!0===DCE[M][String(A).toLowerCase()]};
GSM=function(H,U){U=r0c(H.toLowerCase(),U,function(){var M;(M=jv.handleError)==null||M.call.apply(M,[jv].concat(_.vI(zi(Error("Vb"),H.toLowerCase()))))});
if(U===null)return null;var A;return(A=l5N[U])!=null?A:null};
Yo_=function(H,U,A){if(A===null||A===void 0)return A;U=U.toLowerCase();H=GSM(H,U);return H===null?A:H(U,A)};
kS0=function(H){var U=qoc,A=H,M="",W="",w=1;H<0&&(H=-H);if(H===Infinity)H=(Infinity*Math.sign(A)).toString();else{for(var d=0;d<haM.length;d++){var O=haM[d];w=U[O];if(H>=w||w<=1&&H>.1*w){M=O;break}}M?(M+="B",W=" "):w=1;H=Math.round(A/w*10)/10+W+M}return H};
vA0=function(){};
TVE=function(H,U){for(;H.length>U;)H.pop()};
j$7=function(H){H=Array(H);TVE(H,0);return H};
Cd=function(H,U,A){if(A==null)H.removeAttribute(U);else{var M;(M=U.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":U.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?H.setAttributeNS(M,U,A):H.setAttribute(U,A)}};
Q$c=function(H,U,A){H=H.style;if(typeof A==="string")H.cssText=A;else{H.cssText="";for(var M in A)if(I5c.call(A,M)){U=H;var W=M,w=A[M];W.indexOf("-")>=0?U.setProperty(W,w):U[W]=w}}};
VXc=function(H,U,A){var M=typeof A;M==="object"||M==="function"?H[U]=A:Cd(H,U,A)};
Hvc=function(){var H=new vA0;H[ta.default]=VXc;H.style=Q$c;return H};
UjM=function(H,U,A,M){(M[U]||M[ta.default])(H,U,A)};
MUr=function(H,U,A){U=new ATF(U,A);return H.__incrementalDOMData=U};
Wz8=function(H,U){if(H.__incrementalDOMData)return H.__incrementalDOMData;var A=H.nodeType===1?H.localName:H.nodeName,M=H.nodeType===1?H.getAttribute("key"):null;U=MUr(H,A,H.nodeType===1?M||U:null);if(H.nodeType===1&&(H=H.attributes,A=H.length)){M=U._attrsArr||(U._attrsArr=j$7(A*2));for(var W=0,w=0;W<A;W+=1,w+=2){var d=H[W],O=d.value;M[w]=d.name;M[w+1]=O}}return U};
wxF=function(H,U,A,M,W){return U==A&&M==W};
Xxh=function(H){for(var U=ce,A=Be();A!==H;){var M=A.nextSibling;U.removeChild(A);rP.deleted.push(A);A=M}};
Be=function(){return eM?eM.nextSibling:ce.firstChild};
Dj=function(){eM=Be()};
djK=function(H,U){Dj();var A;a:{if(A=eM){do{var M=A,W=H,w=U,d=Wz8(M,w);if(ivc(M,W,d.nameOrCtor,w,d.key))break a}while(U&&(A=A.nextSibling))}A=null}A||(H==="#text"?(H=$p.createTextNode(""),MUr(H,"#text",null)):(A=$p,M=ce,typeof H==="function"?A=new H:A=(M=H==="svg"?"http://www.w3.org/2000/svg":H==="math"?"http://www.w3.org/1998/Math/MathML":M==null||Wz8(M).nameOrCtor==="foreignObject"?null:M.namespaceURI)?A.createElementNS(M,H):A.createElement(H),MUr(A,H,U),H=A),rP.created.push(H),A=H);H=A;if(H!==
eM){if(bv0.indexOf(H)>=0)for(U=ce,A=H.nextSibling,M=eM;M!==null&&M!==H;)W=M.nextSibling,U.insertBefore(M,A),M=W;else ce.insertBefore(H,eM);eM=H}};
Ov0=function(H,U){djK(H,U);ce=eM;eM=null;return ce};
ug4=function(){Xxh(null);eM=ce;ce=ce.parentNode};
JT7=function(H,U){U=U===void 0?{}:U;var A=U.matches===void 0?wxF:U.matches;return function(M,W,w){var d=rP,O=$p,f=bv0,J=lB,F=eM,P=ce,n=ivc;$p=M.ownerDocument;rP=new ZvE(M);ivc=A;lB=[];eM=null;var N=ce=M.parentNode,L,m=f20.call(M);if((L=m.nodeType===11||m.nodeType===9?m.activeElement:null)&&M.contains(L)){for(m=[];L!==N;)m.push(L),L=L.parentNode||(N?L.host:null);N=m}else N=[];bv0=N;try{return H(M,W,w)}finally{M=rP,Gi&&M.deleted.length>0&&Gi(M.deleted),$p=O,rP=d,ivc=n,lB=J,eM=F,ce=P,bv0=f}}};
Kz_=function(H,U,A,M){Yp.push(UjM);Yp.push(H);Yp.push(U);Yp.push(A);Yp.push(M)};
o87=function(H){djK("#text",null);var U=eM;var A=Wz8(U);if(A.text!==H){A=A.text=H;for(var M=1;M<arguments.length;M+=1)A=(0,arguments[M])(A);U.data!==A&&(U.data=A)}};
pxr=function(H,U,A){if(A===!1&&FzK.has(U))Cd(H,U,null);else if(U!=="idomKey"&&U!=="skip"&&U!=="skipchildren"&&U!=="children"&&U!=="el")if(U.startsWith("on")){if(U[2]!==":")throw Error("Ub`"+U);if(A===void 0||A===null){var M;(M=jv.handleError)==null||M.call.apply(M,[jv].concat(_.vI(zi(Error("Zb`"+U),H.tagName))));H[U]=void 0}else{var W=U.slice(3);M=Pe();if(W==="jsaction"){A=Array.isArray(A)?A:[A];A=_.b(A);for(var w=A.next();!w.done;w=A.next()){w=w.value;if(typeof w!=="object"||w===null||typeof w.selfReg!==
"function")throw Error("bc`"+U);w.selfReg(0,H,M?_.m4:function(){})}}else{if(typeof A!=="object"||A===null)throw Error("$b`"+U+"`"+typeof A);
if(typeof A.getFn!=="function")throw Error("ac`"+U+"`"+Object.keys(A));if(A.selfReg)A.selfReg(0,H,W,M?_.m4:function(){});
else if(M&&H["on"+W]===void 0){var d=A.getFn(0);H.addEventListener(W,d);_.m4(function(){return void H.removeEventListener(W,d)})}else if(M||!PUt.includes(W))H["on"+W]=A.getFn(0)}}}else{if(U.startsWith("data-")&&typeof A==="string")try{A=sgM(A)}catch(O){A="zSoyz"}typeof A!=="function"||H._disposeEffects!=null?((M=U.startsWith("prop:"))&&(U=U.slice(5)),jv.enableAttributeSanitization&&(M&&n8c(H.tagName)||(A=Yo_(H.tagName,U,A))),U==="style"?("function"==typeof _.qf&&A instanceof _.qf&&(A=A.toString()),
NJt(H,U,A)):M?H[U]=A:Sec(H,U,A)):(H._signalProps||(H._signalProps=[]),H._signalValues||(H._signalValues=[]),H._signalProps.push(U))}};
Lzr=function(H,U,A){A=(A===void 0?{}:A).isReactive;if(U==null?0:U.el){var M=U.el,W;(W=M.onRender)==null||W.call(M,H);H._disposeRef||(H._disposeRef=function(){var w;(w=M.onUnmount)==null||w.call(M);delete H._disposeRef},A&&_.m4(function(){var w;
(w=H._disposeRef)==null||w.call(H)}))}};
n8c=function(H){return H.length>0&&H.includes("-")&&!RWK.includes(H.toLowerCase())};
E88=function(H){return Ic(H)&&ha in H};
mjh=function(H){return E88(H)?H[ha].flattened:H};
g8N=function(H,U){var A=_.QY.apply(2,arguments),M;U=(M=U)!=null?M:{};M={};return M.type=H,M.props=U,M.children=A,M[kp]=!0,M};
_.ve=function(H){return H.children};
Ti=function(H){var U=a2c!==g8N;a2c=H?xj0:g8N;return U};
jM=function(H){return _.ht(H)?"nodeType"in H:!1};
In=function(){return document.createTextNode("")};
Qq=function(H){H=document.createTextNode(String(H));H._isSignalTextNode=!0;return H};
CUc=function(H){return H!=null&&H.contentKind===Vq||H instanceof Ur||zWc(H)};
tUE=function(H){var U=document.createElement("div");if(zWc(H)&&XKc(H))_.KU(U,XKc(H));else if(H instanceof Ur)_.KU(U,H);else if(H!=null&&H.contentKind===Vq){if(H.contentKind!==Vq)throw Error("Yb");H=A$(H.toString());_.KU(U,H)}H=_.b(U.childNodes);for(var A=H.next();!A.done;A=H.next())A.value._isSafeOrSanitizedHtmlNode=!0;return U};
H5=function(H){H=typeof H;return H==="string"||H==="number"||H==="boolean"};
cTc=function(H){return H instanceof By||qS(H)||H instanceof PI||"function"==typeof _.qf&&H instanceof _.qf};
yTc=function(H,U){var A=H.parentElement;if(!A)return U;A.replaceChild(U,H);return U};
BJh=function(H,U){var A=H[0].parentElement;if(A)if(H[0].previousSibling||H[H.length-1].nextSibling){A.insertBefore(U,H[0]);for(var M=H.length-1;M>=0;M--)A.removeChild(H[M])}else A.textContent="",A.appendChild(U);return U};
rT0=function(H,U){if(H[0].parentElement)for(var A=H[0].parentElement,M=U.length,W=H.length,w=M,d=0,O=0,f=H[W-1].nextSibling,J=null;d<W||O<w;)if(H[d]===U[O])d++,O++;else{for(;H[W-1]===U[w-1];)W--,w--;if(W===d)for(var F=w<M?O?U[O-1].nextSibling:U[w-O]:f;O<w;){var P=U[O++];A.insertBefore(P,F)}else if(w===O)for(;d<W;)F=H[d],J&&J.has(F)||A.removeChild(F),d++;else if(H[d]===U[w-1]&&U[O]===H[W-1])F=H[--W].nextSibling,A.insertBefore(U[O++],H[d++].nextSibling),A.insertBefore(U[--w],F),H[W]=U[w];else{if(!J)for(J=
new Map,F=O;F<w;)J.set(U[F],F++);F=J.get(H[d]);if(F==null)A.removeChild(H[d]),d++;else if(O<F&&F<w){P=d;for(var n=1,N=void 0;++P<W&&P<w&&(N=J.get(H[P]))!=null&&N===F+n;)n++;if(n>F-O)for(P=H[d];O<F;)A.insertBefore(U[O++],P);else A.replaceChild(U[O++],H[d++])}else d++}}return U};
Djc=function(H){if(Array.isArray(H)){if(H.length>1)throw Error("lc`"+H.length+"`"+H.map(eWM).join(", "));H=H[0]}if(H==null)return null;if(!(H instanceof _.dY)){var U,A;if((U=window)==null?0:(A=U.trustedTypes)==null?0:A.isScript(H))throw Error("kc");if(String(H).trim().length===0)return null;throw Error("mc`"+eWM(H));}return H};
$jF=function(H,U){U=Djc(U);U!==null&&_.fU(H,U)};
l20=function(H){if(Array.isArray(H)){if(H.length>1)throw Error("nc`"+H.length+"`"+H.map(eWM).join(", "));H=H[0]}if(H==null)return null;if(!(H instanceof PI)){if(String(H).trim().length===0)return null;throw Error("oc`"+eWM(H));}return H};
GP4=function(H,U){U=l20(U);U!==null&&(H.textContent=CLr(U))};
eWM=function(H){return"("+typeof H+") "+(H!=null&&typeof H==="object"?H.constructor.name:typeof H)+" "+H};
Yet=function(){};
W5=function(H,U){U=U===void 0?{}:U;var A=qer(),M=!0,W,w=!!jv.legacyTriggerSoyRendererEvents;w&&(W=rk0());_.Rn(function(){var d=!M&&U.isControlFlowComponent&&w,O=d?A[ha].flattened[0].parentElement:void 0;M=!1;Ar.setUp();U.isControlFlowComponent&&SM++;var f=A[0],J=A[ha].flattened,F=Ti(!0);try{var P=H(),n=hW8(f,P,A);Array.isArray(n)||(A[ha].flattened=[n]);var N=A[ha].flattened;if(J&&(!Array.isArray(J)||J.length!==0)){var L=Array.isArray(J)?J[0]:J,m=L[MU],z=L._disposeEffects;L._disposeEffects=void 0;
L=Array.isArray(N)?N[0]:N;L[MU]=m;L[MU]&&(L[MU].numNodes=L===N?1:N.length);L._disposeEffects=z}A[0]=n;U.isControlFlowComponent&&Ld(!1)}catch(c){throw U.isControlFlowComponent&&Ld(!0),c;}finally{Ti(F),Ar.tearDown()}d&&(d=W,d!=null||(d=_.PSc(document).getAppContext()),d.get(kPK).JSC$30092_getEventTarget().dispatchEvent(new v8F(TJ8,O,Vq)))},U.debugName);
return A};
hW8=function(H,U,A){for(;typeof U==="function";)U=U();if(U!=null&&U[kp]){var M,W,w;(w=jv.handleError)==null||w.call.apply(w,[jv].concat(_.vI(zi(Error("pc`"+((M=U.type)==null?void 0:M.TAG_NAME)),(W=U.type)==null?void 0:W.TAG_NAME))))}if(H==null)return U==null?In():H5(U)?Qq(U):cTc(U)?Qq(U.toString()):jM(U)?U:U.length===0?In():jgE(U,A);if(jM(H)){if(U==null)return yTc(H,In());if(H5(U))return I2F(H,U);if(cTc(U))return I2F(H,U.toString());if(jM(U))return yTc(H,U);if(U.length===0)return yTc(H,In());U=jgE(U,
A);rT0([H],A[ha].flattened);return U}H=wD(H);if(U==null)return BJh(H,In());if(H5(U))return BJh(H,Qq(U));if(cTc(U))return BJh(H,Qq(U.toString()));if(jM(U))return rT0(H,[U])[0];if(U.length===0)return BJh(H,In());U=jgE(U,A);rT0(H,A[ha].flattened);return U};
I2F=function(H,U){H.nodeType===Node.TEXT_NODE?H.textContent!==String(U)&&(H.textContent=String(U)):H=yTc(H,Qq(U));return H};
wD=function(H,U,A){return Qgr(H,U!=null?U:[],A===void 0?!1:A)};
jgE=function(H,U){var A=wD(H,void 0,!0);if(A.length===0)return In();U[ha].flattened=A;return H};
Qgr=function(H,U,A,M,W){U=U===void 0?[]:U;A=A===void 0?!1:A;W=W===void 0?-1:W;if(H==null)return U;if(H instanceof XQ){var w=H.render();return Qgr(w,U,A,M,W)}if(jM(U)&&U.nodeType===Node.ELEMENT_NODE)switch(U.tagName){case "SCRIPT":$jF(U,H);return;case "STYLE":GP4(U,H);return}H5(H)&&(H=Qq(H),M&&A&&(M[W]=H));if(CUc(H)){A=tUE(H);A=Array.from(A.childNodes);A=_.b(A);for(w=A.next();!w.done;w=A.next())VUV(U,w.value);return U}cTc(H)&&(H=Qq(H.toString()),M&&A&&(M[W]=H));if(jM(H))return VUV(U,H);if(Array.isArray(H)){for(w=
0;w<H.length;w++)Qgr(H[w],U,A,H,w);return U}if(typeof H==="function"){w=W5(function(){var O=H();return O!=null&&!H5(O)&&CUc(O)?(O=tUE(O),Array.from(O.childNodes)):O},{debugName:"qmF2ne",
debugFn:H})[0];if(Array.isArray(w)){A=_.b(w);for(w=A.next();!w.done;w=A.next())VUV(U,w.value);return U}M&&A&&(M[W]=w);return VUV(U,w)}if(H!=null&&H[kp]){M=H;W=Ti(!0);var d=a2c;try{w=d.apply(null,[M.type,M.props].concat(_.vI(M.children)))}finally{Ti(W)}return Qgr(w,U,A)}(d=jv.handleError)==null||d.call.apply(d,[jv].concat(_.vI(zi(Error("qc")))));return U};
qer=function(H){var U={};U=Object.assign([],(U[ha]={flattened:[]},U));if(!H)return U;U[0]=jgE(H,U);return U};
VUV=function(H,U){Array.isArray(H)?H.push(U):H.appendChild(U);return H};
dD=function(H){if(!jv.enableLazyTsx)return H;if(Array.isArray(H)){for(var U=0;U<H.length;U++)H[U]=dD(H[U]);return H}return H instanceof XQ?(H=H.render(),dD(H)):H};
UZ_=function(H,U){var A,M,W=A00(H),w=function(N){M=N;N=Ti(!0);var L=VX(OW);vBc("render",W);try{A=dD(H(U))}finally{TB7("render",W),VX(L),Ti(N)}};
w=jv.enableContextPerComponent?Vx8(w,W):gP(w,jv.alwaysTrackContexts||!!qg);UaE(M);if(!U.renderedFromIdom){var d=h8(M);try{return H1_(H,U,A),A}finally{h8(d)}}!E88(A)&&Array.isArray(A)&&(A=qer(A));var O=mjh(A);d=Array.isArray(O)?O[0]:O;var f=!1;if(d){var J,F=(J=U==null?void 0:U.idomKey)!=null?J:H;J=O!==d;d._disposeEffects=w;var P=d[MU]||{},n=E88(A)?A:P.sourceDynamicRange;Object.assign(P,{key:F,numNodes:J?O.length:1,context:M,higherOrder:!!d[MU],sourceDynamicRange:n});d[MU]=P}else f=!0;(function(){var N=
h8(M);try{H1_(H,U,O)}finally{h8(N)}})();
f&&w();return A};
APc=function(H){var U={},A;for(A in H)U={prev$jscomp$24:void 0,next$jscomp$33:void 0},U.prev$jscomp$24=ux[A],U.next$jscomp$33=H[A],ux[A]=function(M){return function(){var W=_.QY.apply(0,arguments);M.prev$jscomp$24.apply(null,_.vI(W));M.next$jscomp$33.apply(null,_.vI(W))}}(U)};
MbN=function(){if(Pe())throw Error("rc");return ZM};
WJV=function(H,U){if(!H.__unmounted&&U){H.__unmounted=!0;try{H.didUnmount()}catch(W){var A,M;(M=jv.handleError)==null||M.call.apply(M,[jv].concat(_.vI(zi(W,(A=H.__type)==null?void 0:A.TAG_NAME))))}ux.didUnmount(H);H.el=null;U.__instance&&delete U.__instance}};
XgE=function(H,U,A){H._signalProps!=null&&H._disposeEffects==null&&((A===void 0?0:A)?H._disposeEffects=gP(function(){return void wg4(H,U)},jv.alwaysTrackContexts||!!qg):wg4(H,U))};
wg4=function(H,U){_.Rn(function(){for(var A=H._signalProps,M=H._signalValues,W=0;W<A.length;W++){var w=A[W],d=U[w]();M[W]!==d&&(M[W]=d,pxr(H,w,d))}},"e3YVbb")};
i1t=function(H,U,A){var M,W=[];H._disposeEffects=gP(function(){_.Rn(function(){var w=A();if(w===null||w===void 0)w="";if(H5(w)||w===null)M!=null||(M=document.createTextNode("")),M.parentNode!==H&&(M._isSignalTextNode=!0,H.insertBefore(M,U)),M.textContent=String(w);else if(CUc(w)){for(var d=W.length>0?W[W.length-1].nextSibling:U,O=_.b(W),f=O.next();!f.done;f=O.next())H.removeChild(f.value);w=tUE(w);W=Array.from(w.childNodes);w=_.b(W);for(O=w.next();!O.done;O=w.next())H.insertBefore(O.value,d)}else throw f=
(O=(d=on)==null?void 0:d.name)!=null?O:"unknown",Error("gc`"+f+"`"+typeof w);},"VvDgC")},jv.alwaysTrackContexts||!!qg)};
O1t=function(H,U){var A=_.QY.apply(2,arguments);U!=null||(U={});return!jv.enableLazyTsx||on!=null&&!Pe()?b18(H,U,A):new dZc(H,U,A)};
b18=function(H,U,A){if(H===_.ve)return A;if(typeof H==="function")return on&&!Pe()&&(U.renderedFromIdom=!0),MXV(H,function(){A.length>0&&(U.children=A.length===1?A[0]:A);if(H.componentType===F$){var w;Vx8(function(){var d=U;if(H.componentType!==F$)w=!1;else{d||(d={});var O=new fA(d,H),f=VX(OW);try{var J=O.render(d)}finally{VX(f)}J instanceof HTMLElement?(J.__instance=O,O.el=J,O.__type=H,H.TAG_NAME=J.tagName.toLowerCase(),ux.didPatch(O),w=J):w=J}},H.name);
if(w)return w}return UZ_(H,U)},U.debugInstance);
var M=uKt(H,U),W;for(W in U)pxr(M,W,U[W]);XgE(M,U);wD(A,M);Lzr(M,U,{isReactive:!0});Z10(M,U);return M};
uKt=function(H,U){H=(fH8.has(H.toLowerCase())?0:JP4.has(H.startsWith("svg:")?H.replace("svg:",""):H))?document.createElementNS("http://www.w3.org/2000/svg",H.startsWith("svg:")?H.replace("svg:",""):H):KJ7(H,U)||document.createElement(H);H[o20]=!0;return H};
FJM=function(H){if(H){var U;(U=H._disposeRef)==null||U.call(H);var A;(A=H._disposeEffects)==null||A.call(H);H.__instance&&H.__instance instanceof Jr&&(U=H.__instance,WJV(U,H),U instanceof fA&&U.disposeEffects());for(U=0;U<H.childNodes.length;U++)FJM(H.childNodes[U])}};
s2M=function(H){PH0.push(H)===1&&requestAnimationFrame(function(){setTimeout(function(){var U=[].concat(_.vI(PH0));PH0=[];U=_.b(U);for(var A=U.next();!A.done;A=U.next()){A=A.value;try{for(var M=0;M<A.length;M++)FJM(A[M])}catch(W){M=A=void 0,(M=(A=jv).handleError)==null||M.call.apply(M,[A].concat(_.vI(zi(W))))}}})})};
_.Z=function(H,U){return a2c.apply(null,[H,U].concat(_.vI(_.QY.apply(2,arguments))))};
_.KA=function(H){return H};
_.oh=function(H){return{isDefault:!0,children:H.children}};
_.K=function(H){var U=H.cond;if(U===void 0)return H.else&&H.else();var A=_.Ja(function(){return!!U()},void 0,"JHVi8"),M=function(){var w=U();
if(!w){var d;(d=jv.handleError)==null||d.call.apply(d,[jv].concat(_.vI(zi(n2M.nonNullableCondIsNull()))))}return w},W;
return W5(function(){var w=A(),d;gP(function(){var O=VX(OW);try{d=dD(w?H.then(M):H.else&&H.else())}finally{VX(O)}},!0);
return d},{debugName:(W=H.debugInstance)!=null?W:"RlDudd",
debugFn:H.then,isControlFlowComponent:!0})};
Ns8=function(H){return _.K(H)};
_.FQ=function(H){return H.keyBy==="INDEX"?SHr(H):pg_(H)};
LJ4=function(H){H=_.b(H);for(var U=H.next();!U.done;U=H.next()){var A=void 0;(A=U.value)==null||A()}};
pg_=function(H){var U=H.keyBy===void 0||H.keyBy==="REFERENCE",A=U?function(P){return P}:H.keyBy,M=[],W=[],w=[],d=[],O=[],f=[],J=!0;
_.m4(function(){LJ4(d)});
var F;return W5(function(){var P=RRK(H),n=P.length;if(n===0){if(M.length===0&&!J)return w;LJ4(d);M=P;W=[];for(P=0;P<M.length;P++)W.push(A(M[P]));w=[];d=[];O=[];f=[];H.fallback&&(d[0]=E2N(function(){w[0]=dD(H.fallback())}));
J=!1;return w}for(var N=new mZ8,L=M.length-1;L>=0;L--)N.push(W[L],L);L=Array(n);for(var m=Array(n),z=Array(n),c=Array(n),C=Array(U?0:n),v={i$jscomp$453:0};v.i$jscomp$453<n;v={i$jscomp$453:v.i$jscomp$453,item$jscomp$104:void 0,key$jscomp$565:void 0},v.i$jscomp$453++){v.item$jscomp$104=P[v.i$jscomp$453];v.key$jscomp$565=A(v.item$jscomp$104);var Y=N.pop(v.key$jscomp$565);Y!=null?(z[v.i$jscomp$453]=w[Y],m[v.i$jscomp$453]=W[Y],L[v.i$jscomp$453]=d[Y],c[v.i$jscomp$453]=O[Y],U||(C[v.i$jscomp$453]=f[Y]),Kd(function(D){return function(){c[D.i$jscomp$453](D.i$jscomp$453);
if(!U)C[D.i$jscomp$453](D.item$jscomp$104)}}(v)),delete d[Y]):L[v.i$jscomp$453]=E2N(function(D){return function(){var h=_.b(_.iB(D.i$jscomp$453,void 0,"Fqk1zd")),T=h.next().value;
h=h.next().value;c[D.i$jscomp$453]=h;m[D.i$jscomp$453]=D.key$jscomp$565;if(U)z[D.i$jscomp$453]=dD(H.children(D.item$jscomp$104,T));else{var WF=_.b(_.iB(D.item$jscomp$104,void 0,"GBj5de"));h=WF.next().value;WF=WF.next().value;C[D.i$jscomp$453]=WF;z[D.i$jscomp$453]=dD(H.children(h,T))}}}(v))}LJ4(d);
M=P;W=m;w=z;d=L;O=c;f=C;J=!1;return z},{debugName:(F=H.debugInstance)!=null?F:"nsTGHd",
debugFn:H.each,isControlFlowComponent:!0})};
SHr=function(H){var U=[],A=[],M=[],W=[],w=!1;_.m4(function(){LJ4(W)});
var d;return W5(function(){var O=RRK(H);w&&O.length>0&&(W.pop()(),U.pop(),w=!1);for(var f=Array(O.length),J={i$jscomp$454:0};J.i$jscomp$454<O.length;J={i$jscomp$454:J.i$jscomp$454},J.i$jscomp$454++)if(J.i$jscomp$454<U.length)U[J.i$jscomp$454]!==O[J.i$jscomp$454]&&(Kd(function(P){return function(){return void A[P.i$jscomp$454](O[P.i$jscomp$454])}}(J)),U[J.i$jscomp$454]=O[J.i$jscomp$454]),f[J.i$jscomp$454]=M[J.i$jscomp$454];
else{var F=E2N(function(P){return function(){U[P.i$jscomp$454]=O[P.i$jscomp$454];var n=_.b(_.iB(O[P.i$jscomp$454],void 0,"JMMLmd")),N=n.next().value;n=n.next().value;A[P.i$jscomp$454]=n;f[P.i$jscomp$454]=dD(H.children(N,P.i$jscomp$454))}}(J));
W[J.i$jscomp$454]=F}for(;U.length>O.length;)U.pop(),W.pop()(),A.pop();O.length===0&&!w&&H.fallback&&(J=E2N(function(){f[0]=dD(H.fallback())}),W[0]=J,w=!0);
return M=f},{debugName:(d=H.debugInstance)!=null?d:"nsTGHd",
isControlFlowComponent:!0})};
RRK=function(H){H=H.each();return Array.isArray(H)?H:Array.from(H)};
E2N=function(H){var U=qg;return gP(function(A){var M=VX(OW);try{A.parent=U,H(A)}finally{VX(M)}},!1)};
_.P5=function(H){var U=g20(H),A=_.Ja(function(){return aHN(U)},void 0,"F1PF4"),M;
return W5(function(){var W=A(),w;gP(function(){var d=VX(OW);try{w=dD(W())}finally{VX(d)}});
return w},{debugName:(M=H.debugInstance)!=null?M:"vI1rtf",
isControlFlowComponent:!0})};
g20=function(H){H=H.children;return Array.isArray(H)?H:[H]};
xZ0=function(H){var U=H.props;H=H.getChildren()[0];return U.when?{when:U.when,children:H}:{isDefault:!0,children:H}};
aHN=function(H){var U=function(){return null};
H=_.b(H);for(var A=H.next();!A.done;A=H.next())if(A=A.value,A!=null&&A[kp]&&(A=A.type===_.oh?{isDefault:!0,children:A.children[0]}:{when:A.props.when,children:A.children[0]}),A instanceof XQ&&(A=xZ0(A)),A.isDefault)U=A.children;else if(A.when())return A.children;return U};
zRc=function(H){var U=null,A,M={get value(){var w,d;(d=(w=W).validateGetValue)==null||d.call(w);return W.__value},set value(w){var d,O;(O=(d=W).validateSetValue)==null||O.call(d,w);W.__value=w;W.__hasBeenSet=!0}},W=(M.__value=null,M.__hasBeenSet=!1,M.__hasErrored=!1,M.onRender=function(w){if(A&&w!==A){A._disposeRef=void 0;var d;(d=U)==null||d()}A=w;U=H(w)||null},M.onUnmount=function(){var w;
(w=U)==null||w();U=W.value=null},M[Lyt]=!0,M);
return W};
sW=function(H){return typeof H==="symbol"};
tbF=function(H){var U=MbN();if(U==null)throw CHE.PRIMITIVE_INVALID_HOOK_CALL();var A=U.hookCounter++;U.hooks||(U.hooks=[]);var M=U.hooks;M[A]||(M[A]={key:H,host:U});if(H!==M[A].key){if(U.__type){var W;H=(W=U.__type)==null?void 0:W.name}else H=U instanceof fA?A00(U.functionComponent):"<"+U.el.tagName.toLowerCase()+">";throw CHE.OUT_OF_ORDER_HOOK_CALL(H);}return M[A]};
cP8=function(H,U){return!H||H.length!==(U==null?void 0:U.length)||H.some(function(A,M){return A!==U[M]})};
yP0=function(H,U){if(Pe())return H();var A=tbF("useMemoInternal");cP8(A.deps,U)&&(A.deps=U,A.value=H());return A.value};
Bsh=function(H,U){return yP0(H,U)};
_.nA=function(H,U){return rPE(H,!1,U)};
_.NU=function(H,U){return rPE(H,!0,U)};
rPE=function(H,U,A){return Pe()?eRF(H,U,A):DZ_(H,U,A)};
DZ_=function(H,U,A){return yP0(function(){return eRF(H,U,A)},[])};
eRF=function(H,U,A){var M=zRc(function(W){M.value=W;var w=function(){var d=VX(null);try{return A==null?void 0:A(W)}finally{VX(d)}}();
return function(){w==null||w()}});
M.__expectedTagName=H;M.__optional=U;M.isIdom=!Pe();return M};
$Z4=function(H,U){var A;U=gP(function(){var M=Ti(!0);SM++;try{A=wD(H()),Ld(!1)}catch(W){throw Ld(!0),W;}finally{Ti(M)}},U===void 0?!1:U);
return[A,U]};
_.Sy=function(H,U,A){A!=null||(A={});A=A.appContext;var M=!!jv.legacyTriggerSoyRendererEvents;Ar.setUp();try{var W=lHE(H,U,A);M&&(U=A,U!=null||(U=_.PSc(document).getAppContext()),U.get(kPK).JSC$30092_getEventTarget().dispatchEvent(new v8F(GR_,H,Vq)));Ar.log(H);return W}finally{Ar.tearDown()}};
lHE=function(H,U,A){var M=nd(function(){var W=VX(OW);try{return gP(function(){var w=_.PSc(_.ZD(H)),d;var O=BBh({rootElement:{value:H},appContext:A||(w==null?void 0:(d=w.getOptionalAppContext)==null?void 0:d.call(w)),dispatcher:w});w=h8(O);O=Ti(!0);SM++;try{wD(U(),H),Ld(!1)}catch(f){throw Ld(!0),f;}finally{Ti(O),h8(w)}},!1)}catch(w){throw jv.enableContextBasedComponentStacks&&sm(w),w;
}finally{VX(W)}});
H[YHr]=!0;return function(){H.textContent="";M();H[YHr]=!1}};
_.pA=function(H){if(LFr(QX)){var U;(U=jv.handleError)==null||U.call.apply(U,[jv].concat(_.vI(zi(Error("fc")))))}var A=qg,M=on;f57({onInitType:u7h,run:function(){if(A&&!A.isDisposed){var W=h8(A);try{nd(function(){return void H()},M)}catch(w){throw jv.enableContextBasedComponentStacks&&sm(w),w;
}finally{h8(W)}}}})};
kRV=function(H){var U=NBE(2),A=new Set;_.m4(function(){return void A.forEach(function(M){return void M()})});
return function(M){var W=h8(U);try{var w=qHc(hR0(H),M);A.add(w);return function(){w();A.delete(w)}}finally{h8(W)}}};
_.v2_=function(H){var U=H.children;var A=H.root;_.pA(function(){var M=kRV(A)(U);_.m4(M)});
return document.createTextNode("")};
qHc=function(H,U){var A=Tsh(H);(H=Rrt())&&KyK(A,H);Ar.setUp();U=_.b($Z4(U,!0));H=U.next().value;var M=U.next().value;U=_.b(H);for(H=U.next();!H.done;H=U.next())A.appendChild(H.value);Ar.log(A);Ar.tearDown();return function(){M();A.remove()}};
hR0=function(H){if(typeof H==="string")return H=document.querySelector(H),_.ikF(H),H;if(jM(H)&&H.nodeType===Node.ELEMENT_NODE)return H;if(!H.__value&&!H.__optional){var U=CHE.USE_ELEMENT_NOT_ASSIGNED(H.__expectedTagName);H.__hasErrored=!0;throw U;}return H.value};
Tsh=function(H){var U=document.createElementNS(H.namespaceURI,H.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");return H.appendChild(U)};
j2F=function(H,U){var A=tbF("onChange"),M=MbN();cP8(A.deps,U)&&(A.deps=U,A.pendingEffect=H,M.__syncEffects||(M.__syncEffects=[]),M.__syncEffects.push(A))};
IHt=function(H,U){j2F(function(){return _.X$(H)},U)};
_.LA=function(H){Pe()?_.pA(function(){_.X$(H)}):j2F(function(){return _.X$(H)},[])};
VbE=function(H){var U=[].concat(_.vI(H));H.length=0;H=_.b(U);for(U=H.next();!U.done;U=H.next()){U=U.value;Q2t(U);var A=U.pendingEffect;U.pendingEffect=null;if(A=A==null?void 0:A())U.pendingCleanup=A}};
Q2t=function(H){var U=H.pendingCleanup;H.pendingCleanup=null;U==null||U()};
HE0=function(H){return yP0(function(){return{value:H}},[])};
_.Rh=function(H,U){if(!H)return null;H=Object.keys(H);H=_.b(H);for(var A=H.next();!A.done;A=H.next()){A=A.value;var M=A.toLowerCase();if(M.indexOf(U,M.length-U.length)>-1)return A}return null};
_.mT=function(){var H=arguments,U=_.EW;H.length>1?U[H[0]]=H[1]:H.length===1&&Object.assign(U,H[0])};
_.gD=function(H,U){return H in _.EW?_.EW[H]:U};
_.xV=function(H,U){return!!_.gD(H,U)};
UYE=function(H){var U=_.EW.EXPERIMENT_FLAGS;return U?U[H]:void 0};
M98=function(H){AwN.forEach(function(U){return U(H)})};
_.CA=function(H){return H&&window.yterr?function(){try{return H.apply(this,arguments)}catch(U){_.za(U)}}:H};
_.za=function(H){var U=_.tr("yt.logging.errors.log");U?U(H,"ERROR",void 0,void 0,void 0,void 0,void 0):(U=_.gD("ERRORS",[]),U.push([H,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.mT("ERRORS",U));M98(H)};
_.c5=function(H,U,A,M,W){var w=_.tr("yt.logging.errors.log");w?w(H,"WARNING",U,A,M,void 0,W):(w=_.gD("ERRORS",[]),w.push([H,"WARNING",U,A,M,void 0,W]),_.mT("ERRORS",w))};
wOF=function(H,U){U=H.split(U);for(var A={},M=0,W=U.length;M<W;M++){var w=U[M].split("=");if(w.length===1&&w[0]||w.length===2)try{var d=Wb4(w[0]||""),O=Wb4(w[1]||"");if(d in A){var f=A[d];Array.isArray(f)?_.qr(f,O):A[d]=[f,O]}else A[d]=O}catch(n){var J=n,F=w[0],P=String(wOF);J.args=[{key:F,value:w[1],query:H,method:XO8===P?"unchanged":P}];iE_.hasOwnProperty(F)||_.c5(J)}}return A};
bEc=function(H){var U=[];_.dG.forEach(H,function(A,M){var W=_.q2(M);A=Array.isArray(A)?A:[A];_.yW(A,function(w){w==""?U.push(W):U.push(W+"="+_.q2(w))})});
return U.join("&")};
_.B5=function(H){H.charAt(0)==="?"&&(H=H.substring(1));return wOF(H,"&")};
_.rD=function(H){return H.indexOf("?")!==-1?(H=(H||"").split("#")[0],H=H.split("?",2),_.B5(H.length>1?H[1]:H[0])):{}};
_.ey=function(H,U){return dY4(H,U||{},!0)};
OEK=function(H,U){return dY4(H,U||{},!1)};
dY4=function(H,U,A){var M=H.split("#",2);H=M[0];M=M.length>1?"#"+M[1]:"";var W=H.split("?",2);H=W[0];W=_.B5(W[1]||"");for(var w in U)if(A||!_.dG.containsKey(W,w))W[w]=U[w];return _.kZ(H,W)+M};
DM=function(H){if(!U)var U=window.location.href;var A=_.BL(H)[1]||null,M=_.es(H);return A&&M?GZ(H,U):M?_.es(U)===M&&(Number(_.BL(U)[4]||null)||null)===(Number(_.BL(H)[4]||null)||null):!0};
_.ZEc=function(H){H=u_h(H);return H===null?!1:H[0]==="com"&&H[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
u_h=function(H){H=_.es(H);return H!==null?H.split(".").reverse():null};
Wb4=function(H){return H&&H.match(f$K)?H:YZ(H)};
_.$V=function(H){return new Jwr(H)};
_.lx=function(){KbM||(KbM=new oU0);return KbM};
Pa7=function(){var H=Fb8;return function(){var U=_.lx();if(!U.resolve(_.$V(H))){var A={};U.addProvider((A.provide=H,A.useClass=H,A[Ga]=void 0,A))}return U.resolve(H)}};
nUM=function(H){var U=_.YV,A,M;_.u(function(W){A=_.lx();return(M=A.resolve(_.$V(U)))?(H(M),W.return(Promise.resolve(M))):W.return(A.resolve(new su_(U)).then(function(w){H(w);return w}))})};
_.S=function(H){H=qU(H);return typeof H==="string"&&H==="false"?!1:!!H};
_.hr=function(H,U){H=qU(H);return H===void 0&&U!==void 0?U:Number(H||0)};
NH_=function(H){H=qU(H);return Array.isArray(H)?_.OA(H,function(U){return Number(U||0)}):[Number(H||0)]};
_.kV=function(H){H=qU(H);return H!==void 0?String(H):""};
_.v5=function(H){H=qU(H);return Array.isArray(H)?_.OA(H,function(U){return String(U||"")}):[String(H||"")]};
Sn0=function(){return _.gD("EXPERIMENTS_TOKEN","")};
qU=function(H){if(H!==pOr)return _.gD("EXPERIMENT_FLAGS",{})[H]};
LbM=function(){for(var H=[],U=_.gD("EXPERIMENTS_FORCED_FLAGS",{}),A=_.b(Object.keys(U)),M=A.next();!M.done;M=A.next())M=M.value,H.push({key:M,value:String(U[M])});A=_.gD("EXPERIMENT_FLAGS",{});M=_.b(Object.keys(A));for(var W=M.next();!W.done;W=M.next())W=W.value,W.startsWith("force_")&&U[W]===void 0&&H.push({key:W,value:String(A[W])});return H};
EUV=function(){if(!RM8)return null;var H=RM8();return"open"in H?H:null};
_.mYM=function(H){switch(_.Ta(H)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Ta=function(H){return H&&"status"in H?H.status:-1};
_.jy=function(H,U){typeof H==="function"&&(H=_.CA(H));return window.setTimeout(H,U)};
_.Ih=function(H,U){typeof H==="function"&&(H=_.CA(H));return window.setInterval(H,U)};
_.QW=function(H){window.clearTimeout(H)};
a$r=function(H){H=_.rD(H);for(var U=_.b(gUK),A=U.next();!A.done;A=U.next())if(H[A.value]!==void 0)return!0;return!1};
CaN=function(H,U,A,M,W,w,d,O,f){A=A===void 0?"GET":A;M=M===void 0?"":M;O=O===void 0?!1:O;var J=EUV();if(!J)return null;var F=function(){(J&&"readyState"in J?J.readyState:0)===4&&U&&_.CA(U)(J)};
"onloadend"in J?J.addEventListener("loadend",F,!1):J.onreadystatechange=F;_.S("debug_forward_web_query_parameters")&&(H=xY8(H,window.location.search));J.open(A,H,!0);w&&(J.responseType=w);d&&(J.withCredentials=!0);A=A==="POST"&&(window.FormData===void 0||!(M instanceof FormData));if(W=zMc(H,W))for(var P in W)J.setRequestHeader(P,W[P]),"content-type"===P.toLowerCase()&&(A=!1);A&&J.setRequestHeader("Content-Type","application/x-www-form-urlencoded");f&&"onprogress"in J&&(J.onprogress=function(){f(J.responseText)});
if(O&&"setAttributionReporting"in XMLHttpRequest.prototype){H={eventSourceEligible:!0,triggerEligible:!1};try{J.setAttributionReporting(H)}catch(n){_.c5(n)}}J.send(M);return J};
zMc=function(H,U){U=U===void 0?{}:U;var A=DM(H),M=_.gD("INNERTUBE_CLIENT_NAME"),W=_.S("web_ajax_ignore_global_headers_if_set"),w;for(w in t9E){var d=_.gD(t9E[w]),O=w==="X-Goog-AuthUser"||w==="X-Goog-PageId";w!=="X-Goog-Visitor-Id"||d||(d=_.gD("VISITOR_DATA"));var f;if(!(f=!d)){if(!(f=A||(_.es(H)?!1:!0))){f=H;var J;if(J=_.S("add_auth_headers_to_remarketing_google_dot_com_ping")&&w==="Authorization"&&(M==="TVHTML5"||M==="TVHTML5_UNPLUGGED"||M==="TVHTML5_SIMPLY"))J=u_h(f),J=J===null?!1:J[1]==="google"?
!0:J[2]==="google"?J[0]==="au"&&J[1]==="com"?!0:J[0]==="uk"&&J[1]==="co"?!0:!1:!1;J&&(f=_.DU(f)||"",f=f.split("/"),f="/"+(f.length>1?f[1]:""),J=f==="/pagead");f=J?!0:!1}f=!f}f||W&&U[w]!==void 0||M==="TVHTML5_UNPLUGGED"&&O||(U[w]=d)}"X-Goog-EOM-Visitor-Id"in U&&"X-Goog-Visitor-Id"in U&&delete U["X-Goog-Visitor-Id"];if(A||!_.es(H))U["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(A||!_.es(H)){try{var F=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(P){}F&&(U["X-YouTube-Time-Zone"]=
F)}document.location.hostname.endsWith("youtubeeducation.com")||!A&&_.es(H)||(U["X-YouTube-Ad-Signals"]=bEc(cwF()));return U};
_.ywV=function(H,U){var A=_.es(H);_.S("debug_handle_relative_url_for_query_forward_killswitch")||!A&&DM(H)&&(A=document.location.hostname);var M=_.DU(H);M=(A=A&&(A.endsWith("youtube.com")||A.endsWith("youtube-nocookie.com")))&&M&&M.startsWith("/api/");if(!A||M)return H;var W=_.B5(U),w={};_.yW(gUK,function(d){W[d]&&(w[d]=W[d])});
return OEK(H,w)};
BHE=function(H,U){U.method="POST";U.postParams||(U.postParams={});return _.VW(H,U)};
rw_=function(H,U){var A=_.gD("XSRF_FIELD_NAME"),M;U.headers&&(M=U.headers["Content-Type"]);return!U.excludeXsrf&&(!_.es(H)||U.withCredentials||_.es(H)===document.location.hostname)&&U.method==="POST"&&(!M||M==="application/x-www-form-urlencoded")&&!(U.postParams&&U.postParams[A])};
_.VW=function(H,U){var A=U.format||"JSON";H=eMK(H,U);var M=DYK(H,U),W=!1,w=$Y0(H,function(f){if(!W){W=!0;O&&_.QW(O);var J=_.mYM(f),F=null,P=400<=f.status&&f.status<500,n=500<=f.status&&f.status<600;if(J||P||n)F=l$N(H,A,f,U.convertToSafeHtml);J&&(J=GQ8(A,f,F));F=F||{};P=U.context||_.Mr;J?U.onSuccess&&U.onSuccess.call(P,f,F):U.onError&&U.onError.call(P,f,F);U.onFinish&&U.onFinish.call(P,f,F)}},U.method,M,U.headers,U.responseType,U.withCredentials,!1,U.onProgress);
M=U.timeout||0;if(U.onTimeout&&M>0){var d=U.onTimeout;var O=_.jy(function(){W||(W=!0,w.abort(),_.QW(O),d.call(U.context||_.Mr,w))},M)}return w};
eMK=function(H,U){U.includeDomain&&(H=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+H);var A=_.gD("XSRF_FIELD_NAME");if(U=U.urlParams)U[A]&&delete U[A],H=_.ey(H,U);return H};
DYK=function(H,U){var A=_.gD("XSRF_FIELD_NAME"),M=_.gD("XSRF_TOKEN"),W=U.postBody||"",w=U.postParams;rw_(H,U)&&(w||(w={}),w[A]=M);(_.S("ajax_parse_query_data_only_when_filled")&&w&&Object.keys(w).length>0||w)&&typeof W==="string"&&(W=_.B5(W),_.dG.extend(W,w),W=U.postBodyFormat&&U.postBodyFormat==="JSON"?JSON.stringify(W):_.hz(W));w=W||w&&!_.dG.isEmpty(w);!Yn4&&w&&U.method!=="POST"&&(Yn4=!0,_.za(Error("Mc")));return W};
l$N=function(H,U,A,M){var W=null;switch(U){case "JSON":try{var w=A.responseText}catch(d){throw M=Error("Nc"),M.params=H,_.c5(M),d;}H=A.getResponseHeader("Content-Type")||"";w&&H.indexOf("json")>=0&&(w.substring(0,5)===")]}'\n"&&(w=w.substring(5)),W=JSON.parse(w));break;case "XML":if(H=(H=A.responseXML)?qnt(H):null)W={},_.yW(H.getElementsByTagName("*"),function(d){W[d.tagName]=hMr(d)})}M&&kQM(W);
return W};
kQM=function(H){if(_.ht(H))for(var U in H)U==="html_content"||i7(U,"_html")?H[U]=A$(H[U]):kQM(H[U])};
GQ8=function(H,U,A){if(U&&U.status===204)return!0;switch(H){case "JSON":return!!A;case "XML":return Number(A&&A.return_code)===0;case "RAW":return!0;default:return!!A}};
qnt=function(H){return H?(H=("responseXML"in H?H.responseXML:H).getElementsByTagName("root"))&&H.length>0?H[0]:null:null};
hMr=function(H){var U="";_.yW(H.childNodes,function(A){U+=A.nodeValue});
return U};
vUc=function(H){if(H.name==="JavaException")return!0;H=H.stack;return H.includes("chrome://")||H.includes("-extension://")||H.includes("webkit-masked-url://")};
THc=function(H){if(!H.stack)return!0;var U=!H.stack.includes("\n");return U&&H.stack.includes("ErrorType: ")||U&&H.stack.includes("Anonymous function (Unknown script")||H.stack.toLowerCase()==="not available"||H.fileName==="user-script"||H.fileName.startsWith("user-script:")?!0:!1};
_.HK=function(H){_.XG.call(this);this.JSC$10829_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!H};
I$M=function(H,U){var A=H.length,M=0,W=function(){return H.charCodeAt(M++)};
do{var w=juV(W);if(w===Infinity)break;var d=w>>3;switch(w&7){case 0:w=juV(W);if(d===U)return w;break;case 1:if(d===U)return;M+=8;break;case 2:w=juV(W);if(d===U)return H.substr(M,w);M+=w;break;case 5:if(d===U)return;M+=4;break;default:return}}while(M<A)};
juV=function(H){var U=H(),A=U&127;if(U<128)return A;U=H();A|=(U&127)<<7;if(U<128)return A;U=H();A|=(U&127)<<14;if(U<128)return A;U=H();return U<128?A|(U&127)<<21:Infinity};
V9t=function(H,U,A,M){if(H)if(Array.isArray(H)){var W=M;for(M=0;M<H.length&&!(H[M]&&(W+=Qu0(M,H[M],U,A),W>500));M++);M=W}else if(typeof H==="object")for(W in H){if(H[W]){var w=W;var d=H[W],O=U,f=A;w=typeof d!=="string"||w!=="clickTrackingParams"&&w!=="trackingParams"?0:(d=I$M(atob(d.replace(/-/g,"+").replace(/_/g,"/")),2))?Qu0(w+".ve",d,O,f):0;M+=w;M+=Qu0(W,H[W],U,A);if(M>500)break}}else A[U]=Aj(H),M+=A[U].length;else A[U]=Aj(H),M+=A[U].length;return M};
Qu0=function(H,U,A,M){A+="."+H;H=Aj(U);M[A]=H;return A.length+H.length};
Aj=function(H){try{return(typeof H==="string"?H:String(JSON.stringify(H))).substr(0,500)}catch(U){return"unable to serialize "+typeof H+" ("+U.message+")"}};
HqE=function(H){switch(H){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}};
_.WK=function(H,U,A,M,W){_.MK.set(H,U,{maxAge:A,path:"/",domain:M===void 0?"youtube.com":M,secure:W===void 0?!1:W})};
_.Uh0=function(H,U,A){_.MK.remove(H,U===void 0?"/":U,A===void 0?"youtube.com":A)};
_.wi=function(){if(_.S("embeds_web_enable_cookie_detection_fix")){if(!_.Mr.navigator.cookieEnabled)return!1}else if(!_.MK.isEnabled())return!1;if(!_.MK.isEmpty())return!0;_.S("embeds_web_enable_cookie_detection_fix")?_.MK.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.MK.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.MK.get("TESTCOOKIESENABLED")!=="1")return!1;_.MK.remove("TESTCOOKIESENABLED");return!0};
AcF=function(){var H=_.Mr.navigator;return H?H.connection:void 0};
Mp_=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(H){}};
_.wCt=function(){var H=AcF();if(H){var U=WHV[H.type||"unknown"]||"CONN_UNKNOWN";H=WHV[H.effectiveType||"unknown"]||"CONN_UNKNOWN";U==="CONN_CELLULAR_UNKNOWN"&&H!=="CONN_UNKNOWN"&&(U=H);if(U!=="CONN_UNKNOWN")return U;if(H!=="CONN_UNKNOWN")return H}};
iqh=function(){var H=AcF();if(H!=null&&H.effectiveType)return XCV.hasOwnProperty(H.effectiveType)?XCV[H.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.iD=function(){try{return _.XU(),!0}catch(H){return!1}};
_.XU=function(H){if(_.gD("DATASYNC_ID")!==void 0)return _.gD("DATASYNC_ID");throw new _.bD("Datasync ID not set",H===void 0?"unknown":H);};
_.di=function(H){this.mechanism=H};
O4=function(H){this.mechanism=H};
uD=function(H){this.mechanism=H};
Z0=function(H){this.storage_=H;this.cachedIsStorageAvailable_=null};
bqN=function(){var H=null;try{H=_.Mr.localStorage||null}catch(U){}Z0.call(this,H)};
dhF=function(){var H=null;try{H=_.Mr.sessionStorage||null}catch(U){}Z0.call(this,H)};
fO=function(H,U){this.mechanism_=H;this.JSC$10931_prefix_=U+"::"};
_.Jj=function(H){var U=new bqN;return U.isAvailable()?H?new fO(U,H):U:null};
_.Oq7=function(H){var U=new dhF;return U.isAvailable()?H?new fO(U,H):U:null};
ZqV=function(){var H;return(H=uz7())==null?void 0:H.get("LAST_RESULT_ENTRY_KEY",!0)};
_.FU=function(H){fYE||(_.KO?_.KO.logError(H):(_.od.push({type:"ERROR",payload:H}),_.od.length>10&&_.od.shift()))};
PK=function(H,U){fYE||(_.KO?_.KO.logEvent(H,U):(_.od.push({type:"EVENT",eventType:H,payload:U}),_.od.length>10&&_.od.shift()))};
s4=function(H){if(H.indexOf(":")>=0)throw Error("Uc");};
nO=function(H){return H.substr(0,H.indexOf(":"))||H};
oO7=function(){return(Jc8||KHV)&&NK("applewebkit")&&!NK("version")&&(!NK("safari")||NK("gsa/"))};
NK=function(H){var U=_.FE();return U?U.toLowerCase().indexOf(H)>=0:!1};
sEF=function(H,U,A,M){U=nO(U);var W=H instanceof Error?H:Error("Vc`"+H);if(W instanceof SC)return W;H={objectStoreNames:A,dbName:U,dbVersion:M};if(W.name==="QuotaExceededError")return new SC("QUOTA_EXCEEDED",H);if(_.pO&&W.name==="UnknownError")return new SC("QUOTA_MAYBE_EXCEEDED",H);if(W instanceof FHM)return new SC("MISSING_INDEX",Object.assign({},H,{objectStore:W.objectStore,index:W.index}));if(W.name==="InvalidStateError"&&PEh.some(function(w){return W.message.includes(w)}))return new SC("EXECUTE_TRANSACTION_ON_CLOSED_DB",
H);
if(W.name==="AbortError")return new SC("UNKNOWN_ABORT",H,W.message);W.args=[Object.assign({},H,{name:"IdbError",originalName:W.name})];W.level="WARNING";return W};
LO=function(H,U,A){var M=ZqV();return new SC("IDB_NOT_SUPPORTED",{context:{caller:H,publicName:U,version:A,hasSucceededOnce:M==null?void 0:M.hasSucceededOnce}})};
nO4=function(H){if(!H)throw Error();throw H;};
N18=function(H){return H};
S_F=function(H,U,A){var M=function(){try{H.removeEventListener("success",W),H.removeEventListener("error",w)}catch(d){}},W=function(){U(H.result);
M()},w=function(){A(H.error);
M()};
H.addEventListener("success",W);H.addEventListener("error",w)};
pC8=function(H){return new Promise(function(U,A){S_F(H,U,A)})};
m6=function(H){return new Rd(new E4(function(U,A){S_F(H,U,A)}))};
LHK=function(H,U){return new Rd(new E4(function(A,M){var W=function(){var w=H?U(H):null;w?w.then(function(d){H=d;W()},M):A()};
W()}))};
R1F=function(H,U,A){return new Promise(function(M,W){var w=U!==void 0?self.indexedDB.open(H,U):self.indexedDB.open(H);var d=A.blocked,O=A.blocking,f=A.terminated,J=A.upgrade,F=A.closed,P,n=function(){P||(P=new gi(w.result,{closed:F}));return P};
w.addEventListener("upgradeneeded",function(N){try{if(N.newVersion===null)throw Error("$c");if(w.transaction===null)throw Error("ad");N.dataLoss&&N.dataLoss!=="none"&&PK("IDB_DATA_CORRUPTED",{reason:N.dataLossMessage||"unknown reason",dbName:nO(H)});var L=n(),m=new ad(w.transaction);J&&J(L,function(z){return N.oldVersion<z&&N.newVersion>=z},m);
m.done.catch(function(z){W(z)})}catch(z){W(z)}});
w.addEventListener("success",function(){var N=w.result;O&&N.addEventListener("versionchange",function(){O(n())});
N.addEventListener("close",function(){PK("IDB_UNEXPECTEDLY_CLOSED",{dbName:nO(H),dbVersion:N.version});f&&f()});
M(n())});
w.addEventListener("error",function(){W(w.error)});
d&&w.addEventListener("blocked",function(){d()})})};
EOE=function(H,U,A){A=A===void 0?{}:A;return R1F(H,U,A)};
_.zU=function(H,U){U=U===void 0?{}:U;var A,M,W,w;return _.u(function(d){if(d.nextAddress==1)return _.zj(d,2),A=self.indexedDB.deleteDatabase(H),M=U,(W=M.blocked)&&A.addEventListener("blocked",function(){W()}),d.yield(pC8(A),4);
if(d.nextAddress!=2)return _.xD(d,0);w=_.eG(d);throw sEF(w,H,"",-1);})};
gO_=function(H,U){var A;return _.u(function(M){if(M.nextAddress==1)return M.yield(_.CO(mhM,U),2);A=M.yieldResult;return M.return(_.tj(A,["databases"],{enableRetries:!0,mode:"readwrite"},function(W){var w=W.objectStore("databases");return w.get(H.actualName).then(function(d){if(d?H.actualName!==d.actualName||H.publicName!==d.publicName||H.userIdentifier!==d.userIdentifier:1)return w.put(H).then(function(){})})}))})};
_.cK=function(H,U){var A;return _.u(function(M){if(M.nextAddress==1)return H?M.yield(_.CO(mhM,U),2):M.return();A=M.yieldResult;return M.return(A.delete("databases",H))})};
_.aY7=function(H,U){var A,M;return _.u(function(W){return W.nextAddress==1?(A=[],W.yield(_.CO(mhM,U),2)):W.nextAddress!=3?(M=W.yieldResult,W.yield(_.tj(M,["databases"],{enableRetries:!0,mode:"readonly"},function(w){A.length=0;return yG(w.objectStore("databases"),{},function(d){H(d.getValue())&&A.push(d.getValue());return d.continue()})}),3)):W.return(A)})};
xh8=function(H,U){return _.aY7(function(A){return A.publicName===H&&A.userIdentifier!==void 0},U)};
tp8=function(){var H,U,A,M;return _.u(function(W){switch(W.nextAddress){case 1:H=ZqV();if((U=H)==null?0:U.hasSucceededOnce)return W.return(!0);var w;if(w=z1h)w=/WebKit\/([0-9]+)/.exec(_.FE()),w=!!(w&&parseInt(w[1],10)>=600);w&&(w=/WebKit\/([0-9]+)/.exec(_.FE()),w=!(w&&parseInt(w[1],10)>=602));if(w||BK)return W.return(!1);try{if(A=self,!(A.indexedDB&&A.IDBIndex&&A.IDBKeyRange&&A.IDBObjectStore))return W.return(!1)}catch(d){return W.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return W.return(!1);
_.zj(W,2);M={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return W.yield(gO_(M,CE4),4);case 4:return W.yield(_.cK("yt-idb-test-do-not-use",CE4),5);case 5:return W.return(!0);case 2:return _.eG(W),W.return(!1)}})};
ycc=function(){if(ccF!==void 0)return ccF;fYE=!0;return ccF=tp8().then(function(H){fYE=!1;var U;if((U=uz7())!=null&&U.hasLocalStorage()){var A;U={hasSucceededOnce:((A=ZqV())==null?void 0:A.hasSucceededOnce)||H};var M;(M=uz7())==null||M.set("LAST_RESULT_ENTRY_KEY",U,2592E3,!0)}return H})};
ri=function(){return _.tr("ytglobal.idbToken_")||void 0};
_.D0=function(){var H=ri();return H?Promise.resolve(H):ycc().then(function(U){(U=U?CE4:void 0)&&_.eC("ytglobal.idbToken_",U);return U})};
B1c=function(H){if(!_.iD())throw H=new SC("AUTH_INVALID",{dbName:H}),_.FU(H),H;var U=_.XU();return{actualName:H+":"+U,publicName:H,userIdentifier:U}};
rcc=function(H,U,A,M){var W,w,d,O,f,J;return _.u(function(F){switch(F.nextAddress){case 1:return w=(W=Error().stack)!=null?W:"",F.yield(_.D0(),2);case 2:d=F.yieldResult;if(!d)throw O=LO("openDbImpl",H,U),_.S("ytidb_async_stack_killswitch")||(O.stack=O.stack+"\n"+w.substring(w.indexOf("\n")+1)),_.FU(O),O;s4(H);f=A?{actualName:H,publicName:H,userIdentifier:void 0}:B1c(H);_.zj(F,3);return F.yield(gO_(f,d),5);case 5:return F.yield(EOE(f.actualName,U,M),6);case 6:return F.return(F.yieldResult);case 3:return J=
_.eG(F),_.zj(F,7),F.yield(_.cK(f.actualName,d),9);case 9:_.xD(F,8);break;case 7:_.eG(F);case 8:throw J;}})};
e1_=function(H,U,A){A=A===void 0?{}:A;return rcc(H,U,!1,A)};
Dh7=function(H,U,A){A=A===void 0?{}:A;return rcc(H,U,!0,A)};
$hE=function(H,U){U=U===void 0?{}:U;var A,M;return _.u(function(W){if(W.nextAddress==1)return W.yield(_.D0(),2);if(W.nextAddress!=3){A=W.yieldResult;if(!A)return W.return();s4(H);M=B1c(H);return W.yield(_.zU(M.actualName,U),3)}return W.yield(_.cK(M.actualName,A),0)})};
lYE=function(H,U,A){H=H.map(function(M){return _.u(function(W){return W.nextAddress==1?W.yield(_.zU(M.actualName,U),2):W.yield(_.cK(M.actualName,A),0)})});
return Promise.all(H).then(function(){})};
GvN=function(H){var U=U===void 0?{}:U;var A,M;return _.u(function(W){if(W.nextAddress==1)return W.yield(_.D0(),2);if(W.nextAddress!=3){A=W.yieldResult;if(!A)return W.return();s4(H);return W.yield(xh8(H,A),3)}M=W.yieldResult;return W.yield(lYE(M,U,A),0)})};
Y_K=function(H,U){U=U===void 0?{}:U;var A;return _.u(function(M){if(M.nextAddress==1)return M.yield(_.D0(),2);if(M.nextAddress!=3){A=M.yieldResult;if(!A)return M.return();s4(H);return M.yield(_.zU(H,U),3)}return M.yield(_.cK(H,A),0)})};
$D=function(H,U){return q_c(H,U)};
kv4=function(H){return _.CO(h17(),H)};
vOc=function(H,U,A,M){var W,w,d;return _.u(function(O){switch(O.nextAddress){case 1:return W={config:H,hashData:U,timestamp:M!==void 0?M:(0,_.lD)()},O.yield(kv4(A),2);case 2:return w=O.yieldResult,O.yield(w.clear("hotConfigStore"),3);case 3:return O.yield(w.put("hotConfigStore",W),4);case 4:return d=O.yieldResult,O.return(d)}})};
T1F=function(H,U,A,M,W){var w,d,O;return _.u(function(f){switch(f.nextAddress){case 1:return w={config:H,hashData:U,configData:A,timestamp:W!==void 0?W:(0,_.lD)()},f.yield(kv4(M),2);case 2:return d=f.yieldResult,f.yield(d.clear("coldConfigStore"),3);case 3:return f.yield(d.put("coldConfigStore",w),4);case 4:return O=f.yieldResult,f.return(O)}})};
jEh=function(H){var U,A;return _.u(function(M){return M.nextAddress==1?M.yield(kv4(H),2):M.nextAddress!=3?(U=M.yieldResult,A=void 0,M.yield(_.tj(U,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(W){return _.GU(W.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(w){A=w.getValue()})}),3)):M.return(A)})};
IYt=function(H){var U,A;return _.u(function(M){return M.nextAddress==1?M.yield(kv4(H),2):M.nextAddress!=3?(U=M.yieldResult,A=void 0,M.yield(_.tj(U,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(W){return _.GU(W.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(w){A=w.getValue()})}),3)):M.return(A)})};
QEM=function(){return _.u(function(H){return H.yield(GvN("ytGcfConfig"),0)})};
Vp_=function(){return"INNERTUBE_API_KEY"in _.EW&&"INNERTUBE_API_VERSION"in _.EW};
_.YD=function(){return{innertubeApiKey:_.gD("INNERTUBE_API_KEY"),innertubeApiVersion:_.gD("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.gD("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.gD("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.gD("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.gD("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.gD("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.gD("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.gD("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.xV("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.xV("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.gD("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.X4F=function(H){var U={client:{hl:H.innertubeContextHostLanguage,gl:H.innertubeContextGeoLocation,clientName:H.innertubeContextClientName,clientVersion:H.innertubeContextClientVersion,configInfo:H.innertubeContextClientConfigInfo}};navigator.userAgent&&(U.client.userAgent=String(navigator.userAgent));var A=_.Mr.devicePixelRatio;A&&A!=1&&(U.client.screenDensityFloat=String(A));A=Sn0();A!==""&&(U.client.experimentsToken=A);A=LbM();A.length>0&&(U.request={internalExperimentFlags:A});Hf7(H,void 0,U);
Uvc(void 0,U);AGE(void 0,U);Mk4(H,void 0,U);Wq7(void 0,U);_.S("start_client_gcf")&&w4K(void 0,U);_.gD("DELEGATED_SESSION_ID")&&!_.S("pageid_as_header_web")&&(U.user={onBehalfOfUser:_.gD("DELEGATED_SESSION_ID")});!_.S("fill_delegate_context_in_gel_killswitch")&&(H=_.gD("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(U.user=Object.assign({},U.user,{serializedDelegationContext:H}));H=_.gD("INNERTUBE_CONTEXT");var M;if(_.S("enable_persistent_device_token")&&(H==null?0:(M=H.client)==null?0:M.rolloutToken)){var W;
U.client.rolloutToken=H==null?void 0:(W=H.client)==null?void 0:W.rolloutToken}M=Object;W=M.assign;H=U.client;A={};for(var w=_.b(Object.entries(_.B5(_.gD("DEVICE","")))),d=w.next();!d.done;d=w.next()){var O=_.b(d.value);d=O.next().value;O=O.next().value;d==="cbrand"?A.deviceMake=O:d==="cmodel"?A.deviceModel=O:d==="cbr"?A.browserName=O:d==="cbrver"?A.browserVersion=O:d==="cos"?A.osName=O:d==="cosver"?A.osVersion=O:d==="cplatform"&&(A.platform=O)}U.client=W.call(M,H,A);return U};
Hf7=function(H,U,A){H=H.innertubeContextClientName;if(H==="WEB"||H==="MWEB"||H===1||H===2)if(U){A=_.qK(U,if_,96)||new if_;var M=bf7();M=Object.keys(dvr).indexOf(M);M=M===-1?null:M;M!==null&&_.hj(A,3,M);_.CN(U,96,A)}else A&&(A.client.mainAppWebInfo=(M=A.client.mainAppWebInfo)!=null?M:{},A.client.mainAppWebInfo.webDisplayMode=bf7())};
Uvc=function(H,U){var A=_.tr("yt.embedded_player.embed_url");A&&(H?(U=_.qK(H,Ofh,7)||new Ofh,_.Mu(U,4,A),_.CN(H,7,U)):U&&(U.thirdParty={embedUrl:A}))};
AGE=function(H,U){var A;if(_.S("web_log_memory_total_kbytes")&&((A=_.Mr.navigator)==null?0:A.deviceMemory)){var M;A=(M=_.Mr.navigator)==null?void 0:M.deviceMemory;H?_.kD(H,95,n8(A*1E6)):U&&(U.client.memoryTotalKbytes=""+A*1E6)}};
Mk4=function(H,U,A){if(H.appInstallData)if(U){var M;A=(M=_.qK(U,vK,62))!=null?M:new vK;_.Mu(A,6,H.appInstallData);_.CN(U,62,A)}else A&&(A.client.configInfo=A.client.configInfo||{},A.client.configInfo.appInstallData=H.appInstallData)};
Wq7=function(H,U){var A=_.wCt();A&&(H?_.hj(H,61,upc[A]):U&&(U.client.connectionType=A));_.S("web_log_effective_connection_type")&&(A=iqh())&&(H?_.hj(H,94,ZfM[A]):U&&(U.client.effectiveConnectionType=A))};
_.KqK=function(H,U,A){A=A===void 0?{}:A;var M={};_.gD("EOM_VISITOR_DATA")?M={"X-Goog-EOM-Visitor-Id":_.gD("EOM_VISITOR_DATA")}:M={"X-Goog-Visitor-Id":A.visitorData||_.gD("VISITOR_DATA","")};if(U&&U.includes("www.youtube-nocookie.com"))return M;U=A.authorization||_.gD("AUTHORIZATION");U||(H?U="Bearer "+_.tr("gapi.auth.getToken")().access_token:(ftF.instance||(ftF.instance=new ftF),H=JG7(),_.S("pageid_as_header_web")||delete H["X-Goog-PageId"],M=Object.assign({},M,H)));U&&(M.Authorization=U);return M};
w4K=function(H,U){var A=oah();if(A){var M=A.coldConfigData,W=A.coldHashData;A=A.hotHashData;if(H){var w;U=(w=_.qK(H,vK,62))!=null?w:new vK;M=_.Mu(U,1,M);_.Mu(M,3,W).setHotHashData(A);_.CN(H,62,U)}else U&&(U.client.configInfo=U.client.configInfo||{},M&&(U.client.configInfo.coldConfigData=M),W&&(U.client.configInfo.coldHashData=W),A&&(U.client.configInfo.hotHashData=A))}};
TU=function(H){for(var U=H.length;--U>=0;)H[U]=0};
Fq4=function(H,U,A,M,W){this.static_tree=H;this.extra_bits=U;this.extra_base=A;this.elems=M;this.max_length=W;this.has_stree=H&&H.length};
PNN=function(H,U){this.dyn_tree=H;this.max_code=0;this.stat_desc=U};
jC=function(H,U){H.pending_buf[H.pending++]=U&255;H.pending_buf[H.pending++]=U>>>8&255};
Id=function(H,U,A){H.bi_valid>16-A?(H.bi_buf|=U<<H.bi_valid&65535,jC(H,H.bi_buf),H.bi_buf=U>>16-H.bi_valid,H.bi_valid+=A-16):(H.bi_buf|=U<<H.bi_valid&65535,H.bi_valid+=A)};
QG=function(H,U,A){Id(H,A[U*2],A[U*2+1])};
src=function(H,U){var A=0;do A|=H&1,H>>>=1,A<<=1;while(--U>0);return A>>>1};
na0=function(H,U,A){var M=Array(16),W=0,w;for(w=1;w<=15;w++)M[w]=W=W+A[w-1]<<1;for(A=0;A<=U;A++)W=H[A*2+1],W!==0&&(H[A*2]=src(M[W]++,W))};
Nnt=function(H){var U;for(U=0;U<286;U++)H.dyn_ltree[U*2]=0;for(U=0;U<30;U++)H.dyn_dtree[U*2]=0;for(U=0;U<19;U++)H.bl_tree[U*2]=0;H.dyn_ltree[512]=1;H.opt_len=H.static_len=0;H.last_lit=H.matches=0};
SU_=function(H){H.bi_valid>8?jC(H,H.bi_buf):H.bi_valid>0&&(H.pending_buf[H.pending++]=H.bi_buf);H.bi_buf=0;H.bi_valid=0};
p4t=function(H,U,A){SU_(H);jC(H,A);jC(H,~A);VG.arraySet(H.pending_buf,H.window,U,A,H.pending);H.pending+=A};
Lq_=function(H,U,A,M){var W=U*2,w=A*2;return H[W]<H[w]||H[W]===H[w]&&M[U]<=M[A]};
R2M=function(H,U,A){for(var M=H.heap[A],W=A<<1;W<=H.heap_len;){W<H.heap_len&&Lq_(U,H.heap[W+1],H.heap[W],H.depth)&&W++;if(Lq_(U,M,H.heap[W],H.depth))break;H.heap[A]=H.heap[W];A=W;W<<=1}H.heap[A]=M};
xvN=function(H,U,A){var M=0;if(H.last_lit!==0){do{var W=H.pending_buf[H.d_buf+M*2]<<8|H.pending_buf[H.d_buf+M*2+1];var w=H.pending_buf[H.l_buf+M];M++;if(W===0)QG(H,w,U);else{var d=HW[w];QG(H,d+256+1,U);var O=Eah[d];O!==0&&(w-=mv0[d],Id(H,w,O));W--;d=W<256?Ul[W]:Ul[256+(W>>>7)];QG(H,d,A);O=gac[d];O!==0&&(W-=ath[d],Id(H,W,O))}}while(M<H.last_lit)}QG(H,256,U)};
z24=function(H,U){var A=U.dyn_tree,M=U.stat_desc.static_tree,W=U.stat_desc.has_stree,w=U.stat_desc.elems,d,O=-1;H.heap_len=0;H.heap_max=573;for(d=0;d<w;d++)A[d*2]!==0?(H.heap[++H.heap_len]=O=d,H.depth[d]=0):A[d*2+1]=0;for(;H.heap_len<2;){var f=H.heap[++H.heap_len]=O<2?++O:0;A[f*2]=1;H.depth[f]=0;H.opt_len--;W&&(H.static_len-=M[f*2+1])}U.max_code=O;for(d=H.heap_len>>1;d>=1;d--)R2M(H,A,d);f=w;do d=H.heap[1],H.heap[1]=H.heap[H.heap_len--],R2M(H,A,1),M=H.heap[1],H.heap[--H.heap_max]=d,H.heap[--H.heap_max]=
M,A[f*2]=A[d*2]+A[M*2],H.depth[f]=(H.depth[d]>=H.depth[M]?H.depth[d]:H.depth[M])+1,A[d*2+1]=A[M*2+1]=f,H.heap[1]=f++,R2M(H,A,1);while(H.heap_len>=2);H.heap[--H.heap_max]=H.heap[1];d=U.dyn_tree;f=U.max_code;M=U.stat_desc.static_tree;W=U.stat_desc.has_stree;w=U.stat_desc.extra_bits;var J=U.stat_desc.extra_base,F=U.stat_desc.max_length,P,n=0;for(P=0;P<=15;P++)H.bl_count[P]=0;d[H.heap[H.heap_max]*2+1]=0;for(U=H.heap_max+1;U<573;U++){var N=H.heap[U];P=d[d[N*2+1]*2+1]+1;P>F&&(P=F,n++);d[N*2+1]=P;if(!(N>
f)){H.bl_count[P]++;var L=0;N>=J&&(L=w[N-J]);var m=d[N*2];H.opt_len+=m*(P+L);W&&(H.static_len+=m*(M[N*2+1]+L))}}if(n!==0){do{for(P=F-1;H.bl_count[P]===0;)P--;H.bl_count[P]--;H.bl_count[P+1]+=2;H.bl_count[F]--;n-=2}while(n>0);for(P=F;P!==0;P--)for(N=H.bl_count[P];N!==0;)M=H.heap[--U],M>f||(d[M*2+1]!==P&&(H.opt_len+=(P-d[M*2+1])*d[M*2],d[M*2+1]=P),N--)}na0(A,O,H.bl_count)};
CN7=function(H,U,A){var M,W=-1,w=U[1],d=0,O=7,f=4;w===0&&(O=138,f=3);U[(A+1)*2+1]=65535;for(M=0;M<=A;M++){var J=w;w=U[(M+1)*2+1];++d<O&&J===w||(d<f?H.bl_tree[J*2]+=d:J!==0?(J!==W&&H.bl_tree[J*2]++,H.bl_tree[32]++):d<=10?H.bl_tree[34]++:H.bl_tree[36]++,d=0,W=J,w===0?(O=138,f=3):J===w?(O=6,f=3):(O=7,f=4))}};
tkc=function(H,U,A){var M,W=-1,w=U[1],d=0,O=7,f=4;w===0&&(O=138,f=3);for(M=0;M<=A;M++){var J=w;w=U[(M+1)*2+1];if(!(++d<O&&J===w)){if(d<f){do QG(H,J,H.bl_tree);while(--d!==0)}else J!==0?(J!==W&&(QG(H,J,H.bl_tree),d--),QG(H,16,H.bl_tree),Id(H,d-3,2)):d<=10?(QG(H,17,H.bl_tree),Id(H,d-3,3)):(QG(H,18,H.bl_tree),Id(H,d-11,7));d=0;W=J;w===0?(O=138,f=3):J===w?(O=6,f=3):(O=7,f=4)}}};
cG4=function(H){var U=4093624447,A;for(A=0;A<=31;A++,U>>>=1)if(U&1&&H.dyn_ltree[A*2]!==0)return 0;if(H.dyn_ltree[18]!==0||H.dyn_ltree[20]!==0||H.dyn_ltree[26]!==0)return 1;for(A=32;A<256;A++)if(H.dyn_ltree[A*2]!==0)return 1;return 0};
Ak=function(H,U,A){H.pending_buf[H.d_buf+H.last_lit*2]=U>>>8&255;H.pending_buf[H.d_buf+H.last_lit*2+1]=U&255;H.pending_buf[H.l_buf+H.last_lit]=A&255;H.last_lit++;U===0?H.dyn_ltree[A*2]++:(H.matches++,U--,H.dyn_ltree[(HW[A]+256+1)*2]++,H.dyn_dtree[(U<256?Ul[U]:Ul[256+(U>>>7)])*2]++);return H.last_lit===H.lit_bufsize-1};
WW=function(H,U){H.msg=Ms[U];return U};
wB=function(H){for(var U=H.length;--U>=0;)H[U]=0};
Xl=function(H){var U=H.state,A=U.pending;A>H.avail_out&&(A=H.avail_out);A!==0&&(VG.arraySet(H.output,U.pending_buf,U.pending_out,A,H.next_out),H.next_out+=A,U.pending_out+=A,H.total_out+=A,H.avail_out-=A,U.pending-=A,U.pending===0&&(U.pending_out=0))};
dB=function(H,U){var A=H.block_start>=0?H.block_start:-1,M=H.strstart-H.block_start,W=0;if(H.level>0){H.strm.data_type===2&&(H.strm.data_type=cG4(H));z24(H,H.l_desc);z24(H,H.d_desc);CN7(H,H.dyn_ltree,H.l_desc.max_code);CN7(H,H.dyn_dtree,H.d_desc.max_code);z24(H,H.bl_desc);for(W=18;W>=3&&H.bl_tree[yG_[W]*2+1]===0;W--);H.opt_len+=3*(W+1)+5+5+4;var w=H.opt_len+3+7>>>3;var d=H.static_len+3+7>>>3;d<=w&&(w=d)}else w=d=M+5;if(M+4<=w&&A!==-1)Id(H,U?1:0,3),p4t(H,A,M);else if(H.strategy===4||d===w)Id(H,2+(U?
1:0),3),xvN(H,iS,bS);else{Id(H,4+(U?1:0),3);A=H.l_desc.max_code+1;M=H.d_desc.max_code+1;W+=1;Id(H,A-257,5);Id(H,M-1,5);Id(H,W-4,4);for(w=0;w<W;w++)Id(H,H.bl_tree[yG_[w]*2+1],3);tkc(H,H.dyn_ltree,A-1);tkc(H,H.dyn_dtree,M-1);xvN(H,H.dyn_ltree,H.dyn_dtree)}Nnt(H);U&&SU_(H);H.block_start=H.strstart;Xl(H.strm)};
Ol=function(H,U){H.pending_buf[H.pending++]=U};
uS=function(H,U){H.pending_buf[H.pending++]=U>>>8&255;H.pending_buf[H.pending++]=U&255};
Bnc=function(H,U){var A=H.max_chain_length,M=H.strstart,W=H.prev_length,w=H.nice_match,d=H.strstart>H.w_size-262?H.strstart-(H.w_size-262):0,O=H.window,f=H.w_mask,J=H.prev,F=H.strstart+258,P=O[M+W-1],n=O[M+W];H.prev_length>=H.good_match&&(A>>=2);w>H.lookahead&&(w=H.lookahead);do{var N=U;if(O[N+W]===n&&O[N+W-1]===P&&O[N]===O[M]&&O[++N]===O[M+1]){M+=2;for(N++;O[++M]===O[++N]&&O[++M]===O[++N]&&O[++M]===O[++N]&&O[++M]===O[++N]&&O[++M]===O[++N]&&O[++M]===O[++N]&&O[++M]===O[++N]&&O[++M]===O[++N]&&M<F;);
N=258-(F-M);M=F-258;if(N>W){H.match_start=U;W=N;if(N>=w)break;P=O[M+W-1];n=O[M+W]}}}while((U=J[U&f])>d&&--A!==0);return W<=H.lookahead?W:H.lookahead};
f_=function(H){var U=H.w_size,A;do{var M=H.window_size-H.lookahead-H.strstart;if(H.strstart>=U+(U-262)){VG.arraySet(H.window,H.window,U,U,0);H.match_start-=U;H.strstart-=U;H.block_start-=U;var W=A=H.hash_size;do{var w=H.head[--W];H.head[W]=w>=U?w-U:0}while(--A);W=A=U;do w=H.prev[--W],H.prev[W]=w>=U?w-U:0;while(--A);M+=U}if(H.strm.avail_in===0)break;W=H.strm;A=H.window;w=H.strstart+H.lookahead;var d=W.avail_in;d>M&&(d=M);d===0?A=0:(W.avail_in-=d,VG.arraySet(A,W.input,W.next_in,d,w),W.state.wrap===
1?W.adler=rGc(W.adler,A,d,w):W.state.wrap===2&&(W.adler=Z6(W.adler,A,d,w)),W.next_in+=d,W.total_in+=d,A=d);H.lookahead+=A;if(H.lookahead+H.insert>=3)for(M=H.strstart-H.insert,H.ins_h=H.window[M],H.ins_h=(H.ins_h<<H.hash_shift^H.window[M+1])&H.hash_mask;H.insert&&!(H.ins_h=(H.ins_h<<H.hash_shift^H.window[M+3-1])&H.hash_mask,H.prev[M&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=M,M++,H.insert--,H.lookahead+H.insert<3););}while(H.lookahead<262&&H.strm.avail_in!==0)};
e27=function(H,U){for(var A;;){if(H.lookahead<262){f_(H);if(H.lookahead<262&&U===0)return 1;if(H.lookahead===0)break}A=0;H.lookahead>=3&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+3-1])&H.hash_mask,A=H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart);A!==0&&H.strstart-A<=H.w_size-262&&(H.match_length=Bnc(H,A));if(H.match_length>=3)if(A=Ak(H,H.strstart-H.match_start,H.match_length-3),H.lookahead-=H.match_length,H.match_length<=H.max_lazy_match&&H.lookahead>=3){H.match_length--;
do H.strstart++,H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+3-1])&H.hash_mask,H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart;while(--H.match_length!==0);H.strstart++}else H.strstart+=H.match_length,H.match_length=0,H.ins_h=H.window[H.strstart],H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+1])&H.hash_mask;else A=Ak(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++;if(A&&(dB(H,!1),H.strm.avail_out===0))return 1}H.insert=H.strstart<2?H.strstart:2;return U===4?(dB(H,
!0),H.strm.avail_out===0?3:4):H.last_lit&&(dB(H,!1),H.strm.avail_out===0)?1:2};
Jk=function(H,U){for(var A,M;;){if(H.lookahead<262){f_(H);if(H.lookahead<262&&U===0)return 1;if(H.lookahead===0)break}A=0;H.lookahead>=3&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+3-1])&H.hash_mask,A=H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart);H.prev_length=H.match_length;H.prev_match=H.match_start;H.match_length=2;A!==0&&H.prev_length<H.max_lazy_match&&H.strstart-A<=H.w_size-262&&(H.match_length=Bnc(H,A),H.match_length<=5&&(H.strategy===1||H.match_length===3&&
H.strstart-H.match_start>4096)&&(H.match_length=2));if(H.prev_length>=3&&H.match_length<=H.prev_length){M=H.strstart+H.lookahead-3;A=Ak(H,H.strstart-1-H.prev_match,H.prev_length-3);H.lookahead-=H.prev_length-1;H.prev_length-=2;do++H.strstart<=M&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+3-1])&H.hash_mask,H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart);while(--H.prev_length!==0);H.match_available=0;H.match_length=2;H.strstart++;if(A&&(dB(H,!1),H.strm.avail_out===0))return 1}else if(H.match_available){if((A=
Ak(H,0,H.window[H.strstart-1]))&&dB(H,!1),H.strstart++,H.lookahead--,H.strm.avail_out===0)return 1}else H.match_available=1,H.strstart++,H.lookahead--}H.match_available&&(Ak(H,0,H.window[H.strstart-1]),H.match_available=0);H.insert=H.strstart<2?H.strstart:2;return U===4?(dB(H,!0),H.strm.avail_out===0?3:4):H.last_lit&&(dB(H,!1),H.strm.avail_out===0)?1:2};
Dvt=function(H,U){for(var A,M,W,w=H.window;;){if(H.lookahead<=258){f_(H);if(H.lookahead<=258&&U===0)return 1;if(H.lookahead===0)break}H.match_length=0;if(H.lookahead>=3&&H.strstart>0&&(M=H.strstart-1,A=w[M],A===w[++M]&&A===w[++M]&&A===w[++M])){for(W=H.strstart+258;A===w[++M]&&A===w[++M]&&A===w[++M]&&A===w[++M]&&A===w[++M]&&A===w[++M]&&A===w[++M]&&A===w[++M]&&M<W;);H.match_length=258-(W-M);H.match_length>H.lookahead&&(H.match_length=H.lookahead)}H.match_length>=3?(A=Ak(H,1,H.match_length-3),H.lookahead-=
H.match_length,H.strstart+=H.match_length,H.match_length=0):(A=Ak(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++);if(A&&(dB(H,!1),H.strm.avail_out===0))return 1}H.insert=0;return U===4?(dB(H,!0),H.strm.avail_out===0?3:4):H.last_lit&&(dB(H,!1),H.strm.avail_out===0)?1:2};
$vc=function(H,U){for(var A;;){if(H.lookahead===0&&(f_(H),H.lookahead===0)){if(U===0)return 1;break}H.match_length=0;A=Ak(H,0,H.window[H.strstart]);H.lookahead--;H.strstart++;if(A&&(dB(H,!1),H.strm.avail_out===0))return 1}H.insert=0;return U===4?(dB(H,!0),H.strm.avail_out===0?3:4):H.last_lit&&(dB(H,!1),H.strm.avail_out===0)?1:2};
K_=function(H,U,A,M,W){this.good_length=H;this.max_lazy=U;this.nice_length=A;this.max_chain=M;this.func=W};
lt8=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 VG.Buf16(1146);this.dyn_dtree=new VG.Buf16(122);this.bl_tree=new VG.Buf16(78);wB(this.dyn_ltree);wB(this.dyn_dtree);wB(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new VG.Buf16(16);this.heap=new VG.Buf16(573);wB(this.heap);this.heap_max=this.heap_len=0;this.depth=new VG.Buf16(573);wB(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};
Glh=function(H,U){if(!H||!H.state||U>5||U<0)return H?WW(H,-2):-2;var A=H.state;if(!H.output||!H.input&&H.avail_in!==0||A.status===666&&U!==4)return WW(H,H.avail_out===0?-5:-2);A.strm=H;var M=A.last_flush;A.last_flush=U;if(A.status===42)if(A.wrap===2)H.adler=0,Ol(A,31),Ol(A,139),Ol(A,8),A.gzhead?(Ol(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),Ol(A,A.gzhead.time&255),Ol(A,A.gzhead.time>>8&255),Ol(A,A.gzhead.time>>16&255),Ol(A,A.gzhead.time>>
24&255),Ol(A,A.level===9?2:A.strategy>=2||A.level<2?4:0),Ol(A,A.gzhead.os&255),A.gzhead.extra&&A.gzhead.extra.length&&(Ol(A,A.gzhead.extra.length&255),Ol(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(H.adler=Z6(H.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=69):(Ol(A,0),Ol(A,0),Ol(A,0),Ol(A,0),Ol(A,0),Ol(A,A.level===9?2:A.strategy>=2||A.level<2?4:0),Ol(A,3),A.status=113);else{var W=8+(A.w_bits-8<<4)<<8;W|=(A.strategy>=2||A.level<2?0:A.level<6?1:A.level===6?2:3)<<6;A.strstart!==0&&(W|=
32);A.status=113;uS(A,W+(31-W%31));A.strstart!==0&&(uS(A,H.adler>>>16),uS(A,H.adler&65535));H.adler=1}if(A.status===69)if(A.gzhead.extra){for(W=A.pending;A.gzindex<(A.gzhead.extra.length&65535)&&(A.pending!==A.pending_buf_size||(A.gzhead.hcrc&&A.pending>W&&(H.adler=Z6(H.adler,A.pending_buf,A.pending-W,W)),Xl(H),W=A.pending,A.pending!==A.pending_buf_size));)Ol(A,A.gzhead.extra[A.gzindex]&255),A.gzindex++;A.gzhead.hcrc&&A.pending>W&&(H.adler=Z6(H.adler,A.pending_buf,A.pending-W,W));A.gzindex===A.gzhead.extra.length&&
(A.gzindex=0,A.status=73)}else A.status=73;if(A.status===73)if(A.gzhead.name){W=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>W&&(H.adler=Z6(H.adler,A.pending_buf,A.pending-W,W)),Xl(H),W=A.pending,A.pending===A.pending_buf_size)){var w=1;break}w=A.gzindex<A.gzhead.name.length?A.gzhead.name.charCodeAt(A.gzindex++)&255:0;Ol(A,w)}while(w!==0);A.gzhead.hcrc&&A.pending>W&&(H.adler=Z6(H.adler,A.pending_buf,A.pending-W,W));w===0&&(A.gzindex=0,A.status=91)}else A.status=91;if(A.status===
91)if(A.gzhead.comment){W=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>W&&(H.adler=Z6(H.adler,A.pending_buf,A.pending-W,W)),Xl(H),W=A.pending,A.pending===A.pending_buf_size)){w=1;break}w=A.gzindex<A.gzhead.comment.length?A.gzhead.comment.charCodeAt(A.gzindex++)&255:0;Ol(A,w)}while(w!==0);A.gzhead.hcrc&&A.pending>W&&(H.adler=Z6(H.adler,A.pending_buf,A.pending-W,W));w===0&&(A.status=103)}else A.status=103;A.status===103&&(A.gzhead.hcrc?(A.pending+2>A.pending_buf_size&&Xl(H),
A.pending+2<=A.pending_buf_size&&(Ol(A,H.adler&255),Ol(A,H.adler>>8&255),H.adler=0,A.status=113)):A.status=113);if(A.pending!==0){if(Xl(H),H.avail_out===0)return A.last_flush=-1,0}else if(H.avail_in===0&&(U<<1)-(U>4?9:0)<=(M<<1)-(M>4?9:0)&&U!==4)return WW(H,-5);if(A.status===666&&H.avail_in!==0)return WW(H,-5);if(H.avail_in!==0||A.lookahead!==0||U!==0&&A.status!==666){M=A.strategy===2?$vc(A,U):A.strategy===3?Dvt(A,U):oQ[A.level].func(A,U);if(M===3||M===4)A.status=666;if(M===1||M===3)return H.avail_out===
0&&(A.last_flush=-1),0;if(M===2&&(U===1?(Id(A,2,3),QG(A,256,iS),A.bi_valid===16?(jC(A,A.bi_buf),A.bi_buf=0,A.bi_valid=0):A.bi_valid>=8&&(A.pending_buf[A.pending++]=A.bi_buf&255,A.bi_buf>>=8,A.bi_valid-=8)):U!==5&&(Id(A,0,3),p4t(A,0,0),U===3&&(wB(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),Xl(H),H.avail_out===0))return A.last_flush=-1,0}if(U!==4)return 0;if(A.wrap<=0)return 1;A.wrap===2?(Ol(A,H.adler&255),Ol(A,H.adler>>8&255),Ol(A,H.adler>>16&255),Ol(A,H.adler>>24&255),Ol(A,
H.total_in&255),Ol(A,H.total_in>>8&255),Ol(A,H.total_in>>16&255),Ol(A,H.total_in>>24&255)):(uS(A,H.adler>>>16),uS(A,H.adler&65535));Xl(H);A.wrap>0&&(A.wrap=-A.wrap);return A.pending!==0?0:1};
YU0=function(H){if(!(this instanceof YU0))return new YU0(H);H=this.options=VG.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},H||{});H.raw&&H.windowBits>0?H.windowBits=-H.windowBits:H.gzip&&H.windowBits>0&&H.windowBits<16&&(H.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new qU7;this.strm.avail_out=0;var U=this.strm;var A=H.level,M=H.method,W=H.windowBits,w=H.memLevel,d=H.strategy;if(U){var O=1;A===-1&&(A=6);W<0?(O=0,W=-W):W>15&&
(O=2,W-=16);if(w<1||w>9||M!==8||W<8||W>15||A<0||A>9||d<0||d>4)U=WW(U,-2);else{W===8&&(W=9);var f=new lt8;U.state=f;f.strm=U;f.wrap=O;f.gzhead=null;f.w_bits=W;f.w_size=1<<f.w_bits;f.w_mask=f.w_size-1;f.hash_bits=w+7;f.hash_size=1<<f.hash_bits;f.hash_mask=f.hash_size-1;f.hash_shift=~~((f.hash_bits+3-1)/3);f.window=new VG.Buf8(f.w_size*2);f.head=new VG.Buf16(f.hash_size);f.prev=new VG.Buf16(f.w_size);f.lit_bufsize=1<<w+6;f.pending_buf_size=f.lit_bufsize*4;f.pending_buf=new VG.Buf8(f.pending_buf_size);
f.d_buf=f.lit_bufsize;f.l_buf=3*f.lit_bufsize;f.level=A;f.strategy=d;f.method=M;if(U&&U.state){U.total_in=U.total_out=0;U.data_type=2;A=U.state;A.pending=0;A.pending_out=0;A.wrap<0&&(A.wrap=-A.wrap);A.status=A.wrap?42:113;U.adler=A.wrap===2?0:1;A.last_flush=0;if(!h2V){M=Array(16);for(w=d=0;w<28;w++)for(mv0[w]=d,W=0;W<1<<Eah[w];W++)HW[d++]=w;HW[d-1]=w;for(w=d=0;w<16;w++)for(ath[w]=d,W=0;W<1<<gac[w];W++)Ul[d++]=w;for(d>>=7;w<30;w++)for(ath[w]=d<<7,W=0;W<1<<gac[w]-7;W++)Ul[256+d++]=w;for(W=0;W<=15;W++)M[W]=
0;for(W=0;W<=143;)iS[W*2+1]=8,W++,M[8]++;for(;W<=255;)iS[W*2+1]=9,W++,M[9]++;for(;W<=279;)iS[W*2+1]=7,W++,M[7]++;for(;W<=287;)iS[W*2+1]=8,W++,M[8]++;na0(iS,287,M);for(W=0;W<30;W++)bS[W*2+1]=5,bS[W*2]=src(W,5);kl8=new Fq4(iS,Eah,257,286,15);vac=new Fq4(bS,gac,0,30,15);Tnr=new Fq4([],jrc,0,19,7);h2V=!0}A.l_desc=new PNN(A.dyn_ltree,kl8);A.d_desc=new PNN(A.dyn_dtree,vac);A.bl_desc=new PNN(A.bl_tree,Tnr);A.bi_buf=0;A.bi_valid=0;Nnt(A);A=0}else A=WW(U,-2);A===0&&(U=U.state,U.window_size=2*U.w_size,wB(U.head),
U.max_lazy_match=oQ[U.level].max_lazy,U.good_match=oQ[U.level].good_length,U.nice_match=oQ[U.level].nice_length,U.max_chain_length=oQ[U.level].max_chain,U.strstart=0,U.block_start=0,U.lookahead=0,U.insert=0,U.match_length=U.prev_length=2,U.match_available=0,U.ins_h=0);U=A}}else U=-2;if(U!==0)throw Error(Ms[U]);H.header&&(U=this.strm)&&U.state&&U.state.wrap===2&&(U.state.gzhead=H.header);if(H.dictionary){var J;typeof H.dictionary==="string"?J=Itr(H.dictionary):QrE.call(H.dictionary)==="[object ArrayBuffer]"?
J=new Uint8Array(H.dictionary):J=H.dictionary;H=this.strm;w=J;d=w.length;if(H&&H.state)if(J=H.state,U=J.wrap,U===2||U===1&&J.status!==42||J.lookahead)U=-2;else{U===1&&(H.adler=rGc(H.adler,w,d,0));J.wrap=0;d>=J.w_size&&(U===0&&(wB(J.head),J.strstart=0,J.block_start=0,J.insert=0),A=new VG.Buf8(J.w_size),VG.arraySet(A,w,d-J.w_size,J.w_size,0),w=A,d=J.w_size);A=H.avail_in;M=H.next_in;W=H.input;H.avail_in=d;H.next_in=0;H.input=w;for(f_(J);J.lookahead>=3;){w=J.strstart;d=J.lookahead-2;do J.ins_h=(J.ins_h<<
J.hash_shift^J.window[w+3-1])&J.hash_mask,J.prev[w&J.w_mask]=J.head[J.ins_h],J.head[J.ins_h]=w,w++;while(--d);J.strstart=w;J.lookahead=2;f_(J)}J.strstart+=J.lookahead;J.block_start=J.strstart;J.insert=J.lookahead;J.lookahead=0;J.match_length=J.prev_length=2;J.match_available=0;H.next_in=M;H.input=W;H.avail_in=A;J.wrap=U;U=0}else U=-2;if(U!==0)throw Error(Ms[U]);this._dict_set=!0}};
VkM=function(H,U){U=U||{};U.gzip=!0;U=new YU0(U);U.push(H,!0);if(U.err)throw U.msg||Ms[U.err];return U.result};
UDc=function(H,U){var A=HeN();A&&A.publish.call(A,H.toString(),H,U)};
XXE=function(H,U,A){var M=HeN();if(!M)return 0;var W=M.subscribe(H.toString(),function(w,d){var O=_.tr("ytPubsub2Pubsub2SkipSubKey");O&&O==W||(O=function(){if(AyF[W])try{if(d&&H instanceof Mq4&&H!=w)try{var f=H.dataClass,J=d;if(!J.args||!J.version)throw Error("cd");try{if(!f.version_){var F=new f;f.version_=F.version}var P=f.version_}catch(n){}if(!P||J.version!=P)throw Error("dd");try{d=Reflect.construct(f,_.$c(J.args))}catch(n){throw n.message="yt.pubsub2.Data.deserialize(): "+n.message,n;}}catch(n){throw n.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+H.toString()+": "+n.message,n;}U.call(A||window,d)}catch(n){_.za(n)}},Wdt[H.toString()]?_.tr("yt.scheduler.instance")?_.Fl.addLowPriorityJob(O):_.jy(O,0):O())});
AyF[W]=!0;wX4[H.toString()]||(wX4[H.toString()]=[]);wX4[H.toString()].push(W);return W};
Oer=function(){var H=ier,U=XXE(beK,function(A){H.apply(void 0,arguments);dD8(U)});
return U};
dD8=function(H){var U=HeN();U&&(typeof H==="number"&&(H=[H]),_.yW(H,function(A){U.unsubscribeByKey(A);delete AyF[A]}))};
HeN=function(){return _.tr("ytPubsub2Pubsub2Instance")};
u88=function(H,U,A){A=A===void 0?{sampleRate:.1}:A;Math.random()<Math.min(.02,A.sampleRate/100)&&UDc("meta_logging_csi_event",{timerName:H,timelineData:U})};
_.ZeM=function(H){return H?(H=H.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Or(H):null:null};
_.PW=function(H){return H?(H=H.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.rM(H):null:null};
Jyr=function(){fd8||(fd8=_.PW(_.gD("WORKER_SERIALIZATION_URL")));return fd8||void 0};
_.o$N=function(){var H=Jyr();Kdc||H===void 0||(Kdc=c$h(H));return Kdc};
_.FdF=function(){return typeof Worker==="function"&&Jyr()?!0:!1};
_.NXE=function(){if(_.FdF()&&!P0h){var H=function(A){A=A.data;if(A.op==="gzippedGelBatch"){var M=sSM.get(A.key);M&&(n$4(A.gzippedBatch,M.latencyPayload,M.url,M.options,M.sendFn),sSM.delete(A.key))}},U=_.o$N();
U&&(U.addEventListener("message",H),U.onerror=function(){sSM.clear()},P0h=!0)}};
mDE=function(H,U,A,M,W){W=W===void 0?!1:W;var w={startTime:(0,_.lD)(),ticks:{},infos:{}};if(sl)try{var d=Sch(U);if(d!=null&&(d>pXK||d<Ld7))M(H,A);else{if(_.S("gzip_gel_with_worker")){P0h||_.NXE();var O=_.o$N();if(O&&!W){sSM.set(RD0,{latencyPayload:w,url:H,options:A,sendFn:M});O.postMessage({op:"gelBatchToGzip",serializedBatch:U,key:RD0});RD0++;return}}var f=VkM(E$4(U));n$4(f,w,H,A,M)}}catch(J){_.c5(J),M(H,A)}else M(H,A)};
n$4=function(H,U,A,M,W){var w=(0,_.lD)();U.ticks.gelc=w;n_++;_.S("disable_compression_due_to_performance_degredation")&&w-U.startTime>=g$V&&(adc++,sl=!1);xDF(U);M.headers||(M.headers={});M.headers["Content-Encoding"]="gzip";M.postBody=H;M.postParams=void 0;W(A,M)};
C07=function(H){var U=U===void 0?!1:U;var A=A===void 0?!1:A;var M=(0,_.lD)(),W={startTime:M,ticks:{},infos:{}},w=U?_.tr("yt.logging.gzipForFetch",!1):!0;if(sl&&w){if(!H.body)return H;try{var d=A?H.body:typeof H.body==="string"?H.body:JSON.stringify(H.body);w=d;if(!A&&typeof d==="string"){var O=Sch(d);if(O!=null&&(O>pXK||O<Ld7))return H;A=U?{level:1}:void 0;w=VkM(E$4(d),A);var f=(0,_.lD)();W.ticks.gelc=f;if(U){n_++;if((_.S("disable_compression_due_to_performance_degredation")||_.S("disable_compression_due_to_performance_degradation_lr"))&&
f-M>=g$V)if(adc++,_.S("abandon_compression_after_N_slow_zips_lr")){U=adc/n_;var J=zDF/_.hr("compression_disable_point");n_>0&&n_%_.hr("compression_disable_point")===0&&U>=J&&(sl=!1)}else sl=!1;xDF(W)}}H.headers=Object.assign({},{"Content-Encoding":"gzip"},H.headers||{});H.body=w;return H}catch(F){return _.c5(F),H}}else return H};
Sch=function(H){try{return(new Blob(H.split(""))).size}catch(U){return _.c5(U),null}};
xDF=function(H){_.S("gel_compression_csi_killswitch")||!_.S("log_gel_compression_latency")&&!_.S("log_gel_compression_latency_lr")||u88("gel_compression",H,{sampleRate:.1})};
tqh=function(){this.blockSize=-1};
Ns=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var H=1;H<this.blockSize;++H)this.pad_[H]=0;this.total_=this.inbuf_=0;this.reset()};
yy7=function(H){H=Object.assign({},H);delete H.Authorization;var U=_.cyF();if(U){var A=new Ns;A.update(_.gD("INNERTUBE_API_KEY"));A.update(U);H.hash=_.I_(A.digest(),3)}return H};
p_=function(){BXh||(BXh=new _.Sx("yt.innertube"));return BXh};
ry_=function(H,U,A,M){if(M)return null;M=p_().get("nextId",!0)||1;var W=p_().get("requests",!0)||{};W[M]={method:H,request:U,authState:yy7(A),requestTime:Math.round((0,_.lD)())};p_().set("nextId",M+1,86400,!0);p_().set("requests",W,86400,!0);return M};
eD8=function(H){var U=p_().get("requests",!0)||{};delete U[H];p_().set("requests",U,86400,!0)};
$Dc=function(H){var U=p_().get("requests",!0);if(U){for(var A in U){var M=U[A];if(!(Math.round((0,_.lD)())-M.requestTime<6E4)){var W=M.authState,w=yy7(_.KqK(!1));_.dG.equals(W,w)&&(W=M.request,"requestTimeMs"in W&&(W.requestTimeMs=Math.round((0,_.lD)())),DDF(H,M.method,W,{}));delete U[A]}}p_().set("requests",U,86400,!0)}};
ld8=function(H){var U;return(H=H==null?void 0:(U=H.error)==null?void 0:U.code)&&H>=400&&H<=599?!1:!0};
GuF=function(H){var U;H=H==null?void 0:(U=H.error)==null?void 0:U.code;return!(H!==400&&H!==415)};
qcN=function(){if(Ycc)return Ycc();var H={};Ycc=$D("LogsDatabaseV2",{objectStores:(H.LogsRequestsStore={addedAtVersion:2},H),shared:!1,upgrade:function(U,A,M){A(2)&&L_(U,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});A(3);A(5)&&(M=M.objectStore("LogsRequestsStore"),M.JSC$10990_wrapped.indexNames.contains("newRequest")&&M.JSC$10990_wrapped.deleteIndex("newRequest"),RQ(M,"newRequestV2",["status","interface","timestamp"]));A(7)&&U.JSC$10975_wrapped.objectStoreNames.contains("sapisid")&&U.JSC$10975_wrapped.deleteObjectStore("sapisid");
A(9)&&U.JSC$10975_wrapped.objectStoreNames.contains("SWHealthLog")&&U.JSC$10975_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Ycc()};
El=function(H){return _.CO(qcN(),H)};
ku7=function(H,U){var A,M,W,w;return _.u(function(d){if(d.nextAddress==1)return A={startTime:(0,_.lD)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},d.yield(El(U),2);if(d.nextAddress!=3)return M=d.yieldResult,W=Object.assign({},H,{options:JSON.parse(JSON.stringify(H.options)),interface:_.gD("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),d.yield(M.put("LogsRequestsStore",W),3);w=d.yieldResult;A.ticks.tc=(0,_.lD)();hDc(A);return d.return(w)})};
v$E=function(H,U){var A,M,W,w,d,O,f,J,F;return _.u(function(P){if(P.nextAddress==1)return A={startTime:(0,_.lD)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},P.yield(El(U),2);if(P.nextAddress!=3)return M=P.yieldResult,W=_.gD("INNERTUBE_CONTEXT_CLIENT_NAME",0),w=[H,W,0],d=[H,W,(0,_.lD)()],O=IDBKeyRange.bound(w,d),f="prev",_.S("use_fifo_for_networkless")&&(f="next"),J=void 0,F=H==="NEW"?"readwrite":"readonly",_.S("use_readonly_for_get_most_recent_by_status_killswitch")&&(F="readwrite"),
P.yield(_.tj(M,["LogsRequestsStore"],{mode:F,enableRetries:!0},function(n){return _.GU(n.objectStore("LogsRequestsStore").index("newRequestV2"),{query:O,direction:f},function(N){N.getValue()&&(J=N.getValue(),H==="NEW"&&(J.status="QUEUED",N.update(J)))})}),3);
A.ticks.tc=(0,_.lD)();hDc(A);return P.return(J)})};
TX4=function(H,U){var A;return _.u(function(M){if(M.nextAddress==1)return M.yield(El(U),2);A=M.yieldResult;return M.return(_.tj(A,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(W){var w=W.objectStore("LogsRequestsStore");return w.get(H).then(function(d){if(d)return d.status="QUEUED",w.put(d).then(function(){return d})})}))})};
jSF=function(H,U,A,M){A=A===void 0?!0:A;var W;return _.u(function(w){if(w.nextAddress==1)return w.yield(El(U),2);W=w.yieldResult;return w.return(_.tj(W,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(d){var O=d.objectStore("LogsRequestsStore");return O.get(H).then(function(f){return f?(f.status="NEW",A&&(f.sendCount+=1),M!==void 0&&(f.options.compress=M),O.put(f).then(function(){return f})):Rd.resolve(void 0)})}))})};
Idc=function(H,U){var A;return _.u(function(M){if(M.nextAddress==1)return M.yield(El(U),2);A=M.yieldResult;return M.return(A.delete("LogsRequestsStore",H))})};
QS7=function(H){var U,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(El(H),2);U=M.yieldResult;A=(0,_.lD)()-2592E6;return M.yield(_.tj(U,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(W){return yG(W.objectStore("LogsRequestsStore"),{},function(w){if(w.getValue().timestamp<=A)return w.delete().then(function(){return w.continue()})})}),0)})};
Vq4=function(){_.u(function(H){return H.yield(GvN("LogsDatabaseV2"),0)})};
hDc=function(H){_.S("nwl_csi_killswitch")||u88("networkless_performance",H,{sampleRate:1})};
_.Ue0=function(H){return _.CO(HGh(),H)};
Ap0=function(H){var U,A;_.u(function(M){if(M.nextAddress==1)return M.yield(_.Ue0(H),2);U=M.yieldResult;A=(0,_.lD)()-2592E6;return M.yield(_.tj(U,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(W){return yG(W.objectStore("SWHealthLog"),{},function(w){if(w.getValue().timestamp<=A)return w.delete().then(function(){return w.continue()})})}),0)})};
Mrr=function(H){var U;return _.u(function(A){if(A.nextAddress==1)return A.yield(_.Ue0(H),2);U=A.yieldResult;return A.yield(U.clear("SWHealthLog"),0)})};
_.my=function(H,U,A,M,W,w,d){W=W===void 0?"":W;w=w===void 0?!1:w;d=d===void 0?!1:d;if(H)if(A&&!NK("cobalt"))_.c5(new _.bD("Legacy referrer-scrubbed ping detected")),H&&W7N(H,void 0,{scrubReferrer:!0});else if(W)CaN(H,U,"POST",W,M);else if(_.gD("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||M||d)CaN(H,U,"GET","",M,void 0,w,d);else{b:{try{c:{var O=new w$8({url:H});if(O.urlParamValues_.dsh==="1")var f=null;else{var J=O.urlParamValues_.ae;if(J==="1"){var F=O.urlParamValues_.adurl;if(F)try{f={version:3,directUrl:decodeURIComponent(F),
asyncUrl:shF(O.JSC$9779_url_,"act=1","ri=1",X$c(O))};break c}catch(L){}}f=J==="2"?{version:4,directUrl:shF(O.JSC$9779_url_,"dct=1","suid="+O.suid_,"ri=1"),asyncUrl:shF(O.JSC$9779_url_,"act=1","ri=1","suid="+O.suid_)}:null}}if(f){var P=_.DU(H);var n=!(!P||!P.endsWith("/aclk")||_.TZ(H,"ri")!=="1");break b}}catch(L){}n=!1}if(n){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(H,"")){var N=!0;break b}}catch(L){}N=!1}N?(U&&U(),A=!0):A=!1}else A=!1;A||W7N(H,U)}};
W7N=function(H,U,A){A=A===void 0?{}:A;var M=new Image,W=""+iG0++;bG_[W]=M;M.onload=M.onerror=function(){U&&bG_[W]&&U();delete bG_[W]};
A.scrubReferrer&&(M.referrerPolicy="no-referrer");M.src=H};
gB=function(H,U){de7(H,U==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
OG7=function(H){var U;return((U=document.featurePolicy)==null?0:U.allowedFeatures().includes("attribution-reporting"))?H+"&nis=6":H+"&nis=5"};
u1K=function(H){if(!H)return!1;try{var U;if(((U=_.B5(H))==null?void 0:U.asm)==="4")return!0}catch(A){_.za(A)}return!1};
de7=function(H,U){U?(H=OG7(H),_.my(H,void 0,void 0,void 0,"",!0,!0)):_.my(H)};
fNc=function(){ZGF||(ZGF=new _.Sx("yt.offline"));return ZGF};
JpN=function(H){if(_.S("offline_error_handling")){var U=fNc().get("errors",!0)||{};U[H.message]={name:H.name,stack:H.stack};H.level&&(U[H.message].level=H.level);fNc().set("errors",U,2592E3,!0)}};
o38=function(H,U,A,M){M=M===void 0?!1:M;U=_.S("web_fp_via_jspb")?Object.assign({},U):U;_.S("use_cfr_monitor")&&K7r(H,U);if(_.S("use_request_time_ms_header"))U.headers&&DM(H)&&(U.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.lD)())));else{var W;if((W=U.postParams)==null?0:W.requestTimeMs)U.postParams.requestTimeMs=Math.round((0,_.lD)())}A&&Object.keys(U).length===0?_.my(H):U.compress?U.postBody?(typeof U.postBody!=="string"&&(U.postBody=JSON.stringify(U.postBody)),mDE(H,U.postBody,
U,_.VW,M)):mDE(H,JSON.stringify(U.postParams),U,BHE,M):_.VW(H,U)};
F7r=function(H,U){_.S("use_event_time_ms_header")&&DM(H)&&(U.headers||(U.headers={}),U.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.lD)())));return U};
_.svc=function(){PjN||(PjN=new _.xB({logOfflineErrors:!0,enablePolling:!0}));return PjN};
K7r=function(H,U){var A=U.onError?U.onError:function(){};
U.onError=function(W,w){zq().requestComplete(H,!1);A(W,w)};
var M=U.onSuccess?U.onSuccess:function(){};
U.onSuccess=function(W,w){zq().requestComplete(H,!0);M(W,w)}};
_.n3c=function(){return _.es(document.location.toString())!=="www.youtube-nocookie.com"};
_.p$N=function(){return _.tr("ytNetworklessLoggingInitializationOptions")?_.NAc.isNwlInitialized:_.SBc};
L7t=function(H,U){if(_.S("polymer_on_demand_shady_dom")){var A;var M=(A=H.__shady_native_firstElementChild)!=null?A:H.firstElementChild}else M=H.firstElementChild;for(;M;){if(H=U(M)?M:L7t(M,U))return H;M=M.nextElementSibling}return null};
_.E3h=function(){var H=document;if("visibilityState"in H)return H.visibilityState;var U=Ryt+"VisibilityState";if(U in H)return H[U]};
_.meN=function(H,U){var A;C_(H,function(M){A=U[M];return!!A});
return A};
_.cW=function(H){var U=g3N(H);U?U.focus(void 0):_.tk(H)};
g3N=function(H){return(H=L7t(H,function(U){return _.YR(U)?aNF(U)&&!!U.offsetParent:!1}))?H:null};
_.tk=function(H,U){H.hasAttribute("tabindex")||H.setAttribute("tabindex","-1");H.focus(U)};
xeK=function(H,U,A,M){M=M===void 0?{}:M;H.addEventListener&&(U!="mouseenter"||"onmouseenter"in document?U!="mouseleave"||"onmouseenter"in document?U=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(U="MozMousePixelScroll"):U="mouseout":U="mouseover");return _.dG.findKey(yO,function(W){var w=typeof W[4]==="boolean"&&W[4]==!!M,d=_.ht(W[4])&&_.ht(M)&&_.dG.equals(W[4],M);return!!W.length&&W[0]==H&&W[1]==U&&W[2]==A&&(w||d)})};
_.rB=function(H,U,A,M){M=M===void 0?{}:M;if(!H||!H.addEventListener&&!H.attachEvent)return"";var W=xeK(H,U,A,M);if(W)return W;W=++zyc.count+"";var w=!(U!="mouseenter"&&U!="mouseleave"||!H.addEventListener||"onmouseenter"in document);var d=w?function(O){O=new BW(O);if(!_.Kp(O.relatedTarget,function(f){return f==H},!0))return O.currentTarget=H,O.type=U,A.call(H,O)}:function(O){O=new BW(O);
O.currentTarget=H;return A.call(H,O)};
d=_.CA(d);H.addEventListener?(U=="mouseenter"&&w?U="mouseover":U=="mouseleave"&&w?U="mouseout":U=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(U="MozMousePixelScroll"),Cjc()||typeof M==="boolean"?H.addEventListener(U,d,M):H.addEventListener(U,d,!!M.capture)):H.attachEvent("on"+U,d);yO[W]=[H,U,A,d,M];return W};
_.cph=function(H,U,A){var M=M===void 0?{}:M;var W=_.rB(H,U,function(){_.tr_(W);A.apply(H,arguments)},M)};
_.tr_=function(H){H&&(typeof H=="string"&&(H=[H]),_.yW(H,function(U){if(U in yO){var A=yO[U],M=A[0],W=A[1],w=A[3];A=A[4];M.removeEventListener?Cjc()||typeof A==="boolean"?M.removeEventListener(W,w,A):M.removeEventListener(W,w,!!A.capture):M.detachEvent&&M.detachEvent("on"+W,w);delete yO[U]}}))};
ex=function(H){this.callback_=H;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(H=0;H<4;H++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.rB(window,"mousemove",(0,_.i9)(this.onMouseMove_,this));this.timerId_=_.Ih((0,_.i9)(this.checkPosition_,this),25)};
rph=function(){var H={};var U=H.preferMobileEvents===void 0?!1:H.preferMobileEvents;H=H.enableScrollEventListener===void 0?!0:H.enableScrollEventListener;if(_.tr("_lact",window)==null){var A=parseInt(_.gD("LACT"),10);A=isFinite(A)?Date.now()-Math.max(A,0):-1;_.eC("_lact",A,window);_.eC("_fact",A,window);A==-1&&_.D6();yp8(window,U,H);new ex(function(){BAN("mouse",100)})}};
yp8=function(H,U,A){U=U===void 0?!1:U;A=A===void 0?!0:A;_.rB(H.document,"keydown",_.D6);_.rB(H.document,"keyup",_.D6);_.rB(H.document,"mousedown",_.D6);_.rB(H.document,"mouseup",_.D6);U?_.rB(H,"touchmove",function(){BAN("touchmove",200)},{passive:!0}):(_.rB(H,"resize",function(){BAN("resize",200)}),A&&_.rB(H,"scroll",function(){BAN("scroll",200)}));
_.rB(H.document,"touchstart",_.D6,{passive:!0});_.rB(H.document,"touchend",_.D6,{passive:!0})};
BAN=function(H,U){ey0[H]||(ey0[H]=!0,_.Fl.addLowPriorityJob(function(){_.D6();ey0[H]=!1},U))};
_.D6=function(){_.tr("_lact",window)==null&&rph();var H=Date.now();_.eC("_lact",H,window);_.tr("_fact",window)==-1&&_.eC("_fact",H,window);(H=_.tr("ytglobal.ytUtilActivityCallback_"))&&H()};
_.$B=function(){var H=_.tr("_lact",window);return H==null?-1:Math.max(Date.now()-H,0)};
_.qs=function(H,U,A){var M=_.lS();if(M&&U){var W=M.subscribe(H,function(){var w=arguments,d=function(){Gq[W]&&U.apply&&typeof U.apply=="function"&&U.apply(A||window,w)};
try{_.De8[H]?d():_.jy(d,0)}catch(O){_.za(O)}},A);
Gq[W]=!0;YB[H]||(YB[H]=[]);YB[H].push(W);return W}return 0};
_.$eN=function(H){var U=_.lS();U&&(typeof H==="number"?H=[H]:typeof H==="string"&&(H=[parseInt(H,10)]),_.yW(H,function(A){U.unsubscribeByKey(A);delete Gq[A]}))};
_.lN7=function(H,U){var A=_.lS();A&&A.publish.apply(A,arguments)};
_.YBr=function(H){var U=_.lS();if(U)if(U.clear(H),H)Gkr(H);else for(var A in YB)Gkr(A)};
_.lS=function(){return _.Mr.ytPubsubPubsubInstance};
Gkr=function(H){YB[H]&&(H=YB[H],_.yW(H,function(U){Gq[U]&&delete Gq[U]}),H.length=0)};
qBt=function(){var H,U;return"h5vcc"in hk&&((H=hk.h5vcc.traceEvent)==null?0:H.traceBegin)&&((U=hk.h5vcc.traceEvent)==null?0:U.traceEnd)?1:"performance"in hk&&hk.performance.mark&&hk.performance.measure?2:0};
hyt=function(H){var U=qBt();switch(U){case 1:hk.h5vcc.traceEvent.traceBegin("YTLR",H);break;case 2:hk.performance.mark(H+"-start");break;case 0:break;default:_.U$(U,"unknown trace type")}};
kkM=function(H){var U=qBt();switch(U){case 1:hk.h5vcc.traceEvent.traceEnd("YTLR",H);break;case 2:U=H+"-start";var A=H+"-end";hk.performance.mark(A);hk.performance.measure(H,U,A);break;case 0:break;default:_.U$(U,"unknown trace type")}};
v3t=function(H){var U,A;(A=(U=window).onerror)==null||A.call(U,H.message,"",0,0,H)};
TAc=function(H){if(_.S("web_lifecycle_error_handling_killswitch"))return H();try{return H()}catch(U){v3t(U)}};
jv4=function(H){return[H.auth===void 0?"undefined":H.auth,H.isJspb===void 0?"undefined":H.isJspb,H.cttAuthInfo===void 0?"undefined":H.cttAuthInfo,H.tier===void 0?"undefined":H.tier].join("/")};
_.p=function(H,U){if(H)return H[U.name]};
vW=function(){var H=_.tr("yt.logging.ims");H||(H=new kB,_.eC("yt.logging.ims",H));return H};
woK=function(H,U){if(H.endpoint==="log_event"){INV(H);var A=Qvt(H),M=VrV(H.payload)||"",W=HyN(M),w=200;if(W){if(W.enabled===!1&&!_.S("web_payload_policy_disabled_killswitch"))return;w=UFE(W.tier);if(w===400){AsN(H,U);return}}Tq[A]=!0;A={cttAuthInfo:A,isJspb:!1,tier:w};vW().storePayload(A,H.payload);MI7(U,!1,A,WYE(M))}};
iyr=function(H,U,A){if(U.endpoint==="log_event"){INV(void 0,U);var M=Qvt(U,!0),W=HyN(H),w=200;if(W){if(W.enabled===!1&&!_.S("web_payload_policy_disabled_killswitch"))return;w=UFE(W.tier);if(w===400){Xo8(H,U,A);return}}Tq[M]=!0;M={cttAuthInfo:M,isJspb:!0,tier:w};vW().storePayload(M,Bj(U.payload));MI7(A,!0,M,WYE(H))}};
MI7=function(H,U,A,M){U=U===void 0?!1:U;M=M===void 0?!1:M;H&&(jx=new H);H=_.hr("tvhtml5_logging_max_batch_ads_fork")||_.hr("tvhtml5_logging_max_batch")||_.hr("web_logging_max_batch")||100;var W=(0,_.lD)(),w=byF(U,A.tier),d=w.lastDebounceQueueFromLogTimeMs;M&&(w.useVideoStatsEndPoint=!0);M=0;A&&(M=vW().getSequenceCount(A));var O=function(){dF0({writeThenSend:!0},U,A.tier)};
M>=1E3?O():M>=H?OyF||(OyF=uAh(function(){O();OyF=void 0},0)):W-d>=10&&(ZyV(U,A.tier),w.lastDebounceQueueFromLogTimeMs=W)};
AsN=function(H,U){if(H.endpoint==="log_event"){_.S("more_accurate_gel_parser")&&vW().storePayload({isJspb:!1},H.payload);INV(H);var A=Qvt(H),M=new Map;M.set(A,[H.payload]);var W=VrV(H.payload)||"";U&&(jx=new U);return new _.IQ(function(w,d){jx&&jx.isReady()?fW4(M,jx,w,d,{bypassNetworkless:!0},!0,WYE(W)):w()})}};
Xo8=function(H,U,A){if(U.endpoint==="log_event"){INV(void 0,U);var M=Qvt(U,!0),W=new Map;W.set(M,[Bj(U.payload)]);A&&(jx=new A);return new _.IQ(function(w){jx&&jx.isReady()?Js0(W,jx,w,{bypassNetworkless:!0},!0,WYE(H)):w()})}};
Qvt=function(H,U){var A="";if(H.dangerousLogToVisitorSession)A="visitorOnlyApprovedKey";else if(H.cttAuthInfo){if(U===void 0?0:U){U=H.cttAuthInfo.token;A=H.cttAuthInfo;var M=new KY7;A.videoId?M.setVideoId(A.videoId):A.playlistId&&QO(M,2,oY4,E$(A.playlistId));FY_[U]=M}else U=H.cttAuthInfo,A={},U.videoId?A.videoId=U.videoId:U.playlistId&&(A.playlistId=U.playlistId),PZE[H.cttAuthInfo.token]=A;A=H.cttAuthInfo.token}return A};
dF0=function(H,U,A){H=H===void 0?{}:H;U=U===void 0?!1:U;new _.IQ(function(M,W){var w=byF(U,A),d=w.useVideoStatsEndPoint;w.useVideoStatsEndPoint=!1;sL8(w.queueTimer);sL8(w.queueMaxTimer);w.queueMaxTimer=0;jx&&jx.isReady()?A===void 0&&_.S("enable_web_tiered_gel")?nY_(M,W,H,U,300,d):nY_(M,W,H,U,A,d):(ZyV(U,A),M())})};
nY_=function(H,U,A,M,W,w){var d=jx;A=A===void 0?{}:A;M=M===void 0?!1:M;W=W===void 0?200:W;w=w===void 0?!1:w;var O=new Map,f=new Map,J={isJspb:M,cttAuthInfo:void 0,tier:W},F={isJspb:M,cttAuthInfo:void 0};if(M){U=_.b(Object.keys(Tq));for(W=U.next();!W.done;W=U.next())W=W.value,f=_.S("enable_web_tiered_gel")?vW().smartExtractMatchingEntries({keys:[J,F],sizeLimit:1E3}):vW().extractMatchingEntries({isJspb:!0,cttAuthInfo:W}),f.length>0&&O.set(W,f),(_.S("web_fp_via_jspb_and_json")&&A.writeThenSend||!_.S("web_fp_via_jspb_and_json"))&&
delete Tq[W];Js0(O,d,H,A,!1,w)}else{O=_.b(Object.keys(Tq));for(J=O.next();!J.done;J=O.next())J=J.value,F=_.S("enable_web_tiered_gel")?vW().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:J,tier:W},{isJspb:!1,cttAuthInfo:J}],sizeLimit:1E3}):vW().extractMatchingEntries({isJspb:!1,cttAuthInfo:J}),F.length>0&&f.set(J,F),(_.S("web_fp_via_jspb_and_json")&&A.writeThenSend||!_.S("web_fp_via_jspb_and_json"))&&delete Tq[J];fW4(f,d,H,U,A,!1,w)}};
ZyV=function(H,U){H=H===void 0?!1:H;U=U===void 0?200:U;var A=function(){dF0({writeThenSend:!0},H,U)},M=byF(H,U),W=M===NTh||M===S3c?5E3:por;
_.S("web_gel_timeout_cap")&&!M.queueMaxTimer&&(W=uAh(function(){A()},W),M.queueMaxTimer=W);
sL8(M.queueTimer);W=_.gD("LOGGING_BATCH_TIMEOUT",_.hr("web_gel_debounce_ms",1E4));_.S("shorten_initial_gel_batch_timeout")&&LYc&&(W=R$_);W=uAh(function(){_.hr("gel_min_batch_size")>0?vW().getSequenceCount({cttAuthInfo:void 0,isJspb:H,tier:U})>=EYc&&A():A()},W);
M.queueTimer=W};
fW4=function(H,U,A,M,W,w,d){W=W===void 0?{}:W;var O=Math.round((0,_.lD)()),f=H.size,J=mFK(d);H=_.b(H);var F=H.next();for(d={};!F.done;d={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},F=H.next()){var P=_.b(F.value);F=P.next().value;P=P.next().value;d.batchRequest=_.dG.unsafeClone({context:_.X4F(U.config_||_.YD())});if(!_.l7(P)&&!_.S("throw_err_when_logevent_malformed_killswitch")){M();break}d.batchRequest.events=P;
(P=PZE[F])&&gYF(d.batchRequest,F,P);delete PZE[F];d.dangerousLogToVisitorSession=F==="visitorOnlyApprovedKey";aWK(d.batchRequest,O,d.dangerousLogToVisitorSession);xF7(W);d.onSuccess$jscomp$3=function(n){_.S("start_client_gcf")&&_.Fl.addLowPriorityJob(function(){return _.u(function(N){return N.yield(z$V(n),0)})});
f--;f||A()};
d.networkFailures=0;d.onError$jscomp$5=function(n){return function(){n.networkFailures++;if(W.bypassNetworkless&&n.networkFailures===1)try{DDF(U,J,n.batchRequest,CZE({writeThenSend:!0},n.dangerousLogToVisitorSession,n.onSuccess$jscomp$3,n.onError$jscomp$5,w)),LYc=!1}catch(N){_.za(N),M()}f--;f||A()}}(d);
try{DDF(U,J,d.batchRequest,CZE(W,d.dangerousLogToVisitorSession,d.onSuccess$jscomp$3,d.onError$jscomp$5,w)),LYc=!1}catch(n){_.za(n),M()}}};
Js0=function(H,U,A,M,W,w){M=M===void 0?{}:M;var d=Math.round((0,_.lD)()),O={value:H.size},f=new Map([].concat(_.vI(H)));f=_.b(f);for(var J=f.next();!J.done;J=f.next()){var F=_.b(J.value).next().value,P=H.get(F);J=new VO;var n=U.config_||_.YD(),N=new H1,L=new tIh;_.Mu(L,1,n.innertubeContextHostLanguage);_.Mu(L,2,n.innertubeContextGeoLocation);_.hj(L,16,n.innertubeContextClientNameFieldNumber);_.Mu(L,17,n.innertubeContextClientVersion);if(n.innertubeContextClientConfigInfo){var m=n.innertubeContextClientConfigInfo,
z=new vK;m.coldConfigData&&_.Mu(z,1,m.coldConfigData);m.appInstallData&&_.Mu(z,6,m.appInstallData);m.coldHashData&&_.Mu(z,3,m.coldHashData);m.hotHashData&&z.setHotHashData(m.hotHashData);_.CN(L,62,z)}(m=_.Mr.devicePixelRatio)&&m!=1&&_.kD(L,65,_.AB(m));m=Sn0();m!==""&&_.Mu(L,54,m);m=LbM();if(m.length>0){z=new csK;for(var c=0;c<m.length;c++){var C=new UD;C.setKey(m[c].key);QO(C,2,ys7,E$(m[c].value));A9(z,15,UD,C)}_.CN(N,5,z)}Hf7(n,L);Uvc(N);AGE(L);Mk4(n,L);Wq7(L);_.S("start_client_gcf")&&w4K(L);_.gD("DELEGATED_SESSION_ID")&&
!_.S("pageid_as_header_web")&&(n=new Ma,_.Mu(n,3,_.gD("DELEGATED_SESSION_ID")));!_.S("fill_delegate_context_in_gel_killswitch")&&(m=_.gD("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(z=_.qK(N,Ma,3)||new Ma,n=N,m=_.Mu(z,18,m),_.CN(n,3,m));n=L;m=_.b(Object.entries(_.B5(_.gD("DEVICE",""))));for(z=m.next();!z.done;z=m.next())c=_.b(z.value),z=c.next().value,c=c.next().value,z==="cbrand"?_.Mu(n,12,c):z==="cmodel"?_.Mu(n,13,c):z==="cbr"?_.Mu(n,87,c):z==="cbrver"?_.Mu(n,88,c):z==="cos"?_.Mu(n,18,
c):z==="cosver"?_.Mu(n,19,c):z==="cplatform"&&_.hj(n,42,HqE(c));N.setClient(L);_.CN(J,1,N);if(L=FY_[F])a:{if(_.Il(L,W1(L,oY4,1)))N=1;else if(L.getPlaylistId())N=2;else break a;_.CN(J,4,L);L=J.getContext()||new H1;n=_.qK(L,Ma,3)||new Ma;m=new wu;m.setToken(F);_.hj(m,1,N);A9(n,12,wu,m);_.CN(L,3,n)}delete FY_[F];F=F==="visitorOnlyApprovedKey";BTh()||_.Xx(J,2,d);!F&&(N=_.gD("EVENT_ID"))&&(L=rsM(),n=new e$7,_.Mu(n,1,N),_.Xx(n,2,L),_.CN(J,5,n));xF7(M);if(_.S("jspb_serialize_with_worker")&&(N=_.o$N())&&
M.writeThenSend){_.DF7.set($Fc,{client:U,resolve:A,networklessOptions:M,isIsolated:W,useVSSEndpoint:w,dangerousLogToVisitorSession:F,requestsOutstanding:O});N.postMessage({op:"gelBatchToSerialize",batchRequest:Bj(J),clientEvents:P,key:$Fc});$Fc++;break}if(P){N=[];for(L=0;L<P.length;L++)try{N.push(new iM(P[L]))}catch(v){_.za(new _.bD("Transport failed to deserialize "+String(P[L])))}P=N}else P=[];P=_.b(P);for(N=P.next();!N.done;N=P.next())A9(J,3,iM,N.value);P={startTime:(0,_.lD)(),ticks:{},infos:{}};
J=J.serialize();P.ticks.geljspc=(0,_.lD)();_.S("log_jspb_serialize_latency")&&u88("gel_jspb_serialize",P,{sampleRate:.1});_.lWh(J,U,A,M,W,w,F,O)}};
_.lWh=function(H,U,A,M,W,w,d,O){M=M===void 0?{}:M;O=O===void 0?{value:0}:O;w=mFK(w);M=CZE(M,d,function(f){_.S("start_client_gcf")&&_.Fl.addLowPriorityJob(function(){return _.u(function(J){return J.yield(z$V(f),0)})});
O.value--;O.value||A()},function(){O.value--;
O.value||A()},W);
M.headers["Content-Type"]="application/json+protobuf";M.postBodyFormat="JSPB";M.postBody=H;DDF(U,w,"",M);LYc=!1};
xF7=function(H){_.S("always_send_and_write")&&(H.writeThenSend=!1)};
CZE=function(H,U,A,M,W){H={retry:!0,onSuccess:A,onError:M,networklessOptions:H,dangerousLogToVisitorSession:U,bypassMonitoring:!!W,headers:{},postBodyFormat:"",postBody:"",compress:_.S("compress_gel")||_.S("compress_gel_lr")};BTh()&&(H.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.lD)())));return H};
aWK=function(H,U,A){BTh()||(H.requestTimeMs=String(U));_.S("unsplit_gel_payloads_in_logs")&&(H.unsplitGelPayloadsInLogs=!0);!A&&(U=_.gD("EVENT_ID"))&&(A=rsM(),H.serializedClientEventId={serializedEventId:U,clientCounter:String(A)})};
rsM=function(){var H=_.gD("BATCH_CLIENT_COUNTER")||0;H||(H=Math.floor(Math.random()*65535/2));H++;H>65535&&(H=1);_.mT("BATCH_CLIENT_COUNTER",H);return H};
gYF=function(H,U,A){if(A.videoId)var M="VIDEO";else if(A.playlistId)M="PLAYLIST";else return;H.credentialTransferTokenTargetId=A;H.context=H.context||{};H.context.user=H.context.user||{};H.context.user.credentialTransferTokens=[{token:U,scope:M}]};
INV=function(H,U){var A=_.kV("il_payload_scraping")==="enable_il_payload_scraping";if(!_.tr("yt.logging.transport.enableScrapingForTest"))if(A)GB8=[],_.eC("yt.logging.transport.enableScrapingForTest",!0),_.eC("yt.logging.transport.scrapedPayloadsForTesting",GB8),_.eC("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.eC("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.eC("yt.logging.transport.scrapeClientEvent",!0);else return;A=_.tr("yt.logging.transport.scrapedPayloadsForTesting");var M=_.tr("yt.logging.transport.payloadToScrape");U&&(U=_.tr("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(U.payload)())&&A.push(U);U=_.tr("yt.logging.transport.scrapeClientEvent");if(M&&M.length>=1)for(var W=0;W<M.length;W++)if(H&&H.payload[M[W]])if(U)A.push(H.payload);else{var w=void 0;A.push(((w=H)==null?void 0:w.payload)[M[W]])}_.eC("yt.logging.transport.scrapedPayloadsForTesting",
A)};
BTh=function(){return _.S("use_request_time_ms_header")||_.S("lr_use_request_time_ms_header")};
uAh=function(H,U){return _.S("transport_use_scheduler")===!1?_.jy(H,U):_.S("logging_avoid_blocking_during_navigation")||_.S("lr_logging_avoid_blocking_during_navigation")?_.bM(_.Fl,function(){if(_.Y3_().currentState==="none")H();else{var A={};_.Y3_().install((A.none={callback:H},A))}},U):_.bM(_.Fl,H,U)};
sL8=function(H){_.S("transport_use_scheduler")?_.Fl.cancelJob(H):_.QW(H)};
z$V=function(H){var U,A,M,W,w,d,O,f,J,F;return _.u(function(P){return P.nextAddress==1?(M=(U=H)==null?void 0:(A=U.responseContext)==null?void 0:A.globalConfigGroup,W=_.p(M,q3F),d=(w=M)==null?void 0:w.hotHashData,O=_.p(M,h$V),J=(f=M)==null?void 0:f.coldHashData,(F=_.lx().resolve(_.$V(du)))?d?W?P.yield(kBE(F,d,W),2):P.yield(kBE(F,d),2):P.jumpTo(2):P.return()):J?O?P.yield(vY0(F,J,O),0):P.yield(vY0(F,J),0):P.jumpTo(0)})};
byF=function(H,U){U=U===void 0?200:U;return H?U===300?NTh:TTK:U===300?S3c:jL0};
HyN=function(H){if(_.S("enable_web_tiered_gel")){H=IWc[H||""];var U,A,M,W=_.lx().resolve(_.$V(du))==null?void 0:(U=uM())==null?void 0:(A=U.loggingHotConfig)==null?void 0:(M=A.eventLoggingConfig)==null?void 0:M.payloadPolicies;if(W)for(U=0;U<W.length;U++)if(W[U].payloadNumber===H)return W[U]}};
VrV=function(H){H=Object.keys(H);H=_.b(H);for(var U=H.next();!U.done;U=H.next())if(U=U.value,IWc[U])return U};
UFE=function(H){switch(H){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}};
WYE=function(H){return H==="gelDebuggingEvent"};
mFK=function(H){return(H===void 0?0:H)&&_.S("vss_through_gel_video_stats")?"video_stats":"log_event"};
f5=function(H,U,A,M){M=M===void 0?{}:M;var W={},w=Math.round(M.timestamp||(0,_.lD)());W.eventTimeMs=w<Number.MAX_SAFE_INTEGER?w:0;W[H]=U;H=_.$B();W.context={lastActivityMs:String(M.timestamp||!isFinite(H)?-1:H)};M.sequenceGroup&&!_.S("web_gel_sequence_info_killswitch")&&(H=W.context,U=M.sequenceGroup,U={index:QLt(U),groupKey:U},H.sequence=U,M.endOfSequence&&delete Zz[M.sequenceGroup]);_.S("web_tag_automated_log_events")&&(W.context.automatedLogEventSource=M.automatedLogEventSource);(M.sendIsolatedPayload?
AsN:woK)({endpoint:"log_event",payload:W,cttAuthInfo:M.cttAuthInfo,dangerousLogToVisitorSession:M.dangerousLogToVisitorSession},A)};
QLt=function(H){Zz[H]=H in Zz?Zz[H]+1:0;return Zz[H]};
_.Fx=function(H,U,A){A=A===void 0?{}:A;var M=o1;_.xV("ytLoggingEventsDefaultDisabled",!1)&&o1===o1&&(M=null);f5(H,U,M,A)};
_.P1=function(){if(_.S("web_fp_via_jspb")){var H=!0;H=H===void 0?!1:H;var U=VI0;VI0=[];if(U){U=_.b(U);for(var A=U.next();!A.done;A=U.next())A=A.value,H?f5(A.payloadName,A.payload,o1,A.options):_.Fx(A.payloadName,A.payload,A.options)}dF0(void 0,!0);if(!_.S("web_fp_via_jspb_and_json"))return}dF0(void 0,!1)};
Hl_=function(H,U){var A;if((A=U)==null?0:A.componentStack)return U;if(H=H.componentStack)U||(U={}),U.componentStack=H;return U};
UG_=function(){_.yW(_.gD("ERRORS")||[],function(H){_.sD.apply(null,H)});
_.mT("ERRORS",[])};
_.n5=function(H){_.sD(H)};
_.Na=function(H){_.sD(H,"WARNING")};
AFF=function(H){H instanceof Error?_.sD(H):(H=_.ht(H)?JSON.stringify(H):String(H),H=new _.bD(H),H.name="RejectedPromiseError",_.Na(H))};
M5r=function(H,U,A,M,W,w){U=U===void 0?"Unknown file":U;A=A===void 0?0:A;var d=!1,O=UYE("log_window_onerror_fraction");if(O&&Math.random()<O)d=!0;else{O=document.getElementsByTagName("script");for(var f=0,J=O.length;f<J;f++)if(O[f].src.indexOf("/debug-")>0){d=!0;break}}d&&(d=!1,W?d=!0:(typeof H==="string"?O=H:ErrorEvent&&H instanceof ErrorEvent?(d=!0,O=H.message,U=H.filename,A=H.lineno,M=H.colno):(O="Unknown error",U="Unknown file",A=0),W=new _.bD(O),W.name="UnhandledWindowError",W.message=O,W.fileName=
U,W.lineNumber=A,isNaN(M)?delete W.columnNumber:W.columnNumber=M),_.S("wiz_enable_component_stack_propagation_killswitch")||(w=Hl_(W,w)),w&&_.SD(W,w),d?_.sD(W):_.Na(W))};
_.sD=function(H,U,A,M,W,w,d,O){w=w===void 0?{}:w;w.name=A||_.gD("INNERTUBE_CONTEXT_CLIENT_NAME",1);w.version=M||_.gD("INNERTUBE_CONTEXT_CLIENT_VERSION");A=w;U=U===void 0?"ERROR":U;d=d===void 0?!1:d;U=U===void 0?"ERROR":U;d=d===void 0?!1:d;if(H&&(H.hasOwnProperty("level")&&H.level&&(U=H.level),_.S("console_log_js_exceptions")&&(M=[],M.push("Name: "+H.name),M.push("Message: "+H.message),H.hasOwnProperty("params")&&M.push("Error Params: "+JSON.stringify(H.params)),H.hasOwnProperty("args")&&M.push("Error args: "+
JSON.stringify(H.args)),M.push("File name: "+H.fileName),M.push("Stacktrace: "+H.stack),M=M.join("\n"),window.console.log(M,H)),!(WLK>=5))){M=[];W=_.b(wq7);for(w=W.next();!w.done;w=W.next()){w=w.value;try{w()&&M.push(w())}catch(z){}}M=[].concat(_.vI(Xqc),_.vI(M));var f=ilt(H);W=f.message||"Unknown Error";w=f.name||"UnknownError";var J=f.stack||H.stacktrace||"Not available";if(J.startsWith(w+": "+W)){var F=J.split("\n");F.shift();J=F.join("\n")}F=f.lineNumber||"Not available";f=f.fileName||"Not available";
var P=0;if(H.hasOwnProperty("args")&&H.args&&H.args.length)for(var n=0;n<H.args.length&&!(P=V9t(H.args[n],"params."+n,A,P),P>=500);n++);else if(H.hasOwnProperty("params")&&H.params){var N=H.params;if(typeof H.params==="object")for(n in N){if(N[n]){var L="params."+n,m=Aj(N[n]);A[L]=m;P+=L.length+m.length;if(P>500)break}}else A.params=Aj(N)}if(M.length)for(n=0;n<M.length&&!(P=V9t(M[n],"params.context."+n,A,P),P>=500);n++);navigator.vendor&&!A.hasOwnProperty("vendor")&&(A["device.vendor"]=navigator.vendor);
n={message:W,name:w,lineNumber:F,fileName:f,stack:J,params:A,sampleWeight:1};A=Number(H.columnNumber);isNaN(A)||(n.lineNumber=n.lineNumber+":"+A);if(H.level==="IGNORED")H=0;else a:{H=blF();A=_.b(H.messageWeights);for(M=A.next();!M.done;M=A.next())if(M=M.value,n.message&&n.message.match(M.messageRegExp)){H=M.weight;break a}H=_.b(H.callbackWeights);for(A=H.next();!A.done;A=H.next())if(A=A.value,A.callback(n)){H=A.weight;break a}H=1}n.sampleWeight=H;H=_.b(dGh);for(A=H.next();!A.done;A=H.next())if(A=
A.value,A.patternsForType[n.name])for(W=_.b(A.patternsForType[n.name]),M=W.next();!M.done;M=W.next())if(w=M.value,M=n.message.match(w.regexp)){n.params["params.error.original"]=M[0];W=w.groups;w={};for(F=0;F<W.length;F++)w[W[F]]=M[F+1],n.params["params.error."+W[F]]=M[F+1];n.message=A.messageFn(w);break}n.params||(n.params={});H=blF();n.params["params.errorServiceSignature"]="msg="+H.messageWeights.length+"&cb="+H.callbackWeights.length;n.params["params.serviceWorker"]="false";_.Mr.document&&_.Mr.document.querySelectorAll&&
(n.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new p5(Ol4,"sample")).constructor!==p5&&(n.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(n);if(n.sampleWeight!==0&&!udF.has(n.message)){if(d)Zlt(U===void 0?"ERROR":U,n);else{U=U===void 0?"ERROR":U;U==="ERROR"?(L5.publish("handleError",n),_.S("record_app_crashed_web")&&ffN===0&&n.sampleWeight===1&&(ffN++,d={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},_.S("report_client_error_with_app_crash_ks")||
(d.systemHealth={crashData:{clientError:{logMessage:{message:n.message}}}}),_.Fx("appCrashed",d)),JFF++):U==="WARNING"&&L5.publish("handleWarning",n);if(_.S("kevlar_gel_error_routing")){d=U;O=O===void 0?{}:O;b:{H=_.b(KLF);for(A=H.next();!A.done;A=H.next())if(NK(A.value.toLowerCase())){H=!0;break b}H=!1}if(H)O=void 0;else{A={stackTrace:n.stack};n.fileName&&(A.filename=n.fileName);H=n.lineNumber&&n.lineNumber.split?n.lineNumber.split(":"):[];H.length!==0&&(H.length!==1||isNaN(Number(H[0]))?H.length!==
2||isNaN(Number(H[0]))||isNaN(Number(H[1]))||(A.lineNumber=Number(H[0]),A.columnNumber=Number(H[1])):A.lineNumber=Number(H[0]));H={level:"ERROR_LEVEL_UNKNOWN",message:n.message,errorClassName:n.name,sampleWeight:n.sampleWeight};d==="ERROR"?H.level="ERROR_LEVEL_ERROR":d==="WARNING"&&(H.level="ERROR_LEVEL_WARNNING");A={isObfuscated:!0,browserStackInfo:A};O.pageUrl=window.location.href;O.kvPairs=[];_.gD("FEXP_EXPERIMENTS")&&(O.experimentIds=_.gD("FEXP_EXPERIMENTS"));M=_.gD("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!UYE("web_disable_gel_stp_ecatcher_killswitch")&&M)for(W=_.b(Object.keys(M)),w=W.next();!w.done;w=W.next())w=w.value,O.kvPairs.push({key:w,value:String(M[w])});if(M=n.params)for(W=_.b(Object.keys(M)),w=W.next();!w.done;w=W.next())w=w.value,O.kvPairs.push({key:"client."+w,value:String(M[w])});M=_.gD("SERVER_NAME");W=_.gD("SERVER_VERSION");M&&W&&(O.kvPairs.push({key:"server.name",value:M}),O.kvPairs.push({key:"server.version",value:W}));O={errorMetadata:O,stackTrace:A,logMessage:H}}O&&(_.Fx("clientError",
O),(d==="ERROR"||_.S("errors_flush_gel_always_killswitch"))&&_.P1())}_.S("suppress_error_204_logging")||Zlt(U,n)}try{udF.add(n.message)}catch(z){}WLK++}}};
Zlt=function(H,U){var A=U.params||{};H={urlParams:{a:"logerror",t:"jserror",type:U.name,msg:U.message.substr(0,250),line:U.lineNumber,level:H,"client.name":A.name},postParams:{url:_.gD("PAGE_NAME",window.location.href),file:U.fileName},method:"POST"};A.version&&(H["client.version"]=A.version);if(H.postParams){U.stack&&(H.postParams.stack=U.stack);U=_.b(Object.keys(A));for(var M=U.next();!M.done;M=U.next())M=M.value,H.postParams["client."+M]=A[M];if(A=_.gD("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(U=
_.b(Object.keys(A)),M=U.next();!M.done;M=U.next())M=M.value,H.postParams[M]=A[M];(A=_.gD("LAVA_VERSION"))&&(H.postParams["lava.version"]=A);A=_.gD("SERVER_NAME");U=_.gD("SERVER_VERSION");A&&U&&(H.postParams["server.name"]=A,H.postParams["server.version"]=U)}_.VW(_.gD("ECATCHER_REPORT_HOST","")+"/error_204",H)};
_.oCc=function(H,U){U=U===void 0?"ERROR":U;var A=A===void 0?{}:A;var M=_.tr("ytbin.polymer.shared.lib.tampering.info");M&&(M=M())&&(A["params.tamperingInfo"]=M.sort().join(","));_.sD(H,U,void 0,void 0,!0,A)};
_.SD=function(H){var U=_.QY.apply(1,arguments);H.args||(H.args=[]);Array.isArray(H.args)&&H.args.push.apply(H.args,_.vI(U))};
FLN=function(H){H.level="IGNORED"};
PA4=function(H,U){Xqc.push(H);U();Xqc.pop()};
R1=function(H,U){for(var A in U)U.hasOwnProperty(A)&&(H=_.Ik(H,A,U[A]));return H};
_.sRN=function(H,U,A){A=A===void 0?!1:A;if(!H)return null;if(H.adInfoDialogEndpoint||H.backstageImageUploadEndpoint||H.confirmDialogEndpoint||H.clientActionEndpoint||H.createBackstagePostDialogEndpoint||H.createCommentReplyDialogEndpoint||H.flowEndpoint||H.guideBuilderEndpoint||H.liveChatDialogEndpoint||H.modalEndpoint||H.openPopupAction||H.shareEndpoint||H.shareEntityEndpoint||H.showLiveChatItemEndpoint||H.subscriptionManagerEndpoint||H.unlimitedCreateFamilyEndpoint||H.unlimitedFamilyFlowEndpoint||
H.updateCommentDialogEndpoint||H.updateCommentReplyDialogEndpoint||H.userFeedbackEndpoint||H.videoEditorEndpoint||H.ypcCancelSurveyEndpoint)return U=_.hr("polymer_report_client_url_requested_rate"),!A&&Math.random()<U&&_.Na(new _.bD("urlForEndpoint used on client endpoint",H)),null;var M=_.hr("polymer_report_missing_web_navigation_endpoint_rate");if(H.liveChatEndpoint||H.liveChatReplayEndpoint)M=0;if(!H.commandMetadata&&!H.clickTrackingParams&&Math.random()<M){var W={},w;for(w in H)W[w]="1";_.Na(new _.bD("Missing navigation data",
W))}W="";if(H.commandMetadata&&H.commandMetadata.webCommandMetadata&&H.commandMetadata.webCommandMetadata.url)W=H.commandMetadata.webCommandMetadata.url;else if(H.searchEndpoint)Math.random()<M&&_.Na(new _.bD("Should not manually handle search",H)),W="/results?search_query="+encodeURIComponent(H.searchEndpoint.query).replace(/%20/g,"+"),H.searchEndpoint.params&&(W+="&sp="+H.searchEndpoint.params);else if(H.watchEndpoint)Math.random()<M&&_.Na(new _.bD("Should not manually handle watch",H)),W="/watch?v="+
H.watchEndpoint.videoId,H.watchEndpoint.playlistId&&(W+="&list="+H.watchEndpoint.playlistId),H.watchEndpoint.index&&(W+="&index="+H.watchEndpoint.index),H.watchEndpoint.startTimeSeconds&&(W+="&t="+H.watchEndpoint.startTimeSeconds);else if(H.browseEndpoint)M=H.browseEndpoint.browseId,(w=H.browseEndpoint.canonicalBaseUrl)?W=w:M&&(W=M.substr(0,2),W=W==="FE"?M==="FEwhat_to_watch"?"/":M==="FEmy_videos"?"/my_videos":"/feed/"+M.substr(2):W==="VL"?"/playlist?list="+M.substr(2):"/channel/"+M),W&&H.browseEndpoint.query&&
(W=R1(W+"/search",{query:H.browseEndpoint.query})),W&&H.browseEndpoint.params&&(W=R1(W,{params:H.browseEndpoint.params}));else{if(H.urlEndpoint)return H.urlEndpoint.url;H.signInEndpoint?(W="https://accounts.google.com/ServiceLogin",M={},_.dG.extend(M,U||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),U=M):H.uploadEndpoint?W="//www.youtube.com/upload":H.liveChatEndpoint?(W=H.liveChatEndpoint,M=_.dG.clone(W),_.ht(W.continuation)&&(w=Object.keys(W.continuation)[0],
M.continuation=W.continuation[w].continuation),W=R1("/youtubei/v1/live_chat/get_live_chat",M)):H.liveChatReplayEndpoint?(W=_.dG.clone(H.liveChatReplayEndpoint),W.currentPlayerState&&(_.dG.extend(W,W.currentPlayerState),delete W.currentPlayerState),W=R1("/youtubei/v1/live_chat/get_live_chat_replay",W)):H.liveChatItemContextMenuEndpoint?W=R1("/youtubei/v1/live_chat/get_item_context_menu",H.liveChatItemContextMenuEndpoint):H.liveChatPurchaseMessageEndpoint?W=R1("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
H.liveChatPurchaseMessageEndpoint):H.openSuperStickerBuyFlowCommand?W=R1("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",H.openSuperStickerBuyFlowCommand):H.videoEditEndpoint?W=R1("/edit",{video_id:H.videoEditEndpoint.videoId}):H.liveDashboardEndpoint?W=H.liveDashboardEndpoint.videoId?R1("/live_dashboard",{v:H.liveDashboardEndpoint.videoId}):"/live_dashboard":H.signalNavigationEndpoint&&H.signalNavigationEndpoint.signal&&H.signalNavigationEndpoint.signal==="WEBCAM"?W="/webcam":H.getPdgBuyFlowCommand&&
(W=R1(H.getPdgBuyFlowCommand.buyflowApiPath,{params:H.getPdgBuyFlowCommand.params}))}return W||A?R1(W,U||{}):(_.Na(new _.bD("Error: Can't construct url for endpoint","keys:"+Object.keys(H).sort().join(","),H)),null)};
nCM=function(H){if(H){if(H.browseEndpoint)return!!H.browseEndpoint.nofollow;if(H.watchEndpoint)return!!H.watchEndpoint.nofollow;if(H.urlEndpoint)return!!H.urlEndpoint.nofollow}return!1};
_.SyK=function(H,U){var A=U+H,M=N7V.get(A);if(M)return M;H=U+"-"+H.replace(/([A-Z])/g,"-$1").toLowerCase();N7V.set(A,H);return H};
pqh=function(H){var U=_.Rh(H,"action")||_.Rh(H,"command")||_.Rh(H,"endpoint");if(!U)return null;U=_.SyK(U,"yt");_.p(H,_.ED)&&(U+="-"+_.p(H,_.ED).signal.toLowerCase().replace(/_/g,"-"));return U};
mGF=function(H){try{var U=Object.keys(H)}catch(W){return[]}for(var A=0;A<U.length;A++){var M=U[A];if(LLc.test(M)||ROc.test(M))return EC7(H[M])}return[]};
EC7=function(H){return H.command?[H.command]:H.onExecutionAction?[H.onExecutionAction]:H.onResponseReceivedCommand?[H.onResponseReceivedCommand]:H.updateFlowCommand?[H.updateFlowCommand]:H.clientActions?H.clientActions:H.action?[H.action]:H.actions||H.commands||H.onResponseReceivedActions||H.onResponseReceivedCommands||H.onResponseReceivedEndpoints||[]};
afh=function(H,U){U=U===void 0?!1:U;var A=_.lx().resolve(_.$V(mU));A||(A=new gCt,_.lx().addProvider({provide:mU,useValue:A}));return A&&H&&!_.dG.isEmpty(H)?A.getUrl(H,U):""};
xG0=function(H,U,A){A=A===void 0?"":A;if(U){H.data=U;var M=afh(U);M?(HI(H,M),nCM(U)||!DM(M)?H.rel="nofollow":H.removeAttribute("rel"),_.p(U,_.gu)&&_.p(U,_.gu).target==="TARGET_NEW_WINDOW"?H.target="_blank":A?H.target=A:H.removeAttribute("target")):(H.removeAttribute("href"),H.removeAttribute("rel"),H.removeAttribute("target"))}};
_.C5=function(H,U){var A=qg;if(Pe())zOM(H,function(){var w=_.QY.apply(0,arguments);xp(A,function(){U.apply(null,_.vI(w))})});
else{var M=_.a1.getInstance(),W=HE0(U);j2F(function(){W.value=U});
_.LA(function(){var w={},d=_.xX(M,(w[H]=function(){var O=_.QY.apply(0,arguments);xp(A,function(){W.value.apply(W,_.vI(O))})},w));
return function(){var O={};_.z9(M,(O[H]="",O),d)}})}};
CA8=function(H){var U=qg,A=on;return{getFn:function(){return function(M){if(!U.isDisposed){var W=function(){return H(M)};
nd(function(){return _.X$(W)},A)!==!0&&M.stopPropagation()}}}}};
t5r=function(H){if(typeof H.children==="function")return H.children(),null;H=_.b(H.children);for(var U=H.next();!U.done;U=H.next())U=U.value,U();return null};
cFF=function(H){var U;return((U=H.prototype)==null?void 0:U.render)===void 0};
yFF=function(H){var U=Array.isArray(H.items)?H.items:Array.from(H.items);H=H.children;return(Array.isArray(U)?U:Array.from(U)).map(H)};
rFh=function(H,U,A){A=A===void 0?!1:A;nd(function(){return B78(H,U,A)})};
B78=function(H,U,A){var M=null;SM++;A=(A===void 0?0:A)?eOK:DGV;try{M=A(H,function(){t9(U)}),Ld(!1)}catch(W){throw Ld(!0),W;
}return M===null?H:M};
t9=function(H){if(H!==void 0&&H!==null)if(H instanceof XQ)for(var U=ce;Be()!=null&&o20 in Be()&&U.contains(Be());)Dj();else if(Array.isArray(H))for(U=_.b(H),H=U.next();!H.done;H=U.next())t9(H.value);else if(H instanceof By||H instanceof PI||"function"==typeof _.qf&&H instanceof _.qf)o87(H.toString());else if(jM(H)){if(Be()!==H){var A,M;U=(M=(A=on)==null?void 0:A.name)!=null?M:"unknown";throw Error("jc`"+H.tagName+"`"+U);}Dj()}else if(H!=null&&H.contentKind===Vq||H instanceof Ur||zWc(H))for(U=tUE(H),
U=Array.from(U.childNodes),U=_.b(U),H=U.next();!H.done;H=U.next())ce.appendChild(H.value),Dj();else if(qS(H)&&(H=H.toString()),A=typeof H,A==="boolean"||A==="number"||A==="string")o87(H);else if(typeof H==="function"){U=ce;var W=Be();W&&(W._isSignalTextNode||W._isSafeOrSanitizedHtmlNode)||i1t(U,W,H);Dj()}else if(H.type===yFF)t9(H.type(Object.assign({},H.props,{children:H.children[0]})));else{if(typeof H.type==="string"){a:{H.__open||Ov0(H.type,H.props.idomKey);W=ce;for(var w in H.props)if(H.props[w]!==
$Gc){var d=H.props[w];A=lB;A.push(w);A.push(d)}w=jv.attributes;w=w===void 0?c1:w;d=ce;M=Wz8(d);A=w;w=lB;M=M._attrsArr||(M._attrsArr=j$7(w.length));for(var O=!M.length||!1,f=0;f<w.length;f+=2){var J=w[f];if(O)M[f]=J;else if(M[f]!==J)break;var F=w[f+1];if(O||M[f+1]!==F)M[f+1]=F,Kz_(d,J,F,A)}if(f<w.length||f<M.length){for(f=O=f;f<M.length;f+=2)yZ[M[f]]=M[f+1];for(f=O;f<w.length;f+=2)O=w[f],J=w[f+1],yZ[O]!==J&&Kz_(d,O,J,A),M[f]=O,M[f+1]=J,delete yZ[O];TVE(M,w.length);for(U in yZ)Kz_(d,U,void 0,A),delete yZ[U]}U=
lfc;lfc=d=Yp.length;for(A=U;A<d;A+=5)(0,Yp[A])(Yp[A+1],Yp[A+2],Yp[A+3],Yp[A+4]);lfc=U;TVE(Yp,U);TVE(w,0);XgE(W,H.props,!0);if((H.props.skip||H.props.skipchildren)&&ce.hasChildNodes())eM=ce.lastChild;else{if(H.type==="style"&&l20(H.children)===null){eM=ce.lastChild;U=void 0;break a}t9(H.children)}ug4();H.__open&&(H.__open=!1);Lzr(W,H.props);U=W}return U}if(H.type===_.ve)t9(H.children);else if(!GnM(H)){U=H;try{Yyr(U)}catch(P){H=P,(d=jv.handleError)==null||d.call.apply(d,[jv].concat(_.vI(zi(H,(W=U.type)==
null?void 0:W.TAG_NAME))))}U.__open&&(ug4(),U.__open=!1)}}};
qy0=function(H,U){var A;cFF(H)?A=new fA(U,H):A=new H(U);A.__type=H;A.__updateContext={nextState:A.state,isForced:!1};return A};
Yyr=function(H){var U=H.type,A=U.TAG_NAME;if(U===t5r)H.props.children=H.children,U(H.props);else{H.children.length>0&&(H.props.children=H.children);var M;(M=H.props).idomKey||(M.idomKey=U);if(A){var W=Ov0(A,H.props.idomKey);H.__open=!0;var w=W.__instance}w||(w=qy0(U,H.props),w.props=null,W&&(W.__instance=w,w.el=W));var d;A=((d=w.__updateContext)!=null?d:{nextState:w.state,isForced:!1}).nextState;w.__updateContext=void 0;U.getDerivedStateFromProps&&(A=U.getDerivedStateFromProps(H.props,A));w.props=
H.props;w.state=A;d=function(){var O=w;ux.beforeRender(O);var f=O.render(O.props);f?(O.props.idomKey&&(f.props.idomKey=O.props.idomKey),O=f):O=void 0;if(f=O)if(f.__open=H.__open,O=t9(f),H.__open=f.__open,!U.TAG_NAME)if(O)U.TAG_NAME=O.tagName.toLowerCase(),O.__instance=w,w.el=O;else{var J;if((J=w.hooks)==null?0:J.length){var F;(F=jv.handleError)==null||F.call.apply(F,[jv].concat(_.vI(zi(Error("qd")))))}}w.didPatch();ux.didPatch(w)};
(A=w.functionComponent)?MXV(A,d,w.props.debugInstance):d()}};
GnM=function(H){var U=H.type;if(!cFF(U)||U===t5r||U.componentType===F$)return!1;H.props.children=H.children.length>1?H.children:H.children[0];var A,M=(A=H.props.idomKey)!=null?A:H.type,W;if(Be()&&((W=Be()[MU])==null?void 0:W.key)===M){var w=Be(),d=w[MU];if(!d)throw Error("ic`"+w.tagName);var O;(O=d.updateSignalsFromIdomProps)==null||O.call(d,H.props);hOh(d);return!0}if(knK.has(U.name))throw O=U.name,U=(d=(w=on)==null?void 0:w.name)!=null?d:"unknown",Error("hc`"+O+"`"+U);H.props.renderedFromIdom=!0;
(O=MXV(H.type,function(){return UZ_(H.type,H.props)},H.props.debugInstance))&&vCV(O);
return!0};
T78=function(H){for(var U=0;U<wD(H).length;U++)Dj()};
hOh=function(H){var U=jRF();if(U)T78(U);else for(var A=0;A<H.numNodes;A++)(U=jRF())?T78(U):Dj()};
jRF=function(){var H;return(H=Be()[MU])==null?void 0:H.sourceDynamicRange};
vCV=function(H){H=mjh(H);H=Array.isArray(H)?H:[H];H=_.b(H);for(var U=H.next();!U.done;U=H.next())ce.insertBefore(U.value,Be()),Dj()};
IfN=function(){var H=MbN(),U=yP0(function(){return{value:0}},[]);
return[U.value,function(A){if(ZM!==null){var M;(M=jv.handleError)==null||M.call.apply(M,[jv].concat(_.vI(zi(Error("rd")))))}U.value=typeof A==="function"?A(U.value):A;H.__updateContext={nextState:H.state,isForced:!0};A=h8(H.effectContext);M=Ti(!1);try{if(H.el){var W,w={},d=(w.props=H.props,w.type=H.__type,w.children=(W=H.props.children)!=null?W:[],w[kp]=!0,w);try{rFh(H.el,d,!0)}catch(J){var O,f;(f=jv.handleError)==null||f.call.apply(f,[jv].concat(_.vI(zi(J,(O=H.__type)==null?void 0:O.TAG_NAME))))}}}finally{Ti(M),
h8(A)}}]};
_.B1=function(H,U){var A=qg,M=function(W){xp(A,function(){U(W)})};
window.addEventListener(H,M,void 0);_.m4(function(){window.removeEventListener(H,M,void 0)})};
_.eD=function(H){var U=qg;return function(A){var M,W=(M=H.observer)!=null?M:_.lx().resolve(ru);M=QR4(A);var w=[];H.showOption&&w.push(W.observe(A,function(){xp(U,function(){H.visibilityCallback(!0,A)})},H.showOption));
H.hideOption&&w.push(W.observe(A,function(){xp(U,function(){H.visibilityCallback(!1,A)})},H.hideOption));
H.prescanOption&&H.prescanCallback&&w.push(W.observe(A,function(){xp(U,function(){H.prescanCallback()})},H.prescanOption));
var d;M.visibilityMonitorKeys=((d=M.visibilityMonitorKeys)!=null?d:[]).concat(w)}};
QR4=function(H){var U;return(U=H.polymerController)!=null?U:H};
AN_=function(H,U){var A=V5E;return _.Z(_.ve,null,oBK(jv.enableLazyTsx,function(){return _.Z(HY7,{id:A,value:H,children:U})},function(){var M=UTM(A,H);
Tr(M);M=h8(M);try{return U()}finally{h8(M)}}))};
HY7=function(H){var U=H.children;H=UTM(H.id,H.value);Tr(H);H=h8(H);try{return _.Z(_.ve,null,dD(U()))}finally{h8(H)}};
UTM=function(H,U){return Object.assign(Object.create(MVE),{id:H,contextValue:U})};
WuF=function(H){var U,A=qg;_.Rn(function(){var M=h8(A),W=Ti(!U);try{if(U)rFh(U,H.children(),!0);else if(U=dD(H.children()),!(U instanceof Element))throw Error("sd");}finally{Ti(W),h8(M)}},"i");
return U};
XlM=function(H){var U=new wl4;U.abort(H);return U.signal};
iYF=function(){if(this.aborted){var H;throw(H=this.reason)!=null?H:new DOMException("signal is aborted without reason","AbortError");}};
OY0=function(H){var U=new wl4;H=_.b(H);for(var A=H.next();!A.done;A=H.next())if(A=A.value,A.aborted){U.abort(A.reason);break}else bYK.set(U.signal,U),dT7.add(A,U.signal);return U.signal};
ukE=function(){for(var H=_.b(dT7.get(this)),U=H.next();!U.done;U=H.next())bYK.get(U.value).abort(this.reason)};
ZY_=function(H){var U=new wl4;setTimeout(function(){U.abort(new DOMException("signal timed out","TimeoutError"))},H);
return U.signal};
f9t=function(){var H,U;return{promise:new Promise(function(A,M){H=A;U=M}),
resolve:H,reject:U}};
Ku0=function(H){var U=f9t(),A=U.promise;JN7.set(H,{promise:A,resolve:U.resolve,reject:U.reject});Dz||(Dz=[],queueMicrotask(function(){var M=[].concat(_.vI(Dz));Dz=null;var W=Ng().loadMultiple(M);M=_.b(M);for(var w=M.next();!w.done;w=M.next())w=w.value,W[w].then(JN7.get(w).resolve,JN7.get(w).reject)}));
Dz.push(H);return A};
ojM=function(){_.XG.call(this)};
Fu4=function(H,U){this.fn_=H;this.handler_=U};
$X=function(H,U){_.XG.call(this);this.deps_=H;this.JSC$11351_id_=U;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
siK=function(H){H=H.buf.charCodeAt(H.pos++);return PXM[H]};
lM=function(H){var U=0,A=0;do{var M=siK(H);U|=(M&31)<<A;A+=5}while(M&32);return U<0?U+4294967296:U};
njc=function(H,U,A,M){var W=!0;W=W===void 0?!1:W;U=U===void 0?!1:U;M=M===void 0?{}:M;var w=M.cssRowKey||"",d=M.combinedSignature||"";!w&&window&&window._F_cssRowKey&&(w=window._F_cssRowKey,!d&&window._F_combinedSignature&&(d=window._F_combinedSignature));if(w&&typeof window._F_installCss!=="function")throw Error("Cd");var O=M.loaderClass||_.G9;H=erc(H===void 0?"base-js":H);U=new O(y$0($s_("",H)),w,d,W,U);W=M.useCors||H&&H.hasAttribute("crossorigin");H=M.corsMode||H&&H.getAttribute("crossorigin");
W&&(U.useCors_=W);H&&(U.corsMode_=H);M.urlMaxLength&&(U.urlMaxLength=M.urlMaxLength);A&&(U.insertPos=A);M.fetchPriority&&(U.fetchPriority=M.fetchPriority);var f=Ng();f.JSC$10357_loader_=U;f.setBatchModeEnabled(!0);_.YX=M.batchingStrategy==="BATCH"?Ku0:function(J){return Promise.resolve(f.load(J))}};
plr=function(H,U,A){NzK(H,U);H[U][Sa4].unshift(A)};
NzK=function(H,U){if(!H[U]||!H[U][Sa4]){var A=H[U],M=A?[A]:[];H[U]=function(){for(var W=_.b(M),w=W.next();!w.done;w=W.next())w.value.apply(this,arguments)};
H[U][Sa4]=M}};
Luc=function(H){if(!H)return[];var U=[];H=_.b(H);for(var A=H.next();!A.done;A=H.next())A=A.value,Array.isArray(A)?U.push.apply(U,_.vI(Luc(A))):U.push(A);return U};
_.h9=function(H,U){if(H&&Rlt.test(H)||H==="//")return H;if(EjF===void 0){EjF=!1;try{var A=new URL("b","http://a");A.pathname="c%20d";EjF=A.href==="http://a/c%20d"}catch(M){}}U||(U=document.baseURI||window.location.href);if(EjF)try{return(new URL(H,U)).href}catch(M){return H}qa||(qa=document.implementation.createHTMLDocument("temp"),qa.base=qa.createElement("base"),qa.head.appendChild(qa.base),qa.anchor=qa.createElement("a"),qa.body.appendChild(qa.anchor));qa.base.href=U;qa.anchor.href=H;return qa.anchor.href||
H};
gjc=function(H,U){return H.replace(mT_,function(A,M,W,w){return M+"'"+_.h9(W.replace(/["']/g,""),U)+"'"+w})};
a9K=function(H){return H.substring(0,H.lastIndexOf("/")+1)};
CXE=function(){xTK=!1;for(var H=kX.length,U=0;U<H;U++){var A=kX[U];if(A)try{A()}catch(M){setTimeout(function(){throw M;})}}kX.splice(0,H);
zlK+=H};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(H){console.log("["+H.is+"]: registered")};
cN8=function(H){tV4.push(H)};
v1=function(H){return yNN[H]||(yNN[H]=H.indexOf("-")<0?H:H.replace(Bzt,function(U){return U[1].toUpperCase()}))};
T9=function(H){return yNN[H]||(yNN[H]=H.replace(rN7,"-$1").toLowerCase())};
el0=function(H,U){var A=U.parentInfo&&el0(H,U.parentInfo);if(A)for(H=A.firstChild,A=0;H;H=H.nextSibling){if(U.parentIndex===A++)return H}else return H};
DTc=function(H,U){H=H._methodHost||H;return function(A){if(H[U])H[U](A,A.detail);else console.warn("listener method `"+U+"` not defined")}};
jD=function(H){return H.indexOf(".")>=0};
I1=function(H){var U=H.indexOf(".");return U===-1?H:H.slice(0,U)};
$T8=function(H,U){return H.indexOf(U+".")===0};
QZ=function(H,U){return U.indexOf(H+".")===0};
VZ=function(H,U,A){return U+A.slice(H.length)};
l9r=function(H,U){return H===U||$T8(H,U)||QZ(H,U)};
Ha=function(H){if(Array.isArray(H)){for(var U=[],A=0;A<H.length;A++)for(var M=H[A].toString().split("."),W=0;W<M.length;W++)U.push(M[W]);return U.join(".")}return H};
GsN=function(H){return Array.isArray(H)?Ha(H).split("."):H.toString().split(".")};
MC=function(H,U,A){U=GsN(U);for(var M=0;M<U.length;M++){if(!H)return;H=H[U[M]]}A&&(A.path=U.join("."));return H};
YaN=function(H,U,A){var M=GsN(U),W=M[M.length-1];if(M.length>1){for(U=0;U<M.length-1;U++)if(H=H[M[U]],!H)return;H[W]=A}else H[U]=A;return M.join(".")};
qaN=function(H,U,A){var M=H[U];if(!M)M=H[U]={};else if(!H.hasOwnProperty(U)&&(M=H[U]=Object.create(H[U]),A))for(var W in M)for(H=M[W],U=M[W]=Array(H.length),A=0;A<H.length;A++)U[A]=H[A];return M};
wV=function(H,U,A,M,W,w){if(U){var d=!1,O=Wa++,f;for(f in A){var J=W?I1(f):f;if(J=U[J])for(var F=0,P=J.length,n=void 0;F<P&&(n=J[F]);F++)n.info&&n.info.lastRun===O||W&&!hlt(f,n.trigger)||(n.info&&(n.info.lastRun=O),n.fn(H,f,A,M,n.info,W,w),d=!0)}return d}return!1};
hlt=function(H,U){if(U){var A=U.name;return A==H||!(!U.structured||!$T8(A,H))||!(!U.wildcard||!QZ(A,H))}return!0};
ksr=function(H,U,A,M,W){U=typeof W.method==="string"?H[W.method]:W.method;A=W.property;U?U.call(H,H.__data[A],M[A]):W.dynamicFn||console.warn("observer method `"+W.method+"` not defined")};
vjM=function(H,U,A,M){A={value:A,queueProperty:!0};M&&(A.path=M);(0,_.X7)(H).dispatchEvent(new CustomEvent(U,{detail:A}))};
TzK=function(H,U,A,M,W,w){w=(M=(w?I1(U):U)!=U?U:null)?MC(H,M):H.__data[U];M&&w===void 0&&(w=A[U]);vjM(H,W.eventName,w,M)};
jiN=function(H,U,A,M,W){A=H.__data[U];iu&&(A=iu(A,W.attrName,"attribute",H));H._propertyToAttribute(U,W.attrName,A)};
Qic=function(H){var U=H.constructor.__orderedComputedDeps;if(!U){U=new Map;for(var A=H.__computeEffects,M=I9c(H),W=M.counts,w=M.ready,d=M.total;M=w.shift();)U.set(M,U.size),(M=A[M])&&M.forEach(function(O){O=O.info.methodInfo;--d;--W[O]===0&&w.push(O)});
d!==0&&console.warn("Computed graph for "+H.localName+" incomplete; circular?");H.constructor.__orderedComputedDeps=U}return U};
I9c=function(H){var U=H.__computeInfo,A={};H=H.__computeEffects;var M=[],W=0,w;for(w in U){var d=U[w];W+=A[w]=d.args.filter(function(f){return!f.literal}).length+(d.dynamicFn?1:0)}for(var O in H)U[O]||M.push(O);
return{counts:A,ready:M,total:W}};
HxK=function(H,U,A,M,W){U=VVE(H,U,A,M,W);if(U===bu)return!1;W=W.methodInfo;if(H.__dataHasAccessor&&H.__dataHasAccessor[W])return H._setPendingProperty(W,U,!0);H[W]=U;return!1};
Md0=function(H,U,A,M,W,w,d){A.bindings=A.bindings||[];M={kind:M,target:W,parts:w,literal:d,isCompound:w.length!==1};A.bindings.push(M);M.target&&M.kind!="attribute"&&M.kind!="text"&&!M.isCompound&&M.parts[0].mode==="{"&&(A=M.parts[0],w=A.negate,M.listenerEvent=A.event||T9(W)+"-changed",M.listenerNegate=w);W=U.nodeInfoList.length;for(A=0;A<M.parts.length;A++){var O=M.parts[A];O.compoundIndex=A;w=H;d=U;var f=M,J=O,F=W;if(!J.literal)if(f.kind==="attribute"&&f.target[0]==="-")console.warn("Cannot set attribute "+
f.target+' because "-" is not a valid attribute starting character');else for(O=J.dependencies,f={index:F,binding:f,part:J,evaluator:w},J=0;J<O.length;J++)F=O[J],typeof F=="string"&&(F=UPF(F),F.wildcard=!0),w._addTemplatePropertyEffect(d,F.rootProperty,{fn:AI4,info:f,trigger:F})}};
AI4=function(H,U,A,M,W,w,d){d=d[W.index];var O=W.binding,f=W.part;w&&f.source&&U.length>f.source.length&&O.kind=="property"&&!O.isCompound&&d.__isPropertyEffectsClient&&d.__dataHasAccessor&&d.__dataHasAccessor[O.target]?(A=A[U],U=VZ(f.source,O.target,U),d._setPendingPropertyOrPath(U,A,!1,!0)&&H._enqueueClient(d)):(U=W.evaluator._evaluateBinding(H,f,U,A,M,w),U!==bu&&(O.isCompound&&(A=d.__dataCompoundStorage[O.target],A[f.compoundIndex]=U,U=A.join("")),O.kind==="attribute"||O.target!=="textContent"&&
(O.target!=="value"||d.localName!=="input"&&d.localName!=="textarea")||(U=U==void 0?"":U),f=U,iu&&(f=iu(f,O.target,O.kind,d)),O.kind=="attribute"?H._valueToNodeAttribute(d,f,O.target):(O=O.target,d.__isPropertyEffectsClient&&d.__dataHasAccessor&&d.__dataHasAccessor[O]?d.__readOnly&&d.__readOnly[O]||d._setPendingProperty(O,f)&&H._enqueueClient(d):H._setUnmanagedPropertyToNode(d,O,f))))};
WcK=function(H,U,A){if(A.listenerEvent){var M=A.parts[0];H.addEventListener(A.listenerEvent,function(W){var w=A.target,d=M.source,O=M.negate,f=W.detail,J=f&&f.path;J?(d=VZ(w,d,J),W=f&&f.value):W=W.currentTarget[w];U.__readOnly&&U.__readOnly[d]||!U._setPendingPropertyOrPath(d,O?!W:W,!0,!!J)||f&&f.queueProperty||U._invalidateProperties()})}};
wu7=function(H,U,A,M,W,w){w=U.static||w&&(typeof w!=="object"||w[U.methodName]);W={methodName:U.methodName,args:U.args,methodInfo:W,dynamicFn:w};for(var d=0,O=void 0;d<U.args.length&&(O=U.args[d]);d++)O.literal||H._addPropertyEffect(O.rootProperty,A,{fn:M,info:W,trigger:O});w&&H._addPropertyEffect(U.methodName,A,{fn:M,info:W});return W};
VVE=function(H,U,A,M,W){M=H._methodHost||H;var w=M[W.methodName];if(w)return H=H._marshalArgs(W.args,U,A),H===bu?bu:w.apply(M,H);W.dynamicFn||console.warn("method `"+W.methodName+"` not defined")};
Xu0=function(H){for(var U="",A=0;A<H.length;A++)U+=H[A].literal||"";return U};
dP7=function(H){if(H=H.match(/([^\s]+?)\(([\s\S]*)\)/)){var U={methodName:H[1],static:!0,args:ixK};return H[2].trim()?bxV(H[2].replace(/\\,/g,"&comma;").split(","),U):U}return null};
bxV=function(H,U){U.args=H.map(function(A){A=UPF(A);A.literal||(U.static=!1);return A},this);
return U};
UPF=function(H){H=H.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var U={name:H,value:"",literal:!1},A=H[0];A==="-"&&(A=H[1]);A>="0"&&A<="9"&&(A="#");switch(A){case "'":case '"':U.value=H.slice(1,-1);U.literal=!0;break;case "#":U.value=Number(H),U.literal=!0}U.literal||(U.rootProperty=I1(H),U.structured=jD(H),U.structured&&(U.wildcard=H.slice(-2)==".*",U.wildcard&&(U.name=H.slice(0,-2))));return U};
Ox8=function(H,U,A){H=MC(H,A);H===void 0&&(H=U[A]);return H};
uY7=function(H,U,A,M){M={indexSplices:M};dV&&!H._overrideLegacyUndefined&&(U.splices=M);H.notifyPath(A+".splices",M);H.notifyPath(A+".length",U.length);dV&&!H._overrideLegacyUndefined&&(M.indexSplices=[])};
Oo=function(H,U,A,M,W,w){uY7(H,U,A,[{index:M,addedCount:W,removed:w,object:U,type:"splice"}])};
Zx0=function(H){H=gjc((H.body?H.body:H).textContent,H.baseURI);var U=document.createElement("style");U.textContent=H;return U};
JI8=function(H){H=H.trim().split(/\s+/);for(var U=[],A=0;A<H.length;A++)U.push.apply(U,_.vI(fBN(H[A])));return U};
fBN=function(H){var U=uu.import(H);if(!U)return console.warn("Could not find style data in module named",H),[];if(U._styles===void 0){H=[];H.push.apply(H,_.vI(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(U)));var A=U.querySelector("template");A&&H.push.apply(H,_.vI(KcE(A,U.assetpath)));U._styles=H}return U._styles};
KcE=function(H,U){if(!H._styles){for(var A=[],M=H.content.querySelectorAll("style"),W=0;W<M.length;W++){var w=M[W],d=w.getAttribute("include");d&&A.push.apply(A,_.vI(JI8(d).filter(function(O,f,J){return J.indexOf(O)===f})));
U&&(w.textContent=gjc(w.textContent,U));A.push(w)}H._styles=A}return H._styles};
o4V=function(H){return(H=uu.import(H))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(H):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(H){var U=[];H=H.querySelectorAll("link[rel=import][type~=css]");for(var A=0;A<H.length;A++){var M=H[A];if(M.import){var W=M.import;if((M=M.hasAttribute("shady-unscoped"))&&!W._unscopedStyle){var w=Zx0(W);w.setAttribute("shady-unscoped","");W._unscopedStyle=w}else W._style||(W._style=Zx0(W));U.push(M?W._unscopedStyle:W._style)}}return U};
P$_=function(H){H=H.trim().split(/\s+/);for(var U="",A=0;A<H.length;A++)U+=Fc8(H[A]);return U};
Fc8=function(H){var U=uu.import(H);if(U&&U._cssText===void 0){var A=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(U),M=U.querySelector("template");M&&(A+=sHE(M,U.assetpath));U._cssText=A||null}U||console.warn("Could not find style data in module named",H);return U&&U._cssText||""};
sHE=function(H,U){var A="";H=KcE(H,U);for(U=0;U<H.length;U++){var M=H[U];M.parentNode&&M.parentNode.removeChild(M);A+=M.textContent}return A};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(H){var U="";H=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(H);for(var A=0;A<H.length;A++)U+=H[A].textContent;return U};
Z5=function(H,U){return{index:H,removed:[],addedCount:U}};
Njh=function(H,U,A,M){var W=0,w=0,d=0,O=0,f=Math.min(U-W,M-w);if(W==0&&w==0)a:{for(d=0;d<f;d++)if(H[d]!==A[d])break a;d=f}if(U==H.length&&M==A.length){O=H.length;for(var J=A.length,F=0;F<f-d&&n4h(H[--O],A[--J]);)F++;O=F}W+=d;w+=d;U-=O;M-=O;if(U-W==0&&M-w==0)return[];if(W==U){for(U=Z5(W,0);w<M;)U.removed.push(A[w++]);return[U]}if(w==M)return[Z5(W,U-W)];f=W;d=w;M=M-d+1;O=U-f+1;U=Array(M);for(J=0;J<M;J++)U[J]=Array(O),U[J][0]=J;for(J=0;J<O;J++)U[0][J]=J;for(J=1;J<M;J++)for(F=1;F<O;F++)if(H[f+F-1]===
A[d+J-1])U[J][F]=U[J-1][F-1];else{var P=U[J-1][F]+1,n=U[J][F-1]+1;U[J][F]=P<n?P:n}f=U.length-1;d=U[0].length-1;M=U[f][d];for(H=[];f>0||d>0;)f==0?(H.push(2),d--):d==0?(H.push(3),f--):(O=U[f-1][d-1],J=U[f-1][d],F=U[f][d-1],P=J<F?J<O?J:O:F<O?F:O,P==O?(O==M?H.push(0):(H.push(1),M=O),f--,d--):P==J?(H.push(3),f--,M=J):(H.push(2),d--,M=F));H.reverse();U=void 0;f=[];for(d=0;d<H.length;d++)switch(H[d]){case 0:U&&(f.push(U),U=void 0);W++;w++;break;case 1:U||(U=Z5(W,0));U.addedCount++;W++;U.removed.push(A[w]);
w++;break;case 2:U||(U=Z5(W,0));U.addedCount++;W++;break;case 3:U||(U=Z5(W,0)),U.removed.push(A[w]),w++}U&&f.push(U);return f};
SP4=function(H,U){return Njh(H,H.length,U,U.length)};
n4h=function(H,U){return H===U};
Lch=function(H){if(H instanceof pu0)return H.value;throw Error("Kd`"+H);};
RoV=function(H,U){for(var A in U)A===null?H.style.removeProperty(A):H.style.setProperty(A,U[A])};
E48=function(H,U){return(H=window.getComputedStyle(H).getPropertyValue(U))?H.trim():""};
xPc=function(H){requestAnimationFrame(function(){mPc?mPc(H):(g40||(g40=new Promise(function(U){aBV=U}),document.readyState==="complete"?aBV():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&aBV()})),g40.then(function(){H&&H()}))})};
td0=function(H){zoN=H&&H.shimcssproperties?!1:C$M||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
eoc=function(H){if(!(cI0.indexOf(H)>-1)&&H!=="touchend"&&yIK&&BjN&&rIc)return{passive:!0}};
Go4=function(H){for(var U=DPc?["click"]:cI0,A=0,M;A<U.length;A++)M=U[A],H?($PK.length=0,document.addEventListener(M,lBK,!0)):document.removeEventListener(M,lBK,!0)};
fK=function(H){var U=H.type;return cI0.indexOf(U)>-1?U==="mousemove"?(U=H.buttons===void 0?1:H.buttons,H instanceof window.MouseEvent&&!YP4&&(U=qPr[H.which]||0),!!(U&1)):(H.button===void 0?0:H.button)===0:!1};
ho8=function(H){if(H.type==="click"){if(H.detail===0)return!0;var U=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H);if(!U.nodeType||U.nodeType!==Node.ELEMENT_NODE)return!0;U=U.getBoundingClientRect();var A=H.pageX;H=H.pageY;return!(A>=U.left&&A<=U.right&&H>=U.top&&H<=U.bottom)}return!1};
koK=function(H,U,A){H.movefn=U;H.upfn=A;document.addEventListener("mousemove",U);document.addEventListener("mouseup",A)};
J0=function(H){document.removeEventListener("mousemove",H.movefn);document.removeEventListener("mouseup",H.upfn);H.movefn=null;H.upfn=null};
v47=function(H,U){for(var A=document.elementFromPoint(H,U),M=A;M&&M.shadowRoot&&!window.ShadyDOM;){var W=M;M=M.shadowRoot.elementFromPoint(H,U);if(W===M)break;M&&(A=M)}return A};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(H){var U=Tj_(H);return U.length>0?U[0]:H.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(H){var U=H.type,A=H.currentTarget.__polymerGestures;if(A&&(A=A[U])){if(!H.__polymerGesturesHandled&&(H.__polymerGesturesHandled={},U.slice(0,5)==="touch")){var M=H.changedTouches[0];U==="touchstart"&&H.touches.length===1&&(jHt=M.identifier);if(jHt!==M.identifier)return;yIK||(U==="touchstart"||U==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H)}M=
H.__polymerGesturesHandled;if(!M.skip){for(var W=0,w;W<KK.length;W++)w=KK[W],A[w.name]&&!M[w.name]&&w.flow&&w.flow.start.indexOf(H.type)>-1&&w.reset&&w.reset();for(W=0;W<KK.length;W++)w=KK[W],A[w.name]&&!M[w.name]&&(M[w.name]=!0,w[U](H))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(H){var U=H.changedTouches[0],A=H.type;if(A==="touchstart")IBr=U.clientX,QHE=U.clientY,Vdh=!1;else if(A==="touchmove"&&!Vdh){Vdh=!0;A="auto";for(var M=Tj_(H),W=0,w;W<M.length;W++)if(w=M[W],w.__polymerGesturesTouchAction){A=w.__polymerGesturesTouchAction;break}M=!1;W=Math.abs(IBr-U.clientX);U=Math.abs(QHE-U.clientY);H.cancelable&&(A==="none"?M=!0:A==="pan-x"?M=U>W:A==="pan-y"&&(M=W>U));M?H.preventDefault():
o$("track")}};
Pa=function(H,U,A){return F7[U]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H,U,A),!0):!1};
so=function(H,U,A){return F7[U]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H,U,A),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(H,U,A){var M=F7[U],W=M.deps,w=M.name,d=H.__polymerGestures;d||(H.__polymerGestures=d={});for(var O=0,f,J;O<W.length;O++)f=W[O],DPc&&cI0.indexOf(f)>-1&&f!=="click"||((J=d[f])||(d[f]=J={_count:0}),J._count===0&&H.addEventListener(f,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,eoc(f)),J[w]=(J[w]||0)+1,J._count=(J._count||0)+1);H.addEventListener(U,A);M.touchAction&&_.nK(H,M.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(H,U,A){var M=F7[U],W=M.deps;M=M.name;var w=H.__polymerGestures;if(w)for(var d=0,O,f;d<W.length;d++)O=W[d],(f=w[O])&&f[M]&&(f[M]=(f[M]||1)-1,f._count=(f._count||1)-1,f._count===0&&H.removeEventListener(O,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,eoc(O)));H.removeEventListener(U,A)};
HTF=function(H){KK.push(H);for(var U=0;U<H.emits.length;U++)F7[H.emits[U]]=H};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(H){for(var U=0,A;U<KK.length;U++){A=KK[U];for(var M=0,W;M<A.emits.length;M++)if(W=A.emits[M],W===H)return A}return null};
_.nK=function(H,U){yIK&&H instanceof HTMLElement&&NC.run(function(){H.style.touchAction=U});
H.__polymerGesturesTouchAction=U};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(H,U,A){U=new Event(U,{bubbles:!0,cancelable:!0,composed:!0});U.detail=A;(0,_.X7)(H).dispatchEvent(U);U.defaultPrevented&&(H=A.preventer||A.sourceEvent)&&H.preventDefault&&H.preventDefault()};
o$=function(H){H=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H);H.info&&(H.info.prevent=!0)};
SX=function(H,U,A,M){U&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(U,H,{x:A.clientX,y:A.clientY,sourceEvent:A,preventer:M,prevent:function(W){return o$(W)}})};
UnE=function(H,U,A){if(H.prevent)return!1;if(H.started)return!0;A=Math.abs(H.y-A);return Math.abs(H.x-U)>=5||A>=5};
Ag_=function(H,U,A){if(U){var M=H.moves[H.moves.length-2],W=H.moves[H.moves.length-1],w=W.x-H.x,d=W.y-H.y,O=0;if(M){var f=W.x-M.x;O=W.y-M.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(U,"track",{state:H.state,x:A.clientX,y:A.clientY,dx:w,dy:d,ddx:f,ddy:O,sourceEvent:A,hover:function(){return v47(A.clientX,A.clientY)}})}};
W9F=function(H,U,A){var M=Math.abs(U.clientX-H.x),W=Math.abs(U.clientY-H.y),w=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A||U);!w||Mm_[w.localName]&&w.hasAttribute("disabled")||!(isNaN(M)||isNaN(W)||M<=25&&W<=25||ho8(U))||H.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(w,"tap",{x:U.clientX,y:U.clientY,sourceEvent:U,preventer:A})};
wnc=function(H,U,A,M,W){var w;W&&(w=typeof A==="object"&&A!==null)&&(M=H.__dataTemp[U]);M=M!==A&&(M===M||A===A);w&&M&&(H.__dataTemp[U]=A);return M};
iT7=function(){if(pK&&!LK){if(!Xn_){Xn_=!0;var H=document.createElement("style");H.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(H)}return!0}return!1};
dnV=function(){return bTM};
OT8=function(H,U){bTM=H;Object.setPrototypeOf(H,U.prototype);new U;bTM=null};
uVK=function(H,U){for(var A=0;A<U.length;A++){var M=U[A];if(!!H!=!!M.__hideTemplateChildren__)if(M.nodeType===Node.TEXT_NODE)H?(M.__polymerTextContent__=M.textContent,M.textContent=""):M.textContent=M.__polymerTextContent__;else if(M.localName==="slot")if(H)M.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.X7)((0,_.X7)(M).parentNode).replaceChild(M.__polymerReplaced__,M);else{var W=M.__polymerReplaced__;W&&(0,_.X7)((0,_.X7)(W).parentNode).replaceChild(M,W)}else M.style&&(H?(M.__polymerDisplay__=
M.style.display,M.style.display="none"):M.style.display=M.__polymerDisplay__);M.__hideTemplateChildren__=H;M._showHideChildren&&M._showHideChildren(H)}};
ZTN=function(H){return(H=H.__dataHost)&&H._methodHost||H};
K9K=function(H,U,A){var M=A.mutableData?fXc:R$;Eo.mixin&&(M=Eo.mixin(M));var W=function(){return M.apply(this,arguments)||this};
_.R(W,M);W.prototype.__templatizeOptions=A;W.prototype._bindTemplate(H);JgM(W,H,U,A);return W};
nFV=function(H,U,A,M){var W=A.forwardHostProp;if(W&&U.hasHostProps){var w=H.localName=="template",d=U.templatizeTemplateClass;if(!d){if(w){var O=A.mutableData?oFF:F9N;d=function(){return O.apply(this,arguments)||this};
_.R(d,O);d=U.templatizeTemplateClass=d}else{var f=H.constructor;d=function(){return f.apply(this,arguments)||this};
_.R(d,f);d=U.templatizeTemplateClass=d}var J=U.hostProps,F;for(F in J)d.prototype._addPropertyEffect("_host_"+F,d.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:PoE(W)}),d.prototype._createNotifyingProperty("_host_"+F);a$&&M&&sT8(U,A,M)}H.__dataProto&&Object.assign(H.__data,H.__dataProto);if(w)OT8(H,d),H.__dataTemp={},H.__dataPending=null,H.__dataOld=null,H._enableProperties();else{Object.setPrototypeOf(H,d.prototype);U=U.hostProps;for(var P in U)P="_host_"+P,P in H&&(U=H[P],delete H[P],H.__data[P]=
U)}}};
PoE=function(H){return function(U,A,M){H.call(U.__templatizeOwner,A.substring(6),M[A])}};
JgM=function(H,U,A,M){var W=A.hostProps||{},w;for(w in M.instanceProps){delete W[w];var d=M.notifyInstanceProp;d&&H.prototype._addPropertyEffect(w,H.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:N4E(d)})}if(M.forwardHostProp&&U.__dataHost)for(var O in W)A.hasHostProps||(A.hasHostProps=!0),H.prototype._addPropertyEffect(O,H.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ShN()})};
N4E=function(H){return function(U,A,M){H.call(U.__templatizeOwner,U,A,M[A])}};
ShN=function(){return function(H,U,A){H.__dataHost._setPendingPropertyOrPath("_host_"+U,A[U],!0,!0)}};
Eo=function(H,U,A){if(xA&&!ZTN(H))throw Error("Qd");A=A||{};if(H.__templatizeOwner)throw Error("Rd");H.__templatizeOwner=U;var M=(U?U.constructor:R$)._parseTemplate(H),W=M.templatizeInstanceClass;W||(W=K9K(H,M,A),M.templatizeInstanceClass=W);var w=ZTN(H);nFV(H,M,A,w);A=function(){return W.apply(this,arguments)||this};
_.R(A,W);A.prototype._methodHost=w;A.prototype.__dataHost=H;A.prototype.__templatizeOwner=U;A.prototype.__hostProps=M.hostProps;return A};
sT8=function(H,U,A){A=A.constructor._properties;H=H.propertyEffects;U=U.instanceProps;for(var M in H)if(!(A[M]||U&&U[M]))for(var W=H[M],w=0;w<W.length;w++){var d=W[w].info.part;if(!d.signature||!d.signature.static){console.warn("Property '"+M+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
pn7=function(H,U){for(var A;U;)if(A=U.__dataHost?U:U.__templatizeInstance)if(A.__dataHost!=H)U=A.__dataHost;else return A;else U=(0,_.X7)(U).parentNode;return null};
zS=function(H){return H.localName==="slot"};
L97=function(){for(var H=CK.prototype,U="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),A={},M=0;M<U.length;A={method$jscomp$33:void 0},M++)A.method$jscomp$33=U[M],H[A.method$jscomp$33]=function(W){return function(){return this.node[W.method$jscomp$33].apply(this.node,arguments)}}(A)};
RPt=function(H,U){for(var A={},M=0;M<U.length;A={name$jscomp$450:void 0},M++)A.name$jscomp$450=U[M],Object.defineProperty(H,A.name$jscomp$450,{get:function(W){return function(){return this.node[W.name$jscomp$450]}}(A),
configurable:!0})};
EF8=function(){for(var H=CK.prototype,U=["textContent","innerHTML","className"],A={},M=0;M<U.length;A={name$jscomp$451:void 0},M++)A.name$jscomp$451=U[M],Object.defineProperty(H,A.name$jscomp$451,{get:function(W){return function(){return this.node[W.name$jscomp$451]}}(A),
set:function(W){return function(w){this.node[W.name$jscomp$451]=w}}(A),
configurable:!0})};
mnE=function(){t0=document.documentElement.getAttribute("dir");t0=document.documentElement.getAttribute("dir");for(var H=0;H<ca.length;H++){var U=ca[H];U.__autoDirOptOut||U.setAttribute("dir",t0)}};
zPN=function(){yB=!0;requestAnimationFrame(function(){yB=!1;gFc(aX_);setTimeout(function(){for(var H=0,U=Ba.length;H<U;H++)xn0(Ba.shift())})})};
gFc=function(H){for(;H.length;)xn0(H.shift())};
xn0=function(H){var U=H[0],A=H[1];H=H[2];try{A.apply(U,H)}catch(M){setTimeout(function(){throw M;})}};
_.Cot=function(H,U,A){yB||zPN();aX_.push([H,U,A])};
_.rV=function(H,U,A){yB||zPN();Ba.push([H,U,A])};
ygM=function(H,U){U=U===void 0?!1:U;if(!tm4||!cgE||!tm4.handlesDynamicScoping)return null;var A=cgE.ScopingShim;if(!A)return null;var M=A.scopeForNode(H),W=(0,_.X7)(H).getRootNode(),w=function(d){if((0,_.X7)(d).getRootNode()===W){var O=Array.from(tm4.nativeMethods.querySelectorAll.call(d,"*"));O.push(d);for(d=0;d<O.length;d++){var f=O[d];if((0,_.X7)(f).getRootNode()===W){var J=A.currentScopeForNode(f);J!==M&&(J!==""&&A.unscopeNode(f,J),A.scopeNode(f,M))}}}};
w(H);return U?(U=new MutationObserver(function(d){for(var O=0;O<d.length;O++)for(var f=d[O],J=0;J<f.addedNodes.length;J++){var F=f.addedNodes[J];F.nodeType===Node.ELEMENT_NODE&&w(F)}}),U.observe(H,{childList:!0,
subtree:!0}),U):null};
B4N=function(){document.body.removeAttribute("unresolved")};
lXK=function(H){var U=H=H.replace(rgN,"").replace(ePr,""),A=new Dn4;A.start=0;A.end=U.length;for(var M=A,W=0,w=U.length;W<w;W++)if(U[W]==="{"){M.rules||(M.rules=[]);var d=M,O=d.rules[d.rules.length-1]||null;M=new Dn4;M.start=W+1;M.parent=d;M.previous=O;d.rules.push(M)}else U[W]==="}"&&(M.end=W+1,M=M.parent||A);return $n8(A,H)};
$n8=function(H,U){var A=U.substring(H.start,H.end-1);H.parsedCssText=H.cssText=A.trim();H.parent&&(A=U.substring(H.previous?H.previous.end:H.parent.start,H.start-1),A=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(A),A=A.replace(Gbt," "),A=A.substring(A.lastIndexOf(";")+1),A=H.parsedSelector=H.selector=A.trim(),H.atRule=A.indexOf("@")===0,H.atRule?A.indexOf("@media")===0?H.type=4:A.match(Yhr)&&(H.type=7,H.keyframesName=H.selector.split(Gbt).pop()):A.indexOf("--")===
0?H.type=1E3:H.type=1);if(A=H.rules)for(var M=0,W=A.length,w=void 0;M<W&&(w=A[M]);M++)$n8(w,U);return H};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(H){return H.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var U=arguments[1],A=6-U.length;A--;)U="0"+U;return"\\"+U})};
qhV=function(H,U,A){A=A===void 0?"":A;var M="";if(H.cssText||H.rules){var W=H.rules;if(W&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(W))for(var w=0,d=W.length,O=void 0;w<d&&(O=W[w]);w++)M=qhV(O,U,M);else U?U=H.cssText:(U=H.cssText,U=U.replace(hP0,"").replace(kbh,""),U=U.replace(vF4,"").replace(T4c,"")),(M=U.trim())&&(M="  "+M+"\n")}M&&(H.selector&&(A+=H.selector+" {\n"),A+=M,H.selector&&(A+="}\n\n"));return A};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(H){H=H[0];return!!H&&!!H.selector&&H.selector.indexOf("--")===0};
IXc=function(H){if(H=jTV[H])H._applyShimCurrentVersion=H._applyShimCurrentVersion||0,H._applyShimValidatingVersion=H._applyShimValidatingVersion||0,H._applyShimNextVersion=(H._applyShimNextVersion||0)+1};
QTE=function(H){return H._applyShimCurrentVersion===H._applyShimNextVersion};
HtN=function(H){H._applyShimValidatingVersion=H._applyShimNextVersion;H._validating||(H._validating=!0,Vmh.then(function(){H._applyShimCurrentVersion=H._applyShimNextVersion;H._validating=!1}))};
AJt=function(H){if(!H)return"";typeof H==="string"&&(H=lXK(H));return qhV(H,UbV)};
M$F=function(H){!H.__cssRules&&H.textContent&&(H.__cssRules=lXK(H.textContent));return H.__cssRules||null};
wQK=function(H,U,A,M){if(H){var W=!1,w=H.type;if(M&&w===4){var d=H.selector.match(W3F);d&&(window.matchMedia(d[1]).matches||(W=!0))}w===1?U(H):A&&w===7?A(H):w===1E3&&(W=!0);if((H=H.rules)&&!W)for(W=0,w=H.length,d=void 0;W<w&&(d=H[W]);W++)wQK(d,U,A,M)}};
XQ7=function(H,U){var A=H.indexOf("var(");if(A===-1)return U(H,"","","");a:{var M=0;var W=A+3;for(var w=H.length;W<w;W++)if(H[W]==="(")M++;else if(H[W]===")"&&--M===0)break a;W=-1}M=H.substring(A+4,W);A=H.substring(0,A);H=XQ7(H.substring(W+1),U);w=M.indexOf(",");if(w===-1)return U(A,M.trim(),"",H);W=M.substring(0,w).trim();M=M.substring(w+1).trim();return U(A,W,M,H)};
it7=function(H){if(eX!==void 0)return eX;if(H.__cssBuild===void 0){var U=H.getAttribute("css-build");if(U)H.__cssBuild=U;else{a:{U=H.localName==="template"?H.content.firstChild:H.firstChild;if(U instanceof Comment&&(U=U.textContent.trim().split(":"),U[0]==="css-build")){U=U[1];break a}U=""}if(U!==""){var A=H.localName==="template"?H.content.firstChild:H.firstChild;A.parentNode.removeChild(A)}H.__cssBuild=U}}return H.__cssBuild||""};
dbV=function(H,U,A,M){for(var W=U._noAccessors,w=Object.getOwnPropertyNames(U),d=0;d<w.length;d++){var O=w[d];if(!(O in M))if(W)H[O]=U[O];else{var f=Object.getOwnPropertyDescriptor(U,O);f&&(f.configurable=!0,Object.defineProperty(H,O,f))}}for(var J in btV)U[J]&&(A[J]=A[J]||[],A[J].push(U[J]))};
Otr=function(H,U,A){U=U||[];for(var M=H.length-1;M>=0;M--){var W=H[M];W?Array.isArray(W)?Otr(W,U):U.indexOf(W)<0&&(!A||A.indexOf(W)<0)&&U.unshift(W):console.warn("behavior is null, check for missing or 404 import")}return U};
uw4=function(H,U){for(var A in U){var M=H[A],W=U[A];H[A]=!("value"in W)&&M&&"value"in M?Object.assign({value:M.value},W):W}};
JJc=function(H,U,A){var M={},W=function(){return U.apply(this,arguments)||this};
_.R(W,U);W._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(d)for(var f=0,J;f<d.length;f++)J=d[f],J.properties&&this.createProperties(J.properties),J.observers&&this.createObservers(J.observers,J.properties);H.properties&&this.createProperties(H.properties);H.observers&&this.createObservers(H.observers,H.properties);this._prepareTemplate()}else U._finalizeClass.call(this)};
W.prototype.created=function(){U.prototype.created.call(this);var f=M.created;if(f)for(var J=0;J<f.length;J++)f[J].call(this)};
W.prototype._registered=function(){var f=W.prototype;if(!f.hasOwnProperty("__hasRegisterFinished")){f.__hasRegisterFinished=!0;U.prototype._registered.call(this);pK&&O(f);f=Object.getPrototypeOf(this);var J=M.beforeRegister;if(J)for(var F=0;F<J.length;F++)J[F].call(f);if(J=M.registered)for(F=0;F<J.length;F++)J[F].call(f)}};
W.prototype._applyListeners=function(){U.prototype._applyListeners.call(this);var f=M.listeners;if(f)for(var J=0;J<f.length;J++){var F=f[J];if(F)for(var P in F)this._addMethodEventListenerToNode(this,P,F[P])}};
W.prototype._ensureAttributes=function(){var f=M.hostAttributes;if(f)for(var J=f.length-1;J>=0;J--){var F=f[J],P;for(P in F)this._ensureAttribute(P,F[P])}U.prototype._ensureAttributes.call(this)};
W.prototype.ready=function(){U.prototype.ready.call(this);var f=M.ready;if(f)for(var J=0;J<f.length;J++)f[J].call(this)};
W.prototype.attached=function(){U.prototype.attached.call(this);var f=M.attached;if(f)for(var J=0;J<f.length;J++)f[J].call(this)};
W.prototype.detached=function(){U.prototype.detached.call(this);var f=M.detached;if(f)for(var J=0;J<f.length;J++)f[J].call(this)};
W.prototype.attributeChanged=function(f,J,F){U.prototype.attributeChanged.call(this);var P=M.attributeChanged;if(P)for(var n=0;n<P.length;n++)P[n].call(this,f,J,F)};
_.D5.Object.defineProperties(W,{properties:{configurable:!0,enumerable:!0,get:function(){var f={};if(d)for(var J=0;J<d.length;J++)uw4(f,d[J].properties);uw4(f,H.properties);return f}},
observers:{configurable:!0,enumerable:!0,get:function(){var f=[];if(d)for(var J=0,F;J<d.length;J++)F=d[J],F.observers&&(f=f.concat(F.observers));H.observers&&(f=f.concat(H.observers));return f}}});
if(A){Array.isArray(A)||(A=[A]);var w=U.prototype.behaviors;var d=Otr(A,null,w);W.prototype.behaviors=w?w.concat(A):d}var O=function(f){if(d)for(var J=d,F=0;F<J.length;F++)dbV(f,J[F],M,ZtF);dbV(f,H,M,fn0)};
pK||O(W.prototype);W.generatedFrom=H;return W};
PdF=function(H){var U=typeof H!=="string"?H:{is:H,notifyObserversOnUndefined:!0};U.fastInit===void 0&&(U.fastInit=!0);return function(A){if(!U.disableInheritanceCheck&&Object.getPrototypeOf(A.prototype).constructor!==_.$A)throw Error("Vd");var M=A.prototype;M.is=U.is;plr(M,"created",function(){this.hostElement=this;this.polymerController=this});
K3N(M,A,U.fastInit);U.notifyObserversOnUndefined&&(M._overrideLegacyUndefined=!0);if(oh8)for(var W=_.b(Object.getOwnPropertyNames(M)),w=W.next();!w.done;w=W.next()){w=w.value;var d=Object.getOwnPropertyDescriptor(M,w);d.enumerable===!1&&(d.enumerable=!0,Object.defineProperty(M,w,d))}if("template"in A)var O=function(){return A.template};
else U.template!==void 0&&(O=U.template);if(O!==void 0){var f;Object.defineProperty(M,"_template",{get:function(){f===void 0&&(f=O());return f},
set:function(J){f=J},
configurable:!0,enumerable:!0})}Polymer(M);A[F38]=M}};
sxK=function(H){H=H===void 0?{}:H;H.fastInit===void 0&&(H.fastInit=!0);return function(U){if(!H.disableInheritanceCheck&&Object.getPrototypeOf(U.prototype).constructor!==lu)throw Error("Wd");K3N(U.prototype,U,H.fastInit)}};
K3N=function(H,U,A){A=A===void 0?!1:A;nhN(U);A?plr(H,"created",function(){this.disableEnforceFastDefaultValuesCheck||Np0(U,this)}):plr(H,"ready",function(){for(var M={},W=_.b(Luc(this.behaviors)),w=W.next();!w.done;w=W.next())w=w.value,w.properties&&Object.assign(M,SRh(this,w.properties));
Object.assign(M,SRh(this,this.properties));Np0(U,this);W=_.b(Object.keys(M));for(w=W.next();!w.done;w=W.next())w=w.value,this[w]=M[w]})};
Np0=function(H,U){if(oh8){H=new H;for(var A=_.b(Object.getOwnPropertyNames(H)),M=A.next();!M.done;M=A.next())M=M.value,U[M]=H[M];for(A=U;A&&A!==Object.prototype;A=Object.getPrototypeOf(A)){M=_.b(Object.getOwnPropertyNames(A));for(var W=M.next();!W.done;W=M.next())W=W.value,H.hasOwnProperty(W)||Object.defineProperty(H,W,pQ0(U,W))}}else H.apply(U)};
pQ0=function(H,U){return{get:function(){var A=H[U];return A instanceof Function?A.bind(H):A},
set:function(A){H[U]=A}}};
SRh=function(H,U){if(!U)return{};for(var A={},M=_.b(Object.keys(U)),W=M.next();!W.done;W=M.next())if(W=W.value,!U[W].readOnly){var w=H[W];w!==void 0&&(A[W]=w)}return A};
nhN=function(H){var U=new H;H=H.prototype.properties||{};for(var A=_.b(Object.keys(H)),M=A.next();!M.done;M=A.next())if(M=M.value,U.hasOwnProperty(M)){var W=H[M];typeof W==="function"&&(H[M]=W={type:W});U[M]!=null&&W.type===Object&&(W.type=L37(U[M].constructor))}};
L37=function(H){for(var U=_.b(R0r),A=U.next();!A.done;A=U.next())if(A=A.value,H===A)return A;return Object};
Eh4=function(H){return function(U,A){U.behaviors=U.behaviors||[];U.behaviors.push(H||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",U,A).prototype:void 0));Object.defineProperty(U,A,{get:function(){return this},
enumerable:!0,configurable:!0})}};
mb4=function(H){H=H===void 0?{}:H;return function(U,A){U.properties=U.properties||{};H.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?H.type=L37(Reflect.getMetadata("design:type",U,A)):H.type=String);var M=H,W=U.properties[A];U.properties[A]=W?Object.assign({},W,M):M}};
ghF=function(H){return function(U,A){U.listeners=U.listeners||{};U.listeners[H]=A}};
anr=function(){var H=_.QY.apply(0,arguments);if(H.length===0)throw Error("Xd");return function(U,A){U.observers=U.observers||[];U.observers.push(A+"("+H.join(",")+")")}};
xb0=function(){var H=_.QY.apply(0,arguments);return function(U,A,M){var W=Object.getOwnPropertyDescriptor(U,A).get,w="__compute__"+A;Object.defineProperty(U,w,{value:W,enumerable:!0});U.properties=U.properties||{};W=U.properties[A];W||(W={},U.properties[A]=W);W.computed=w+"("+H.join(",")+")";M.get=void 0}};
_.GS=function(H,U,A){_.XG.call(this);this.JSC$11620_id_=null;this.usingListeners_=!1;this.JSC$11620_listener_=H;this.handler_=A;this.JSC$11620_win_=U||window;this.callback_=(0,_.i9)(this.JSC$11622_doAction_,this)};
Cd0=function(H){var U=z0r(H);if(!U)throw Error("Yd`"+H);return U};
z0r=function(H){var U={};H=String(H);var A=H.charAt(0)=="#"?H:"#"+H;if(t$8.test(A))return U.hex=cJF(A),U.type="hex",U;A=yJV(H);return A.length?(U.hex=Bph(A[0],A[1],A[2]),U.type="rgb",U):rJ8&&(H=rJ8[H.toLowerCase()])?(U.hex=H,U.type="named",U):null};
cJF=function(H){if(!t$8.test(H))throw Error("$d`"+H);H.length==4&&(H=H.replace(e0_,"#$1$1$2$2$3$3"));return H.toLowerCase()};
Db0=function(H){H=cJF(H);H=parseInt(H.slice(1),16);return[H>>16,H>>8&255,H&255]};
Bph=function(H,U,A){H=Number(H);U=Number(U);A=Number(A);if(H!=(H&255)||U!=(U&255)||A!=(A&255))throw Error("ae`"+H+"`"+U+"`"+A);U=H<<16|U<<8|A;return H<16?"#"+(16777216|U).toString(16).slice(1):"#"+U.toString(16)};
yJV=function(H){var U=H.match($bF);if(U){H=Number(U[1]);var A=Number(U[2]);U=Number(U[3]);if(H>=0&&H<=255&&A>=0&&A<=255&&U>=0&&U<=255)return[H,A,U]}return[]};
lnh=function(){};
YA=function(H){this.range_=H};
qC=function(H){this.range_=H};
h0=function(H){this.range_=H};
Gec=function(H){return _.kA?new h0(H):_.va?new qC(H):new YA(H)};
YRM=function(){var H=AD().JSC$9629_document_;return!!(H.webkitIsFullScreen||H.mozFullScreen||H.msFullscreenElement||H.fullscreenElement)};
_.TS=function(){var H=window.getSelection();return H&&qRK(H)};
qRK=function(H){var U=!1;if(H.createRange)try{var A=H.createRange()}catch(W){return null}else if(H.rangeCount){if(H.rangeCount>1){A=new jX;U=H.rangeCount;for(var M=0;M<U;M++)A.browserRanges_.push(H.getRangeAt(M));return A}A=H.getRangeAt(0);U=h0F(H.anchorNode,H.anchorOffset,H.focusNode,H.focusOffset)}else return null;return ke7(Gec(A),U)};
_.QB=function(H,U){return _.I$(H,U,H,U)};
_.VB=function(H,U,A,M){return _.I$(H,U,A,M)};
h0F=function(H,U,A,M){if(H==A)return M<U;var W;if(H.nodeType==1&&U)if(W=H.childNodes[U])H=W,U=0;else if(_.t8(H,A))return!0;if(A.nodeType==1&&M)if(W=A.childNodes[M])A=W,M=0;else if(_.t8(A,H))return!1;return(vh8(H,A)||U-M)>0};
Hx=function(H,U,A){_.XG.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=H;this.scrollTimer_=new _.ZT(50);this.JSC$11699_eventHandler_=new _.u9(this);this.scrollDelta_=new _.E6;this.containerIsActuallyContent_=H.tagName==="BODY"||H.tagName==="HTML";this.containerBounds_=Tp8(H);this.containerIsActuallyContent_&&(H=_.VT(),this.containerBounds_.height=H.height,this.containerBounds_.width=H.width);this.margin_=U||0;if(U){if(U=this.containerBounds_.clone(),H=this.margin_){var M=
Math.min(H,U.height*.25);U.top+=M;U.height-=2*M;H=Math.min(H,U.width*.25);U.left+=H;U.width-=2*H}}else U=this.containerBounds_;this.scrollBounds_=U;A||this.JSC$11699_eventHandler_.listen(_.ZD(this.containerNode_),"mousemove",this.JSC$11701_onMouseMove);this.JSC$11699_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11701_onTick_)};
jxV=function(H,U,A,M,W,w,d,O){this.x0=H;this.y0=U;this.x1=A;this.y1=M;this.x2=W;this.y2=w;this.x3=d;this.y3=O};
Ue=function(){_.LW.call(this);this.JSC$11784_name_="closure_frame"+In_++;this.iframesForDisposal_=[];Qx4[this.JSC$11784_name_]=this};
_.AT=function(H){this.errorMessage_=null;this.result_=[];this.JSC$11788_buffer_="";this.stack_=[];this.JSC$11788_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!H||!H.deliverMessageAsRawString)};
_.Mj=function(H){this.mechanism=H};
Wx=function(H,U){this.JSC$11795_key_=H;this.JSC$11795_value_=U};
_.wJ=function(H,U){this.JSC$11801_map_={};this.JSC$11801_keys_=[];this.version_=this.size=0;var A=arguments.length;if(A>1){if(A%2)throw Error("na");for(var M=0;M<A;M+=2)this.set(arguments[M],arguments[M+1])}else H&&this.addAll(H)};
HRK=function(){this.JSC$11804_map_=new _.wJ;this.JSC$11804_head_=new V$0("");this.JSC$11804_head_.next=this.JSC$11804_head_.prev=this.JSC$11804_head_};
An0=function(H){if(H>=55296&&H<=57343||H>1114111)return"\ufffd";H in U1r&&(H=U1r[H]);var U="";H>65535&&(H-=65536,U+=String.fromCharCode(H>>>10&1023|55296),H=56320|H&1023);return U+=String.fromCharCode(H)};
Mtc=function(H,U){return H<U?1:-1};
wSN=function(){return function(H){return H.charAt(1)==="#"?H.charAt(2)==="X"||H.charAt(2)==="x"?An0(parseInt(H.substr(3),16)):An0(parseInt(H.substr(2),10)):WR7[H.slice(1,-1)]}};
bRM=function(H){return H.slice(1,H.length-1).trim().replace(XSE,function(U){return iRF[U]||" "})};
Xg=function(H){return H===32||H===9};
iU=function(H,U){return U<H.length?H.charCodeAt(U):-1};
d1c=function(H){for(;H;){if(H._lastLineBlank)return!0;var U=H.type;if(U==="list"||U==="item")H=H._lastChild;else break}return!1};
bU=function(H){if(ORN.test(H)){var U=1,A=0,M=0;for(H[A]=="|"&&A++;A<H.length;){switch(H[A]){case "|":M=1;break;case " ":break;case "\t":break;default:M&&(M=0,U++)}A++}return uf4.test(H)?-U:U}return 0};
ZR7=function(H){return H=="table"||H=="row"||H=="cell"};
fm7=function(){return new dJ("document",[[1,1],[0,0]])};
JnV=function(){};
Oe=function(){var H={safe:!1};H=H||{};H.softbreak=H.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=H};
swr=function(H,U){var A="";if(H)if(H=H.toLowerCase(),H===" "||KR_.test(H))A="space";else if(oth.test(H))A="esc";else if(H.length==1){if(!U||FRr.test(H))A=H}else A=PR8.test(H)?H.replace("arrow",""):H=="multiply"?"*":H;return A};
pSV=function(H,U){var A=H.hasModifiers;if(U.key)A=swr(U.key,A);else if(U.detail&&U.detail.key)A=swr(U.detail.key,A);else{A=U.keyIdentifier;var M="";A&&(A in ntc?M=ntc[A]:Na8.test(A)?(A=parseInt(A.replace("U+","0x"),16),M=String.fromCharCode(A).toLowerCase()):M=A.toLowerCase());(A=M)||(A=U.keyCode,M="",Number(A)&&(A>=65&&A<=90?M=String.fromCharCode(32+A):A>=112&&A<=123?M="f"+(A-112+1):A>=48&&A<=57?M=String(A-48):A>=96&&A<=105?M=String(A-96):M=S0M[A]),A=M);A=A||""}return A===H.key&&(!H.hasModifiers||
!!U.shiftKey===!!H.shiftKey&&!!U.ctrlKey===!!H.ctrlKey&&!!U.altKey===!!H.altKey&&!!U.metaKey===!!H.metaKey)};
RXK=function(H){return H.length===1?{combo:H,key:H,event:"keydown"}:H.split("+").reduce(function(U,A){var M=A.split(":");A=M[0];M=M[1];A in LRc?(U[LRc[A]]=!0,U.hasModifiers=!0):(U.key=A,U.event=M||"keydown");return U},{combo:H.split(":").shift()})};
Et0=function(H){return H.trim().split(" ").map(function(U){return RXK(U)})};
m1N=function(H,U){if(H&&H.fn){var A=H.fn;H.fn=function(){try{A.apply(this,arguments)}catch(M){if(M instanceof uU)console.warn("Argument '"+M.arg+"'"+(U?" for method '"+U+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw M;}}}return H};
amK=function(){var H=[],U;var A=A||_.gt0.length;for(U=0;U<8;U++)H[U]=_.gt0[0|Math.random()*A];return H.join("")};
x1N=function(){var H=_.QY.apply(0,arguments);return H.length===0?function(U){return U}:H.length===1?H[0]:H.reduce(function(U,A){return function(){return U(A.apply(null,_.vI(_.QY.apply(0,arguments))))}})};
zXE=function(){var H=_.QY.apply(0,arguments);return function(U){return function(A,M){A=U(A,M);var W=function(){throw Error("He");},w={getState:A.getState,
dispatch:function(d){return W.apply(null,[d].concat(_.vI(_.QY.apply(1,arguments))))}};
M=H.map(function(d){return d(w)});
W=x1N.apply(null,_.vI(M))(A.dispatch);return Object.assign({},A,{dispatch:W})}}};
cnc=function(H){Object.keys(H).forEach(function(U){var A=H[U];if(typeof A(void 0,{type:CRt})==="undefined")throw Error("Ie`"+U);if(typeof A(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+ttM()})==="undefined")throw Error("Je`"+U+"`"+CRt);})};
Z2=function(H){for(var U=Object.keys(H),A={},M=0;M<U.length;M++){var W=U[M];typeof H[W]==="function"&&(A[W]=H[W])}var w=Object.keys(A);try{cnc(A)}catch(O){var d=O}return function(O,f){O=O===void 0?{}:O;if(d)throw d;for(var J=!1,F={},P=0;P<w.length;P++){var n=w[P],N=O[n],L=(0,A[n])(N,f);if(typeof L==="undefined")throw O=f&&f.type,Error("Ke`"+(O?'"'+String(O)+'"':"(unknown type)")+"`"+n);F[n]=L;J=J||L!==N}return(J=J||w.length!==Object.keys(O).length)?F:O}};
ynK=function(H,U,A){function M(){if(F)throw Error("Le");return O}
function W(N){if(typeof N!=="function")throw Error("Me`"+typeof N);if(F)throw Error("Ne");var L=!0;J===f&&(J=f.slice());J.push(N);return function(){if(L){if(F)throw Error("Oe");L=!1;J===f&&(J=f.slice());var m=J.indexOf(N);J.splice(m,1);f=null}}}
function w(N){if(typeof N!=="object"||N===null)var L=!1;else{for(L=N;Object.getPrototypeOf(L)!==null;)L=Object.getPrototypeOf(L);L=Object.getPrototypeOf(N)===L}if(!L)throw Error("Pe`"+typeof N);if(typeof N.type==="undefined")throw Error("Qe");if(F)throw Error("Re");try{F=!0,O=d(O,N)}finally{F=!1}L=f=J;for(var m=0;m<L.length;m++)(0,L[m])();return N}
if(typeof U==="function"&&typeof A==="function"||typeof A==="function"&&typeof arguments[3]==="function")throw Error("Se");typeof U==="function"&&typeof A==="undefined"&&(A=U,U=void 0);if(typeof A!=="undefined"){if(typeof A!=="function")throw Error("Te`"+typeof A);return A(ynK)(H,U)}if(typeof H!=="function")throw Error("Ue`"+typeof H);var d=H,O=U,f=[],J=f,F=!1;w({type:CRt});var P={},n=(P.dispatch=w,P.subscribe=W,P.getState=M,P.replaceReducer=function(N){if(typeof N!=="function")throw Error("Ve`"+
typeof N);d=N;w({type:Bar});return n},P[rnM]=function(){var N={};
return N.subscribe=function(L){function m(){L.next&&L.next(M())}
if(typeof L!=="object"||L===null)throw new TypeError("We`"+typeof L);m();return{unsubscribe:W(m)}},N[rnM]=function(){return this},N},P);
return n};
eXF=function(H){function U(){W&&(W=!1,H());w&&M()}
function A(){requestAnimationFrame(U)}
function M(){var O=Date.now();if(W){if(O-d<2)return;w=!0}else W=!0,w=!1,setTimeout(A,20);d=O}
var W=!1,w=!1,d=0;return M};
fv=function(H){return typeof H==="number"?H:parseFloat(H)||0};
D1h=function(H){return _.QY.apply(1,arguments).reduce(function(U,A){return U+fv(H["border-"+A+"-width"])},0)};
Y0N=function(H){if($1_[H])return $1_[H];var U=globalThis[H],A=U.prototype,M=H in lmN?lmN[H]:void 0;M=!(!M||!M.every(function(f){var J,F;return!!((J=Object.getOwnPropertyDescriptor(A,f))==null?0:(F=J.get)==null?0:F.toString().includes("[native code]"))}));
var W=H in GzE?GzE[H]:void 0;W=!(!W||!W.every(function(f){var J;return typeof A[f]==="function"&&((J=A[f])==null?void 0:J.toString().includes("[native code]"))}));
if(M&&W&&!globalThis.Zone)return $1_[H]=U.prototype;try{var w=document.createElement("iframe");document.body.appendChild(w);var d=w.contentWindow;if(!d)return U.prototype;var O=d[H].prototype;document.body.removeChild(w);return O?$1_[H]=O:A}catch(f){return A}};
JT=function(H,U,A){var M=H+"."+String(A);if(q08[M])return q08[M].call(U);H=Y0N(H);var W;H=(W=Object.getOwnPropertyDescriptor(H,A))==null?void 0:W.get;if(!H)return U[A];q08[M]=H;return H.call(U)};
kzt=function(H,U){var A="Node."+String(U);if(hXM[A])return hXM[A].bind(H);var M=Y0N("Node")[U];if(typeof M!=="function")return H[U];hXM[A]=M;return M.bind(H)};
Kv=function(H,U,A){try{if(!(U in H))return function(){};
var M=H[U],W=A(M);typeof W==="function"&&(W.prototype=W.prototype||{},Object.defineProperties(W,{__rrweb_original__:{enumerable:!1,value:M}}));H[U]=W;return function(){H[U]=M}}catch(w){return function(){}}};
Px=function(H){var U=H&&"host"in H&&"mode"in H&&og(H)||null;return!!(U&&"shadowRoot"in U&&Fg(U)===H)};
se=function(H){return Object.prototype.toString.call(H)==="[object ShadowRoot]"};
vt_=function(H){H.includes(" background-clip: text;")&&!H.includes(" -webkit-background-clip: text;")&&(H=H.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return H};
jw0=function(H){try{var U=H.rules||H.cssRules;if(!U)return null;var A=H.href;!A&&H.ownerNode&&(A=H.ownerNode.baseURI);var M=Array.from(U,function(W){return Ta7(W,A)}).join("");
return vt_(M)}catch(W){return null}};
Ta7=function(H,U){if("styleSheet"in H){try{var A;if(!(A=jw0(H.styleSheet))){var M=H.cssText;if(M.split('"').length<3)A=M;else{var W=["@import","url("+JSON.stringify(H.href)+")"];H.layerName===""?W.push("layer"):H.layerName&&W.push("layer("+H.layerName+")");H.supportsText&&W.push("supports("+H.supportsText+")");H.media.length&&W.push(H.media.mediaText);A=W.join(" ")+";"}}var w=A}catch(d){w=H.cssText}return H.styleSheet.href?Imr(w,H.styleSheet.href):w}w=H.cssText;"selectorText"in H&&H.selectorText.includes(":")&&
(w=w.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return U?Imr(w,U):w};
Qwr=function(H){var U=H.element;var A=H.maskInputOptions;var M=H.tagName;var W=H.type;var w=H.value;H=H.maskInputFn;w=w||"";W=W&&W.toLowerCase();if(A[M.toLowerCase()]||W&&A[W])w=H?H(w,U):"*".repeat(w.length);return w};
Vtr=function(H){var U=H.getContext("2d");if(!U)return!0;for(var A=0;A<H.width;A+=50)for(var M=0;M<H.height;M+=50){var W=U.getImageData;if((new Uint32Array(("__rrweb_original__"in W?W.__rrweb_original__:W).call(U,A,M,Math.min(50,H.width-A),Math.min(50,H.height-M)).data.buffer)).some(function(w){return w!==0}))return!1}return!0};
HBM=function(H){var U=H.type;return H.hasAttribute("data-rr-is-password")?"password":U?U.toLowerCase():null};
Uz7=function(H){try{var U=new URL(H,window.location.href)}catch(W){return null}var A,M;return(M=(A=U.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:A[1])!=null?M:null};
Imr=function(H,U){return(H||"").replace(AL_,function(A,M,W,w,d,O){W=W||d||O;M=M||w||"";if(!W)return A;if(M2V.test(W)||Wec.test(W)||wU4.test(W))return"url("+M+W+M+")";if(W[0]==="/")return A=U.indexOf("//")>-1?U.split("/").slice(0,3).join("/"):U.split("/")[0],A=A.split("?")[0],"url("+M+(A+W)+M+")";A=U.split("/");w=W.split("/");A.pop();w=_.b(w);for(W=w.next();!W.done;W=w.next())W=W.value,W!=="."&&(W===".."?A.pop():A.push(W));return"url("+M+A.join("/")+M+")"})};
XUV=function(H,U){return(U=U===void 0?!1:U)?H.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):H.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
iBV=function(H,U){var A=A===void 0?!1:A;U=Array.from(U.childNodes);var M=[],W=0;if(U.length>1&&H&&typeof H==="string")for(var w=XUV(H,A),d=w.length/H.length,O=1;O<U.length;O++)if(U[O].textContent&&typeof U[O].textContent==="string"){for(var f=XUV(U[O].textContent,A),J=3;J<f.length&&(f[J].match(/[a-zA-Z0-9]/)||f.indexOf(f.substring(0,J),1)!==-1);J++);for(;J<f.length;J++){var F=f.substring(0,J),P=w.split(F),n=-1;if(P.length===2)n=P[0].length;else if(P.length>2&&P[0]===""&&U[O-1].textContent!=="")n=
w.indexOf(F,1);else if(P.length===1){F=F.substring(0,F.length-1);P=w.split(F);if(P.length<=1)return M.push(H),M;J=101}else J===f.length-1&&(n=w.indexOf(F));if(P.length>=2&&J>100){var N=U[O-1].textContent;N&&typeof N==="string"&&(n=w.indexOf(F,XUV(N).length));n===-1&&(n=P[0].length)}if(n!==-1){for(f=Math.floor(n/d);f>0&&f<H.length;){W+=1;if(W>50*U.length)return M.push(H),M;J=XUV(H.substring(0,f),A);if(J.length===n){M.push(H.substring(0,f));H=H.substring(f);w=w.substring(n);break}else f=J.length<n?
f+Math.max(1,Math.floor((n-J.length)/d)):f-Math.max(1,Math.floor((J.length-n)*d))}break}}}M.push(H);return M};
dzt=function(){return bB7++};
ubt=function(H){if(H instanceof HTMLFormElement)return"form";H=H.tagName.toLowerCase();return OB4.test(H)?"div":H};
Ke_=function(H,U){function A(J){return(J=J.exec(U.substring(M)))?(J=J[0],M+=J.length,J):""}
if(U.trim()==="")return U;for(var M=0,W=[];;){A(ZB0);if(M>=U.length)break;var w=A(fpt);if(w.slice(-1)===",")w=JLM(H,w.substring(0,w.length-1)),W.push(w);else{var d="";w=JLM(H,w);for(var O=!1;;){var f=U.charAt(M);if(f===""){W.push((w+d).trim());break}else if(O)f===")"&&(O=!1);else if(f===","){M+=1;W.push((w+d).trim());break}else f==="("&&(O=!0);d+=f;M+=1}}}return W.join(", ")};
JLM=function(H,U){return U&&U.trim()!==""?onK(H,U):U};
onK=function(H,U){var A=Fe7.get(H);A||(A=H.createElement("a"),Fe7.set(H,A));if(!U)U="";else if(U.startsWith("blob:")||U.startsWith("data:"))return U;HI(A,U);return A.href};
Pw7=function(H,U,A,M){return M?A==="src"||A==="href"&&(U!=="use"||M[0]!=="#")||A==="xlink:href"&&M[0]!=="#"||A==="background"&&(U==="table"||U==="td"||U==="th")?JLM(H,M):A==="srcset"?Ke_(H,M):A==="style"?Imr(M,onK(H)):U==="object"&&A==="data"?JLM(H,M):M:M};
sCE=function(H,U){return(H==="video"||H==="audio")&&U==="autoplay"};
nnc=function(H,U,A){try{if(typeof U==="string"){if(H.classList.contains(U))return!0}else for(var M=H.classList.length;M--;)if(U.test(H.classList[M]))return!0;if(A)return H.matches(A)}catch(W){}return!1};
N3_=function(H,U,A){if(!H)return!1;if(H.nodeType!==H.ELEMENT_NODE)return A?N3_(Nj(H),U,A):!1;for(var M=H.classList.length;M--;)if(U.test(H.classList[M]))return!0;return A?N3_(Nj(H),U,A):!1};
Sp0=function(H,U,A,M){if(H.nodeType===H.ELEMENT_NODE){if(!SU(H).length)return!1}else{if(pv(H)===null)return!1;H=pv(H)}try{if(typeof U==="string")if(M){if(H.closest("."+U))return!0}else{if(H.classList.contains(U))return!0}else if(N3_(H,U,M))return!0;if(A)if(M){if(H.closest(A))return!0}else if(H.matches(A))return!0}catch(W){}return!1};
pU0=function(H,U,A){var M=H.contentWindow;if(M){var W=!1;try{var w=M.document.readyState}catch(O){return}if(w!=="complete"){var d=setTimeout(function(){W||(U(),W=!0)},A);
H.addEventListener("load",function(){clearTimeout(d);W=!0;U()})}else M.location.href==="about:blank"&&H.src!=="about:blank"&&H.src!==""||setTimeout(U,0),H.addEventListener("load",U)}};
LeN=function(H,U,A){var M=!1;try{var W=H.sheet}catch(d){return}if(!W){var w=setTimeout(function(){M||(U(),M=!0)},A);
H.addEventListener("load",function(){clearTimeout(w);M=!0;U()})}};
mz8=function(H,U){var A=U.doc,M=U.blockClass,W=U.blockSelector,w=U.needsMask,d=U.inlineStylesheet,O=U.maskInputOptions===void 0?{}:U.maskInputOptions,f=U.maskTextFn,J=U.maskInputFn,F=U.dataURLOptions===void 0?{}:U.dataURLOptions,P=U.inlineImages,n=U.recordCanvas,N=U.keepIframeSrcFn,L=U.newlyAddedElement===void 0?!1:U.newlyAddedElement,m=U.cssCaptured===void 0?!1:U.cssCaptured;U=U.mirror;U.nodeMetaMap.has(A)?(U=U.getId(A),U=U===1?void 0:U):U=void 0;switch(H.nodeType){case H.DOCUMENT_NODE:return H.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:H.compatMode}:{type:0,childNodes:[]};case H.DOCUMENT_TYPE_NODE:return{type:1,name:H.name,publicId:H.publicId,systemId:H.systemId,rootId:U};case H.ELEMENT_NODE:return RjN(H,{doc:A,blockClass:M,blockSelector:W,inlineStylesheet:d,maskInputOptions:O,maskInputFn:J,dataURLOptions:F,inlineImages:P,recordCanvas:n,keepIframeSrcFn:N,newlyAddedElement:L,rootId:U});case H.TEXT_NODE:return d=(M=Nj(H))&&M.tagName,M="",W=d==="STYLE"?!0:void 0,(d=d==="SCRIPT"?!0:void 0)?
M="SCRIPT_PLACEHOLDER":m||(M=Enc(H),W&&M&&(M=Imr(M,onK(A)))),!W&&!d&&M&&w&&(M=f?f(M,pv(H)):M.replace(/[\S]/g,"*")),{type:3,textContent:M||"",rootId:U};case H.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:U};case H.COMMENT_NODE:return{type:5,textContent:Enc(H)||"",rootId:U};default:return!1}};
RjN=function(H,U){var A=U.doc,M=U.inlineStylesheet,W=U.maskInputOptions===void 0?{}:U.maskInputOptions,w=U.maskInputFn,d=U.dataURLOptions===void 0?{}:U.dataURLOptions,O=U.inlineImages,f=U.recordCanvas,J=U.keepIframeSrcFn,F=U.newlyAddedElement===void 0?!1:U.newlyAddedElement,P=U.rootId;U=nnc(H,U.blockClass,U.blockSelector);for(var n=ubt(H),N={},L=H.attributes.length,m=0;m<L;m++){var z=H.attributes[m];sCE(n,z.name)||(N[z.name]=Pw7(A,n,z.name.toLowerCase(),z.value))}n==="link"&&M&&(M=Array.from(A.styleSheets).find(function(D){return D.href===
H.href}),L=null,M&&(L=jw0(M)),L&&(delete N.rel,delete N.href,N._cssText=L));
n==="style"&&H.sheet&&(M=jw0(H.sheet))&&(H.childNodes.length>1&&(M=iBV(M,H).join("/* rr_split */")),N._cssText=M);if(n==="input"||n==="textarea"||n==="select")M=H.value,L=H.checked,N.type!=="radio"&&N.type!=="checkbox"&&N.type!=="submit"&&N.type!=="button"&&M?N.value=Qwr({element:H,type:HBM(H),tagName:n,value:M,maskInputOptions:W,maskInputFn:w}):L&&(N.checked=L);n==="option"&&(H.selected&&!W.select?N.selected=!0:delete N.selected);n==="dialog"&&H.open&&(N.rr_open_mode=H.matches("dialog:modal")?"modal":
"non-modal");n==="canvas"&&f&&(H.__context==="2d"?Vtr(H)||(N.rr_dataURL=H.toDataURL(d.type,d.quality)):"__context"in H||(W=H.toDataURL(d.type,d.quality),w=A.createElement("canvas"),w.width=H.width,w.height=H.height,w=w.toDataURL(d.type,d.quality),W!==w&&(N.rr_dataURL=W)));if(n==="img"&&O){Lv||(Lv=A.createElement("canvas"),gnF=Lv.getContext("2d"));var c=H.currentSrc||H.getAttribute("src")||"<unknown-src>",C=H.crossOrigin,v=function(){H.removeEventListener("load",v);try{Lv.width=H.naturalWidth,Lv.height=
H.naturalHeight,gnF.drawImage(H,0,0),N.rr_dataURL=Lv.toDataURL(d.type,d.quality)}catch(D){if(H.crossOrigin!=="anonymous"){H.crossOrigin="anonymous";H.complete&&H.naturalWidth!==0?v():H.addEventListener("load",v);return}console.warn("Cannot inline img src="+c+"! Error: "+D)}H.crossOrigin==="anonymous"&&(C?N.crossOrigin=C:H.removeAttribute("crossorigin"))};
H.complete&&H.naturalWidth!==0?v():H.addEventListener("load",v)}if(n==="audio"||n==="video")A=N,A.rr_mediaState=H.paused?"paused":"played",A.rr_mediaCurrentTime=H.currentTime,A.rr_mediaPlaybackRate=H.playbackRate,A.rr_mediaMuted=H.muted,A.rr_mediaLoop=H.loop,A.rr_mediaVolume=H.volume;F||(H.scrollLeft&&(N.rr_scrollLeft=H.scrollLeft),H.scrollTop&&(N.rr_scrollTop=H.scrollTop));U&&(F=H.getBoundingClientRect(),N={class:N.class,rr_width:F.width+"px",rr_height:F.height+"px"});n!=="iframe"||J(N.src)||(H.contentDocument||
(N.rr_src=N.src),delete N.src);var Y;try{customElements.get(n)&&(Y=!0)}catch(D){}return{type:2,tagName:n,attributes:N,childNodes:[],isSVG:!(H.tagName!=="svg"&&!H.ownerSVGElement)||void 0,needBlock:U,rootId:P,isCustom:Y}};
Rg=function(H){return H===void 0||H===null?"":H.toLowerCase()};
ap7=function(H,U){return U.comment&&H.type===5||H.type===2&&(U.script&&(H.tagName==="script"||H.tagName==="link"&&(H.attributes.rel==="preload"&&H.attributes.as==="script"||H.attributes.rel==="modulepreload")||H.tagName==="link"&&H.attributes.rel==="prefetch"&&typeof H.attributes.href==="string"&&Uz7(H.attributes.href)==="js")||U.headFavicon&&(H.tagName==="link"&&H.attributes.rel==="shortcut icon"||H.tagName==="meta"&&(Rg(H.attributes.name).match(/^msapplication-tile(image|color)$/)||Rg(H.attributes.name)===
"application-name"||Rg(H.attributes.rel)==="icon"||Rg(H.attributes.rel)==="apple-touch-icon"||Rg(H.attributes.rel)==="shortcut icon"))||H.tagName==="meta"&&(U.headMetaDescKeywords&&Rg(H.attributes.name).match(/^description|keywords$/)||U.headMetaSocial&&(Rg(H.attributes.property).match(/^(og|twitter|fb):/)||Rg(H.attributes.name).match(/^(og|twitter):/)||Rg(H.attributes.name)==="pinterest")||U.headMetaRobots&&(Rg(H.attributes.name)==="robots"||Rg(H.attributes.name)==="googlebot"||Rg(H.attributes.name)===
"bingbot")||U.headMetaHttpEquiv&&H.attributes["http-equiv"]!==void 0||U.headMetaAuthorship&&(Rg(H.attributes.name)==="author"||Rg(H.attributes.name)==="generator"||Rg(H.attributes.name)==="framework"||Rg(H.attributes.name)==="publisher"||Rg(H.attributes.name)==="progid"||Rg(H.attributes.property).match(/^article:/)||Rg(H.attributes.property).match(/^product:/))||U.headMetaVerification&&(Rg(H.attributes.name)==="google-site-verification"||Rg(H.attributes.name)==="yandex-verification"||Rg(H.attributes.name)===
"csrf-token"||Rg(H.attributes.name)==="p:domain_verify"||Rg(H.attributes.name)==="verify-v1"||Rg(H.attributes.name)==="verification"||Rg(H.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
Ee=function(H,U){var A=U.doc,M=U.mirror,W=U.blockClass,w=U.blockSelector,d=U.maskTextClass,O=U.maskTextSelector,f=U.skipChild===void 0?!1:U.skipChild,J=U.inlineStylesheet===void 0?!0:U.inlineStylesheet,F=U.maskInputOptions===void 0?{}:U.maskInputOptions,P=U.maskTextFn,n=U.maskInputFn,N=U.slimDOMOptions,L=U.dataURLOptions===void 0?{}:U.dataURLOptions,m=U.inlineImages===void 0?!1:U.inlineImages,z=U.recordCanvas===void 0?!1:U.recordCanvas,c=U.onSerialize,C=U.onIframeLoad,v=U.iframeLoadTimeout===void 0?
5E3:U.iframeLoadTimeout,Y=U.onStylesheetLoad,D=U.stylesheetLoadTimeout===void 0?5E3:U.stylesheetLoadTimeout,h=U.keepIframeSrcFn===void 0?function(){return!1}:U.keepIframeSrcFn,T=U.newlyAddedElement===void 0?!1:U.newlyAddedElement,WF=U.cssCaptured===void 0?!1:U.cssCaptured,dK=U.needsMask,SN=U.preserveWhiteSpace===void 0?!0:U.preserveWhiteSpace;
dK||(dK=Sp0(H,d,O,dK===void 0));var o_=mz8(H,{doc:A,mirror:M,blockClass:W,blockSelector:w,needsMask:dK,inlineStylesheet:J,maskInputOptions:F,maskTextFn:P,maskInputFn:n,dataURLOptions:L,inlineImages:m,recordCanvas:z,keepIframeSrcFn:h,newlyAddedElement:T,cssCaptured:WF});if(!o_)return console.warn(H,"not serialized"),null;T=M.nodeMetaMap.has(H)?M.getId(H):ap7(o_,N)||!SN&&o_.type===3&&!o_.textContent.replace(/^\s+|\s+$/gm,"").length?-2:bB7++;U=Object.assign(o_,{id:T});M.add(H,U);if(T===-2)return null;
c&&c(H);T=!f;U.type===2&&(T=T&&!U.needBlock,delete U.needBlock,(WF=Fg(H))&&se(WF)&&(U.isShadowHost=!0));if((U.type===0||U.type===2)&&T){N.headWhitespace&&U.type===2&&U.tagName==="head"&&(SN=!1);f={doc:A,mirror:M,blockClass:W,blockSelector:w,needsMask:dK,maskTextClass:d,maskTextSelector:O,skipChild:f,inlineStylesheet:J,maskInputOptions:F,maskTextFn:P,maskInputFn:n,slimDOMOptions:N,dataURLOptions:L,inlineImages:m,recordCanvas:z,preserveWhiteSpace:SN,onSerialize:c,onIframeLoad:C,iframeLoadTimeout:v,
onStylesheetLoad:Y,stylesheetLoadTimeout:D,keepIframeSrcFn:h,cssCaptured:!1};if(U.type!==2||U.tagName!=="textarea"||U.attributes.value===void 0)for(U.type===2&&U.attributes._cssText!==void 0&&typeof U.attributes._cssText==="string"&&(f.cssCaptured=!0),T=_.b(Array.from(SU(H))),WF=T.next();!WF.done;WF=T.next())(WF=Ee(WF.value,f))&&U.childNodes.push(WF);T=null;if(H.nodeType===H.ELEMENT_NODE&&(T=Fg(H))){WF=_.b(Array.from(SU(T)));for(var PF=WF.next();!PF.done;PF=WF.next())if(PF=Ee(PF.value,f))se(T)&&(PF.isShadow=
!0),U.childNodes.push(PF)}}(f=Nj(H))&&Px(f)&&se(f)&&(U.isShadow=!0);U.type===2&&U.tagName==="iframe"&&pU0(H,function(){var BF=H.contentDocument;BF&&C&&(BF=Ee(BF,{doc:BF,mirror:M,blockClass:W,blockSelector:w,needsMask:dK,maskTextClass:d,maskTextSelector:O,skipChild:!1,inlineStylesheet:J,maskInputOptions:F,maskTextFn:P,maskInputFn:n,slimDOMOptions:N,dataURLOptions:L,inlineImages:m,recordCanvas:z,preserveWhiteSpace:SN,onSerialize:c,onIframeLoad:C,iframeLoadTimeout:v,onStylesheetLoad:Y,stylesheetLoadTimeout:D,
keepIframeSrcFn:h}))&&C(H,BF)},v);
U.type===2&&U.tagName==="link"&&typeof U.attributes.rel==="string"&&(U.attributes.rel==="stylesheet"||U.attributes.rel==="preload"&&typeof U.attributes.href==="string"&&Uz7(U.attributes.href)==="css")&&LeN(H,function(){if(Y){var BF=Ee(H,{doc:A,mirror:M,blockClass:W,blockSelector:w,needsMask:dK,maskTextClass:d,maskTextSelector:O,skipChild:!1,inlineStylesheet:J,maskInputOptions:F,maskTextFn:P,maskInputFn:n,slimDOMOptions:N,dataURLOptions:L,inlineImages:m,recordCanvas:z,preserveWhiteSpace:SN,onSerialize:c,
onIframeLoad:C,iframeLoadTimeout:v,onStylesheetLoad:Y,stylesheetLoadTimeout:D,keepIframeSrcFn:h});BF&&Y(H,BF)}},D);
return U};
xzK=function(H){var U=document;H=H||{};var A=H.maskAllInputs===void 0?!1:H.maskAllInputs,M=H.slimDOM===void 0?!1:H.slimDOM;return Ee(U,{doc:U,mirror:H.mirror===void 0?new mz:H.mirror,blockClass:H.blockClass===void 0?"rr-block":H.blockClass,blockSelector:H.blockSelector===void 0?null:H.blockSelector,maskTextClass:H.maskTextClass===void 0?"rr-mask":H.maskTextClass,maskTextSelector:H.maskTextSelector===void 0?null:H.maskTextSelector,skipChild:!1,inlineStylesheet:H.inlineStylesheet===void 0?!0:H.inlineStylesheet,
maskInputOptions:A===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:A===!1?{password:!0}:A,maskTextFn:H.maskTextFn,maskInputFn:H.maskInputFn,slimDOMOptions:M===!0||M==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:M==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:M===!1?{}:M,dataURLOptions:H.dataURLOptions,
inlineImages:H.inlineImages===void 0?!1:H.inlineImages,recordCanvas:H.recordCanvas===void 0?!1:H.recordCanvas,preserveWhiteSpace:H.preserveWhiteSpace,onSerialize:H.onSerialize,onIframeLoad:H.onIframeLoad,iframeLoadTimeout:H.iframeLoadTimeout,onStylesheetLoad:H.onStylesheetLoad,stylesheetLoadTimeout:H.stylesheetLoadTimeout,keepIframeSrcFn:H.keepIframeSrcFn===void 0?function(){return!1}:H.keepIframeSrcFn,
newlyAddedElement:!1})};
gJ=function(H,U,A){A=A===void 0?document:A;var M={capture:!0,passive:!0};A.addEventListener(H,U,M);return function(){return A.removeEventListener(H,U,M)}};
ag=function(H,U,A){A=A===void 0?{}:A;var M=null,W=0;return function(){var w=_.QY.apply(0,arguments),d=Date.now();W||A.leading!==!1||(W=d);var O=U-(d-W),f=this;O<=0||O>U?(M&&(clearTimeout(M),M=null),W=d,H.apply(f,w)):M||A.trailing===!1||(M=setTimeout(function(){W=A.leading===!1?0:Date.now();M=null;H.apply(f,w)},O))}};
zjc=function(H,U,A,M,W){W=W===void 0?window:W;var w=W.Object.getOwnPropertyDescriptor(H,U);W.Object.defineProperty(H,U,M?A:{set:function(d){var O=this;setTimeout(function(){A.set.call(O,d)},0);
w&&w.set&&w.set.call(this,d)}});
return function(){return zjc(H,U,w||{},!0)}};
CwN=function(H){var U=H.document,A,M,W,w;return{left:U.scrollingElement?U.scrollingElement.scrollLeft:H.pageXOffset!==void 0?H.pageXOffset:U.documentElement.scrollLeft||(U==null?void 0:U.body)&&((A=pv(U.body))==null?void 0:A.scrollLeft)||(U==null?void 0:(M=U.body)==null?void 0:M.scrollLeft)||0,top:U.scrollingElement?U.scrollingElement.scrollTop:H.pageYOffset!==void 0?H.pageYOffset:(U==null?void 0:U.documentElement.scrollTop)||(U==null?void 0:U.body)&&((W=pv(U.body))==null?void 0:W.scrollTop)||(U==
null?void 0:(w=U.body)==null?void 0:w.scrollTop)||0}};
t2E=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
cLr=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
yLc=function(H){return H?H.nodeType===H.ELEMENT_NODE?H:pv(H):null};
x8=function(H,U,A,M){if(!H)return!1;H=yLc(H);if(!H)return!1;try{if(typeof U==="string"){if(H.classList.contains(U)||M&&H.closest("."+U)!==null)return!0}else if(N3_(H,U,M))return!0}catch(W){}return A&&(H.matches(A)||M&&H.closest(A)!==null)?!0:!1};
B37=function(H,U,A){return H.tagName==="TITLE"&&A.headTitleMutations?!0:U.getId(H)===-2};
rLM=function(H,U){if(Px(H))return!1;var A=U.getId(H);return U.has(A)?(A=Nj(H))&&A.nodeType===H.DOCUMENT_NODE?!1:A?rLM(A,U):!0:!0};
ejM=function(){var H=H===void 0?window:H;"NodeList"in H&&!H.NodeList.prototype.forEach&&(H.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in H&&!H.DOMTokenList.prototype.forEach&&(H.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
Dzc=function(H,U){return!(H.nodeName!=="LINK"||H.nodeType!==H.ELEMENT_NODE||!H.getAttribute||H.getAttribute("rel")!=="stylesheet"||!U.nodeMetaMap.get(H))};
lpc=function(H){var U=null,A;"getRootNode"in H&&((A=$zc(H))==null?void 0:A.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&og($zc(H))&&(U=og($zc(H)));return U};
GG7=function(H){var U=H.ownerDocument;if(U){if(!(U=kzt(U,"contains")(H)))if(U=H.ownerDocument){for(var A;A=lpc(H);)H=A;U=kzt(U,"contains")(H)}else U=!1}else U=!1;return U};
YpM=function(H,U){H.delete(U);SU(U).forEach(function(A){return YpM(H,A)})};
qp_=function(H,U){for(var A=[H];A.length;)H=A.pop(),U.has(H)||(U.add(H),SU(H).forEach(function(M){return A.push(M)}))};
hjh=function(H,U){H.size===0?H=!1:H=(U=Nj(U))?H.has(U):!1;return H};
vn4=function(H,U){return H.size===0?!1:kGE(H,U)};
kGE=function(H,U){return(U=Nj(U))?H.has(U)?!0:kGE(H,U):!1};
Cv=function(H){try{if("composedPath"in H){var U=H.composedPath();if(U.length)return U[0]}else if("path"in H&&H.path.length)return H.path[0]}catch(A){}return H&&H.target};
jCE=function(H,U){var A=new T3E;tT.push(A);A.init(H);H=new (Y0N("MutationObserver").constructor)(cx(A.processMutations.bind(A)));H.observe(U,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return H};
QCr=function(H){var U=H.mousemoveCb;var A=H.sampling;var M=H.doc;var W=H.mirror;if(A.mousemove===!1)return function(){};
var w=[],d,O=ag(cx(function(J){var F=Date.now()-d;U(w.map(function(P){P.timeOffset-=F;return P}),J);
w=[];d=null}),typeof A.mousemoveCallback==="number"?A.mousemoveCallback:500);
H=cx(ag(cx(function(J){var F=Cv(J),P=J.changedTouches?J.changedTouches[0]:J,n=P.clientX;P=P.clientY;d||(d=Ip_());w.push({x:n,y:P,id:W.getId(F),timeOffset:Ip_()-d});O(typeof DragEvent!=="undefined"&&J instanceof DragEvent?12:J instanceof MouseEvent?1:6)}),typeof A.mousemove==="number"?A.mousemove:50,{trailing:!1}));
var f=[gJ("mousemove",H,M),gJ("touchmove",H,M),gJ("drag",H,M)];return cx(function(){f.forEach(function(J){return J()})})};
V27=function(H){var U=H.mouseInteractionCb;var A=H.doc;var M=H.mirror;var W=H.blockClass;var w=H.blockSelector;H=H.sampling;if(H.mouseInteraction===!1)return function(){};
var d=H.mouseInteraction===!0||H.mouseInteraction===void 0?{}:H.mouseInteraction,O=[],f=null,J=function(F){return function(P){var n=Cv(P);if(!x8(n,W,w,!0)){var N=null,L=F;if("pointerType"in P){switch(P.pointerType){case "mouse":N=0;break;case "touch":N=2;break;case "pen":N=1}N===2&&(yk[F]===1?L="TouchStart":yk[F]===0&&(L="TouchEnd"))}else P.changedTouches&&(N=2);if(N!==null){if(f=N,L.startsWith("Touch")&&N===2||L.startsWith("Mouse")&&N===0)N=null}else yk[F]===2&&(N=f,f=null);if(P=P.changedTouches?
P.changedTouches[0]:P)n=M.getId(n),cx(U)(Object.assign({},{type:yk[L],id:n,x:P.clientX,y:P.clientY},N!==null&&{pointerType:N}))}}};
Object.keys(yk).filter(function(F){return Number.isNaN(Number(F))&&!F.endsWith("_Departed")&&d[F]!==!1}).forEach(function(F){var P=F.toLowerCase(),n=J(F);
if(window.PointerEvent)switch(yk[F]){case 1:case 0:P=P.replace("mouse","pointer");break;case 7:case 9:return}O.push(gJ(P,n,A))});
return cx(function(){O.forEach(function(F){return F()})})};
H3_=function(H){var U=H.scrollCb;var A=H.doc;var M=H.mirror;var W=H.blockClass;var w=H.blockSelector;return gJ("scroll",cx(ag(cx(function(d){var O=Cv(d);O&&!x8(O,W,w,!0)&&(d=M.getId(O),O===A&&A.defaultView?(O=CwN(A.defaultView),U({id:d,x:O.left,y:O.top})):U({id:d,x:O.scrollLeft,y:O.scrollTop}))}),H.sampling.scroll||100)),A)};
UAE=function(H,U){var A=H.viewportResizeCb;var M=-1,W=-1;return gJ("resize",cx(ag(cx(function(){var w=t2E(),d=cLr();if(M!==w||W!==d)A({width:Number(d),height:Number(w)}),M=w,W=d}),200)),U.win)};
WMF=function(H){function U(z){var c=Cv(z),C=z.isTrusted,v=c&&c.tagName;c&&v==="OPTION"&&(c=pv(c));if(!(!c||!v||AM7.indexOf(v)<0||x8(c,d,O,!0)||c.classList.contains(f)||J&&c.matches(J))){var Y=c.value,D=!1;z=HBM(c)||"";if(z==="radio"||z==="checkbox")D=c.checked;else if(F[v.toLowerCase()]||F[z])Y=Qwr({element:c,maskInputOptions:F,tagName:v,type:z,value:Y,maskInputFn:P});A(c,N?{text:Y,isChecked:D,userTriggered:C}:{text:Y,isChecked:D});C=c.name;z==="radio"&&C&&D&&W.querySelectorAll('input[type="radio"][name="'+
C+'"]').forEach(function(h){if(h!==c){var T=h.value;A(h,N?{text:T,isChecked:!D,userTriggered:!1}:{text:T,isChecked:!D})}})}}
function A(z,c){var C=Mfr.get(z);C&&C.text===c.text&&C.isChecked===c.isChecked||(Mfr.set(z,c),z=w.getId(z),cx(M)(Object.assign({},c,{id:z})))}
var M=H.inputCb;var W=H.doc;var w=H.mirror;var d=H.blockClass;var O=H.blockSelector;var f=H.ignoreClass;var J=H.ignoreSelector;var F=H.maskInputOptions;var P=H.maskInputFn;var n=H.sampling;var N=H.userTriggeredOnInput;var L=(n.input==="last"?["change"]:["input","change"]).map(function(z){return gJ(z,cx(U),W)}),m=W.defaultView;
if(!m)return function(){L.forEach(function(z){return z()})};
H=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value");n=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];H&&H.set&&L.push.apply(L,_.vI(n.map(function(z){return zjc(z[0],z[1],{set:function(){cx(U)({target:this,isTrusted:!1})}},!1,m)})));
return cx(function(){L.forEach(function(z){return z()})})};
XRV=function(H){var U=[],A,M,W,w;wR4("CSSGroupingRule")&&((A=H.parentRule)==null?void 0:(M=A.constructor)==null?void 0:M.name)==="CSSGroupingRule"||wR4("CSSMediaRule")&&H.parentRule instanceof CSSMediaRule||wR4("CSSSupportsRule")&&H.parentRule instanceof CSSSupportsRule||wR4("CSSConditionRule")&&((W=H.parentRule)==null?void 0:(w=W.constructor)==null?void 0:w.name)==="CSSConditionRule"?(H=Array.from(H.parentRule.cssRules).indexOf(H),U.unshift(H)):H.parentStyleSheet&&(H=Array.from(H.parentStyleSheet.cssRules).indexOf(H),
U.unshift(H));return U};
Bx=function(H,U,A){var M,W;if(!H)return{};H.ownerNode?M=U.getId(H.ownerNode):W=A.getId(H);return{styleId:W,id:M}};
b34=function(H,U){var A=H.styleSheetRuleCb;var M=H.mirror;var W=H.stylesheetManager;var w=U.win;if(!w.CSSStyleSheet||!w.CSSStyleSheet.prototype)return function(){};
var d=w.CSSStyleSheet.prototype.insertRule;w.CSSStyleSheet.prototype.insertRule=new rJ(d,{apply:cx(function(n,N,L){var m=_.b(L),z=m.next().value;m=m.next().value;var c=Bx(N,M,W.styleMirror),C=c.id;c=c.styleId;(C&&C!==-1||c&&c!==-1)&&A({id:C,styleId:c,adds:[{rule:z,index:m}]});return n.apply(N,L)})});
w.CSSStyleSheet.prototype.addRule=function(n,N,L){L=L===void 0?this.cssRules.length:L;return w.CSSStyleSheet.prototype.insertRule.apply(this,[n+" { "+N+" }",L])};
var O=w.CSSStyleSheet.prototype.deleteRule;w.CSSStyleSheet.prototype.deleteRule=new rJ(O,{apply:cx(function(n,N,L){var m=_.b(L).next().value,z=Bx(N,M,W.styleMirror),c=z.id;z=z.styleId;(c&&c!==-1||z&&z!==-1)&&A({id:c,styleId:z,removes:[{index:m}]});return n.apply(N,L)})});
w.CSSStyleSheet.prototype.removeRule=function(n){return w.CSSStyleSheet.prototype.deleteRule.apply(this,[n])};
if(w.CSSStyleSheet.prototype.replace){var f=w.CSSStyleSheet.prototype.replace;w.CSSStyleSheet.prototype.replace=new rJ(f,{apply:cx(function(n,N,L){var m=_.b(L).next().value,z=Bx(N,M,W.styleMirror),c=z.id;z=z.styleId;(c&&c!==-1||z&&z!==-1)&&A({id:c,styleId:z,replace:m});return n.apply(N,L)})})}if(w.CSSStyleSheet.prototype.replaceSync){var J=w.CSSStyleSheet.prototype.replaceSync;
w.CSSStyleSheet.prototype.replaceSync=new rJ(J,{apply:cx(function(n,N,L){var m=_.b(L).next().value,z=Bx(N,M,W.styleMirror),c=z.id;z=z.styleId;(c&&c!==-1||z&&z!==-1)&&A({id:c,styleId:z,replaceSync:m});return n.apply(N,L)})})}var F={};
i3F("CSSGroupingRule")?F.CSSGroupingRule=w.CSSGroupingRule:(i3F("CSSMediaRule")&&(F.CSSMediaRule=w.CSSMediaRule),i3F("CSSConditionRule")&&(F.CSSConditionRule=w.CSSConditionRule),i3F("CSSSupportsRule")&&(F.CSSSupportsRule=w.CSSSupportsRule));var P={};Object.entries(F).forEach(function(n){var N=_.b(n);n=N.next().value;N=N.next().value;P[n]={insertRule:N.prototype.insertRule,deleteRule:N.prototype.deleteRule};N.prototype.insertRule=new rJ(P[n].insertRule,{apply:cx(function(L,m,z){var c=_.b(z),C=c.next().value;
c=c.next().value;var v=Bx(m.parentStyleSheet,M,W.styleMirror),Y=v.id;v=v.styleId;(Y&&Y!==-1||v&&v!==-1)&&A({id:Y,styleId:v,adds:[{rule:C,index:[].concat(_.vI(XRV(m)),[c||0])}]});return L.apply(m,z)})});
N.prototype.deleteRule=new rJ(P[n].deleteRule,{apply:cx(function(L,m,z){var c=_.b(z).next().value,C=Bx(m.parentStyleSheet,M,W.styleMirror),v=C.id;C=C.styleId;(v&&v!==-1||C&&C!==-1)&&A({id:v,styleId:C,removes:[{index:[].concat(_.vI(XRV(m)),[c])}]});return L.apply(m,z)})})});
return cx(function(){w.CSSStyleSheet.prototype.insertRule=d;w.CSSStyleSheet.prototype.deleteRule=O;f&&(w.CSSStyleSheet.prototype.replace=f);J&&(w.CSSStyleSheet.prototype.replaceSync=J);Object.entries(F).forEach(function(n){var N=_.b(n);n=N.next().value;N=N.next().value;N.prototype.insertRule=P[n].insertRule;N.prototype.deleteRule=P[n].deleteRule})})};
O34=function(H,U){var A=H.mirror;var M=H.stylesheetManager;var W=null;W=U.nodeName==="#document"?A.getId(U):A.getId(og(U));var w,d,O;H=U.nodeName==="#document"?(w=U.defaultView)==null?void 0:w.Document:(d=U.ownerDocument)==null?void 0:(O=d.defaultView)==null?void 0:O.ShadowRoot;var f=(H==null?0:H.prototype)?Object.getOwnPropertyDescriptor(H==null?void 0:H.prototype,"adoptedStyleSheets"):void 0;if(W===null||W===-1||!H||!f)return function(){};
Object.defineProperty(U,"adoptedStyleSheets",{configurable:f.configurable,enumerable:f.enumerable,get:function(){var J;return(J=f.get)==null?void 0:J.call(this)},
set:function(J){var F,P=(F=f.set)==null?void 0:F.call(this,J);if(W!==null&&W!==-1)try{dAE(M,J,W)}catch(n){}return P}});
return cx(function(){Object.defineProperty(U,"adoptedStyleSheets",{configurable:f.configurable,enumerable:f.enumerable,get:f.get,set:f.set})})};
uFc=function(H,U){var A=H.styleDeclarationCb;var M=H.mirror;var W=H.ignoreCSSAttributes;var w=H.stylesheetManager;var d=U.win;var O=d.CSSStyleDeclaration.prototype.setProperty;d.CSSStyleDeclaration.prototype.setProperty=new rJ(O,{apply:cx(function(J,F,P){var n=_.b(P),N=n.next().value,L=n.next().value;n=n.next().value;if(W.has(N))return O.apply(F,[N,L,n]);var m,z=Bx((m=F.parentRule)==null?void 0:m.parentStyleSheet,M,w.styleMirror);m=z.id;z=z.styleId;(m&&m!==-1||z&&z!==-1)&&A({id:m,styleId:z,set:{property:N,
value:L,priority:n},index:XRV(F.parentRule)});return J.apply(F,P)})});
var f=d.CSSStyleDeclaration.prototype.removeProperty;d.CSSStyleDeclaration.prototype.removeProperty=new rJ(f,{apply:cx(function(J,F,P){var n=_.b(P).next().value;if(W.has(n))return f.apply(F,[n]);var N,L=Bx((N=F.parentRule)==null?void 0:N.parentStyleSheet,M,w.styleMirror);N=L.id;L=L.styleId;(N&&N!==-1||L&&L!==-1)&&A({id:N,styleId:L,remove:{property:n},index:XRV(F.parentRule)});return J.apply(F,P)})});
return cx(function(){d.CSSStyleDeclaration.prototype.setProperty=O;d.CSSStyleDeclaration.prototype.removeProperty=f})};
Z3t=function(H){var U=H.mediaInteractionCb;var A=H.blockClass;var M=H.blockSelector;var W=H.mirror;var w=H.sampling;H=H.doc;var d=cx(function(f){return ag(cx(function(J){if((J=Cv(J))&&!x8(J,A,M,!0)){var F=J.currentTime,P=J.volume,n=J.muted,N=J.playbackRate,L=J.loop;U({type:f,id:W.getId(J),currentTime:F,volume:P,muted:n,playbackRate:N,loop:L})}}),w.media||500)}),O=[gJ("play",d(0),H),
gJ("pause",d(1),H),gJ("seeked",d(2),H),gJ("volumechange",d(3),H),gJ("ratechange",d(4),H)];return cx(function(){O.forEach(function(f){return f()})})};
f77=function(H){var U=H.fontCb;H=H.doc;var A=H.defaultView;if(!A)return function(){};
var M=[],W=new WeakMap,w=A.FontFace;A.FontFace=function(d,O,f){var J=new w(d,O,f);W.set(J,{family:d,buffer:typeof O!=="string",descriptors:f,fontSource:typeof O==="string"?O:JSON.stringify(Array.from(new Uint8Array(O)))});return J};
H=Kv(H.fonts,"add",function(d){return function(O){setTimeout(cx(function(){var f=W.get(O);f&&(U(f),W.delete(O))}),0);
return d.apply(this,[O])}});
M.push(function(){A.FontFace=w});
M.push(H);return cx(function(){M.forEach(function(d){return d()})})};
JMc=function(H){var U=H.doc,A=H.mirror,M=H.blockClass,W=H.blockSelector,w=H.selectionCb,d=!0;H=cx(function(){var O=U.getSelection();if(O&&!(d&&(O==null?0:O.isCollapsed))){d=O.isCollapsed||!1;for(var f=[],J=O.rangeCount||0,F=0;F<J;F++){var P=O.getRangeAt(F),n=P.startContainer,N=P.startOffset,L=P.endContainer;P=P.endOffset;x8(n,M,W,!0)||x8(L,M,W,!0)||f.push({start:A.getId(n),startOffset:N,end:A.getId(L),endOffset:P})}w({ranges:f})}});
H();return gJ("selectionchange",H)};
KMM=function(H){var U=H.doc;var A=H.customElementCb;return(H=U.defaultView)&&H.customElements?Kv(H.customElements,"define",function(M){return function(W,w,d){try{A({define:{name:W}})}catch(O){console.warn("Custom element callback failed for "+W)}return M.apply(this,[W,w,d])}}):function(){}};
oGM=function(H,U){var A=H.mutationCb,M=H.mousemoveCb,W=H.mouseInteractionCb,w=H.scrollCb,d=H.viewportResizeCb,O=H.inputCb,f=H.mediaInteractionCb,J=H.styleSheetRuleCb,F=H.styleDeclarationCb,P=H.canvasMutationCb,n=H.fontCb,N=H.selectionCb,L=H.customElementCb;H.mutationCb=function(){var m=_.QY.apply(0,arguments);U.mutation&&U.mutation.apply(U,_.vI(m));A.apply(null,_.vI(m))};
H.mousemoveCb=function(){var m=_.QY.apply(0,arguments);U.mousemove&&U.mousemove.apply(U,_.vI(m));M.apply(null,_.vI(m))};
H.mouseInteractionCb=function(){var m=_.QY.apply(0,arguments);U.mouseInteraction&&U.mouseInteraction.apply(U,_.vI(m));W.apply(null,_.vI(m))};
H.scrollCb=function(){var m=_.QY.apply(0,arguments);U.scroll&&U.scroll.apply(U,_.vI(m));w.apply(null,_.vI(m))};
H.viewportResizeCb=function(){var m=_.QY.apply(0,arguments);U.viewportResize&&U.viewportResize.apply(U,_.vI(m));d.apply(null,_.vI(m))};
H.inputCb=function(){var m=_.QY.apply(0,arguments);U.input&&U.input.apply(U,_.vI(m));O.apply(null,_.vI(m))};
H.mediaInteractionCb=function(){var m=_.QY.apply(0,arguments);U.mediaInteaction&&U.mediaInteaction.apply(U,_.vI(m));f.apply(null,_.vI(m))};
H.styleSheetRuleCb=function(){var m=_.QY.apply(0,arguments);U.styleSheetRule&&U.styleSheetRule.apply(U,_.vI(m));J.apply(null,_.vI(m))};
H.styleDeclarationCb=function(){var m=_.QY.apply(0,arguments);U.styleDeclaration&&U.styleDeclaration.apply(U,_.vI(m));F.apply(null,_.vI(m))};
H.canvasMutationCb=function(){var m=_.QY.apply(0,arguments);U.canvasMutation&&U.canvasMutation.apply(U,_.vI(m));P.apply(null,_.vI(m))};
H.fontCb=function(){var m=_.QY.apply(0,arguments);U.font&&U.font.apply(U,_.vI(m));n.apply(null,_.vI(m))};
H.selectionCb=function(){var m=_.QY.apply(0,arguments);U.selection&&U.selection.apply(U,_.vI(m));N.apply(null,_.vI(m))};
H.customElementCb=function(){var m=_.QY.apply(0,arguments);U.customElement&&U.customElement.apply(U,_.vI(m));L.apply(null,_.vI(m))}};
FMM=function(H,U){U=U===void 0?{}:U;var A=H.doc.defaultView;if(!A)return function(){};
oGM(H,U);var M;H.recordDOM&&(M=jCE(H,H.doc));var W=QCr(H),w=V27(H),d=H3_(H),O=UAE(H,{win:A}),f=WMF(H),J=Z3t(H),F=function(){},P=function(){},n=function(){},N=function(){};
H.recordDOM&&(F=b34(H,{win:A}),P=O34(H,H.doc),n=uFc(H,{win:A}),H.collectFonts&&(N=f77(H)));var L=JMc(H),m=KMM(H),z=[];H=_.b(H.plugins);for(U=H.next();!U.done;U=H.next())U=U.value,z.push(U.observer(U.callback,A,U.options));return cx(function(){tT.forEach(function(C){return C.reset()});
var c;(c=M)==null||c.disconnect();W();w();d();O();f();J();F();P();n();N();L();m();z.forEach(function(C){return C()})})};
wR4=function(H){return typeof window[H]!=="undefined"};
i3F=function(H){return!!(typeof window[H]!=="undefined"&&window[H].prototype&&"insertRule"in window[H].prototype&&"deleteRule"in window[H].prototype)};
P6V=function(H){H=new Uint8Array(H);for(var U="",A=0;A<H.byteLength;A++)U+=String.fromCharCode(H[A]);return btoa(U)};
sat=function(H,U,A){if(H instanceof Array)return H.map(function(W){return sat(W,U,A)});
if(H!==null){if(H instanceof Float32Array||H instanceof Float64Array||H instanceof Int32Array||H instanceof Uint32Array||H instanceof Uint8Array||H instanceof Uint16Array||H instanceof Int16Array||H instanceof Int8Array||H instanceof Uint8ClampedArray)return{rr_type:H.constructor.name,args:[Object.values(H)]};if(H instanceof ArrayBuffer){var M=H.constructor.name;H=P6V(H);return{rr_type:M,base64:H}}if(H instanceof DataView)return{rr_type:H.constructor.name,args:[sat(H.buffer,U,A),H.byteOffset,H.byteLength]};
if(H instanceof HTMLImageElement)return{rr_type:H.constructor.name,src:H.src};if(H instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:H.toDataURL()};if(H instanceof ImageData)return{rr_type:H.constructor.name,args:[sat(H.data,U,A),H.width,H.height]};if(nGV(H,U)||typeof H==="object")return M=H.constructor.name,H=NgM(H,U,A),{rr_type:M,index:H}}return H};
pRh=function(H,U,A,M){for(var W=[],w=_.b(Object.getOwnPropertyNames(U.CanvasRenderingContext2D.prototype)),d=w.next(),O={};!d.done;O={prop$jscomp$58:void 0},d=w.next()){O.prop$jscomp$58=d.value;try{if(typeof U.CanvasRenderingContext2D.prototype[O.prop$jscomp$58]==="function"){var f=Kv(U.CanvasRenderingContext2D.prototype,O.prop$jscomp$58,function(J){return function(F){return function(){var P=_.QY.apply(0,arguments),n=this;x8(this.canvas,A,M,!0)||setTimeout(function(){var N=S98(P,U,n);H(n.canvas,{type:eU["2D"],
property:J.prop$jscomp$58,args:N})},0);
return F.apply(this,P)}}}(O));
W.push(f)}}catch(J){d=zjc(U.CanvasRenderingContext2D.prototype,O.prop$jscomp$58,{set:function(F){return function(P){H(this.canvas,{type:eU["2D"],property:F.prop$jscomp$58,args:[P],setter:!0})}}(O)}),W.push(d)}}return function(){W.forEach(function(J){return J()})}};
LMM=function(H,U,A,M){var W=[];try{var w=Kv(H.HTMLCanvasElement.prototype,"getContext",function(d){return function(O){var f=_.QY.apply(1,arguments);if(!x8(this,U,A,!0)){var J=O==="experimental-webgl"?"webgl":O;"__context"in this||(this.__context=J);M&&["webgl","webgl2"].includes(J)&&(f[0]&&typeof f[0]==="object"?(J=f[0],J.preserveDrawingBuffer||(J.preserveDrawingBuffer=!0)):f.splice(0,1,{preserveDrawingBuffer:!0}))}return d.apply(this,[O].concat(_.vI(f)))}});
W.push(w)}catch(d){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){W.forEach(function(d){return d()})}};
ReE=function(H,U,A,M,W,w){for(var d=[],O=_.b(Object.getOwnPropertyNames(H)),f=O.next(),J={};!f.done;J={prop$jscomp$59:void 0},f=O.next())if(J.prop$jscomp$59=f.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(J.prop$jscomp$59))try{if(typeof H[J.prop$jscomp$59]==="function"){var F=Kv(H,J.prop$jscomp$59,function(P){return function(n){return function(){var N=_.QY.apply(0,arguments),L=n.apply(this,N);NgM(L,w,this);"tagName"in this.canvas&&!x8(this.canvas,M,W,!0)&&(N=
S98(N,w,this),A(this.canvas,{type:U,property:P.prop$jscomp$59,args:N}));return L}}}(J));
d.push(F)}}catch(P){f=zjc(H,J.prop$jscomp$59,{set:function(n){return function(N){A(this.canvas,{type:U,property:n.prop$jscomp$59,args:[N],setter:!0})}}(J)}),d.push(f)}return d};
EG_=function(H,U,A,M){var W=[];W.push.apply(W,_.vI(ReE(U.WebGLRenderingContext.prototype,1,H,A,M,U)));typeof U.WebGL2RenderingContext!=="undefined"&&W.push.apply(W,_.vI(ReE(U.WebGL2RenderingContext.prototype,2,H,A,M,U)));return function(){W.forEach(function(w){return w()})}};
l7K=function(H){var U=H=H===void 0?{}:H,A=U.emit,M=U.checkoutEveryNms,W=U.checkoutEveryNth,w=U.blockClass===void 0?"rr-block":U.blockClass,d=U.blockSelector===void 0?null:U.blockSelector,O=U.ignoreClass===void 0?"rr-ignore":U.ignoreClass,f=U.ignoreSelector===void 0?null:U.ignoreSelector,J=U.maskTextClass===void 0?"rr-mask":U.maskTextClass,F=U.maskTextSelector===void 0?null:U.maskTextSelector,P=U.inlineStylesheet===void 0?!0:U.inlineStylesheet,n=U.maskAllInputs,N=U.maskInputOptions,L=U.slimDOMOptions,
m=U.maskInputFn,z=U.maskTextFn,c=U.hooks,C=U.packFn,v=U.sampling===void 0?{}:U.sampling,Y=U.dataURLOptions===void 0?{}:U.dataURLOptions,D=U.mousemoveWait,h=U.recordDOM===void 0?!0:U.recordDOM,T=U.recordCanvas===void 0?!1:U.recordCanvas,WF=U.recordCrossOriginIframes===void 0?!1:U.recordCrossOriginIframes,dK=U.recordAfter===void 0?H.recordAfter==="DOMContentLoaded"?H.recordAfter:"load":U.recordAfter,SN=U.userTriggeredOnInput===void 0?!1:U.userTriggeredOnInput,o_=U.collectFonts===void 0?!1:U.collectFonts,
PF=U.inlineImages===void 0?!1:U.inlineImages,BF=U.plugins,kc=U.keepIframeSrcFn===void 0?function(){return!1}:U.keepIframeSrcFn,G8=U.ignoreCSSAttributes===void 0?new Set([]):U.ignoreCSSAttributes;
D2=U.errorHandler;var Pr=WF?window.parent===window:!0,Z3=!1;if(!Pr)try{window.parent.document&&(Z3=!1)}catch(qp){Z3=!0}if(Pr&&!A)throw Error("bf");if(!Pr&&!Z3)return function(){};
D!==void 0&&v.mousemove===void 0&&(v.mousemove=D);$8.reset();var Yc=n===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:N!==void 0?N:{password:!0},sz=L===!0||L==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:L==="all",headMetaDescKeywords:L==="all",headTitleMutations:L==="all"}:
L?L:{};ejM();var Ry,oy=0,aY=function(qp){for(var kf=_.b(BF||[]),Oz=kf.next();!Oz.done;Oz=kf.next())Oz=Oz.value,Oz.eventProcessor&&(qp=Oz.eventProcessor(qp));C&&!Z3&&(qp=C(qp));return qp};
lU=function(qp,kf){qp.timestamp=Ip_();var Oz;((Oz=tT[0])==null?0:Oz.isFrozen())&&qp.type!==2&&(qp.type!==3||qp.data.source!==0)&&tT.forEach(function(Fh){return Fh.unfreeze()});
Pr?A==null||A(aY(qp),kf):Z3&&(kf={type:"rrweb",event:aY(qp),origin:window.location.origin,isCheckout:kf},window.parent.postMessage(kf,"*"));qp.type===2?(Ry=qp,oy=0):qp.type!==3||qp.data.source===0&&qp.data.isAttachIframe||(oy++,qp=M&&qp.timestamp-Ry.timestamp>M,(W&&oy>=W||qp)&&mAV(!0))};
var im=function(qp){lU({type:3,data:Object.assign({},{source:0},qp)})},Kh=function(qp){return lU({type:3,
data:Object.assign({},{source:3},qp)})},rK=function(qp){return lU({type:3,
data:Object.assign({},{source:9},qp)})},FB=new gGK({mutationCb:im,
adoptedStyleSheetCb:function(qp){return lU({type:3,data:Object.assign({},{source:15},qp)})}}),T2=new a7h({mirror:$8,
mutationCb:im,stylesheetManager:FB,recordCrossOriginIframes:WF,wrappedEmit:lU});H=_.b(BF||[]);for(U=H.next();!U.done;U=H.next())U=U.value,U.getMirror&&U.getMirror({nodeMirror:$8,crossOriginIframeMirror:T2.crossOriginIframeMirror,crossOriginIframeStyleMirror:T2.crossOriginIframeStyleMirror});var xK=new xAt;ze7=new C6N({recordCanvas:T,mutationCb:rK,win:window,blockClass:w,blockSelector:d,mirror:$8,sampling:v.canvas,dataURLOptions:Y});var Hj=new tfr({mutationCb:im,scrollCb:Kh,bypassOptions:{blockClass:w,
blockSelector:d,maskTextClass:J,maskTextSelector:F,inlineStylesheet:P,maskInputOptions:Yc,dataURLOptions:Y,maskTextFn:z,maskInputFn:m,recordCanvas:T,inlineImages:PF,sampling:v,slimDOMOptions:sz,iframeManager:T2,stylesheetManager:FB,canvasManager:ze7,keepIframeSrcFn:kc,processedNodeManager:xK},mirror:$8});mAV=function(qp){qp=qp===void 0?!1:qp;if(h){lU({type:4,data:{href:window.location.href,width:cLr(),height:t2E()}},qp);FB.reset();Hj.init();tT.forEach(function(Oz){return Oz.lock()});
var kf=xzK({mirror:$8,blockClass:w,blockSelector:d,maskTextClass:J,maskTextSelector:F,inlineStylesheet:P,maskAllInputs:Yc,maskTextFn:z,maskInputFn:m,slimDOM:sz,dataURLOptions:Y,recordCanvas:T,inlineImages:PF,onSerialize:function(Oz){Oz.nodeName==="IFRAME"&&$8.nodeMetaMap.get(Oz)&&cMc(T2,Oz);Dzc(Oz,$8)&&yMV(FB,Oz);Oz&&Fg(Oz)&&BgK(Hj,Fg(Oz),document)},
onIframeLoad:function(Oz,Fh){rMc(T2,Oz,Fh);Oz.contentWindow&&Oz.contentDocument&&ee_(Hj,Oz.contentWindow.Element,Oz.contentDocument)},
onStylesheetLoad:function(Oz,Fh){DAc(FB,Oz,Fh)},
keepIframeSrcFn:kc});kf?(lU({type:2,data:{node:kf,initialOffset:CwN(window)}},qp),tT.forEach(function(Oz){return Oz.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&dAE(FB,document.adoptedStyleSheets,$8.getId(document))):console.warn("Failed to snapshot the document")}};
try{var CU=[],Qh=function(qp){var kf;return cx(FMM)({mutationCb:im,mousemoveCb:function(Oz,Fh){return lU({type:3,data:{source:Fh,positions:Oz}})},
mouseInteractionCb:function(Oz){return lU({type:3,data:Object.assign({},{source:2},Oz)})},
scrollCb:Kh,viewportResizeCb:function(Oz){return lU({type:3,data:Object.assign({},{source:4},Oz)})},
inputCb:function(Oz){return lU({type:3,data:Object.assign({},{source:5},Oz)})},
mediaInteractionCb:function(Oz){return lU({type:3,data:Object.assign({},{source:7},Oz)})},
styleSheetRuleCb:function(Oz){return lU({type:3,data:Object.assign({},{source:8},Oz)})},
styleDeclarationCb:function(Oz){return lU({type:3,data:Object.assign({},{source:13},Oz)})},
canvasMutationCb:rK,fontCb:function(Oz){return lU({type:3,data:Object.assign({},{source:10},Oz)})},
selectionCb:function(Oz){lU({type:3,data:Object.assign({},{source:14},Oz)})},
customElementCb:function(Oz){lU({type:3,data:Object.assign({},{source:16},Oz)})},
blockClass:w,ignoreClass:O,ignoreSelector:f,maskTextClass:J,maskTextSelector:F,maskInputOptions:Yc,inlineStylesheet:P,sampling:v,recordDOM:h,recordCanvas:T,inlineImages:PF,userTriggeredOnInput:SN,collectFonts:o_,doc:qp,maskInputFn:m,maskTextFn:z,keepIframeSrcFn:kc,blockSelector:d,slimDOMOptions:sz,dataURLOptions:Y,mirror:$8,iframeManager:T2,stylesheetManager:FB,shadowDomManager:Hj,processedNodeManager:xK,canvasManager:ze7,ignoreCSSAttributes:G8,plugins:(BF==null?void 0:(kf=BF.filter(function(Oz){return Oz.observer}))==
null?void 0:kf.map(function(Oz){return{observer:Oz.observer,
options:Oz.options,callback:function(Fh){return lU({type:6,data:{plugin:Oz.name,payload:Fh}})}}}))||[]},c)};
$Ah(T2,function(qp){try{CU.push(Qh(qp.contentDocument))}catch(kf){console.warn(kf)}});
var oY=function(){mAV();CU.push(Qh(document))};
document.readyState==="interactive"||document.readyState==="complete"?oY():(CU.push(gJ("DOMContentLoaded",function(){lU({type:0,data:{}});dK==="DOMContentLoaded"&&oY()})),CU.push(gJ("load",function(){lU({type:1,
data:{}});dK==="load"&&oY()},window)));
return function(){CU.forEach(function(qp){try{qp()}catch(kf){String(kf).toLowerCase().includes("cross-origin")||console.warn(kf)}});
xK.destroy();D2=void 0}}catch(qp){console.warn(qp)}};
_.E=function(H,U){U=Mo(A$(U));H.innerHTML=U};
q9c=function(H){var U=GI_;U||(U=Y9V(),U=GI_=_.dG.transpose(U));U=U[H];return typeof U==="string"?U:_.GP(H)};
he_=function(H){H=String(H).toLowerCase();var U=Y9V()[H];return typeof U==="string"?U:_.Y8(H)};
kIh=function(H){H=H.toLowerCase();H=Y9V()[H];return typeof H==="string"?H:null};
Y9V=function(){if(!vGN){for(var H=Object.assign({},Tgt),U=_.b(jac),A=U.next();!A.done;A=U.next())A=A.value,H[A.toLowerCase()]=A;vGN=H}return vGN};
Vft=function(H,U){var A=window.customElements;return A&&A.get(H)||I7c[H]===!0?2:U.name==="HTMLUnknownElement"?1:U.name==="HTMLElement"&&Qa7.test(H)?3:0};
AO4=function(H,U){switch(U){case "innerHTML":return HH8(H)===1?2:null;case "textContent":return H=HH8(H),H===1||H===6?1:null;default:var A,M;return(M=(A=Uy8[H.localName])==null?void 0:A[U])!=null?M:null}};
HH8=function(H){var U=H.localName,A=Vft(U,H.constructor);switch(A){case 0:case 1:return Mc_(U,H);case 3:case 2:return 1;default:_.U$(A,"got an unknown element classification")}};
Mc_=function(H,U){var A=Object.hasOwnProperty.call(WiF,H)?WiF[H]:null;return A!==null?A:Object.hasOwnProperty.call(w08,H)&&U instanceof SVGElement?w08[H]:null};
X0h=function(H,U){return U};
bHt=function(H){return(H=H.split(iHt,2))?{url:H[0],metadata:H[1]}:null};
OHM=function(H){var U=String(H.url).replace(dyr,encodeURIComponent);if(H=H.metadata){dyr.lastIndex=0;if(dyr.test(H))return null;U+=" "+H}return U};
JOM=function(H){function U(J){var F=J.localName;if(!J.getAttribute("is")&&Vft(F,J.constructor)===2){var P;return(P=f)!=null?P:f=document.createElement("polyresinuncustomized")}(J=O[F])||(J=O[F]=document.createElement(F));return J}
var A=H.reportHandler||void 0,M=H.safeTypesBridge||uTt,W=/^$/;if(H=H.allowedIdentifierPrefixes){H=_.b(H);for(var w=H.next();!w.done;w=H.next())W=new RegExp(W.source+"|^"+_.ZH8(w.value))}A&&A(!1,"initResin",null);var d=fAh(W,M,A),O={},f=null;return function(J,F,P){var n=J.nodeType;if(n!==Node.ELEMENT_NODE){if(n===Node.TEXT_NODE){F=J.parentElement;P=!F;if(F&&F.nodeType===Node.ELEMENT_NODE){n=F.localName;var N=Vft(n,F.constructor);switch(N){case 0:case 1:F=Mc_(n,F);P=F===1||F===6;break;case 3:case 2:P=
!0;break;default:_.U$(N,"got an unknown element classification")}}if(P)return function(c){return""+M(c,"STRING",c)}}return function(c){if(!c&&c!==document.all)return c;
A&&A(!0,"Failed to sanitize "+(J.parentElement&&J.parentElement.nodeName)+" #text node to value "+c,J.parentElement);return qj}}var L=J.localName;
n=U(J);var m=null;switch(P){case "attribute":if(he_(F)in n)break;return function(c){return c};
case "property":if(F in n){m=AO4(n,F);break}if((N=kIh(F))&&N in n)break;return function(c){return c};
default:_.U$(P,"got an unknown resin type, expected either 'property' or 'attribute'")}var z=P==="attribute"?F.toLowerCase():q9c(F);m||(m=r0c(L,z,function(c){var C=J.getAttribute(c);return!C||/[\[\{]/.test(c)?null:C}));
return function(c){var C=hT,v=null;if(!c&&c!==document.all)return c;if(m!=null){var Y=d[m],D=Y.safeType;v=Y.safeReplacement;D&&(C=M(c,D,hT));C===hT&&(Y.filterString?(C=String(M(c,"STRING",c)),C=Y.filterString(L,z,C)):Y.filterRaw&&(C=Y.filterRaw(L,z,c,J)),C===v&&(C=hT))}C===hT&&(C=v||qj,A&&A(!0,"Failed to sanitize attribute of <"+L+">: <"+L+" "+z+'="'+c+'">',J));return C}}};
fAh=function(H,U,A){return[,{filterRaw:function(M,W,w){return w},
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:Ki0,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Ki0,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:qj,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:oi7,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(M,W,w){w=
String(w).toLowerCase();return $Ct(M,W,w)?w:qj},
safeReplacement:qj,safeType:void 0},,{filterRaw:void 0,filterString:function(M,W,w){return H.test(w)?w:qj},
safeReplacement:qj,safeType:"CONSTANT"},{filterRaw:function(M,W,w,d){if(typeof w==="string")var O=(O=w.match(Fi0))?O.map(bHt).filter(Boolean):[];else if(Array.isArray(w))O=w;else return Ki0;var f=O;O=[];var J=[],F={};if(Array.isArray(f))for(var P=0,n=f.length;P<n;++P){var N=f[P],L=N&&N.url;if(L){var m=U(L,"URL",F);if(m){var z=m!==F;(z?O:J).push({url:z?m:L,metadata:N.metadata})}}}else J.push(f);f=J.length?JSON.stringify(J):null;J=hT;if(O.length){if(!Array.isArray(O))throw Error();J=O.map(OHM).filter(Boolean).join(" , ")||
hT}f&&A&&A(!0,"Failed to sanitize attribute value of <"+M+">: <"+M+" "+W+'="'+w+'">: '+f,d);return J===hT?Ki0:J},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
Pe4=function(H){var U=JOM(H);return function(A,M,W,w){return w||w===document.all?U(A,M,W)(w):w}};
k8=function(H,U){function A(){function W(O,f,J){for(f=Reflect.getMetadata("parameters",O)||[];f.length<=J;)f.push(null);f[J]=f[J]||[];f[J].push(d);Reflect.defineMetadata(f,O);return O}
var w=_.QY.apply(0,arguments);if(this instanceof A)return M.apply(this,w),this;var d=new (Function.prototype.bind.apply(A,[null].concat(_.vI(w))));W.annotation=d;return W}
var M=sUV(U);A.prototype.toString=function(){return"@"+H};
return A.annotationCls=A};
sUV=function(H){return function(){var U=_.QY.apply(0,arguments),A=this;H.forEach(function(M,W){W=U[W];if(Array.isArray(M))A[M[0]]=W&&W!==void 0?W:M[1];else for(var w in M)A[w]=W&&W[w]!==void 0?W[w]:M[w]})}};
nih=function(H){return H!==void 0&&H!==null};
vx=function(H){if(typeof H==="string")return H;if(H===void 0||H===null)return""+H;if(H.overriddenName)return H.overriddenName;if(H.name)return H.name;H=H.toString();var U=H.indexOf("\n");return U===-1?H:H.substring(0,U)};
N$M=function(H){H.__forward_ref__=N$M;H.toString=function(){return vx(this())};
return H};
TP=function(H){return typeof H==="function"&&H.hasOwnProperty("__forward_ref__")&&H.__forward_ref__===N$M?H():H};
Sgc=function(H){return H?H.map(function(U){return new (Function.prototype.bind.apply(U.type.annotationCls,[null].concat(_.vI(U.args?U.args:[]))))}):[]};
p08=function(H){for(var U=[],A=0;A<H.length;++A){if(U.indexOf(H[A])>-1){U.push(H[A]);break}U.push(H[A])}return U};
LiN=function(H){return H.length>1?" ("+p08(H.slice().reverse()).map(function(U){return vx(U.token)}).join(" -> ")+")":""};
EiF=function(H,U,A,M){if(M){var W=Error("ef``"+(M instanceof Error?M.message:M));W.ngOriginalError=M}else W=Error();W.addKey=RB8;W.keys=[U];W.injectors=[H];W.constructResolvingMessage=A;W.message=W.constructResolvingMessage();W.ngOriginalError=M;return W};
RB8=function(H,U){this.injectors.push(H);this.keys.push(U);this.message=this.constructResolvingMessage()};
my4=function(H,U){return EiF(H,U,function(){return"No provider for "+vx(this.keys[0].token)+"!"+LiN(this.keys)})};
gih=function(H,U){return EiF(H,U,function(){return"Cannot instantiate cyclic dependency!"+LiN(this.keys)})};
aAM=function(H,U,A){return EiF(H,A,function(){var M=vx(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+M+"!"+LiN(this.keys)+"."},U)};
xy_=function(H,U){for(var A=[],M=0,W=U.length;M<W;M++){var w=U[M];w&&w.length!=0?A.push(w.map(vx).join(" ")):A.push("?")}return Error("jf`"+vx(H)+"`"+A.join(", ")+"`"+vx(H))};
rOE=function(H){var U=void 0,A=void 0;if(H&&H.useClass!==void 0){U=H.useClass;var M=TP(H.useClass);var W=zBh.factory(M);M=CeN(M)}else H&&H.useExisting!==void 0?(W=function(w){return w},M=[tct(jU.get(TP(H.useExisting)))]):H&&H.useFactory!==void 0?(W=H.useFactory,M=cOM(H.useFactory,H.deps)):(A=H.useValue,W=function(){return H.useValue},M=yOF);
return new B$7(W,M,U,A)};
Dyt=function(H){return new eBh(jU.get(TP(H.provide)),[rOE(H)],H.multi)};
lAh=function(H){H=$yV(H,[]).map(Dyt);for(var U=new Map,A=0;A<H.length;A++){var M=H[A],W=U.get(M.key.id);if(W){if(M.multiProvider!==W.multiProvider)throw Error("lf`"+W+"`"+M);if(M.multiProvider)for(var w=0;w<M.resolvedFactories.length;w++)W.resolvedFactories.push(M.resolvedFactories[w]);else U.set(M.key.id,M)}else W=void 0,M.multiProvider?W=new eBh(M.key,M.resolvedFactories.slice(),M.multiProvider):W=M,U.set(M.key.id,W)}return Array.from(U.values())};
$yV=function(H,U){H.forEach(function(A){if(A instanceof GF_)U.push({provide:A,useClass:A});else if(A&&typeof A=="object"&&A.provide!==void 0)U.push(A);else if(A instanceof Array)$yV(A,U);else throw Error("hf`"+A);});
return U};
cOM=function(H,U){if(U){var A=U.map(function(M){return[M]});
return U.map(function(M){return Yg0(H,M,A)})}return CeN(H)};
CeN=function(H){var U=zBh.parameters(H);if(!U)return[];if(U.some(function(A){return A==null}))throw xy_(H,U);
return U.map(function(A){return Yg0(H,A,U)})};
Yg0=function(H,U,A){var M=null,W=!1;if(!Array.isArray(U))return U instanceof qgM?hBV(U.token,W,null):hBV(U,W,null);for(var w=null,d=0;d<U.length;++d){var O=U[d];if(O instanceof GF_)M=O;else if(O instanceof qgM)M=O.token;else if(O instanceof kFM)W=!0;else if(O instanceof viK||O instanceof T$8)w=O}M=TP(M);if(M!=null)return hBV(M,W,w);throw xy_(H,A);};
hBV=function(H,U,A){return new jUN(jU.get(TP(H)),U,A)};
IAE=function(H,U){for(var A=Array(H.providers.length),M=0;M<H.providers.length;++M){var W=M;if(M<0||M>=H.providers.length)throw Error("kf`"+M);A[W]=U(H.providers[M])}return A};
QUF=function(H){return typeof H==="function"&&zBh.parameters(H).every(function(U){return!!U})};
U$N=function(H){var U=Vcc;HZE.get(H)||HZE.set(H,new U);return HZE.get(H)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(H){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(H)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(H){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(H)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(H,U){var A,M;if(H.contains(U))return!0;H=_.Ig(H).querySelectorAll("content,slot");for(A=0;A<H.length;++A){var W=_.Ig(H[A]).getDistributedNodes();for(M=0;M<W.length;++M)if(W[M].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(W[M],U))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(H){H.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(H)&&H.preventDefault();H.targetTouches&&(H=H.targetTouches[0],AfV=H.pageX,MQM=H.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 H=0,U=Qk.length;H<U;H++)document.addEventListener(Qk[H],_._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 H=0,U=Qk.length;H<U;H++)document.removeEventListener(Qk[H],_._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(H){var U=_.Ig(H).rootTarget;H.type!=="touchmove"&&WXE!==U&&(WXE=U,wYF=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Ig(H).path));if(!wYF.length)return!0;if(H.type==="touchstart")return!1;H=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(H);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(wYF,H.deltaX,H.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(H){for(var U=[],A=H.indexOf(XYE),M=0;M<=A;M++)if(H[M].nodeType===Node.ELEMENT_NODE){var W=H[M],w=W.style;w.overflow!=="scroll"&&w.overflow!=="auto"&&(w=window.getComputedStyle(W));w.overflow!=="scroll"&&w.overflow!=="auto"||U.push(W)}return U};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(H,U,A){if(U||A)for(var M=Math.abs(A)>=Math.abs(U),W=0;W<H.length;W++){var w=H[W];if(M?A<0?w.scrollTop>0:w.scrollTop<w.scrollHeight-w.clientHeight:U<0?w.scrollLeft>0:w.scrollLeft<w.scrollWidth-w.clientWidth)return w}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(H){var U={deltaX:H.deltaX,deltaY:H.deltaY};"deltaX"in H||("wheelDeltaX"in H&&"wheelDeltaY"in H?(U.deltaX=-H.wheelDeltaX,U.deltaY=-H.wheelDeltaY):"wheelDelta"in H?(U.deltaX=0,U.deltaY=-H.wheelDelta):"axis"in H?(U.deltaX=H.axis===1?H.detail:0,U.deltaY=H.axis===2?H.detail:0):H.targetTouches&&(H=H.targetTouches[0],U.deltaX=AfV-H.pageX,U.deltaY=MQM-H.pageY));return U};
iZ7=function(H){this.element=H;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
d$V=function(H){this.element=H;this.color=window.getComputedStyle(H).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");_.Ig(this.waveContainer).appendChild(this.wave);bZM(this)};
Vk=function(H,U){for(var A in H)if(A.toLowerCase()===U.toLowerCase())return H[A]};
OZ0=function(H,U){for(var A in H)if(A.toLowerCase()===U.toLowerCase()){delete H[A];break}};
ZZK=function(H){H=_.dG.clone(H);for(var U=0;U<uaN.length;++U){var A=uaN[U],M=Vk(H,A);M&&(H["X-Goog-Upload-Header-"+A]=M,OZ0(H,A))}return H};
fl0=function(H){H=_.dG.clone(H);OZ0(H,"X-Goog-Upload-Status")};
KXF=function(H){return Jf8.some(function(U){return U.test(H)})};
sm7=function(H,U){var A;var M=(A=H.formContent)==null?void 0:A.locale;A=M==null?void 0:M.split("-")[0];M=M&&okc.includes(M)?M:A&&okc.includes(A)?A:void 0;M=(M!=null?M:"en").replaceAll("-","_").toLowerCase();var W;H=((W=H.initializationData)==null?0:W.useNightlyRelease)?"nightly":"live";var w;return(U==null?0:(w=U.getEnableAlohaBinarySplit)==null?0:w.call(U))?_.LF(FXc,H):_.LF(PI_,H,M)};
Sxr=function(H,U,A,M){if(nkK&&NS4===U)return nkK;NS4=U;var W=sm7(H,M);return nkK=U.feedbackV2GlobalObject?Promise.resolve(U.feedbackV2GlobalObject):new Promise(function(w,d){var O=_.Q9("SCRIPT");_.J$(O,W);O.onload=function(){U.feedbackV2GlobalObject?w(U.feedbackV2GlobalObject):d(Error("of"))};
O.onerror=function(){d(Error("pf`"+W.toString()))};
A.body.appendChild(O)})};
RZE=function(H,U,A,M){if(pYF&&LXK===U)return pYF;LXK=U;var W=sm7(H,M);return pYF=U.feedbackV2GlobalObject?Promise.resolve(U.feedbackV2GlobalObject):new Promise(function(w,d){var O=_.Q9("SCRIPT");_.J$(O,W);O.onload=function(){U.feedbackV2GlobalObject?w(U.feedbackV2GlobalObject):d(Error("of"))};
O.onerror=function(){d(Error("pf`"+W.toString()))};
A.body.appendChild(O)})};
Ekh=function(H,U,A,M,W){W=W===void 0?!0:W;var w,d,O,f,J;return _.u(function(F){switch(F.nextAddress){case 1:return w=Date.now(),F.yield(Sxr(H,A,M,U),2);case 2:d=F.yieldResult;if(!(W||((f=H.initializationData)==null?0:f.useNightlyRelease)||((J=H.initializationData)==null?0:J.isLocalServer))){O=d.initializeFeedbackClient(H,w,U);F.jumpTo(3);break}return F.yield(d.initializeFeedbackClientAsync(H,w,U),4);case 4:O=F.yieldResult;case 3:return O.initiateAloha(),F.return(O)}})};
m$V=function(H,U,A,M){var W,w,d;return _.u(function(O){if(O.nextAddress==1)return W=Date.now(),O.yield(RZE(H,A,M.document,U),2);if(O.nextAddress!=3)return w=O.yieldResult,O.yield(w.initializeFeedbackClientAsync(H,W,U,M),3);d=O.yieldResult;d.initiateAloha();return O.return(d)})};
gk4=function(H,U,A){var M=!0;M=M===void 0?!0:M;var W,w,d,O,f,J,F,P;return _.u(function(n){W=A||_.Mr;if((w=U)==null?0:(O=(d=w).getEnableAlohaBinarySplit)==null?0:O.call(d)){f=W;if(f.isFormOpened)throw new Hg;f.isFormOpened=!0;H.callbacks=H.callbacks||{};J=H.callbacks.onClose||function(){};
H.callbacks.onClose=function(N){f.isFormOpened=!1;J(N)};
try{return n.return(m$V(H,U,f,W))}catch(N){throw f.isFormOpened=!1,N;}}else{F=W;if(F.isFormOpened)throw new Hg;F.isFormOpened=!0;H.callbacks=H.callbacks||{};P=H.callbacks.onClose||function(){};
H.callbacks.onClose=function(N){F.isFormOpened=!1;P(N)};
try{return n.return(Ekh(H,U,F,W.document,M))}catch(N){throw F.isFormOpened=!1,N;}}_.DO(n)})};
tQt=function(H,U){return _.u(function(A){return A.return(new Promise(function(M,W){Number.isInteger(Number(H))&&Number(H)>0?(W=al7(U!=null?U:"")+"/aloha_form_properties?productId="+H,x$F(W,function(w){w=w.target;var d=null;try{var O=JSON,f=O.stringify;if(w.JSC$10099_xhr_){var J=w.JSC$10099_xhr_.responseText;J.indexOf(")]}'\n")==0&&(J=J.substring(5));var F=_.UH(J)}else F=void 0;d=OUE(zZ0,f.call(O,F))}catch(P){f=new zZ0,F=CIF(),F=_.AP(F,13,!1),F=_.AP(F,14,!0),F=_.AP(F,15,!0),F=_.AP(F,20,!1),d=_.CN(f,
1,F)}M(d)},"GET","",{},2E3,!0)):W(Error("qf`"+H))}))})};
al7=function(H){return KXF(H)?H:"https://www.google.com/tools/feedback"};
rf7=function(H){H=H.match(new RegExp(cf_,"gi"))||[];H=_.b(H);for(var U=H.next();!U.done;U=H.next()){U=U.value;a:{var A=_.b(yfh);for(var M=A.next();!M.done;M=A.next())if(M.value.test(U)){A=!1;break a}A=!0}if(!A)a:{A=_.b(BSc);for(M=A.next();!M.done;M=A.next())if(M.value.test(U)){A=!0;break a}A=!1}if(A)return!0}return!1};
eZh=function(H,U){var A={},M=Object.keys(H);M=_.b(M);for(var W=M.next();!W.done;W=M.next())W=W.value,A[W]=U(W,H[W]);return A};
D$K=function(H){switch(H){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"}};
llK=function(H){if(window.crypto&&window.crypto.getRandomValues)try{var U=Array(H),A=new Uint8Array(H);window.crypto.getRandomValues(A);for(var M=0;M<U.length;M++)U[M]=A[M];return U}catch(w){}U=Array(H);for(A=0;A<H;A++){M=Date.now();for(var W=0;W<M%23;W++)U[A]=Math.random();U[A]=Math.floor(Math.random()*256)}if($$c)for(A=1,M=0;M<$$c.length;M++)U[A%H]^=U[(A-1)%H]/4^$$c.charCodeAt(M),A++;return U};
MZ=function(H){H=llK(H);for(var U=[],A=0;A<H.length;A++)U.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(H[A]&63));return U.join("")};
GVr=function(){var H=_.Mr.ytLoggingDocDocumentNonce_;H||(H=MZ(16),_.eC("ytLoggingDocDocumentNonce_",H));return H};
qxE=function(H){H&&_.Fx("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:YxK,clientScreenNonce:H})};
hZK=function(H){return _.gD("client-screen-nonce-store",{})[H===void 0?0:H]};
kVE=function(H,U){U=U===void 0?0:U;var A=_.gD("client-screen-nonce-store");A||(A={},_.mT("client-screen-nonce-store",A));A[U]=H};
vkM=function(H){H=H===void 0?0:H;return H===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+H};
TSM=function(H){return _.gD(vkM(H===void 0?0:H))};
_.ws=function(H){return(H=TSM(H===void 0?0:H))?new _.Wg({veType:H,youtubeData:void 0,jspbYoutubeData:void 0}):null};
jmE=function(){var H=_.gD("csn-to-ctt-auth-info");H||(H={},_.mT("csn-to-ctt-auth-info",H));return H};
Il0=function(){return Object.values(_.gD("client-screen-nonce-store",{})).filter(function(H){return H!==void 0})};
_.XK=function(H){H=hZK(H===void 0?0:H);if(!H&&!_.xV("USE_CSN_FALLBACK",!0))return null;H||(H="UNDEFINED_CSN");return H?H:null};
VQF=function(H){for(var U=_.b(Object.values(Qm4)),A=U.next();!A.done;A=U.next())if(_.XK(A.value)===H)return!0;return!1};
H$E=function(H,U,A){var M=jmE();(A=_.XK(A))&&delete M[A];U&&(M[H]=U)};
iH=function(H){return jmE()[H]};
_.bH=function(H,U,A,M){A=A===void 0?0:A;if(H!==hZK(A)||U!==_.gD(vkM(A)))if(H$E(H,M,A),kVE(H,A),_.mT(vkM(A),U),U=function(){setTimeout(function(){qxE(H)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(U)}catch(W){U()}else U()};
UJr=function(H,U){U=U===void 0?"":U;var A=[],M;for(M in H)if(H.hasOwnProperty(M)){var W=U!==""?U+"."+M:M;typeof H[M]==="object"?A.push.apply(A,_.vI(UJr(H[M],W))):A.push([W,H[M]])}A.sort();return A};
_.OH=function(H){var U=_.QY.apply(1,arguments);if(!ds(H)||U.some(function(M){return!ds(M)}))throw Error("rf");
U=_.b(U);for(var A=U.next();!A.done;A=U.next())AAV(H,A.value)};
AAV=function(H,U){for(var A in U)if(ds(U[A])){if(A in H&&!ds(H[A]))throw Error("sf");A in H||(H[A]={});AAV(H[A],U[A])}else if(MRh(U[A])){if(A in H&&!MRh(H[A]))throw Error("tf");A in H||(H[A]=[]);WoE(H[A],U[A])}else H[A]=U[A];return H};
WoE=function(H,U){U=_.b(U);for(var A=U.next();!A.done;A=U.next())A=A.value,ds(A)?H.push(AAV({},A)):MRh(A)?H.push(WoE([],A)):H.push(A);return H};
ds=function(H){return typeof H==="object"&&!Array.isArray(H)};
MRh=function(H){return typeof H==="object"&&Array.isArray(H)};
Xc4=function(H){for(var U=_.b(Object.entries(wc_)),A=U.next();!A.done;A=U.next())if(A=_.b(A.value),A.next(),A=A.next().value,A==="SLI_STATUS_"+H)return A;return"SLI_STATUS_UNKNOWN"};
_.uH=function(H,U,A,M){return i$V(H,U,function(){return new _.b$_(H,U,A,M)})};
_.dJN=function(){return _.uH("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
O$r=function(){return _.uH("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
ZH=function(){return _.uH("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
uj7=function(){return _.uH("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
Z$t=function(){return _.uH("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
fJN=function(){return _.uH("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
ogc=function(H){H&&(H.dataset?H.dataset[JAM()]="true":_.oD([_.N2(KoN)],H,"data-loaded","true".toString()))};
Fo7=function(H){return H?H.dataset?H.dataset[JAM()]:H.getAttribute("data-loaded"):null};
JAM=function(){return PYN.loaded||(PYN.loaded="loaded".replace(/\-([a-z])/g,function(H,U){return U.toUpperCase()}))};
_.f1=function(H,U,A){st7(H,U,A===void 0?null:A)};
_.NkV=function(H,U){H&&U&&(H=""+_.vF(U),(H=ngE[H])&&_.$eN(H))};
st7=function(H,U,A){A=A===void 0?null:A;var M=_.S70(typeof H==="string"?H:H.toString()),W=document.getElementById(M),w=W&&Fo7(W),d=W&&!w;w?U&&U():(U&&(w=_.qs(M,U),U=""+_.vF(U),ngE[U]=w),d||(W=pcK(H,M,function(){Fo7(W)||(ogc(W),_.lN7(M),_.jy(function(){_.YBr(M)},0))},A)))};
pcK=function(H,U,A,M){M=M===void 0?null:M;var W=_.Q9("SCRIPT");W.id=U;W.onload=function(){A&&setTimeout(A,0)};
W.onreadystatechange=function(){switch(W.readyState){case "loaded":case "complete":W.onload()}};
M&&W.setAttribute("nonce",M);_.J$(W,typeof H==="string"?_.KW(H):H);H=document.getElementsByTagName("head")[0]||document.body;H.insertBefore(W,H.firstChild);return W};
_.S70=function(H){var U=document.createElement("a");HI(U,H);return"js-"+JP(U.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
LoV=function(H){var U=_.gD("INNERTUBE_HOST_OVERRIDE");U&&(H=String(U)+String(_.$Z(H)));return H};
RUt=function(H){var U={};_.S("json_condensed_response")&&(U.prettyPrint="false");return H=OEK(H,U)};
_.K1=function(H){return DM(H)?"same-origin":"include"};
_.o2=function(H){return DM(H)?"same-origin":"cors"};
FK=function(H,U,A){A=A===void 0?{}:A;H={method:U===void 0?"POST":U,mode:_.o2(H),credentials:_.K1(H)};U={};for(var M=_.b(Object.keys(A)),W=M.next();!W.done;W=M.next())W=W.value,A[W]&&(U[W]=A[W]);Object.keys(U).length>0&&(H.headers=U);return H};
_.Pg=function(H,U){U=U===void 0?{}:U;return"service:"+H+"/"+Object.keys(U).sort().map(function(A){return A+":"+U[A]}).join("/")};
Eg8=function(H){var U,A,M,W;H=(U=_.p(H,_.sH))==null?void 0:(A=U.watchEndpointSupportedOnesieConfig)==null?void 0:(M=A.html5PlaybackOnesieConfig)==null?void 0:(W=M.commonConfig)==null?void 0:W.url;if(!H)return[];U=new _.n1(H);return U.JSC$10335_domain_?["https://"+U.JSC$10335_domain_+"/generate_204"]:[]};
_.aJM=function(){return mJ8()||oO7()||ggc&&NK("version/")?!0:_.gD("EOM_VISITOR_DATA")?!1:!0};
xJ8=function(H){var U=H.docid||H.video_id||H.videoId||H.id;if(U)return U;U=H.raw_player_response;U||(H=H.player_response)&&(U=JSON.parse(H));return U&&U.videoDetails&&U.videoDetails.videoId||null};
zUE=function(H){return H.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
NZ=function(H){return!isNaN(Number(H))&&!_.b7(H)};
_.Sb=function(H,U,A,M){M=M===void 0?!0:M;var W=_.gD("VALID_SESSION_TEMPDATA_DOMAINS",[]),w=_.es(window.location.href);w&&W.push(w);w=_.es(H);if(_.y0(W,w)||!w&&_.XE(H,"/"))if(W=document.createElement("a"),HI(W,H),H=W.href)if(H=_.$Z(H),H=_.lF(H))M&&!U.csn&&(U.itct||U.ved)&&(U=Object.assign({csn:_.XK()},U)),A?(A=parseInt(A,10),isFinite(A)&&A>0&&CYt(H,U,A)):CYt(H,U)};
cAN=function(H){var U=_.gD("VALID_SESSION_TEMPDATA_DOMAINS",[]),A=_.es(window.location.href);A&&U.push(A);A=_.es(H);if(!(_.y0(U,A)||!A&&_.XE(H,"/")))return null;H=_.$Z(H);(H=_.lF(H))?(H=tR8(H),H=(H=_.MK.get(H,void 0)||null)?_.B5(H):{}):H=null;return H};
CYt=function(H,U,A){H=tR8(H);U=U?_.hz(U):"";A=A||5;_.aJM()&&_.WK(H,U,A)};
tR8=function(H){for(var U=_.b(yAc),A=U.next();!A.done;A=U.next())H=_.js(H,A.value);return"ST-"+JP(H).toString(36)};
_.BkM=function(H){if(H.requestFullscreen)H=H.requestFullscreen(void 0);else if(H.webkitRequestFullscreen)H=H.webkitRequestFullscreen();else if(H.mozRequestFullScreen)H=H.mozRequestFullScreen();else if(H.msRequestFullscreen)H=H.msRequestFullscreen();else if(H.webkitEnterFullscreen)H=H.webkitEnterFullscreen();else return Promise.reject(Error("Cf"));return H instanceof Promise?H:Promise.resolve()};
_.R2=function(H){var U;_.meN(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.L1()==H&&(U=document):U=H;if(U&&(H=_.meN(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],U))){H.call(U)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.L1=function(){var H=H===void 0?!1:H;var U=_.meN(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(H)for(;U&&U.shadowRoot;)U=U.shadowRoot.fullscreenElement;return U?U:null};
_.EH=function(H,U){U=U===void 0?!0:U;H.addEventListener("wheel",rA8);H.overscrollConfig={cooldown:U}};
_.mJ=function(H){H.overscrollConfig=void 0;H.removeEventListener("wheel",rA8)};
rA8=function(H){var U=H.deltaY,A=H.target,M=null;if(window.Polymer&&window.Polymer.Element){if(A=H.path||H.composedPath&&H.composedPath()){A=_.b(A);for(var W=A.next();!W.done&&(W=W.value,!eUN(W,U));W=A.next())if(W.overscrollConfig){M=W;break}}}else for(;A&&!eUN(A,U);){if(A.overscrollConfig){M=A;break}A=A.parentElement}M&&(U=M.overscrollConfig,U.cooldown?(M=H.deltaY,A=U.lastDeltaY||0,U.lastDeltaY=M,W=U.lastStopped||0,A&&W&&A>0==M>0?Math.abs(A)>=Math.abs(M)?(M=W+1200,A=!1):(M=W+600,A=!0):(M=Date.now()+
600,A=!0),M>Date.now()&&(H.preventDefault(),A&&(U.lastStopped=Date.now()))):H.preventDefault())};
eUN=function(H,U){return U<0&&H.scrollTop>0||U>0&&H.scrollTop<H.scrollHeight-H.clientHeight-1?(H=getComputedStyle(H).overflowY,H=="auto"||H=="scroll"):!1};
DJM=function(H){gs.initialized=!0;gs.sessionId=H.sessionId||"";gs.enabledSpans=H.enabledSpans;H.shouldSampleFn!=null&&(gs.shouldSampleFn=H.shouldSampleFn)};
$Jt=function(H){gs.processors.push(H)};
a2=function(H){return gs.initialized?gs.enabledSpans?gs.enabledSpans[H]:!0:!1};
q78=function(H,U,A){return a2(H)&&gs.shouldSampleFn(H,U,lJc)?new GJr(H,U,A):Y7r};
C1=function(H,U,A){if(typeof A==="function"){var M=A;A=void 0}var W=q78(H,U,A),w;if(((w=A)==null?void 0:w.endTime)!=null)return M&&_.Na(Error("Ef")),W;var d;W!==Y7r&&((d=A)==null?void 0:d.active)!==!1&&gs.stack.push(W);if(!M)return W;if(W===Y7r)return M(W);try{var O=M(W);if(O instanceof Promise)return O.then(function(f){W.end();return f},function(f){W.end("SPAN_STATUS_ERROR");
throw f;});
W.end();return O}catch(f){throw W.end("SPAN_STATUS_ERROR"),f;}};
hUr=function(){L5.subscribe("handleError",function(H){try{for(var U in tP)try{var A=tP[U];typeof tP[U]==="function"&&(A=A());H.params[U]=typeof tP[U]==="object"?JSON.stringify(A):String(A)}catch(M){_.Na(M)}}catch(M){_.Na(M)}})};
kJr=function(){};
vgM=function(H){var U=H.nodeName;if(H.id)return U+="#"+H.id;if(H.classList)for(var A=_.b(H.classList),M=A.next();!M.done;M=A.next())U+="."+M.value;H.parentElement&&(U=vgM(H.parentElement)+" > "+U);return U};
_.cg=function(H,U,A,M){M||(M={bubbles:!0,cancelable:!1,composed:!0});A!==null&&A!==void 0&&(M.detail=A);var W=new CustomEvent(U,M);_.S("untrack_fire_custom_event_killswitch")?H.dispatchEvent(W):_.X$(function(){return void H.dispatchEvent(W)});
return W};
TkM=function(H){var U=window,A=function(M){U.removeEventListener("yt-navigate-start",A);return H.call(U,M)};
U.addEventListener("yt-navigate-start",A,void 0)};
_.yr=function(H,U,A,M){M=M===void 0?!1:M;return C1("ytAction",{name:U,nodepath:vgM(H)},function(){var W=new jtr(U,!!M,A);_.cg(H,"yt-action",W);return W.returnValue})};
_.Bg=function(H,U,A){return _.yr(H,U,A,!0)};
_.eb=function(H,U,A,M){U&&U.length&&U.forEach(function(W){var w=pqh(W);w&&(_.S("handle_service_request_actions")&&W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.sendPost?_.rs(A?A:H,[W]):_.Bg(H,w,[W,A,M]))})};
_.rs=function(H,U){var A=[H];U&&A.push.apply(A,U);U=_.yr(H,"yt-service-request",A);return U.length>0&&(U=U[0],_.cg(H,"yt-service-request-sent",U),U&&U.ajaxPromise)?(U.ajaxPromise.then(function(M){_.cg(H,"yt-service-request-completed",M)},function(M){_.cg(H,"yt-service-request-error",{error:M,
params:A})},H),U.ajaxPromise):_.DH()};
_.lH=function(H,U){if(_.S("handle_service_request_actions"))_.eb(U,H,U);else{H=_.b(H);for(var A=H.next();!A.done;A=H.next()){A=A.value;var M=void 0;((M=_.p(A,_.$2))==null?0:M.commands)?_.lH(_.p(A,_.$2).commands,U):(M=void 0,((M=_.p(A,_.GR))==null?0:M.actions)?_.lH(_.p(A,_.GR).actions,U):(M=void 0,((M=_.p(A.commandMetadata,_.Y2))==null?0:M.sendPost)?_.rs(U,[A]):_.eb(U,[A],U)))}}};
_.Qt8=function(H,U,A){U=U===void 0?{}:U;typeof U==="function"&&(U={callback:U});A||U._c&&U._c.jsl&&U._c.jsl.h||_.dG.extend(U,{_c:{jsl:{h:_.gD("GAPI_HINT_PARAMS")}}});(U.gapiHintOverride||_.gD("GAPI_HINT_OVERRIDE"))&&(A=_.rD(document.location.href).gapi_jsh)&&_.dG.extend(U,{_c:{jsl:{h:A}}});IJN(H,U)};
_.hP=function(H,U,A){U=U===void 0?{}:U;H=(H=H in qZ?qZ[H]:A)||"";A={};for(var M in U){A={key$jscomp$855:A.key$jscomp$855};A.key$jscomp$855=M;var W=function(w){return function(){return String(U[w.key$jscomp$855])}}(A);
H=H.replace(new RegExp("\\$\\{"+A.key$jscomp$855+"\\}","gi"),W);H=H.replace(new RegExp("\\$"+A.key$jscomp$855,"gi"),W)}return H};
_.k2=function(H,U){return VR0(H in qZ?qZ[H]:{},U)};
VR0=function(H,U){var A=_.gD("I18N_PLURAL_RULES");A||(A=function(M){return M==1?"one":"other"});
return(H=H["case"+U]||H[A(U)])?H.replace("#",U.toString()):U+""};
Aqc=function(H){var U=H9_(H),A=document.getElementById(U),M=A&&Fo7(A);M||A&&!M||(A=U5F(H,U,function(){if(!Fo7(A)){ogc(A);_.lN7(U);var W=_.vg(_.YBr,U);_.jy(W,0)}}))};
U5F=function(H,U,A){var M=document.createElement("link");M.id=U;M.onload=function(){A&&setTimeout(A,0)};
H=_.KW(H);_.FP(M,H,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(M);return M};
H9_=function(H){var U=_.Q9("A");HI(U,Y5(H));return"css-"+JP(U.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.WB0=function(H){var U=MZc();H!==U&&(U=_.TR(),!_.S("web_autonav_allow_off_by_default")&&H||_.jb(0,141,!0),_.jb(0,140,!H),U.save())};
MZc=function(){var H=_.TR();return _.S("web_autonav_allow_off_by_default")&&!H.getFlag(141)&&_.gD("AUTONAV_OFF_BY_DEFAULT")?!1:!H.getFlag(140)};
wdc=function(H,U){var A,M;H=((A=H.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(M=A.videoAuthorizationToken)==null?void 0:M.credentialTransferTokens)||[];for(A=0;A<H.length;++A)if(H[A].scope===U)return H[A].token||void 0};
Xdc=function(H){for(var U=0,A=0;A<H.length;A++)U=U*31+H.charCodeAt(A),A<H.length-1&&(U%=0x800000000000);return U%1E5};
_.I2=function(H){return _.tr("ytcsi."+(H||"")+"data_")||i97(H)};
_.b9c=function(H){H=_.I2(H);H.metadata||(H.metadata={});return H.metadata};
_.d5M=function(H){H=_.I2(H);H.tick||(H.tick={});return H.tick};
_.Qr=function(H){H=_.I2(H);if(H.gel){var U=H.gel;U.gelInfos||(U.gelInfos={});U.gelTicks||(U.gelTicks={})}else H.gel={gelTicks:{},gelInfos:{}};return H.gel};
_.O90=function(H){H=_.Qr(H);H.gelInfos||(H.gelInfos={});return H.gelInfos};
uX8=function(H){var U=_.I2(H).nonce;U||(U=MZ(16),_.I2(H).nonce=U);return U};
i97=function(H){var U={tick:{},info:{}};_.eC("ytcsi."+(H||"")+"data_",U);return U};
Z9V=function(){var H=_.tr("ytcsi.debug");H||(H=[],_.eC("ytcsi.debug",H),_.eC("ytcsi.reference",{}));return H};
_.Vr=function(H){H=H||"";var U=f4c();if(U[H])return U[H];var A=Z9V(),M={timerName:H,info:{},tick:{},span:{},jspbInfo:[]};A.push(M);return U[H]=M};
JqF=function(H){H=H||"";var U=f4c();U[H]&&delete U[H];var A=Z9V(),M={timerName:H,info:{},tick:{},span:{},jspbInfo:[]};A.push(M);U[H]=M};
f4c=function(){var H=_.tr("ytcsi.reference");if(H)return H;Z9V();return _.tr("ytcsi.reference")};
_.o6M=function(H){return KB4[H]||"LATENCY_ACTION_UNKNOWN"};
n6E=function(H,U,A){A=A===void 0?{}:A;var M=!1;_.xV("ytLoggingEventsDefaultDisabled",!1)&&(M=!0);M=M?null:o1;A=A===void 0?{}:A;var W=Math.round(A.timestamp||(0,_.lD)());_.Xx(U,1,W<Number.MAX_SAFE_INTEGER?W:0);W=new FBN;if(A.lact)_.Xx(W,1,isFinite(A.lact)?A.lact:-1);else if(A.timestamp)_.Xx(W,1,-1);else{var w=_.$B();_.Xx(W,1,isFinite(w)?w:-1)}if(A.sequenceGroup&&!_.S("web_gel_sequence_info_killswitch")){w=A.sequenceGroup;var d=QLt(w),O=new P17;_.Xx(O,2,d);_.Mu(O,1,w);_.CN(W,3,O);A.endOfSequence&&delete szV[A.sequenceGroup]}_.CN(U,
33,W);(A.sendIsolatedPayload?Xo8:iyr)(H,{endpoint:"log_event",payload:U,cttAuthInfo:A.cttAuthInfo,dangerousLogToVisitorSession:A.dangerousLogToVisitorSession},M)};
_.NI0=function(H,U){_.HO("_start",H,U)};
_.Un=function(H,U){if(!_.S("web_csi_action_sampling_enabled")||!_.I2(U).actionDisabled){var A=_.Vr(U||"");_.OH(A.info,H);H.loadType&&(A=H.loadType,_.b9c(U).loadType=A);_.OH(_.O90(U),H);A=uX8(U);U=_.I2(U).cttAuthInfo;SCN().info(H,A,U)}};
pdM=function(){var H,U,A,M;return((M=_.lx().resolve(_.$V(du))==null?void 0:(H=uM())==null?void 0:(U=H.loggingHotConfig)==null?void 0:(A=U.csiConfig)==null?void 0:A.debugTicks)!=null?M:[]).map(function(W){return Object.values(W)[0]})};
_.HO=function(H,U,A){if(!_.S("web_csi_action_sampling_enabled")||!_.I2(A).actionDisabled){var M=uX8(A),W;if(W=_.S("web_csi_debug_sample_enabled")&&M){(_.lx().resolve(_.$V(du))==null?0:uM())&&!LBN&&(LBN=!0,_.HO("gcfl",(0,_.lD)(),A));var w,d,O;W=(_.lx().resolve(_.$V(du))==null?void 0:(w=uM())==null?void 0:(d=w.loggingHotConfig)==null?void 0:(O=d.csiConfig)==null?void 0:O.debugSampleWeight)||0;if(w=W!==0)b:{w=pdM();if(w.length>0)for(d=0;d<w.length;d++)if(H===w[d]){w=!0;break b}w=!1}w?(W=Xdc(M)%W!==0,
_.I2(A).debugTicksExcludedLogged||(w={},w.debugTicksExcluded=W,_.Un(w,A)),_.I2(A).debugTicksExcludedLogged=!0):W=!1}if(!W){H[0]!=="_"&&Rf_(H,A,U);W=_.Vr(A||"");W.tick[H]=U||(0,_.lD)();if(W.callback&&W.callback[H])for(W=_.b(W.callback[H]),w=W.next();!w.done;w=W.next())w=w.value,w();W=_.Qr(A);W.gelTicks&&(W.gelTicks[H]=!0);w=_.d5M(A);W=U||(0,_.lD)();w[H]=W;w=_.I2(A).cttAuthInfo;H==="_start"?SCN().baseline(M,U,w):SCN().tick(H,M,U,w);_.E6t(A);return W}}};
Rf_=function(H,U,A){if(_.Aw.mark)if(H.startsWith("mark_")||(H="mark_"+H),U&&(H+=" ("+U+")"),A===void 0||_.S("web_csi_disable_alt_time_performance_mark"))_.Aw.mark(H);else{A=_.S("csi_use_performance_navigation_timing")?A-_.Aw.timeOrigin:A-(_.Aw.timeOrigin||_.Aw.timing.navigationStart);try{_.Aw.mark(H,{startTime:A})}catch(M){}}};
m50=function(){var H,U=(H=_.Aw.getEntriesByType)==null?void 0:H.call(_.Aw,"mark");U&&U.forEach(function(A){if(A.name.startsWith("mark_")){var M;(M=_.Aw.clearMarks)==null||M.call(_.Aw,A.name)}})};
_.g6N=function(H){var U={},A=function(w,d,O){d=d.match("_rid")?d.split("_rid")[0]:d;typeof O==="number"&&(O=JSON.stringify(O));w.requestIds?w.requestIds.push({endpoint:d,id:O}):w.requestIds=[{endpoint:d,id:O}]};
H=_.b(Object.entries(H));for(var M=H.next();!M.done;M=H.next()){var W=_.b(M.value);M=W.next().value;W=W.next().value;switch(M){case "GetBrowse_rid":A(U,M,W);break;case "GetGuide_rid":A(U,M,W);break;case "GetHome_rid":A(U,M,W);break;case "GetPlayer_rid":A(U,M,W);break;case "GetSearch_rid":A(U,M,W);break;case "GetSettings_rid":A(U,M,W);break;case "GetTrending_rid":A(U,M,W);break;case "GetWatchNext_rid":A(U,M,W);break;case "yt_red":U.isRedSubscriber=!!W;break;case "yt_ad":U.isMonetized=!!W}}return U};
_.a40=function(H){var U=_.MY("aft",H);if(U)return U;U=_.gD((H||"")+"TIMING_AFT_KEYS",["ol"]);for(var A=U.length,M=0;M<A;M++){var W=_.MY(U[M],H);if(W)return W}return NaN};
_.x5K=function(H,U){_.eC("ytglobal.timing"+(U||"")+"ready_",H)};
_.MY=function(H,U){if(H=_.d5M(U)[H])return typeof H==="number"?H:H[H.length-1]};
_.E6t=function(H){var U=_.MY("_start",H),A=_.a40(H),M=!zft;U&&A&&M&&(UDc(C1F,new tZ4(Math.round(A-U),H)),zft=!0)};
yqc=function(H){i97(H);cq7();m50();H||(_.gD("TIMING_ACTION")&&_.mT("PREVIOUS_ACTION",_.gD("TIMING_ACTION")),_.mT("TIMING_ACTION",""))};
_.BI0=function(H){H=H===void 0?{}:H;_.CA(function(){WO();JqF();yqc();_.x5K(!1);H.cttAuthInfo&&(_.I2().cttAuthInfo=H.cttAuthInfo);_.mT("TIMING_AFT_KEYS",[]);H.isHot?_.wH({loadType:"hot"}):_.wH({loadType:"warm"});_.mT("TIMING_ACTION","");delete _.gD("TIMING_INFO",{}).yt_lt;_.CA(_.NI0)(H.startTime,void 0)})()};
_.ia=function(H,U,A,M){U=U===void 0?{}:U;_.CA(function(){var W=A?A:H;X_(W);var w=U.sampleRate;if(!_.S("web_csi_action_sampling_enabled")||w===void 0||w<=1)w=!1;else{var d=uX8(W);w=Xdc(d)%w!==0}w&&(_.I2(W).actionDisabled=!0);_.Vr(W||"").info.actionType=H;U.cttAuthInfo&&(_.I2(W).cttAuthInfo=U.cttAuthInfo);_.mT(W+"TIMING_ACTION",H);_.CA(_.NI0)(U.startTime,W);w={actionType:M||_.o6M(H)};U.logPreviousAction&&(w.previousAction=_.o6M(_.gD("TIMING_ACTION")));(d=_.XK())&&d!=="UNDEFINED_CSN"&&(w.clientScreenNonce=
d);_.wH(w,W);_.x5K(!0,W)})()};
X_=function(H){_.CA(function(){WO(H);JqF(H);yqc(H)})()};
rqF=function(){_.CA(function(){var H=[],U;for(U in _.tr("ytcsi.".slice(0,-1)))U.endsWith("data_")&&H.push(U.slice(0,-5));H=_.b(H);for(U=H.next();!U.done;U=H.next())X_(U.value);WO()})()};
_.D5N=function(H){return _.CA(function(){return _.eft("_start",H)})()};
_.wH=function(H,U,A){_.CA(_.Un)(H,U,A===void 0?!1:A)};
_.ba=function(H,U,A){return _.CA(_.HO)(H,U,A)};
_.eft=function(H,U){return _.CA(function(){var A=_.d5M(U);return H in A})()};
l40=function(H){if(!_.S("universal_csi_network_ticks"))return"";H=_.DU(H)||"";for(var U=Object.keys($5K),A=0;A<U.length;A++){var M=U[A];if(H.includes(M))return M}return""};
YCM=function(H){if(!_.S("universal_csi_network_ticks"))return function(){};
var U=$5K[H];return U?(_.dH(U),function(){var A=_.S("universal_csi_network_ticks")?(A=G1V[H])?_.dH(A):!1:!1;return A}):function(){}};
_.dH=function(H,U,A){return _.CA(function(){if(_.eft(H,A))return!1;_.ba(H,U,A);return!0})()};
_.On=function(H,U,A){_.CA(function(){if(!_.D5N(A)||_.eft(H,A))return!1;_.ba(H,U,A);return!0})()};
_.ua=function(H){return _.CA(_.MY)(H,void 0)};
WO=function(H){_.D5N(H)&&_.ba("aa",void 0,H)};
_.TIE=function(H,U,A,M,W,w,d,O,f,J){var F=qCK();w=new _.Wg({veType:U,youtubeData:w,jspbYoutubeData:O});J=Z$({automatedLogEventSource:J},F);W&&(J.cttAuthInfo=W);W={csn:F,pageVe:w.getAsJson()};_.S("expectation_logging")&&f&&f.screenCreatedLoggingExpectations&&(W.screenCreatedLoggingExpectations=f.screenCreatedLoggingExpectations);A&&A.visualElement?(W.implicitGesture={parentCsn:A.clientScreenNonce,gesturedVe:A.visualElement.getAsJson()},d&&(W.implicitGesture.gestureType=d)):A&&_.Na(new _.bD("newScreen() parent element does not have a VE - rootVe",
U));M&&(W.cloneCsn=M);H?f5("screenCreated",W,H,J):_.Fx("screenCreated",W,J);UDc(beK,new hf_(F));fE.clear();k1t.clear();v6V.clear();return F};
Jw=function(H,U,A,M,W,w){w=w===void 0?{}:w;jzF(H,U,A,[M],W===void 0?!1:W,w)};
jzF=function(H,U,A,M,W,w){W=W===void 0?!1:W;w=w===void 0?{}:w;Object.assign(w,Z$({cttAuthInfo:iH(U)||void 0},U));for(var d=_.b(M),O=d.next();!O.done;O=d.next()){O=O.value;var f=O.getAsJson();(_.dG.isEmpty(f)||!f.trackingParams&&!f.veType)&&_.Na(Error("Gf"));if(_.S("no_client_ve_attach_unless_shown")){var J=I4V(O,U);if(f.veType&&!k1t.has(J)&&!v6V.has(J)&&!W){if(!_.S("il_attach_cache_limit")||fE.size<1E3){fE.set(J,[H,U,A,O]);return}_.S("il_attach_cache_limit")&&fE.size>1E3&&_.Na(new _.bD("IL Attach cache exceeded limit"))}O=
I4V(A,U);fE.has(O)?Qzc(A,U):v6V.set(O,!0)}}M=M.filter(function(F){F.csn!==U?(F.csn=U,F=!0):F=!1;return F});
A={csn:U,parentVe:A.getAsJson(),childVes:_.OA(M,function(F){return F.getAsJson()})};
U==="UNDEFINED_CSN"?KE("visualElementAttached",w,A):H?f5("visualElementAttached",A,H,w):_.Fx("visualElementAttached",A,w)};
HJF=function(H,U,A,M,W,w,d){VZt(H,U,A,W,d)};
VZt=function(H,U,A,M,W){UEM(A,U);W=Z$({cttAuthInfo:iH(U)||void 0,automatedLogEventSource:W},U);A={csn:U,ve:A.getAsJson(),eventType:1};M&&(A.clientData=M);U==="UNDEFINED_CSN"?KE("visualElementShown",W,A):H?f5("visualElementShown",A,H,W):_.Fx("visualElementShown",A,W)};
Ah0=function(H,U,A,M){UEM(A,U);var W=Z$({cttAuthInfo:iH(U)||void 0,automatedLogEventSource:void 0},U);A={csn:U,ve:A.getAsJson(),eventType:4};M&&(A.clientData=M);U==="UNDEFINED_CSN"?KE("visualElementShown",W,A):H?f5("visualElementShown",A,H,W):_.Fx("visualElementShown",A,W)};
M4V=function(H,U,A,M,W,w){var d=(M=M===void 0?!1:M)?16:8;M=Z$({cttAuthInfo:iH(U)||void 0,endOfSequence:M,automatedLogEventSource:w},U);A={csn:U,ve:A.getAsJson(),eventType:d};W&&(A.clientData=W);U==="UNDEFINED_CSN"?KE("visualElementHidden",M,A):H?f5("visualElementHidden",A,H,M):_.Fx("visualElementHidden",A,M)};
wbV=function(H,U,A,M,W,w){Wgc(H,U,A,void 0,M,W,w)};
Wgc=function(H,U,A,M,W,w,d){UEM(A,U);M=M||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";w=Z$({cttAuthInfo:iH(U)||void 0,automatedLogEventSource:d},U);A={csn:U,ve:A.getAsJson(),gestureType:M};W&&(A.clientData=W);U==="UNDEFINED_CSN"?KE("visualElementGestured",w,A):H?f5("visualElementGestured",A,H,w):_.Fx("visualElementGestured",A,w)};
XbE=function(H,U,A,M){var W=Z$({cttAuthInfo:iH(U)||void 0},U);A={csn:U,ve:A.getAsJson(),clientData:M};U==="UNDEFINED_CSN"?KE("visualElementStateChanged",W,A):H?f5("visualElementStateChanged",A,H,W):_.Fx("visualElementStateChanged",A,W)};
iJ_=function(){var H=llK(16);for(var U=[],A=0;A<H.length;A++)U.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(H[A]&63));return U.join("")};
KE=function(H,U,A){bJ0.push({payloadName:H,payload:A,jspbPayload:void 0,options:U});dEc||(dEc=Oer())};
ier=function(H){if(bJ0){for(var U=_.b(bJ0),A=U.next();!A.done;A=U.next())A=A.value,A.payload&&(A.payload.csn=H.csn,_.Fx(A.payloadName,A.payload,A.options));bJ0.length=0}dEc=0};
I4V=function(H,U){return""+H.getAsJson().veType+H.getAsJson().veCounter+U};
UEM=function(H,U){if(_.S("no_client_ve_attach_unless_shown")){var A=I4V(H,U);k1t.set(A,!0);Qzc(H,U)}};
Qzc=function(H,U){H=I4V(H,U);fE.has(H)&&(U=fE.get(H)||[],Jw(U[0],U[1],U[2],U[3],!0),fE.delete(H))};
Z$=function(H,U){_.S("log_sequence_info_on_gel_web")&&(H.sequenceGroup=U);return H};
_.ou=function(H,U,A){_.CA(Jw)(void 0,H,U,A)};
_.F_=function(H,U,A){_.CA(jzF)(void 0,H,U,A)};
_.PO=function(H,U){_.CA(HJF)(void 0,H,U,void 0,void 0,void 0)};
_.sn=function(H,U,A){_.CA(function(){_.yW(U,function(M){Ah0(void 0,H,M,A)})})()};
_.nE=function(H,U,A,M){_.CA(function(){_.yW(U,function(W){M4V(void 0,H,W,A,M)})})()};
_.NY=function(H,U,A){_.CA(wbV)(void 0,H,U,A,void 0)};
_.S9=function(H,U,A,M){_.CA(Wgc)(void 0,H,U,A,M,void 0)};
_.pE=function(H,U,A){_.CA(XbE)(void 0,H,U,A,void 0)};
OJc=function(H,U){LE.set(H,U)};
u48=function(H,U){var A=Object.keys(H);H=new _.bD("[Command Handler] "+U,{filteredCommandNames:A,originalCommand:H});_.sD(H)};
ZJr=function(H,U){u48(H,U+" was called but not set")};
f1V=function(H){return function(){return new H}};
Ru=function(H){return function(){return _.lx().resolve(H)}};
JhK=function(H,U){var A=_.p(H,_.ED);if(A&&(A=U[A.signal]))return A();H=_.b(Object.keys(H));for(A=H.next();!A.done;A=H.next())if(A=A.value,U[A]&&(A=U[A]))return A()};
_.En=function(H,U,A,M){return{browseEndpoint:{browseId:H},commandMetadata:{webCommandMetadata:{url:U,rootVe:A,webPageType:M===void 0?"WEB_PAGE_TYPE_BROWSE":M}}}};
Kg7=function(H,U,A){var M=U=U===void 0?0:U;A=A===void 0?0:A;var W=A-M;return _.mb(H,"PPSV",void 0,void 0,(W>600?0:W<60||A<=0||M/A>.9)?0:U)};
_.mb=function(H,U,A,M,W){var w="/watch?v="+H;H={videoId:H};U&&(H.playlistId=U,w+="&list="+U);M&&(w+="&pp="+M);W&&(H.startTimeSeconds=W,w+="&t="+W+"s");U={watchEndpoint:H,commandMetadata:{webCommandMetadata:{url:w,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};A&&(U.clickTrackingParams=A);M&&(_.p(U,_.sH).playerParams=M);return U};
oyE=function(H){return{browseEndpoint:{browseId:"VL"+H},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+H,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
Fg8=function(H){if(H){var U;if(H){var A=(U=_.p(H.commandMetadata,_.Y2))==null?void 0:U.url;U=!(!A||A==="/service_ajax")}else U=!1;if(U)return H;var M;if(H=(M=_.p(H,_.$2))==null?void 0:M.commands)for(M=_.b(H),H=M.next();!H.done;H=M.next())if(H=Fg8(H.value))return H}};
_.gH=function(H){return{runs:[{text:H}]}};
PKc=function(H,U){return H&&U?{runs:[{text:H,navigationEndpoint:U}]}:void 0};
au=function(H){return H?_.gH(H):void 0};
_.xU=function(H){return H?{simpleText:H}:void 0};
_.zQ=function(H){var U=H.type;H=H.payload;U={type:U};H!==void 0&&(U.payload=H);return U};
sfc=function(H,U,A){for(var M=Object.assign({},H),W=_.b(Object.keys(U)),w=W.next();!w.done;w=W.next()){w=w.value;var d=H[w],O=U[w];if(O===void 0)delete M[w];else if(d===void 0)M[w]=O;else if(Array.isArray(O)&&Array.isArray(d))M[w]=A?[].concat(_.vI(d),_.vI(O)):O;else if(!Array.isArray(O)&&_.ht(O)&&!Array.isArray(d)&&_.ht(d))M[w]=sfc(d,O,A);else if(typeof O===typeof d)M[w]=O;else return U=new _.bD("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:w,originalValue:d,updateValue:O}),
_.sD(U),H}return M};
SYM=function(H){if(!H.length)return"";try{if(nyM)return nyM.decode(H);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(H)}catch(d){}for(var U=0,A=[],M=H.length;U<M;){for(var W=0;W<1024&&U<M;){var w=H[U++];if(w<128)Nvc[W++]=w;else{if(w<224)w=(w&31)<<6|H[U++]&63;else if(w<240)w=(w&15)<<12|(H[U++]&63)<<6|H[U++]&63;else{if(W+1===1024){--U;break}w=(w&7)<<18|(H[U++]&63)<<12|(H[U++]&63)<<6|H[U++]&63;w-=65536;Nvc[W++]=55296|w>>10;w=56320|w&1023}Nvc[W++]=w}}w=String.fromCharCode.apply(String,
Nvc);W<1024&&(w=w.substring(0,W));A.push(w)}return A.join("")};
LgM=function(H,U){var A;if((A=pb4)==null?0:A.encodeInto)return U=pb4.encodeInto(H,U),U.read<H.length?H.length*4:U.written;for(var M=A=0;M<H.length;M++){var W=H.charCodeAt(M);W<128?U[A++]=W:(W<2048?U[A++]=W>>6|192:((W&64512)===55296&&M+1<H.length&&(H.charCodeAt(M+1)&64512)===56320?(W=65536+((W&1023)<<10)+(H.charCodeAt(++M)&1023),U[A++]=W>>18|240,U[A++]=W>>12&63|128):U[A++]=W>>12|224,U[A++]=W>>6&63|128),U[A++]=W&63|128)}return A};
RQN=function(H,U,A){if(U&&A&&A.buffer===U.exports.memory.buffer){var M=U.realloc(A.byteOffset,H);if(M)return new Uint8Array(U.exports.memory.buffer,M,H)}H=U?new Uint8Array(U.exports.memory.buffer,U.malloc(H),H):new Uint8Array(H);A&&H.set(A);return H};
_.tw=function(H){H=new Eyc(new mEM([_.Q0(decodeURIComponent(H))]));if(gyc(H,2)){var U=CE(H);var A=H.pos;var M=H.arrayView;A=A===void 0?0:A;var W=U===void 0?-1:U;A=A===void 0?0:A;W=W===void 0?-1:W;if(M.totalLength&&W){W<0&&(W=M.totalLength-A);M.focus(A);if(!(A-M.arrayPos+W<=M.arrays[M.arrayIdx].length)){var w=M.arrayIdx,d=M.arrayPos;M.focus(A+W-1);d=new Uint8Array(M.arrayPos+M.arrays[M.arrayIdx].length-d);for(var O=0,f=w;f<=M.arrayIdx;f++)d.set(M.arrays[f],O),O+=M.arrays[f].length;M.arrays.splice(w,
M.arrayIdx-w+1,d);M.arrayIdx=0;M.arrayPos=0;M.focus(A)}w=M.arrays[M.arrayIdx];M=new DataView(w.buffer,w.byteOffset+A-M.arrayPos,W)}else M=new DataView(new ArrayBuffer(0));M=new Uint8Array(M.buffer,M.byteOffset,M.byteLength);H.pos+=U;U=M}else U=void 0;U=U?SYM(U):void 0;H=gyc(H,4)?CE(H):void 0;M=a1N[H];if(typeof M==="undefined")throw H=new _.bD("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:H}),_.sD(H),H;return{entityTypeFieldNumber:H,entityType:M,entityId:U}};
_.BO=function(H,U,A){A=A===void 0?0:A;var M=new xEM;if(pb4)H=pb4.encode(H);else{var W=new Uint8Array(Math.ceil(H.length*1.2)),w=LgM(H,W);W.length<w&&(W=new Uint8Array(w),w=LgM(H,W));W.length>w&&(W=W.subarray(0,w));H=W}H!==void 0&&(cO(M,18),W=H.length,cO(M,W),yy(M,W),M.buf.set(H,M.pos),M.pos+=W);H=zQV[U];if(typeof H==="undefined")throw A=new _.bD("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:U}),_.sD(A),A;H!==void 0&&(cO(M,32),cO(M,H));cO(M,40);cO(M,1);U=new Uint8Array(M.buf.buffer,
M.buf.byteOffset,M.pos);return encodeURIComponent(_.I_(U,A))};
CKN=function(H){H=H.key||H.id;if(!H)throw Error("Jf");return H};
cht=function(H,U){H=H===void 0?{}:H;return t44(H,U)};
yht=function(H,U,A,M){if(M===void 0)return M=Object.assign({},H[U]||{}),A=(delete M[A],M),M={},Object.assign({},H,(M[U]=A,M));var W={},w={};return Object.assign({},H,(w[U]=Object.assign({},H[U],(W[A]=M,W)),w))};
Bvh=function(H,U,A,M,W){var w=H[U];if(w==null||!w[A])return H;M=sfc(w[A],M,W==="REPEATED_FIELDS_MERGE_OPTION_APPEND");W={};w={};return Object.assign({},H,(w[U]=Object.assign({},H[U],(W[A]=M,W)),w))};
_.rH=function(H,U,A){return H[U]?H[U][A]||null:null};
eQ0=function(){if(rh4)return rh4();var H={};rh4=$D("PersistentEntityStoreDb",{objectStores:(H.EntityStore={addedAtVersion:1},H.EntityAssociationStore={addedAtVersion:2},H),shared:!1,upgrade:function(U,A){A(1)&&RQ(L_(U,"EntityStore",{keyPath:"key"}),"entityType","entityType");A(2)&&(U=L_(U,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),RQ(U,"byParentEntityKey","parentEntityKey"),RQ(U,"byChildEntityKey","childEntityKey"))},
version:3});return rh4()};
DE7=function(H){return _.CO(eQ0(),H)};
e9=function(H){return window.Int32Array?new Int32Array(H):Array(H)};
l1c=function(H){return _.CO($Eh(),H)};
Gm0=function(H){return new la("WRONG_DATA_TYPE",{encoderVersion:H})};
YYK=function(H){return H instanceof Error?new la("UNKNOWN_ENCODE_ERROR",{originalMessage:H.message}):new la("UNKNOWN_ENCODE_ERROR")};
qYV=function(H){return H instanceof Error?new la("UNKNOWN_DECODE_ERROR",{originalMessage:H.message}):new la("UNKNOWN_DECODE_ERROR")};
hQ7=function(H,U){H=H instanceof la?H:U(H);_.sD(H);throw H;};
km0=function(H){H=(new TextEncoder).encode(H).subarray(0,16);var U=new Uint8Array(16);U.set(H);return U};
Tv7=function(H){var U=vy4[H];if(U)return U;_.Na(new _.bD("Entity model not found.",{entityType:H}))};
_.GQ=function(){jfM||(jfM=I1t());return jfM};
I1t=function(){var H,U,A;return _.u(function(M){if(M.nextAddress==1)return _.zj(M,2),M.yield(_.D0(),4);if(M.nextAddress!=2){H=M.yieldResult;if(!H||!_.iD()||typeof _.Mr.BroadcastChannel==="undefined")return M.return();U=new Qfc;return M.return(new YU(H,U))}A=_.eG(M);A instanceof Error&&_.sD(A);return M.return()})};
_.qY=function(H,U){var A;return _.u(function(M){if(M.nextAddress==1){A=H.mutations;if(!A||A.length<=0)return M.return();U&&U.dispatch(_.zQ({type:"ENTITY_LOADED",payload:A}));return M.yield(V4r(A),2)}A.length=0;_.DO(M)})};
V4r=function(H){var U;return _.u(function(A){return A.nextAddress==1?A.yield(_.GQ(),2):(U=A.yieldResult)?A.yield(_.hw(U,"readwrite",function(M){for(var W={},w=_.b(H),d=w.next(),O={};!d.done;O={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},d=w.next())O.mutation$jscomp$8=d.value,O.mutation$jscomp$8.entityKey&&Ha7(O.mutation$jscomp$8)&&(O.mutationEntityType$jscomp$3=(0,_.dG.getAnyKey)(O.mutation$jscomp$8.payload),d=void 0,O.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(d=function(f){return function(){return _.UIF(M,
f.mutation$jscomp$8.payload[f.mutationEntityType$jscomp$3],f.mutationEntityType$jscomp$3)}}(O)),O.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(d=function(f){return function(){return AbV(M,f.mutation$jscomp$8.entityKey)}}(O)),O.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(d=function(f){return function(){return MeN(M,f.mutation$jscomp$8.entityKey,f.mutation$jscomp$8.payload[f.mutationEntityType$jscomp$3],f.mutationEntityType$jscomp$3)}}(O)),d&&(W[O.mutation$jscomp$8.entityKey]=
W[O.mutation$jscomp$8.entityKey]?W[O.mutation$jscomp$8.entityKey].then(d):d()));
return Rd.all(Object.values(W))}),0):A.return()})};
Ha7=function(H){var U;H=(U=H.options)==null?void 0:U.persistenceOption;return H==="ENTITY_PERSISTENCE_OPTION_PERSIST"||H==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
XNt=function(H,U){var A,M;_.u(function(W){if(W.nextAddress==1)return W.yield(_.GQ(),2);if(W.nextAddress!=3)return(A=W.yieldResult)?W.yield(_.hw(A,"readonly",function(w){var d={},O=Object.keys(U).map(function(f){var J=U[f]?[].concat(_.vI(U[f])):[];return W1t(w,f,J,d)});
return Rd.all(O).then(function(){return d})}),3):W.return();
M=W.yieldResult;Object.keys(M).length>0&&H.dispatch(wNc(M));_.DO(W)})};
W1t=function(H,U,A,M){return kU(H,U,A).then(function(W){M[U]=iaK(A,W)})};
iaK=function(H,U){if(U.length!==H.length)throw Error("Mf");return U.reduce(function(A,M,W){A[H[W]]=M;return A},{})};
Oah=function(H){var U=H.filter(function(W){var w;return(W==null?void 0:(w=W.transferEntity)==null?void 0:w.transferState)==="TRANSFER_STATE_COMPLETE"}).length,A=H.filter(function(W){var w;
return(W==null?void 0:(w=W.transferEntity)==null?void 0:w.transferState)==="TRANSFER_STATE_FAILED"}).length,M=H.filter(function(W){var w;
return(W==null?void 0:(w=W.transferEntity)==null?void 0:w.transferState)&&baV.includes(W.transferEntity.transferState)});
if(!(U||M!=null&&M.length))return 0;U=_.dI7(M)+U;H=H.length-A;return H===0?0:Math.round(U*100/H)/100};
_.dI7=function(H){var U=[];U=U.concat.apply(U,_.vI(H.filter(function(w){return w.streamEntity}).map(function(w){var d=Object.assign({},w.streamEntity),O,f=(O=w.transferEntity)==null?void 0:O.transferState;
d.streamsProgress=d.streamsProgress||[];d.streamsProgress=d.streamsProgress.map(function(J){var F=Object.assign({},J);F.numBytesDownloaded=f==="TRANSFER_STATE_COMPLETE"?J.numTotalBytes:J.numBytesDownloaded;return F});
return d}).map(function(w){return w.streamsProgress})));
var A=H=0;U=_.b(U);for(var M=U.next();!M.done;M=U.next()){var W=M.value;M=Number(W.numBytesDownloaded);W=Number(W.numTotalBytes);A+=isNaN(M)?0:M;H+=isNaN(W)?0:W}return H===0?0:Math.round(A*100/H)/100};
unN=function(H){if(!H||!H.expirationTimestamp||!H.action)return!1;var U=(0,_.lD)()/1E3;return Number(H.expirationTimestamp)>=U};
vO=function(H){return H&&H.expirationTimestamp&&H.action?unN(H)&&H.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.TQ=function(H){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(H||"TRANSFER_STATE_UNKNOWN")};
ZaK=function(H){var U=new xEM;if(H!==void 0){var A=Math.ceil(Math.log2(H.length*4+2)/7);A=A===void 0?2:A;cO(U,10);U.submessagePosStack.push(U.pos);U.submessagePosStack.push(A);U.pos+=A;yy(U,H.length*1.2);A=LgM(H,U.buf.subarray(U.pos));U.pos+A>U.buf.length&&(yy(U,A),A=LgM(H,U.buf.subarray(U.pos)));U.pos+=A;H=U.submessagePosStack.pop();A=U.submessagePosStack.pop();for(var M=U.pos-A-H;H--;){var W=H?128:0;U.view.setUint8(A++,M&127|W);M>>=7}}U=new Uint8Array(U.buf.buffer,U.buf.byteOffset,U.pos);return(new TextDecoder("utf-8")).decode(U)};
_.j9=function(H){var U=0;H=_.b(H);for(var A=H.next(),M={};!A.done;M={transferState$jscomp$3:void 0},A=H.next()){var W=A.value,w=void 0;A=(w=W.streamEntity)!=null?w:{};w=void 0;M.transferState$jscomp$3=(w=W.transferEntity)==null?void 0:w.transferState;w=W=void 0;((W=A)==null?0:(w=W.streamsProgress)==null?0:w.length)&&A.streamsProgress.forEach(function(d){return function(O){O=Number(d.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?O.numTotalBytes:O.numBytesDownloaded);isFinite(O)&&(U+=O)}}(M))}return U};
f_7=function(H){return H.some(function(U){var A;if(!(U==null?0:(A=U.transferEntity)==null?0:A.transferState)){var M;return!(U==null?0:(M=U.policyEntity)==null?0:M.action)||U.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return baV.includes(U.transferEntity.transferState)})};
Jb7=function(H,U){if(!U)return!1;if(_.S("of_pb_en_po_ks"))return!0;var A;H=(A=_.rH(H,"offlineVideoPolicy",_.BO(U,"offlineVideoPolicy")))!=null?A:void 0;return!!H&&vO(H)};
_.ovh=function(H){var U=["TRANSFER_STATE_COMPLETE"];U=U===void 0?K1N:U;return H.filter(function(A){var M,W;return U.includes((W=(M=A.transferEntity)==null?void 0:M.transferState)!=null?W:"TRANSFER_STATE_UNKNOWN")})};
F1M=function(H,U){if(U){var A,M=(A=_.rH(H,"playbackData",_.BO(U,"playbackData")))!=null?A:null,W;A=(W=_.rH(H,"transfer",_.BO(U,"transfer")))!=null?W:null;var w;W=(w=_.rH(H,"offlineVideoStreams",_.BO(U,"offlineVideoStreams")))!=null?w:null;var d;H=(d=_.rH(H,"offlineVideoPolicy",_.BO(U,"offlineVideoPolicy")))!=null?d:null;if(M||A||W||H)return{playbackDataEntity:M,transferEntity:A,streamEntity:W,policyEntity:H}}};
_.Iu=function(H){var U=H.playbackData;if(!U)return[];var A=[];U=_.b(Object.keys(U));for(var M=U.next();!M.done;M=U.next()){var W=M.value;if(!P8M(H,_.tw(W).entityId)&&(M=F1M(H,_.tw(W).entityId))){var w=void 0,d=void 0;W=(d=Number((w=_.rH(H,"playbackData",W))==null?void 0:w.streamDownloadTimestampSeconds))!=null?d:(0,_.lD)();A.push({entity:M,streamDownloadTimestamp:W})}}return A.sort(function(O,f){var J=O.streamDownloadTimestamp,F=f.streamDownloadTimestamp;return F===J?O.entity.streamEntity&&!f.entity.streamEntity?
1:-1:F-J}).map(function(O){return O.entity})};
sJE=function(H){return _.ovh(_.Iu(H))};
_.nvc=function(H){return _.Iu(H).filter(function(U){var A;if(((A=U.policyEntity)==null?0:A.action)&&U.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var M;if((M=U.transferEntity)==null?0:M.transferState){var W;return baV.includes((W=U.transferEntity)==null?void 0:W.transferState)}return!0})};
P8M=function(H,U){var A;return((A=_.rH(H,"downloadStatusEntity",_.BO(U,"downloadStatusEntity")))==null?void 0:A.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
N6M=function(H){var U;if(H==null?0:(U=H.playbackDataEntity)==null?0:U.key)return _.tw(H.playbackDataEntity.key).entityId;var A;if(H==null?0:(A=H.transferEntity)==null?0:A.key)return _.tw(H.transferEntity.key).entityId;var M;if(H==null?0:(M=H.streamEntity)==null?0:M.key)return _.tw(H.streamEntity.key).entityId;var W;if(H==null?0:(W=H.policyEntity)==null?0:W.key)return _.tw(H.policyEntity.key).entityId};
pNh=function(H){var U=new Set,A;H=(A=H.mainDownloadsListEntity)==null?void 0:A[S8r];var M;if(!(H==null?0:(M=H.downloads)==null?0:M.length))return U;var W;H==null||(W=H.downloads)==null||W.forEach(function(w){(w==null?0:w.videoItem)&&U.add(w.videoItem)});
return U};
Qy=function(H,U){if(U){var A=_.rH(H,"mainVideoEntity",_.BO(U,"mainVideoEntity")),M=_.rH(H,"downloadStatusEntity",_.BO(U,"downloadStatusEntity")),W=_.rH(H,"ytMainChannelEntity",_.BO(U,"ytMainChannelEntity")),w={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};H=F1M(H,U);M=(M==null?void 0:M.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.S("woffle_render_failed_download_state_ks")&&(M==null?void 0:M.downloadState)==="DOWNLOAD_STATE_FAILED";!H&&M&&(H=w);if(H&&A&&
W)return Object.assign({},{videoEntity:A,channelEntity:W},H)}};
Rx0=function(H,U){return L18(H,U)==="TRANSFER_STATE_COMPLETE"&&Jb7(H,U)};
Ev_=function(H,U){if(!U)return!1;var A;H=(A=_.rH(H,"playbackData",_.BO(U,"playbackData")))!=null?A:void 0;return!!H&&!!H.playerResponseJson};
L18=function(H,U){if(!U)return"TRANSFER_STATE_UNKNOWN";var A=_.rH(H,"transfer",_.BO(U,"transfer"));if(A){var M;return(M=A.transferState)!=null?M:"TRANSFER_STATE_UNKNOWN"}A=_.rH(H,"offlineOrchestrationActionWrapperEntity",_.BO(U,"offlineOrchestrationActionWrapperEntity"));H=_.rH(H,"mainVideoEntity",_.BO(U,"mainVideoEntity"));return A||H?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
mI8=function(H,U){if(!U)return"TRANSFER_STATE_UNKNOWN";if(H=_.rH(H,"transfer",_.BO(U,"transfer"))){var A;return(A=H.transferState)!=null?A:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
gvM=function(H,U){return U&&(H=_.rH(H,"videoPlaybackPositionEntity",_.BO(U,"videoPlaybackPositionEntity")),H==null?0:H.lastPlaybackPositionSeconds)?Number(H.lastPlaybackPositionSeconds):0};
xIF=function(H,U){return a_0(H).some(function(A){var M;return(A==null?void 0:(M=A.mainPlaylistEntity)==null?void 0:M.playlistId)===U})};
C88=function(H,U,A){var M=zxV(H,U);if(!M.length)return[];U=[];M=_.b(M);for(var W=M.next();!W.done;W=M.next()){W=W.value;var w=Qy(H,W);A&&L18(H,W)!=="TRANSFER_STATE_COMPLETE"||w&&U.push(w)}return U};
zxV=function(H,U){if(!U)return[];var A=_.BO(U,"mainPlaylistEntity"),M;U=(M=H.mainPlaylistEntity)==null?void 0:M[A];M=[];if(U==null||!U.videos)return M;U=_.b(U.videos);for(A=U.next();!A.done;A=U.next()){A=A.value;var W=void 0,w=void 0,d=void 0,O=(W=H)==null?void 0:(w=W.mainPlaylistVideoEntity)==null?void 0:(d=w[A])==null?void 0:d.video;O&&(A=_.tw(O).entityId)&&M.push(A)}return M};
teF=function(H,U){if(U){var A=_.rH(H,"mainPlaylistEntity",_.BO(U,"mainPlaylistEntity")),M=_.rH(H,"mainPlaylistDownloadStateEntity",_.BO(U,"mainPlaylistDownloadStateEntity"));H=_.rH(H,"ytMainChannelEntity",_.BO(U,"ytMainChannelEntity"));if(M&&A)return Object.assign({},{mainPlaylistEntity:A,mainPlaylistDownloadStateEntity:M},!!H&&{channelEntity:H})}};
a_0=function(H){return cbF(H).sort(function(U,A){return A.addedTimestampMillis-U.addedTimestampMillis}).map(function(U){return U.downloadedPlaylistEntities})};
cbF=function(H){var U=H.mainPlaylistDownloadStateEntity,A=[];if(!U)return A;for(var M=_.b(Object.keys(U)),W=M.next();!W.done;W=M.next()){var w=W.value;W=teF(H,_.tw(w).entityId);var d=void 0;w=Number((d=U[w])==null?void 0:d.addedTimestampMillis);d=isNaN(w)?(0,_.lD)():w;W!==void 0&&A.push({downloadedPlaylistEntities:W,addedTimestampMillis:d})}return A};
ybM=function(H){var U,A=(U=H.mainPlaylistVideoEntity)!=null?U:{};return new Set(a_0(H).reduce(function(M,W){M=M===void 0?[]:M;var w,d;W==null||(w=W.mainPlaylistEntity)==null||(d=w.videos)==null||d.forEach(function(O){var f;(O=(f=A[O])==null?void 0:f.video)&&M.push(O)});
return M},[]))};
B6E=function(H){return"downloadedMusicPlaylistEntities"in H};
rbr=function(H){return"mainPlaylistEntity"in H&&"mainPlaylistDownloadStateEntity"in H};
ex7=function(H){return"videoEntity"in H&&"channelEntity"in H};
DIc=function(H){var U=H.musicPlaylistDownloadMetadataEntity,A=[];if(!U)return A;for(var M=_.b(Object.keys(U)),W=M.next();!W.done;W=M.next()){W=W.value;a:{var w=H,d=_.tw(W).entityId;if(d){var O=_.rH(w,"musicPlaylist",_.BO(d,"musicPlaylist"));w=_.rH(w,"musicPlaylistDownloadMetadataEntity",_.BO(d,"musicPlaylistDownloadMetadataEntity"));if(O&&w){O={musicPlaylistEntity:O,musicPlaylistDownloadStateEntity:w};break a}}O=void 0}w=void 0;W=Number((w=U[W])==null?void 0:w.addedTimestampMillis);W=isNaN(W)?(0,_.lD)():
W;O!==void 0&&A.push({downloadedMusicPlaylistEntities:O,addedTimestampMillis:W})}return A};
$I4=function(H){var U=new Set;H=_.b(H);for(var A=H.next();!A.done;A=H.next())if(A=A.value,"musicPlaylistEntity"in A&&"musicPlaylistDownloadStateEntity"in A){A=_.b(A.musicPlaylistEntity.tracks);for(var M=A.next();!M.done;M=A.next())U.add(M.value)}return U};
l_F=function(H,U){if(U){var A=_.rH(H,"musicTrack",_.BO(U,"musicTrack")),M=_.rH(H,"musicArtist",_.BO(U,"musicArtist"))||{};if((H=F1M(H,U))&&A&&M)return Object.assign({},{musicTrackEntity:A,musicArtistEntity:M},H)}};
GO8=function(H){var U=H.musicTrackDownloadMetadataEntity,A=[];if(!U)return[];U=_.b(Object.keys(U));for(var M=U.next();!M.done;M=U.next()){var W=M.value;M=l_F(H,_.tw(W).entityId);var w=void 0;W=Number((w=_.rH(H,"musicTrackDownloadMetadataEntity",W))==null?void 0:w.addedTimestampMillis);w=isNaN(W)?(0,_.lD)():W;M!==void 0&&A.push({downloadedMusicEntities:M,addedTimestampMillis:w})}return A};
hxM=function(H,U){if(!U)return[];if(Object.values(Y8c).includes(U))return q8_(H,U);U=_.BO(U,"musicPlaylist");var A;H=(A=H.musicPlaylist)==null?void 0:A[U];A=[];if(H==null||!H.tracks)return A;H=_.b(H.tracks);for(U=H.next();!U.done;U=H.next())(U=_.tw(U.value).entityId)&&A.push(U);return A};
q8_=function(H,U){var A=new Set,M=DIc(H).map(function(w){return w.downloadedMusicPlaylistEntities});
M=$I4(M);M=_.b(M);for(var W=M.next();!W.done;W=M.next())(W=_.tw(W.value).entityId)&&A.add(W);return kOr(H).downloadedMusicEntities.filter(function(w){var d;if((d=w.musicTrackEntity)!=null&&d.videoId){w=w.musicTrackEntity;if(d=U==="PPOM"?!0:!A.has(w.videoId))b:switch(w=w.musicVideoType,U){case "PPSE":d=w==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:d=w!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}w=d}else w=!1;return w}).map(function(w){var d;
return(d=w.musicTrackEntity)==null?void 0:d.videoId})};
kOr=function(H){var U=GO8(H).sort(function(A,M){return M.addedTimestampMillis-A.addedTimestampMillis}).map(function(A){return"downloadedMusicEntities"in A?A.downloadedMusicEntities:B6E(A)?A.downloadedMusicPlaylistEntities:{}});
H=DIc(H).sort(function(A,M){return M.addedTimestampMillis-A.addedTimestampMillis}).map(function(A){return"downloadedMusicEntities"in A?A.downloadedMusicEntities:B6E(A)?A.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:U,downloadedMusicPlaylistEntities:H}};
T6c=function(H,U){U=_.gD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?hxM(H,U):zxV(H,U);if(!U.length)return"TRANSFER_STATE_UNKNOWN";U=U.map(function(A){return mI8(H,A)});
return vvt(U)};
vvt=function(H){var U=new Set(H);if(U.has("TRANSFER_STATE_FAILED")&&U.size===1)return"TRANSFER_STATE_FAILED";U.delete("TRANSFER_STATE_FAILED");if(U.has("TRANSFER_STATE_UNKNOWN")&&U.size===1)return"TRANSFER_STATE_PRE_TRANSFER";U.delete("TRANSFER_STATE_UNKNOWN");if(U.has("TRANSFER_STATE_PRE_TRANSFER")&&U.size===1||U.size===0)return"TRANSFER_STATE_PRE_TRANSFER";H=U.has("TRANSFER_STATE_TRANSFERRING");U=U.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return H||U?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Vy=function(H){var U=H.mainVideoDownloadStateEntity,A=[];if(!U)return[];U=_.b(Object.keys(U));for(var M=U.next();!M.done;M=U.next()){var W=M.value;if(!P8M(H,_.tw(W).entityId)){M=Qy(H,_.tw(W).entityId);var w=void 0,d=void 0;W=(d=Number((w=_.rH(H,"mainVideoDownloadStateEntity",W))==null?void 0:w.addedTimestampMillis))!=null?d:(0,_.lD)();M!==void 0&&A.push({downloadedVideoEntities:M,addedTimestampMillis:W})}}return A};
jJF=function(H){return Vy(H).sort(function(U,A){return A.addedTimestampMillis-U.addedTimestampMillis}).map(function(U){return U.downloadedVideoEntities})};
_.QJM=function(H){var U=ybM(H),A=_.HC(H),M=pNh(H),W=Vy(H).filter(function(d){var O,f;if((d==null?void 0:(O=d.downloadedVideoEntities)==null?void 0:(f=O.transferEntity)==null?void 0:f.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var J,F;d=d==null?void 0:(J=d.downloadedVideoEntities)==null?void 0:(F=J.videoEntity)==null?void 0:F.key;return _.S("kevlar_use_library_entity")?d&&(M.has(d)||A[d]):d&&!U.has(d)}),w=cbF(H).filter(function(d){return T6c(H,d.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.vI(W),_.vI(w)).sort(function(d,O){return O.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return I_M(d)})};
VeM=function(H,U){if(U&&Jb7(H,U)){var A,M,W=(M=(A=_.rH(H,"playbackData",_.BO(U,"playbackData")))!=null?A:void 0)==null?void 0:M.playerResponseJson;if(W){try{var w=JSON.parse(W);var d=_.rH(H,"transfer",_.BO(U,"transfer")),O=gvM(H,U);O&&(w=Object.assign({},w,{playerConfig:Object.assign({},w.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+O*1E3}}})}));w.cotn=d==null?void 0:d.cotn}catch(f){}return w}}};
_.UMM=function(H){var U,A,M;H=(M=(A=((U=H.downloadsPageViewConfigurationEntity)!=null?U:{})[_.U_])==null?void 0:A.smartDownloadsOptInBannerVisibility)!=null?M:{};var W;return(W=_.p(H,HmV))!=null?W:{}};
_.HC=function(H){var U,A,M;H=(M=(A=((U=H.mainDownloadsListEntity)!=null?U:{})[_.A1c])==null?void 0:A.downloads)!=null?M:[];U={};A=_.b(H);for(M=A.next();!M.done;M=A.next())H=void 0,U[(H=M.value.videoItem)!=null?H:""]=!0;return U};
MA4=function(H){var U=_.HC(H);if(Object.keys(U).length===0)return!1;var A=H.mainVideoEntity;if(!A)return!0;A=_.b(Object.keys(A));for(var M=A.next();!M.done;M=A.next()){M=M.value;var W=_.tw(M).entityId;if(U[M]&&!P8M(H,W))return!1}return!0};
_.Ac=function(H){var U=_.HC(H);return Vy(H).sort(function(A,M){return A.addedTimestampMillis-M.addedTimestampMillis}).map(function(A){return A.downloadedVideoEntities}).filter(function(A){var M;
return(A=A==null?void 0:(M=A.videoEntity)==null?void 0:M.key)&&!!U[A]})};
_.wAr=function(H){var U,A,M;H=(M=(A=((U=H.downloadsPageViewConfigurationEntity)!=null?U:{})[_.U_])==null?void 0:A.downloadsUpsellBannerVisibility)!=null?M:{};var W;return(W=_.p(H,WEr))!=null?W:{}};
I_M=function(H){return"downloadedVideoEntities"in H?H.downloadedVideoEntities:"downloadedPlaylistEntities"in H?H.downloadedPlaylistEntities:{}};
XA4=function(H){var U=_.HC(H),A=ybM(H),M=Vy(H).filter(function(W){var w,d;return(W=W==null?void 0:(w=W.downloadedVideoEntities)==null?void 0:(d=w.videoEntity)==null?void 0:d.key)&&!U[W]&&!A.has(W)});
H=cbF(H);return[].concat(_.vI(M),_.vI(H)).sort(function(W,w){return w.addedTimestampMillis-W.addedTimestampMillis}).map(function(W){return I_M(W)})};
_.Mh=function(H){if(!_.S("kevlar_use_library_entity"))return XA4(H);var U=Vy(H).filter(function(M){var W,w;if(W=M=M==null?void 0:(W=M.downloadedVideoEntities)==null?void 0:(w=W.videoEntity)==null?void 0:w.key){var d,O,f;W=((O=(d=H.mainDownloadsListEntity)==null?void 0:d[S8r])==null?0:(f=O.downloads)==null?0:f.length)?pNh(H).has(M):!1}return W}),A=cbF(H);
return[].concat(_.vI(U),_.vI(A)).sort(function(M,W){return W.addedTimestampMillis-M.addedTimestampMillis}).map(function(M){return I_M(M)})};
imK=function(H){var U=_.HC(H),A=ybM(H);return jJF(H).filter(function(M){var W;return(M=M==null?void 0:(W=M.videoEntity)==null?void 0:W.key)&&!U[M]&&!A.has(M)})};
bmE=function(H){if(!_.S("kevlar_use_library_entity"))return imK(H);var U=_.HC(H),A=pNh(H);return jJF(H).filter(function(M){var W;return(M=M==null?void 0:(W=M.videoEntity)==null?void 0:W.key)&&!U[M]&&A.has(M)})};
dMh=function(H,U){U=_.BO(U,"settingEntity");var A,M,W;return!!((W=(M=((A=H.settingEntity)!=null?A:{})[U])==null?void 0:M.settingOptionValue)!=null?W:{}).boolValue};
_.WC=function(H){var U=_.Ac(H);if(f_7(U))return 0;var A=[];U=_.b(U);for(var M=U.next();!M.done;M=U.next()){M=M.value;var W=void 0,w=void 0;if((W=M)==null?0:(w=W.videoEntity)==null?0:w.key)W=_.tw(M.videoEntity.key).entityId,M=H,W=_.BO(W,"mainVideoDownloadStateEntity"),M=_.rH(M,"mainVideoDownloadStateEntity",W),(M=Number(M==null?void 0:M.addedTimestampMillis))&&A.push(M)}return Math.max.apply(Math,_.vI(A))};
_.w1=function(H){return H.ui.richGridMiniMode};
_.Xz=function(H){return H.ui.richGridItemsPerRow};
_.Omc=function(H){return H.ui.richGridSlimItemsPerRow};
_.u37=function(H){return H.ui.guideIsExpanded};
_.iE=function(H){return H.ui.miniplayerIsActive};
ZmE=function(H){return H.ui.singleOptionSurveyIsActive};
_.bE=function(H){var U;return((U=H.ui)==null?void 0:U.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.fat=function(H){return _.bE(H)==="WEB_PAGE_TYPE_WATCH"};
_.J1F=function(H){return _.bE(H)==="WEB_PAGE_TYPE_SHORTS"};
_.KEE=function(H){return H.ui.inlinePreviewIsActive};
_.o0t=function(H){return H.ui.inlinePreviewIsEnabled};
_.FEF=function(H){return H.ui.miniplayerPlaybackState};
_.d1=function(H){return H.ui.isOnline};
_.PQK=function(H){return H.ui.frostedGlassMode};
_.O_=function(H,U){return L18(H.entities,U)};
_.uE=function(H,U){return T6c(H.entities,U)};
sNF=function(H,U){var A;if(U){var M;H=(M=_.rH(H.entities,"offlineVideoPolicy",_.BO(U,"offlineVideoPolicy")))==null?void 0:M.action}else H=void 0;return(A=H)!=null?A:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
n07=function(H,U){var A;U?(H=_.rH(H.entities,"offlineVideoPolicy",_.BO(U,"offlineVideoPolicy")),H=Number(H==null?void 0:H.expirationTimestamp)):H=void 0;return(A=H)!=null?A:0};
_.NFN=function(H){return _.Iu(H.entities).length};
SFc=function(H,U){return Qy(H.entities,U)};
pAh=function(H,U){return teF(H.entities,U)};
ZY=function(H,U){return(H=Qy(H.entities,U))?_.dI7([H]):0};
_.LEK=function(H,U){var A=_.gD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(A){var M=H.entities;var W=hxM(M,U);if(W.length){var w=[];W=_.b(W);for(var d=W.next();!d.done;d=W.next())(d=l_F(M,d.value))&&w.push(d);M=w}else M=[]}else M=C88(H.entities,U);var O;if(A){var f=H.entities;U?(U=_.BO(U,"musicPlaylist"),f=(O=f.musicPlaylist)==null?void 0:O[U],O=f!=null&&f.tracks?f.tracks.length:0):O=0}else O=H.entities,U?(U=_.BO(U,"mainPlaylistEntity"),O=(f=O.mainPlaylistEntity)==null?void 0:f[U],O=O!=null&&O.videos?
O.videos.length:0):O=0;return M.length!==O?0:M?Oah(M):0};
_.Rnt=function(H){return H.download.isLeaderTab};
_.E0E=function(H,U,A){if(!U&&A){var M=H.entities;if(A){var W=ZaK(A),w,d;U=(d=(w=_.rH(M,"offlineabilityEntity",_.BO(W,"offlineabilityEntity")))==null?void 0:w.addToOfflineButtonState)!=null?d:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else U="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else w=H.entities,U?(d=ZaK(U),U=(W=(M=_.rH(w,"offlineabilityEntity",_.BO(d,"offlineabilityEntity")))==null?void 0:M.addToOfflineButtonState)!=null?W:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):U="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return U};
mMt=function(H,U){H=H.entities;if(U){U=ZaK(U);var A,M;U=(M=(A=_.rH(H,"offlineabilityEntity",_.BO(U,"offlineabilityEntity")))==null?void 0:A.addToOfflineButtonState)!=null?M:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else U="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return U};
_.Aeh=function(H){var U=H.entities;H=_.d1(H);var A=dMh(U,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.S("kevlar_modern_downloads_page")&&A)var M=!1;else{var W,w;U=(w=(W=((M=U.downloadsPageViewConfigurationEntity)!=null?M:{})[_.U_])==null?void 0:W.smartDownloadsOptInBannerVisibility)!=null?w:{};M=H?!!U.visibleWithConnection:!!U.visibleWithoutConnection}return M};
_.Mo4=function(H){return dMh(H.entities,"SMART_DOWNLOADS_ENABLED")};
_.W$0=function(H){return MA4(H.entities)};
wic=function(H){return _.Ac(H.entities).every(function(U){var A;return(U==null?void 0:(A=U.transferEntity)==null?void 0:A.transferState)&&!baV.includes(U.transferEntity.transferState)})};
_.Xit=function(H){var U,A,M,W=(M=(A=((U=H.entities.downloadsPageViewConfigurationEntity)!=null?U:{})[_.U_])==null?void 0:A.downloadsUpsellBannerVisibility)!=null?M:{};return _.d1(H)?!!W.visibleWithConnection:!!W.visibleWithoutConnection};
_.inM=function(H,U){return P8M(H.entities,U)};
bnc=function(H,U){if(U){var A,M;H=(M=(A=_.rH(H.entities,"downloadStatusEntity",_.BO(U,"downloadStatusEntity")))==null?void 0:A.downloadState)!=null?M:"DOWNLOAD_STATE_UNKNOWN"}else H="DOWNLOAD_STATE_UNKNOWN";return H};
fq=function(H,U){return gvM(H.entities,U)};
Znr=function(H){H=dxr(H);var U=H.hours===void 0?0:H.hours,A=H.minutes===void 0?0:H.minutes,M=H.seconds===void 0?0:H.seconds,W=U>0;H=[];W&&(U=Onh(U),H.push(U));U=W;U=U===void 0?!1:U;A=(["af","be","lt"].includes(Jc)||U)&&A<10?ui0().format(A):(new Intl.NumberFormat("en-u-nu-latn")).format(A);H.push(A);A=ui0().format(M);H.push(A);A=":";"da fi id si sr sr-Latn".split(" ").includes(Jc)&&(A=".");return H.join(A)};
_.Jec=function(H){H=dxr(H);var U=H.hours===void 0?0:H.hours,A=H.minutes===void 0?0:H.minutes,M=H.seconds===void 0?0:H.seconds;H=[];if(U>0){var W=fuc().format({hours:U});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(Jc)||U>9999)W=W.replace(U.toString(),Onh(U)),Jc==="km"&&(W=W.replace(".",","));H.push(W)}A>0&&H.push(fuc().format({minutes:A}));M>0&&H.push(fuc().format({seconds:M}));U="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");A=Jc=="am"?"{0}\u1363 ":Jc=="fa"?"{0}\u060c\u200f ":
Jc=="my"?"{0} - ":Jc=="ne"?"{0},":Jc=="th"?"{0} ":Jc=="ur"?"{0}\u060c ":Jc=="ar"||Jc=="ar-XB"?"{0} \u0648":Jc=="ja"||Jc=="zh-CN"||Jc=="zh-HK"||Jc=="zh-TW"?"{0}\u3001":"{0}, ";M=Jc=="am"?"\u1363 ":Jc=="fa"?"\u060c\u200f ":Jc=="my"?" - ":Jc=="th"?" ":Jc=="ur"?"\u060c ":Jc=="ar"||Jc=="ar-XB"?" \u0648":Jc=="ja"||Jc=="zh-CN"||Jc=="zh-HK"||Jc=="zh-TW"?"\u3001":", ";W=Jc=="am"?" \u12a5\u1293 {0}":Jc=="as"?" \u0986\u09f0\u09c1 {0}":Jc=="az"?" v\u0259 {0}":Jc=="bn"?" \u098f\u09ac\u0982 {0}":Jc=="cs"?" a\u00a0{0}":
Jc=="de"?" und {0}":Jc=="el"?" \u03ba\u03b1\u03b9 {0}":Jc=="eu"?" eta {0}":Jc=="fa"?"\u060c \u0648 {0}":Jc=="fil"?", at {0}":Jc=="gu"?" \u0a85\u0aa8\u0ac7 {0}":Jc=="hi"?", \u0914\u0930 {0}":Jc=="hu"?" \u00e9s {0}":Jc=="hy"?" \u0587 {0}":Jc=="id"?", dan {0}":Jc=="iw"?" \u05d5-{0}":Jc=="ja"?"\u3001{0}":Jc=="ka"?" \u10d3\u10d0 {0}":Jc=="km"?" \u1793\u17b7\u1784 {0}":Jc=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":Jc=="ko"?" \ubc0f {0}":Jc=="ky"?" \u0436\u0430\u043d\u0430 {0}":Jc=="lt"?" ir {0}":Jc==
"lv"?" un {0}":Jc=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":Jc=="mr"?" \u0906\u0923\u093f {0}":Jc=="ms"?" dan {0}":Jc=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":Jc=="ne"?" \u0930 {0}":Jc=="or"?", \u0b13 {0}":Jc=="pa"?" \u0a05\u0a24\u0a47 {0}":Jc=="ro"?" \u0219i {0}":Jc=="si"?", \u0dc3\u0dc4 {0}":Jc=="sk"?" a {0}":Jc=="sl"?" in {0}":Jc=="sq"?" dhe {0}":Jc=="sv"?" och {0}":Jc=="sw"?" na {0}":Jc=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":Jc=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
Jc=="th"?" \u0e41\u0e25\u0e30{0}":Jc=="tr"?" ve {0}":Jc=="ur"?"\u060c \u0627\u0648\u0631 {0}":Jc=="uz"?" va {0}":Jc=="vi"?" v\u00e0 {0}":Jc=="zh-HK"?"\u53ca{0}":Jc=="zu"?", ne-{0}":Jc=="af"||Jc=="nl"?" en {0}":Jc=="ar"||Jc=="ar-XB"?" \u0648{0}":Jc=="be"||Jc=="uk"?" \u0456 {0}":Jc=="en-GB"||Jc=="en-IN"?" and {0}":Jc=="en"||Jc=="en-XA"?", and {0}":Jc=="et"||Jc=="fi"?" ja {0}":Jc=="fr"||Jc=="fr-CA"?" et {0}":Jc=="zh-CN"||Jc=="zh-TW"?"\u548c{0}":Jc=="da"||Jc=="is"||Jc=="no"?" og {0}":Jc=="es"||Jc=="es-419"||
Jc=="es-US"?" y {0}":Jc=="kk"||Jc=="lo"||Jc=="mn"?", {0}":Jc=="bg"||Jc=="mk"||Jc=="ru"||Jc=="sr"?" \u0438 {0}":Jc=="gl"||Jc=="it"||Jc=="pt-BR"||Jc=="pt-PT"?" e {0}":" i {0}";var w=Jc=="am"?"{0} \u12a5\u1293 {1}":Jc=="as"?"{0} \u0986\u09f0\u09c1 {1}":Jc=="az"?"{0} v\u0259 {1}":Jc=="bn"?"{0} \u098f\u09ac\u0982 {1}":Jc=="de"?"{0} und {1}":Jc=="el"?"{0} \u03ba\u03b1\u03b9 {1}":Jc=="eu"?"{0} eta {1}":Jc=="fa"?"{0} \u0648 {1}":Jc=="fil"?"{0} at {1}":Jc=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":Jc=="hi"?"{0} \u0914\u0930 {1}":
Jc=="hu"?"{0} \u00e9s {1}":Jc=="hy"?"{0} \u0587 {1}":Jc=="iw"?"{0} \u05d5-{1}":Jc=="ja"?"{0}\u3001{1}":Jc=="ka"?"{0} \u10d3\u10d0 {1}":Jc=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":Jc=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":Jc=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":Jc=="ko"?"{0} \ubc0f {1}":Jc=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":Jc=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":Jc=="lt"?"{0} ir {1}":Jc=="lv"?"{0} un {1}":Jc=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":Jc=="mn"?"{0}, {1}":Jc==
"mr"?"{0} \u0906\u0923\u093f {1}":Jc=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":Jc=="ne"?"{0} \u0930 {1}":Jc=="or"?"{0} \u0b13 {1}":Jc=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":Jc=="ro"?"{0} \u0219i {1}":Jc=="si"?"{0} \u0dc3\u0dc4 {1}":Jc=="sl"?"{0} in {1}":Jc=="sq"?"{0} dhe {1}":Jc=="sv"?"{0} och {1}":Jc=="sw"?"{0} na {1}":Jc=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":Jc=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":Jc=="th"?"{0}\u0e41\u0e25\u0e30{1}":Jc=="tr"?"{0} ve {1}":Jc=="ur"?
"{0} \u0627\u0648\u0631 {1}":Jc=="uz"?"{0} va {1}":Jc=="vi"?"{0} v\u00e0 {1}":Jc=="zh-HK"?"{0}\u53ca{1}":Jc=="zu"?"{0} ne-{1}":Jc=="af"||Jc=="nl"?"{0} en {1}":Jc=="ar"||Jc=="ar-XB"?"{0} \u0648{1}":Jc=="be"||Jc=="uk"?"{0} \u0456 {1}":Jc=="cs"||Jc=="sk"?"{0} a\u00a0{1}":Jc=="et"||Jc=="fi"?"{0} ja {1}":Jc=="fr"||Jc=="fr-CA"?"{0} et {1}":Jc=="id"||Jc=="ms"?"{0} dan {1}":Jc=="zh-CN"||Jc=="zh-TW"?"{0}\u548c{1}":Jc=="da"||Jc=="is"||Jc=="no"?"{0} og {1}":Jc=="es"||Jc=="es-419"||Jc=="es-US"?"{0} y {1}":Jc==
"bg"||Jc=="mk"||Jc=="ru"||Jc=="sr"?"{0} \u0438 {1}":Jc=="en"||Jc=="en-GB"||Jc=="en-IN"||Jc=="en-XA"?"{0} and {1}":Jc=="gl"||Jc=="it"||Jc=="pt-BR"||Jc=="pt-PT"?"{0} e {1}":"{0} i {1}";Jc==="sq"?(W=W.replace("dhe","e"),w=w.replace("dhe","e")):Jc==="th"?(M=M.replace("{0}"," {0}"),w=w.replace("{0}","{0} "),w=w.replace("{1}"," {1}")):Jc==="ne"?M=",":Jc==="zh-CN"?M="":U.includes(Jc)&&(M=" ");return H.length<2?H.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(Jc)?
H.length===2?w.replace("{0}",H[0]).replace("{1}",H[1]):A.replace("{0}",H[0])+H.slice(1,-1).join(M)+W.replace("{0}",H[H.length-1]):H.join(M)};
dxr=function(H){var U=H.hours||0,A=H.minutes||0,M=H.seconds||0;U=M+A*60+U*3600+(H.days||0)*86400+(H.weeks||0)*604800+(H.months||0)*2629800+(H.years||0)*31557600;if(U<=0)return{hours:0,minutes:0,seconds:0};H=U;U=Math.floor(H/3600);H%=3600;A=Math.floor(H/60);M=Math.floor(H%60);return{hours:U,minutes:A,seconds:M}};
Onh=function(H){H=(new Intl.NumberFormat("en-u-nu-latn")).format(H);var U=["fr"],A="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(Jc)?H.replace(",","\u00a0"):U.includes(Jc)?H.replace(",","\u202f"):A.includes(Jc)?H.replace(",","."):H};
ui0=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
fuc=function(){K$0||(Kq=ob7,K$0=new F$7);return K$0};
Pfc=function(H){try{return(new _.oE(5)).format(H)}catch(U){}};
Fz=function(H){return{thumbnailOverlayDownloadingRenderer:{state:H}}};
spN=function(){var H=_.hP("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.gH(H),icon:{iconType:"PLAY_ALL"}}}};
nb7=function(H){H=_.PC(H,2);return Jc!=="ru"&&Jc!=="es_419"&&Jc!=="es-419"&&Jc!=="es"&&Jc!=="es_US"&&Jc!=="es-US"&&Jc!=="fr"&&Jc!=="pl"&&Jc!=="it"&&Jc!=="nl"&&Jc!=="uk"&&Jc!=="fr_CA"&&Jc!=="fr-CA"||H===""?H:H[0].toLocaleUpperCase()+H.substring(1)};
SN7=function(H){return function(U){var A=H(),M=_.PC(U,A.dateFormat);U=_.PC(U,A.timeFormat);var W=Nx7.DATETIMEFORMATS[A.joinerStyle];W=W.replace(/'(?!')/g,"");W=W.replace("{0}",U);W=W.replace("{1}",M);return A.capitalize(W)}};
piF=function(H){return H?typeof H.seconds==="string"&&(H.nanos===void 0||typeof H.nanos==="number"):!1};
L$c=function(H){return new Date(Number(H.seconds)*1E3+(H.nanos||0)*1E-6)};
_.PC=function(H,U){if(typeof H.getTime==="function")H={date:H};else if(piF(H))H={date:L$c(H)};else if(typeof piF(H.timestamp)&&typeof H.i18nInternalSecondsEastOfUtc==="number")H={date:L$c(H.timestamp),timeZone:s_(-H.i18nInternalSecondsEastOfUtc/60)};else throw Error("Nf`"+JSON.stringify(H));var A=H;H=A.date;A=A.timeZone;U=RtE(U).format(H,A);Jc==="zh-TW"&&(H=A?Number(RtE("H").format(H,A)):H.getHours(),U=H<5?U.replace("\u4e0a\u5348","\u51cc\u6668"):H<8?U.replace("\u4e0a\u5348","\u65e9\u4e0a"):H<12?
U.replace("\u4e0a\u5348","\u4e0a\u5348"):H<13?U.replace("\u4e0b\u5348","\u4e2d\u5348"):H<19?U.replace("\u4e0b\u5348","\u4e0b\u5348"):U.replace("\u4e0b\u5348","\u665a\u4e0a"));return U};
RtE=function(H){if(Ebc.has(H))return Ebc.get(H);var U=mx0(H);U=gbN(U);auN!==!0&&(auN=!0);xx0=!0;xx0=!1;U=new nq(U,Nx7);Ebc.set(H,U);return U};
mx0=function(H){return(new nq(H,Nx7)).patternParts_.map(function(U){return U.type===0?"'"+U.text+"'":U.text}).join("")};
gbN=function(H){return Jc==="en"||Jc==="es_US"||Jc==="es-US"?H:H.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(U,A,M){return"H".repeat(A.length)+M})};
reV=function(H,U){zt7||(Kq=ob7,zt7=new Cfc);var A=zt7;a:if(H=toF(H),U=toF(U||new Date),H>U)A=H.getTime()-U.getTime()>6048E5?_.PC(H,1):ce8(H);else{for(var M=0;yet(H,12*(M+1))<U;)++M;if(M>0)A=A.format(-M,0);else{for(M=0;yet(H,M+1)<U;)++M;if(M>0)A=A.format(-M,2);else{H=U.getTime()-H.getTime();U=_.b(BxN);for(M=U.next();!M.done;M=U.next()){M=M.value;var W=M.unit,w=Math.floor(H/M.unitDuration);if(w>=(M.threshold===void 0?1:M.threshold)){A=A.format(-w,W);break a}}A=A.format(-0,7)}}}return A};
toF=function(H){if(typeof H.getTime==="function")return H;if(piF(H))return L$c(H);throw Error("Of`"+JSON.stringify(H));};
yet=function(H,U){for(var A=0,M;;++A)if(M=new Date(H.getFullYear(),H.getMonth()+U,H.getDate()-A,H.getHours(),H.getMinutes(),H.getSeconds()),M.getMonth()===(H.getMonth()+U)%12)return M};
_.Nh=function(H){return{runs:[{text:H}]}};
_.Sp=function(H){if(H&&H.simpleText)return H.simpleText;var U="";if(H&&H.runs)for(var A=0;A<H.runs.length;A++)H.runs[A].text&&(U+=H.runs[A].text);return U};
DxV=function(H,U,A,M){return H.videoEntity&&!H.policyEntity&&A!=="DOWNLOAD_STATE_FAILED"?[Fz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:vO(H.policyEntity)&&U!=="TRANSFER_STATE_FAILED"&&U!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?U==="TRANSFER_STATE_PAUSED_BY_USER"?[Fz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.TQ(U)?[Fz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:H.videoEntity.lengthSeconds?etc(H.videoEntity.lengthSeconds,M):[]:
[Fz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
etc=function(H,U){var A=[{thumbnailOverlayTimeStatusRenderer:{text:_.gH(Znr({seconds:H})),style:"DEFAULT"}}];U&&(H=U<=0||H<=0?0:U>=H?100:Math.ceil(U*100/H),H>0&&A.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:H}}));return A};
$xE=function(H,U,A,M,W){if(U==="TRANSFER_STATE_UNKNOWN"||!H)return{};if(_.TQ(U)||U==="TRANSFER_STATE_PRE_TRANSFER")var w=[Fz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var d,O;if(U==="TRANSFER_STATE_COMPLETE"&&((d=H.mainPlaylistEntity)==null?0:(O=d.videos)==null?0:O.length)){var f;H=(w=H.mainPlaylistEntity)==null?void 0:(f=w.videos)==null?void 0:f.length;w=(w=Pfc(H))?{thumbnailOverlayBottomPanelRenderer:{text:_.gH(w),icon:{iconType:"PLAYLISTS"}}}:void 0;w=[spN(),Object.assign({},
w!=null?w:{})]}else w=[]}a:if(U==="TRANSFER_STATE_PRE_TRANSFER")A=au(_.hP("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(U==="TRANSFER_STATE_TRANSFER_IN_QUEUE")A=au(_.hP("WAITING_TO_DOWNLOAD"));else if(_.TQ(U))A=Math.floor(A*100).toString(),A=au(_.hP("DOWNLOADING_PERCENT",{percent:A},"Downloading... "+A+"%"));else{if(M&&(_.S("playlist_is_offline_selector_killswitch")&&(W=_.lx().resolve(_.xB).isNetworkAvailable()),W)){A=PKc(_.hP("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
oyE(M));break a}A=void 0}U=U==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.hP("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},w.length?{thumbnailOverlays:w}:{},A?{viewPlaylistText:A}:{viewPlaylistText:_.Nh("")},U.length?{badges:U}:{})};
luc=function(H,U,A,M,W,w){if(U==="TRANSFER_STATE_UNKNOWN"||!H)return{};if(M==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var d=DxV(H,U,M);if(H.videoEntity&&!H.policyEntity&&M!=="DOWNLOAD_STATE_FAILED"){var O=_.hP("WAITING_TO_DOWNLOAD");if(O)return{shortViewCountText:_.Nh(O),publishedTimeText:void 0,thumbnailOverlays:d}}if(!vO(H.policyEntity)){w=H.policyEntity&&!unN(H.policyEntity)?_.hP("DOWNLOAD_EXPIRED",{},"Download expired"):
_.hP("TRANSFER_FAILED",{},"Download failed");var f;if((f=H.policyEntity)==null?0:f.shortMessageForDisabledAction)w=H.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:au(w),publishedTimeText:void 0,thumbnailOverlays:d}}if(U==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Nh(_.hP("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:d};if(U==="TRANSFER_STATE_FAILED"||U==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Nh(_.hP("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:d};if(U==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(f=_.hP("WAITING_TO_DOWNLOAD"),M==="DOWNLOAD_STATE_PAUSED"&&(f=_.hP("DOWNLOAD_PAUSED",{},"Download paused")),f))return{shortViewCountText:_.Nh(f),publishedTimeText:void 0,thumbnailOverlays:d};if(_.TQ(U))return H=Math.floor(A*100).toString(),{shortViewCountText:_.Nh(_.hP("DOWNLOADING_PERCENT",{percent:H},"Downloading... "+H+"%")),publishedTimeText:void 0,thumbnailOverlays:d};U=void 0;H.videoEntity.publishedTimestampMillis&&
(U=new Date,W&&(U=new Date(W)),U=au(reV(new Date(Number(H.videoEntity.publishedTimestampMillis)),U)));W=[];_.S("kevlar_woffle_badge_killswitch")||(W=[{metadataBadgeRenderer:{label:_.hP("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var J;H=au((J=H.videoEntity.localizedStrings)==null?void 0:J.viewCount);return Object.assign({},w?{shortViewCountText:void 0}:{shortViewCountText:H},w?{}:{publishedTimeText:U},{badges:W,thumbnailOverlays:d})};
YNF=function(H,U){H=H===void 0?G4V:H;switch(U.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:U.payload.playlistId,inviteLinkURL:U.payload.inviteLinkUrl};default:return H}};
htt=function(H,U){H=H===void 0?qNF:H;switch(U.type){case "SET_CURRENT_FORM_ID":return U=U.payload.formId,H.currentFormId===U?H:{currentFormId:U,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var A=U.payload;U=A.groupId;A=A.command;if(H.currentFormId){var M=Object.assign({},H.commandsMap);M[U]=A;H=Object.assign({},H,{commandsMap:M})}return H;case "RESET_COMMAND_MAP":return Object.assign({},H,{commandsMap:{}});default:return H}};
vbt=function(H,U){H=H===void 0?k4c:H;switch(U.type){case "UPDATE_CANVAS_MODE":return Object.assign({},H,{currentMode:U.payload.currentMode});default:return H}};
jpt=function(H,U){H=H===void 0?Txh:H;switch(U.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},H,{guideIsExpanded:U.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},H,{scrollAtTop:U.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},H,{guideIsVisibleButNotPersistent:U.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},H,{miniplayerIsActive:U.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},H,{singleOptionSurveyIsActive:U.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},H,{slimlineSurveyRatingSelectedIndex:U.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},H,{richGridMiniMode:U.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},H,{richGridItemsPerRow:U.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},H,{richGridSlimItemsPerRow:U.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},H,{richGridContainerWidth:U.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},H,{richGridStyle:U.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},H,{currentPageType:U.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},H,{inlinePreviewIsActive:U.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},H,{inlinePreviewIsEnabled:U.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},H,{darkModeIsEnabled:U.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
H,{miniplayerPlaybackState:U.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},H,{tabGesturesIsActive:U.payload});case "SET_ONLINE_STATUS":return Object.assign({},H,{isOnline:U.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},H,{chipBarIsSticky:U.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},H,{frostedGlassMode:U.payload});default:return H}};
Iu_=function(){return _.S("kevlar_disable_theater_mode_persistence")?!1:_.xV("START_IN_THEATER_MODE")};
VoV=function(H,U){H=H===void 0?QpN:H;switch(U.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},H,{transcription:U.payload});case "SET_OVERLAY_STATE":return Object.assign({},H,{overlay:U.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return H}};
ddV=function(){return Z2(Object.assign({},{continuation:Hjt,download:Ud_,canvas:vbt,reportChannelAbuse:A60,share:ML8,talkToRecs:WI4,ui:jpt,voiceSearch:VoV,watch:w6h,ypc:X64,shorts:ij_,radioButtonGroup:htt,collabInviteLink:YNF},bjK))};
ZjE=function(){return _.S("web_player_entities_middleware")?new pq(ddV(),[Ojt,uWK]):new pq(ddV(),[Ojt])};
_.Lq=function(){f8_||(f8_=ZjE());return f8_};
J6K=function(H,U,A){if(H.length)return{titleText:_.gH(U!=null?U:_.hP("DOWNLOADS",void 0,"Downloads")),contents:H.map(function(M){var W=M.videoEntity;M={videoId:W.videoId,title:au(W.title),shortBylineText:au(M.channelEntity.title),thumbnail:W.thumbnail};var w=W.videoId?fq(_.Lq().getState(),W.videoId):0;W.videoId&&A?M.navigationEndpoint=_.mb(W.videoId,A,void 0,void 0,w):W.videoId&&(M.navigationEndpoint=Kg7(W.videoId,w,W.lengthSeconds));W.lengthSeconds&&(M.thumbnailOverlays=etc(W.lengthSeconds,w));return{playlistPanelVideoRenderer:M}}),
totalVideos:H.length}};
KIc=function(H){return(H=(0,_.dG.getValueByKeys)(H,"playlistId"))?{playlistId:H}:null};
oNr=function(){return{}};
FIc=function(H,U){return new _.IQ(function(A,M){H.then(function(W){if(W){if(W=U(W))return A(W);M()}},M)})};
Ph0=function(H){var U,A,M,W=(U=H.contents)==null?void 0:(A=U.twoColumnWatchNextResults)==null?void 0:(M=A.autoplay)==null?void 0:M.autoplay,w,d,O;U=(w=H.contents)==null?void 0:(d=w.twoColumnWatchNextResults)==null?void 0:(O=d.playlist)==null?void 0:O.playlist;return W&&U&&U.playlistId?{rawResponse:H,autoplayRenderer:W,playlistPanelRenderer:U,playlistId:U.playlistId}:null};
nNc=function(H){var U=U===void 0?"UNKNOWN_INTERFACE":U;if(H.length===1)return H[0];var A=sjV[U];if(A){A=new RegExp(A);for(var M=_.b(H),W=M.next();!W.done;W=M.next())if(W=W.value,A.exec(W))return W}var w=[];Object.entries(sjV).forEach(function(d){var O=_.b(d);d=O.next().value;O=O.next().value;U!==d&&w.push(O)});
A=new RegExp(w.join("|"));H.sort(function(d,O){return d.length-O.length});
M=_.b(H);for(W=M.next();!W.done;W=M.next())if(W=W.value,!A.exec(W))return W;return H[0]};
_.RE=function(H){return"/youtubei/v1/"+nNc(H)};
_.E_=function(H,U){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:H}}},U!==void 0?{durationHintMs:U}:{})}};
_.mH=function(H,U){return _.E_(_.Nh(H),U)};
NUN=function(H,U){var A={mode:"NORMAL"};H&&(A.autoplayVideo=H.navigationEndpoint,A.nextButtonVideo=H.navigationEndpoint);U&&(A.previousButtonVideo=U.navigationEndpoint);return A};
LI_=function(H,U,A){if(!A||!A.sets)return{sets:[NUN(H,U)]};var M=A.sets.find(function(d){return d.mode==="NORMAL"}),W=(0,_.dG.unsafeClone)(A);
if(!M)return W.sets.push(NUN(H,U)),W;if(!H)return A;M=_.dG.getValueByKeys.apply(null,[M].concat(_.vI(SdK)));var w=_.dG.getValueByKeys.apply(null,[H].concat(_.vI(p64)));if(M===w)return A;W.sets=W.sets.filter(function(d){return d.mode!=="NORMAL"});
W.sets.push(NUN(H,U));return W};
RLh=function(H){return!!H.playlistPanelVideoRenderer&&!H.playlistPanelVideoRenderer.unplayableText};
EN7=function(H){return!!H.playlistPanelVideoRenderer&&!!H.playlistPanelVideoRenderer.title};
mdM=function(H,U){if(U.contents&&!(H>=U.contents.length)&&(H=U.contents.slice(H).find(RLh)))return H.playlistPanelVideoRenderer};
gNK=function(H,U){if(U.contents)return(U=U.contents.find(function(A){return!!A.playlistPanelVideoRenderer&&A.playlistPanelVideoRenderer.videoId===H}))?U.playlistPanelVideoRenderer:void 0};
a8c=function(H,U){return U.contents?U.contents.findIndex(function(A){return!!A.playlistPanelVideoRenderer&&A.playlistPanelVideoRenderer.videoId===H}):-1};
xdE=function(H,U){return U.contents?U.contents.findIndex(function(A){return!!A.playlistPanelVideoRenderer&&A.playlistPanelVideoRenderer.playlistSetVideoId===H}):-1};
zLF=function(H,U){H.contents&&U!==-1&&H.contents.splice(U,1).length===1&&H.totalVideos!==void 0&&(--H.totalVideos,delete H.videoCountText)};
_.Chc=function(H){var U=[];if(!H||!H.contents)return U;H=_.b(H.contents);for(var A=H.next();!A.done;A=H.next())A=A.value,A.playlistPanelVideoRenderer&&A.playlistPanelVideoRenderer.videoId&&U.push(A.playlistPanelVideoRenderer.videoId);return U};
_.tL7=function(H){if(H&&H.contents)return(H=H.contents.find(function(U){return!!U.playlistPanelVideoRenderer&&!!U.playlistPanelVideoRenderer.selected})||H.contents[H.currentIndex])?H.playlistPanelVideoRenderer:void 0};
c6F=function(H,U,A,M,W,w,d){W=W===void 0?!1:W;w=w===void 0?!1:w;d=d===void 0?!1:d;if(H.contents&&H.contents.length!==0){M&&(H.contents=H.contents.filter(M));M=H.contents.length;for(var O=0;O<M;O++){var f=H.contents[O].playlistPanelVideoRenderer;f&&(O===U?(w&&delete f.menu,f.indexText=_.Nh("\u25b6")):W||H.isInfinite||f.indexText===void 0?delete f.indexText:f.indexText=_.Nh((O+1+A).toString()))}H.currentIndex=U+A;d&&(delete H.videoCountText,H.totalVideos=M)}};
_.g1=function(H){H=lcK(H);if(H){var U=H.length;var A=-54%U;A<0&&(A=U+A);H=H.slice(U-A)+H.slice(0,U-A)}else H="";A="";for(U=0;U<H.length&&H[U]!==y6F;U++)A+=H[U];return A};
_.BUK=function(H,U){var A=document.body;U=U===void 0?function(O){return O}:U;
var M,W=null;H=_.b(H);for(M=H.next();!M.done;M=H.next()){var w=M.value;M="div";w[2]&&(M=U(w[2]));M=document.createElement(M);W||(W=M);var d=w[0];w=w[1];d&&(M.id=U(d));if(w)for(w=_.b(w),d=w.next();!d.done;d=w.next())M.classList.add(U(d.value));A.appendChild(M);A=M}return[W,A]};
r6M=function(H,U){for(var A="",M=0;M<U;M++)A+=H.charAt(Math.floor(Math.random()*H.length));return A};
aE=function(H){return r6M("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",H)};
xO=function(H){return r6M("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",H)};
zv=function(H){return r6M("0123456789",H)};
eLE=function(){var H=performance.now(),U=new Date;var A="2."+U.getFullYear()+String(U.getMonth()+1).padStart(2,"0")+String(U.getDate()).padStart(2,"0");for(var M,W=Math.floor(Math.random()*11)+15,w=[],d=0;d<W;d++)w.push(Math.floor(Math.random()*26476865)+24547720);M=w.join(",");var O=aE(10),f=aE(100),J=aE(102),F=aE(106),P=aE(108),n=aE(11),N=aE(1140),L=aE(123),m=aE(14),z=aE(16),c=aE(1900),C=aE(23),v=aE(26),Y=aE(34),D=aE(397),h=aE(44),T=aE(5),WF=aE(72),dK=aE(74),SN=aE(75),o_=aE(88),PF=aE(91),BF="rr5---sn-q4flrnle rr5---sn-q4fl6n6s rr3---sn-t0a7sn7d rr2---sn-q4fl6ns7 rr1---sn-q4fl6nd6 rr4---sn-q4fzen7s rr2---sn-q4flrner rr4---sn-q4fl6n6s rr3---sn-q4flrnez rr4---sn-5hne6nsz rr4---sn-q4fzenee rr5---sn-q4flrnlz rr1---sn-ntqe6n76 rr1---sn-q4fl6nsy rr4---sn-q4fzen7r rr5---sn-q4fl6ndz rr3---sn-q4fl6nd6 rr4---sn-q4flrnl7 rr3---sn-q4fzen7l rr4---sn-5hne6n6e".split(" ");
var kc=BF[Math.floor(Math.random()*BF.length)];var G8=(new Date("2010-01-01")).getTime();var Pr=(new Date(G8+Math.random()*((new Date).getTime()-G8))).toISOString().split("T")[0];for(var Z3,Yc=[],sz=0;sz<4;sz++)Yc.push(Math.floor(Math.random()*100));Z3=Yc.join(".");var Ry=Number(zv(5)),oy=Number(zv(6)),aY=Number(zv(7)),im=Number(zv(9)),Kh=zv(1),rK=zv(10),FB=zv(16),T2=zv(19),xK=zv(2),Hj=zv(20),CU=zv(21),Qh=zv(3),oY=zv(4),qp=zv(5),kf=zv(6),Oz=zv(7),Fh=zv(8),Kk=zv(9);var kK=r6M("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var ew=[xO(5),xO(5),xO(5)].join("%2C"),O$=[zv(3),zv(5),zv(5)].join("%2C"),lv=xO(0),G2=xO(1),K8=xO(10),Qp=xO(108),uv=xO(11),Rl=xO(12),uL=xO(13),UW=xO(14),pW=xO(15),pU=xO(16),mF=xO(17),gK=xO(18),eN=xO(19),T8=xO(2),Sw=xO(20),RY=xO(22),gM=xO(23),zy=xO(24),mw=xO(266),Ez=xO(3),Gy=xO(30),XL=xO(34),nk=xO(35),tz=xO(36),V9=xO(4),GC=xO(40),JD=xO(43),U4=xO(47),gV=xO(5),DD=xO(6),vC=xO(7),hq=xO(75),nv=xO(8),Yh=xO(80),p1=xO(9),LU="https://www."+xO(12)+".com",pe={},YC={},qG={},k6={},Go={},qb={},hJ={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:M}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:A},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+xO(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:A},{key:"client.name",value:"WEB"},{key:"client.fexp",value:M}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:CU+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+xO(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:GC,ypcGetOfflineUpsellEndpoint:{params:Yh}},trackingParams:nk+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fmp4&ns="+zy+"&cnr="+xK+"&ratebypass=yes&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&c=WEB&txp="+Oz+"&n="+z+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:oy,width:640,height:360,lastModified:FB,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Oz,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+O$+"&mn="+
ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fmp4&ns="+zy+"&cnr="+xK+"&ratebypass=yes&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&c=WEB&txp="+Oz+"&n="+z+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Qp+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:oy,width:1280,
height:720,lastModified:FB,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Oz,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+O$+"&mn="+ew+"&ms="+
ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fmp4&ns="+zy+"&gir="+Ez+"&clen="+Kk+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:aY,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Kk,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:aY,approxDurationMs:Oz},{itag:248,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+O$+"&mn="+ew+"&ms="+ew+"&mv="+
G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fwebm&ns="+zy+"&gir="+Ez+"&clen="+Kk+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/webm; codecs="vp9"',bitrate:aY,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Kk,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:aY,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oz},{itag:399,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+
O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fmp4&ns="+zy+"&gir="+Ez+"&clen="+Kk+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:aY,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Kk,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:aY,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oz},{itag:136,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+
O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fmp4&ns="+zy+"&gir="+Ez+"&clen="+Kk+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:aY,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Kk,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:oy,approxDurationMs:Oz},{itag:247,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+O$+"&mn="+
ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fwebm&ns="+zy+"&gir="+Ez+"&clen="+Kk+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/webm; codecs="vp9"',bitrate:aY,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Kk,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:oy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oz},{itag:398,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+
O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fmp4&ns="+zy+"&gir="+Ez+"&clen="+Kk+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:aY,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Kk,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:oy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oz},{itag:135,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+
O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fmp4&ns="+zy+"&gir="+Ez+"&clen="+Fh+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:oy,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Fh,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:oy,approxDurationMs:Oz},{itag:244,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+O$+"&mn="+
ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fwebm&ns="+zy+"&gir="+Ez+"&clen="+Fh+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Qp+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/webm; codecs="vp9"',bitrate:oy,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Fh,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:oy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oz},{itag:397,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+
O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fmp4&ns="+zy+"&gir="+Ez+"&clen="+Fh+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:oy,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Fh,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:oy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oz},{itag:134,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+
O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fmp4&ns="+zy+"&gir="+Ez+"&clen="+Fh+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:oy,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Fh,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:oy,highReplication:!0,approxDurationMs:Oz},{itag:243,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+
O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fwebm&ns="+zy+"&gir="+Ez+"&clen="+Fh+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/webm; codecs="vp9"',bitrate:oy,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Fh,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:oy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oz},{itag:396,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+
O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fmp4&ns="+zy+"&gir="+Ez+"&clen="+Fh+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:oy,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Fh,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:oy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oz},{itag:133,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+
O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fmp4&ns="+zy+"&gir="+Ez+"&clen="+Fh+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:oy,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Fh,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:oy,approxDurationMs:Oz},{itag:242,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+O$+"&mn="+
ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fwebm&ns="+zy+"&gir="+Ez+"&clen="+Fh+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/webm; codecs="vp9"',bitrate:oy,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Fh,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:oy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oz},{itag:395,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+
O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fmp4&ns="+zy+"&gir="+Ez+"&clen="+Fh+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:oy,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Fh,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:oy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oz},{itag:160,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+
O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fmp4&ns="+zy+"&gir="+Ez+"&clen="+Fh+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:oy,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Fh,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ry,approxDurationMs:Oz},{itag:278,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+O$+"&mn="+
ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fwebm&ns="+zy+"&gir="+Ez+"&clen="+Fh+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/webm; codecs="vp9"',bitrate:oy,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Fh,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ry,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oz},{itag:394,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&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="+
O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=video%2Fmp4&ns="+zy+"&gir="+Ez+"&clen="+Fh+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Ry,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Fh,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ry,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oz},{itag:140,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=audio%2Fmp4&ns="+zy+"&gir="+Ez+"&clen="+Fh+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:oy,
initRange:{start:"0",end:"631"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Fh,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:oy,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Oz,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+
xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=audio%2Fwebm&ns="+zy+"&gir="+Ez+"&clen="+Oz+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'audio/webm; codecs="opus"',bitrate:Ry,initRange:{start:"0",end:"265"},indexRange:{start:Qh,
end:oY},lastModified:FB,contentLength:Oz,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Ry,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Oz,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=audio%2Fwebm&ns="+
zy+"&gir="+Ez+"&clen="+Oz+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'audio/webm; codecs="opus"',bitrate:Ry,initRange:{start:"0",end:"265"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Oz,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Ry,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Oz,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+kc+".googlevideo.com/videoplayback?expire="+rK+"&ei="+C+"&ip="+Z3+"&id=o-AF"+JD+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+O$+"&mn="+ew+"&ms="+ew+"&mv="+G2+"&mvi="+Kh+"&pl="+xK+"&initcwndbps="+Oz+"&siu="+Kh+"&spc="+h+"&vprv="+Kh+"&svpuc="+Kh+"&mime=audio%2Fwebm&ns="+zy+"&gir="+Ez+"&clen="+Fh+"&dur="+Fh+"&lmt="+FB+"&mt="+rK+"&fvip=3&keepalive="+Ez+"&c=WEB&txp="+
Oz+"&n="+pU+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+P,mimeType:'audio/webm; codecs="opus"',bitrate:oy,initRange:{start:"0",end:"265"},indexRange:{start:Qh,end:oY},lastModified:FB,contentLength:Fh,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:oy,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Oz,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="+Kk+"&docid="+n+"&ei="+C+"&feature="+O+"&fexp="+lv+"&ns="+T8+"&plid="+z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+G2+"&el="+K8+"&len="+oY+"&of="+RY+
"&uga="+xK+"&vm="+mw},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Kk+"&docid="+n+"&ei="+C+"&feature="+O+"&fexp="+lv+"&ns="+T8+"&plid="+z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+G2+"&el="+K8+"&len="+oY+"&of="+RY+"&uga="+xK+"&vm="+mw},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Kk+"&docid="+n+"&ei="+C+"&feature="+O+"&fexp="+lv+"&ns="+T8+"&plid="+z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
G2+"&el="+K8+"&len="+oY+"&of="+RY+"&uga="+xK+"&vm="+mw},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+C+"&m="+o_+"&oid="+RY+"&plid="+z+"&pltype="+vC+"&ptchn="+RY+"&ptk="+m+"&video_id="+n},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Kk+"&docid="+n+"&ei="+C+"&event="+UW+"&feature="+O+"&fexp="+lv+"&ns="+T8+"&plid="+z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+G2},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
pU+"&ver=2&cmt=1."+Qh+"&fmt="+Qh+"&fs=0&rt="+qp+"&euri&lact="+Qh+"&cl="+Kk+"&mos="+Kh+"&volume=100&cbrand="+gV+"&cbr="+DD+"&cbrver="+Z3+"&c=WEB&cver="+A+"&cplayer=UNIPLAYER&cos="+p1+"&cosver="+Oz+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+xK+"&len="+Fh+"&fexp="+ew+"&feature=g-high-rec&afmt="+Qh+"&muted=0&conn=1&docid="+n+"&ei="+C+"&plid="+z+"&vm="+xO(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
n+"&caps="+Ez+"&opi="+Kk+"&xoaf="+Kh+"&hl="+T8+"&ip="+Z3+"&ipbits="+Kh+"&expire="+rK+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Z3+"&key="+Ez+"&lang="+T,name:{simpleText:mF},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+n+"&caps="+Ez+"&opi="+Kk+"&xoaf="+Kh+"&hl="+T8+"&ip="+Z3+"&ipbits="+Kh+"&expire="+rK+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Z3+"&key="+Ez+"&kind="+Ez+"&lang="+T8,name:{simpleText:pU},
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:uv,title:DD,lengthSeconds:"1155",keywords:[DD,uL,p1,uL],channelId:zy,isOwnerViewing:!1,shortDescription:uL,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+tz+"G&rs="+XL,width:168,height:94},{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+tz+
"G&rs="+XL,width:196,height:110},{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+tz+"G&rs="+Y,width:246,height:138},{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+tz+"G&rs="+Y,width:336,height:188},{url:"https://i.ytimg.com/vi/"+n+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Oz,author:uL,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Oz,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
RY+"/featured_channel.jpg?v="+nv,width:40,height:40}]},trackingParams:nk+"=",navigationEndpoint:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{url:"/channel/"+zy,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:zy}},channelName:uL,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Rl}]},subscribed:!1,enabled:!0,type:"FREE",channelId:zy,showPreferences:!1,subscribedButtonText:{runs:[{text:pU}]},unsubscribedButtonText:{runs:[{text:uv}]},
trackingParams:nk+"=",unsubscribeButtonText:{runs:[{text:gV}]},serviceEndpoints:[{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[zy],params:nv}},{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:GC,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:nk+"=",dialogMessages:[{runs:[{text:pU},
{text:V9},{text:uL}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:gK}]},serviceEndpoint:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[zy],params:nv}},accessibility:{label:eN},trackingParams:nk+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:V9}]},accessibility:{label:Sw},
trackingParams:nk+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:K8}},unsubscribeAccessibility:{accessibilityData:{label:eN}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Fh},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[zy],
params:nv}},unsubscribeCommand:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[zy],params:nv}},addToWatchLaterCommand:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:uv,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:uv}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+n+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+tz+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+n+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+uv,width:1280,
height:720},title:{simpleText:pW},description:{simpleText:p1},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+V9,externalChannelId:zy,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:Oz,category:"Travel & Events",publishDate:Pr,ownerChannelName:uL,uploadDate:Pr}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Sw},trackingParams:nk+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:GC,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:nk+"="}}],headerText:{simpleText:Rl},icon:{infoCardIconRenderer:{trackingParams:nk+"="}},closeButton:{infoCardIconRenderer:{trackingParams:nk+"="}},trackingParams:nk+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:nk+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+uv+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:kK,interpreterSafeUrl:(pe.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Gy+".js",pe),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:K8},{text:pU,bold:!0}]},endpoint:{clickTrackingParams:GC,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:nk+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:vC}]},actionButton:{buttonRenderer:{text:{runs:[{text:eN}]},navigationEndpoint:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+n,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
n,target:"TARGET_NEW_WINDOW"}},trackingParams:nk+"="}},trackingParams:nk+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+WF+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+WF+"=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:Oz,endMs:Oz,title:{accessibility:{accessibilityData:{label:eN}},simpleText:vC},metadata:{simpleText:gK},callToAction:{simpleText:Sw},dismiss:{simpleText:UW},endpoint:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{url:"/channel/"+zy,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:zy}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:V9}]},subscribed:!1,enabled:!0,type:"FREE",channelId:zy,showPreferences:!1,
subscribedButtonText:{runs:[{text:Sw}]},unsubscribedButtonText:{runs:[{text:nv}]},trackingParams:nk+"=",unsubscribeButtonText:{runs:[{text:UW}]},serviceEndpoints:[{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[zy],params:nv}},{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:GC,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:nk+
"=",dialogMessages:[{runs:[{text:V9},{text:uL},{text:eN}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:uL}]},serviceEndpoint:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[zy],params:nv}},accessibility:{label:vC},trackingParams:nk+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:UW}]},
accessibility:{label:UW},trackingParams:nk+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:gK}},unsubscribeAccessibility:{accessibilityData:{label:K8}}}},trackingParams:nk+"=",isSubscribe:!0,id:Hj}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+tz+"G&rs="+Y,width:168,height:94},{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+tz+"G&rs="+XL,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+tz+"G&rs="+Y,width:246,height:138},{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+tz+"G&rs="+Y,width:336,height:188},{url:"https://i.ytimg.com/vi/"+n+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Oz,endMs:Oz,title:{accessibility:{accessibilityData:{label:eN}},simpleText:eN},metadata:{simpleText:eN},endpoint:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
uv,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:uv,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+kc+".googlevideo.com/videoplayback?source=youtube&oeis="+Kh+"&c=WEB&oad="+oY+"&ovd="+oY+"&oaad="+qp+"&oavd="+qp+"&ocs="+Qh+"&oewis="+Kh+"&oputc="+Kh+"&ofpcc="+Kh+"&siu="+Kh+"&msp="+Kh+"&odepv="+Kh+
"&id=o-AF"+JD+"&ip="+Z3+"&initcwndbps="+Oz+"&mt="+rK+"&oweuc="+lv}}}}},trackingParams:nk+"=",id:Hj,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:gK}},simpleText:gK},style:"DEFAULT"}}]}}],startMs:Oz,trackingParams:nk+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Kh,offsetEndMilliseconds:qp},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kk+";dc_trk_cid="+Kk+";dc_dbm_token="+P+";ord="+rK+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Kh+";dc_rui="+Kh+";dc_exteid="+Hj+";dc_av="+Qh+";dc_sk="+Kh+";dc_ctype="+xK+";dc_ref=http://www.youtube.com/video/"+uv+";dc_pubid="+Kh+";dc_btype=23?gclid="+PF+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Kh+"&ns="+Kh+"&event="+Kh+"&device="+Kh+"&content_v="+n+"&el="+K8+"&ei="+C+"&devicever="+A+"&bti="+Oz+"&format="+kf+"&break_type="+Kh+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Kh+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Z3+"&slot_pos="+Kh+"&slot_len="+Kh+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+O$+"&ad_len="+qp+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
uv+"&aqi="+C+"&ad_rmp="+Kh+"&sli="+Kh}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+
";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+kf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+Oz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&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"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&ctype="+Qh+"&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"+
N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_engaged_view&ctype="+Qh+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+kf+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Kk+";dc_trk_cid="+Kk+";dc_dbm_token="+P+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Kh+";ord="+Kk+";dc_rui="+Kh+";dc_exteid="+T2+";dc_av="+Kh+";dc_sk="+Kh+";dc_ctype="+xK+";dc_pubid="+Kh+";dc_btype=3?gclid="+PF+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+J+"&sig="+gM+"&ad_cpn=[AD_CPN]&id="+DD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+DD+"&dc_pubid="+Kh+"&dc_exteid="+Hj+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+J+"&sig="+gM+"&ad_cpn=[AD_CPN]&id="+DD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Kh},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+DD+"&avm="+Kh+"&dc_pubid="+Kh+"&dc_exteid="+
Hj+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&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="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
J+"&sig="+gM+"&ad_cpn=[AD_CPN]&id="+DD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Kh},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+DD+"&dc_pubid="+Kh+"&dc_exteid="+Hj+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+kf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+kf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:GC,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+
Qh+"&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/"+n+"/mqdefault.jpg",width:320,height:180}]},trackingParams:nk+"="},trackingParams:nk+
"=",templatedCountdown:{templatedAdText:{text:V9,isTemplated:!0,trackingParams:nk+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:eN,isTemplated:!1,trackingParams:nk+"="},trackingParams:nk+"="}},trackingParams:nk+"=",skipOffsetMilliseconds:5E3}},trackingParams:nk+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:pW},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nk+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Rl,isTemplated:!1,trackingParams:nk+"="},trackingParams:nk+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:UW,isTemplated:!0,trackingParams:nk+"="}},trackingParams:nk+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:GC,openPopupAction:{popup:{aboutThisAdRenderer:{url:(YC.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+T8+"&origin=www.youtube.com&ata_theme="+V9,YC),trackingParams:nk+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:nk+"="}},hoverText:{runs:[{text:gV}]},trackingParams:nk+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+U4+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:nk+"="},headline:{text:pW,isTemplated:!1,trackingParams:nk+"="},description:{text:DD,
trackingParams:nk+"="},actionButton:{buttonRenderer:{text:{simpleText:p1},navigationEndpoint:{clickTrackingParams:GC,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kk+";dc_trk_cid="+Kk+";dc_dbm_token="+P+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Kh+";ord="+Kk+";dc_rui="+Kh+";dc_exteid="+Hj+";dc_av="+Kh+";dc_sk="+Kh+";dc_ctype="+xK+";dc_pubid="+Kh+";dc_btype=3?gclid="+PF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nk+"="}},startMs:Kh,trackingParams:nk+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:mF},elementId:uL}},elementId:Rl,trackingParams:nk+"=",legacyInfoCardVastExtension:V9,sodarExtensionData:{siub:Rl,bgub:Sw,scs:pU,bgp:DD},externalVideoId:uv,adLayoutLoggingData:{serializedAdServingDataEntry:V9},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+U4+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:nk+"="},
headline:{text:Sw,isTemplated:!1,trackingParams:nk+"="},description:{text:gV,isTemplated:!1,trackingParams:nk+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:uL},navigationEndpoint:{clickTrackingParams:GC,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kk+";dc_trk_cid="+Kk+";dc_dbm_token="+P+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Kh+";ord="+Kk+";dc_rui="+Kh+";dc_exteid="+
Hj+";dc_av="+Kh+";dc_sk="+Kh+";dc_ctype="+xK+";dc_pubid="+Kh+";dc_btype=3?gclid="+PF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+
Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nk+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:nk+"="}},navigationEndpoint:{clickTrackingParams:GC,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kk+";dc_trk_cid="+
Kk+";dc_dbm_token="+P+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Kh+";ord="+Kk+";dc_rui="+Kh+";dc_exteid="+Hj+";dc_av="+Kh+";dc_sk="+Kh+";dc_ctype="+xK+";dc_pubid="+Kh+";dc_btype=3?gclid="+PF+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+
L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nk+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:nk+"="},abandonCommands:{commands:[{clickTrackingParams:GC,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&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="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+
Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:GC,commandExecutorCommand:{commands:[{clickTrackingParams:GC,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Rl,isTemplated:!1,trackingParams:nk+
"="},trackingParams:nk+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:p1},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+Oz+";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="+Kk+";dc_trk_cid="+Kk+";ord="+rK+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Kh+";dc_rui="+Kh+";dc_exteid="+Hj+";dc_av="+Qh+";dc_sk="+Kh+";dc_ctype="+xK+";dc_ref=http://www.youtube.com/video/"+uv+";dc_pubid="+Kh+";dc_btype=23?gclid="+PF+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Kh+"&ns="+Kh+"&event="+Kh+"&device="+Kh+"&content_v="+n+"&el="+K8+"&ei="+C+"&devicever="+A+"&bti="+Oz+"&format="+kf+"&break_type="+Kh+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Kh+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Z3+"&slot_pos="+Kh+"&slot_len="+Kh+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
O$+"&ad_len="+qp+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+uv+"&aqi="+C+"&ad_rmp="+Kh+"&sli="+Kh}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+kf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+
v+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+Oz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&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"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&ctype="+Qh+"&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"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_engaged_view&ctype="+Qh+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+kf+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+J+"&sig="+gM+"&ad_cpn=[AD_CPN]&id="+
DD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+DD+"&dc_pubid="+Kh+"&dc_exteid="+Hj+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+J+
"&sig="+gM+"&ad_cpn=[AD_CPN]&id="+DD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Kh},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+DD+"&avm="+Kh+"&dc_pubid="+Kh+"&dc_exteid="+Hj+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&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="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+J+"&sig="+gM+"&ad_cpn=[AD_CPN]&id="+DD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Kh},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+DD+"&dc_pubid="+Kh+"&dc_exteid="+Hj+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+kf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+kf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+
Qh+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&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/"+n+"/mqdefault.jpg",width:320,height:180}]},trackingParams:nk+"="},trackingParams:nk+"=",templatedCountdown:{templatedAdText:{text:gK,isTemplated:!0,trackingParams:nk+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:uL,isTemplated:!1,trackingParams:nk+"="},trackingParams:nk+"="}},
trackingParams:nk+"=",skipOffsetMilliseconds:5E3}},trackingParams:nk+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:pU},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nk+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Sw,isTemplated:!1,trackingParams:nk+"="},trackingParams:nk+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:vC,
isTemplated:!0,trackingParams:nk+"="}},trackingParams:nk+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:GC,openPopupAction:{popup:{aboutThisAdRenderer:{url:(qG.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+T8+"&origin=www.youtube.com&ata_theme="+V9,qG),trackingParams:nk+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:nk+"="}},hoverText:{runs:[{text:K8}]},trackingParams:nk+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+dK+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:nk+"="},headline:{text:uL,isTemplated:!1,trackingParams:nk+"="},description:{text:pU,trackingParams:nk+"="},actionButton:{buttonRenderer:{text:{simpleText:p1},navigationEndpoint:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nk+"="}},startMs:Kh,trackingParams:nk+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:pU},elementId:uL}},elementId:K8,trackingParams:nk+"=",legacyInfoCardVastExtension:vC,sodarExtensionData:{siub:uv,bgub:Rl,scs:Rl,bgp:p1},externalVideoId:uv,adLayoutLoggingData:{serializedAdServingDataEntry:Rl},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+dK+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:nk+"="},headline:{text:mF,
isTemplated:!1,trackingParams:nk+"="},description:{text:uL,isTemplated:!1,trackingParams:nk+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:K8},navigationEndpoint:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nk+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:nk+"="}},navigationEndpoint:{clickTrackingParams:GC,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+
Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nk+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:nk+"="},abandonCommands:{commands:[{clickTrackingParams:GC,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&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="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+xK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:GC,commandExecutorCommand:{commands:[{clickTrackingParams:GC,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:DD,isTemplated:!1,trackingParams:nk+"="},trackingParams:nk+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:pW},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Kh+";dc_exteid="+Hj+";met="+Kh+";ecn"+Kh+"="+Kh+";etm1="+Kh+";eid1="+
Oz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:vC}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:eN}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:qp,offsetEndMilliseconds:kf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+xK+"&token=ALHj"+D+"&index="+Kh+"&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="+A+"&m_pos_ms="+qp}},adSlotLoggingData:{serializedSlotAdServingDataEntry:V9}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:kf,offsetEndMilliseconds:kf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+Qh+"&token=ALHj"+D+"&index="+Kh+"&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="+
A+"&m_pos_ms="+kf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pW}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:kf,offsetEndMilliseconds:kf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+Qh+"&token=ALHj"+D+"&index="+Kh+"&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="+
A+"&m_pos_ms="+kf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:uL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:kf,offsetEndMilliseconds:kf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+Qh+"&token=ALHj"+D+"&index="+Kh+"&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="+
A+"&m_pos_ms="+kf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:uL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:kf,offsetEndMilliseconds:xK},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+Qh+"&token=ALHj"+D+"&index="+Kh+"&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="+
A+"&m_pos_ms="+kf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:K8}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:xK,offsetEndMilliseconds:xK},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+xK+"&token=ALHj"+D+"&index="+Kh+"&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="+
A+"&m_pos_ms="+xK}},adSlotLoggingData:{serializedSlotAdServingDataEntry:uL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:UW,isTemplated:!1,trackingParams:nk+"="},description:{text:DD,isTemplated:!1,trackingParams:nk+"="},actionButton:{buttonRenderer:{text:{simpleText:mF},navigationEndpoint:{clickTrackingParams:GC,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Kk+";dc_trk_cid="+Kk+";dc_dbm_token="+P+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Kh+";ord="+Kk+";dc_rui="+Kh+";dc_exteid="+Hj+";dc_av="+Kh+";dc_sk="+Kh+";dc_ctype="+xK+";dc_pubid="+Kh+";dc_btype=3?gclid="+PF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nk+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+U4+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:nk+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+SN+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:nk+"="},navigationEndpoint:{clickTrackingParams:GC,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kk+";dc_trk_cid="+Kk+";dc_dbm_token="+P+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Kh+";ord="+Kk+
";dc_rui="+Kh+";dc_exteid="+Hj+";dc_av="+Kh+";dc_sk="+Kh+";dc_ctype="+xK+";dc_pubid="+Kh+";dc_btype=3?gclid="+PF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nk+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:GC,openPopupAction:{popup:{aboutThisAdRenderer:{url:(k6.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+T8+"&origin=www.youtube.com&ata_theme="+V9,k6),trackingParams:nk+"="}},popupType:"DIALOG"}},trackingParams:nk+"="}},hoverText:{runs:[{text:pW}]},trackingParams:nk+"="}},adVideoId:uv,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:vC},associatedCompositePlayerBytesLayoutId:pU}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:DD}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Rl,isTemplated:!1,trackingParams:nk+"="},description:{text:pW,isTemplated:!1,trackingParams:nk+"="},actionButton:{buttonRenderer:{text:{simpleText:vC},navigationEndpoint:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+
L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nk+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+dK+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:nk+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+hq+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:nk+"="},navigationEndpoint:{clickTrackingParams:GC,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+
Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nk+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:GC,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Go.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+T8+"&origin=www.youtube.com&ata_theme="+V9,Go),trackingParams:nk+"="}},popupType:"DIALOG"}},trackingParams:nk+"="}},
hoverText:{runs:[{text:gV}]},trackingParams:nk+"="}},adVideoId:uv,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+uv+"&cid="+v+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Sw},associatedCompositePlayerBytesLayoutId:pU}},adSlotLoggingData:{serializedSlotAdServingDataEntry:DD}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:pU,
isTemplated:!1,trackingParams:nk+"="},description:{text:Rl,isTemplated:!1,trackingParams:nk+"="},actionButton:{buttonRenderer:{text:{simpleText:nv},navigationEndpoint:{clickTrackingParams:GC,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kk+";dc_trk_cid="+Kk+";dc_dbm_token="+P+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Kh+";ord="+Kk+";dc_rui="+Kh+";dc_exteid="+Hj+";dc_av="+Kh+";dc_sk="+Kh+";dc_ctype="+
xK+";dc_pubid="+Kh+";dc_btype=3?gclid="+PF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+
Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nk+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+U4+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:nk+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+SN+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:nk+
"="},navigationEndpoint:{clickTrackingParams:GC,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kk+";dc_trk_cid="+Kk+";dc_dbm_token="+P+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Kh+";ord="+Kk+";dc_rui="+Kh+";dc_exteid="+Hj+";dc_av="+Kh+";dc_sk="+Kh+";dc_ctype="+xK+";dc_pubid="+Kh+";dc_btype=3?gclid="+PF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+N+"____________"+L+"AxAA&ase=2&num="+Kh+"&cid="+v+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+LU+"&label=video_click_to_advertiser_site&ctype="+Qh+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nk+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:GC,openPopupAction:{popup:{aboutThisAdRenderer:{url:(qb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+T8+"&origin=www.youtube.com&ata_theme="+V9,qb),trackingParams:nk+"="}},popupType:"DIALOG"}},trackingParams:nk+
"="}},hoverText:{runs:[{text:eN}]},trackingParams:nk+"="}},adVideoId:uv,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+N+"____________"+L+"AxAA&sigh="+n+"&cid="+v+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:eN},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:pU}},adSlotLoggingData:{serializedSlotAdServingDataEntry:UW}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Gy,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Gy,command:{innertubeCommand:{clickTrackingParams:GC,ypcGetOfflineUpsellEndpoint:{params:Yh}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:nk+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:rK,nanos:im}}}},OD=JSON.stringify(hJ),kh=performance.now()-H;return{objectRepresentation:hJ,jsonRepresentation:OD,generationTime:kh}};
DdV=function(H,U){if(H===U)return!0;if(!H||!U||typeof H!==typeof U)return!1;if(H instanceof Array&&U instanceof Array){if(H.length!==U.length)return!1;for(var A=0;A<H.length;A++)if(!DdV(H[A],U[A]))return!1;return!0}if(typeof H==="object"&&typeof U==="object"&&H&&U){for(A in H)if(!(A in U&&DdV(H[A],U[A])))return!1;for(var M in U)if(!(M in H))return!1;return!0}return!1};
_.tc=function(){if(!Cq){Cq=new Tg(new $dc);var H=_.hr("client_streamz_web_flush_count",-1);H!==-1&&(Cq.invocationLimit=H)}return Cq};
cC=function(H,U,A,M){if(H===U)return!0;if(Array.isArray(H)&&Array.isArray(U)){if(H.length!==U.length)return!1;for(var W=0;W<H.length;W++)if(!cC(H[W],U[W],A,M))return!1;return!0}if(H instanceof Set||U instanceof Set){if(H instanceof Set&&U instanceof Set){if(H.size!==U.size)return!1;M=_.b(H.values());for(W=M.next();!W.done;W=M.next())if(!U.has(W.value))return!1;return!0}return!1}if(H instanceof Function){if(M)return!0;H.name===""&&_.sD(Error("Sf"),"ERROR");return!1}if(H instanceof Date&&U instanceof
Date)return H.getTime()===U.getTime();if(H instanceof Object&&U instanceof Object){if(l8h(H)&&l8h(U))try{return H.equals(U)}catch(d){_.sD(Error("Tf`"+d),"ERROR")}W=Object.getOwnPropertyNames(H).filter(function(d){return A?H[d]!==void 0:!0});
var w=Object.getOwnPropertyNames(U).filter(function(d){return A?U[d]!==void 0:!0});
if(W.length!==w.length)return!1;W=_.b(W);for(w=W.next();!w.done;w=W.next())if(w=w.value,!cC(H[w],U[w],A,M))return!1;return!0}return!1};
l8h=function(H){H=Object.getPrototypeOf(H).equals;return H instanceof Function&&H.length===1};
_.qd_=function(){return _.u(function(H){if(H.nextAddress==1)return Gtr!==2?H.jumpTo(2):H.yield(YdM(),3);H.nextAddress!=2&&(Gtr=H.yieldResult);return H.return(Gtr)})};
_.vNh=function(){return _.u(function(H){if(H.nextAddress==1)return _.S("ab_pl_man")?hLF!==2?H.jumpTo(2):H.yield(ktN(),3):H.return(1);H.nextAddress!=2&&(hLF=H.yieldResult);return H.return(hLF)})};
I80=function(){return _.u(function(H){if(H.nextAddress==1)return _.S("ab_fk_sk_cl")?TUN!==2?H.jumpTo(2):H.yield(jj7(),3):H.return(1);H.nextAddress!=2&&(TUN=H.yieldResult);return H.return(TUN)})};
_.HQM=function(){return _.u(function(H){if(H.nextAddress==1)return _.S("ab_det_apb_b")?QjF!==2?H.jumpTo(2):H.yield(VL4(),3):H.return(1);H.nextAddress!=2&&(QjF=H.yieldResult);return H.return(QjF)})};
M8M=function(){var H;return _.u(function(U){if(U.nextAddress==1)return U.yield(Promise.all([_.qd_(),_.HQM(),_.vNh(),I80()]),2);if(U.nextAddress!=3)return UkK()?U.return(!0):U.yield(_.A_K(),3);H=U.yieldResult;return U.return(H===0)})};
UkK=function(){var H=!1,U=function(A,M){WhF.increment(M,A);A===0&&(H=!0)};
U(_.wB7(),"j.s_");U(Gtr,"f.i_");U(QjF,"a.b_");U(hLF,"p.m_");U(TUN,"i.f_");XBM===2&&(XBM=_.iQc(bQr));U(XBM,"e.h_");_.S("ks_det_gpbl")||U(_.dkh(),"p.i_");_.S("ks_get_o_pp")||U(_.OQ_(),"g.o_");_.S("ab_deg_unex_thr")||U(_.uu8(),"a.o_");U(ZQh,"s.t_");_.S("ab_det_sc_inj_enf")&&U(_.fCM(),"s.i_");U(J_c,"d.p_");U(_.Khc(_.y3),"o.p_");U(_.oxE()===0?0:_.Fhr(),"o.a_");return _.S("debug_sk_em_precheck")?!0:H};
sGt=function(){var H=[].concat(_.vI(Pk_));try{var U=eLE();H.push({jsonRepresentation:U.jsonRepresentation,objectRepresentation:U.objectRepresentation})}catch(A){H=[].concat(_.vI(Pk_))}return H};
nxr=function(){var H=["adPlacements","adSlots"];try{return H.filter(function(){return!0}).length!==H.length?0:1}catch(U){return 0}};
_.OQ_=function(){if(nxr()===0)return 0;var H=eLE(),U=H.objectRepresentation,A=(0,_.dG.unsafeClone)(U),M=[];if(U&&typeof U==="object")for(var W in U)M.push(W);else return 4;H=H.objectRepresentation.adPlacements;if(!(H&&H.length>0))return 4;try{if(!DdV(M,Object.getOwnPropertyNames(U)))return 0}catch(w){return 0}return DdV(A,U)?1:0};
_.Khc=function(H){if(!H||!H.length||typeof H==="string")return 0;for(var U=Object.getOwnPropertyNames(Object.prototype),A=0;A<H.length;A++)for(var M=_.g1(H[A]),W=_.b(U),w=W.next();!w.done;w=W.next())if(M===w.value)return 0;return 1};
No_=function(H){var U=_.g1(H[1]);if(H[0]===null)return U;H=H[0];for(var A={},M=0;M<H.length;M++){var W=_.g1(H[M]);if(M===0)A[W]=U;else{var w={};w[W]=A;A=w}}return A};
_.oxE=function(){for(var H=_.BC,U=0;U<H.length;U++){var A=No_(H[U]),M=[];M.push(A);if(M.length===0)return 0}return 1};
_.Fhr=function(){for(var H=_.BC,U={},A=0;A<H.length;U={eP2:void 0},A++){var M=[No_(H[A])];U.eP2=[];M.forEach(function(W){return function(w){W.eP2[W.eP2.length]=w}}(U));
if(U.eP2.length===0)return 0}return 1};
_.wB7=function(){for(var H=_.b(sGt()),U=H.next();!U.done;U=H.next()){var A=U.value;U=A.jsonRepresentation;A=A.objectRepresentation;try{var M=JSON.parse(U);if(!cC(M,A,!1,!1))return 0}catch(W){return 0}}return 1};
_.fCM=function(){try{var H=_.v5("ab_det_sc_inj_val");H.length===1&&H[0]===""&&(H=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var U=document.querySelectorAll("script"),A=_.b(U),M=A.next();!M.done;M=A.next())for(var W=M.value,w=_.b(H),d=w.next();!d.done;d=w.next()){var O=d.value;U=void 0;if((U=W.textContent)==null?0:U.includes(O))return 0}}catch(f){return 4}return 1};
_.A_K=function(){var H,U,A,M,W,w,d;return _.u(function(O){switch(O.nextAddress){case 1:_.zj(O,2),H=_.b(Pk_),U=H.next();case 4:if(U.done)return O.return(1);M=A=U.value;W=M.jsonRepresentation;w=M.objectRepresentation;return O.yield((new Response(W,{status:200})).json(),7);case 7:d=O.yieldResult;if(!cC(d,w,!1,!1))return O.return(0);U=H.next();O.jumpTo(4);break;case 2:return _.eG(O),O.return(4)}})};
_.uu8=function(){try{btoa("abc")}catch(H){return 0}return 1};
YdM=function(){var H,U,A,M,W,w,d,O,f,J,F;return _.u(function(P){switch(P.nextAddress){case 1:_.zj(P,2),H=_.b(sGt()),U=H.next();case 4:if(U.done)return P.return(1);M=A=U.value;W=M.jsonRepresentation;w=M.objectRepresentation;d=btoa(W);O="data:application/json;base64,"+d;f=new Request(O);Object.defineProperty(f,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(f,"method",{get:function(){return"POST"}});
Object.defineProperty(f,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(f,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(f,"body",{get:function(){return new ReadableStream}});
return P.yield(fetch(f),7);case 7:return J=P.yieldResult,P.yield(J.json(),8);case 8:F=P.yieldResult;if(!cC(F,w,!1,!1))return P.return(0);U=H.next();P.jumpTo(4);break;case 2:return _.eG(P),P.return(4)}})};
_.iQc=function(H){if(!H||!H.length||typeof H==="string")return 0;for(var U=function(W){return _.g1(W)},A=2,M=0;M<H.length&&(A=_.Sq4(_.BUK(H[M],U)),A!==0);M++);
return A};
_.Sq4=function(H){var U=_.b(H);H=U.next().value;U=U.next().value;try{var A=document.createElement("div");document.body.appendChild(A);var M=getComputedStyle(A).display;document.body.removeChild(A);if(M==="none")return 4;var W=getComputedStyle(U).display==="none"?0:1;document.body.removeChild(H);return W}catch(w){return 4}};
jj7=function(){var H,U,A;return _.u(function(M){H=new _.r1;U=document.createElement("button");U.classList.add("ytp-ad-skip-button");U.style.opacity="0";U.style.height="0px";U.style.width="0px";U.style.padding="0px";U.style.border="none";A=function(){U.parentElement&&U.parentElement.removeChild(U)};
U.onclick=function(){H.resolve(0);A()};
document.body.appendChild(U);setTimeout(function(){A();H.resolve(1)},50);
return M.return(H.promise)})};
ktN=function(){var H,U,A,M,W,w,d;return _.u(function(O){H=new _.r1;U=document.createElement("ytd-player");try{document.body.prepend(U)}catch(f){return O.return(4)}A=function(){U.parentElement&&U.parentElement.removeChild(U)};
U.getElementsByTagName("div").length>0?M=U.getElementsByTagName("div")[0]:(M=document.createElement("div"),U.appendChild(M));W=document.createElement("div");M.appendChild(W);w=document.createElement("video");d=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"});w.src=_.hR(_.I5(d));w.ontimeupdate=function(){A();H.resolve(0)};
W.appendChild(w);w.classList.add("html5-main-video");setTimeout(function(){W.classList.add("ad-interrupting")},200);
setTimeout(function(){A();H.resolve(1)},5E3);
return O.return(H.promise)})};
pB7=function(H){var U=eLE().objectRepresentation.playbackTracking;if(U){var A=[],M;A.push(U==null?void 0:(M=U.videostatsPlaybackUrl)==null?void 0:M.baseUrl);var W;A.push(U==null?void 0:(W=U.videostatsDelayplayUrl)==null?void 0:W.baseUrl);var w;A.push(U==null?void 0:(w=U.videostatsWatchtimeUrl)==null?void 0:w.baseUrl);var d;A.push(U==null?void 0:(d=U.ptrackingUrl)==null?void 0:d.baseUrl);var O;A.push(U==null?void 0:(O=U.qoeUrl)==null?void 0:O.baseUrl);var f;A.push(U==null?void 0:(f=U.atrUrl)==null?
void 0:f.baseUrl);U=_.b(A);for(A=U.next();!A.done;A=U.next())if((A=A.value)&&H.test(A))return A.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
Lhh=function(H,U){var A,M;return _.u(function(W){switch(W.nextAddress){case 1:A=[],M=0;case 2:if(!(M<3)){W.jumpTo(4);break}return W.yield(fetch(H,{cache:"no-store",method:U}).then(function(w){A.push(w.status)}).catch(function(){A.push(-1)}),3);
case 3:M++;W.jumpTo(2);break;case 4:return W.return(A)}})};
Rh4=function(H){return H.domainLookupStart===0&&H.domainLookupEnd===0&&H.connectStart===0&&H.connectEnd===0||H.duration===0};
Ext=function(H,U,A){A=A===void 0?"GET":A;var M,W,w,d,O,f,J,F,P,n;return _.u(function(N){if(N.nextAddress==1)return N.yield(Promise.all([Lhh(H,A),Lhh(U,A)]),2);M=N.yieldResult;W=_.b(M);w=W.next().value;d=W.next().value;O=w;f=d;if(Math.min.apply(Math,_.vI(f))!==Math.max.apply(Math,_.vI(f))||Math.min.apply(Math,_.vI(O))!==Math.max.apply(Math,_.vI(O)))return N.return(2);if(Math.min.apply(Math,_.vI(f))===Math.min.apply(Math,_.vI(O)))return N.return(1);F=(J=performance.getEntriesByName(H))==null?void 0:
J[0];n=(P=performance.getEntriesByName(U))==null?void 0:P[0];return F&&n?Rh4(n)?N.return(1):Rh4(F)?N.return(0):N.return(1):N.return(2)})};
VL4=function(){var H;return _.u(function(U){var A=[];var M;var W,w,d;(W=M=(W=eLE().objectRepresentation.streamingData)==null?void 0:(w=W.formats)==null?void 0:(d=w[0])==null?void 0:d.url)&&W&&!M.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(W=W.replace("initcwndbps","ctier=L&initcwndbps"),W=W.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),M={testUrl:W,baseUrl:M,method:"GET"}):M=void 0;M&&A.push(M);_.S("ab_net_tp_e")&&A.push({testUrl:_.Mr.location.origin+"/ad_companion",baseUrl:_.Mr.location.origin+
"/generate_204",method:"OPTIONS"});_.S("ab_fix_creator_view_cnt")&&(A.length=0,(M=pB7(/api\/stats\/atr/))&&A.push({testUrl:_.Mr.location.origin+M,baseUrl:_.Mr.location.origin+"/generate_204",method:"POST"}));_.S("ad_net_pb_pbp")&&(M=pB7(/api\/stats\/qoe/))&&A.push({testUrl:_.Mr.location.origin+M,baseUrl:_.Mr.location.origin+"/feed/download",method:"GET"});A=A.length!==0?A[Math.floor(Math.random()*A.length)]:void 0;return(H=A)?U.return(Ext(H.testUrl,H.baseUrl,H.method)):U.return(4)})};
_.dkh=function(){if(_.Mr.ps3===void 0||_.Mr.ps3===null||typeof _.Mr.ps3!=="function")return 2;try{return _.Mr.ps3()===!0?0:1}catch(H){return 0}};
mkE=function(H){switch(H){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.U$(H,"unknown result type")}};
_.gxh=function(H,U){var A=Number(_.gD("CATSTAT",0));if(U.aLc===void 0)return A;U=U.aLc;H=mkE(H);return A&~(3<<U)|H<<U};
aC0=function(H){var U,A;if((H=(U=H.auxiliaryUi)==null?void 0:(A=U.messageRenderers)==null?void 0:A.bkaEnforcementMessageViewModel)&&H.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return H};
zht=function(){for(var H=_.b(Object.values(_.xkh)),U=H.next();!U.done;U=H.next())U=U.value,U.jJL&&U.aLc&&_.mT("CATSTAT",_.gxh(2,U))};
_.$O=function(H,U){H=_.ep("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",H);(U===void 0?0:U)?_.Ck7(H,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.DY().logFlowEvent(H,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
c_F=function(){if(!t8E){if(Polymer.Base){var H=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{H.apply(this,arguments)}catch(P){_.za(P)}};
var U=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{U.apply(this,arguments)}catch(P){_.za(P)}};
var A=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{A.apply(this,arguments)}catch(P){_.za(P)}};
var M=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{M.apply(this,arguments)}catch(P){_.za(P)}};
var W=Polymer.Base._listen,w=new WeakMap;Polymer.Base._listen=function(P,n,N){var L=function(){try{N.apply(this,arguments)}catch(m){_.za(m)}};
w.set(N,L);W.call(this,P,n,L)};
var d=Polymer.Base._unlisten;Polymer.Base._unlisten=function(P,n,N){d.call(this,P,n,w.get(N))}}if(Polymer.Async){var O=Polymer.Async,f=O._atEndOfMicrotask;
O._atEndOfMicrotask=function(){try{f.apply(O,arguments)}catch(P){_.za(P)}}}if(Polymer.RenderStatus){var J=Polymer.RenderStatus,F=J.afterNextRender;
J.afterNextRender=function(P,n,N){F.call(J,P,function(){try{n.apply(this,arguments)}catch(L){_.za(L)}},N)}}t8E=!0}};
_.Boh=function(H){var U=H?_.DU(H):"";if(U){if(U.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(U.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(U.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(U.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(U.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.S("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(U.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";U=U.toLowerCase();if(U==="/")return"home";if(U==="/channel_memberships")return"channel-memberships-shopfront";if(U.indexOf("/feed/trending")===0)return"trending";if(U.indexOf("/feed/explore")===0)return"explore";if(U.indexOf("/live")===0)return"live";if(U.indexOf("/results")===0)return"search";if(U.indexOf("/sports")===0)return"sports";if(U.indexOf("/fashion")===0||U.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(U))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(U))return _.S("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(U.indexOf("/channel/")===0||U.indexOf("/user/")===0||U.indexOf("/gaming")===0||U.indexOf("/post/")===0)return"channel";if(y_K(H))return"show";if(U==="/playlist"||U.indexOf("/playlist/")===0||U==="/view_play_list"||U.indexOf("/view_play_list/")===0||U.indexOf("/show/")===0)return"playlist";if(U==="/companion_canvas")return"companion-canvas";if(U==="/feed/history"||
U.indexOf("/feed/history/")===0)return"history";if(U==="/new")return"labs";if(U==="/feed/subscriptions")return"subscriptions";if(U.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(U==="/history_controls")return"standalone";if(U.indexOf("/account")===0||U==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(U.indexOf("/paid_memberships")===0||U.indexOf("/refund")===0||U.indexOf("/purchases")===0||U.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(U.indexOf("/product")===
0)return"yts-products";if(U.indexOf("/premium")===0||U.indexOf("/musicpremium")===0)return U.indexOf("/premium/offers")===0||U.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(U==="/cart/checkout"||U==="/cart")return"ypc-checkout";if(U.indexOf("/reporthistory")===0)return _.S("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(U.indexOf("/feed/downloads")===0||U.indexOf("/redeem")===0)return"browse";if(U.indexOf("/hashtag")===0)return"hashtag-landing-page";if(U.indexOf("/handle")===
0)return"handle";if(U.indexOf("/source")===0)return"audio-pivot";if(U.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(U.indexOf("/playables")===0)return"playables";if(U.indexOf("/create/live/join")===0)return"open-in-app";if(U.indexOf("/shorts")===0)return"shorts";if(U.indexOf("/feed/channels")===0)return"subscriptions-channels";var A=H?_.DU(H):"";A&&A.indexOf("/watch")===0&&_.S("web_watch_enable_learning_journey")?(H=_.rD(H),H=!!H.list&&H.list.indexOf("LJPP")===0):H=!1;if(H)return"learning_journey_watch";
if(_.S("enable_new_page_subtypes_for_ai_companion")&&U==="/feed/courses")return"your-courses"}};
_.lE=function(H){var U,A;(H=(A=_.p(H==null?void 0:H.commandMetadata,_.Y2))==null?void 0:A.url)&&(U=_.Boh(H));return U};
y_K=function(H){var U=H?_.DU(H):"";if(!U)return!1;U=U.toLowerCase();return U.indexOf("/show/")===0||U.indexOf("/playlist")===0&&(H=_.rD(H),H.list&&H.list.indexOf("EL")===0)?!0:!1};
qh=function(H){var U="unknown",A;var M=((A=_.p(H==null?void 0:H.commandMetadata,_.Y2))==null?void 0:A.webPageType)||"";M?(A=M.toLowerCase(),A.startsWith("web_page_type_")&&(A=A.slice(14))):A=M;A&&r_0[A.toUpperCase()]?U=r_0[A.toUpperCase()]:_.p(H,_.Gv)||_.p(H,ehr)?U="browse":_.p(H,_.YO)?U="search":_.p(H,_.sH)&&(U="watch");U==="watch"&&_.lE(H||null)==="learning_journey_watch"&&(U="learning_journey_watch");U==="unknown"&&_.Na(Error("Vf`"+JSON.stringify({clickTrackingParams:H==null?void 0:H.clickTrackingParams,
commandMetadata:H==null?void 0:H.commandMetadata,allEndpointKeys:Object.keys(H||[])})));return U};
_.hc=function(H){if(!_.DkF||H)_.DkF=_.VT();return _.DkF};
_.$k8=function(H){return!!_.p(H,_.sH)||!!_.p(H,_.kO)&&_.S("kevlar_enable_shorts_prefetch")};
_.lCN=function(H,U){H=_.p(H,_.sH)||_.p(H,_.kO);return"v"+H.videoId+(H.playlistId?"-pl"+H.playlistId:"")+(U?"-an1":"")+(H.params?"-pr"+H.params:"")};
_.GHh=function(H){var U=new Tv(_.gD("ONE_PICK_URL",""));U.urlParamMap_.set("hostId",H);(H=_.gD("GAPI_LOCALE"))&&U.urlParamMap_.set("hl",H);(H=_.gD("SESSION_INDEX"))&&U.urlParamMap_.set("authuser",H);(H=_.gD("DELEGATED_SESSION_ID"))&&U.urlParamMap_.set("groupId",H);return U};
qqF=function(){var H=_.lx(),U=H.resolve(_.jp);H=H.resolve(_.IE);return new Yq0(U,H)};
kHK=function(H){if(window.IntersectionObserver)return new hh8(H,400);throw new TypeError("Xf");};
Tot=function(){var H=Hammer.TouchAction,U=H.prototype.preventDefaults;H.prototype.preventDefaults=function(A){var M=this.actions.indexOf("pan-down")>-1;if(!M)return U.call(this,A);if(!vx7){var W=A.srcEvent;A=A.direction;var w;if((w=this.manager)==null?0:w.session.prevented)W.preventDefault();else if(M&&A&Hammer.DIRECTION_DOWN)return this.preventSrc(W)}}};
jGF=function(H){if(!H||H.size===0)return Hammer.DIRECTION_ALL;if(H.size===2){if(H.has("up")&&H.has("down"))return Hammer.DIRECTION_VERTICAL;if(H.has("right")&&H.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(H.size===1){if(H.has("up"))return Hammer.DIRECTION_UP;if(H.has("down"))return Hammer.DIRECTION_DOWN;if(H.has("right"))return Hammer.DIRECTION_RIGHT;if(H.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.V3=function(H,U,A){var M=A&&A>0?A:0;A=M?Date.now()+M*1E3:0;if((M=M?_.Q3.getLocalStorage():_.Q3.getSessionStorage())&&window.JSON){typeof U!=="string"&&(U=JSON.stringify(U,void 0));try{M.set(H,U,A)}catch(W){M.remove(H)}}};
_.H4=function(H){var U=_.Q3.getSessionStorage(),A=_.Q3.getLocalStorage();if(!U&&!A||!window.JSON)return null;try{var M=U.get(H)}catch(W){}if(typeof M!=="string")try{M=A.get(H)}catch(W){}if(typeof M!=="string")return null;try{M=JSON.parse(M,void 0)}catch(W){}return M};
_.UU=function(H){try{var U=_.Q3.getSessionStorage(),A=_.Q3.getLocalStorage();U&&U.remove(H);A&&A.remove(H)}catch(M){}};
QGF=function(H){var U=ICE(),A;return _.u(function(M){switch(M.nextAddress){case 1:return _.zj(M,2),M.yield(H.match(U,{cacheName:"yt-appshell-assets"}),4);case 4:A=M.yieldResult;_.xD(M,3);break;case 2:_.eG(M);case 3:return M.return(A)}})};
ICE=function(){var H=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?V8V.registration.scope:HXc;H.endsWith("/")&&(H=H.slice(0,-1));return H+"/app_shell_home"};
ULc=function(H){H.map(function(U){return U.source}).join("|")};
_.AKK=function(H){return _.u(function(U){return U.return(QGF(H))})};
Mir=function(){var H=window.caches,U;return _.u(function(A){if(A.nextAddress==1)return A.yield(_.AKK(H),2);U=A.yieldResult;return A.return(!!U)})};
OXc=function(){_.u(function(H){if(H.nextAddress==1){if(WmV)return H.jumpTo(0);WmV=!0;if(_.S("enable_system_health_primes_monitoring"))return _.Ih(whN,3E4),XhV(),H.return();if(!(Math.random()<_.hr("web_system_health_fraction")))return H.jumpTo(0);iXV={heightPixels:screen.height,widthPixels:screen.width};AG&&!isNaN(AG.jsHeapSizeLimit)&&(iXV.memoryTotalKbytes=String(Math.round(AG.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(iXV.devicePixelRatio=window.devicePixelRatio);return H.yield(bXh(),4)}_.Ih(whN,
3E4);return H.yield(dLt(),0)})};
bXh=function(){return _.u(function(H){if(H.nextAddress==1)return Mv.intersectionObserverPresent="IntersectionObserver"in window,Mv.serviceWorkerPresent="serviceWorker"in navigator,Mv.webSharePresent="share"in navigator,Mv.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Mv.cacheStoragePresent="caches"in window,Mv.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Mv.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Mv.webkitTemporaryStoragePresent="webkitTemporaryStorage"in W4&&W4.webkitTemporaryStorage&&"queryUsageAndQuota"in W4.webkitTemporaryStorage,Mv.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",H.yield(ycc(),2);Mv.indexedDbPresent=H.yieldResult;Mv.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Mv.broadcastChannelPresent="BroadcastChannel"in window;Mv.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Mv.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Mv.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.DO(H)})};
whN=function(){var H=9E4+Math.random()*2E3;_.$B()>H||(_.S("enable_system_health_primes_monitoring")?XhV():dLt())};
dLt=function(){var H;return _.u(function(U){if(U.nextAddress==1)return U.yield(uD7(),2);H=U.yieldResult;_.Fx("systemHealthCaptured",H);_.DO(U)})};
XhV=function(){var H={metric:{}},U=ZXE();U.networkEvents.length&&(H.metric.networkEvents=fGV(U));_.Fx("systemHealthCaptured",H)};
uD7=function(){var H,U,A,M,W,w,d,O,f,J;return _.u(function(F){switch(F.nextAddress){case 1:H={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)};U=window.screen;_.S("enable_is_extended_monitoring")&&U&&"isExtended"in U&&(H.isExtended=!!U.isExtended);A={metric:{staticContext:iXV,dynamicContext:H,webMetric:JK0,webApiSupport:Mv}};
if(M=_.XK())A.csn=M;AG&&(A.metric.webMetric.currentHeapKbytes=Math.round(AG.usedJSHeapSize/1E3));window.matchMedia&&(A.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,A.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,A.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in W4&&typeof W4.getBattery==="function")){F.jumpTo(2);break}return F.yield(W4.getBattery(),3);case 3:if(W=
F.yieldResult)A.metric.dynamicContext.chargingStatus=W.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(A.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Mv.storageEstimatePresent)return F.yield(navigator.storage.estimate(),8);if(!Mv.webkitTemporaryStoragePresent){F.jumpTo(5);break}return F.yield(Kmc(),7);case 7:w=F.yieldResult;F.jumpTo(5);break;case 8:w=F.yieldResult;case 5:return A.metric.dynamicContext.deviceStorageQuotaMbytes=((d=w)==null?0:d.quota)?String(Math.round(w.quota/
1048576/10)*10):"-1",A.metric.dynamicContext.deviceStorageUsageMbytes=((O=w)==null?0:O.usage)?String(Math.round(w.usage/1048576/10)*10):"-1",f=A.metric.dynamicContext,F.yield(Mir(),9);case 9:return f.hasAppShell=F.yieldResult,J=ZXE(),J.networkEvents.length&&(A.metric.networkEvents=fGV(J)),F.return(A)}})};
Kmc=function(){return new Promise(function(H){var U;Mv.webkitTemporaryStoragePresent&&(U=W4.webkitTemporaryStorage)!=null&&U.queryUsageAndQuota?W4.webkitTemporaryStorage.queryUsageAndQuota(function(A,M){H({usage:A,quota:M})}):H(void 0)})};
_.wn=function(H){H&=16777215;H=[(H&16711680)>>16,(H&65280)>>8,H&255];return Bph(H[0],H[1],H[2])};
_.bN=function(H){H=[(H&16711680)>>>16,(H&65280)>>>8,H&255,(H&4278190080)>>>24];if(!_.oo7(H,function(U){return U===(U&255)}))throw Error("Yf`"+H.join(","));
return"rgba("+H[0]+","+H[1]+","+H[2]+","+(H[3]/255).toFixed(3)+")"};
_.FmV=function(H){return[(H&16711680)>>>16,(H&65280)>>>8,H&255]};
_.Py_=function(H){H=H.map(function(U){U/=255;return U<=.03928?U/12.92:Math.pow((U+.05)/1.05,2.4)});
return H[0]*.2126+H[1]*.7152+H[2]*.0722};
dn=function(H,U){H=_.FmV(H);return"rgba("+H[0]+", "+H[1]+", "+H[2]+", "+U+")"};
OU=function(H){return(H&4278190080)>>>24===0?dn(H,"1"):_.bN(H)};
_.sZ7=function(){try{return!!self.localStorage}catch(H){return!1}};
phh=function(){if(noK())_.Na(Error("Zf"));else{var H=document.createElement("iframe");H.style.display="none";var U=U===void 0?window.location.href:U;var A=_.PW(_.gD("PERSIST_IDENTITY_IFRAME_URL"));U=A?A:(new URL(U)).host.indexOf("studio")===0?_.LF(Nec,"persist_identity"):_.LF(SsF,"persist_identity");_.XP(H,1,U);H.id="persist_identity";var M;(M=document.body)==null||M.appendChild(H)}};
noK=function(){var H=Lm4;H||(H=document.querySelector("#persist_identity"));return H};
Rqc=function(){var H=!1;try{H=!!window.sessionStorage.getItem("session_logininfo")}catch(U){H=!0}return(_.gD("INNERTUBE_CLIENT_NAME")==="WEB"||_.gD("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&H};
Eor=function(H,U){if(!Rqc())return!1;U||(U=_.gD("LOGIN_INFO"));return U?(H.session_logininfo=U,!0):!1};
goE=function(H,U){H=H===void 0?!1:H;if((U===void 0||!U)&&mLc!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.xV("LOG_STICKINESS",!1)){U=_.XK();var A=_.ws(),M={identityStickinessData:{initialState:mLc}};U&&A&&_.pE(U,A,M)}if(U=noK())if(A=U.src?(new URL(U.src)).origin:"*",H){var W;(W=U.contentWindow)==null||W.postMessage({action:"clear"},A)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(H=window.sessionStorage.getItem("session_logininfo"))){var w;(w=U.contentWindow)==null||w.postMessage({loginInfo:H},A)}};
_.uN=function(H){H=H===void 0?!0:H;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.mT("LOGIN_INFO",""),H&&window.sessionStorage.setItem("from_switch_account","1"),goE(!0,H)}catch(U){}};
aGc=function(H){H&&(H.startsWith("https://accounts.google.com/AddSession")?_.uN():H.startsWith("https://accounts.google.com/ServiceLogin")?_.uN():H.startsWith("https://myaccount.google.com")&&_.yX(H).getPath().endsWith("/youtubeoptions")&&_.uN())};
Zt=function(H,U){aGc(H);if(_.xV("LOGGED_IN",!0)&&Rqc()){var A=cAN(H);A==null&&(A={});Eor(A,U)&&_.Sb(H,A)}};
xLh=function(){function H(U){for(U=U.target;U&&U.nodeName!=="A";)if(U=U.parentNode,!(U&&U instanceof HTMLElement))return;if(U&&!U.hasAttribute("download")&&U.getAttribute("rel")!=="external"&&U.href)return U.href}
document.addEventListener("mousedown",function(U){U.button!==0&&(U=H(U))&&Zt(U)});
document.addEventListener("click",function(U){(U=H(U))&&Zt(U)})};
tiV=function(){var H=new zqM;try{if(_.xV("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(O){H.increment(5,!1);return}if(_.gD("LOGIN_INFO")){var U=CyF?CyF:window.location;_.gD("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&phh();var A=cAN(U.href);A==null&&(A={});var M=A.session_logininfo,W=Number(window.sessionStorage.getItem("stickiness_reload")),w=M===_.gD("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
W>=2||w)W>=2?H.increment(2,w):w?H.increment(7,w):window.sessionStorage.getItem("session_logininfo")||(H.increment(3,w),mLc="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.gD("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.gD("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))H.increment(4,w),window.sessionStorage.removeItem("stickiness_reload");
else if(W<2){window.sessionStorage.setItem("stickiness_reload",String(W+1));var d=U.href;d=_.js(d,"sttick");Zt(d,window.sessionStorage.getItem("session_logininfo"));d=_.ey(d,{sttick:W});H.increment(W,w);_.tGh(U,d)}}else H.increment(6,!1)}else _.uN(!1)}catch(O){}};
_.ff=function(H,U,A,M,W){U=U===void 0?{}:U;A=A===void 0?"":A;M=M===void 0?window:M;H=_.kZ(H,U);Zt(H);A=_.j3(H+A,W);_.tGh(M.location,A)};
cK4=function(H){if(H.urlEndpoint){if(H=_.rD(H.urlEndpoint.url),H.adurl)return YZ(H.adurl)}else if(H.watchEndpoint)return"//www.youtube.com/watch?v="+H.watchEndpoint.videoId;return null};
yK_=function(H){if(!H||!H.reportingPings)return null;var U={};H.reportingPings.forEach(function(A){A.pingType in U?U[A.pingType].push(A.url):U[A.pingType]=[A.url]});
return{adpings:bEc(U)}};
_.Kf=function(H){H=H===void 0?!1:H;var U=_.TR(),A="USER_INTERFACE_THEME_LIGHT";U.getFlag(165)?A="USER_INTERFACE_THEME_DARK":U.getFlag(174)?A="USER_INTERFACE_THEME_LIGHT":_.JG()&&(A="USER_INTERFACE_THEME_DARK");return H?A:BeV()||A};
_.rKK=function(){return!_.S("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.JG=function(){return _.rKK()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.or=function(){var H=_.TR();return _.rKK()&&!H.getFlag(165)&&!H.getFlag(174)};
BeV=function(){var H=H===void 0?window.location.href:H;if(_.S("kevlar_disable_theme_param"))return null;var U=_.DU(H);if(_.eqc(U))return"USER_INTERFACE_THEME_DARK";try{var A=_.rD(H).theme;return DL8.get(A)||null}catch(M){}return null};
_.eqc=function(H){return _.S("enable_dark_theme_only_on_shorts")?!(H==null||!H.startsWith("/shorts/")):!1};
_.sU=function(H,U,A,M,W){U=U===void 0?!1:U;A=A===void 0?!1:A;var w=_.gD("INNERTUBE_CONTEXT");if(!w)return _.sD(Error("cg")),{};w=(0,_.dG.unsafeClone)(w);_.S("web_no_tracking_params_in_shell_killswitch")||delete w.clickTracking;w.client||(w.client={});var d=w.client;d.clientName==="MWEB"&&d.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(d.clientFormFactor=_.gD("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");d.screenWidthPoints=window.innerWidth;d.screenHeightPoints=window.innerHeight;d.screenPixelDensity=
Math.round(window.devicePixelRatio||1);d.screenDensityFloat=window.devicePixelRatio||1;d.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());d.userInterfaceTheme=_.Kf();if(!U){var O=_.wCt();O&&(d.connectionType=O);_.S("web_log_effective_connection_type")&&(O=iqh())&&(w.client.effectiveConnectionType=O)}var f;if(_.S("web_log_memory_total_kbytes")&&((f=_.Mr.navigator)==null?0:f.deviceMemory)){var J;f=(J=_.Mr.navigator)==null?void 0:J.deviceMemory;w.client.memoryTotalKbytes=""+f*1E6}U&&M&&!_.S("web_it_context_set_original_url_ks")&&
(d.originalUrl=$L_(_.Mr.location.href,M).toString());_.S("web_gcf_hashes_innertube")&&(O=oah())&&(J=O.coldConfigData,f=O.coldHashData,O=O.hotHashData,w.client.configInfo=w.client.configInfo||{},J&&(w.client.configInfo.coldConfigData=J),f&&(w.client.configInfo.coldHashData=f),O&&(w.client.configInfo.hotHashData=O));J=_.rD(_.Mr.location.href);!_.S("web_populate_internal_geo_killswitch")&&J.internalcountrycode&&(d.internalGeo=J.internalcountrycode);!_.S("web_populate_client_screen_killswitch")&&W&&(d.clientScreen=
W);d.clientName==="MWEB"||d.clientName==="WEB"?(d.mainAppWebInfo||(d.mainAppWebInfo={}),d.mainAppWebInfo.graftUrl=M||_.Mr.location.href,_.S("kevlar_woffle")&&_.Fp.instance&&(M=_.Fp.instance,d.mainAppWebInfo.pwaInstallabilityStatus=!M.appInstalledEventFired&&M.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),d.mainAppWebInfo.webDisplayMode=bf7(),d.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):d.clientName==="TVHTML5"&&
(!_.S("web_lr_app_quality_killswitch")&&(M=_.gD("LIVING_ROOM_APP_QUALITY"))&&(d.tvAppInfo=Object.assign(d.tvAppInfo||{},{appQuality:M})),M=_.gD("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(d.tvAppInfo=Object.assign(d.tvAppInfo||{},{certificationScope:M}));!_.S("web_populate_time_zone_itc_killswitch")&&(M=Mp_())&&(d.timeZone=M);(M=Sn0())?d.experimentsToken=M:delete d.experimentsToken;d=LbM();M=_.lGM();M=(0,_.dG.getValues)(M.tokenJars);w.request=Object.assign({},w.request,{internalExperimentFlags:d,consistencyTokenJars:M});
!_.S("web_prequest_context_killswitch")&&(d=_.gD("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(w.request.externalPrequestContext=d);M=_.TR();d=M.getFlag(58);M=M.get("gsml","");w.user=Object.assign({},w.user);d&&(w.user.enableSafetyMode=d);M&&(w.user.lockedSafetyMode=!0);_.S("warm_op_csn_cleanup")?A&&(U=_.XK())&&(w.clientScreenNonce=U):!U&&(U=_.XK())&&(w.clientScreenNonce=U);H&&(w.clickTracking={clickTrackingParams:H});if(H=_.tr("yt.mdx.remote.remoteClient_"))w.remoteClient=H;_.P4.getInstance().setLocationOnInnerTubeContext(w);
try{var F=cwF(),P=F.bid;delete F.bid;w.adSignalsInfo={params:[],bid:P};for(var n=_.b(Object.entries(F)),N=n.next();!N.done;N=n.next()){var L=_.b(N.value),m=L.next().value,z=L.next().value;F=m;P=z;H=void 0;(H=w.adSignalsInfo.params)==null||H.push({key:F,value:""+P})}var c,C;if(((c=w.client)==null?void 0:c.clientName)==="TVHTML5"||((C=w.client)==null?void 0:C.clientName)==="TVHTML5_UNPLUGGED"){var v=_.gD("INNERTUBE_CONTEXT");v.adSignalsInfo&&(w.adSignalsInfo.advertisingId=v.adSignalsInfo.advertisingId,
w.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",w.adSignalsInfo.limitAdTracking=v.adSignalsInfo.limitAdTracking)}}catch(Y){_.sD(Y)}return w};
_.nf=function(){return{isShellLoad:_.xV("IS_SHELL_LOAD",!1)}};
Ys4=function(){navigator.serviceWorker.getRegistrations().then(function(H){H.forEach(GD8)})};
GD8=function(H){H&&_.qsN(hqE,H.scope)};
_.qsN=function(H,U){U={scope:U||_.kV("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.e3(H),U)};
Nv=function(H,U,A,M){if(U&&U.serializedYpcCujLoggingParams){if(A){var W={};W.transactionErrorType=A;M&&(W.errorMessage=M);U.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:W}}}A={};A.ypcCujContext=U;H=_.ep("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",H,A);_.DY().logFlowEvent(H,"FLOW_TYPE_YPC_ACQUISITION")}};
_.kDr=function(H,U,A,M){var W={};W.serializedTransactionFlowLoggingParams=U;A&&(W.errorType=A);M&&(W.errorMessage=M);_.Fx(H,W);_.P1()};
_.vo0=function(H){H&&_.kDr("transactionFlowStarted",H)};
_.Te8=function(H){H&&_.kDr("transactionFlowCancelled",H)};
_.Sk=function(H,U,A){U&&_.kDr("transactionFlowFailed",U,H,A)};
jZ0=function(H){var U=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");U&&(U.inert=H)};
_.pf=function(){this.megabloxUrl_=null};
_.Lf=function(H){try{var U=IGM==null?void 0:IGM.composedPath(H)}catch(A){U=H.composedPath?H.composedPath():[]}return U&&U.length>0?U:H.composedPath?H.composedPath():[]};
_.Rr=function(H){return _.Lf(H)[0]};
EU=function(H){return H instanceof ShadowRoot?ShadowRoot:H instanceof DocumentFragment?DocumentFragment:H instanceof Document?Document:HTMLElement};
QZE=function(H){if(H instanceof Element)return Element.prototype;if(H instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("gg`"+H);};
Vi8=function(H,U){return _.S("sunnydom_native_scoped_query_selectors")?QZE(H).querySelector.call(H,U):EU(H).prototype.querySelector.call(H,U)};
HCc=function(H,U){return _.S("sunnydom_native_scoped_query_selectors")?QZE(H).querySelectorAll.call(H,U):EU(H).prototype.querySelectorAll.call(H,U)};
UB8=function(H){var U,A,M;return(M=(A=(U=H.parentElement)!=null?U:H.__shady_native_parentElement)!=null?A:H.__shady_parentElement)!=null?M:null};
AS7=function(H){var U,A,M;return(M=(A=(U=H.parentNode)!=null?U:H.__shady_native_parentNode)!=null?A:H.__shady_parentNode)!=null?M:null};
MY4=function(H){var U,A,M;return(M=(A=(U=H.nextSibling)!=null?U:H.__shady_native_nextSibling)!=null?A:H.__shady_nextSibling)!=null?M:null};
W8K=function(H){var U,A,M;return(M=(A=(U=H.previousSibling)!=null?U:H.__shady_native_previousSibling)!=null?A:H.__shady_previousSibling)!=null?M:null};
wE4=function(H){var U,A,M;return(M=(A=(U=H.nextElementSibling)!=null?U:H.__shady_native_nextElementSibling)!=null?A:H.__shady_nextElementSibling)!=null?M:null};
XE8=function(H){var U,A,M;return(M=(A=(U=H.previousElementSibling)!=null?U:H.__shady_native_previousElementSibling)!=null?A:H.__shady_previousElementSibling)!=null?M:null};
iCK=function(H){var U,A,M;return new Set([].concat(_.vI((U=H.children)!=null?U:[]),_.vI((A=H.__shady_native_children)!=null?A:[]),_.vI((M=H.__shady_children)!=null?M:[])))};
bCr=function(H){var U,A,M;return new Set([].concat(_.vI((U=H.childNodes)!=null?U:[]),_.vI((A=H.__shady_native_childNodes)!=null?A:[]),_.vI((M=H.__shady_childNodes)!=null?M:[])))};
_.mq=function(H){if(!(H instanceof Element))return null;H=H.classList?Array.from(H.classList):void 0;if(!H)return null;var U=H.indexOf("style-scope");return U>-1&&U+1<H.length?H[U+1]:null};
gn=function(H){if(!(H instanceof HTMLElement))return null;var U=H&&(H.$$||H.polymerController)?H.tagName.toLowerCase():null;return U?U:_.mq(H)};
dBE=function(H,U){return _.S("sunnydom_native_scoped_query_selectors")?H+".style-scope."+U:H.replace(/[^a-z]*[^\s]+/g,function(A){return A+".style-scope."+U})};
OC4=function(H,U){return U?H.split(",").map(function(A){return dBE(A.trim(),U)}).join(", "):H};
_.ar=function(H){var U,A,M,W;return(W=(M=(A=(U=H.root)!=null?U:H.shadowRoot)!=null?A:H.__shady_native_shadowRoot)!=null?M:H.__shady_shadowRoot)!=null?W:H};
umh=function(H){var U,A,M;return(M=(A=(U=H.__shady_parentNode)!=null?U:H.__shady_native_parentNode)!=null?A:H.parentNode)!=null?M:null};
ZCM=function(H){var U,A;return(A=(U=AS7(H))!=null?U:H.host)!=null?A:null};
fEV=function(H){for(;H&&!(H instanceof HTMLElement);)H=ZCM(H);return H};
JSK=function(H){var U=fEV(H);return H===U?_.mq(H):U?gn(U):null};
K8M=function(H){return(H=fEV(H))?gn(H):null};
ouc=function(H){if(H instanceof Comment)return!1;if(H instanceof Text){var U,A;if(((A=(U=H.textContent)==null?void 0:U.trim())!=null?A:"")==="")return!1}return!0};
xa=function(H,U,A){var M=U(H);for(A=A===void 0?K8M(H):A;M&&(JSK(M)!==A||!ouc(M));)H=M,M=U(H);return M};
F8N=function(H,U,A){if(!U)return null;H=K8M(H);return JSK(U)===H&&ouc(U)?U:xa(U,A,H)};
PCc=function(H){return xa(H,umh,_.mq(H))};
sXM=function(H){return xa(H,wE4)};
nuc=function(H){return xa(H,MY4)};
NWE=function(H){return xa(H,XE8)};
SXM=function(H){return xa(H,W8K)};
pE_=function(H){return F8N(H,H.firstChild||null,MY4)};
L8c=function(H){var U,A,M;var W=(M=(A=(U=H.firstElementChild)!=null?U:H.__shady_native_firstElementChild)!=null?A:H.__shady_firstElementChild)!=null?M:null;return F8N(H,W,wE4)};
RI4=function(H){var U,A,M;var W=(M=(A=(U=H.lastChild)!=null?U:H.__shady_native_lastChild)!=null?A:H.__shady_lastChild)!=null?M:null;return F8N(H,W,W8K)};
Euh=function(H){var U,A,M;var W=(M=(A=(U=H.lastElementChild)!=null?U:H.__shady_native_lastElementChild)!=null?A:H.__shady_lastElementChild)!=null?M:null;return F8N(H,W,XE8)};
mB8=function(H){var U=K8M(H);return Array.from(bCr(H)).filter(function(A){return JSK(A)===U})};
gu_=function(H){var U=gn(H);return Array.from(iCK(H)).filter(function(A){return _.mq(A)===U})};
aEM=function(H){if(!H)return null;var U=_.mq(H);if(!U){var A;return(A=Node.prototype.getRootNode)==null?void 0:A.call(H)}U=U.toUpperCase();for(H=UB8(H);H&&H.tagName!==U;)H=UB8(H);return H?_.ar(H):null};
_.zl=function(H,U,A){if(H instanceof HTMLElement&&_.mq(H)===A){var M=Array.from(H.classList).indexOf("style-scope");if(M===-1)H.classList.add("style-scope"),H.classList.add(U);else if(!(M+1>=H.classList.length)){M=H.classList[M+1];var W,w;H==null||(W=H.classList)==null||(w=W.replace)==null||w.call(W,M,U)}}if(H instanceof HTMLElement||H instanceof DocumentFragment)for(W=_.b(iCK(H)),w=W.next();!w.done;w=W.next())_.zl(w.value,U,A);return H};
Cf=function(H,U){if(H instanceof HTMLElement&&_.mq(H)===U){var A=Array.from(H.classList).indexOf("style-scope");A===-1||A+1>=H.classList.length||H.classList.remove("style-scope",H.classList[A+1])}if(H instanceof HTMLElement||H instanceof DocumentFragment){A=_.b(H.children);for(var M=A.next();!M.done;M=A.next())Cf(M.value,U)}return H};
_.xBE=function(H,U){return EU(H).prototype.appendChild.call(H,U)};
zIr=function(H,U){if(H===U)return!0;H=bCr(H);return Array.from(H).some(function(A){return zIr(A,U)})};
_.c4=function(H,U){if(H instanceof tG)return H;(U==null?0:U.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(H,"ownerDocument")&&Object.defineProperty(H,"ownerDocument",{get:function(){return window.document}});
return new tG(H)};
tYt=function(){var H=tG.prototype,U=[].concat(_.vI(CC4?[]:["getRootNode"]),["setAttribute","removeAttribute"]);U=_.b(U);for(var A=U.next(),M={};!A.done;M={method$jscomp$53:void 0},A=U.next())M.method$jscomp$53=A.value,H[M.method$jscomp$53]=function(W){return function(){return this.host[W.method$jscomp$53].apply(this.host,arguments)}}(M)};
ySE=function(){var H=tG.prototype,U=[].concat(_.vI(CC4?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.vI(cSc?[]:["querySelector","querySelectorAll"]));U=_.b(U);for(var A=U.next(),M={};!A.done;M={method$jscomp$54:void 0},A=U.next())M.method$jscomp$54=A.value,H[M.method$jscomp$54]=function(W){return function(){return this.root[W.method$jscomp$54].apply(this.root,arguments)}}(M)};
eIh=function(){var H=tG.prototype,U=[].concat(_.vI(BW0?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.vI(rSE?[]:["parentNode"]));U=_.b(U);for(var A=U.next(),M={};!A.done;M={prop$jscomp$67:void 0},A=U.next())M.prop$jscomp$67=A.value,Object.defineProperty(H,M.prop$jscomp$67,{get:function(W){return function(){return this.host[W.prop$jscomp$67]}}(M),
configurable:!0})};
lE8=function(){var H=tG.prototype,U=["activeElement"].concat(_.vI(BW0?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.vI(DBr?[]:["children"]),_.vI($Bt?[]:["lastChild"]));U=_.b(U);for(var A=U.next(),M={};!A.done;M={prop$jscomp$68:void 0},A=U.next())M.prop$jscomp$68=A.value,Object.defineProperty(H,M.prop$jscomp$68,{get:function(W){return function(){return this.root[W.prop$jscomp$68]}}(M),
configurable:!0})};
GMh=function(){for(var H=tG.prototype,U=_.b(["innerHTML","textContent"]),A=U.next(),M={};!A.done;M={prop$jscomp$69:void 0},A=U.next())M.prop$jscomp$69=A.value,Object.defineProperty(H,M.prop$jscomp$69,{get:function(W){return function(){return this.root[W.prop$jscomp$69]}}(M),
set:function(W){return function(w){this.root[W.prop$jscomp$69]=w}}(M),
configurable:!0})};
YX4=function(H){var U=tG.prototype;H=_.b(Object.entries(H));for(var A=H.next(),M={};!A.done;M={fn$jscomp$401:void 0},A=H.next()){var W=_.b(A.value);A=W.next().value;W=W.next().value;M.fn$jscomp$401=W;U[A]=function(w){return function(){return w.fn$jscomp$401.apply(null,[this.host.node||this.host].concat(_.vI(arguments)))}}(M)}};
hI7=function(){for(var H=tG.prototype,U=_.b(Object.entries(qXV)),A=U.next(),M={};!A.done;M={fn$jscomp$402:void 0},A=U.next()){var W=_.b(A.value);A=W.next().value;W=W.next().value;M.fn$jscomp$402=W;Object.defineProperty(H,A,{get:function(w){return function(){return w.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.vI(arguments)))}}(M),
configurable:!0})}};
_.yf=function(H){return H instanceof kM4||H instanceof Document?H:new kM4(H)};
vu4=function(){for(var H=kM4.prototype,U=_.b("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),A=U.next(),M={};!A.done;M={method$jscomp$55:void 0},A=U.next())M.method$jscomp$55=A.value,H[M.method$jscomp$55]=function(W){return function(){return HTMLElement.prototype[W.method$jscomp$55].call.apply(HTMLElement.prototype[W.method$jscomp$55],[this.node].concat(_.vI(arguments)))}}(M)};
TWc=function(){for(var H=kM4.prototype,U=_.b("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),A=U.next(),M={};!A.done;M={prop$jscomp$70:void 0},A=U.next())M.prop$jscomp$70=A.value,Object.defineProperty(H,M.prop$jscomp$70,{get:function(W){return function(){var w;return(w=this.node["__shady_native_"+W.prop$jscomp$70])!=null?w:this.node[W.prop$jscomp$70]}}(M),
configurable:!0})};
_.B4=function(H,U,A){A===void 0&&(A=!H.classList.contains(U));A?H.classList.add(U):H.classList.remove(U)};
_.rn=function(H,U,A){A===void 0&&(A=!H.hasAttribute(U));if(U==="class")throw Error("hg");A?_.yf(H).setAttribute(U,""):_.yf(H).removeAttribute(U)};
jX_=function(H){return(H.localName!=="slot"?[]:(0,_.ek)(H).assignedNodes({flatten:!0})).filter(function(U){return U.nodeType===Node.ELEMENT_NODE})};
_.IE4=function(H){return(H=_.c4(H).querySelector("slot"))&&H.localName==="slot"?jX_(H):[]};
_.Dt=function(H,U){window.ShadyCSS&&window.ShadyCSS.styleSubtree(H,U)};
$a=function(H,U){var A=U.bind(H);return function(M){A(M,M.detail)}};
_.lN=function(H,U){var A=QXV.get(H);A||(A=new WeakMap,QXV.set(H,A));if(A.has(U))return A.get(U);if(_.S("web_fi_listen_disable_bound_fn_helper")){var M=U.bind(H);H=function(W){M(W,W==null?void 0:W.detail)}}else H=$a(H,U);
A.set(U,H);return H};
UNE=function(H,U){VY7(H);H.created[Hu8].push(U)};
VY7=function(H){if(!H.created||!H.created[Hu8]){var U=H.created,A=U?[U]:[];H.created=function(){for(var M=_.b(A),W=M.next();!W.done;W=M.next())W.value.apply(this)};
H.created[Hu8]=A}};
A77=function(H){return function(){var U=_.QY.apply(0,arguments);return function(A,M,W){H.apply(null,_.vI(U))(A,M,W)}}};
MBM=function(){return function(){var H=_.QY.apply(0,arguments);return function(U,A,M){Eh4.apply(null,_.vI(H))(U,A,M)}}};
_.g=function(H){return MBM()(H)};
_.a=function(){return A77(xb0).apply(null,_.vI(_.QY.apply(0,arguments)))};
_.Gl=function(H){return _.S("pbcm_fi_listen_decorators")?Wlh(H):A77(ghF)(H)};
Wlh=function(H){return function(U,A){UNE(U,function(){var M=this[A],W=_.S("web_fi_listen_disable_bound_fn_helper")?function(w){M(w,w.detail)}.bind(this):$a(this,M);
wvE.has(H)?Pa(this.hostElement,H,W):this.hostElement.addEventListener(H,W)})}};
_.Ya=function(){return A77(anr).apply(null,_.vI(_.QY.apply(0,arguments)))};
_.y=function(H){H=H===void 0?{}:H;return A77(mb4)(H)};
_.qv=function(H){if(H.hostElement&&H!==H.hostElement){var U=_.Ig(H.hostElement);U=H.renderIdom?U:U.shadowRoot}U||(H=H.root,U=H instanceof Node?_.Ig(H):null);return U};
_.hG=function(H){return Xv4?iu8(H):function(U,A){Object.defineProperty(U,A,{get:function(){var M;return(M=_.qv(this))==null?void 0:M.querySelector(H)},
enumerable:!0,configurable:!0})}};
iu8=function(H){return function(U,A){Object.defineProperty(U,A,{get:function(){var M,W=(M=_.c4(this.hostElement))==null?void 0:M.querySelector(H);if(W)return W;var w;return(w=_.qv(this))==null?void 0:w.querySelector(H)},
enumerable:!0,configurable:!0})}};
_.ka=function(H){return Xv4?bu0(H):function(U,A){Object.defineProperty(U,A,{get:function(){var M;return(M=_.qv(this))==null?void 0:M.querySelectorAll(H)},
enumerable:!0,configurable:!0})}};
bu0=function(H){return function(U,A){Object.defineProperty(U,A,{get:function(){var M,W=(M=_.c4(this.hostElement))==null?void 0:M.querySelectorAll(H);if(W==null?0:W.length)return W;var w;return(w=_.qv(this))==null?void 0:w.querySelectorAll(H)},
enumerable:!0,configurable:!0})}};
dNE=function(H){return function(U){if(![_.$A,_.B].includes(Object.getPrototypeOf(U.prototype).constructor))throw Error("ig");PdF(Object.assign({},typeof H!=="string"?H:{is:H,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(U)}};
_.Tl=function(){var H=H===void 0?{}:H;return function(U){if(![lu,_.v4].includes(Object.getPrototypeOf(U.prototype).constructor))throw Error("jg");sxK(Object.assign({},H,{disableInheritanceCheck:!0}))(U)}};
uOc=function(H,U){OuK[H]!=null||(OuK[H]=new Set);OuK[H].add(U)};
_.jk=function(){var H=_.Ya.apply(null,_.vI(_.QY.apply(0,arguments)));return function(U,A){uOc(U.is,A);H(U,A)}};
Vf=function(H,U,A){if(Ir(H)&&!Zuh.has(U)){U=U.replace(/^JSC\$[\d]+_/,"");U=U.replace(/\.\d+(\.|$)/g,function(w,d){return".#"+d});
Qf[H]!=null||(Qf[H]={});var M,W;(M=Qf[H])[W=U]!=null||(M[W]=new Set);Qf[H][U].has(A)||(Qf[H][U].add(A),_.Fx("polymerPropertyAccessEvent",{componentName:H,propertyName:U,accessType:A}))}};
fot=function(){return _.S("polymer_property_access_logging_debug")||_.S("polymer_enable_property_access_logging")};
Ir=function(H){if(_.S("polymer_property_access_logging_debug"))return!0;if(!_.S("polymer_enable_property_access_logging"))return!1;J7r||(J7r=Date.now());return(JP(H)+J7r)%100<_.hr("polymer_property_access_logging_percent")};
Klt=function(H,U){return Ir(U)&&H.hostElement.loggingStatus?new Proxy(H,{get:function(A,M,W){if(A.hostElement.loggingStatus.bypassProxyController)return A[M];A.hostElement.loggingStatus.isExternalGet=!0;var w=A[M];A.hostElement.loggingStatus.isExternalGet=!1;if(w instanceof Function)return function(){var d=_.QY.apply(0,arguments);try{return A.hostElement.loggingStatus.currentExternalCall=M,Vf(U,M,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),w.apply(this===W?A:this,d)}finally{A.hostElement.loggingStatus.currentExternalCall=
void 0}};
Vf(U,M,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return w},
set:function(A,M,W){if(A.hostElement.loggingStatus.bypassProxyController)return A[M]=W,!0;A.hostElement.loggingStatus.isRendererStamper?Vf(U,M,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):A.hostElement.loggingStatus.isDeclarativeExternal||Vf(U,M,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{A.hostElement.loggingStatus.currentExternalSet=M,A[M]=W}finally{A.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):H};
oT0=function(H,U){H&&H.loggingStatus&&!H.loggingStatus.isDeclarativeExternal&&!H.loggingStatus.isExternalGet&&H.loggingStatus.currentExternalSet!==U&&Vf(H.tagName.toLowerCase(),U,"PROPERTY_ACCESS_GET_INTERNAL")};
HX=function(H,U,A){H&&(A||H.loggingStatus&&!H.loggingStatus.isInitializing&&!H.loggingStatus.isDefiningPropertyAccessor&&H.loggingStatus.currentExternalSet!==U)&&Vf(H.tagName.toLowerCase(),U,"PROPERTY_ACCESS_SET_INTERNAL")};
Fl7=function(){return{_definePropertyAccessor:function(H,U){var A=this,M=A.hostElement.loggingStatus;M&&(M.isDefiningPropertyAccessor=!0);var W=A[H];W!==void 0&&(A.__data?A._setPendingProperty(H,W):(A.__dataProto!=null||(A.__dataProto={}),A.__dataProto[H]=W));M&&(M.isDefiningPropertyAccessor=!1);Object.defineProperty(this,H,{get:function(){oT0(A.hostElement,H);return this.__data[H]},
set:function(w){U||this._setPendingProperty(H,w,!0)&&this._invalidateProperties()}})},
created:function(){var H=this._setPendingProperty.bind(this);this._setPendingProperty=function(U,A,M){HX(this.hostElement,U);return H.apply(this,[U,A,M])}}}};
Prt=function(H){fot()&&_.g(Uc.prototype)(H.prototype,"__templateBindingLoggingBehavior")};
sVF=function(H,U){if(U.resolvedFactories.length!==H.resolvedFactories.length)return!0;U=_.b(U.resolvedFactories.entries());for(var A=U.next();!A.done;A=U.next()){var M=_.b(A.value);A=M.next().value;M=M.next().value;if(M.providerClass){if(M.providerClass!==H.resolvedFactories[A].providerClass)return!0}else if(M.providerValue){if(M.providerValue!==H.resolvedFactories[A].providerValue)return!0}else if(M.factory!==H.resolvedFactories[A].factory)return!0}return!1};
nTM=function(H,U){H=_.b(H);for(var A=H.next();!A.done;A=H.next())if(A=A.value,A.constructor===Array)nTM(A,U);else{var M=U;M.has(A)||(A.inject&&M.add(A),A.behaviors&&nTM(A.behaviors,M))}};
Ay=function(H,U){var A=H[U];H[U]=function(){var M=_.QY.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(A)return A.apply(this,M)}};
Llc=function(){_.MD.Class=function(A,M){A=NLh(A,M);Ay(A.prototype,"created");return A};
Ay(WX.prototype,"_initializeProperties");Ay(_.wX.prototype,"_initializeProperties");if(SGc)Ay(pvr,"created");else{var H=function(){Ay(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))H();else{var U=customElements.define;customElements.define=function(A,M,W){U.call(customElements,A,M,W);A==="tp-yt-iron-list"&&(H(),customElements.define=U)}}}};
ET0=function(H,U){H.prototype.behaviors=H.prototype.behaviors||[];H.prototype.behaviors.unshift(RAV.InjectBehavior);H.prototype.provide=U};
_.b0=function(H){return function(U){if(!H.disableElementRegistration){H.noInjection||ET0(U,H.providers);var A=U.prototype;A.__templateHelpers||Eh4(X8.prototype)(A,"__templateHelpers");A=H.is;mNK||(mNK=Date.now());(JP(A)+mNK)%100<_.hr("polymer_log_prop_change_observer_percent")&&Eh4(i0.prototype)(U.prototype,"__propertyObserverObserver");U.prototype.behaviors=U.prototype.behaviors||[];U.prototype.behaviors.unshift(_.gT_.YtHostElementBehavior);Prt(U);dNE({is:H.is,notifyObserversOnUndefined:H.notifyObserversOnUndefined!==
!1,fastInit:H.fastInit,template:H.template,disableEnforceFastDefaultValuesCheck:!0})(U)}}};
_.dX=function(H){return _.b0({is:H.is,template:H.template,disableElementRegistration:H.disableElementRegistration,cssBuildOptOut:H.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
zAc=function(H,U){if(aoN){H=new H;for(var A=_.b(Object.getOwnPropertyNames(H)),M=A.next();!M.done;M=A.next())M=M.value,U[M]=H[M];for(A=U;A&&A!==Object.prototype;A=Object.getPrototypeOf(A)){M=_.b(Object.getOwnPropertyNames(A));for(var W=M.next();!W.done;W=M.next())W=W.value,H.hasOwnProperty(W)||Object.defineProperty(H,W,xNh(U,W))}}else H.apply(U)};
xNh=function(H,U){return{get:function(){var A=H[U];return A instanceof Function?A.bind(H):A},
set:function(A){H[U]=A}}};
tBK=function(H,U){for(var A=H._noAccessors,M=_.b(Object.getOwnPropertyNames(H)),W=M.next();!W.done;W=M.next())if(W=W.value,!Cr8.has(W))if(A)U[W]=H[W];else{var w=Object.getOwnPropertyDescriptor(H,W);w&&(w.configurable=!0,Object.defineProperty(U,W,w))}};
c7K=function(H,U,A){return function(M){if(A){var W=A();M.model=W}if(H[U])H[U](M,M.detail)}};
Oc=function(H){var U=[];if(typeof H==="string")H.length>0&&U.push.apply(U,_.vI(H.split(".")));else{H=_.b(H);for(var A=H.next();!A.done;A=H.next())A=A.value,typeof A==="string"?U.push.apply(U,_.vI(A.split("."))):U.push(A)}return U};
y7t=function(H,U){if(U[U.length-1]!=="*"&&U[U.length-1]!=="splices"){for(var A=0;A<U.length;A++){if(!H)return;H=H[U[A]]}return H}};
BLF=function(H,U){if(H.length>U.length)return!1;for(var A=0;A<H.length;A++)if(H[A]!==U[A])return!1;return!0};
eAF=function(H,U,A){if(U.type==="compute"){var M=U.getter.bind(A);var W=U.args}else M=function(){return A[U.method.methodName].apply(A,_.vI(_.QY.apply(0,arguments)))},W=U.method.args;
r7E(H,U.propertyKey,M,W,U.value)};
$N0=function(H,U){if(U.readOnly){var A=Object.getOwnPropertyDescriptor(H.model,U.propertyKey);Object.defineProperty(H.model,U.propertyKey,{get:A.get,set:function(){}});
H.model[DNc(U.propertyKey)]=A.set}};
lo0=function(H,U,A){if(A){var M=U.propertyKey,W=U.selector;U=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.vI(U.selectorArgs.map(function(w){return{type:"path",path:w}})));
r7E(H,M,function(w){var d=_.QY.apply(1,arguments);return W.apply(null,[A.getState()].concat(_.vI(d)))},U)}};
YGc=function(H,U,A){var M=_.GP(U.propertyKey)+"-changed";G6c(H,function(W){var w={value:W.value,queueProperty:!0};W.path.split(".").length>1&&(w.path=W.path);A.dispatchEvent(new CustomEvent(M,{detail:w}))},[{type:"wildcard",
path:U.propertyKey}])};
qGN=function(H,U,A){G6c(H,function(){A[U.method.methodName].apply(A,_.vI(_.QY.apply(0,arguments)))},U.method.args)};
DNc=function(H){return"_set"+(H.charAt(0).toUpperCase()+H.slice(1))};
hAr=function(){var H,U=gP(function(A){H=A},!1);
return[H,U]};
Io8=function(H){H=H.trim().replace(k6M,",").replace(vTF,"$1");var U=H[0];U==="-"&&(U=H[1]);if(U>="0"&&U<="9")return{type:"literal",value:Number(H)};if(U==="'"||U==='"')return{type:"literal",value:H.slice(1,-1)};if(U=H.match(TLM)){U=U[1];var A=jVc[U];if(A)return{type:A,path:H.slice(0,-(U.length+1))}}return{type:"path",path:H}};
UH4=function(H){var U=H.match(QVE);if(U)return H={methodName:U[1],args:VB0},U[2].trim()&&(U=U[2].replace(HP8,"&comma;").split(","),H.args=U.map(Io8)),H};
AQt=function(H,U,A,M){M=M===void 0?!1:M;U=_.GP(U);var W=iu;W&&(A=W(A,U,"attribute",H));u0(H,A,U,M)};
u0=function(H,U,A,M){U=MPM(U,M===void 0?!1:M);U===void 0?H.removeAttribute(A):H.setAttribute(A,U)};
MPM=function(H,U){switch(typeof H){case "object":case "function":if(H instanceof Date)return H.toString();if(H){if((U===void 0?0:U)&&!_.S("polymer_reflect_objects_as_boolean_killswitch"))return H?"":void 0;U=window.trustedTypes?window.trustedTypes.isHTML(H)||window.trustedTypes.isScript(H)||window.trustedTypes.isScriptURL(H):void 0;if(U)return H;try{return JSON.stringify(H)}catch(A){_.Na(Error("Fg`"+H))}}break;case "boolean":return H?"":void 0;default:return H!==null&&H!==void 0?H.toString():void 0}};
W__=function(H){if(H===void 0)throw Error("Gg");return H};
dH0=function(H,U,A,M){var W=w3r(M);if(W.length){M=A;var w="property";X3V.test(A)?w="attribute":A[A.length-1]==="$"&&(A=A.slice(0,-1),w="attribute");var d=iPV(W);d&&w==="attribute"&&(A==="class"&&H.hasAttribute("class")&&(d+=" "+H.getAttribute(A)),u0(H,d,A));w==="attribute"&&M==="disable-upgrade$"&&H.setAttribute("disable-upgrade","");H.localName==="input"&&M==="value"&&H.setAttribute("value","");H.removeAttribute(M);w==="property"&&(A=_.Y8(A));U=W__(U);bPV(U,w,A,W);return!0}return A.slice(0,3)===
"on-"?(H.removeAttribute(A),(w=U).events!=null||(w.events=[]),U.events.push({name:A.slice(3),value:M}),!0):A==="id"?(U.id=M,!0):!1};
w3r=function(H){for(var U=[],A=0,M;(M=OPc.exec(H))!==null;){M.index>A&&U.push({type:"literal",value:H.slice(A,M.index)});var W=M[1][0];A=!!M[2];M=M[3].trim();if(W==="{")throw Error("Hg");(W=UH4(M))?U.push({type:"method",negate:A,signature:W}):U.push({type:"path",negate:A,path:M});A=OPc.lastIndex}A&&A<H.length&&(H=H.substring(A))&&U.push({type:"literal",value:H});return U};
iPV=function(H){for(var U="",A=0;A<H.length;A++){var M=H[A];M.type==="literal"&&(U+=M.value)}return U};
bPV=function(H,U,A,M){H.bindings!=null||(H.bindings=[]);H.bindings.push({kind:U,target:A,parts:M})};
K_c=function(H,U,A){var M=!1;if(H.localName==="template"){M=A;var W=U.stripWhitespace;W=u5h(H,W===void 0?!1:W);var w=H.content.ownerDocument.createDocumentFragment();W.content=w;w.appendChild(H.content);M&&(M.templateInfo=W);M=!0}else H.localName==="slot"&&(U.hasInsertionPoint=!0);if(H.firstChild&&(W=A,H.localName!=="script"&&H.localName!=="style")){w=0;for(var d=H.firstChild;d;){var O=d;if(O.localName==="template"){var f=O.getAttribute("is");if((d=f==="dom-if")||f==="dom-repeat"){O.removeAttribute("is");
f=O.ownerDocument.createElement("ps-"+f);O.parentNode.replaceChild(f,O);f.appendChild(O);var J=Array.from(O.attributes);J=_.b(J);for(var F=J.next();!F.done;F=J.next())F=F.value,d?ZP0.has(F.name)&&u0(f,F.value,F.name):fgF.has(F.name)?u0(f,F.value,F.name):JQc.has(F.name),O.removeAttribute(F.name);d=f}else d=O}if(d.nodeType===Node.TEXT_NODE){O=void 0;f=H;for(J=d;((O=J.nextSibling)==null?void 0:O.nodeType)===Node.TEXT_NODE;)F=void 0,(F=J).textContent!=null||(F.textContent=""),J.nextSibling.textContent&&
(J.textContent+=J.nextSibling.textContent),f.removeChild(J.nextSibling);if(U.stripWhitespace&&d.textContent&&!d.textContent.trim()){H.removeChild(d);d=d.nextSibling;continue}}K_c(d,U,{parentIndex:w,parentInfo:W});d.parentNode&&w++;d=d.nextSibling}}var P;if((P=H.hasAttributes)==null?0:P.call(H)){P=A=W__(A);W=!1;w=Array.from(H.attributes);w=_.b(w);for(O=w.next();!O.done;O=w.next())O=O.value,W=dH0(H,P,O.name,O.value)||W;M=W||M}H.nodeType===Node.TEXT_NODE&&(P=w3r(H.textContent),P.length&&(H.textContent=
iPV(P)||" ",A=W__(A),bPV(A,"text","textContent",P),M=!0));A&&M&&(A.infoIndex=U.nodeInfoList.push(A)-1)};
u5h=function(H,U){U={nodeInfoList:[],stripWhitespace:(U===void 0?!1:U)||H.hasAttribute("strip-whitespace")};K_c(H.content,U);return U};
oJN=function(H){Object.assign(H,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
PPc=function(H,U,A){U.signalCache!=null||(U.signalCache={});var M=U.signalCache[A];if(!M){var W=A.split(".");M=!F_N(H,W[0]);if(W.length>1&&M){var w=H.getPathMutationSignal(W);M=function(){var d=xp(H.owner,function(){return H.getWithPath([W[0]])}),O,f=(O=w())==null?void 0:O.value;
return{rootWasDefined:d!==void 0,value:f}}}else M=function(){var d=H.getWithPath(W);
return{rootWasDefined:d!==void 0,value:d}};
U.signalCache[A]=M}return M()};
nJt=function(H,U,A,M,W){U=U.parts.map(function(d,O){if(d.type==="literal"){A.partWasDefined!=null||(A.partWasDefined=[]);var f;(f=A.partWasDefined)[O]||(f[O]=d.value!==void 0);return d.value}var J;if(d.type==="method"){var F,P=(F=(J=A.partWasDefined)==null?void 0:J[O])!=null?F:!1;P||(P=d.signature.args.every(function(L){return L.type==="literal"}));
var n=!1,N=!0;J=d.signature.args.map(function(L){if(L.type==="literal")return L.value;if(L.type!=="path")throw Error("Ig`"+L.type);var m=PPc(H,A,L.path);L=m.value;m=m.rootWasDefined;n||(n=m);N&&(N=m);return L});
P||(P=W===1?N:n);A.partWasDefined!=null||(A.partWasDefined={});A.partWasDefined[O]=P;if(!P)return;J=(O=PPc(H,A,d.signature.methodName).value)&&typeof O==="function"?O.apply(M,J):void 0}else F=PPc(H,A,d.path),J=F.value,A.partWasDefined!=null||(A.partWasDefined={}),(P=A.partWasDefined)[O]||(P[O]=J!==void 0||F.rootWasDefined);d.negate&&(J=!J);return J});
if(U.length===1){var w;return((w=A.partWasDefined)==null?0:w[0])?U[0]:s6c}return U.join("")};
N_E=function(H){return typeof H==="object"&&!!H&&"notifyPath"in H&&"canNotifyPath"in H};
SEM=function(H){return typeof H==="object"&&!!H&&"notifyPath"in H};
p34=function(H){return"polymerController"in H};
L_r=function(H,U){U=""+Oc(U)[0];if(N_E(H))return H.canNotifyPath(U);if(p34(H)&&N_E(H.polymerController))return H.polymerController.canNotifyPath(U);if(SEM(H)){var A;return!((A=H.properties)==null||!A[U])}if(p34(H)&&SEM(H.polymerController)){var M;return!((M=H.polymerController.properties)==null||!M[U])}return!1};
R_4=function(H,U,A){N_E(H)||SEM(H)?H.notifyPath(U,A):p34(H)&&(N_E(H.polymerController)||SEM(H.polymerController))&&H.polymerController.notifyPath(U,A)};
mHc=function(H,U,A){if(A!==s6c){H.kind==="attribute"||H.target!=="textContent"&&(H.target!=="value"||U.localName!=="input"&&U.localName!=="textarea")||(A=A===void 0?"":A);var M,W=(M=EJ4.Polymer)==null?void 0:M.sanitizeDOMValue;W&&(A=W(A,H.target,H.kind,U));if(H.kind==="attribute"){H=H.target;if(H==="class"||H==="name"||H==="slot")U=(0,_.ek)(U);u0(U,A,H)}else if(H=H.target,A!==U[H]||typeof A==="object")U.loggingStatus&&(U.loggingStatus.isDeclarativeExternal=!0,Vf(U.localName,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
U[H]=A,U.loggingStatus&&(U.loggingStatus.isDeclarativeExternal=!1)}};
gJc=function(H,U,A,M){var W=U.parts[0];if(U.parts.length!==1||W.type!=="path"||!L_r(A,U.target))return!1;var w=_.b(W.path.split(".")),d=w.next().value,O=l9(w);if(F_N(H,d))return!1;M.signalCache!=null||(M.signalCache={});w=M.signalCache[W.path];var f;w=(f=w)==null?void 0:f().value;if((w==null?void 0:w.path)!==void 0){M=Oc(w.path);var J=Oc(W.path);M=[U.target].concat(_.vI(M.slice(J.length-1)));R_4(A,M,W.negate?!w.value:w.value);return!0}var F=Zd(H,d);var P=F.getChangeRecordSignal(O),n=!1;w=function(){if(!n){var L=
xp(H.owner,function(){return F.getWithPath([])});
n||(n=L!==void 0)}return{value:P(),rootWasDefined:n}};
M.signalCache[W.path]=w;M.partWasDefined!=null||(M.partWasDefined={});w=w();(J=M.partWasDefined)[0]||(J[0]=w.rootWasDefined);var N=xp(H.owner,function(){return F.getWithPath(O)});
M.partWasDefined[0]&&xp(H.owner,function(){return void mHc(U,A,W.negate?!N:N)});
return!0};
agc=function(H,U,A,M,W,w){if(!gJc(H,U,A,M)){var d=nJt(H,U,M,W,w);xp(H.owner,function(){return void mHc(U,A,d)})}};
xH4=function(H,U,A,M,W,w){A=_.b(A);for(var d=A.next(),O={};!d.done;O={infoIndex:void 0},d=A.next()){d=d.value;var f=d.bindings;O.infoIndex=d.infoIndex;d=d.parentInfo;if(f){f=_.b(f);for(var J=f.next(),F={};!J.done;F={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},J=f.next()){F.b$jscomp$257=J.value;if(O.infoIndex===void 0)throw Error("Jg");F.bindingCtx$jscomp$4={};H.effect(function(P,n){return function(){W&&!W()||agc(H,P.b$jscomp$257,U[n.infoIndex],P.bindingCtx$jscomp$4,M,w)}}(F,O))}}d&&xH4(H,U,[d],
M,W,w)}};
z_h=function(H,U){H=(U.parentInfo?z_h(H,U.parentInfo):H).firstChild;for(var A=0;H;H=H.nextSibling)if(U.parentIndex===A++)return H;throw Error("Kg");};
tPN=function(H,U,A,M){H=document.importNode(H.content,!0);H.__noInsertionPoint=!(M==null?0:M.hasInsertionPoint);for(var W=Array(U.length),w={},d=0;d<U.length;d++){var O=U[d],f=z_h(H,O);W[d]=f;O.id&&(w[O.id]=f);if(O.templateInfo){var J=f.parentElement;J&&(J.templateInfo=O.templateInfo,J.parentSignalProxy=A,J.eventListenerHost=M.eventListenerHost,J.stampingEnabled=M.enabledSignal)}J=void 0;if((J=O.events)==null?0:J.length)for(J=0;J<O.events.length;J++){var F=O.events[J];CPM(M.eventListenerHost,f,F.name,
F.value,M.getModel)}}xH4(A,W,U,M.thisCtx,M.enabledSignal,M.methodInvocationRequirement);return{root:H,nodes:W,nodesById:w}};
yQc=function(H,U){H=H();var A;(A=cQE.ShadyCSS)==null||A.prepareTemplate(H,U);U=u5h(H);return{template:H,nodeInfoList:U.nodeInfoList,hasInsertionPoint:U.hasInsertionPoint}};
e_M=function(){B__=!1;for(var H=fe.length,U=0;U<H;U++){var A=fe[U];if(A)try{A()}catch(M){Promise.resolve().then(function(){throw M;})}}fe.splice(0,H);
rQN+=H};
GXN=function(H){B__||(B__=!0,DHh.textContent=($Hh++).toString());fe.push(H);return lg8++};
_.oS=function(H,U,A){Jy++;H=U?new YE0(Jy,H,U,A):new qE7(Jy,H);Ke.set(Jy,H);return Jy};
h_7=function(H){(H=Ke.get(H))&&H.cancel()};
vJ_=function(H,U){H=kXF.get(H);return H?(U=H.get(U))?U:null:null};
_.F8=function(H,U,A,M){var W=vJ_(H,U);if(!W){W=new T__;var w=kXF.get(H);w||(w=new Map,kXF.set(H,w));w.set(U,W)}H=A.bind(H);W.run(H,M,void 0)};
_.j67=function(H,U){var A;(A=vJ_(H,U))==null||A.cancel()};
Igc=function(H){var U;(U=vJ_(H,"doRender"))==null||U.flush()};
PX=function(H){var U;return(U=H.hostElement)!=null?U:H};
Q6V=function(H){var U=H.indexOf(".");return U===-1?H:H.slice(0,U)};
VPN=function(H,U,A,M,W,w){w=(W=(M=w?Q6V(U):U)?U:null)?H.get(W):H.__data[U];W&&w===void 0&&(w=A[U]);_.cg(H.hostElement,zUE(M)+"-changed",{value:w,queueProperty:!0,path:W!=null?W:void 0},{bubbles:!1,composed:!1})};
HoV=function(H,U){H.__isReflecting=!0;AQt(H.hostElement,U,H.__data[U]);H.__isReflecting=!1};
UV_=function(H){if(H._onIronRequestResizeNotifications){var U=H._onIronRequestResizeNotifications.bind(H);H._onIronRequestResizeNotifications=function(A){_.Rr(A)!==H.hostElement&&U(A)}}H._ariaActiveAttributeChanged&&(H._ariaActiveAttributeChanged=H._ariaActiveAttributeChanged.bind(H.hostElement));
H._activeChanged&&(H._activeChanged=function(A){H.toggles?u0(H.hostElement,A?"true":"false",H.ariaActiveAttribute):H.hostElement.removeAttribute(H.ariaActiveAttribute);H._changedButtonState()});
H._asyncClick&&(H._asyncClick=function(){_.oS(function(){H.hostElement.click()},1)});
!H.keyEventTarget||H.keyEventTarget instanceof EventTarget||(H.keyEventTarget=PX(H.keyEventTarget));H._disabledChanged&&(H._disabledChanged=H._disabledChanged.bind(H.hostElement));H._observeItems&&(H._observeItems=function(A){var M=PX(A);return _.Ig(M).observeNodes(function(W){H._updateItems();H._updateSelected();_.cg(M,"iron-items-changed",W,{bubbles:!1,cancelable:!1})})});
H._updateItems&&H._updateItems===_.sc._updateItems&&(H._updateItems=function(){var A=_.Ig(H.hostElement).queryDistributedElements(H.selectable||"*");A=Array.prototype.filter.call(A,H._bindFilterItem);H._setItems(A)});
H._computeKeyboardClass&&(H._computeKeyboardClass=function(A){_.B4(H.hostElement,"keyboard-focus",A)});
H.ensureRipple&&(H.ensureRipple=function(A){if(H.hasRipple&&!H.hasRipple()){if(!H._createRipple)return;H._ripple=H._createRipple();H._ripple.noink=H.noink;var M=H._rippleContainer||H.hostElement;M&&_.c4(M).appendChild(H._ripple)}var W;if(A&&((W=H._ripple)==null?0:W.uiDownAction)){M=_.c4(H._rippleContainer||H.hostElement);var w;W=(w=A.composedPath())==null?void 0:w[0];M.contains(W)&&H._ripple.uiDownAction(A)}});
H._updateMultiselectable&&(H._updateMultiselectable=function(A){A?H.hostElement.setAttribute("aria-multiselectable","true"):H.hostElement.removeAttribute("aria-multiselectable")})};
AEr=function(H,U,A){A=_.b(A);for(var M=A.next();!M.done;M=A.next())zAc(M.value.constructor,H);zAc(U.constructor,H)};
WGt=function(H,U){H=_.b(H);for(var A=H.next();!A.done;A=H.next())if(A=A.value,A.type==="signal"){var M=A.propertyKey;if(U.hasOwnProperty(M)&&U[M]!=null&&A.attributeType===Object){a:{M=U[M].constructor;for(var W=_.b(M6N),w=W.next();!w.done;w=W.next())if(w=w.value,M===w){M=w;break a}M=Object}A.attributeType=M}}};
wVF=function(){};
XVc=function(H){var U;return(U=H.hostElement)!=null?U:H};
io4=function(){throw Error("Og");};
boE=function(H,U){H.constructor.prototype.useSignals=!0;var A=new H.constructor;AEr(A,H,U.behaviors);WGt(U.reactiveSchemas,A);A={};for(var M=_.b(U.reactiveSchemas),W=M.next();!W.done;W=M.next())W=W.value,W.type==="signal"&&(A[W.propertyKey]=W.attributeType);var w={copyPropertiesToProto:io4,didRegister:!1,typesForSignals:A},d=["disable-upgrade"].concat(_.vI(U.observedAttributes)),O=function(f){ne.call(this,H,U,w,f)};
_.R(O,ne);_.D5.Object.defineProperties(O,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return d}}});
w.copyPropertiesToProto=function(){for(var f=0;f<U.behaviors.length;f++)tBK(U.behaviors[f],O.prototype);tBK(H,O.prototype)};
U.legacyOptimizations||w.copyPropertiesToProto();O.prototype.is=H.is;return O};
dVV=function(H,U){if(Object.getPrototypeOf(U.prototype).constructor!==_.B)throw Error("Pg");U.prototype.is=H.is;return boE(U.prototype,H)};
Oo_=function(H){return H.type==="compute"||H.type==="computeWithMethod"};
uoF=function(H){for(var U=H.reactiveSchemas.filter(Oo_),A=new Map,M=new Map,W=new Map,w=_.b(U),d=w.next();!d.done;d=w.next())d=d.value,A.set(d.propertyKey,d),M.set(d.propertyKey,[]),W.set(d.propertyKey,0);w=0;U=_.b(U);for(d=U.next();!d.done;d=U.next()){d=d.value;for(var O=_.b(d.type==="computeWithMethod"?d.method.args:d.args),f=O.next();!f.done;f=O.next())f=f.value,f.type!=="literal"&&(f=f.path.split(".")[0],M.has(f)&&(M.get(f).push(d.propertyKey),W.set(d.propertyKey,W.get(d.propertyKey)+1),w++))}d=
[].concat(_.vI(M.keys())).filter(function(J){return W.get(J)===0});
for(U=[];d.length;)for(O=d.shift(),U.push(A.get(O)),O=_.b(M.get(O)),f=O.next();!f.done;f=O.next())f=f.value,W.set(f,W.get(f)-1),w--,W.get(f)===0&&d.push(f);A=H.reactiveSchemas.filter(function(J){return!Oo_(J)});
H.reactiveSchemas=[].concat(_.vI(A),_.vI(U))};
ZoE=function(H,U){if(U.properties)for(var A=_.b(Object.entries(U.properties)),M=A.next();!M.done;M=A.next()){var W=_.b(M.value);M=W.next().value;W=W.next().value;H.properties[M]=typeof W==="function"?{type:W}:W}U.observers&&H.observers.push.apply(H.observers,_.vI(U.observers));U.disabledPolySiReactions&&H.disabledPolySiReactions.push.apply(H.disabledPolySiReactions,_.vI(U.disabledPolySiReactions))};
fxE=function(H,U){for(var A=U.length-1;A>=0;A--){var M=U[A];Array.isArray(M)?fxE(H,M):H.indexOf(M)<0&&H.unshift(M)}};
JE8=function(H,U){H.reactiveSchemas=H.reactiveSchemas.filter(function(A){return A.type==="observe"&&U.includes(A.method.methodName)||Oo_(A)&&U.includes(A.propertyKey)?!1:!0})};
oSE=function(H,U){var A=U.prototype,M,W,w={is:H.is,reactiveSchemas:[],observedAttributes:[],behaviors:[RAV.InjectBehavior,X8.prototype],disableElementRegistration:H.disableElementRegistration,provide:(M=H.providers)!=null?M:[],reactivityMode:H.reactivityMode,signalProperties:(W=A.signalProperties)!=null?W:[]};"template"in U?w.templateGetter=function(){return U.template}:H.getTemplate&&(w.templateGetter=H.getTemplate);
A.behaviors&&fxE(w.behaviors,A.behaviors);KGh(w,U);return w};
KGh=function(H,U){for(var A=U.prototype,M={properties:{},observers:[],disabledPolySiReactions:[]},W=_.b(H.behaviors),w=W.next();!w.done;w=W.next())ZoE(M,w.value);ZoE(M,A);if(H.signalProperties)for(A=_.b(H.signalProperties),W=A.next();!W.done;W=A.next())delete M.properties[W.value];A=_.b(Object.entries(M.properties));for(W=A.next();!W.done;W=A.next()){w=_.b(W.value);W=w.next().value;w=w.next().value;var d=void 0;if((d=H.signalProperties)==null||!d.includes(W)){d=void 0;var O=H,f=w.type;if(!f)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{f=Reflect.getMetadata("design:type",U,W);for(var J=_.b(FG7),F=J.next();!F.done;F=J.next())if(F=F.value,f===F){f=F;break a}f=Object}else f=String;w.computed||w.selector||(O.reactiveSchemas.push({type:"signal",propertyKey:W,value:w.value,attributeType:f,readOnly:w.readOnly}),O.observedAttributes.push(_.GP(W)));w.reflectToAttribute&&O.reactiveSchemas.push({type:"reflect",propertyKey:W});if(w.computed){f=UH4(w.computed);if(!f)throw Error("Qg");O.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:W,method:f,value:w.value})}w.observer&&O.reactiveSchemas.push({type:"observe",method:{methodName:w.observer,args:[{type:"path",path:W}]}});w.notify&&O.reactiveSchemas.push({type:"notify",propertyKey:W});w.selector&&O.reactiveSchemas.push({type:"redux",propertyKey:W,selector:w.selector,selectorArgs:(d=w.selectorArgs)!=null?d:[]})}}PWc&&uoF(H);U=_.b(M.observers);for(W=U.next();!W.done;W=U.next())A=H,W=W.value,(w=UH4(W))?A.reactiveSchemas.push({type:"observe",method:w}):console.log('Warning: unable to parse observe declaration: "'+
W+'"');JE8(H,M.disabledPolySiReactions)};
s9_=function(H,U){for(var A=0;A<U.length;A++){var M=U[A],W=void 0;(W=M).showHideApi!=null||(W.showHideApi={});W=void 0;!!H!==!((W=M.showHideApi)==null||!W.hideTemplateChildren)&&(M.nodeType===Node.TEXT_NODE?H?(M.showHideApi.polymerTextContent=M.textContent,M.textContent=""):(W=void 0,M.textContent=(W=M.showHideApi.polymerTextContent)!=null?W:null):M instanceof Element&&M.localName==="slot"?H?(M.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.ek)((0,_.ek)(M).parentNode).replaceChild(M.showHideApi.polymerReplaced,
M)):(W=M.showHideApi.polymerReplaced)&&(0,_.ek)((0,_.ek)(W).parentNode).replaceChild(M,W):M instanceof HTMLElement&&M.style&&(H?(M.showHideApi.polymerDisplay=M.style.display,M.style.display="none"):M.style.display=M.showHideApi.polymerDisplay));M.showHideApi.hideTemplateChildren=H;M.showHideChildren&&M.showHideChildren(H)}};
Nb8=function(){if(!nSK){var H=document.createElement("style");H.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(H);nSK=!0}};
ND=function(){return _.S("disable_hidden_dom_if_using_stamper")};
Sbc=function(H,U){var A=_.Sq().getState();return U?H.apply(null,[A].concat(_.vI(U))):H(A)};
RvF=function(){if(pV4)return pV4;var H=_.b(_.iB(0,void 0,"MB1Hb")),U=H.next().value;H.next();var A=H.next().value;_.Sq().subscribe(function(){LGc(A)});
return pV4=U};
LGc=function(H){ES0||(ES0=!0,Promise.resolve().then(function(){H(function(U){return U+1});
ES0=!1}))};
_.Sq=function(){return mVV.getAppStore()};
gSM=function(H,U){return mVV.getSelectFn()(H,U)};
_.Le=function(H){mVV.getDispatchFn()(H)};
ax0=function(H,U){var A={},M;for(M in H)A[M]=U(H[M],M);return A};
_.RS=function(H,U){return function(){var A;return(A=_.an(H))!=null?A:U}};
_.Ec=function(H,U){var A=Object.assign({},H),M;for(M in U)U.hasOwnProperty(M)&&(A[M]=_.RS(H[M],U[M]));return A};
xVt=function(H,U,A,M){H instanceof Element&&(A.debugName||(A.debugName="<"+H.tagName.toLowerCase()+(H.tagName.includes("-")?">":"."+H.className+">")),_.S("ytwiz_enable_debug_component_props")&&(H.debugProps||(H.debugProps=ax0(U,function(W){return function(){return W()}})),U.data===void 0||"data"in H&&!H.isWebComponentWrapper||Object.defineProperty(H.debugProps,"data",{get:function(){return _.an(U.data)},
set:function(W){var w;M==null||(w=M.data)==null||w.call(M,W)},
enumerable:!0,configurable:!0})))};
_.md=function(H,U){if(H.length===0&&(U==null||!U.initial))return CuM(H,{debugName:U==null?void 0:U.debugName},"l");var A=_.b(CuM({source:function(){return H()},
computation:function(w,d){return(d==null?0:d.value)?H(d.value):(U==null?0:U.initial)?H(U.initial):w}},{debugName:U==null?void 0:U.debugName},"m")),M=A.next().value,W=A.next().value;
A=A.next().value;return[M,W,A]};
_.r=function(H,U){var A=function(M){return C1("ytComponent",{},function(W){var w=zvc={};var d;if(((d=A)==null?0:d.idomCompat)&&M.renderedFromIdom){var O;d=typeof A.idomCompat==="object"?(O=A)==null?void 0:O.idomCompat.callbacks:{};d=_.b(CWt(M,d));O=d.next().value;var f=d.next().value;d=d.next().value;var J=t6_(H,O);w.privateValue=J;zvc=void 0;xVt(J,O,A,f);W.addAttributes({debugName:A.debugName});W=mjh(J);W=Array.isArray(W)?W[0]:W;W[MU]||(W[MU]={});W[MU].updateSignalsFromIdomProps=d;cEK(O,J);return J}d=
ax0(M,yEc);O=t6_(H,d);xVt(O,d,A);w.privateValue=O;zvc=void 0;W.addAttributes({debugName:A.debugName});cEK(d,O);return O})};
A.debugName=U===void 0?"":U;return A};
t6_=function(H,U){H=H(U);return dD(H)};
BbE=function(H,U){H[U]||(H=new _.bD("IDOM interop setter undefined. Key:",U),_.sD(H))};
yEc=function(H,U){return U==="children"||U==="ref"||typeof H==="function"||H===void 0?H:function(){return _.an(H)}};
CWt=function(H,U){var A={},M={},W={},w={},d;for(d in H){w={key$jscomp$954:w.key$jscomp$954};w.key$jscomp$954=d;var O=H[w.key$jscomp$954];if(w.key$jscomp$954==="children"||w.key$jscomp$954==="ref")A[w.key$jscomp$954]=O;else if(typeof O==="function")if(w.key$jscomp$954 in U||O.length>0)W[w.key$jscomp$954]=O,A[w.key$jscomp$954]=function(J){return function(){return W[J.key$jscomp$954].apply(W,_.vI(_.QY.apply(0,arguments)))}}(w);
else if(w.key$jscomp$954==="data"){var f=_.b(_.md(O,{debugName:w.key$jscomp$954+":cwis"}));O=f.next().value;f=f.next().value;A[w.key$jscomp$954]=O;M[w.key$jscomp$954]=f}else A[w.key$jscomp$954]=O;else H[w.key$jscomp$954]===void 0&&w.key$jscomp$954 in U||(f=_.b(_.iB(H[w.key$jscomp$954],{debugName:w.key$jscomp$954+":cwis"},"HQMSk")),O=f.next().value,f=f.next().value,A[w.key$jscomp$954]=O,M[w.key$jscomp$954]=f)}return[A,M,function(J){var F={},P;for(P in J)F={key$jscomp$953:F.key$jscomp$953,val$jscomp$122:void 0},
F.key$jscomp$953=P,F.val$jscomp$122=J[F.key$jscomp$953],F.key$jscomp$953!=="children"&&F.key$jscomp$953!=="ref"&&(typeof F.val$jscomp$122==="function"?F.key$jscomp$953 in U?W[F.key$jscomp$953]=F.val$jscomp$122:F.val$jscomp$122.length>0&&(W[F.key$jscomp$953]=F.val$jscomp$122,_.Na(new _.bD("Callback detected that was not set in the idomCompat callbacks map. Key:",F.key$jscomp$953))):F.key$jscomp$953 in U&&F.val$jscomp$122===void 0||(BbE(M,F.key$jscomp$953),Kd(function(n){return function(){M[n.key$jscomp$953](n.val$jscomp$122)}}(F))))}]};
DVr=function(H,U,A){var M=JJc(H.prototype,rEV,H.prototype.behaviors);M.prototype.is=U;M.prototype.localName=U;A&&evh(M,A);return function(W){W&&(M.prototype.hostElement=W);var w=new M;w.root=w;w.hostElement=W;return w}};
evh=function(H,U){var A;Object.defineProperty(H.prototype,"_template",{get:function(){A===void 0&&(A=U());return A},
set:function(M){A=M},
configurable:!0,enumerable:!0})};
qb_=function(H,U,A,M){function W(){if(!N){for(var L=new Set,m=_.b(F),z=m.next();!z.done;z=m.next()){z=z.value;for(var c=_.b(Object.getOwnPropertyNames(z)),C=c.next();!C.done;C=c.next()){C=C.value;var v=void 0,Y=(v=Object.getOwnPropertyDescriptor(z,C))==null?void 0:v.value;Y&&Y instanceof Function&&!gX(C)&&(!O[C]||_.S("polymer_forward_method_killswitch"))&&L.add(C)}}m=_.b(Object.entries(Object.getOwnPropertyDescriptors(H.prototype)));for(z=m.next();!z.done;z=m.next())c=_.b(z.value),z=c.next().value,
c=c.next().value,c.value instanceof Function&&!gX(z)&&L.add(z);N=L}return N}
$V4(H,U,M==null?void 0:M.providers);K3N(H.prototype,H,!0);var w=DVr(H,U,A),d,O=(d=H.prototype.properties)!=null?d:{},f,J,F=(J=(f=H.prototype.behaviors)==null?void 0:f.flat(Infinity))!=null?J:[];A=_.b(F);for(d=A.next();!d.done;d=A.next())O=Object.assign({},d.value.properties,O);var P=[].concat(_.vI(lx0),_.vI(Object.keys(O).map(function(L){return _.GP(L)}))),n=!1,N;
return{ctor:function(L,m){var z=w(L),c,C;L=[].concat(_.vI((c=M==null?void 0:M.allowedProps)!=null?c:[]),_.vI((C=M==null?void 0:M.allowedPropsFromBehaviors)!=null?C:[]));z.allowedProps=L.length>0?L:void 0;c={};C=_.b(P);for(L=C.next();!L.done;L=C.next())L=L.value,c[L]=_.Y8(L);z.__dataAttributes=c;var v=z.ready.bind(z);z.ready=function(){m.beforeReady();v();if(Ir(U)&&!n){var Y=z.__templateInfo;if(Y==null?0:Y.hostProps){Y=_.b(Object.keys(Y.hostProps));for(var D=Y.next();!D.done;D=Y.next())Vf(U,D.value,
"PROPERTY_ACCESS_GET_INTERNAL")}n=!0}};
z._overrideLegacyUndefined=!0;return z},
props:O,observedAttributes:P,getInitialMethods:W,getPropsToForwardBeforeRegister:function(){for(var L=[],m=new Set,z=_.b(Object.keys(O)),c=z.next();!c.done;c=z.next())c=c.value,L.push([c,O[c].readOnly]),m.add(c);z=W();c=_.b(Object.keys(Object.getOwnPropertyDescriptors(H.prototype)));for(var C=c.next();!C.done;C=c.next())C=C.value,!GTV(C)||z.has(C)||m.has(C)||(L.push([C,!1]),m.add(C));m=_.b(Ybc);for(z=m.next();!z.done;z=m.next())L.push([z.value,!0]);return L},
getPropsToForwardBeforeReady:function(L){for(var m=[],z=_.b(Object.entries(L)),c=z.next();!c.done;c=z.next()){var C=_.b(c.value);c=C.next().value;C=C.next().value;if(GTV(c)&&!(C instanceof Function)&&(m.push([c,!1]),Ir(U))){var v=C=void 0;(v=(C=L)._createPropertyAccessor)==null||v.call(C,c)}}return m},
shouldForwardProp:GTV,shouldLog:Ir}};
$V4=function(H,U,A){ET0(H,A);H.prototype.behaviors.unshift(hvK);if(fot()){if(Ir(U)){var M;(M=H.prototype).behaviors!=null||(M.behaviors=[]);H.prototype.behaviors.unshift(Fl7())}Prt(H)}_.g(X8.prototype)(H.prototype,"__templateHelpers")};
gX=function(H){return kT8.has(H)||H.startsWith("__compute__")};
GTV=function(H){return!gX(H)&&!H.startsWith("_")&&!H.endsWith("_")};
Q98=function(H,U){function A(){var n=f();n=_.b(n);for(var N=n.next();!N.done;N=n.next()){var L=_.b(N.value);N=L.next().value;L=L.next().value;vSh(P.prototype,N,L)}M=!0}
var M=!1,W=H.ctor,w=H.getInitialMethods,d=H.observedAttributes,O=H.getPropsToForwardBeforeReady,f=H.getPropsToForwardBeforeRegister,J=H.shouldForwardProp,F=H.shouldLog,P=function(){var n=HTMLElement.call(this)||this;n.didForwardDynamicProps=!1;n.loggingStatus={};M||A();n.inst=W(n,{beforeReady:function(){n.didForwardDynamicProps||(n.forwardDynamicProps(),n.didForwardDynamicProps=!0)}});
n.controllerProxy=Klt(n.inst,U);n.forwardMethods();return n};
_.R(P,HTMLElement);P.prototype.forwardMethods=function(){for(var n=this,N=_.b(this.inst.getExtraMethodsToForward()),L=N.next(),m={};!L.done;m={method$jscomp$65:void 0},L=N.next()){var z=_.b(L.value);L=z.next().value;z=z.next().value;m.method$jscomp$65=z;this[L]=function(c){return function(){return c.method$jscomp$65.call.apply(c.method$jscomp$65,[n.inst].concat(_.vI(_.QY.apply(0,arguments))))}}(m)}N=_.b(w());
for(m=N.next();!m.done;m=N.next())m=m.value,J(m)&&Tbr(this,m),F(U)&&!gX(m)&&j9_(this.inst,m)};
P.prototype.forwardDynamicProps=function(){var n=O(this.inst);n=_.b(n);for(var N=n.next();!N.done;N=n.next()){var L=_.b(N.value);N=L.next().value;L=L.next().value;vSh(this,N,L);F(U)&&!gX(N)&&Ixc(this.inst,N)}};
P.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
P.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
P.prototype.attributeChangedCallback=function(n,N,L){this.inst.attributeChangedCallbackWrapper(n,N,L)};
_.D5.Object.defineProperties(P.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return U}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.D5.Object.defineProperties(P,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return d}}});
customElements.define(U,P)};
vSh=function(H,U,A){H.hasOwnProperty(U)||Object.defineProperty(H,U,{get:function(){var M,W=((M=H.is)!=null?M:H.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Vf(W,U,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,M=this.polymerController[U],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,M},
set:function(M){if(!A){var W,w=((W=H.is)!=null?W:H.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Vf(w,U,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=U,this.loggingStatus.bypassProxyController=!0,this.polymerController[U]!==M&&(W={},this.polymerController.setProperties((W[U]=M,W)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
Tbr=function(H,U,A){var M=H.polymerController;H[U]=function(){var W=_.QY.apply(0,arguments);H.loggingStatus.currentExternalCall=U;H.loggingStatus.bypassProxyController=!0;var w,d=((w=H.is)!=null?w:H.tagName).toLowerCase();Vf(d,U,"PROPERTY_ACCESS_CALL_EXTERNAL");var O;w=(O=A!=null?A:M[U])==null?void 0:O.call.apply(O,[M].concat(_.vI(W)));H.loggingStatus.currentExternalCall=void 0;H.loggingStatus.bypassProxyController=!1;return w}};
j9_=function(H,U){var A=H.hostElement,M=H[U];H[U]=function(){var W=_.QY.apply(0,arguments);if(A.loggingStatus.currentExternalCall!==U){var w,d=((w=A.is)!=null?w:A.tagName).toLowerCase();Vf(d,U,"PROPERTY_ACCESS_CALL_INTERNAL")}return M==null?void 0:M.apply(H,W)}};
Ixc=function(H,U){var A=Object.getOwnPropertyDescriptor(H,U);A&&!A.get&&Object.defineProperty(H,U,{get:function(){oT0(H.hostElement,U);return A.value},
set:function(M){HX(H.hostElement,U);A.value=M}})};
V6K=function(H){return _.S("poly_si_dom_repeat_detached_fix_killswitch")||H.tagName!=="PS-DOM-REPEAT"?H.tagName==="DOM-REPEAT":!0};
U6_=function(H,U){var A=Hw8(H);H instanceof Element&&A.unshift(H);H=_.b(A.filter(V6K));for(var M=H.next();!M.done;M=H.next()){var W=void 0;M=_.b((W=M.value.__instances)!=null?W:[]);for(W=M.next();!W.done;W=M.next())if(W=W.value,W.root){W=Array.from(W.root.children);W=_.b(W);for(var w=W.next();!w.done;w=W.next())A.push.apply(A,_.vI(U6_(w.value,U)))}}return A.filter(function(d){return d.usePatchedLifecycles&&d.lifecycleIsConnected===U})};
Hw8=function(H){var U=null;H instanceof Element?U=Element.prototype.querySelectorAll:H instanceof DocumentFragment&&(U=DocumentFragment.prototype.querySelectorAll);return U?Array.from(U.call(H,"*")):[]};
aS=function(H){_.X$(function(){for(var U=_.b(U6_(H,!1)),A=U.next();!A.done;A=U.next()){A=A.value;A.lifecycleIsConnected=!0;try{var M=void 0,W=void 0,w=void 0,d=void 0;(M=(d=A.polymerController)!=null?d:A)==null||(w=(W=M).connectedCallback)==null||w.call(W)}catch(O){_.sD(O)}}})};
x$=function(H){_.X$(function(){for(var U=_.b(U6_(H,!0)),A=U.next();!A.done;A=U.next()){A=A.value;A.lifecycleIsConnected=!1;try{var M=void 0,W=void 0,w=void 0,d=void 0;(M=(d=A.polymerController)!=null?d:A)==null||(w=(W=M).disconnectedCallback)==null||w.call(W)}catch(O){_.sD(O)}}})};
bw_=function(){if(!AZF){AZF=!0;var H=[Node];zu&&H.push(zu.Wrapper);var U=Node.prototype.insertBefore,A=Node.prototype.removeChild;H=_.b(H);for(var M=H.next(),W={};!M.done;W={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},M=H.next())M=M.value,W.nativeInsertBefore=M.prototype.insertBefore,M.prototype.insertBefore=function(d){return function(O,f){if(O instanceof DocumentFragment){var J=Array.from(O.children);O=d.nativeInsertBefore.call(this,O,f);
if(this.isConnected&&d.nativeInsertBefore===U)for(f=_.b(J),J=f.next();!J.done;J=f.next())aS(J.value);return O}J=O instanceof Element&&O.isConnected;f=d.nativeInsertBefore.call(this,O,f);J&&x$(O);this.isConnected&&aS(O);return f}}(W),W.nativeAppendChild=M.prototype.appendChild,M.prototype.appendChild=function(d){return function(O){if(O instanceof DocumentFragment){var f=Array.from(O.children);
O=d.nativeAppendChild.call(this,O);if(this.isConnected){f=_.b(f);for(var J=f.next();!J.done;J=f.next())aS(J.value)}return O}f=O instanceof Element&&O.isConnected;J=d.nativeAppendChild.call(this,O);f&&x$(O);this.isConnected&&aS(O);return J}}(W),W.nativeRemoveChild=M.prototype.removeChild,M.prototype.removeChild=function(d){return function(O){var f=O instanceof Element&&O.isConnected,J=d.nativeRemoveChild.call(this,O);
f&&A===d.nativeRemoveChild&&x$(O);return J}}(W),W.nativeReplaceChild=M.prototype.replaceChild,M.prototype.replaceChild=function(d){return function(O,f){if(O instanceof DocumentFragment){var J=Array.from(O.children);
O=d.nativeReplaceChild.call(this,O,f);if(this.isConnected)for(x$(f),f=_.b(J),J=f.next();!J.done;J=f.next())aS(J.value);return O}J=O instanceof Element&&O.isConnected;var F=this.isConnected,P=d.nativeReplaceChild.call(this,O,f);F&&x$(f);J&&x$(O);F&&aS(O);return P}}(W);
H=[Element];zu&&H.push(zu.Wrapper);H=_.b(H);M=H.next();for(W={};!M.done;W={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},M=H.next())M=M.value,M.prototype.before=Mzt(M.prototype.before),M.prototype.after=Mzt(M.prototype.after),W.nativeReplaceWith=M.prototype.replaceWith,M.prototype.replaceWith=function(d){return function(){var O=_.QY.apply(0,arguments),f=_.b(WnM(O)),J=f.next().value,
F=f.next().value;f=this.isConnected;d.nativeReplaceWith.apply(this,O);O=_.b(F);for(F=O.next();!F.done;F=O.next())x$(F.value);if(f)for(x$(this),J=_.b(J),f=J.next();!f.done;f=J.next())f=f.value,f instanceof Element&&aS(f)}}(W),W.nativeRemove=M.prototype.remove,M.prototype.remove=function(d){return function(){var O=this.isConnected;
d.nativeRemove.call(this);O&&x$(this)}}(W),W.nativeInsertAdjacentElement=M.prototype.insertAdjacentElement,M.prototype.insertAdjacentElement=function(d){return function(O,f){var J=f.isConnected;
O=d.nativeInsertAdjacentElement.call(this,O,f);J&&x$(f);O.isConnected&&aS(O);return O}}(W),W.nativeSetAttribute=M.prototype.setAttribute,M.prototype.setAttribute=function(d){return function(O,f){var J=w90(this);
if(!J.usePatchedLifecycles)return d.nativeSetAttribute.call(this,O,f);var F=this.getAttribute(O);d.nativeSetAttribute.call(this,O,f);f=this.getAttribute(O);X9N(J,O,F,f)}}(W),W.nativeRemoveAttribute=M.prototype.removeAttribute,M.prototype.removeAttribute=function(d){return function(O){var f=w90(this);
if(!f.usePatchedLifecycles)return d.nativeRemoveAttribute.call(this,O);var J=this.getAttribute(O);d.nativeRemoveAttribute.call(this,O);J!==null&&X9N(f,O,J,null)}}(W),W.nativeToggleAttribute=M.prototype.toggleAttribute,M.prototype.toggleAttribute=function(d){return function(O,f){var J=w90(this);
if(!this.usePatchedLifecycles)return d.nativeToggleAttribute.call(this,O,f);var F=this.getAttribute(O),P=F!==null;f=d.nativeToggleAttribute.call(this,O,f);f!==P&&X9N(J,O,F,f?"":null);return f}}(W);
H=[Document,DocumentFragment,Element,ShadowRoot];zu&&H.push(zu.Wrapper);H=_.b(H);for(W=H.next();!W.done;W=H.next())W=W.value,W.prototype.prepend=Mzt(W.prototype.prepend),W.prototype.append=Mzt(W.prototype.append);(zu==null?void 0:zu.noPatch)===!0&&iwV();document.readyState==="complete"?aS(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&aS(document.body)});
var w=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");w&&w.get&&w.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:w.enumerable,configurable:!0,get:w.get,set:function(d){d||x$(this);w.set.call(this,d);return d}})}};
Mzt=function(H){return function(){var U=_.QY.apply(0,arguments),A=_.b(WnM(U)),M=A.next().value;A=A.next().value;H.apply(this,U);U=_.b(A);for(A=U.next();!A.done;A=U.next())x$(A.value);if(this.isConnected)for(M=_.b(M),U=M.next();!U.done;U=M.next())U=U.value,U instanceof Element&&aS(U)}};
iwV=function(){for(var H=_.b(d6K),U=H.next();!U.done;U=H.next()){U=U.value.prototype;for(var A=_.b(OwK),M=A.next();!M.done;M=A.next()){M=M.value;var W=Object.getOwnPropertyDescriptor(U,M);W&&Object.defineProperty(U,"__shady_native_"+M,W)}}};
X9N=function(H,U,A,M){var W,w;if((W=H.polymerController)==null?0:(w=W.observedAttributes)==null?0:w.includes(U))if(H=H.polymerController,H.attributeChangedCallbackWrapper)H.attributeChangedCallbackWrapper.call(H,U,A,M);else{var d;(d=H.attributeChangedCallback)==null||d.call(H,U,A,M)}};
WnM=function(H){var U=[],A=[];H=_.b(H);for(var M=H.next();!M.done;M=H.next())M=M.value,M instanceof Element&&M.isConnected&&A.push(M),M instanceof DocumentFragment?U.push.apply(U,_.vI(Array.from(M.children))):U.push(M);return[U,A]};
w90=function(H){return!(H instanceof Element)&&H.node instanceof Element?H.node:H};
uyr=function(H,U){var A=U?["children"].concat(_.vI(U)):["children"];U=[];A=_.b(A);for(var M=A.next();!M.done;M=A.next()){var W=M.value;if(H.hasOwnProperty(W)){M=H[W];M=typeof M==="function"?M():M;M=Array.isArray(M)?M:[M];M=dD(M).flat();if(W!=="children"){W=zUE(W);for(var w=_.b(M),d=w.next();!d.done;d=w.next())d=d.value,d instanceof Element&&d.setAttribute("slot",W)}U.push(M)}}U.length===0?H=[]:(H=dD(_.Z("div",null,U)),H=Array.from(H.childNodes));return H};
fw0=function(H,U,A){var M={};_.Rn(function(){var W={},w;for(w in U)if(U.hasOwnProperty(w)){var d=void 0,O=void 0;if(!(((d=A.slotProps)==null?0:d.includes(w))||w==="children"||((O=A.callbackProps)==null?0:O.includes(w))||w==="ref")&&(d=_.an(U[w]),M[w]!==d)){M[w]=d;O=void 0;var f=(O=H.hostElement)!=null?O:H;!A.skipHostForwardedProps&&Zw8.has(w)&&(f[w]=d);W[w]=d}}Kd(function(){if(H.setProperties)H.setProperties(W);else for(var J=_.b(Object.entries(W)),F=J.next();!F.done;F=J.next()){var P=_.b(F.value);
F=P.next().value;P=P.next().value;H[F]=P}})},"n")};
Knh=function(H,U,A,M){var W=uyr(A,M.slotProps),w=(0,_.ek)(H);W=_.b(W);for(var d=W.next();!d.done;d=W.next())w.appendChild(d.value);fw0(U,A,M);M=_.b(M.callbackProps||[]);W=M.next();for(w={};!W.done;w={kebabEventName:void 0,eventListener:void 0},W=M.next())d=W=W.value,String(W).substring(0,2)==="on"&&A[d]?(w.kebabEventName=zUE(String(W).substring(2)),w.eventListener=A[d],H.addEventListener(w.kebabEventName,w.eventListener),_.m4(function(F){return function(){H.removeEventListener(F.kebabEventName,F.eventListener)}}(w))):
U[d]=A[d];
if(A.ref){A=_.b(JZK(A.ref));var O=A.next().value,f=A.next().value,J=U.attached.bind(U);U.attached=function(){O(H);J()};
_.m4(function(){f()})}};
JZK=function(H){if(typeof H==="function"){var U;return[function(A){U=H(A)},
function(){var A;(A=U)==null||A()}]}if(!H.onRender||!H.onUnmount)throw Error("Ug");
return[H.onRender,H.onUnmount]};
odF=function(H,U){U=U===void 0?{}:U;var A=function(M){var W=document.createElement(H),w;var d=(w=W.polymerController)!=null?w:W;Knh(W,d,M,U);return W};
A.debugName=H;return A};
nd4=function(H,U,A,M,W){M=M===void 0?{}:M;var w=FnF,d=!1;w?(d=!0,FnF=void 0):(PT7=U,w=document.createElement(U),PT7=void 0);var O=w;O.usePatchedLifecycles=!0;O.lifecycleIsConnected=!1;w.loggingStatus={};var f=s4h(H,U,w,M,W);_.m4(function(){O.lifecycleIsConnected&&(O.lifecycleIsConnected=!1,f.disconnectedCallback())});
d||(w.__noInsertionPoint=!0,Knh(w,f,A,M));return w};
s4h=function(H,U,A,M,W){W=W===void 0?qb_:W;Nc4[U]!=null||(Nc4[U]=W(H,U,M==null?void 0:M.getTemplate,M));var w=Nc4[U],d=w.ctor;W=w.getInitialMethods;var O=w.getPropsToForwardBeforeReady;H=w.getPropsToForwardBeforeRegister;M=w.shouldForwardProp;var f=w.observedAttributes,J=w.shouldLog,F=d(A,{beforeReady:function(){var P=F;P._takeAttributes?P._takeAttributes():P.setPropertiesFromInitialAttributeValues&&P.setPropertiesFromInitialAttributeValues();P=_.b(O(A.polymerController));for(var n=P.next();!n.done;n=
P.next()){var N=_.b(n.value);n=N.next().value;N=N.next().value;vSh(A,n,N);J(U)&&!gX(n)&&Ixc(A.polymerController,n)}A.polymerController=Klt(F,U)}});
A.polymerController=F;A.polymerController.observedAttributes=f;w=_.b(F.getExtraMethodsToForward());for(d=w.next();!d.done;d=w.next())f=_.b(d.value),d=f.next().value,f=f.next().value,Tbr(A,d,f);W=_.b(W());for(w=W.next();!w.done;w=W.next())w=w.value,M(w)&&Tbr(A,w),J(U)&&!gX(w)&&j9_(F,w);H=_.b(H());for(M=H.next();!M.done;M=H.next())W=_.b(M.value),M=W.next().value,W=W.next().value,vSh(A,M,W);return F};
SZM=function(H){var U=Ce;Ce=H;return U};
Rm0=function(H){if(p97.has(H)&&Ce&&Lnr(Ce)===H){var U;(U=Ce)._numRenders!=null||(U._numRenders=0);Ce._numRenders++;if(Ce._numRenders>1)throw Error("Vg");return Ce}};
m6M=function(H){var U=Lnr(H);Ce!==H&&U.includes("-")&&Edt.set(H,!0)};
Lnr=function(H){var U;return(U=H==null?void 0:H.tagName.toLowerCase())!=null?U:""};
gdh=function(H,U){if(H.componentType===F$)throw Error("Wg");p97.add(U);var A=function(){var M=HTMLElement.call(this)||this;M.is=U;if(PT7===U)return M.isInert=!0,M;M.createElement();return M};
_.R(A,HTMLElement);A.prototype.createElement=function(){if(!this.isInert){FnF=this;var M=_.b($Z4(function(){return _.Z(H,null)})).next().value;
FnF=void 0;oJN(this);return M}};
customElements.define(U,A)};
x6M=function(H,U,A,M,W){H.prototype.is=U;(M==null?0:M.useSink)?awV(H,U,A,M,W):(A=qb_(H,U,A,M),Q98(A,U));return H};
awV=function(H,U,A,M,W){bw_();var w=_.r(function(d){return nd4(H,U,d,Object.assign({},M,{getTemplate:A}),W)},"o");
w.debugName=U;gdh(w,U);return w};
CTM=function(H){return!zmK.has(H)};
yZE=function(H,U,A,M){function W(){if(!P){for(var n=new Set(tzh),N=_.b(w.behaviors),L=N.next();!L.done;L=N.next()){L=L.value;for(var m=_.b(Object.getOwnPropertyNames(L)),z=m.next();!z.done;z=m.next()){z=z.value;var c=void 0,C=(c=Object.getOwnPropertyDescriptor(L,z))==null?void 0:c.value;C&&C instanceof Function&&(!J[z]||_.S("polymer_forward_method_killswitch"))&&n.add(z)}}N=_.b(Object.entries(Object.getOwnPropertyDescriptors(H.prototype)));for(L=N.next();!L.done;L=N.next())m=_.b(L.value),L=m.next().value,
m=m.next().value,m.value instanceof Function&&n.add(L);P=n}return P}
var w=oSE({is:U,disableElementRegistration:!1,getTemplate:A,providers:M==null?void 0:M.providers,reactivityMode:M==null?void 0:M.reactivityMode},H);if((M==null?0:M.allowedProps)||(M==null?0:M.allowedPropsFromBehaviors)){var d,O;w.allowedProps=[].concat(_.vI((d=M.allowedProps)!=null?d:[]),_.vI((O=M.allowedPropsFromBehaviors)!=null?O:[]))}var f=dVV(w,H);U=f.observedAttributes;var J={};A=_.b(w.reactiveSchemas);for(M=A.next();!M.done;M=A.next())if(M=M.value,M.type==="signal")J[M.propertyKey]={readOnly:M.readOnly},
M.readOnly&&(J[DNc(M.propertyKey)]={readOnly:!0});else if(M.type==="compute"||M.type==="computeWithMethod"||M.type==="redux")J[M.propertyKey]={readOnly:!0};var F=w.reactiveSchemas.length,P;return{ctor:function(n,N){n=new f(n);n.beforeReady=N.beforeReady;return n},
props:J,observedAttributes:U,getInitialMethods:W,getPropsToForwardBeforeRegister:function(){for(var n=[],N=new Set,L=_.b(cZV),m=L.next();!m.done;m=L.next())m=m.value,n.push([m,m!=="observers"&&m!=="properties"]),N.add(m);L=_.b(Object.keys(J));for(m=L.next();!m.done;m=L.next())m=m.value,n.push([m,J[m].readOnly]),N.add(m);L=W();m=_.b(Object.keys(Object.getOwnPropertyDescriptors(H.prototype)));for(var z=m.next();!z.done;z=m.next())z=z.value,!CTM(z)||L.has(z)||N.has(z)||(n.push([z,!1]),N.add(z));n.push(["allowedProps",
!0]);return n},
getPropsToForwardBeforeReady:function(n){var N=[];n=_.b(Object.keys(n));for(var L=n.next();!L.done;L=n.next()){L=L.value;var m=W();CTM(L)&&!m.has(L)&&N.push([L,!1])}n=_.b(w.reactiveSchemas.slice(F));for(L=n.next();!L.done;L=n.next())L=L.value,L.type!=="compute"&&L.type!=="computeWithMethod"&&L.type!=="redux"&&L.type!=="signal"||N.push([L.propertyKey,L.type==="signal"?L.readOnly:!0]);return N},
shouldForwardProp:CTM,shouldLog:Ir}};
_.e=function(H,U,A,M){var W,w,d=(w=(W=M)==null?void 0:W.mode)!=null?w:0;M!=null||(M={});var O;(O=M).reactivityMode!=null||(O.reactivityMode=0);d===1&&_.v5("creator_poly_si_disable_list").includes(U)&&(d=2);return d===1?x6M(H,U,A,Object.assign({},M,{useSink:!0}),yZE):x6M(H,U,A,Object.assign({},M,{useSink:d===2}))};
_.ty=function(){return function(H,U,A,M){var W,w,d=(w=(W=M)==null?void 0:W.mode)!=null?w:2;M!=null||(M={});var O;(O=M).reactivityMode!=null||(O.reactivityMode=0);if(d===0)throw Error("Xg`"+d);return awV(H,U,A,M,d===1?yZE:void 0)}};
_.cX=function(H){return _.S("force_all_poly_si_batches")&&H||document.documentElement.hasAttribute("use-signals")?!0:!H||_.S(H+"_holdback_enabled")&&_.S("kevlar_polysi_holdback")?!1:_.S(H)};
yD=function(H){return H?H.icon?H.icon.iconType.toLowerCase():H.customThumbnail?"member":"":""};
Bcc=function(H){if(!H)return"";H=_.b(H);for(var U=H.next();!U.done;U=H.next())if((U=U.value)&&U.liveChatAuthorBadgeRenderer&&(U=yD(U.liveChatAuthorBadgeRenderer))&&U!=="verified")return U;return""};
rZE=function(H,U){if(!H)return null;var A;return((A=H.find(function(M){return M&&M.liveChatAuthorBadgeRenderer?yD(M.liveChatAuthorBadgeRenderer)===U:!1}))==null?void 0:A.liveChatAuthorBadgeRenderer)||null};
_.$6E=function(H){var U=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;H=Cd0(H);U=Cd0(U);var A=Db0(H.hex);U=Db0(U.hex);var M=U[0]/255;var W=U[1]/255,w=U[2]/255,d=Math.max(M,W,w),O=Math.min(M,W,w),f=0,J=0,F=.5*(d+O);d!=O&&(d==M?f=60*(W-w)/(d-O):d==W?f=60*(w-M)/(d-O)+120:d==w&&(f=60*(M-W)/(d-O)+240),J=0<F&&F<=.5?(d-O)/(2*F):(d-O)/(2-2*F));M=[Math.round(f+360)%360,J,F];A=emV(A,U);for(H=D67(H.hex);A<4.5;){H=M[2]>=.5?H.darker((4.5-A)/2):H.brighter((4.5-A)/2);A=H.toString();
W=yJV(A);if(!W.length)throw Error("Zd`"+A);A=W;A=emV(A,U)}return H.hex()};
emV=function(H,U){H=_.Py_(H);U=_.Py_(U);return(Math.max(H,U)+.05)/(Math.min(H,U)+.05)};
_.BX=function(H){return"#"+("000000"+(H&16777215).toString(16)).slice(-6)};
_.lwF=function(H){for(var U=0,A=0;A<H.length;A++)U=H.charCodeAt(A)+((U<<5)-U);H="#";for(A=0;A<3;A++)H+=("00"+(U>>A*8&255).toString(16)).slice(-2);return H};
Gxh=function(H){H=(H||"").split(":");H.length===1&&H.unshift("yt-icons");H[1]=H[1].toLowerCase();return H};
Tct=function(H,U){var A=(U=U===void 0?!1:U)?YZc:qZh,M=U?hmV:kxE;H.getIconNames().forEach(function(W){W=U?W:W.substring(W.indexOf(":")+1);H.name==="yt-icons"?vd8.add(W):W.includes("-filled")?A.add(W):M.add(W)})};
rX=function(H,U,A,M){A=A===void 0?!1:A;M=M===void 0?!1:M;var W,w,d;return _.u(function(O){if(O.nextAddress==1)return O.yield(j4F,2);if(M)return O.return(vd8.has(H));W=A?YZc:qZh;w=A?hmV:kxE;return U?(d=H.includes("-filled")?H:H.concat("-filled"),O.return(W.has(d))):O.return(w.has(H))})};
_.eq=function(H){if(Iw7(H))return H.toString();var U=Q4K.get(H);if(U)return U;U=H.toLowerCase();var A="yt-icons",M=U.replace(/_/g,"-");switch(H){case "MY_CHANNEL":U="account_circle";break;case "ADD_TO_LIBRARY":U="add";break;case "ALERT_WARN_RED":U="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":U="person_music";break;case "BLOCK_USER":U="block";break;case "CAPTIONS":U="closed_caption";break;case "CLOSED_CAPTION":A="av";U="closed-caption";break;case "COLLECTION":A="maps";U="layers";break;case "CONTACT":A=
"icons";U="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":A="yt-studio-system-icons";U=M.split("creator-studio-")[1];break;case "DISMISSAL":U="close";break;case "DO_NOT_DISTURB":U="block";break;case "DOGFOOD":A="icons";U="pets";break;case "DRAFT":U="paper_corner_folded";
break;case "EMPTY_LIKE":U="like_outline";break;case "EXIT_APP":U="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":U=M;break;case "GAMES":A="ytg";U="my-games";break;case "GO_TO_PAGE":U="arrow-forward";break;case "GROUP":A="social";break;case "HIDE":U="not_interested";break;case "INPUT_COMPONENT":A="icons";U="settings-input-component";break;case "KIDS_BLOCK":U="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":A="ytg";U="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":A=
"ytg";U="membership-post-purchase";break;case "MULTIVIEW":U="screen_multi_view";break;case "MY_LOCATION":A="maps";U=M;break;case "NOTIFICATIONS_INBOX":U="NOTIFICATIONS";break;case "NEXT":U="chevron_right";break;case "OFFLINE":U="power-settings-new";break;case "PAUSE":A="miniplayer";break;case "PAYMENT":A="icons";break;case "PHONE_DOWNLOAD":U="phone_download";break;case "PREMIUM_STANDALONE":A="yt-logos";U="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":A="yt-logos";U="premium_standalone_cairo";
break;case "QUESTION_ANSWER":U="question_answer";break;case "REDEEM":A="icons";U="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":U="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":U="library_add";break;case "SCHOOL":A="yt-sys-icons";U="creator_academy";break;case "SETTINGS_LIGHT":U="settings_applications";break;case "SETTINGS_MATERIAL":U="settings";break;case "SEARCH_HISTORY":U="watch_history";break;case "SHOPPING_BAG":U="bag";break;case "SOCIAL":case "PEOPLE":A=
"yt-icons";U="people";break;case "STAFF_PICK":A="ytg";U="spotlight";break;case "START_DVR":U="add";break;case "STOP_DVR":A="av";U="stop";break;case "TAB_LIKED":U="like";break;case "TAB_INBOX":U="mail";break;case "TERMS_OF_SERVICE":A="icons";U="description";break;case "TRENDING":U="fire";break;case "UNBLOCK_USER":U="remove";break;case "UNPLUGGED_DARK_THEME":A="image";U="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":U="live";break;case "UNPLUGGED_SPORTS":A="ytu";U="visibility-off";break;
case "VIDEOS":A="av";U="play-circle-filled";break;case "YOUTUBE":A="yt-logos";U="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":A="yt-logos-ext";U="yt-logo-red-updated";break;case "YOUTUBE_LOGO":A="yt-logos-ext";U="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":A="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":A="shorts";U=M;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":A="yt-sys-icons";U="youtube_improve_tv";break;case "OUTLINE_BAG":A=
"yt-sys-icons";U="bag";break;case "QUEUE_PLAY_LAST":A="yt-sys-icons";U="list_queue_last";break;case "SLASH_CIRCLE_LEFT":U="slash_circle_left";break;case "SPEED_1_POINT_2X":U="1_point_2x";break;case "SPEED_1_POINT_5X":U="1_point_5x";break;case "SPEED_1_POINT_8X":U="1_point_8x";break;case "SPEED_POINT_2X":U="point_2x";break;case "SPEED_POINT_5X":U="point_5x";break;case "SPEED_POINT_8X":U="point_8x";break;case "SPEED_1X":U="1x";break;case "SPEED_2X":U="2x";break;case "TAB_BOOKMARK":U="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":A="yt-sys-icons";U="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":A="yt-sys-icons";U="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":A="yt-sys-icons",U="tic_tac_toe"}U=A+":"+U;Q4K.set(H,U);return U};
Iw7=function(H){var U;_.S("kevlar_use_wil_icons")?U=!!_.lx().resolve(_.Dd).resolveIcon({iconName:H.toString()}):U=!1;return U};
_.l0=function(H,U,A,M){A=A===void 0?{}:A;M=M===void 0?!1:M;A===null&&(A={});var W=_.v5("kevlar_command_handler_command_banlist");W=_.b(W);for(var w=W.next();!w.done;w=W.next())if(w=H?H.hasOwnProperty(w.value):void 0,w)return!1;W=_.p(H.commandMetadata,_.Y2);return M&&W!=null&&W.url?!1:!U.disableCommandHandlerOverride&&_.$$.instance?(M=_.$$.instance,A.form||(A.form={element:U}),A.form.element||(A.form.element=U),!A.clickedVisualElement&&U.visualElement&&(A.clickedVisualElement=U.visualElement),M.resolveCommand(H,
A),!0):!1};
VzV=function(H,U){H=Gu(H);for(var A=_.b(H.visibilityMonitorKeys||[]),M=A.next();!M.done;M=A.next())U.unobserveByKey(M.value);H.visibilityMonitorKeys=void 0};
Y$=function(H,U){if(_.XK()){if(_.S("kevlar_vimio_use_shared_monitor"))HIV(H,U.data);else if(!HIV(H,U.data))return;var A=U.data,M=U47(A);if(_.S("enable_client_ve_spec_logging"))VzV(H,U.observer);else{var W=Gu(H);W.trackedParams&&W.trackedParams!==M&&VzV(H,U.observer)}W=Gu(H);!A||W.data&&W.data===A||(W.data=A);AuV(H,U);W.trackedParams=M}};
AuV=function(H,U){var A=U.observer;if(!A&&_.S("web_skip_missing_vimio_observer")){var M,W;_.Na(new _.bD("VisibilityObserver is not defined.",H.tagName,H.trackedParams,(M=U.data)==null?void 0:M.trackingParams,(W=U.data)==null?void 0:W.loggingDirectives))}else{var w=U.layer,d=U.visibilityCallback||function(){},O=U.prescanCallback,f=Gu(H);
M=[];U.showOption&&M.push(A.observe(H,function(){U.skipLogging&&U.skipLogging()||_.qD().reportShown(f,void 0,w,7);d(!0)},U.showOption));
U.hideOption&&M.push(A.observe(H,function(){_.qD().reportHidden(f,void 0,w,7);d(!1)},U.hideOption));
U.prescanOption&&O&&M.push(A.observe(H,function(){O()},U.prescanOption));
f.visibilityMonitorKeys=M}};
HIV=function(H,U){H=Gu(H);if(H.visualElement&&!U)return!0;if(!U)return!1;var A=!1;if(_.S("enable_client_ve_spec_logging")){var M,W;A=!!((M=U.loggingDirectives)==null?0:(W=M.clientVeSpec)==null?0:W.uiType)}M=U47(U);if(!M&&!A)return!1;_.S("mweb_component_visibility_logging")&&(H.veContainer||(H.veContainer={}),H.veContainer.trackingParams=M);if(H.trackedParams&&H.trackedParams===M)return!1;var w;if(_.S("enable_client_ve_spec_logging")&&((w=H.visualElement)==null?0:w.isClientVe())){var d;w=(d=H.visualElement)==
null?void 0:d.getAsJspb();var O,f,J,F;if(_.B8(w,2)===((O=U.loggingDirectives)==null?void 0:(f=O.clientVeSpec)==null?void 0:f.uiType)&&_.B8(w,3,-1)===((J=U.loggingDirectives)==null?void 0:(F=J.clientVeSpec)==null?void 0:F.elementIndex))return!1}if(_.S("enable_client_ve_spec_logging")){var P,n;!H.visualElement&&((P=U.loggingDirectives)==null?0:(n=P.clientVeSpec)==null?0:n.uiType)&&(O=U.loggingDirectives.clientVeSpec,U=O.uiType,d=O.elementIndex,O=O.clientYoutubeData,H.visualElement=_.hy(_.k$(),{veType:U,
elementIndex:d,clientYouTubeData:O}))}return!0};
U47=function(H){if(H==null?0:H.rendererContext){var U=_.p(H.rendererContext,_.vX);if(U==null?0:U.loggingDirectives)return U.loggingDirectives.trackingParams}return(H==null?0:H.loggingDirectives)?H.loggingDirectives.trackingParams:H==null?void 0:H.trackingParams};
Gu=function(H){var U;return(U=H.polymerController)!=null?U:H};
Xsr=function(H){_.qD();if(_.CA(Tu().JSC$13049_elementShouldLogGesture).bind(Tu())(H,4)){MOr(H);var U=WvK(H);wst.set(H,U)}};
MOr=function(H){wst.has(H)&&(wst.get(H).cancel("untrack hover element"),wst.delete(H))};
WvK=function(H){var U,A=[],M=!1,W=new _.IQ(function(w,d){FG(H,"mouseenter",_.CA(function(){var O,f,J;return _.u(function(F){if(F.nextAddress==1)return U=(0,_.lD)(),O=iIh(H),A.push(O),f=bIN(H,function(){M=!0;d(Error("Yg"))}),F.yield(O,2);
if(F.nextAddress!=3)return f&&jq(f),J=d4E(H),A.push(J),F.yield(J,3);w();_.DO(F)})}))});
W.then(function(){var w=(0,_.lD)()-U;w=Math.round(w);if(!(500>w||6E5<=w)){var d=H.getScreenLayer?H.getScreenLayer():void 0;d=_.XK(d)||"";var O=OI0(_.qD(),H);_.S9(d,H.visualElement?H.visualElement:_.IS(O),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:w}})}Xsr(H)},function(){QD&&(QD(),QD=null);
M&&(MOr(H),Xsr(H))});
return W};
iIh=function(H){var U;return(new _.IQ(function(A,M){QD=function(){M(Error("Zg"))};
U=_.Fl.debounce(_.CA(function(){jq(W);A()}),1,100);
var W=_.Rc(H,"mousemove",U)})).thenCatch(function(){var A=_.Fl.cancelDebouncedJobMap.get(U);
A&&_.Fl.cancelJob(A)})};
d4E=function(H){var U;return(new _.IQ(function(A,M){QD=function(){M(Error("$g"))};
U=FG(H,"mouseleave",_.CA(function(){A()}))})).thenCatch(function(){jq(U)})};
bIN=function(H,U){return FG(H,"mouseleave",_.CA(U))};
ZIF=function(H){usV&&_.VD.cancel(usV);usV=_.VD.run(function(){_.cg(H,"yt-visibility-refresh");usV=0})};
fbM=function(H){H=Number(H);return"rgba("+[H>>16&255,H>>8&255,H&255,(H>>24&255)/255].join()+")"};
Kv7=function(H){if(!H)return!1;if(_.p(H,_.Ju7))return!0;var U;if(H=(U=_.p(H,_.$2))==null?void 0:U.commands)for(U=_.b(H),H=U.next();!H.done;H=U.next())if(_.p(H.value,_.Ju7))return!0;return!1};
o90=function(H){var U=!0;U=U===void 0?!0:U;if(!H.useSignals&&!H.experimentalPropertiesChanged||_.S("experimental_templating_behavior_nopatch_killswitch")){var A=H._propertiesChanged;H._propertiesChanged=function(M,W,w){U?H.debounceRender():H.doRender();A&&A.call(H,M,W,w)}}};
Fv7=function(H,U){if(H.useSignals||H.experimentalPropertiesChanged)if(_.S("experimental_templating_behavior_nopatch_killswitch"))H.experimentalPropertiesChanged=function(){};
else return;var A=new Set,M=[H].concat(_.vI(H.behaviors));M=_.b(M);for(var W=M.next();!W.done;W=M.next()){W=W.value;for(var w in W.properties)A.has(w)||(H._addPropertyEffect(w,"function",U),A.add(w))}};
PbN=function(){var H=Polymer.Element,U=H._prepareTemplate;H._prepareTemplate=function(){U.call(this);var A=this.prototype;if(A.experimentalTemplatingInUse&&A.experimentalTemplatingInUse()&&A.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.sD(Error("ah"));else{A=this.template.content.childNodes;for(var M=A.length-1;M>=0;M--){var W=A[M];W.nodeName!=="STYLE"&&W.nodeName!=="LINK"&&W.nodeName!=="SCRIPT"&&W.nodeName!=="#comment"&&W.remove()}}}};
sPc=function(H){var U=!0;U=U===void 0?!0:U;PbN();var A=H.ready;H.ready=function(){this._template=null;A.call(this)};
Fv7(H,U?H.debounceRender:H.doRender)};
NEK=function(H,U,A){if(A===null||A===void 0)return A;var M=r0c(H.tagName.toLowerCase(),U,function(){throw Error("Vb");});
if(M===null)return A;M=n9M[M];var W;if((W=M.isUnwrappable)==null?0:W.call(M,A)){if(M.unwrap)return M.unwrap(A);throw Error("dh");}return M.filterString?M.filterString(H.tagName,U,String(A)):A};
S28=function(H,U,A){var M=U[U.length-1]!=="$";A=NEK(H,U,A);M?H[U]=A:(M=A==null?null:String(A),Cd(H,U.slice(0,-1),M))};
UB=function(H){_.S("mweb_after_render_to_scheduler")?_.Fl.addJob(function(){try{H()}catch(U){_.H$(U)}},8):(psK.length===0&&requestAnimationFrame(function(){setTimeout(function(){var U=psK.slice();
psK.length=0;U=_.b(U);for(var A=U.next();!A.done;A=U.next()){A=A.value;try{A()}catch(M){_.H$(M)}}})}),psK.push(H))};
Lv4=function(H){if(H){var U=H.component;if(U){var A;U==null||(A=U.events)==null||A.publish("DISCONNECTED");var M;U==null||(M=U.onDisconnected)==null||M.call(U)}var W,w;(W=H.__spec)==null||(w=W.didUnmount)==null||w.call(W);for(U=0;U<H.childNodes.length;U++)Lv4(H.childNodes[U])}};
_.Ap=function(H,U,A){A===void 0?delete H[U.name]:H[U.name]=A};
_.Me=function(H){var U={androidIncludeFontPadding:!1},A=0,M=[],W=[],w=[];if(H.simpleText)return U.content=H.simpleText,U;if(H.runs===void 0)return U.content="",U;H=_.b(H.runs);for(var d=H.next();!d.done;d=H.next()){d=d.value;var O=d.text,f=void 0,J=(f=O)==null?void 0:f.length;if(O&&J){M.push(O);if(d.bold||d.italics||d.strikethrough||d.underline||d.textColor!=null&&d.textColor!==0||d.deemphasize){O=W;f=O.push;var F={startIndex:A,length:J};d.bold&&(F.weightLabel="FONT_WEIGHT_MEDIUM");d.italics&&(F.italic=
!0);d.strikethrough&&(F.strikethrough="LINE_STYLE_SINGLE");d.underline&&(F.underline="LINE_STYLE_SINGLE");d.textColor!=null&&d.textColor!==0?document.documentElement.hasAttribute("dark")?F.fontColor=d.darkModeTextColor||d.textColor:F.fontColor=d.textColor:d.deemphasize&&(document.documentElement.hasAttribute("dark")?F.fontColor=parseInt("ff"+cJF("#aaa").substring(1),16):F.fontColor=parseInt("ff"+cJF("#606060").substring(1),16));f.call(O,F)}d.navigationEndpoint&&(O=w,f=O.push,F={startIndex:A,length:J,
onTap:{innertubeCommand:d.navigationEndpoint}},d.loggingDirectives&&_.Ap(F,Rs7,d.loggingDirectives),f.call(O,F));A+=J}}U.content=M.join("");U.styleRuns=W.length?W:void 0;U.commandRuns=w.length?w:void 0;return U};
m4F=function(H){if(H==null||!H.runs)return!0;H=_.b(H.runs);for(var U=H.next();!U.done;U=H.next())if(U=U.value,U.bracket||U.errorUnderline||U.deemphasize||_.p(U,W$)||_.p(U,E98))return!1;return!0};
g9t=function(H,U){return function(A){var M=U.unit;if(M!==A)throw Error("gh`"+H+"`"+M+"`"+A);return U}};
wA=function(H){if(!((H==null?0:H.value)&&(H==null?0:H.unit)))return"";switch(H.unit){case "DIMENSION_UNIT_FRACTION":var U="%";break;default:U="px"}H=H.value;U==="%"&&(H*=100);return""+H+U};
abV=function(H){try{return H()}catch(U){_.Na(U)}};
_.ij=function(H){var U=_.p(H,_.X1);if(U)return U;if((U=_.p(H,x40))&&U.commands)return zsc(U.commands);if((U=_.p(H,Cbh))&&U.commands)return zsc(U.commands);if((H=_.p(H,tOF))&&H.identifier&&H.command&&(cu7||(cu7=[]),!cu7.includes(H.identifier)))return cu7.push(H.identifier),_.p(H.command,_.X1)};
zsc=function(H){if(H.length!==0){var U=[];H=_.b(H);for(var A=H.next();!A.done;A=H.next())(A=_.ij(A.value))&&U.push(A);return{commandExecutorCommand:{commands:U}}}};
_.dA=function(H){var U=H.defaultTarget,A=H.elementConfig,M=H.elementsCommand,W=H.skipOnClick,w=H.forceNewState,d=H.additionalCommandArgs,O=H.innertubeCommand||_.ij(M);if(O){H={};var f=yut(O);M=f.navigatingCommand;f=f.href;M&&f?(H.href$=f,BE8(H,M,f,U),_.S("web_atagconfig_pointerdown")&&rur(H,M),w&&(H["force-new-state$"]=!0)):(H.role$="button",H.href$="javascript:void(0);");_.p(O,es0)&&(H["aria-haspopup$"]=!0);W||(H.onclick=function(J){var F={};if(D4t(J)){var P=(d==null?void 0:d.clickedVisualElement)||
(d==null?void 0:d.getClickedVisualElement)&&d.getClickedVisualElement();P&&(F={clickedVisualElement:P});F=Object.assign({},{form:{element:J.target,event:J,createScreenConfig:F}},d);J.preventDefault();_.bj(O,F)}});
return Object.assign({},A,H)}};
$4r=function(H){if(H.length){if(H.length===1)return H[0];var U={};_.Ap(U,_.$2,{commands:H});return U}};
OB=function(H){return H&&H.href$!=="javascript:void(0);"};
yut=function(H){var U,A=((U=_.p(H,_.$2))==null?void 0:U.commands)||[H];H=_.b(A);for(U=H.next();!U.done;U=H.next()){U=U.value;var M=void 0,W=void 0;A=(W=_.p((M=U)==null?void 0:M.commandMetadata,_.Y2))==null?void 0:W.url;_.S("web_remove_web_navigation_endpoint_data")||(M=void 0,A=A||((M=_.p(U,lbV))==null?void 0:M.url));if(A&&A!=="/service_ajax"){if(M=_.vy(A,Gp8))return H=_.hR(M),{navigatingCommand:U,href:H};_.Na(new _.bD("AttributedString URL could not be sanitized",A))}}return{}};
D4t=function(H){return H.button!==void 0?H.button===0&&!(H.shiftKey||H.altKey||H.metaKey||H.ctrlKey):!(H.shiftKey||H.altKey||H.metaKey||H.ctrlKey)};
BE8=function(H,U,A,M){A=!DM(A);var W,w,d;if((W=_.p(U,_.Gv))!=null&&W.nofollow||(w=_.p(U,_.sH))!=null&&w.nofollow||(d=_.p(U,_.gu))!=null&&d.nofollow||A)H.rel$="nofollow";var O;U=((O=_.p(U,_.gu))==null?void 0:O.target)==="TARGET_NEW_WINDOW"?"_blank":M===void 0?"":M;H.target$=U};
rur=function(H,U){U.clickTrackingParams&&(H.params={itct:U.clickTrackingParams});H.onpointerdown=function(A){Y2V(A)};
H._data=U};
q2_=function(H){(H.loggingUrls||[]).forEach(function(U){gB(U.baseUrl,U.attributionSrcMode)})};
Y2V=function(H){var U=H.currentTarget;H=abV(function(){return U.href});
var A=U.params;H&&_.Sb(H,A||{},8,!0)};
_.uj=function(H,U){(H=_.ij(H))&&_.bj(H,U)};
_.bj=function(H,U){nUM(function(A){U?A.resolveCommand(H,U):A.resolveCommand(H)})};
TEc=function(H,U){var A=["yt-core-attributed-string__link"];U!=null&&U.noLinkColor||((U==null?0:U.isOverlay)?A.push("yt-core-attributed-string__link--overlay-call-to-action-color"):A.push("yt-core-attributed-string__link--call-to-action-color"),(U==null?0:U.linkInheritColor)&&A.push("yt-core-attributed-string--link-inherit-color"));A={className:A.join(" "),tabindex$:"0"};var M=H.onTap||H.onLongPress;if(!M)return A;var W=hsM(H);W&&(A["aria-label$"]=W);U=_.dA({elementsCommand:M,elementConfig:A,skipOnClick:!(U==
null||!U.skipOnClick),forceNewState:!0});H.onLongPress&&(M=new kpr(function(){var w=_.ij(H.onLongPress);w&&_.lx().resolve(_.YV).resolveCommand(w)}),U&&v9c(M,U));
return U||A};
hsM=function(H){var U,A;return(U=H.onTapOptions)==null?void 0:(A=U.accessibilityInfo)==null?void 0:A.accessibilityLabel};
jP_=function(H){var U=H;H<=16777215&&(U+=parseInt("ff000000",16));return _.bN(U)};
Ibh=function(H){var U=H.isDarkTheme;var A=H.extension;H=H.runColor;var M=void 0;if(A=A==null?void 0:A.colorMap){U=U?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";A=_.b(A);for(var W=A.next();!W.done;W=A.next())if(W=W.value,U===W.key){M=W.value;break}}M==null&&H&&(M=H);if(M)return jP_(M)};
ZN=function(H){var U=H.config;var A=H.image;var M=H.imageConfig;var W=H.imageWrapperConfig;var w=H.run;var d=H.tag;var O=H.textLength;var f=H.startIndex===void 0?0:H.startIndex;H=H.length;f===void 0&&(f=0);w={run:w,startIndex:f,endIndex:H!==void 0?f+H:O,tag:d};A&&(w.image=A);M&&(w.imageConfig=M);W&&(w.imageWrapperConfig=W);U&&(w.config=U);return w};
QPV=function(H,U){if(H.weight)return H.weight;switch(H.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 U?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
VOK=function(H){switch(H){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"}};
Hr0=function(H){switch(H){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"}};
KG=function(H,U,A){var M=U;H.content&&A&&(A=H.content.indexOf("\n"),A!==-1&&(M=Math.min(U,A)));if(!H.content||H.content.length<=M)U=H;else if(H.attachmentRuns||H.commandRuns||H.decorationRuns||H.styleRuns||H.paragraphStyleRuns){U=fG(H.content,M);A=M;var W=H.attachmentRuns;if(W){var w=[];W=_.b(W);for(var d=W.next();!d.done;d=W.next())d=Object.assign({},d.value),d.startIndex===void 0||d.startIndex>=A||(d.length||(d.length=0),d.length+d.startIndex>A&&(d.length=A-d.startIndex),w.push(d));A=w}else A=void 0;
w=UQr(M,H.commandRuns);W=M;var O=H.decorationRuns;if(O){d=[];O=_.b(O);for(var f=O.next();!f.done;f=O.next()){f=f.value;var J=_.p(f.textDecorator,Jp);if(J&&J.startIndex!==void 0&&!(J.startIndex>=W)){f=Object.assign({},f,{textDecorator:{highlightTextDecorator:Object.assign({},J)}});J=_.p(f.textDecorator,Jp);if(!J.length||J.length+J.startIndex>W)J.length=W-J.startIndex;d.push(f)}}W=d}else W=void 0;d=UQr(M,H.styleRuns);if(O=H.paragraphStyleRuns)for(H=[],O=_.b(O),f=O.next();!f.done;f=O.next()){var F=f.value;
f=Object.assign({},F);if(!(f.startIndex===void 0||f.startIndex>=M)){if(!f.length||f.length+f.startIndex>M)f.length=M-f.startIndex;J=[];var P=void 0,n=void 0;if((P=F)==null?0:(n=P.listGroup)==null?0:n.listItems)for(F=_.b(F.listGroup.listItems),P=F.next();!P.done;P=F.next())if(P=Object.assign({},P.value),!(P.startIndex===void 0||P.startIndex>=M)){if(!P.length||P.length+P.startIndex>M)P.length=M-P.startIndex;J.push(P)}J.length>0&&(f.listGroup||(f.listGroup={}),f.listGroup=Object.assign({},f.listGroup,
{listItems:J}));H.push(f)}}else H=void 0;U={content:U,attachmentRuns:A,commandRuns:w,decorationRuns:W,styleRuns:d,paragraphStyleRuns:H}}else U=Object.assign({},H,{content:fG(H.content,M)});return U};
UQr=function(H,U){if(U){var A=[];U=_.b(U);for(var M=U.next();!M.done;M=U.next())if(M=Object.assign({},M.value),!(M.startIndex===void 0||M.startIndex>=H)){if(!M.length||M.length+M.startIndex>H)M.length=H-M.startIndex;A.push(M)}return A}};
fG=function(H,U){var A=U,M;if(M=A>0)M=H.charCodeAt(A-1),M=M>=55296&&M<=56319;M&&(A=H.charCodeAt(A),M=A>=56320&&A<=57343);M&&--U;return H.substring(0,U)};
_.ov=function(H){return(H==null?void 0:H.content)!==void 0};
WtK=function(H){return function(U){var A=H.run;(A.onTap!==void 0||A.onLongPress!==void 0)&&_.p(A,Rs7)&&Y$(U,{data:{loggingDirectives:_.p(A,Rs7)},observer:_.lx().resolve(ru),hideOption:AiK,showOption:MEM,layer:U.layer})}};
w2c=function(H){return function(U){for(var A in H)(c1[A]||c1[ta["default"]])(U,A,H[A])}};
X2K=function(H,U,A,M){for(var W=_.b(H.parts),w=W.next();!w.done;w=W.next()){w=w.value;if(typeof w==="string")throw Error("ih");if(w.start<=U&&A<=w.end){X2K(w,U,A,M);return}}H.parts.push({data:M,parts:[],start:U,end:A})};
irN=function(H,U){for(var A=U.parts.length;A>=0;A--){var M=U.parts[A],W=U.parts[A-1],w=A===U.parts.length?U.end:M.start;W=A===0?U.start:W.end;w!==W&&U.parts.splice(A,0,H.slice(W,w));M&&irN(H,M)}};
br4=function(H){H.sort(function(U,A){if(U.startIndex<A.startIndex)return-1;if(A.startIndex<U.startIndex)return 1;U=U.endIndex-U.startIndex;A=A.endIndex-A.startIndex;return U>A?-1:A>U?1:0})};
_.dQF=function(H){var U=H.thumbnails;if(U){H={sources:[]};U=_.b(U);for(var A=U.next();!A.done;A=U.next()){A=A.value;var M={};M.url=A.url;M.width=A.width;M.height=A.height;H.sources.push(M)}return H}};
Or7=function(H,U,A,M){if(!U)return H.length>=1?H[H.length-1]:null;if(M)for(var W=_.b(H),w=W.next();!w.done;w=W.next()){w=w.value;var d=void 0,O=(d=w.url)==null?void 0:d.indexOf(M);if(O!==void 0&&O>=0)return w}M=_.b(H);for(W=M.next();!W.done;W=M.next())if(W=W.value,W.width&&W.height&&(A&&W.width>=U||!A&&W.height>=U))return W;for(U=H.length-1;U>=0;U--)if(A&&H[U].width||!A&&H[U].height)return H[U];return H[0]};
_.u0h=function(H){var U;return(H=(U=H.sources)==null?void 0:U[0])?H.width/H.height:0};
_.ZrV=function(H){if(H.sources){H=_.b(H.sources);for(var U=H.next();!U.done;U=H.next()){U=U.value;var A=void 0;if((A=U.clientResource)==null?0:A.imageName)return U}}};
JiF=function(H){var U={};H=_.p(H.processor,fvt);var A=(H=H==null?void 0:(A=H.imageTint)==null?void 0:A.color)?_.bN(H):void 0;A&&(U.color=A);return U};
Kt7=function(H){var U;if((U=H.clientResource)!=null&&U.imageColor)return _.bN(H.clientResource.imageColor)};
_.FtE=function(H,U,A,M,W,w,d){if(!U||U.length===0||U[0].clientResource)return null;if(A&&U[0].url)return U[0].url;M===void 0&&(M=!0);if(M){var O;H=oz4*(W||(H==null?void 0:(O=H.getBoundingClientRect())==null?void 0:O.width)||0)}else{var f;H=oz4*(w||(H==null?void 0:(f=H.getBoundingClientRect())==null?void 0:f.height)||0)}U=Or7(U,H,M,d);return(U==null?0:U.url)?U.url:(U==null?0:U.imageData)?U.imageData:null};
PcK=function(H,U,A){A=A?[A]:[];H.opacity&&A.push("opacity: "+H.opacity+";");U&&H.placeholderColor?(H=_.bN(H.placeholderColor),A.push("background-color: "+H+";")):A.push("background-color: transparent;");return A.join(" ")};
sO4=function(H,U,A,M,W){var w=["ytCoreImageHost"];U&&w.push(U);A||w.push("ytCoreImageFillParentHeight");M||w.push("ytCoreImageFillParentWidth");switch(H.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":w.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":w.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":w.push("ytCoreImageContentModeCenter");break;default:w.push("ytCoreImageContentModeScaleToFill")}H.flipForRtlLayout&&w.push("ytCoreImageFlipRtl");
switch(W){case "TOP_START":var d;w.push(((d=document.body)==null?void 0:d.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return w.join(" ")};
NlE=function(H){var U;if(H==null?0:(U=H.clientResource)==null?0:U.imageName){var A;H=(A=H.clientResource)==null?void 0:A.imageName;a:{switch(H){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":A="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":A="yt-logos-ext:yt-logo-updated";break a}A=void 0}return A||nz8.get(H)||H}};
LtM=function(H){return _.S("mweb_wiz_skip_render")?STK(H):p20(H)};
STK=function(H){return function(U){var A=Ov0("wink-root");eM=ce.lastChild;ug4();rFh(A,_.Z(H,U))}};
p20=function(H){var U=U===void 0?!1:U;return function(A){if(!U||!_.S("mweb_skip_keto_to_c3_if_no_data")||A.data!==void 0){var M=Ti(!1);try{var W=A.children;_.S("mweb_render_outside_patch_killswitch")||ce?W?t9(_.Z(H,A,W)):t9(_.Z(H,A)):_.Na(new _.bD("ketoToC3 called outside of a patch",{tagName:H.TAG_NAME}))}finally{Ti(M)}}}};
RCN=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
mQV=function(H,U){H.onViewportEntered=U;Ezt.observe(H)};
gz4=function(){var H={rootMargin:"10%",threshold:.01};_.S("mweb_enable_set_io_root_to_null_safari")?H.root=null:_.S("mweb_enable_set_io_root_to_body_safari")&&(H.root=document.body);return new IntersectionObserver(function(U,A){U.filter(function(M){return M.intersectionRect.height>0}).forEach(function(M){M=M.target;
if(!_.S("mweb_enable_only_update_image_when_connected")||M.isConnected!==!1){var W;(W=M.onViewportEntered)==null||W.call(M);A.unobserve(M)}})},H)};
avF=function(H,U,A,M,W){function w(){if(M){var O=M.loadedClass,f=M.notifyOnUnloaded;O&&_.F1(H,O);f&&H.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function d(){var O=A(U,H);O&&H.getAttribute("src")!==O&&(_.S("mweb_enable_only_update_image_when_connected")&&H.isConnected===!1||O===H.src||(H.src=O),w())}
W=W===void 0?!0:W;H.removeAttribute("src");w();U&&(W?mQV(H,d):d())};
xQM=function(H,U,A){if(!U)return!1;U=A(U,H);A=H.getAttribute("src");return U&&U===A&&H.complete};
zCM=function(H,U){for(var A in U)A==="className"?H.className=U[A]:(c1[A]||c1[ta.default])(H,A,U[A])};
tE7=function(H,U,A){A=A===void 0?!1:A;var M=H.sources!==void 0?H:_.dQF(H);if(M){var W=U.onload;U.onload=function(J){var F=J.target;A&&F.naturalWidth===120||_.P$(F,"ytCoreImageLoaded");U.notifyOnLoaded&&F.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));W==null||W(J)};
U.targetWidth&&U.preserveWidth&&(U.width=U.targetWidth);U.targetHeight&&U.preserveHeight&&(U.height=U.targetHeight);var w=_.ZrV(M),d=w&&NlE(w),O=JiF(M);if(d)return(H=Kt7(w)||O.color)&&(U.color=H),{type:"icon",iconName:d,config:Object.assign({},U,U.alt?{}:{"aria-hidden$":"true"},{"aria-label$":U.alt,role:"img"})};if(H.sources===void 0){U.alt=H.accessibility&&H.accessibility.accessibilityData&&H.accessibility.accessibilityData.label||U.alt;U.style$=PcK(H,U.shouldShowPlaceholder,U.style$);var f;U.isPreloaded=
!((f=_.p(H,CcE))==null||!f.isPreloaded)}U.contentMode&&!M.contentMode&&(M.contentMode=U.contentMode);U.className=sO4(M,U.className,U.preserveHeight,U.preserveWidth,U.objectPosition);U.loadedClass="ytCoreImageLoaded";return{type:"image",image:M,config:U}}};
_.sB=function(){var H=_.QY.apply(0,arguments);return _.NU(ciN,function(U){var A=H.map(function(M){return M==null?void 0:M(U)});
return function(){return void A.forEach(function(M){return void(M==null?void 0:M())})}})};
yih=function(H,U){var A=U==null?void 0:U.initial;return _.Ja(function(){_.an(!0);return A=H(A)},{equals:U==null?void 0:U.isEqual},"rSlKsc")};
Blc=function(H,U){if(H===U)return!0;if(H===void 0||U===void 0)return!1;var A,M,W,w,d,O,f,J;return H.content===U.content&&((A=H.styleRuns)==null?void 0:A.length)===((M=U.styleRuns)==null?void 0:M.length)&&((W=H.commandRuns)==null?void 0:W.length)===((w=U.commandRuns)==null?void 0:w.length)&&((d=H.attachmentRuns)==null?void 0:d.length)===((O=U.attachmentRuns)==null?void 0:O.length)&&((f=H.decorationRuns)==null?void 0:f.length)===((J=U.decorationRuns)==null?void 0:J.length)};
eCN=function(H){return H.parts.map(ri8)};
ri8=function(H){if(typeof H==="string")return H;var U=H.data;H=U.image!==void 0&&U.imageConfig!==void 0?_.Z("span",{el:_.sB(w2c(H.data.imageWrapperConfig))},_.Z(_.nG,Object.assign({},{data:H.data.image},H.data.imageConfig))):_.Z(H.data.tag,{el:_.sB(WtK(H.data),w2c(H.data.config))},H.parts.map(ri8));return dD(H)};
DQ4=function(H,U){return H===U?!0:H===void 0||U===void 0?!1:H.noStyleRuns===U.noStyleRuns&&H.noLinkColor===U.noLinkColor&&H.noEndpoints===U.noEndpoints&&H.headerRuns===U.headerRuns&&H.isOverlay===U.isOverlay&&H.linkInheritColor===U.linkInheritColor&&H.userInput===U.userInput&&H.isHeadline===U.isHeadline};
$Q7=function(H){return function(){var U,A,M,W,w,d,O,f,J,F,P,n,N,L;return{ariaLabel:(U=H.ariaLabel)==null?void 0:U.call(H),className:(A=H.className)==null?void 0:A.call(H),ellipsisTruncate:(M=H.ellipsisTruncate)==null?void 0:M.call(H),isOverlay:(W=H.isOverlay)==null?void 0:W.call(H),linkInheritColor:(w=H.linkInheritColor)==null?void 0:w.call(H),noEndpoints:(d=H.noEndpoints)==null?void 0:d.call(H),noStyleRuns:(O=H.noStyleRuns)==null?void 0:O.call(H),noLinkColor:(f=H.noLinkColor)==null?void 0:f.call(H),
noPreWrap:(J=H.noPreWrap)==null?void 0:J.call(H),noWrap:(F=H.noWrap)==null?void 0:F.call(H),skipOnClick:(P=H.skipOnClick)==null?void 0:P.call(H),userInput:(n=H.userInput)==null?void 0:n.call(H),headerRuns:(N=H.headerRuns)==null?void 0:N.call(H),isHeadline:(L=H.isHeadline)==null?void 0:L.call(H)}}};
GYc=function(H,U){H=new lvM(H,U);_.sD(H);throw H;};
YTN=function(H,U,A){var M=SZM(H);H._numRenders=0;try{var W=$Z4(function(){return _.Z(U,Object.assign({},A))})}catch(d){var w=function(O){O.args||(O.args=[]);
O.args.push("Error in web component wrapper");O.args.push(H.tagName.toLowerCase());return O};
_.n5(d instanceof Error?w(d):new lvM("Wiz rendering error",H.tagName.toLowerCase()));throw d;}finally{SZM(M)}return W};
_.LG=function(H,U,A){function M(F){var P={};F=_.b(F);for(var n=F.next();!n.done;n=F.next()){n=n.value;var N=void 0,L=void 0,m=void 0,z=_.Y8((m=(L=(N=n).getAttribute)==null?void 0:L.call(N,"slot"))!=null?m:"children");if(N=P[z])N.push(n);else if(z in w||z==="children")P[z]=[n]}F=_.b(Object.keys(P));z=F.next();for(n={};!z.done;n={content$jscomp$62:void 0},z=F.next())z=z.value,z!=="children"&&(n.content$jscomp$62=P[z],P[z]=function(c){return function(){return c.content$jscomp$62}}(n));
return P}
A=A===void 0?{}:A;H.debugName=U+" (CoW)";var W,w=(W=A.props)!=null?W:{};p97.add(U);var d=qTV();W=function(){var F=d.apply(this,arguments)||this;F.rawProps={};F.queuingRender=!1;F.dispose=function(){};
F.isWebComponentWrapper=!0;F.isReparenting=!1;F.hasRendered=!1;return F};
_.R(W,d);W.prototype.render=function(){this.hasRendered=!0;for(var F=_.b([].concat(_.vI(this.attributes))),P=F.next();!P.done;P=F.next())P=P.value,P.name!=="slot"&&P.name!=="hidden"&&this.removeAttribute(P.name);F=Object.assign({},this.componentProps,this.slotProps);P=_.b(YTN(this,H,F));F=P.next().value;P=P.next().value;!(F[0]instanceof Element)||F.length>1?GYc("Wrapped Wiz components must return a single root element.",U):(F=F[0].tagName.toLowerCase(),F!==U&&GYc("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(F+" !== '"+U),U),this.dispose=P)};
W.prototype.setUpProps=function(){for(var F=this.rawProps,P=this.attributes,n=_.b(Object.keys(w)),N=n.next();!N.done;N=n.next()){N=N.value;var L=void 0;((L=this)==null?0:L[N])&&this[N]!==hC7&&F[N]===void 0&&(F[N]=this[N],(L=Object.getOwnPropertyDescriptor(this.constructor.prototype,N))&&Object.defineProperty(this,N,L))}n=_.b(P);for(N=n.next();!N.done;N=n.next()){L=N.value;N=_.Y8(L.name);var m=N==="class"&&!P.getNamedItem("class-name");if(N in w||m)L=L.value===""||L.value==="true"?!0:L.value==="false"?
!1:isNaN(Number(L.value))?L.value:Number(L.value),N!=="class"||F.className?F[N]=L:F.className=L}P={};for(var z in w)w[z]!==_.Ne&&w[z]!==kY0&&(F[z]instanceof Function&&GYc("Function props must be configured as STATIC, not SIGNAL.",U),N=_.b(_.iB(F[z],void 0,"thC4wf")),n=N.next().value,N=N.next().value,P[z]=N,F[z]=n);F=_.b([F,P]);this.componentProps=F.next().value;this.setters=F.next().value;this.slotProps=M(this.childNodes)};
W.prototype.connectedCallback=function(){Edt.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in w&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
W.prototype.disconnectedCallback=function(){if(!Edt.has(this)){var F;a:{if(_.Sr)for(F=this;F;){if(_.pG.has(F)){F=!0;break a}F=F.parentElement}F=!1}if(F)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){F=_.b([].concat(_.vI(this.attributes)));for(var P=F.next();!P.done;P=F.next()){P=P.value;var n=void 0;P.name==="slot"||P.name==="hidden"&&((n=A.unsafeExternallySettableAttributes)==null?0:n.has("hidden"))||this.removeAttribute(P.name)}}this.innerText="";oJN(this)}}};
W.prototype._setPendingPropertyOrPath=function(){};
W.prototype.notifyPath=function(){};
_.D5.Object.defineProperties(W.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var O=_.b(Object.keys(w)),f=O.next(),J={};!f.done;J={prop$jscomp$109:void 0},f=O.next())J.prop$jscomp$109=f.value,f=void 0,((f=A.legacyPolymer)==null?0:f.forwardHostProps)&&Zw8.has(J.prop$jscomp$109)||Object.defineProperty(W.prototype,J.prop$jscomp$109,{set:function(F){return function(P){var n=this;Edt.has(this)||(this.setters?Kd(function(){var N,L;return void((L=(N=n.setters)[F.prop$jscomp$109])==null?void 0:L.call(N,P))}):(this.rawProps[F.prop$jscomp$109]=P,this.queuingRender&&F.prop$jscomp$109===
"data"&&P!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(J),
get:vz7.has(J.prop$jscomp$109)?void 0:function(){return hC7}});
customElements.define(U,W)};
_.Tlt=function(H,U){return(H=_.Rv(H,U))?_.hR(_.j3(H)):null};
_.EB=function(H){if(H=_.Rv(H,Number.MAX_VALUE,void 0,"width"))return _.j3(H)};
_.Rv=function(H,U,A,M){M=M===void 0?"width":M;if(!H||!H.length)return null;if(_.S("kevlar_tuner_should_always_use_device_pixel_ratio")){var W=window.devicePixelRatio;_.S("kevlar_tuner_should_clamp_device_pixel_ratio")?W=Math.min(W,_.hr("kevlar_tuner_clamp_device_pixel_ratio")):_.S("kevlar_tuner_should_use_thumbnail_factor")&&(W=_.hr("kevlar_tuner_thumbnail_factor"));jOt=W}else jOt||(jOt=window.devicePixelRatio);W=jOt;_.S("kevlar_tuner_should_always_use_device_pixel_ratio")?U*=W:W>1&&(U*=W);if(_.S("kevlar_tuner_min_thumbnail_quality"))return H[0].url||
null;W=H.length;if(_.S("kevlar_tuner_max_thumbnail_quality"))return H[W-1].url||null;if(A)for(var w=0;w<W;w++)if(H[w].url.indexOf(A)>=0)return H[w].url||null;for(A=0;A<W;A++)if(H[A][M]>=U)return H[A].url||null;for(U=W-1;U>0;U--)if(H[U][M])return H[U].url||null;return H[0].url||null};
VEc=function(){m7.size?setTimeout(function(){gA(IvE)},0):QO7=0};
IvE=function(){var H=(0,_.lD)(),U=null,A=!1;m7.forEach(function(W){W.loaded=!0;W.loadTime=H;W.pendingPaint=!1;var w=HgF.get(W);w&&w.resolve(H);U=W;A||!W.ftlEligible&&W.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(A=!0)});
var M;((M=U)==null?0:M.markDirty)&&U.markDirty();m7.clear();QO7=0;A&&UOt(H)};
A57=function(H){m7.add(H);H.pendingPaint=!0;QO7||(QO7=_.av(_.Fl,VEc))};
M0c=function(H){H.loaded=!1;H.loadTime=Infinity;var U=HgF.get(H);U&&(U.reject(Error("oh")),HgF.delete(H));H.pendingPaint&&(m7.delete(H),H.pendingPaint=!1)};
_.WCc=function(H){var U=H.indexOf(":");return U===-1?{originalName:H}:{originalName:H.substring(0,U),datasyncId:H.substring(U+1)}};
_.XwN=function(){return _.u(function(H){if(wwV!==void 0)return H.return(wwV);wwV=new Promise(function(U){var A;return _.u(function(M){switch(M.nextAddress){case 1:return _.zj(M,2),M.yield(_.x3.open("test-only"),4);case 4:return M.yield(_.x3.delete("test-only"),5);case 5:_.xD(M,3);break;case 2:if(A=_.eG(M),A instanceof Error&&A.name==="SecurityError")return U(!1),M.return();case 3:U("caches"in window),_.DO(M)}})});
return H.return(wwV)})};
dO0=function(){return _.u(function(H){if(H.nextAddress==1)return H.yield(_.XwN(),2);if(!H.yieldResult)return H.return(void 0);igh||(igh=new bgr);return H.return(igh)})};
Ogc=function(H){var U,A,M,W;return _.u(function(w){switch(w.nextAddress){case 1:return w.yield(dO0(),2);case 2:U=w.yieldResult;if(!U)throw Error("qh");return w.yield(U.open("yt-player-local-img"),3);case 3:return A=w.yieldResult,w.yield(A.match(H),4);case 4:M=w.yieldResult;if(!M)throw Error("rh");return w.yield(M.blob(),5);case 5:return W=w.yieldResult,w.return(W)}})};
u9N=function(H,U){for(var A in H)if(H.hasOwnProperty(A)&&U[A])return A;return null};
Zg4=function(H){return"stamp"+H.replace("-","_")+"_"};
fV4=function(H){var U=H.match(/\[\[([\w\.]+)\]\]/);if(U&&U.length>1)return U[1];_.sD(Error("th`"+H));return null};
J58=function(H){return H===void 0?_.xV("REUSE_COMPONENTS",!1):H||!1};
FCr=function(H,U,A){A&&(U.is?(KCc.has(U)&&(H=KCc.get(U),A=H.listener,delete U[H.property],A.type==="element"&&U.removeEventListener(A.eventName,A.handler),KCc.delete(U)),oEt(U)):U.__proto__==HTMLElement.prototype&&(U=new _.bD("Rendererstamper removed a non custom element","Stamper: "+H+" element: "+(U&&U.nodeName)),_.Na(U)))};
Ppc=function(H,U,A,M){var W=U.node?U.node:U;_.c4(A).parentNode===W&&(U.removeChild(A),FCr(H,A,M));if(H=zk.get(A))zk.delete(A),_.Fl.cancelJob(H);A.hidden=!1};
s8K=function(H,U,A,M){var W,w=(W=U.polymerController)!=null?W:U;W=U.loggingStatus;try{W&&(W.isRendererStamper=!0);if(typeof A!=="string"){for(var d in A.attributes)A.attributes[d]===!0?U.setAttribute(d,""):A.attributes[d]===!1?U.removeAttribute(d):U.setAttribute(d,A.attributes[d]);for(var O in A.params)w[O]=A.params[O],U!==w&&Vf(U.localName,O,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(var f in A.properties){var J=A.properties[f];if(J){var F=fV4(J);w[f]=H.get(F);U!==w&&Vf(U.localName,f,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");
if(f==="on-tap"||f==="on-click"){var P=H.get(F);U.addEventListener("click",P);KCc.set(U,{property:f,listener:{type:"element",eventName:"click",handler:P}})}}else _.n5(new _.bD("Undefined property binding",f))}}A.classListBinding&&A.classListBinding.split(" ").forEach(function(n){n=n.trim();if(n.startsWith("[[")){if(n=fV4(n))n=H.get(n),(Array.isArray(n)?n:(n!=null?n:"").split(" ")).forEach(function(N){N&&_.B4(U,N,!0)})}else n&&_.B4(U,n,!0)});
w.data=M}finally{W&&(W.isRendererStamper=!1)}if(A=zk.get(U))U.hidden=!1,zk.delete(U),_.Fl.cancelJob(A)};
nEM=function(H,U,A,M){if(U&&U.children&&(A=U.children[A]))if(_.xV("DEFERRED_DETACH"))for(;A&&!zk.has(A);){var W=H,w=U,d=A,O=M;d.hidden=!0;W=_.bM(_.Fl,Ppc.bind(null,W,w,d,O),0);zk.set(d,W);A=A.nextElementSibling}else for(;(d=U.lastElementChild)&&(U.removeChild(d),FCr(H,d,M),d!=A););};
_.CG=function(){for(var H=_.QY.apply(0,arguments),U=!0,A=_.b(H),M=A.next();!M.done;M=A.next())if(typeof M.value!=="string"){U=!1;break}return U?H.join(" ").trim()||void 0:function(){for(var W="",w=_.b(H),d=w.next();!d.done;d=w.next())if(d=d.value,typeof d==="function"&&(d=d()),d)if(typeof d==="string")W+=" "+d;else for(var O in d)if(d.hasOwnProperty(O)){var f=d[O];typeof f==="function"&&(f=f());f&&(W+=" "+O)}W=W.trim()||void 0;return _.an(W)}};
_.Nyc=function(H,U){return _.rH(H.entities,"markersEngagementPanelSyncEntity",U)};
_.tp=function(H,U){return _.rH(H.entities,"playerStateEntity",U)};
SVc=function(H,U){return _.rH(H.entities,"fantasyWinProbabilityEntity",U)};
pw_=function(H,U){return _.rH(H.entities,"fantasyTeamEntity",U)};
LCM=function(H,U){return _.rH(H.entities,"fantasyPlayerEntity",U)};
RJ_=function(H,U){return _.rH(H.entities,"booleanEntity",U)};
EEF=function(H,U){return _.rH(H.entities,"qrCodeEntity",U)};
mOh=function(H){return _.rH(H.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
aV4=function(H){var U;return(U=gEM[H])!=null?U:"EVENT_SPAN_TYPE_UNKNOWN"};
xOt=function(H){return function(U){var A=aV4(U.type);return A==="EVENT_SPAN_TYPE_UNKNOWN"?H(U):C1("event",{type:A,nodepath:U.target instanceof Element?vgM(U.target):void 0},function(){return H(U)})}};
_.c$=function(H){H&&a2("event")&&(H=xOt(H));return CA8(function(U){var A,M=(A=H)==null?void 0:A(U);return typeof M==="boolean"?M:!0})};
ym=function(H){return function(){return H()?H():void 0}};
c5F=function(H){var U=_.nA("animated-rolling-character"),A=HE0(),M=NZ(H.character)||NZ(H.previousCharacter),W=_.b(IfN()),w=W.next().value,d=W.next().value;_.LA(function(){if(window.ResizeObserver&&_.S("web_fix_rolling_numbers_zoom_safari")){var O=new _.B$(function(){var J,F,P=Math.round(((F=(J=U.value.querySelector("div"))==null?void 0:J.getBoundingClientRect().height)!=null?F:0)*100)/100;P&&d(P)},500),f=new ResizeObserver(function(){O.fire()});
f.observe(U.value);return function(){f.disconnect();O.dispose()}}});
j2F(function(){var O=_.S("web_fix_rolling_numbers_zoom_safari")?w:H.marginMultiplier;if(O){var f;(f=A.value)==null||f.cancel();M?(f=H.previousCharacter?Number(H.previousCharacter)+10:H.rollUp?0:30,H.shouldAnimate||(f-=zJ8(H,f))):(f=H.rollUp?0:2,H.shouldAnimate||(f-=H.rollUp?-1:1));U.value.style.marginTop="-"+f*O+"px";H.shouldAnimate?A.value=Cp4(U.value,H,f,M,O):U.value.style.display=H.character?"":"none"}});
return _.Z("animated-rolling-character",{el:U,class:"animatedRollingCharacterHost"},oBK(M,function(){for(var O=[],f=1;f<30;f++)O.push(_.Z("div",null,f%10));return _.Z(_.ve,null,_.Z("div",null,"\u00a0"),O,_.Z("div",null,"\u00a0"))},function(){return t0V(H.character)}))};
t0V=function(H){return _.Z(_.ve,null,_.Z("div",null,"\u00a0"),_.Z(_.ve,null,oBK(!H||_.b7(H),function(){return _.Z("div",null,"\u00a0")},function(){return _.Z("div",null,H)})),_.Z("div",null,"\u00a0"))};
Cp4=function(H,U,A,M,W){A=new Animation(new KeyframeEffect(H,[{transform:"translateY(0px)"},{transform:"translateY("+(M?zJ8(U,A):U.rollUp?-1:1)*W+"px)"}],y5h),document.timeline);U.character?(H.style.display="",A.onfinish=null):A.onfinish=function(){H.style.display="none"};
A.play();return A};
zJ8=function(H,U){var A=Number(H.character)+10;if(H.previousCharacter)if(H.character){var M=Number(H.character),W=Number(H.previousCharacter);H=H.rollUp?W<M?A:A+10:W<M?A-10:A}else H=H.rollUp?30:0;else H=H.character==="0"?A:H.rollUp?A-10:A+10;return U-H};
Byt=function(H){return function(U){var A={},M;for(M in U){var W=void 0,w=void 0;((W=void 0)==null?0:(w=W.callbacks)==null?0:w[M])||(A[M]=U[M])}return _.Z(WuF,null,function(){for(var d in A)U[d]=_.an(A[d]);U.disableReactiveLogging=!0;return _.Z(H,Object.assign({},U))})}};
DOr=function(H,U,A,M,W,w,d){A=new Animation(new KeyframeEffect(H,[{transform:"translateY(0px)"},{transform:"translateY("+(w?r57(U,A,M,W):M?-1:1)*d+"px)"}],eJE),document.timeline);U?(H.style.display="",A.onfinish=null):A.onfinish=function(){H.style.display="none"};
A.play();return A};
r57=function(H,U,A,M){var W=Number(H)+10;U?H?(H=Number(H),U=Number(U),A=A?U<H?W:W+10:U<H?W-10:W):A=A?30:0:A=H==="0"?W:A?W-10:W+10;return M-A};
lVM=function(H){var U=HE0(),A=HE0();IHt(function(){U.value=H.numberText;A.value=H.numberValue},[H.numberText]);
var M=H.fontSizeMultiplier?H.heightPx*H.fontSizeMultiplier:H.heightPx,W=Bsh(function(){if(H.numberText){var d=H.numberText;var O=H.forceRollUp||!A.value||!H.numberValue||A.value<H.numberValue;var f=!!H.shouldAnimate,J=U.value,F=[],P=0,n=0,N=(J?J.replace(/\D/g,"").length:0)-(d?d.replace(/\D/g,"").length:0);J=J?J.split(/(\d)/).filter(Boolean):[];for(d=d.split(/(\d)/).filter(Boolean);N<0;){var L=d[n];F.push({character:L,rollUp:O,marginMultiplier:M,shouldAnimate:f});n++;NZ(L)&&N++}for(;P<N;)L=J[P],F.push({previousCharacter:L,
rollUp:O,marginMultiplier:M,shouldAnimate:f}),P++,NZ(L)||N++;for(;n<d.length;)N=d[n],L=J[P],NZ(N)===NZ(L)?(n++,P++):NZ(N)?(P++,N=void 0):NZ(L)&&(n++,L=void 0),F.push({character:N,previousCharacter:L,rollUp:O,marginMultiplier:M,shouldAnimate:f});O=F}else O=[];return O},[H.numberText]),w=H.numberText?["height: "+M+"px;",
"line-height: "+H.heightPx+"px;"].join(" "):"";return _.Z("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:w,dir:"ltr","aria-hidden":"true"},W.map(function(d){return _.Z($OF,Object.assign({},d))}))};
GAV=function(H){switch(H){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
_.YVV=function(H,U){if(!H&&!U)return"medium";H=Math.max(H||0,U||0);return H>=256?"large":H>=96?"medium":"small"};
qVF=function(H){switch(H){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
hJh=function(H){return new KeyframeEffect(H,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
kAK=function(H){return new KeyframeEffect(H,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.rA=function(H){return function(){var U="",A;for(A in H){for(var M=H[A];typeof M==="function";)M=M();M!==void 0&&M!==null&&(U+="; "+A+": "+M)}return U.length>0?_.an(U.slice(2)):_.an()}};
vEE=function(H){switch(H){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"}};
TyM=function(H,U){if(U)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(H)switch(H){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
HsE=function(H,U,A,M,W,w,d){var O=j8c(H),f=O.disabled,J=O.iconPosition,F=O.style,P=O.focused,n=function(){return!!m()&&J()==="icon-only"},N=function(){return!!m()&&J()==="icon-only-40"},L=function(){return!!m()&&J()==="icon-with-label"},m=function(){return!!U||!(M==null||!M())};
return{type:function(){return F()==="call-to-action-inverse"?"text":F()==="overlay-dark"&&H().type!=="filled"&&H().type!=="tonal"?"tonal":H().type},
shouldFocus:function(){return(P()||(w==null?void 0:w()))&&!f()},
hasIconLeading:function(){return!!m()&&J()==="leading"},
hasIconTrailing:function(){return!!m()&&J()==="trailing"},
hasIconLeadingTrailing:function(){return!!m()&&!!(A||W!=null&&W())&&J()==="leading-trailing"},
hasIconOnly:n,hasIconOnly40:N,hasIconWithLabel:L,iconButton:function(){return n()||N()||L()},
visiblyDisabled:function(){return(f()?"disabled":H().state)==="disabled"||f()},
overrideSmallSizeIcon:function(){return!H().ignoreIconSizeOverride&&IVM(H(),m())},
iconToRender:U?U:function(){return _.Z(_.er,{icon:M,gradientColor:function(){var z;return(z=H().customColors)==null?void 0:z.iconGradientColor},
size:function(){return Q87(H(),!0,H().ignoreIconSizeOverride)},
active:function(){return H().toggled},
iconFilter:function(){return V0N(H())},
animateIcon:d})},
secondaryIconToRender:A?A:function(){return _.Z(_.er,{icon:W,size:function(){return Q87(H(),!0,H().ignoreIconSizeOverride)},
active:function(){return H().toggled},
iconFilter:function(){return V0N(H())}})}}};
j8c=function(H){return{size:function(){return H().size},
style:function(){return H().style},
focused:function(){return H().focused},
disabled:function(){return H().disabled},
onTap:function(U){var A,M;return(M=(A=H()).onTap)==null?void 0:M.call(A,U)},
alignByText:function(){return H().alignByText},
aTagConfig:function(){return H().aTagConfig},
customColors:function(){return H().customColors},
segmentedPosition:function(){return H().segmentedPosition},
toggled:function(){return H().toggled},
toggleable:function(){return H().toggleable},
accessibilityLabel:function(){return H().accessibilityLabel},
onToggle:function(U){var A,M;return(M=(A=H()).onToggle)==null?void 0:M.call(A,U)},
iconPosition:function(){return H().iconPosition},
oneOffCustomTextWrap:function(){return H().oneOffCustomTextWrap},
disableTextEllipsis:function(){return H().disableTextEllipsis},
disableBackdropFilter:function(){return H().disableBackdropFilter},
tooltipText:function(){return H().tooltipText},
tooltipShape:function(){return H().tooltipShape},
ariaHidden:function(){return H().ariaHidden},
tabIndex:function(){return H().tabIndex},
buttonText:function(){return H().buttonText},
formattedButtonText:function(){return H().formattedButtonText},
animatedTextProps:function(){return H().animatedTextProps},
onClickRateLimitMs:function(){return H().onClickRateLimitMs}}};
IVM=function(H,U){U=(H.iconPosition==="icon-only"||H.iconPosition==="icon-only-40"||H.iconPosition==="icon-with-label")&&U;return!H.segmentedPosition&&U&&H.size==="S"};
Q87=function(H,U,A){switch(H.size){case "XS":return 16;case "S":return!A&&IVM(H,U)?24:16;default:return 24}};
Uqt=function(H){switch(H){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"}};
Av0=function(H){switch(H){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"}};
MJr=function(H){switch(H){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"}};
V0N=function(H){if(H.style==="overlay-dark"&&H.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
DN=function(H){return H&&H.endsWith("px")?Number(H.slice(0,-2)):0};
XDr=function(H,U){var A=_.b(_.md(function(){var W,w;return(w=H())!=null?w:U==null?void 0:(W=U())==null?void 0:W.text})),M=A.next().value;
return[function(W){var w=_.Ja(function(){var f;return Object.assign({},{location:"bottom",offset:16,delay:1},U==null?void 0:U(),{text:(f=M())!=null?f:""})},void 0,"IJU38d");
_.Em(function(){var f=w();_.X$(function(){_.Fl.addJob(function(){$3.notify(W,f)},4)})},"WlsgZc");
var d=function(){WD_(W,w())},O=function(){wDr()};
W.addEventListener("mouseenter",d);W.addEventListener("focus",d);W.addEventListener("mouseleave",O);W.addEventListener("blur",O);W.addEventListener("tap",O);_.m4(function(){W.removeEventListener("mouseenter",d);W.removeEventListener("mouseleave",O);W.removeEventListener("focus",d);W.removeEventListener("blur",O);W.removeEventListener("tap",O);wDr()})},
A.next().value]};
bsh=function(H,U){if(!qg){var A;c08(function(){return A=AN_(H,U)});
return A}H.parent=isF();return AN_(H,U)};
isF=function(){var H=kR(qg||void 0,V5E);return nB_(H)?void 0:H};
lj=function(H,U){_.bj(H,Object.assign({},U,{forceClickLogging:!0}))};
dqh=function(H){switch(H){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
uJK=function(H,U){var A=_.ij(H==null?void 0:H.onTap),M={};A&&(M.getClickedVisualElement=function(){var W;return Ost(H,A,U==null?void 0:(W=U.value)==null?void 0:W.visualElement)});
M=_.dA({elementsCommand:H.onTap,forceNewState:!0,additionalCommandArgs:M});return OB(M)?M:void 0};
ZsK=function(H,U,A,M){lj(H,Object.assign({},{form:{element:U,event:A}},M))};
fKr=function(H,U,A,M,W){var w=void 0;return function(d){var O=_.ij(A?H==null?void 0:H.onDisabledTap:H==null?void 0:H.onTap);if(O){var f;w=(f=w)!=null?f:U==null?void 0:U.value;if(O)if(_.S("web_button_vm_click_client_ve_killswitch"))ZsK(O,w,d);else{var J;f=Ost(H,O,(J=w)==null?void 0:J.visualElement);if(W){ZsK(O,W,d,{clickedVisualElement:f,form:{element:W}});return}ZsK(O,w,d,{clickedVisualElement:f})}}M&&M(d)}};
Ost=function(H,U,A){U=U==null?void 0:U.clickTrackingParams;var M,W;H=H==null?void 0:(M=H.loggingDirectives)==null?void 0:(W=M.clientVeSpec)==null?void 0:W.uiType;if(A&&H&&!U)return A};
JvF=function(H){switch(H){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"}};
KDc=function(H){switch(H){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"}};
o7E=function(H){switch(H){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"}};
FD8=function(H){switch(H){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"}};
_.Gk=function(H){return _.Ja(function(){RvF()();return gSM(H)},{debugName:"d8B62c"},"DEXkhd")};
POh=function(H,U){return _.rH(H.entities,"engagementToolbarStateEntityPayload",U)};
n7V=function(H){(H=_.IS(H))&&_.ss_(H)};
_.ss_=function(H){var U=_.XK();U&&_.PO(U,H)};
N5_=function(H,U,A){_.yr(H,"yt-open-popup-action",[U,A||H])};
Sf0=function(H,U){var A=_.Rh(H,"endpoint"),M=_.Rh(H,"action");return(A=M?M:A)&&U&&(A=U.navigationEndpointPopupMap[A])&&(H=_.tr(A,H),(A=_.Rh(H,"renderer"))&&U.supportedPopups.hasOwnProperty(A))?{openPopupAction:{popupType:U.popupTypeMap[A],popup:H}}:null};
pD0=function(H,U,A,M){if(M){var W;A=A==null?void 0:(W=A.data)==null?void 0:W.contents;(W=A instanceof Array&&A.length?A[0]:A)&&(A=_.Rh(W,"renderer"))&&M.supportedPopups.hasOwnProperty(A)&&(U.stopPropagation(),N5_(H,{openPopupAction:{popupType:M.popupTypeMap[A],popup:W}}))}};
E7_=function(H,U,A,M){M=M===void 0?!1:M;var W=LDF(U);if(W){W.href&&Zt(W.href);var w=U.button;w=w!==void 0?w===0&&!Y3(U):!Y3(U);W.data&&w&&R67(H,W,U,A,M)}};
R67=function(H,U,A,M,W){W=W===void 0?!1:W;var w=_.hr("pbj_navigate_limit",-1)===0;mqc(U);_.lx().resolve(_.$V(mU));var d=U.data;if(Object.keys(d).length!==0)if(!_.S("unplugged_web_disable_actions_for_cec_endpoint")&&_.p(d,_.$2))_.S("endpoint_behavior_command_executor_fix_killswitch")||(A.preventDefault(),A.stopPropagation()),_.eb(H,[d],H);else if(M=Sf0(d,M))d.loggingUrls&&d.loggingUrls.forEach(function(f){f.baseUrl&&_.my(f.baseUrl)}),A.preventDefault(),A.stopPropagation(),N5_(H,M,U);
else{var O=g77(0,U.data,A);if(H=U.getForm)H=H(),O.tempData=O.tempData||{},O.tempData=Object.assign({},O.tempData,H);H=_.Lf(A);if(M=H.find(function(f){return!!f.visualElement}))O.createScreenConfig=O.createScreenConfig||{},O.createScreenConfig.clickedVisualElement=M.visualElement;
if(!w)if(A.preventDefault(),A.stopPropagation(),_.p(d,_.aKN)&&!W&&_.$$.instance)_.$$.instance.resolveCommand(d,O);else if(_.S("kevlar_command_handler_formatted_string")&&!W&&_.$$.instance&&xqt(d))W=H.find(function(f){return!!f.is})||A.target,A={form:Object.assign({},O,{event:A,
element:W,originatingNode:U})},_.$$.instance.resolveCommand(d,A);else{d=_.Lf(A);A=[];for(W=0;W<d.length;W++)(w=d[W].is)&&A.push(w);PA4({parents:A.join(","),text:U.innerText},function(){_.cg(U,"yt-navigate",O)})}}};
z6M=function(H){if(H=LDF(H))mqc(H),aGc(H.href)};
LDF=function(H){H=_.Lf(H);for(var U,A=0;A<H.length;A++)if(U=H[A],U.tagName==="A"&&U.classList.contains("yt-simple-endpoint")){if(!U.data)break;return U}return null};
Y3=function(H){return H.shiftKey||H.altKey||H.metaKey||H.ctrlKey};
CO0=function(H,U){var A={itct:U.clickTrackingParams};_.S("kevlar_client_side_screens")&&(!_.p(U,_.kO)||_.S("kevlar_exclude_endpoint_killswitch"))&&(A.endpoint=JSON.stringify(U));_.S("enable_unknown_lact_fix_on_html5")&&_.lx().resolve(_.$V(_.qe))&&(A.lact=_.$B());Eor(A);_.Sb(H,A)};
mqc=function(H){H.href&&Object.keys(H.data).length!==0&&CO0(H.href,H.data)};
xqt=function(H){for(var U=_.b(tJV),A=U.next();!A.done;A=U.next())if(H[A.value])return!1;return!0};
cvE=function(){if(hp)return hp;if(window.lottie)return hp=Promise.resolve(window.lottie);var H=_.PW(_.gD("LOTTIE_URL"));return H?hp=new Promise(function(U,A){var M=document.createElement("script");M.addEventListener("load",function(){U(lottie)});
M.addEventListener("error",function(W){var w="Lottie library failed to load.";W?W.message&&(w+=" Original description: "+W.message,_.SD(W,w)):W=Error(w);_.Na(W);A(W)});
M.setAttribute("async","");_.J$(M,H);document.head.appendChild(M)}):Promise.reject(Error("uh"))};
yvV=function(){return hp?hp:cvE()};
B5V=function(H){if(H)switch(H){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.S("kevlar_use_wil_icons"))return H=(H=mOh(_.Lq().getState()))&&H.animationLightUrl&&H.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:H.animationLightUrl,pathDarkTheme:H.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,H?H:k3.get("LIKE");break;case "LIKE_DELHI_PLAYER":return k3.get("LIKE_DELHI_PLAYER")}};
rvE=function(H){var U=B5V(H);if(U)return U;switch(H){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return k3.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return k3.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return k3.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return k3.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return k3.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return k3.get("NOTIFICATION_BELL")}};
e6r=function(H,U){if(!H.closest)return!1;U=!!B5V(U);return _.gD("ID_TOKEN")&&U?!!H.closest("segmented-like-dislike-button-view-model")||!!H.closest("yt-player-quick-action-buttons"):!1};
$qN=function(H,U){if(!H||Dq_)U=!1;else{var A;if(!(A=e6r(H,U)))if(H.closest)if(A=!_.gD("ID_TOKEN"),H=H.closest("ytd-subscription-notification-toggle-button-renderer-next"),A||!H)A=!1;else{var M;A=((M=H.data)==null?void 0:M.targetId)==="notification-bell"&&U!=="EXPAND_MORE"}else A=!1;U=A}return U};
lKK=function(H){var U,A;return _.u(function(M){switch(M.nextAddress){case 1:return _.zj(M,2),M.yield(fetch(H),4);case 4:return U=M.yieldResult,M.yield(U.json(),5);case 5:return M.return(M.yieldResult);case 2:A=_.eG(M),_.Na(A),_.DO(M)}})};
G3_=function(H,U){var A,M,W;return _.u(function(w){if(w.nextAddress==1)return(A=U?H.pathDarkTheme:H.path)?w.yield(Promise.all([lKK(A),cvE()]),2):w.return();M=w.yieldResult;W=M[0];v$.set(A,W);_.DO(w)})};
qfV=function(H,U,A,M){function W(d,O){if(U.value===O&&!U.cancelled){for(;H.firstChild;)H.removeChild(H.firstChild);H.classList.add("ytSpecIconShapeHost");d(H,M)}}
var w=_.Yft(_.lx().resolve(_.Dd),A);typeof w==="function"?(U.value=null,W(w,null)):(U.value=w,w.then(function(d){W(d,w)}))};
h67=function(H,U){var A=document.createElement("div"),M=_.Sy(A,function(){return _.Z(_.K,{cond:H,then:function(W){return _.Z(_.Tk,{data:W,options:U})}})},"ea");
return[A,M]};
_.jr=function(H,U){if(U){var A={};k3K.forEach(function(M){M=v7N(U,M,"--yt-lightsource-");Object.assign(A,M)});
T50.forEach(function(M){M=v7N(U,M,"--yt-basic-");Object.assign(A,M)});
_.Dt(H,A)}};
v7N=function(H,U,A){var M={};M[A+_.GP(U)]=H&&H[U]?_.bN(H[U]):"";return M};
_.Qm=function(H,U,A){Iv[H]||(Iv[H]={});Iv[H][U]=A};
_.Vm=function(H){Iv[H]||(Iv[H]={});return Iv[H]};
jsF=function(H){if(!H)return{};var U=H.foregroundTitleColor,A=H.backgroundColor;H=H.borderColor;var M="text";H?M="outline":A&&(M="filled");return{type:M,customColors:{color:U?_.bN(U):void 0,backgroundColor:A?_.bN(A):void 0,borderColor:H?_.bN(H):void 0}}};
U7V=function(H){var U=H.renderer;var A=H.element;var M=H.commandController;var W=H.onTapCallback;var w=H.skipCommandHandling;var d=H.overrides;var O=H.forceIcon;var f=H.forceModernIconButton;var J=H.forceDisabled;var F=H.isSubscribe===void 0?!1:H.isSubscribe;var P=H.isPressed===void 0?!1:H.isPressed;var n=H.useButtonSize===void 0?!1:H.useButtonSize;H=IKc(U);F&&(H.style="mono",H.type="filled");O=!U.icon||!O&&U.text?U.icon?U.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:f?"icon-only":"icon-only-40";O==="icon-only-40"&&(H.type="text");var N;f=Object;F=f.assign;n=QsV(U,n);P=!!U.isSelected||!_.S("web_propagate_is_pressed_killswitch")&&!!P;var L=U.isSelected!==void 0;J=J===void 0?U.isDisabled:J;var m=U.text?_.Me(U.text):void 0;var z,c,C,v=((z=U.accessibilityData)==null?void 0:(c=z.accessibilityData)==null?void 0:c.label)||((C=U.accessibility)==null?void 0:C.label);z=v?v:_.Sp(U.text);A=VJr(U,A,M,W,w);M=H6h(U);M!=null&&M.length?(M=_.dA({innertubeCommand:$4r(M),
forceNewState:!0}),M=OB(M)?M:void 0):M=void 0;return F.call(f,{},H,n,{iconPosition:O},d,{focused:!1,toggled:P,toggleable:L,disabled:J,formattedButtonText:m,accessibilityLabel:z,onTap:A,aTagConfig:M},jsF((N=U.colorData)==null?void 0:N.basicColorPaletteData),{oneOffCustomTextWrap:U.oneOffCustomTextWrap})};
VJr=function(H,U,A,M,W){return function(w){var d=H6h(H);M(d,w);if(!W){d=_.b(d);for(var O=d.next();!O.done;O=d.next())lj(O.value,{form:{element:U,event:w},commandController:A})}}};
H6h=function(H){var U=[];H.command&&U.push(H.command);H.serviceEndpoint&&U.push(H.serviceEndpoint);H.navigationEndpoint&&U.push(H.navigationEndpoint);return U};
QsV=function(H,U){if(U)switch(H.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(H.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
IKc=function(H){switch(H.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_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",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"}}};
ACN=function(H,U){return typeof H!=="object"||H===null?!1:Object.keys(U).every(function(A){return A in H})};
Ho=function(H){return Object.fromEntries(Object.keys(H).map(function(U){return[U,U]}))};
MHF=function(H,U,A){return eZh(A,function(M,W){return function(w){var d=_.QY.apply(1,arguments);return ACN(w,H)?W.apply(null,[w[U]].concat(_.vI(d))):W.apply(null,[w].concat(_.vI(d)))}})};
U3=function(H){return function(U,A){return MHF(H,U,A)}};
Wp7=function(H,U){var A;return(A=_.rH(H,"playlistLoopStateEntity",U))!=null?A:void 0};
wT7=function(H,U){var A;return(A=_.rH(H,"toggleMenuServiceItemEntity",U))!=null?A:void 0};
_.As=function(H){return H!=null&&H.watch?H.watch.isTheaterMode:!1};
_.MF=function(H){return H!=null&&H.watch?H.watch.isWatchFullscreen:!1};
_.Wo=function(H){if(_.XTc(H))return!0;H=_.i6E(H);return _.S("web_watch_enable_single_column_grid_view")?H:!1};
_.XTc=function(H){return H!=null&&H.watch?H.watch.isSwatcherooActive:!1};
_.i6E=function(H){return H.watch.isWatchNarrowWidth};
_.b6F=function(H){return _.As(H)||_.MF(H)||_.i6E(H)};
_.d77=function(H){return H.watch.openEngagementPanels};
_.wT=function(H,U){return _.rH(H.entities,"likeStatusEntity",U)};
O67=function(H,U){return _.rH(H.entities,"likeCountEntity",U)};
_.u2F=function(H,U){return _.rH(H.entities,"stringEntity",U)};
Z60=function(H,U){return _.rH(H.entities,"dataFreshnessEntity",U)};
fsM=function(H,U){if(!H)return!1;var A,M=(A=_.p(H,_.GR))==null?void 0:A.signal;if(M&&U.signalEndpointMap)return!!U.signalEndpointMap[M];var W;if((A=(W=_.p(H,_.XA))==null?void 0:W.request)&&U.continuationEndpointMap)return!!U.continuationEndpointMap[A];for(var w in H)if(U.commandEndpointMap[w])return!0;return!1};
JCE=function(H,U){if(U.streamingEndpointMap)for(var A in H)if(U.streamingEndpointMap[A]&&(H=U.streamingEndpointMap[A]))return H()};
Kpt=function(H,U){var A,M=(A=_.p(H,_.GR))==null?void 0:A.signal;if(M&&U.signalEndpointMap&&(A=U.signalEndpointMap[M]))return A();var W;if((A=(W=_.p(H,_.XA))==null?void 0:W.request)&&U.continuationEndpointMap&&(W=U.continuationEndpointMap[A]))return W();for(var w in H)if(U.commandEndpointMap[w]&&(H=U.commandEndpointMap[w]))return H()};
oeh=function(H){var U={"Content-Type":"application/json"};_.gD("EOM_VISITOR_DATA")?U["X-Goog-EOM-Visitor-Id"]=_.gD("EOM_VISITOR_DATA"):_.gD("VISITOR_DATA")&&(U["X-Goog-Visitor-Id"]=_.gD("VISITOR_DATA"));U["X-Youtube-Bootstrap-Logged-In"]=_.gD("LOGGED_IN",!1);_.gD("DEBUG_SETTINGS_METADATA")&&(U["X-Debug-Settings-Metadata"]=_.gD("DEBUG_SETTINGS_METADATA"));H!=="cors"&&((H=_.gD("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(U["X-Youtube-Client-Name"]=H),(H=_.gD("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(U["X-Youtube-Client-Version"]=
H),(H=_.gD("CHROME_CONNECTED_HEADER"))&&(U["X-Youtube-Chrome-Connected"]=H),(H=_.gD("DOMAIN_ADMIN_STATE"))&&(U["X-Youtube-Domain-Admin-State"]=H));(H=_.gD("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(U["X-YouTube-Lava-Device-Context"]=H);return U};
FpE=function(H,U){U.watchNextResponse||U.reelItemWatchResponse?U.watchNextResponse?H.content=U.watchNextResponse:H.content=U.reelItemWatchResponse:U.playerResponse?H.player=U.playerResponse:U.reelWatchSequenceResponse&&(H.reelSequence=U.reelWatchSequenceResponse)};
iZ=function(H){return function(){return new H}};
bZ=function(H){var U=_.lx();return function(){return U.resolve(H)}};
_.dT=function(H){if(!H)return null;for(var U=[],A=0;A<H.textSegments.length;A++){var M=H.textSegments[A];M.text?U.push(M):M.emojiId&&U.push({emoji_id:M.emojiId})}return{text_segments:U}};
SK_=function(H,U,A,M,W,w,d){w=w===void 0?[]:w;var O=new _.O3;O.endpoint=A;if(!A)return _.n5(new _.bD("handle undefined endpoint",U.tagName)),O;var f=mGF(A);f.length&&(_.eb(H,f,U,M),O.actions=f);A.loggingUrls&&A.loggingUrls.forEach(function(F){F.baseUrl&&gB(F.baseUrl,F.attributionSrcMode)});
f=!_.S("web_skip_impression_click_killswitch")&&M&&M.impression;if(A.clickTrackingParams&&!PG7(A)&&!sbK(U)&&!f&&(f=_.k$(),!_.uZ(f,U))){var J=U.getScreenLayer&&U.getScreenLayer();J?f.clickCommand(A,null,J):f.clickCommand(A,null)}f=!1;for(J=0;J<w.length;J++)if((0,w[J])(U,A,M)){f=!0;break}!f&&neV(A)&&(O.ajaxPromise=NCh(H,U,A,M,W,d));return O};
sbK=function(H){var U;return(H=(U=H.data)==null?void 0:U.navigationEndpoint)&&!!H.clickTrackingParams};
PG7=function(H){var U=_.p(H,_.GR);if(U&&(U=U.signal)&&pTE.indexOf(U)>=0)return!0;for(var A in H)if(Lp0.indexOf(A)>=0)return!0;return!1};
neV=function(H){var U;if(((U=_.p(H,_.GR))==null?void 0:U.signal)==="CLIENT_SIGNAL")return!1;for(var A in H)if(RzM.indexOf(A)>=0)return!1;H=Object.keys(H);return H.length===1&&H[0]==="loggingUrls"?!1:!0};
cCV=function(H,U,A,M,W,w,d){var O=_.ZW.instance;if(O&&_.fy(O,M))var f=_.Js(O,M,W).then(function(F){return(F==null?0:F.data)?F:{data:F}});
else f=H.requestDataForServiceEndpoint(M,W),_.p(M,Eet)||_.p(M,m7_)||_.p(M,_.geE)||_.p(M,asF)||_.Na(new _.bD("No RequestBuilder for endpoint",M));var J=_.oL();J.promise.thenCatch(function(){var F=_.Rh(M,"action")||_.Rh(M,"command")||_.Rh(M,"endpoint");F&&(F=M[F],F.hasOwnProperty("onFailureAction")?_.eb(U,[F.onFailureAction],A):F.hasOwnProperty("onFailureCommand")&&_.eb(U,F.onFailureCommand,A));f.cancel("Resolver promise rejected")});
f.then(function(F){if(F){var P=F.error;if(P){if(w&&w.onServerError)w.onServerError(M,F);J.reject(new _.bD("Response error",M,P))}else if(F=F.data)if(P=F.error){if(w&&w.onServerError)w.onServerError(M,F);J.reject(new _.bD("Returned error",M,P))}else{x7h(U,A,F,M);zzt(F);if(P=EC7(F))for(var n=_.b(P),N=n.next();!N.done;N=n.next()){N=N.value;var L=_.lx().resolve(_.$V(CG8))||tHE;if(!_.ZW.instance||!L.some(function(z){return!!_.p(M,z)})||_.S("kevlar_response_processor_allowlist_killswitch")){var m=L=void 0;
((m=_.p((L=N)==null?void 0:L.commandMetadata,_.Y2))==null?0:m.sendPost)?_.rs(U,[N]):_.eb(U,[N],A)}}(n=_.p(F==null?void 0:F.frameworkUpdates,FA))&&d&&d(n);if(w&&w.onSuccess)w.onSuccess(M,F);J.resolve(new _.Po(F,P))}}else J.reject(new _.bD("Invalid service endpoint provided",M))},function(F){J.reject(F)});
return J.promise};
zzt=function(H){var U;(H=(U=_.p(H==null?void 0:H.onResponseReceivedCommand,yCE))==null?void 0:U.continuationItems)&&(H==null?void 0:H.length)===1&&_.p(H[0],BCc)&&_.ba("so_r",void 0,"search_overview_answer")};
NCh=function(H,U,A,M,W,w){var d;return(d=U.getNetworkManager&&U.getNetworkManager()?U.getNetworkManager():_.lx().resolve(_.$V(_.jp)))?cCV(d,H,U,A,M,W,w):_.H$("No network manager.")};
x7h=function(H,U,A,M){if(A=A.trackingParams||A.loggingDirectives&&A.loggingDirectives.trackingParams){var W;(_.p(M,_.s3)||_.p(M,rCV)||_.p(M,ezM))&&M.clickTrackingParams&&(W=_.IS(M.clickTrackingParams));var w;M=(w=U.getScreenLayer)==null?void 0:w.call(U);U=_.k$().graftServerVe(A,W,M);_.Bg(H,"yt-store-grafted-ve-action",[U])}};
_.D7r=function(H){var U=new Image;return new _.IQ(function(A,M){U.addEventListener("load",function(){A()});
U.addEventListener("error",function(){M()});
U.src=H})};
$7r=function(H){return!!H};
lsh=function(H){return!!H};
G_K=function(H,U,A){var M=H.rowIndex;M!==void 0&&_.Bg(H.hostElement,"yt-section-reactive-dismissal",[M,U,A])};
_.ny=function(H,U,A){H=_.b(H);for(var M=H.next();!M.done;M=H.next()){M=M.value;if(M===U)break;for(var W=_.b(A),w=W.next();!w.done;w=W.next())if(w=w.value,M.tagName===w||!_.S("web_event_button_role_check_killswitch")&&M.role==="button"&&w==="BUTTON")return!0}return!1};
_.NF=function(H,U,A){H=_.b(H);for(var M=H.next();!M.done;M=H.next()){M=M.value;if(M===U)break;for(var W=_.b(A),w=W.next();!w.done;w=W.next())if(M.id===w.value)return!0}return!1};
_.Ly=function(){var H=_.lx().resolve(_.$V(_.SI));return H?(H=H.getCurrentPage())?_.py(H):null:null};
_.RL=function(){var H=_.Ly();if(!H){var U=_.lx().resolve(_.$V(_.SI)),A=U?typeof U:"no page manager";U=U?U.getCurrentPage():null;A=new _.bD("Player is missing when requested.",A,U?U.tagName:"no page");_.sD(A)}return H};
_.py=function(H){return H&&H.getPlayer?H.getPlayer():null};
YK0=function(H,U){H={args:{raw_player_response:H}};U&&(H.args=Object.assign({},H.args,U));return H};
qKM=function(H){if(H.args){if(H.args.raw_player_response)return H.args.raw_player_response;if(H.args.player_response)return JSON.parse(H.args.player_response)}};
_.hz0=function(H,U){var A={url:"/watch?v="+H.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};H.playlistId&&(A.url+="&list="+H.playlistId);H.playerParams&&(A.url+="&pp="+H.playerParams);H={watchEndpoint:H,commandMetadata:{webCommandMetadata:A}};U&&(H.clickTrackingParams=U);return H};
ver=function(){return k_t||!!_.tr("yt.player.Application")};
jbc=function(){return TCK||!!document.querySelector("link#player-css")};
QbM=function(){function H(){k_t=!0;IsK.resolve()}
var U,A;return _.u(function(M){IsK||(IsK=new _.r1,ver()?H():(U=document.createElement("script"),U.addEventListener("load",H),A=_.KW(_.gD("PLAYER_JS_URL")),_.J$(U,A),document.head.appendChild(U)));return M.return(IsK.promise)})};
HLM=function(){function H(){TCK=!0;VH7.resolve()}
if(!VH7)if(VH7=new _.r1,jbc())H();else{var U=document.createElement("link");U.id="player-css";U.addEventListener("load",H);var A=_.KW(_.gD("PLAYER_CSS_URL"));_.FP(U,A,"stylesheet");document.head.appendChild(U)}return VH7.promise};
Uct=function(){return ver()&&jbc()?Promise.resolve([]):Promise.all([QbM(),HLM()])};
AlF=function(H,U,A){var M={args:{}};H&&(M.args.raw_player_response=H);U&&(M.args.raw_watch_next_response=U);A&&(M.args=Object.assign({},M.args,A));return M};
XzE=function(H,U,A){var M=!1;M=M===void 0?!0:M;H=typeof H==="string"?_.E3(document,H):H;var W=MK0+"_"+_.vF(H),w=WA8[W];if(w&&M)return wzK(U,A)?w.api.loadVideoByPlayerVars(U.args||null):w.loadNewVideoConfig(U),w.api;w=new mY(H,W,U,A,void 0);WA8[W]=w;w.addOnDisposeCallback(function(){delete WA8[w.getId()]});
return w.api};
wzK=function(H,U){return U&&U.serializedExperimentFlags?U.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):H&&H.args&&H.args.fflags?H.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
iL7=function(){var H=new _.r1;H.resolved=!1;var U=H.resolve;H.resolve=function(A){H.resolved=!0;U(A)};
return H};
dch=function(H){var U={};bLV().install((U.document_disposed={callback:H},U))};
gT=function(H,U){if(!H&&Math.random()<=_.hr("kevlar_unified_player_logging_threshold")){H=Error("wh`"+(U?U:"Unspecified error"));if(_.S("kevlar_unified_player_throw_errors"))throw H;_.Na(H)}};
_.OLh=function(){var H=_.tr("ytDebugData.callbacks");H||(H={},_.eC("ytDebugData.callbacks",H));return H};
ZLK=function(H,U){var A=_.OLh();if(_.S("web_dd_iu")||ue_.includes(H))A[H]=U};
fQE=function(){return _.u(function(H){return H.return({isLeader:_.Rnt(_.Lq().getState()),c:_.gD("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.gD("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
Jl_=function(){var H;_.u(function(U){if(U.nextAddress==1)return ZLK("APP_STATE",fQE),U.yield(_.lx().resolve(_.aL),2);H=U.yieldResult;ZLK("PI",function(){return _.u(function(A){return A.return(H.getVideoStats())})});
_.DO(U)})};
KAr=function(H){return!!H&&H.length>0&&H[0].loggingUrls!=null&&H[0].loggingUrls.length>0};
o10=function(){var H=_.gD("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(H==null?void 0:H.length)===2?H[1]:null};
FAM=function(H){if(!H)return[];var U=[];H=_.b(H);for(var A=H.next();!A.done;A=H.next())if(A=A.value,A.loggingUrls){A=_.b(A.loggingUrls);for(var M=A.next();!M.done;M=A.next())M=M.value,M.baseUrl&&U.push(M.baseUrl)}return U};
P2h=function(H){var U=_.lF(_.$Z(_.Mr.location.href));H=_.lF(_.$Z(H));return _.S("kevlar_clear_non_displayable_url_params")?U==xY(H):xY(U)==xY(H)};
xY=function(H){var U=_.kg8(H);H=H.slice(0);var A=["frags"];_.S("kevlar_hide_pp_url_param")&&A.push("pp");_.S("kevlar_hide_time_continue_url_param")&&A.push("time_continue");A=_.b(A);for(var M=A.next();!M.done;M=A.next())M=M.value,H=_.js(_.lF(H),M);return _.lF(H)+(U?"#"+U:"")};
zB=function(H,U){var A=A===void 0?!0:A;U=Number(U)*1E3;var M=Math.round((0,_.lD)()),W=M.toString();H={innertubeResponse:H,serverDateTimestampMs:W,lastModifiedTimestampMs:W,expireTimestampMs:(M+U).toString(),isProcessed:A};if(A=_.gD("INNERTUBE_CONTEXT_CLIENT_NAME"))H.clientName=A;return H};
n1F=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++s3h};
Nw0=function(H){return!isNaN(H)&&H>0};
pzE=function(){_.S("web_adaptive_repeat_ase")&&SL0&&_.Fx("applicationStarted",SL0)};
_.LAF=function(){var H=_.ws(),U=_.XK();U&&H&&_.nE(U,[H],!0)};
E10=function(H){return H&&RVV.some(function(U){return H.includes(U)})};
C2c=function(H){var U=_.p(H,_.gu);if(!U)return!1;var A=U.url,M=U.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!A)return _.sD(Error("Bh")),!1;if(U.target==="TARGET_NEW_WINDOW"){U={};_.S("resolve_url_parent_tracking_params")&&(!_.es(A)||GZ(window.location.href,A))&&(U={endpoint:H,itct:H.clickTrackingParams});Eor(U);H=null;try{if(M){a:{var W=A,w=U;M=M===void 0?!1:M;w&&_.Sb(W,w);var d=_.j3(W),O=_.hR(d);W!=O&&_.c5(Error("$f`"+W));W=O;try{if(M){O=W;O=OG7(O);Zt(O);H=_.iL(window,O,"_blank",
"attributionsrc");break a}}catch(n){_.za(n)}Zt(W);H=_.iL(window,d,"_blank")}mcK(_.lx().resolve(g1c),H,A);return!0}}catch(n){_.sD(n)}_.Sb(A,U);U={target:"_blank",noopener:!1};d=window;O=qS(A)?A:_.j3(typeof A.href!="undefined"?A.href:String(A));M=self.crossOriginIsolated!==void 0;H="strict-origin-when-cross-origin";window.Request&&(H=(new Request("/")).referrerPolicy);W=U.noreferrer;if(M&&W&&H==="unsafe-url")throw Error("xe");H=W&&!M;W=U.target||A.target;w=[];var f=[],J=!1;for(P in U){var F=U[P];switch(P){case "width":case "height":case "top":case "left":w.push(P+
"="+F);break;case "target":break;case "noopener":case "noreferrer":F?f.push(P):(J=!0,f.push(P+"=false"));break;case "attributionsrc":w.push(P+(F?"="+F:""));break;default:w.push(P+"="+(F?1:0))}}var P=W!==void 0&&!["_blank","_self","_top","_parent",""].includes(W);P=R_()&&P;aQV&&M&&w.length===0&&f.length>0&&!P&&!J?(f.length===2&&(f=["noreferrer"]),_.iL(d,O,W,f[0]),H=xc8()):(P=w.join(","),_.xc()&&d.navigator&&d.navigator.standalone&&W&&W!="_self"?(P=_.Q9("A"),HI(P,O),P.target=W,H&&(P.rel="noreferrer"),
((U=U.attributionsrc)||U==="")&&P.setAttribute("attributionsrc",U),U=document.createEvent("MouseEvent"),U.initMouseEvent("click",!0,!0,d,1),P.dispatchEvent(U),P=xc8()):H?(P=_.iL(d,"",W,P),d=_.hR(O),P&&(P.opener=null,d===""&&(d="javascript:''"),d='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Cy(d)+'">',d=A$(d),(U=P.document)&&U.write&&(U.write(Mo(d)),U.close()))):((P=_.iL(d,O,W,P))&&U.noopener&&(P.opener=null),P&&U.noreferrer&&(P.opener=null)),H=P);mcK(_.lx().resolve(g1c),
H,A);return!0}P=_.DU(A);P=E10(P)||A==="https://studio.youtube.com/";if(_.es(A)&&!GZ(window.location.href,A)||P)Zt(A),WO(),_.ff(A,void 0,void 0,window.top,zVr);else return _.Na(new _.bD("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",H)),!1;return!0};
_.ylt=function(H,U){U=U===void 0?0:U;if(!(_.p(H,tK4)||_.p(H,cl0)||_.p(H,_.gu)&&_.p(H,_.gu).url))return!1;var A,M=(A=_.p(H,_.gu))==null?void 0:A.url;A=M?{externalLinkData:{url:M}}:null;return _.k$().clickCommand(H,A,U)};
rlc=function(H,U,A,M,W){W=W===void 0?{}:W;return function(w){var d,O;var f=((d=H.loggingDirectives)==null?0:(O=d.clientVeSpec)==null?0:O.uiType)?_.ts(H.loggingDirectives.clientVeSpec.uiType):void 0;W.clickedVisualElement||(W.clickedVisualElement=f);f=Bw_(H,U);A(f,w);f=_.b(f);for(d=f.next();!d.done;d=f.next()){d=d.value;O=M;var J=w,F=W;F.form?F.form.event=J:F.form={element:O,event:J};lj(d,F)}}};
Bw_=function(H,U){var A=[];U?(H.toggledCommand&&A.push(H.toggledCommand),H.toggledServiceEndpoint&&A.push(H.toggledServiceEndpoint)):(H.defaultCommand&&A.push(H.defaultCommand),H.defaultServiceEndpoint&&A.push(H.defaultServiceEndpoint),H.defaultNavigationEndpoint&&A.push(H.defaultNavigationEndpoint));return A};
eVN=function(H,U){var A=H.toggledStyle||H.style,M;switch((M=U?A:H.style)==null?void 0:M.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"}}};
_.co=function(){return _.u(function(H){return H.nextAddress==1?H.yield(_.lx().resolve(_.aL),2):H.return(_.lx().resolve(Dcc)())})};
_.yU=function(){return _.lx().resolve(Dcc)()};
_.Bo=function(){return{lottieEl:void 0}};
$c7=function(H,U){return H.startsWith(U.uniqueId)};
lQE=function(H){var U,A;_.u(function(M){if(M.nextAddress==1)return M.yield(_.co(),2);U=M.yieldResult;if((A=U)==null||!A.addEventListener)return rT(),M.return();U.addEventListener("onCueRangeEnter",H);_.DO(M)})};
Ghr=function(H){var U,A;_.u(function(M){if(M.nextAddress==1)return M.yield(_.co(),2);U=M.yieldResult;if((A=U)==null||!A.removeEventListener)return rT(),M.return();U.removeEventListener("onCueRangeEnter",H);_.DO(M)})};
YL0=function(H){var U,A,M,W,w;_.u(function(d){if(d.nextAddress==1)return d.yield(_.co(),2);U=d.yieldResult;if((A=U)==null||!A.addCueRange)return rT(),d.return();M=_.b(H.timings);for(W=M.next();!W.done;W=M.next())w=W.value,U.addCueRange(H.uniqueId+"-"+w,w/1E3,(w+100)/1E3);_.DO(d)})};
qLM=function(H){var U,A,M,W,w;_.u(function(d){if(d.nextAddress==1)return d.yield(_.co(),2);U=d.yieldResult;if((A=U)==null||!A.removeCueRange)return rT(),d.return();M=_.b(H.timings);for(W=M.next();!W.done;W=M.next())w=W.value,U.removeCueRange(H.uniqueId+"-"+w);_.DO(d)})};
hV_=function(){var H,U,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(_.co(),2);H=M.yieldResult;if((U=H)==null||!U.getPlayerState)return rT(),M.return();A=H.getPlayerState();return M.return(A===2)})};
rT=function(){_.Na(new _.bD("Smartimation player does not exist or is corrupted"))};
khV=function(){try{var H;return(H=window.CSS)!=null&&H.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(U){return _.Na(new _.bD("Smartimation CSS.supports threw an error")),!1}};
H4h=function(H,U,A,M,W){var w=H.playlistId?v1V:Twr;U=U();A=A();W=!!H.videoId&&W()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.TQ(U))return j3K({data:H,actionType:w,disabled:W},A);if(H.videoId&&M())return IQc({data:H,actionType:w,disabled:W});switch(U){case "TRANSFER_STATE_UNKNOWN":return IQc({data:H,actionType:w,disabled:W});case "TRANSFER_STATE_FAILED":return H.videoId?Q3c({data:H,actionType:w,disabled:W}):VKK({data:H,actionType:w,disabled:W});case "TRANSFER_STATE_COMPLETE":return VKK({data:H,
actionType:w,disabled:W});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return j3K({data:H,actionType:w,disabled:W},A);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return H.videoId?Q3c({data:H,actionType:w,disabled:W}):IQc({data:H,actionType:w,disabled:W});default:return IQc({data:H,actionType:w,disabled:W})}};
U8F=function(H,U){var A=H.onTapCommand,M=_.ij(A);if(H.videoId&&_.p(M,_.eI))return _.p(M,_.eI).action=U,A;H.playlistId&&_.p(M,_.DW)&&(_.p(M,_.DW).action=U);return A};
IQc=function(H){var U=H.data;var A=H.actionType;H=H.disabled;return{text:AY7,iconType:"OFFLINE_DOWNLOAD",onTap:U8F(U,A.ACTION_ADD),disabled:H}};
j3K=function(H,U){var A=H.data;var M=H.actionType;H=H.disabled;var W="OFFLINE_DOWNLOAD";U>=0&&U<=.1?W="OFFLINE_DOWNLOADING_ZERO":U>.1&&U<=.3?W="OFFLINE_DOWNLOADING_TWENTY":U>.3&&U<=.5?W="OFFLINE_DOWNLOADING_FORTY":U>.5&&U<=.7?W="OFFLINE_DOWNLOADING_SIXTY":U>.7&&U<1?W="OFFLINE_DOWNLOADING_EIGHTY":U===1&&(W="OFFLINE_PIN");return{text:Mh_,iconType:W,onTap:U8F(A,M.ACTION_REMOVE_WITH_PROMPT),disabled:H}};
VKK=function(H){var U=H.data;var A=H.actionType;H=H.disabled;return{text:W2M,iconType:"OFFLINE_PIN",onTap:U8F(U,A.ACTION_REMOVE_WITH_PROMPT),disabled:H}};
Q3c=function(H){var U=H.data;var A=H.actionType;H=H.disabled;return{text:wt8,iconType:"OFFLINE_DOWNLOAD",onTap:U8F(U,A.ACTION_RETRY),disabled:H}};
_.$Y=function(H,U){var A=RvF();return _.Ja(function(){A();return gSM(H,[_.an(U)||""])},{debugName:"LUZslf"},"Z105t")};
XtN=function(H){var U=_.$Y(_.O_,function(){return H().videoId}),A=_.$Y(_.uE,function(){return H().playlistId});
return function(){return H().videoId?U:H().playlistId?A:_.b(_.iB("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
i4N=function(H){var U=_.$Y(ZY,function(){return H().videoId}),A=_.$Y(_.LEK,function(){return H().playlistId});
return function(){return H().videoId?U:H().playlistId?A:_.b(_.iB(0,void 0,"K4tgOc")).next().value}};
b4h=function(H){var U=_.$Y(_.inM,function(){return H().videoId});
return function(){return H().videoId?U:_.b(_.iB(!1,void 0,"Oaxwcf")).next().value}};
d8t=function(H){var U=_.$Y(mMt,function(){return H().videoId});
return function(){return H().videoId?U:_.b(_.iB("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
O4_=function(){return{}};
_.K2N=function(H,U,A){return{submitForm:function(){var M,W,w,d;return _.u(function(O){if(O.nextAddress==1){M=uRK(H());if(!M)return O.return();if(M.onSubmit)return Z47(U),M.onSubmit(),Z47(A),O.return();if(!M.submitConfig||!M.formData)return O.jumpTo(0);M.disableDuringSubmission&&fZ8(H(),!0);Z47(U);return O.yield(JY8(M.submitConfig,M.formData()),3)}W=O.yieldResult;Z47(A);if(((w=W)==null?0:w.submitResult)&&((d=M)==null?0:d.onSubmitResult))M.onSubmitResult(W.submitResult);M.disableDuringSubmission&&fZ8(H(),
!1);return O.return()})},
isValid:function(){var M=uRK(H());if(M){var W;return!((W=M.isValid)==null||!W.call(M))}return!0},
isSubmitting:function(){var M,W;return!!((M=uRK(H()))==null?0:(W=M.isSubmitting)==null?0:W.call(M))}}};
_.lZ=function(){if(!oL_){var H=_.b(_.iB(new Map,void 0,"Y1XnBc"));oL_=H.next().value;F2F=H.next().value}return oL_};
_.Ps4=function(H){F2F(new Map(H))};
uRK=function(H){if(H)return _.lZ()().get(H)};
JY8=function(H,U){var A;return _.u(function(M){return M.nextAddress==1?U?(A=_.lx().resolve(_.$V(sec)))&&H.submitId?M.yield(A.submitForm(H.submitId,U,nLt,H.params,H.clickTrackingParams),2):M.return(Promise.reject(Error("Dh"))):M.return(Promise.reject(Error("Ch"))):M.return(M.yieldResult)})};
fZ8=function(H,U){if(H){var A=_.lZ();A().set(H,Object.assign({},A().get(H),{isSubmitting:function(){return U}}));
_.Ps4(A())}};
Z47=function(H){if(H){var U=_.lx().resolve(_.YV);U&&(H=_.ij(H()))&&U.resolveCommand(H)}};
ptc=function(H,U){U=U===void 0?{shouldPersist:!0}:U;return{useUpdatableData:function(A,M){var W=_.Ja(function(){return H(A())},void 0,"Gmrblb"),w=N8F(A,W,M,U);
_.Em(function(){if(W()!=null){Su7.set(W(),w);var d=W();_.m4(function(){Su7.delete(d)})}},"j4hx9b");
return w},
getData:function(A){var M;return(M=Su7.get(H(A)))==null?void 0:M[0]()},
updateData:function(A,M){A=H(A);A=Su7.get(A);if(!A)return!1;var W=_.b(A);A=W.next().value;W=W.next().value;M=M(A());W(M);return!0}}};
N8F=function(H,U,A,M){M=M===void 0?{}:M;var W=_.b(_.md(function(){var O=H(),f=U();return L24(O,f,A,M)})),w=W.next().value,d=W.next().value;
return[w,function(O){d(O);var f=U();if(M.shouldPersist&&f!=null){var J,F=(J=A==null?void 0:A.map(function(P){return P()}))!=null?J:[];
_.GB.set(f,[O,F])}}]};
L24=function(H,U,A,M){M=M===void 0?{}:M;if(U==null||!M.shouldPersist)return H;M=_.GB.get(U);if(!M)return H;var W=_.b(M);M=W.next().value;var w=W.next().value,d;W=(d=A==null?void 0:A.map(function(O){return O()}))!=null?d:[];
if((w==null?0:w.length)&&(A==null?0:A.length)&&W.some(function(O,f){return O!==w[f]}))return _.GB.remove(U),H;
(A==null?0:A.length)&&_.GB.set(U,[M,W]);return M};
REt=function(H){var U=_.b(_.iB(!0,void 0,"bKtO6d")),A=U.next().value;U.next();return function(){var M=dD(H.children());return _.Z(_.K,{cond:A,then:function(){return M},
else:H.fallback})}()};
_.YY=function(H){var U=ELE(H),A=U.data,M=U.mapping,W=U.wrapper;U=U.pendingFallback;var w=function(){return m8h(_.an(A))},d=function(){var O=w(),f=[];
O=_.b(O);for(var J=O.next();!J.done;J=O.next()){var F=void 0;J=J.value;var P=void 0;for(F in J)if(!(!J).hasOwnProperty(F)){P=F;break}(F=P)&&f.push(F)}return f};
return H.data?_.Z(REt,{fallback:U},function(){return _.Z(_.FQ,{each:d},function(O,f){var J=W?function(L){return W(function(){return M[O](L,f)},F,f)}:function(L){return M[O](L,f)};
J.debugName||(J.debugName=String(O));if(!M[String(O)])return document.createComment("");J.componentType!==F$&&gLF(String(O));var F=aZ7(w,O,f);if(_.S("web_add_microtask_to_stamper")&&!x80.has(String(O))){var P=_.b(_.iB(!1,void 0,"afb1md")),n=P.next().value,N=P.next().value;Promise.resolve().then(function(){x80.add(String(O));N(!0)});
return _.Z(_.K,{cond:n,then:function(){return _.Z(J,{data:F})}})}return _.Z(J,{data:F})})}):_.Z(_.ve,null)};
ELE=function(H){var U=H.targetId||zE8(H.children);if(!H.data||!U)return Object.assign({},H,{mapping:H.children});var A="stamper-"+Cs_++,M=function(){var O;return(O=typeof H.targetId==="function"?H.targetId(A):H.targetId)!=null?O:A};
U=_.b(th4(function(){var O=m8h(H.data());O.targetId=M;return O})).next().value;
var W=Object.assign({},(_.lx().resolve(_.$V(cYr))||{}).replaceableMapping,H.children);if(H.replacementWrapper){var w=W.notificationTextRenderer,d=W.notificationMultiActionRenderer;w&&(W.notificationTextRenderer=function(O,f){return H.replacementWrapper(w({data:O.data},f))});
d&&(W.notificationMultiActionRenderer=function(O,f){return H.replacementWrapper(d({data:O.data},f))})}return Object.assign({},H,{data:U,
mapping:W,wrapper:function(O,f,J){return bsh({targetId:M,stamperIndex:J},H.wrapper?function(){return H.wrapper(O,f,J)}:O)}})};
aZ7=function(H,U,A){var M;return _.Ja(function(){var W=H()[A()];if(W)M=W[U];else return _.Na(new _.bD("Stamper failed to find "+String(U)+" at index "+A()+" of data array of length "+(H().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),M;return W[U]},void 0,"Su9U8")};
zE8=function(H){H=_.b(Object.keys(H));for(var U=H.next();!U.done;U=H.next())if(U=U.value,yYc.includes(U)||B8r.includes(U)||rYK.includes(U))return!0;return!1};
m8h=function(H){return H?Array.isArray(H)&&H instanceof Array?H:[H]:[]};
gLF=function(H){if(_.S("web_enable_renderer_logger")){var U;(U=_.lx().resolve(_.$V(eEr)))!=null&&U.loggingEnabled&&!U.ids.has(H)&&U.ids.add(H)}};
D8c=function(){var H,U;return(U=(H=_.lx().resolve(_.$V(_.qF)))==null?void 0:H())!=null?U:!1};
lZt=function(H,U){H=H===void 0?$87:H;switch(U.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},H,{isOpen:U.payload});default:return H}};
YuE=function(H,U){H=H===void 0?G$0:H;switch(U.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},H,{isAllowed:U.payload});default:return H}};
hEV=function(H,U){H=H===void 0?qu0:H;switch(U.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},H,{errorMessage:U.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},H,{title:U.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},H,{privacy:U.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},H,{isDisabled:U.payload});default:return H}};
vLV=function(H,U){H=H===void 0?k$8:H;switch(U.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},H,{isOpen:U.payload});default:return H}};
je7=function(H,U){H=H===void 0?T8E:H;switch(U.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},H,{isFullscreen:U.payload});case "SET_NAVIGATION_BUTTON":var A=U.payload.targetId,M=Object.assign({},H.navigationButtons);M[A]=U.payload.button;return Object.assign({},H,{navigationButtons:M});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},H,{topPanelId:U.payload});case "SET_SECONDARY_HEADER":return A=U.payload.panelId,M=Object.assign({},H.secondaryHeader),M[A]=U.payload.secondaryHeader,
Object.assign({},H,{secondaryHeader:M});default:return H}};
HV7=function(){return Z2(Object.assign({},{voiceSearch:VoV,engagementPanel:je7,bottomSheet:lZt,cinematicSetting:YuE,shorts:ij_,drawerLayout:vLV,createPlaylist:hEV,locationCollection:IZ8,reportChannel:Qer,reportForm:VhN},bjK))};
URF=function(H,U){_.Fl.addLowPriorityJob(function(){var A,M,W;return _.u(function(w){switch(w.nextAddress){case 1:return _.zj(w,2),w.yield(cvE(),4);case 4:return w.yield(fetch(H),5);case 5:return A=w.yieldResult,w.yield(A.json(),6);case 6:M=w.yieldResult;v$.set(H,M);requestAnimationFrame(function(){U(M)});
_.xD(w,0);break;case 2:W=_.eG(w),_.Na(W),_.DO(w)}})})};
AWE=function(H){var U={animationConfig:{},listeners:{}},A=function(){H(!0)};
U.listeners.data_failed=A;U.listeners.error=A;U.listeners.data_ready=function(){H(!1)};
return U};
wZ_=function(H){var U=H.model;var A=H.subscribed;var M=H.isOverlay;var W=H.element;var w=H.commandController;var d=H.notificationState;if(A){var O,f;var J=(U==null?void 0:(O=U.buttonStyle)==null?void 0:O.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:U==null?void 0:(f=U.unsubscribeButtonContent)==null?void 0:f.buttonText}else{var F;J=U==null?void 0:(F=U.subscribeButtonContent)==null?void 0:F.buttonText}a:{var P;switch(U==null?void 0:(P=U.buttonStyle)==
null?void 0:P.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":O="S";break a;default:O="M"}}a:if(M)M="overlay";else switch(U.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":M="overlay";break a;default:M="mono"}a:if(A)var n="tonal";else switch((n=U.buttonStyle)==null?void 0:n.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":n=
"tonal";break a;default:n="filled"}return{style:M,type:n,state:U.disableSubscribeButton?"disabled":"active",size:O,focused:H.focused,toggled:A,accessibilityLabel:Mu_(U,A,d),buttonText:J,iconPosition:U.disableNotificationBell?"none":"leading-trailing",onTap:WQc(U,A,W,w),disableTextEllipsis:!!H.disableTextEllipsis}};
WQc=function(H,U,A,M){return function(W){if(U){var w;var d=H.disableNotificationBell?_.ij(H==null?void 0:(w=H.unsubscribeButtonContent)==null?void 0:w.onTapCommand):_.ij(H==null?void 0:H.onShowSubscriptionOptions)}else{var O;d=_.ij(H==null?void 0:(O=H.subscribeButtonContent)==null?void 0:O.onTapCommand)}d&&lj(d,{form:{element:A==null?void 0:A.value},commandController:M});W.stopPropagation()}};
Mu_=function(H,U,A){if(U){if(H==null?0:H.disableNotificationBell){var M;return H==null?void 0:(M=H.unsubscribeButtonContent)==null?void 0:M.accessibilityText}switch(A){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var W;return H==null?void 0:(W=H.bellAccessibilityData)==null?void 0:W.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var w;return H==null?void 0:(w=H.bellAccessibilityData)==null?void 0:w.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var d;return H==null?void 0:(d=
H.bellAccessibilityData)==null?void 0:d.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var O;return H==null?void 0:(O=H.bellAccessibilityData)==null?void 0:O.disabledLabel;default:var f;return H==null?void 0:(f=H.unsubscribeButtonContent)==null?void 0:f.accessibilityText}}else{var J;return H==null?void 0:(J=H.subscribeButtonContent)==null?void 0:J.accessibilityText}};
XZ7=function(H,U){return _.rH(H.entities,"subscriptionStateEntity",U)};
iVc=function(H,U){return _.rH(H.entities,"subscriptionNotificationStateEntity",U)};
bVr=function(H,U){return _.rH(H.entities,"upcomingEventReminderStateEntity",U)};
dR0=function(H,U){return _.rH(H.entities,"commentEntityPayload",U)};
OV7=function(H,U){return _.rH(H.entities,"engagementToolbarSurfaceEntityPayload",U)};
u6V=function(H,U){return _.rH(H.entities,"triStateButtonStateEntityPayload",U)};
ZVt=function(H,U){return _.rH(H.entities,"commerceCartCheckoutButtonEntity",U)};
fyN=function(H,U){return _.rH(H.entities,"commandEntity",U)};
JWr=function(H){if(H){switch(H){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":H="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":H="NOTIFICATIONS_OFF";break;default:H="NOTIFICATIONS_NONE"}return H}};
KQc=function(H,U,A){A.subscribed!==U&&((A=A.key)&&_.Le(_.hs("subscriptionStateEntity",A,{key:A,subscribed:U})),H.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:U})),U||_.yr(H,"yt-unsubscribe-action"))};
FQ8=function(H){H=_.p(_.ij(H),_.kY);var U,A,M,W;return(W=_.p(H==null?void 0:(U=H.panelLoadingStrategy)==null?void 0:(A=U.inlineContent)==null?void 0:(M=A.sheetViewModel)==null?void 0:M.content,oP0))==null?void 0:W.listItems};
PzV=function(H,U){if(H.onShowSubscriptionOptions&&U&&(H=FQ8(H.onShowSubscriptionOptions),H!=null&&H.length)){var A=JWr(U);H.forEach(function(M){M=_.p(M,_.vo);var W,w,d,O,f=M==null?void 0:(W=M.leadingImage)==null?void 0:(w=W.sources)==null?void 0:(d=w[0])==null?void 0:(O=d.clientResource)==null?void 0:O.imageName;M&&f&&(M.isSelected=f===A)})}};
s0K=function(H,U,A,M){U&&A?H.style.width=A+"px":!U&&M&&(H.style.width=M+"px")};
nPN=function(H,U,A){var M;(M=H.lottieEl)==null||M.goToAndPlay(0);var W;(W=U.lottieEl)==null||W.goToAndPlay(0);_.TB(_.Fl,function(){var w;(w=A.lottieEl)==null||w.goToAndPlay(0)},300)};
N0V=function(H){return!(H==null||!H.iconName||(H==null?0:H.title))};
Skh=function(H,U,A,M){A&&_.Fl.cancelJob(A);A=_.Fl.addLowPriorityJob(function(){M(void 0)},5E3);
M(A);U&&H!==(U.likeStatus==="LIKE")&&U.key&&_.Le(_.hs("likeStatusEntity",U.key,{key:U.key,likeStatus:H?"LIKE":"INDIFFERENT",hadUserInteraction:H}))};
_.pZM=function(H,U){return _.rH(H.entities,"accountLinkStatusEntity",U)};
LQc=function(H,U){return _.rH(H.entities,"hatsSurveyEntity",U)};
Rd8=function(H,U){return _.rH(H.entities,"hatsSurveyStateEntity",U)};
EP_=function(H,U){return _.rH(H.entities,"quantityIncrementerEntity",U)};
mRK=function(H){switch(H){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
gP7=function(H){switch(H){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}};
ayF=function(H){switch(H){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.zdN=function(H){var U=_.hr("web_generic_client_event_wait_period ",0);U||(U=3E5);var A=xRV.get(H);!_.S("enable_web_client_experiment_event_timeout_killswitch")&&A&&(0,_.lD)()-A<U||(xRV.set(H,(0,_.lD)()),_.Fx("genericClientExperimentEvent",{eventType:H}))};
_.CzF=function(H,U){var A,M,W,w;a:{var d=H.style;if(d===void 0)d=17;else switch(d){case "LIVE":d=18;break a;default:d=17}}return{type:d,text:U?Znr({seconds:U}):_.Sp(H.text),accessibilityText:(A=H.text)==null?void 0:(M=A.accessibility)==null?void 0:(W=M.accessibilityData)==null?void 0:W.label,icon:(w=H.icon)==null?void 0:w.iconType}};
tuc=function(H){switch(H){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
cW0=function(H){if(!H)return"";var U,A=(U=_.lx().resolve(_.$V(_.qF)))==null?void 0:U(),M;if(!A&&((M=H.vibrantColorPalette)==null?0:M.iconInactiveColor))return dn(H.vibrantColorPalette.iconInactiveColor,"1");var W;return A&&((W=H.darkColorPalette)==null?0:W.iconInactiveColor)?dn(H.darkColorPalette.iconInactiveColor,"1"):H.color?dn(H.color,"1"):H.sampledThumbnailColor?(H=H.sampledThumbnailColor,"rgba("+H.red+","+H.green+","+H.blue+");"):""};
_.jI=function(H,U){if(!H.includes("DATE_PLACEHOLDER"))return H;var A=new Date(0);A.setUTCSeconds(U);return H.replace("DATE_PLACEHOLDER",yW4(A))};
B00=function(H,U,A){return function(M){var W=H.command;W&&(lj(W,{form:{element:A}}),U([W],M))}};
edV=function(H,U,A,M,W){return function(w){var d=rWV(H,U);d&&lj(d,{form:{element:A},commandController:M});W&&w.stopPropagation()}};
rWV=function(H,U){if(H.signInEndpoint&&!_.S("web_subscribe_sign_in_endpoint_killswitch"))return H.signInEndpoint;if(U){if(H.serviceEndpoints)return H.serviceEndpoints[1];if(H.onUnsubscribeEndpoints)return H.onUnsubscribeEndpoints[0]}else{if(H.serviceEndpoints)return H.serviceEndpoints[0];if(H.onSubscribeEndpoints)return H.onSubscribeEndpoints[0]}};
DRF=function(H,U){var A,M,W,w;U=U&&((A=H.unsubscribeAccessibility)==null?void 0:(M=A.accessibilityData)==null?void 0:M.label)||((W=H.subscribeAccessibility)==null?void 0:(w=W.accessibilityData)==null?void 0:w.label);return H.longSubscriberCountText?[U,_.Sp(H.longSubscriberCountText)].filter(function(d){return d}).join(" "):U};
IL=function(H,U){return U||(H==null?0:H.isChannelDelegate)?"disabled":"active"};
$Rt=function(H,U){var A;switch((A=H.style)==null?void 0:A.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:IL(H)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:IL(H)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:IL(H,!0)};case "OVERLAY":return U?{style:"overlay",type:"tonal",state:IL(H)}:{style:"overlay",type:"filled",state:IL(H)};default:return U?{style:"mono",type:"tonal",state:IL(H)}:{style:"mono",type:"filled",state:IL(H)}}};
_.QU=function(){for(var H=[],U=_.b(_.QY.apply(0,arguments)),A=U.next();!A.done;A=U.next())if(A=A.value)if(typeof A==="string")H.push(A);else{A=_.b(Object.entries(A));for(var M=A.next();!M.done;M=A.next()){var W=_.b(M.value);M=W.next().value;(W=W.next().value)&&H.push(M)}}return H.join(" ")};
lyc=function(H){switch(H){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
GNE=function(H){switch(H){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
YkV=function(H,U){var A=H.map(function(M){return M.toString()});
return _.c$(function(M){if(A.includes(M.key)){U&&M.preventDefault();var W;(W=M.currentTarget)==null||W.click()}})};
_.VU=function(){return YkV(["Enter"])};
_.qkK=function(){return YkV(["Enter"," "],!0)};
_.Hq=function(H){if(H.composedPath)return H.composedPath();if(!H.__composedPath){for(var U=[],A=H.target;A;)U.push(A),A=A.parentNode;U.push(window);H.__composedPath=U}return H.__composedPath};
_.Uy=function(H,U,A){H=_.b(H);for(var M=H.next();!M.done;M=H.next()){M=M.value;if(M===U)break;for(var W=_.b(A),w=W.next();!w.done;w=W.next())if(w=w.value,M.tagName===w||M.role==="button"&&w==="BUTTON")return!0}return!1};
kN0=function(H,U){var A,M=(A=U.observer)!=null?A:_.lx().resolve(ru);if(H){A=hdc(H);var W=[];U.showOption&&W.push(M.observe(H,function(){U.visibilityCallback(!0,H)},U.showOption));
U.hideOption&&W.push(M.observe(H,function(){U.visibilityCallback(!1,H)},U.hideOption));
U.prescanOption&&U.prescanCallback&&W.push(M.observe(H,function(){U.prescanCallback()},U.prescanOption));
var w;A.visibilityMonitorKeys=((w=A.visibilityMonitorKeys)!=null?w:[]).concat(W)}};
hdc=function(H){var U;return(U=H.polymerController)!=null?U:H};
_.MG=function(H){return!!_.AF(H)};
_.Wq=function(H,U,A,M,W){return function(w){var d=isF();_.Em(function(){if(w){vP0(w,H(),W);var O=T0N(w,H(),U,A,M,d);_.m4(O)}},"lrewVd")}};
vP0=function(H,U,A){var M=j07(U),W=IyM(U),w=M&&MEM,d=W&&AiK;(M||W)&&kN0(H,{visibilityCallback:function(O){var f=_.lx().resolve(_.YV);O&&M?(f.resolveCommand(M,{form:{element:A?H:void 0},disableClickTracking:!0}),M=j07(U)):!O&&W&&(f.resolveCommand(W,{form:{element:A?H:void 0},disableClickTracking:!0}),W=IyM(U))},
showOption:w,hideOption:d})};
T0N=function(H,U,A,M,W,w){var d=new Map;if(U=_.AF(U)){var O;H=(M==null?void 0:(O=M.onTap)==null?void 0:O.value)||H;A=Q0V(U,H,A==null?void 0:A.onTap,W,w);H.addEventListener("click",A);d.set("click",A)}return function(){for(var f=_.b(d),J=f.next();!J.done;J=f.next()){var F=_.b(J.value);J=F.next().value;F=F.next().value;H.removeEventListener(J,F)}}};
_.AF=function(H){var U;return(H=(U=_.p(H,_.w7))==null?void 0:U.onTap)&&_.ij(H)};
j07=function(H){var U;return(H=(U=_.p(H,_.w7))==null?void 0:U.onVisible)&&_.ij(H)};
IyM=function(H){var U;return(H=(U=_.p(H,_.w7))==null?void 0:U.onHidden)&&_.ij(H)};
Q0V=function(H,U,A,M,W){var w=function(O){_.lx().resolve(_.YV).resolveCommand(H,O)},d=function(O){M&&_.Uy(_.Hq(O),U,M)||w(O.target?{form:{element:O.target,
sourceData:H,mutationContext:W}}:void 0)};
A&&(d=function(O){A(O,w)});
return d};
Vu8=function(H){switch(H){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}};
Hzt=function(H){var U=H.numAvatarsInCluster;switch(H.clusterSize){case "small":return U===2?22:18;case "40":return U===2?24:22;default:return U===2?24:20}};
Um7=function(H,U){return function(A){var M=Object.keys(U);_.Em(function(){if(H!=null&&H()){for(var W=_.b(M),w=W.next();!w.done;w=W.next())w=w.value,A.addEventListener(w,U[w]);_.m4(function(){for(var d=_.b(M),O=d.next();!O.done;O=d.next())O=O.value,A.removeEventListener(O,U[O])})}},"bXZGfe")}};
AxN=function(H){switch(Hzt(H)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
MnE=function(H){switch(H){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""}};
WxE=function(H){switch(Hzt(H)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
wpc=function(H){switch(H){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""}};
XpE=function(H){switch(H){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}};
izV=function(H){return H==="medium"||H==="48"||H==="large"||H==="extra-large"||H==="extra-extra-large"||H==="giant"};
bzh=function(H){return!!((H==null?0:H.includes(3))||(H==null?0:H.includes(5)))};
Ozt=function(H){var U=H.data;return{size:dmE(U.avatarImageSize),type:U.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:H.onTap,decorations:H.decorations||[],badgeText:H.badgeText,accessibilityText:H.accessibilityText,avatarButtonCustomClassName:H.avatarButtonCustomClassName,clusterLayoutConfig:H.clusterLayoutConfig}};
dmE=function(H){switch(H){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_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
uMF=function(H){switch(H){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_40":return 40;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}};
Zzr=function(H){switch(H){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
fi7=function(H){var U=H.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",A,M=H.avatars&&H.avatars.length>0?(A=_.p(H.avatars[0],_.Xd))==null?void 0:A.avatarImageSize:"AVATAR_SIZE_UNKNOWN";A=uMF(M)||0;if(U){var W,w=(W=H.avatarClusterSize)!=null?W:"AVATAR_SIZE_M";U=uMF(w);var d,O,f=Math.min((O=(d=H.avatars)==null?void 0:d.length)!=null?O:0,4),J;return{avatars:((J=H.avatars)==null?void 0:J.slice(0,4))||[],avatarSizeInPx:A,avatarStackStyle:{width:U+"px",height:U+"px",position:"relative"},avatarStyle:function(P){var n=
Hzt({clusterSize:dmE(w),numAvatarsInCluster:f,avatarIndex:P});var N=uMF(w);f===3&&P===2?(N=(N-n)/2,N=(_.gD("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*N):N=void 0;return{position:"absolute",top:f===2&&P===1||f===3&&P===2||f===4&&P>=2?"0":void 0,bottom:f===2&&P===0||f>2&&P<2?"0":void 0,left:f===2&&P===1||f>2&&(P===1||P===3)?"0":void 0,right:f<=3&&P===0||f===4&&(P===0||P===2)?"0":void 0,transform:N?"translateX("+N+"px)":void 0,width:n+"px",height:n+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(P){return{clusterSize:dmE(H.avatarClusterSize),numAvatarsInCluster:f,avatarIndex:P}},
avatarButtonCustomClassName:void 0}}var F;return{avatars:((F=H.avatars)==null?void 0:F.slice())||[],avatarSizeInPx:A,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:Zzr(M),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
Jx8=function(H,U,A){return function(){lj(H,{form:{element:U},commandController:A})}};
KxN=function(H){switch(H){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
oWc=function(H){switch(H){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
Fxc=function(H){if("accessibilityText"in H)return H.accessibilityText||"";if("title"in H){var U,A,M;return((U=H.title)==null?void 0:(A=U.accessibility)==null?void 0:(M=A.accessibilityData)==null?void 0:M.label)||""}if("accessibility"in H){var W,w;return((W=H.accessibility)==null?void 0:(w=W.accessibilityData)==null?void 0:w.label)||""}return""};
PqE=function(H){return"inlinePlayerData"in H};
iA=function(H){return new sI4(H)};
nWc=function(H){switch(H){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"}};
NdV=function(H){switch(H){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;case "BADGE_MEDIA":return 1;case "BADGE_TIMELY":return 5;default:return 0}};
SwE=function(H){switch(H){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}};
ppV=function(H){return function(U){H&&(H.thumbnailElRef=U.thumbnailElRef,H.thumbnail=U.thumbnail,H.thumbnailOverlays=U.thumbnailOverlays,H.thumbnailSize=U.thumbnailSize)}};
Lxr=function(H){switch(H){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
EWF=function(H){var U=_.b(_.iB(!1,void 0,"E6wDDe")),A=U.next().value,M=U.next().value;_.LA(function(){var W=H==null?void 0:H();if(W){var w=_.lx().resolve(_.$V(R9h));if(w){var d={triggeringElement:W,onDwellTriggeredFn:function(){M(!0)},
onDwellEndFn:function(){M(!1)}};
w.registerElement(d);_.m4(function(){_.bA(w,d)})}}});
return A};
mmN=function(H){if(H.querySelector("img")){var U=H.querySelector("img");U.addEventListener("error",function(){Ogc(U.src).then(function(A){(A=_.I5(A).toString())?U.src=A:U.removeAttribute("src")}).catch(function(){U.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
gWh=function(H,U,A){A?A(U):_.uj(U,H.target?{form:{element:H.target}}:void 0)};
_.d7=function(H,U,A,M){return function(W){_.Em(function(){function w(F){F=F.composedPath();F=_.b(F);for(var P=F.next();!P.done;P=F.next()){P=P.value;if(P===W)break;if(P.className.indexOf("HostIsClickableAdComponent")>=0||P.tagName==="A".toString()||P.tagName==="BUTTON".toString())return!0}return!1}
var d=new Map,O,f=(O=H())==null?void 0:O.onTap;if(f){O=function(F){w(F)||gWh(F,f,U)};
var J=function(F){w(F)||F.key!=="Enter"||gWh(F,f,U)};
(A==null?0:A())||_.S("enable_web_home_top_landscape_image_layout_level_click")?(W.addEventListener("tap",O),d.set("tap",O)):(W.addEventListener("click",O),d.set("click",O));if(M==null?0:M())W.addEventListener("keydown",J),d.set("keydown",J)}_.m4(function(){for(var F=_.b(d),P=F.next();!P.done;P=F.next()){var n=_.b(P.value);P=n.next().value;n=n.next().value;W.removeEventListener(P,n)}})},"D7XqOc")}};
ai4=function(H,U){var A,M=(A=H.interaction)==null?void 0:A.onTap;if(H=_.dA({elementsCommand:M,forceNewState:!0,skipOnClick:!0}))return H.onclick=function(W){D4t(W)&&(W.preventDefault(),M&&gWh(W,M,U))},OB(H)?H:void 0};
xmc=function(H){switch(H){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
z9E=function(H){switch(H){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
CqE=function(H){switch(H){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.tnK=function(H){return _.S("rich_grid_enable_dynamic_offset")&&H?Math.max((H-_.hr("rich_grid_dynamic_offset_anchor_width",1300))/100*_.hr("rich_grid_dynamic_offset_offset_per_100",10),_.hr("rich_grid_dynamic_offset_lower_bound",-60)):0};
cx4=function(H,U){switch(U){case 4:return 16;case 1:return H<528?16:H<1024?32:48;case 2:return(H>=528?16:8)/2;case 3:return(H<528?16:H<1024?32:48)+(H>=528?16:8)/2;default:return 0}};
yxE=function(H){var U=H.originalContainerWidth;var A=H.sizing;var M=H.standardUnit;if(H.isCompactList&&U<528)return 1;switch(A){case "STANDARD":return M;case "COMPACT":return M+1;case "EXTRA_COMPACT":return _.S("web_responsive_extra_compact_2x")?M*2:_.S("web_responsive_current")?M===1?2:M%2===0?M/2*3:M+2:M<4?M*2:Math.ceil(M*3/2);case "MINI":return M>1?M*2:3;default:return M}};
rxc=function(H){var U=H.containerWidth;var A=H.peek;var M=H.gutter;var W=H.numItems;H=H.ignoreMaxWidthLimit;U=A?Math.max((U-A-M*W)/W,0):Math.max((U-M*(W-1))/W,0);return H?U:Math.min(U,Bdh)};
_.Oy=function(H){var U=H.containerWidth;var A=H.hasPeek;var M=H.sizing;var W=H.marginSettings;var w=H.isCompactList;var d=H.enableFullBleedForSingleCol;var O=H.standardUnitMinWidth;M=M||"STANDARD";A=!!A;H=U>=528?16:8;var f=A?U>=528?48:24:0;W=cx4(U,W);var J=Math.max(U-W*2,0);O=_.S("kevlar_disable_min_width_override")?void 0:O;O=Math.min(Math.max(Math.floor((J-f+H)/((O!=null?O:e9h)+_.tnK(U)+H)),1),6);var F=(d=!!d&&O===1)||O===1&&M!=="STANDARD";A=A||F?J:Math.min(J,(Bdh+H)*O-H);M=yxE({originalContainerWidth:U,
sizing:M,standardUnit:O,isCompactList:w});return{itemWidth:rxc({containerWidth:A,peek:f,gutter:H,numItems:M,ignoreMaxWidthLimit:F}),gutter:H,maxContainerWidth:A,numItems:M,margin:d?0:W,contentMargin:cx4(U,1),typographyBump:rxc({containerWidth:A,peek:f,gutter:H,numItems:O,ignoreMaxWidthLimit:F})>400&&!(w&&U<528),standardUnit:O}};
uA=function(H){switch(H){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.Dm_=function(H){if(H){var U;if((U=H.responsiveContainerConfiguration)==null?0:U.responsiveSize)return uA(H.responsiveContainerConfiguration.responsiveSize);if(H.layoutSizing)switch(H.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"}}};
$mc=function(H){if(H.fullbleed)return 1;switch(H.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
h9c=function(H,U,A,M,W,w,d,O,f){a:if(H===4&&M==="LOCKUP_CONTENT_TYPE_SOURCE")var J=1;else switch(H){case 3:J=1;break a;default:J=0}var F=liF(H,M);a:switch(H){case 4:w=!!(w&&w<100);break a;default:w=!1}a:switch(H){case 3:case 4:var P=M==="LOCKUP_CONTENT_TYPE_CHANNEL"||M==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:P=!1}return{metadataOnThumbnail:F,isOverlay:O||F,isCard:GwN(M,d),sizing:U!=null?U:"STANDARD",typographyBump:A!=null?A:!1,isTiny:w,isCentered:P,isCollection:Ywr(M),arrangement:J,addMarginForFullbleed:H===
1&&M!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:H===1&&M==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:qwh(M,W,f),disableRounding:H===5||GwN(M,d)||H===1&&M==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:Ywr(M)?2:0,useLegacyTypography:!(f==null||!f.useLegacyTypography),useRichGridLegacyTypography:!(f==null||!f.useRichGridLegacyTypography)&&!_.S("web_enable_typography_bump"),compactMetadata:J===0&&M==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:f==null?void 0:f.onFocusEffect,titleMaxLines:M==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
Ywr=function(H){switch(H){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
GwN=function(H,U){if(U&&H==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(H){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
liF=function(H,U){if(U==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(H){case 5:return!0;case 4:return!1;default:return!1}};
qwh=function(H,U,A){if(U&&(A==null||!A.alwaysRespectPodcastShowAspectRatio||H!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(H){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}};
_.Zf=function(H){if(H){var U;return((U=_.lx().resolve(_.$V(_.qF)))==null?0:U())?H.darkThemeImage:H.image}};
Td0=function(H,U,A,M,W,w){if(W&&w&&U==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:W,height:w};if(!A)return{};W=A.size;A=A.allowFullWidth;if(U==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&A)return{fullWidth:!0};if(W===void 0)return{};switch(H){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:W,height:W};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:W,height:1/kwM*W};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:W*
vWc,height:W};default:return(M==null?0:M.height)&&(M==null?0:M.width)?M.width/M.height>1?{maxWidth:W*vWc}:{maxWidth:W}:{maxWidth:W}}};
jI0=function(H){var U;return H&&((U=_.Zf(H.themedImage))!=null?U:H.image)};
Ii8=function(H){var U;return H==null?void 0:(U=H.sources)==null?void 0:U[0]};
QIV=function(H){switch(H){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.Vnr=function(H){if(H)return"content-id-"+H};
H0t=function(H){switch(H.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"}}};
Ut4=function(H){var U=_.fl.currentPageSubTypeSelector(_.Sq().getState())||"";return H?H+U:""};
A47=function(H){switch(H){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
WsV=function(H){var U=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],A=_.b(_.iB(void 0,void 0,"JrqNsb")),M=A.next().value,W=A.next().value,w=_.b(_.iB(void 0,void 0,"rWytse"));A=w.next().value;var d=w.next().value;w=_.b(_.iB(void 0,void 0,"DHRqxe"));var O=w.next().value,f=w.next().value;return{touchFeedbackEvents:{pointerUpEvent:M,pointerDownEvent:A,pointerLeaveEvent:O},touchFeedbackOnPointerUp:_.c$(function(J){MaM(_.Hq(J),U)||(W(J),d(void 0),f(void 0))}),
touchFeedbackOnPointerDown:_.c$(function(J){H==null||H(J);MaM(_.Hq(J),U)||(d(J),W(void 0),f(void 0))}),
touchFeedbackOnPointerLeave:_.c$(function(J){MaM(_.Hq(J),U)||(f(J),d(void 0),W(void 0))})}};
MaM=function(H,U){U=U===void 0?[]:U;U=[].concat(_.vI(U),["BUTTON".toString()]);H=_.b(H);for(var A=H.next();!A.done;A=H.next()){A=A.value;for(var M=_.b(U),W=M.next();!W.done;W=M.next())if(A.tagName===W.value)return!0}return!1};
wkh=function(H){switch(H){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_MPLUS":return"48";case "AD_AVATAR_SIZE_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
Xk8=function(H){return H.scrollHeight-H.offsetHeight>1};
i08=function(H,U){var A;return KG(H,((A=H.content)==null?void 0:A.length)||0,!U)};
O0t=function(H,U,A,M,W,w){if(!U||b07){var d;return KG(H,((d=H.content)==null?void 0:d.length)||0,!0)}U=M.value;if(!A.value||!U||!H.content)return H;A=0;M=H.content.length;d=0;dtc||(dtc=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var O=dtc;for(W=W*w*O;A<=M;)w=Math.floor(A+(M-A)/2),O=KG(H,w)||H,U.firstChild&&(U.firstChild.textContent=O.content),U.scrollHeight>W?M=w-1:(d=w,A=w+1);return KG(H,d)};
uv4=function(H,U){var A,M;return(((A=H.content)==null?void 0:A.length)||0)>(((M=U.content)==null?void 0:M.length)||0)};
Z0M=function(H,U,A,M,W,w){var d=_.nA("truncated-text-content"),O=_.nA("truncated-text-content"),f=_.nA("button"),J=_.nA("button"),F=_.nA("button"),P=_.lx().resolve(_.JF),n=_.b(_.md(function(){return i08(H(),W())})),N=n.next().value,L=n.next().value;
n=_.b(_.md(function(){return uv4(H(),N())}));
var m=n.next().value,z=n.next().value,c=null;_.Em(function(){function C(){if(d.value&&f.value&&F.value){var D=w()?H():O0t(H(),W(),d,O,U(),A());L(D);requestAnimationFrame(function(){if(d.value&&f.value&&F.value){var h=Xk8(d.value)||uv4(H(),D);z(h);if(!M()){var T=Xk8(d.value),WF=A(),dK=d.value,SN=f.value,o_=F.value,PF=P==="rtl";if(dK&&SN){var BF=SN.offsetLeft;PF&&(BF=dK.offsetWidth-SN.offsetWidth-SN.offsetLeft);if(h){h=SN.offsetWidth;SN=dK.offsetWidth;var kc=T?SN-h-70:BF-70;WF="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
WF+"rem,\n      #000 "+WF+"rem,\n      #000 100%), linear-gradient(\n      to "+((PF?"left":"right")+",\n      #000 0px,\n      #000 "+kc+"px,\n      transparent "+(T?SN-h:kc+70)+"px)");dK.style.setProperty("-webkit-mask-image",WF);dK.style.setProperty("mask-image",WF)}else dK.style.setProperty("-webkit-mask-image",""),dK.style.setProperty("mask-image","");T?PF?(o_.style.setProperty("left","0"),o_.style.setProperty("right","unset")):(o_.style.setProperty("left",""),o_.style.setProperty("right","0")):
PF?(o_.style.setProperty("left","unset"),o_.style.setProperty("right",BF+"px")):(o_.style.setProperty("left",BF+"px"),o_.style.setProperty("right","unset"))}}}})}}
var v,Y;(v=c)==null||(Y=v.stop)==null||Y.call(v);v=new _.B$(C,17);C();c=v},"KjwIxd");
_.LA(function(){L(i08(H(),W()));z(uv4(H(),N()));var C=function(){dtc=void 0;var Y,D;(Y=c)==null||(D=Y.fire)==null||D.call(Y)};
if(window.ResizeObserver){var v=new ResizeObserver(C);v.observe(d.value);_.m4(function(){var Y,D;(Y=c)==null||(D=Y.stop)==null||D.call(Y);v.disconnect()})}else window.addEventListener("resize",C),_.m4(function(){var Y,D;
(Y=c)==null||(D=Y.stop)==null||D.call(Y);window.removeEventListener("resize",C)})});
return{isTruncated:m,displayText:N,contentRef:d,hiddenRef:O,placeholderTruncationTextRef:f,hiddenTruncationTextRef:J,truncationTextRef:F}};
fFr=function(H){return{content:H!=null?H:""}};
J4K=function(H){return _.ij(H.onTap)||_.AF(H.rendererContext)};
Ks8=function(H){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:H.overflowMenuA11yLabel,onTap:function(U){U.preventDefault();U.stopPropagation();if(H.overflowMenuOnTap){var A=_.dA({elementsCommand:H.overflowMenuOnTap,forceNewState:!0});if(A==null?0:A.onclick)A.onclick(U)}}}};
_.Kl=function(H,U,A,M,W){M=M===void 0?{}:M;if(!W||Math.random()<5E-4){U=U||null;A=A||null;H=H instanceof Error?H:new _.bD(H);if(H.args)for(var w=_.b(H.args),d=w.next();!d.done;d=w.next())d=d.value,d instanceof Object&&(M=Object.assign({},d,M));M.category="H5 Ads Control Flow";U&&(M.slot=U?"slot:  "+U.slotType:"");A&&(M.layout=A?"layout:  "+A.layoutType:"",M.layoutId=A.layoutId);W&&(M.known_error_aggressively_sampled=!0);H.args=[M];_.Na(H)}};
_.oqc=function(H,U){U=_.E_(U);_.yr(H,"yt-open-popup-action",[U,H])};
_.oR=function(H,U){_.oqc(H,_.Nh(U))};
Pic=function(H){if(!H)return"";if(FsE[H])return FsE[H];Fd||(Fd=_.Q9("A"));Fd.href!==H&&HI(Fd,H);var U=Fd.pathname;FsE[H]=U.startsWith("/")?U:"/"+U;return FsE[H]};
sKt=function(){var H=Pic(window.location.href);if(H==="/")return"home";if(H.startsWith("/results"))return"search";if(H.startsWith("/watch"))return"watch";if(H.startsWith("/shorts"))return"shorts";if(H.startsWith("/hashtag"))return"hashtag";if(H.startsWith("/create_channel"))return"create_channel";if(H.startsWith("/@")||H.startsWith("/user/")||H.startsWith("/channel/"))return"channel";if(H.startsWith("/experiments"))return"experiments";if(H.startsWith("/sponsor_channel"))return"sponsorship";if(H.startsWith("/select_site"))return"settings";
if(H.startsWith("/locate"))return"locate";if(H.startsWith("/redeem"))return"redeem";if(H.startsWith("/musicpremium")||H.startsWith("/premium")||H.startsWith("/red"))return"premium";if(H.startsWith("/paid_memberships"))return"paid_memberships";if(H.startsWith("/oops"))return"oops";if(H.startsWith("/clip"))return"clip";var U;return(Pq==null?void 0:(U=Pq.response)==null?void 0:U.page)==="404"?"404":H.startsWith("/feed/history")?"history":H.startsWith("/feed/library")?"library":H.startsWith("/feed/subscriptions")?
"subscriptions":H.startsWith("/feed/trending")?"trending":H.startsWith("/feed/news_destination")?"news":H.startsWith("/playlist")?"playlist":H.startsWith("/minor_moment")?"minor_moment":H.startsWith("/playable/")||H.match("^/playables/(?!saved).")?"mini_app":H.startsWith("/playables")?"playables":H.startsWith("/create/live/join")?"open_in_app":H.startsWith("/feed/explore")?"explore":"browse"};
_.nl=function(){var H=Pq==null?void 0:Pq.response,U=H==null?void 0:H.endpoint;if(!U)return(H==null?void 0:H.page)==="watch"?"watch":sKt();var A;H=(A=_.p(U==null?void 0:U.commandMetadata,_.Y2))==null?void 0:A.webPageType;A=!1;if(H&&!nq4.includes(H))switch(H){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 M;return((M=_.p(U==null?void 0:U.commandMetadata,_.Y2))==null?0:M.url)&&Pic(_.p(U.commandMetadata,_.Y2).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var W;return(U=(W=_.p(U,_.Gv))==null?void 0:W.browseId)?Nt4[U]||"browse":"browse";default:A=!0}if(_.p(U,_.sy)||_.p(U,SIF))return"sponsorship";W=Pic(window.location.href);if(W.startsWith("/experiments"))return"experiments";if(W.startsWith("/create_channel"))return"create_channel";
if(_.p(U,_.gu)&&W.startsWith("/shorts"))return"shorts";if(_.p(U,_.gu)&&W.startsWith("/watch"))return"watch";A&&(U=new _.bD("Unsupported mWeb page type",{pathname:W,webPageType:H}),_.sD(U));return"browse"};
NG=function(H,U,A,M){return H&&U?H!==A||U!==M?(_.Kl(Error("Mh"),void 0,void 0,{"stored-slot":H,"stored-layout":U,"latest-slot":A,"latest-layout":M}),!1):!0:!1};
LsE=function(H,U,A){return H({targetId:U},function(M){return A.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},M,{contents:[A.continuationItems?_.p(A.continuationItems[0],pkE):{}]}):A.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},M,{header:A.continuationItems?A.continuationItems[0]:void 0}):Object.assign({},M,{contents:A.continuationItems?A.continuationItems:[]})})};
RiN=function(H,U,A,M){if(U=U.trackingParams){var W,w=(W=A.getScreenLayer)==null?void 0:W.call(A);A=_.XK(w);W=_.ws(w);if(A&&W){var d=_.IS(U);_.S("combine_ve_grafts")?H.graftServerVe(U,W,w):_.ou(A,W,d);M==null||M(d)}}};
mt7=function(H){var U;return((U=EqE.get(H))==null?void 0:U.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
xt4=function(H,U){var A={type:U.slotType,controlFlowManagerLayer:gqF.get(U.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};U.slotEntryTrigger&&(A.entryTriggerType=U.slotEntryTrigger.triggerType);U.slotPhysicalPosition!==1&&(A.slotPhysicalPosition=U.slotPhysicalPosition);if(H){A.debugData={slotId:U.slotId};if(H=U.slotEntryTrigger)A.debugData.slotEntryTriggerData=aF8(H);H=U.slotFulfillmentTriggers;A.debugData.fulfillmentTriggerData=[];H=_.b(H);for(var M=H.next();!M.done;M=H.next())A.debugData.fulfillmentTriggerData.push(aF8(M.value));
U=U.slotExpirationTriggers;A.debugData.expirationTriggerData=[];U=_.b(U);for(H=U.next();!H.done;H=U.next())A.debugData.expirationTriggerData.push(aF8(H.value))}return A};
aF8=function(H,U){var A={type:H.triggerType};U!=null&&(A.category=U);H.triggeringSlotId!=null&&(A.triggerSourceData||(A.triggerSourceData={}),A.triggerSourceData.associatedSlotId=H.triggeringSlotId);H.triggeringLayoutId!=null&&(A.triggerSourceData||(A.triggerSourceData={}),A.triggerSourceData.associatedLayoutId=H.triggeringLayoutId);return A};
zi_=function(H,U,A,M){U={opportunityType:U};H&&(M||A)&&(M=_.OA(M||[],function(W){return xt4(H,W)}),U.debugData=Object.assign({},A&&A.length>0?{associatedSlotId:A}:{},M.length>0?{slots:M}:{}));
return U};
Ci8=function(H){return S5(H.opportunityAdapterMap).concat(S5(H.triggerAdapterMap)).concat(S5(H.fulfillmentAdapterFactoryMap)).concat(S5(H.slotAdapterFactoryMap)).concat(S5(H.layoutRenderingAdapterFactoryMap))};
S5=function(H){var U=[];H=_.b(H.values());for(var A=H.next();!A.done;A=H.next())A=A.value,A.isAdsControlFlowEventListener&&U.push(A);return U};
Ll=function(H){var U=H.slotId,A=H.slotType,M=H.slotPhysicalPosition;return U===void 0?new pl("Cannot construct a slot due to the missing id.",{adSlotMetadata:H}):A===void 0?new pl("Cannot construct a slot due to the missing type.",{adSlotMetadata:H}):M===void 0?new pl("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:H}):{slotId:U,slotType:A,slotPhysicalPosition:M,managerLayer:"external",adSlotLoggingData:H.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new ta_}};
c4N=function(H){var U=H.layoutId,A=H.layoutType;return U===void 0?new RR("Cannot construct a layout due to the missing id.",{adLayoutMetadata:H}):A===void 0?new RR("Cannot construct a layout due to the missing type.",{adLayoutMetadata:H}):{layoutId:U,layoutType:A,managerLayer:"external",adLayoutLoggingData:H.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new ta_,interactionLoggingAdsClientData:{}}};
mL=function(H,U){if(U&&(y4c(U.viewableCommand)||y4c(U.endOfSessionCommand))){var A=Btr(U==null?void 0:U.viewableCommand);U=Btr(U==null?void 0:U.endOfSessionCommand);if(!Ey){var M=_.hr("custom_active_view_tos_timeout_ms");Ey=M>0&&M!==36E5?new r4c(eih(),M):new r4c(eih())}Dt_(Ey,H);$t4(Ey,H,A,U)}};
g7=function(H){Ey&&Dt_(Ey,H)};
eih=function(){var H=_.gD("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(H==null?void 0:H.length)===2?H[1]:null};
y4c=function(H){H=_.ij(H);return!(H==null||!H.loggingUrls)&&H.loggingUrls.length>0};
Btr=function(H){if(!H)return[];var U=[],A,M;((M=(A=_.ij(H))==null?void 0:A.loggingUrls)!=null?M:[]).forEach(function(W){W.baseUrl&&U.push(W.baseUrl)});
return U};
lF0=function(H){if(_.S("stop_av_measurement_on_detach"))return function(){g7(H)}};
G5E=function(H){return function(){_.S("stop_av_measurement_on_detach")&&g7(H)}};
YIc=function(H){if(_.S("stop_av_measurement_on_detach"))return function(){g7(H)}};
qIM=function(H){return H.shorts.isDesktopSmallWidth};
_.hiK=function(H){return H.shorts.isShortsActive};
_.k5F=function(H){return H.shorts.isWatchWhileMode};
_.aR=function(H){return H.shorts.isFullscreen};
_.xC=function(H){return H.shorts.isShortsPipActive};
Ttt=function(H){var U,A;if(H=(U=_.p(H.reelsAdCardButtoned,vqh))==null?void 0:(A=U.animatedRenderingConfig)==null?void 0:A.easeOutSeconds)return H+"s"};
IFM=function(H,U,A){return _.u(function(M){return M.return(new Promise(function(W){var w=new Image;w.onload=function(){W(new jKc(H,U,A,w.naturalWidth,w.naturalHeight))};
w.src=A.toString()}))})};
QK7=function(H,U){return Math.round(H/1E-5)===Math.round(U/1E-5)};
Va7=function(H,U){return Math.round(H/1E-5)===Math.round(U/1E-5)};
HS_=function(H,U){return H.year===U.year&&H.month===U.month&&H.day===U.day};
Uw8=function(H,U){return H.year!==U.year?H.year<U.year:H.month!==U.month?H.month<U.month:H.day<U.day};
MF7=function(H){return H.day===AX7(H.year,H.month)?H.month===11?{year:H.year+1,month:0,day:1}:{year:H.year,month:H.month+1,day:1}:{year:H.year,month:H.month,day:H.day+1}};
WWK=function(){var H=new Date,U={year:H.getFullYear(),month:H.getMonth(),day:H.getDate()};return{start:U,end:{year:H.getFullYear()+2,month:H.getMonth(),day:H.getDate()},selectedDate:MF7(U)}};
wfc=function(H){return(new nq(2)).format(new Date(H.year,H.month,H.day))};
XfV=function(H){return{year:H.getFullYear(),month:H.getMonth(),day:H.getDate()}};
iSt=function(H,U){H=(H+(Number(U.utcOffsetSec)+(new Date(H*1E3)).getTimezoneOffset()*60))*1E3;U=XfV(new Date(H));return{date:U,secondsSinceMidnight:Math.floor((H-(new Date(U.year,U.month,U.day)).getTime())/1E3)}};
bSV=function(H,U){U=U.months.findIndex(function(A){return A.year===H.year&&A.month===H.month});
return U>=0?U:void 0};
dwh=function(H){if(!H)return!1;try{if(H.host&&H.host.tagName==="YT-FORMATTED-STRING"&&H.host.id==="contenteditable-textarea"||H.nodeType===Node.ELEMENT_NODE&&H.tagName==="YTD-COMMENTBOX")return!0}catch(U){return!1}return dwh(H.parentNode)};
zn=function(H){return H?!(H.tagName!=="A"||!H.href||!H.classList.contains("yt-simple-endpoint")):!1};
OSM=function(H){return H?H.tagName==="IMG"&&H.classList.contains("emoji"):!1};
ur0=function(H,U,A){if(!H)return null;var M=zn(H);if(M&&A)return U=H.pathname.substring(H.pathname.indexOf("/channel/")+9),document.createTextNode("@"+U);if(M&&!A)return document.createTextNode("");if(OSM(H))return A=H.alt,H=H.dataset.emojiId,!H&&U&&(U=_.Cl(U,A))&&U.isCustomEmoji&&(H=U.emojiId),H?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+H+">"):document.createTextNode(A);M=H.cloneNode(!1);for(var W=0;W<H.childNodes.length;++W){var w=ur0(H.childNodes[W],U,A);w&&M.appendChild(w)}return M};
tF=function(H){return H?zn(H)?H:tF(H.lastChild):null};
ZS8=function(H){return H?zn(H)?H:ZS8(H.firstChild):null};
fP4=function(H){if(!H)return null;for(var U=H.previousSibling;U;)if(U.nodeType===Node.ELEMENT_NODE&&U.nodeName==="BR")U=U.previousSibling;else if(U.nodeType===Node.TEXT_NODE&&/\s+/.test(U.textContent))U=U.previousSibling;else break;(U=tF(U))?H=U:H=(H=H.parentNode)?tF(H.previousElementSibling):null;return H};
JXV=function(H){if(!H)return null;for(var U=H.nextSibling;U;)if(U.nodeType===Node.ELEMENT_NODE&&U.nodeName==="BR")U=U.nextSibling;else if(U.nodeType===Node.TEXT_NODE&&/\s+/.test(U.textContent))U=U.nextSibling;else break;return(U=ZS8(U))?U:JXV(H.parentNode)};
KWN=function(H){var U=_.TS(),A=U.JSC$11653_getStartNode();if(!dwh(A.parentNode))return null;U=U.JSC$11653_getStartOffset();if(A.nodeType===Node.TEXT_NODE){var M=_.Kp(A,zn);if(M){if(H&&U===0||!H&&U===A.length)return M}else{if(H&&U===A.length)return!A||A.nodeName==="BR"||A.nextElementSibling&&_.cq(A.nextElementSibling,"display")==="block"?null:ZS8(A.nextElementSibling);if(!H&&U===0)return A?tF(A.previousElementSibling):null}}if(A.nodeType===Node.ELEMENT_NODE)if(H){if(0<=U&&U<A.childNodes.length)return ZS8(A.childNodes[U])}else if(0<
U&&U<=A.childNodes.length)return tF(A.childNodes[U-1]);return null};
oHF=function(H,U,A){if(!H)return null;if(H.nodeType===Node.TEXT_NODE)if(A){var M=fP4(H);if(M&&!/^\s+\S/.test(H.wholeText.substr(0,U)))return M}else if((M=JXV(H))&&!/\S\s+/.test(H.wholeText.substr(U,H.wholeText.length)))return M;return H.nodeType===Node.ELEMENT_NODE?A?fP4(H.childNodes[U]):JXV(H.childNodes[U]):oHF(H.parentNode,U,A)};
FWF=function(H){if(H.hasChildNodes())switch(H.tagName){case "DIV":case "A":case "SPAN":var U="";for(H=H.firstChild;H;H=H.nextSibling)U+=FWF(H);return U;default:return""}else switch(H.nodeType){case 3:return H.textContent;default:return""}};
y8=function(H,U){return H.year===U.year&&H.month===U.month&&H.day===U.day};
Bq=function(H,U){return H.year!==U.year?H.year<U.year:H.month!==U.month?H.month<U.month:H.day<U.day};
P57=function(H){return{year:H.getFullYear(),month:H.getMonth(),day:H.getDate()}};
s7K=function(H){var U=nb7;U=U===void 0?nb7:U;U(new Date(H.year,H.month,H.day))};
r7=function(H){return P57(new Date(Number(H.seconds)*1E3))};
nH7=function(H){return H.year!==void 0&&H.month!==void 0&&H.day!==void 0};
NRc=function(H){return H.start!==void 0&&H.end!==void 0};
St4=function(H){return NRc(H)?H.start:H};
pf_=function(H){return NRc(H)?H.end:void 0};
Ruh=function(H,U){for(var A=[],M=new Date(H.start.year,H.start.month);M.getFullYear()<H.end.year||M.getFullYear()===H.end.year&&M.getMonth()<=H.end.month;){var W=A,w=W.push,d=M.getFullYear(),O=M.getMonth(),f=H,J=U,F=void 0,P=[],n=Object.freeze({extraCssClass:"invisible"}),N=new Date(d,O),L=P57(N);N=N.getDay();for(var m=P57(new Date);L.month===O;){N!==LWc&&F||(F=Array.from({length:7}).fill(n),P.push(F));var z={date:{year:d,month:O,day:L.day},extraCssClass:"",debugClass:""};z.extraCssClass=J(z.date,
L,m,f).trim();F[(N-LWc+7)%7]=z;L=L.day===AX7(L.year,L.month)?L.month===11?{year:L.year+1,month:0,day:1}:{year:L.year,month:L.month+1,day:1}:{year:L.year,month:L.month,day:L.day+1};N=(N+1)%7}w.call(W,{weeks:P,monthLabel:e5.SHORTMONTHS[O]+" "+d,year:d,month:O,monthLabelExtraCssClass:P[0][2]===n?"shift-down-label":""});M.setMonth(M.getMonth()+1)}return A};
EHE=function(H,U){U=U.months.findIndex(function(A){return A.year===H.year&&A.month===H.month});
return U>=0?U:void 0};
gHh=function(H,U){a:{var A=A===void 0?[2,3]:A;A=_.b(A);for(var M=A.next();!M.done;M=A.next()){var W=new Date;if((new mwK(M.value)).parse(U,W,{validate:!0})){W.setHours(0,0,0,0);U=W;break a}}U=null}if(!U)return{isValid:!1,value:void 0};U=P57(U);A=H.end;return Bq(U,H.start)||Bq(A,U)?{isValid:!1,value:void 0}:{isValid:!0,value:U}};
tF7=function(H){var U=aPt;U=U===void 0?xwc:U;var A=H.columnsToShow||[],M=zu7(H.columnDimensions,H.columnsToShow,H.leftFloatingColumns,U);return A.map(function(W,w){var d=H.columns[W];if(d===void 0)throw Error("Sh");var O=M?M[w]:"";var f=H.getCustomTooltip?H.getCustomTooltip(W,d.headerTooltipParagraphs):d.headerTooltipParagraphs;var J=C5K(H,W);return{type:W,index:w,style:O,classes:J,headerName:d.headerName||"",headerIcon:d.headerIcon,headerTooltipParagraphs:f||[],headerTooltipHelpContext:d.headerTooltipHelpContext,
sortOrders:d.sortOrders||[],selectionState:d.isSelectionCheckbox?H.selectionState:void 0}})};
C5K=function(H,U){var A=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],M=H.columns[U];if(M===void 0)return"";var W=A.includes("DEFAULTS")&&M.cssClass?[M.cssClass]:[];if(A.includes("SORTING")){M.sortOrders&&M.sortOrders.length&&W.push("sortable");if(H.sorting&&H.sorting.columnType===U)a:switch(H.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var w="column-sorted";break a;default:w=""}else w="";w&&W.push(w)}A.includes("FLOATING")&&(U=H.columnsToShow.indexOf(U),H.leftFloatingColumns&&U<H.leftFloatingColumns&&
W.push("floating-column"),H.leftFloatingColumns&&U===H.leftFloatingColumns-1&&W.push("last-floating-column"));A.includes("RIGHT_ALIGN")&&M.rightAlignHeader&&W.push("right-align");return W.filter(function(d){return d}).join(" ")};
zu7=function(H,U,A,M){A=A===void 0?0:A;M=M===void 0?xwc:M;if(H){var W=[],w=0;cX_(H,U,M).forEach(function(d,O){var f="min-width:"+d.minWidth+"px;padding-left:"+d.paddingLeft+"px;padding-right:"+d.paddingRight+"px;flex:"+d.flexGrow+" 0 "+d.minWidth+"px;";d.maxWidth!==Infinity&&(f=[f,"max-width:"+d.maxWidth+"px;"].join(""));w>0&&O<A&&(f=[f,"left:"+w+"px;"].join(""));W.push(f);w+=d.minWidth+d.paddingLeft+d.paddingRight});
return W}};
cX_=function(H,U,A){A=A===void 0?xwc:A;return U.map(function(M,W){M=H&&H[M]||{};var w=W===0?A.paddingLeftFirstColumn:A.padding;M.paddingLeft!==void 0&&(w=M.paddingLeft);W=W===U.length-1?A.paddingRightLastColumn:A.padding;M.paddingRight!==void 0&&(W=M.paddingRight);return{paddingLeft:w,paddingRight:W,minWidth:M.minWidth!==void 0?M.minWidth:A.minWidth,maxWidth:M.maxWidth!==void 0?M.maxWidth:A.maxWidth,flexGrow:M.flexGrow!==void 0?M.flexGrow:A.flexGrow}})};
yX4=function(H){var U=H.reduce(function(M,W){var w=W.columnId,d={};W.headerText&&(d.headerName=_.Sp(W.headerText));W.rightAlignHeader&&(d.rightAlignHeader=W.rightAlignHeader);var O;if((O=W.headerIcon)==null?0:O.iconType)d.headerIcon=_.eq(W.headerIcon.iconType);M[w]=d;return M},{}),A=H.filter(function(M){return!M.hideColumn}).map(function(M){return M.columnId});
H=H.filter(function(M){return!!M.dimensions}).reduce(function(M,W){M[W.columnId]=W.dimensions;
return M},{});
return{columns:U,columnsToShow:A,columnDimensions:H}};
_.BRr=function(H){return H?H.simpleText?H.simpleText:H.runs?H.runs.map(function(U){return U.text}).join(""):"":""};
GEc=function(H){var U=H.data;var A=H.onTap;var M=H.isSelected;var W=H.onFocusIn;if(!U)return{};H=rX_(U);M===void 0&&(M=U==null?void 0:U.isSelected);var w;return{text:euc(U,H),startIcon:(w=U.icon)==null?void 0:w.iconType,state:M?0:2,type:0,style:DwN(U),onTap:$w0(U,A),accessibilityLabel:lP_(U,H),onFocusIn:function(){return W==null?void 0:W()}}};
euc=function(H,U){if(!U)return H.text?_.BRr(H.text):void 0};
DwN=function(H){var U;switch((U=H.style)==null?void 0:U.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
$w0=function(H,U){return function(A){U==null||U(A,H)}};
rX_=function(H){H=H.style&&H.style.styleType;return!b07&&H==="STYLE_EXPLORE_LAUNCHER_CHIP"};
lP_=function(H,U){if(U){var A,M,W;return(W=(A=H.accessibilityData)==null?void 0:(M=A.accessibilityData)==null?void 0:M.label)!=null?W:euc(H,!1)}};
YtK=function(){var H;return[function(U,A,M){return _.cg(H,U,A,M)},
function(U){H=U}]};
qt8=function(H,U){return _.rH(H.entities,"chipEntity",U)};
kEt=function(H,U,A,M){return function(){var W=huM.has(H.displayType)&&H.selected,w=W&&H.deselectCommand?H.deselectCommand:H.tapCommand;!w||W&&M||_.uj(w,{form:{element:U==null?void 0:U.value}});A==null||A()}};
vH8=function(H,U){U=U==null?void 0:U.stepStates;if(H&&U){var A,M;return(A=U[H])==null?void 0:(M=A.userQuery)==null?void 0:M.userQuery}};
Df=function(H){return{signalAction:{signal:H}}};
IPc=function(){return _.gD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?TRh:_.j70};
Q7c=function(H,U){H=H===void 0?"SOFT_RELOAD_PAGE":H;U=U===void 0?49504:U;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.gH(_.hP("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:U}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:H}}]}}}};
VFV=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.gH(_.hP("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:IPc()}};
HbV=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.gH(_.hP("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:IPc()}};
U3h=function(H,U){var A=_.gH(_.hP("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),M=_.gH(_.hP("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),W={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.gH(_.hP("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};W.serviceEndpoint=H?H:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Df("SOFT_RELOAD_PAGE")]}};return{title:A,bodyText:M,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:W},
style:{value:U!=null?U:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
MS4=function(H){H=H===void 0?{}:H;return{title:_.gH(H.localizedZeroStateTitleText===void 0?"":H.localizedZeroStateTitleText),bodyText:_.gH(H.localizedZeroStateMessage===void 0?"":H.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.gH(H.localizedZeroStateButtonText===void 0?"":H.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[AdN]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
wGc=function(H){H=H===void 0?{}:H;return{title:_.gH(H.localizedOptInBannerTitleText===void 0?"":H.localizedOptInBannerTitleText),titleLength:19,subtitle:_.gH(H.localizedOptInMessage===void 0?"":H.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.gH(_.hP("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:_.gH(_.hP("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:[Wkh]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
bbF=function(H,U){var A=U=U===void 0?{}:U;U=A.offlineTitleText===void 0?"":A.offlineTitleText;var M=A.offlineDescriptionText===void 0?"":A.offlineDescriptionText,W=A.formattedSupplementalText,w=A.actionButtonText===void 0?"":A.actionButtonText,d=A.titleText===void 0?"":A.titleText;A=A.descriptionText===void 0?"":A.descriptionText;var O={title:w,accessibilityText:w,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};H||(d=U,A=M,O={title:w,accessibilityText:w,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.gH(d),titleLength:d.length,overrideTitleMaxFontSize:30,subtitle:_.gH(A),supplementalText:W,primaryButton:{buttonViewModel:O},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[XGN]},darkTileImage:{thumbnails:[ibN]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.uCV=function(H,U,A,M,W,w,d,O,f,J,F){W=W===void 0?!1:W;w=w===void 0?!1:w;d=d===void 0?0:d;O=O===void 0?-Infinity:O;f=f===void 0?!1:f;J=J===void 0?!1:J;F=F===void 0?!1:F;var P=[],n=_.gH(_.hP("SMART_DOWNLOADS",void 0,"Smart downloads")),N=_.gH(d30(d,O,H.length));O=d=void 0;J?d={statementBannerRenderer:bbF(F,M)}:W?H.length>0?O=Obc(H,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.S("kevlar_manual_downloads_above"),n,N):f?O={alertBannerViewModel:{heading:{content:A.localizedOptInBannerTitleText===
void 0?"":A.localizedOptInBannerTitleText},body:{content:A.localizedPromptMessage===void 0?"":A.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.hP("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.hP("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:_.A1c}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:w&&(O={backgroundPromoRenderer:{bodyText:_.gH(_.hP("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"}}}):
w&&(O={alertBannerViewModel:{heading:{content:A.localizedOptInBannerTitleText===void 0?"":A.localizedOptInBannerTitleText},body:{content:A.localizedOptInMessage===void 0?"":A.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.hP("TURN_ON",void 0,"Turn on"),accessibilityText:_.hP("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}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});A=_.gH(_.hP("YOUR_DOWNLOADS",void 0,"Your downloads"));M=void 0;U.length>0?(M=void 0,_.S("kevlar_display_downloads_numbers")&&(M=_.gH(_.k2("VIDEO_COUNT",U.length))),M=Obc(U,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,A,M)):W||H.length||
J||(M={backgroundPromoRenderer:{bodyText:_.gH(_.hP("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}}}});d?P.push({richSectionRenderer:{content:d}}):O&&!_.S("kevlar_manual_downloads_above")&&P.push({richSectionRenderer:{content:O,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
M&&P.push({richSectionRenderer:{content:M,loggingDirectives:{clientVeSpec:{uiType:51721}}}});O&&_.S("kevlar_manual_downloads_above")&&P.push({richSectionRenderer:{content:O,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(U.length>0||W&&H.length>0&&!J)&&P.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.gH(_.hP("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}}}}}});return{contents:P}};
_.fhF=function(H){return ZbE(H,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.Jd8=function(H){return ZbE(H,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
ZbE=function(H,U){var A=[];H=Obc(H,U,!0);A.push({richSectionRenderer:{content:H}});return{contents:A}};
Obc=function(H,U,A,M,W){A=A===void 0?!1:A;var w="RESPONSIVE_SIZE_STANDARD";_.S("kevlar_standard_rich_grid_on_offline_home")&&U==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?w="RESPONSIVE_SIZE_STANDARD":_.S("kevlar_modern_downloads_compact")?w="RESPONSIVE_SIZE_COMPACT":_.S("kevlar_modern_downloads_extra_compact")?w="RESPONSIVE_SIZE_EXTRA_COMPACT":_.S("kevlar_modern_downloads_tiny")&&(w="RESPONSIVE_SIZE_TINY");H={isExpanded:A,contents:$C(H),entitySelectorType:U,responsiveContainerConfiguration:{responsiveSize:w}};
M&&(H.title=M);W&&(H.subtitle=W);A||(_.S("kevlar_smart_downloads_show_more_button")?(H.showMoreButton={buttonRenderer:{accessibility:{label:_.hP("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.gH(_.hP("SHOW_MORE",void 0,"Show more"))}},H.showLessButton={buttonRenderer:{accessibility:{label:_.hP("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.gH(_.hP("SHOW_LESS",void 0,"Show less"))}}):(H.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.hP("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}}}},H.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.hP("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}}}},H.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.hP("VIEW_ALL",void 0,"View all"),accessibilityText:_.hP("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:_.En("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:H}};
$C=function(H){var U=[];H=_.b(H);for(var A=H.next();!A.done;A=H.next())if(A=A.value,ex7(A)){var M=U,W=M.push;var w=void 0;if(A==null?0:(w=A.videoEntity)==null?0:w.videoId){w=fq(_.Lq().getState(),A.videoEntity.videoId);var d=_.Lq().getState();var O=_.BO(A.videoEntity.videoId,"mainVideoEntity");d=!!_.HC(d.entities)[O];d={videoId:A.videoEntity.videoId,title:au(A.videoEntity.title),shortBylineText:au(A.channelEntity.title),thumbnail:A.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:d&&_.S("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:Kg7(A.videoEntity.videoId,w,A.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.hP("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};A.videoEntity.lengthSeconds&&(d.thumbnailOverlays=etc(A.videoEntity.lengthSeconds,w));d.isWatched=w>0;_.S("kevlar_modern_downloads_page")&&(d.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:A.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.hP("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},d.badges=void 0);A=d}else A={};W.call(M,{richItemRenderer:{content:{videoRenderer:A},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(rbr(A)){M=U;W=M.push;var f=O=w=void 0,J=void 0,F=void 0,P=void 0,n=void 0,N=void 0,L=void 0,m=void 0,z=void 0,c=void 0;d=A.mainPlaylistEntity.playlistId;var C=A==null?void 0:(c=A.mainPlaylistEntity)==null?void 0:(z=c.thumbnailStyleData)==null?void 0:(m=z[0])==null?void 0:(L=m.value)==null?void 0:(N=L.collageThumbnail)==
null?void 0:N.coverThumbnail;if(d&&C){N=oyE(d);!_.S("enable_offline_playlist_page")&&(A==null?0:(n=A.mainPlaylistEntity)==null?0:n.videos)&&(n=A==null?void 0:(P=A.mainPlaylistEntity)==null?void 0:(F=P.videos)==null?void 0:F[0],F=_.tw(n).entityId,F=JSON.parse(F).videoId,F!==void 0&&(N=fq(_.Lq().getState(),F),N=_.mb(F,d,void 0,void 0,N)));F=[];if(A==null?0:(J=A.mainPlaylistEntity)==null?0:(f=J.videos)==null?0:f.length)f=spN(),J=Object,F=J.assign,P=(P=Pfc(A==null?void 0:A.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.gH(P),icon:{iconType:"PLAYLISTS"}}}:void 0,F=[f,F.call(J,{},(O=P)!=null?O:{})];A={playlistId:d,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:C}},navigationEndpoint:N,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:F,title:au(A.mainPlaylistEntity.title),shortBylineText:au(A==null?void 0:(w=A.channelEntity)==null?void 0:w.title),badges:[{metadataBadgeRenderer:{label:_.hP("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.S("kevlar_modern_downloads_page")&&(A.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:Kkt,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:d,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.hP("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},A.badges=void 0)}else A=void 0;W.call(M,{richItemRenderer:{content:{playlistRenderer:A},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return U};
d30=function(H,U,A){H=H?kS0(H):"";U!==void 0&&isFinite(U)?U===0?U=_.hP("UPDATING",void 0,"Updating..."):(U=reV(new Date(U),new Date),U=_.hP("UPDATED_TIME",{relative_time:U},"Updated "+U)):U="";var M="";H&&U&&(M=" \u2022 ");if(A&&_.S("kevlar_display_downloads_numbers")){A=_.k2("VIDEO_COUNT",A);if(H||U)M=" \u2022 ";return A+M+H+M+U}return H+M+U};
oME=function(H){return a_0(H.entities).length};
_.Fk0=function(H,U,A){var M=uA(H.responsiveSize),W;H=!((W=H.responsiveMap)==null||!W.some(function(w){return w.containerSize==="CONTAINER_SIZE_NARROW"&&w.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:A,containerWidth:U,sizing:M,enableFullBleedForSingleCol:!1,isCompactList:M==="COMPACT"&&H}};
Pg7=function(H,U){return _.rH(H.entities,"votingEntity",U)};
lA=function(H){if(H){var U;return((U=_.lx().resolve(_.$V(_.qF)))==null?0:U())?H.darkTheme:H.lightTheme}};
sqN=function(H,U){if(H.simpleText)return Object.assign({},H,{simpleText:fG(H.simpleText,U)});if(!H.runs)return H;for(var A=Object.assign({},H,{runs:[]}),M=0,W=_.b(H.runs),w=W.next();!w.done;w=W.next())if(w=w.value,w.text)if(M+w.text.length<=U)A.runs.push(w),M+=w.text.length;else return A.runs.push(Object.assign({},w,{text:fG(w.text,U-M)})),A;return H};
nMM=function(H,U){return _.rH(H.entities,"chipBarStateEntity",U)};
N2V=function(H){switch(H){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
SSE=function(H,U){return{triggeringElement:H,onDwellTriggeredFn:function(){var A={triggeringElement:H,loadVideoPreviewEventData:U},M=document.querySelector(".video-preview");M&&M.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:A}))},
onDwellEndFn:function(){var A=document.querySelector(".video-preview");A&&A.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
pGc=function(H){var U=_.lx().resolve(_.$V(R9h));return function(A){var M=function(){var W=H(A);return U&&W?SSE(A,W):null};
_.Em(function(){var W=M();U&&W&&Promise.resolve().then(function(){U.registerElement(W)});
_.m4(function(){U&&W&&Promise.resolve().then(function(){_.bA(U,W)})})},"p0smCb")}};
RGN=function(H){var U=H.dataset.resizeObserverId;if(U)return U;U=""+Lk_++;return H.dataset.resizeObserverId=U};
EM4=function(H){H=_.b(H);for(var U=H.next();!U.done;U=H.next()){U=U.value;var A=RGN(U.target),M=Object.assign({},{target:U.target},Gn.get(A));if(M!=null&&M.contentRect?M.contentRect.width!==U.contentRect.width||M.contentRect.height!==U.contentRect.height:1)for(Gn.set(A,{borderBoxSize:U.borderBoxSize,contentBoxSize:U.contentBoxSize,contentRect:U.contentRect,devicePixelContentBoxSize:U.devicePixelContentBoxSize}),A=_.b(hF.get(A)||[]),M=A.next();!M.done;M=A.next())M=M.value,M(U)}};
gM7=function(H,U){var A=RGN(H);hF.has(A)||hF.set(A,new Set);hF.get(A).add(U);Gn.has(A)&&U(Object.assign({},{target:H},Gn.get(A)));kC||(kC=new m3M(EM4));U=kC;U.observe(H)};
ahc=function(H,U){var A=RGN(H);hF.has(A)&&(hF.get(A).delete(U),hF.get(A).size===0&&(hF.delete(A),Gn.delete(A),kC.unobserve(H),delete H.dataset.resizeObserverId));hF.size===0&&kC&&(kC.disconnect(),kC=void 0)};
zGF=function(H,U){var A=_.lx().resolve(ru);return x38.map(function(M){return A.observe(H,U,M)})};
Cgh=function(H){var U=_.lx().resolve(ru);H.forEach(function(A){U.unobserveByKey(A)})};
_.vq=function(H){var U=_.b(j1t()),A=U.next().value,M=U.next().value,W=Object.assign({},tSc,H),w=cd7(function(d){var O=d.contentRect.height;if((d=d.contentRect.width)||O||W.canHaveZeroSize)A.width()===d&&A.height()===O||M(A,{height:O,width:d})},W.throttleMs);
return[A,function(d){var O=[];W.useVisibilityObserver&&(O=zGF(d,function(f,J){requestAnimationFrame(function(){J==="visible"?gM7(d,w):ahc(d,w)})}));
O.length||gM7(d,w);return function(){O.length&&(Cgh(O),O.length=0);ahc(d,w)}}]};
B20=function(H,U,A,M,W){H=U?H.switchOffCommand:H.switchOnCommand;if(M&&W)yd8(H,A,W);else{var w,d;(w=_.dA({elementsCommand:H}))==null||(d=w.onclick)==null||d.call(w,A)}};
yd8=function(H,U,A){H=_.dA({elementsCommand:H,additionalCommandArgs:{commandController:{onSuccess:function(){A(!1)},
onServerError:function(){A(!1)}}}});
if(H==null?0:H.onclick)H.onclick(U),A(!0)};
eG7=function(H){if(H)return _.p(H,rdK)};
D3c=function(H){if(H)switch(H){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
$37=function(H,U){if(!((H==null?0:H.entitySelectorType)&&(H==null?0:H.entityKey)))return{};switch(H.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":var A,M=(A=_.yU())==null?void 0:A.getOption("captions","track"),W,w=typeof(M==null?void 0:M.translationLanguage)==="object"&&((W=M.translationLanguage)==null?void 0:W.languageName)||(M==null?void 0:M.displayName)||"";return{data:Object.assign({},!!w&&{selectionText:{content:w}},!!w&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},
{isDisabled:typeof M==="undefined"})};case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.S("web_shorts_audio_track_picker")){var d;W=((d=_.yU())==null?void 0:d.getAudioTrack())||void 0;A=W==null?void 0:(w=W.getLanguageInfo())==null?void 0:w.getName();W={data:Object.assign({},{selectionText:{content:A}},A&&!(W==null?0:(M=W.getLanguageInfo())==null?0:M.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else W={};return W;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return M=
H!=null&&H.entityKey?(M=_.tp(U,H.entityKey))?{isHidden:(M==null?void 0:M.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},M;default:return{}}};
lhK=function(H,U){return function(A){var M=function(W){_.Uy(_.Hq(W),A,U)||H(W)};
A.addEventListener("click",M);return function(){A.removeEventListener("click",M)}}};
_.GLh=function(H){return function(){return _.p(H(),_.Tn)}};
YS8=function(H){switch(H){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
qSM=function(H){return YS8(H==null?void 0:H.all)};
hGM=function(H){var U={};(H=H==null?void 0:H.padding)&&(U.padding=YS8(H.vertical)+"px "+YS8(H.horizontal)+"px");return U};
kL_=function(H){switch(H){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
vMV=function(H){switch(H){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
T2K=function(H){switch(H){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
jqF=function(H,U){if(U)return{containerStyles:hGM(U),itemStyles:function(A,M){var W={flex:"1"},w=U==null?void 0:U.flexDirection;b:switch(w){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":A=!!A;break b;default:A=!!M}A||(A=_.gD("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",w==="FLEX_DIRECTION_ROW"||w==="FLEX_DIRECTION_ROW_REVERSE"?(w=qSM(U==null?void 0:U.gap)+"px",A?W["margin-left"]=w:W["margin-right"]=w):W["margin-bottom"]=qSM(U==null?void 0:U.gap)+"px",W.flex=
"1");return W},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(U==null?void 0:U.flexDirection)==="FLEX_DIRECTION_ROW"||(U==null?void 0:U.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
IhV=function(H){return H<528?"CONTAINER_SIZE_NARROW":H<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
Qq4=function(H,U){H=_.b(H.responsiveMap||[]);for(var A=H.next();!A.done;A=H.next())if(A=A.value,A.containerSize===U)return A.containerType};
_.VSE=function(H,U){if(U){var A=U.responsiveSize;H=IhV(H);var M=Qq4(U,H);if(M&&A){a:{if(M==="CONTAINER_TYPE_VERTICAL_LIST")if(A==="RESPONSIVE_SIZE_STANDARD"){if(H!=="CONTAINER_SIZE_NARROW"){var W="50%";break a}}else{W=H==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}W=void 0}return{responsiveSize:A,containerSize:H,containerType:M,force16By9ThumbnailAspectRatio:!U.enableContentSpecificAspectRatio,contentPreviewWidth:W,fullbleed:(M==="CONTAINER_TYPE_VERTICAL_LIST"||M==="CONTAINER_TYPE_GRID")&&H===
"CONTAINER_SIZE_NARROW"&&!1}}}};
HiM=function(H,U){var A={};switch(U){case "CONTAINER_TYPE_VERTICAL_LIST":A["flex-direction"]="column";A.padding="0 "+H.margin+"px";break;case "CONTAINER_TYPE_GRID":A["flex-direction"]="row";A.flex="none";A["flex-wrap"]="wrap";A.width=H.maxContainerWidth?H.maxContainerWidth+H.gutter+"px":void 0;A.padding="0 "+(H.margin-H.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":A["flex-direction"]="row",A.flex="none",A["overflow-x"]="auto",A.width=H.maxContainerWidth?H.maxContainerWidth+"px":void 0,
A.padding="0 "+H.margin+"px"}return A};
UWE=function(H,U){if(U){var A=Qq4(U,IhV(H));a:switch(A){case "CONTAINER_TYPE_GRID":var M=3;break a;default:M=1}M=_.Fk0(U,H,M);var W=_.Oy(M);return{containerLayoutConfig:_.VSE(H,U),containerStyles:HiM(W,A),itemStyles:function(w,d){w={};switch(A){case "CONTAINER_TYPE_VERTICAL_LIST":d||(w["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":w.width=W.itemWidth+"px";w["margin-right"]=W.gutter/2+"px";w["margin-left"]=W.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":w.width=W.itemWidth+
"px",w.flex="none",d||(w["margin-right"]=W.gutter+"px")}return w}}}};
XPt=function(H,U,A){if(U)return[AUc];switch(H){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[j5];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return A?[j5]:[Mg4,j5];case "TRANSFER_STATE_PAUSED_BY_USER":return[WjF,j5];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[wPc,j5];default:return[AUc]}};
ii7=function(H,U,A,M){return XPt(H,U,M).map(function(W){var w=W.text,d=W.iconType,O=W.videoAction;W=W.playlistAction;w=w?{content:w}:void 0;d=d&&{sources:[{clientResource:{imageName:d}}]};var f=(0,_.dG.unsafeClone)(A);if(f){var J=_.p(f,_.eI),F=_.p(f,_.DW);J&&O?J.action=O:F&&W&&(F.action=W)}return{title:w,leadingImage:d,rendererContext:f&&{commandContext:{onTap:{innertubeCommand:f}}}}})};
biN=function(H){H=_.AF(H.rendererContext);var U;return(U=_.p(H,_.DW))==null?void 0:U.playlistId};
dW4=function(H){var U;return(U=H.listItems)==null?void 0:U.some(function(A){var M;return _.MG((M=_.p(A,_.vo))==null?void 0:M.rendererContext)})};
Oi7=function(H,U){var A;(A=H[(U+1)%H.length])==null||A.focus()};
uN8=function(H,U){var A=H.length,M;(M=H[U===-1?A-1:(U-1+A)%A])==null||M.focus()};
_.IR=function(H){var U=_.lx().resolve(_.$V(_.qF));return U!=null&&U()?H.darkThemeColorPalette:H.lightThemeColorPalette};
_.V8=function(H){return{primaryTextColor:Q8(H,0),secondaryTextColor:Q8(H,1),optionColor:Q8(H,2),backgroundColor:Q8(H,3),videoBackgroundColor:Q8(H,4)}};
Q8=function(H,U){if(H){switch(U){case 0:H=H.primaryTitleColor;break;case 1:H=H.secondaryTitleColor;break;case 2:H=H.surgeColor;break;case 3:H=H.section2Color;break;case 4:H=H.section3Color;break;default:return}if(H)return _.wn(H)}};
JU4=function(H){var U=H.element;var A=H.veType;var M=H.storedVisualElement===void 0?null:H.storedVisualElement;var W=H.elementIndex===void 0?0:H.elementIndex;H=H.clientYouTubeData;var w=_.XK();w!==Zi7&&(fL4.clear(),Zi7=w);if(U.visualElement&&fL4.has(U.visualElement))return null;if(M&&fL4.has(M))return U.visualElement=M,null;A=_.hy(_.k$(),{veType:A,elementIndex:W,clientYouTubeData:H});if(!A)return null;U.visualElement=A;fL4.add(A);return A};
_.Hl=function(H,U,A,M){A=A===void 0?null:A;M=M===void 0?Kjr:M;var W=W===void 0?null:W;UB(function(){if(U){A instanceof Function&&(A=A());var w=JU4({element:U,veType:H,storedVisualElement:A,clientYouTubeData:void 0});w&&(Y$(U,{data:W,observer:_.lx().resolve(ru),hideOption:AiK,showOption:MEM,layer:U.layer}),M(w))}})};
om4=function(H){return H?_.bN(H):""};
Fj0=function(H){return(H==null?void 0:H.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
P_t=function(H,U){return _.rH(H.entities,"videoOverviewAsyncDataEntity",U)};
sAc=function(H,U){var A;return"linear-gradient(to bottom, "+((A=U==null?void 0:U.map(function(M){var W=H?M.darkThemeColor:M.lightThemeColor;return W?_.bN(W)+" "+((M==null?void 0:M.startLocation)||0)*100+"%":"transparent"}))==null?void 0:A.join(", "))+")"};
nmE=function(H,U,A,M,W){if(!((M==null?0:M.height)&&(M==null?0:M.width)))return{size:0};var w=M.width;M=M.height;if(W)return U==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||U==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&w>M?{size:312/vWc}:U==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(A!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||H!==1&&H!==2||U!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&U!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&U!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(U==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||U==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||M===w)switch(H){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(U==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||M>w)switch(H){case 1:case 3:return{size:240*kwM};default:return{size:360*kwM}}switch(H){case 1:case 2:return{size:1/vWc*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.NQt=function(H){if(!("matchMedia"in window))return _.c5(Error("Th")),function(){return!1};
var U=window.matchMedia(H);H=_.b(_.iB(U.matches,void 0,"waIHpe"));var A=H.next().value,M=H.next().value,W=function(w){M(w.matches)};
U.addEventListener?(U.addEventListener("change",W),_.m4(function(){U.removeEventListener("change",W)})):U.addListener&&(U.addListener(W),_.m4(function(){U.removeListener(W)}));
return A};
S14=function(H){return H==="IMAGE_BANNER_STYLE_INSET"||H==="IMAGE_BANNER_STYLE_UNKNOWN"};
pP0=function(){if(!("matchMedia"in window))return _.c5(Error("Th")),function(){return 0};
var H=window.matchMedia("(max-width: 527.9px)"),U=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),A=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),M=window.matchMedia("(min-width: 1024px)"),W=_.b(_.iB(H.matches,void 0,"TmIKcb")),w=W.next().value,d=W.next().value;W=_.b(_.iB(U.matches,void 0,"Z0fTKd"));var O=W.next().value,f=W.next().value;W=_.b(_.iB(A.matches,void 0,"w4xy7b"));var J=W.next().value,F=W.next().value;W=_.b(_.iB(M.matches,void 0,"DrbNC"));var P=W.next().value,
n=W.next().value,N=function(c){d(c.matches)},L=function(c){f(c.matches)},m=function(c){F(c.matches)},z=function(c){n(c.matches)};
_.LA(function(){H.addEventListener?(H.addEventListener("change",N),U.addEventListener("change",L),A.addEventListener("change",m),M.addEventListener("change",z)):H.addListener&&(H.addListener(N),U.addListener(L),A.addListener(m),M.addListener(z));_.m4(function(){H.removeEventListener?(H.removeEventListener("change",N),U.removeEventListener("change",L),A.removeEventListener("change",m),M.removeEventListener("change",z)):H.removeListener&&(H.removeListener(N),U.removeListener(L),A.removeListener(m),
M.removeListener(z))})});
return function(){return w()?1:O()?2:J()?3:P()?4:0}};
LjN=function(H){var U=0;H=_.b([H.title,H.metadata,H.actions,H.description,H.attribution]);for(var A=H.next();!A.done;A=H.next())A.value&&U++;return U};
Rwr=function(H){return H===1||H===2?1:0};
mW0=function(H){H=(new Em7).parse(H);return(new Oe).render(H).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(U){var A=U.split(":").map(Number),M=0,W=0;if(A.length===3)A=_.b(A),M=A.next().value,W=A.next().value,A=A.next().value;else if(A.length===2)A=_.b(A),W=A.next().value,A=A.next().value;else if(A.length===1)A=_.b(A).next().value;else throw Error("Uh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(M*3600+W*60+A)+'" role="button">'+U+"</span>"})};
gmc=function(H){H=_.b(H.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var U=H.next(),A={};!U.done;A={clickHandler$jscomp$5:void 0},U=H.next()){U=U.value;A.clickHandler$jscomp$5=function(W){W=Number(W.target.getAttribute("data-time"));if(isNaN(W))throw Error("Vh");var w;(w=_.yU())==null||w.seekTo(W,!0)};
var M=function(W){return function(w){w.key!=="Enter"&&w.key!=="Space"||(0,W.clickHandler$jscomp$5)(w)}}(A);
U.setAttribute("tabindex","0");U.removeEventListener("click",A.clickHandler$jscomp$5);U.removeEventListener("keydown",M);U.addEventListener("click",A.clickHandler$jscomp$5);U.addEventListener("keydown",M)}};
aLV=function(){return _.Z("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.Z(Ua,{percentWidth:100}),_.Z(Ua,{animationDelay:200}),_.Z(Ua,{animationDelay:400}),_.Z(Ua,{animationDelay:600}),_.Z(Ua,{animationDelay:800,percentWidth:60}),_.Z("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.Z(Ua,{percentWidth:100}),_.Z(Ua,{animationDelay:200}),_.Z(Ua,{animationDelay:400}),_.Z(Ua,{animationDelay:600,percentWidth:50}))};
Ua=function(H){return _.Z("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(H.percentWidth===void 0?100:H.percentWidth)+"%"},_.Z("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(H.animationDelay===void 0?0:H.animationDelay)+"ms"}))};
xWr=function(){var H=_.b(_.iB(function(){return""},void 0,"dXJHWc")),U=H.next().value;
return[function(){return U()()},
H.next().value]};
zw4=function(H,U){H=H?kS0(H):"";U!==void 0&&isFinite(U)?U===0?U=_.hP("UPDATING",void 0,"Updating..."):(U=reV(new Date(U),new Date),U=_.hP("UPDATED_TIME",{relative_time:U},"Updated "+U)):U="";var A="";H&&U&&(A=" \u2022 ");return _.gH(H+A+U)};
cU8=function(H,U,A,M,W,w){U=U===void 0?0:U;var d=C_c[U],O=d.title,f=d.iconType,J=d.topButtonRenderer,F=d.sectionClientVE;d=d.videoClientVE;var P;if(U!==1||H.length){A=[];H=_.b(H);for(M=H.next();!M.done;M=H.next()){var n=M.value;if(ex7(n))A.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:n.videoEntity.videoId,title:au(n.videoEntity.title),shortBylineText:au(n.channelEntity.title),thumbnail:n.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:n.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.hP("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:d}}}}}});else if(rbr(n)){M=A;var N=M.push;var L=void 0,m=void 0,z=void 0,c=void 0,C=void 0,v=void 0,Y=void 0,D=void 0,h=n.mainPlaylistEntity.playlistId,T=n==null?void 0:(D=n.mainPlaylistEntity)==null?void 0:(Y=D.thumbnailStyleData)==null?void 0:(v=Y[0])==null?void 0:(C=v.value)==null?void 0:(c=C.collageThumbnail)==null?void 0:c.coverThumbnail;c=oyE(h);if(!_.S("enable_offline_playlist_page")&&
(n==null?0:(z=n.mainPlaylistEntity)==null?0:z.videos)){b:{z=n==null?void 0:(m=n.mainPlaylistEntity)==null?void 0:m.videos;m=_.Lq().getState().entities;if(z!=null&&z.length&&m)for(z=_.b(z),C=z.next();!C.done;C=z.next())if(C=_.tw(C.value).entityId,(C=JSON.parse(C).videoId)&&mI8(m,C)==="TRANSFER_STATE_COMPLETE"){m=C;break b}m=""}m!==void 0&&(c=fq(_.Lq().getState(),m),c=_.mb(m,h,void 0,void 0,c))}m=PKc(_.hP("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),oyE(h));n=h&&T&&m?{playlistId:h,navigationEndpoint:c,
viewPlaylistText:m,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:T}},title:au(n.mainPlaylistEntity.title),shortBylineText:au(n==null?void 0:(L=n.channelEntity)==null?void 0:L.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:tgE,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:h,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.hP("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:d}}}:
void 0;N.call(M,{gridPlaylistRenderer:n})}}d={gridRenderer:{items:A}};U===1&&(P=zw4(W,w))}else if(M){var WF=_.gH((N=A==null?void 0:A.localizedPromptMessage)!=null?N:"");d={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.gH(_.hP("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.A1c}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.gH(_.hP("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};P=zw4(W,w)}else WF=_.gH(_.hP("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
d={};return{contents:[{shelfRenderer:{title:O,titleAnnotation:P,icon:{iconType:f},subtitle:WF,content:d,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:J}]}}}}],loggingDirectives:{clientVeSpec:{uiType:F}}}};
yU8=function(H,U,A,M,W,w,d,O,f,J,F){A=A===void 0?{}:A;M=M===void 0?{}:M;W=W===void 0?!1:W;w=w===void 0?!1:w;d=d===void 0?!1:d;O=O===void 0?!1:O;f=f===void 0?!1:f;J=J===void 0?0:J;F=F===void 0?-Infinity:F;if(!(U.length||H.length||W||O))return w?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:MS4(A)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.gH(_.hP("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 P=[];H.length&&P.push(cU8(H,0));O?P.push({contents:[{statementBannerRenderer:bbF(f,M)}]}):W?P.push(cU8(U,1,A,d,J,F)):w&&P.push({contents:[{statementBannerRenderer:wGc(A)}]});(W&&U.length||H.length)&&P.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.gH(_.hP("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 P.map(function(n){return{itemSectionRenderer:n}})};
AN=function(H,U){if(typeof H!=="object")return null;H=_.b(Object.entries(H));for(var A=H.next();!A.done;A=H.next()){var M=_.b(A.value);A=M.next().value;M=M.next().value;if(A===U)return A;if(M=AN(M,U))return A+"."+M}return null};
MT=function(H){var U=H.content;return(H=H.styleRuns)&&U?{runs:H.map(function(A){var M={text:U.slice(A.startIndex,A.startIndex+A.length)};A.fontColor&&(M.textColor=A.fontColor);return M})}:{simpleText:U}};
ewh=function(H,U,A,M){var W=BQM;M&&(H.quantity=M);if(!H.quantity||!H.maxQuantity)return{};M=H.minusButton;var w=H.plusButton,d,O,f,J;return{value:H.quantity,maxValue:H.maxQuantity,onChangeCallback:function(F){W(H,F)},
minusLabel:(d=_.p(M,rU7))==null?void 0:d.label,minimumReachedLabel:(O=_.p(M,rU7))==null?void 0:O.limitReachedLabel,plusLabel:(f=_.p(w,rU7))==null?void 0:f.label,maximumReachedLabel:(J=_.p(w,rU7))==null?void 0:J.limitReachedLabel,disabled:U,onRemoveCommand:A}};
BQM=function(H,U){var A=H.quantityIncrementerEntityKey;if(A){var M={};M.quantity=U;_.Le(_.Wl("quantityIncrementerEntity",A,M));H.onChangeCommand&&_.uj(H.onChangeCommand)}};
DW8=function(H){if(H)return H===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(H).overflowY)?H:DW8(H.parentElement)};
GfN=function(H,U){(H=$Wc(H))&&((_.S("enable_mini_app_command_handler_mweb_fix")?0:U)?lLE.push({command:H,sourceData:{},commandContext:void 0}):_.lx().resolve(_.YV).resolveCommand(H))};
$Wc=function(H){return _.p(H,_.X1)};
Y1N=function(){var H=window.performance.timeOrigin+window.performance.now(),U=(new _.wz).setSeconds(H/1E9);return _.Wy(U,2,_.Zk(H%1E9),0)};
hwM=function(H,U){var A;H=(A=_.p(_.p(H,_.X1),q1N))==null?void 0:A.methodName;var M,W;(A=window.youtubewebview||((M=window.webkit)==null?void 0:(W=M.messageHandlers)==null?void 0:W.youtubewebview))&&H&&(M=new Xk,H=_.Mu(M,1,H),H=_.I_(H.JSC$12857_serializeBinary()),U=_.I_(U),A.postMessage(H+","+U))};
iX=function(H,U){var A=_.p(_.p(H,_.X1),q1N);A&&(U&&(A.serializedAdditionalMetadata=_.I_(U)),GfN(H,!0))};
kfM=function(H,U,A){setTimeout(function(){_.wY(H,U)},A)};
vmt=function(H){switch(H){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"}};
TQ4=function(){return!!_.gD("ID_TOKEN")};
QAN=function(H){return H instanceof Error&&H.cause instanceof jAV&&H.cause.rpcErrorCode!==void 0?!ILr.includes(H.cause.rpcErrorCode):!0};
Hch=function(){return _.kZ(Vgr,{authuser:""+(_.gD("SESSION_INDEX")||0)})};
bX=function(H,U,A,M){A=A===void 0?"MINI_APP_SDK_API_UNSPECIFIED":A;M=M===void 0?"":M;var W=new _.bD;A={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:M,sdkApi:A};H instanceof Error&&(W.message=H.message,W.name=H.name,H.cause instanceof jAV&&H.cause.rpcErrorCode!==void 0&&(A.rpcErrorCode=H.cause.rpcErrorCode));var w;(w=U.onError)==null||w.call(U,{loggingError:W,metadata:A})};
A2K=function(H,U,A,M){switch(H){case "MINI_APP_SOURCE_GAMESNACKS":return new dz(U,A,M);default:return new U_7(U,A,M)}};
M_M=function(H){switch(H){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"}};
WaM=function(H){switch(H){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"}};
w7K=function(H){switch(H){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";case 15:return"MINI_APP_SDK_API_OPEN_CONTENT";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
X7V=function(){return Math.floor(Math.random()*4)+1};
icK=function(H,U,A,M){H=_.b(Object.entries(H));for(var W=H.next(),w={};!W.done;w={message$jscomp$995:void 0},W=H.next()){var d=_.b(W.value);W=d.next().value;d=d.next().value;w.message$jscomp$995=d;U.push(setTimeout(function(O){return function(){M(!1);A(O.message$jscomp$995.text)}}(w),w.message$jscomp$995.delayMs));
Number(W)>0&&U.push(setTimeout(function(){M(!0)},w.message$jscomp$995.delayMs-400))}};
bcV=function(H,U,A){A=A===void 0?Kjr:A;if(H){var M=_.lx().resolve(ru);M||_.S("mweb_no_observer_killswitch")?Y$(H,{data:U,observer:M,visibilityCallback:A,hideOption:AiK,showOption:MEM,layer:H.layer}):_.Na(new _.bD("Warning: monitorVisibility called with null observer",H.tagName,U==null?void 0:U.loggingDirectives,U==null?void 0:U.trackingParams))}else _.Na(new _.bD("Warning: monitorVisibility called with null element",U==null?void 0:U.loggingDirectives,U==null?void 0:U.trackingParams,U==null?void 0:
U.rendererContext))};
d_4=function(H,U){var A=A===void 0?Kjr:A;_.S("mweb_fix_monitor_visibility_after_render")?H&&UB(function(){bcV(H,U,A)}):UB(function(){bcV(H,U,A)})};
Oc8=function(H,U){var A=document.createElement("ytd-engagement-panel-section-list-renderer");A.data=H;var M=U!=null?U:{};H=M.isPersistentPanel;U=M.hideDelayMs;M=M.overscrollContain;H=Object.assign({},H&&{isPersistentPanel:H},U&&{hideDelayMs:U},M&&{overscrollContain:M});Object.assign(A,H);return A};
J2M=function(H){uZ8||(uZ8=ZcK(new _.oE(1,void 0,void 0,fqM),0));var U=uZ8.format(Math.floor(H));U=Jc==="be"||Jc==="bg"||Jc==="es"||Jc==="et"||Jc==="hu"||Jc==="ka"||Jc==="lv"||Jc==="pl"||Jc==="pt-PT"||Jc==="sq"?U.replace(new RegExp("^(\\d)"+fqM.GROUP_SEP.replace(".","\\.")+"(\\d+("+fqM.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):U;return H>=1E3&&H<=9999&&U[1]==="."&&(Jc==="sl"||Jc==="it")?U.replace(".",""):U};
_.Fa4=function(H,U,A){return window.spf&&!_.S("web_disable_spfjs_client")?Kac(H,U,A):o_E(H,U)};
Kac=function(H,U,A){var M=null,W=(new _.IQ(function(w,d){var O={};if(U){O.method=U.method;var f=U.postParams||{};rw_(H,U)&&(f[_.gD("XSRF_FIELD_NAME")]=_.gD("XSRF_TOKEN"));O.postData=_.hz(f);U.type&&(O.type=U.type);f=U.headers}O.headers=zMc(H,f);_.S("debug_forward_web_query_parameters")&&(H=_.ywV(H,window.location.search));O.experimental_headers=O.headers;O.onError=function(J){J.err&&J.xhr&&(J.err.params={url:J.xhr.responseURL,response:J.xhr.responseText.substr(0,64)});d(J.err)};
O.onPartDone=function(J){A&&A.call(null,J.part)};
O.onDone=function(J){var F=PtV(J.response,"xsrf_token");GZ(window.location.href,H)&&F&&_.mT("XSRF_TOKEN",F);if(F=PtV(J.response,"service_worker_killswitch"))_.mT("SERVICE_WORKER_KILLSWITCH",F),Ys4();w(J.response)};
M=spf.request(H,O)})).then(sB7);
W.thenCatch(function(w){var d=w instanceof _.Oa,O=w&&w.hasOwnProperty("params")&&w.params.response?w.params.response:"";w instanceof Error&&(O?d?FLN(w):O===')]}\'\n{"reload":"now"}'?FLN(w):(n_0(w,H,O),NrE(w,O)?_.Na(w):_.sD(w)):FLN(w));M&&M.abort()});
return W};
sB7=function(H){if(H.type==="multipart"){var U=H.timing;H=H.parts.reduce(function(A,M){Object.assign(A,M);return A},{});
H.timing=H.timing||{};Object.assign(H.timing,U);H.type="reduced"}return H};
o_E=function(H,U){U=U===void 0?{}:U;var A=null,M=new _.IQ(function(W,w){U.onFinish=function(d){if(d.readyState===XMLHttpRequest.DONE)if(d.status===200){if(d.responseType!=="json"){var O=d.response;O.substring(0,5)===")]}'\n"&&(O=O.substring(5));try{var f=JSON.parse(O)}catch(J){f=J}}else f=d.response;f instanceof Error?w(f):(O=PtV(f,"xsrf_token"),GZ(window.location.href,H)&&O&&_.mT("XSRF_TOKEN",O),d=d.responseURL,window.performance&&window.performance.getEntriesByName?(O=window.performance.getEntriesByName(d).pop())?
d={responseStart:(0,_.lD)()-(O.responseEnd-O.responseStart)}:(Math.random()<.01&&(O=Error("hi"),O.params=d,_.Na(O)),d={responseStart:-1}):d={responseStart:0},f.timing=f.timing||{},Object.assign(f.timing,d),W(f))}else w(Error("gi`"+d.status))};
(A=_.VW(H,U))||w(Error("gi`"+A.status))});
M.thenCatch(function(W){W instanceof Error&&(n_0(W,H),NrE(W)&&(W.level="WARNING"))});
_.S("cancel_pending_navs")&&M.thenCatch(function(){A.abort()});
return M};
PtV=function(H,U){var A=H[U],M=H.parts;H.type==="multipart"&&M&&(A=(H=M.find(function(W){return U in W}))&&H[U]);
return A};
n_0=function(H,U,A){var M=H.message||"";U={original:M,url:U};if(A)if(M=M.match(/position:?\s*(\d+)/)){M=M&&Number(M[1])?Number(M[1]):0;var W=Math.max(M-25,0);U.position=M;U.response=A.substring(W,M+25)}else U.response=A.substring(0,50);_.SD(H,U);try{H.message="JSON parse error"}catch(w){}};
NrE=function(H,U){H=H.message||"";H=!!(H.indexOf("<")>=0||H.indexOf("end of ")>=0||H.indexOf("Unterminated string")>=0||H.indexOf("Unexpected EOF"));if(!H&&U)for(var A=U.length,M=!1,W=0;W<A;W++)if(M&&U[W]==="\\")W++;else if(U[W]==='"')M=!M;else if(U[W]==="<"&&!M){H=!0;break}return H};
SJF=function(){return document.documentElement.hasAttribute("dark")};
_.p7c=function(H,U){if(H!=="GFEEDBACK"&&H!=="GUIDED_HELP")_.za(Error("ii`"+H));else{var A=_.lx().resolve(_.$V(_.SI));if(A&&(A=A.getCurrentPage())&&A.getServiceTrackingParams&&(A=A.getServiceTrackingParams()))for(var M=0,W;W=A[M++];)if(W.service===H){if(H=W.params)for(A=0;M=H[A++];)U[M.key]=M.value;break}}};
_.La7=function(H){var U=_.Ly();U&&(U=U.getPlayer())&&(U.pauseVideo(),H.playback_id=U.getVideoData().cpn,H.eid=U.getVideoData().eventId,Object.assign(H,U.getFeedbackProductData()))};
R7N=function(){var H={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.gD("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(H.enableAnonymousFeedback=!0);_.gD("SESSION_INDEX")&&(H.authuser=String(_.gD("SESSION_INDEX")));_.S("enable_pageid_for_feedback")&&_.gD("DELEGATED_SESSION_ID")&&(H.pageId=String(_.gD("DELEGATED_SESSION_ID")));return H};
_.JN=function(H){_.S("enable_ypc_spinners")&&_.yr(H,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},H])};
_.KY=function(H){_.S("enable_ypc_spinners")&&_.yr(H,"yt-close-popup-action",["yt-loading-renderer"])};
E_N=function(H){return new Promise(function(U,A){_.bj({verifyCommand:{recaptchaToken:H.recaptchaResponse}},{commandController:{onSuccess:function(M,W){W||A("ChallengeService did not return a response.");var w;U({challengeCompleted:(w=W.verified)!=null?w:!1})},
onServerError:function(M,W){A(W)}}})})};
m_t=function(H,U,A,M){U({recaptchaResponse:M}).then(function(W){W.challengeCompleted?_.wi()?(A(3),_.lx().resolve(_.YV).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:H}})):A(2):A(4)},function(){A(4)})};
aqc=function(H,U,A){_.f1(_.LF(g_E,_.gD("HL")),function(){var M;(M=window.grecaptcha)==null||M.ready(function(){var W=window.grecaptcha;W?(A(W.render(H,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:m_t.bind(null,H,E_N,U)})),U(1)):U(4)})})};
x__=function(H,U){return function(){switch(U()){case 0:return H().captchaLoadingMessage;case 1:return H().challengeReason;case 3:return H().captchaSuccessfulMessage;case 2:return H().captchaCookieSetFailureMessage;case 4:return H().captchaFailedMessage;default:return H().challengeReason}}()};
_.oi=function(){if(!z7N){var H=document.querySelector("#player.skeleton");H&&(_.U5(H),z7N=!0)}};
_.t_E=function(){return Ct0=UkK()};
BrE=function(){return _.u(function(H){return c2N!==void 0?H.return():H.yield(y28(),0)})};
y28=function(){return _.u(function(H){if(H.nextAddress==1)return H.yield(M8M(),2);Ct0=H.yieldResult;c2N=_.Fl.addLowPriorityJob(y28,5E3);_.DO(H)})};
lqh=function(H){var U=U===void 0?r27:U;var A,M,W=(A=H.responseContext)==null?void 0:(M=A.mainAppWebResponseContext)==null?void 0:M.trackingParam;if(!W){U.increment("MISSING");var w,d,O,f,J,F;_.Na(new _.bD("282054944_a",{wtk:!!((w=H.responseContext)==null?0:(d=w.mainAppWebResponseContext)==null?0:d.loggedOut),pJO:((O=H.responseContext)==null?void 0:O.mainAppWebResponseContext)===void 0,wd2:H.responseContext===void 0,cp:(f=H.playabilityStatus)==null?void 0:f.contextParams,h1U:(((J=H.streamingData)==
null?void 0:J.formats)||[]).length>0,vQC:(((F=H.streamingData)==null?void 0:F.adaptiveFormats)||[]).length>0,os:!!H.offlineState,cotn:H.cotn}));return 2}A="";try{A=e78(W)}catch(N){return U.increment("C_ERROR"),_.sD(N),2}try{var P=_.G8E(A);var n=D_M(P)}catch(N){return U.increment("P_ERROR"),_.sD(N),2}n=_.c8(n,$_4,1,_.y9());W=[];n=_.b(n);for(P=n.next();!P.done;P=n.next())M=P.value,P=M.getPath(),A=(0,_.dG.getValueByKeys)(H,P.split(".")),A=String(A===void 0||A===null?"":A),M=M.getValue()||"",w=/[+\-\/_]/g,
A.replace(w,"")!==M.replace(w,"")&&(U.increment("MISMATCH"),_.S("ab_mis_log_err")&&(A=new _.bD("282054944_p",{cdf:P,g:String(A),e:String(M)}),_.sD(A)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(P)||(P.match(/enforcementMessageViewModel/i)?W.push(3):W.push(2)));if(W.length>0)return Math.max.apply(Math,_.vI(W));U.increment("SUCCESS");return 1};
qJc=function(H){var U=new Fk;if(H.interpreterJavascript){var A=_.ZeM(H.interpreterJavascript);A=ZO(A).toString();var M=new GdF;_.Mu(M,6,A);_.CN(U,1,M,cr)}else H.interpreterUrl&&(A=_.PW(H.interpreterUrl),A=_.e3(A).toString(),M=new _.YJ8,_.Mu(M,4,A),_.CN(U,2,M,cr));H.interpreterHash&&_.Pl(U,3,H.interpreterHash,cr);H.program&&_.Pl(U,4,H.program,cr);H.globalName&&_.Pl(U,5,H.globalName,cr);H.clientExperimentsStateBlob&&_.Pl(U,7,H.clientExperimentsStateBlob,cr);return U};
sa=function(H){var U={};H=_.b(H.split("&"));for(var A=H.next();!A.done;A=H.next())A=A.value.split("="),A.length===2&&(U[A[0]]=A[1]);return U};
h7c=function(H){return Number(H.t)||7200};
kdN=function(){var H=H===void 0?window:H;var U,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(SWE(),2);U=H;A=U.bgevmc;if(!A)throw Error("mi");return M.return({pause:function(){A.p()},
resume:function(){A.r()},
checkForRefresh:function(){return A.cr()}})})};
NDV=function(){if(_.S("bg_st_hr"))return"havuokmhhs-0";var H,U=((H=globalThis.performance)==null?void 0:H.timeOrigin)||0;return"havuokmhhs-"+Math.floor(U)};
nY=function(H){window.bgens=H};
v_c=function(){return new Promise(function(H){var U=window;U.ntpevasrs!==void 0?H(new NT(U.ntpevasrs)):(U.ntpqfbel===void 0&&(U.ntpqfbel=[]),U.ntpqfbel.push(function(A){H(new NT(A))}))})};
TrM=function(H){if(_.S("attmusi")&&_.S("attmusi_ue")){H={s:H.qzc.bind(H),ir:H.jJV.bind(H)};var U=window;U.attmp=H;if(U.attmq!==void 0)for(var A=_.b(U.attmq),M=A.next();!M.done;M=A.next())M=M.value,M(H);U.attmq=void 0}else U=H.qzc.bind(H),_.eC("yt.aba.att",U),H=H.jJV.bind(H),_.eC("yt.aba.att2",H)};
Iq0=function(H){switch(_.DU(H.input)){case _.RE(jBt):var U={};return U.encryptedVideoId=H.innerTubeRequest.externalVideoId,U}return{}};
H70=function(H){switch(_.DU(H.input)){case _.RE(jBt):if(_.S("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.RE(QBK):if(_.S("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.RE(SV):if(_.S("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&H.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.RE(V_c):var U,A;if(_.S("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((A=_.p((U=H.config)==null?void 0:U.command,_.s3))==null?0:A.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.Aoh=function(H){var U;if(H.playlistVideoRenderer&&((U=H.playlistVideoRenderer)==null?0:U.engagementBar))return U0F(H.playlistVideoRenderer.engagementBar);if(_.p(H,pY)){var A;if(H=(A=_.p(H,pY))==null?void 0:A.engagementBar)return U0F(H)}return""};
U0F=function(H){if(!H)return"";H=_.p(H,_.MT7);if(H==null||!H.actions)return"";H=_.b(H.actions);for(H=H.next();!H.done;H=H.next()){H=_.p(H.value,_.W0c);var U=void 0;if((U=H)==null||!U.itemId)break;return H.itemId}return""};
_.wmK=function(H){var U;if(H.playlistVideoRenderer&&((U=H.playlistVideoRenderer)==null?0:U.videoId))return H.playlistVideoRenderer.videoId;if(_.p(H,pY)){var A,M;if(H=(A=_.p(H,pY))==null?void 0:(M=A.playlistItemData)==null?void 0:M.videoId)return H}return""};
_.Xmh=function(H){var U;if(H.playlistVideoRenderer&&((U=H.playlistVideoRenderer)==null?0:U.voteCount))return H.playlistVideoRenderer.voteCount;if(_.p(H,pY)){var A,M;if(H=(A=_.p(H,pY))==null?void 0:(M=A.playlistItemData)==null?void 0:M.voteCount)return H}return 0};
_.LY=function(H,U){return _.rH(H.entities,"flowStateEntity",U)};
b7r=function(H,U,A,M){var W=void 0;H=_.b(H[U.iconName]||[]);for(var w=H.next();!w.done;w=H.next()){w=w.value;var d=U.iconSize;var O=U.iconStyle;d=!d||d===w[2];var f=i7_[w[0]];M&&M!==w[1]||!d||O&&O!==f?O=!1:W?(O=i7_[w[0]],O=!!U.iconStyle||O==="youtube_outline",d=W.version<=w[1],O=(!!U.iconSize||w[2]===24)&&O&&d):O=!0;O&&(W={name:U.iconName,style:i7_[w[0]],size:w[2],version:w[1],allowMirroring:!!w[3],url:A(U.iconName,w)})}return W};
d08=function(H,U,A,M){return H+(""+i7_[A[0]]+((M===void 0?0:M)?"_experimental":"")+"/"+U+"/v"+A[1]+"/")+(A[2]+"px.svg")};
O7c=function(H){return _.gD("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.gD("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":H};
utc=function(H,U){return d08("https://fonts.gstatic.com/s/i/",H,U)};
Z7N=function(H,U){return d08("https://fonts.gstatic.com/s/i/",H,U,!0)};
fr_=function(H,U){return d08("https://www.gstatic.com/youtube/img/icons/web/",H,U)};
ow0=function(H){var U=H.enabled;var A=H.itemPlaybackModel;var M=H.thumbnailElRef;var W=H.containerElRef;var w=H.options;var d;_.Em(function(){var O=W==null?void 0:W.value;var f,J=(f=M())==null?void 0:f.value,F=A();f=w();if(U&&F&&O&&J&&(f==null?0:f.thumbnail)){var P={data:F,hostElement:O},n,N,L=[].concat(_.vI((n=f.thumbnailOverlays)!=null?n:[]),_.vI((N=F.overlays)!=null?N:[]));N=F.itemPlaybackOptions;n=(N==null?void 0:N.enableRoundedPlayer)||f.enableRounding;N=N==null?void 0:N.disableTimeStatusOverlay;
var m,z,c=(m=F.inlinePlayerData)==null?void 0:m.onVisible,C=(z=F.inlinePlayerData)==null?void 0:z.onSelect;z=f.thumbnail;m=f.accessibilityText||"";F=(F=_.p(c,Joc))&&F.playerDescriptors?F.playerDescriptors:void 0;if(F){c=[];for(C=0;C<F.length;C++){var v=void 0;c.push({inlinePlaybackEndpoint:F[C].inlinePlaybackEndpoint,navigationEndpoint:F[C].navigationEndpoint,thumbnail:(v=F[C].thumbnail)!=null?v:z,thumbnailOverlays:F[C].thumbnailOverlays?F[C].thumbnailOverlays:L,accessibilityText:m})}L=c}else L={inlinePlaybackEndpoint:_.ij(c),
navigationEndpoint:_.ij(C),thumbnail:z,thumbnailOverlays:L,accessibilityText:m};O={mediaRenderer:P,lockupElement:O,thumbnailElement:J,videoPreviewOpts:{videoPreviewData:L,thumbnailSize:f.thumbnailSize,enableRounding:n,mouseleaveCallback:f.mouseleaveCallback,hideTimeDisplay:N}}}else O=void 0;if(O){var Y;(Y=d)==null||Ri(Y);d=iA(O);var D,h;((D=A())==null?0:(h=D.inlinePlayerData)==null?0:h.forceImpAutoplay)&&K0K(d)}},"mM6F9");
_.m4(function(){var O;(O=d)==null||Ri(O)})};
F04=function(H){H=atob(H);for(var U=[],A=0;A<H.length;A++)U.push(H.charCodeAt(A));return new Blob([new Uint8Array(U)],{type:"image/png"})};
sF4=function(H,U,A,M){M=M===void 0?"INSERTION_POSITION_UNSPECIFIED":M;return H({targetId:U},function(W){var w,d=(w=W.contents)!=null?w:[];w=A!=null?A:[];var O=Pl8(d);switch(M){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},W,{contents:[].concat(_.vI(d.slice(0,O)),_.vI(w),_.vI(d.slice(O+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},W,{contents:[].concat(_.vI(w),_.vI(d))});case "INSERTION_POSITION_LAST":return Object.assign({},W,{contents:[].concat(_.vI(d),_.vI(w))});
default:return W}})};
Nq_=function(H,U,A,M,W){W=W===void 0?"RELATIVE_INSERTION_POSITION_AFTER":W;return H({targetId:U},function(w){var d,O=(d=w.contents)!=null?d:[];d=nwK(O,A);if(d<0)return w;d=W==="RELATIVE_INSERTION_POSITION_BEFORE"?d:d+1;return Object.assign({},w,{contents:[].concat(_.vI(O.slice(0,d)),_.vI(M),_.vI(O.slice(d)))})})};
Pl8=function(H){var U=H.findIndex(function(A){return _.p(A,_.Ea)});
return U>=0?U:H.length};
nwK=function(H,U){return H.findIndex(function(A){a:{A=_.b(Object.values(A));for(var M=A.next();!M.done;M=A.next())if((M=M.value)&&M.targetId){A=M.targetId;break a}A=""}return A===U})};
pmE=function(H,U,A){return H({targetId:U},function(M){var W,w=(W=M.contents)!=null?W:[];return Object.assign({},M,{contents:SOc(w,A)})})};
SOc=function(H,U){return H.filter(function(A){var M=U.includes;a:{A=_.b(Object.values(A));for(var W=A.next();!W.done;W=A.next())if((W=W.value)&&W.targetId){A=W.targetId;break a}A=""}return!M.call(U,A||"")})};
_.L0t=function(H,U){return{engagementPanelSectionListRenderer:{panelIdentifier:H,identifier:U,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
Rct=function(H,U){H=H.getAvailableAudioTracks();if(H.length)return H==null?void 0:H.find(function(A){var M;return(A==null?void 0:(M=A.getLanguageInfo())==null?void 0:M.getId())===U})};
_.m04=function(H){var U,A=(U=H.getOption("captions","tracklist",{includeAsr:!0}))!=null?U:[];return A=Ew8(A,H)};
gwN=function(H){return H.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
Ew8=function(H,U){U=gwN(U);if(U==null||!U.length)return H;var A=U.filter(function(d){return d});
U=H.filter(function(d){return d.languageCode.startsWith("en")});
A=_.b(A);for(var M=A.next();!M.done;M=A.next())if(M=M.value,U.length){var W=U[0],w=Object.assign({},W);W.languageCode!==M.languageCode&&(w.displayName=W.languageName+" >> "+M.languageName,w.translationLanguage=M,H.push(w))}return H};
ar7=function(H,U,A){H=_.m04(H);if(H.length)return A?H.find(function(M){if(typeof(M==null?void 0:M.translationLanguage)==="object"){var W;return((W=M.translationLanguage)==null?void 0:W.languageCode)===U}return!1}):H==null?void 0:H.find(function(M){return M.languageCode===U})};
x0_=function(H){return H.getOption("captions","tracklist",{includeAsr:!0})};
zc4=function(H){var U=H.getAvailableAudioTracks();if(U!=null&&U.length){var A=H.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.vI(U.map(function(M){return{listItemViewModel:{title:{content:M.getLanguageInfo().getName()},isSelected:M.getLanguageInfo().getId()===(A==null?void 0:A.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:M.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
Clc=function(H){return H.getOption("captions","tracklist",{includeAsr:!0})};
tTM=function(H){var U=Clc(H);if(U==null?0:U.length)return U;H.loadModule("captions");return Clc(H)};
coF=function(H){var U=H.getOption("captions","track");if(U)return U;H.loadModule("captions");return H.getOption("captions","track")};
BqK=function(H){var U=tTM(H);if(U!=null&&U.length){var A=coF(H),M;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.hP("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(A==null?0:A.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.vI(U.map(function(W){return{listItemViewModel:{title:{content:W.displayName},
isSelected:W.displayName===(A==null?void 0:A.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:W.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.hP("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!A.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!A.translationLanguage&&{selectionText:{content:(A==null?void 0:(M=A.translationLanguage)==null?void 0:M.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[yoh(H)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
yoh=function(H){var U=gwN(H);if(U==null||!U.length)throw Error("Ii");var A=coF(H);H=U.filter(function(M){return!M.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.vI(H.map(function(M){var W;return{listItemViewModel:{title:{content:M.languageName},isSelected:M.languageName===(A==null?void 0:(W=A.translationLanguage)==null?void 0:W.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:M.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
$08=function(H){return new Promise(function(U,A){if(H===void 0)_.sD(Error("Mi"),"ERROR"),A(Error("Mi"));else{A=new _.roK;var M=_.ec0();A=A.init();var W=_.D0K(_.gD("YPC_MB_URL"),!0);Promise.all([A,W]).then(function(){var w=_.mu.payments.business.integration.ClientTokenFactory.createClientToken(H,M);U(w)})}})};
YO7=function(H,U,A,M,W,w,d){var O=_.oL();A=A.replace(/-/g,"+").replace(/_/g,"/");var f=_.TR().get("hl"),J=_.gz(_.pf),F=U==null?void 0:U.element;F&&_.JN(F);lrc(U,!0);_.GW8(J,A,O.resolve,function(){F&&_.KY(F)},function(P){F&&_.KY(F);
O.reject(P)},f,M?function(P){M&&_.Js(H,M,{backend_analytics:P})}:void 0,O.resolve,W,w,d);
return O.promise};
lrc=function(H,U){!(H=H==null?void 0:H.element)||H.tagName!=="YT-BUTTON-RENDERER"&&H.tagName!=="YTD-BUTTON-RENDERER"||(H.disabled=U)};
qOr=function(){var H=_.hP("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.gH(H),actionButton:{buttonRenderer:HbV()}}},popupType:"TOAST"}};
hc8=function(){var H=_.hP("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.gH(H),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
kWc=function(H){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:H}]}}};
ai=function(H,U,A,M){var W;return _.u(function(w){if(w.nextAddress==1)return _.zj(w,2),w.yield(H,4);if(w.nextAddress!=2)return(W=_.Iu(U.getState().entities).length>0)?w.return({title:_.gH(_.hP("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.gH(_.hP("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:VFV()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
w.return(U3h(A,M));_.eG(w);return w.return(U3h(A,M))})};
vw4=function(H,U){return U?U==="PPSV"||xIF(H,U):!1};
TqF=function(H){H.responseContext||(H.responseContext={});H.responseContext.maxAgeSeconds=0;return H};
zs=function(H){var U;return _.u(function(A){return A.nextAddress==1?A.yield(jF4(H,"service:topbar:fallback"),2):(U=A.yieldResult)&&_.xj(U)?A.return(TqF(_.xj(U))):A.return()})};
Ir8=function(H){var U;return _.u(function(A){return A.nextAddress==1?A.yield(jF4(H,"service:downloads_settings:fallback"),2):(U=A.yieldResult)&&_.xj(U)?A.return(U):A.return()})};
jF4=function(H,U){var A;return _.u(function(M){if(M.nextAddress==1)return H?M.yield(H.get(U),2):M.return();A=M.yieldResult;return!A||!_.xj(A)||!isNaN(Number(A.data.expireTimestampMs))&&A.isExpired()?M.return():M.return(A)})};
QFM=function(H){var U=_.lx().resolve(CY).getState().entities;return H.playlistId?vw4(U,H.playlistId):!1};
H2K=function(H){var U=_.hr("web_pbj_log_warning_rate",0);U=U>0&&Math.random()<U;if(!_.p(H,_.kO))return U&&_.Na(Error("fj")),!1;var A;return _.S("shorts_controller_retrieve_seedless_sequence_v2")&&((A=_.p(H,_.kO))==null?void 0:A.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:VT_(H)?!0:(U&&_.Na(Error("gj")),!1)};
VT_=function(H){var U=(_.p(H,_.sH)||_.p(H,_.kO)).videoId;if(!U||!UiM.test(U))return!1;var A;return(H=(A=_.p(H.commandMetadata,_.Y2))==null?void 0:A.url)&&(H.includes(U)||H.startsWith("/clip"))?!0:!1};
_.tN=function(H){var U=_.S(H);tP["counterfactuals."+H]=String(U);return U};
_.MWM=function(){var H=_.TR();return H.getFlag(192)?H.getFlag(190):!(_.tN("web_watch_cinematics_disabled_by_default")||_.tN("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&A30())};
_.cl=function(H,U,A){var M={};M.currentUrl=U;M.vis=H.vis!==void 0?H.vis:0;M.splay=!1;U=_.TR();M.autoCaptionsDefaultOn=U.getFlag(66);U.getFlag(141)?U.getFlag(140)?M.autonavState="STATE_OFF":M.autonavState="STATE_ON":M.autonavState="STATE_NONE";M.html5Preference="HTML5_PREF_WANTS";isNaN(_.gD("STS"))||(M.signatureTimestamp=_.gD("STS"));H.autonav&&(M.autoplay=!0,M.autonav=!0);H.mutedAutoplay&&(M.autoplay=!0,M.mutedAutoplay=!0);H.inlinePlayback&&(M.autoplay=!0,M.autonav=!1,M.isInlineUnmutedPlayback=!!H.inlineUnmuted);
M.referer=A;M.lactMilliseconds=H.lact!==void 0?H.lact.toString():"-1";_.S("enable_unknown_lact_fix_on_html5")&&M.lactMilliseconds==="-1"&&_.Na(new _.bD("Unknown LACT is set in playbackContext.",{"lact in tempData":H.lact||"undefined",autonav:H.autonav||"undefined"}));H={};U.getFlag(194)&&(H.hasShownAmbientMode=!0);U.getFlag(192)&&(H.hasToggledOffAmbientMode=!0);_.MWM()&&(H.watchAmbientModeEnabled=!0);M.watchAmbientModeContext=H;return M};
WNN=function(H){var U={},A=H.pbis||0;A&&(U.playbackBeginsInSeconds=A);H.prefetch_reason&&H.prefetch_reason==="hc_pbis"&&(U.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return U};
wMV=function(H,U){var A;if(U==null?0:(A=U.requestTemplate)==null?0:A.panelId)H.panelId=U.requestTemplate.panelId;var M;if(U==null?0:(M=U.requestTemplate)==null?0:M.params)H.params=U.requestTemplate.params};
i2E=function(){if(XMt)return XMt();var H=!_.S("idb_response_store_auth_killswitch"),U={};XMt=$D("yt-it-response-store",{objectStores:(U.ResponseStore={addedAtVersion:1},U),shared:!H,upgrade:function(A,M){M(1)&&(A=L_(A,"ResponseStore",{keyPath:["key","clientName"]}),RQ(A,"byExpiration","expireTimestampMs"),RQ(A,"byInterface","clientName"))},
version:1});return XMt()};
yI=function(H){return _.CO(i2E(),H)};
diN=function(H,U){var A;return _.u(function(M){return M.nextAddress==1?M.yield(_.D0(),2):(A=M.yieldResult)?M.return(new b2t(H,U,A)):M.return()})};
O2h=function(H){var U=Object.keys(H)[0];if(U)return H.screenExit&&(U=U+";"+H.screenExit.screen),U};
uqh=function(H){var U=new Map;H=_.b(H);for(var A=H.next();!A.done;A=H.next())A=A.value,A!=null&&(U.has(A.taskType)||U.set(A.taskType,[]),U.get(A.taskType).push(A));return U};
Z2M=function(H){H=[].concat(_.vI(H)).sort(function(A,M){return A-M});
var U=Math.floor(H.length/2);return H.length%2?H[U]:(H[U-1]+H[U])/2};
KNh=function(H,U){H=H===void 0?M5r:H;U=U===void 0?{}:U;_.eC("yt.logging.errors.log",_.sD);UG_();fIh(blF(),U);window.onerror=H;J3t=AFF;window.addEventListener("unhandledrejection",function(A){if(A.reason instanceof Error){var M=A.reason;_.SD(M,{source:"unhandledrejection"});M.name==="AbortError"&&(M.level="WARNING")}AFF(A.reason);A.preventDefault()})};
_.orK=function(H){var U,A,M,W,w,d,O,f,J,F,P,n,N,L,m,z,c,C,v,Y,D,h,T,WF,dK,SN,o_,PF,BF,kc,G8,Pr,Z3,Yc,sz,Ry,oy,aY,im,Kh;return _.u(function(rK){if(rK.nextAddress==1)return rK.yield(_.hw(H,{mode:"readonly",enableRetries:!0},function(FB){return kU(FB,"playbackData").then(function(T2){var xK=T2.map(function(oY){return oY.transfer}).filter(function(oY){return!!oY}),Hj=T2.map(function(oY){return oY.offlineVideoPolicy}).filter(function(oY){return!!oY}),CU=T2.filter(function(oY){return!!oY.key}).map(function(oY){return _.BO(_.tw(oY.key).entityId,
"downloadStatusEntity")});
xK=kU(FB,"transfer",xK);Hj=kU(FB,"offlineVideoPolicy",Hj);CU=kU(FB,"downloadStatusEntity",CU);var Qh=xK.then(function(oY){oY=oY.reduce(function(qp,kf){(kf==null?0:kf.offlineVideoStreams)&&qp.push.apply(qp,_.vI(kf.offlineVideoStreams));return qp},[]).filter(function(qp){return!!qp});
return kU(FB,"offlineVideoStreams",oY)});
return Rd.all([xK,Hj,Qh,CU]).then(function(oY){var qp=_.b(oY);oY=qp.next().value;var kf=qp.next().value;var Oz=qp.next().value;qp=qp.next().value;return[T2,oY,kf,Oz,qp]})})}),2);
if(rK.nextAddress!=3)return U=rK.yieldResult,rK.yield(_.hw(H,{mode:"readonly",enableRetries:!0},function(FB){return kU(FB,"mainDownloadsListEntity").then(function(T2){var xK,Hj;return(Hj=(xK=T2[0])==null?void 0:xK.downloads)!=null?Hj:[]})}),3);
A=rK.yieldResult;M=_.b(U);W=M.next().value;w=M.next().value;d=M.next().value;O=M.next().value;f=M.next().value;J=W;F=w;P=d;n=O;N=f;L={};m={};z={};c={};C={};v=[];Y=_.b(F);for(D=Y.next();!D.done;D=Y.next())(h=D.value)&&(L[h.key]=h);T=_.b(P);for(WF=T.next();!WF.done;WF=T.next())(dK=WF.value)&&(m[dK.key]=dK);SN=_.b(N);for(o_=SN.next();!o_.done;o_=SN.next())(PF=o_.value)&&(z[PF.key]=PF);BF=_.b(n);for(kc=BF.next();!kc.done;kc=BF.next())(G8=kc.value)&&(c[G8.key]=G8);Pr=_.b(A);for(Z3=Pr.next();!Z3.done;Z3=
Pr.next())Yc=Z3.value,sz=void 0,C[(sz=Yc.videoItem)!=null?sz:""]=!0,Yc.videoItem&&(oy=Ry=void 0,aY=(oy=(Ry=_.tw(Yc.videoItem))==null?void 0:Ry.entityId)!=null?oy:"",v.push({externalVideoId:aY}));im=J.filter(function(FB){if(!FB||!FB.key||!FB.offlineVideoPolicy)return!1;FB=_.tw(FB.key).entityId;FB=_.BO(FB,"downloadStatusEntity");var T2;return!(FB&&((T2=z[FB])==null?void 0:T2.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Kh=im.map(function(FB){var T2=L[FB.transfer],xK=[];if(T2==null?0:T2.offlineVideoStreams)for(var Hj=_.b(T2.offlineVideoStreams),CU=Hj.next();!CU.done;CU=Hj.next())(CU=c[CU.value])&&xK.push(CU);Hj=m[FB.offlineVideoPolicy];CU=C;var Qh=FB==null?void 0:FB.playerResponseTimestamp,oY=_.tw(Hj.key).entityId;FB=_.BO(oY,"mainVideoEntity");if(Hj.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var qp="OFFLINE_VIDEO_STATE_DISABLED";Hj.expirationTimestamp&&Number(Hj.expirationTimestamp)<Date.now()/1E3&&(qp="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Hj.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")qp="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(T2==null?void 0:T2.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":qp="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":qp="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":qp="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":qp="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":qp="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":qp="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:qp="OFFLINE_VIDEO_STATE_UNKNOWN"}if(qp==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(T2==null?void 0:T2.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":qp="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":qp="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":qp=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}oY={id:oY,videoState:qp};if(T2==null?0:T2.cotn)oY.cotn=T2.cotn;if(T2==null?0:T2.maximumDownloadQuality)oY.selectedVideoQuality=T2==null?void 0:T2.maximumDownloadQuality;if(T2==null?0:T2.lastProgressTimeMs)oY.lastProgressTimeMs=T2.lastProgressTimeMs;Qh&&(oY.playerResponseSavedTimeMs=String(Number(Qh)*1E3));T2=String;Qh=0;xK=_.b(xK);for(qp=xK.next();!qp.done;qp=xK.next())if(qp=qp.value,qp.streamsProgress){qp=_.b(qp.streamsProgress);for(var kf=qp.next();!kf.done;kf=
qp.next()){var Oz=void 0;Qh+=Number((Oz=kf.value.numBytesDownloaded)!=null?Oz:0)}}oY.downloadedBytes=T2(Qh);oY.selectedOfflineMode=CU[FB]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Hj.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(oY.offlinePlaybackDisabledReason=Hj.offlinePlaybackDisabledReason);return oY});
return rK.return({offlineVideos:Kh,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:v}}})})};
FN7=function(){var H;return _.u(function(U){return U.nextAddress==1?U.yield(_.GQ(),2):(H=U.yieldResult)?U.return(_.orK(H)):U.return({state:"PES Unavailable"})})};
nr_=function(){var H,U,A,M;return _.u(function(W){if(W.nextAddress==1)return W.yield(_.GQ(),2);if(W.nextAddress!=3)return(H=W.yieldResult)?W.yield(P44(H),3):W.return({state:"PES Unavailable"});U=W.yieldResult;A={};M=U.reduce(function(w,d){w[d.key]=d;return w},A);
return W.return(sW8(M))})};
sW8=function(H){for(var U={},A=[],M=_.b(Object.keys(H)),W=M.next();!W.done;W=M.next()){var w=W.value;W=H[w];var d=void 0;if(((d=W)==null?void 0:d.entityType)==="mainVideoEntity"){delete H[w];var O=W.data;W={};if(O){var f=void 0;d=(f=O.videoId)!=null?f:"vid-"+w;w=H;W.video=O;delete W.video.formattedDescription;delete W.video.thumbnail;O.owner&&(f=w[O.owner],f==null?0:f.data)&&(delete w[f.key],W.video.owner=f.data,delete W.video.owner.avatar);if(O=O.downloadState)if(f=w[O],f==null?0:f.data)if(delete w[O],
O=f.data.playbackData)if(f=w[O],f!=null&&f.data){delete w[O];O=f.data;delete O.playerResponseJson;W.playbackData=O;if(O.transfer&&(f=w[O.transfer],f==null?0:f.data)){delete w[f.key];var J=f.data;W.transfer=J;f=[];J=_.b(J.offlineVideoStreams||[]);for(var F=J.next();!F.done;F=J.next())if(F=w[F.value])delete w[F.key],f.push(F.data);f&&(W.streams=f)}(O=O.offlineVideoPolicy)&&(O=w[O])&&O.data&&(delete w[O.key],W.offlineVideoPolicy=O.data)}U[d]=W}}else W&&W.entityType==="offlineOrchestrationActionWrapperEntity"&&
W.data&&(delete H[W.key],d=W.data,w=void 0,A.push({id:d.rootActionId,type:((w=d.actionProto)==null?void 0:w.actionType)||"",entity:W}))}U.wrapperEntities=A;Object.keys(H).length>0&&(U.unknownKeys=H);return U};
Nft=function(){var H,U,A,M,W,w,d,O,f;return _.u(function(J){if(J.nextAddress==1)return H=(new _.Sx("")).hasLocalStorage(),M=!!((U=_.Mr.crypto)==null?0:(A=U.subtle)==null?0:A.importKey),W=!!_.Mr.BroadcastChannel,w=!!_.Mr.navigator.locks,J.yield(ycc(),2);d=J.yieldResult;O=H&&M&&W&&w&&d;f={isSupported:O};if(O)return J.return(f);f.missingBrowserFeatures=[];d||f.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");H||f.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
M||f.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");W||f.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");w||f.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return J.return(f)})};
SiE=function(H,U,A,M){var W=!1,w={contentId:void 0,contentType:"video"};U=_.b(Object.entries(U));for(var d=U.next();!d.done;d=U.next()){var O=_.b(d.value);d=O.next().value;O=O.next().value;H.includes(d)&&!A.has(O)?(w.contentId=O,A.add(O),W=!0):d==="contentType"?O==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(w.contentType="playlist"):typeof O==="object"&&O!==null&&SiE(H,O,A,M)}W&&M.push(w)};
pM7=function(){var H;return!((H=Bl?Bl:null)==null||!H.window)};
_.Ert=function(H){if(_.LN_()){var U=_.RpN().mediaSession;try{U.setActionHandler("enterpictureinpicture",function(A){H(A)})}catch(A){}}};
_.LN_=function(){return!(!Bl||!Bl)&&mV()&&_.SMV("Chromium")>=120};
mic=function(H){for(var U=[],A=_.b(document.styleSheets),M=A.next(),W={};!M.done;W={node$jscomp$778:void 0},M=A.next())W.node$jscomp$778=M.value.ownerNode,W.node$jscomp$778&&(W.node$jscomp$778 instanceof HTMLStyleElement||W.node$jscomp$778 instanceof HTMLLinkElement)&&U.push(new Promise(function(w){return function(d){var O=w.node$jscomp$778.cloneNode(!0);O.onload=function(){d()};
O.onerror=function(){_.Na(Error("xj"));d()};
H.document.head.appendChild(O)}}(W)));
return Promise.all(U)};
r3F=function(H){var U=[_.N2(gr_),_.N2(aIF),_.N2(xi4)];zpt(window.document.documentElement,H.document.documentElement,[_.N2(C4M),_.N2(tWM),_.N2(c3E),_.N2(y3K),_.N2(Bfc)]);zpt(window.document.body,H.document.body,U)};
zpt=function(H,U,A){H=_.b(H.attributes);for(var M=H.next();!M.done;M=H.next())if(M=M.value)try{_.oD(A,U,M.name,M.value)}catch(W){}};
Di7=function(H,U){H=new _.rz(H.document.documentElement);H.start(epF,U);return H};
$i7=function(H){var U=H.document.documentElement;U.addEventListener("click",function(A){E7_(U,A)});
U.addEventListener("touchstart",function(A){z6M(A)});
U.addEventListener("mousedown",function(A){z6M(A)})};
GKh=function(H,U,A,M){M=M===void 0?!1:M;U=new lI8(U||H,A||H);return{x:H.x+((M===void 0?0:M)?U.lengthX*-1:U.lengthX)*.2,y:H.y+((M===void 0?0:M)?U.lengthY*-1:U.lengthY)*.2}};
Yi0=function(H){if(!H)return!1;var U=H.status==="OK"||H.status==="LIVE_STREAM_OFFLINE",A,M,W,w=(W=(A=H.errorScreen)==null?void 0:A.playerLegacyDesktopYpcTrailerRenderer)!=null?W:(M=H.errorScreen)==null?void 0:M.ypcTrailerRenderer;return!!U||!!w};
_.qi7=function(H,U){if(!H)return!1;var A,M=(A=H.errorScreen)==null?void 0:A.playerLegacyDesktopYpcOfferRenderer,W;U=!!(U==null?0:(W=U.playerOverlayRenderer)==null?0:W.gatedActionsOverlayRenderer);return!!Yi0(H)||!!M||!!U};
hpV=function(H){return Ugc(H,0,"gclid",H.search(A8N))>=0||Ugc(H,0,"gad_source",H.search(A8N))>=0};
kK7=function(H){var U=[],A=0;return{clear:function(){A=U.length=0},
push:function(M){U[A]=M;A=(A+1)%H},
iterate:function(){return function W(){var w,d,O,f;return _.eV(W,function(J){switch(J.nextAddress){case 1:_.yb(J,2),w=U.length,d=0;case 4:if(!(d<w)){J.jumpTo(2);break}O=A+d;f=_.D9;return J.yield(U[O%w],7);case 7:f(J.yieldResult);d++;J.jumpTo(4);break;case 2:_.cI(J),_.BI(J,0)}})}()}}};
vrV=function(H){H.eventsToIgnore||(H.eventsToIgnore=[]);var U=H.eventsToIgnore.map(aV4),A=new Set(U),M=kK7(H.bufferSize);return{flush:function(){var W=Array.from(M.iterate());M.clear();W=W.map(function(w){return{name:w.name,timestamp:w.startTime,attributes:w.attributes}});
return JSON.stringify(W)},
onSpanStart:function(W){W.name==="event"&&A.has(W.attributes.type)||M.push(W)}}};
Tf_=function(H){H=vrV(H);var U=H.flush;$Jt({onSpanStart:H.onSpanStart});L5.subscribe("handleError",function(A){try{A.params.breadcrumbs=U()}catch(M){_.sD(M,"WARNING")}})};
jWV=function(){X_("web_tracing_action");_.ia("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
II8=function(){X_("web_tracing_action");_.ia("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
HDE=function(H,U,A,M){if(U===void 0){QW4||(II8(),setInterval(II8,6E5),QW4=!0);var W="web_tracing_action"}else W=U;var w,d=((w=H.endTime)!=null?w:H.startTime)-H.startTime;w={};A=VW7(H.name,d,H.startTime,{webTracing:(w[H.name]=H.attributes,w)},A,W,{spanStatus:H.status,rootSpanNonce:void 0});if(H.children)for(H=_.b(H.children),W=H.next();!W.done;W=H.next())HDE(W.value,U,A,M||A)};
Ul_=function(H){var U=kJr.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(A){A.data&&typeof A.data==="object"&&(A=A.data,A.from==="extension"&&A.app==="yt.telemetry"&&(U("Received message from extension",A),H.onMessage(A)))});
return function(A,M){A={app:"yt.telemetry",from:"app",key:A,payload:M};U("Sending message to extension",A);window.postMessage(A,"*")}};
Amh=function(){var H=H===void 0?3E3:H;var U=Ul_({onMessage:function(){}}),A=[];
return{onSpanEnd:function(M){M.parentId==null&&A.push(M)===1&&setTimeout(function(){var W=[].concat(_.vI(A));A.length=0;U("spansReported",{spans:W})},H)}}};
MjF=function(H){H=H===void 0?400:H;var U=[],A=[];return{start:function(){return l7K({checkoutEveryNth:H,emit:function(M,W){W&&(U=A,A=[]);A.push(M)}})},
getRecording:function(){return[].concat(_.vI(U),_.vI(A))}}};
XHM=function(){(new WrE({sessionReplayEvents:_.hr("web_tracing_session_replay",0)})).subscribe(function(H){if(H.sessionReplayEvents>0)try{var U=MjF(H.sessionReplayEvents);U.start();if(_.S("web_tracing_session_replay_demo")){var A=console.log;window.exportSessionReplay=function(){var M=JSON.stringify(U.getRecording(),null,2);M=wH_(new Blob([M],{type:"text/plain"}));var W=document.createElement("a");W.download="session_replay.json";W.dataset.downloadurl=["application/json",W.download,W.href].join(":");
W.style.display="none";W.href=M;W.click();URL.revokeObjectURL(M);A("View replay at go/yt-session-replay-viewer")}}}catch(M){_.Na(Error("zj"))}})};
bD_=function(){var H=window.fetch;window.fetch=function(){var U=_.QY.apply(0,arguments),A=_.b(U),M=A.next().value;A=A.next().value;var W=C1("httpEvent",{method:(A===void 0?{}:A).method||"GET",path:iDV(M),type:"fetch"},{active:!1});return H.apply(null,_.vI(U)).then(function(w){W.addAttributes({statusCode:w.status,statusText:w.statusText});W.end();return w}).catch(function(w){W.end("SPAN_STATUS_ERROR");
throw w;})}};
dlF=function(){var H=XMLHttpRequest.prototype.open,U=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(A,M,W,w,d){var O=this;W=W===void 0?!0:W;this._requestData={method:A,url:M.toString()};this.addEventListener("load",function(){var f=O._span;f==null||f.addAttributes({statusCode:O.status,responseContentLength:O.responseText.length});f==null||f.end()});
this.addEventListener("error",function(){var f=O._span;f==null||f.addAttributes({statusCode:O.status,statusText:O.statusText});f==null||f.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var f=O._span;f==null||f.addAttributes({statusCode:O.status,aborted:!0});f==null||f.end()});
H.apply(this,[A,M,W,w,d])};
XMLHttpRequest.prototype.send=function(A){var M=this._requestData||{method:"N/A",url:"N/A"};this._span=C1("httpEvent",{method:M.method,path:iDV(M.url),type:"xhr"},{active:!1});U.apply(this,[A])}};
iDV=function(H){try{if(H instanceof URL)return H.pathname;H instanceof Request&&(H=H.url);return(new URL(H,"https://youtube.com")).pathname}catch(U){return"<unable to parse path>"}};
uc_=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var H=window.performance.getEntriesByType("navigation");if(H.length>0){var U=H[0],A=window.performance.timeOrigin;C1("pageLoad",{navigationType:OD7(U.type),unloadEventStart:Math.round(U.unloadEventStart),unloadEventEnd:Math.round(U.unloadEventEnd),domInteractive:Math.round(U.domInteractive),domContentLoadedEventStart:Math.round(U.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(U.domContentLoadedEventEnd),
domComplete:Math.round(U.domComplete),loadEventStart:Math.round(U.loadEventStart),loadEventEnd:Math.round(U.loadEventEnd),redirectCount:U.redirectCount},{active:!1,startTime:A+U.startTime,endTime:A+U.loadEventEnd})}}catch(M){}})};
OD7=function(H){switch(H){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
oQc=function(){for(var H=ZD4.value,U={},A=_.b(H.enabledSpansArray),M=A.next();!M.done;M=A.next())U[M.value]=!0;DJM({sessionId:GVr(),enabledSpans:U,shouldSampleFn:function(W,w,d){if(fRc){var O;return W==="shortToShort"||(d==null?void 0:(O=d.rootSpan())==null?void 0:O.name)==="shortToShort"}return!0}});
hUr();a2("pageLoad")&&uc_();a2("httpEvent")&&(bD_(),dlF());H.exportToCsi&&$Jt(Jm7);H.exportToDevTools&&$Jt(Amh());H.maxBreadcrumbs>0&&Tf_({eventsToIgnore:Kr8,bufferSize:H.maxBreadcrumbs})};
Fr4=function(H){return new Promise(function(U){window.setTimeout(U,H)})};
P3c=function(H){var U={bicf:function(w){H.r5H=w},
blc:function(){return H.getLatestChallengeResponse()},
bcr:function(w){H.mzI.push(w)}},A=window;
A.ntpevasrs=U;if(A.ntpqfbel!==void 0)for(var M=_.b(A.ntpqfbel),W=M.next();!W.done;W=M.next())W=W.value,W(U);A.ntpqfbel=void 0};
sMc=function(H){return _.u(function(U){if(U.nextAddress==1)return _.zj(U,2),U.yield(H.igG(),4);if(U.nextAddress!=2)return _.xD(U,0);_.eG(U);_.DO(U)})};
nQM=function(H){var U,A;(U=H.ytcsi)==null||(A=U.tick)==null||A.call(U,"pot_ist")};
NZt=function(H){if(H instanceof Error){var U=_.tr("yt.logging.errors.log");U&&U(H,"WARNING")}};
SvF=function(H){try{var U=JSON.parse(H);if(U.bgChallenge)return U}catch(A){}};
Lrc=function(){var H=window,U={networkStatusManagerPromise:_.lx().resolve(new su_(_.xB)),initialChallengeSli:_.S("wpo_att_sli")?new _.b$_("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};H=H===void 0?window:H;var A=H.ytAtR,M;U==null||(M=U.initialChallengeSli)==null||_.lX(M);if(A){if(A=SvF(A)){var W;U==null||(W=U.initialChallengeSli)==null||_.Gs(W,"SUCCESS");pHK(A,U)}H.ytAtR=void 0}else H.ytAtRC=function(w){if(w=SvF(w)){var d;U==null||(d=U.initialChallengeSli)==null||
_.Gs(d,"SUCCESS");pHK(w,U);H.ytAtRC=void 0}}};
mlr=function(){if(RHt)return RHt;try{var H=_.Q9("IFRAME");_.wY(H,_.LF(EQ4));H.sandbox.add("allow-same-origin");H.style.display="none";document.body.appendChild(H);return RHt=H}catch(U){H=new _.bD("Failed to create sandbox iframe"),_.sD(H)}};
gQM=function(){return function(H,U){_.gD("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[H]=U}};
aRV=function(){return function(H,U){var A={};A[H]=U;H=_.CA(_.g6N)(A);Object.keys(H).length>0&&_.wH(H)}};
C3K=function(){if(_.E3h()==="hidden")var H="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else _.E3h()==="visible"&&(H="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",xl4=null);H&&zHt(H)};
zHt=function(H){if(H==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||H==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(tjN===H)return;tjN=H}var U=9E4+Math.random()*2E3;if(H!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.$B()>U)&&_.E3h()==="visible"){U=-1;xl4&&(U=Math.round((0,_.lD)()-xl4));var A=String;var M=_.tr("_fact",window);M=M==null||M==-1?-1:Math.max(Date.now()-M,0);_.Fx("foregroundHeartbeat",{firstActivityMs:A(M),clientDocumentNonce:YxK,index:String(cm8),lastEventDeltaMs:String(U),trigger:H});
_.eC("_fact",-1,window);cm8++;xl4=(0,_.lD)()}};
ymr=function(H,U,A,M,W,w){U=new Uint8Array(U);if(H.length===0)return U;var d=0;W=W!=null?W:H.length-1;for(var O=A;O<=W;O++){var f=H[O],J=O===A?M:0,F=void 0,P=O===W?(F=w)!=null?F:f.length:f.length;f=f.subarray(J,P);U.set(f,d);d+=f.length}return U};
_.BZE=function(){try{return!!self.sessionStorage}catch(H){return!1}};
rm4=function(){var H=navigator;return new Promise(function(U,A){var M;(M=H.webkitTemporaryStorage)!=null&&M.queryUsageAndQuota?H.webkitTemporaryStorage.queryUsageAndQuota(function(W,w){U({usage:W,quota:w})},function(W){A(W)}):A(Error("Ij"))})};
eHE=function(H,U){var A={errorSeverity:U.errorSeverity.toString(),wizFeatureFlags:Object.entries(U.featureFlags).join("\n")};Hl_(U,A);U=U.errorSeverity;U===3?_.sD(H,"ERROR",void 0,void 0,void 0,A):U===2&&_.sD(H,"WARNING",void 0,void 0,void 0,A);_.S("cow_if_errors_in_popup")&&U===3&&H.message.indexOf("<If>")!==-1&&window.alert(H.message)};
DlN=function(H,U){var A=LE.get(H)||{layerNode:U};A.layerNode=U;OJc(H,A);H.getScreenLayer=function(){return Yj(A.layerNode)}};
$l0=function(H){var U;H=H.parentNode;for(var A;H&&((U=LE.get(H))==null||!U.isRenderer)&&!((A=H.polymerController)!=null?A:H).isRenderer_;)H=H.parentNode||H.host;if(U=H)return LE.get(U)};
lR_=function(H){if(H){LE.delete(H);var U=_.lx().resolve(ru);VzV(H,U)}};
Yvh=function(H,U,A){if(A===void 0?0:A){if(A=H.getAttribute("client-ve-type"),U.data&&!U.disableReactiveLogging||A)_.Rn(function(){Gc_(H,_.an(U.data))},"Gg"),_.m4(function(){return void lR_(H)})}else typeof U.data!=="function"&&Gc_(H,U.data)};
Gc_=function(H,U){qv_++;hHV(H,U)&&_.Fl.addJob(function(){_.qT(_.Fl,function(){if(hHV(H,U)&&H.ownerDocument.documentElement===document.documentElement&&H){var A;if(H.getAttribute("layer")){var M=A=Number(H.getAttribute("layer")),W=LE.get(H);W?W.layerNode.layer=M:DlN(H,new kcE(M));(M=$l0(H))&&(W=LE.get(H))!=null&&(W.layerNode.parent=M.layerNode)}else if(A=LE.get(H))A=Yj(A.layerNode);else{A=Yj;M=new kcE;if(W=$l0(H))M.parent=W.layerNode;DlN(H,M);A=A(M)}A!=null||(A=0);M=H.getAttribute("client-ve-type");
W=Number(M);var w=!1;M=!1;var d=LE.get(H),O;if((O=d)&&!(O=d[vQ_]!==U)&&(O=W)){var f;O=((f=LE.get(H))==null?void 0:f.clientVeType)===void 0}O&&(d[vQ_]=U,w=M=d.isRenderer=!0);LE.has(H)&&(LE.get(H).clientVeType=W);H.visualElement&&(M=!0);if(_.S("wiz_next_ld_fix_client_ve_spec")){var J;f=((J=_.p(U==null?void 0:U.rendererContext,_.vX))==null?void 0:J.loggingDirectives)||(U==null?void 0:U.loggingDirectives)}else f=U==null?void 0:U.loggingDirectives;f&&f.clientVeSpec&&(J=TZ0(_.qD(),H),J=_.jME(_.k$(),f,J||
void 0,A))&&(H.visualElement=J);!H.visualElement&&W&&w&&(H.veType=W,J=void 0,_.S("wiz_next_client_ve_parent_fix")&&(J=TZ0(_.qD(),H)),J=_.hy(_.k$(),H,J,A),H.visualElement=J);M&&(J=_.lx().resolve(ru),Y$(H,{data:U,observer:J,layer:A,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
hHV=function(H,U){return(U==null?0:U.trackingParams)||(U==null?0:U.loggingDirectives)||_.p(U==null?void 0:U.rendererContext,_.vX)||H.getAttribute("client-ve-type")?!0:!1};
IRc=function(H,U,A){H.componentType!==F$&&A instanceof HTMLElement&&U&&!_.S("cow_logging_in_component_wrapper")&&Yvh(A,U,!0)};
HMh=function(){if(!QMN){QMN=!0;var H=_.S("enable_wiz_context_per_component")||!1;H=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.S("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:H,enableContextBasedComponentStacks:H},{handleError:eHE,enableComponentStacksInErrorMessages:!1});Object.assign(jv,H);Vjh();KJ7=Rm0;Z10=m6M}};
Vjh=function(){_.S("cow_logging_in_component_wrapper")?(cEK=function(H,U){U instanceof HTMLElement&&Yvh(U,H,!0)},H1_=function(){}):(cEK=function(){},H1_=IRc)};
U9V=function(H,U,A){U=U===void 0?{}:U;var M,W=(M=_.p(H.commandMetadata,_.Y2))==null?void 0:M.url;M=U.form||{};!A||M.element||M.skipDefaultElement||(U.form=U.form||{},U.form.element=A);if(W&&W!=="/service_ajax")return{type:0,command:H,form:U.form};if(_.S("kevlar_service_command_check")){if(_.fy(_.lx().resolve(_.IE),H))return Object.assign({},{type:1,command:H},U)}else{var w;if((w=_.p(H.commandMetadata,_.Y2))==null?0:w.apiUrl)return Object.assign({},{type:1,command:H},U)}return{type:2,command:H,form:U.form}};
AV8=function(H){if(H.form){var U=H.form,A=Object.assign({},U);U=U.element;A=(delete A.element,A);if(U)return[_.rs(U,[H.command,A,H.commandController])]}return[]};
M18=function(H){if(H.form){var U=H.form,A=Object.assign({},U);U=U.element;A=(delete A.element,A);U&&_.eb(U,[H.command],U,A)}};
w_4=function(H,U,A){var M=new WZ4(H,U),W=new hN(H,U,A);H={"/youtubei/v1/browse":new kj(H,U,A),"/youtubei/v1/player":M,"/youtubei/v1/navigation/resolve_url":new vl,"/youtubei/v1/next":W,"/youtubei/v1/guide":new Ts(A),"/youtubei/v1/search":new jV(H,U,A),"/youtubei/v1/reel/reel_item_watch":new Ii(H,U,A),"/youtubei/v1/get_watch":new QI(M,W)};H["/youtubei/v1/account/account_menu"]=new VI;H["/youtubei/v1/notification/get_notification_menu"]=new Hu;return H};
AI=function(){var H=_.lx().resolve(_.UP);return Promise.resolve(X_V(H,_.Mr.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
iM7=function(H){return H&&(H=_.rN(_.kg8(H)))?(new URLSearchParams(H)).get("service"):null};
wj=function(H,U){_.av(_.MP(),function(){_.ba("adl")});
_.lx().resolve(bMK)(U);H=H.root;H.loadData&&H.loadData(U);(U==null?0:U.response)?_.Gs(uj7(),"SUCCESS"):_.Na(new _.bD("Lifecycle: No response in data",_.xV("IS_SHELL_LOAD"),U?U.page:"NO_PAGE",U?U.endpoint:"NO_ENDPOINT"));H.polymerController.$["page-manager"].lazyPrepareCriticalPages((U==null?void 0:U.page)||"",U.endpoint);var A,M;((M=_.p(U==null?void 0:(A=U.endpoint)==null?void 0:A.commandMetadata,_.Y2))==null?0:M.webPageType)&&_.Lq().dispatch(_.Wu(_.p(U.endpoint.commandMetadata,_.Y2).webPageType))};
d9h=function(){var H,U;return _.u(function(A){switch(A.nextAddress){case 1:H=window;if(!H.getDataPromise){A.jumpTo(2);break}_.zj(A,3);return A.yield(H.getDataPromise(),5);case 5:return A.return(A.yieldResult);case 3:return _.eG(A),A.yield(AI(),6);case 6:return A.return(A.yieldResult);case 2:if(H.getInitialData)return U=H.getInitialData(),H.getInitialData=void 0,A.return(U);throw Error("Kj`"+_.Mr.location.href);}})};
uH4=function(){_.mT("CSI_SERVICE_NAME","youtube");_.wH({loadType:"cold"});_.S("kevlar_log_lcp")&&OM0(function(H){_.ba("lcp",H.value)})};
ZM0=function(){var H=_.TZ(document.location.href,"enable");H&&H.indexOf("scraper")>-1&&_.mT("ADD_SCRAPER_ATTRIBUTES",!0)};
FZc=function(H){var U=H.root;H=[fSc,JVM,_.XY];_.S("web_feedback_endpoint_autolog_allowlist_killswitch")&&H.push(_.i$,KZM);oI7(function(A,M){return U9V(A,M,U)},function(A){if(!A.command)return[];
var M;((M=A.form)==null?0:M.element)?A.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},A.form,{endpoint:A.command})})):U.handleNavigate(A);return[]},H);
_.lx().addProvider({provide:_.YV,useValue:_.$$.instance})};
so8=function(){var H={},U={},A;for(A in PJ4){var M=_.b(_.iB(PJ4[A],void 0,"e17Ccb"));H[A]=M.next().value;U[A]=M.next().value}return[H,function(W){for(var w in W){var d=void 0;(d=U[w])==null||d(W[w])}}]};
_.SQ4=function(H,U){var A=!1;A=A===void 0?!1:A;var M=_.dG.getValueByKeys(H,"contents","twoColumnWatchNextResults","results","results","contents"),W=_.dG.getValueByKeys(H,"contents","twoColumnWatchNextResults","playlist","playlist")||null;A&&(W=null);var w=A=null;if(W)A=_.dG.getValueByKeys(W,"titleText"),w=_.dG.unsafeClone(_.dG.getValueByKeys(W,"longBylineText")),M="",w&&(M=_.Sp(w)),w=_.Nh(M);else if(M){M=_.b(M);for(var d=M.next();!d.done;d=M.next())d=d.value,d.videoPrimaryInfoRenderer&&(A=_.dG.getValueByKeys.apply(_.dG,
[d].concat(_.vI(nIN)))),d.videoSecondaryInfoRenderer&&(w=_.dG.getValueByKeys.apply(_.dG,[d].concat(_.vI(N9_))))}else _.c5(Error("Pj"));var O;H.currentVideoEndpoint?O=H.currentVideoEndpoint:_.c5(Error("Qj"));var f;U&&(f=_.dG.getValueByKeys(U,"playabilityStatus","miniplayer","miniplayerRenderer"));H={miniplayerTitle:A,miniplayerSubtitle:w,watchEndpoint:O,playlistData:W};f&&(H.miniplayerRenderer=f);return H};
p_K=function(H){if(H)return _.Me(H)};
_.LZ8=function(){return{isFullscreen:function(){throw Error("Rj");},
toggleFullscreen:function(){throw Error("Sj");},
exitFullscreen:function(){throw Error("Tj");},
isAutonavEnabled:function(){throw Error("Uj");},
setAutonavEnabled:function(){throw Error("Vj");},
isAutoplaySetExplicitly:function(){throw Error("Wj");}}};
R38=function(H){return H.videoDuration?H.numTaps>1&&H.tapDirection!==0?_.b$(H.draggedTime/H.videoDuration,0,1):_.b$((H.playedTime||0)/H.videoDuration,0,1):0};
EIM=function(H){return H.videoDuration?H.isDragging||H.numTaps>1&&H.tapDirection!==0?_.b$(H.draggedTime/H.videoDuration,0,1):_.b$((H.playedTime||0)/H.videoDuration,0,1):0};
gIc=function(H){var U,A,M;return _.p(H==null?void 0:(U=H.markersMap)==null?void 0:(A=U.find(function(W){return W.key==="HEATSEEKER"}))==null?void 0:(M=A.value)==null?void 0:M.heatmap,m97)};
aS4=function(H){var U,A;return(A=(U=gIc(H))==null?void 0:U.heatMarkersDecorations)!=null?A:[]};
x90=function(H){if(_.S("mweb_supported_chapters_killswitch"))return!0;var U;return!!(H==null?0:(U=H.markersMap)==null?0:U.find(function(A){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(A.key)}))};
_.z3h=function(H){var U=Object,A=U.assign,M;H={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(M=H==null?void 0:H.getPlayerState())!=null?M:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return A.call(U,{},{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,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},H,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
CJt=function(H){return function(U){var A=H(),M,W=(M=A.playerApi)==null?void 0:M.getPlayerState();U&&U!==A.playerState&&(U===1||U===2)&&A.setState({playerState:W})}};
cVK=function(H){return function(U){var A=H(),M=A.playerApi;M&&(U==null?void 0:U.type)==="newdata"&&(t1N&&(clearTimeout(t1N),t1N=void 0),_.S("web_shorts_use_progress_state_for_gapless")?(U=M==null?void 0:M.getProgressState(U==null?void 0:U.playertype),U=U.seekableEnd-U.seekableStart):U=M==null?void 0:M.getDuration(U==null?void 0:U.playertype),A.setState({playedTime:0,videoDuration:U}))}};
yVh=function(H){return function(U){var A=H(),M=A.playerApi;if(M){var W=M.getPresentingPlayerType();_.S("web_shorts_use_progress_state_for_gapless")?(M=M.getProgressState(W),M=M.seekableEnd-M.seekableStart):M=M.getDuration(W);A.setState({playedTime:U,videoDuration:M})}}};
rVM=function(H){_.Hl(112394,H,function(){return B98},function(U){B98=U})};
$90=function(H,U){if(!H)return[];var A,M,W;H=((A=H.markersMap)==null?void 0:(M=A.find(function(w){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(w.key)}))==null?void 0:(W=M.value)==null?void 0:W.chapters)||[];
!e3K(H)||(U==null?0:U.ignoreStub)||(H=[D9M()].concat(_.vI(H)));return H};
D9M=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
e3K=function(H){if(H.length===0)return!1;var U;return((U=_.p(H[0],dj))==null?void 0:U.timeRangeStartMillis)!==0};
OP=function(H){return H?H.timeRangeStartMillis||0:0};
G7N=function(H,U){if(H.isDragging&&U)return H=lSt(H,U),H===-1?D9M():$90(U)[H]};
lSt=function(H,U){return H.isDragging&&U?$90(U,{ignoreStub:!0}).findIndex(function(A,M,W){A=YQ0(H);return qQ0(A,W,M).scrubberHovering}):-1};
YQ0=function(H){return Object.assign({},H,{videoDuration:H.videoDuration*1E3,playedTime:H.playedTime*1E3,draggedTime:H.draggedTime*1E3})};
qQ0=function(H,U,A){var M=OP(_.p(U[A],dj));U=OP(_.p(U[A+1],dj))||H.videoDuration;A=H.isDragging;var W;if(W=H.isDragging)W=H.draggedTime,W=W!==null&&W>=M&&W<U;var w=H.playedTime;return w!==null&&w>=M&&w<U?{videoPosition:"active",isScrubbing:A,scrubberHovering:W}:H.playedTime<M?{videoPosition:"pending",isScrubbing:A,scrubberHovering:W}:{videoPosition:"seen",isScrubbing:A,scrubberHovering:W}};
h30=function(H,U){return H.videoPosition==="seen"||(U===void 0?0:U)>0};
k7K=function(H,U,A){U=H/U.storyboardInterval;var M=$90(A);if(!M.length)return-U*72;A=0;M=_.b(M);for(var W=M.next();!W.done;W=M.next())if(OP(_.p(W.value,dj))/1E3<H)A++;else break;return-(U*72)-A*56};
vI8=function(H){return H?H.width/H.columns:0};
T9M=function(H){return H.isHovering?H.hoveredTime:H.draggedTime};
jot=function(H,U){H=H.draggedTime*1E3;return H>=U.visibleTimeRangeStartMillis&&H<=U.visibleTimeRangeEndMillis};
_.ISc=function(H){if(H===void 0||Number.isNaN(H))return"--:--";var U=Math.abs(Math.floor(H)),A=Math.floor(U/86400),M=Math.floor(U%86400/3600),W=Math.floor(U%3600/60);U=Math.floor(U%60);var w="";A>0&&(w+=A+":",M<10&&(w+="0"));if(A>0||M>0)w+=M+":",W<10&&(w+="0");w+=W+":";U<10&&(w+="0");w+=U;return H>=0?w:"-"+w};
Qo4=function(H,U){return function(){var A=T9M(H());var M=U();var W=H().playerApi;if(W&&W.getNumberOfStoryboardLevels()!==0){var w=W.getStoryboardFrameIndex(A,1);w!==-1?M=W.getStoryboardFrame(w,1):(A=W.getStoryboardFrameIndex(A,0),W=W.getStoryboardFrame(A,0),M&&W&&(W.height*=3,W.width*=3),M=W)}else M=null;if(!M)return null;U()&&(M.width=90*M.columns,M.height=160*M.rows);return M}};
_.u$=function(H){if(!H||H.getVideoData)return H};
V1N=function(){var H;return{playerApi:(H=_.yU())!=null?H:void 0}};
Hhz=function(H){var U;_.u(function(A){if(A.nextAddress==1)return A.yield(_.co(),2);if(U=A.yieldResult)U.unMute(!0),U.setVolume(H,!0);_.DO(A)})};
Urz=function(H,U){H&&(H.value=""+U,H.style.setProperty("--gradient-percent",U+"%"))};
Atg=function(H){var U;return(U=H==null?void 0:H.value)!=null?U:0};
MNp=function(){var H;_.u(function(U){if(U.nextAddress==1)return U.yield(_.co(),2);H=U.yieldResult;if(!H)return U.return();H.isMuted()?H.unMute(!0):H.mute(!0);_.DO(U)})};
WVm=function(H){var U=_.lx().resolve(_.ZB).getPlayerElement();U&&H&&(H===1?U.pause():U.play())};
wFr=function(H){return!!_.p(H,_.fx)||!!_.p(H,_.JI)};
XFk=function(H){_.Bg(H,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
ihy=function(H){_.Bg(H,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
drg=function(H){return _.Sy(H.document.body,function(){return _.Z(bh3,null)},"qh")};
Ohm=function(){var H;return(H=navigator.userActivation)==null?void 0:H.isActive};
uEz=function(){var H=window.performance.getEntriesByType("navigation");return H?H.map(function(U){return U.type}).includes("reload"):!1};
Zhk=function(H,U){U=U===void 0?!1:U;var A,M,W,w;return _.u(function(d){if(d.nextAddress==1)return U||!_.S("kevlar_shorts_seedless_retry_initial_load")||(A=window,M=!(!A.getDataPromise&&!A.getInitialData),M)?d.yield(d9h(),2):(setTimeout(Zhk.bind(window,H,!0),1E3),d.return());if(d.nextAddress!=3)return W=d.yieldResult,d.yield(fck(W),3);w=d.yieldResult;wj(H,w);_.DO(d)})};
fck=function(H){var U;if((U=H.response)==null||!U.replacementEndpoint)return _.DH(H);U=_.lx().resolve(_.UP);H=H.response;_.p(H.replacementEndpoint,_.kO)&&H.sequenceContinuation&&(_.p(H.replacementEndpoint,_.kO).sequenceParams=H.sequenceContinuation);return Kx(U,H.replacementEndpoint,{},_.Mr.location.href,"shorts",function(){},function(){return!1})};
KVh=function(H){var U=_.lx().resolve(Jth);H.playerResponse&&U.handleResponse(H.playerResponse);H.response&&U.handleResponse(H.response)};
ocw=function(H){var U=_.Lq(),A,M=_.p((A=H.response)==null?void 0:A.frameworkUpdates,FA),W;A=_.p((W=H.playerResponse)==null?void 0:W.frameworkUpdates,FA);var w;H=_.p((w=H.reelWatchSequenceResponse)==null?void 0:w.frameworkUpdates,FA);M&&_.qY(M,U);A&&_.qY(A,U);H&&_.qY(H,U)};
FVw=function(H){var U;_.S("enable_redirect_linking_for_desktop_web_client")&&((U=window.location.hash)==null?0:U.includes("redirect_state"))&&H.url&&(H.url=H.url.toString()+window.location.hash)};
nch=function(H){var U=_.lx(),A=U.resolve(_.UP);U=U.resolve(_.P7z);H.endpoint&&(A=s_K(A,H.endpoint),A.content&&H.response&&_.oH(U,H.response,A.content),A.player&&H.playerResponse&&_.oH(U,H.playerResponse,A.player),A.reelSequence&&H.reelWatchSequenceResponse&&_.oH(U,H.reelWatchSequenceResponse,A.reelSequence))};
FY=function(H,U){_.S("web_enable_chunk_prediction")&&NKn(U);KVh(U);ocw(U);var A;(U==null?0:U.url)&&((A=window.location.hash)==null?0:A.includes("redirect_state"))&&(FVw(U),(A=iM7(U.url))&&_.yr(H.root,"yt-initialize-third-party",[A,U]));nch(U);A=_.lx();var M=A.resolve(SMw);U.playerResponse&&A.resolve(pFH).handleResponse(U.playerResponse);if(U.playerResponse){A=void 0;if(_.S("ab_v_vid_sig")&&U.endpoint){var W,w=(W=_.p(U.endpoint,_.sH))!=null?W:_.p(U.endpoint,_.kO);w&&(A=w.videoId)}LVB(M,U.playerResponse,
A)}U.playerResponse&&aC0(U.playerResponse)&&_.S("web_enable_ab_rsp_cl")?BrE().then(function(){R4p(M,U.playerResponse);wj(H,U)}):wj(H,U)};
mrh=function(H){if(H=H.root.data){var U=_.lx().resolve(Ecg);H.endpoint&&(H.response&&U.handleResponse(H.response,void 0,document.querySelector("ytd-app")),H.playerResponse&&U.handleResponse(H.playerResponse),H.reelWatchSequenceResponse&&U.handleResponse(H.reelWatchSequenceResponse))}};
NKn=function(H){H.response&&_.lx().resolve(gck).handleResponse(H.response)};
acy=function(H){var U,A,M,W,w,d;return _.u(function(O){switch(O.nextAddress){case 1:U=window;if(!U.getDataPromise){O.jumpTo(2);break}_.zj(O,3);return O.yield(U.getDataPromise(),5);case 5:A=O.yieldResult;FY(H,A);_.xD(O,4);break;case 3:return _.eG(O),O.yield(AI(),6);case 6:M=O.yieldResult,_.S("web_enable_chunk_prediction")&&NKn(M),wj(H,M);case 4:return O.return();case 2:if(!_.S("sw_nav_preload_pbj")){O.jumpTo(7);break}U.fetchInitialData=function(){var f;return _.u(function(J){if(J.nextAddress==1)return J.yield(AI(),
2);f=J.yieldResult;_.S("web_enable_chunk_prediction")&&NKn(f);wj(H,f);_.DO(J)})};
if(U.getInitialData){U.loadInitialData=function(f){FY(H,f)};
W=U.getInitialData();U.getInitialData=void 0;FY(H,W);O.jumpTo(8);break}U.fetchInitialData=void 0;return O.yield(AI(),9);case 9:w=O.yieldResult,_.S("web_enable_chunk_prediction")&&NKn(w),wj(H,w);case 8:return O.return();case 7:U.getInitialData?(d=U.getInitialData(),U.getInitialData=void 0,FY(H,d)):U.loadInitialData=function(f){FY(H,f)},_.DO(O)}})};
z4z=function(){var H=new xrk;_.BiK(H);H.registerInitializationCallback(function(){njc(void 0,void 0,void 0,{batchingStrategy:"BATCH"})});
H.registerCallback("error",function(U,A,M){_.za(Error("$j`"+A+"`"+M))})};
C7g=typeof Object.create=="function"?Object.create:function(H){var U=function(){};
U.prototype=H;return new U};
tNh=typeof Object.defineProperties=="function"?Object.defineProperty:function(H,U,A){if(H==Array.prototype||H==Object.prototype)return H;H[U]=A.value;return H};
ctr=function(H){H=["object"==typeof globalThis&&globalThis,H,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var U=0;U<H.length;++U){var A=H[U];if(A&&A.Math==Math)return A}throw Error("a");};
_.D5=ctr(this);ytB="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.D5.BigInt64Array&&(ytB.push("BigInt64"),ytB.push("BigUint64"));var rtw=function(H,U){if(U)for(var A=0;A<ytB.length;A++)BKy(ytB[A]+"Array.prototype."+H,U)},Pu=function(H,U){U&&BKy(H,U)},BKy=function(H,U){var A=_.D5;
H=H.split(".");for(var M=0;M<H.length-1;M++){var W=H[M];if(!(W in A))return;A=A[W]}H=H[H.length-1];M=A[H];U=U(M);U!=M&&U!=null&&tNh(A,H,{configurable:!0,writable:!0,value:U})},e4z=function(){function H(){function A(){}
new A;Reflect.construct(A,[],function(){});
return new A instanceof A}
if(typeof Reflect!="undefined"&&Reflect.construct){if(H())return Reflect.construct;var U=Reflect.construct;return function(A,M,W){A=U(A,M);W&&Reflect.setPrototypeOf(A,W.prototype);return A}}return function(A,M,W){W===void 0&&(W=A);
W=C7g(W.prototype||Object.prototype);return Function.prototype.apply.call(A,W,M)||W}}(),Drr;
if(typeof Object.setPrototypeOf=="function")Drr=Object.setPrototypeOf;else{var $rg;a:{var lcm={a:!0},G8B={};try{G8B.__proto__=lcm;$rg=G8B.a;break a}catch(H){}$rg=!1}Drr=$rg?function(H,U){H.__proto__=U;if(H.__proto__!==U)throw new TypeError("b`"+H);return H}:null}sP=Drr;
_.R=function(H,U){H.prototype=C7g(U.prototype);H.prototype.constructor=H;if(sP)sP(H,U);else for(var A in U)if(A!="prototype")if(Object.defineProperties){var M=Object.getOwnPropertyDescriptor(U,A);M&&Object.defineProperty(H,A,M)}else H[A]=U[A];H.superClass_=U.prototype};
YMn=function(H){var U=0;return function(){return U<H.length?{done:!1,value:H[U++]}:{done:!0}}};
_.b=function(H){var U=typeof Symbol!="undefined"&&Symbol.iterator&&H[Symbol.iterator];if(U)return U.call(H);if(typeof H.length=="number")return{next:YMn(H)};throw Error("c`"+String(H));};
l9=function(H){for(var U,A=[];!(U=H.next()).done;)A.push(U.value);return A};
_.vI=function(H){return H instanceof Array?H:l9(_.b(H))};
_.NP=function(H){return nx(H,H)};
nx=function(H,U){H.raw=U;Object.freeze&&(Object.freeze(H),Object.freeze(U));return H};
Sd=function(H,U){return Object.prototype.hasOwnProperty.call(H,U)};
qMg=function(H){if(H==null)throw new TypeError("d");return Object(H)};
h4h=typeof Object.assign=="function"?Object.assign:function(H,U){H=qMg(H);for(var A=1;A<arguments.length;A++){var M=arguments[A];if(M)for(var W in M)Sd(M,W)&&(H[W]=M[W])}return H};
Pu("Object.assign",function(H){return H||h4h});
var px=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},k8p=function(H){if(H.isRunning_)throw new TypeError("f");
H.isRunning_=!0};
px.prototype.JSC$9015_next_=function(H){this.yieldResult=H};
var vcw=function(H,U){H.abruptCompletion_={exception:U,isException:!0};H.nextAddress=H.catchAddress_||H.finallyAddress_};
px.prototype.return=function(H){this.abruptCompletion_={return:H};this.nextAddress=this.finallyAddress_};
px.prototype.yield=function(H,U){this.nextAddress=U;return{value:H}};
px.prototype.jumpTo=function(H){this.nextAddress=H};
_.DO=function(H){H.nextAddress=0};
_.zj=function(H,U,A){H.catchAddress_=U;A!=void 0&&(H.finallyAddress_=A)};
_.yb=function(H,U){H.catchAddress_=0;H.finallyAddress_=U||0};
_.xD=function(H,U,A){H.nextAddress=U;H.catchAddress_=A||0};
_.eG=function(H,U){H.catchAddress_=U||0;U=H.abruptCompletion_.exception;H.abruptCompletion_=null;return U};
_.cI=function(H,U,A,M){M?H.finallyContexts_[M]=H.abruptCompletion_:H.finallyContexts_=[H.abruptCompletion_];H.catchAddress_=U||0;H.finallyAddress_=A||0};
_.BI=function(H,U,A){A=H.finallyContexts_.splice(A||0)[0];(A=H.abruptCompletion_=H.abruptCompletion_||A)?A.isException?H.nextAddress=H.catchAddress_||H.finallyAddress_:A.jumpTo!=void 0&&H.finallyAddress_<A.jumpTo?(H.nextAddress=A.jumpTo,H.abruptCompletion_=null):H.nextAddress=H.finallyAddress_:H.nextAddress=U};
TKz=function(H){this.JSC$9020_context_=new px;this.program_=H};
IcH=function(H,U){k8p(H.JSC$9020_context_);var A=H.JSC$9020_context_.yieldAllIterator_;if(A)return j_w(H,"return"in A?A["return"]:function(M){return{value:M,done:!0}},U,H.JSC$9020_context_.return);
H.JSC$9020_context_.return(U);return Lx(H)};
j_w=function(H,U,A,M){try{var W=U.call(H.JSC$9020_context_.yieldAllIterator_,A);if(!(W instanceof Object))throw new TypeError("e`"+W);if(!W.done)return H.JSC$9020_context_.isRunning_=!1,W;var w=W.value}catch(d){return H.JSC$9020_context_.yieldAllIterator_=null,vcw(H.JSC$9020_context_,d),Lx(H)}H.JSC$9020_context_.yieldAllIterator_=null;M.call(H.JSC$9020_context_,w);return Lx(H)};
Lx=function(H){for(;H.JSC$9020_context_.nextAddress;)try{var U=H.program_(H.JSC$9020_context_);if(U)return H.JSC$9020_context_.isRunning_=!1,{value:U.value,done:!1}}catch(A){H.JSC$9020_context_.yieldResult=void 0,vcw(H.JSC$9020_context_,A)}H.JSC$9020_context_.isRunning_=!1;if(H.JSC$9020_context_.abruptCompletion_){U=H.JSC$9020_context_.abruptCompletion_;H.JSC$9020_context_.abruptCompletion_=null;if(U.isException)throw U.exception;return{value:U.return,done:!0}}return{value:void 0,done:!0}};
Q_3=function(H){this.next=function(U){k8p(H.JSC$9020_context_);H.JSC$9020_context_.yieldAllIterator_?U=j_w(H,H.JSC$9020_context_.yieldAllIterator_.next,U,H.JSC$9020_context_.JSC$9015_next_):(H.JSC$9020_context_.JSC$9015_next_(U),U=Lx(H));return U};
this.throw=function(U){k8p(H.JSC$9020_context_);H.JSC$9020_context_.yieldAllIterator_?U=j_w(H,H.JSC$9020_context_.yieldAllIterator_["throw"],U,H.JSC$9020_context_.JSC$9015_next_):(vcw(H.JSC$9020_context_,U),U=Lx(H));return U};
this.return=function(U){return IcH(H,U)};
this[Symbol.iterator]=function(){return this}};
_.eV=function(H,U){U=new Q_3(new TKz(U));sP&&H.prototype&&sP(U,H.prototype);return U};
VNr=function(H){function U(M){return H.next(M)}
function A(M){return H.throw(M)}
return new Promise(function(M,W){function w(d){d.done?M(d.value):Promise.resolve(d.value).then(U,A).then(w,W)}
w(H.next())})};
_.u=function(H){return VNr(new Q_3(new TKz(H)))};
Pu("Symbol",function(H){if(H)return H;var U=function(w,d){this.$jscomp$symbol$id_=w;tNh(this,"description",{configurable:!0,writable:!0,value:d})};
U.prototype.toString=function(){return this.$jscomp$symbol$id_};
var A="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",M=0,W=function(w){if(this instanceof W)throw new TypeError("g");return new U(A+(w||"")+"_"+M++,w)};
return W});
Pu("Symbol.iterator",function(H){if(H)return H;H=Symbol("h");tNh(Array.prototype,H,{configurable:!0,writable:!0,value:function(){return Hky(YMn(this))}});
return H});
Pu("Symbol.asyncIterator",function(H){return H?H:Symbol("i")});
Hky=function(H){H={next:H};H[Symbol.iterator]=function(){return this};
return H};
_.t$=function(H){var U=H[Symbol.asyncIterator];return U!==void 0?U.call(H):new Upr(_.b(H))};
Upr=function(H){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return H};
this.next=function(U){return Promise.resolve(H.next(U))};
this["throw"]=function(U){return new Promise(function(A,M){var W=H["throw"];W!==void 0?A(W.call(H,U)):(A=H["return"],A!==void 0&&A.call(H),M(new TypeError("j")))})};
H["return"]!==void 0&&(this["return"]=function(U){return Promise.resolve(H["return"](U))})};
_.QY=function(){for(var H=Number(this),U=[],A=H;A<arguments.length;A++)U[A-H]=arguments[A];return U};
_.D9=function(H){return H};
Pu("globalThis",function(H){return H||_.D5});
Pu("Reflect",function(H){return H?H:{}});
Pu("Reflect.construct",function(){return e4z});
Pu("Reflect.setPrototypeOf",function(H){return H?H:sP?function(U,A){try{return sP(U,A),!0}catch(M){return!1}}:null});
Pu("Promise",function(H){function U(){this.batch_=null}
function A(d){return d instanceof W?d:new W(function(O){O(d)})}
if(H&&(typeof _.D5.PromiseRejectionEvent!=="undefined"||!_.D5.Promise||_.D5.Promise.toString().indexOf("[native code]")===-1))return H;U.prototype.asyncExecute=function(d){if(this.batch_==null){this.batch_=[];var O=this;this.asyncExecuteFunction(function(){O.executeBatch_()})}this.batch_.push(d)};
var M=_.D5.setTimeout;U.prototype.asyncExecuteFunction=function(d){M(d,0)};
U.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var d=this.batch_;this.batch_=[];for(var O=0;O<d.length;++O){var f=d[O];d[O]=null;try{f()}catch(J){this.asyncThrow_(J)}}}this.batch_=null};
U.prototype.asyncThrow_=function(d){this.asyncExecuteFunction(function(){throw d;})};
var W=function(d){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var O=this.createResolveAndReject_();try{d(O.resolve,O.reject)}catch(f){O.reject(f)}};
W.prototype.createResolveAndReject_=function(){function d(J){return function(F){f||(f=!0,J.call(O,F))}}
var O=this,f=!1;return{resolve:d(this.resolveTo_),reject:d(this.JSC$9052_reject_)}};
W.prototype.resolveTo_=function(d){if(d===this)this.JSC$9052_reject_(new TypeError("n"));else if(d instanceof W)this.settleSameAsPromise_(d);else{a:switch(typeof d){case "object":var O=d!=null;break a;case "function":O=!0;break a;default:O=!1}O?this.resolveToNonPromiseObj_(d):this.fulfill_(d)}};
W.prototype.resolveToNonPromiseObj_=function(d){var O=void 0;try{O=d.then}catch(f){this.JSC$9052_reject_(f);return}typeof O=="function"?this.settleSameAsThenable_(O,d):this.fulfill_(d)};
W.prototype.JSC$9052_reject_=function(d){this.settle_(2,d)};
W.prototype.fulfill_=function(d){this.settle_(1,d)};
W.prototype.settle_=function(d,O){if(this.state_!=0)throw Error("o`"+d+"`"+O+"`"+this.state_);this.state_=d;this.result_=O;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
W.prototype.scheduleUnhandledRejectionCheck_=function(){var d=this;M(function(){if(d.notifyUnhandledRejection_()){var O=_.D5.console;typeof O!=="undefined"&&O.error(d.result_)}},1)};
W.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var d=_.D5.CustomEvent,O=_.D5.Event,f=_.D5.dispatchEvent;if(typeof f==="undefined")return!0;typeof d==="function"?d=new d("unhandledrejection",{cancelable:!0}):typeof O==="function"?d=new O("unhandledrejection",{cancelable:!0}):(d=_.D5.document.createEvent("CustomEvent"),d.initCustomEvent("unhandledrejection",!1,!0,d));d.promise=this;d.reason=this.result_;return f(d)};
W.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var d=0;d<this.onSettledCallbacks_.length;++d)w.asyncExecute(this.onSettledCallbacks_[d]);this.onSettledCallbacks_=null}};
var w=new U;W.prototype.settleSameAsPromise_=function(d){var O=this.createResolveAndReject_();d.callWhenSettled_(O.resolve,O.reject)};
W.prototype.settleSameAsThenable_=function(d,O){var f=this.createResolveAndReject_();try{d.call(O,f.resolve,f.reject)}catch(J){f.reject(J)}};
W.prototype.then=function(d,O){function f(n,N){return typeof n=="function"?function(L){try{J(n(L))}catch(m){F(m)}}:N}
var J,F,P=new W(function(n,N){J=n;F=N});
this.callWhenSettled_(f(d,J),f(O,F));return P};
W.prototype.catch=function(d){return this.then(void 0,d)};
W.prototype.callWhenSettled_=function(d,O){function f(){switch(J.state_){case 1:d(J.result_);break;case 2:O(J.result_);break;default:throw Error("p`"+J.state_);}}
var J=this;this.onSettledCallbacks_==null?w.asyncExecute(f):this.onSettledCallbacks_.push(f);this.isRejectionHandled_=!0};
W.resolve=A;W.reject=function(d){return new W(function(O,f){f(d)})};
W.race=function(d){return new W(function(O,f){for(var J=_.b(d),F=J.next();!F.done;F=J.next())A(F.value).callWhenSettled_(O,f)})};
W.all=function(d){var O=_.b(d),f=O.next();return f.done?A([]):new W(function(J,F){function P(L){return function(m){n[L]=m;N--;N==0&&J(n)}}
var n=[],N=0;do n.push(void 0),N++,A(f.value).callWhenSettled_(P(n.length-1),F),f=O.next();while(!f.done)})};
return W});
var RH=function(H,U,A){if(H==null)throw new TypeError("q`"+A);if(U instanceof RegExp)throw new TypeError("r`"+A);return H+""};
Pu("String.prototype.startsWith",function(H){return H?H:function(U,A){var M=RH(this,U,"startsWith"),W=M.length,w=U.length;A=Math.max(0,Math.min(A|0,M.length));for(var d=0;d<w&&A<W;)if(M[A++]!=U[d++])return!1;return d>=w}});
Pu("Object.setPrototypeOf",function(H){return H||sP});
Pu("Symbol.dispose",function(H){return H?H:Symbol("s")});
Pu("SuppressedError",function(H){function U(A,M,W){if(!(this instanceof U))return new U(A,M,W);W=Error(W);"stack"in W&&(this.stack=W.stack);this.message=W.message;this.error=A;this.suppressed=M}
if(H)return H;_.R(U,Error);U.prototype.name="SuppressedError";return U});
Pu("Array.from",function(H){return H?H:function(U,A,M){A=A!=null?A:function(O){return O};
var W=[],w=typeof Symbol!="undefined"&&Symbol.iterator&&U[Symbol.iterator];if(typeof w=="function"){U=w.call(U);for(var d=0;!(w=U.next()).done;)W.push(A.call(M,w.value,d++))}else for(w=U.length,d=0;d<w;d++)W.push(A.call(M,U[d],d));return W}});
var AHw=function(H,U,A){H instanceof String&&(H=String(H));for(var M=H.length,W=0;W<M;W++){var w=H[W];if(U.call(A,w,W,H))return{i:W,v:w}}return{i:-1,v:void 0}};
Pu("Array.prototype.find",function(H){return H?H:function(U,A){return AHw(this,U,A).v}});
Pu("WeakMap",function(H){function U(){}
function A(f){var J=typeof f;return J==="object"&&f!==null||J==="function"}
function M(f){if(!Sd(f,w)){var J=new U;tNh(f,w,{value:J})}}
function W(f){var J=Object[f];J&&(Object[f]=function(F){if(F instanceof U)return F;Object.isExtensible(F)&&M(F);return J(F)})}
if(function(){if(!H||!Object.seal)return!1;try{var f=Object.seal({}),J=Object.seal({}),F=new H([[f,2],[J,3]]);if(F.get(f)!=2||F.get(J)!=3)return!1;F.delete(f);F.set(J,4);return!F.has(f)&&F.get(J)==4}catch(P){return!1}}())return H;
var w="$jscomp_hidden_"+Math.random();W("freeze");W("preventExtensions");W("seal");var d=0,O=function(f){this.JSC$9060_id_=(d+=Math.random()+1).toString();if(f){f=_.b(f);for(var J;!(J=f.next()).done;)J=J.value,this.set(J[0],J[1])}};
O.prototype.set=function(f,J){if(!A(f))throw Error("t");M(f);if(!Sd(f,w))throw Error("u`"+f);f[w][this.JSC$9060_id_]=J;return this};
O.prototype.get=function(f){return A(f)&&Sd(f,w)?f[w][this.JSC$9060_id_]:void 0};
O.prototype.has=function(f){return A(f)&&Sd(f,w)&&Sd(f[w],this.JSC$9060_id_)};
O.prototype.delete=function(f){return A(f)&&Sd(f,w)&&Sd(f[w],this.JSC$9060_id_)?delete f[w][this.JSC$9060_id_]:!1};
return O});
Pu("Map",function(H){if(function(){if(!H||typeof H!="function"||!H.prototype.entries||typeof Object.seal!="function")return!1;try{var O=Object.seal({x:4}),f=new H(_.b([[O,"s"]]));if(f.get(O)!="s"||f.size!=1||f.get({x:4})||f.set({x:4},"t")!=f||f.size!=2)return!1;var J=f.entries(),F=J.next();if(F.done||F.value[0]!=O||F.value[1]!="s")return!1;F=J.next();return F.done||F.value[0].x!=4||F.value[1]!="t"||!J.next().done?!1:!0}catch(P){return!1}}())return H;
var U=new WeakMap,A=function(O){this[0]={};this[1]=w();this.size=0;if(O){O=_.b(O);for(var f;!(f=O.next()).done;)f=f.value,this.set(f[0],f[1])}};
A.prototype.set=function(O,f){O=O===0?0:O;var J=M(this,O);J.list||(J.list=this[0][J.id]=[]);J.entry?J.entry.value=f:(J.entry={next:this[1],previous:this[1].previous,head:this[1],key:O,value:f},J.list.push(J.entry),this[1].previous.next=J.entry,this[1].previous=J.entry,this.size++);return this};
A.prototype.delete=function(O){O=M(this,O);return O.entry&&O.list?(O.list.splice(O.index,1),O.list.length||delete this[0][O.id],O.entry.previous.next=O.entry.next,O.entry.next.previous=O.entry.previous,O.entry.head=null,this.size--,!0):!1};
A.prototype.clear=function(){this[0]={};this[1]=this[1].previous=w();this.size=0};
A.prototype.has=function(O){return!!M(this,O).entry};
A.prototype.get=function(O){return(O=M(this,O).entry)&&O.value};
A.prototype.entries=function(){return W(this,function(O){return[O.key,O.value]})};
A.prototype.keys=function(){return W(this,function(O){return O.key})};
A.prototype.values=function(){return W(this,function(O){return O.value})};
A.prototype.forEach=function(O,f){for(var J=this.entries(),F;!(F=J.next()).done;)F=F.value,O.call(f,F[1],F[0],this)};
A.prototype[Symbol.iterator]=A.prototype.entries;var M=function(O,f){var J=f&&typeof f;J=="object"||J=="function"?U.has(f)?J=U.get(f):(J=""+ ++d,U.set(f,J)):J="p_"+f;var F=O[0][J];if(F&&Sd(O[0],J))for(O=0;O<F.length;O++){var P=F[O];if(f!==f&&P.key!==P.key||f===P.key)return{id:J,list:F,index:O,entry:P}}return{id:J,list:F,index:-1,entry:void 0}},W=function(O,f){var J=O[1];
return Hky(function(){if(J){for(;J.head!=O[1];)J=J.previous;for(;J.next!=J.head;)return J=J.next,{done:!1,value:f(J)};J=null}return{done:!0,value:void 0}})},w=function(){var O={};
return O.previous=O.next=O.head=O},d=0;
return A});
Pu("Set",function(H){if(function(){if(!H||typeof H!="function"||!H.prototype.entries||typeof Object.seal!="function")return!1;try{var A=Object.seal({x:4}),M=new H(_.b([A]));if(!M.has(A)||M.size!=1||M.add(A)!=M||M.size!=1||M.add({x:4})!=M||M.size!=2)return!1;var W=M.entries(),w=W.next();if(w.done||w.value[0]!=A||w.value[1]!=A)return!1;w=W.next();return w.done||w.value[0]==A||w.value[0].x!=4||w.value[1]!=w.value[0]?!1:W.next().done}catch(d){return!1}}())return H;
var U=function(A){this.JSC$9074_map_=new Map;if(A){A=_.b(A);for(var M;!(M=A.next()).done;)this.add(M.value)}this.size=this.JSC$9074_map_.size};
U.prototype.add=function(A){A=A===0?0:A;this.JSC$9074_map_.set(A,A);this.size=this.JSC$9074_map_.size;return this};
U.prototype.delete=function(A){A=this.JSC$9074_map_.delete(A);this.size=this.JSC$9074_map_.size;return A};
U.prototype.clear=function(){this.JSC$9074_map_.clear();this.size=0};
U.prototype.has=function(A){return this.JSC$9074_map_.has(A)};
U.prototype.entries=function(){return this.JSC$9074_map_.entries()};
U.prototype.values=function(){return this.JSC$9074_map_.values()};
U.prototype.keys=U.prototype.values;U.prototype[Symbol.iterator]=U.prototype.values;U.prototype.forEach=function(A,M){var W=this;this.JSC$9074_map_.forEach(function(w){return A.call(M,w,w,W)})};
return U});
Pu("Math.log2",function(H){return H?H:function(U){return Math.log(U)/Math.LN2}});
Pu("Object.values",function(H){return H?H:function(U){var A=[],M;for(M in U)Sd(U,M)&&A.push(U[M]);return A}});
Pu("Object.is",function(H){return H?H:function(U,A){return U===A?U!==0||1/U===1/A:U!==U&&A!==A}});
Pu("Array.prototype.includes",function(H){return H?H:function(U,A){var M=this;M instanceof String&&(M=String(M));var W=M.length;A=A||0;for(A<0&&(A=Math.max(A+W,0));A<W;A++){var w=M[A];if(w===U||Object.is(w,U))return!0}return!1}});
Pu("String.prototype.includes",function(H){return H?H:function(U,A){return RH(this,U,"includes").indexOf(U,A||0)!==-1}});
Pu("Object.entries",function(H){return H?H:function(U){var A=[],M;for(M in U)Sd(U,M)&&A.push([M,U[M]]);return A}});
Pu("Number.isFinite",function(H){return H?H:function(U){return typeof U!=="number"?!1:!isNaN(U)&&U!==Infinity&&U!==-Infinity}});
Pu("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Pu("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Pu("Number.isInteger",function(H){return H?H:function(U){return Number.isFinite(U)?U===Math.floor(U):!1}});
Pu("Number.isSafeInteger",function(H){return H?H:function(U){return Number.isInteger(U)&&Math.abs(U)<=Number.MAX_SAFE_INTEGER}});
Pu("String.prototype.endsWith",function(H){return H?H:function(U,A){var M=RH(this,U,"endsWith");A===void 0&&(A=M.length);A=Math.max(0,Math.min(A|0,M.length));for(var W=U.length;W>0&&A>0;)if(M[--A]!=U[--W])return!1;return W<=0}});
var MwB=function(H,U){H instanceof String&&(H+="");var A=0,M=!1,W={next:function(){if(!M&&A<H.length){var w=A++;return{value:U(w,H[w]),done:!1}}M=!0;return{done:!0,value:void 0}}};
W[Symbol.iterator]=function(){return W};
return W};
Pu("Array.prototype.entries",function(H){return H?H:function(){return MwB(this,function(U,A){return[U,A]})}});
Pu("Math.trunc",function(H){return H?H:function(U){U=Number(U);if(isNaN(U)||U===Infinity||U===-Infinity||U===0)return U;var A=Math.floor(Math.abs(U));return U<0?-A:A}});
Pu("Number.isNaN",function(H){return H?H:function(U){return typeof U==="number"&&isNaN(U)}});
Pu("Array.prototype.keys",function(H){return H?H:function(){return MwB(this,function(U){return U})}});
Pu("Array.prototype.values",function(H){return H?H:function(){return MwB(this,function(U,A){return A})}});
Pu("Array.prototype.fill",function(H){return H?H:function(U,A,M){var W=this.length||0;A<0&&(A=Math.max(0,W+A));if(M==null||M>W)M=W;M=Number(M);M<0&&(M=Math.max(0,W+M));for(A=Number(A||0);A<M;A++)this[A]=U;return this}});
rtw("fill",function(H){return H?H:Array.prototype.fill});
Pu("Object.fromEntries",function(H){return H?H:function(U){var A={};if(!(Symbol.iterator in U))throw new TypeError("v`"+U);U=U[Symbol.iterator].call(U);for(var M=U.next();!M.done;M=U.next()){M=M.value;if(Object(M)!==M)throw new TypeError("w");A[M[0]]=M[1]}return A}});
Pu("String.prototype.replaceAll",function(H){return H?H:function(U,A){if(U instanceof RegExp&&!U.global)throw new TypeError("x");return U instanceof RegExp?this.replace(U,A):this.replace(new RegExp(String(U).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),A)}});
Pu("Object.getOwnPropertySymbols",function(H){return H?H:function(){return[]}});
Pu("String.prototype.repeat",function(H){return H?H:function(U){var A=RH(this,null,"repeat");if(U<0||U>1342177279)throw new RangeError("y");U|=0;for(var M="";U;)if(U&1&&(M+=A),U>>>=1)A+=A;return M}});
Pu("Array.prototype.findIndex",function(H){return H?H:function(U,A){return AHw(this,U,A).i}});
Pu("Array.prototype.flatMap",function(H){return H?H:function(U,A){var M=[];Array.prototype.forEach.call(this,function(W,w){W=U.call(A,W,w,this);Array.isArray(W)?M.push.apply(M,W):M.push(W)});
return M}});
Pu("String.prototype.codePointAt",function(H){return H?H:function(U){var A=RH(this,null,"codePointAt"),M=A.length;U=Number(U)||0;if(U>=0&&U<M){U|=0;var W=A.charCodeAt(U);if(W<55296||W>56319||U+1===M)return W;U=A.charCodeAt(U+1);return U<56320||U>57343?W:(W-55296)*1024+U+9216}}});
Pu("String.fromCodePoint",function(H){return H?H:function(U){for(var A="",M=0;M<arguments.length;M++){var W=Number(arguments[M]);if(W<0||W>1114111||W!==Math.floor(W))throw new RangeError("z`"+W);W<=65535?A+=String.fromCharCode(W):(W-=65536,A+=String.fromCharCode(W>>>10&1023|55296),A+=String.fromCharCode(W&1023|56320))}return A}});
Pu("String.prototype.trimLeft",function(H){function U(){return this.replace(/^[\s\xa0]+/,"")}
return H||U});
Pu("String.prototype.trimStart",function(H){return H||String.prototype.trimLeft});
Pu("String.prototype.padStart",function(H){return H?H:function(U,A){var M=RH(this,null,"padStart");U-=M.length;A=A!==void 0?String(A):" ";return(U>0&&A?A.repeat(Math.ceil(U/A.length)).substring(0,U):"")+M}});
Pu("Promise.prototype.finally",function(H){return H?H:function(U){return this.then(function(A){return Promise.resolve(U()).then(function(){return A})},function(A){return Promise.resolve(U()).then(function(){throw A;
})})}});
Pu("Math.imul",function(H){return H?H:function(U,A){U=Number(U);A=Number(A);var M=U&65535,W=A&65535;return M*W+((U>>>16&65535)*W+M*(A>>>16&65535)<<16>>>0)|0}});
Pu("Object.hasOwn",function(H){return H?H:function(U,A){return Object.prototype.hasOwnProperty.call(U,A)}});
var Ww3=function(H){H=Math.trunc(H)||0;H<0&&(H+=this.length);if(!(H<0||H>=this.length))return this[H]};
Pu("Array.prototype.at",function(H){return H?H:Ww3});
rtw("at",function(H){return H?H:Ww3});
Pu("String.prototype.at",function(H){return H?H:Ww3});
Pu("Math.sign",function(H){return H?H:function(U){U=Number(U);return U===0||isNaN(U)?U:U>0?1:-1}});
Pu("Array.prototype.flat",function(H){return H?H:function(U){U=U===void 0?1:U;var A=[];Array.prototype.forEach.call(this,function(M){Array.isArray(M)&&U>0?(M=Array.prototype.flat.call(M,U-1),A.push.apply(A,M)):A.push(M)});
return A}});
Pu("String.raw",function(H){return H?H:function(U,A){U=qMg(U);for(var M=U.raw,W=M.length,w="",d=0;d<W;++d)w+=M[d],d+1<W&&d+1<arguments.length&&(w+=String(arguments[d+1]));return w}});
Pu("WeakSet",function(H){if(function(){if(!H||!Object.seal)return!1;try{var A=Object.seal({}),M=Object.seal({}),W=new H([A]);if(!W.has(A)||W.has(M))return!1;W.delete(A);W.add(M);return!W.has(A)&&W.has(M)}catch(w){return!1}}())return H;
var U=function(A){this.JSC$9089_map_=new WeakMap;if(A){A=_.b(A);for(var M;!(M=A.next()).done;)this.add(M.value)}};
U.prototype.add=function(A){this.JSC$9089_map_.set(A,!0);return this};
U.prototype.has=function(A){return this.JSC$9089_map_.has(A)};
U.prototype.delete=function(A){return this.JSC$9089_map_.delete(A)};
return U});
Pu("Reflect.ownKeys",function(H){return H?H:function(U){var A=[],M=Object.getOwnPropertyNames(U);U=Object.getOwnPropertySymbols(U);for(var W=0;W<M.length;W++)(M[W].substring(0,14)=="jscomp_symbol_"?U:A).push(M[W]);return A.concat(U)}});
Pu("Object.getOwnPropertyDescriptors",function(H){return H?H:function(U){for(var A={},M=Reflect.ownKeys(U),W=0;W<M.length;W++)A[M[W]]=Object.getOwnPropertyDescriptor(U,M[W]);return A}});
Pu("Promise.allSettled",function(H){function U(M){return{status:"fulfilled",value:M}}
function A(M){return{status:"rejected",reason:M}}
return H?H:function(M){var W=this;M=Array.from(M,function(w){return W.resolve(w).then(U,A)});
return W.all(M)}});
Pu("Number.parseInt",function(H){return H||parseInt});
var wrw=function(H,U,A){H instanceof String&&(H=String(H));for(var M=H.length-1;M>=0;M--){var W=H[M];if(U.call(A,W,M,H))return{i:M,v:W}}return{i:-1,v:void 0}};
Pu("Array.prototype.findLastIndex",function(H){return H?H:function(U,A){return wrw(this,U,A).i}});
rtw("findLastIndex",function(H){return H?H:function(U,A){return wrw(this,U,A).i}});
_._DumpException=window._DumpException||function(H){throw H;};
window._DumpException=_._DumpException;var Xry=window.ytcsi;Xry&&typeof Xry.tick==="function"&&Xry.tick("rses_dpj");var ikr,EP,mc,gj,bkH,dph,Okw,uBH,cj,Zk2;ikr=ikr||{};_.Mr=this||self;_.eC=function(H,U,A){H=H.split(".");A=A||_.Mr;for(var M;H.length&&(M=H.shift());)H.length||U===void 0?A[M]&&A[M]!==Object.prototype[M]?A=A[M]:A=A[M]={}:A[M]=U};
EP=function(H,U){var A=_.tr("WIZ_global_data.oxN3nb");H=A&&A[H];return H!=null?H:U};
mc=_.Mr._F_toggles_default_kevlar_base||[];gj=function(){};
gj.get=function(){return null};
_.YX=null;_.tr=function(H,U){H=H.split(".");U=U||_.Mr;for(var A=0;A<H.length;A++)if(U=U[H[A]],U==null)return null;return U};
_.aH=function(H){H.instance_=void 0;H.getInstance=function(){return H.instance_?H.instance_:H.instance_=new H}};
_.Wj=function(H){var U=typeof H;return U!="object"?U:H?Array.isArray(H)?"array":U:"null"};
_.l7=function(H){var U=_.Wj(H);return U=="array"||U=="object"&&typeof H.length=="number"};
_.ht=function(H){var U=typeof H;return U=="object"&&H!=null||U=="function"};
_.vF=function(H){return Object.prototype.hasOwnProperty.call(H,bkH)&&H[bkH]||(H[bkH]=++dph)};
bkH="closure_uid_"+(Math.random()*1E9>>>0);dph=0;Okw=function(H,U,A){return H.call.apply(H.bind,arguments)};
uBH=function(H,U,A){if(!H)throw Error();if(arguments.length>2){var M=Array.prototype.slice.call(arguments,2);return function(){var W=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(W,M);return H.apply(U,W)}}return function(){return H.apply(U,arguments)}};
_.i9=function(H,U,A){_.i9=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Okw:uBH;return _.i9.apply(null,arguments)};
_.vg=function(H,U){var A=Array.prototype.slice.call(arguments,1);return function(){var M=A.slice();M.push.apply(M,arguments);return H.apply(this,M)}};
_.x4=function(){return Date.now()};
cj=function(H){return H};
_.zo=function(H,U){function A(){}
A.prototype=U.prototype;H.superClass_=U.prototype;H.prototype=new A;H.prototype.constructor=H;H.base=function(M,W,w){for(var d=Array(arguments.length-2),O=2;O<arguments.length;O++)d[O-2]=arguments[O];return U.prototype[W].apply(M,d)}};
Zk2=function(H){return H};var f3z,JHm;_.G=function(H,U,A,M){var W=arguments.length,w=W<3?U:M===null?M=Object.getOwnPropertyDescriptor(U,A):M,d;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")w=Reflect.decorate(H,U,A,M);else for(var O=H.length-1;O>=0;O--)if(d=H[O])w=(W<3?d(w):W>3?d(U,A,w):d(U,A))||w;W>3&&w&&Object.defineProperty(U,A,w)};
_.q=function(H,U){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(H,U)};
f3z=function(H,U){if(U!==null&&U!==void 0){if(typeof U!=="object"&&typeof U!=="function")throw new TypeError("B");if(A===void 0){if(!Symbol.dispose)throw new TypeError("D");var A=U[Symbol.dispose]}if(typeof A!=="function")throw new TypeError("E");H.stack.push({value:U,dispose:A,async:!1})}return U};
JHm=function(H){function U(w){H.error=H.hasError?new SuppressedError(w,H.error,"An error was suppressed during disposal."):w;H.hasError=!0}
function A(){for(;M=H.stack.pop();)try{if(!M.async&&W===1)return W=0,H.stack.push(M),Promise.resolve().then(A);if(M.dispose){var w=M.dispose.call(M.value);if(M.async)return W|=2,Promise.resolve(w).then(A,function(d){U(d);return A()})}else W|=1}catch(d){U(d)}if(W===1)return H.hasError?Promise.reject(H.error):Promise.resolve();
if(H.hasError)throw H.error;}
var M,W=0;A()};var Kwz="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");HhM()&&Kwz.push("details:not(:has(summary))");var At4=Kwz.join(",");_.zo(_.HF,Error);_.HF.prototype.name="CustomError";var oKp;var Fww=void 0,Pn3,sym=typeof TextDecoder!=="undefined",uEM,OhK=typeof String.prototype.isWellFormed==="function",dr4=typeof TextEncoder!=="undefined";var nKp;_.wO=function(H){for(var U=[],A=0,M=0;M<H.length;M++){var W=H.charCodeAt(M);W<128?U[A++]=W:(W<2048?U[A++]=W>>6|192:((W&64512)==55296&&M+1<H.length&&(H.charCodeAt(M+1)&64512)==56320?(W=65536+((W&1023)<<10)+(H.charCodeAt(++M)&1023),U[A++]=W>>18|240,U[A++]=W>>12&63|128):U[A++]=W>>12|224,U[A++]=W>>6&63|128),U[A++]=W&63|128)}return U};
nKp=function(H){for(var U=[],A=0,M=0;A<H.length;){var W=H[A++];if(W<128)U[M++]=String.fromCharCode(W);else if(W>191&&W<224){var w=H[A++];U[M++]=String.fromCharCode((W&31)<<6|w&63)}else if(W>239&&W<365){w=H[A++];var d=H[A++],O=H[A++];W=((W&7)<<18|(w&63)<<12|(d&63)<<6|O&63)-65536;U[M++]=String.fromCharCode(55296+(W>>10));U[M++]=String.fromCharCode(56320+(W&1023))}else w=H[A++],d=H[A++],U[M++]=String.fromCharCode((W&15)<<12|(w&63)<<6|d&63)}return U.join("")};var fh=String.prototype.trim?function(H){return H.trim()}:function(H){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(H)[1]},Nmk=/&/g,Szg=/</g,prw=/>/g,Lwr=/"/g,Rgw=/'/g,EKy=/\x00/g,mph=/[\x00&<>"']/;var Cx=!!(mc[0]>>17&1),gKk=!!(mc[0]&4096),a3z=!!(mc[0]>>18&1),xpz=!!(mc[0]&8),zgK=!!(mc[0]&2),Cnp=!!(mc[0]&4),twg=!!(mc[0]&16),cHh=!!(mc[0]&256),yHm=!!(mc[0]&32),Bmh=!!(mc[0]&1024);var rHH,nh,eg3,Dp2,$pn,aQV,z5c,l3K;rHH=EP(1,!0);nh=Cx?a3z:EP(610401301,!1);eg3=Cx?gKk||!xpz:EP(772657768,rHH);Dp2=Cx?zgK:EP(513659523,!1);$pn=Cx?gKk||!Cnp:EP(568333945,!0);aQV=Cx?twg:EP(1331761403,!1);z5c=Cx?gKk||!cHh:EP(748402147,!0);_.tI=Cx?gKk||!yHm:EP(824648567,rHH);l3K=Cx?Bmh:EP(824656860,!1);var Nr,G23=_.Mr.navigator;Nr=G23?G23.userAgentData||null:null;var C_;_.cF=function(H,U){return Array.prototype.indexOf.call(H,U,void 0)};
_.yW=function(H,U,A){Array.prototype.forEach.call(H,U,A)};
_.cu=function(H,U,A){return Array.prototype.filter.call(H,U,A)};
_.OA=function(H,U,A){return Array.prototype.map.call(H,U,A)};
C_=function(H,U,A){return Array.prototype.some.call(H,U,A)};
_.oo7=function(H,U,A){return Array.prototype.every.call(H,U,A)};var yE=function(H){yE[" "](H);return H};
yE[" "]=function(){};
var IUM=function(H,U){try{return yE(H[U]),!0}catch(A){}return!1},O_K=function(H,U,A,M){M=M?M(U):U;
return Object.prototype.hasOwnProperty.call(H,M)?H[M]:H[M]=A(U)};var Yzp,BK,qzB,hgw,vK2,Tmm,ggc,jy2,I3m,Qyw,b07,H8m,UXr,wjg,Xjn,i8w;_.RpN=function(){return _.Mr.navigator||null};
Yzp=KV0();_.Bu=ocN();BK=ph("Edge");qzB=BK||_.Bu;_.va=ph("Gecko")&&!(_.Zc(_.FE(),"WebKit")&&!ph("Edge"))&&!(ph("Trident")||ph("MSIE"))&&!ph("Edge");_.kA=_.Zc(_.FE(),"WebKit")&&!ph("Edge");hgw=_.kA&&ph("Mobile");_.k2z=_.R4r();vK2=_.Ec4();Tmm=(a_()?Nr.platform==="Linux":ph("Linux"))||_.mr0();ggc=_.pFt();jy2=LVE();I3m=ph("iPad");Qyw=ph("iPod");_.Vwg=_.xc();b07=_.Zc(_.FE(),"KaiOS");H8m=function(){var H=_.Mr.document;return H?H.documentMode:void 0};
a:{var AB2="",M7k=function(){var H=_.FE();if(_.va)return/rv:([^\);]+)(\)|;)/.exec(H);if(BK)return/Edge\/([\d\.]+)/.exec(H);if(_.Bu)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(H);if(_.kA)return/WebKit\/(\S+)/.exec(H);if(Yzp)return/(?:Version)[ \/]?(\S+)/.exec(H)}();
M7k&&(AB2=M7k?M7k[1]:"");if(_.Bu){var W53=H8m();if(W53!=null&&W53>parseFloat(AB2)){UXr=String(W53);break a}}UXr=AB2}wjg=UXr;Xjn={};_.rj=function(H){return O_K(Xjn,H,function(){return _.Jt(wjg,H)>=0})};
if(_.Mr.document&&_.Bu){var b82=H8m();i8w=b82?b82:parseInt(wjg,10)||void 0}else i8w=void 0;_.dXg=i8w;var Jc8,KHV,O8g;_.ed=R_();Jc8=LVE()||ph("iPod");KHV=ph("iPad");O8g=_.s_c();_.DB=mV();_.pO=_.P7M()&&!_.xc();var DrF={},V0=null,slc=_.va||_.kA||typeof _.Mr.btoa=="function";var AHV=typeof Uint8Array!=="undefined",h40=!_.Bu&&typeof btoa==="function",k8r=/[-_.]/g,YM7={"-":"+",_:"/",".":"="},z2={};var ay,Z83;ay=function(H,U){if(U!==z2)throw Error("K");this.JSC$9123_value_=H;if(H!=null&&H.length===0)throw Error("J");};
_.Ck=function(){return uhB||(uhB=new ay(null,z2))};
Z83=function(H){return new Uint8Array(HNF(H)||0)};
ay.prototype.isEmpty=function(){return this.JSC$9123_value_==null};
ay.prototype.sizeBytes=function(){var H=HNF(this);return H?H.length:0};
var HNF=function(H){if(z2!==z2)throw Error("K");var U=H.JSC$9123_value_;U==null||AHV&&U!=null&&U instanceof Uint8Array||(typeof U==="string"?U=vcV(U):(_.Wj(U),U=null));return U==null?U:H.JSC$9123_value_=U},uhB;var j_N=void 0;var Wr=typeof Symbol==="function"&&typeof Symbol()==="symbol",fkz=AH("jas",void 0,!0),jy8=AH(void 0,"0di"),iv=AH(void 0,"1oa"),yp=AH(void 0,Symbol()),Z8c=AH(void 0,"0ub"),JBh=AH(void 0,"0ubs"),BMF=AH(void 0,"0ubsb"),t7V=AH(void 0,"0actk"),xf=AH("m_m","messagePrototypeMarker",!0),R50=AH(void 0,"vps"),dX4=AH();var VNF,Q_c,Ty,JBk;VNF={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};Q_c=Object.defineProperties;_.wm=Wr?fkz:"internalArrayState";JBk=[];bn(JBk,7);Ty=Object.freeze(JBk);var C8={},Lk={},K5w=function(H,U,A){this.iterable=H;this.mapper=U;this.thisArg=A};
K5w.prototype.next=function(){var H=this.iterable.next();H.done||(H.value=this.mapper.call(this.thisArg,H.value));return H};
K5w.prototype[Symbol.iterator]=function(){return this};
var ofw=Object.freeze({}),cr={};var wrV=void 0,Xr_=Br(function(H){return H!==null&&H!==void 0});var uBt=Br(function(H){return typeof H==="number"}),OkN=Br(function(H){return typeof H==="string"}),f3M=Br(function(H){return typeof H==="boolean"}),F5H=Br(function(H){return H!=null&&typeof H==="object"&&typeof H.then==="function"}),NiV=Br(function(H){return typeof H==="function"}),Ic=Br(function(H){return!!H&&(typeof H==="object"||typeof H==="function")});var Zk8=typeof _.Mr.BigInt==="function"&&typeof _.Mr.BigInt(0)==="bigint";var G2c=Br(function(H){return Zk8?H>=Pmw&&H<=sYw:H[0]==="-"?JHK(H,nfn):JHK(H,Nh3)}),nfn=Number.MIN_SAFE_INTEGER.toString(),Pmw=Zk8?BigInt(Number.MIN_SAFE_INTEGER):void 0,Nh3=Number.MAX_SAFE_INTEGER.toString(),sYw=Zk8?BigInt(Number.MAX_SAFE_INTEGER):void 0;var S$B=typeof Uint8Array.prototype.slice==="function",D3=0,$K=0,FwN;var Pj,S7,wh,NX,gKh;Pj=typeof BigInt==="function"?BigInt.asIntN:void 0;_.p8=typeof BigInt==="function"?BigInt.asUintN:void 0;S7=Number.isSafeInteger;wh=Number.isFinite;NX=Math.trunc;gKh=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var EfM={};var Xj7={},pjr=function(){try{var H=function(){return e4z(Map,[],this.constructor)};
_.R(H,Map);yE(new H);return!1}catch(U){return!0}}(),$4=function(){this.JSC$9142_map_=new Map};
_.X=$4.prototype;_.X.get=function(H){return this.JSC$9142_map_.get(H)};
_.X.set=function(H,U){this.JSC$9142_map_.set(H,U);this.size=this.JSC$9142_map_.size;return this};
_.X.delete=function(H){H=this.JSC$9142_map_.delete(H);this.size=this.JSC$9142_map_.size;return H};
_.X.clear=function(){this.JSC$9142_map_.clear();this.size=this.JSC$9142_map_.size};
_.X.has=function(H){return this.JSC$9142_map_.has(H)};
_.X.entries=function(){return this.JSC$9142_map_.entries()};
_.X.keys=function(){return this.JSC$9142_map_.keys()};
_.X.values=function(){return this.JSC$9142_map_.values()};
_.X.forEach=function(H,U){return this.JSC$9142_map_.forEach(H,U)};
$4.prototype[Symbol.iterator]=function(){return this.entries()};
var l$=function(){if(pjr)return Object.setPrototypeOf($4.prototype,Map.prototype),Object.defineProperties($4.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),$4;var H=function(){return e4z(Map,[],this.constructor)};
_.R(H,Map);return H}(),tB=function(H,U,A,M){A=A===void 0?UXF:A;
M=M===void 0?UXF:M;var W=l$.call(this)||this;W.arrayState=H[_.wm]|0;W.valueCtor=U;W.keyToApi=A;W.valueToApi=W.valueCtor?M7h:M;for(var w=0;w<H.length;w++){var d=H[w],O=A(d[0],!1,!0),f=d[1];U?f===void 0&&(f=null):f=M(d[1],!1,!0,void 0,void 0,W.arrayState);l$.prototype.set.call(W,O,f)}return W};
_.R(tB,l$);var L5w=function(H){if(H.arrayState&2)throw Error("O");},L5V=function(H,U){return JH(Array.from(l$.prototype.entries.call(H),U))};
_.X=tB.prototype;_.X.clear=function(){L5w(this);l$.prototype.clear.call(this)};
_.X.delete=function(H){L5w(this);return l$.prototype.delete.call(this,this.keyToApi(H,!0,!1))};
_.X.entries=function(){if(this.valueCtor){var H=l$.prototype.keys.call(this);H=new K5w(H,W5c,this)}else H=l$.prototype.entries.call(this);return H};
_.X.values=function(){if(this.valueCtor){var H=l$.prototype.keys.call(this);H=new K5w(H,tB.prototype.get,this)}else H=l$.prototype.values.call(this);return H};
_.X.forEach=function(H,U){this.valueCtor?l$.prototype.forEach.call(this,function(A,M,W){H.call(U,W.get(M),M,W)}):l$.prototype.forEach.call(this,H,U)};
_.X.set=function(H,U){L5w(this);H=this.keyToApi(H,!0,!1);return H==null?this:U==null?(l$.prototype.delete.call(this,H),this):l$.prototype.set.call(this,H,this.valueToApi(U,!0,!0,this.valueCtor,!1,this.arrayState))};
_.X.has=function(H){return l$.prototype.has.call(this,this.keyToApi(H,!1,!1))};
_.X.get=function(H){H=this.keyToApi(H,!1,!1);var U=l$.prototype.get.call(this,H);if(U!==void 0){var A=this.valueCtor;return A?(A=this.valueToApi(U,!1,!0,A,this.callToMutableOnAccess,this.arrayState),A!==U&&l$.prototype.set.call(this,H,A),A):U}};
tB.prototype[Symbol.iterator]=function(){return this.entries()};
tB.prototype.toJSON=void 0;var wj4;var PmN=function(){},ofV=function(H,U){for(var A in H)!isNaN(A)&&U(H,+A,H[A])},sYN=function(H){var U=new PmN;
ofV(H,function(A,M,W){U[M]=Iy(W)});
U.reviveUnknownFields=H.reviveUnknownFields;return U},O84={reviveIntoImmutable:!0};var F5t;var mX8,gfF;var R5h,AR,QO,W1,Efz,jd,A9,mX2,akm,Uh,xXy,Ag,w4,XV;R5h=_.rm(0);_.Y4={};_.qP=function(H,U,A,M,W){U=AR(H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U,A,W);if(U!==null||M&&H.noLegacyNull!==Lk)return U};
AR=function(H,U,A,M){if(U===-1)return null;var W=U+(A?0:-1),w=H.length-1;if(!(w<1+(A?0:-1))){if(W>=w){var d=H[w];if(d!=null&&typeof d==="object"&&d.constructor===Object){A=d[U];var O=!0}else if(W===w)A=d;else return}else A=H[W];if(M&&A!=null){M=M(A);if(M==null)return M;if(!Object.is(M,A))return O?d[U]=M:H[W]=M,M}return A}};
_.kD=function(H,U,A,M){qX(H);var W=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;vj(W,W[_.wm]|0,U,A,M);return H};
_.hI=function(H,U,A){H=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Tht(H,H[_.wm]|0,U,A)!==void 0};
_.k4=function(H,U,A,M){var W=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Tht(W,W[_.wm]|0,U,W1(H,M,A))!==void 0};
_.y9=function(H){return H===ofw?2:4};
_.vu=function(H,U){H=_.qP(H,U,void 0,void 0,Gyh);return H==null?_.Ck():H};
QO=function(H,U,A,M){qX(H);var W=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=W[_.wm]|0;if(M==null){var d=h50(W);if(kyN(d,W,w,A)===U)d.set(A,0);else return H}else w=vfh(W,w,A,U);vj(W,w,U,M);return H};
_.R5=function(H,U,A,M){var W=H[_.wm]|0,w=yh(W);W=vfh(H,W,A,U,w);vj(H,W,U,M,w)};
W1=function(H,U,A){return _.To(H,U)===A?A:-1};
_.To=function(H,U){H=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return kyN(h50(H),H,void 0,U,void 0)};
Efz=function(H,U,A){var M=H[_.wm]|0,W=yh(M),w=AR(H,A,W);if(w!=null&&w[xf]===C8){if(!gm(w))return Yf(w),w.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var d=w.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(w)&&(d=w);if(d){var O=d[_.wm]|0;O&2&&(d=lm(d,O))}d=Dk(d,U);d!==w&&vj(H,M,A,d,W);return d};
_.qK=function(H,U,A,M){var W=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=W[_.wm]|0;U=Tht(W,w,U,A,M);if(U==null)return U;w=W[_.wm]|0;if(!gm(H,w)){var d=AB8(U);d!==U&&(Yf(H)&&(W=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=W[_.wm]|0),U=d,w=vj(W,w,A,U,M),hB(W,w))}return U};
_.c8=function(H,U,A,M){var W=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jYc(H,W,W[_.wm]|0,U,A,M,!1,!0)};
_.CN=function(H,U,A,M){A=Ikc(A);_.kD(H,U,A,M);A&&!gm(A)&&hB(H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return H};
_.tR=function(H,U,A,M){M=Ikc(M);QO(H,U,A,M);M&&!gm(M)&&hB(H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return H};
jd=function(H,U,A){qX(H);var M=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=M[_.wm]|0;if(A==null)return vj(M,W,U),H;for(var w=A===Ty?7:A[_.wm]|0,d=w,O=Uj(w),f=O||Object.isFrozen(A),J=!0,F=!0,P=0;P<A.length;P++){var n=A[P];O||(n=gm(n),J&&(J=!n),F&&(F=n))}O||(w=J?13:5,w=F?w&-4097:w|4096);f&&w===d||(A=Iy(A),d=0,w=j7(w,W));w!==d&&bn(A,w);W=vj(M,W,U,A);2&w||!(4096&w||16&w)||hB(M,W);return H};
A9=function(H,U,A,M){V7V(H,U,A,M);return H};
mX2=function(H,U,A){V7V(H,U,IH,void 0,A,1,!0);return H};
_.gfr=function(H,U){return l3K?Yzr(_.qP(H,U,void 0,void 0,hgV)):Yzr(_.qP(H,U))};
_.QE=function(H,U,A){return l3K?_.qP(H,U,void 0,A,hgV):hgV(_.qP(H,U,void 0,A))};
_.VE=function(H,U,A){return l3K?_.qP(H,U,void 0,A,k2M):k2M(_.qP(H,U,void 0,A))};
_.Hn=function(H,U){var A=A===void 0?!1:A;var M;return(M=_.mp0(_.qP(H,U)))!=null?M:A};
_.B8=function(H,U,A){A=A===void 0?0:A;var M;return(M=_.f8(_.qP(H,U)))!=null?M:A};
akm=function(H,U){var A=A===void 0?0:A;H=_.xpM(_.qP(H,U));return H!=null?H:A};
Uh=function(H,U,A){A=A===void 0?R5h:A;var M;return(M=_.QE(H,U))!=null?M:A};
xXy=function(H){var U=U===void 0?R5h:U;var A;return(A=_.VE(H,23))!=null?A:U};
Ag=function(H,U){var A=A===void 0?0:A;var M;return(M=_.qP(H,U,void 0,void 0,_.MX))!=null?M:A};
_.Mn=function(H,U,A,M){A=A===void 0?"":A;var W;return(W=_.m5(_.qP(H,U,M)))!=null?W:A};
_.Wn=function(H,U){var A=A===void 0?0:A;var M;return(M=_.um(_.qP(H,U)))!=null?M:A};
w4=function(H,U){var A=A===void 0?"0":A;H=l3K?qzE(_.qP(H,U,void 0,void 0,hgV)):qzE(_.qP(H,U),!0);return H!=null?H:A};
_.z5K=function(H,U,A){H=_.IY(H,U,_.m5,3,!0);MwE(H,A);return H[A]};
XV=function(H,U,A){return _.Mn(H,W1(H,A,U))};
_.io=function(H,U,A,M){return _.qK(H,U,W1(H,M,A),void 0)};
_.Il=function(H,U){return _.m5(_.qP(H,U,void 0,_.Y4))};
_.Gg=function(H,U,A){return _.kD(H,U,EK_(A))};
_.AP=function(H,U,A){return _.Wy(H,U,EK_(A),!1)};
_.bo=function(H,U,A){return _.kD(H,U,_.Zk(A))};
_.Xx=function(H,U,A){return _.kD(H,U,n8(A))};
_.Mu=function(H,U,A){return _.kD(H,U,E$(A))};
_.Pl=function(H,U,A,M){return _.Wy(H,U,E$(A),"",M)};
_.hj=function(H,U,A){return _.kD(H,U,A==null?A:_.bm(A))};
_.d4=function(H,U,A){return _.Wy(H,U,A==null?A:_.bm(A),0)};var bv=function(H,U,A){this.buffer=H;if(A&&!U)throw Error();this.JSC$9154_isImmutable=U};var Cmp=function(H,U,A,M){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9157_start_=0;this.init(H,U,A,M)},cBp,ZX,yBh,wIc,BhB,rBm,e5y,DXK,RS_,t7w;
_.X=Cmp.prototype;_.X.init=function(H,U,A,M){var W=M===void 0?{}:M;M=W.aliasBytesFields===void 0?!1:W.aliasBytesFields;W=W.treatNewDataAsImmutable===void 0?!1:W.treatNewDataAsImmutable;this.aliasBytesFields=M;this.treatNewDataAsImmutable=W;H&&(H=USE(H,this.treatNewDataAsImmutable),this.bytes_=H.buffer,this.bytesAreImmutable_=H.JSC$9154_isImmutable,this.JSC$9157_start_=U||0,this.end_=A!==void 0?this.JSC$9157_start_+A:this.bytes_.length,this.cursor_=this.JSC$9157_start_)};
_.X.free=function(){this.clear();t7w.length<100&&t7w.push(this)};
_.X.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9157_start_=0;this.aliasBytesFields=!1};
_.X.reset=function(){this.cursor_=this.JSC$9157_start_};
_.X.atEnd=function(){return this.cursor_==this.end_};
_.pN=function(H,U){var A=0,M=0,W=0,w=H.bytes_,d=H.cursor_;do{var O=w[d++];A|=(O&127)<<W;W+=7}while(W<32&&O&128);if(W>32)for(M|=(O&127)>>4,W=3;W<32&&O&128;W+=7)O=w[d++],M|=(O&127)<<W;ZX(H,d);if(!(O&128))return U(A>>>0,M>>>0);throw Error();};
cBp=function(H){return _.pN(H,function(U,A){return prN(U,A,Nmh)})};
ZX=function(H,U){H.cursor_=U;if(U>H.end_)throw Error();};
_.fT=function(H){var U=H.bytes_,A=H.cursor_,M=U[A++],W=M&127;if(M&128&&(M=U[A++],W|=(M&127)<<7,M&128&&(M=U[A++],W|=(M&127)<<14,M&128&&(M=U[A++],W|=(M&127)<<21,M&128&&(M=U[A++],W|=M<<28,M&128&&U[A++]&128&&U[A++]&128&&U[A++]&128&&U[A++]&128&&U[A++]&128)))))throw Error();ZX(H,A);return W};
_.Jg=function(H){var U=H.bytes_,A=H.cursor_,M=U[A],W=U[A+1],w=U[A+2];U=U[A+3];ZX(H,H.cursor_+4);return(M<<0|W<<8|w<<16|U<<24)>>>0};
yBh=function(H){var U=_.Jg(H);H=_.Jg(H);return syK(U,H)};
wIc=function(H){var U=_.Jg(H);H=_.Jg(H);return nKr(U,H)};
BhB=function(H){var U=_.Jg(H);H=(U>>31)*2+1;var A=U>>>23&255;U&=8388607;return A==255?U?NaN:H*Infinity:A==0?H*1.401298464324817E-45*U:H*Math.pow(2,A-150)*(U+8388608)};
rBm=function(H){var U=_.Jg(H),A=_.Jg(H);H=(A>>31)*2+1;var M=A>>>20&2047;U=4294967296*(A&1048575)+U;return M==2047?U?NaN:H*Infinity:M==0?H*4.9E-324*U:H*Math.pow(2,M-1075)*(U+4503599627370496)};
e5y=function(H){for(var U=0,A=H.cursor_,M=A+10,W=H.bytes_;A<M;){var w=W[A++];U|=w;if((w&128)===0)return ZX(H,A),!!(U&127)}throw Error();};
DXK=function(H,U){if(U<0)throw Error();var A=H.cursor_;U=A+U;if(U>H.end_)throw Error();H.cursor_=U;return A};
RS_=function(H,U){if(U==0)return _.Ck();var A=DXK(H,U);H.aliasBytesFields&&H.bytesAreImmutable_?A=H.bytes_.subarray(A,A+U):(H=H.bytes_,U=A+U,A=A===U?new Uint8Array(0):S$B?H.slice(A,U):new Uint8Array(H.subarray(A,U)));return A.length==0?_.Ck():new ay(A,z2)};
t7w=[];var lkK=function(H,U,A,M){if(t7w.length){var W=t7w.pop();W.init(H,U,A,M);H=W}else H=new Cmp(H,U,A,M);this.decoder_=H;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;$X3(this,M)},$X3=function(H,U){U=U===void 0?{}:U;
H.discardUnknownFields=U.discardUnknownFields===void 0?!1:U.discardUnknownFields},g5E=function(H,U,A,M){if(Gyk.length){var W=Gyk.pop();
$X3(W,M);W.decoder_.init(H,U,A,M);return W}return new lkK(H,U,A,M)},SjN,LON,KT,Y$y,Gyk;
lkK.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;Gyk.length<100&&Gyk.push(this)};
lkK.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
SjN=function(H){if(H.decoder_.atEnd())return!1;H.fieldCursor_=H.decoder_.cursor_;var U=_.fT(H.decoder_)>>>0,A=U>>>3;U&=7;if(!(U>=0&&U<=5))throw Error();if(A<1)throw Error();H.nextField_=A;H.nextWireType_=U;return!0};
LON=function(H){switch(H.nextWireType_){case 0:H.nextWireType_!=0?LON(H):e5y(H.decoder_);break;case 1:H=H.decoder_;ZX(H,H.cursor_+8);break;case 2:if(H.nextWireType_!=2)LON(H);else{var U=_.fT(H.decoder_)>>>0;H=H.decoder_;ZX(H,H.cursor_+U)}break;case 5:H=H.decoder_;ZX(H,H.cursor_+4);break;case 3:U=H.nextField_;do{if(!SjN(H))throw Error();if(H.nextWireType_==4){if(H.nextField_!=U)throw Error();break}LON(H)}while(1);break;default:throw Error();}};
KT=function(H,U,A){var M=H.decoder_.end_,W=_.fT(H.decoder_)>>>0;W=H.decoder_.cursor_+W;var w=W-M;w<=0&&(H.decoder_.end_=W,A(U,H,void 0,void 0,void 0),w=W-H.decoder_.cursor_);if(w)throw Error();H.decoder_.cursor_=W;H.decoder_.end_=M;return U};
Y$y=function(H){var U=_.fT(H.decoder_)>>>0;H=H.decoder_;var A=DXK(H,U);H=H.bytes_;if(sym){var M=H,W;(W=Pn3)||(W=Pn3=new TextDecoder("utf-8",{fatal:!0}));U=A+U;M=A===0&&U===M.length?M:M.subarray(A,U);try{var w=W.decode(M)}catch(J){if(Fww===void 0){try{W.decode(new Uint8Array([128]))}catch(F){}try{W.decode(new Uint8Array([97])),Fww=!0}catch(F){Fww=!1}}!Fww&&(Pn3=void 0);throw J;}}else{w=A;U=w+U;A=[];for(var d=null,O,f;w<U;)O=H[w++],O<128?A.push(O):O<224?w>=U?UM():(f=H[w++],O<194||(f&192)!==128?(w--,
UM()):A.push((O&31)<<6|f&63)):O<240?w>=U-1?UM():(f=H[w++],(f&192)!==128||O===224&&f<160||O===237&&f>=160||((W=H[w++])&192)!==128?(w--,UM()):A.push((O&15)<<12|(f&63)<<6|W&63)):O<=244?w>=U-2?UM():(f=H[w++],(f&192)!==128||(O<<28)+(f-144)>>30!==0||((W=H[w++])&192)!==128||((M=H[w++])&192)!==128?(w--,UM()):(O=(O&7)<<18|(f&63)<<12|(W&63)<<6|M&63,O-=65536,A.push((O>>10&1023)+55296,(O&1023)+56320))):UM(),A.length>=8192&&(d=bhc(d,A),A.length=0);w=bhc(d,A)}return w};
_.q$K=function(H){var U=_.fT(H.decoder_)>>>0;return RS_(H.decoder_,U)};
_.h5h=function(H,U,A){var M=_.fT(H.decoder_)>>>0;for(M=H.decoder_.cursor_+M;H.decoder_.cursor_<M;)A.push(U(H.decoder_))};
Gyk=[];var kyw=function(H,U){this.JSC$9164_lo=H>>>0;this.JSC$9164_hi=U>>>0},GCc=function(H){H=BigInt.asUintN(64,H);
return new kyw(Number(H&BigInt(4294967295)),Number(H>>BigInt(32)))},WO4=function(H){if(!H)return vfk||(vfk=new kyw(0,0));
if(!/^\d+$/.test(H))return null;jw(H);return new kyw(D3,$K)},vfk,leV=function(H,U){this.JSC$9166_lo=H>>>0;
this.JSC$9166_hi=U>>>0},AR4=function(H){if(!H)return ThH||(ThH=new leV(0,0));
if(!/^-?\d+$/.test(H))return null;jw(H);return new leV(D3,$K)},ThH;var oT=function(){this.JSC$9168_buffer_=[]},nN,S3,jY3;
oT.prototype.length=function(){return this.JSC$9168_buffer_.length};
oT.prototype.end=function(){var H=this.JSC$9168_buffer_;this.JSC$9168_buffer_=[];return H};
nN=function(H,U,A){for(;A>0||U>127;)H.JSC$9168_buffer_.push(U&127|128),U=(U>>>7|A<<25)>>>0,A>>>=7;H.JSC$9168_buffer_.push(U)};
S3=function(H,U){for(;U>127;)H.JSC$9168_buffer_.push(U&127|128),U>>>=7;H.JSC$9168_buffer_.push(U)};
_.qjE=function(H,U){if(U>=0)S3(H,U);else{for(var A=0;A<9;A++)H.JSC$9168_buffer_.push(U&127|128),U>>=7;H.JSC$9168_buffer_.push(1)}};
jY3=function(H,U){jw(U);Sz4(function(A,M){nN(H,A>>>0,M>>>0)})};
oT.prototype.writeUint8=function(H){this.JSC$9168_buffer_.push(H>>>0&255)};
_.sj=function(H,U){H.JSC$9168_buffer_.push(U>>>0&255);H.JSC$9168_buffer_.push(U>>>8&255);H.JSC$9168_buffer_.push(U>>>16&255);H.JSC$9168_buffer_.push(U>>>24&255)};
oT.prototype.writeInt8=function(H){this.JSC$9168_buffer_.push(H>>>0&255)};var IkK,KN,kC7,j5r,bNN;IkK=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new oT};
KN=function(H,U){U.length!==0&&(H.blocks_.push(U),H.totalLength_+=U.length)};
_.QYg=function(H,U){_.Py(H,U,2);U=H.encoder_.end();KN(H,U);U.push(H.totalLength_);return U};
_.V7w=function(H,U){var A=U.pop();for(A=H.totalLength_+H.encoder_.length()-A;A>127;)U.push(A&127|128),A>>>=7,H.totalLength_++;U.push(A);H.totalLength_++};
_.Py=function(H,U,A){S3(H.encoder_,U*8+A)};
kC7=function(H,U,A){if(A!=null)switch(wyE(A),_.Py(H,U,1),typeof A){case "number":H=H.encoder_;KwM(A);_.sj(H,D3);_.sj(H,$K);break;case "bigint":A=GCc(A);H=H.encoder_;U=A.JSC$9164_hi;_.sj(H,A.JSC$9164_lo);_.sj(H,U);break;default:A=WO4(A),H=H.encoder_,U=A.JSC$9164_hi,_.sj(H,A.JSC$9164_lo),_.sj(H,U)}};
j5r=function(H,U,A){_.Py(H,U,2);S3(H.encoder_,A.length);KN(H,H.encoder_.end());KN(H,A)};
bNN=function(H,U,A,M){A!=null&&(U=_.QYg(H,U),M(A,H),_.V7w(H,U))};var XyN,HNr,USB,ARg,M3n,wyB,Xyw,bNw,dSk;XyN=dM();HNr=dM();USB=dM();ARg=dM();M3n=dM();_.WOg=dM();_.FV=dM();wyB=dM();Xyw=dM();_.iNn=dM();bNw=dM();dSk=dM();_.ONw=dM();_.uLK=dM();_.fN=function(H,U,A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H,U,A)};
_.fN.prototype.toJSON=function(){return Bj(this)};
_.fN.prototype.serialize=function(H){return JSON.stringify(Bj(this,H))};
var OUE=function(H,U){if(U==null||U=="")return new H;U=JSON.parse(U);if(!Array.isArray(U))throw Error("W");return new H(UpF(U))};
_.fN.prototype.getExtension=function(H){fkM(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H.fieldIndex);uhE(this,H.fieldIndex);return H.ctor?H.isRepeated?H.getExtensionFn(this,H.ctor,H.fieldIndex,_.y9(),H.JSC$9179_hasMessageId):H.getExtensionFn(this,H.ctor,H.fieldIndex,H.JSC$9179_hasMessageId):H.isRepeated?H.getExtensionFn(this,H.fieldIndex,_.y9(),H.JSC$9179_hasMessageId):H.getExtensionFn(this,H.fieldIndex,H.defaultValue,H.JSC$9179_hasMessageId)};
_.fN.prototype.clone=function(){var H=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U=H[_.wm]|0;return e5_(this,H,U)?rBK(this,H,!0):new this.constructor(lm(H,U,!1))};
_.fN.prototype[xf]=C8;_.fN.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Oj=function(H,U,A){this.$$binaryReaderFn=H;this.$$binaryWriterFn=U;H=cj(XyN);this.$$isMsg=!!H&&A===H||!1},JRc=iN7(function(H,U,A,M,W){if(H.nextWireType_!==2)return!1;
KT(H,Efz(U,M,A),W);return!0},ONN),KOF=iN7(function(H,U,A,M,W){if(H.nextWireType_!==2)return!1;
KT(H,Efz(U,M,A),W);return!0},ONN),xSN=Symbol(),Pv4=Symbol(),NMN=Symbol(),t3_=Symbol(),E5N=Symbol(),uLc,ZNN;var ZNw,iUh,fe2,Pn,JR3,KOr,o5z,FOk,nT,s5w,n5h,NMw,Sjw,pyk,RSy,E5w,mSp,g5B,aeB,xSw;ZNw=_.rm(0);iUh=function(H,U){var A=new IkK;cR8(H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A,Ze(xSN,aeE,zSc,U));KN(A,A.encoder_.end());H=new Uint8Array(A.totalLength_);U=A.blocks_;for(var M=U.length,W=0,w=0;w<M;w++){var d=U[w];H.set(d,W);W+=d.length}A.blocks_=[H];return H};
fe2=iN7(function(H,U,A,M,W){if(H.nextWireType_!==2)return!1;H=KT(H,Dk([void 0,void 0],M),W);H=Iy(H);M=U[_.wm]|0;W=yh(M);if(M&2)throw Error();var w=AR(U,A,W);if(w instanceof tB)(w.arrayState&2)!=0?(w=L5V(w),w.push(H),vj(U,M,A,w,W)):(U=w,A=U.keyToApi(H[0],!1,!0),H=H[1],H=U.valueCtor?H===void 0?null:H:U.valueToApi(H,!1,!0,void 0,!1,U.arrayState),l$.prototype.set.call(U,A,H));else if(Array.isArray(w)){var d=w[_.wm]|0;d&8192||bn(w,d|=8192);d&2&&(w=Y$_(w),vj(U,M,A,w,W));w.push(H)}else vj(U,M,A,JH([H]),
W);return!0},function(H,U,A,M,W){if(U instanceof tB)U.forEach(function(O,f){bNN(H,A,Dk([f,
O],M),W)});
else if(Array.isArray(U)){for(var w=0;w<U.length;w++){var d=U[w];Array.isArray(d)&&bNN(H,A,Dk(d,M),W)}JH(U)}});
Pn=_.o5(function(H,U,A){if(H.nextWireType_!==1)return!1;_.FL(U,A,rBm(H.decoder_));return!0},DSr,dSk);
JR3=_.o5(function(H,U,A,M){if(H.nextWireType_!==1)return!1;_.R5(U,A,M,rBm(H.decoder_));return!0},DSr,dSk);
KOr=_.o5(function(H,U,A){if(H.nextWireType_!==5)return!1;_.FL(U,A,BhB(H.decoder_));return!0},$S_,bNw);
o5z=_.eS0(function(H,U,A){if(H.nextWireType_!==5&&H.nextWireType_!==2)return!1;U=_.wM(U,U[_.wm]|0,A);H.nextWireType_==2?_.h5h(H,BhB,U):U.push(BhB(H.decoder_));return!0},function(H,U,A){U=_.rRt(_.MX,U,!0);
if(U!=null&&U.length)for(_.Py(H,A,2),S3(H.encoder_,U.length*4),A=0;A<U.length;A++){var M=H.encoder_;Pnc(U[A]);_.sj(M,D3)}},bNw);
FOk=_.o5(function(H,U,A,M){if(H.nextWireType_!==5)return!1;_.R5(U,A,M,BhB(H.decoder_));return!0},$S_,bNw);
_.Pvg=_.o5(function(H,U,A){if(_.tI)return A$r(H,U,A);if(H.nextWireType_!==0)return!1;_.FL(U,A,_.pN(H.decoder_,_.vr));return!0},_.NS,_.FV);
_.sh=_.o5(function(H,U,A){if(_.tI)return A$r(H,U,A);if(H.nextWireType_!==0)return!1;_.FL(U,A,_.pN(H.decoder_,hH));return!0},_.NS,_.FV);
nT=_.o5(function(H,U,A){if(_.tI)return H.nextWireType_!==0?U=!1:(H=_.pN(H.decoder_,Nmh),_.FL(U,A,H===ZNw?void 0:H),U=!0),U;if(H.nextWireType_!==0)return!1;H=_.pN(H.decoder_,hH);_.FL(U,A,H===0?void 0:H);return!0},_.NS,_.FV);
s5w=_.o5(function(H,U,A,M){if(_.tI)return _.MGV(H,U,A,M);if(H.nextWireType_!==0)return!1;_.R5(U,A,M,_.pN(H.decoder_,hH));return!0},_.NS,_.FV);
n5h=_.o5(function(H,U,A){if(_.tI)return WfV(H,U,A);if(H.nextWireType_!==0)return!1;_.FL(U,A,_.pN(H.decoder_,_.YK));return!0},YjF,wyB);
_.Nn=_.o5(function(H,U,A){if(_.tI)return WfV(H,U,A);if(H.nextWireType_!==0)return!1;_.FL(U,A,_.pN(H.decoder_,syK));return!0},YjF,wyB);
_.Sm=_.o5(function(H,U,A){if(H.nextWireType_!==0)return!1;_.FL(U,A,_.fT(H.decoder_));return!0},hSc,ARg);
NMw=_.o5(function(H,U,A){if(H.nextWireType_!==0)return!1;H=_.fT(H.decoder_);_.FL(U,A,H===0?void 0:H);return!0},hSc,ARg);
Sjw=_.o5(function(H,U,A,M){if(H.nextWireType_!==0)return!1;_.R5(U,A,M,_.fT(H.decoder_));return!0},hSc,ARg);
pyk=_.o5(function(H,U,A){if(_.tI)return _.XIF(H,U,A);if(H.nextWireType_!==1)return!1;_.FL(U,A,yBh(H.decoder_));return!0},_.v5r,_.iNn);
_.LOw=_.eS0(function(H,U,A){if(_.tI)return H.nextWireType_!==1&&H.nextWireType_!==2?H=!1:(U=_.wM(U,U[_.wm]|0,A),H.nextWireType_==2?_.h5h(H,wIc,U):U.push(wIc(H.decoder_)),H=!0),H;if(H.nextWireType_!==1&&H.nextWireType_!==2)return!1;U=_.wM(U,U[_.wm]|0,A);H.nextWireType_==2?_.h5h(H,yBh,U):U.push(yBh(H.decoder_));return!0},function(H,U,A){U=_.rRt(TmK,U,!1);
if(U!=null)for(var M=0;M<U.length;M++)kC7(H,A,U[M])},_.iNn);
_.pT=_.o5(function(H,U,A){if(H.nextWireType_!==0)return!1;_.FL(U,A,e5y(H.decoder_));return!0},TM_,HNr);
_.LT=_.o5(function(H,U,A){if(H.nextWireType_!==0)return!1;H=e5y(H.decoder_);_.FL(U,A,H===!1?void 0:H);return!0},TM_,HNr);
RSy=_.o5(function(H,U,A,M){if(H.nextWireType_!==0)return!1;_.R5(U,A,M,e5y(H.decoder_));return!0},TM_,HNr);
_.RT=_.o5(function(H,U,A){if(H.nextWireType_!==2)return!1;_.FL(U,A,Y$y(H));return!0},IeM,USB);
_.Eh=_.o5(function(H,U,A){if(H.nextWireType_!==2)return!1;H=Y$y(H);_.FL(U,A,H===""?void 0:H);return!0},IeM,USB);
_.m9=_.o5(function(H,U,A,M){if(H.nextWireType_!==2)return!1;_.R5(U,A,M,Y$y(H));return!0},IeM,USB);
E5w=_.eS0(function(H,U,A){if(H.nextWireType_!==2)return!1;H=Y$y(H);_.wM(U,U[_.wm]|0,A).push(H);return!0},function(H,U,A){U=_.rRt(_.m5,U,!0);
if(U!=null)for(var M=0;M<U.length;M++){var W=H,w=A,d=U[M];d!=null&&j5r(W,w,Zhh(d))}},USB);
mSp=void 0;mSp=mSp===void 0?XyN:mSp;_.g4=new Oj(function(H,U,A,M,W){if(H.nextWireType_!==2)return!1;M=Dk(void 0,M);_.wM(U,U[_.wm]|0,A).push(M);KT(H,M,W);return!0},function(H,U,A,M,W){if(Array.isArray(U)){for(var w=0;w<U.length;w++)Q5K(H,U[w],A,M,W);
H=U[_.wm]|0;H&1||bn(U,H|1)}},mSp);
_.aT=iN7(function(H,U,A,M,W,w){if(H.nextWireType_!==2)return!1;var d=U[_.wm]|0;vfh(U,d,w,A,yh(d));U=Efz(U,M,A);KT(H,U,W);return!0},Q5K);
_.xF=_.o5(function(H,U,A){if(H.nextWireType_!==2)return!1;_.FL(U,A,_.q$K(H));return!0},_.V30,_.ONw);
g5B=_.o5(function(H,U,A,M){if(H.nextWireType_!==2)return!1;_.R5(U,A,M,_.q$K(H));return!0},_.V30,_.ONw);
_.zb=_.o5(function(H,U,A){if(H.nextWireType_!==0)return!1;_.FL(U,A,_.fT(H.decoder_)>>>0);return!0},HUt,M3n);
aeB=_.o5(function(H,U,A,M){if(H.nextWireType_!==0)return!1;_.R5(U,A,M,_.fT(H.decoder_)>>>0);return!0},HUt,M3n);
_.CT=_.o5(function(H,U,A){if(H.nextWireType_!==0)return!1;_.FL(U,A,_.fT(H.decoder_));return!0},_.Uor,_.uLK);
_.tg=_.o5(function(H,U,A){if(H.nextWireType_!==0)return!1;H=_.fT(H.decoder_);_.FL(U,A,H===0?void 0:H);return!0},_.Uor,_.uLK);
xSw=_.o5(function(H,U,A){if(_.tI)return H.nextWireType_!==0?H=!1:(_.FL(U,A,cBp(H.decoder_)),H=!0),H;if(H.nextWireType_!==0)return!1;_.FL(U,A,_.pN(H.decoder_,LwF));return!0},function(H,U,A){U=vK8(U);
if(U!=null&&(M37(U),U!=null))switch(_.Py(H,A,0),typeof U){case "number":H=H.encoder_;A=U;U=A<0;A=Math.abs(A)*2;KwM(A);A=D3;var M=$K;U&&(A==0?M==0?M=A=4294967295:(M--,A=4294967295):A--);D3=A;$K=M;nN(H,D3,$K);break;case "bigint":H=H.encoder_;U=U<<BigInt(1)^U>>BigInt(63);D3=Number(BigInt.asUintN(32,U));$K=Number(BigInt.asUintN(32,U>>BigInt(32)));nN(H,D3,$K);break;default:jY3(H.encoder_,U)}},Xyw);var t3y=function(){var H=zSK,U=Cvn;this.fieldIndex=175237375;this.ctor=U;this.isRepeated=0;this.getExtensionFn=_.qK;this.defaultValue=void 0;this.JSC$9179_hasMessageId=H.messageId!=null?cr:void 0};
t3y.prototype.register=function(){yE(this)};var cR2=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(cR2,_.fN);var yR3=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(yR3,_.fN);var fOc=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(fOc,_.fN);var BMr=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(BMr,_.fN);var rRH=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(rRH,_.fN);var eSh=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(eSh,_.fN);var DSp=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(DSp,_.fN);DSp.prototype.getData=function(){return _.vu(this,2)};var $Sy=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R($Sy,_.fN);var lew=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(lew,_.fN);lew.prototype.getStyle=function(){return _.qK(this,cR2,1)};var zC=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(zC,_.fN);zC.prototype.getPayloadCase=function(){return _.To(this,cy)};
zC.prototype.getStyle=function(){return _.io(this,lew,6,cy)};
var GCK=function(){var H=new zC,U=new rRH;return _.tR(H,7,cy,U)},Yjr=function(){var H=new zC,U=new eSh;
return _.tR(H,8,cy,U)},cy=[1,
2,3,4,5,6,7,8];var qjB=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(qjB,_.fN);var hS3=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(hS3,_.fN);var kCn=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(kCn,_.fN);var v5p=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(v5p,_.fN);var TMy=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(TMy,_.fN);var j5p=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(j5p,_.fN);var Iez=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Iez,_.fN);var Q5m=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Q5m,_.fN);Q5m.prototype.getData=function(){return _.vu(this,2)};var V3h=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(V3h,_.fN);var ZUK=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(ZUK,_.fN);ZUK.prototype.getPayloadCase=function(){return _.To(this,cn)};
var cn=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var yV=function(H,U){H=Error.call(this,H);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.code=U===void 0?2:U};
_.R(yV,Error);var HUH=Promise;var Uop=function(H){this.channelPromise=H};
Uop.prototype.send=function(H,U,A){this.channelPromise.then(function(M){M.send(H,U,A)})};var A$p=function(H,U){this.data=H;this.channel=U};
A$p.prototype.reply=function(H,U,A){this.channel.send(H,U,A)};var MGw=function(H){this.JSC$9245_port_=H};
MGw.prototype.send=function(H,U,A){A=A===void 0?[]:A;var M=new MessageChannel;Wfw(M.port1,U);this.JSC$9245_port_.postMessage(H,[M.port2].concat(A))};
var wI3=function(H,U){Wfw(H,U);return new MGw(H)},Wfw=function(H,U){U&&(H.onmessage=function(A){U(new A$p(A.data,wI3(A.ports[0])))})};var XIr=function(H){this.verifier_=H};
XIr.prototype.verify=function(H){return this.verifier_(H)};
var iUk=function(H){var U=Object.create(null);(typeof H==="string"?[H]:H).forEach(function(A){if(A==="null")throw Error("Y");U[A]=!0});
return function(A){return U[A]===!0}};_.bUw=function(){if(!_.Mr.addEventListener||!Object.defineProperty)return!1;var H=!1,U=Object.defineProperty({},"passive",{get:function(){H=!0}});
try{var A=function(){};
_.Mr.addEventListener("test",A,U);_.Mr.removeEventListener("test",A,U)}catch(M){}return H}();var do2;_.Bn=function(H){var U=H.destination;var A=H.iframe;var M=H.origin;var W=H.channelName===void 0?"ZNWN1d":H.channelName;var w=H.onMessage===void 0?void 0:H.onMessage;H=H.onEstablished===void 0?void 0:H.onEstablished;return do2({destination:U,getSource:function(){return A.contentWindow},
originVerifier:M instanceof XIr?M:typeof M==="function"?new XIr(M):new XIr(iUk(M)),channelName:W,onMessage:w,onEstablished:H})};
do2=function(H){var U=H.destination;var A=H.getSource;var M=H.originVerifier;var W=H.token===void 0?void 0:H.token;var w=H.channelName;var d=H.onMessage===void 0?void 0:H.onMessage;var O=H.onEstablished===void 0?void 0:H.onEstablished;return new Uop(new HUH(function(f,J){var F=function(P){P.source&&P.source===A()&&M.verify(P.origin)&&(P.data.n||P.data)===w&&(U.removeEventListener("message",F,!1),W&&P.data.t!==W?J(Error("Z`"+w+"`"+W+"`"+P.data.t)):(f(wI3(P.ports[0],d)),O&&O(P)))};
U.addEventListener("message",F,!1)}))};var OUB=function(H){try{H()}catch(U){wK(U)}};var ZUm=function(H){var U=this;var A=H.getMessageType;var M=H.onUnregisteredMessage===void 0?function(){}:H.onUnregisteredMessage;
var W=H.onBeforeRegisteredMessage===void 0?function(){}:H.onBeforeRegisteredMessage;
H=H.onAfterRegisteredMessage===void 0?function(){}:H.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=A;this.onUnregisteredMessage_=M;this.onBeforeRegisteredMessage_=W;this.onAfterRegisteredMessage_=H;this.onMessage=function(w){return uPm(U,w)}};
ZUm.prototype.register=function(H,U){this.registry_.set(H,U);return this};
var uPm=function(H,U){var A=H.getMessageType_(U.data),M=H.registry_.get(A);M?(OUB(function(){return H.onBeforeRegisteredMessage_(U,A)}),OUB(function(){return M(U)}),OUB(function(){return H.onAfterRegisteredMessage_(U,A)})):OUB(function(){return H.onUnregisteredMessage_(U,A)})};var fOK=function(H){this.JSC$9262_channel_=H},Kfg,osH;
fOK.prototype.send=function(H,U,A){this.JSC$9262_channel_.send(Bj(H),U,A)};
_.J$w=function(H,U){return function(A){var M=new H(A.data);return U(new A$p(M,A.channel))}};
Kfg=function(H){return function(U){return H(new A$p(U.data,new fOK(U.channel)))}};
osH=function(H,U){return Kfg(_.J$w(H,U))};var Ffy=function(H,U,A,M){this.registry=H;this.delegate=U;this.receiveMessageConstructor=A;this.createInitMessage=M;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},uPK=function(H){var U=new ZUm({getMessageType:H.getPayloadCase});
return new Ffy(U,new fOK(_.Bn({iframe:H.child,destination:window,origin:H.origin,channelName:H.channelName,onMessage:osH(H.receiveMessageConstructor,U.onMessage)})),H.receiveMessageConstructor,H.createInitMessage)},PLm=function(H,U){H.createInitMessage=U};
Ffy.prototype.send=function(H){if(!this.initialised)throw new yV("Attempted to send a message before initialisation.");this.delegate.send(H)};
var sDH=function(H,U){return _.u(function(A){if(!H.initialised)throw new yV("Attempted to send a message before initialisation.");return A.return(new Promise(function(M){H.delegate.send(U,osH(H.receiveMessageConstructor,M))}))})};
Ffy.prototype.init=function(){var H=this;return _.u(function(U){if(H.initialised)throw new yV("Attempted to initialise twice. The SDK can only be initialised once.");if(H.createInitMessage!==void 0){var A=H.delegate,M=A.send,W=H.createInitMessage;var w=new yR3;var d=[].concat(_.vI(H.features));w=_.MS(w,1,d,_.bm);M.call(A,W.call(H,w))}H.initialised=!0;_.DO(U)})};
var r4=function(H,U){if(H.initialised)throw new yV('Attempted to set up API "'+U+'" after initialisation. All APIs must be set up before initialising the SDK.');H.features.add(U);return H.registry};
_.D5.Object.defineProperties(Ffy.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var ns2=function(H){this.channel=H;this.registered=!1};
ns2.prototype.update=function(H){if(this.channel.isInitialised){if(!this.registered)throw new yV("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var U=new zC;var A=new BMr;A=_.Gg(A,1,H);U=_.tR(U,2,cy,A);this.channel.send(U)}else this.register();this.JSC$9276_audioEnabled=H};
ns2.prototype.register=function(){r4(this.channel,1);this.registered=!0};
ns2.prototype.isAudioEnabled=function(){return this.JSC$9276_audioEnabled};var NYK=function(H){this.channel=H};
_.X=NYK.prototype;_.X.onFirstFrameReady=function(H){r4(this.channel,2).register(11,function(U){U=_.io(U.data,qjB,11,cn);if(!U)throw new yV("Unexpectedly nonexistent GameFirstFrameReadyEvent");H(_.Mn(U,1))})};
_.X.onReady=function(H){r4(this.channel,2).register(4,function(U){U=_.io(U.data,kCn,4,cn);if(!U)throw new yV("Unexpectedly nonexistent GameReadyEvent");H(_.Mn(U,1))})};
_.X.onLevelComplete=function(H){r4(this.channel,2).register(5,function(U){U=_.io(U.data,v5p,5,cn);if(!U)throw new yV("Unexpectedly nonexistent LevelCompleteEvent");H(_.Mn(U,1),_.B8(U,2))})};
_.X.onGameOver=function(H){r4(this.channel,2).register(6,function(U){U=_.io(U.data,hS3,6,cn);if(!U)throw new yV("Unexpectedly nonexistent GameOverEvent");H(_.Mn(U,1))})};
_.X.pause=function(){var H=this;if(!this.channel.isInitialised)return r4(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new yV("Using unregistered Game Feature: pause.");var U=GCK();return new Promise(function(A){return _.u(function(M){if(M.nextAddress==1)return M.yield(sDH(H.channel,U),2);A();_.DO(M)})})};
_.X.resume=function(){var H=this;if(!this.channel.isInitialised)return r4(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new yV("Using unregistered Game Feature: resume.");var U=Yjr();return new Promise(function(A){return _.u(function(M){if(M.nextAddress==1)return M.yield(sDH(H.channel,U),2);A();_.DO(M)})})};var Srw=function(H){this.channel=H};
Srw.prototype.onReady=function(H){r4(this.channel,5).register(8,function(U){if(!_.io(U.data,TMy,8,cn))throw new yV("Unexpectedly nonexistent PageReadyEvent");H()})};var pIK=function(H){this.channel=H};
pIK.prototype.onChange=function(H){r4(this.channel,3).register(7,function(U){U=_.io(U.data,j5p,7,cn);if(!U)throw new yV("Unexpectedly nonexistent ScoreEvent");H(_.Mn(U,1),_.B8(U,2))})};var Lfn={load:function(){throw new yV("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new yV("Storage used, but storage.onSave() listener not set!");}},RKz=function(H){this.channel=H;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},Esr=function(H){r4(H.channel,4).register(2,Lfn.load).register(3,Lfn.save);
H.initialSetupDone=!0};
RKz.prototype.onLoad=function(H){this.initialSetupDone||Esr(this);this.loadRegistered||(this.loadRegistered=!0,r4(this.channel,4).register(2,function(U){var A,M,W;return _.u(function(w){if(w.nextAddress==1){A=_.io(U.data,Iez,2,cn);if(!A)throw new yV("Unexpectedly nonexistent StorageLoad");M=_.Mn(A,1);return w.yield(H(M),2)}W=w.yieldResult;var d=U.reply,O=new zC;var f=new DSp;f=_.Mu(f,1,M);f=_.kD(f,2,_.tH(W,!1));O=_.tR(O,3,cy,f);d.call(U,O);_.DO(w)})}))};
RKz.prototype.onSave=function(H){this.initialSetupDone||Esr(this);this.saveRegistered||(this.saveRegistered=!0,r4(this.channel,4).register(3,function(U){var A,M,W;return _.u(function(w){if(w.nextAddress==1){A=_.io(U.data,Q5m,3,cn);if(!A)throw new yV("Unexpectedly nonexistent StorageSave");M=_.Mn(A,1);W=Z83(A.getData());return w.yield(H(M,W),2)}var d=U.reply,O=new zC;var f=new $Sy;f=_.Mu(f,1,M);O=_.tR(O,4,cy,f);d.call(U,O);_.DO(w)})}))};var moy=function(H){this.channel=H};
moy.prototype.update=function(H){if(!this.channel.features.has(6))throw new yV("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var U=new zC,A=new lew;H=_.CN(A,1,H);U=_.tR(U,6,cy,H);this.channel.send(U)};
moy.prototype.register=function(){r4(this.channel,6)};var gsw=function(H){this.channel=H;this.userActivityLoggingIntervalMs=0};
gsw.prototype.onUserActivity=function(H,U){this.userActivityLoggingIntervalMs=U;r4(this.channel,7).register(9,function(A){if(!_.io(A.data,V3h,9,cn))throw new yV("Unexpectedly nonexistent ClickEvent");H()})};var aO3=function(H){var U=this;this.channel=H;this.init=this.channel.init.bind(this.channel);this.page=new Srw(this.channel);this.game=new NYK(this.channel);this.audio=new ns2(this.channel);this.score=new pIK(this.channel);this.storage=new RKz(this.channel);this.style=new moy(this.channel);this.userActivity=new gsw(this.channel);PLm(this.channel,function(A){var M=new fOc;A=_.CN(M,1,A);A=_.bo(A,3,U.userActivity.userActivityLoggingIntervalMs);M=U.audio.isAudioEnabled();M!==void 0&&_.Gg(A,2,M);M=new zC;
return _.tR(M,5,cy,A)})};var xow=function(){this.timedFunctionContext=0};
xow.prototype.timeExecution=function(H,U){var A=this;return function(){var M=_.QY.apply(0,arguments);A.timedFunctionContext=H;return U.apply(null,_.vI(M))}};var zK2=function(){var H={};this.priorityTasks=(H[3]=[],H[2]=[],H[1]=[],H);this.isFlushing=!1},CF=function(H,U,A){var M=CLp(H,A);
H.priorityTasks[A].push(U);M&&H.priorityTasks[A].length===1&&H.flush()},CLp=function(H,U){return Object.keys(H.priorityTasks).map(function(A){return Number(A)}).filter(function(A){return!isNaN(A)&&A>U}).every(function(A){return H.priorityTasks[A].length===0})};
zK2.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(H){return H.length>0});)tGk(this,3),tGk(this,2),tGk(this,1)}catch(H){throw Object.values(this.priorityTasks).forEach(function(U){return void U.splice(0,U.length)}),H;
}finally{this.isFlushing=!1}}};
var tGk=function(H,U){for(;CLp(H,U)&&H.priorityTasks[U].length>0;)H.priorityTasks[U][0](),H.priorityTasks[U].shift()};
_.D5.Object.defineProperties(zK2.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(H){return H.length>0})}}});var ns8={};var c$k=globalThis.trustedTypes,Kf4=c$k,Ff_;var By=function(H){this.privateDoNotAccessOrElseWrappedResourceUrl=H};
By.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var y$h,BYp,r$n,eKg,DoK,$ok,lOg,Gj3;y$h=_.NP([""]);BYp=nx(["\x00"],["\\0"]);r$n=nx(["\n"],["\\n"]);eKg=nx(["\x00"],["\\u0000"]);DoK=_.NP([""]);$ok=nx(["\x00"],["\\0"]);lOg=nx(["\n"],["\\n"]);Gj3=nx(["\x00"],["\\u0000"]);_.Yrm=sDt(function(H){return H(y$h)})||sDt(function(H){return H(BYp)})||sDt(function(H){return H(r$n)})||sDt(function(H){return H(eKg)});
_.qrz=_.De(DoK)&&_.De($ok)&&_.De(lOg)&&_.De(Gj3);var TC;_.$5=function(H,U){this.privateDoNotAccessOrElseWrappedUrl=U};
_.$5.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.hKm=Y5("about:blank");TC=Y5("about:invalid#zClosurez");var NYc=function(H){this.isValid=H},kjg=new NYc(function(H){return/^[^:]*([/?#]|$)/.test(H)}),vsh=k5("data"),TYH=k5("http"),jDK=k5("https"),IOz=k5("ftp"),QDw=k5("mailto"),VGB=k5("intent"),HFr=k5("vnd.youtube"),SrV=[vsh,
TYH,jDK,QDw,IOz,kjg],Lf7=yY(function(){return typeof URL==="function"}),U2p=["data:",
"http:","https:","mailto:","ftp:"],EsF=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Ur=function(H){this.privateDoNotAccessOrElseWrappedHtml=H};
Ur.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var XW0=yY(function(){return new Ur(c$k?c$k.emptyHTML:"")});var Azw={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"},gsV=function(H,U){var A=Error.call(this,H+" cannot be used with intent "+Azw[U]);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.type=H;this.intent=U;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.R(gsV,Error);_.dY=function(H){this.privateDoNotAccessOrElseWrappedScript=H};
_.dY.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var xoV=function(H){this.privateDoNotAccessOrElseWrappedAttributePrefix=H};
xoV.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var zK8="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var PI=function(H){this.privateDoNotAccessOrElseWrappedStyleSheet=H};
PI.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var ilt=function(H){var U=_.tr("window.location.href");H==null&&(H='Unknown Error of type "null/undefined"');if(typeof H==="string")return{message:H,name:"Unknown error",lineNumber:"Not available",fileName:U,stack:"Not available"};var A=!1;try{var M=H.lineNumber||H.line||"Not available"}catch(d){M="Not available",A=!0}try{var W=H.fileName||H.filename||H.sourceURL||_.Mr.$googDebugFname||U}catch(d){W="Not available",A=!0}U=Msy(H);if(!(!A&&H.lineNumber&&H.fileName&&H.stack&&H.message&&H.name)){A=H.message;
if(A==null){if(H.constructor&&H.constructor instanceof Function){if(H.constructor.name)A=H.constructor.name;else if(A=H.constructor,em[A])A=em[A];else{A=String(A);if(!em[A]){var w=/function\s+([^\(]+)/m.exec(A);em[A]=w?w[1]:"[Anonymous]"}A=em[A]}A='Unknown Error of type "'+A+'"'}else A="Unknown Error of unknown type";typeof H.toString==="function"&&Object.prototype.toString!==H.toString&&(A+=": "+H.toString())}return{message:A,name:H.name||"UnknownError",lineNumber:M,fileName:W,stack:U||"Not available"}}return{message:H.message,
name:H.name,lineNumber:H.lineNumber,fileName:H.fileName,stack:U}},Msy=function(H,U){U||(U={});
U[WSy(H)]=!0;var A=H.stack||"",M=H.cause;M&&!U[WSy(M)]&&(A+="\nCaused by: ",M.stack&&M.stack.indexOf(M.toString())==0||(A+=typeof M==="string"?M:M.message+"\n"),A+=Msy(M,U));H=H.errors;if(Array.isArray(H)){M=1;var W;for(W=0;W<H.length&&!(M>4);W++)U[WSy(H[W])]||(A+="\nInner error "+M++ +": ",H[W].stack&&H[W].stack.indexOf(H[W].toString())==0||(A+=typeof H[W]==="string"?H[W]:H[W].message+"\n"),A+=Msy(H[W],U));W<H.length&&(A+="\n... "+(H.length-W)+" more inner errors")}return A},WSy=function(H){var U=
"";
typeof H.toString==="function"&&(U=""+H);return U+H.stack},em={};var wLw,YZ,Cy,XLw,iFw,d2B,cJ,JP,uIB;wLw=function(H,U){for(var A=H.split("%s"),M="",W=Array.prototype.slice.call(arguments,1);W.length&&A.length>1;)M+=A.shift()+W.shift();return M+A.join("%s")};
_.q2=function(H){return encodeURIComponent(String(H))};
YZ=function(H){return decodeURIComponent(H.replace(/\+/g," "))};
Cy=function(H){mph.test(H)&&(H.indexOf("&")!=-1&&(H=H.replace(Nmk,"&amp;")),H.indexOf("<")!=-1&&(H=H.replace(Szg,"&lt;")),H.indexOf(">")!=-1&&(H=H.replace(prw,"&gt;")),H.indexOf('"')!=-1&&(H=H.replace(Lwr,"&quot;")),H.indexOf("'")!=-1&&(H=H.replace(Rgw,"&#39;")),H.indexOf("\x00")!=-1&&(H=H.replace(EKy,"&#0;")));return H};
_.bFh=function(H){return _.OM(H,"&")?"document"in _.Mr?XLw(H):iFw(H):H};
XLw=function(H){var U={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var A=_.Mr.document.createElement("div");return H.replace(d2B,function(M,W){var w=U[M];if(w)return w;W.charAt(0)=="#"&&(W=Number("0"+W.slice(1)),isNaN(W)||(w=String.fromCharCode(W)));w||(_.KU(A,A$(M+" ")),w=A.firstChild.nodeValue.slice(0,-1));return U[M]=w})};
iFw=function(H){return H.replace(/&([^;]+);/g,function(U,A){switch(A){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return A.charAt(0)!="#"||(A=Number("0"+A.slice(1)),isNaN(A))?U:String.fromCharCode(A)}})};
d2B=/&([^;\s<&]+);?/g;_.ZH8=function(H){return String(H).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.OFy=String.prototype.repeat?function(H,U){return H.repeat(U)}:function(H,U){return Array(U+1).join(H)};
_.DX=function(H,U){if(!Number.isFinite(H))return String(H);H=String(H);var A=H.indexOf(".");A===-1&&(A=H.length);var M=H[0]==="-"?"-":"";M&&(H=H.substring(1));return M+(0,_.OFy)("0",Math.max(0,U-A))+H};
cJ=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.x4()).toString(36)};
JP=function(H){for(var U=0,A=0;A<H.length;++A)U=31*U+H.charCodeAt(A)>>>0;return U};
_.Y8=function(H){return String(H).replace(/\-([a-z])/g,function(U,A){return A.toUpperCase()})};
_.GP=function(H){return String(H).replace(/([A-Z])/g,"-$1").toLowerCase()};
uIB=function(H){return H.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(U,A,M){return A+M.toUpperCase()})};var ZFk=function(){this.names=new Map};
ZFk.prototype.getName=function(H){var U=this.names.get(H);if(U)return U;var A;U=(A=H.description)!=null?A:cJ();this.names.set(H,U);return U};var fU2=function(H){var U=Error.call(this,H?H.length+" errors occurred during unsubscription:\n"+H.map(function(A,M){return M+1+") "+A.toString()}).join("\n  "):"");
this.message=U.message;"stack"in U&&(this.stack=U.stack);this.errors=H;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.R(fU2,Error);var nU=function(H){this.initialTeardown=H;this.closed=!1;this._teardowns=this._parentage=null};
_.X=nU.prototype;
_.X.unsubscribe=function(){if(!this.closed){this.closed=!0;var H=this._parentage;if(Array.isArray(H))for(var U=_.b(H),A=U.next();!A.done;A=U.next())A.value.remove(this);else H==null||H.remove(this);U=this.initialTeardown;if(sr(U))try{U()}catch(w){var M=w instanceof fU2?w.errors:[w]}var W=this._teardowns;if(W)for(this._teardowns=null,U=_.b(W),A=U.next();!A.done;A=U.next()){A=A.value;try{sr(A)?A():A.unsubscribe()}catch(w){A=void 0,M=(A=M)!=null?A:[],w instanceof fU2?M=[].concat(_.vI(M),_.vI(w.errors)):
M.push(w)}}if(M)throw new fU2(M);}};
_.X.add=function(H){if(H&&H!==this)if(this.closed)sr(H)?H():H.unsubscribe();else{if(H instanceof nU){if(H.closed||H._hasParent(this))return;H._addParent(this)}var U;(this._teardowns=(U=this._teardowns)!=null?U:[]).push(H)}};
_.X._hasParent=function(H){var U=this._parentage;return U===H||Array.isArray(U)&&U.includes(H)};
_.X._addParent=function(H){var U=this._parentage;this._parentage=Array.isArray(U)?(U.push(H),U):U?[U,H]:H};
_.X._removeParent=function(H){var U=this._parentage;U===H?this._parentage=null:Array.isArray(U)&&BYr(U,H)};
_.X.remove=function(H){var U=this._teardowns;U&&BYr(U,H);H instanceof nU&&H._removeParent(this)};
var Jzy=new nU;Jzy.closed=!0;nU.JSC$9372_EMPTY=Jzy;var eK4=function(){setTimeout.apply(null,_.vI(_.QY.apply(0,arguments)))};var $F=function(H){nU.call(this);this.JSC$9377_isStopped=!1;this.destination=H instanceof $F?H:new lo(!H||sr(H)?{next:H!=null?H:void 0}:H);r$7(H)&&H.add(this)};
_.R($F,nU);$F.JSC$9372_EMPTY=nU.JSC$9372_EMPTY;$F.create=function(H,U,A){return new Gb(H,U,A)};
_.X=$F.prototype;_.X.next=function(H){this.JSC$9377_isStopped||this._next(H)};
_.X.error=function(H){this.JSC$9377_isStopped||(this.JSC$9377_isStopped=!0,this._error(H))};
_.X.complete=function(){this.JSC$9377_isStopped||(this.JSC$9377_isStopped=!0,this._complete())};
_.X.unsubscribe=function(){this.closed||(this.JSC$9377_isStopped=!0,nU.prototype.unsubscribe.call(this))};
_.X._next=function(H){this.destination.next(H)};
_.X._error=function(H){this.destination.error(H);this.unsubscribe()};
_.X._complete=function(){this.destination.complete();this.unsubscribe()};
var lo=function(H){this.partialObserver=H};
lo.prototype.next=function(H){var U=this.partialObserver;if(U.next)try{U.next(H)}catch(A){SG(A)}};
lo.prototype.error=function(H){var U=this.partialObserver;if(U.error)try{U.error(H)}catch(A){SG(A)}else SG(H)};
lo.prototype.complete=function(){var H=this.partialObserver;if(H.complete)try{H.complete()}catch(U){SG(U)}};
var Gb=function(H,U,A){$F.call(this);var M;sr(H)||!H?M={next:H!=null?H:void 0,error:U!=null?U:void 0,complete:A!=null?A:void 0}:M=H;this.destination=new lo(M)};
_.R(Gb,$F);Gb.JSC$9372_EMPTY=$F.JSC$9372_EMPTY;Gb.create=$F.create;var gY=typeof Symbol==="function"&&Symbol.observable||"@@observable";var mf=function(H){H&&(this._subscribe=H)};
_.X=mf.prototype;_.X.lift=function(H){var U=new mf;U.source=this;U.operator=H;return U};
_.X.subscribe=function(H,U,A){H=H&&H instanceof $F||H&&sr(H.next)&&sr(H.error)&&sr(H.complete)&&r$7(H)?H:new Gb(H,U,A);U=this.operator;A=this.source;H.add(U?U.call(H,A):A?this._subscribe(H):this._trySubscribe(H));return H};
_.X._trySubscribe=function(H){try{return this._subscribe(H)}catch(U){H.error(U)}};
_.X.forEach=function(H,U){var A=this;U=$oh(U);return new U(function(M,W){var w=A.subscribe(function(d){try{H(d)}catch(O){W(O),w==null||w.unsubscribe()}},W,M)})};
_.X._subscribe=function(H){var U;return(U=this.source)==null?void 0:U.subscribe(H)};
mf.prototype[gY]=function(){return this};
mf.prototype.pipe=function(){var H=_.QY.apply(0,arguments);return H.length?Doc(H)(this):this};
mf.create=function(H){return new mf(H)};var KS3=function(){var H=Error.call(this,"object unsubscribed");this.message=H.message;"stack"in H&&(this.stack=H.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.R(KS3,Error);var ak=function(){this.observers=[];this.hasError=this.JSC$9393_isStopped=this.closed=!1;this.thrownError=null};
_.R(ak,mf);_.X=ak.prototype;_.X.lift=function(H){var U=new YF(this,this);U.operator=H;return U};
_.X._throwIfClosed=function(){if(this.closed)throw new KS3;};
_.X.next=function(H){this._throwIfClosed();if(!this.JSC$9393_isStopped){var U=this.observers.slice();U=_.b(U);for(var A=U.next();!A.done;A=U.next())A.value.next(H)}};
_.X.error=function(H){this._throwIfClosed();if(!this.JSC$9393_isStopped){this.hasError=this.JSC$9393_isStopped=!0;this.thrownError=H;for(var U=this.observers;U.length;)U.shift().error(H)}};
_.X.complete=function(){this._throwIfClosed();if(!this.JSC$9393_isStopped){this.JSC$9393_isStopped=!0;for(var H=this.observers;H.length;)H.shift().complete()}};
_.X.unsubscribe=function(){this.JSC$9393_isStopped=this.closed=!0;this.observers=null};
_.X._trySubscribe=function(H){this._throwIfClosed();return mf.prototype._trySubscribe.call(this,H)};
_.X._subscribe=function(H){this._throwIfClosed();this._checkFinalizedStatuses(H);return this._innerSubscribe(H)};
_.X._innerSubscribe=function(H){var U=this,A=this.JSC$9393_isStopped,M=this.observers;return this.hasError||A?nU.JSC$9372_EMPTY:(M.push(H),new nU(function(){return BYr(U.observers,H)}))};
_.X._checkFinalizedStatuses=function(H){var U=this.thrownError,A=this.JSC$9393_isStopped;this.hasError?H.error(U):A&&H.complete()};
ak.create=function(H,U){return new YF(H,U)};
var YF=function(H,U){ak.call(this);this.destination=H;this.source=U};
_.R(YF,ak);YF.create=ak.create;YF.prototype.next=function(H){var U,A;(U=this.destination)==null||(A=U.next)==null||A.call(U,H)};
YF.prototype.error=function(H){var U,A;(U=this.destination)==null||(A=U.error)==null||A.call(U,H)};
YF.prototype.complete=function(){var H,U;(H=this.destination)==null||(U=H.complete)==null||U.call(H)};
YF.prototype._subscribe=function(H){var U,A;return(A=(U=this.source)==null?void 0:U.subscribe(H))!=null?A:nU.JSC$9372_EMPTY};var sA=function(H){ak.call(this);this._value=H};
_.R(sA,ak);sA.create=ak.create;sA.prototype._subscribe=function(H){var U=ak.prototype._subscribe.call(this,H);!U.closed&&H.next(this._value);return U};
sA.prototype.getValue=function(){var H=this.thrownError,U=this._value;if(this.hasError)throw H;this._throwIfClosed();return U};
sA.prototype.next=function(H){ak.prototype.next.call(this,this._value=H)};
_.D5.Object.defineProperties(sA.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var HL=new mf(function(H){return H.complete()});var qrM=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var jDc=function(H){return H&&typeof H.length==="number"&&typeof H!=="function"};var oZB={now:function(){return(oZB.delegate||Date).now()},
delegate:void 0};var KF=function(H,U,A){H=H===void 0?Infinity:H;U=U===void 0?Infinity:U;A=A===void 0?oZB:A;ak.call(this);this.bufferSize=H;this.windowTime=U;this.timestampProvider=A;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=U===Infinity;this.bufferSize=Math.max(1,H);this.windowTime=Math.max(1,U)};
_.R(KF,ak);KF.create=ak.create;KF.prototype.next=function(H){var U=this.buffer,A=this.infiniteTimeWindow,M=this.timestampProvider,W=this.windowTime;this.JSC$9393_isStopped||(U.push(H),!A&&U.push(M.now()+W));FSK(this);ak.prototype.next.call(this,H)};
KF.prototype._subscribe=function(H){this._throwIfClosed();FSK(this);for(var U=this._innerSubscribe(H),A=this.infiniteTimeWindow,M=this.buffer.slice(),W=0;W<M.length&&!H.closed;W+=A?1:2)H.next(M[W]);this._checkFinalizedStatuses(H);return U};
var FSK=function(H){var U=H.bufferSize,A=H.timestampProvider,M=H.buffer;H=H.infiniteTimeWindow;var W=(H?1:2)*U;U<Infinity&&W<M.length&&M.splice(0,M.length-W);if(!H){U=A.now();A=0;for(H=1;H<M.length&&M[H]<=U;H+=2)A=H;A&&M.splice(0,A+1)}};var skz=function(H,U){U=U===void 0?PFB:U;this.schedulerActionCtor=H;this.now=U};
skz.prototype.schedule=function(H,U,A){U=U===void 0?0:U;return(new this.schedulerActionCtor(this,H)).schedule(A,U)};
var PFB=oZB.now;var lUK=function(){var H=Error.call(this,"no elements in sequence");this.message=H.message;"stack"in H&&(this.stack=H.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.R(lUK,Error);var qo=function(H,U,A,M,W){$F.call(this,H);this.onUnsubscribe=W;U&&(this._next=function(w){try{U(w)}catch(d){this.destination.error(d)}});
A&&(this._error=function(w){try{A(w)}catch(d){this.destination.error(d)}this.unsubscribe()});
M&&(this._complete=function(){try{M()}catch(w){this.destination.error(w)}this.unsubscribe()})};
_.R(qo,$F);qo.JSC$9372_EMPTY=$F.JSC$9372_EMPTY;qo.create=$F.create;qo.prototype.unsubscribe=function(){var H;this.closed||(H=this.onUnsubscribe)!=null&&H.call(this);$F.prototype.unsubscribe.call(this)};var fF=function(H,U){this.source=H;this.subjectFactory=U;this._subject=null;this._refCount=0;this._connection=null};
_.R(fF,mf);fF.create=mf.create;fF.prototype._subscribe=function(H){return nZB(this).subscribe(H)};
var nZB=function(H){var U=H._subject;if(!U||U.JSC$9393_isStopped)H._subject=H.subjectFactory();return H._subject};
fF.prototype._teardown=function(){this._refCount=0;var H=this._connection;this._subject=this._connection=null;H==null||H.unsubscribe()};
fF.prototype.connect=function(){var H=this,U=this._connection;if(!U){U=this._connection=new nU;var A=nZB(this);U.add(this.source.subscribe(new qo(A,void 0,function(M){H._teardown();A.error(M)},function(){H._teardown();
A.complete()},function(){return H._teardown()})));
U.closed&&(this._connection=null,U=nU.JSC$9372_EMPTY)}return U};var bF0=Array.isArray;var OF_=Array.isArray,NNz=Object,uIE=NNz.getPrototypeOf,ZFh=NNz.prototype,fU8=NNz.keys;var jG=function(H,U,A){$F.call(this,H);this._next=U;this.shouldComplete=A};
_.R(jG,$F);jG.JSC$9372_EMPTY=$F.JSC$9372_EMPTY;jG.create=$F.create;jG.prototype._complete=function(){this.shouldComplete()?$F.prototype._complete.call(this):this.unsubscribe()};var S6N=["addListener","removeListener"],NNM=["addEventListener","removeEventListener"],LSc=["on","off"];var qn=function(){nU.call(this)};
_.R(qn,nU);qn.JSC$9372_EMPTY=nU.JSC$9372_EMPTY;qn.prototype.schedule=function(){return this};var S6w=function(H,U){return setInterval.apply(null,[H,U].concat(_.vI(_.QY.apply(2,arguments))))};var hg=function(H,U){nU.call(this);this.scheduler=H;this.work=U;this.pending=!1};
_.R(hg,qn);hg.JSC$9372_EMPTY=qn.JSC$9372_EMPTY;hg.prototype.schedule=function(H,U){U=U===void 0?0:U;if(this.closed)return this;this.state=H;H=this.id;var A=this.scheduler;H!=null&&(this.id=pLh(this,H,U));this.pending=!0;this.delay=U;this.id=this.id||this.requestAsyncId(A,this.id,U);return this};
hg.prototype.requestAsyncId=function(H,U,A){A=A===void 0?0:A;return S6w(H.flush.bind(H,this),A)};
var pLh=function(H,U,A){A=A===void 0?0:A;if(A!=null&&H.delay===A&&H.pending===!1)return U;clearInterval(U)};
hg.prototype.execute=function(H,U){if(this.closed)return Error("ia");this.pending=!1;if(H=this._execute(H,U))return H;this.pending===!1&&this.id!=null&&(this.id=pLh(this,this.id,null))};
hg.prototype._execute=function(H){var U=!1;try{this.work(H)}catch(M){U=!0;var A=!!M&&M||Error(M)}if(U)return this.unsubscribe(),A};
hg.prototype.unsubscribe=function(){if(!this.closed){var H=this.id,U=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;BYr(U,this);H!=null&&(this.id=pLh(this,H,null));this.delay=null;qn.prototype.unsubscribe.call(this)}};var LS3=function(H,U){U=U===void 0?PFB:U;skz.call(this,H,U);this.actions=[];this.active=!1;this.scheduled=void 0};
_.R(LS3,skz);LS3.prototype.flush=function(H){var U=this.actions;if(this.active)U.push(H);else{var A;this.active=!0;do if(A=H.execute(H.state,H.delay))break;while(H=U.shift());this.active=!1;if(A){for(;H=U.shift();)H.unsubscribe();throw A;}}};var XS=new mf(No);var RN8=Array.isArray;var kF=function(H,U){hg.call(this,H,U);this.scheduler=H;this.work=U};
_.R(kF,hg);kF.JSC$9372_EMPTY=hg.JSC$9372_EMPTY;kF.prototype.schedule=function(H,U){U=U===void 0?0:U;if(U>0)return hg.prototype.schedule.call(this,H,U);this.delay=U;this.state=H;this.scheduler.flush(this);return this};
kF.prototype.execute=function(H,U){return U>0||this.closed?hg.prototype.execute.call(this,H,U):this._execute(H,U)};
kF.prototype.requestAsyncId=function(H,U,A){A=A===void 0?0:A;return A!=null&&A>0||A==null&&this.delay>0?hg.prototype.requestAsyncId.call(this,H,U,A):H.flush(this)};var RN2=function(){LS3.apply(this,arguments)};
_.R(RN2,LS3);var XLV=new RN2(kF);var EZh=function(){this.performanceMonitor=new xow;this.queue=new zK2;this.internalSymbol=Symbol();this.debugNames=new ZFk};
EZh.prototype.getOnBackgrounded=function(){return XS};
_.D5.Object.defineProperties(EZh.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var vn=function(H,U){U=Error.call(this,U?H+": "+U:String(H));this.message=U.message;"stack"in U&&(this.stack=U.stack);this.code=H;this.__proto__=vn.prototype;this.name=String(H)};
_.R(vn,Error);var iV=function(H){vn.call(this,1E3,'sfr:"'+H+'"');this.measurementStrategyFailureReason=H;this.__proto__=iV.prototype};
_.R(iV,vn);var bV=function(){vn.call(this,1003);this.__proto__=bV.prototype};
_.R(bV,vn);var Tb=function(){vn.call(this,1009);this.__proto__=Tb.prototype};
_.R(Tb,vn);var m2p=function(){vn.call(this,1011);this.__proto__=m2p.prototype};
_.R(m2p,vn);var gZm=function(){vn.call(this,1007);this.__proto__=bV.prototype};
_.R(gZm,vn);var W8=function(H){vn.call(this,1004,String(H));this.inputObservableIndex=H;this.__proto__=W8.prototype};
_.R(W8,vn);var R8_=function(H){vn.call(this,1010,H);this.__proto__=ERV.prototype};
_.R(R8_,vn);var ERV=function(H){vn.call(this,1005,H);this.__proto__=ERV.prototype};
_.R(ERV,vn);var aUg=function(H){var U=_.QY.apply(1,arguments),A=this;this.orderedFactories=[];this.orderedFactories.push(H);U.forEach(function(M){A.orderedFactories.push(M)})};
aUg.prototype.isSupported=function(H){return this.orderedFactories.some(function(U){return U.isSupported(H)})};
aUg.prototype.makeBeacon=function(H,U){for(var A=0;A<this.orderedFactories.length;A++)if(this.orderedFactories[A].isSupported(U))return this.orderedFactories[A].makeBeacon(H,U);throw new Tb;};var Jat=Symbol("ja"),x2z=Symbol("ka"),WL=function(H,U){this.value=H;this.timeline=U},M2=function(H,U){if(U.timeline!==H.timeline)throw new gZm;
return H.value-U.value};
_.X=WL.prototype;_.X.equals=function(H){return M2(this,H)===0};
_.X.maximum=function(H){if(H.timeline!==this.timeline)throw new gZm;return this.value>=H.value?this:H};
_.X.round=function(){return new WL(Math.round(this.value),this.timeline)};
_.X.add=function(H){return new WL(this.value+H,this.timeline)};
_.X.toString=function(){return String(this.value)};var jm=function(H,U){this.context=H;this.JSC$9499_pinger=U};
jm.prototype.isSupported=function(H){return this.JSC$9499_pinger.isSupported(H)};
jm.prototype.makeBeacon=function(H,U){if(!this.isSupported(U))throw new Tb;return new IT(this.context,this.JSC$9499_pinger,U!=null?U:void 0,H)};
var IT=function(H,U,A,M){var W=this;this.JSC$9505_pinger=U;this.properties=A;this.url=M;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var w;this.method=(w=A==null?void 0:A.beaconMethod)!=null?w:"GET";this.backgroundedSubscription=H.getOnBackgrounded().subscribe(function(){W.sendNow()})};
IT.prototype.deactivate=function(){this.internalIsPending=!1};
IT.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9505_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var H,U;this.JSC$9505_pinger.pingWithHeadersAndBody((H=this.properties)!=null?H:{},this.customHeaders,(U=this.body)!=null?U:"",this.url)}else this.JSC$9505_pinger.ping(this.url);this.internalIsPending=!1}catch(A){}else this.internalIsPending=!1};
IT.prototype.setHeader=function(H,U){this.customHeaders.set(H,U)};
_.D5.Object.defineProperties(IT.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var CFr=function(){for(var H=_.b(_.QY.apply(0,arguments)),U=H.next();!U.done;U=H.next())if(U=U.value,U.available()){this.timeProvider=U;return}this.timeProvider=new zN2};
_.X=CFr.prototype;_.X.available=function(){return this.timeProvider.available()};
_.X.now=function(){return this.timeProvider.now()};
_.X.setTimeout=function(H,U){return this.timeProvider.setTimeout(H,U)};
_.X.clearTimeout=function(H){this.timeProvider.clearTimeout(H)};
_.X.interval=function(H,U){var A=this.intervalObservable(H).subscribe(U);return function(){return void A.unsubscribe()}};
_.X.intervalObservable=function(H){return this.timeProvider.intervalObservable(H)};
_.D5.Object.defineProperties(CFr.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var zN2=function(){this.timeline=Symbol()};
_.X=zN2.prototype;_.X.available=function(){return!1};
_.X.now=function(){return new WL(0,this.timeline)};
_.X.setTimeout=function(){return 0};
_.X.clearTimeout=function(){};
_.X.interval=function(){return function(){}};
_.X.intervalObservable=function(){return XS};var QV=function(H,U){this.intrinsicFunctionNamespace=H;this.performanceMonitor=U};
_.X=QV.prototype;_.X.setTimeout=function(H,U){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,H),U)};
_.X.clearTimeout=function(H){this.intrinsicFunctionNamespace.clearTimeout(H)};
_.X.interval=function(H,U){var A=this.intervalObservable(H).subscribe(U);return function(){return void A.unsubscribe()}};
_.X.intervalObservable=function(H){var U=this;return new mf(function(A){var M=0,W=U.intrinsicFunctionNamespace.setInterval(function(){A.next(M++)},H);
return function(){U.intrinsicFunctionNamespace.clearInterval(W)}})};
_.X.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var tsg=function(H,U){QV.call(this,H,U);this.timeline=x2z};
_.R(tsg,QV);tsg.prototype.now=function(){return new WL(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
tsg.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&QV.prototype.available.call(this)};var czn=function(H,U){QV.call(this,H,U);this.timeline=Jat};
_.R(czn,QV);czn.prototype.now=function(){return new WL(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
czn.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&QV.prototype.available.call(this)};var BN2=function(H){this.context=H;if(yz2===void 0)a:{var U,A,M=(U=H.global)==null?void 0:(A=U.document)==null?void 0:A.createElement("meta");if(M)try{M.httpEquiv="origin-trial";M.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";H.global.document.head.append(M);yz2=M;break a}catch(W){}yz2=void 0}},
yz2;
BN2.prototype.isSupported=function(H){return yz8(this.context)!==void 0&&!(H==null||!H.endOfSession)&&!VV(this.context)&&!(H==null?0:H.attributionEnabled)&&!(H==null?0:H.customHeaders)&&!(H==null?0:H.customBody)};
BN2.prototype.makeBeacon=function(H,U){if(!this.isSupported(U))throw new Tb;return new HQ(this.context,H,U)};
var HQ=function(H,U,A){this.context=H;this.properties=A;this.JSC$9532_urlWithoutToken=U;var M;this.beaconMethod=(M=A==null?void 0:A.beaconMethod)!=null?M:"GET";H=yz8(this.context);if(H===void 0)throw Error();this.fetchLater=H;rzz(this,eNk(this))},rzz=function(H,U){H.beaconResult&&H.beaconResult.activated||(H.beaconAbort=new AbortController,H.beaconResult=H.fetchLater(U,{method:H.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:H.beaconAbort.signal,activateAfter:96E4}))},eNk=function(H){H=H.JSC$9532_urlWithoutToken;
return(H.slice(-1)[0]==="&"?H:H+"&")+"flapi=1"};
HQ.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
HQ.prototype.sendNow=function(){};
HQ.prototype.setHeader=function(){};
_.D5.Object.defineProperties(HQ.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9532_urlWithoutToken},
set:function(H){this.JSC$9532_urlWithoutToken=H;H=eNk(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);rzz(this,H)}},
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 D2r=function(H){this.context=H};
D2r.prototype.isSupported=function(){return!VV(this.context)&&!!this.context.global.fetch};
D2r.prototype.ping=function(){var H=this;return U6.apply(null,_.vI(_.QY.apply(0,arguments).map(function(U){return xs(H.context.global.fetch(U,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(ks(function(A){return A.status===200}))}))).pipe(GZ7(function(U){return U}),q67())};
D2r.prototype.pingWithHeadersAndBody=function(H,U,A){for(var M=_.QY.apply(3,arguments),W=this,w=new Headers,d=_.b(U.entries()),O=d.next();!O.done;O=d.next()){var f=_.b(O.value);O=f.next().value;f=f.next().value;w.set(O,f)}var J,F=(J=H.keepAlive)!=null?J:!1;U6.apply(null,_.vI(M.map(function(P){return xs(W.context.global.fetch(P,Object.assign({},{method:String(H.beaconMethod),cache:"no-cache"},F?{keepalive:!0}:{},{mode:"no-cors",headers:w,body:A}))).pipe(ks(function(n){return n.status===200}))}))).pipe(GZ7(function(P){return P}),
q67())};var $2H,cd7,lUm;_.UR=function(){};
_.Ch=function(H){return H};
$2H=function(H){var U=U||0;return function(){return H.apply(this,Array.prototype.slice.call(arguments,0,U))}};
_.AJ=function(H){var U=!1,A;return function(){U||(A=H(),U=!0);return A}};
_.Mb=function(H,U){var A=0;return function(M){_.Mr.clearTimeout(A);var W=arguments;A=_.Mr.setTimeout(function(){H.apply(void 0,W)},U)}};
cd7=function(H,U){var A=0,M=!1,W=[],w=function(){A=0;M&&(M=!1,d())},d=function(){A=_.Mr.setTimeout(w,U);
var O=W;W=[];H.apply(void 0,O)};
return function(O){W=arguments;A?M=!0:d()}};
lUm=function(H,U){var A=0,M=function(){A=0};
return function(W){A||(A=_.Mr.setTimeout(M,U),H.apply(void 0,arguments))}};var WQ=function(H,U,A,M,W){this.allowedElements=H;this.elementPolicies=U;this.allowedGlobalAttributes=A;this.globalAttributePolicies=M;this.globallyAllowedAttributePrefixes=W},GZn=function(H,U,A){A=H.elementPolicies.get(A);
return(A==null?0:A.has(U))?A.get(U):H.allowedGlobalAttributes.has(U)?{policyAction:1}:(A=H.globalAttributePolicies.get(U))?A:H.globallyAllowedAttributePrefixes&&[].concat(_.vI(H.globallyAllowedAttributePrefixes)).some(function(M){return U.indexOf(M)===0})?{policyAction:1}:{policyAction:0}};var Y6K="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(" "),
q6n=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["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}]])]],hNk="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 coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
kZh=[["dir",{policyAction:3,conditions:yY(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:yY(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:yY(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:yY(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],vZg=new WQ(new Set(Y6K),new Map(q6n),new Set(hNk),new Map(kZh)),TNy=new WQ(new Set(Y6K.concat(["BUTTON",
"INPUT"])),new Map(q6n),new Set(yY(function(){return hNk.concat(["class","id","name"])})),new Map(yY(function(){return kZh.concat([["style",
{policyAction:1}]])})));var jkB,IUz,Vsy;jkB=function(H,U,A,M,W){this.JSC$9589_sanitizerTable=H;this.styleElementSanitizer=U;this.styleAttributeSanitizer=A;this.JSC$9589_resourceUrlPolicy=M;this.JSC$9589_navigationUrlPolicy=W;this.changes=[]};
_.Qk2=function(H,U){var A=document.implementation.createHTMLDocument("");H=IUz(H,U,A);A=A.body;A.appendChild(H);A=(new XMLSerializer).serializeToString(A);A=A.slice(A.indexOf(">")+1,A.lastIndexOf("</"));return A$(A)};
IUz=function(H,U,A){U=MlE(U,A);U=document.createTreeWalker(U,5,function(O){if(O.nodeType===3)O=1;else if(w8_(O))if(O=WP_(O),O===null)O=2;else{var f=H.JSC$9589_sanitizerTable;O=O!=="FORM"&&(f.allowedElements.has(O)||f.elementPolicies.has(O))?1:2}else O=2;return O});
for(var M=U.nextNode(),W=A.createDocumentFragment(),w=W;M!==null;){var d=void 0;if(M.nodeType===3)H.styleElementSanitizer&&w.nodeName==="STYLE"?(M=H.styleElementSanitizer(M.data),d=H.createTextNode(M)):d=H.createTextNode(M.data);else if(w8_(M))d=Vsy(H,M,A);else throw Error("$");w.appendChild(d);if(M=U.firstChild())w=d;else for(;!(M=U.nextSibling())&&(M=U.parentNode());)w=w.parentNode}return W};
jkB.prototype.createTextNode=function(H){return document.createTextNode(H)};
Vsy=function(H,U,A){var M,W=WP_(U);A=A.createElement(W);U=U.attributes;for(var w=_.b(U),d=w.next();!d.done;d=w.next()){var O=d.value;d=O.name;O=O.value;var f=GZn(H.JSC$9589_sanitizerTable,d,W);a:{if(M=f.conditions){M=_.b(M);for(var J=M.next();!J.done;J=M.next()){var F=_.b(J.value);J=F.next().value;F=F.next().value;var P=void 0;if((J=(P=U.getNamedItem(J))==null?void 0:P.value)&&!F.has(J)){M=!1;break a}}}M=!0}if(M)switch(f.policyAction){case 1:pF(A,d,O);break;case 2:throw Error();case 3:pF(A,d,O.toLowerCase());
break;case 4:H.styleAttributeSanitizer?(O=H.styleAttributeSanitizer(O),pF(A,d,O)):pF(A,d,O);break;case 5:H.JSC$9589_resourceUrlPolicy?(f={type:2,attributeName:d,elementName:W},O=AD_(O),(O=H.JSC$9589_resourceUrlPolicy(O,f))&&pF(A,d,O.toString())):pF(A,d,O);break;case 6:if(H.JSC$9589_resourceUrlPolicy){f={type:2,attributeName:d,elementName:W};M=[];O=_.b(O.split(","));for(J=O.next();!J.done;J=O.next())F=_.b(J.value.trim().split(/\s+/,2)),J=F.next().value,F=F.next().value,M.push({url:J,descriptor:F});
O={parts:[]};M=_.b(M);for(J=M.next();!J.done;J=M.next())J=J.value,F=AD_(J.url),(F=H.JSC$9589_resourceUrlPolicy(F,f))&&O.parts.push({url:F.toString(),descriptor:J.descriptor});pF(A,d,X8c(O))}else pF(A,d,O);break;case 7:f=O;if(H.JSC$9589_navigationUrlPolicy){f={type:2,attributeName:d,elementName:W};O=AD_(O);O=H.JSC$9589_navigationUrlPolicy(O,f);if(O===null)break;f=O.toString()}O=f;f=_.RKM(O);f=f!==void 0&&U2p.indexOf(f.toLowerCase())!==-1?O:"about:invalid#zClosurez";pF(A,d,f)}}return A};
_.HpH=yY(function(){return new jkB(vZg)});
_.UuB=yY(function(){return new jkB(TNy)});var ADy=function(){this.calledBuild=!1;this.JSC$9601_sanitizerTable=vZg},MlB=function(){ADy.apply(this,arguments)};
_.R(MlB,ADy);MlB.prototype.build=function(){if(this.calledBuild)throw Error("ma");this.calledBuild=!0;return new jkB(this.JSC$9601_sanitizerTable,void 0,void 0,this.JSC$9601_resourceUrlPolicy,this.JSC$9601_navigationUrlPolicy)};var WPy=/[^#]*/;var vZ4={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"},w8y=_.AJ(function(){return jkE()}),
ipm=function(){var H=X8K("IFRAME"),U={};
_.yW(w8y(),function(A){H.sandbox&&H.sandbox.supports&&H.sandbox.supports(A)&&(U[A]=!0)});
return U},X8K=function(H,U){U=U===void 0?document:U;
return U.createElement(String(H).toLowerCase())};var wp;_.b$=function(H,U,A){return Math.min(Math.max(H,U),A)};
wp=function(H,U,A){return H+A*(U-H)};_.X=_.E6.prototype;_.X.clone=function(){return new _.E6(this.x,this.y)};
_.X.equals=function(H){return H instanceof _.E6&&(this==H?!0:this&&H?this.x==H.x&&this.y==H.y:!1)};
_.X.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.X.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.X.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.X.translate=function(H,U){H instanceof _.E6?(this.x+=H.x,this.y+=H.y):(this.x+=Number(H),typeof U==="number"&&(this.y+=U));return this};
_.X.scale=function(H,U){this.x*=H;this.y*=typeof U==="number"?U:H;return this};_.QT=function(H,U){this.width=H;this.height=U};
_.X=_.QT.prototype;_.X.clone=function(){return new _.QT(this.width,this.height)};
_.X.area=function(){return this.width*this.height};
_.X.aspectRatio=function(){return this.width/this.height};
_.X.isEmpty=function(){return!this.area()};
_.X.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.X.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.X.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.X.scale=function(H,U){this.width*=H;this.height*=typeof U==="number"?U:H;return this};var bpg;_.dG={};bpg="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.dG.add=function(H,U,A){if(H!==null&&U in H)throw Error("oa`"+U);H[U]=A};
_.dG.clear=function(H){for(var U in H)delete H[U]};
_.dG.clone=function(H){var U={},A;for(A in H)U[A]=H[A];return U};
_.dG.contains=function(H,U){return uSh(H,U)};
_.dG.containsKey=function(H,U){return H!==null&&U in H};
_.dG.containsValue=uSh;_.dG.create=JDN;_.dG.createImmutableView=function(H){var U=H;Object.isFrozen&&!Object.isFrozen(H)&&(U=Object.create(H),Object.freeze(U));return U};
_.dG.createSet=KPM;_.dG.equals=function(H,U){for(var A in H)if(!(A in U)||H[A]!==U[A])return!1;for(var M in U)if(!(M in H))return!1;return!0};
_.dG.every=function(H,U,A){for(var M in H)if(!U.call(A,H[M],M,H))return!1;return!0};
_.dG.extend=function(H,U){for(var A,M,W=1;W<arguments.length;W++){M=arguments[W];for(A in M)H[A]=M[A];for(var w=0;w<bpg.length;w++)A=bpg[w],Object.prototype.hasOwnProperty.call(M,A)&&(H[A]=M[A])}};
_.dG.filter=function(H,U,A){var M={},W;for(W in H)U.call(A,H[W],W,H)&&(M[W]=H[W]);return M};
_.dG.findKey=Zph;_.dG.findValue=function(H,U,A){return(U=Zph(H,U,A))&&H[U]};
_.dG.forEach=function(H,U,A){for(var M in H)U.call(A,H[M],M,H)};
_.dG.get=function(H,U,A){return H!==null&&U in H?H[U]:A};
_.dG.getAllPropertyNames=function(H,U,A){if(!H)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return Opr(H);for(var M={};H&&(H!==Object.prototype||U)&&(H!==Function.prototype||A);){for(var W=Object.getOwnPropertyNames(H),w=0;w<W.length;w++)M[W[w]]=!0;H=Object.getPrototypeOf(H)}return Opr(M)};
_.dG.getAnyKey=function(H){for(var U in H)return U};
_.dG.getAnyValue=function(H){for(var U in H)return H[U]};
_.dG.getCount=function(H){var U=0,A;for(A in H)U++;return U};
_.dG.getKeys=Opr;_.dG.getSuperClass=function(H){return(H=Object.getPrototypeOf(H.prototype))&&H.constructor};
_.dG.getValueByKeys=function(H,U){var A=_.l7(U),M=A?U:arguments;for(A=A?0:1;A<M.length;A++){if(H==null)return;H=H[M[A]]}return H};
_.dG.getValues=function(H){var U=[],A=0,M;for(M in H)U[A++]=H[M];return U};
_.dG.isEmpty=function(H){for(var U in H)return!1;return!0};
_.dG.isImmutableView=function(H){return!!Object.isFrozen&&Object.isFrozen(H)};
_.dG.map=function(H,U,A){var M={},W;for(W in H)M[W]=U.call(A,H[W],W,H);return M};
_.dG.remove=function(H,U){var A;(A=U in H)&&delete H[U];return A};
_.dG.set=function(H,U,A){H[U]=A};
_.dG.setIfUndefined=function(H,U,A){return U in H?H[U]:H[U]=A};
_.dG.setWithReturnValueIfNotSet=function(H,U,A){if(U in H)return H[U];A=A();return H[U]=A};
_.dG.some=function(H,U,A){for(var M in H)if(U.call(A,H[M],M,H))return!0;return!1};
_.dG.transpose=function(H){var U={},A;for(A in H)U[H[A]]=A;return U};
_.dG.unsafeClone=fDM;var p5=function(H,U){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=H===Ol4&&U||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=dun};
p5.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Opp=function(H){return H instanceof p5&&H.constructor===p5&&H.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===dun?H.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},dun={},Ol4={};
new p5(Ol4,"");var AD,A8,id,uSk,JDw,fDz,uV,olz,PVz,FPr,ud,slK,vh8,RFg,LPr,ElH,muy,glB,aDw,aNF,xup,CVr,tl3,zFH,Xw;AD=function(H){return H?new Xw(_.ZD(H)):oKp||(oKp=new Xw)};
_.E3=function(H,U){return typeof U==="string"?H.getElementById(U):U};
A8=function(H,U){return(U||document).getElementsByTagName(String(H))};
_.Zpk=function(H){return uSk("yt-formatted-string","paper-input-input",H)};
id=function(H,U,A,M){H=M||H;return(U=U&&U!="*"?String(U).toUpperCase():"")||A?H.querySelectorAll(U+(A?"."+A:"")):H.getElementsByTagName("*")};
uSk=function(H,U,A){var M=document,W=H&&H!="*"?String(H).toUpperCase():"";return W||U?(A||M).querySelector(W+(U?"."+U:"")):id(M,H,U,A)[0]||null};
JDw=function(H,U){_.dG.forEach(U,function(A,M){M=="style"?H.style.cssText=A:M=="class"?H.className=A:M=="for"?H.htmlFor=A:fDz.hasOwnProperty(M)?H.setAttribute(fDz[M],A):_.XE(M,"aria-")||_.XE(M,"data-")?H.setAttribute(M,A):H[M]=A})};
fDz={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"};_.VT=function(H){H=(H||window).document;H=H.compatMode=="CSS1Compat"?H.documentElement:H.body;return new _.QT(H.clientWidth,H.clientHeight)};
_.KPz=function(H){var U=_.bd(H);H=H.defaultView;return new _.E6((H==null?void 0:H.pageXOffset)||U.scrollLeft,(H==null?void 0:H.pageYOffset)||U.scrollTop)};
_.bd=function(H){return H.scrollingElement?H.scrollingElement:_.kA||H.compatMode!="CSS1Compat"?H.body||H.documentElement:H.documentElement};
uV=function(H){return H?H.defaultView:window};
_.dp=function(H,U,A){return olz(document,arguments)};
olz=function(H,U){var A=U[1],M=FPr(H,String(U[0]));A&&(typeof A==="string"?M.className=A:Array.isArray(A)?M.className=A.join(" "):JDw(M,A));U.length>2&&PVz(H,M,U,2);return M};
PVz=function(H,U,A,M){function W(O){O&&U.appendChild(typeof O==="string"?H.createTextNode(O):O)}
for(;M<A.length;M++){var w=A[M];if(!_.l7(w)||_.ht(w)&&w.nodeType>0)W(w);else{a:{if(w&&typeof w.length=="number"){if(_.ht(w)){var d=typeof w.item=="function"||typeof w.item=="string";break a}if(typeof w==="function"){d=typeof w.item=="function";break a}}d=!1}_.yW(d?_.$c(w):w,W)}}};
_.Q9=function(H){return FPr(document,H)};
FPr=function(H,U){U=String(U);H.contentType==="application/xhtml+xml"&&(U=U.toLowerCase());return H.createElement(U)};
_.OR=function(){return document.createTextNode("\n")};
ud=function(H){if(H.nodeType!=1)return!1;switch(H.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};
slK=function(H,U){PVz(_.ZD(H),H,arguments,1)};
_.Zn=function(H){for(var U;U=H.firstChild;)H.removeChild(U)};
_.ft=function(H,U){U.parentNode&&U.parentNode.insertBefore(H,U)};
_.JJ=function(H,U){U.parentNode&&U.parentNode.insertBefore(H,U.nextSibling)};
_.U5=function(H){return H&&H.parentNode?H.parentNode.removeChild(H):null};
_.nl3=function(H,U){var A=U.parentNode;A&&A.replaceChild(H,U)};
_.NGz=function(H){var U,A=H.parentNode;if(A&&A.nodeType!=11)if(H.removeNode)H.removeNode(!1);else{for(;U=H.firstChild;)A.insertBefore(U,H);_.U5(H)}};
_.Kt=function(H){return H.children!=void 0?H.children:Array.prototype.filter.call(H.childNodes,function(U){return U.nodeType==1})};
_.p8z=function(H){return H.nextElementSibling!==void 0?H.nextElementSibling:_.SA3(H.nextSibling,!0)};
_.SA3=function(H,U){for(;H&&H.nodeType!=1;)H=U?H.nextSibling:H.previousSibling;return H};
_.YR=function(H){return _.ht(H)&&H.nodeType==1};
_.t8=function(H,U){if(!H||!U)return!1;if(H.contains&&U.nodeType==1)return H==U||H.contains(U);if(typeof H.compareDocumentPosition!="undefined")return H==U||!!(H.compareDocumentPosition(U)&16);for(;U&&H!=U;)U=U.parentNode;return U==H};
vh8=function(H,U){if(H==U)return 0;if(H.compareDocumentPosition)return H.compareDocumentPosition(U)&2?1:-1;if("sourceIndex"in H||H.parentNode&&"sourceIndex"in H.parentNode){var A=H.nodeType==1,M=U.nodeType==1;if(A&&M)return H.sourceIndex-U.sourceIndex;var W=H.parentNode,w=U.parentNode;return W==w?LPr(H,U):!A&&_.t8(W,U)?-1*RFg(H,U):!M&&_.t8(w,H)?RFg(U,H):(A?H.sourceIndex:W.sourceIndex)-(M?U.sourceIndex:w.sourceIndex)}M=_.ZD(H);A=M.createRange();A.selectNode(H);A.collapse(!0);H=M.createRange();H.selectNode(U);
H.collapse(!0);return A.compareBoundaryPoints(_.Mr.Range.START_TO_END,H)};
RFg=function(H,U){var A=H.parentNode;if(A==U)return-1;for(;U.parentNode!=A;)U=U.parentNode;return LPr(U,H)};
LPr=function(H,U){for(;U=U.previousSibling;)if(U==H)return-1;return 1};
ElH=function(H){var U,A=arguments.length;if(!A)return null;if(A==1)return arguments[0];var M=[],W=Infinity;for(U=0;U<A;U++){for(var w=[],d=arguments[U];d;)w.unshift(d),d=d.parentNode;M.push(w);W=Math.min(W,w.length)}w=null;for(U=0;U<W;U++){d=M[0][U];for(var O=1;O<A;O++)if(d!=M[O][U])return w;w=d}return w};
_.ZD=function(H){return H.nodeType==9?H:H.ownerDocument||H.document};
muy=function(H){return H.contentDocument||H.contentWindow.document};
_.ox=function(H,U){if("textContent"in H)H.textContent=U;else if(H.nodeType==3)H.data=String(U);else if(H.firstChild&&H.firstChild.nodeType==3){for(;H.lastChild!=H.firstChild;)H.removeChild(H.lastChild);H.firstChild.data=String(U)}else _.Zn(H),H.appendChild(_.ZD(H).createTextNode(String(U)))};
glB={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};aDw={IMG:" ",BR:"\n"};aNF=function(H){var U;H.tagName=="A"&&H.hasAttribute("href")||H.tagName=="INPUT"||H.tagName=="TEXTAREA"||H.tagName=="SELECT"||H.tagName=="BUTTON"?U=!H.disabled&&(!H.hasAttribute("tabindex")||xup(H)):U=H.hasAttribute("tabindex")&&xup(H);return U};
xup=function(H){H=H.tabIndex;return typeof H==="number"&&H>=0&&H<32768};
CVr=function(H){var U=[];zFH(H,U,!0);H=U.join("");H=H.replace(/ \xAD /g," ").replace(/\xAD/g,"");H=H.replace(/\u200B/g,"");H=H.replace(/ +/g," ");H!=" "&&(H=H.replace(/^\s*/,""));return H};
tl3=function(H){var U=[];zFH(H,U,!1);return U.join("")};
zFH=function(H,U,A){if(!(H.nodeName in glB))if(H.nodeType==3)A?U.push(String(H.nodeValue).replace(/(\r\n|\r|\n)/g,"")):U.push(H.nodeValue);else if(H.nodeName in aDw)U.push(aDw[H.nodeName]);else for(H=H.firstChild;H;)zFH(H,U,A),H=H.nextSibling};
_.cDz=function(H,U,A){if(!U&&!A)return null;var M=U?String(U).toUpperCase():null;return _.Kp(H,function(W){return(!M||W.nodeName==M)&&(!A||typeof W.className==="string"&&_.y0(W.className.split(/\s+/),A))},!0)};
_.Kp=function(H,U,A){H&&!A&&(H=H.parentNode);for(A=0;H;){if(U(H))return H;H=H.parentNode;A++}return null};
Xw=function(H){this.JSC$9629_document_=H||_.Mr.document||document};
_.X=Xw.prototype;_.X.getElement=function(H){return _.E3(this.JSC$9629_document_,H)};
_.X.$=Xw.prototype.getElement;_.X.getElementsByTagName=function(H,U){return(U||this.JSC$9629_document_).getElementsByTagName(String(H))};
_.X.getElementsByTagNameAndClass=function(H,U,A){return id(this.JSC$9629_document_,H,U,A)};
_.X.$$=Xw.prototype.getElementsByTagNameAndClass;_.X.setProperties=JDw;_.X.JSC$9631_createDom=function(H,U,A){return olz(this.JSC$9629_document_,arguments)};
_.X.createElement=function(H){return FPr(this.JSC$9629_document_,H)};
_.X.createTextNode=function(H){return this.JSC$9629_document_.createTextNode(String(H))};
_.X.getWindow=function(){return this.JSC$9629_document_.defaultView};
var H8=function(H){return _.KPz(H.JSC$9629_document_)};
_.X=Xw.prototype;_.X.appendChild=function(H,U){H.appendChild(U)};
_.X.append=slK;_.X.canHaveChildren=ud;_.X.removeNode=_.U5;_.X.getChildren=_.Kt;_.X.contains=_.t8;_.X.isFocusable=aNF;_.X=mS.prototype;_.X.getWidth=function(){return this.right-this.left};
_.X.getHeight=function(){return this.bottom-this.top};
_.X.clone=function(){return new mS(this.top,this.right,this.bottom,this.left)};
_.X.contains=function(H){return this&&H?H instanceof mS?H.left>=this.left&&H.right<=this.right&&H.top>=this.top&&H.bottom<=this.bottom:H.x>=this.left&&H.x<=this.right&&H.y>=this.top&&H.y<=this.bottom:!1};
_.X.expand=function(H,U,A,M){_.ht(H)?(this.top-=H.top,this.right+=H.right,this.bottom+=H.bottom,this.left-=H.left):(this.top-=H,this.right+=Number(U),this.bottom+=Number(A),this.left-=Number(M));return this};
_.X.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};
_.X.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};
_.X.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};
_.X.translate=function(H,U){H instanceof _.E6?(this.left+=H.x,this.right+=H.x,this.top+=H.y,this.bottom+=H.y):(this.left+=H,this.right+=H,typeof U==="number"&&(this.top+=U,this.bottom+=U));return this};
_.X.scale=function(H,U){U=typeof U==="number"?U:H;this.left*=H;this.right*=H;this.top*=U;this.bottom*=U;return this};_.X=gN.prototype;_.X.clone=function(){return new gN(this.left,this.top,this.width,this.height)};
_.X.boundingRect=function(H){var U=Math.max(this.left+this.width,H.left+H.width),A=Math.max(this.top+this.height,H.top+H.height);this.left=Math.min(this.left,H.left);this.top=Math.min(this.top,H.top);this.width=U-this.left;this.height=A-this.top};
_.X.contains=function(H){return H instanceof _.E6?H.x>=this.left&&H.x<=this.left+this.width&&H.y>=this.top&&H.y<=this.top+this.height:this.left<=H.left&&this.left+this.width>=H.left+H.width&&this.top<=H.top&&this.top+this.height>=H.top+H.height};
_.X.distance=function(H){var U=H.x<this.left?this.left-H.x:Math.max(H.x-(this.left+this.width),0);H=H.y<this.top?this.top-H.y:Math.max(H.y-(this.top+this.height),0);return Math.sqrt(U*U+H*H)};
_.X.getSize=function(){return new _.QT(this.width,this.height)};
_.X.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};
_.X.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};
_.X.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};
_.X.translate=function(H,U){H instanceof _.E6?(this.left+=H.x,this.top+=H.y):(this.left+=H,typeof U==="number"&&(this.top+=U));return this};
_.X.scale=function(H,U){U=typeof U==="number"?U:H;this.left*=H;this.width*=H;this.top*=U;this.height*=U;return this};var BGg,sR,Aac,PQ,$uB,DuB,lDn,Tp8,Ggg,qAk;_.Fw=function(H,U,A){if(typeof U==="string")(U=_.yDk(H,U))&&(H.style[U]=A);else for(var M in U){A=H;var W=U[M],w=_.yDk(A,M);w&&(A.style[w]=W)}};
BGg={};_.yDk=function(H,U){var A=BGg[U];if(!A){var M=_.Y8(U);A=M;H.style[M]===void 0&&(M=(_.kA?"Webkit":_.va?"Moz":null)+uIB(M),H.style[M]!==void 0&&(A=M));BGg[U]=A}return A};
_.cq=function(H,U){var A=_.ZD(H);return A.defaultView&&A.defaultView.getComputedStyle&&(H=A.defaultView.getComputedStyle(H,null))?H[U]||H.getPropertyValue(U)||"":""};
_.CW=function(H,U){return _.cq(H,U)||(H.currentStyle?H.currentStyle[U]:null)||H.style&&H.style[U]};
_.rDr=function(H){return _.CW(H,"position")};
sR=function(H,U,A){if(U instanceof _.E6){var M=U.x;U=U.y}else M=U,U=A;H.style.left=PQ(M,!1);H.style.top=PQ(U,!1)};
Aac=function(H){try{return H.getBoundingClientRect()}catch(U){return{left:0,top:0,right:0,bottom:0}}};
_.fp=function(H){var U=_.ZD(H),A=new _.E6(0,0);if(H==(U?_.ZD(U):document).documentElement)return A;H=Aac(H);U=H8(AD(U));A.x=H.left+U.x;A.y=H.top+U.y;return A};
_.eFw=function(H,U,A){if(U instanceof _.QT)A=U.height,U=U.width;else if(A==void 0)throw Error("pa");H.style.width=PQ(U,!0);H.style.height=PQ(A,!0)};
PQ=function(H,U){typeof H=="number"&&(H=(U?Math.round(H):H)+"px");return H};
$uB=function(H){return DuB(H)};
DuB=function(H){var U=lDn;if(_.CW(H,"display")!="none")return U(H);var A=H.style,M=A.display,W=A.visibility,w=A.position;A.visibility="hidden";A.position="absolute";A.display="inline";H=U(H);A.display=M;A.position=w;A.visibility=W;return H};
lDn=function(H){var U=H.offsetWidth,A=H.offsetHeight,M=_.kA&&!U&&!A;return(U===void 0||M)&&H.getBoundingClientRect?(H=Aac(H),new _.QT(H.right-H.left,H.bottom-H.top)):new _.QT(U,A)};
Tp8=function(H){var U=_.fp(H);H=DuB(H);return new gN(U.x,U.y,H.width,H.height)};
Ggg=function(H,U){H=H.style;"opacity"in H?H.opacity=U:"MozOpacity"in H?H.MozOpacity=U:"filter"in H&&(H.filter=U===""?"":"alpha(opacity="+Number(U)*100+")")};
_.ev=function(H,U){H.style.display=U?"":"none"};
_.YA3=function(H){return"rtl"==_.CW(H,"direction")};
qAk=function(H){var U=_.cq(H,"marginLeft"),A=_.cq(H,"marginRight"),M=_.cq(H,"marginTop");H=_.cq(H,"marginBottom");return new mS(parseFloat(M),parseFloat(A),parseFloat(H),parseFloat(U))};
_.hFh=function(H){var U=_.cq(H,"borderLeftWidth"),A=_.cq(H,"borderRightWidth"),M=_.cq(H,"borderTopWidth");H=_.cq(H,"borderBottomWidth");return new mS(parseFloat(M),parseFloat(A),parseFloat(H),parseFloat(U))};var nt=function(H){this.context=H};
nt.prototype.isSupported=function(H){return(H==null?0:H.attributionEnabled)||(H==null?void 0:H.beaconMethod)==="POST"||(H==null?0:H.customHeaders)||(H==null?0:H.customBody)||(H==null?0:H.keepAlive)?!1:!VV(this.context)};
nt.prototype.ping=function(){var H=this;return lL(_.QY.apply(0,arguments).map(function(U){try{var A=H.context.global,M=!1;M=M===void 0?!1:M;A.google_image_requests||(A.google_image_requests=[]);var W=X8K("IMG",A.document);M&&(W.attributionSrc="");W.src=U;A.google_image_requests.push(W);return!0}catch(w){return!1}}).every(function(U){return U}))};
nt.prototype.pingWithHeadersAndBody=function(H,U,A){this.ping.apply(this,_.vI(_.QY.apply(3,arguments)))};var kg2=function(H){this.context=H};
kg2.prototype.isSupported=function(H){return vlm&&!VV(this.context)&&olM(this.context)!==void 0&&!(H==null?0:H.attributionEnabled)&&(H==null?void 0:H.beaconMethod)!=="POST"&&!(H==null?0:H.customHeaders)&&!(H==null?0:H.customBody)};
kg2.prototype.makeBeacon=function(H,U){if(!this.isSupported(U))throw new Tb;return new Nb(this.context,H)};
var vlm=!1,Nb=function(H,U){this.context=H;this.JSC$9650_urlWithoutToken=U;H=olM(this.context);if(H===void 0)throw Error();this.wrappedBeacon=new H(TGB(this),{})},TGB=function(H){H=H.JSC$9650_urlWithoutToken;
return(H.slice(-1)[0]==="&"?H:H+"&")+"pbapi=1"};
Nb.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Nb.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Nb.prototype.setHeader=function(){};
_.D5.Object.defineProperties(Nb.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9650_urlWithoutToken},
set:function(H){this.JSC$9650_urlWithoutToken=H;this.wrappedBeacon.setURL(TGB(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(H){if(H!=="GET")throw new Tb;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var jlk=function(H){this.context=H};
jlk.prototype.isSupported=function(H){if((H==null?0:H.attributionEnabled)||(H==null?void 0:H.beaconMethod)==="GET"||(H==null?0:H.customHeaders)||(H==null?0:H.customBody)||(H==null?0:H.keepAlive))return!1;var U;return!VV(this.context)&&((U=this.context.global.navigator)==null?void 0:U.sendBeacon)!==void 0};
jlk.prototype.ping=function(){var H=this;return lL(_.QY.apply(0,arguments).map(function(U){var A;return(A=H.context.global.navigator)==null?void 0:A.sendBeacon(U)}).every(function(U){return U}))};
jlk.prototype.pingWithHeadersAndBody=function(H,U,A){this.ping.apply(this,_.vI(_.QY.apply(3,arguments)))};var cL=function(H){this.value=H},EA=function(H,U){return lL(H.value).pipe(zZ(U))},al=new cL(!1),JrM=new cL(!0);var ol=function(H){this.value=H;this.releasedSubject=new ak};
ol.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.D5.Object.defineProperties(ol.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9663_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var aDN=["FRAME","IMG","IFRAME"],p8M=/^[01](px)?$/,glE=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},mu_=function(){var H=new glE;
H.crossDomainLoadedDefault=!0;H.pendingImagesBlockLoad=!0;return H};var IDB=function(H,U){var A=BG4(H);if(A)if(A.onCreativeLoad)A.onCreativeLoad(U);else{var M=U?[U]:[],W=function(w){for(var d=0;d<M.length;++d)try{M[d](1,w)}catch(O){}M={push:function(O){O(1,w)}}};
A.onCreativeLoad=function(w){M.push(w)};
A.setAttribute("data-creative-load-listener","");A.addEventListener("creativeLoad",function(w){W(w.detail)});
_.Mr.addEventListener("message",function(w){yDh(A,W,w)})}};var S$=function(H,U){var A=this;this.global=H;this.parentContext=U;this.JSC$9674_onVisibilityChange=this.document?U6(lL(!0),Vb(this.document,"visibilitychange")).pipe(wN(this.parentContext.performanceMonitor,748),ks(function(){return A.getVisibilityState()}),uF()):lL("visible");
this.document?Vb(this.document,"DOMContentLoaded").pipe(wN(this.parentContext.performanceMonitor,739),O6(1)):lL(NGM("DOMContentLoaded"))},fMc=function(H){return H.document!==null&&H.document.visibilityState!==void 0};
S$.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
S$.prototype.querySelector=function(H){return this.document?this.document.querySelector(H):null};
S$.prototype.querySelectorAll=function(H){return this.document?_.$c(this.document.querySelectorAll(H)):[]};
S$.prototype.elementFromPoint=function(H,U){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;H=this.document.elementFromPoint(H,U);return H===null?null:new ol(H)};
var Ar8=function(H,U,A){A=A===void 0?!1:A;if(U.ref===void 0||!H.document)return lL(U).pipe(wN(H.parentContext.performanceMonitor,749));var M=new KF(1),W=function(){M.next(U)};
A||IDB(U.ref,W);xur(U.ref,W);return M.pipe(wN(H.parentContext.performanceMonitor,749),O6(1))};
_.D5.Object.defineProperties(S$.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return IUM(this.global,"document")?this.global.document||null:null}}});var rDF=_.NP(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),eFN=_.NP(["./reach_worklet.js"]),DuE=_.NP(["./reach_worklet.js"]),Qlz=_.NP(["./reach_worklet.html"]),Vlw=_.NP(["./reach_worklet.js"]),HWk=_.NP(["./reach_worklet.js"]);_.LF(Qlz);_.LF(Vlw);_.LF(HWk);var np={left:0,top:0,width:0,height:0};var qAh=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),A8N=/#|$/,MvV=/[?&]($|#)/;var NOc=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(NOc,_.fN);var nRh=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(nRh,_.fN);var J80=function(H,U){return _.Mu(H,2,U)},sc0=function(H,U){return _.Mu(H,3,U)};
nRh.prototype.getModel=function(){return _.Mn(this,4)};
var oRh=function(H,U){return _.Mu(H,4,U)},fTh=function(H,U){return _.Mu(H,5,U)},P9N=function(H,U){return _.Mu(H,9,U)},ZWV=function(H,U){return jd(H,10,U)},uG8=function(H,U){return _.Gg(H,11,U)},KKh=function(H,U){return _.Mu(H,1,U)},FK_=function(H,U){return _.Gg(H,7,U)};var dgM="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var gG=function(H,U,A,M){H=H===void 0?window:H;U=U===void 0?null:U;A=A===void 0?new xow:A;M=M===void 0?$uE():M;EZh.call(this);var W=this;this.global=H;this.debugChannel=U;this.performanceMonitor=A;this.onPageHide=nZE(function(){return Vb(W.global,"pagehide")}).pipe(wN(this.performanceMonitor,941));
this.onLoad=nZE(function(){return Vb(W.global,"load")}).pipe(wN(this.performanceMonitor,738),O6(1));
this.onResize=nZE(function(){return Vb(W.global,"resize")}).pipe(wN(this.performanceMonitor,741));
this.onMessage=nZE(function(){return Vb(W.global,"message")}).pipe(wN(this.performanceMonitor,740));
this.document=new S$(this.global,this);this.timeProvider=new CFr(new czn(this.intrinsicFunctionNamespace,this.performanceMonitor),new tsg(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new aUg(new BN2(this),new kg2(this),new jm(this,new D2r(this)),new jm(this,new jlk(this)),new jm(this,new nt(this)))};
_.R(gG,EZh);gG.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(H){return H}};
var VV=function(H){var U=H.global;return!!H.global.HTMLFencedFrameElement&&!!U.fence&&typeof U.fence.reportEvent==="function"};
_.X=gG.prototype;_.X.reportFencedFrameEvent=function(H){VV(this)&&this.global.fence.reportEvent(H)};
_.X.getOnBackgrounded=function(){return this.onPageHide.pipe(wN(this.performanceMonitor,942),zZ(this.queue),ks(function(){}))};
_.X.postMessage=function(H,U,A){A=A===void 0?[]:A;this.global.postMessage(H,U,A)};
_.X.getWidth=function(){return Qk8(this.global)?this.global.width:0};
_.X.getHeight=function(){return Qk8(this.global)?this.global.height:0};
_.X.isMobile=function(){return Vs_()||Hpt()};
var FS=function(H,U){try{var A=XJt(U,H.global,H.isMobile());return{left:A.left,top:A.top,width:A.getWidth(),height:A.getHeight()}}catch(M){return np}};
gG.prototype.validate=function(){var H=this.beaconFactory.isSupported()||VV(this);return this.global&&this.timeProvider.available()&&H};
var PVM=function(H){return(H=pJ8(H.global))?xs(H):null};
_.D5.Object.defineProperties(gG.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(H){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(H){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!Qk8(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}}});_.UgK=!_.Bu&&!_.P7M();var KTr=function(H){return H};var FTh=function(H){return H.pipe(Az(function(U){var A=U.endOfSessionReason;var M;return((M=U.viewable)==null?void 0:M.extrapolateToNow().value)||A!=void 0}),O6(1),bF())};var xgF=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},z8c=function(H){var U=H.sequenceNumber.toString(10).padStart(2,"0");
U=""+H.startTime+U;H.sequenceNumber<99&&H.sequenceNumber++;return U};var ZAE=Er(nF(function(H){return H.endOfSessionReason===void 0}),ks(function(H){return Object.assign({},H,{timestamps:wG(H)})}),Az(function(H){var U=H.viewable;
H=H.timestamps;var A;return(A=U==null?void 0:U.extrapolateUsingTimestampMap(H).value)!=null?A:!1}),ks(function(H){var U=H.beaconFactory;
var A=H.timestampedExposureHistory;var M=H.timeOnScreen;var W=H.binaryContext;H=H.timestamps;if(U===void 0||A===void 0||M===void 0||W===void 0)return!1;if(M.extrapolateUsingTimestampMap(H).value.every(function(w){return w>=0}))return!0;
A=A.map(function(w){return w.timestamp+":"+w.value}).join(",");
M=C97({bin:W,tos:M},H);U.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+M+("&eh="+A)).sendNow();return!0}),nF(function(H){return!H}),bF());var c8V=function(H){return{id:H.pingId,mcvt:H.maxConsecutiveViewTime,p:H.creativePosition,asp:H.adSpeedPosition,tm:H.totalMeasurementTime,tu:H.totalUnviewedTime,mtos:H.maxTimeOnScreen,tos:H.timeOnScreen,v:H.binaryVersion,bin:H.binaryContext,avms:H.measurementStrategy,bs:H.browserSize,mc:H.maximumExposure,"if":H.crossDomainIframeState,vu:H.delayedImpressionJsState,app:H.inApp,mse:H.mraidError,mtop:H.mraidSituation,itpl:H.injectedTemplateId,adk:H.adKey,exk:H.awbidKey,rs:H.requestSource,la:H.isLargeAd,
cr:H.isContentRecommendationAd,uach:H.userAgentClientHints,vs:H.viewState,r:H.reasonCode,pay:H.hasCpmavUrl,co:H.clientPingOrderCounter,rst:H.adRenderStartTime,rpt:H.adRenderPeriodTime,isd:H.initialScrollDepth,lsd:H.loadedScrollDepth,context:H.errorContext,msg:H.errorMessage,stack:H.errorStack,name:H.errorName,ec:H.hasElementChanged,sfr:H.strategyFailureReasons,met:H.creativeSearchResult,wmsd:H.webMeasurementStartDiagnostic,pv:H.pageVisible,epv:H.eosPageVisible,pbe:H.inStatefulBeaconExperiment,fle:H.inFetchLaterBeaconExperiment,
vae:H.inViewableAttributionExperiment,spb:H.supportsPendingBeacon,sfl:H.supportsFetchLater,ffslot:H.isFencedFrameSlotTurtlex,reach:H.sharedStorageReachMode,io2:H.v2VisibilityBitVector,rxdbg:H.rxDebugger,omida:H.omidAppId,omidp:H.omidPartner,omidpv:H.omidPartnerVersion,omidor:H.omidOcclusionReasons,omidv:H.omidVersion,omids:H.omidSessionType,omidam:H.omidAccessMode,omidct:H.omidCreativeType,omidia:H.omidInApp,omiddc:H.omidDeviceCategory,omidlat:H.omidLastActivity,omiddit:H.omidDeviceIdleTime,qid:H.errorEscapedQueryId}};var oVc=function(H){var U=[];return H.pipe(ks(function(A){var M=A.beaconFactory,W=A.fetchBeaconFactory,w=A.timeOnScreen,d=A.timeOnScreenUrlPrefixes,O=A.payloadMapper,f=A.timeOnScreenPingId,J=A.timeOnScreenReason,F=A.urlSerializer,P=A.viewable,n=A.hasImpressionFired,N=A.inStatefulBeaconExperiment,L=A.supportsPendingBeacon,m=A.supportsFetchLater,z=A.turtlexReportEventData;if(!A.geometryMeasurable||!n||A.maxTimeOnScreen===void 0||w===void 0||d===void 0||O===void 0||f===void 0||F===void 0||M===void 0)return!1;
if(A.isTurtlex){if(J===void 0)return!1;d=A.reportFencedFrameEvent;if(!d)return!1;d({eventType:"active-view-time-on-screen",eventData:z!=null?z:"",destination:["buyer"]});return!0}if(!(N||m||J))return!1;z=wG(A);var c;P=(c=P==null?void 0:P.extrapolateUsingTimestampMap(z).value)!=null?c:!1;c=F(Object.assign({},A,{pingId:f,viewState:P?4:3,reasonCode:J!=null?J:"u",payloadMapper:O,urlPrefixes:d}),z);if(N){for(;U.length>d.length;)A=void 0,(A=U.shift())==null||A.deactivate();c.forEach(function(v,Y){Y>=U.length?
U.push(M.makeBeacon(v)):U[Y].url=v});
return L&&W&&J!==void 0?(c.forEach(function(v){W.makeBeacon(v).sendNow()}),!0):J!==void 0}if(L&&W&&J!==void 0)return c.forEach(function(v){W.makeBeacon(v).sendNow()}),!0;
if(m&&W){for(;U.length>d.length;)L=void 0,(L=U.shift())==null||L.deactivate();var C=F(Object.assign({},A,{pingId:f,viewState:P?4:3,reasonCode:J!=null?J:"u",payloadMapper:O,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),z)[0];c.forEach(function(v,Y){Y>=U.length?U.push(M.makeBeacon(C,{endOfSession:!0})):U[Y].url=C});
return J!==void 0?(c.forEach(function(v){W.makeBeacon(v).sendNow()}),!0):J!==void 0}return J!==void 0?(c.forEach(function(v){M.makeBeacon(v).sendNow()}),!0):!1}),nF(function(A){return!A}),bF())};var PxV=Er(Az(function(H){return H.immediateUrlPrefixes!==void 0&&H.payloadMapper!==void 0&&H.urlSerializer!==void 0&&H.inferredPingId!==void 0&&H.beaconFactory!==void 0}),Az(function(H){return Grc(H)!==null}),$g_(function(H){return H.activeViewUnmeasurableEvent},function(H){return H.emit}),ks(function(H){if(H.isTurtlex){var U=H.reportFencedFrameEvent;
if(U){var A;U({eventType:"active-view-unmeasurable",eventData:(A=H.turtlexReportEventData)!=null?A:"",destination:["buyer"]})}}else{A=void 0;var M=Grc(H);if(M==="x"){var W,w=(W=H.geometricMeasurementErrors)!=null?W:H.contextValidationErrors;w&&(U=w.stack,A=w.message)}H.urlSerializer(Object.assign({},H,{urlPrefixes:H.immediateUrlPrefixes,payloadMapper:H.payloadMapper,pingId:H.inferredPingId,viewState:2,reasonCode:M,errorMessage:A,errorStack:U}),wG(H)).forEach(function(d){H.beaconFactory.makeBeacon(d).sendNow()})}}),
O6(1),bF());var Y5F=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var uQE=Er(Az(function(H){return H.payloadMapper!==void 0&&H.immediateUrlPrefixes!==void 0&&H.urlSerializer!==void 0&&H.inferredPingId!==void 0&&H.beaconFactory!==void 0}),ks(function(H){return Object.assign({},H,{timestamps:wG(H)})}),Az(function(H){var U=H.viewable;
var A=H.hasImpressionFired;H=H.timestamps;var M;return!!A&&((M=U==null?void 0:U.extrapolateUsingTimestampMap(H).value)!=null?M:!1)}),$g_(function(H){return H.activeViewViewableEvent},function(H){return H.emit}),ks(function(H){var U=H.beaconFactory,A=H.turtlexReportEventData;
if(H.isTurtlex){var M=H.reportFencedFrameEvent;if(!M)return!1;M({eventType:"active-view-viewable",eventData:A!=null?A:"",destination:["buyer"]});return!0}A=H.urlSerializer(Object.assign({},H,{urlPrefixes:H.immediateUrlPrefixes,payloadMapper:H.payloadMapper,pingId:H.inferredPingId,viewState:4,reasonCode:"v"}),H.timestamps);(M=H.cpmavUrls)&&M.length>0&&H.viewUrlSerializer&&H.viewUrlSerializer(M,H).forEach(function(W){U.makeBeacon(W).sendNow()});
(M=H.viewableRelayUrls)&&M.length>0&&H.viewUrlSerializer&&H.viewUrlSerializer(M,H).forEach(function(W){U.makeBeacon(W).sendNow()});
A.forEach(function(W){U.makeBeacon(W,{attributionEnabled:H.isViewableAttributionEnabled}).sendNow()});
return!0}),nF(function(H){return!H}),bF());var cah=ks(function(H){return[H.value.topWindowViewportExternalGeometry.width,H.value.topWindowViewportExternalGeometry.height]});var P8=function(H,U){this.callback=H;this.options=U;this.intersectionObserverV2=this.intersectionObserverV1=null},opN=function(H,U){U?H.intersectionObserverV2||(U=Object.assign({},H.options,{delay:100,
trackVisibility:!0}),H.intersectionObserverV2=new IntersectionObserver(H.callback,U)):H.intersectionObserverV1||(H.intersectionObserverV1=new IntersectionObserver(H.callback,H.options))},A8w=function(H,U){H=U?H.intersectionObserverV2:H.intersectionObserverV1;
if(!H)throw new m2p;return H};
P8.prototype.observe=function(H,U){A8w(this,H).observe(U)};
P8.prototype.unobserve=function(H,U){A8w(this,H).unobserve(U)};
P8.prototype.disconnect=function(H){A8w(this,H).disconnect()};
P8.prototype.takeRecords=function(H){return A8w(this,H).takeRecords()};var W4N={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:np,topWindowViewportExternalGeometry:np,measurementRequests:new ak,elementGeometrySourceName:"ns",elementGeometry:np,intersectionGeometry:np,viewportLocalAppOffset:{x:0,y:0}};var peN=Nu(Er(ks(function(H){var U;return(U=H.exposureOverride)!=null?U:PBV(H)}),ks(function(H){return isFinite(H)?H:0}))),xfV=Nu(Er(ks(function(H){var U;
return(U=H.exposureOverride)!=null?U:PBV(H)}),ks(function(H){return isFinite(H)?H:-1})));var pt=function(H,U){this.a=H;this.b=U;if(H.clock.timeline!==U.clock.timeline)throw Error();};
pt.prototype.equivalentTo=function(H){return H instanceof pt?this.a.equivalentTo(H.a)&&this.b.equivalentTo(H.b):!1};
pt.prototype.extrapolateToTime=function(H){var U=this.a.extrapolateToTime(H).value,A=this.b.extrapolateToTime(H).value;return{timestamp:H,value:[U,A]}};
_.D5.Object.defineProperties(pt.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 H=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),U=this.a.lastMeasurement.timestamp.equals(H)?this.a.lastMeasurement.value:this.a.extrapolateToTime(H).value,A=this.b.lastMeasurement.timestamp.equals(H)?this.b.lastMeasurement.value:this.b.extrapolateToTime(H).value;return{timestamp:H,value:[U,A]}}}});var Lt=function(H,U){this.input=H;this.mapFunction=U;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Lt.prototype.equivalentTo=function(H){return H instanceof Lt?this.input.equivalentTo(H.input)&&this.mapFunction===H.mapFunction:!1};
Lt.prototype.extrapolateToTime=function(H){H=this.input.extrapolateToTime(H);return{timestamp:H.timestamp,value:this.mapFunction(H.value)}};
_.D5.Object.defineProperties(Lt.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Rx=function(){};
Rx.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Rx.prototype.extrapolateUsingTimestampMap=function(H){var U=this.clock.timeline,A,M=(A=H.get(U))!=null?A:this.clock.now();H.set(U,M);return this.extrapolateToTime(M)};
Rx.prototype.map=function(H){return new Mvw(this,H)};
Rx.prototype.joinWith=function(H){return new WKz(this,H)};
var WKz=function(){pt.apply(this,arguments);this.map=Rx.prototype.map;this.joinWith=Rx.prototype.joinWith;this.extrapolateToNow=Rx.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Rx.prototype.extrapolateUsingTimestampMap};
_.R(WKz,pt);var Mvw=function(){Lt.apply(this,arguments);this.map=Rx.prototype.map;this.joinWith=Rx.prototype.joinWith;this.extrapolateToNow=Rx.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Rx.prototype.extrapolateUsingTimestampMap};
_.R(Mvw,Lt);var pp=function(H,U){this.lastMeasurement=U;this.extrapolateToNow=Rx.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Rx.prototype.extrapolateUsingTimestampMap;this.map=Rx.prototype.map;this.joinWith=Rx.prototype.joinWith;this.clock=H};
pp.prototype.equivalentTo=function(H){return H.active};
pp.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.D5.Object.defineProperties(pp.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var tME=ks(function(H){if(H.value.viewportGeometrySourceName==="omid"){if(H.value.elementGeometrySourceName==="nio")return"omio";if(H.value.elementGeometrySourceName==="geo")return"omgeo"}return H.value.elementGeometrySourceName==="geo"||H.value.elementGeometrySourceName==="nio"?H.value.viewportGeometrySourceName:H.value.elementGeometrySourceName});var npc=Er(Az(function(H){return!isNaN(H)}),FI(function(H,U){return isNaN(H)?U:Math.min(H,U)},NaN),uF());var L4F=Nu(Er(ks(function(H){return H.intersectionGeometry.width*H.intersectionGeometry.height/(H.exposedViewportLocalGeometry.width*H.exposedViewportLocalGeometry.height)}),ks(function(H){return isFinite(H)?Math.min(1,H):0})));var CBV=Er(Nu(ks(function(H){H=H.exposureOverride?H.elementGeometry.width*H.elementGeometry.height*H.exposureOverride/(H.topWindowViewportExternalGeometry.width*H.topWindowViewportExternalGeometry.height):H.intersectionGeometry.width*H.intersectionGeometry.height/(H.topWindowViewportExternalGeometry.width*H.topWindowViewportExternalGeometry.height);return isFinite(H)?H:0})));var raN=function(H,U){var A=this;this.timeProvider=H;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=U.pipe(uF()).subscribe(function(M){DfV(A);A.measurementRequestObserver=M})},$ft=function(H,U){DfV(H);
H.lastMeasurementRequest=H.timeProvider.setTimeout(function(){var A;return void((A=H.measurementRequestObserver)==null?void 0:A.next())},U)},DfV=function(H){H.lastMeasurementRequest!==null&&H.timeProvider.clearTimeout(H.lastMeasurementRequest);
H.lastMeasurementRequest=null};
raN.prototype.dispose=function(){DfV(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var wJn=function(){};var bA_=function(H,U){this.context=H;this.strategies=U};
_.R(bA_,wJn);bA_.prototype.buildGeometrySource=function(H,U){var A=this.strategies.map(function(w){return w.buildGeometrySource(H,U)}),M=hkc(A.map(function(w){return w.geometrySource})),W=M.capturedErrors.pipe(XJH());
return{geometrySource:M.chain.pipe(zZ(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:W,strategyErrors:M.capturedErrors}].concat(_.vI(A.map(function(w){return w.additionalOutputs}))))}};
var XJH=function(){return FI(function(H,U){U instanceof iV?H.push(U.measurementStrategyFailureReason):H.push(-1);return H},[])};var OA0=function(H,U){this.context=H;this.poller=U};
_.R(OA0,wJn);OA0.prototype.buildGeometrySource=function(H,U){var A=kiM(TPN(this.context,this.poller),weN(this.context,U.requestSource));return{geometrySource:qm0(H.measurableCreative.pipe(A),U.inApp),additionalOutputs:{}}};var dUK=function(H,U,A){A=A===void 0?u$K(H,U):A;this.context=H;this.intersectionObserverStrategy=A};
_.R(dUK,wJn);dUK.prototype.buildGeometrySource=function(H,U){var A=this.intersectionObserverStrategy(U.useV2);return{geometrySource:qm0(H.measurableCreative.pipe(A,ZdK(this.context)),U.inApp),additionalOutputs:{}}};var iWw=function(H,U,A){var M=M===void 0?Symbol():M;this.element=H;this.immediateUrls=U;this.timeOnScreenUrls=A;this.symbol=M};var BPV=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),HAh=Object.freeze([1,.75,BPV.exposureThreshold,BPV.largeAdExposureThreshold,0]);var r4c=function(H,U){U=U===void 0?36E5:U;var A=A===void 0?!0:A;this.creatives=new ak;this.elementsToUnregister=new ak;this.elementMap=new Map;var M=new gG(window,null);M.beaconFactory=new jm(M,new nt(M));iAM(M,this.creatives,this.elementsToUnregister,H,U,A).subscribe()},$t4=function(H,U,A,M){if(!H.elementMap.has(U)){var W=new ol(U);
H.elementMap.set(U,W);H.creatives.next(new iWw(W,A,M))}},Dt_=function(H,U){H.elementsToUnregister.next(U);
var A=H.elementMap.get(U);A!==void 0&&(A.release(),H.elementMap.delete(U))};var w$8=function(H){var U=H.url;H=H.uaDataValues;this.JSC$9779_url_=U;this.uaDataValues_=H;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var A=/[?&]([^&=]+)=([^&]*)/g;H=A.exec(U);)this.urlParamValues_[H[1]]=H[2]},X$c=function(H){H=H.uaDataValues_;
if(!H)return"";var U=xl("uap",H.platform)+xl("uapv",H.platformVersion)+xl("uafv",H.uaFullVersion)+xl("uaa",H.architecture)+xl("uam",H.model)+xl("uab",H.bitness);H.fullVersionList&&(U+="&uafvl="+encodeURIComponent(H.fullVersionList.map(function(A){return encodeURIComponent(A.brand)+";"+encodeURIComponent(A.version)}).join("|")));
H.wow64!=null&&(U+="&uaw="+Number(H.wow64));return U.slice(1)};var bWr=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(bWr,_.fN);bWr.prototype.getId=function(){return _.Mn(this,1)};var ER=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(ER,_.fN);ER.prototype.getSeconds=function(){return Uh(this,1)};
ER.prototype.setSeconds=function(H){return _.Wy(this,1,n8(H),"0")};_.wz=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(_.wz,_.fN);_.wz.prototype.getSeconds=function(){return Uh(this,1)};
_.wz.prototype.setSeconds=function(H){return _.Wy(this,1,n8(H),"0")};
_.dgz=function(H){var U=Number(w4(H,1));H=_.B8(H,2);return new Date(U*1E3+H/1E6)};var m3=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(m3,_.fN);m3.prototype.getUrl=function(){return _.Mn(this,1)};
m3.prototype.setUrl=function(H){return _.Pl(this,1,H)};
m3.prototype.getHeight=function(){return _.B8(this,2)};
m3.prototype.getWidth=function(){return _.B8(this,3)};var gp=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(gp,_.fN);gp.prototype.getAspectRatio=function(){return Ag(this,1)};
gp.prototype.getDuration=function(){return _.qK(this,ER,2)};var OWk=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(OWk,_.fN);var uG2=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(uG2,_.fN);var ZWw=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(ZWw,_.fN);var fTk=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(fTk,_.fN);var J8h=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(J8h,_.fN);var KKk=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(KKk,_.fN);var oRk=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(oRk,_.fN);var FKy=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(FKy,_.fN);var P9w=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(P9w,_.fN);var ax=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(ax,_.fN);var xh=[2,4,5,6,7];var sch=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(sch,_.fN);var IH=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(IH,_.fN);_.X=IH.prototype;_.X.getId=function(){return _.qK(this,bWr,1)};
_.X.getName=function(){return _.Mn(this,2)};
_.X.setDescription=function(H){return _.Pl(this,3,H)};
_.X.getUrl=function(){return _.Mn(this,8)};
_.X.setUrl=function(H){return _.Pl(this,8,H)};
var ze=function(H){return _.c8(H,m3,10,_.y9())};
IH.prototype.getOwner=function(H){return _.z5K(this,40,H)};
var Ct=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Ct,_.fN);_.tJ=[0,nT,NMw];_.cQ=[0,nT,NMw];var nRk=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(nRk,_.fN);var yd=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(yd,_.fN);yd.prototype.getStatus=function(){return _.Wn(this,1)};
yd.prototype.removeItem=function(H){return mX2(this,2,H)};var NOK=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(NOK,_.fN);NOK.prototype.getName=function(){return _.Mn(this,8)};var BQ=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(BQ,_.fN);BQ.prototype.getCommand=function(){return _.Wn(this,1)};
BQ.prototype.getSource=function(){return _.qK(this,NOK,2)};
BQ.prototype.setVisible=function(H){return _.AP(this,5,H)};
BQ.prototype.removeItem=function(H){return mX2(this,7,H)};var S5K=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(S5K,_.fN);S5K.prototype.getCommand=function(){return _.Wn(this,1)};
S5K.prototype.removeItem=function(H){return mX2(this,4,H)};
var pJ2=_.a5(S5K);var rp=function(H,U,A){A=A===void 0?Error():A;var M=Error.call(this);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.code=H;U+=":";A instanceof Error?(this.message=U+A.message,this.stack=A.stack||""):(this.message=U+String(A),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(rp,Error);_.XG=function(){this.JSC$9837_disposed_=this.JSC$9837_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.XG.prototype.JSC$9837_disposed_=!1;_.XG.prototype.isDisposed=function(){return this.JSC$9837_disposed_};
_.XG.prototype.dispose=function(){this.JSC$9837_disposed_||(this.JSC$9837_disposed_=!0,this.disposeInternal())};
_.XG.prototype[Symbol.dispose]=function(){this.dispose()};
_.kl=function(H,U){H.addOnDisposeCallback(_.vg(_.zg,U))};
_.XG.prototype.addOnDisposeCallback=function(H,U){this.JSC$9837_disposed_?U!==void 0?H.call(U):H():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),U&&(H=H.bind(U)),this.onDisposeCallbacks_.push(H))};
_.XG.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var e$=function(H){_.XG.call(this);this.wpc=H};
_.R(e$,_.XG);e$.prototype.igG=function(){return this.wpc.f()};
e$.prototype.kJn=function(H){return this.wpc.c(H)};
e$.prototype.nA=function(H){return this.wpc.m(p5M(H))};
e$.prototype.pL1=function(H){return this.wpc.mws(p5M(H))};
var tD=function(H){_.XG.call(this);var U=this;this.vm=H;this.hFF="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.iwo=void 0;this.nCX=this.vm.p;this.wxL=this.gLj.bind(this);this.addOnDisposeCallback(function(){return void LKw(U)})};
_.R(tD,_.XG);var R8y=function(H){var U;return _.u(function(A){if(A.nextAddress==1){if(!H.vm.wpc)throw new rp(30,"NWA");return H.qHT?A.return(H.qHT):A.yield(H.vm.wpc(),2)}U=A.yieldResult;H.qHT=new e$(U);return A.return(H.qHT)})};
tD.prototype.snapshot=function(H){return this.vm.s(Object.assign({},H.f2&&{c:H.f2},H.pv2&&{s:H.pv2},H.moy!==void 0&&{p:H.moy}))};
tD.prototype.gLj=function(H){this.vm.e(H)};
tD.prototype.zkT=function(H,U){return this.vm.c(H,U,!1)};
var LKw=function(H){H.iwo!==void 0&&(H.hFF.forEach(function(U){var A;(A=H.iwo)==null||A.removeEventListener(U,H.wxL)}),H.iwo=void 0)};
tD.prototype.aZF=function(){return this.vm.l()};var Dn=function(){_.XG.apply(this,arguments);this.iZB=1};
_.R(Dn,_.XG);Dn.prototype.share=function(){if(this.isDisposed())throw Error("qa");this.iZB++;return this};
Dn.prototype.dispose=function(){--this.iZB||_.XG.prototype.dispose.call(this)};var ERw=function(H){this.oEc=H;H.addNewEventMetric("/client_streamz/bg/frs",_.$l("mk"))};
ERw.prototype.record=function(H,U){this.oEc.record("/client_streamz/bg/frs",H,U)};
var mgB=function(H){this.cEf=H;H.addNewEventMetric("/client_streamz/bg/wrl",_.$l("mn"),el("ac"),el("sc"),_.$l("rk"),_.$l("mk"))};
mgB.prototype.record=function(H,U,A,M,W,w){this.cEf.record("/client_streamz/bg/wrl",H,U,A,M,W,w)};
var gR2=function(H){this.foc=H;H.addNewCounter("/client_streamz/bg/ec",_.$l("en"),_.$l("mk"))};
gR2.prototype.increment=function(H,U){this.foc.JSC$10090_incrementCounter("/client_streamz/bg/ec",H,U)};
var aTK=function(H){this.psf=H;H.addNewEventMetric("/client_streamz/bg/el",_.$l("en"),_.$l("mk"))};
aTK.prototype.record=function(H,U,A){this.psf.record("/client_streamz/bg/el",H,U,A)};
var xgr=function(H){this.rEe=H;H.addNewCounter("/client_streamz/bg/cec",el("ec"),_.$l("mk"))};
xgr.prototype.increment=function(H,U){this.rEe.JSC$10090_incrementCounter("/client_streamz/bg/cec",H,U)};
var z8K=function(H){this.lL4=H;H.addNewCounter("/client_streamz/bg/po/csc",el("cs"),_.$l("mk"))};
z8K.prototype.increment=function(H,U){this.lL4.JSC$10090_incrementCounter("/client_streamz/bg/po/csc",H,U)};
var C9n=function(H){this.wae=H;H.addNewCounter("/client_streamz/bg/po/ctav",_.$l("av"),_.$l("mk"))};
C9n.prototype.increment=function(H,U){this.wae.JSC$10090_incrementCounter("/client_streamz/bg/po/ctav",H,U)};
var tvH=function(H){this.jqL=H;H.addNewCounter("/client_streamz/bg/po/cwsc",_.$l("su"),_.$l("mk"))};
tvH.prototype.increment=function(H,U){this.jqL.JSC$10090_incrementCounter("/client_streamz/bg/po/cwsc",H,U)};var HOK=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(HOK,_.fN);var VyN=function(H,U){return _.MS(H,3,U,a3M)};var c8w=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(c8w,_.fN);var y8z=[1,2,3];var BOm=[0,y8z,_.m9,Sjw,RSy];var r8k=[0,_.g4,[0,Pn,_.sh]];var e8z=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(e8z,_.fN);var Dgy=[1,2,3];var $gy=[0,Dgy,s5w,JR3,_.aT,r8k];var lTh=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(lTh,_.fN);var Gr3=[0,_.g4,BOm,$gy];var Y5r=[0,_.RT];var q53=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(q53,_.fN);var h8g=[0,_.RT,-1,_.pT];var krr=[0,_.RT,-1,_.Sm,_.pT];var vRz=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(vRz,_.fN);var TOz=[1,2,3];var jcH=[0,TOz,_.aT,h8g,_.aT,krr,_.aT,Y5r];var ITk=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(ITk,_.fN);ITk.prototype.JSC$9910_serializeBinary=bUN([0,_.RT,jcH,E5w,_.g4,Gr3,pyk,_.LOw]);var Qc2=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Qc2,_.fN);var Ufr=function(H){var U=new ITk;U=_.Mu(U,1,H.JSC$10026_metricName);var A=Vvk(H);U=_.MS(U,3,A,_.L8);A=[];for(var M=[],W=_.b(H.cellMap.keys()),w=W.next();!w.done;w=W.next())M.push(w.value.split(","));for(W=0;W<M.length;W++){w=M[W];for(var d=H.cellType,O=H.getCells(w)||[],f=[],J=0;J<O.length;J++){var F=O[J],P=F&&F.cellValue;F=new e8z;switch(d){case 3:P=Number(P);Number.isFinite(P)&&QO(F,1,Dgy,n8(P));break;case 2:QO(F,2,Dgy,_.AB(Number(P)))}f.push(F)}d=f;for(O=0;O<d.length;O++){f=d[O];J=new lTh;f=_.CN(J,
2,f);J=[];F=Hdn(H);for(P=0;P<F.length;P++){var n=F[P],N=w[P],L=new c8w;switch(n){case 3:QO(L,1,y8z,E$(String(N)));break;case 2:n=Number(N);Number.isFinite(n)&&QO(L,2,y8z,_.Zk(n));break;case 1:QO(L,3,y8z,EK_(N==="true"))}J.push(L)}jd(f,1,J);A.push(f)}}jd(U,4,A);return U};var AaK=function(H){if(!H)return"";if(/^about:(?:blank|srcdoc)$/.test(H))return window.origin||"";H.indexOf("blob:")===0&&(H=H.substring(5));H=H.split("#")[0].split("?")[0];H=H.toLowerCase();H.indexOf("//")==0&&(H=window.location.protocol+H);/^[\w\-]*:\/\//.test(H)||(H=window.location.href);var U=H.substring(H.indexOf("://")+3),A=U.indexOf("/");A!=-1&&(U=U.substring(0,A));A=H.substring(0,H.indexOf("://"));if(!A)throw Error("ra`"+H);if(A!=="http"&&A!=="https"&&A!=="chrome-extension"&&A!=="moz-extension"&&
A!=="file"&&A!=="android-app"&&A!=="chrome-search"&&A!=="chrome-untrusted"&&A!=="chrome"&&A!=="app"&&A!=="devtools")throw Error("sa`"+A);H="";var M=U.indexOf(":");if(M!=-1){var W=U.substring(M+1);U=U.substring(0,M);if(A==="http"&&W!=="80"||A==="https"&&W!=="443")H=":"+W}return A+"://"+U+H};var W4w=function(H,U,A){var M=String(_.Mr.location.href);return M&&H&&U?[U,MMm(AaK(M),H,A||null)].join(" "):null},MMm=function(H,U,A){var M=[],W=[];
if((Array.isArray(A)?2:1)==1)return W=[U,H],_.yW(M,function(O){W.push(O)}),wew(W.join(" "));
var w=[],d=[];_.yW(A,function(O){d.push(O.key);w.push(O.value)});
A=Math.floor((new Date).getTime()/1E3);W=w.length==0?[A,U,H]:[w.join(":"),A,U,H];_.yW(M,function(O){W.push(O)});
H=wew(W.join(" "));H=[A,H];d.length==0||H.push(d.join(""));return H.join("_")},wew=function(H){var U=zYt();
U.update(H);return U.digestString().toLowerCase()};var Xeh;_.X=lV.prototype;_.X.isEnabled=function(){if(!_.Mr.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};
_.X.set=function(H,U,A){var M=!1;if(typeof A==="object"){var W=A.sameSite;M=A.secure||!1;var w=A.domain||void 0;var d=A.path||void 0;var O=A.maxAge}if(/[;=\s]/.test(H))throw Error("ta`"+H);if(/[;\r\n]/.test(U))throw Error("ua`"+U);O===void 0&&(O=-1);A=w?";domain="+w:"";d=d?";path="+d:"";M=M?";secure":"";O=O<0?"":O==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+O*1E3)).toUTCString();this.JSC$9921_document_.cookie=H+"="+U+A+d+O+M+(W!=null?";samesite="+W:"")};
_.X.get=function(H,U){for(var A=H+"=",M=(this.JSC$9921_document_.cookie||"").split(";"),W=0,w;W<M.length;W++){w=fh(M[W]);if(w.lastIndexOf(A,0)==0)return w.slice(A.length);if(w==H)return""}return U};
_.X.remove=function(H,U,A){var M=this.containsKey(H);this.set(H,"",{maxAge:0,path:U,domain:A});return M};
_.X.getKeys=function(){return Xeh(this).keys};
_.X.getValues=function(){return Xeh(this).values};
_.X.isEmpty=function(){return!this.JSC$9921_document_.cookie};
_.X.getCount=function(){return this.JSC$9921_document_.cookie?(this.JSC$9921_document_.cookie||"").split(";").length:0};
_.X.containsKey=function(H){return this.get(H)!==void 0};
_.X.containsValue=function(H){for(var U=Xeh(this).values,A=0;A<U.length;A++)if(U[A]==H)return!0;return!1};
_.X.clear=function(){for(var H=Xeh(this).keys,U=H.length-1;U>=0;U--)this.remove(H[U])};
Xeh=function(H){H=(H.JSC$9921_document_.cookie||"").split(";");for(var U=[],A=[],M,W,w=0;w<H.length;w++)W=fh(H[w]),M=W.indexOf("="),M==-1?(U.push(""),A.push(W)):(U.push(W.substring(0,M)),A.push(W.substring(M+1)));return{keys:U,values:A}};
_.MK=new lV(typeof document=="undefined"?null:document);var mJ8,idk;mJ8=function(){var H=_.Mr.__SAPISID||_.Mr.__APISID||_.Mr.__3PSAPISID||_.Mr.__1PSAPISID||_.Mr.__OVERRIDE_SID;if(H)return!0;typeof document!=="undefined"&&(H=new lV(document),H=H.get("SAPISID")||H.get("APISID")||H.get("__Secure-3PAPISID")||H.get("__Secure-1PAPISID"));return!!H};
idk=function(H,U,A,M){(H=_.Mr[H])||typeof document==="undefined"||(H=(new lV(document)).get(U));return H?W4w(H,A,M):null};
_.cyF=function(H){var U=AaK(_.Mr==null?void 0:_.Mr.location.href),A=[];if(mJ8()){U=U.indexOf("https:")==0||U.indexOf("chrome-extension:")==0||U.indexOf("chrome-untrusted://new-tab-page")==0||U.indexOf("moz-extension:")==0;var M=U?_.Mr.__SAPISID:_.Mr.__APISID;M||typeof document==="undefined"||(M=new lV(document),M=M.get(U?"SAPISID":"APISID")||M.get("__Secure-3PAPISID"));(M=M?W4w(M,U?"SAPISIDHASH":"APISIDHASH",H):null)&&A.push(M);U&&((U=idk("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",H))&&A.push(U),
(H=idk("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",H))&&A.push(H))}return A.length==0?null:A.join(" ")};var bdh=function(){this.minSize=1024};
bdh.prototype.compress=function(H){var U,A,M,W;return _.u(function(w){switch(w.nextAddress){case 1:return U=new CompressionStream("gzip"),A=(new Response(U.readable)).arrayBuffer(),M=U.writable.getWriter(),w.yield(M.write((new TextEncoder).encode(H)),2);case 2:return w.yield(M.close(),3);case 3:return W=Uint8Array,w.yield(A,4);case 4:return w.return(new W(w.yieldResult))}})};
bdh.prototype.isSupported=function(H){return H<this.minSize?!1:typeof CompressionStream!=="undefined"};var dfK=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(dfK,_.fN);var $h=function(H,U){this.intervalMs=H;this.callback=U;this.enabled=!1;this.nowFn=function(){return _.x4()};
this.lastTimeMs=this.nowFn()};
$h.prototype.setInterval=function(H){this.intervalMs=H;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
$h.prototype.start=function(){var H=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){H.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
$h.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
$h.prototype.tick=function(){var H=this;if(this.enabled){var U=Math.max(this.nowFn()-this.lastTimeMs,0);U<this.intervalMs*.8?this.timer=setTimeout(function(){H.tick()},this.intervalMs-U):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Od3=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Od3,_.fN);var u$m=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(u$m,_.fN);var Zdm=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Zdm,_.fN);Zdm.prototype.getTransmissionType=function(){return _.Wn(this,1)};
Zdm.prototype.getRetryCount=function(){return _.B8(this,3)};var yrE=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(yrE,_.fN);var ld=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(ld,_.fN);var crE=function(H){jd(BD0,1,H)};
ld.prototype.getModel=function(){return _.Mn(this,6)};
var fjB=_.a5(ld);var JaH=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(JaH,_.fN);var Cx4=["platform","platformVersion","architecture","model","uaFullVersion"],BD0=new ld,tyc=null;var Ge=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Ge,_.fN);var K4H=function(H){return _.hj(H,1,1)};var opw=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H,4)};
_.R(opw,_.fN);_.vQ=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H,36)};
_.R(_.vQ,_.fN);_.vQ.prototype.getExperimentIds=function(){return _.qK(this,dfK,16)};var F42=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H,19)};
_.R(F42,_.fN);F42.prototype.setLogSource=function(H){return _.hj(this,2,H)};
F42.prototype.setScheduler=function(H){return _.hj(this,10,H)};var sny=function(H,U){this.isServiceWorkerScope=U=U===void 0?!1:U;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new F42;Number.isInteger(H)&&this.logRequest.setLogSource(H);U||(this.locale=document.documentElement.getAttribute("lang"));PBw(this,new Ge)};
sny.prototype.setLogSource=function(H){this.logRequest.setLogSource(H);return this};
var PBw=function(H,U){_.CN(H.logRequest,1,U);_.Wn(U,1)||K4H(U);H.isServiceWorkerScope||(U=Te(H),_.Mn(U,5)||_.Mu(U,5,H.locale));H.uach&&(U=Te(H),_.qK(U,ld,9)||_.CN(U,9,H.uach))},npK=function(H,U){H.transmissionType=U},NPK=function(H){var U=U===void 0?Cx4:U;
var A=H.isServiceWorkerScope?void 0:uV();A?rrF(A,U).then(function(M){H.uach=fjB(M!=null?M:"[]");M=Te(H);_.CN(M,9,H.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Te=function(H){var U=_.qK(H.logRequest,Ge,1);
U||(U=new Ge,PBw(H,U));H=U;U=_.qK(H,JaH,11);U||(U=new JaH,_.CN(H,11,U));return U};
sny.prototype.build=function(H,U,A,M,W,w){U=U===void 0?0:U;A=A===void 0?0:A;M=M===void 0?null:M;W=W===void 0?0:W;w=w===void 0?0:w;if(!this.isServiceWorkerScope){var d=Te(this);var O=new Zdm;O=_.hj(O,1,this.transmissionType);O=_.Gg(O,2,this.isFinal);A=_.bo(O,3,A>0?A:void 0);A=_.bo(A,4,W>0?W:void 0);A=_.bo(A,5,w>0?w:void 0);W=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;w=W[_.wm]|0;A=gm(A,w)?A:e5_(A,W,w)?rBK(A,W):new A.constructor(lm(W,w,!0));_.CN(d,10,A)}d=this.logRequest.clone();A=Date.now().toString();
d=_.kD(d,4,n8(A));H=H.slice();H=jd(d,3,H);M&&(d=new Od3,M=_.bo(d,13,M),d=new u$m,M=_.CN(d,2,M),d=new opw,M=_.CN(d,1,M),M=_.hj(M,2,9),_.CN(H,18,M));U&&_.Xx(H,14,U);return H};Yl.prototype.currBackoffCount_=0;Yl.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Yl.prototype.getValue=function(){return this.currValue_};
var Smg=function(H){H.currBaseValue_=Math.min(H.maxValue_,H.currBaseValue_*H.backoffFactor_);H.currValue_=Math.min(H.maxValue_,H.currBaseValue_+(H.randomFactor_?Math.round(H.randomFactor_*(Math.random()-.5)*2*H.currBaseValue_):0));H.currBackoffCount_++};var zSK=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H,8)};
_.R(zSK,_.fN);var pew=_.a5(zSK);var Cvn=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Cvn,_.fN);var j$;j$=new t3y;var Ix=function(H){_.XG.call(this);var U=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9999_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$9999_sendBeaconApiEnabled=!1;this.logSource=H.logSource;this.getAuthHeaderValue=
H.getAuthHeaderValue||function(){};
this.logRequestBuilder=new sny(H.logSource,H.isServiceWorkerScope);this.network=H.network||null;this.productID=H.productID||null;this.bufferSize=1E3;this.clearcutUrl=H.urlOverride||null;this.sessionIndex=H.sessionIndex||null;this.disableAutomaticFlush=H.disableAutomaticFlush||!1;this.withCredentials=!H.disableWithCredentials;this.isServiceWorkerScope=H.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!uV()&&!!uV().navigator&&uV().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(L4r())).searchParams&&!!(new URL(L4r())).searchParams.set;var A=K4H(new Ge);PBw(this.logRequestBuilder,A);this.flushBackoff=new Yl(1E4,3E5,.1);H=Rkr(this,H.backgroundJobDeferrer);this.JSC$9999_flushTimer=new $h(this.flushBackoff.getValue(),H);this.backupTimer=new $h(6E5,H);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Epg(U);
var M;(M=U.metalogService)==null||M.flush()}}),document.addEventListener("pagehide",function(){Epg(U);
var M;(M=U.metalogService)==null||M.flush()}))};
_.R(Ix,_.XG);var Rkr=function(H,U){return H.isBrowserSupported?U?function(){U().then(function(){H.flush()})}:function(){H.flush()}:function(){}};
Ix.prototype.disposeInternal=function(){Epg(this);this.JSC$9999_flushTimer.stop();this.backupTimer.stop();_.XG.prototype.disposeInternal.call(this)};
var mfw=function(H){H.clearcutUrl||(H.clearcutUrl=L4r());try{return(new URL(H.clearcutUrl)).toString()}catch(U){return(new URL(H.clearcutUrl,uV().location.origin)).toString()}};
Ix.prototype.dispatch=function(H){if(H instanceof _.vQ)this.log(H);else try{var U=new _.vQ,A=H.serialize();var M=_.Mu(U,8,A);this.log(M)}catch(W){Qd(this,4,1)}};
var Qd=function(H,U,A){H.metalogService&&H.metalogService.increment(U,A)};
Ix.prototype.log=function(H){Qd(this,2,1);if(this.isBrowserSupported){H=H.clone();var U=this.sequencePosition++;H=_.Xx(H,21,U);this.componentId&&_.Mu(H,26,this.componentId);U=H;if(qzE(_.qP(U,1))==null){var A=Date.now();A=Number.isFinite(A)?A.toString():"0";_.kD(U,1,n8(A))}_.gfr(U,15)!=null||_.Xx(U,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(A=this.experimentIds.clone(),_.CN(U,16,A));Qd(this,1,1);U=this.pendingEvents.length-this.bufferSize+1;U>0&&(this.pendingEvents.splice(0,U),this.numLogsDroppedSinceLastFlush+=
U,Qd(this,3,U));this.pendingEvents.push(H);this.disableAutomaticFlush||this.JSC$9999_flushTimer.enabled||this.JSC$9999_flushTimer.start()}};
Ix.prototype.flush=function(H,U){var A=this;if(this.pendingEvents.length===0)H&&H();else if(this.JSC$9999_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,gpz(this);else{var M=Date.now();if(this.noFlushUntilMs>M&&this.startWaitingMs<M)U&&U("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?npK(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var W=this.pendingEvents.length,
w=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),d=this.getAuthHeaderValue();if(d&&this.lastFailedAuth===d)U&&U("stale-auth-token");else{this.pendingEvents=[];this.JSC$9999_flushTimer.enabled&&this.JSC$9999_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;M=w.serialize();var O;this.JSC$9999_compressor&&this.JSC$9999_compressor.isSupported(M.length)&&
(O=this.JSC$9999_compressor.compress(M));var f=ajg(this,M,d),J=function(n){A.flushBackoff.reset();A.JSC$9999_flushTimer.setInterval(A.flushBackoff.getValue());if(n){var N=null;try{var L=JSON.stringify(JSON.parse(n.replace(")]}'\n","")));N=pew(L)}catch(m){}N&&(n=Number(Uh(N,1,_.rm("-1"))),n>0&&(A.startWaitingMs=Date.now(),A.noFlushUntilMs=A.startWaitingMs+n),fkM(N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,j$.fieldIndex),uhE(N,j$.fieldIndex),N=j$.ctor?j$.getExtensionFn(N,j$.ctor,j$.fieldIndex,
j$.JSC$9179_hasMessageId):j$.getExtensionFn(N,j$.fieldIndex,null,j$.JSC$9179_hasMessageId),N=N===null?void 0:N)&&(N=_.B8(N,1,-1),N!==-1&&(A.flushBackoff=new Yl(N<1?1:N,3E5,.1),A.JSC$9999_flushTimer.setInterval(A.flushBackoff.getValue())))}H&&H();A.numRetriesSinceLastSuccessfulFlush=0},F=function(n,N){var L=_.c8(w,_.vQ,3,_.y9());
var m=Number(Uh(w,14));Smg(A.flushBackoff);A.JSC$9999_flushTimer.setInterval(A.flushBackoff.getValue());n===401&&d&&(A.lastFailedAuth=d);m&&(A.numLogsDroppedSinceLastFlush+=m);N===void 0&&(N=A.isRetryable(n));N&&(A.pendingEvents=L.concat(A.pendingEvents),A.disableAutomaticFlush||A.JSC$9999_flushTimer.enabled||A.JSC$9999_flushTimer.start());Qd(A,7,1);U&&U("net-send-failed",n);++A.numRetriesSinceLastSuccessfulFlush},P=function(){A.network&&A.network.send(f,J,F)};
O?O.then(function(n){Qd(A,5,W);f.requestHeaders["Content-Encoding"]="gzip";f.requestHeaders["Content-Type"]="application/binary";f.body=n;f.bodyType=2;P()},function(){Qd(A,6,W);
P()}):P()}}}};
var ajg=function(H,U,A){A=A===void 0?null:A;var M=M===void 0?H.withCredentials:M;var W={},w=new URL(mfw(H));A&&(W.Authorization=A);H.sessionIndex&&(W["X-Goog-AuthUser"]=H.sessionIndex,w.searchParams.set("authuser",H.sessionIndex));H.pageId&&(Object.defineProperty(W,"X-Goog-PageId",{value:H.pageId}),w.searchParams.set("pageId",H.pageId));return{url:w.toString(),body:U,bodyType:1,requestHeaders:W,requestType:"POST",withCredentials:M,timeoutMillis:H.timeoutMillis}},Epg=function(H){H.logRequestBuilder.isFinal=
!0;
H.flush();H.logRequestBuilder.isFinal=!1},gpz=function(H){xfw(H,function(U,A){U=new URL(U);
U.searchParams.set("format","json");var M=!1;try{M=uV().navigator.sendBeacon(U.toString(),A.serialize())}catch(W){}M||(H.isSendBeaconSupported=!1);return M})},xfw=function(H,U){if(H.pendingEvents.length!==0){var A=new URL(mfw(H));
A.searchParams.delete("format");var M=H.getAuthHeaderValue();M&&A.searchParams.set("auth",M);A.searchParams.set("authuser",H.sessionIndex||"0");for(M=0;M<10&&H.pendingEvents.length;++M){var W=H.pendingEvents.slice(0,32),w=H.logRequestBuilder.build(W,H.numLogsDroppedSinceLastFlush,H.numRetriesSinceLastSuccessfulFlush,H.productID,H.persistedLogRecoveredCount,H.persistedLogExpiredCount);if(!U(A.toString(),w)){++H.numRetriesSinceLastSuccessfulFlush;break}H.numLogsDroppedSinceLastFlush=0;H.numRetriesSinceLastSuccessfulFlush=
0;H.persistedLogRecoveredCount=0;H.persistedLogExpiredCount=0;H.pendingEvents=H.pendingEvents.slice(W.length)}H.JSC$9999_flushTimer.enabled&&H.JSC$9999_flushTimer.stop()}};
Ix.prototype.isRetryable=function(H){return 500<=H&&H<600||H===401||H===0};
var L4r=function(){return"https://play.google.com/log?format=json&hasfast=true"};var zkw=function(){this.abortSupported=typeof AbortController!=="undefined"};
zkw.prototype.send=function(H,U,A){var M=this,W,w,d,O,f,J,F,P,n,N;return _.u(function(L){switch(L.nextAddress){case 1:return w=(W=M.abortSupported?new AbortController:void 0)?setTimeout(function(){W.abort()},H.timeoutMillis):void 0,_.zj(L,2,3),d=Object.assign({},{method:H.requestType,
headers:Object.assign({},H.requestHeaders)},H.body&&{body:H.body},H.withCredentials&&{credentials:"include"},{signal:H.timeoutMillis&&W?W.signal:null}),L.yield(fetch(H.url,d),5);case 5:O=L.yieldResult;if(O.status!==200){(f=A)==null||f(O.status);L.jumpTo(3);break}if((J=U)==null){L.jumpTo(7);break}return L.yield(O.text(),8);case 8:J(L.yieldResult);case 7:case 3:_.cI(L);clearTimeout(w);_.BI(L,0);break;case 2:F=_.eG(L);switch((P=F)==null?void 0:P.name){case "AbortError":(n=A)==null||n(408);break;default:(N=
A)==null||N(400)}L.jumpTo(3)}})};
zkw.prototype.getTransmissionType=function(){return 4};_.hD=function(H,U){U=U===void 0?"0":U;_.XG.call(this);this.logSource=H;this.sessionIndex=U;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$10017_clearExperimentIds=this.productID=null;this.JSC$10017_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.R(_.hD,_.XG);var jh4=function(H,U){H.buildLabel=U;return H},TDc=function(H,U){H.network=U;
return H},QhM=function(H,U){H.JSC$10017_clearExperimentIds=U},vVc=function(H){H.JSC$10017_sendBeaconApiEnabled=!0;
return H};
_.hD.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.hD.prototype.build=function(){this.network||(this.network=new zkw);var H=new Ix({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.cyF,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.kl(this,H);if(this.buildLabel){var U=this.buildLabel,A=
Te(H.logRequestBuilder);_.Mu(A,7,U)}H.JSC$9999_compressor=new bdh;this.componentId&&(H.componentId=this.componentId);this.productID&&(H.productID=this.productID);this.pageId&&(H.pageId=this.pageId);this.JSC$10017_clearExperimentIds&&((A=this.JSC$10017_clearExperimentIds)?(H.experimentIds||(H.experimentIds=new dfK),U=H.experimentIds,A=A.serialize(),_.Mu(U,4,A)):H.experimentIds&&_.kD(H.experimentIds,4));this.JSC$10017_sendBeaconApiEnabled&&(H.JSC$9999_sendBeaconApiEnabled=H.isSendBeaconSupported);NPK(H.logRequestBuilder);
this.bufferSize&&(H.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(H);return H};var UK7=function(H,U,A,M,W,w,d){H=H===void 0?-1:H;U=U===void 0?"":U;A=A===void 0?"":A;M=M===void 0?!1:M;W=W===void 0?"":W;_.XG.call(this);this.logSource=H;this.componentId=U;w?U=w:(H=new _.hD(H,"0"),H.componentId=U,_.kl(this,H),A!==""&&(H.destinationUrl=A),M&&(H.serviceWorkerScopeEnabled=!0),W&&jh4(H,W),d&&TDc(H,d),U=H.build());this.JSC$10021_transport=U};
_.R(UK7,_.XG);UK7.prototype.flush=function(H){H=H||[];if(H.length){for(var U=new Qc2,A=[],M=0;M<H.length;M++){var W=H[M],w=Ufr(W);A.push(w);W.clear()}jd(U,1,A);this.JSC$10021_transport.dispatch(U);this.JSC$10021_transport.flush()}};var CBw=function(H){this.cellValue=H};var Vd=function(H,U,A){this.JSC$10026_metricName=H;this.cellType=U;this.fields=A||[];this.cellMap=new Map},Hdn=function(H){return H.fields.map(function(U){return U.fieldType})},Vvk=function(H){return H.fields.map(function(U){return U.fieldName})};
_.X=Vd.prototype;_.X.addCell=function(H){var U=_.QY.apply(1,arguments),A=this.getCells(U);A?A.push(new CBw(H)):this.JSC$10026_setCell(H,U)};
_.X.JSC$10026_setCell=function(H){var U=this.JSC$10026_getKey(_.QY.apply(1,arguments));this.cellMap.set(U,[new CBw(H)])};
_.X.getCells=function(){var H=this.JSC$10026_getKey(_.QY.apply(0,arguments));return this.cellMap.has(H)?this.cellMap.get(H):void 0};
_.X.getCell=function(){var H=this.getCells(_.QY.apply(0,arguments));return H&&H.length?H[0]:void 0};
_.X.clear=function(){this.cellMap.clear()};
_.X.JSC$10026_getKey=function(){var H=_.QY.apply(0,arguments);return H?H.join(","):"key"};var tMB=function(H,U){Vd.call(this,H,3,U)};
_.R(tMB,Vd);tMB.prototype.JSC$10029_incrementCounterBy=function(H){var U=_.QY.apply(1,arguments),A=0,M=this.getCell(U);M&&(A=M.cellValue);this.JSC$10026_setCell(A+H,U)};var cak=function(H,U){Vd.call(this,H,2,U)};
_.R(cak,Vd);cak.prototype.record=function(H){this.addCell(H,_.QY.apply(1,arguments))};_.HS=function(H){this.id=H};
_.HS.prototype.toString=function(){return this.id};_.$R=function(H,U){this.type=H instanceof _.HS?String(H):H;this.currentTarget=this.target=U;this.defaultPrevented=this.propagationStopped_=!1};
_.$R.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.$R.prototype.preventDefault=function(){this.defaultPrevented=!0};_.U0=function(H,U){_.$R.call(this,H?H.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;H&&this.init(H,U)};
_.zo(_.U0,_.$R);
_.U0.prototype.init=function(H,U){var A=this.type=H.type,M=H.changedTouches&&H.changedTouches.length?H.changedTouches[0]:null;this.target=H.target||H.srcElement;this.currentTarget=U;U=H.relatedTarget;U||(A=="mouseover"?U=H.fromElement:A=="mouseout"&&(U=H.toElement));this.relatedTarget=U;M?(this.clientX=M.clientX!==void 0?M.clientX:M.pageX,this.clientY=M.clientY!==void 0?M.clientY:M.pageY,this.screenX=M.screenX||0,this.screenY=M.screenY||0):(this.offsetX=_.kA||H.offsetX!==void 0?H.offsetX:H.layerX,
this.offsetY=_.kA||H.offsetY!==void 0?H.offsetY:H.layerY,this.clientX=H.clientX!==void 0?H.clientX:H.pageX,this.clientY=H.clientY!==void 0?H.clientY:H.pageY,this.screenX=H.screenX||0,this.screenY=H.screenY||0);this.button=H.button;this.keyCode=H.keyCode||0;this.key=H.key||"";this.charCode=H.charCode||(A=="keypress"?H.keyCode:0);this.ctrlKey=H.ctrlKey;this.altKey=H.altKey;this.shiftKey=H.shiftKey;this.metaKey=H.metaKey;this.pointerId=H.pointerId||0;this.pointerType=H.pointerType;this.state=H.state;
this.timeStamp=H.timeStamp;this.event_=H;H.defaultPrevented&&_.U0.superClass_.preventDefault.call(this)};
_.U0.prototype.isButton=function(H){return this.event_.button==H};
_.U0.prototype.stopPropagation=function(){_.U0.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.U0.prototype.preventDefault=function(){_.U0.superClass_.preventDefault.call(this);var H=this.event_;H.preventDefault?H.preventDefault():H.returnValue=!1};var yah="closure_listenable_"+(Math.random()*1E6|0),An=function(H){return!(!H||!H[yah])};var eYr=0;var BPw=function(H){H.removed=!0;H.listener=null;H.proxy=null;H.src=null;H.handler=null};qu.prototype.add=function(H,U,A,M,W){var w=H.toString();H=this.listeners[w];H||(H=this.listeners[w]=[],this.typeCount_++);var d=raw(H,U,M,W);d>-1?(U=H[d],A||(U.callOnce=!1)):(U=new DUt(U,this.src,w,!!M,W),U.callOnce=A,H.push(U));return U};
qu.prototype.remove=function(H,U,A,M){H=H.toString();if(!(H in this.listeners))return!1;var W=this.listeners[H];U=raw(W,U,A,M);return U>-1?(BPw(W[U]),_.xrh(W,U),W.length==0&&(delete this.listeners[H],this.typeCount_--),!0):!1};
var ekk=function(H,U){var A=U.type;if(!(A in H.listeners))return!1;var M=_.Dc(H.listeners[A],U);M&&(BPw(U),H.listeners[A].length==0&&(delete H.listeners[A],H.typeCount_--));return M};
qu.prototype.removeAll=function(H){H=H&&H.toString();var U=0,A;for(A in this.listeners)if(!H||A==H){for(var M=this.listeners[A],W=0;W<M.length;W++)++U,BPw(M[W]);delete this.listeners[A];this.typeCount_--}return U};
qu.prototype.getListener=function(H,U,A,M){H=this.listeners[H.toString()];var W=-1;H&&(W=raw(H,U,A,M));return W>-1?H[W]:null};
qu.prototype.hasListener=function(H,U){var A=H!==void 0,M=A?H.toString():"",W=U!==void 0;return _.dG.some(this.listeners,function(w){for(var d=0;d<w.length;++d)if(!(A&&w[d].type!=M||W&&w[d].capture!=U))return!0;return!1})};
var raw=function(H,U,A,M){for(var W=0;W<H.length;++W){var w=H[W];if(!w.removed&&w.listener==U&&w.capture==!!A&&w.handler==M)return W}return-1};var Dfw,$fH,ljB,Ymy,qmh,FG,jq,a0M,hkK,kiz,M1,vph,Gig;Dfw="closure_lm_"+(Math.random()*1E6|0);$fH={};ljB=0;_.Rc=function(H,U,A,M,W){if(M&&M.once)return FG(H,U,A,M,W);if(Array.isArray(U)){for(var w=0;w<U.length;w++)_.Rc(H,U[w],A,M,W);return null}A=Gig(A);return An(H)?H.listen(U,A,_.ht(M)?!!M.capture:!!M,W):Ymy(H,U,A,!1,M,W)};
Ymy=function(H,U,A,M,W,w){if(!U)throw Error("wa");var d=_.ht(W)?!!W.capture:!!W,O=M1(H);O||(H[Dfw]=O=new qu(H));A=O.add(U,A,M,d,w);if(A.proxy)return A;M=qmh();A.proxy=M;M.src=H;M.listener=A;if(H.addEventListener)_.bUw||(W=d),W===void 0&&(W=!1),H.addEventListener(U.toString(),M,W);else if(H.attachEvent)H.attachEvent(hkK(U.toString()),M);else if(H.addListener&&H.removeListener)H.addListener(M);else throw Error("xa");ljB++;return A};
qmh=function(){var H=kiz,U=function(A){return H.call(U.src,U.listener,A)};
return U};
FG=function(H,U,A,M,W){if(Array.isArray(U)){for(var w=0;w<U.length;w++)FG(H,U[w],A,M,W);return null}A=Gig(A);return An(H)?H.listenOnce(U,A,_.ht(M)?!!M.capture:!!M,W):Ymy(H,U,A,!0,M,W)};
_.WS=function(H,U,A,M,W){if(Array.isArray(U))for(var w=0;w<U.length;w++)_.WS(H,U[w],A,M,W);else M=_.ht(M)?!!M.capture:!!M,A=Gig(A),An(H)?H.unlisten(U,A,M,W):H&&(H=M1(H))&&(U=H.getListener(U,A,M,W))&&jq(U)};
jq=function(H){if(typeof H==="number"||!H||H.removed)return!1;var U=H.src;if(An(U))return ekk(U.eventTargetListeners_,H);var A=H.type,M=H.proxy;U.removeEventListener?U.removeEventListener(A,M,H.capture):U.detachEvent?U.detachEvent(hkK(A),M):U.addListener&&U.removeListener&&U.removeListener(M);ljB--;(A=M1(U))?(ekk(A,H),A.typeCount_==0&&(A.src=null,U[Dfw]=null)):BPw(H);return!0};
a0M=function(H,U,A,M,W){A=Gig(A);M=!!M;return An(H)?H.getListener(U,A,M,W):H?(H=M1(H))?H.getListener(U,A,M,W):null:null};
hkK=function(H){return H in $fH?$fH[H]:$fH[H]="on"+H};
kiz=function(H,U){if(H.removed)H=!0;else{U=new _.U0(U,this);var A=H.listener,M=H.handler||H.src;H.callOnce&&jq(H);H=A.call(M,U)}return H};
M1=function(H){H=H[Dfw];return H instanceof qu?H:null};
vph="__closure_events_fn_"+(Math.random()*1E9>>>0);Gig=function(H){if(typeof H==="function")return H;H[vph]||(H[vph]=function(U){return H.handleEvent(U)});
return H[vph]};_.LW=function(){_.XG.call(this);this.eventTargetListeners_=new qu(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.zo(_.LW,_.XG);_.LW.prototype[yah]=!0;_.X=_.LW.prototype;_.X.setParentEventTarget=function(H){this.parentEventTarget_=H};
_.X.addEventListener=function(H,U,A,M){_.Rc(this,H,U,A,M)};
_.X.removeEventListener=function(H,U,A,M){_.WS(this,H,U,A,M)};
_.X.dispatchEvent=function(H){var U,A=this.parentEventTarget_;if(A)for(U=[];A;A=A.parentEventTarget_)U.push(A);A=this.actualEventTarget_;var M=H.type||H;if(typeof H==="string")H=new _.$R(H,A);else if(H instanceof _.$R)H.target=H.target||A;else{var W=H;H=new _.$R(M,A);_.dG.extend(H,W)}W=!0;var w;if(U)for(w=U.length-1;!H.propagationStopped_&&w>=0;w--){var d=H.currentTarget=U[w];W=TPw(d,M,!0,H)&&W}H.propagationStopped_||(d=H.currentTarget=A,W=TPw(d,M,!0,H)&&W,H.propagationStopped_||(W=TPw(d,M,!1,H)&&
W));if(U)for(w=0;!H.propagationStopped_&&w<U.length;w++)d=H.currentTarget=U[w],W=TPw(d,M,!1,H)&&W;return W};
_.X.disposeInternal=function(){_.LW.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.X.listen=function(H,U,A,M){return this.eventTargetListeners_.add(String(H),U,!1,A,M)};
_.X.listenOnce=function(H,U,A,M){return this.eventTargetListeners_.add(String(H),U,!0,A,M)};
_.X.unlisten=function(H,U,A,M){return this.eventTargetListeners_.remove(String(H),U,A,M)};
_.X.removeAllListeners=function(H){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(H):0};
var TPw=function(H,U,A,M){U=H.eventTargetListeners_.listeners[String(U)];if(!U)return!0;U=U.concat();for(var W=!0,w=0;w<U.length;++w){var d=U[w];if(d&&!d.removed&&d.capture==A){var O=d.listener,f=d.handler||d.src;d.callOnce&&ekk(H.eventTargetListeners_,d);W=O.call(f,M)!==!1&&W}}return W&&!M.defaultPrevented};
_.LW.prototype.getListener=function(H,U,A,M){return this.eventTargetListeners_.getListener(String(H),U,A,M)};
_.LW.prototype.hasListener=function(H,U){return this.eventTargetListeners_.hasListener(H!==void 0?String(H):void 0,U)};var wa=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(H){return H&&AsyncContext.Snapshot.wrap(H)}:function(H){return H};var jnm=function(H,U){this.create_=H;this.reset_=U;this.occupants_=0;this.JSC$10061_head_=null};
jnm.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var H=this.JSC$10061_head_;this.JSC$10061_head_=H.next;H.next=null}else H=this.create_();return H};
jnm.prototype.put=function(H){this.reset_(H);this.occupants_<100&&(this.occupants_++,H.next=this.JSC$10061_head_,this.JSC$10061_head_=H)};var IjH=function(){this.workTail_=this.workHead_=null};
IjH.prototype.add=function(H,U){var A=lMN.get();A.set(H,U);this.workTail_?this.workTail_.next=A:this.workHead_=A;this.workTail_=A};
IjH.prototype.remove=function(){var H=null;this.workHead_&&(H=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),H.next=null);return H};
var lMN=new jnm(function(){return new QnB},function(H){return H.reset()}),QnB=function(){this.next=this.scope=this.fn=null};
QnB.prototype.set=function(H,U){this.fn=H;this.scope=U;this.next=null};
QnB.prototype.reset=function(){this.next=this.scope=this.fn=null};var VMn,GaN,$U4,HAk;GaN=!1;$U4=new IjH;_.Xf=function(H,U){VMn||HAk();GaN||(VMn(),GaN=!0);$U4.add(H,U)};
HAk=function(){var H=Promise.resolve(void 0);VMn=function(){H.then(YW_)}};var UU2=function(H){H.prototype.$goog_Thenable=!0},Ar2=function(H){if(!H)return!1;
try{return!!H.$goog_Thenable}catch(U){return!1}};var Myn,WTB,w5w,iAz,bAy,dUm,fM3,oVK,nVm,Pxw,J3t;_.IQ=function(H,U){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(H!=_.UR)try{var A=this;H.call(U,function(M){A.resolve_(2,M)},function(M){A.resolve_(3,M)})}catch(M){this.resolve_(3,M)}};
Myn=function(){this.next=this.context=this.JSC$10072_onRejected=this.JSC$10072_onFulfilled=this.child=null;this.always=!1};
Myn.prototype.reset=function(){this.context=this.JSC$10072_onRejected=this.JSC$10072_onFulfilled=this.child=null;this.always=!1};
WTB=new jnm(function(){return new Myn},function(H){H.reset()});
w5w=function(H,U,A){var M=WTB.get();M.JSC$10072_onFulfilled=H;M.JSC$10072_onRejected=U;M.context=A;return M};
_.DH=function(H){if(H instanceof _.IQ)return H;var U=new _.IQ(_.UR);U.resolve_(2,H);return U};
_.H$=function(H){return new _.IQ(function(U,A){A(H)})};
iAz=function(H,U,A){X5B(H,U,A,null)||_.Xf(_.vg(U,H))};
_.iR=function(H){return new _.IQ(function(U,A){var M=H.length,W=[];if(M)for(var w=function(J,F){M--;W[J]=F;M==0&&U(W)},d=function(J){A(J)},O,f=0;f<H.length;f++)O=H[f],iAz(O,_.vg(w,f),d);
else U(W)})};
bAy=function(H){return new _.IQ(function(U){var A=H.length,M=[];if(A)for(var W=function(O,f,J){A--;M[O]=f?{fulfilled:!0,value:J}:{fulfilled:!1,reason:J};A==0&&U(M)},w,d=0;d<H.length;d++)w=H[d],iAz(w,_.vg(W,d,!0),_.vg(W,d,!1));
else U(M)})};
dUm=function(H){return new _.IQ(function(U,A){var M=H.length,W=[];if(M)for(var w=function(J){U(J)},d=function(J,F){M--;
W[J]=F;M==0&&A(W)},O,f=0;f<H.length;f++)O=H[f],iAz(O,w,_.vg(d,f));
else U(void 0)})};
_.oL=function(){var H,U,A=new _.IQ(function(M,W){H=M;U=W});
return new OAh(A,H,U)};
_.IQ.prototype.then=function(H,U,A){return uQB(this,wa(typeof H==="function"?H:null),wa(typeof U==="function"?U:null),A)};
UU2(_.IQ);fM3=function(H,U,A,M){ZAB(H,w5w(U||_.UR,A||null,M))};
_.bR=function(H,U){U=wa(U);U=w5w(U,U);U.always=!0;ZAB(H,U);return H};
_.IQ.prototype.finally=function(H){var U=this;H=wa(H);return new _.IQ(function(A,M){fM3(U,function(W){H();A(W)},function(W){H();
M(W)})})};
_.IQ.prototype.thenCatch=function(H,U){return uQB(this,null,wa(H),U)};
_.IQ.prototype.catch=_.IQ.prototype.thenCatch;_.IQ.prototype.cancel=function(H){if(this.state_==0){var U=new _.Oa(H);_.Xf(function(){Jrz(this,U)},this)}};
var Jrz=function(H,U){if(H.state_==0)if(H.parent_){var A=H.parent_;if(A.callbackEntries_){for(var M=0,W=null,w=null,d=A.callbackEntries_;d&&(d.always||(M++,d.child==H&&(W=d),!(W&&M>1)));d=d.next)W||(w=d);W&&(A.state_==0&&M==1?Jrz(A,U):(w?(M=w,M.next==A.callbackEntriesTail_&&(A.callbackEntriesTail_=M),M.next=M.next.next):KTp(A),oVK(A,W,3,U)))}H.parent_=null}else H.resolve_(3,U)},ZAB=function(H,U){H.callbackEntries_||H.state_!=2&&H.state_!=3||FTk(H);
H.callbackEntriesTail_?H.callbackEntriesTail_.next=U:H.callbackEntries_=U;H.callbackEntriesTail_=U},uQB=function(H,U,A,M){var W=w5w(null,null,null);
W.child=new _.IQ(function(w,d){W.JSC$10072_onFulfilled=U?function(O){try{var f=U.call(M,O);w(f)}catch(J){d(J)}}:w;
W.JSC$10072_onRejected=A?function(O){try{var f=A.call(M,O);f===void 0&&O instanceof _.Oa?d(O):w(f)}catch(J){d(J)}}:d});
W.child.parent_=H;ZAB(H,W);return W.child};
_.IQ.prototype.unblockAndFulfill_=function(H){this.state_=0;this.resolve_(2,H)};
_.IQ.prototype.unblockAndReject_=function(H){this.state_=0;this.resolve_(3,H)};
_.IQ.prototype.resolve_=function(H,U){this.state_==0&&(this===U&&(H=3,U=new TypeError("ya")),this.state_=1,X5B(U,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=U,this.state_=H,this.parent_=null,FTk(this),H!=3||U instanceof _.Oa||Pxw(this,U)))};
var X5B=function(H,U,A,M){if(H instanceof _.IQ)return fM3(H,U,A,M),!0;if(Ar2(H))return H.then(U,A,M),!0;if(_.ht(H))try{var W=H.then;if(typeof W==="function")return shr(H,W,U,A,M),!0}catch(w){return A.call(M,w),!0}return!1},shr=function(H,U,A,M,W){var w=!1,d=function(f){w||(w=!0,A.call(W,f))},O=function(f){w||(w=!0,M.call(W,f))};
try{U.call(H,d,O)}catch(f){O(f)}},FTk=function(H){H.executing_||(H.executing_=!0,_.Xf(H.executeCallbacks_,H))},KTp=function(H){var U=null;
H.callbackEntries_&&(U=H.callbackEntries_,H.callbackEntries_=U.next,U.next=null);H.callbackEntries_||(H.callbackEntriesTail_=null);return U};
_.IQ.prototype.executeCallbacks_=function(){for(var H;H=KTp(this);)oVK(this,H,this.state_,this.result_);this.executing_=!1};
oVK=function(H,U,A,M){if(A==3&&U.JSC$10072_onRejected&&!U.always)for(;H&&H.hadUnhandledRejection_;H=H.parent_)H.hadUnhandledRejection_=!1;if(U.child)U.child.parent_=null,nVm(U,A,M);else try{U.always?U.JSC$10072_onFulfilled.call(U.context):nVm(U,A,M)}catch(W){J3t.call(null,W)}WTB.put(U)};
nVm=function(H,U,A){U==2?H.JSC$10072_onFulfilled.call(H.context,A):H.JSC$10072_onRejected&&H.JSC$10072_onRejected.call(H.context,A)};
Pxw=function(H,U){H.hadUnhandledRejection_=!0;_.Xf(function(){H.hadUnhandledRejection_&&J3t.call(null,U)})};
J3t=wK;_.Oa=function(H){_.HF.call(this,H)};
_.zo(_.Oa,_.HF);_.Oa.prototype.name="cancel";var OAh=function(H,U,A){this.promise=H;this.resolve=U;this.reject=A};var da;_.ZT=function(H,U){_.LW.call(this);this.JSC$10084_interval_=H||1;this.timerObject_=U||_.Mr;this.boundTick_=(0,_.i9)(this.tick_,this);this.last_=_.x4()};
_.zo(_.ZT,_.LW);_.X=_.ZT.prototype;_.X.enabled=!1;_.X.JSC$10086_timer_=null;_.X.setInterval=function(H){this.JSC$10084_interval_=H;this.JSC$10086_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$10086_timer_&&this.stop()};
_.X.tick_=function(){if(this.enabled){var H=_.x4()-this.last_;H>0&&H<this.JSC$10084_interval_*.8?this.JSC$10086_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10084_interval_-H):(this.JSC$10086_timer_&&(this.timerObject_.clearTimeout(this.JSC$10086_timer_),this.JSC$10086_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.X.start=function(){this.enabled=!0;this.JSC$10086_timer_||(this.JSC$10086_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10084_interval_),this.last_=_.x4())};
_.X.stop=function(){this.enabled=!1;this.JSC$10086_timer_&&(this.timerObject_.clearTimeout(this.JSC$10086_timer_),this.JSC$10086_timer_=null)};
_.X.disposeInternal=function(){_.ZT.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
da=function(H,U,A){if(typeof H==="function")A&&(H=(0,_.i9)(H,A));else if(H&&typeof H.handleEvent=="function")H=(0,_.i9)(H.handleEvent,H);else throw Error("za");return Number(U)>2147483647?-1:_.Mr.setTimeout(H,U||0)};
_.NDw=function(H){var U=null;return(new _.IQ(function(A,M){U=da(function(){A(void 0)},H);
U==-1&&M(Error("Aa"))})).thenCatch(function(A){_.Mr.clearTimeout(U);
throw A;})};var Tg=function(H){_.XG.call(this);this.streamzLogger=H;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$10090_flushTimer=new _.ZT(this.flushInterval);this.JSC$10090_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.kl(this,this.JSC$10090_flushTimer)};
_.R(Tg,_.XG);Tg.prototype.sendIsolatedPayload=function(H){this.shouldSendIsolatedPayload=H;this.invocationLimit=1};
var SWB=function(H){H.JSC$10090_flushTimer.enabled||H.JSC$10090_flushTimer.start();H.invocationCount++;H.invocationCount>=H.invocationLimit&&H.snapshotAndFlush()};
Tg.prototype.snapshotAndFlush=function(){var H=this.metricMap.values();H=[].concat(_.vI(H)).filter(function(U){return U.cellMap.size});
H.length&&this.streamzLogger.flush(H,this.shouldSendIsolatedPayload);p5z(H);this.invocationCount=0;this.JSC$10090_flushTimer.enabled&&this.JSC$10090_flushTimer.stop()};
Tg.prototype.addNewCounter=function(H){var U=_.QY.apply(1,arguments);this.metricMap.has(H)||this.metricMap.set(H,new tMB(H,U))};
Tg.prototype.addNewEventMetric=function(H){var U=_.QY.apply(1,arguments);this.metricMap.has(H)||this.metricMap.set(H,new cak(H,U))};
var LT2=function(H,U){return H.disabledMetrics.has(U)?void 0:H.metricMap.get(U)};
Tg.prototype.JSC$10090_incrementCounter=function(H){this.JSC$10090_incrementCounterBy(H,1,_.QY.apply(1,arguments))};
Tg.prototype.JSC$10090_incrementCounterBy=function(H,U){var A=_.QY.apply(2,arguments),M=LT2(this,H);M&&M instanceof tMB&&(M.JSC$10029_incrementCounterBy(U,A),SWB(this))};
Tg.prototype.record=function(H,U){var A=_.QY.apply(2,arguments),M=LT2(this,H);M&&M instanceof cak&&(M.record(U,A),SWB(this))};
var p5z=function(H){for(var U=0;U<H.length;U++)H[U].clear()};_.O0=function(H,U,A){A=A===void 0?{}:A;U=Error.call(this,U);this.message=U.message;"stack"in U&&(this.stack=U.stack);this.code=H;this.metadata=A;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(_.O0,Error);_.O0.prototype.toString=function(){var H="RpcError("+(hYF(this.code)||String(this.code))+")";this.message&&(H+=": "+this.message);return H};_.RYz=_.Mr.JSON.parse;_.uR=_.Mr.JSON.stringify;_.UH=_.Mr.JSON.parse;_.EV2=function(H){switch(H){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 mUz=function(H){switch(H){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var gVB,aMw=function(){};
_.zo(aMw,_.kat);aMw.prototype.createInstance=function(){return new XMLHttpRequest};
gVB=new aMw;_.Zm=function(H){_.LW.call(this);this.headers=new Map;this.JSC$10099_xmlHttpFactory_=H||null;this.JSC$10099_active_=!1;this.JSC$10099_xhr_=null;this.JSC$10099_lastUri_="";this.JSC$10099_lastErrorCode_=0;this.JSC$10099_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$10099_timeoutId_=null;this.responseType_="";this.JSC$10099_withCredentials_=!1};
_.zo(_.Zm,_.LW);var xUh=/^https?$/i,zYH=["POST","PUT"],Cxg=[],x$F=function(H,U,A,M,W,w,d){var O=new _.Zm;Cxg.push(O);U&&O.listen("complete",U);O.listenOnce("ready",O.cleanupSend_);w&&(O.timeoutInterval_=Math.max(0,w));d&&(O.JSC$10099_withCredentials_=d);O.send(H,A,M,W)};
_.Zm.prototype.cleanupSend_=function(){this.dispose();_.Dc(Cxg,this)};
_.Zm.prototype.send=function(H,U,A,M){if(this.JSC$10099_xhr_)throw Error("Ba`"+this.JSC$10099_lastUri_+"`"+H);U=U?U.toUpperCase():"GET";this.JSC$10099_lastUri_=H;this.JSC$10099_lastError_="";this.JSC$10099_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$10099_active_=!0;this.JSC$10099_xhr_=this.createXhr();this.JSC$10099_xhr_.onreadystatechange=wa((0,_.i9)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$10099_xhr_.open(U,String(H),!0),this.inOpen_=!1}catch(d){tyK(this,d);return}H=
A||"";A=new Map(this.headers);if(M)if(Object.getPrototypeOf(M)===Object.prototype)for(var W in M)A.set(W,M[W]);else if(typeof M.keys==="function"&&typeof M.get==="function"){W=_.b(M.keys());for(var w=W.next();!w.done;w=W.next())w=w.value,A.set(w,M.get(w))}else throw Error("Ca`"+String(M));M=Array.from(A.keys()).find(function(d){return"content-type"==d.toLowerCase()});
W=_.Mr.FormData&&H instanceof _.Mr.FormData;!_.y0(zYH,U)||M||W||A.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");U=_.b(A);for(M=U.next();!M.done;M=U.next())A=_.b(M.value),M=A.next().value,A=A.next().value,this.JSC$10099_xhr_.setRequestHeader(M,A);this.responseType_&&(this.JSC$10099_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$10099_xhr_&&this.JSC$10099_xhr_.withCredentials!==this.JSC$10099_withCredentials_&&(this.JSC$10099_xhr_.withCredentials=this.JSC$10099_withCredentials_);
try{this.JSC$10099_timeoutId_&&(clearTimeout(this.JSC$10099_timeoutId_),this.JSC$10099_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$10099_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$10099_xhr_.send(H),this.inSend_=!1}catch(d){tyK(this,d)}};
_.Zm.prototype.createXhr=function(){return this.JSC$10099_xmlHttpFactory_?this.JSC$10099_xmlHttpFactory_.createInstance():gVB.createInstance()};
_.Zm.prototype.timeout_=function(){typeof ikr!="undefined"&&this.JSC$10099_xhr_&&(this.JSC$10099_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$10099_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var tyK=function(H,U){H.JSC$10099_active_=!1;H.JSC$10099_xhr_&&(H.inAbort_=!0,H.JSC$10099_xhr_.abort(),H.inAbort_=!1);H.JSC$10099_lastError_=U;H.JSC$10099_lastErrorCode_=5;crB(H);yrB(H)},crB=function(H){H.errorDispatched_||(H.errorDispatched_=!0,H.dispatchEvent("complete"),H.dispatchEvent("error"))};
_.Zm.prototype.abort=function(H){this.JSC$10099_xhr_&&this.JSC$10099_active_&&(this.JSC$10099_active_=!1,this.inAbort_=!0,this.JSC$10099_xhr_.abort(),this.inAbort_=!1,this.JSC$10099_lastErrorCode_=H||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),yrB(this))};
_.Zm.prototype.disposeInternal=function(){this.JSC$10099_xhr_&&(this.JSC$10099_active_&&(this.JSC$10099_active_=!1,this.inAbort_=!0,this.JSC$10099_xhr_.abort(),this.inAbort_=!1),yrB(this,!0));_.Zm.superClass_.disposeInternal.call(this)};
_.Zm.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)BDh(this);else this.onReadyStateChangeEntryPoint_()};
_.Zm.prototype.onReadyStateChangeEntryPoint_=function(){BDh(this)};
var BDh=function(H){if(H.JSC$10099_active_&&typeof ikr!="undefined")if(H.inSend_&&_.fR(H)==4)setTimeout(H.onReadyStateChange_.bind(H),0);else if(H.dispatchEvent("readystatechange"),H.isComplete()){H.JSC$10099_active_=!1;try{if(H.isSuccess())H.dispatchEvent("complete"),H.dispatchEvent("success");else{H.JSC$10099_lastErrorCode_=6;try{var U=_.fR(H)>2?H.JSC$10099_xhr_.statusText:""}catch(A){U=""}H.JSC$10099_lastError_=U+" ["+H.getStatus()+"]";crB(H)}}finally{yrB(H)}}},yrB=function(H,U){if(H.JSC$10099_xhr_){H.JSC$10099_timeoutId_&&
(clearTimeout(H.JSC$10099_timeoutId_),H.JSC$10099_timeoutId_=null);
var A=H.JSC$10099_xhr_;H.JSC$10099_xhr_=null;U||H.dispatchEvent("ready");try{A.onreadystatechange=null}catch(M){}}};
_.Zm.prototype.isActive=function(){return!!this.JSC$10099_xhr_};
_.Zm.prototype.isComplete=function(){return _.fR(this)==4};
_.Zm.prototype.isSuccess=function(){var H=this.getStatus(),U;if(!(U=mUz(H))){if(H=H===0)H=hF0(String(this.JSC$10099_lastUri_)),H=!xUh.test(H);U=H}return U};
_.fR=function(H){return H.JSC$10099_xhr_?H.JSC$10099_xhr_.readyState:0};
_.X=_.Zm.prototype;_.X.getStatus=function(){try{return _.fR(this)>2?this.JSC$10099_xhr_.status:-1}catch(H){return-1}};
_.X.getResponseText=function(){try{return this.JSC$10099_xhr_?this.JSC$10099_xhr_.responseText:""}catch(H){return""}};
_.X.getResponse=function(){try{if(!this.JSC$10099_xhr_)return null;if("response"in this.JSC$10099_xhr_)return this.JSC$10099_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$10099_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$10099_xhr_)return this.JSC$10099_xhr_.mozResponseArrayBuffer}return null}catch(H){return null}};
_.X.getAllResponseHeaders=function(){return this.JSC$10099_xhr_&&_.fR(this)>=2?this.JSC$10099_xhr_.getAllResponseHeaders()||"":""};
_.X.getLastError=function(){return typeof this.JSC$10099_lastError_==="string"?this.JSC$10099_lastError_:String(this.JSC$10099_lastError_)};var IMc=function(){};
IMc.prototype.send=function(H,U,A){U=U===void 0?function(){}:U;
A=A===void 0?function(){}:A;
x$F(H.url,function(M){M=M.target;M.isSuccess()?U(M.getResponseText()):A(M.getStatus())},H.requestType,H.body,H.requestHeaders,H.timeoutMillis,H.withCredentials)};
IMc.prototype.getTransmissionType=function(){return 1};var rrr=function(H,U){this.o9F=H;this.event=U;this.startTime=jl()},MC8;
rrr.prototype.done=function(){this.o9F.yT(this.event,jl()-this.startTime)};
var Jn=function(){Dn.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.R(Jn,Dn);_.KR=function(H,U,A){var M=jl();U=U();H.yT(A,jl()-M);return U};
MC8=function(){Jn.apply(this,arguments)};
_.R(MC8,Jn);_.X=MC8.prototype;_.X.v52=function(){};
_.X.yB=function(){};
_.X.yT=function(){};
_.X.logError=function(){};
_.X.jo=function(){};
_.X.e62=function(){};
_.X.sMf=function(){};
_.X.ikj=function(){};
var eYp=function(H){Jn.call(this);var U=this;this.gi=H;this.TEST_ONLY={t1l:function(){return U.gi},
getExperimentIds:function(){return U.gi.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void U.gi.dispose()})};
_.R(eYp,Jn);_.X=eYp.prototype;_.X.update=function(H){this.gi.dispose();this.gi=H};
_.X.yB=function(H){this.gi.yB(H)};
_.X.yT=function(H,U){this.gi.yT(H,U)};
_.X.logError=function(H){this.gi.logError(H)};
_.X.jo=function(){this.gi.jo()};
_.X.e62=function(H){this.gi.e62(H)};
_.X.sMf=function(H){this.gi.sMf(H)};
_.X.ikj=function(H){this.gi.ikj(H)};
_.X.v52=function(H){this.gi.v52(H)};
var DUH=function(H,U){_.XG.call(this);var A=this;this.callback=H;this.cc8=U;this.dmI=-U;this.addOnDisposeCallback(function(){return void clearTimeout(A.timer)})};
_.R(DUH,_.XG);var $Ug=function(H){if(H.timer===void 0){var U=Math.max(0,H.dmI+H.cc8-jl());H.timer=setTimeout(function(){try{H.callback()}finally{H.dmI=jl(),H.timer=void 0}},U)}},lMw=function(H,U){Jn.call(this);
this.metrics=H;this.am=U};
_.R(lMw,Jn);_.X=lMw.prototype;_.X.v52=function(H){this.metrics.i2M.record(H,this.am)};
_.X.yB=function(H){this.metrics.eventCount.increment(H,this.am)};
_.X.yT=function(H,U){this.metrics.bq2.record(U,H,this.am)};
_.X.logError=function(H){this.metrics.errorCount.increment(H,this.am)};
_.X.e62=function(H){this.metrics.fHO.increment(H,this.am)};
_.X.sMf=function(H){this.metrics.hYL.increment(H,this.am)};
_.X.ikj=function(H){this.metrics.c4l.increment(H,this.am)};
var W6h=function(H,U){U=U===void 0?[]:U;var A={am:H.am||"_",h51:H.h51||[],qUH:H.qUH|0,destinationUrl:H.destinationUrl,qO2:H.qO2||function(){},
fDX:H.fDX||function(w,d){return Aj4(w,d,A.qO2,A.destinationUrl)}},M=A.fDX("52",A.h51.concat(U));
lMw.call(this,{i2M:new ERw(M),errorCount:new xgr(M),eventCount:new gR2(M),bq2:new aTK(M),vkQ:new mgB(M),fHO:new z8K(M),hYL:new C9n(M),c4l:new tvH(M)},A.am);var W=this;this.TEST_ONLY={getExperimentIds:function(){return W.options.h51.concat(W.sek).sort(function(w,d){return w-d})}};
this.options=A;this.service=M;this.yff=!H.fDX;this.flushDebouncer=new DUH(function(){return void W.service.snapshotAndFlush()},A.qUH);
this.addOnDisposeCallback(function(){W.flushDebouncer.dispose();W.yff&&W.service.dispose()});
(this.sek=U.slice()).sort(_.ctF)};
_.R(W6h,lMw);W6h.prototype.jo=function(){$Ug(this.flushDebouncer)};var GdF=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(GdF,_.fN);_.YJ8=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(_.YJ8,_.fN);var Fk=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H,0,Fk.messageId)};
_.R(Fk,_.fN);var Gaw=_.do8(Fk);Fk.messageId="bfkj";var mUM=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(mUM,_.fN);var YWy=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(YWy,_.fN);var qWw=_.a5(YWy);_.r1=function(){var H=this;this.promise=new Promise(function(U,A){H.resolve=U;H.reject=A})};_.ow=function(H){_.XG.call(this);var U=this;this.ftV=Math.floor(Math.random()*200);this.qvh=new YWy;if("challenge"in H&&Gaw(H.challenge)){var A=_.Mn(H.challenge,4,void 0,cr);var M=_.Mn(H.challenge,5,void 0,cr);_.Mn(H.challenge,7,void 0,cr)&&(this.qvh=qWw(_.Mn(H.challenge,7,void 0,cr)))}else A=H.program,M=H.globalName;this.addOnDisposeCallback(function(){var L,m,z;return _.u(function(c){if(c.nextAddress==1)return c.yield(U.opT,2);L=c.yieldResult;m=L.zFH;(z=m)==null||z();_.DO(c)})});
this.s5=wK0(H.fkX||{},this.qvh);_.kl(this,this.s5);var W=new _.r1;this.opT=W.promise;this.s5.yB("t");var w=this.s5.share(),d=new rrr(w,"t"),O=function(L,m,z,c){if(!U.s5.isDisposed()){var C="k";m?C="h":z&&(C="u");C!=="k"?c!==0&&(U.s5.yB(C),U.s5.yT(C,L)):U.ftV<=0?(U.s5.yB(C),U.s5.yT(C,L),U.ftV=Math.floor(Math.random()*200)):U.ftV--}},f=function(L,m,z,c){Promise.resolve().then(function(){d.done();
w.jo();w.dispose();W.resolve({bOE:L,zFH:m,z0z:z,nrE:c})})};
if(!_.Mr[M])throw this.s5.logError(25),Error("Da");if(!_.Mr[M].a)throw this.s5.logError(26),Error("Ea");try{var J=_.Mr[M].a;M=[];for(var F=[],P=gVE(this.qvh),n=0;n<P.length;n++)M.push(P[n]),F.push(1);var N=aMN(this.qvh);for(P=0;P<N.length;P++)M.push(N[P]),F.push(2);this.g7f=_.b(J(A,f,!0,H.dUf,O,[M,F],_.Mn(this.qvh,5),!1)).next().value;this.nCX=W.promise.then(function(){})}catch(L){throw this.s5.logError(28),L;
}};
_.R(_.ow,_.XG);_.ow.prototype.snapshot=function(H){if(this.isDisposed())throw Error("Fa");this.s5.yB("n");var U=this.s5.share();return this.opT.then(function(A){var M=A.bOE;return new Promise(function(W){var w=new rrr(U,"n");M(function(d){w.done();U.v52(d.length);U.jo();U.dispose();W(d)},[H.f2,
H.pv2,H.fj4,H.moy])})})};
_.ow.prototype.gLj=function(H){this.opT.then(function(U){var A;(A=U.z0z)==null||A(H)})};
_.ow.prototype.zkT=function(H,U){return this.opT.then(function(A){var M;return(M=A.nrE)==null?void 0:M(H,U,!1)})};
_.ow.prototype.aZF=function(){return this.s5.share()};var hYr=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(hYr,_.fN);var zWc=_.do8(hYr);var kaH=function(){this.promises={};this.fQI=null},vVK=function(){kaH.instance||(kaH.instance=new kaH);
return kaH.instance},jhg=function(H,U){return TD3(H,_.qK(U,GdF,1,cr),_.qK(U,_.YJ8,2,cr),_.Mn(U,3,void 0,cr))},TD3=function(H,U,A,M){if(!U&&!A)return Promise.resolve();
if(!M)return OOh(U,A);var W;(W=H.promises)[M]||(W[M]=new Promise(function(w,d){OOh(U,A).then(function(){H.fQI=M;w()},function(O){delete H.promises[M];
d(O)})}));
return H.promises[M]};var IMK=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(IMK,_.fN);var Qhz=function(H,U){return _.Pl(H,1,U)},Vyw=function(H,U){return _.Pl(H,2,U)};var Ff=function(H){_.XG.call(this);var U=this;this.options=H;this.iMF=new _.r1;this.nCX=this.iMF.promise;this.a3X=new _.r1;this.sXp=1;this.gQX=new _.r1;this.rqj=[];this.isPaused=!1;this.dR1=H.dR1||function(){};
this.odj=new eYp(wK0(H.fkX||{}));HOm(this,H.nQ,H.xAc,H.tlt,H.yyU,Object.assign({},UKn,H.ic7||{}));this.addOnDisposeCallback(function(){return void Ajg(U)})};
_.R(Ff,_.XG);Ff.prototype.snapshot=function(H){var U=this;return _.u(function(A){switch(A.nextAddress){case 1:if(U.isDisposed())throw Error("Fa");if(U.l6||U.oAG){A.jumpTo(2);break}return A.yield(U.a3X.promise,2);case 2:if(!U.l6){A.jumpTo(4);break}return A.yield(U.l6.snapshot(H),5);case 5:return A.return(A.yieldResult);case 4:throw U.oAG;}})};
Ff.prototype.pause=function(){this.isDisposed()||this.isPaused||(this.isPaused=!0,this.cq&&this.cq.pause())};
Ff.prototype.resume=function(){!this.isDisposed()&&this.isPaused&&(this.isPaused=!1,this.cq&&this.cq.resume())};
Ff.prototype.checkForRefresh=function(){var H=this;return _.u(function(U){if(H.isDisposed())throw Error("Fa");var A;if(A=H.cq)A=H.cq,A.isExpired()?(MC2(A),A.resolver(0),A=!0):A=!1,A=!A;return A?U.jumpTo(0):U.yield(H.gQX.promise,0)})};
var wKh=function(H){var U;return _.u(function(A){if(H.isDisposed())throw Error("Fa");(U=H.cq)==null||W6k(U);return A.yield(H.gQX.promise,0)})},Ajg=function(H){H.oAG=Error("Ha");
H.a3X.resolve();xU0(H.iMF.promise);H.iMF.reject(Error("Ha"));H.odj.dispose();Promise.all(H.rqj).then(function(){var A;return _.u(function(M){(A=H.l6)==null||A.dispose();H.l6=void 0;_.DO(M)})});
H.rqj=[];var U;(U=H.cq)==null||W6k(U);xU0(H.gQX.promise);H.gQX.reject(Error("Ha"))};
Ff.prototype.gLj=function(H){var U,A;(U=this.l6)==null||(A=U.gLj)==null||A.call(U,H)};
Ff.prototype.zkT=function(H,U){var A,M,W;return(W=(A=this.l6)==null?void 0:(M=A.zkT)==null?void 0:M.call(A,H,U))!=null?W:Promise.resolve()};
var XKK=function(H,U){var A=H.dR1;H.dR1=function(){A();U()}},iO3=function(H,U){H.isDisposed()||(H.l6=U,H.odj.update(U.aZF()),H.a3X.resolve(),H.iMF.resolve(void 0),H.dR1())};
Ff.prototype.handleError=function(H){if(!this.isDisposed()){this.oAG=H;this.a3X.resolve();var U,A;(A=(U=this.options).mPQ)==null||A.call(U,H)}};
var bOy=function(H,U){U&&(Promise.all(H.rqj).then(function(){return void U.dispose()}),H.rqj=[])},PS=function(H,U){H.sXp=U;
var A,M;(M=(A=H.options).zLU)==null||M.call(A,U)},dK2=function(H){H.isDisposed()||(H.gQX.resolve(),H.gQX=new _.r1)},HOm=function(H,U,A,M,W,w){M=M===void 0?vVK():M;
W=W===void 0?Promise.resolve(void 0):W;var d,O,f,J,F,P,n,N,L,m,z,c;_.u(function(C){switch(C.nextAddress){case 1:return C.yield(0,3);case 3:O=null;if(!d){C.jumpTo(6);break}PS(H,7);_.zj(C,7);return C.yield(Mg(d.snapshot({}),w.dRF,function(){return Promise.resolve("E:CTO")}),9);
case 9:O=C.yieldResult;_.xD(C,6);break;case 7:_.eG(C),O="E:UCE";case 6:f=void 0,J=d?w.ygK:w.g1k,F=new Yl(J,w.zQe,w.mwf,w.dwf),P=1;case 10:if(!(P<=w.maxAttempts)){C.jumpTo(12);break}if(P===1){C.jumpTo(13);break}PS(H,0);H.cq=new s0(F.getValue(),w.rgT,w.wGk);return C.yield(H.cq.promise,14);case 14:n=C.yieldResult,H.cq=void 0,n===1?(P=1,F.reset()):Smg(F);case 13:_.zj(C,15);N=void 0;if(A){N=A;C.jumpTo(17);break}PS(H,5);L=M.fQI;return C.yield(Mg(OOk(U,L,O),w.krL,function(){return Promise.reject(Error("Ia"))}),
18);
case 18:N=C.yieldResult;case 17:return PS(H,3),C.yield(Mg(jhg(M,N),w.eLM,function(){return Promise.reject(Error("Ja"))}),19);
case 19:return PS(H,8),C.yield(W,20);case 20:return m=new _.ow({challenge:N,fkX:H.options.fkX,dUf:H.options.dUf}),C.yield(Mg(m.nCX,w.pkM,function(){return Promise.reject(Error("Ka"))}),21);
case 21:f=m;C.jumpTo(12);break;case 15:z=_.eG(C),H.handleError(z),dK2(H);case 11:P++;C.jumpTo(10);break;case 12:if(H.isDisposed()){C.jumpTo(5);break}f&&(A=void 0,bOy(H,d),d=f,iO3(H,f),dK2(H));PS(H,2);H.cq=new s0(w.xd4,w.rgT,w.wGk);H.isPaused&&H.cq.pause();return C.yield(H.cq.promise,22);case 22:H.cq=void 0;if(H.isDisposed()){C.jumpTo(5);break}C.jumpTo(3);break;case 5:(c=d)==null||c.dispose(),_.DO(C)}})};
Ff.prototype.aZF=function(){return this.odj.share()};
var UKn={xd4:432E5,rgT:3E5,wGk:10,dRF:1E4,krL:3E4,eLM:3E4,pkM:6E4,g1k:1E3,ygK:6E4,zQe:6E5,mwf:.25,dwf:2,maxAttempts:10},s0=function(H,U,A){var M=this;this.endTimeMs=0;this.hb1=null;this.isPaused=!1;this.tick=function(){if(!M.isPaused){var W=M.endTimeMs-Date.now();W<=M.inA?(M.hb1=null,M.resolver(0)):M.hb1=setTimeout(M.tick,Math.min(W,M.rgT))}};
this.rgT=U;this.inA=A;this.promise=new Promise(function(W){M.resolver=W});
uUp(this,H)},uUp=function(H,U){H.endTimeMs=Date.now()+U;
H.tick()};
s0.prototype.pause=function(){this.isPaused||(this.isPaused=!0,MC2(this))};
s0.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
var W6k=function(H){MC2(H);H.endTimeMs=0;H.isPaused=!1;H.resolver(1)},MC2=function(H){H.hb1&&(clearTimeout(H.hb1),H.hb1=null)};
s0.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var ZO3,f04=(ZO3=Math.imul)!=null?ZO3:function(H,U){return H*U|0},WJ=[196,
200,224,18],nR=function(H,U,A){A=A===void 0?[]:A;this.maxItems=H;this.oo=U===void 0?0:U;this.cA=A},f0g=function(H){var U=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!U)return new nR(H);var A=U.split(",");if(A.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new nR(H);U=A.slice(1);U.length===1&&U[0]===""&&(U=[]);A=Number(A[0]);return isNaN(A)||A<0||A>U.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new nR(H)):new nR(H,A,U)};
nR.prototype.serialize=function(){return String(this.oo)+","+this.cA.join()};
nR.prototype.insert=function(H,U){var A=void 0;if(this.cA[this.oo]!==H){var M=this.cA.indexOf(H);M!==-1?(this.cA.splice(M,1),M<this.oo&&this.oo--,this.cA.splice(this.oo,0,H)):(A=this.cA[this.oo],this.cA[this.oo]=H)}this.oo=(this.oo+1)%this.maxItems;H=uUr("iU5q-!O9@$",this.serialize());A&&H&&U(A);return H};
var JjK=function(H,U){this.p02=U;try{var A=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(M){A=!1}A&&(this.index=f0g(H))},K6B=function(H,U,A,M,W){var w=H.index?_.KR(H.p02,function(){return F6E(H.index,K6E(U),A,M,W)},"W"):"u";
H.p02.ikj(w)},oD2=function(H,U,A){var M=_.b(H.index?_.KR(H.p02,function(){return PDr(K6E(U),A)},"R"):["u"]),W=M.next().value;
M=M.next().value;H.p02.sMf(W);return M};var F6B={toString:function(H){var U=[],A=0;H-=-2147483648;U[A++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(H%52);for(H=Math.floor(H/52);H>0;)U[A++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(H%62),H=Math.floor(H/62);return U.join("")}};var nDh=function(H){H=PDp(H);for(var U=2654435769,A=2654435769,M=314159265,W=H.length,w=W,d=0,O=function(){U-=A;U-=M;U^=M>>>13;A-=M;A-=U;A^=U<<8;M-=U;M-=A;M^=A>>>13;U-=A;U-=M;U^=M>>>12;A-=M;A-=U;A^=U<<16;M-=U;M-=A;M^=A>>>5;U-=A;U-=M;U^=M>>>3;A-=M;A-=U;A^=U<<10;M-=U;M-=A;M^=A>>>15};w>=12;w-=12,d+=12)U+=sdH(H,d),A+=sdH(H,d+4),M+=sdH(H,d+8),O();
M+=W;switch(w){case 11:M+=H[d+10]<<24;case 10:M+=H[d+9]<<16;case 9:M+=H[d+8]<<8;case 8:A+=H[d+7]<<24;case 7:A+=H[d+6]<<16;case 6:A+=H[d+5]<<8;case 5:A+=H[d+4];case 4:U+=H[d+3]<<24;case 3:U+=H[d+2]<<16;case 2:U+=H[d+1]<<8;case 1:U+=H[d]}O();return F6B.toString(M)},PDp=function(H){for(var U=[],A=0;A<H.length;A++)U.push(H.charCodeAt(A));
return U},sdH=function(H,U){return H[U]+(H[U+1]<<8)+(H[U+2]<<16)+(H[U+3]<<24)};var N1=function(H){_.XG.call(this);this.f4=H;this.stH=new _.r1};
_.R(N1,_.XG);var Niw=function(H,U){var A=setTimeout(function(){H.stH.resolve()},U);
H.addOnDisposeCallback(function(){return void clearTimeout(A)})};
N1.prototype.pL1=function(H,U){var A=this.nA(H);U==null||U(A);return _.KR(this.f4,function(){return _.I_(A,2)},this.vqK)};
var S4y=function(H,U,A,M){return _.KR(H.f4,function(){return A?H.pL1(U,M):H.nA(U,M)},H.rcf)},pKm=function(H,U,A,M){N1.call(this,H);
this.rcQ=U;this.w8H=A;this.rcf="m";this.vqK="x";this.l2i=0;Niw(this,M)};
_.R(pKm,N1);pKm.prototype.nA=function(H,U){var A=this;this.f4.yB(this.rcf);++this.l2i>=this.w8H&&this.stH.resolve();var M=H();H=_.KR(this.f4,function(){return A.rcQ(M)},"C");
if(H===void 0)throw new rp(17,"YNJ:Undefined");if(!(H instanceof Uint8Array))throw new rp(18,"ODM:Invalid");U==null||U(H);return H};
var L6g=function(H,U,A){N1.call(this,H);this.gNf=U;this.rcf="f";this.vqK="z";Niw(this,A)};
_.R(L6g,N1);L6g.prototype.nA=function(){return this.gNf};
var Rbn=function(H,U,A){N1.call(this,H);this.rUB=U;this.rcf="w";this.vqK="z";Niw(this,A)};
_.R(Rbn,N1);Rbn.prototype.nA=function(){var H=this;return _.KR(this.f4,function(){return _.Q0(H.rUB)},"d")};
Rbn.prototype.pL1=function(){return this.rUB};
var EDh=function(H,U){N1.call(this,H);this.error=U;this.rcf="e";this.vqK="y"};
_.R(EDh,N1);var mKg=function(H,U){var A=(U(H.error.message)+":"+U(H.error.stack)).substring(0,2048);U=A.length+1;A=sdt(A);var M=new Uint8Array(4+A.length);M.set([42,U&127|128,U>>7,H.error.code]);M.set(A,4);return M};
EDh.prototype.nA=function(){if(this.cQI)return this.cQI;this.cQI=mKg(this,function(H){return"_"+nDh(H)});
return mKg(this,function(H){return H})};
var gDn=function(H,U,A){N1.call(this,H);this.f4n=U;this.clientState=A;this.rcf="S";this.vqK="q"};
_.R(gDn,N1);gDn.prototype.nA=function(){var H=Math.floor(Date.now()/1E3),U=[Math.random()*255,Math.random()*255],A=U.concat([this.f4n&255,this.clientState],[H>>24&255,H>>16&255,H>>8&255,H&255]);H=new Uint8Array(2+A.length);H[0]=34;H[1]=A.length;H.set(A,2);A=H.subarray(2);for(var M=U=U.length;M<A.length;++M)A[M]^=A[M%U];this.f4.e62(this.clientState);return H};var a0z={nNn:3E4,eFl:2E4},St=function(H){_.XG.call(this);var U=this;this.eWX=new _.r1;this.hjG=0;this.tF=void 0;this.state=2;this.vm=H.vm;this.nQ=H.nQ;this.ic7=Object.assign({},a0z,H.ic7||{});this.z6=H.vm.aZF();var A;this.onError=(A=H.onError)!=null?A:function(){};
this.oEh=H.oEh||!1;if(xK3(H)){var M=this.vm;this.ven=function(){return wKh(M).catch(function(d){d=U.reportError(new rp(U.zM?20:32,"TRG:Disposed",d));U.tF=d;var O;(O=U.zM)==null||O.dispose();U.zM=void 0;U.eWX.reject(d)})};
XKK(M,function(){return void zbm(U)});
M.sXp===2&&zbm(this)}else this.ven=H.jhW,zbm(this);var W=this.z6.share();W.yB("o");var w=new rrr(W,"o");this.eWX.promise.then(function(){w.done();W.jo();W.dispose()},function(){return void W.dispose()});
this.addOnDisposeCallback(function(){U.zM?(U.zM.dispose(),U.zM=void 0):U.tF?U.z6.jo():(U.tF=U.reportError(new rp(32,"TNP:Disposed")),U.z6.jo(),U.eWX.reject(U.tF))});
_.kl(this,this.z6)};
_.R(St,_.XG);St.prototype.igG=function(){return this.eWX.promise};
var CDm=function(H,U){if(!(U instanceof rp))if(U instanceof _.O0){var A=Error(U.toString());A.stack=U.stack;U=new rp(11,"EBH:Error",A)}else U=new rp(12,"BSO:Unknown",U);return H.reportError(U)},zbm=function(H){var U,A,M,W,w,d,O,f,J,F,P,n,N,L,m;
return _.u(function(z){switch(z.nextAddress){case 1:U=void 0;H.hjG++;A=new _.r1;H.vm instanceof Ff&&H.vm.rqj.push(A.promise);if(!H.oEh){z.jumpTo(2);break}M=new _.r1;setTimeout(function(){return void M.resolve()});
return z.yield(M.promise,2);case 2:return W=H.z6.share(),_.zj(z,4,5),H.state=5,w={},d=[],z.yield(Mg(H.vm.snapshot({f2:w,fj4:d}),H.ic7.eFl,function(){return Promise.reject(new rp(15,"MDA:Timeout"))}),7);
case 7:O=z.yieldResult;if(H.isDisposed())throw new rp(H.zM?20:32,"MDA:Disposed");f=d[0];H.state=6;return z.yield(Mg(tCB(H.nQ,O),H.ic7.nNn,function(){return Promise.reject(new rp(10,"BWB:Timeout"))}),8);
case 8:J=z.yieldResult;if(H.isDisposed())throw new rp(H.zM?20:32,"BWB:Disposed");H.state=7;U=_.KR(W,function(){var C=cjn(H,J,A,f);C.stH.promise.then(function(){return void H.ven()});
return C},"i");
case 5:_.cI(z);W.dispose();_.BI(z,6);break;case 4:F=_.eG(z);(P=U)==null||P.dispose();if(!H.tF){n=CDm(H,F);A.resolve();var c;if(c=H.vm instanceof Ff&&H.hjG<2)a:if(F instanceof rp)c=F.code!==32&&F.code!==20&&F.code!==10;else{if(F instanceof _.O0)switch(F.code){case 2:case 13:case 14:case 4:break;default:c=!1;break a}c=!0}if(c)return N=(1+Math.random()*.25)*(H.zM?6E4:1E3),L=setTimeout(function(){return void H.ven()},N),H.addOnDisposeCallback(function(){return void clearTimeout(L)}),z.return();
H.tF=n}W.logError(H.zM?13:14);H.eWX.reject(H.tF);return z.return();case 6:H.state=8,H.hjG=0,(m=H.zM)==null||m.dispose(),H.zM=U,H.eWX.resolve(),_.DO(z)}})},cjn=function(H,U,A,M){var W=akm(U,2)*1E3;
if(W<=0)throw new rp(31,"TTM:Invalid");if(_.Mn(U,4))return new Rbn(H.z6,_.Mn(U,4),W);if(!akm(U,3))return new L6g(H.z6,Z83(_.vu(U,1)),W);if(!M)throw new rp(4,"PMD:Undefined");M=M(Z83(_.vu(U,1)));if(!(M instanceof Function))throw new rp(16,"APF:Failed");H.nI2=Math.floor((Date.now()+W)/1E3);H=new pKm(H.z6,M,akm(U,3),W);H.addOnDisposeCallback(function(){return void A.resolve()});
return H};
St.prototype.nA=function(H){return yjh(this,Object.assign({},H),!1)};
St.prototype.pL1=function(H){return yjh(this,Object.assign({},H),!0)};
St.prototype.kJn=function(H){if(H>150)return!1;try{return this.cache=new JjK(H,this.z6),!0}catch(U){return this.reportError(new rp(22,"GBJ:init",U)),!1}};
St.prototype.reportError=function(H){this.z6.logError(H.code);this.onError(H);return H};
var Bim=function(H,U){U=U instanceof rp?U:new rp(5,"TVD:error",U);return H.reportError(U)},yjh=function(H,U,A){try{if(H.isDisposed())throw new rp(21,"BNT:disposed");
if(!H.zM&&H.tF)throw H.tF;var M,W;return(W=(M=rjh(H,U,A))!=null?M:ebm(H,U,A))!=null?W:DKh(H,U,A)}catch(w){if(!U.jGV)throw Bim(H,w);return $KK(H,A,w)}},rjh=function(H,U,A){var M;
return(M=H.zM)==null?void 0:S4y(M,function(){return l0B(H,U)},A,function(W){var w;
if(H.zM instanceof pKm&&((w=U.uN)==null?0:w.iWe))try{var d;(d=H.cache)==null||K6B(d,l0B(H,U),W,U.uN.uTN,H.nI2-120)}catch(O){H.reportError(new rp(24,"ELX:write",O))}})},ebm=function(H,U,A){var M;
if((M=U.uN)!=null&&M.a7G)try{var W,w=(W=H.cache)==null?void 0:oD2(W,l0B(H,U),U.uN.uTN);return w?A?_.KR(H.z6,function(){return _.I_(w,2)},"a"):w:void 0}catch(d){H.reportError(new rp(23,"RXO:read",d))}},DKh=function(H,U,A){var M={stack:[],
error:void 0,hasError:!1};try{if(!U.w9f)throw new rp(29,"SDF:notready");return S4y(f3z(M,new gDn(H.z6,0,H.state)),function(){return l0B(H,U)},A)}catch(W){M.error=W,M.hasError=!0}finally{JHm(M)}},$KK=function(H,U,A){var M={stack:[],
error:void 0,hasError:!1};try{var W=Bim(H,A);return S4y(f3z(M,new EDh(H.z6,W)),function(){return[]},U)}catch(w){M.error=w,M.hasError=!0}finally{JHm(M)}},l0B=function(H,U){return U.yn7?U.yn7:U.f2?_.KR(H.z6,function(){return U.yn7=sdt(U.f2)},"c"):[]},xK3=function(H){return Br(function(U){if(!Ic(U))return!1;
for(var A=_.b(Object.entries(H)),M=A.next();!M.done;M=A.next()){var W=_.b(M.value);M=W.next().value;W=W.next().value;if(!(M in U)){if(W.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!W(U[M]))return!1}return!0})}({vm:function(H){return Br(function(U){return U instanceof H})}(Ff)},"");var GU3=function(){var H=_.tc();this.JSC$10217_streamzService=H;H.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",rG("cookie_enabled"),rG("cookie_3p_enabled"),_.$l("browser"))};
GU3.prototype.increment=function(H,U,A){this.JSC$10217_streamzService.JSC$10090_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",H,U,A)};
var zqM=function(){var H=_.tc();this.JSC$10241_streamzService=H;H.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",el("tick"),rG("from_st_cookie"))};
zqM.prototype.increment=function(H,U){this.JSC$10241_streamzService.JSC$10090_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",H,U)};
var Y4y=function(){var H=_.tc();this.JSC$10247_streamzService=H;H.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.$l("status"))};
Y4y.prototype.increment=function(H){this.JSC$10247_streamzService.JSC$10090_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",H)};
var q4m=function(){var H=_.tc();this.JSC$10250_streamzService=H;H.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.$l("stage"),rG("is_using_ytd_player"),rG("has_expandable_tiles"))};
q4m.prototype.increment=function(H,U,A){this.JSC$10250_streamzService.JSC$10090_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",H,U,A)};
var hbh=function(){var H=_.tc();this.JSC$10253_streamzService=H;H.addNewCounter("/client_streamz/youtube/web/response_signature",_.$l("check_status"))};
hbh.prototype.increment=function(H){this.JSC$10253_streamzService.JSC$10090_incrementCounter("/client_streamz/youtube/web/response_signature",H)};
var kUH=function(){var H=_.tc();this.JSC$10256_streamzService=H;H.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.$l("sig"),el("de"))};
kUH.prototype.increment=function(H,U){this.JSC$10256_streamzService.JSC$10090_incrementCounter("/client_streamz/youtube/web/e_sig_log",H,U)};
var vD3=function(){var H=_.tc();this.JSC$10259_streamzService=H;H.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.$l("sig"),el("de"))};
vD3.prototype.increment=function(H,U){this.JSC$10259_streamzService.JSC$10090_incrementCounter("/client_streamz/youtube/web/e_sig_en",H,U)};
_.TiK=function(){var H=_.tc();this.JSC$10262_streamzService=H;H.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.$l("action"))};
_.TiK.prototype.increment=function(H){this.JSC$10262_streamzService.JSC$10090_incrementCounter("/client_streamz/youtube/web/enforcement_intent",H)};var pR=window;var jdn=(new Date).getTime();_.dG.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.dG.createSet("action","cite","data","formaction","href","manifest","poster","src");var I0w=function(H){this.servicePromise_=H;H.then((0,_.i9)(function(){},this),function(){},this)},Qdw=function(H,U,A){H.servicePromise_.then(function(M){var W=M[U];
if(!W)throw Error("La`"+U);return W.apply(M,A)})},Usw=function(H,U,A){for(var M=Array(arguments.length-2),W=2;W<arguments.length;W++)M[W-2]=arguments[W];
W=VCK(H,U).then(function(w){return w.apply(null,M)},function(w){w=Error("Ma`"+U+"`"+H+"`"+w,{cause:w});
delete H_w[U];return _.H$(w)});
return new I0w(W)},H_w={},VCK=function(H,U){var A=H_w[U];
if(A)return A;A=(A=_.tr(U))?_.DH(A):(new _.IQ(function(M,W){var w=(new Xw(document)).createElement("SCRIPT");w.async=!0;_.J$(w,_.rM(Opp(H)));w.onload=w.onreadystatechange=function(){w.readyState&&w.readyState!="loaded"&&w.readyState!="complete"||M()};
w.onerror=function(d){W(Error("Na`"+U+"`"+H,{cause:d}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(w)})).then(function(){var M=_.tr(U);
if(!M)throw Error("Oa`"+U+"`"+H);return M});
return H_w[U]=A};var Akg={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},Wyh=function(){var H=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=nD0(function(){return _.u(function(U){if(U.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?U.return(Promise.resolve()):U.yield(Mxw(H),2);H.rsaForList.length>
0&&document.addEventListener("click",H.requestAccessForHelpPanel);_.DO(U)})});
this.requestAccessForHelpPanel=function(){if(!(H.rsaForPromises.length>0)){for(var U=_.b(H.rsaForList),A=U.next();!A.done;A=U.next()){A=A.value;try{H.rsaForPromises.push(document.requestStorageAccessFor(A))}catch(M){}}Promise.all(H.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){H.reset()})}}};
Wyh.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var Mxw=function(H){var U,A,M,W;return _.u(function(w){switch(w.nextAddress){case 1:U=_.b(Object.values(Akg)),A=U.next();case 2:if(A.done){w.jumpTo(0);break}M=A.value;_.zj(w,5);return w.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:M}),7);case 7:W=w.yieldResult;W.state!=="granted"&&H.rsaForList.push(M);_.xD(w,3);break;case 5:_.eG(w);w.jumpTo(0);break;case 3:A=U.next(),w.jumpTo(2)}})};(new Wyh).initialize();var wWh=function(H){this.JSC$10276_loader_=H};
wWh.prototype.startHelp=function(H){Qdw(this.JSC$10276_loader_,"startHelp",arguments)};
wWh.prototype.JSC$10278_loadChatSupport=function(H){Qdw(this.JSC$10276_loader_,"loadChatSupport",arguments)};
var i_2=function(H,U){U=U||{};H=Usw(XWh,"help.service.Lazy.create",H,{apiKey:U.apiKey||U.apiKey,asxUiUri:U.asxUiUri||U.asxUiUri,environment:U.environment||U.environment,flow:U.flow||U.flow,frdProductData:U.frdProductData||U.frdProductData,frdProductDataSerializedJspb:U.frdProductDataSerializedJspb||U.frdProductDataSerializedJspb,helpCenterPath:U.helpCenterPath||U.helpCenterPath,locale:U.locale||U.locale||"en-US".replace(/-/g,"_"),nonce:U.nonce||U.nonce,productData:U.productData||U.productData,receiverUri:U.receiverUri||
U.receiverUri,renderApiUri:U.renderApiUri||U.renderApiUri,theme:U.theme||U.theme,window:U.window||U.window});return new wWh(H)},XWh=new p5(Ol4,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var b_y=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(b_y,_.fN);var dsh=_.a5(b_y);var O_m=[0,_.Eh,nT,NMw];_.uly=new function(H,U,A,M){this.configType=H;this.flagName=A;this.defaultValue=M;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 f6B=function(){this.retriever=_.lx().resolve(Z_y)};_.mu={get payments(){return window.payments}};S4_(Node);S4_(Element);var Jky=S4_(HTMLElement);S4_(SVGElement);var Kym,oBm,E0,FyB;Kym=function(H){return typeof H.className=="string"?H.className:H.getAttribute&&H.getAttribute("class")||""};
oBm=function(H){return H.classList?H.classList:Kym(H).match(/\S+/g)||[]};
_.LR=function(H,U){typeof H.className=="string"?H.className=U:H.setAttribute&&H.setAttribute("class",U)};
_.Rw=function(H,U){return H.classList?H.classList.contains(U):_.y0(oBm(H),U)};
_.P$=function(H,U){if(H.classList)H.classList.add(U);else if(!_.Rw(H,U)){var A=Kym(H);_.LR(H,A+(A.length>0?" "+U:U))}};
E0=function(H,U){if(H.classList)Array.prototype.forEach.call(U,function(W){_.P$(H,W)});
else{var A={};Array.prototype.forEach.call(oBm(H),function(W){A[W]=!0});
Array.prototype.forEach.call(U,function(W){A[W]=!0});
U="";for(var M in A)U+=U.length>0?" "+M:M;_.LR(H,U)}};
_.F1=function(H,U){H.classList?H.classList.remove(U):_.Rw(H,U)&&_.LR(H,Array.prototype.filter.call(oBm(H),function(A){return A!=U}).join(" "))};
FyB=function(H,U){H.classList?Array.prototype.forEach.call(U,function(A){_.F1(H,A)}):_.LR(H,Array.prototype.filter.call(oBm(H),function(A){return!_.y0(U,A)}).join(" "))};var PSK=function(H){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=H.document},NBB=function(H,U){sQg(H);
var A=document.createElement("div"),M;(M=U.parentNode)==null||M.insertBefore(A,U);A.tabIndex=0;A.id="fc-focus-trap-pre-div";A=document.createElement("div");var W;(W=U.parentNode)==null||W.insertBefore(A,U.nextSibling);A.tabIndex=0;A.id="fc-focus-trap-post-div";var w=nBy(H,U),d=nBy(H,U,!0);w&&d&&(H.focusChangeHandler=function(){var O=H.document.activeElement;if(O)if(_.t8(U,O))H.previouslyFocusedElement=O;else if(O===H.document.activeElement)switch(H.previouslyFocusedElement){case w:d.focus();H.previouslyFocusedElement=
d;break;default:w.focus(),H.previouslyFocusedElement=w}},H.document.addEventListener("focus",H.focusChangeHandler,!0),H.document.addEventListener("focusin",H.focusChangeHandler))},sQg=function(H){H.focusChangeHandler&&(document.removeEventListener("focus",H.focusChangeHandler,!0),document.removeEventListener("focusin",H.focusChangeHandler),H.focusChangeHandler=null);
var U;(U=document.getElementById("fc-focus-trap-pre-div"))==null||U.remove();var A;(A=document.getElementById("fc-focus-trap-post-div"))==null||A.remove()},Slg=function(H,U,A,M,W){A=A===void 0?!0:A;
var w;W=(w=W===void 0?null:W)!=null?w:nBy(H,U,M===void 0?!1:M);W!==null&&(W.focus(),A&&NBB(H,U))};
PSK.prototype.disableButton=function(H,U){U=U===void 0?null:U;H.disabled=!0;U&&_.P$(H,U)};
var nBy=function(H,U,A){A=A===void 0?!1:A;if(aNF(U)&&!A)return U;var M=A?[].slice.call(U.children,0).reverse():U.children;M=_.b(M);for(var W=M.next();!W.done;W=M.next())if(W=W.value,Jky(W)&&(W=nBy(H,W,A)))return W;return aNF(U)&&A?U:null};var pWg=function(H){this.originalBodyOverflow="";this.JSC$10303_domHelper=AD(H);var U;this.isScrollingEnabled=((U=this.JSC$10303_domHelper.JSC$9629_document_.body)==null?void 0:U.style.overflow)!=="hidden"};
pWg.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10303_domHelper.JSC$9629_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.zo(_.b9,_.XG);_.X=_.b9.prototype;_.X.JSC$10306_id_=0;_.X.disposeInternal=function(){_.b9.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10304_listener_;delete this.handler_};
_.X.start=function(H){this.stop();this.JSC$10306_id_=da(this.callback_,H!==void 0?H:this.JSC$10304_interval_)};
_.X.stop=function(){this.isActive()&&_.Mr.clearTimeout(this.JSC$10306_id_);this.JSC$10306_id_=0};
_.X.fire=function(){this.stop();this.JSC$10306_doAction_()};
_.X.isActive=function(){return this.JSC$10306_id_!=0};
_.X.JSC$10306_doAction_=function(){this.JSC$10306_id_=0;this.JSC$10304_listener_&&this.JSC$10304_listener_.call(this.handler_)};_.u9=function(H){_.XG.call(this);this.handler_=H;this.JSC$10307_keys_={}};
_.zo(_.u9,_.XG);var LyH=[];_.u9.prototype.listen=function(H,U,A,M){Array.isArray(U)||(U&&(LyH[0]=U.toString()),U=LyH);for(var W=0;W<U.length;W++){var w=_.Rc(H,U[W],A||this.handleEvent,M||!1,this.handler_||this);if(!w)break;this.JSC$10307_keys_[w.key]=w}return this};
_.u9.prototype.listenOnce=function(H,U,A,M){return RrH(this,H,U,A,M)};
var RrH=function(H,U,A,M,W,w){if(Array.isArray(A))for(var d=0;d<A.length;d++)RrH(H,U,A[d],M,W,w);else{U=FG(U,A,M||H.handleEvent,W,w||H.handler_||H);if(!U)return H;H.JSC$10307_keys_[U.key]=U}return H};
_.u9.prototype.unlisten=function(H,U,A,M,W){if(Array.isArray(U))for(var w=0;w<U.length;w++)this.unlisten(H,U[w],A,M,W);else if(H=a0M(H,U,A||this.handleEvent,_.ht(M)?!!M.capture:!!M,W||this.handler_||this))jq(H),delete this.JSC$10307_keys_[H.key];return this};
_.u9.prototype.removeAll=function(){_.dG.forEach(this.JSC$10307_keys_,function(H,U){this.JSC$10307_keys_.hasOwnProperty(U)&&jq(H)},this);
this.JSC$10307_keys_={}};
_.u9.prototype.disposeInternal=function(){_.u9.superClass_.disposeInternal.call(this);this.removeAll()};
_.u9.prototype.handleEvent=function(){throw Error("Pa");};_.zo(dO,_.XG);dO.prototype.connect=function(H){H&&H()};
dO.prototype.isConnected=function(){return!0};
dO.prototype.registerService=function(H,U,A){this.services_[H]={callback:U,objectPayload:!!A}};
dO.prototype.getService=function(H,U){var A=this.services_[H];return A?A:this.defaultService_?{callback:_.vg(this.defaultService_,H),objectPayload:_.ht(U)}:null};
var EBy=function(H,U){if(U&&typeof H==="string")try{return JSON.parse(H)}catch(A){return null}else if(!U&&typeof H!=="string")return(0,_.uR)(H);return H};
dO.prototype.disposeInternal=function(){dO.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 fW=function(H,U){this.sequence_=[];this.onCancelFunction_=H;this.defaultScope_=U||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};
fW.prototype.cancel=function(H){if(this.fired_)this.result_ instanceof fW&&this.result_.cancel();else{if(this.parent_){var U=this.parent_;delete this.parent_;H?U.cancel(H):(U.branches_--,U.branches_<=0&&U.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new mR(this))}};
fW.prototype.continue_=function(H,U){this.blocked_=!1;msr(this,H,U)};
var msr=function(H,U,A){H.fired_=!0;H.result_=A;H.hadError_=!U;gBm(H)},xsB=function(H){if(H.fired_){if(!H.silentlyCanceled_)throw new a6z(H);
H.silentlyCanceled_=!1}};
fW.prototype.callback=function(H){xsB(this);msr(this,!0,H)};
fW.prototype.errback=function(H){xsB(this);msr(this,!1,H)};
var ED0=function(H,U,A){aw(H,U,null,A)};
fW.prototype.finally=function(H){var U=this;return zrB(new Promise(function(A,M){aw(U,function(W){H();A(W)},function(W){H();
M(W)})}))};
var aw=function(H,U,A,M){var W=H.fired_;W||(U===A?U=A=wa(U):(U=wa(U),A=wa(A)));H.sequence_.push([U,A,M]);W&&gBm(H)};
fW.prototype.then=function(H,U,A){var M,W,w=new _.IQ(function(d,O){W=d;M=O});
aw(this,W,function(d){d instanceof mR?w.cancel():M(d);return CSh},this);
return w.then(H,U,A)};
UU2(fW);var Rb7=function(H,U){U instanceof fW?ED0(H,(0,_.i9)(U.branch,U)):ED0(H,function(){return U})};
fW.prototype.branch=function(H){var U=new fW;aw(this,U.callback,U.errback,U);H&&(U.parent_=this,this.branches_++);return U};
fW.prototype.isError=function(H){return H instanceof Error};
var txh=function(H){return C_(H.sequence_,function(U){return typeof U[1]==="function"})},CSh={},gBm=function(H){if(H.unhandledErrorId_&&H.fired_&&txh(H)){var U=H.unhandledErrorId_,A=ckh[U];
A&&(_.Mr.clearTimeout(A.JSC$10324_id_),delete ckh[U]);H.unhandledErrorId_=0}H.parent_&&(H.parent_.branches_--,delete H.parent_);U=H.result_;for(var M=A=!1;H.sequence_.length&&!H.blocked_;){var W=H.sequence_.shift(),w=W[0],d=W[1];W=W[2];if(w=H.hadError_?d:w)try{var O=w.call(W||H.defaultScope_,U);O===CSh&&(O=void 0);O!==void 0&&(H.hadError_=H.hadError_&&(O==U||H.isError(O)),H.result_=U=O);if(Ar2(U)||typeof _.Mr.Promise==="function"&&U instanceof _.Mr.Promise)M=!0,H.blocked_=!0}catch(f){U=f,H.hadError_=
!0,txh(H)||(A=!0)}}H.result_=U;M&&(O=(0,_.i9)(H.continue_,H,!0),M=(0,_.i9)(H.continue_,H,!1),U instanceof fW?(aw(U,O,M),U.blocking_=!0):U.then(O,M));A&&(U=new ykm(U),ckh[U.JSC$10324_id_]=U,H.unhandledErrorId_=U.JSC$10324_id_)},zrB=function(H){var U=new fW;
H.then(function(A){U.callback(A)},function(A){U.errback(A)});
return U},a6z=function(){_.HF.call(this)};
_.zo(a6z,_.HF);a6z.prototype.message="Deferred has already fired";a6z.prototype.name="AlreadyCalledError";var mR=function(){_.HF.call(this)};
_.zo(mR,_.HF);mR.prototype.message="Deferred was canceled";mR.prototype.name="CanceledError";var ykm=function(H){this.JSC$10324_id_=_.Mr.setTimeout((0,_.i9)(this.throwError,this),0);this.JSC$10324_error_=H};
ykm.prototype.throwError=function(){delete ckh[this.JSC$10324_id_];throw this.JSC$10324_error_;};
var ckh={};var BBk={1:"NativeMessagingTransport"},gD7=["pu","lru","pru","lpu","ppu"];_.zo(O5,_.XG);O5.prototype.transportType=0;O5.prototype.getWindow=function(){return this.JSC$10327_domHelper_.getWindow()};
O5.prototype.getName=function(){return BBk[String(this.transportType)]||""};_.zo(J8,O5);J8.prototype.peerProtocolVersion_=null;J8.prototype.initialized_=!1;J8.prototype.transportType=1;var rkh={};J8.prototype.sendTimerId_=0;
var $sy=function(H){var U=H.event_.data;if(typeof U!=="string")return!1;var A=U.indexOf("|"),M=U.indexOf(":");if(A==-1||M==-1)return!1;var W=U.substring(0,A);A=U.substring(A+1,M);U=U.substring(M+1);if(M=oc[W])return M.xpcDeliver(A,U,H.event_.origin),!0;M=er3(U)[0];for(var w in oc){var d=oc[w];if(L64(d)==1&&!d.isConnected()&&A=="tp"&&(M=="SETUP"||M=="SETUP_NTPV2")&&Dsh(d,H.event_.origin))return delete oc[d.name],d.name=W,oc[W]=d,d.xpcDeliver(A,U),!0}return!1},l6y=function(H){H.protocolVersion_!=2||
H.peerProtocolVersion_!=null&&H.peerProtocolVersion_!=2||H.send("tp","SETUP_NTPV2,"+H.endpointId_);
H.peerProtocolVersion_!=null&&H.peerProtocolVersion_!=1||H.send("tp","SETUP")},Gqg=function(H,U){if(H.protocolVersion_!=2||H.peerProtocolVersion_!=null&&H.peerProtocolVersion_!=2||U!=2){if(H.peerProtocolVersion_!=null&&H.peerProtocolVersion_!=1||U!=1)return;
H.send("tp","SETUP_ACK")}else H.send("tp","SETUP_ACK_NTPV2");H.setupAckSent_.fired_||H.setupAckSent_.callback(!0)},Ylz=function(H,U){U>H.peerProtocolVersion_&&(H.peerProtocolVersion_=U);
H.peerProtocolVersion_==1&&(H.setupAckSent_.fired_||H.oneSidedHandshake_||H.setupAckSent_.callback(!0),H.peerEndpointId_=null)};
_.X=J8.prototype;_.X.connect=function(){var H=this.getWindow(),U=_.vF(H),A=rkh[U];typeof A!=="number"&&(A=0);A==0&&_.Rc(H.postMessage?H:H.document,"message",$sy,!1,J8);rkh[U]=A+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.X.maybeAttemptToConnect_=function(){var H=L64(this.JSC$10330_channel_)==0;this.oneSidedHandshake_&&H||this.JSC$10330_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),l6y(this))};
_.X.send=function(H,U){var A=this.JSC$10330_channel_.peerWindowObject_;A&&(this.send=function(M,W){var w=this,d=this.JSC$10330_channel_.name;this.sendTimerId_=da(function(){w.sendTimerId_=0;try{var O=A.postMessage?A:A.document;O.postMessage&&O.postMessage(d+"|"+M+":"+W,w.peerHostname_)}catch(f){}},0)},this.send(H,U))};
_.X.notifyConnected_=function(){var H=this.JSC$10330_channel_,U=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;H.isConnected()||H.connectionDelay_&&H.connectionDelay_.isActive()||(H.state_=2,_.zg(H.connectionDelay_),U!==void 0?(H.connectionDelay_=new _.b9(H.connectCb_,U),H.connectionDelay_.start()):(H.connectionDelay_=null,H.connectCb_()))};
_.X.disposeInternal=function(){if(this.initialized_){var H=this.getWindow(),U=_.vF(H),A=rkh[U];rkh[U]=A-1;A==1&&_.WS(H.postMessage?H:H.document,"message",$sy,!1,J8)}this.sendTimerId_&&(_.Mr.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.zg(this.JSC$10330_eventHandler_);delete this.JSC$10330_eventHandler_;_.zg(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10330_connected_.cancel();delete this.JSC$10330_connected_;delete this.send;J8.superClass_.disposeInternal.call(this)};
var er3=function(H){H=H.split(",");H[1]=H[1]||null;return H};var hrK;_.xt=function(H){if(H.getValues&&typeof H.getValues=="function")return H.getValues();if(typeof Map!=="undefined"&&H instanceof Map||typeof Set!=="undefined"&&H instanceof Set)return Array.from(H.values());if(typeof H==="string")return H.split("");if(_.l7(H)){for(var U=[],A=H.length,M=0;M<A;M++)U.push(H[M]);return U}return _.dG.getValues(H)};
_.qlB=function(H){if(H.getKeys&&typeof H.getKeys=="function")return H.getKeys();if(!H.getValues||typeof H.getValues!="function"){if(typeof Map!=="undefined"&&H instanceof Map)return Array.from(H.keys());if(!(typeof Set!=="undefined"&&H instanceof Set)){if(_.l7(H)||typeof H==="string"){var U=[];H=H.length;for(var A=0;A<H;A++)U.push(A);return U}return _.dG.getKeys(H)}}};
hrK=function(H,U,A){if(H.forEach&&typeof H.forEach=="function")H.forEach(U,A);else if(_.l7(H)||typeof H==="string")Array.prototype.forEach.call(H,U,A);else for(var M=_.qlB(H),W=_.xt(H),w=W.length,d=0;d<w;d++)U.call(A,W[d],M&&M[d],H)};var $L_,ra,Dm,Vx2,kqg,TBn,vBK,QQH,jQ2;
_.n1=function(H,U){this.JSC$10335_domain_=this.userInfo_=this.scheme_="";this.JSC$10335_port_=null;this.fragment_=this.JSC$10335_path_="";this.JSC$10335_ignoreCase_=!1;var A;H instanceof _.n1?(this.JSC$10335_ignoreCase_=U!==void 0?U:H.JSC$10335_ignoreCase_,_.zz(this,H.scheme_),this.userInfo_=H.userInfo_,_.CR(this,H.JSC$10335_domain_),_.tn(this,H.JSC$10335_port_),_.cS(this,H.getPath()),_.yw(this,H.JSC$10335_queryData_.clone()),_.BS(this,H.fragment_)):H&&(A=_.BL(String(H)))?(this.JSC$10335_ignoreCase_=
!!U,_.zz(this,A[1]||"",!0),this.userInfo_=ra(A[2]||""),_.CR(this,A[3]||"",!0),_.tn(this,A[4]),_.cS(this,A[5]||"",!0),_.yw(this,A[6]||"",!0),_.BS(this,A[7]||"",!0)):(this.JSC$10335_ignoreCase_=!!U,this.JSC$10335_queryData_=new _.et(null,this.JSC$10335_ignoreCase_))};
_.n1.prototype.toString=function(){var H=[],U=this.scheme_;U&&H.push(Dm(U,kqg,!0),":");var A=this.JSC$10335_domain_;if(A||U=="file")H.push("//"),(U=this.userInfo_)&&H.push(Dm(U,kqg,!0),"@"),H.push(_.q2(A).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),A=this.JSC$10335_port_,A!=null&&H.push(":",String(A));if(A=this.getPath())this.JSC$10335_domain_&&A.charAt(0)!="/"&&H.push("/"),H.push(Dm(A,A.charAt(0)=="/"?vBK:TBn,!0));(A=this.JSC$10335_queryData_.toString())&&H.push("?",A);(A=this.fragment_)&&H.push("#",
Dm(A,jQ2));return H.join("")};
_.n1.prototype.resolve=function(H){var U=this.clone(),A=!!H.scheme_;A?_.zz(U,H.scheme_):A=!!H.userInfo_;A?U.userInfo_=H.userInfo_:A=!!H.JSC$10335_domain_;A?_.CR(U,H.JSC$10335_domain_):A=H.JSC$10335_port_!=null;var M=H.getPath();if(A)_.tn(U,H.JSC$10335_port_);else if(A=!!H.JSC$10335_path_){if(M.charAt(0)!="/")if(this.JSC$10335_domain_&&!this.JSC$10335_path_)M="/"+M;else{var W=U.getPath().lastIndexOf("/");W!=-1&&(M=U.getPath().slice(0,W+1)+M)}W=M;if(W==".."||W==".")M="";else if(_.OM(W,"./")||_.OM(W,
"/.")){M=_.XE(W,"/");W=W.split("/");for(var w=[],d=0;d<W.length;){var O=W[d++];O=="."?M&&d==W.length&&w.push(""):O==".."?((w.length>1||w.length==1&&w[0]!="")&&w.pop(),M&&d==W.length&&w.push("")):(w.push(O),M=!0)}M=w.join("/")}else M=W}A?_.cS(U,M):A=H.JSC$10335_queryData_.toString()!=="";A?_.yw(U,H.JSC$10335_queryData_.clone()):A=!!H.fragment_;A&&_.BS(U,H.fragment_);return U};
_.n1.prototype.clone=function(){return new _.n1(this)};
_.zz=function(H,U,A){H.scheme_=A?ra(U,!0):U;H.scheme_&&(H.scheme_=H.scheme_.replace(/:$/,""));return H};
_.CR=function(H,U,A){H.JSC$10335_domain_=A?ra(U,!0):U;return H};
_.tn=function(H,U){if(U){U=Number(U);if(isNaN(U)||U<0)throw Error("Qa`"+U);H.JSC$10335_port_=U}else H.JSC$10335_port_=null;return H};
_.n1.prototype.getPath=function(){return this.JSC$10335_path_};
_.cS=function(H,U,A){H.JSC$10335_path_=A?ra(U,!0):U;return H};
_.yw=function(H,U,A){U instanceof _.et?(H.JSC$10335_queryData_=U,I6r(H.JSC$10335_queryData_,H.JSC$10335_ignoreCase_)):(A||(U=Dm(U,QQH)),H.JSC$10335_queryData_=new _.et(U,H.JSC$10335_ignoreCase_));return H};
_.rO=function(H,U,A){H.JSC$10335_queryData_.set(U,A);return H};
_.BJ=function(H,U){return H.JSC$10335_queryData_.get(U)};
_.BS=function(H,U,A){H.fragment_=A?ra(U):U;return H};
_.$t=function(H){_.rO(H,"zx",cJ());return H};
_.yX=function(H,U){return H instanceof _.n1?H.clone():new _.n1(H,U)};
$L_=function(H,U){H instanceof _.n1||(H=_.yX(H));U instanceof _.n1||(U=_.yX(U));return H.resolve(U)};
ra=function(H,U){return H?U?decodeURI(H.replace(/%25/g,"%2525")):decodeURIComponent(H):""};
Dm=function(H,U,A){return typeof H==="string"?(H=encodeURI(H).replace(U,Vx2),A&&(H=H.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),H):null};
Vx2=function(H){H=H.charCodeAt(0);return"%"+(H>>4&15).toString(16)+(H&15).toString(16)};
kqg=/[#\/\?@]/g;TBn=/[#\?:]/g;vBK=/[#\?]/g;QQH=/[#\?@]/g;jQ2=/#/g;_.et=function(H,U){this.count_=this.keyMap_=null;this.encodedQuery_=H||null;this.JSC$10336_ignoreCase_=!!U};
_.lR=function(H){H.keyMap_||(H.keyMap_=new Map,H.count_=0,H.encodedQuery_&&jlh(H.encodedQuery_,function(U,A){H.add(YZ(U),A)}))};
_.X=_.et.prototype;_.X.getCount=function(){_.lR(this);return this.count_};
_.X.add=function(H,U){_.lR(this);this.encodedQuery_=null;H=Gz(this,H);var A=this.keyMap_.get(H);A||this.keyMap_.set(H,A=[]);A.push(U);this.count_+=1;return this};
_.X.remove=function(H){_.lR(this);H=Gz(this,H);return this.keyMap_.has(H)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(H).length,this.keyMap_.delete(H)):!1};
_.X.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.X.isEmpty=function(){_.lR(this);return this.count_==0};
_.X.containsKey=function(H){_.lR(this);H=Gz(this,H);return this.keyMap_.has(H)};
_.X.containsValue=function(H){var U=this.getValues();return _.y0(U,H)};
_.X.forEach=function(H,U){_.lR(this);this.keyMap_.forEach(function(A,M){A.forEach(function(W){H.call(U,W,M,this)},this)},this)};
_.X.getKeys=function(){_.lR(this);for(var H=Array.from(this.keyMap_.values()),U=Array.from(this.keyMap_.keys()),A=[],M=0;M<U.length;M++)for(var W=H[M],w=0;w<W.length;w++)A.push(U[M]);return A};
_.X.getValues=function(H){_.lR(this);var U=[];if(typeof H==="string")this.containsKey(H)&&(U=U.concat(this.keyMap_.get(Gz(this,H))));else{H=Array.from(this.keyMap_.values());for(var A=0;A<H.length;A++)U=U.concat(H[A])}return U};
_.X.set=function(H,U){_.lR(this);this.encodedQuery_=null;H=Gz(this,H);this.containsKey(H)&&(this.count_-=this.keyMap_.get(H).length);this.keyMap_.set(H,[U]);this.count_+=1;return this};
_.X.get=function(H,U){if(!H)return U;H=this.getValues(H);return H.length>0?String(H[0]):U};
_.H5n=function(H,U,A){H.remove(U);A.length>0&&(H.encodedQuery_=null,H.keyMap_.set(Gz(H,U),_.$c(A)),H.count_+=A.length)};
_.et.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var H=[],U=Array.from(this.keyMap_.keys()),A=0;A<U.length;A++){var M=U[A],W=_.q2(M);M=this.getValues(M);for(var w=0;w<M.length;w++){var d=W;M[w]!==""&&(d+="="+_.q2(M[w]));H.push(d)}}return this.encodedQuery_=H.join("&")};
_.et.prototype.clone=function(){var H=new _.et;H.encodedQuery_=this.encodedQuery_;this.keyMap_&&(H.keyMap_=new Map(this.keyMap_),H.count_=this.count_);return H};
var Gz=function(H,U){U=String(U);H.JSC$10336_ignoreCase_&&(U=U.toLowerCase());return U},I6r=function(H,U){U&&!H.JSC$10336_ignoreCase_&&(_.lR(H),H.encodedQuery_=null,H.keyMap_.forEach(function(A,M){var W=M.toLowerCase();
M!=W&&(this.remove(M),_.H5n(this,W,A))},H));
H.JSC$10336_ignoreCase_=U};
_.et.prototype.extend=function(H){for(var U=0;U<arguments.length;U++)hrK(arguments[U],function(A,M){this.add(M,A)},this)};_.zo(PJ,dO);var UaB=RegExp("^%*tp$"),A9w=RegExp("^%+tp$");_.X=PJ.prototype;_.X.connectionDelay_=null;_.X.peerWindowDeferred_=null;_.X.transport_=null;_.X.state_=1;_.X.isConnected=function(){return this.state_==2};
_.X.peerWindowObject_=null;_.X.iframeElement_=null;_.X.getConfig=function(){return this.cfg_};
_.X.connect=function(H){this.connectCb_=H||_.UR;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?ED0(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.X.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10331_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var H=this.iframeElement_.contentWindow;H||(H=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=H}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ua");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$10331_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new J8(this,this.cfg_.ph,this.JSC$10331_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Ta");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.X.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.zg(this.transport_);this.connectCb_=this.transport_=null;_.zg(this.connectionDelay_);this.connectionDelay_=null};
_.X.send=function(H,U){if(this.isConnected()){try{var A=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(W){A=!1}if(A){_.ht(U)&&(U=(0,_.uR)(U));A=this.transport_;var M=A.send;UaB.test(H)&&(H="%"+H);H=H.replace(/[%:|]/g,encodeURIComponent);M.call(A,H,U)}else this.close()}};
_.X.xpcDeliver=function(H,U,A){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.i9)(this.xpcDeliver,this,H,U,A));else if(Dsh(this,A)&&!this.isDisposed()&&this.state_!=3)if(H&&H!="tp")this.isConnected()&&(H=H.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),H=A9w.test(H)?H.substring(1):H,H=this.getService(H,U))&&(U=EBy(U,H.objectPayload),U!=null&&H.callback(U));else switch(H=this.transport_,A=er3(U),U=A[1],A[0]){case "SETUP_ACK":Ylz(H,1);H.setupAckReceived_.fired_||H.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":H.protocolVersion_==2&&(Ylz(H,2),H.setupAckReceived_.fired_||H.setupAckReceived_.callback(!0));break;case "SETUP":Ylz(H,1);Gqg(H,1);break;case "SETUP_NTPV2":H.protocolVersion_==2&&(A=H.peerProtocolVersion_,Ylz(H,2),Gqg(H,2),A!=1&&H.peerEndpointId_==null||H.peerEndpointId_==U||l6y(H),H.peerEndpointId_=U)}};
var L64=function(H){var U=H.cfg_.role;return typeof U==="number"?U:window.parent==H.peerWindowObject_?1:0},Dsh=function(H,U){var A=H.cfg_.ph;
return _.b7(U==null?"":String(U))||_.b7(A==null?"":String(A))||U==H.cfg_.ph};
PJ.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete oc[this.name];_.zg(this.peerLoadHandler_);delete this.peerLoadHandler_;PJ.superClass_.disposeInternal.call(this)};
var xKc=function(){for(var H in oc)_.zg(oc[H])},oc={};var WUr=function(H,U){this.win=H;this.allowAdsHttpEndpoint=U;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10345_domHelper=AD(H);this.scrollManager=new pWg(H);this.accessibilityManager=new PSK(H);MDh(this)},MDh=function(H){var U=function(){H.allowAdsPopup&&H.allowAdsPopup.style.setProperty("display","none","important");
H.wallElement.style.setProperty("display","","important");sQg(H.accessibilityManager);Slg(H.accessibilityManager,H.wallElement.querySelector(".fc-dialog-container"),!1,!1,H.wallElement.querySelector(".fc-button-whitelist"));H.scrollManager.enableScrolling()};
H.allowAdsPopup=H.JSC$10345_domHelper.JSC$9631_createDom("DIV",{"class":"fc-whitelist-root"});H.allowAdsPopup.style.setProperty("display","none","important");H.JSC$10345_domHelper.appendChild(H.JSC$10345_domHelper.JSC$9629_document_.body,H.allowAdsPopup);var A=H.JSC$10345_domHelper.JSC$9631_createDom("DIV",{"class":"fc-dialog-overlay"});H.JSC$10345_domHelper.appendChild(H.allowAdsPopup,A);var M=H.JSC$10345_domHelper.JSC$9631_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:U});H.JSC$10345_domHelper.appendChild(H.allowAdsPopup,
M);A=H.JSC$10345_domHelper.JSC$9631_createDom("IFRAME");A.className="fc-whitelist-dialog";A.frameBorder="0";A.id="fc-whitelist-iframe";A.tabIndex="0";_.wY(A,H.allowAdsHttpEndpoint);H.JSC$10345_domHelper.appendChild(M,A);M={};M.pu=_.e3(H.allowAdsHttpEndpoint).toString();M.tp=1;M.cn="fc-whitelist-channel";M.ifrid=A.id;M.osh=!0;H.allowAdsCrossPageChannel=new PJ(M);H.allowAdsCrossPageChannel.registerService("close",U);H.allowAdsCrossPageChannel.registerService("refresh",function(){H.win.location.reload()});
H.allowAdsCrossPageChannel.registerService("resize",function(W){if(W){var w=H.allowAdsPopup.querySelector(".fc-whitelist-dialog");W.width&&w.style.setProperty("width",W.width,"important");W.height&&w.style.setProperty("height",W.height,"important")}},!0);
H.allowAdsCrossPageChannel.connect()};
WUr.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10345_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var Yt=window,q1=document,w1w=Yt.location,X1p=function(){},i5B=/\[native code\]/,hn=function(H,U,A){return H[U]=H[U]||A},b5k=function(H){H=H.sort();
for(var U=[],A=void 0,M=0;M<H.length;M++){var W=H[M];W!=A&&U.push(W);A=W}return U},kt=function(){var H;
if((H=Object.create)&&i5B.test(H))H=H(null);else{H={};for(var U in H)H[U]=void 0}return H},vS=hn(Yt,"gapi",{});var Tz={};Tz=hn(Yt,"___jsl",kt());hn(Tz,"I",0);hn(Tz,"hel",10);var dak=function(){var H=w1w.href;if(Tz.dpo)var U=Tz.h;else{U=Tz.h;var A=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),M=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(H=H&&(A.exec(H)||M.exec(H)))try{U=decodeURIComponent(H[2])}catch(W){}}return U},O5k=function(H){var U=hn(Tz,"PQ",[]);
Tz.PQ=[];var A=U.length;if(A===0)H();else for(var M=0,W=function(){++M===A&&H()},w=0;w<A;w++)U[w](W)},uxy=function(H){return hn(hn(Tz,"H",kt()),H,kt())};var jt=function(H){this.JSC$10347_obj_=H};
jt.prototype.value=function(){return this.JSC$10347_obj_};
jt.prototype.getWidth=function(){return this.JSC$10347_obj_.width};
jt.prototype.getHeight=function(){return this.JSC$10347_obj_.height};
jt.prototype.getStyle=function(){return this.JSC$10347_obj_.style};var Z5y=function(H){this.JSC$10350_obj_=H||{}};
_.X=Z5y.prototype;_.X.value=function(){return this.JSC$10350_obj_};
_.X.setUrl=function(H){this.JSC$10350_obj_.url=H;return this};
_.X.getUrl=function(){return this.JSC$10350_obj_.url};
_.X.getStyle=function(){return this.JSC$10350_obj_.style};
_.X.getId=function(){return this.JSC$10350_obj_.id};
_.X.getContext=function(){return this.JSC$10350_obj_.context};
var fzy=function(H){H.JSC$10350_obj_.attributes=H.JSC$10350_obj_.attributes||{};return new jt(H.JSC$10350_obj_.attributes)};var J92=function(){Z5y.apply(this,arguments)};
_.R(J92,Z5y);var KUy=hn(Tz,"perf",kt());hn(KUy,"g",kt());var oXB=hn(KUy,"i",kt());hn(KUy,"r",[]);kt();kt();var PMh=function(H,U,A){U&&U.length>0&&(U=FUh(U),A&&A.length>0&&(U+="___"+FUh(A)),U.length>28&&(U=U.substr(0,28)+(U.length-28)),A=U,U=hn(oXB,"_p",kt()),hn(U,A,kt())[H]=(new Date).getTime(),U=KUy.r,typeof U==="function"?U(H,"_p",A):U.push([H,"_p",A]))},FUh=function(H){return H.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var s1m=kt(),nXy=[],Iw=function(H){throw Error("Va`"+H);};
nXy.push(["jsl",function(H){for(var U in H)if(Object.prototype.hasOwnProperty.call(H,U)){var A=H[U];typeof A=="object"?Tz[U]=hn(Tz,U,[]).concat(A):hn(Tz,U,A)}if(U=H.u)H=hn(Tz,"us",[]),H.push(U),(U=/^https:(.*)$/.exec(U))&&H.push("http:"+U[1])}]);
var Nuy=/^(\/[a-zA-Z0-9_\-]+)+$/,SDw=[/\/amp\//,/\/amp$/,/^\/amp$/],p1p=/^[a-zA-Z0-9\-_\.,!]+$/,LUm=/^gapi\.loaded_[0-9]+$/,RTB=/^[a-zA-Z0-9,._-]+$/,azy=function(H,U,A,M,W){var w=H.split(";"),d=w.shift(),O=s1m[d],f=null;O?f=O(w,U,A,M):Iw("no hint processor for: "+d);f||Iw("failed to generate load url");U=f;A=U.match(EXB);(M=U.match(maw))&&M.length===1&&gXw.test(U)&&A&&A.length===1||Iw("failed sanity: "+H);try{H="?";if(W&&W.length>0){tN0(W);var J=W.join(",");f=f+"?le="+J;H="&"}if(Tz.rol){var F=Tz.ol;
F&&F.length&&(f=""+f+H+"ol="+F.length)}}catch(P){}return f},CMn=function(H,U,A,M){H=xaH(H);
LUm.test(A)||Iw("invalid_callback");U=zTh(U);M=M&&M.length?zTh(M):null;var W=function(w){return encodeURIComponent(w).replace(/%2C/g,",")};
return[encodeURIComponent(H.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",W(H.version),"/m=",W(U),M?"/exm="+W(M):"","/rt=j/sv=1/d=1/ed=1",H.activeMods?"/am="+W(H.activeMods):"",H.resourceSig?"/rs="+W(H.resourceSig):"",H.zcms?"/t="+W(H.zcms):"","/cb=",W(A)].join("")},xaH=function(H){H.charAt(0)!=="/"&&Iw("relative path");
for(var U=H.substring(1).split("/"),A=[];U.length;){H=U.shift();if(!H.length||H.indexOf(".")==0)Iw("empty/relative directory");else if(H.indexOf("=")>0){U.unshift(H);break}A.push(H)}H={};for(var M=0,W=U.length;M<W;++M){var w=U[M].split("="),d=decodeURIComponent(w[0]),O=decodeURIComponent(w[1]);w.length==2&&d&&O&&(H[d]=H[d]||O)}U="/"+A.join("/");Nuy.test(U)||Iw("invalid_prefix");A=0;for(M=SDw.length;A<M;++A)SDw[A].test(U)&&Iw("invalid_prefix");A=tDg(H,"k",!0);M=tDg(H,"am");W=tDg(H,"rs");H=tDg(H,"t");
return{pathPrefix:U,version:A,activeMods:M,resourceSig:W,zcms:H}},zTh=function(H){for(var U=[],A=0,M=H.length;A<M;++A){var W=H[A].replace(/\./g,"_").replace(/-/g,"_");
RTB.test(W)&&U.push(W)}return U.join(",")},tDg=function(H,U,A){H=H[U];
!H&&A&&Iw("missing: "+U);if(H){if(p1p.test(H))return H;Iw("invalid: "+U)}return null},gXw=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,maw=/\/cb=/g,EXB=/\/\//g;
s1m.m=function(H,U,A,M){(H=H[0])||Iw("missing_hint");return"https://apis.google.com"+CMn(H,U,A,M)};
var c9g=decodeURI("%73cript"),y9k=/^[-+_0-9\/A-Za-z]+={0,2}$/,Buh=function(H,U){for(var A=[],M=0;M<H.length;++M){var W=H[M],w;if(w=W){a:{for(w=0;w<U.length;w++)if(U[w]===W)break a;w=-1}w=w<0}w&&A.push(W)}return A},r9w=function(){var H=Tz.nonce;
return H!==void 0?H&&H===String(H)&&H.match(y9k)?H:Tz.nonce=null:q1.querySelector?(H=q1.querySelector("script[nonce]"))?(H=H.nonce||H.getAttribute("nonce")||"",H&&H===String(H)&&H.match(y9k)?Tz.nonce=H:Tz.nonce=null):null:null},$am=function(H){if(q1.readyState!="loading")eTB(H);
else{var U=r9w(),A="";U!==null&&(A=' nonce="'+U+'"');H="<"+c9g+' src="'+encodeURI(H)+'"'+A+"></"+c9g+">";q1.write(Dam?Dam.createHTML(H):H)}},eTB=function(H){var U=q1.createElement(c9g);
U.setAttribute("src",Dam?Dam.createScriptURL(H):H);H=r9w();H!==null&&U.setAttribute("nonce",H);U.async="true";(H=q1.getElementsByTagName(c9g)[0])?H.parentNode.insertBefore(U,H):(q1.head||q1.body||q1.documentElement).appendChild(U)},G9z=function(H,U,A){lz2(function(){var M=U===dak()?hn(vS,"_",kt()):kt();
M=hn(uxy(U),"_",M);H(M)},A)},IJN=function(H,U){var A=U||{};
typeof U=="function"&&(A={},A.callback=U);var M=(U=A)&&U._c;if(M)for(var W=0;W<nXy.length;W++){var w=nXy[W][0],d=nXy[W][1];d&&Object.prototype.hasOwnProperty.call(M,w)&&d(M[w],H,U)}U=[];H?U=H.split(":"):A.features&&(U=A.features);if(!(H=A.h)&&(H=dak(),!H))throw Error("Wa");YDr(U||[],A,H)},YDr=function(H,U,A){H=b5k(H)||[];
var M=U.callback,W=U.config,w=U.timeout,d=U.ontimeout,O=U.onerror,f=void 0;typeof O=="function"&&(f=O);var J=null,F=!1;if(w&&!d||!w&&d)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";O=hn(uxy(A),"r",[]).sort();var P=hn(uxy(A),"L",[]).sort(),n=Tz.le||[],N=[].concat(O),L=function(v,Y){if(F)return 0;Yt.clearTimeout(J);P.push.apply(P,m);var D=((vS||{}).config||{}).update;D?D(W):W&&hn(Tz,"cu",[]).push(W);if(Y){PMh("me0",v,N);try{G9z(Y,A,f)}finally{PMh("me1",v,N)}}return 1};
w>0&&(J=Yt.setTimeout(function(){F=!0;d()},w));
var m=Buh(H,P);if(m.length){m=Buh(H,O);var z=hn(Tz,"CP",[]),c=z.length;z[c]=function(v){if(!v)return 0;PMh("ml1",m,N);var Y=function(h){z[c]=null;L(m,v)&&O5k(function(){M&&M();h()})},D=function(){var h=z[c+1];
h&&h()};
c>0&&z[c-1]?z[c]=function(){Y(D)}:Y(D)};
if(m.length){var C="loaded_"+Tz.I++;vS[C]=function(v){z[c](v);vS[C]=null};
H=azy(A,m,"gapi."+C,O,n);O.push.apply(O,m);PMh("ml0",m,N);U.sync||Yt.___gapisync?$am(H):eTB(H)}else z[c](X1p)}else L(m)&&M&&M()},qDw;
var hTw=null,k9H=_.Mr.trustedTypes;if(k9H&&k9H.createPolicy){try{hTw=k9H.createPolicy("goog#gapi",{createHTML:Zk2,createScript:Zk2,createScriptURL:Zk2})}catch(H){_.Mr.console&&_.Mr.console.error(H.message)}qDw=hTw}else qDw=hTw;var Dam=qDw,lz2=function(H,U){if(Tz.hee&&Tz.hel>0)try{return H()}catch(A){U&&U(A),Tz.hel--,IJN("debug_error",function(){try{window.___jsl.hefn(A)}catch(M){throw A;}})}else try{return H()}catch(A){throw U&&U(A),A;
}},vXh=vS.load;
vXh&&hn(Tz,"ol",[]).push(vXh);vS.load=function(H,U){return lz2(function(){return IJN(H,U)})};var cj7;var Iz2=function(){var H=Tu3;var U=U||[];this.moduleId_=H||null;this.dependencies_=[];j1H(this,U)};
Iz2.prototype.toString=function(){return"MpJwZc"};
Iz2.prototype.getModuleId=function(){return this.moduleId_};
var j1H=function(H,U){var A=!1;A=A===void 0?!1:A;H.dependencies_=H.dependencies_.concat(U);if(A){if(!H.moduleId_)throw Error("Xa`MpJwZc");U.map(function(M){return M.getModuleId()}).forEach(function(M){yj0(function(W){W.addExtraEdge(H.moduleId_,M)})})}};var Tu3;Tu3="MpJwZc";var kPK=new Iz2;var GR_=new _.HS("a"),TJ8=new _.HS("c"),v8F=function(H,U,A){_.$R.call(this,H,U);this.node=U;this.kind=A};
_.R(v8F,_.$R);var Q1z=function(){this.JSC$10363_keys_={};this.urlPrefix_="";this.JSC$10363_queryData_={}};
Q1z.prototype.toString=function(){var H=this.urlPrefix_+VDg(this),U=_.hz(this.JSC$10363_queryData_),A="";U!=""&&(A="?"+U);return H+A};
var HKH=function(H){H=Qw(H,"md");return!!H&&H!=="0"},VDg=function(H){var U=[],A=function(M){H.JSC$10363_keys_[M]!==void 0&&U.push(M+"="+H.JSC$10363_keys_[M])};
HKH(H)?(A("md"),A("k"),A("ck"),A("am"),A("rs"),A("gssmodulesetproto"),A("slk"),A("dti")):(A("sdch"),A("k"),A("ck"),A("am"),A("amc"),A("rt"),"d"in H.JSC$10363_keys_||Vw(H,"d","0"),A("d"),A("exm"),A("excm"),(H.JSC$10363_keys_.excm||H.JSC$10363_keys_.exm)&&U.push("ed=1"),A("im"),A("dg"),A("sm"),Qw(H,"br")!="1"&&Qw(H,"br")!="0"||A("br"),A("br-d"),Qw(H,"rb")=="1"&&A("rb"),Qw(H,"zs")!=="0"&&A("zs"),UCk(H)!==""&&A("wt"),A("gssmodulesetproto"),A("ujg"),A("sp"),A("rs"),A("cb"),A("ee"),A("slk"),A("dti"),A("m"));
return U.join("/")},Qw=function(H,U){return H.JSC$10363_keys_[U]?H.JSC$10363_keys_[U]:null},Vw=function(H,U,A){A?H.JSC$10363_keys_[U]=A:delete H.JSC$10363_keys_[U]},A0h=function(H,U){H.urlPrefix_=U},MXw=function(H,U){U&&U.length>0?(U.sort(),Vw(H,"exm",U.join(","))):Vw(H,"exm",null)},WFw=function(H,U){U&&U.length>0?(U.sort(),Vw(H,"excm",U.join(","))):Vw(H,"excm",null)},waw=function(H){return(H=Qw(H,"m"))?H.split(","):[]},UCk=function(H){switch(Qw(H,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Xaw=function(H,U){var A=Object.keys(U).filter(function(M){return!!Object.keys(U[M]).length}).map(function(M){var W=Object.keys(U[M]);
W.length>1&&W.sort();return M+":"+W.join(",")});
A.sort();Vw(H,"ee",A.join(";"))},Gq4=function(H){var U=Qw(H,"ee");
if(!U)return{};H={};U=_.b(U.split(";"));for(var A=U.next();!A.done;A=U.next()){var M=_.b(A.value.split(":"));A=M.next().value;M=M.next().value;H[A]={};M=_.b(M.split(","));for(var W=M.next();!W.done;W=M.next())H[A][W.value]=!0}return H},iKw=function(H){delete H.JSC$10363_keys_.m;
delete H.JSC$10363_keys_.exm;delete H.JSC$10363_keys_.ed};
Q1z.prototype.clone=function(){var H=new Q1z;H.JSC$10363_keys_=Object.assign({},this.JSC$10363_keys_);H.urlPrefix_=this.urlPrefix_;H.JSC$10363_queryData_=Object.assign({},this.JSC$10363_queryData_);return H};
var YlM=function(H,U){U=U===void 0?!0:U;var A=bKr(H),M=new Q1z,W=_.BL(A)[5];_.dG.forEach(dCy,function(d){var O=W.match("/"+d+"=([^/]+)");O&&Vw(M,d,O[1])});
var w="";w=H.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";A0h(M,H.substr(0,H.indexOf(w)+w.length));if(!U)return M;(H=_.BL(A)[6]||null)&&jlh(H,function(d,O){M.JSC$10363_queryData_[d]=O});
return M},Ds0=function(H){H=_.DU(bKr(H));
return H===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(H)?/\/k=/.test(H):!1},bKr=function(H){return H.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?H.substr(65):H},dCy={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",ALLOW_MISSING_CHUNKS:"amc",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",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},OKk=RegExp("^(gapi\\.)?loaded(_g|_h)?(_[0-9a-z]+)+$");_.HU=function(H){this.JSC$10375_id_=H;this.opts={}};
_.HU.prototype.JSC$10377_setLabel=function(H){this.label_=H||void 0;return this};
_.HU.prototype.addUploadMetadata=function(H,U){var A=this.opts.data||{};A[H]=U;this.opts.data=A;return this};
var u7k=function(H){var U=_.dG.filter(H.opts,function(A){return A!==null});
U=_.dG.isEmpty(U)?null:U;H=[H.JSC$10375_id_,H.label_,U];U=gch(H);return H=H.slice(0,U+1)};
_.HU.prototype.toString=function(){var H=u7k(this);return"("+_.OA(H,function(U){return JSON.stringify(U)}).join(",")+")"};
_.HU.prototype.getId=function(){return this.JSC$10375_id_};
_.HU.prototype.getOptions=function(){return _.dG.clone(this.opts)};var Up=function(){_.HU.call(this,"image-search")};
_.R(Up,_.HU);Up.prototype.setSize=function(H){this.opts.imgsz=H;return this};
Up.prototype.JSC$10377_setLabel=function(H){_.HU.prototype.JSC$10377_setLabel.call(this,H);return this};
Up.prototype.addUploadMetadata=function(H,U){_.HU.prototype.addUploadMetadata.call(this,H,U);return this};var AL=function(){_.HU.call(this,"maps")};
_.R(AL,_.HU);AL.prototype.setZoom=function(H){this.opts.zoom=H;return this};
AL.prototype.JSC$10377_setLabel=function(H){_.HU.prototype.JSC$10377_setLabel.call(this,H);return this};
AL.prototype.addUploadMetadata=function(H,U){_.HU.prototype.addUploadMetadata.call(this,H,U);return this};_.Mz=function(){_.HU.call(this,"photos")};
_.R(_.Mz,_.HU);_.Mz.prototype.JSC$10377_setLabel=function(H){_.HU.prototype.JSC$10377_setLabel.call(this,H);return this};
_.Mz.prototype.addUploadMetadata=function(H,U){_.HU.prototype.addUploadMetadata.call(this,H,U);return this};var WU=function(){_.HU.call(this,"url")};
_.R(WU,_.HU);var ZKr=function(){var H=new WU;H.opts.type="video";H.opts.site="youtube.com";return H};
WU.prototype.JSC$10377_setLabel=function(H){_.HU.prototype.JSC$10377_setLabel.call(this,H);return this};
WU.prototype.addUploadMetadata=function(H,U){_.HU.prototype.addUploadMetadata.call(this,H,U);return this};var w3=function(){_.HU.call(this,"video-search")};
_.R(w3,_.HU);var f5n=function(){var H=new w3;H.opts.site="youtube.com";return H};
w3.prototype.JSC$10377_setLabel=function(H){_.HU.prototype.JSC$10377_setLabel.call(this,H);return this};
w3.prototype.addUploadMetadata=function(H,U){_.HU.prototype.addUploadMetadata.call(this,H,U);return this};var J0y=function(){_.HU.call(this,"web")};
_.R(J0y,_.HU);J0y.prototype.JSC$10377_setLabel=function(H){_.HU.prototype.JSC$10377_setLabel.call(this,H);return this};
J0y.prototype.addUploadMetadata=function(H,U){_.HU.prototype.addUploadMetadata.call(this,H,U);return this};var Xb=function(){this.items_=[];this.opts={}},KFm=function(H){switch(H){case "image-search":return new Up;
case "maps":return new AL;case "photos":return new _.Mz;case "url":return new WU;case "video-search":return new w3;case "web":return new J0y}return new _.HU(H)};
Xb.prototype.addView=function(H){this.items_.push(typeof H==="string"?KFm(H):H);return this};
var oAk=function(H){return"("+_.OA(H.items_,function(U){return U.toString()}).join(",")+")"};
Xb.prototype.toString=function(){return oAk(this)};
Xb.prototype.getViews=function(H,U){U=U===void 0?[]:U;for(var A=this.items_,M=0;M<A.length;M++){var W=A[M];W instanceof Xb?W.getViews(H,U):W.getId()==H&&U.push(W)}return U};
Xb.prototype.getOptions=function(){return _.dG.clone(this.opts)};var xR=function(H){this.basePickerUrl_=H||"https://docs.google.com/picker";this.nav_=new Xb};
xR.prototype.nav_=null;xR.prototype.addView=function(H){this.nav_.addView(H);return this};
xR.prototype.getBaseUrl=function(){return this.basePickerUrl_};
xR.prototype.getViews=function(H){return this.nav_.getViews(H)};
_.FFp=function(H,U){H.callback_=U;return H};var Puy=new Map;Puy.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");Puy.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");Puy.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var s$K=new Set;s$K.add("application/vnd.google-apps.kix");s$K.add("application/vnd.google-apps.ritz");s$K.add("application/vnd.google-apps.punch");var zaH=function(H,U,A){var M=A&&_.Mn(A,1);A=nAn(A);var W=H[0].getId();switch(_.Wn(W,2)){case 13:return NV3(H,U,M,A);case 3:return Sow(H,U,M,A);case 10:return pag(H,U,M,A);case 27:return pag(H,U,M,A);case 12:return LFp(H,U);case 2:return Raw(H,U,M,A);case 5:return EAy(H,U,M,A);case 9:return mCp(H,U,M,A);case 6:return gAp(H,U,M,A);case 25:return a5m(H,U,M,A);case 1:return _.hI(H[0],OWk,26)?xCn(H,U,M,A):pag(H,U,M,A);default:return{}}},gAp=function(H,U,A,M){H=H.map(function(W){return{id:W.getId().getId(),
serviceId:"youtube",name:W.getName(),description:_.Mn(W,3),type:iw(W),lastEditedUtc:_.dgz(_.qK(W,_.wz,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:W.getUrl(),embedUrl:_.Mn(W,13),thumbnails:bw(ze(W))}});
return{action:U,docs:H,viewToken:M,view:A||"youtube",v2Translated:!0}},Raw=function(H,U,A,M){var W=H.map(function(w){var d=w.getId().getId(),O=_.Mn(w,7),f=w.getName(),J=iw(w),F=_.dgz(_.qK(w,_.wz,12)).getTime(),P=w.getUrl(),n=Number(xXy(w)),N=_.Mn(w,3),L=_.Mn(w,11),m=bw(ze(w));
var z=_.qK(w,Ct,21);z=_.Hn(z,1);var c=_.qK(w,Ct,21);c=_.Mn(c,10);var C=_.Mn(w,13);var v=_.qK(w,Ct,21);v=_.Hn(v,9);var Y=_.qK(w,Ct,21);Y=_.Mn(Y,11);d={id:d,serviceId:"docs",mimeType:O,name:f,type:J,lastEditedUtc:F,url:P,sizeBytes:n,description:N,iconUrl:L,thumbnails:m,isShared:z,downloadUrl:c,embedUrl:C,copyable:v,resourceKey:Y};O=_.qK(w,Ct,21);_.Hn(O,12)&&(d.uploadState="success",d.isNew=!0);O=_.qK(w,Ct,21);_.hI(O,gp,3)&&(w=_.qK(w,Ct,21),w=_.qK(w,gp,3),_.hI(w,ER,2)&&(O=Sv(w.getDuration().getSeconds()),
f=w.getDuration(),f=_.B8(f,2),d.duration=O+f/1E9),d.aspectRatio=w.getAspectRatio());return d});
return{action:U,docs:W,viewToken:M,view:A||"all",extraUserInputs:Cuz(H),v2Translated:!0}},EAy=function(H,U,A,M){H=H.map(function(W){var w=_.qK(W,sch,15);
w=_.qK(w,m3,1);A9(W,10,m3,w);return{id:W.getId().getId(),serviceId:"web",mimeType:_.Mn(W,7),name:W.getName(),type:iw(W),url:W.getUrl(),description:_.Mn(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:bw(ze(W))}});
return{action:U,docs:H,viewToken:M,view:A||"image-search",v2Translated:!0}},mCp=function(H,U,A,M){H=H.map(function(W){return{serviceId:"url",
name:ze(W)[0].getUrl().split("/").pop(),type:iw(W),mimeType:_.Mn(W,7),url:W.getUrl(),description:_.Mn(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:bw(ze(W))}});
return{action:U,docs:H,viewToken:M,view:A||"url",v2Translated:!0}},xCn=function(H,U,A,M){H=H.map(function(W){return{id:W.getId().getId(),
serviceId:"picasa",name:W.getName(),type:iw(W),description:_.Mn(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:bw(ze(W))}});
return{action:U,docs:H,viewToken:M,view:A||"webcam",v2Translated:!0}},pag=function(H,U,A,M){return{action:U,
docs:H.map(tXw),viewToken:M,view:c02(A||"upload",H),extraUserInputs:Cuz(H),v2Translated:!0}},c02=function(H,U){return U.some(function(A){var M;
return((M=_.qK(A,ax,30))==null?void 0:_.Wn(M,3))===9})?H+"/gmailphotos":H},Sow=function(H,U,A,M){var W=H.map(function(w){var d={id:w.getId().getId(),
serviceId:"picasa",mimeType:_.Mn(w,7),name:w.getName(),type:iw(w),lastEditedUtc:_.dgz(_.qK(w,_.wz,12)).getTime(),url:w.getUrl(),sizeBytes:Number(xXy(w)),description:_.Mn(w,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:bw(ze(w)),mediaKey:w.getId().getId(),parentId:_.Mn(w,4)},O,f=(O=_.qK(w,fTk,18))==null?void 0:_.qK(O,ZWw,3);f&&(d.latitude=Ag(f,1),d.longitude=Ag(f,2));var J;w=(J=_.qK(w,fTk,18))==null?void 0:Uh(J,6);J=w!=null?Sv(w):void 0;J&&(d.version=
J);return d});
return{action:U,docs:W,viewToken:M,view:A||"photos",extraUserInputs:Cuz(H),v2Translated:!0}},NV3=function(H,U,A,M){H=H.map(function(W){return{id:W.getId().getId(),
serviceId:"et",name:ze(W)[0].getUrl().split("/").pop(),description:_.Mn(W,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:bw(ze(W),"etjpg")}});
return{action:U,docs:H,viewToken:M,view:A||"et",v2Translated:!0}},a5m=function(H,U,A,M){H=H.map(function(W){var w=W.getId().getId(),d=M["2"];
return{id:w,serviceId:d.type!=="gmail_themes"&&d.parent==="6226252643674576769"?"picasa":"static_themes",name:W.getName(),mimeType:_.Mn(W,7),type:iw(W),description:_.Mn(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:W.getUrl(),embedUrl:W.getUrl(),thumbnails:bw(ze(W))}});
return{action:U,docs:H,viewToken:M,view:A||"photos",v2Translated:!0}},LFp=function(H,U){H=H.map(function(A){var M=_.qK(A,uG2,27);
M=_.IY(M,1,_.m5,_.y9())[0];return{id:A.getId().getId(),serviceId:"contacts",mimeType:_.Mn(A,7),name:A.getName(),description:_.Mn(A,3),url:"mailto:"+M,thumbnail:[{url:_.Mn(A,11)}],email:M}});
return{action:U,docs:H,view:"contacts",v2Translated:!0}},nAn=function(H){if(!H)return{};
var U=_.Mn(H,3);U=U&&JSON.parse(U)||{};return{0:_.Mn(H,1),1:_.Mn(H,2),2:U}},bw=function(H,U){U=U===void 0?"":U;
if(!H.length)return null;U=="etjpg"&&(H=H.filter(function(A){return A.getUrl().includes("w1200-h300")}));
return H.map(function(A){return{url:A.getUrl(),height:A.getHeight(),width:A.getWidth(),type:U}})},Cuz=function(H){return{isAttachment:H.some(function(U){return _.Hn(U,31)})}},tXw=function(H){var U,A={id:(U=H.getId())==null?void 0:U.getId(),
serviceId:y0B(H),mimeType:_.Mn(H,7),name:H.getName(),type:iw(H),sizeBytes:Number(xXy(H)),description:_.Mn(H,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:bw(ze(H)),isNew:!0};if(U=_.qK(H,ax,30)){A.dataUrl=_.Mn(U,1)||null;a:{var M=_.qK(H,ax,30);switch(_.Wn(M,3)){case 9:M=_.io(M,FKy,2,xh);M={remoteRefs:M&&_.Mn(M,1)};break a;case 10:case 15:M=_.io(M,oRk,4,xh);var W=ze(H);M={photo_id:M&&_.Mn(M,1),media_key:H.getId().getId(),media_type:_.Wn(H,6)===1?1:2,image_url:W&&
W[0].getUrl(),width:W&&String(W[0].getWidth()),height:W&&String(W[0].getHeight())};break a}M=null}A.uploadMetadata=M;A.uploadId=_.Mn(U,9)||null;A.uploadState=BVw(U)||null}(M=U&&_.io(U,oRk,4,xh))&&(A.id=_.Mn(M,1));(M=U&&_.io(U,P9w,5,xh))&&(A.contentId=_.Mn(M,1));(M=U&&_.io(U,J8h,7,xh))&&(A.contentId=_.Mn(M,1));(M=U&&_.io(U,KKk,6,xh))&&(A.contentId=_.Mn(M,1));(U==null?void 0:_.Wn(U,3))===1&&(A.mediaKey=H.getId().getId());return A},y0B=function(H){var U;
switch(((U=_.qK(H,ax,30))==null?void 0:_.Wn(U,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},iw=function(H){switch(_.Wn(H,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 _.Mn(H,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},BVw=function(H){switch(H==null?void 0:_.Wn(H,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 $CH,r0K,eaw,DCB;_.l5w=function(H,U){var A=U||{};U=A.document||document;var M=_.e3(H).toString(),W=(new Xw(U)).createElement("SCRIPT"),w={script_:W,timeout_:void 0},d=new fW(r0K,w),O=null,f=A.timeout!=null?A.timeout:5E3;f>0&&(O=window.setTimeout(function(){eaw(W,!0);d.errback(new DCB(1,"Timeout reached for loading script "+M))},f),w.timeout_=O);
W.onload=W.onreadystatechange=function(){W.readyState&&W.readyState!="loaded"&&W.readyState!="complete"||(eaw(W,A.cleanupWhenDone||!1,O),d.callback(null))};
W.onerror=function(){eaw(W,!0,O);d.errback(new DCB(0,"Error while loading script "+M))};
w=A.attributes||{};_.dG.extend(w,{type:"text/javascript",charset:"UTF-8"});JDw(W,w);_.J$(W,H);$CH(U).appendChild(W);return d};
$CH=function(H){var U=A8("HEAD",H);return U&&U.length!==0?U[0]:H.documentElement};
r0K=function(){if(this&&this.script_){var H=this.script_;H&&H.tagName=="SCRIPT"&&eaw(H,!0,this.timeout_)}};
eaw=function(H,U,A){A!=null&&_.Mr.clearTimeout(A);H.onload=function(){};
H.onerror=function(){};
H.onreadystatechange=function(){};
U&&window.setTimeout(function(){_.U5(H)},0)};
DCB=function(H,U){var A="Jsloader error (code #"+H+")";U&&(A+=": "+U);_.HF.call(this,A);this.code=H};
_.zo(DCB,_.HF);var GSz=_.NP(["https://apis.google.com/js/api.js"]),Yoy=_.LF(GSz),vAh=function(H,U,A){A=A===void 0?{}:A;var M=!1,W=qoK(H,U,A).then(function(d){M=!0;return d}),w=_.NDw(5E3).then(function(){return M?qoK(H,U,A):haz(U,A).then(function(d){return kSh(d,H)})});
return dUm([W,w])},qoK=function(H,U,A){A=A===void 0?{}:A;
return TVB(U,A).then(function(M){return kSh(M,H)})},kSh=function(H,U){var A=_.XE(U,"gapi.")?U.slice(5):U;
return H[A]?_.DH(H[A]):new _.IQ(function(M,W){var w=da(function(){W(Error("Za"))},3E4);
H.load(U,{callback:function(){_.Mr.clearTimeout(w);M(H[A])},
onerror:function(d){_.Mr.clearTimeout(w);W(d)}})})},TVB=function(H,U){U=U===void 0?{}:U;
return H.gapi&&H.gapi.load?_.DH(H.gapi):haz(H,U)},haz=function(H,U){U=U===void 0?{}:U;
return _.l5w(Yoy,{document:H.document,attributes:U}).then(function(){return H.gapi})},j$n=function(){};
j$n.prototype.load=function(H,U,A){U=U===void 0?window:U;A=A===void 0?{}:A;var M=Date.now();return vAh(H,U,A).then(function(W){var w=Date.now();return{library:W,loadStartMs:M,loadEndMs:w}},function(W){throw W instanceof Error?W:Error(String(W));
})};var Ak4=function(){_.XG.call(this);this.gapiLoader_=new j$n;this.origin_=null;this.gapiPickerIframeResolver_=_.oL();this.gapiIframesResolver_=_.oL();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.R(Ak4,_.XG);var I5K=function(H,U){var A=A===void 0?{}:A;var M=_.tr("gapi.iframes",U);return M?(H=Date.now(),_.DH({library:M,loadStartMs:H,loadEndMs:H})):H.gapiLoader_.load("gapi.iframes",U,A)},Q$K=function(H,U,A,M,W,w){var d=!1;
d=d===void 0?!1:d;I5K(H,uV(U.ownerDocument)).then(function(O){var f=O.library;H.gapiIframesResolver_.resolve(f);O=H.gapiPickerIframeResolver_;var J=O.resolve,F=d;F=F===void 0?!1:F;var P={};P["host-message-handler"]=A;H.hostMessageHandlerInternal_=P;var n=_.yX(M);n=_.yX(n);n=_.tn(_.CR(_.zz(new _.n1,n.scheme_),n.JSC$10335_domain_),n.JSC$10335_port_).toString();H.origin_=n;n=(new J92).setUrl(M);n.JSC$10350_obj_.where=U;n.JSC$10350_obj_.allowPost=F;n.JSC$10350_obj_.messageHandlers=P;F=_.tr("makeWhiteListIframesFilter",
f)([H.origin_]);n.JSC$10350_obj_.messageHandlersFilter=F;W!=null&&(n.JSC$10350_obj_.id=W);w!=null&&(n.JSC$10350_obj_.rpctoken=w);F=fzy(n);F.JSC$10347_obj_.style={display:"block","min-width":"100%",width:"1px"};F.JSC$10347_obj_.height="100%";fzy(n).value().allow="camera 'src' "+H.origin_;f=f.getContext().openChild(n.value());J.call(O,f)},function(O){H.gapiIframesResolver_.reject(O);
H.gapiPickerIframeResolver_.reject(O)});
return H.gapiPickerIframeResolver_.promise},VXK=function(H,U){return _.iR([H.gapiIframesResolver_.promise,
H.gapiPickerIframeResolver_.promise]).then(function(A){var M=_.b(A);A=M.next().value;return(M=M.next().value)?M.send("picker-message-handler",U,void 0,_.tr("makeWhiteListIframesFilter",A)([H.origin_])):_.H$(Error("$a"))})};
Ak4.prototype.disposeInternal=function(){Hv3(this);_.XG.prototype.disposeInternal.call(this)};
var Hv3=function(H){H.gapiPickerIframeResolver_.promise.then(function(U){U&&(U.unregister("host-message-handler"),delete H.hostMessageHandlerInternal_["host-message-handler"])})};var Ujz=function(){this.nextId=0};var MUp=function(H,U){switch(H.action){case "select-contacts":H=ATr(H.contacts);break;case "visibility":H=H.visible;var A=new BQ;H=_.d4(A,1,7).setVisible(H);A={};A["iframe-command"]=H.serialize();H=A;break;default:H=null}return H?VXK(U,H):_.DH()},ATr=function(H){if(!H||H.length==0)return null;
var U=new BQ;_.d4(U,1,11);var A=new Ujz;H.forEach(function(M){if(M.email){var W=new IH;W=_.Pl(W,2,M.name?M.name:M.email);var w=new uG2;M=_.QY4(w,1,_.L8,M.email,_.m5);M=_.CN(W,27,M);W=new bWr;w=":"+(A.nextId++).toString(36);W=_.Pl(W,1,w);W=_.d4(W,2,12);M=_.CN(M,1,W)}else M=null;M&&A9(U,7,IH,M)});
H={};H["iframe-command"]=U.serialize();return H};_.Wz2=function(){if(vK2){var H=/Windows NT ([0-9.]+)/;return(H=H.exec(_.FE()))?H[1]:"0"}return _.k2z?(H=/1[0|1][_.][0-9_.]+/,(H=H.exec(_.FE()))?H[0].replace(/_/g,"."):"10"):ggc?(H=/Android\s+([^\);]+)(\)|;)/,(H=H.exec(_.FE()))?H[1]:""):jy2||I3m||Qyw?(H=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(H=H.exec(_.FE()))?H[1].replace(/_/g,"."):""):""}();var d3;d3=function(H){return(H=H.exec(_.FE()))?H[1]:""};
_.wxr=function(){if(_.ed)return d3(/Firefox\/([0-9.]+)/);if(_.Bu||BK||Yzp)return wjg;if(_.DB){if(_.xc()||_.R4r()){var H=d3(/CriOS\/([0-9.]+)/);if(H)return H}return d3(/Chrome\/([0-9.]+)/)}if(_.pO&&!_.xc())return d3(/Version\/([0-9.]+)/);if(Jc8||KHV){if(H=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.FE()))return H[1]+"."+H[2]}else if(O8g)return(H=d3(/Android\s+([0-9.]+)/))?H:d3(/Version\/([0-9.]+)/);return""}();var Xxk=function(){};
_.aH(Xxk);Xxk.prototype.nextId_=0;_.Op=function(H){return":"+(H.nextId_++).toString(36)};var mK=function(H){_.LW.call(this);this.JSC$10445_dom_=H||AD();this.JSC$10445_id_=null;this.inDocument_=!1;this.JSC$10445_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.zo(mK,_.LW);mK.prototype.idGenerator_=Xxk.getInstance();mK.prototype.getId=function(){return this.JSC$10445_id_||(this.JSC$10445_id_=_.Op(this.idGenerator_))};
mK.prototype.getElement=function(){return this.JSC$10445_element_};
var uw=function(H){H.googUiComponentHandler_||(H.googUiComponentHandler_=new _.u9(H));return H.googUiComponentHandler_},iv3=function(H,U){if(H==U)throw Error("ab");
var A;if(A=U&&H.parent_&&H.JSC$10445_id_){A=H.parent_;var M=H.JSC$10445_id_;A=A.childIndex_&&M?_.dG.get(A.childIndex_,M)||null:null}if(A&&H.parent_!=U)throw Error("ab");H.parent_=U;mK.superClass_.setParentEventTarget.call(H,U)};
mK.prototype.setParentEventTarget=function(H){if(this.parent_&&this.parent_!=H)throw Error("bb");mK.superClass_.setParentEventTarget.call(this,H)};
mK.prototype.JSC$10447_createDom=function(){this.JSC$10445_element_=this.JSC$10445_dom_.createElement("DIV")};
mK.prototype.render=function(H){bvh(this,H)};
var bvh=function(H,U,A){if(H.inDocument_)throw Error("cb");H.JSC$10445_element_||H.JSC$10447_createDom();U?U.insertBefore(H.JSC$10445_element_,A||null):H.JSC$10445_dom_.JSC$9629_document_.body.appendChild(H.JSC$10445_element_);H.parent_&&!H.parent_.inDocument_||H.enterDocument()};
_.X=mK.prototype;_.X.decorate=function(H){if(this.inDocument_)throw Error("cb");if(H&&this.canDecorate(H)){this.wasDecorated_=!0;var U=_.ZD(H);this.JSC$10445_dom_&&this.JSC$10445_dom_.JSC$9629_document_==U||(this.JSC$10445_dom_=AD(H));this.decorateInternal(H);this.enterDocument()}else throw Error("db");};
_.X.canDecorate=function(){return!0};
_.X.decorateInternal=function(H){this.JSC$10445_element_=H};
_.X.enterDocument=function(){this.inDocument_=!0;djm(this,function(H){!H.inDocument_&&H.getElement()&&H.enterDocument()})};
_.X.exitDocument=function(){djm(this,function(H){H.inDocument_&&H.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.X.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);djm(this,function(H){H.dispose()});
!this.wasDecorated_&&this.JSC$10445_element_&&_.U5(this.JSC$10445_element_);this.parent_=this.model_=this.JSC$10445_element_=this.childIndex_=this.children_=null;mK.superClass_.disposeInternal.call(this)};
_.X.getModel=function(){return this.model_};
_.X.addChild=function(H,U){var A=this.children_?this.children_.length:0;if(H.inDocument_&&(U||!this.inDocument_))throw Error("cb");if(A<0||A>(this.children_?this.children_.length:0))throw Error("eb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);H.parent_==this?(_.dG.set(this.childIndex_,H.getId(),H),_.Dc(this.children_,H)):_.dG.add(this.childIndex_,H.getId(),H);iv3(H,this);_.C74(this.children_,A,0,H);H.inDocument_&&this.inDocument_&&H.parent_==this?(U=this.getContentElement(),
(U.childNodes[A]||null)!=H.getElement()&&(H.getElement().parentElement==U&&U.removeChild(H.getElement()),A=U.childNodes[A]||null,U.insertBefore(H.getElement(),A))):U?(this.JSC$10445_element_||this.JSC$10447_createDom(),A=this.children_?this.children_[A+1]||null:null,bvh(H,this.getContentElement(),A?A.JSC$10445_element_:null)):this.inDocument_&&!H.inDocument_&&H.JSC$10445_element_&&H.JSC$10445_element_.parentNode&&H.JSC$10445_element_.parentNode.nodeType==1&&H.enterDocument()};
_.X.getContentElement=function(){return this.JSC$10445_element_};
var djm=function(H,U){H.children_&&H.children_.forEach(U,void 0)};
mK.prototype.removeChild=function(H,U){if(H){var A=typeof H==="string"?H:H.getId();H=this.childIndex_&&A?_.dG.get(this.childIndex_,A)||null:null;A&&H&&(_.dG.remove(this.childIndex_,A),_.Dc(this.children_,H),U&&(H.exitDocument(),H.JSC$10445_element_&&_.U5(H.JSC$10445_element_)),iv3(H,null))}if(!H)throw Error("fb");return H};_.zo(ebK,rj0);_.zo(DK0,rj0);var Ovh;_.dG.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var ugg=function(H,U){U?H.setAttribute("role",U):H.removeAttribute("role")},Zp=function(H,U,A){Array.isArray(A)&&(A=A.join(" "));
var M="aria-"+U;A===""||A==void 0?(Ovh||(A={},Ovh=(A.atomic=!1,A.autocomplete="none",A.dropeffect="none",A.haspopup=!1,A.live="off",A.multiline=!1,A.multiselectable=!1,A.orientation="vertical",A.readonly=!1,A.relevant="additions text",A.required=!1,A.sort="none",A.busy=!1,A.disabled=!1,A.hidden=!1,A.invalid="false",A)),A=Ovh,U in A?H.setAttribute(M,A[U]):H.removeAttribute(M)):H.setAttribute(M,A)};var ZvB;_.fB=function(H,U,A){_.LW.call(this);this.target=H;this.handle=U||H;this.limits=A||new gN(NaN,NaN,NaN,NaN);this.JSC$10450_document_=_.ZD(H);this.JSC$10450_eventHandler_=new _.u9(this);_.kl(this,this.JSC$10450_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;_.Rc(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=ZvB};
_.zo(_.fB,_.LW);ZvB=_.Mr.document&&_.Mr.document.documentElement&&!!_.Mr.document.documentElement.setCapture&&!!_.Mr.document.releaseCapture;_.f2h=function(H,U){H.hysteresisDistanceSquared_=Math.pow(U,2)};
_.X=_.fB.prototype;_.X.setEnabled=function(H){this.enabled_=H};
_.X.disposeInternal=function(){_.fB.superClass_.disposeInternal.call(this);_.WS(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10450_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10450_document_.releaseCapture();this.handle=this.target=null};
_.X.startDrag=function(H){var U=H.type=="mousedown";if(!this.enabled_||this.dragging_||U&&(!H.isButton(0)||_.k2z&&H.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new JL("start",this,H.clientX,H.clientY,H)))this.dragging_=!0,U&&H.preventDefault();else return;else U&&H.preventDefault();U=this.JSC$10450_document_;var A=U.documentElement,M=!this.useSetCapture_;this.JSC$10450_eventHandler_.listen(U,["touchmove","mousemove"],this.handleMove_,
{capture:M,passive:!1});this.JSC$10450_eventHandler_.listen(U,["touchend","mouseup"],this.endDrag,M);this.useSetCapture_?(A.setCapture(!1),this.JSC$10450_eventHandler_.listen(A,"losecapture",this.endDrag)):this.JSC$10450_eventHandler_.listen(uV(U),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10450_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,M);this.clientX=this.startX=H.clientX;this.clientY=this.startY=H.clientY;this.screenX=H.screenX;this.screenY=H.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=H8(AD(this.JSC$10450_document_))}};
_.X.endDrag=function(H,U){this.JSC$10450_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10450_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new JL("end",this,H.clientX,H.clientY,H,JTn(this,this.deltaX),Kzy(this,this.deltaY),U||H.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.X.handleMove_=function(H){if(this.enabled_){var U=H.clientX-this.clientX,A=H.clientY-this.clientY;this.clientX=H.clientX;this.clientY=H.clientY;this.screenX=H.screenX;this.screenY=H.screenY;if(!this.dragging_){var M=this.startX-this.clientX,W=this.startY-this.clientY;if(M*M+W*W>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new JL("start",this,H.clientX,H.clientY,H)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(H);return}}A=o8n(this,U,A);U=A.x;A=A.y;this.dragging_&&this.dispatchEvent(new JL("beforedrag",
this,H.clientX,H.clientY,H,U,A))&&(Fzm(this,H,U,A),H.preventDefault())}};
var o8n=function(H,U,A){var M=H8(AD(H.JSC$10450_document_));U+=M.x-H.pageScroll.x;A+=M.y-H.pageScroll.y;H.pageScroll=M;H.deltaX+=U;H.deltaY+=A;return new _.E6(JTn(H,H.deltaX),Kzy(H,H.deltaY))};
_.fB.prototype.onScroll_=function(H){var U=o8n(this,0,0);H.clientX=this.clientX;H.clientY=this.clientY;Fzm(this,H,U.x,U.y)};
var Fzm=function(H,U,A,M){H.target.style.left=A+"px";H.target.style.top=M+"px";H.dispatchEvent(new JL("drag",H,U.clientX,U.clientY,U,A,M))},JTn=function(H,U){var A=H.limits;
H=isNaN(A.left)?null:A.left;A=isNaN(A.width)?0:A.width;return Math.min(H!=null?H+A:Infinity,Math.max(H!=null?H:-Infinity,U))},Kzy=function(H,U){var A=H.limits;
H=isNaN(A.top)?null:A.top;A=isNaN(A.height)?0:A.height;return Math.min(H!=null?H+A:Infinity,Math.max(H!=null?H:-Infinity,U))};
_.fB.prototype.isDragging=function(){return this.dragging_};
var JL=function(H,U,A,M,W,w,d){_.$R.call(this,H);this.clientX=A;this.clientY=M;this.browserEvent=W;this.left=w!==void 0?w:U.deltaX;this.top=d!==void 0?d:U.deltaY};
_.zo(JL,_.$R);var KB=function(H){this.JSC$10457_map_=new Map;var U=arguments.length;if(U>1){if(U%2)throw Error("na");for(var A=0;A<U;A+=2)this.set(arguments[A],arguments[A+1])}else H&&this.addAll(H)};
_.X=KB.prototype;_.X.getCount=function(){return this.JSC$10457_map_.size};
_.X.getValues=function(){return Array.from(this.JSC$10457_map_.values())};
_.X.getKeys=function(){return Array.from(this.JSC$10457_map_.keys())};
_.X.containsKey=function(H){return this.JSC$10457_map_.has(H)};
_.X.containsValue=function(H){return this.getValues().some(function(U){return U==H})};
_.X.equals=function(H,U){var A=this;U=U===void 0?function(M,W){return M===W}:U;
return this===H?!0:this.JSC$10457_map_.size!=H.getCount()?!1:this.getKeys().every(function(M){return U(A.JSC$10457_map_.get(M),H.get(M))})};
_.X.isEmpty=function(){return this.JSC$10457_map_.size==0};
_.X.clear=function(){this.JSC$10457_map_.clear()};
_.X.remove=function(H){return this.JSC$10457_map_.delete(H)};
_.X.get=function(H,U){return this.JSC$10457_map_.has(H)?this.JSC$10457_map_.get(H):U};
_.X.set=function(H,U){this.JSC$10457_map_.set(H,U);return this};
_.X.addAll=function(H){if(H instanceof KB){H=_.b(H.JSC$10457_map_);for(var U=H.next();!U.done;U=H.next()){var A=_.b(U.value);U=A.next().value;A=A.next().value;this.JSC$10457_map_.set(U,A)}}else if(H)for(H=_.b(Object.entries(H)),U=H.next();!U.done;U=H.next())A=_.b(U.value),U=A.next().value,A=A.next().value,this.JSC$10457_map_.set(U,A)};
_.X.forEach=function(H,U){var A=this;U=U===void 0?this:U;this.JSC$10457_map_.forEach(function(M,W){return H.call(U,M,W,A)})};
_.X.clone=function(){return new KB(this)};(function(){for(var H=["ms","moz","webkit","o"],U,A=0;U=H[A]&&!_.Mr.requestAnimationFrame;++A)_.Mr.requestAnimationFrame=_.Mr[U+"RequestAnimationFrame"],_.Mr.cancelAnimationFrame=_.Mr[U+"CancelAnimationFrame"]||_.Mr[U+"CancelRequestAnimationFrame"];if(!_.Mr.requestAnimationFrame){var M=0;_.Mr.requestAnimationFrame=function(W){var w=(new Date).getTime(),d=Math.max(0,16-(w-M));M=w+d;return _.Mr.setTimeout(function(){W(w+d)},d)};
_.Mr.cancelAnimationFrame||(_.Mr.cancelAnimationFrame=function(W){clearTimeout(W)})}})();
var l0E=[[],[]],GUc=0,Y4_=!1,$Kc=0;var PUH=_.NP(["about:blank"]),sgz=_.NP(["javascript:undefined"]),n8K=_.LF(PUH);_.e3(n8K);var NJH=_.LF(sgz);_.e3(NJH);_.zo(E5,_.LW);E5.prototype.handleEvent=function(H){var U=new _.U0(H.event_);U.type=H.type=="focusin"||H.type=="focus"?"focusin":"focusout";this.dispatchEvent(U)};
E5.prototype.disposeInternal=function(){E5.superClass_.disposeInternal.call(this);jq(this.listenKeyIn_);jq(this.listenKeyOut_);delete this.JSC$10463_element_};_.zo(gO,mK);_.X=gO.prototype;_.X.focusHandler_=null;_.X.visible_=!1;_.X.bgEl_=null;_.X.bgIframeEl_=null;_.X.tabCatcherElement_=null;_.X.backwardTabWrapInProgress_=!1;_.X.getCssClass=function(){return"goog-modalpopup"};
_.X.getBackgroundElement=function(){return this.bgEl_};
_.X.JSC$10447_createDom=function(){gO.superClass_.JSC$10447_createDom.call(this);var H=this.getElement(),U=fh(this.getCssClass()).split(" ");E0(H,U);H.tabIndex=0;_.ev(H,!1);Se3(this);pxp(this)};
var Se3=function(H){if(H.useIframeMask_&&!H.bgIframeEl_){var U=H.JSC$10445_dom_.JSC$9631_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.wY(U,n8K);H.bgIframeEl_=U;H.bgIframeEl_.className=H.getCssClass()+"-bg";_.ev(H.bgIframeEl_,!1);Ggg(H.bgIframeEl_,0)}H.bgEl_||(H.bgEl_=H.JSC$10445_dom_.JSC$9631_createDom("DIV",H.getCssClass()+"-bg"),_.ev(H.bgEl_,!1))},pxp=function(H){H.tabCatcherElement_||(H.tabCatcherElement_=H.JSC$10445_dom_.createElement("SPAN"),_.ev(H.tabCatcherElement_,
!1),H.tabCatcherElement_.tabIndex=0,H.tabCatcherElement_.style.position="absolute")};
_.X=gO.prototype;_.X.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.X.canDecorate=function(H){return!!H&&H.tagName=="DIV"};
_.X.decorateInternal=function(H){gO.superClass_.decorateInternal.call(this,H);H=fh(this.getCssClass()).split(" ");E0(this.getElement(),H);Se3(this);pxp(this);this.getElement().tabIndex=0;_.ev(this.getElement(),!1)};
_.X.enterDocument=function(){this.bgIframeEl_&&_.ft(this.bgIframeEl_,this.getElement());_.ft(this.bgEl_,this.getElement());gO.superClass_.enterDocument.call(this);_.JJ(this.tabCatcherElement_,this.getElement());this.focusHandler_=new E5(this.JSC$10445_dom_.JSC$9629_document_);uw(this).listen(this.focusHandler_,"focusin",this.onFocus);Lzp(this,!1)};
_.X.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.zg(this.focusHandler_);gO.superClass_.exitDocument.call(this);_.U5(this.bgIframeEl_);_.U5(this.bgEl_);_.U5(this.tabCatcherElement_)};
_.X.setVisible=function(H){if(H!=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_&&Lzp(this,H),H){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10445_dom_.JSC$9629_document_.activeElement}catch(W){}this.updateModalAndBackground_();uw(this).listen(this.JSC$10445_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10445_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);RWm(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)FG(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){uw(this).unlisten(this.JSC$10445_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10445_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)FG(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var U=this.JSC$10445_dom_,A=U.JSC$9629_document_.body,M=U.JSC$9629_document_.activeElement||A;if(!this.lastFocus_||this.lastFocus_==A){this.lastFocus_=null;break a}(M==A||U.contains(this.getElement(),M))&&this.lastFocus_.focus()}catch(W){}this.lastFocus_=
null}}};
var Lzp=function(H,U){H.modalAriaVisibilityHelper_||(H.modalAriaVisibilityHelper_=new kUt(H.JSC$10445_element_,H.JSC$10445_dom_));H=H.modalAriaVisibilityHelper_;if(U){H.hiddenElements_||(H.hiddenElements_=[]);U=H.JSC$10466_dom_.getChildren(H.JSC$10466_dom_.JSC$9629_document_.body);for(var A=0;A<U.length;A++){var M=U[A],W;if(W=M!=H.JSC$10466_element_)W=M.getAttribute("aria-hidden"),W=!(W==null||W==void 0?0:String(W));W&&(Zp(M,"hidden",!0),H.hiddenElements_.push(M))}}else if(H.hiddenElements_){for(U=
0;U<H.hiddenElements_.length;U++)H.hiddenElements_[U].removeAttribute("aria-hidden");H.hiddenElements_=null}};
gO.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var RWm=function(H,U){H.bgIframeEl_&&_.ev(H.bgIframeEl_,U);H.bgEl_&&_.ev(H.bgEl_,U);_.ev(H.getElement(),U);_.ev(H.tabCatcherElement_,U)};
_.X=gO.prototype;_.X.onShow=function(){this.dispatchEvent("show")};
_.X.onHide=function(){RWm(this,!1);this.dispatchEvent("hide")};
_.X.isVisible=function(){return this.visible_};
_.X.focus=function(){this.focusElement_()};
_.X.resizeBackground_=function(){this.bgIframeEl_&&_.ev(this.bgIframeEl_,!1);this.bgEl_&&_.ev(this.bgEl_,!1);var H=this.JSC$10445_dom_.JSC$9629_document_;var U=_.VT(uV(this.JSC$10445_dom_.JSC$9629_document_)||window);var A=Math.max(U.width,Math.max(H.body.scrollWidth,H.documentElement.scrollWidth));H=Math.max(U.height,Math.max(H.body.scrollHeight,H.documentElement.scrollHeight));this.bgIframeEl_&&(_.ev(this.bgIframeEl_,!0),_.eFw(this.bgIframeEl_,A,H));this.bgEl_&&(_.ev(this.bgEl_,!0),_.eFw(this.bgEl_,
A,H))};
_.X.reposition=function(){var H;if(_.rDr(this.getElement())=="fixed")var U=H=0;else U=H8(this.JSC$10445_dom_),H=U.x,U=U.y;var A=$uB(this.getElement());var M=_.VT(uV(this.JSC$10445_dom_.JSC$9629_document_)||window);H=Math.max(H+M.width/2-A.width/2,0);U=Math.max(U+M.height/2-A.height/2,0);sR(this.getElement(),H,U);sR(this.tabCatcherElement_,H,U)};
_.X.onFocus=function(H){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():H.target==this.tabCatcherElement_&&da(this.focusElement_,0,this)};
_.X.focusElement_=function(){try{this.getElement().focus()}catch(H){}};
_.X.disposeInternal=function(){_.zg(this.popupShowTransition_);this.popupShowTransition_=null;_.zg(this.popupHideTransition_);this.popupHideTransition_=null;_.zg(this.bgShowTransition_);this.bgShowTransition_=null;_.zg(this.bgHideTransition_);this.bgHideTransition_=null;gO.superClass_.disposeInternal.call(this)};var ac=function(H,U,A){gO.call(this,U,A);this.JSC$10476_class_=H||"modal-dialog";this.buttons_=(new oC).addButton(E82,!0).addButton(mjk,!1,!0)};
_.zo(ac,gO);_.X=ac.prototype;_.X.escapeToCancel_=!0;_.X.hasTitleCloseButton_=!0;_.X.modal_=!0;_.X.draggable_=!0;_.X.backgroundElementOpacity_=.5;_.X.title_="";_.X.JSC$10478_dragger_=null;_.X.JSC$10478_disposeOnHide_=!1;_.X.titleEl_=null;_.X.titleTextEl_=null;_.X.titleTextId_=null;_.X.titleCloseEl_=null;_.X.contentEl_=null;_.X.buttonEl_=null;_.X.getCssClass=function(){return this.JSC$10476_class_};
_.X.setTitle=function(H){this.title_=H;this.titleTextEl_&&_.ox(this.titleTextEl_,H)};
_.X.getTitle=function(){return this.title_};
_.X.getContent=function(){return""};
_.X.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var g8w=function(H){H.getElement()||H.render();return H.getElement()};
ac.prototype.getBackgroundElement=function(){this.getElement()||this.render();return ac.superClass_.getBackgroundElement.call(this)};
var a2K=function(H,U){H.backgroundElementOpacity_=U;H.getElement()&&(U=H.getBackgroundElement())&&Ggg(U,H.backgroundElementOpacity_)};
ac.prototype.setDraggable=function(H){this.draggable_=H;xjh(this,H&&this.inDocument_)};
ac.prototype.handleDrag=function(){};
var xjh=function(H,U){var A=fh(H.JSC$10476_class_+"-title-draggable").split(" ");H.getElement()&&(U?E0(H.titleEl_,A):FyB(H.titleEl_,A));U&&!H.JSC$10478_dragger_?(U=new _.fB(H.getElement(),H.titleEl_),H.JSC$10478_dragger_=U,E0(H.titleEl_,A),_.Rc(H.JSC$10478_dragger_,"start",H.setDraggerLimits_,!1,H),_.Rc(H.JSC$10478_dragger_,"drag",H.handleDrag,!1,H)):!U&&H.JSC$10478_dragger_&&(H.JSC$10478_dragger_.dispose(),H.JSC$10478_dragger_=null)};
_.X=ac.prototype;
_.X.JSC$10447_createDom=function(){ac.superClass_.JSC$10447_createDom.call(this);var H=this.getElement(),U=this.JSC$10445_dom_;this.titleTextId_=this.getId();var A=this.getId()+".contentEl";this.titleEl_=U.JSC$9631_createDom("DIV",this.JSC$10476_class_+"-title",this.titleTextEl_=U.JSC$9631_createDom("SPAN",{className:this.JSC$10476_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=U.JSC$9631_createDom("SPAN",this.JSC$10476_class_+"-title-close"));slK(H,this.titleEl_,this.contentEl_=
U.JSC$9631_createDom("DIV",{className:this.JSC$10476_class_+"-content",id:A}),this.buttonEl_=U.JSC$9631_createDom("DIV",this.JSC$10476_class_+"-buttons"));ugg(this.titleTextEl_,"heading");ugg(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;Zp(this.titleCloseEl_,"label","Close");ugg(H,"dialog");Zp(H,"labelledby",this.titleTextId_||"");_.ev(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(H=this.buttons_,H.JSC$10479_element_=this.buttonEl_,H.render());_.ev(this.buttonEl_,!!this.buttons_);
a2K(this,this.backgroundElementOpacity_)};
_.X.decorateInternal=function(H){ac.superClass_.decorateInternal.call(this,H);H=this.getElement();var U=this.JSC$10476_class_+"-content";this.contentEl_=id(document,null,U,H)[0];this.contentEl_||(this.contentEl_=this.JSC$10445_dom_.JSC$9631_createDom("DIV",U),H.appendChild(this.contentEl_));U=this.JSC$10476_class_+"-title";var A=this.JSC$10476_class_+"-title-text",M=this.JSC$10476_class_+"-title-close";(this.titleEl_=id(document,null,U,H)[0])?(this.titleTextEl_=id(document,null,A,this.titleEl_)[0],
this.titleCloseEl_=id(document,null,M,this.titleEl_)[0]):(this.titleEl_=this.JSC$10445_dom_.JSC$9631_createDom("DIV",U),H.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=CVr(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.dp("SPAN",{className:A,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;Zp(H,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10445_dom_.JSC$9631_createDom("SPAN",M),this.titleEl_.appendChild(this.titleCloseEl_));_.ev(this.titleCloseEl_,this.hasTitleCloseButton_);U=this.JSC$10476_class_+"-buttons";(this.buttonEl_=id(document,null,U,H)[0])?(this.buttons_=new oC(this.JSC$10445_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10445_dom_.JSC$9631_createDom("DIV",U),H.appendChild(this.buttonEl_),this.buttons_&&(H=this.buttons_,H.JSC$10479_element_=this.buttonEl_,H.render()),_.ev(this.buttonEl_,
!!this.buttons_));a2K(this,this.backgroundElementOpacity_)};
_.X.enterDocument=function(){ac.superClass_.enterDocument.call(this);uw(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);uw(this).listen(this.buttonEl_,"click",this.onButtonClick_);xjh(this,this.draggable_);uw(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var H=this.getElement();ugg(H,"dialog");this.titleTextEl_.id!==""&&Zp(H,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){H=this.JSC$10445_dom_;
var U=this.getBackgroundElement();H.removeNode(this.bgIframeEl_);H.removeNode(U)}this.isVisible()&&Lzp(this,!1)}};
_.X.exitDocument=function(){this.isVisible()&&this.setVisible(!1);xjh(this,!1);ac.superClass_.exitDocument.call(this)};
_.X.setVisible=function(H){H!=this.isVisible()&&(this.inDocument_||this.render(),ac.superClass_.setVisible.call(this,H))};
_.X.onShow=function(){ac.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.X.onHide=function(){ac.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10478_disposeOnHide_&&this.dispose()};
_.X.setDraggerLimits_=function(){var H=this.JSC$10445_dom_.JSC$9629_document_,U=_.VT(uV(H)||window),A=Math.max(H.body.scrollWidth,U.width);H=Math.max(H.body.scrollHeight,U.height);var M=$uB(this.getElement());_.rDr(this.getElement())=="fixed"?this.JSC$10478_dragger_.limits=new gN(0,0,Math.max(0,U.width-M.width),Math.max(0,U.height-M.height)):this.JSC$10478_dragger_.limits=new gN(0,0,A-M.width,H-M.height)};
_.X.onTitleCloseClick_=function(){zW3(this)};
var zW3=function(H){if(H.hasTitleCloseButton_){var U=H.buttons_,A=U&&U.cancelButton_;A?(U=U.get(A),H.dispatchEvent(new Fb(A,U))&&H.setVisible(!1)):H.setVisible(!1)}},CUK=function(H){H.hasTitleCloseButton_=!1;
H.titleCloseEl_&&_.ev(H.titleCloseEl_,H.hasTitleCloseButton_)};
ac.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;ac.superClass_.disposeInternal.call(this)};
ac.prototype.onButtonClick_=function(H){a:{for(H=H.target;H!=null&&H!=this.buttonEl_;){if(H.tagName=="BUTTON")break a;H=H.parentNode}H=null}if(H&&!H.disabled){H=H.name;var U=this.buttons_.get(H);this.dispatchEvent(new Fb(H,U))&&this.setVisible(!1)}};
ac.prototype.onKey_=function(H){var U=!1,A=!1,M=this.buttons_,W=H.target;if(H.type=="keydown")if(this.escapeToCancel_&&H.keyCode==27){var w=M&&M.cancelButton_;W=W.tagName=="SELECT"&&!W.disabled;w&&!W?(A=!0,U=M.get(w),U=this.dispatchEvent(new Fb(w,U))):W||(U=!0)}else{if(H.keyCode==9&&H.shiftKey&&W==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(F){}da(this.resetBackwardTabWrap_,0,this)}}else if(H.keyCode==13){if(W.tagName=="BUTTON"&&!W.disabled)w=W.name;
else if(W==this.titleCloseEl_)zW3(this);else if(M){var d=M.defaultButton_,O;if(O=d)a:{O=A8("BUTTON",M.JSC$10479_element_);for(var f,J=0;f=O[J];J++)if(f.name==d||f.id==d){O=f;break a}O=null}W=(W.tagName=="TEXTAREA"||W.tagName=="SELECT"||W.tagName=="A")&&!W.disabled;!O||O.disabled||W||(w=d)}w&&M&&(A=!0,U=this.dispatchEvent(new Fb(w,String(M.get(w)))))}else W!=this.titleCloseEl_||H.keyCode!=32&&H.key!=" "||zW3(this);if(U||A)H.stopPropagation(),H.preventDefault();U&&this.setVisible(!1)};
var Fb=function(H,U){this.type="dialogselect";this.key=H;this.caption=U};
_.zo(Fb,_.$R);var oC=function(H){KB.call(this);H||AD();this.cancelButton_=this.JSC$10479_element_=this.defaultButton_=null};
_.zo(oC,KB);_.X=oC.prototype;_.X.clear=function(){KB.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.X.set=function(H,U,A,M){KB.prototype.set.call(this,H,U);A&&(this.defaultButton_=H);M&&(this.cancelButton_=H);return this};
_.X.addButton=function(H,U,A){return this.set(H.key,H.caption,U,A)};
_.X.render=function(){if(this.JSC$10479_element_){_.KU(this.JSC$10479_element_,XW0);var H=AD(this.JSC$10479_element_);this.forEach(function(U,A){U=H.JSC$9631_createDom("BUTTON",{name:A},U);A==this.defaultButton_&&(U.className="goog-buttonset-default");this.JSC$10479_element_.appendChild(U)},this)}};
_.X.decorate=function(H){if(H&&H.nodeType==1){this.JSC$10479_element_=H;H=A8("BUTTON",this.JSC$10479_element_);for(var U,A,M,W=0;U=H[W];W++)if(A=U.name||U.id,M=CVr(U)||U.value,A){var w=W==0;this.set(A,M,w,U.name=="cancel");w&&_.P$(U,"goog-buttonset-default")}}};
_.X.getElement=function(){return this.JSC$10479_element_};
var E82={key:"ok",caption:"OK"},mjk={key:"cancel",caption:"Cancel"},tUB={key:"yes",caption:"Yes"},cTK={key:"no",caption:"No"},yTK={key:"save",caption:"Save"},BJk={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new oC).addButton(E82,!0,!0),(new oC).addButton(E82,!0).addButton(mjk,!1,!0),(new oC).addButton(tUB,!0).addButton(cTK,!1,!0),(new oC).addButton(tUB).addButton(cTK,!0).addButton(mjk,!1,!0),(new oC).addButton(BJk).addButton(yTK).addButton(mjk,!0,!0));_.zo(vDc,ac);_.zo(Tic,xR);var rTh=_.NP(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),eWz=_.NP(["//apis.google.com/js/rpc.js"]),wW0=_.LF(rTh),Wy0=_.LF(eWz),I0N=null;var zr=function(H,U){_.LW.call(this);this.JSC$10488_element_=H;H=_.YR(this.JSC$10488_element_)?this.JSC$10488_element_:this.JSC$10488_element_?this.JSC$10488_element_.body:null;this.isRtl_=!!H&&_.YA3(H);this.listenKey_=_.Rc(this.JSC$10488_element_,_.va?"DOMMouseScroll":"mousewheel",this,U)};
_.zo(zr,_.LW);zr.prototype.handleEvent=function(H){var U=0,A=0,M=H.event_;M.type=="mousewheel"?(H=DjK(-M.wheelDelta),M.wheelDeltaX!==void 0?(U=DjK(-M.wheelDeltaX),A=DjK(-M.wheelDeltaY)):A=H):(H=M.detail,H>100?H=3:H<-100&&(H=-3),M.axis!==void 0&&M.axis===M.HORIZONTAL_AXIS?U=H:A=H);typeof this.maxDeltaX_==="number"&&(U=_.b$(U,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(A=_.b$(A,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(U=-U);U=new $jr(H,M,U,A);this.dispatchEvent(U)};
var DjK=function(H){return _.kA&&(_.k2z||Tmm)&&H%40!=0?H:H/40};
zr.prototype.disposeInternal=function(){zr.superClass_.disposeInternal.call(this);jq(this.listenKey_);this.listenKey_=null};
var $jr=function(H,U,A,M){_.U0.call(this,U);this.type="mousewheel";this.detail=H;this.deltaX=A;this.deltaY=M};
_.zo($jr,_.U0);_.gz=function(H){var U="instance_";if(H.instance_&&H.hasOwnProperty(U))return H.instance_;U=new H;return H.instance_=U};var MxV;var l2h=_.NP(["https://about:blank"]),GPg=_.NP(['javascript:""']),YeH=_.NP(["about:blank"]);_.zo(DT,vDc);_.X=DT.prototype;_.X.JSC$10496_url_="";_.X.JSC$10496_iframe_=null;_.X.iframeLoaded_=!1;_.X.loadedFired_=!1;_.X.callback_=function(){};
_.X.enterDocument=function(){DT.superClass_.enterDocument.call(this);H_N(this.getBackgroundElement(),uw(this))};
_.X.render=function(H){var U=this;DT.superClass_.render.call(this,H);this.useGapi_?I5K(this.iframeManager_,window).then(function(){return qep(U)}).then(null,function(){U.callback_({action:"error"})}):hW2(this);
this.JSC$10494_enablePopover_&&(this.getBackgroundElement().setAttribute("popover","manual"),g8w(this).setAttribute("popover","manual"))};
var qep=function(H){var U=H.JSC$10445_dom_.JSC$9631_createDom("div",["picker-dialog-content","picker-frame"]);_.ev(U,!1);H.getContentElement().appendChild(U);return Q$K(H.iframeManager_,U,function(A){var M=pJ2(A["iframe-command"]);switch(M.getCommand()){case 1:A=H.callback_;M=_.qK(M,yd,2);var W="";switch(M.getStatus()){case 2:W="cancel";break;case 1:W="picked";break;case 3:W="error"}var w=_.c8(M,IH,2,_.y9(ofw));M=w.length===0?{action:W}:zaH(w,W,_.qK(M,nRk,7));A.call(H,M);H.setVisible(!1);break;case 4:CUK(H);
H.callback_({action:"loaded"});break;case 7:case 8:A=H.callback_;a:{W=M.getCommand();w=_.qK(M,yd,2);switch(W){case 7:W="uploadScheduled";break;case 8:W="uploadStateChange";break;default:M={};break a}M=_.c8(w,IH,2,_.y9(ofw));if(M.length===0)M={action:W};else{var d=_.qK(w,nRk,7);w=d&&_.Mn(d,1);d=nAn(d);M=pag(M,W,w,d)}}A.call(H,M)}},H.JSC$10496_url_,H.targetId_,H.rpcToken_).then(function(A){H.JSC$10496_iframe_=A.getIframeEl();
kPm(H);_.ev(H.JSC$10496_iframe_.parentElement,!0);_.P$(H.getElement(),"picker-dialog");v8r(H);return A})},hW2=function(H){H.JSC$10496_iframe_=H.JSC$10445_dom_.JSC$9631_createDom("IFRAME",{id:H.targetId_,
name:H.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.wY(H.JSC$10496_iframe_,TJ2(H));_.P$(H.getElement(),"picker-dialog");H.getContentElement().appendChild(H.JSC$10496_iframe_);uw(H).listen(H.JSC$10496_iframe_,"load",function(){return void kPm(H)});
H.JSC$10496_iframe_.src=H.JSC$10496_url_;v8r(H)},I2r=function(H){jgB(H,(0,_.i9)(function(U){U.setAuthToken(this.targetId_,this.rpcToken_)},H))},v8r=function(H){var U=_.BJ(_.yX(H.JSC$10496_url_),"title");
U&&H.setTitle(U)},TJ2=function(H){return _.SMV("Internet Explorer")>=7&&_.XE(H.JSC$10496_url_,"https")?_.LF(l2h):_.Bu?_.LF(GPg):_.LF(YeH)},kPm=function(H){I2r(H);
H.iframeLoaded_=!0;H.JSC$10496_iframe_.tabIndex=0;H.isVisible()&&H.focus()};
DT.prototype.handleKeydown_=function(H){H.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),H.stopPropagation(),H.preventDefault())};
var jgB=function(H,U){var A=H.JSC$10494_gadgetsDomHelper_;QdV(function(){U(A.getWindow().gadgets.rpc)},A)};
DT.prototype.setUrl=function(H){H=_.rO(new _.n1(H),"rpcService",this.targetId_);_.rO(H,"rpctoken",this.rpcToken_);_.BS(H,"rpctoken="+this.rpcToken_);_.zz(H,"https");this.JSC$10496_url_=H.toString();this.JSC$10496_iframe_&&(this.JSC$10496_iframe_.src=this.JSC$10496_url_)};
var Qgp=function(H,U){H.callback_=U;jgB(H,(0,_.i9)(function(A){A.register(this.targetId_,(0,_.i9)(this.handlePickerAction_,this))},H))};
DT.prototype.handlePickerAction_=function(H){var U=H.action;U=="loaded"&&(this.loadedFired_=!0,VUw(this,new DK0(this.isVisible())),H1y(this),CUK(this),uw(this).unlisten(this.JSC$10445_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10496_iframe_.tabIndex=0);U!="picked"&&U!="cancel"||this.setVisible(!1);this.callback_(H)};
var H1y=function(H){H.JSC$10496_appId_&&VUw(H,new ebK(H.JSC$10496_appId_,window.location.protocol+"//"+window.location.host))};
DT.prototype.setRelayUrl=function(H){jgB(this,(0,_.i9)(function(U){U.setRelayUrl(this.targetId_,H)},this))};
var VUw=function(H,U){H.useGapi_&&MUp(U,H.iframeManager_).then(null,function(){H.callback_({action:"error"})});
jgB(H,(0,_.i9)(function(A){A.call(this.targetId_,"picker",null,U)},H))};
DT.prototype.resizePicker_=function(){var H=uV(this.JSC$10445_dom_.JSC$9629_document_)||window;if(_.BJ(_.yX(this.JSC$10496_url_),"ignoreLimits")=="true")H=new _.QT(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.BJ(_.yX(this.JSC$10496_url_),"shadeDialog")=="true"){var U=g8w(this);U=qAk(U);var A=_.VT(H);H=A.width-80;A=A.height-40;U&&(H-=U.left?U.left:0,H-=U.right?U.right:0,A-=U.top?U.top:0,A-=U.bottom?U.bottom:0);H=new _.QT(H>0?H:0,A>0?A:0)}else(U=this.preferredDialogWidth_)?(U=Math.max(320,
Math.min(1051,U)),(A=this.preferredDialogHeight_)||(A=_.VT(H).height*.85),A=Math.max(480,Math.min(650,A))):(U=_.VT(H),A=U.width*.618,A=A<U.height?Math.round(Math.max(480,Math.min(650,A*.85))):Math.round(Math.max(480,Math.min(650,U.height*.85))),U=Math.round(A/.618)),H=_.VT(H),U=Math.min(U,Math.max(H.width,320)),A=Math.min(A,Math.max(H.height,480)),H=new _.QT(U,A);_.eFw(this.getContentElement(),H);this.reposition()};
DT.prototype.reposition=function(){if(_.BJ(_.yX(this.JSC$10496_url_),"shadeDialog")=="true"){var H=$uB(this.getElement()),U=_.VT(this.JSC$10445_dom_.getWindow());H=Math.floor(U.width/2-H.width/2);U=g8w(this);if(U=qAk(U)){var A=U.left?U.left:0;A+=U.right?U.right:0;H=Math.floor(H-A/2)}H=H>0?H:0;U=H8(this.JSC$10445_dom_).y;sR(this.getElement(),H,U)}else DT.superClass_.reposition.call(this)};
DT.prototype.setVisible=function(H){if(H!=this.isVisible()){if(this.autoSizeDialog_){var U=this.JSC$10445_dom_.getWindow();H?(this.resizePicker_(),uw(this).listen(U,"resize",this.resizePicker_),this.iframeLoaded_||uw(this).listen(U,"keydown",this.handleKeydown_)):(uw(this).unlisten(U,"resize",this.resizePicker_),this.iframeLoaded_||uw(this).unlisten(U,"keydown",this.handleKeydown_))}if(this.JSC$10494_enablePopover_){U=this.getBackgroundElement();var A=g8w(this);"showPopover"in A&&(H?(U.showPopover(),
A.showPopover()):(U.hidePopover(),A.hidePopover()))}}DT.superClass_.setVisible.call(this,H);VUw(this,new DK0(H))};
DT.prototype.focus=function(){DT.superClass_.focus.call(this);if(this.JSC$10496_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10496_iframe_.focus()}catch(H){}};var Tv=function(H,U){U=U===void 0?DT:U;xR.call(this,H);this.pickerConstructor=U;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(H=window.location.origin)||(H=window.location.protocol+"//"+window.location.host);H&&this.urlParamMap_.set("origin",H);this.postProcessors_=[]};
_.R(Tv,Tic);Tv.prototype.JSC$10501_disposeOnHide_=!1;
Tv.prototype.build=function(){this.JSC$10402_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10402_appId_);this.getRelayUrl()||this.setRelayUrl(_.cS(_.BS(_.yw(_.yX(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("hb");var H=new this.pickerConstructor(UZy(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1,!1);H.JSC$10478_disposeOnHide_=this.JSC$10501_disposeOnHide_;
H.JSC$10496_appId_=this.JSC$10402_appId_;H.loadedFired_&&H1y(H);Qgp(H,this.callback_);return H};
var APK=function(H){H.urlParamMap_.set("multiselectEnabled","true");return H};
_.X=Tv.prototype;_.X.getHeight=function(){return this.dialogHeight_};
_.X.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.X.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.X.getTitle=function(){return this.urlParamMap_.get("title")};
_.X.getWidth=function(){return this.dialogWidth_};
var Mbw=function(H){H.JSC$10501_disposeOnHide_=void 0;return H};
Tv.prototype.setRelayUrl=function(H){this.urlParamMap_.set("parent",H);return this};
var WJw=function(H,U){H.urlParamMap_.set("selectButtonLabel",U);return H};
Tv.prototype.setSize=function(H,U){this.dialogWidth_=H;this.dialogHeight_=U;return this};
Tv.prototype.setTitle=function(H){this.urlParamMap_.set("title",H);return this};
var UZy=function(H){H.postProcessors_.length&&H.urlParamMap_.set("pp",JSON.stringify(H.postProcessors_));H.urlParamMap_.set("nav",oAk(H.nav_));var U=new _.n1(H.getBaseUrl());H.urlParamMap_.forEach(function(A,M){_.rO(U,M,A)});
return U};var i1H=function(H,U){H.name!==void 0?(this.name=H.name,this.code=wgg[H.name]):(this.code=H=H.code,this.name=XgB(H));_.HF.call(this,wLw("%s %s",this.name,U))};
_.zo(i1H,_.HF);var XgB=function(H){var U=_.dG.findKey(wgg,function(A){return H==A});
if(U===void 0)throw Error("jb`"+H);return U},PU={},wgg=(PU.AbortError=3,PU.EncodingError=5,PU.InvalidModificationError=9,PU.InvalidStateError=7,PU.NotFoundError=1,PU.NotReadableError=4,PU.NoModificationAllowedError=6,PU.PathExistsError=12,PU.QuotaExceededError=10,PU.SecurityError=2,PU.SyntaxError=8,PU.TypeMismatchError=11,PU);_.zo(i_8,_.$R);var b12=function(H,U,A){A===void 0&&(A=H.size);return H.slice?H.slice(U,A):null};var ds0=new WeakMap,b__=function(H,U){H=[H];for(var A=U.length-1;A>=0;--A)H.push(typeof U[A],U[A]);return H.join("\v")};_.ul_(function(){if(!_.Mr.Blob)return!1;var H=new Uint8Array(100);try{var U=new Blob([H])}catch(A){return!1}return U.size!=100?!1:!0});
var dZ3=_.ul_(function(){if(!_.Mr.Blob)return!1;var H=new Uint8Array(100);try{var U=new Blob([H])}catch(A){return!1}return b12(U,0,1)===null?!1:!0});try{var O1H,uKH,Z1h=(uKH=(O1H=window)==null?void 0:O1H.top)!=null?uKH:_.Mr;Z1h.U3bHHf!=null||(Z1h.U3bHHf=0);Z1h.U3bHHf++}catch(H){_.Mr.U3bHHf!=null||(_.Mr.U3bHHf=0),_.Mr.U3bHHf++};var Jk_=new WeakMap;var f6E=new WeakMap;var FyE={};var qg=void 0;var sQ4=Symbol("rb");var ck0=vJ("WizInjectionContext_Dispatcher");var kp=Symbol("sb");var XQ=function(){this.afterRenderCallbacks=null},Lyt=Symbol("tb"),Jr=function(H){this.props=H;
this.__unmounted=!1};
Jr.prototype.didPatch=function(){};
Jr.prototype.didMount=function(){};
Jr.prototype.didUnmount=function(){};
Jr.prototype.didUpdate=function(){};var pW4=vJ("WizInjectionContext_RootElement");var zrE=vJ("WizInjectionContext_AppContext"),xsE=vJ("WizInjectionContext_ModelRootElement"),CS0=vJ("WizInjectionContext_RendererData"),tx0=vJ("WizInjectionContext_InjectingConstructor"),a6M=vJ("WizInjectionContext_AsyncDeps"),ykK={};var l6_=!1;var hrc={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:Dp2,enableContextPerComponent:Dp2,enableLazyTsx:$pn,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:eg3,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var jv=Object.assign({},{attributes:{},handleError:function(H){throw H;}},hrc);var fH2=Symbol("xb"),Nf=Symbol("yb"),FFr=Symbol("zb"),KFK=Symbol("Ab"),LFr=Br(function(H){return Ic(H)&&fH2 in H});var H57=Symbol("Bb"),sp={},I6F=(sp[H57]=!0,sp.debugName="[component]",sp.getComponentStack=function(){for(var H=[],U=this;U;)UaE(U)&&H.push(U.debugName),U=U.parent;return H},sp.registerSignal=function(){},sp.registerEffect=function(){},sp);var QX=null,He=!1,Aa=1,wP=Symbol("Fb"),fd={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var nB=Symbol("Gb"),Nz=Symbol("Hb"),We=Symbol("Ib"),Z5_=Object.assign({},fd,{value:nB,dirty:!0,error:null,equal:MD0,kind:"computed",producerMustRecompute:function(H){return H.value===nB||H.value===Nz},
producerRecomputeValue:function(H){if(H.value===Nz)throw Error("$");var U=H.value;H.value=Nz;var A=dah(H),M=!1;try{var W=H.computation();VX(null);M=U!==nB&&U!==We&&W!==We&&H.equal(U,W)}catch(w){W=We,H.error=w}finally{VX(A),H&&ux_(H)}M?H.value=U:(H.value=W,H.version++)}});var JPg=Object.assign({},fd,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var oXE=function(){throw Error();};var r9V=null,J98=Object.assign({},fd,{equal:MD0,value:void 0,kind:"signal"});var eTE=Object.assign({},fd,{value:nB,dirty:!0,error:null,equal:MD0,kind:"linkedSignal",producerMustRecompute:function(H){return H.value===nB||H.value===Nz},
producerRecomputeValue:function(H){if(H.value===Nz)throw Error("$");var U=H.value;H.value=Nz;var A=dah(H);try{var M=H.source();var W=H.computation(M,U===nB||U===We?void 0:{source:H.sourceValue,value:U});H.sourceValue=M}catch(w){W=We,H.error=w}finally{VX(A),H&&ux_(H)}U!==nB&&W!==We&&H.equal(U,W)?H.value=U:(H.value=W,H.version++)}});Object.assign({},fd,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(H){H.schedule!==null&&H.schedule(H.ref)},
cleanupFn:function(){}});var G9M=Symbol("Jb"),Om=Symbol("Kb");var uB=Array.isArray;var Q1M;var KJn={},HKt=Iz8(Object.assign({},{consumerAllowSignalWrites:!0},KJn)),OW=Iz8(Object.assign({},{consumerAllowSignalWrites:!0},KJn));var F$=Symbol("Pb");var on=null,WFV,waV=null,XaV;var SM=0,pd=!1,S2=function(){this.queue=new Set};
S2.prototype.schedule=function(H){this.queue.add(H)};
S2.prototype.remove=function(H){this.queue.delete(H)};
S2.prototype.clear=function(){this.queue.clear()};
var u7h=Symbol("Qb"),dC_=Symbol("Rb"),pB=function(){S2.apply(this,arguments)};
_.R(pB,S2);pB.prototype.flush=function(){if(this.queue.size){pd=!0;for(var H=_.b(this.queue),U=H.next();!U.done;U=H.next()){U=U.value;this.queue.delete(U);try{U.run()}catch(A){o2h(A)}}pd=!1}};
var FJz=function(){pB.apply(this,arguments)};
_.R(FJz,pB);var OKh=new FJz,PHh=function(){pB.apply(this,arguments)};
_.R(PHh,pB);PHh.prototype.schedule=function(H){return _.u(function(U){if(U.nextAddress==1)return U.yield(Promise.resolve(),2);H.run();_.DO(U)})};
PHh.prototype.enqueue=function(H){this.queue.add(H)};
var ZKF=new PHh,LB=function(){S2.apply(this,arguments)};
_.R(LB,S2);LB.prototype.flush=function(){this.queue.size&&RaV(this.queue)};
var s2z=function(){LB.apply(this,arguments)};
_.R(s2z,LB);s2z.prototype.schedule=function(H){H.version===0?H.run():this.queue.add(H)};
s2z.prototype.flush=function(){if(this.queue.size)if(jv.flushRenderEffectsDuringRender){var H=this.queue;this.queue=new Set;RaV(H)}else RaV(this.queue)};
var J0_=new s2z,n2z=function(){LB.apply(this,arguments)};
_.R(n2z,LB);n2z.prototype.schedule=function(H){return _.u(function(U){if(U.nextAddress==1)return U.yield(Promise.resolve(),2);H.run();_.DO(U)})};
n2z.prototype.enqueue=function(H){this.queue.add(H)};
var Pu_=new n2z,Ns2=function(){LB.apply(this,arguments)};
_.R(Ns2,LB);var oAh=new Ns2,nA7=[J0_,OKh,oAh],pa4=[ZKF,Pu_],SHp=[J0_,oAh,Pu_],EA_=[].concat(_.vI(nA7),_.vI(pa4)),pgy=[];r9V=function(){SoV();for(var H=_.b(pgy),U=H.next();!U.done;U=H.next())U=U.value,U()};
var o2h=wK;var RC={},LJg=Object.assign({},JPg,(RC[fH2]=!0,RC.effectType=Nf,RC.isResettableContext=!0,RC.consumerMarkedDirty=s$c,RC.run=function(){gAr(this)},RC.cleanup=function(){gBK(this)},RC.componentStack=void 0,RC.debugName="[effect]",RC.destroy=function(){if(Um(this))for(var H=this.producers;H!==void 0;)H=O5h(H);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;H=_.b(SHp);for(var U=H.next();!U.done;U=H.next())U.value.remove(this);msF(this)},RC[Symbol.dispose]=function(){this.destroy()},RC)),RRm=Object.assign({},LJg,{version:1,
dirty:!1});var a5K=Object.assign({},LJg,{effectType:Nf});var xC7=Object.assign({},LJg,{effectType:FFr});var tXN=Symbol("Tb");var FzK=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var BVN={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,coords: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,inert:1,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,playsinline: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,usemap:1,valign:1,value:1,width:1,wrap:1},y0E=
{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}]}},WiF={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},DCE=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],eaN={"*":{async:1,dir:0,loading:2,target:3}};var E2w=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Ep={},l5N=(Ep[1]=null,Ep[2]=function(H,U){return U instanceof Ur?Mo(U):TC.toString()},Ep[3]=function(H,U){return qS(U)?_.hR(U):E2w.test(String(U))?String(U):TC.toString()},Ep[4]=function(H,U){return U instanceof By?_.e3(U):TC.toString()},Ep[5]=function(H,U){return String(U)},Ep[7]=null,Ep[8]=null,Ep[10]=null,Ep);var $Gc=Symbol("Wb");var haM="Y Z E P T G M K  m u n".split(" "),qoc={"":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};_.mZ2=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 Vq={};RegExp.prototype.hasOwnProperty("sticky");var sgM=function(H){H=String(H);for(var U=function(M,W,w){for(var d=Math.min(W.length-w,M.length),O=0;O<d;O++){var f=W[w+O];if(M[O]!==("A"<=f&&f<="Z"?f.toLowerCase():f))return!1}return!0},A=0;(A=H.indexOf("<",A))!=-1;){if(U("\x3c/script",H,A)||U("\x3c!--",H,A))return"zSoyz";
A+=1}return H};var ta={default:"__default"};var I5c=Object.prototype.hasOwnProperty;vA0.prototype=Object.create(null);var c1=Hvc();var Gi=null;var ZvE=function(H){this.created=[];this.deleted=[];this.node=H};var f20=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var H=this,U=H;H;)U=H,H=H.parentNode;return U};var ATF=function(H,U){this._attrsArr=null;this.nameOrCtor=H;this.key=U;this.text=void 0};var rP=null,eM=null,ce=null,$p=null,bv0=[],ivc=wxF,lB=[],DGV=function(H){return JT7(function(U,A,M){ce=eM=U;eM=null;A(M);Xxh(null);eM=ce;ce=ce.parentNode;return U},H)}(),eOK=function(H){return JT7(function(U,A,M){var W={nextSibling:U};
eM=W;A(M);ce&&Xxh(U.nextSibling);return W===eM?null:eM},H)}();var Yp=[],lfc=0;var yZ=new vA0;var g2h=Hvc(),Sec=g2h[ta.default],NJt=g2h.style,PUt=["focusin","focusout"],RWK="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var H1_=function(){},KJ7=function(){},Z10=function(){};var ha=Symbol("dc");var xj0,a2c=g8N;var MU=Symbol("ec");var JP4=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(" ")),
fH8=new Set(["a","font","script","style","title"]);var Ar={setUp:Yet,tearDown:Yet,log:Yet,logNodeRange:Yet,graft:function(H,U){U()}};var ux={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var ZM=null,fA=function(H,U){Jr.call(this,H);var A=this;this.functionComponent=U;this.hooks=[];this.hookCounter=0;this.disposeEffects=gP(function(M){A.effectContext=M;_.m4(function(){WJV(A,A.el)})},jv.alwaysTrackContexts||!!qg)};
_.R(fA,Jr);fA.prototype.render=function(H){var U=ZM;ZM=this;this.hookCounter=0;var A=VX(OW),M=h8(this.effectContext);try{return vBc("render",this.componentName),this.functionComponent(H)}finally{TB7("render",this.componentName),h8(M),VX(A),ZM=U}};
_.D5.Object.defineProperties(fA.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return A00(this.functionComponent)}}});var o20=Symbol("sc"),dZc=function(H,U,A){this.afterRenderCallbacks=null;this.kind=H;this.props=U;this.children=A};
_.R(dZc,XQ);dZc.prototype.render=function(){var H=b18(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var U=_.b(this.afterRenderCallbacks),A=U.next();!A.done;A=U.next())A=A.value,H=A(H);return H};
dZc.prototype.getChildren=function(){return this.children};var PH0=[];oXE=function(H){throw Error("qb`"+H.debugName);};
(function(){var H=Gi;Gi=function(U){H==null||H(U);s2M(U)}})();Object.assign({},RRm,{effectType:Nf,elementRef:null,attributes:null,fn:function(){var H=this.elementRef;var U;H.element!=null||(H.element=(U=H.document.getElementById(H.value))!=null?U:void 0);H=H.element;for(U=this.attributes;U;){var A=U.signal();A!==U.prevValue&&(U.prevValue=A,U.namespace===1?H[U.name]=A:FzK.has(U.name)?Cd(H,U.name,A?"":null):Cd(H,U.name,A));U=U.next}}});_.KA.debugName="tbhMcf";_.oh.debugName="zyMFzb";Object.assign({},RRm,{effectType:Nf});_.K.debugName="RlDudd";var n2M={nonNullableCondIsNull:function(){return Error("vc")}};var mZ8=function(){this.map=new Map};
mZ8.prototype.push=function(H,U){var A=this.map;A.has(H)&&(this.multi||(this.multi=new Map),this.multi.set(U,A.get(H)));A.set(H,U)};
mZ8.prototype.pop=function(H){var U=this.map,A=U.get(H),M;A!==void 0&&((M=this.multi)==null?0:M.has(A))?(U.set(H,this.multi.get(A)),this.multi.delete(A)):U.delete(H);return A};_.FQ.debugName="nsTGHd";_.P5.debugName="vI1rtf";var CHE={OUT_OF_ORDER_HOOK_CALL:function(H){return Error("wc`"+H)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("xc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("yc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("zc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(H,U){return Error("Ac`"+((U===void 0?0:U)?"IDOM":"Reactive")+"`"+(sW(H)?H.description:H))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(H,U){return Error("Bc`"+(sW(H)?H.description:H)+"`"+U)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(H){return Error("Cc`"+(sW(H)?H.description:H))},
USE_ELEMENT_NOT_ASSIGNED:function(H){return Error("Dc`"+(sW(H)?H.description:H))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(H){return Error("Ec`"+(sW(H)?H.description:H))}};var ciN=Symbol("Fc");xj0=O1t;xj0=O1t;var YHr=Symbol("Gc");APc({beforeRender:function(H){var U=h8(H.effectContext);try{var A;((A=H.__syncEffects)==null?0:A.length)&&VbE(H.__syncEffects)}finally{h8(U)}},
didPatch:function(H){var U=h8(H.effectContext);try{var A;((A=H.__syncEffects)==null?0:A.length)&&VbE(H.__syncEffects)}finally{h8(U)}},
didUnmount:function(H){var U;((U=H.hooks)==null?0:U.length)&&H.hooks.forEach(Q2t)}});var aHw,xZh,zRK;aHw=_.Mr.window;_.EW=(aHw==null?void 0:(xZh=aHw.yt)==null?void 0:xZh.config_)||(aHw==null?void 0:(zRK=aHw.ytcfg)==null?void 0:zRK.data_)||{};_.eC("yt.config_",_.EW);var CHB={},AwN=[];_.bD=function(H){var U=_.QY.apply(1,arguments);var A=Error.call(this,H);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.args=[].concat(_.vI(U));Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(_.bD,Error);var jtr=function(H,U,A){this.actionName=H;this.optionalAction=U===void 0?!1:U;this.args=A===void 0?null:A;this.returnValue=[]};_.me=function(H){this.name=H};_.ED=new _.me("signalAction");var f$K=/^[\w.]*$/,iE_={q:!0,search_query:!0},XO8=String(wOF);var Ga;Ga=Symbol("Hc");_.g3=function(H){this.name=H};
_.g3.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var Jwr=function(H){this.key=H},su_=function(H){this.deferredKey=H},oU0=function(){var H=this;
this.providers=new Map;this.JSC$10800_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(H.providers)}}};
oU0.prototype.addProvider=function(H){this.providers.set(H.provide,H);var U=this.JSC$10800_deferred.get(H.provide);if(U)try{U.resolver(this.resolve(H.provide))}catch(A){U.rejector(A)}};
oU0.prototype.resolve=function(H){return H instanceof su_?tbr(this,H):H instanceof Jwr?cP2(this,H.key,[],!0):cP2(this,H,[])};
var tbr=function(H,U){U=U.deferredKey;if(H.JSC$10800_deferred.has(U))return H.JSC$10800_deferred.get(U).promise;var A={};A.promise=new Promise(function(M,W){A.resolver=M;A.rejector=W});
H.JSC$10800_deferred.set(U,A);return A.promise},cP2=function(H,U,A,M){M=M===void 0?!1:M;
if(A.indexOf(U)>-1)throw Error("Ic`"+U);if(H.cachedValues.has(U))return H.cachedValues.get(U);if(!H.providers.has(U)){if(M)return;throw Error("Jc`"+U);}M=H.providers.get(U);A.push(U);if(M.useValue!==void 0)var W=M.useValue;else if(M.useFactory)W=M[Ga]?yPh(H,M[Ga],A):[],W=M.useFactory.apply(M,_.vI(W));else if(M.useClass){W=M.useClass;var w=W[Ga]?yPh(H,W[Ga],A):[];W=new (Function.prototype.bind.apply(W,[null].concat(_.vI(w))))}else throw Error("Kc`"+U);A.pop();M.skipCache||H.cachedValues.set(U,W);return W},
yPh=function(H,U,A){return U?U.map(function(M){return M instanceof Jwr?cP2(H,M.key,A,!0):cP2(H,M,A)}):[]};var KbM;var mU=new _.g3("ENDPOINT_HANDLER_TOKEN");_.gu=new _.me("urlEndpoint");var pOr=Symbol("Lc");var Bsk=function(){this.data=[];this.cachedPackedInt52=-1};
Bsk.prototype.set=function(H,U){U=U===void 0?!0:U;0<=H&&H<52&&Number.isInteger(H)&&this.data[H]!==U&&(this.data[H]=U,this.cachedPackedInt52=-1)};
Bsk.prototype.get=function(H){return!!this.data[H]};
var rPB=function(H){H.cachedPackedInt52===-1&&(H.cachedPackedInt52=H.data.reduce(function(U,A,M){return U+(A?Math.pow(2,M):0)},0));
return H.cachedPackedInt52};var cwF=function(H){var U=eRr;H=H===void 0?_.tr("yt.ads.biscotti.lastId_")||"":H;var A=Object,M=A.assign,W={};W.dt=jdn;W.flash="0";a:{try{var w=U.JSC$10806_win_.top.location.href}catch(T){w=2;break a}w=w?w===U.doc_.location.href?0:1:2}W=(W.frm=w,W);try{W.u_tz=-(new Date).getTimezoneOffset();try{var d=pR.history.length}catch(T){d=0}W.u_his=d;var O;W.u_h=(O=pR.screen)==null?void 0:O.height;var f;W.u_w=(f=pR.screen)==null?void 0:f.width;var J;W.u_ah=(J=pR.screen)==null?void 0:J.availHeight;var F;W.u_aw=
(F=pR.screen)==null?void 0:F.availWidth;var P;W.u_cd=(P=pR.screen)==null?void 0:P.colorDepth}catch(T){}d=U.JSC$10806_win_;try{var n=d.screenX;var N=d.screenY}catch(T){}try{var L=d.outerWidth;var m=d.outerHeight}catch(T){}try{var z=d.innerWidth;var c=d.innerHeight}catch(T){}try{var C=d.screenLeft;var v=d.screenTop}catch(T){}try{z=d.innerWidth,c=d.innerHeight}catch(T){}try{var Y=d.screen.availWidth;var D=d.screen.availTop}catch(T){}n=[C,v,n,N,Y,D,L,m,z,c];N=wJ7(!1,U.JSC$10806_win_.top);L={};var h=h===
void 0?_.Mr:h;m=new Bsk;"SVGElement"in h&&"createElementNS"in h.document&&m.set(0);z=ipm();z["allow-top-navigation-by-user-activation"]&&m.set(1);z["allow-popups-to-escape-sandbox"]&&m.set(2);h.crypto&&h.crypto.subtle&&m.set(3);"TextDecoder"in h&&"TextEncoder"in h&&m.set(4);h=rPB(m);U=(L.bc=h,L.bih=N.height,L.biw=N.width,L.brdim=n.join(),L.vis=jnK(U.doc_),L.wgl=!!pR.WebGLRenderingContext,L);A=M.call(A,W,U);A.ca_type="image";H&&(A.bid=H);return A},eRr=new function(){var H=window.document;
this.JSC$10806_win_=window;this.doc_=H};
_.eC("yt.ads_.signals_.getAdSignalsString",function(H){return bEc(cwF(H))});_.x4();navigator.userAgent.indexOf(" (CrKey ");var RM8="XMLHttpRequest"in _.Mr?function(){return new XMLHttpRequest}:null;var DZy="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),$Zg=[].concat(_.vI(DZy),["client_dev_set_cookie"]);var t9E={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"},gUK="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(_.vI(DZy)),Yn4=!1,xY8=_.ywV,$Y0=CaN;var dGh=[{messageFn:function(H){return"Cannot read property '"+H.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(H){return"Cannot call '"+H.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(H){return H.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var lHB={messageWeights:[],callbackWeights:[{callback:vUc,weight:500},{callback:THc,weight:500}]};var GRy=function(){this.callbackWeights=[];this.messageWeights=[]},YHp,blF=function(){if(!YHp){var H=YHp=new GRy;
H.messageWeights.length=0;H.callbackWeights.length=0;fIh(H,lHB)}return YHp},fIh=function(H,U){U.messageWeights&&H.messageWeights.push.apply(H.messageWeights,U.messageWeights);
U.callbackWeights&&H.callbackWeights.push.apply(H.callbackWeights,U.callbackWeights)};_.zo(_.HK,_.XG);_.HK.prototype.subscribe=function(H,U,A){var M=this.topics_[H];M||(M=this.topics_[H]=[]);var W=this.JSC$10829_key_;this.subscriptions_[W]=H;this.subscriptions_[W+1]=U;this.subscriptions_[W+2]=A;this.JSC$10829_key_=W+3;M.push(W);return W};
var qH3=function(H){var U=L5,A=!1,M=U.subscribe("handleError",function(W){A||(A=!0,this.unsubscribeByKey(M),H.apply(void 0,arguments))},U)};
_.HK.prototype.unsubscribe=function(H,U,A){if(H=this.topics_[H]){var M=this.subscriptions_;if(H=H.find(function(W){return M[W+1]==U&&M[W+2]==A}))return this.unsubscribeByKey(H)}return!1};
_.HK.prototype.unsubscribeByKey=function(H){var U=this.subscriptions_[H];if(U){var A=this.topics_[U];this.publishDepth_!=0?(this.pendingKeys_.push(H),this.subscriptions_[H+1]=function(){}):(A&&_.Dc(A,H),delete this.subscriptions_[H],delete this.subscriptions_[H+1],delete this.subscriptions_[H+2])}return!!U};
_.HK.prototype.publish=function(H,U){var A=this.topics_[H];if(A){var M=Array(arguments.length-1),W=arguments.length,w;for(w=1;w<W;w++)M[w-1]=arguments[w];if(this.async_)for(w=0;w<A.length;w++)W=A[w],hRh(this.subscriptions_[W+1],this.subscriptions_[W+2],M);else{this.publishDepth_++;try{for(w=0,W=A.length;w<W&&!this.isDisposed();w++){var d=A[w];this.subscriptions_[d+1].apply(this.subscriptions_[d+2],M)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;A=this.pendingKeys_.pop();)this.unsubscribeByKey(A)}}return w!=
0}return!1};
var hRh=function(H,U,A){_.Xf(function(){H.apply(U,A)})};
_.HK.prototype.clear=function(H){if(H){var U=this.topics_[H];U&&(U.forEach(this.unsubscribeByKey,this),delete this.topics_[H])}else this.subscriptions_.length=0,this.topics_={}};
_.HK.prototype.getCount=function(H){if(H){var U=this.topics_[H];return U?U.length:0}H=0;for(U in this.topics_)H+=this.getCount(U);return H};
_.HK.prototype.disposeInternal=function(){_.HK.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var L5=new _.HK;var vK=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(vK,_.fN);vK.prototype.getColdHashData=function(){return _.Mn(this,3)};
vK.prototype.getHotHashData=function(){return _.Mn(this,5)};
vK.prototype.setHotHashData=function(H){return _.Mu(this,5,H)};var if_=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(if_,_.fN);var tIh=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(tIh,_.fN);_.X=tIh.prototype;_.X.getDeviceId=function(){return _.Mn(this,6)};
_.X.getExperimentIds=function(H){var U=_.IY(this,9,_.f8,3,!0);MwE(U,H);return U[H]};
_.X.getPlayerType=function(){return _.Wn(this,36)};
_.X.setHomeGroupInfo=function(H){return _.CN(this,81,H)};
_.X.clearLocationPlayabilityToken=function(){return _.kD(this,89)};var UD=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(UD,_.fN);UD.prototype.setKey=function(H){return _.Mu(this,1,H)};
UD.prototype.getValue=function(){return XV(this,2,ys7)};
var ys7=[2,3,4,5,6];var kRw=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(kRw,_.fN);kRw.prototype.setTrackingParams=function(H){return _.kD(this,1,_.tH(H,!1))};var csK=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(csK,_.fN);var Ofh=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Ofh,_.fN);Ofh.prototype.getExperimentIds=function(H){var U=_.IY(this,5,_.xpM,3,!0);MwE(U,H);return U[H]};var wu=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(wu,_.fN);wu.prototype.getToken=function(){return _.Il(this,2)};
wu.prototype.setToken=function(H){return _.Mu(this,2,H)};var Ma=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Ma,_.fN);Ma.prototype.setSafetyMode=function(H){return _.hj(this,5,H)};var H1=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(H1,_.fN);H1.prototype.setClient=function(H){return _.CN(this,1,H)};var dvr={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 bf7;_.Fp=function(){var H=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Mr.addEventListener("beforeinstallprompt",function(U){U.preventDefault();H.deferredInstallPrompt=U});
_.Mr.addEventListener("appinstalled",function(){H.appInstalledEventFired=!0},{once:!0})};
bf7=function(){if(!_.Mr.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Mr.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Mr.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Mr.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Mr.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(H){return"WEB_DISPLAY_MODE_UNKNOWN"}};var ftF=function(){this.syncHeaders=!0},JG7=function(H){var U={},A=[];
"USER_SESSION_ID"in _.EW&&A.push({key:"u",value:_.gD("USER_SESSION_ID")});if(A=_.cyF(A))U.Authorization=A,A=H=H==null?void 0:H.sessionIndex,A===void 0&&(A=Number(_.gD("SESSION_INDEX",0)),A=isNaN(A)?0:A),_.S("voice_search_auth_header_removal")||(U["X-Goog-AuthUser"]=A.toString()),"INNERTUBE_HOST_OVERRIDE"in _.EW||(U["X-Origin"]=window.location.origin),H===void 0&&"DELEGATED_SESSION_ID"in _.EW&&(U["X-Goog-PageId"]=_.gD("DELEGATED_SESSION_ID"));return U};var v2y={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var aC=_.tr("ytglobal.prefsUserPrefsPrefs_")||{},Tsk;_.eC("ytglobal.prefsUserPrefsPrefs_",aC);_.xn=function(){this.cookieName=_.gD("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.gD("ALT_PREF_COOKIE_DOMAIN","youtube.com");var H=_.MK.get(this.cookieName,void 0);H&&this.parse(H)};
_.TR=function(){Tsk||(Tsk=new _.xn);return Tsk};
_.xn.prototype.get=function(H,U){j2r(H);IHH(H);H=aC[H]!==void 0?aC[H].toString():null;return H!=null?H:U?U:""};
_.xn.prototype.set=function(H,U){j2r(H);IHH(H);if(U==null)throw Error("Oc");aC[H]=U.toString()};
_.xn.prototype.getFlag=function(H){return!!((Q2H("f"+(Math.floor(H/31)+1))||0)&1<<H%31)};
_.jb=function(H,U,A){H="f"+(Math.floor(U/31)+1);U=1<<U%31;var M=Q2H(H)||0;M=A?M|U:M&~U;M===0?delete aC[H]:(A=M.toString(16),aC[H]=A.toString())};
_.xn.prototype.remove=function(H){j2r(H);IHH(H);delete aC[H]};
_.xn.prototype.save=function(){var H=!0;_.S("web_secure_pref_cookie_killswitch")&&(H=!1);_.WK(this.cookieName,this.dump(),63072E3,this.cookieDomain,H)};
_.xn.prototype.clear=function(){_.dG.clear(aC)};
_.xn.prototype.dump=function(){var H=[],U;for(U in aC)aC.hasOwnProperty(U)&&H.push(U+"="+encodeURIComponent(String(aC[U])));return H.join("&")};
var IHH=function(H){if(/^f([1-9][0-9]*)$/.test(H))throw Error("Pc`"+H);},j2r=function(H){if(!/^\w+$/.test(H))throw Error("Qc`"+H);
},Q2H=function(H){H=aC[H]!==void 0?aC[H].toString():null;
return H!=null&&/^[A-Fa-f0-9]+$/.test(H)?parseInt(H,16):null};
_.xn.prototype.parse=function(H){H=decodeURIComponent(H).split("&");for(var U=0;U<H.length;U++){var A=H[U].split("="),M=A[0];(A=A[1])&&(aC[M]=A.toString())}};var WHV={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"},upc={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},ZfM={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},XCV={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var gA;_.zG=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.bM=function(H,U,A){return H.addJob(U,0,A)};
_.zG.prototype.addLowPriorityJob=function(H,U){return this.addJob(H,1,U)};
_.TB=function(H,U,A){return H.addJob(U,2,A)};
_.qT=function(H,U,A){return H.addJob(U,3,A)};
_.av=function(H,U,A){return H.addJob(U,4,A)};
gA=function(H){var U=_.tr("yt.scheduler.instance.addImmediateJob");U?U(H):H()};
_.zG.prototype.debounce=function(H,U,A){var M=this,W=0,w=function(){W&&M.cancelJob(W);W=M.addJob(H,U,A);M.cancelDebouncedJobMap.set(w,W)};
return w};
_.zG.prototype.cancelThrottle=function(H){(H=this.cancelThrottledJobMap.get(H))&&H()};var CB=function(){_.zG.apply(this,arguments)},VbB;
_.R(CB,_.zG);_.MP=function(){CB.instance||(CB.instance=new CB);return CB.instance};
CB.prototype.addJob=function(H,U,A){A!==void 0&&Number.isNaN(Number(A))&&(A=void 0);var M=_.tr("yt.scheduler.instance.addJob");return M?M(H,U,A):A===void 0?(H(),NaN):_.jy(H,A||0)};
CB.prototype.cancelJob=function(H){if(H===void 0||!Number.isNaN(Number(H))){var U=_.tr("yt.scheduler.instance.cancelJob");U?U(H):_.QW(H)}};
CB.prototype.start=function(){var H=_.tr("yt.scheduler.instance.start");H&&H()};
CB.prototype.pause=function(){var H=_.tr("yt.scheduler.instance.pause");H&&H()};
VbB=function(){_.MP();var H=_.tr("yt.scheduler.instance.setPriorityThreshold");H&&H(4)};
_.Fl=_.MP();_.di.prototype.set=function(H,U){U===void 0?this.mechanism.remove(H):this.mechanism.set(H,(0,_.uR)(U))};
_.di.prototype.get=function(H){try{var U=this.mechanism.get(H)}catch(A){return}if(U!==null)try{return JSON.parse(U)}catch(A){throw"Storage: Invalid value was encountered";}};
_.di.prototype.remove=function(H){this.mechanism.remove(H)};_.zo(O4,_.di);var HEh=function(H){this.data=H},UYB=function(H){return H===void 0||H instanceof HEh?H:new HEh(H)};
O4.prototype.set=function(H,U){O4.superClass_.set.call(this,H,UYB(U))};
O4.prototype.getWrapper=function(H){H=O4.superClass_.get.call(this,H);if(H===void 0||H instanceof Object)return H;throw"Storage: Invalid value was encountered";};
O4.prototype.get=function(H){if(H=this.getWrapper(H)){if(H=H.data,H===void 0)throw"Storage: Invalid value was encountered";}else H=void 0;return H};_.zo(uD,O4);_.Aww=function(H){var U=H.creation;H=H.expiration;return!!H&&H<_.x4()||!!U&&U>_.x4()};
uD.prototype.set=function(H,U,A){if(U=UYB(U)){if(A){if(A<_.x4()){uD.prototype.remove.call(this,H);return}U.expiration=A}U.creation=_.x4()}uD.superClass_.set.call(this,H,U)};
uD.prototype.getWrapper=function(H,U){var A=uD.superClass_.getWrapper.call(this,H);if(A)if(!U&&_.Aww(A))uD.prototype.remove.call(this,H);else return A};var tL=function(){};
tL.prototype.next=function(){return cU};
var cU={done:!0,value:void 0},ye=function(H){return{value:H,done:!1}};
tL.prototype.__iterator__=function(){return this};
_.M92=function(H){if(H instanceof tL)return H;if(typeof H.__iterator__=="function")return H.__iterator__(!1);if(_.l7(H)){var U=0,A=new tL;A.next=function(){for(;;){if(U>=H.length)return cU;if(U in H)return ye(H[U++]);U++}};
return A}throw Error("Rc");};var Wbg=function(H){if(H instanceof BU||H instanceof r3||H instanceof e2)return H;if(typeof H.next=="function")return new BU(function(){return H});
if(typeof H[Symbol.iterator]=="function")return new BU(function(){return H[Symbol.iterator]()});
if(typeof H.__iterator__=="function")return new BU(function(){return H.__iterator__()});
throw Error("Sc");},BU=function(H){this.func_=H};
BU.prototype.__iterator__=function(){return new r3(this.func_())};
BU.prototype[Symbol.iterator]=function(){return new e2(this.func_())};
BU.prototype.toEs6=function(){return new e2(this.func_())};
var r3=function(H){this.JSC$10913_iter_=H};
_.R(r3,tL);r3.prototype.next=function(){return this.JSC$10913_iter_.next()};
r3.prototype[Symbol.iterator]=function(){return new e2(this.JSC$10913_iter_)};
r3.prototype.toEs6=function(){return new e2(this.JSC$10913_iter_)};
var e2=function(H){BU.call(this,function(){return H});
this.JSC$10916_iter_=H};
_.R(e2,BU);e2.prototype.next=function(){return this.JSC$10916_iter_.next()};var wOr=function(){};var Dp=function(){};
_.zo(Dp,wOr);Dp.prototype.getCount=function(){for(var H=0,U=_.b(this),A=U.next();!A.done;A=U.next())H++;return H};
Dp.prototype[Symbol.iterator]=function(){return Wbg(this.__iterator__(!0)).toEs6()};
Dp.prototype.clear=function(){var H=Array.from(this);H=_.b(H);for(var U=H.next();!U.done;U=H.next())this.remove(U.value)};_.zo(Z0,Dp);_.X=Z0.prototype;_.X.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var H=this.storage_;if(H)try{H.setItem("__sak","1");H.removeItem("__sak");var U=!0}catch(A){U=A instanceof DOMException&&(A.name==="QuotaExceededError"||A.code===22||A.code===1014||A.name==="NS_ERROR_DOM_QUOTA_REACHED")&&H&&H.length!==0}else U=!1;this.cachedIsStorageAvailable_=U}return this.cachedIsStorageAvailable_};
_.X.set=function(H,U){$n(this);try{this.storage_.setItem(H,U)}catch(A){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.X.get=function(H){$n(this);H=this.storage_.getItem(H);if(typeof H!=="string"&&H!==null)throw"Storage mechanism: Invalid value was encountered";return H};
_.X.remove=function(H){$n(this);this.storage_.removeItem(H)};
_.X.getCount=function(){$n(this);return this.storage_.length};
_.X.__iterator__=function(H){$n(this);var U=0,A=this.storage_,M=new tL;M.next=function(){if(U>=A.length)return cU;var W=A.key(U++);if(H)return ye(W);W=A.getItem(W);if(typeof W!=="string")throw"Storage mechanism: Invalid value was encountered";return ye(W)};
return M};
_.X.clear=function(){$n(this);this.storage_.clear()};
_.X.key=function(H){$n(this);return this.storage_.key(H)};
var $n=function(H){if(H.storage_==null)throw Error("Tc");H.isAvailable()||wK(Error("Tc"))};_.zo(bqN,Z0);_.zo(dhF,Z0);_.zo(fO,Dp);fO.prototype.set=function(H,U){this.mechanism_.set(this.JSC$10931_prefix_+H,U)};
fO.prototype.get=function(H){return this.mechanism_.get(this.JSC$10931_prefix_+H)};
fO.prototype.remove=function(H){this.mechanism_.remove(this.JSC$10931_prefix_+H)};
fO.prototype.__iterator__=function(H){var U=this.mechanism_[Symbol.iterator](),A=this,M=new tL;M.next=function(){var W=U.next();if(W.done)return W;for(W=W.value;W.slice(0,A.JSC$10931_prefix_.length)!=A.JSC$10931_prefix_;){W=U.next();if(W.done)return W;W=W.value}return ye(H?W.slice(A.JSC$10931_prefix_.length):A.mechanism_.get(W))};
return M};_.Sx=function(H){this.expiringStorage_=(H=_.Jj(H))?new uD(H):null;this.JSC$10935_domain_=document.domain||window.location.hostname};
_.X=_.Sx.prototype;_.X.hasLocalStorage=function(){return!!this.expiringStorage_};
_.X.set=function(H,U,A,M){A=A||31104E3;this.remove(H);if(this.hasLocalStorage())try{this.expiringStorage_.set(H,U,Date.now()+A*1E3);return}catch(w){}var W="";if(M)try{W=escape((0,_.uR)(U))}catch(w){return}else W=escape(U);_.WK(H,W,A,this.JSC$10935_domain_)};
_.X.get=function(H,U){var A=void 0,M=!this.hasLocalStorage();if(!M)try{A=this.expiringStorage_.get(H)}catch(W){M=!0}if(M&&(A=_.MK.get(H,void 0))&&(A=unescape(A),U))try{A=JSON.parse(A)}catch(W){this.remove(H),A=void 0}return A};
_.X.remove=function(H){this.hasLocalStorage()&&this.expiringStorage_.remove(H);_.Uh0(H,"/",this.JSC$10935_domain_)};
_.X.getCreationTime=function(H){return this.hasLocalStorage()&&(H=(this.expiringStorage_.getWrapper(H)||{}).creation,typeof H==="number")?H:null};var uz7=function(){var H;return function(){H||(H=new _.Sx("ytidb"));return H}}();var fYE;_.od=[];fYE=!1;var z1h=Jc8||KHV;var lw={},XO2=(lw.AUTH_INVALID="No user identifier specified.",lw.EXPLICIT_ABORT="Transaction was explicitly aborted.",lw.IDB_NOT_SUPPORTED="IndexedDB is not supported.",lw.MISSING_INDEX="Index not created.",lw.MISSING_OBJECT_STORES="Object stores not created.",lw.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",lw.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",lw.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",lw.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",lw.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",lw.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",lw.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",lw),GG={},iEy=(GG.AUTH_INVALID="ERROR",GG.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",GG.EXPLICIT_ABORT="IGNORED",
GG.IDB_NOT_SUPPORTED="ERROR",GG.MISSING_INDEX="WARNING",GG.MISSING_OBJECT_STORES="ERROR",GG.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",GG.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",GG.QUOTA_EXCEEDED="WARNING",GG.QUOTA_MAYBE_EXCEEDED="WARNING",GG.UNKNOWN_ABORT="WARNING",GG.INCOMPATIBLE_DB_VERSION="WARNING",GG),Yn={},bE3=(Yn.AUTH_INVALID=!1,Yn.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Yn.EXPLICIT_ABORT=!1,Yn.IDB_NOT_SUPPORTED=!1,Yn.MISSING_INDEX=!1,Yn.MISSING_OBJECT_STORES=!1,Yn.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Yn.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Yn.QUOTA_EXCEEDED=!1,Yn.QUOTA_MAYBE_EXCEEDED=!0,Yn.UNKNOWN_ABORT=!0,Yn.INCOMPATIBLE_DB_VERSION=!1,Yn),SC=function(H,U,A,M,W){U=U===void 0?{}:U;A=A===void 0?XO2[H]:A;M=M===void 0?iEy[H]:M;W=W===void 0?bE3[H]:W;_.bD.call(this,A,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:H},U));this.type=H;this.message=A;this.level=M;this.retryable=W;Object.setPrototypeOf(this,SC.prototype)};
_.R(SC,_.bD);var dYg=function(H,U){SC.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:U,foundObjectStores:H},XO2.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,dYg.prototype)};
_.R(dYg,SC);var FHM=function(H,U){var A=Error.call(this);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.index=H;this.objectStore=U;Object.setPrototypeOf(this,FHM.prototype)};
_.R(FHM,Error);var PEh=["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 E4=function(H){this.executor=H},Rd=function(H){var U=this;
this.state={status:"PENDING"};this.JSC$10963_onFulfilled=[];this.JSC$10963_onRejected=[];H=H.executor;var A=function(W){if(U.state.status==="PENDING"){U.state={status:"FULFILLED",value:W};W=_.b(U.JSC$10963_onFulfilled);for(var w=W.next();!w.done;w=W.next())w=w.value,w()}},M=function(W){if(U.state.status==="PENDING"){U.state={status:"REJECTED",
reason:W};W=_.b(U.JSC$10963_onRejected);for(var w=W.next();!w.done;w=W.next())w=w.value,w()}};
try{H(A,M)}catch(W){M(W)}};
Rd.all=function(H){return new Rd(new E4(function(U,A){var M=[],W=H.length;W===0&&U(M);for(var w={i$jscomp$471:0};w.i$jscomp$471<H.length;w={i$jscomp$471:w.i$jscomp$471},++w.i$jscomp$471)Rd.resolve(H[w.i$jscomp$471]).then(function(d){return function(O){M[d.i$jscomp$471]=O;W--;W===0&&U(M)}}(w)).catch(function(d){A(d)})}))};
Rd.resolve=function(H){return new Rd(new E4(function(U,A){H instanceof Rd?H.then(U,A):U(H)}))};
Rd.reject=function(H){return new Rd(new E4(function(U,A){A(H)}))};
Rd.prototype.then=function(H,U){var A=this,M=H!=null?H:N18,W=U!=null?U:nO4;return new Rd(new E4(function(w,d){A.state.status==="PENDING"?(A.JSC$10963_onFulfilled.push(function(){OEm(A,A,M,w,d)}),A.JSC$10963_onRejected.push(function(){u_k(A,A,W,w,d)})):A.state.status==="FULFILLED"?OEm(A,A,M,w,d):A.state.status==="REJECTED"&&u_k(A,A,W,w,d)}))};
Rd.prototype.catch=function(H){return this.then(void 0,H)};
var OEm=function(H,U,A,M,W){try{if(H.state.status!=="FULFILLED")throw Error("Wc");var w=A(H.state.value);w instanceof Rd?ZE3(H,U,w,M,W):M(w)}catch(d){W(d)}},u_k=function(H,U,A,M,W){try{if(H.state.status!=="REJECTED")throw Error("Xc");
var w=A(H.state.reason);w instanceof Rd?ZE3(H,U,w,M,W):M(w)}catch(d){W(d)}},ZE3=function(H,U,A,M,W){U===A?W(new TypeError("Yc")):A.then(function(w){w instanceof Rd?ZE3(H,U,w,M,W):M(w)},function(w){W(w)})};var qz;qz=window;_.lD=qz.ytcsi&&qz.ytcsi.now?qz.ytcsi.now:qz.performance&&qz.performance.timing&&qz.performance.now&&qz.performance.timing.navigationStart?function(){return qz.performance.timing.navigationStart+qz.performance.now()}:function(){return(new Date).getTime()};var gi=function(H,U){this.JSC$10975_wrapped=H;this.options=U;this.transactionCount=0;this.startedMs=Math.round((0,_.lD)());this.hasUnknownAbortedTransaction=!1},hL=function(){return _.S("idb_immediate_commit")},Kbz,oUh,TG,suy;
gi.prototype.add=function(H,U,A){return _.tj(this,[H],{mode:"readwrite",enableRetries:!0,commit:hL()},function(M){return M.objectStore(H).add(U,A)})};
gi.prototype.clear=function(H){return _.tj(this,[H],{mode:"readwrite",enableRetries:!0},function(U){return U.objectStore(H).clear()})};
gi.prototype.close=function(){this.JSC$10975_wrapped.close();var H;((H=this.options)==null?0:H.closed)&&this.options.closed()};
gi.prototype.count=function(H,U){return _.tj(this,[H],{mode:"readonly",enableRetries:!0,commit:hL()},function(A){return A.objectStore(H).count(U)})};
var L_=function(H,U,A){H=H.JSC$10975_wrapped.createObjectStore(U,A);return new kn(H)};
gi.prototype.delete=function(H,U){return _.tj(this,[H],{mode:"readwrite",enableRetries:!0,commit:hL()&&!(U instanceof IDBKeyRange)},function(A){return A.objectStore(H).delete(U)})};
var f$m=function(H,U){return _.tj(H,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(A){return A.objectStore("ResponseStore").index("byInterface").delete(U)})};
gi.prototype.get=function(H,U){return _.tj(this,[H],{mode:"readonly",enableRetries:!0,commit:hL()},function(A){return A.objectStore(H).get(U)})};
gi.prototype.getAll=function(H,U,A){return _.tj(this,[H],{mode:"readonly",enableRetries:!0},function(M){return M.objectStore(H).getAll(U,A)})};
gi.prototype.put=function(H,U,A){return _.tj(this,[H],{mode:"readwrite",enableRetries:!0,commit:hL()},function(M){return M.objectStore(H).put(U,A)})};
gi.prototype.objectStoreNames=function(){return Array.from(this.JSC$10975_wrapped.objectStoreNames)};
_.tj=function(H,U,A,M){var W,w,d,O,f,J,F,P,n,N,L,m;return _.u(function(z){switch(z.nextAddress){case 1:var c={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof A==="string"?c.mode=A:Object.assign(c,A);W=c;H.transactionCount++;w=W.enableRetries?3:1;d=0;case 2:if(O){z.jumpTo(4);break}d++;f=Math.round((0,_.lD)());_.zj(z,5);J=H.JSC$10975_wrapped.transaction(U,W.mode);c=z.yield;var C=!!W.commit;var v=new ad(J);C=Jwp(v,M,C);return c.call(z,C,7);case 7:return F=z.yieldResult,P=Math.round((0,_.lD)()),
Kbz(H,f,P,d,void 0,U.join(),W),z.return(F);case 5:n=_.eG(z);N=Math.round((0,_.lD)());L=sEF(n,H.JSC$10975_wrapped.name,U.join(),H.JSC$10975_wrapped.version);if((m=L instanceof SC&&!L.retryable)||d>=w)Kbz(H,f,N,d,L,U.join(),W),O=L;z.jumpTo(2);break;case 4:return z.return(Promise.reject(O))}})};
Kbz=function(H,U,A,M,W,w,d){U=A-U;W?(W instanceof SC&&(W.type==="QUOTA_EXCEEDED"||W.type==="QUOTA_MAYBE_EXCEEDED")&&PK("QUOTA_EXCEEDED",{dbName:nO(H.JSC$10975_wrapped.name),objectStoreNames:w,transactionCount:H.transactionCount,transactionMode:d.mode}),W instanceof SC&&W.type==="UNKNOWN_ABORT"&&(A-=H.startedMs,A<0&&A>=2147483648&&(A=0),PK("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:w,transactionDuration:U,transactionCount:H.transactionCount,dbDuration:A}),H.hasUnknownAbortedTransaction=!0),
oUh(H,!1,M,w,U,d.tag),_.FU(W)):oUh(H,!0,M,w,U,d.tag)};
oUh=function(H,U,A,M,W,w){PK("TRANSACTION_ENDED",{objectStoreNames:M,connectionHasUnknownAbortedTransaction:H.hasUnknownAbortedTransaction,duration:W,isSuccessful:U,tryCount:A,tag:w===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":w})};
gi.prototype.getName=function(){return this.JSC$10975_wrapped.name};
var kn=function(H){this.JSC$10990_wrapped=H};
kn.prototype.add=function(H,U){return m6(this.JSC$10990_wrapped.add(H,U))};
kn.prototype.autoIncrement=function(){return this.JSC$10990_wrapped.autoIncrement};
kn.prototype.clear=function(){return m6(this.JSC$10990_wrapped.clear()).then(function(){})};
var RQ=function(H,U,A){H.JSC$10990_wrapped.createIndex(U,A,{unique:!1})};
kn.prototype.count=function(H){return m6(this.JSC$10990_wrapped.count(H))};
var Fb2=function(H,U){return yG(H,{query:U},function(A){return A.delete().then(function(){return A.continue()})}).then(function(){})};
kn.prototype.delete=function(H){return H instanceof IDBKeyRange?Fb2(this,H):m6(this.JSC$10990_wrapped.delete(H))};
kn.prototype.get=function(H){return m6(this.JSC$10990_wrapped.get(H))};
kn.prototype.getAll=function(H,U){return"getAll"in IDBObjectStore.prototype?m6(this.JSC$10990_wrapped.getAll(H,U)):Pan(this,H,U)};
var Pan=function(H,U,A){var M=[];return yG(H,{query:U},function(W){if(!(A!==void 0&&M.length>=A))return M.push(W.getValue()),W.continue()}).then(function(){return M})};
kn.prototype.index=function(H){try{return new vU(this.JSC$10990_wrapped.index(H))}catch(U){if(U instanceof Error&&U.name==="NotFoundError")throw new FHM(H,this.JSC$10990_wrapped.name);throw U;}};
kn.prototype.getName=function(){return this.JSC$10990_wrapped.name};
kn.prototype.keyPath=function(){return this.JSC$10990_wrapped.keyPath};
kn.prototype.put=function(H,U){return m6(this.JSC$10990_wrapped.put(H,U))};
var yG=function(H,U,A){H=H.JSC$10990_wrapped.openCursor(U.query,U.direction);return suy(H).then(function(M){return LHK(M,A)})},ad=function(H){var U=this;
this.JSC$10998_wrapped=H;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(A,M){U.JSC$10998_wrapped.addEventListener("complete",function(){A()});
U.JSC$10998_wrapped.addEventListener("error",function(W){W.currentTarget===W.target&&M(U.JSC$10998_wrapped.error)});
U.JSC$10998_wrapped.addEventListener("abort",function(){var W=U.JSC$10998_wrapped.error;if(W)M(W);else if(!U.aborted){W=SC;for(var w=U.JSC$10998_wrapped.objectStoreNames,d=[],O=0;O<w.length;O++){var f=w.item(O);if(f===null)throw Error("Zc");d.push(f)}W=new W("UNKNOWN_ABORT",{objectStoreNames:d.join(),dbName:U.JSC$10998_wrapped.db.name,mode:U.JSC$10998_wrapped.mode});M(W)}})})},Jwp=function(H,U,A){var M=new Promise(function(W,w){try{var d=U(H);
A&&H.commit();d.then(function(O){W(O)}).catch(w)}catch(O){w(O),H.abort()}});
return Promise.all([M,H.done]).then(function(W){return _.b(W).next().value})};
ad.prototype.abort=function(){this.JSC$10998_wrapped.abort();this.aborted=!0;throw new SC("EXPLICIT_ABORT");};
ad.prototype.commit=function(){if(!this.aborted){var H,U;(U=(H=this.JSC$10998_wrapped).commit)==null||U.call(H)}};
ad.prototype.objectStore=function(H){H=this.JSC$10998_wrapped.objectStore(H);var U=this.objectStoreCache.get(H);U||(U=new kn(H),this.objectStoreCache.set(H,U));return U};
var vU=function(H){this.JSC$11000_wrapped=H};
vU.prototype.count=function(H){return m6(this.JSC$11000_wrapped.count(H))};
vU.prototype.delete=function(H){return _.GU(this,{query:H},function(U){return U.delete().then(function(){return U.continue()})})};
vU.prototype.get=function(H){return m6(this.JSC$11000_wrapped.get(H))};
vU.prototype.getAll=function(H,U){return"getAll"in IDBIndex.prototype?m6(this.JSC$11000_wrapped.getAll(H,U)):nUz(this,H,U)};
var nUz=function(H,U,A){var M=[];return _.GU(H,{query:U},function(W){if(!(A!==void 0&&M.length>=A))return M.push(W.getValue()),W.continue()}).then(function(){return M})};
vU.prototype.keyPath=function(){return this.JSC$11000_wrapped.keyPath};
vU.prototype.unique=function(){return this.JSC$11000_wrapped.unique};
_.GU=function(H,U,A){H=H.JSC$11000_wrapped.openCursor(U.query===void 0?null:U.query,U.direction===void 0?"next":U.direction);return suy(H).then(function(M){return LHK(M,A)})};
TG=function(H,U){this.request=H;this.cursor=U};
suy=function(H){return m6(H).then(function(U){return U?new TG(H,U):null})};
TG.prototype.continue=function(H){this.cursor.continue(H);return suy(this.request)};
TG.prototype.delete=function(){return m6(this.cursor.delete()).then(function(){})};
TG.prototype.getValue=function(){return this.cursor.value};
TG.prototype.update=function(H){return m6(this.cursor.update(H))};var j2=function(H,U){this.name=H;this.options=U;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},NHy;
j2.prototype.openDb=function(H,U,A){A=A===void 0?{}:A;return EOE(H,U,A)};
j2.prototype.delete=function(H){H=H===void 0?{}:H;return _.zU(this.name,H)};
NHy=function(H,U){return new SC("INCOMPATIBLE_DB_VERSION",{dbName:H.name,oldVersion:H.options.version,newVersion:U})};
_.CO=function(H,U){if(!U)throw LO("openWithToken",nO(H.name));return H.open()};
j2.prototype.open=function(){var H=this;if(!this.isCompatible)throw NHy(this);if(this.connectionPromise)return this.connectionPromise;var U,A=function(){H.connectionPromise===U&&(H.connectionPromise=void 0)},M={blocking:function(w){w.close()},
closed:A,terminated:A,upgrade:this.options.upgrade},W=function(){var w,d,O,f,J,F,P,n,N,L;return _.u(function(m){switch(m.nextAddress){case 1:return d=(w=Error().stack)!=null?w:"",_.zj(m,2),m.yield(H.openDb(H.name,H.options.version,M),4);case 4:for(var z=O=m.yieldResult,c=H.options,C=[],v=_.b(Object.keys(c.objectStores)),Y=v.next();!Y.done;Y=v.next()){Y=Y.value;var D=c.objectStores[Y],h=D.removedAtVersion===void 0?Number.MAX_VALUE:D.removedAtVersion;!(z.JSC$10975_wrapped.version>=D.addedAtVersion)||
z.JSC$10975_wrapped.version>=h||z.JSC$10975_wrapped.objectStoreNames.contains(Y)||C.push(Y)}f=C;if(f.length===0){m.jumpTo(5);break}J=Object.keys(H.options.objectStores);F=O.objectStoreNames();if(H.timesReopenedToFixMissingObjectStore<_.hr("ytidb_reopen_db_retries",0))return H.timesReopenedToFixMissingObjectStore++,O.close(),_.FU(new SC("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:H.name,expectedObjectStores:J,foundObjectStores:F})),m.return(W());if(!(H.timesDeletedToFixMissingObjectStore<_.hr("ytidb_remake_db_retries",
1))){m.jumpTo(6);break}H.timesDeletedToFixMissingObjectStore++;return m.yield(H.delete(),7);case 7:return _.FU(new SC("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:H.name,expectedObjectStores:J,foundObjectStores:F})),m.return(W());case 6:throw new dYg(F,J);case 5:return m.return(O);case 2:P=_.eG(m);if(P instanceof DOMException?P.name!=="VersionError":"DOMError"in self&&P instanceof DOMError?P.name!=="VersionError":!(P instanceof Object&&"message"in P)||P.message!=="An attempt was made to open a database using a lower version than the existing version."){m.jumpTo(8);
break}return m.yield(H.openDb(H.name,void 0,Object.assign({},M,{upgrade:void 0})),9);case 9:n=m.yieldResult;N=n.JSC$10975_wrapped.version;if(H.options.version!==void 0&&N>H.options.version+1)throw n.close(),H.isCompatible=!1,NHy(H,N);return m.return(n);case 8:throw A(),P instanceof Error&&!_.S("ytidb_async_stack_killswitch")&&(P.stack=P.stack+"\n"+d.substring(d.indexOf("\n")+1)),sEF(P,H.name,"",(L=H.options.version)!=null?L:-1);}})};
return this.connectionPromise=U=W()};var mhM=new j2("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(H,U){U(1)&&L_(H,"databases",{keyPath:"actualName"})}});var ccF,CE4=new function(){}(new function(){});new _.r1;var Snh=function(H,U){j2.call(this,H,U);this.options=U;s4(H)};
_.R(Snh,j2);var q_c=function(H,U){var A;return function(){A||(A=new Snh(H,U));return A}};
Snh.prototype.openDb=function(H,U,A){A=A===void 0?{}:A;return(this.options.shared?Dh7:e1_)(H,U,Object.assign({},A))};
Snh.prototype.delete=function(H){H=H===void 0?{}:H;return(this.options.shared?Y_K:$hE)(this.name,H)};var pOp={},h17=$D("ytGcfConfig",{objectStores:(pOp.coldConfigStore={addedAtVersion:1},pOp.hotConfigStore={addedAtVersion:1},pOp),shared:!1,upgrade:function(H,U){U(1)&&(RQ(L_(H,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),RQ(L_(H,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Lbz=function(){_.XG.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var H=_.tr("yt.gcf.config.hotUpdateCallbacks");H?(this.localHotConfigJobQueue=[].concat(_.vI(H)),this.sharedHotConfigJobQueue=H):(this.sharedHotConfigJobQueue=[],_.eC("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.R(Lbz,_.XG);Lbz.prototype.disposeInternal=function(){for(var H=_.b(this.localHotConfigJobQueue),U=H.next();!U.done;U=H.next()){var A=this.sharedHotConfigJobQueue;U=A.indexOf(U.value);U>=0&&A.splice(U,1)}this.localHotConfigJobQueue.length=0;_.XG.prototype.disposeInternal.call(this)};var du=function(){var H=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Lbz;this.TEST_ONLY={initializeConfigDb:function(){H.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return H.coldGlobalConfigGroup},
setHotConfigGroup:function(U){RM2(H,U)},
setHotHashData:function(U){H.setHotHashData(U)},
setColdConfigGroup:function(U){EUw(H,U)},
getColdHashData:function(){return H.coldHashData},
getHotHashData:function(){return H.hotHashData},
getHotConfigGroup:function(){return H.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return mYz()},
getExportedHotConfigGroup:function(){return IC()},
getExportedColdHashData:function(){return _.tr("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.tr("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){gUm(H)},
resetInstance:function(){H.setHotHashData(void 0);a$p(H);delete du.instance},
setDebounceTimer:function(U){H.debounceTimer=U},
getDebounceTimer:function(){return H.debounceTimer}}},xY2=function(){if(!du.instance){var H=new du;
du.instance=H}return du.instance},t9B=function(H){var U;
_.u(function(A){if(A.nextAddress==1)return _.S("start_client_gcf")||_.S("delete_gcf_config_db")?_.S("start_client_gcf")?A.yield(_.D0(),3):A.jumpTo(2):A.return();A.nextAddress!=2&&((U=A.yieldResult)&&_.iD()&&!_.S("delete_gcf_config_db")?(H.isConfigDbInitialized=!0,gUm(H)):(zMK(H),Caw(H)));return _.S("delete_gcf_config_db")?A.yield(QEM(),0):A.jumpTo(0)})},uM=function(){var H;
return(H=IC())!=null?H:_.gD("RAW_HOT_CONFIG_GROUP")},cwr=function(H){var U,A,M,W,w,d;
return _.u(function(O){switch(O.nextAddress){case 1:if(H.hotGlobalConfigGroup)return O.return(IC());if(!H.isConfigDbInitialized)return U=LO("getHotConfig IDB not initialized"),_.c5(U),O.return(Promise.reject(U));A=ri();M=_.gD("TIME_CREATED_MS");if(!A){W=LO("getHotConfig token error");_.c5(W);O.jumpTo(2);break}return O.yield(IYt(A),3);case 3:if((w=O.yieldResult)&&w.timestamp>M)return RM2(H,w.config),H.setHotHashData(w.hashData),O.return(IC());case 2:Caw(H);if(!(A&&H.hotGlobalConfigGroup&&H.hotHashData)){O.jumpTo(4);
break}return O.yield(vOc(H.hotGlobalConfigGroup,H.hotHashData,A,M),4);case 4:return H.hotGlobalConfigGroup?O.return(IC()):(d=new _.bD("Config not available in ytConfig"),_.c5(d),O.return(Promise.reject(d)))}})},BHB=function(H){var U,A,M,W,w,d;
return _.u(function(O){switch(O.nextAddress){case 1:if(H.coldGlobalConfigGroup)return O.return(mYz());if(!H.isConfigDbInitialized)return U=LO("getColdConfig IDB not initialized"),_.c5(U),O.return(Promise.reject(U));A=ri();M=_.gD("TIME_CREATED_MS");if(!A){W=LO("getColdConfig");_.c5(W);O.jumpTo(2);break}return O.yield(jEh(A),3);case 3:if((w=O.yieldResult)&&w.timestamp>M)return EUw(H,w.config),yww(H,w.configData),a$p(H,w.hashData),O.return(mYz());case 2:zMK(H);if(!(A&&H.coldGlobalConfigGroup&&H.coldHashData&&
H.configData)){O.jumpTo(4);break}return O.yield(T1F(H.coldGlobalConfigGroup,H.coldHashData,H.configData,A,M),4);case 4:return H.coldGlobalConfigGroup?O.return(mYz()):(d=new _.bD("Config not available in ytConfig"),_.c5(d),O.return(Promise.reject(d)))}})},gUm=function(H){if(!H.hotGlobalConfigGroup||!H.coldGlobalConfigGroup){if(!ri()){var U=LO("scheduleGetConfigs");
_.c5(U)}H.initJob||(H.initJob=_.Fl.addLowPriorityJob(function(){return _.u(function(A){switch(A.nextAddress){case 1:return _.zj(A,2),A.yield(cwr(H),4);case 4:_.xD(A,3);break;case 2:_.eG(A);case 3:return _.zj(A,5),A.yield(BHB(H),7);case 7:_.xD(A,6);break;case 5:_.eG(A);case 6:H.initJob&&(H.initJob=0),_.DO(A)}})},100))}},kBE=function(H,U,A){var M,W,w;
return _.u(function(d){switch(d.nextAddress){case 1:if(!_.S("start_client_gcf")){d.jumpTo(0);break}A&&RM2(H,A);H.setHotHashData(U);M=ri();if(!M){d.jumpTo(3);break}if(A){d.jumpTo(4);break}return d.yield(IYt(M),5);case 5:W=d.yieldResult,A=(w=W)==null?void 0:w.config;case 4:return d.yield(vOc(A,U,M),3);case 3:if(A)for(var O=A,f=_.b(H.configUpdateService.sharedHotConfigJobQueue),J=f.next();!J.done;J=f.next())J=J.value,J(O);_.DO(d)}})},vY0=function(H,U,A){var M,W,w,d;
return _.u(function(O){if(O.nextAddress==1){if(!_.S("start_client_gcf"))return O.jumpTo(0);a$p(H,U);return(M=ri())?A?O.jumpTo(4):O.yield(jEh(M),5):O.jumpTo(0)}O.nextAddress!=4&&(W=O.yieldResult,A=(w=W)==null?void 0:w.config);if(!A)return O.jumpTo(0);d=A.configData;return O.yield(T1F(A,U,d,M),0)})},oah=function(){var H=xY2(),U=(0,_.lD)()-H.debounceTimer;
if(!(H.debounceTimer!==0&&U<_.hr("send_config_hash_timer"))){U=_.tr("yt.gcf.config.coldConfigData");var A=_.tr("yt.gcf.config.hotHashData"),M=_.tr("yt.gcf.config.coldHashData");U&&A&&M&&(H.debounceTimer=(0,_.lD)());return{coldConfigData:U,hotHashData:A,coldHashData:M}}},zMK=function(H){EUw(H,_.gD("RAW_COLD_CONFIG_GROUP"));
a$p(H,_.gD("SERIALIZED_COLD_HASH_DATA"));var U;yww(H,(U=H.coldGlobalConfigGroup)==null?void 0:U.configData)},Caw=function(H){RM2(H,_.gD("RAW_HOT_CONFIG_GROUP"));
H.setHotHashData(_.gD("SERIALIZED_HOT_HASH_DATA"))},RM2=function(H,U){H.hotGlobalConfigGroup=U;
_.eC("yt.gcf.config.hotConfigGroup",H.hotGlobalConfigGroup||null)},EUw=function(H,U){H.coldGlobalConfigGroup=U;
_.eC("yt.gcf.config.coldConfigGroup",H.coldGlobalConfigGroup||null)};
du.prototype.setHotHashData=function(H){this.hotHashData=H;_.eC("yt.gcf.config.hotHashData",this.hotHashData||null)};
var a$p=function(H,U){H.coldHashData=U;_.eC("yt.gcf.config.coldHashData",H.coldHashData||null)},yww=function(H,U){H.configData=U;
_.eC("yt.gcf.config.coldConfigData",H.configData||null)},IC=function(){return _.tr("yt.gcf.config.hotConfigGroup")},mYz=function(){return _.tr("yt.gcf.config.coldConfigGroup")};var VG={},rwy=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";VG.assign=function(H){for(var U=Array.prototype.slice.call(arguments,1);U.length;){var A=U.shift();if(A){if(typeof A!=="object")throw new TypeError("bd`"+A);for(var M in A)Object.prototype.hasOwnProperty.call(A,M)&&(H[M]=A[M])}}return H};
VG.shrinkBuf=function(H,U){if(H.length===U)return H;if(H.subarray)return H.subarray(0,U);H.length=U;return H};
var eMm={arraySet:function(H,U,A,M,W){if(U.subarray&&H.subarray)H.set(U.subarray(A,A+M),W);else for(var w=0;w<M;w++)H[W+w]=U[A+w]},
flattenChunks:function(H){var U,A;var M=A=0;for(U=H.length;M<U;M++)A+=H[M].length;var W=new Uint8Array(A);M=A=0;for(U=H.length;M<U;M++){var w=H[M];W.set(w,A);A+=w.length}return W}},DYm={arraySet:function(H,U,A,M,W){for(var w=0;w<M;w++)H[W+w]=U[A+w]},
flattenChunks:function(H){return[].concat.apply([],H)}};
VG.setTyped=function(){rwy?(VG.Buf8=Uint8Array,VG.Buf16=Uint16Array,VG.Buf32=Int32Array,VG.assign(VG,eMm)):(VG.Buf8=Array,VG.Buf16=Array,VG.Buf32=Array,VG.assign(VG,DYm))};
VG.setTyped();var $Yh=!0;try{new Uint8Array(1)}catch(H){$Yh=!1}
var Itr=function(H){var U,A,M=H.length,W=0;for(U=0;U<M;U++){var w=H.charCodeAt(U);if((w&64512)===55296&&U+1<M){var d=H.charCodeAt(U+1);(d&64512)===56320&&(w=65536+(w-55296<<10)+(d-56320),U++)}W+=w<128?1:w<2048?2:w<65536?3:4}var O=new VG.Buf8(W);for(U=A=0;A<W;U++)w=H.charCodeAt(U),(w&64512)===55296&&U+1<M&&(d=H.charCodeAt(U+1),(d&64512)===56320&&(w=65536+(w-55296<<10)+(d-56320),U++)),w<128?O[A++]=w:(w<2048?O[A++]=192|w>>>6:(w<65536?O[A++]=224|w>>>12:(O[A++]=240|w>>>18,O[A++]=128|w>>>12&63),O[A++]=
128|w>>>6&63),O[A++]=128|w&63);return O};var rGc={};rGc=function(H,U,A,M){var W=H&65535|0;H=H>>>16&65535|0;for(var w;A!==0;){w=A>2E3?2E3:A;A-=w;do W=W+U[M++]|0,H=H+W|0;while(--w);W%=65521;H%=65521}return W|H<<16|0};for(var Z6={},Qe,l$w=[],GQ2=0;GQ2<256;GQ2++){Qe=GQ2;for(var Yng=0;Yng<8;Yng++)Qe=Qe&1?3988292384^Qe>>>1:Qe>>>1;l$w[GQ2]=Qe}Z6=function(H,U,A,M){A=M+A;for(H^=-1;M<A;M++)H=H>>>8^l$w[(H^U[M])&255];return H^-1};var Ms={};Ms={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 Eah=[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],gac=[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],jrc=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],yG_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],iS=Array(576);TU(iS);var bS=Array(60);TU(bS);var Ul=Array(512);TU(Ul);var HW=Array(256);TU(HW);var mv0=Array(29);TU(mv0);var ath=Array(30);TU(ath);var kl8,vac,Tnr,h2V=!1;var oQ;
oQ=[new K_(0,0,0,0,function(H,U){var A=65535;for(A>H.pending_buf_size-5&&(A=H.pending_buf_size-5);;){if(H.lookahead<=1){f_(H);if(H.lookahead===0&&U===0)return 1;if(H.lookahead===0)break}H.strstart+=H.lookahead;H.lookahead=0;var M=H.block_start+A;if(H.strstart===0||H.strstart>=M)if(H.lookahead=H.strstart-M,H.strstart=M,dB(H,!1),H.strm.avail_out===0)return 1;if(H.strstart-H.block_start>=H.w_size-262&&(dB(H,!1),H.strm.avail_out===0))return 1}H.insert=0;if(U===4)return dB(H,!0),H.strm.avail_out===0?3:
4;H.strstart>H.block_start&&dB(H,!1);return 1}),
new K_(4,4,8,4,e27),new K_(4,5,16,8,e27),new K_(4,6,32,32,e27),new K_(4,4,16,16,Jk),new K_(8,16,32,32,Jk),new K_(8,16,128,128,Jk),new K_(8,32,128,256,Jk),new K_(32,128,258,1024,Jk),new K_(32,258,258,4096,Jk)];var qU7={};qU7=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 QrE=Object.prototype.toString;
YU0.prototype.push=function(H,U){var A=this.strm,M=this.options.chunkSize;if(this.ended)return!1;var W=U===~~U?U:U===!0?4:0;typeof H==="string"?A.input=Itr(H):QrE.call(H)==="[object ArrayBuffer]"?A.input=new Uint8Array(H):A.input=H;A.next_in=0;A.avail_in=A.input.length;do{A.avail_out===0&&(A.output=new VG.Buf8(M),A.next_out=0,A.avail_out=M);H=Glh(A,W);if(H!==1&&H!==0)return qnH(this,H),this.ended=!0,!1;if(A.avail_out===0||A.avail_in===0&&(W===4||W===2))if(this.options.to==="string"){var w=VG.shrinkBuf(A.output,
A.next_out);U=w;w=w.length;if(w<65537&&(U.subarray&&$Yh||!U.subarray))U=String.fromCharCode.apply(null,VG.shrinkBuf(U,w));else{for(var d="",O=0;O<w;O++)d+=String.fromCharCode(U[O]);U=d}this.chunks.push(U)}else U=VG.shrinkBuf(A.output,A.next_out),this.chunks.push(U)}while((A.avail_in>0||A.avail_out===0)&&H!==1);if(W===4)return(A=this.strm)&&A.state?(M=A.state.status,M!==42&&M!==69&&M!==73&&M!==91&&M!==103&&M!==113&&M!==666?H=WW(A,-2):(A.state=null,H=M===113?WW(A,-3):0)):H=-2,qnH(this,H),this.ended=
!0,H===0;W===2&&(qnH(this,0),A.avail_out=0);return!0};
var qnH=function(H,U){U===0&&(H.result=H.options.to==="string"?H.chunks.join(""):VG.flattenChunks(H.chunks));H.chunks=[];H.err=U;H.msg=H.strm.msg};var hMp=typeof TextEncoder!=="undefined"?new TextEncoder:null,E$4=hMp?function(H){return hMp.encode(H)}:function(H){H=_.wO(H);
for(var U=new Uint8Array(H.length),A=0;A<U.length;A++)U[A]=H[A];return U};var $5K={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},G1V={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Ve=function(H,U){this.version=H;this.args=U};
Ve.prototype.serialize=function(){return{version:this.version,args:this.args}};var Mq4=function(H,U){this.topic=H;this.dataClass=U};
Mq4.prototype.toString=function(){return this.topic};var kQz=_.tr("ytPubsub2Pubsub2Instance")||new _.HK;_.HK.prototype.subscribe=_.HK.prototype.subscribe;_.HK.prototype.unsubscribeByKey=_.HK.prototype.unsubscribeByKey;_.HK.prototype.publish=_.HK.prototype.publish;_.HK.prototype.clear=_.HK.prototype.clear;_.eC("ytPubsub2Pubsub2Instance",kQz);var AyF=_.tr("ytPubsub2Pubsub2SubscribedKeys")||{};_.eC("ytPubsub2Pubsub2SubscribedKeys",AyF);var wX4=_.tr("ytPubsub2Pubsub2TopicToKeys")||{};_.eC("ytPubsub2Pubsub2TopicToKeys",wX4);
var Wdt=_.tr("ytPubsub2Pubsub2IsAsync")||{};_.eC("ytPubsub2Pubsub2IsAsync",Wdt);_.eC("ytPubsub2Pubsub2SkipSubKey",null);var Kdc=void 0,fd8=void 0;var pXK=_.hr("max_body_size_to_compress",5E5),Ld7=_.hr("min_body_size_to_compress",500),sl=!0,adc=0,n_=0,g$V=_.hr("compression_performance_threshold_lr",250),zDF=_.hr("slow_compressions_before_abandon_count",4),P0h=!1,sSM=new Map,RD0=1;_.zo(Ns,tqh);Ns.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 vU3=function(H,U,A){A||(A=0);var M=H.W_;if(typeof U==="string")for(var W=0;W<16;W++)M[W]=U.charCodeAt(A)<<24|U.charCodeAt(A+1)<<16|U.charCodeAt(A+2)<<8|U.charCodeAt(A+3),A+=4;else for(W=0;W<16;W++)M[W]=U[A]<<24|U[A+1]<<16|U[A+2]<<8|U[A+3],A+=4;for(U=16;U<80;U++)A=M[U-3]^M[U-8]^M[U-14]^M[U-16],M[U]=(A<<1|A>>>31)&4294967295;U=H.chain_[0];A=H.chain_[1];W=H.chain_[2];for(var w=H.chain_[3],d=H.chain_[4],O,f,J=0;J<80;J++)J<40?J<20?(O=w^A&(W^w),f=1518500249):(O=A^W^w,f=1859775393):J<60?(O=A&W|w&(A|W),
f=2400959708):(O=A^W^w,f=3395469782),O=(U<<5|U>>>27)+O+d+f+M[J]&4294967295,d=w,w=W,W=(A<<30|A>>>2)&4294967295,A=U,U=O;H.chain_[0]=H.chain_[0]+U&4294967295;H.chain_[1]=H.chain_[1]+A&4294967295;H.chain_[2]=H.chain_[2]+W&4294967295;H.chain_[3]=H.chain_[3]+w&4294967295;H.chain_[4]=H.chain_[4]+d&4294967295};
Ns.prototype.update=function(H,U){if(H!=null){U===void 0&&(U=H.length);for(var A=U-this.blockSize,M=0,W=this.buf_,w=this.inbuf_;M<U;){if(w==0)for(;M<=A;)vU3(this,H,M),M+=this.blockSize;if(typeof H==="string")for(;M<U;){if(W[w]=H.charCodeAt(M),++w,++M,w==this.blockSize){vU3(this,W);w=0;break}}else for(;M<U;)if(W[w]=H[M],++w,++M,w==this.blockSize){vU3(this,W);w=0;break}}this.inbuf_=w;this.total_+=U}};
Ns.prototype.digest=function(){var H=[],U=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var A=this.blockSize-1;A>=56;A--)this.buf_[A]=U&255,U/=256;vU3(this,this.buf_);for(A=U=0;A<5;A++)for(var M=24;M>=0;M-=8)H[U]=this.chain_[A]>>M&255,++U;return H};var BXh;var U9=function(H){var U=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(F){U.databaseToken=F},
triggerThrottle:function(){U.throttledSend()},
cancelThrottle:function(){U.cancelThrottledSend()},
immediateSend:function(F){return _.u(function(P){return P.yield(U.immediateSend(F),0)})},
requestWithinAgeLimit:function(F,P){return U.requestWithinAgeLimit(F,P)},
retryQueuedRequests:function(){U.retryQueuedRequests()}};
var A;this.throttleTimeout=(A=H.throttleTimeout)!=null?A:100;var M;this.retryMaxAttempts=(M=H.retryMaxAttempts)!=null?M:1;var W;this.requestAgeLimitMs=(W=H.requestAgeLimitMs)!=null?W:2592E6;var w;this.queuedRequestAgeLimitMs=(w=H.queuedRequestAgeLimitMs)!=null?w:12E4;var d;this.retryDelayMs=(d=H.retryDelayMs)!=null?d:5E3;var O;this.databaseToken=(O=H.databaseToken)!=null?O:void 0;this.enableCleaning=!!H.enableCleaning;var f;this.cleaningRate=(f=H.cleaningRate)!=null?f:.1;var J;this.potentialEsfErrorLimit=
(J=H.potentialEsfErrorLimit)!=null?J:10;H.handleError&&(this.handleError=H.handleError);H.handleWarning&&(this.handleWarning=H.handleWarning);H.disableYtIdbTransactions&&(this.disableYtIdbTransactions=H.disableYtIdbTransactions);H.bypassDbTokenDependency&&(this.bypassDbTokenDependency=H.bypassDbTokenDependency);this.getBooleanFlag=H.getBooleanFlag;this.jobManager=H.jobManager;this.logsStore=H.logsStore;this.networkManager=H.networkManager;this.sendFn=H.sendFn;this.onlineEvent=H.onlineEvent;this.offlineEvent=
H.offlineEvent;HR(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&TH3(this)},TH3=function(H){HR(H)&&!H.disableYtIdbTransactions&&(H.initialized=!0,H.enableCleaning&&Math.random()<=H.cleaningRate&&H.logsStore.cleanLogsStore(H.databaseToken),H.retryQueuedRequests(),H.networkManager.isNetworkAvailable()&&H.throttledSend(),H.networkManager.listen(H.onlineEvent,H.throttledSend.bind(H)),H.networkManager.listen(H.offlineEvent,H.cancelThrottledSend.bind(H)))};
_.X=U9.prototype;_.X.writeThenSend=function(H,U){var A=this;U=U===void 0?{}:U;if(HR(this)&&this.initialized){var M={url:H,options:U,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(M,this.databaseToken).then(function(W){M.id=W;A.networkManager.isNetworkAvailable()&&A.immediateSend(M)}).catch(function(W){A.immediateSend(M);
juw(A,W)})}else this.sendFn(H,U)};
_.X.sendThenWrite=function(H,U,A){var M=this;U=U===void 0?{}:U;if(HR(this)&&this.initialized){var W={url:H,options:U,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(W.skipRetry=A);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!W.skipRetry){if(!W.skipRetry){var w=U.onError?U.onError:function(){};
U.onError=function(d,O){return _.u(function(f){if(f.nextAddress==1)return f.yield(M.logsStore.set(W,M.databaseToken).catch(function(J){juw(M,J)}),2);
w(d,O);_.DO(f)})}}this.sendFn(H,U,W.skipRetry)}else this.logsStore.set(W,this.databaseToken).catch(function(d){M.sendFn(H,U,W.skipRetry);
juw(M,d)})}else this.sendFn(H,U,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&A)};
_.X.sendAndWrite=function(H,U){var A=this;U=U===void 0?{}:U;if(HR(this)&&this.initialized){var M={url:H,options:U,timestamp:this.now(),status:"NEW",sendCount:0},W=!1,w=U.onSuccess?U.onSuccess:function(){};
M.options.onSuccess=function(d,O){M.id!==void 0?A.logsStore.deleteRequest(M.id,A.databaseToken):W=!0;A.networkManager.networkStatusHint&&A.getBooleanFlag&&A.getBooleanFlag("vss_network_hint")&&A.networkManager.networkStatusHint(!0);w(d,O)};
this.sendFn(M.url,M.options,void 0,!0);this.logsStore.set(M,this.databaseToken).then(function(d){M.id=d;W&&A.logsStore.deleteRequest(M.id,A.databaseToken)}).catch(function(d){juw(A,d)})}else this.sendFn(H,U,void 0,!0)};
_.X.throttledSend=function(){var H=this;if(!HR(this))throw Error("ed");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var U;return _.u(function(A){if(A.nextAddress==1)return A.yield(H.logsStore.getMostRecentByStatus("NEW",H.databaseToken),2);if(A.nextAddress!=3)return U=A.yieldResult,U?A.yield(H.immediateSend(U),3):(H.cancelThrottledSend(),A.return());H.intervalJob&&(H.intervalJob=0,H.throttledSend());_.DO(A)})},this.throttleTimeout))};
_.X.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.X.immediateSend=function(H){var U=this,A;return _.u(function(M){switch(M.nextAddress){case 1:if(!HR(U))throw Error("fd");if(H.id===void 0){M.jumpTo(2);break}return M.yield(U.logsStore.markAsQueued(H.id,U.databaseToken),3);case 3:(A=M.yieldResult)||U.handleWarning(Error("gd"));case 2:if(U.requestWithinAgeLimit(H,U.requestAgeLimitMs)){M.jumpTo(4);break}U.handleWarning(Error("hd"));if(H.id===void 0){M.jumpTo(5);break}return M.yield(U.logsStore.deleteRequest(H.id,U.databaseToken),5);case 5:return M.return();
case 4:H.skipRetry||(H=I$z(U,H));if(!H){M.jumpTo(0);break}if(!H.skipRetry||H.id===void 0){M.jumpTo(8);break}return M.yield(U.logsStore.deleteRequest(H.id,U.databaseToken),8);case 8:U.sendFn(H.url,H.options,!!H.skipRetry),_.DO(M)}})};
var I$z=function(H,U){if(!HR(H))throw Error("id");var A=U.options.onError?U.options.onError:function(){};
U.options.onError=function(W,w){var d,O,f,J;return _.u(function(F){switch(F.nextAddress){case 1:d=ld8(w);(O=GuF(w))&&H.getBooleanFlag&&H.getBooleanFlag("web_enable_error_204")&&H.handleError(Error("jd"),U.url,w);if(!(H.getBooleanFlag&&H.getBooleanFlag("nwl_consider_error_code")&&d||H.getBooleanFlag&&!H.getBooleanFlag("nwl_consider_error_code")&&H.potentialEsfErrorCounter<=H.potentialEsfErrorLimit)){F.jumpTo(2);break}if(!H.networkManager.sendNetworkCheckRequest){F.jumpTo(3);break}return F.yield(H.networkManager.sendNetworkCheckRequest(),
3);case 3:if(H.networkManager.isNetworkAvailable()){F.jumpTo(2);break}A(W,w);if(!H.getBooleanFlag||!H.getBooleanFlag("nwl_consider_error_code")||((f=U)==null?void 0:f.id)===void 0){F.jumpTo(6);break}return F.yield(H.logsStore.resetRequest(U.id,H.databaseToken,!1),6);case 6:return F.return();case 2:if(H.getBooleanFlag&&H.getBooleanFlag("nwl_consider_error_code")&&!d&&H.potentialEsfErrorCounter>H.potentialEsfErrorLimit)return F.return();H.potentialEsfErrorCounter++;if(((J=U)==null?void 0:J.id)===void 0){F.jumpTo(8);
break}return U.sendCount<H.retryMaxAttempts?F.yield(H.logsStore.resetRequest(U.id,H.databaseToken,!0,O?!1:void 0),12):F.yield(H.logsStore.deleteRequest(U.id,H.databaseToken),8);case 12:H.jobManager.addLowPriorityJob(function(){H.networkManager.isNetworkAvailable()&&H.throttledSend()},H.retryDelayMs);
case 8:A(W,w),_.DO(F)}})};
var M=U.options.onSuccess?U.options.onSuccess:function(){};
U.options.onSuccess=function(W,w){var d;return _.u(function(O){if(O.nextAddress==1)return((d=U)==null?void 0:d.id)===void 0?O.jumpTo(2):O.yield(H.logsStore.deleteRequest(U.id,H.databaseToken),2);H.networkManager.networkStatusHint&&H.getBooleanFlag&&H.getBooleanFlag("vss_network_hint")&&H.networkManager.networkStatusHint(!0);M(W,w);_.DO(O)})};
return U};
U9.prototype.requestWithinAgeLimit=function(H,U){H=H.timestamp;return this.now()-H>=U?!1:!0};
U9.prototype.retryQueuedRequests=function(){var H=this;if(!HR(this))throw Error("kd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(U){U&&!H.requestWithinAgeLimit(U,H.queuedRequestAgeLimitMs)?H.jobManager.addLowPriorityJob(function(){return _.u(function(A){if(A.nextAddress==1)return U.id===void 0?A.jumpTo(2):A.yield(H.logsStore.resetRequest(U.id,H.databaseToken),2);H.retryQueuedRequests();_.DO(A)})}):H.networkManager.isNetworkAvailable()&&H.throttledSend()})};
var juw=function(H,U){H.writeError&&!H.networkManager.isNetworkAvailable()?H.writeError(U):H.handleError(U)},HR=function(H){return!!H.databaseToken||H.bypassDbTokenDependency};var Ycc;var IWc={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,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,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,tvhtml5DeviceStorageStats:535,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,producerMediaServicesResetDetails:522,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,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534,
mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539};var Quh={},HGh=$D("ServiceWorkerLogsDatabase",{objectStores:(Quh.SWHealthLog={addedAtVersion:1},Quh),shared:!0,upgrade:function(H,U){U(1)&&RQ(L_(H,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var bG_={},iG0=0;var ZGF;var AM=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},zq=function(){if(!AM.instance){var H=_.tr("yt.networkRequestMonitor.instance")||new AM;
_.eC("yt.networkRequestMonitor.instance",H);AM.instance=H}return AM.instance};
AM.prototype.requestComplete=function(H,U){U&&(this.anyRequestHasSucceeded=!0);H=this.removeParams(H);this.requestMap.get(H)||this.requestMap.set(H,U)};
AM.prototype.isEndpointCFR=function(H){H=this.removeParams(H);return(H=this.requestMap.get(H))?!1:H===!1&&this.anyRequestHasSucceeded?!0:null};
AM.prototype.removeParams=function(H){return H.split("?")[0]};
AM.prototype.removeParams=AM.prototype.removeParams;AM.prototype.isEndpointCFR=AM.prototype.isEndpointCFR;AM.prototype.requestComplete=AM.prototype.requestComplete;AM.getInstance=zq;var MA=function(H){_.LW.call(this);var U=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=H!=null?H:{addLowPriorityJob:function(W,w){return setTimeout(W,w)},
cancelJob:function(W){clearTimeout(W)}};
var A,M;this.isOnline=(M=(A=window.navigator)==null?void 0:A.onLine)!=null?M:!0;this.onNavigatorChange=function(){return _.u(function(W){return W.yield(V9H(U),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||HqB(this)};
_.R(MA,_.LW);MA.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete MA.instance};
MA.prototype.isNetworkAvailable=function(){return this.isOnline};
var HqB=function(H){H.pollingJob=H.jobManager.addLowPriorityJob(function(){var U;return _.u(function(A){if(A.nextAddress==1)return H.isOnline?((U=window.navigator)==null?0:U.onLine)?A.jumpTo(3):A.yield(V9H(H),3):A.yield(V9H(H),3);HqB(H);_.DO(A)})},3E4)},V9H=function(H,U){return H.networkRequestPromise?H.networkRequestPromise:H.networkRequestPromise=new Promise(function(A){var M,W,w,d;
return _.u(function(O){switch(O.nextAddress){case 1:return M=window.AbortController?new window.AbortController:void 0,w=(W=M)==null?void 0:W.signal,d=!1,_.zj(O,2,3),M&&(H.abortTimeoutKey=H.jobManager.addLowPriorityJob(function(){M.abort()},U||2E4)),O.yield(fetch("/generate_204",{method:"HEAD",
signal:w}),5);case 5:d=!0;case 3:_.cI(O);H.networkRequestPromise=void 0;H.abortTimeoutKey&&(H.jobManager.cancelJob(H.abortTimeoutKey),H.abortTimeoutKey=0);d!==H.isOnline&&(H.isOnline=d,H.isOnline?H.dispatchEvent("networkstatus-online"):H.dispatchEvent("networkstatus-offline"));A(d);_.BI(O,0);break;case 2:_.eG(O),d=!1,O.jumpTo(3)}})})};var WR=function(){_.LW.call(this);var H=this;this.shouldFlushErrors=!1;MA.instance||(MA.instance=new MA(_.Fl));this.sharedNetworkStatusManager=MA.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(H.shouldFlushErrors&&_.S("offline_error_handling")){var U=fNc().get("errors",!0);if(U){for(var A in U)if(U[A]){var M=new _.bD(A,"sent via offline_errors");M.name=U[A].name;M.stack=U[A].stack;M.level=U[A].level;_.za(M)}fNc().set("errors",{},2592E3,!0)}}})};
_.R(WR,_.LW);var Uhh=function(){if(!WR.instance){var H=_.tr("yt.networkStatusManager.instance")||new WR;_.eC("yt.networkStatusManager.instance",H);WR.instance=H}return WR.instance};
_.X=WR.prototype;_.X.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.X.networkStatusHint=function(H){this.sharedNetworkStatusManager.isOnline=H};
_.X.getWindowStatus=function(){var H=window.navigator.onLine;return H===void 0?!0:H};
_.X.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.X.listen=function(H,U){return this.sharedNetworkStatusManager.listen(H,U)};
_.X.sendNetworkCheckRequest=function(H){H=V9H(this.sharedNetworkStatusManager,H);H.then(function(U){_.S("use_cfr_monitor")&&zq().requestComplete("generate_204",U)});
return H};
WR.prototype.sendNetworkCheckRequest=WR.prototype.sendNetworkCheckRequest;WR.prototype.listen=WR.prototype.listen;WR.prototype.enableErrorFlushing=WR.prototype.enableErrorFlushing;WR.prototype.getWindowStatus=WR.prototype.getWindowStatus;WR.prototype.networkStatusHint=WR.prototype.networkStatusHint;WR.prototype.isNetworkAvailable=WR.prototype.isNetworkAvailable;WR.getInstance=Uhh;_.xB=function(H){H=H===void 0?{}:H;_.LW.call(this);var U=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=Uhh();var A=_.tr("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);A&&(H.rateLimit?(this.rateLimit=H.rateLimit,A("networkstatus-online",function(){Acr(U,"publicytnetworkstatus-online")}),A("networkstatus-offline",function(){Acr(U,"publicytnetworkstatus-offline")})):(A("networkstatus-online",function(){U.dispatchEvent("publicytnetworkstatus-online")}),A("networkstatus-offline",
function(){U.dispatchEvent("publicytnetworkstatus-offline")})))};
_.R(_.xB,_.LW);_.xB.prototype.isNetworkAvailable=function(){var H=_.tr("yt.networkStatusManager.instance.isNetworkAvailable");return H?H.bind(this.nsmInstance)():!0};
_.xB.prototype.networkStatusHint=function(H){var U=_.tr("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);U&&U(H)};
_.xB.prototype.sendNetworkCheckRequest=function(H){var U=this,A;return _.u(function(M){A=_.tr("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(U.nsmInstance);return _.S("skip_network_check_if_cfr")&&zq().isEndpointCFR("generate_204")?M.return(new Promise(function(W){var w;U.networkStatusHint(((w=window.navigator)==null?void 0:w.onLine)||!0);W(U.isNetworkAvailable())})):A?M.return(A(H)):M.return(!0)})};
var Acr=function(H,U){H.rateLimit?H.lastJobTime?(_.Fl.cancelJob(H.schedulerJob),H.schedulerJob=_.Fl.addLowPriorityJob(function(){H.lastPublicSignalSent!==U&&(H.dispatchEvent(U),H.lastPublicSignalSent=U,H.lastJobTime=(0,_.lD)())},H.rateLimit-((0,_.lD)()-H.lastJobTime))):(H.dispatchEvent(U),H.lastPublicSignalSent=U,H.lastJobTime=(0,_.lD)()):H.dispatchEvent(U)};var PjN,wg=function(){U9.call(this,{logsStore:{cleanLogsStore:QS7,deleteRequest:Idc,getMostRecentByStatus:v$E,markAsQueued:TX4,resetRequest:jSF,set:ku7},networkManager:_.svc(),handleError:function(H,U,A){var M,W=A==null?void 0:(M=A.error)==null?void 0:M.code;if(W===400||W===415){var w;H=new _.bD(H.message,U,A==null?void 0:(w=A.error)==null?void 0:w.code);_.c5(H,void 0,void 0,void 0,!0)}else _.za(H)},
handleWarning:_.c5,sendFn:o38,now:_.lD,writeError:JpN,jobManager:_.MP(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.hr("potential_esf_error_limit",10),getBooleanFlag:_.S,disableYtIdbTransactions:!(_.iD()&&_.n3c())});this.initializationPromise=new _.r1;_.S("networkless_immediately_drop_all_requests")&&Vq4();Y_K("LogsDatabaseV2")};
_.R(wg,U9);_.WHw=function(){var H=_.tr("yt.networklessRequestController.instance");H||(H=new wg,_.eC("yt.networklessRequestController.instance",H),_.S("networkless_logging")&&_.D0().then(function(U){H.databaseToken=U;TH3(H);H.initializationPromise.resolve();H.enableCleaning&&Math.random()<=H.cleaningRate&&H.databaseToken&&Ap0(H.databaseToken);_.S("networkless_immediately_drop_sw_health_store")&&Mpy(H)}));
return H};
wg.prototype.writeThenSend=function(H,U){U||(U={});U=F7r(H,U);_.iD()||(this.initialized=!1);U9.prototype.writeThenSend.call(this,H,U)};
wg.prototype.sendThenWrite=function(H,U,A){U||(U={});U=F7r(H,U);_.iD()||(this.initialized=!1);U9.prototype.sendThenWrite.call(this,H,U,A)};
wg.prototype.sendAndWrite=function(H,U){U||(U={});U=F7r(H,U);_.iD()||(this.initialized=!1);U9.prototype.sendAndWrite.call(this,H,U)};
wg.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var Mpy=function(H){var U;_.u(function(A){if(!H.databaseToken)throw U=LO("clearSWHealthLogsDb"),U;return A.return(Mrr(H.databaseToken).catch(function(M){H.handleError(M)}))})};_.SBc=!1;_.NAc=_.Mr.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.SBc};_.eC("ytNetworklessLoggingInitializationOptions",_.NAc);var o1=function(H){var U=this;this.config_=null;H?this.config_=H:Vp_()&&(this.config_=_.YD());_.bM(_.Fl,function(){$Dc(U)},5E3)};
o1.prototype.isReady=function(){!this.config_&&Vp_()&&(this.config_=_.YD());return!!this.config_};
var DDF=function(H,U,A,M){!_.gD("VISITOR_DATA")&&U!=="visitor_id"&&Math.random()<.01&&_.c5(new _.bD("Missing VISITOR_DATA when sending innertube request.",U,A,M));if(!H.isReady()){var W=new _.bD("innertube xhrclient not ready",U,A,M);_.za(W);throw W;}var w={headers:M.headers||{},method:"POST",postParams:A,postBody:M.postBody,postBodyFormat:M.postBodyFormat||"JSON",onTimeout:function(){M.onTimeout()},
onFetchTimeout:M.onTimeout,onSuccess:function(P,n){if(M.onSuccess)M.onSuccess(n)},
onFetchSuccess:function(P){if(M.onSuccess)M.onSuccess(P)},
onProgress:function(P){if(M.onProgress)M.onProgress(P)},
onError:function(P,n){if(M.onError)M.onError(n)},
onFetchError:function(P){if(M.onError)M.onError(P)},
timeout:M.timeout,withCredentials:!0,compress:M.compress};w.headers["Content-Type"]||(w.headers["Content-Type"]="application/json");var d="";(W=H.config_.innertubeHostOverride)&&(d=W);var O=H.config_.innertubeUseThirdPartyAuth||!1,f=_.KqK(O,d,M);Object.assign(w.headers,f);w.headers.Authorization&&!d&&O&&(w.headers["x-origin"]=window.location.origin);var J=_.ey(d+("/youtubei/"+H.config_.innertubeApiVersion+"/"+U),{alt:"json"}),F=function(P){P=P===void 0?!1:P;var n;if(M.retry&&d!="www.youtube-nocookie.com"&&
(P||_.S("skip_ls_gel_retry")||w.headers["Content-Type"]!=="application/json"||(n=ry_(U,A,f,O)),n)){var N=w.onSuccess,L=w.onFetchSuccess;w.onSuccess=function(c,C){eD8(n);N(c,C)};
A.onFetchSuccess=function(c,C){eD8(n);L(c,C)}}try{if(P&&M.retry&&!M.networklessOptions.bypassNetworkless)w.method="POST",M.networklessOptions.writeThenSend?_.WHw().writeThenSend(J,w):_.WHw().sendAndWrite(J,w);
else if(M.compress){var m=!M.networklessOptions.writeThenSend;if(w.postBody){var z=w.postBody;typeof z!=="string"&&(z=JSON.stringify(w.postBody));mDE(J,z,w,_.VW,m)}else mDE(J,JSON.stringify(w.postParams),w,BHE,m)}else BHE(J,w)}catch(c){if(c.name==="InvalidAccessError")n&&(eD8(n),n=0),_.c5(Error("ld"));else throw c;}n&&_.bM(_.Fl,function(){$Dc(H)},5E3)};
_.p$N()?ycc().then(function(P){F(P)}):F(!1)};var P17=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(P17,_.fN);var wCH=0,Ryt=_.kA?"webkit":_.va?"moz":_.Bu?"ms":Yzp?"o":"";_.eC("ytDomDomGetNextId",_.tr("ytDomDomGetNextId")||function(){return++wCH});var XCw={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},BW=function(H){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(H=
H||window.event){this.event=H;for(var U in H)U in XCw||(this[U]=H[U]);this.scale=H.scale;this.rotation=H.rotation;var A=H.target||H.srcElement;A&&A.nodeType==3&&(A=A.parentNode);this.target=A;var M=H.relatedTarget;if(M)try{M=M.nodeName?M:null}catch(W){M=null}else this.type=="mouseover"?M=H.fromElement:this.type=="mouseout"&&(M=H.toElement);this.relatedTarget=M;this.clientX=H.clientX!=void 0?H.clientX:H.pageX;this.clientY=H.clientY!=void 0?H.clientY:H.pageY;this.keyCode=H.keyCode?H.keyCode:H.which;
this.charCode=H.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=H.altKey;this.ctrlKey=H.ctrlKey;this.shiftKey=H.shiftKey;this.metaKey=H.metaKey;this.pageX_=H.pageX;this.pageY_=H.pageY}}catch(W){}},iqk=function(H){if(document.body&&document.documentElement){var U=document.body.scrollTop+document.documentElement.scrollTop;
H.pageX_=H.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);H.pageY_=H.clientY+U}};
BW.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
BW.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
BW.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var yO=_.Mr.ytEventsEventsListeners||{};_.eC("ytEventsEventsListeners",yO);var zyc=_.Mr.ytEventsEventsCounter||{count:0};_.eC("ytEventsEventsCounter",zyc);var Cjc=_.AJ(function(){var H=!1;try{var U=Object.defineProperty({},"capture",{get:function(){H=!0}});
window.addEventListener("test",null,U)}catch(A){}return H});_.zo(ex,_.XG);ex.prototype.onMouseMove_=function(H){H.pageX_===void 0&&iqk(H);var U=H.pageX_;H.pageY_===void 0&&iqk(H);this.position_=new _.E6(U,H.pageY_)};
ex.prototype.checkPosition_=function(){if(this.position_){var H=(0,_.lD)();if(this.previousTime_!=0){var U=this.previousPosition_,A=this.position_,M=U.x-A.x;U=U.y-A.y;M=Math.sqrt(M*M+U*U)/(H-this.previousTime_);this.cycles_[this.index_]=Math.abs((M-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(A=U=0;A<4;A++)U+=this.cycles_[A]||0;U>=3&&this.callback_();this.previousVelocity_=M}this.previousTime_=H;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
ex.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.tr_(this.mouseListenerKey_)};var ey0={};var h$V=new _.me("rawColdConfigGroup");var q3F=new _.me("rawHotConfigGroup");var bqw=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(bqw,_.fN);var FBN=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(FBN,_.fN);var iM=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H,500)};
_.R(iM,_.fN);iM.prototype.getPayloadCase=function(){return _.To(this,dhr)};
iM.prototype.getContext=function(){return _.qK(this,FBN,33)};
var dhr=[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,517,518,519,520,522,523,524,525,526,527,528,529,530,531,536,537,538,539];var e$7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(e$7,_.fN);var KY7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(KY7,_.fN);KY7.prototype.setVideoId=function(H){return QO(this,1,oY4,E$(H))};
KY7.prototype.getPlaylistId=function(){return _.Il(this,W1(this,oY4,2))};
var oY4=[1,2];var VO=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(VO,_.fN);VO.prototype.getContext=function(){return _.qK(this,H1,1)};
VO.prototype.getTier=function(){return _.Wn(this,7)};
VO.prototype.getRetryCount=function(){return _.B8(this,11)};var Oqn,Gq,YB;Oqn=_.Mr.ytPubsubPubsubInstance||new _.HK;Gq=_.Mr.ytPubsubPubsubSubscribedKeys||{};YB=_.Mr.ytPubsubPubsubTopicToKeys||{};_.De8=_.Mr.ytPubsubPubsubIsSynchronous||{};_.HK.prototype.subscribe=_.HK.prototype.subscribe;_.HK.prototype.unsubscribeByKey=_.HK.prototype.unsubscribeByKey;_.HK.prototype.publish=_.HK.prototype.publish;_.HK.prototype.clear=_.HK.prototype.clear;_.eC("ytPubsubPubsubInstance",Oqn);_.eC("ytPubsubPubsubTopicToKeys",YB);_.eC("ytPubsubPubsubIsSynchronous",_.De8);
_.eC("ytPubsubPubsubSubscribedKeys",Gq);var hk=window;var XF=_.S("web_enable_lifecycle_monitoring")&&qBt()!==0,uzn=_.S("web_enable_lifecycle_monitoring");var Zqw=function(H){var U=this;var A=A===void 0?0:A;var M=M===void 0?_.MP():M;this.JSC$11196_defaultPriority=A;this.scheduler=M;this.completedResolver=new _.r1;this.scheduledPayloads=H;for(H={i$jscomp$495:0};H.i$jscomp$495<this.scheduledPayloads.length;H={payload$jscomp$20:void 0,i$jscomp$495:H.i$jscomp$495},H.i$jscomp$495++)H.payload$jscomp$20=this.scheduledPayloads[H.i$jscomp$495],A=function(W){return function(){W.payload$jscomp$20.job();U.scheduledPayloads[W.i$jscomp$495].processed=!0;U.scheduledPayloads.every(function(w){return w.processed===
!0})&&U.completedResolver.resolve()}}(H),M=this.getPriority(H.payload$jscomp$20),M=this.scheduler.addJob(A,M),this.scheduledPayloads[H.i$jscomp$495]=Object.assign({},H.payload$jscomp$20,{job:A,
jobId:M})};
Zqw.prototype.flushJobs=function(){var H=this,U=Array.from(this.scheduledPayloads.keys()).sort(function(M,W){return H.getPriority(H.scheduledPayloads[W])-H.getPriority(H.scheduledPayloads[M])});
U=_.b(U);for(var A=U.next();!A.done;A=U.next())A=this.scheduledPayloads[A.value],A.jobId===void 0||A.processed||(this.scheduler.cancelJob(A.jobId),this.scheduler.addJob(A.job,10))};
Zqw.prototype.cancel=function(){for(var H=_.b(this.scheduledPayloads),U=H.next();!U.done;U=H.next())U=U.value,U.jobId===void 0||U.processed||this.scheduler.cancelJob(U.jobId),U.processed=!0;this.completedResolver.resolve()};
Zqw.prototype.getPriority=function(H){var U;return(U=H.priority)!=null?U:this.JSC$11196_defaultPriority};var i6=function(H){this.state=H;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};XF&&hyt(this.state)};
i6.prototype.install=function(H){this.plugins.push(H);return this};
i6.prototype.uninstall=function(){var H=this;_.QY.apply(0,arguments).forEach(function(U){U=H.plugins.indexOf(U);U>-1&&H.plugins.splice(U,1)})};
i6.prototype.transition=function(H,U){var A=this;XF&&kkM(this.state);var M=this.transitions.find(function(w){return Array.isArray(w.from)?w.from.find(function(d){return d===A.state&&w.to===H}):w.from===A.state&&w.to===H});
if(M){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);fYB(this,H,U);this.state=H;XF&&hyt(this.state);M=M.action.bind(this);var W=this.plugins.filter(function(w){return w[H]}).map(function(w){return w[H]});
M(Jc2(this,W),U)}else throw Error("md`"+this.state+"`"+H);};
var Jc2=function(H,U){var A=U.filter(function(W){return KHw(H,W)===10}),M=U.filter(function(W){return KHw(H,W)!==10});
return H.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var W=_.QY.apply(0,arguments);return _.u(function(w){if(w.nextAddress==1)return w.yield(H.runImmediateJobsAsync.apply(H,[A].concat(_.vI(W))),2);H.setJobSetWithScheduledJobs.apply(H,[M].concat(_.vI(W)));_.DO(w)})}:function(){var W=_.QY.apply(0,arguments);
H.runImmediateJobsSync.apply(H,[A].concat(_.vI(W)));H.setJobSetWithScheduledJobs.apply(H,[M].concat(_.vI(W)))}};
i6.prototype.runImmediateJobsSync=function(H){var U=_.QY.apply(1,arguments);_.MP();for(var A=_.b(H),M=A.next(),W={};!M.done;W={lifecycle$jscomp$2:void 0},M=A.next())W.lifecycle$jscomp$2=M.value,gA(function(w){return function(){oOn(w.lifecycle$jscomp$2.name);TAc(function(){return w.lifecycle$jscomp$2.callback.apply(w.lifecycle$jscomp$2,_.vI(U))});
b6(w.lifecycle$jscomp$2.name)}}(W))};
i6.prototype.runImmediateJobsAsync=function(H){var U=_.QY.apply(1,arguments),A,M,W,w;return _.u(function(d){d.nextAddress==1&&(_.MP(),A=_.b(H),M=A.next(),W={});if(d.nextAddress!=3){if(M.done)return d.jumpTo(0);W.lifecycle$jscomp$3=M.value;W.asyncJobCompletion=void 0;w=function(O){return function(){oOn(O.lifecycle$jscomp$3.name);var f=TAc(function(){return O.lifecycle$jscomp$3.callback.apply(O.lifecycle$jscomp$3,_.vI(U))});
F5H(f)?O.asyncJobCompletion=_.S("web_lifecycle_error_handling_killswitch")?f.then(function(){b6(O.lifecycle$jscomp$3.name)}):f.then(function(){b6(O.lifecycle$jscomp$3.name)},function(J){v3t(J);
b6(O.lifecycle$jscomp$3.name)}):b6(O.lifecycle$jscomp$3.name)}}(W);
gA(w);return W.asyncJobCompletion?d.yield(W.asyncJobCompletion,3):d.jumpTo(3)}W={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};M=A.next();return d.jumpTo(2)})};
i6.prototype.setJobSetWithScheduledJobs=function(H){var U=_.QY.apply(1,arguments),A=this,M=H.map(function(W){return{job:function(){oOn(W.name);TAc(function(){return W.callback.apply(W,_.vI(U))});
b6(W.name)},
priority:KHw(A,W)}});
M.length&&(this.jobSet=new Zqw(M))};
var KHw=function(H,U){var A,M;return(M=(A=H.overridePriority)!=null?A:U.priority)!=null?M:0},oOn=function(H){XF&&H&&hyt(H)},b6=function(H){XF&&H&&kkM(H)},fYB=function(H,U,A){uzn&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+H.constructor.name+"] '"+H.state+"' to '"+U+"'"),console.log("with message: ",A),console.groupEnd())};
_.D5.Object.defineProperties(i6.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var FHz=function(H){i6.call(this,H===void 0?"none":H);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(){}}]},PEk;
_.R(FHz,i6);FHz.prototype.runApplicationNavigationBegin=function(H,U){var A=this;this.navigationTimer=_.bM(_.Fl,function(){A.currentState==="application_navigating"&&A.transition("none")},5E3);
H(U==null?void 0:U.event)};
FHz.prototype.runApplicationNavigationEnd=function(H,U){this.navigationTimer&&(_.Fl.cancelJob(this.navigationTimer),this.navigationTimer=null);H(U==null?void 0:U.event)};
_.Y3_=function(){PEk||(PEk=new FHz);return PEk};var GB8=[];_.eC("yt.logging.transport.getScrapedGelPayloads",function(){return GB8});var kB=function(){var H=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return H.totalEntries}}};
kB.prototype.storePayload=function(H,U){H=jv4(H);this.store[H]?this.store[H].push(U):(this.memoizedKeySequences={},this.store[H]=[U]);this.totalEntries++;_.S("more_accurate_gel_parser")&&(U=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(U));return H};
kB.prototype.smartExtractMatchingEntries=function(H){if(!H.keys.length)return[];for(var U=sEr(this,H.keys.splice(0,1)[0]),A=[],M=0;M<U.length;M++)this.store[U[M]]&&H.sizeLimit&&(this.store[U[M]].length<=H.sizeLimit?(A.push.apply(A,_.vI(this.store[U[M]])),delete this.store[U[M]]):A.push.apply(A,_.vI(this.store[U[M]].splice(0,H.sizeLimit))));this.totalEntries-=A.length;(H==null?0:H.sizeLimit)&&A.length<(H==null?void 0:H.sizeLimit)&&(H.sizeLimit-=A.length,A.push.apply(A,_.vI(this.smartExtractMatchingEntries(H))));
return A};
kB.prototype.extractMatchingEntries=function(H){H=sEr(this,H);for(var U=[],A=0;A<H.length;A++)this.store[H[A]]&&(U.push.apply(U,_.vI(this.store[H[A]])),delete this.store[H[A]]);this.totalEntries-=U.length;return U};
kB.prototype.getSequenceCount=function(H){H=sEr(this,H);for(var U=0,A=0;A<H.length;A++){var M=void 0;U+=((M=this.store[H[A]])==null?void 0:M.length)||0}return U};
var sEr=function(H,U){var A=jv4(U);if(H.memoizedKeySequences[A])return H.memoizedKeySequences[A];var M=Object.keys(H.store)||[];if(M.length<=1&&jv4(U)===M[0])return M;for(var W=[],w=0;w<M.length;w++){var d=M[w].split("/");if(nOg(U.auth,d[0])){var O=U.isJspb;nOg(O===void 0?"undefined":O?"true":"false",d[1])&&nOg(U.cttAuthInfo,d[2])&&(O=U.tier,O=O===void 0?"undefined":JSON.stringify(O),nOg(O,d[3])&&W.push(M[w]))}}return H.memoizedKeySequences[A]=W},nOg=function(H,U){return H===void 0||H==="undefined"?
!0:H===U};
kB.prototype.getSequenceCount=kB.prototype.getSequenceCount;kB.prototype.extractMatchingEntries=kB.prototype.extractMatchingEntries;kB.prototype.smartExtractMatchingEntries=kB.prototype.smartExtractMatchingEntries;kB.prototype.storePayload=kB.prototype.storePayload;var R$_,por,EYc,jx,N12,jL0,TTK,S3c,NTh,OyF,LYc,$Fc,PZE;R$_=_.hr("initial_gel_batch_timeout",2E3);por=_.hr("gel_queue_timeout_max_ms",6E4);EYc=_.hr("gel_min_batch_size",5);jx=void 0;N12=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
jL0=new N12;TTK=new N12;S3c=new N12;NTh=new N12;LYc=!0;$Fc=1;_.DF7=new Map;PZE=_.Mr.ytLoggingTransportTokensToCttTargetIds_||{};_.eC("ytLoggingTransportTokensToCttTargetIds_",PZE);var FY_=_.Mr.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.eC("ytLoggingTransportTokensToJspbCttTargetIds_",FY_);var Tq={};var Zz=_.Mr.ytLoggingGelSequenceIdObj_||{};_.eC("ytLoggingGelSequenceIdObj_",Zz);var VI0=[];var udF=new Set,WLK=0,JFF=0,ffN=0,Xqc=[],wq7=[],KLF=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var gCt=function(){};
gCt.prototype.getUrl=function(H,U){U=U===void 0?!1:U;return H.hasOwnProperty("shareEndpoint")?null:_.sRN(H,null,U)};
var g77=function(H,U,A){H={endpoint:U,actions:[]};A=(A.path?A.path[0]:A.target).icon||"";U=A.indexOf(":");U>0&&(A=A.substr(U+1));A&&H.actions.push(A);return H};var ROc=/Command$/,LLc=/Endpoint$/,N7V=new Map;var S_r,pC2;S_r=1;_.a1=function(){this.actionRoutingMap=new Map};
_.a1.prototype.triggerAction=function(H){var U=new jtr(H,!1,_.QY.apply(1,arguments));this.handleAction(U);return U.returnValue};
_.a1.prototype.triggerOptionalAction=function(H){var U=new jtr(H,!0,_.QY.apply(1,arguments));this.handleAction(U);return U.returnValue};
_.dg=function(H,U,A){U.forEach(function(M){var W=pqh(M);W&&H.triggerOptionalAction(W,M,A,void 0)})};
_.a1.prototype.handleAction=function(H){var U=this.actionRoutingMap.get(H.actionName);U&&pC2(H,U);H.optionalAction||H.returnValue.length!==0||(H=new _.bD("Unhandled action",H.actionName),_.c5(H))};
pC2=function(H,U){U.forEach(function(A){var M=null;A?M=A.apply(null,H.args):(A=Error("nd"),A.params=H.actionName,_.za(A));H.returnValue.push(M)})};
_.xX=function(H,U,A){A||(A=S_r++);for(var M=_.b(Object.keys(U)),W=M.next();!W.done;W=M.next()){W=W.value;var w=H.actionRoutingMap.get(W);w||(w=new Map,H.actionRoutingMap.set(W,w));H.registerActionHandler(A,W,U[W],w)}return A};
_.a1.prototype.registerActionHandler=function(H,U,A,M){M.set(H,_.CA(A))};
_.z9=function(H,U,A){U=_.b(Object.keys(U));for(var M=U.next();!M.done;M=U.next())(M=H.actionRoutingMap.get(M.value))&&M.delete(A)};
_.aH(_.a1);var zOM=function(H,U){var A=_.a1.getInstance();_.LA(function(){var M={},W=_.xX(A,(M[H]=U,M));_.m4(function(){var w={};_.z9(A,(w[H]="",w),W)})})};xj0=O1t;var knK=new Set(["For","If","Match","Watch"]),LHm={},R1r=(LHm[ta.default]=function(){return pxr},LHm.style=function(){return pxr},LHm),EOB;
for(EOB in R1r)jv.attributes[EOB]=R1r[EOB](jv.attributes[EOB]);var ru=new _.g3("VISIBILITY_OBSERVER");var MVE={retrieve:function(H){return this.id.\u0275prov.token===H.\u0275prov.token?this.contextValue:this?kR(this,this.id):sQ4}};var mhz=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(H){}var gOy=typeof WeakRef==="function";var aYn=function(H){this.value=H};
aYn.prototype.deref=function(){return this.value};
var xh2=gOy?WeakRef:aYn,z1k=function(H){this.newKeyHandler=H;this.map=new WeakMap};
z1k.prototype.add=function(H,U){this.map.has(H)||(this.newKeyHandler(H),this.map.set(H,[]));this.map.get(H).push(new xh2(U))};
z1k.prototype.get=function(H){var U=this;return function M(){var W,w,d,O,f,J,F,P,n,N,L;return _.eV(M,function(m){switch(m.nextAddress){case 1:_.yb(m,2);W=U.map.get(H);if(!W)return m.return();w=0;d=_.b(W);O=d.next();case 4:if(O.done){m.jumpTo(6);break}f=O.value;J=f.deref();if(!J){m.jumpTo(5);break}w++;F=_.D9;return m.yield(J,8);case 8:F(m.yieldResult);case 5:O=d.next();m.jumpTo(4);break;case 6:if(2*w<W.length){P=0;n=_.b(W);for(N=n.next();!N.done;N=n.next())L=N.value,L.deref()&&(W[P++]=L);W.length=
P}case 2:_.cI(m),_.BI(m,0)}})}()};var CEg=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},dT7=new z1k(function(H){H.addEventListener("abort",ukE,{once:!0})}),bYK=new WeakMap,tp2=function(H){H=H===void 0?O9:H;
this.signal=new H};
tp2.prototype.abort=function(H){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=H,H=new Event("abort"),this.signal.dispatchEvent(H))};
var O9=function(){this.target=CEg();this.aborted=!1;this.onabort=null};
O9.prototype.throwIfAborted=function(){iYF.call(this)};
O9.prototype.addEventListener=function(H,U,A){this.target.addEventListener(H,U,A)};
O9.prototype.removeEventListener=function(H,U,A){this.target.removeEventListener(H,U,A)};
O9.prototype.dispatchEvent=function(H){if(this.onabort&&H.type==="abort")this.onabort(H);return this.target.dispatchEvent(H)};
O9.abort=XlM;O9.timeout=ZY_;O9.any=OY0;var wl4=mhz?AbortController:tp2,u6=mhz?AbortSignal:O9;typeof u6.abort!=="function"&&(u6.abort=XlM);typeof u6.prototype.throwIfAborted!=="function"&&(u6.prototype.throwIfAborted=iYF);typeof u6.any!=="function"&&(u6.any=OY0);typeof u6.timeout!=="function"&&(u6.timeout=ZY_);var Dz=null,JN7=new Map;var ccr=function(H){H=H.clone();iKw(H);Vw(H,"dg",null);Vw(H,"d","0");MXw(H,null);WFw(H,null);return H},ycK=!0,B1K=function(H,U,A){var M=A===void 0?{}:A;
A=M.cssRowKey===void 0?void 0:M.cssRowKey;var W=M.combinedSignature===void 0?void 0:M.combinedSignature;var w=M.extraEdges===void 0?void 0:M.extraEdges;M=M.callback===void 0?void 0:M.callback;Vw(H,"m",U.join(","));w&&Xaw(H,w);A&&(Vw(H,"ck",A),W?Vw(H,"rs",W):ycK&&(ycK=!1));if(M){if(M!=null&&!OKk.test(M))throw Error("Ya`"+M);Vw(H,"cb",M)}H=H.toString();_.XE(H,"/")&&(H=vlK(document.location.href)+H);return _.rM(H)};var e1y=function(H){return rcK(H).then(function(U){return JSON.parse(U.responseText)})},rcK=function(H){var U={},A=U.xmlHttpFactory?U.xmlHttpFactory.createInstance():gVB.createInstance();
return(new _.IQ(function(M,W){var w;try{A.open("GET",H,!0)}catch(f){W(new Z7("Error opening XHR: "+f.message,H,A))}A.onreadystatechange=function(){if(A.readyState==4){_.Mr.clearTimeout(w);var f;!(f=mUz(A.status))&&(f=A.status===0)&&(f=hF0(H),f=!(f=="http"||f=="https"||f==""));f?M(A):W(new Dhn(A.status,H,A))}};
A.onerror=function(){W(new Z7("Network error",H,A))};
if(U.headers)for(var d in U.headers){var O=U.headers[d];O!=null&&A.setRequestHeader(d,O)}U.withCredentials&&(A.withCredentials=U.withCredentials);U.responseType&&(A.responseType=U.responseType);U.mimeType&&A.overrideMimeType(U.mimeType);U.timeoutMs>0&&(w=_.Mr.setTimeout(function(){A.onreadystatechange=function(){};
A.abort();W(new $hB(H,A))},U.timeoutMs));
try{A.send(null)}catch(f){A.onreadystatechange=function(){},_.Mr.clearTimeout(w),W(new Z7("Error sending XHR: "+f.message,H,A))}})).thenCatch(function(M){M instanceof _.Oa&&A.abort();
throw M;})},Z7=function(H,U,A){_.HF.call(this,H+", url="+U);
this.url=U;this.xhr=A};
_.zo(Z7,_.HF);Z7.prototype.name="XhrError";var Dhn=function(H,U,A){Z7.call(this,"Request Failed, status="+H,U,A);this.status=H};
_.zo(Dhn,Z7);Dhn.prototype.name="XhrHttpError";var $hB=function(H,U){Z7.call(this,"Request timed out",H,U)};
_.zo($hB,Z7);$hB.prototype.name="XhrTimeoutError";gj=gj||{};_.zo(ojM,_.XG);ojM.prototype.initialize=function(){};
gj.BaseModule=ojM;Fu4.prototype.execute=function(H){this.fn_&&(this.fn_.call(this.handler_||null,H),this.fn_=this.handler_=null)};
Fu4.prototype.abort=function(){this.handler_=this.fn_=null};
gj.ModuleLoadCallback=Fu4;_.zo($X,_.XG);$X.prototype.moduleConstructor_=gj.BaseModule;$X.prototype.module_=null;$X.prototype.getId=function(){return this.JSC$11351_id_};
$X.prototype.registerCallback=function(H,U){return f3(this.onloadCallbacks_,H,U)};
var lYB=function(H,U){f3(H.onErrorCallbacks_,U)},f3=function(H,U,A){U=new gj.ModuleLoadCallback(U,A);
H.push(U);return U};
$X.prototype.isLoaded=function(){return!!this.module_};
$X.prototype.onLoad=function(H){var U=new this.moduleConstructor_;U.initialize(H());this.module_=U;U=(U=Gvw(this.earlyOnloadCallbacks_,H()))||Gvw(this.onloadCallbacks_,H());U||(this.onErrorCallbacks_.length=0);return U};
$X.prototype.onError=function(H){(H=Gvw(this.onErrorCallbacks_,H))&&wK(Error("td`"+H));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var Gvw=function(H,U){for(var A=[],M=0;M<H.length;M++)try{H[M].execute(U)}catch(W){wK(W),A.push(W)}H.length=0;return A.length?A:null};
$X.prototype.disposeInternal=function(){$X.superClass_.disposeInternal.call(this);_.zg(this.module_)};
gj.ModuleInfo=$X;var Y_m,jEk,vOK,T1r,h1n,kvg,UvK,Vpy,Hfn;
_.G9=function(H,U,A,M,W){M=M===void 0?!1:M;W=W===void 0?!1:W;var w=w===void 0?!0:w;this.scsReferenceUrl_=YlM(_.e3(H).toString(),w);this.cssRowKey_=U;this.combinedSignature_=A;this.useNegativeLoading_=M;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(H=Qw(this.scsReferenceUrl_,"excm"))?H.split(","):[];this.shouldScanForCss_=W;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;qlE();_.JM(this,waw(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
Y_m=function(H,U){if(U.href||U.getAttribute("data-href"))if(U=U.href||U.getAttribute("data-href"),Ds0(U)&&!YlM(U).urlPrefix_.endsWith("_/js/")){U=waw(YlM(U));U=_.b(U);for(var A=U.next();!A.done;A=U.next())A=A.value,H.loadedCssModuleList_.includes(A)||H.loadedCssModuleList_.push(A)}};
_.G9.prototype.loadModules=function(H,U,A){var M=A===void 0?{}:A;U=M.extraEdges;A=M.onError;var W=M.onSuccess;M=M.forceReload;if(!H)throw Error("ud");if(this.shouldScanForCss_){for(var w=_.b(document.getElementsByTagName("style")),d=w.next();!d.done;d=w.next())Y_m(this,d.value);w=_.b(document.getElementsByTagName("link"));for(d=w.next();!d.done;d=w.next())Y_m(this,d.value)}q_K(this,h1n(this,H),U,A,W,M)};
var q_K=function(H,U,A,M,W,w){M=M===void 0?function(){}:M;
W=W===void 0?function(){}:W;
w=w===void 0?!1:w;kvg(H,U,function(d,O,f){f=f===void 0?O:f;H.enableFallbackFetch&&w?H.loadWithFetch(d,O,M,W,f):H.load(d,O,M,W,f,A)},A)||M(-1)};
_.G9.prototype.loadWithFetch=function(){_.u(function(){throw Error("vd");})};
_.G9.prototype.maybeSetAdditionalFields=function(){};
jEk=function(H,U,A){if(H.useNegativeLoading_){var M=H.scsReferenceUrl_;H={cssRowKey:H.cssRowKey_,combinedSignature:H.combinedSignature_,extraEdges:A,requestedModuleIds:vOK(H),requestedCssModuleIds:T1r(H)};var W=H===void 0?{}:H;H=W.requestedModuleIds===void 0?[]:W.requestedModuleIds;A=W.requestedCssModuleIds===void 0?[]:W.requestedCssModuleIds;var w=W.cssRowKey===void 0?void 0:W.cssRowKey;var d=W.combinedSignature===void 0?void 0:W.combinedSignature;var O=W.extraEdges===void 0?void 0:W.extraEdges;
W=W.callback===void 0?void 0:W.callback;M=ccr(M);Vw(M,"d","1");MXw(M,H);WFw(M,A);U=B1K(M,U,{cssRowKey:w,combinedSignature:d,extraEdges:O,callback:W})}else M=H.scsReferenceUrl_,H={cssRowKey:H.cssRowKey_,combinedSignature:H.combinedSignature_,requestedModuleIds:vOK(H),requestedCssModuleIds:T1r(H)},O=H===void 0?{}:H,H=O.requestedCssModuleIds===void 0?[]:O.requestedCssModuleIds,A=O.cssRowKey===void 0?void 0:O.cssRowKey,w=O.combinedSignature===void 0?void 0:O.combinedSignature,d=O.extraEdges===void 0?
void 0:O.extraEdges,O=O.callback===void 0?void 0:O.callback,M=ccr(M),WFw(M,H),U=B1K(M,U,{cssRowKey:A,combinedSignature:w,extraEdges:d,callback:O});return U};
_.JM=function(H,U){for(var A=!1,M=[],W=0;W<U.length;++W){var w=U[W];H.requestedModuleMap_[w]||(H.requestedModuleMap_[w]=!0,H.requestedModuleList_.push(w),A=!0,M.push(w))}A&&(H.requestedModuleListSorted_=!1)};
_.K3=function(H,U){for(var A=[],M=0;M<U.length;++M){var W=U[M];H.requestedModuleMap_[W]&&(delete H.requestedModuleMap_[W],_.Dc(H.requestedModuleList_,W),A.push(W))}};
_.G9.prototype.load=function(H,U,A,M,W){W=W===void 0?U:W;_.e3(H);var w=this.useCors_,d=this.corsMode_,O=this.fetchPriority,f=_.Q9("SCRIPT");_.J$(f,H);w&&(f.crossOrigin=d);f.async=!1;O&&f.setAttribute("fetchpriority",O);_.JM(this,U);_.IYH(this,H,f,U,A,M,W)};
_.IYH=function(H,U,A,M,W,w,d){d=d===void 0?M:d;H.lastScript_=A;H.insertPos.insertBefore(A,H.insertPos.firstChild);_.QEz(A,M,function(){A.parentElement.removeChild(A);H.lastScript_==A&&(H.lastScript_=null);w()},function(O){A.parentElement.removeChild(A);
H.lastScript_==A&&(H.lastScript_=null);_.K3(H,O);H.pendingModuleGraphUpdate_?H.pendingModuleGraphUpdate_.then(function(){W(-1,U)}):W(-1,U)},d)};
_.QEz=function(H,U,A,M,W){W=W===void 0?U:W;var w=U.length,d=function(){w=0;H.onload=null;H.onerror=null;O=function(){}},O=function(){d();
var J=W.filter(function(F){return!Ng().getModuleInfo(F).isLoaded()});
J.length!==0?M(J,"Response was successful but was missing module(s) "+J+"."):A()},f=function(){w--;
w==0&&O()};
U.forEach(function(J){J=Ng().getModuleInfo(J);J.isLoaded()?f():(f3(J.earlyOnloadCallbacks_,f),lYB(J,f))});
H.onload=function(){return O()};
H.onerror=function(){d();M(U)}};
vOK=function(H){H.requestedModuleListSorted_||(H.requestedModuleListSorted_=!0,H.requestedModuleList_.sort());return H.requestedModuleList_};
T1r=function(H){H=H.loadedCssModuleList_;H.sort();return H};
h1n=function(H,U){return U.filter(function(A){return!H.requestedModuleMap_[A]})};
kvg=function(H,U,A,M){if(H.pendingModuleGraphUpdate_)return H.pendingModuleGraphUpdate_.then(function(){kvg(H,U,A,M)}),!0;
if(!H.useNegativeLoading_){var W=[],w=Object.assign({},H.requestedModuleMap_);Vpy(H,U,function(F){W.push(F.getId())},M,function(F){return!F.isLoaded()},w);
U=W}for(w=0;w<U.length;){for(var d=U.length-w,O=w==0?U:U.slice(w,U.length),f=jEk(H,O,M),J=_.e3(f).toString();J.length>H.urlMaxLength;)if(d>1)d-=Math.ceil((J.length-H.urlMaxLength)/6),d=Math.max(d,1),O=U.slice(w,w+d),f=jEk(H,O,M),J=_.e3(f).toString();else return H.useNegativeLoading_?(H.useNegativeLoading_=!1,H.pendingModuleGraphUpdate_=Hfn(H).then(function(F){UvK(H,F,M)}),kvg(H,U.slice(w),A,M)):!1;
w+=d;H.useNegativeLoading_?A(f,O):A(f,O,w===U.length?U:[])}return!0};
UvK=function(H,U,A){Ng().setAllModuleInfoString((U||{}).moduleGraph);Vpy(H,vOK(H),function(M){_.JM(H,[M.getId()])},A);
H.pendingModuleGraphUpdate_=null};
Vpy=function(H,U,A,M,W,w){w=w===void 0?{}:w;var d=Ng();U=_.b(U);for(var O=U.next();!O.done;O=U.next()){O=O.value;var f=d.getModuleInfo(O);if(!(w[O]||W&&!W(f))){w[O]=!0;var J=f.deps_||[];if(M){var F=[];M[O]&&(F=Object.keys(M[O]));J=J.concat(F)}Vpy(H,J,A,M,W,w);A(f)}}};
Hfn=function(H){H=H.scsReferenceUrl_.clone();iKw(H);Vw(H,"dg",null);Vw(H,"md","1");return e1y(H.toString())};var PXM=new Uint8Array(123);var AGB=[];var Mkg=function(){this.JSC$10357_loader_=null};
_.X=Mkg.prototype;_.X.setBatchModeEnabled=function(){};
_.X.setAllModuleInfoString=function(){};
_.X.addExtraEdge=function(){throw Error("wd");};
_.X.removeExtraEdge=function(){throw Error("xd");};
_.X.getModuleContext=function(){return null};
_.X.isActive=function(){return!1};
_.X.isUserActive=function(){return!1};
_.X.registerInitializationCallback=function(){};
_.X.registerCallback=function(){};var oa=function(H,U,A,M,W){var w=Error.call(this);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.name="ModuleLoadFailure";this.type=H;this.status=U;this.requestedModuleIds=A;this.url=M;this.cause=W;this.message=this.toString()};
_.R(oa,Error);oa.prototype.toString=function(){return Wqn(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var Wqn=function(H){switch(H.type){case oa.Type.UNAUTHORIZED:return"Unauthorized";case oa.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case oa.Type.TIMEOUT:return"Timed out";case oa.Type.OLD_CODE_GONE:return"Out of date module id";case oa.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+H.type}};
gj.ModuleLoadFailure=oa;gj.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var FF=function(){this.moduleIds_=this.JSC$10357_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11369_extraEdges_={};this.JSC$11369_callbackMap_={};this.JSC$11369_currentlyLoadingModule_=this.baseModuleInfo_=new gj.ModuleInfo([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new fW;this.isDisposed_=this.userLastActive_=this.lastActive_=
this.batchModeEnabled_=!1};
_.zo(FF,Mkg);var w4m=function(H,U){_.HF.call(this,"Error loading "+H+": "+U)};
_.zo(w4m,_.HF);FF.prototype.setBatchModeEnabled=function(H){this.batchModeEnabled_=H};
FF.prototype.setAllModuleInfoString=function(H,U){if(!(this instanceof FF))this.setAllModuleInfoString(H,U);else if(typeof H==="string"){if(H.startsWith("d$")){H=H.substring(2);for(var A=[],M=0,W=H.indexOf("/"),w=0,d=!1,O=0;;){var f=d?H.substring(w):H.substring(w,W);if(f.length===0)M++,w="sy"+M.toString(36),f=[];else{var J=f.indexOf(":");if(J<0)w=f,f=[];else if(J===f.length-1)w=f.substring(0,J),f=Array(A[O-1]);else{w=f.substring(0,J);f=f.substring(J+1).split(",");J=O;for(var F=0;F<f.length;F++)J-=
f[F].length===0?1:Number(f[F]),f[F]=A[J]}J=0;if(w.length===0)J=1;else if(w.charAt(0)==="+"||w.charAt(0)==="-")J=Number(w);J!==0&&(M+=J,w="sy"+M.toString(36))}A.push(w);X4r(this,w,f);if(d)break;w=W+1;W=H.indexOf("/",w);W===-1&&(d=!0);O++}this.moduleIds_=A}else if(H.startsWith("p$"))ify(this,H);else{H=H.split("/");A=[];for(M=0;M<H.length;M++){O=H[M].split(":");W=O[0];d=[];if(O[1])for(d=O[1].split(","),O=0;O<d.length;O++)d[O]=A[parseInt(d[O],36)];A.push(W);X4r(this,W,d)}this.moduleIds_=A}U&&U.length?
(_.qr(this.loadingModuleIds_,U),this.lastInitialModuleId_=_.z8(U)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11369_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11369_currentlyLoadingModule_=null,(U=this.baseModuleInfo_.onLoad((0,_.i9)(this.getModuleContext,this)))&&U.length&&bfn(this,new gj.ModuleLoadFailure(gj.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,U[0])),PR(this))}};
var ify=function(H,U){var A=U.substring(2);for(U=0;U<64;U++)PXM["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(U)]=U;var M={buf:A,pos:0};lM(M);var W=lM(M),w=lM(M)+1;U=Array(W);var d=Array(W),O=Array(W);w=Array(w);var f=0,J=0,F=M.pos,P=M.buf.indexOf("|",M.pos);M.pos=P+1;for(P=0;P<W;P++){var n=lM(M),N=n&2,L=n&1;n>>>=2;L?(f+=n>>>1^-(n&1),n="sy"+f.toString(36)):(L=F,F+=n,n=A.substring(L,F));U[P]=n;N&&(w[J++]=n)}w[J]="";M.pos++;J=W&-2;A=W&1;for(f=0;f<J;f+=2)F=siK(M),O[f]=
F&7,O[f+1]=F>>>3&7;A&&(A=siK(M),O[J]=A&7);M.pos++;for(J=0;J<W;J++)O[J]===7&&(O[J]=lM(M));M.pos++;for(A=J=0;A<W;A++){f=O[A];F=f===0?AGB:Array(f);d[A]=F;P=J;for(N=0;N<f;N++)P-=lM(M),F[N]=w[P];w[J]===U[A]&&J++}for(M=0;M<U.length;M++)X4r(H,U[M],d[M]);H.moduleIds_=U};
_.X=FF.prototype;_.X.getModuleInfo=function(H){return this.moduleInfoMap[H]};
_.X.addExtraEdge=function(H,U){var A=this.getModuleInfo(H);A&&A.isLoaded()?this.load(U):(this.JSC$11369_extraEdges_[H]||(this.JSC$11369_extraEdges_[H]={}),this.JSC$11369_extraEdges_[H][U]=!0)};
_.X.removeExtraEdge=function(H,U){if(this.JSC$11369_extraEdges_[H]){delete this.JSC$11369_extraEdges_[H][U];for(var A in this.JSC$11369_extraEdges_[H])return;delete this.JSC$11369_extraEdges_[H]}};
_.X.isActive=function(){return this.loadingModuleIds_.length>0};
_.X.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var PR=function(H){var U=H.lastActive_,A=H.isActive();A!=U&&(H.executeCallbacks_(A?"active":"idle"),H.lastActive_=A);U=H.isUserActive();U!=H.userLastActive_&&(H.executeCallbacks_(U?"userActive":"userIdle"),H.userLastActive_=U)},X4r=function(H,U,A){H.moduleInfoMap[U]?(H=H.moduleInfoMap[U].deps_,H!=A&&H.splice.apply(H,[0,
H.length].concat(_.vI(A)))):H.moduleInfoMap[U]=new gj.ModuleInfo(A,U)},Ofk=function(H,U,A){var M=[];
tN0(U,M);U=[];for(var W={},w=0;w<M.length;w++){var d=M[w],O=H.getModuleInfo(d);if(!O)throw Error("yd`"+d);var f=new fW;W[d]=f;O.isLoaded()?f.callback(null):(dvp(H,d,O,!!A,f),H.isModuleLoading(d)||U.push(d))}U.length>0&&(H.loadingModuleIds_.length===0?H.loadModules_(U):(H.requestedModuleIdsQueue_.push(U),PR(H)));return W},dvp=function(H,U,A,M,W){A.registerCallback(W.callback,W);
lYB(A,function(w){W.errback(new w4m(U,w))});
H.isModuleLoading(U)?M&&(upK(H,U),PR(H)):M&&upK(H,U)};
FF.prototype.loadModules_=function(H,U,A){var M=this;U=U===void 0?0:U;var W=Zfz(this,H);this.loadingModuleIds_=W;this.requestedLoadingModuleIds_=this.batchModeEnabled_?H:_.$c(W);PR(this);if(W.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,W);H=this.JSC$10357_loader_;if(!H)throw Error("zd");if(Object.keys(this.JSC$11369_extraEdges_).length>0&&!H.supportsExtraEdges)throw Error("Ad");A=(0,_.i9)(H.loadModules,H,_.$c(W),this.moduleInfoMap,{extraEdges:this.JSC$11369_extraEdges_,
forceReload:!!A,onError:function(w,d,O){var f=M.requestedLoadingModuleIds_;w=w!=null?w:void 0;var J=U;O=O===void 0?!1:O;O=(O===void 0?0:O)?0:(J===void 0?0:J)+1;J=_.$c(W);M.requestedLoadingModuleIds_=f;W.forEach(_.vg(_.Dc,M.requestedModuleIds_),M);w==401?(bfn(M,new gj.ModuleLoadFailure(gj.ModuleLoadFailure.Type.UNAUTHORIZED,w)),M.requestedModuleIdsQueue_.length=0):w==410?(ftr(M,new gj.ModuleLoadFailure(gj.ModuleLoadFailure.Type.OLD_CODE_GONE,w)),JGn(M)):O>=3?(ftr(M,new gj.ModuleLoadFailure(gj.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
w,J,d)),JGn(M)):M.loadModules_(M.requestedLoadingModuleIds_,O,w==8001||!1)},
onTimeout:(0,_.i9)(this.handleLoadTimeout_,this)});(H=Math.pow(U,2)*5E3)?_.Mr.setTimeout(A,H):A()}};
var Zfz=function(H,U){U=U.filter(function(W){return H.moduleInfoMap[W].isLoaded()?(_.Mr.setTimeout(function(){return Error("Bd`"+W)},0),!1):!0});
for(var A=[],M=0;M<U.length;M++)A=A.concat(Kqm(H,U[M]));tN0(A);return!H.batchModeEnabled_&&A.length>1?(U=A.shift(),H.requestedModuleIdsQueue_=A.map(function(W){return[W]}).concat(H.requestedModuleIdsQueue_),[U]):A},Kqm=function(H,U){var A=_.dG.createSet(H.requestedModuleIds_),M=[];
A[U]||M.push(U);U=[U];for(var W=0;W<U.length;W++)for(var w=H.getModuleInfo(U[W]).deps_,d=w.length-1;d>=0;d--){var O=w[d];H.getModuleInfo(O).isLoaded()||A[O]||(M.push(O),U.push(O))}M.reverse();tN0(M);return M};
FF.prototype.JSC$11364_setLoaded=function(){if(this.JSC$11369_currentlyLoadingModule_){var H=this.JSC$11369_currentlyLoadingModule_.getId(),U=[];if(this.JSC$11369_extraEdges_[H]){for(var A=_.b(Object.keys(this.JSC$11369_extraEdges_[H])),M=A.next();!M.done;M=A.next()){M=M.value;var W=this.getModuleInfo(M);W&&!W.isLoaded()&&(this.removeExtraEdge(H,M),U.push(M))}this.loadMultiple(U)}this.isDisposed()||((U=this.moduleInfoMap[H].onLoad((0,_.i9)(this.getModuleContext,this)))&&U.length&&bfn(this,new gj.ModuleLoadFailure(gj.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,U[0])),_.Dc(this.userInitiatedLoadingModuleIds_,H),_.Dc(this.loadingModuleIds_,H),this.loadingModuleIds_.length===0&&JGn(this),this.lastInitialModuleId_&&H==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),PR(this),this.JSC$11369_currentlyLoadingModule_=null)}};
FF.prototype.isModuleLoading=function(H){if(_.y0(this.loadingModuleIds_,H))return!0;for(var U=0;U<this.requestedModuleIdsQueue_.length;U++)if(_.y0(this.requestedModuleIdsQueue_[U],H))return!0;return!1};
FF.prototype.load=function(H,U){return Ofk(this,[H],U)[H]};
FF.prototype.loadMultiple=function(H){return Ofk(this,H)};
var upK=function(H,U){_.y0(H.userInitiatedLoadingModuleIds_,U)||H.userInitiatedLoadingModuleIds_.push(U)};
FF.prototype.beforeLoadModuleCode=function(H){var U=this;this.JSC$11369_currentlyLoadingModule_&&this.JSC$11369_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11364_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[H]&&oak(this,this.moduleInfoMap[H].deps_||[],function(A){A.module_=new gj.BaseModule;_.Dc(U.loadingModuleIds_,A.getId())},function(A){return!A.isLoaded()});
this.JSC$11369_currentlyLoadingModule_=this.getModuleInfo(H)};
FF.prototype.registerInitializationCallback=function(H){this.JSC$11369_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new gj.ModuleInfo([],"synthetic_module_overhead"),this.JSC$11369_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);f3(this.JSC$11369_currentlyLoadingModule_.earlyOnloadCallbacks_,H)};
FF.prototype.handleLoadTimeout_=function(){ftr(this,new gj.ModuleLoadFailure(gj.ModuleLoadFailure.Type.TIMEOUT));JGn(this)};
var ftr=function(H,U){H.requestedLoadingModuleIds_.length>1?H.requestedModuleIdsQueue_=H.requestedLoadingModuleIds_.map(function(A){return[A]}).concat(H.requestedModuleIdsQueue_):bfn(H,U)},bfn=function(H,U){var A=H.requestedLoadingModuleIds_;
H.loadingModuleIds_.length=0;for(var M=[],W=0;W<H.requestedModuleIdsQueue_.length;W++){var w=H.requestedModuleIdsQueue_[W].filter(function(f){var J=Kqm(this,f);return C_(A,function(F){return _.y0(J,F)})},H);
_.qr(M,w)}for(W=0;W<A.length;W++)_.ac_(M,A[W]);for(W=0;W<M.length;W++){for(w=0;w<H.requestedModuleIdsQueue_.length;w++)_.Dc(H.requestedModuleIdsQueue_[w],M[W]);_.Dc(H.userInitiatedLoadingModuleIds_,M[W])}if(W=H.JSC$11369_callbackMap_.error)for(w=0;w<W.length;w++)for(var d=W[w],O=0;O<M.length;O++)d("error",M[O],U);for(M=0;M<A.length;M++)if(H.moduleInfoMap[A[M]])H.moduleInfoMap[A[M]].onError(U);H.requestedLoadingModuleIds_.length=0;PR(H)},JGn=function(H){for(;H.requestedModuleIdsQueue_.length;){var U=
H.requestedModuleIdsQueue_.shift().filter(function(A){return!this.getModuleInfo(A).isLoaded()},H);
if(U.length>0){H.loadModules_(U);return}}PR(H)};
FF.prototype.registerCallback=function(H,U){Array.isArray(H)||(H=[H]);for(var A=0;A<H.length;A++){var M=H[A],W=U,w=this.JSC$11369_callbackMap_;w[M]||(w[M]=[]);w[M].push(W)}};
FF.prototype.executeCallbacks_=function(H){for(var U=this.JSC$11369_callbackMap_[H],A=0;U&&A<U.length;A++)U[A](H)};
var oak=function(H,U,A,M,W){M=M===void 0?function(){return!0}:M;
W=W===void 0?{}:W;U=_.b(U);for(var w=U.next();!w.done;w=U.next()){w=w.value;var d=H.getModuleInfo(w);!W[w]&&M(d)&&(W[w]=!0,oak(H,d.deps_||[],A,M,W),A(d))}};
FF.prototype.dispose=function(){_.Cp(_.dG.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11369_callbackMap_={};this.isDisposed_=!0};
FF.prototype.isDisposed=function(){return this.isDisposed_};
_.nW=function(){return new FF};var Fqg=[5E3,2E4],xrk=function(){this.JSC$10357_loader_=null;this.JSC$11377_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11377_queue_=[];this.JSC$11377_extraEdges_=Object.create(null);this.JSC$11377_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.R(xrk,Mkg);_.X=xrk.prototype;_.X.setAllModuleInfoString=function(){this.JSC$11377_currentlyLoadingModule_&&this.JSC$11377_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11364_setLoaded()};
_.X.getModuleInfo=function(H){var U=this.JSC$11377_moduleInfoMap_[H];U||(U=new gj.ModuleInfo([],H),this.JSC$11377_moduleInfoMap_[H]=U);return U};
_.X.addExtraEdge=function(H,U){this.getModuleInfo(H).isLoaded()?this.load(U):(this.JSC$11377_extraEdges_[H]||(this.JSC$11377_extraEdges_[H]={}),this.JSC$11377_extraEdges_[H][U]=!0)};
_.X.removeExtraEdge=function(H,U){if(this.JSC$11377_extraEdges_[H]){delete this.JSC$11377_extraEdges_[H][U];for(var A in this.JSC$11377_extraEdges_[H])return;delete this.JSC$11377_extraEdges_[H]}};
_.X.isModuleLoading=function(H){return!!this.loadingModules_[H]};
_.X.load=function(H){PNw(this,[H]);return srK(this,H)};
_.X.loadMultiple=function(H){var U=this,A=Object.create(null),M=[];H.forEach(function(W){A[W]||(A[W]=srK(U,W),M.push(W))});
PNw(this,M);return A};
_.X.beforeLoadModuleCode=function(H){var U;((U=this.JSC$11377_currentlyLoadingModule_)==null?void 0:U.getId())==="synthetic_module_overhead"&&this.JSC$11364_setLoaded();var A,M;nah(this,(M=(A=this.JSC$11377_moduleInfoMap_[H])==null?void 0:A.deps_)!=null?M:[],function(W){W.module_=new gj.BaseModule},function(W){return!W.isLoaded()});
this.JSC$11377_currentlyLoadingModule_=this.getModuleInfo(H)};
_.X.JSC$11364_setLoaded=function(){if(this.JSC$11377_currentlyLoadingModule_){var H=this.JSC$11377_currentlyLoadingModule_.getId(),U=[];if(this.JSC$11377_extraEdges_[H]){for(var A=_.b(Object.keys(this.JSC$11377_extraEdges_[H])),M=A.next();!M.done;M=A.next())M=M.value,this.getModuleInfo(M).isLoaded()||(this.removeExtraEdge(H,M),U.push(M));this.loadMultiple(U)}this.JSC$11377_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11377_currentlyLoadingModule_=null;(!this.isModuleLoading(H)&&/^sy[0-9a-z]{0,4}$/.test(H)||H==="synthetic_module_overhead")&&delete this.JSC$11377_moduleInfoMap_[H];this.unsetModulesAsLoading(H)}};
_.X.registerInitializationCallback=function(H){this.JSC$11377_currentlyLoadingModule_||(this.JSC$11377_moduleInfoMap_.synthetic_module_overhead=new gj.ModuleInfo([],"synthetic_module_overhead"),this.JSC$11377_currentlyLoadingModule_=this.JSC$11377_moduleInfoMap_.synthetic_module_overhead);f3(this.JSC$11377_currentlyLoadingModule_.earlyOnloadCallbacks_,H)};
_.X.setModulesAsLoading=function(){var H=this;_.QY.apply(0,arguments).forEach(function(U){H.loadingModules_[U]=!0})};
_.X.unsetModulesAsLoading=function(){var H=this;_.QY.apply(0,arguments).forEach(function(U){delete H.loadingModules_[U]})};
var srK=function(H,U){return new _.IQ(function(A,M){var W=H.getModuleInfo(U);W.isLoaded()?A(null):(W.registerCallback(function(){A(null)}),lYB(W,function(w){var d="Error loading "+U+": "+w;
w instanceof gj.ModuleLoadFailure&&w.url&&(d=d+", requested url: "+w.url.toString());M(Error(d))}))})},PNw=function(H,U){U=U.filter(function(A){return!H.isModuleLoading(A)&&!H.getModuleInfo(A).isLoaded()});
U.length>0&&(H.setModulesAsLoading.apply(H,_.vI(U)),H.JSC$11377_queue_.push(U),NnH(H))},NnH=function(H){for(var U={};H.activeLoads_<Infinity&&H.JSC$11377_queue_.length>0;U={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})U.ids$jscomp$37=H.JSC$11377_queue_.shift().filter(function(A){return!H.getModuleInfo(A).isLoaded()}),U.ids$jscomp$37.length>0&&(H.activeLoads_++,U.finishLoad=function(A){return function(){H.activeLoads_--;
NnH(H);A.finishLoad=function(){}}}(U),_.iR(U.ids$jscomp$37.map(function(A){return srK(H,A)})).then(function(A){return function(){(0,A.finishLoad)()}}(U)),U.attempt$jscomp$6=0,U.load$jscomp$1=function(A){return function(){if(Object.keys(H.JSC$11377_extraEdges_).length>0&&!H.JSC$10357_loader_.supportsExtraEdges)throw Error("Ad");
H.JSC$10357_loader_.loadModules(A.ids$jscomp$37,H.JSC$11377_moduleInfoMap_,{extraEdges:H.JSC$11377_extraEdges_,onError:function(M,W){var w=Fqg[A.attempt$jscomp$6++];w!==void 0?setTimeout(function(){(0,A.load$jscomp$1)()},w):(H.unsetModulesAsLoading.apply(H,_.vI(A.ids$jscomp$37)),(0,A.finishLoad)(),A.ids$jscomp$37.forEach(function(d){d=H.getModuleInfo(d);
if(!d.isLoaded())d.onError(new gj.ModuleLoadFailure(gj.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,M,A.ids$jscomp$37,W))}))}})}}(U),(0,U.load$jscomp$1)())},nah=function(H,U,A,M,W){M=M===void 0?function(){return!0}:M;
W=W===void 0?{}:W;U=_.b(U);for(var w=U.next();!w.done;w=U.next()){w=w.value;var d=H.getModuleInfo(w);!W[w]&&M(d)&&(W[w]=!0,nah(H,d.deps_||[],A,M,W),A(d))}};var SUy=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var Sa4=Symbol("Dd");window.JSCompiler_renameProperty=function(H){return H};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var p4H=!SUy||HTMLElement.es5Shimmed||_.Mr.Reflect===void 0||_.Mr.customElements===void 0||_.Mr.customElements.polyfillWrapFlushCallback||!1,Lqy,qTV=function(){var H=HTMLElement;if(p4H)return H;if(Lqy!==void 0)return Lqy;var U=_.Mr.Reflect,A=function(){return U.construct(H,[],this.constructor)};
A.prototype=H.prototype;A.prototype.constructor=A;A.es5Shimmed=!0;Object.setPrototypeOf(A,H);return Lqy=A},R2z=!1;p4H||R2z||(R2z=!0,_.Mr.HTMLElement=qTV());/*

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 mT_=/(url\()([^)]*)(\))/g,Rlt=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,EjF,qa;var LK=!window.ShadyDOM||!window.ShadyDOM.inUse,Eak=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),mvh=!window.customElements.polyfillWrapFlushCallback,gaK;if(gaK=LK&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var atk=new CSSStyleSheet;atk.replaceSync("");var xvw=document.createElement("div");xvw.attachShadow({mode:"open"});xvw.shadowRoot.adoptedStyleSheets=[atk];gaK=xvw.shadowRoot.adoptedStyleSheets[0]===atk}catch(H){gaK=!1}
var z2g=gaK,CNn=window.Polymer&&window.Polymer.rootPath||a9K(document.baseURI||window.location.href),iu=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,rIc=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,xA=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,tk3=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,pK=window.Polymer&&window.Polymer.legacyOptimizations||!1,a$=window.Polymer&&window.Polymer.legacyWarnings||!1,cGg=window.Polymer&&window.Polymer.syncInitialRender||
!1,dV=window.Polymer&&window.Polymer.legacyUndefined||!1,yGy=window.Polymer&&window.Polymer.orderedComputed||!1,s9=window.Polymer&&window.Polymer.removeNestedTemplates||!1,n3=window.Polymer&&window.Polymer.fastDomIf||!1,NA=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,BnK=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,rGK=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var Sf={},e2n={},uu=function(){return HTMLElement.apply(this,arguments)||this};
_.R(uu,HTMLElement);uu.import=function(H,U){return H?(H=Sf[H]||e2n[H.toLowerCase()])&&U?H.querySelector(U):H:null};
uu.prototype.attributeChangedCallback=function(H,U,A){U!==A&&this.register()};
uu.prototype.register=function(H){if(H=H||this.id){if(xA&&(Sf[H]||e2n[H.toLowerCase()])!==void 0)throw Sf[H]=e2n[H.toLowerCase()]=null,Error("Ed`"+H);this.id=H;Sf[H]=e2n[H.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.D5.Object.defineProperties(uu.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var H=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;H=_.h9(this.getAttribute("assetpath")||"",H.baseURI);this.__assetpath=a9K(H)}return this.__assetpath}}});
_.D5.Object.defineProperties(uu,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
uu["import"]=uu.import;uu.prototype.modules=Sf;customElements.define("dom-module",uu);var DvH=0,zlK=0,kX=[],$v3=0,xTK=!1,lt2=document.createTextNode(""),Glk,NC;(new window.MutationObserver(CXE)).observe(lt2,{characterData:!0});_.p3={after:function(H){return{run:function(U){return window.setTimeout(U,H)},
cancel:function(U){window.clearTimeout(U)}}},
run:function(H,U){return window.setTimeout(H,U)},
cancel:function(H){window.clearTimeout(H)}};
_.VD={run:function(H){return window.requestAnimationFrame(H)},
cancel:function(H){window.cancelAnimationFrame(H)}};
Glk={run:function(H){return window.requestIdleCallback?window.requestIdleCallback(H):window.setTimeout(H,16)},
cancel:function(H){window.cancelIdleCallback?window.cancelIdleCallback(H):window.clearTimeout(H)}};
NC={run:function(H){xTK||(xTK=!0,lt2.textContent=$v3++);kX.push(H);return DvH++},
cancel:function(H){var U=H-zlK;if(U>=0){if(!kX[U])throw Error("Fd`"+H);kX[U]=null}}};var YUh=0,L3=function(H){var U=H.__mixinApplications;U||(U=new WeakMap,H.__mixinApplications=U);var A=YUh++;return function(M){var W=M.__mixinSet;if(W&&W[A])return M;var w=U,d=w.get(M);d||(d=H(M),w.set(M,d),M=Object.create(d.__mixinSet||W||null),M[A]=!0,d.__mixinSet=M);return d}};_.X7=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(H){return ShadyDOM.patch(H)}:function(H){return H};var qUn=L3(function(H){var U=function(){var A=H.call(this)||this;A.__dataEnabled=!1;A.__dataReady=!1;A.__dataInvalid=!1;A.__data={};A.__dataPending=null;A.__dataOld=null;A.__dataInstanceProps=null;A.__dataCounter=0;A.__serializing=!1;A._initializeProperties();return A};
_.R(U,H);U.createProperties=function(A){var M=this.prototype,W;for(W in A)W in M||M._createPropertyAccessor(W)};
U.attributeNameForProperty=function(A){return A.toLowerCase()};
U.typeForProperty=function(){};
U.prototype._createPropertyAccessor=function(A,M){this._addPropertyToAttributeMap(A);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[A]||(this.__dataHasAccessor[A]=!0,this._definePropertyAccessor(A,M))};
U.prototype._addPropertyToAttributeMap=function(A){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var M=this.__dataAttributes[A];M||(M=this.constructor.attributeNameForProperty(A),this.__dataAttributes[M]=A);return M};
U.prototype._definePropertyAccessor=function(A,M){Object.defineProperty(this,A,{get:function(){return this.__data[A]},
set:M?function(){}:function(W){this._setPendingProperty(A,W,!0)&&this._invalidateProperties()}})};
U.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
U.prototype._initializeProperties=function(){for(var A in this.__dataHasAccessor)this.hasOwnProperty(A)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[A]=this[A],delete this[A])};
U.prototype._initializeInstanceProperties=function(A){Object.assign(this,A)};
U.prototype._setProperty=function(A,M){this._setPendingProperty(A,M)&&this._invalidateProperties()};
U.prototype._getProperty=function(A){return this.__data[A]};
U.prototype._setPendingProperty=function(A,M){var W=this.__data[A],w=this._shouldPropertyChange(A,M,W);w&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||A in this.__dataOld||(this.__dataOld[A]=W),this.__data[A]=M,this.__dataPending[A]=M);return w};
U.prototype._isPropertyPending=function(A){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(A))};
U.prototype._invalidateProperties=function(){var A=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,NC.run(function(){A.__dataInvalid&&(A.__dataInvalid=!1,A._flushProperties())}))};
U.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
U.prototype._flushProperties=function(){this.__dataCounter++;var A=this.__data,M=this.__dataPending,W=this.__dataOld;this._shouldPropertiesChange(A,M,W)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(A,M,W));this.__dataCounter--};
U.prototype._shouldPropertiesChange=function(A,M){return!!M};
U.prototype._propertiesChanged=function(){};
U.prototype._shouldPropertyChange=function(A,M,W){return W!==M&&(W===W||M===M)};
U.prototype.attributeChangedCallback=function(A,M,W,w){M!==W&&this._attributeToProperty(A,W);H.prototype.attributeChangedCallback&&H.prototype.attributeChangedCallback.call(this,A,M,W,w)};
U.prototype._attributeToProperty=function(A,M,W){if(!this.__serializing){var w=this.__dataAttributes;A=w&&w[A]||A;this[A]=this._deserializeValue(M,W||this.constructor.typeForProperty(A))}};
U.prototype._propertyToAttribute=function(A,M,W){this.__serializing=!0;W=arguments.length<3?this[A]:W;this._valueToNodeAttribute(this,W,M||this.constructor.attributeNameForProperty(A));this.__serializing=!1};
U.prototype._valueToNodeAttribute=function(A,M,W){M=this._serializeValue(M);if(W==="class"||W==="name"||W==="slot")A=(0,_.X7)(A);M===void 0?A.removeAttribute(W):A.setAttribute(W,M===""&&window.trustedTypes?window.trustedTypes.emptyScript:M)};
U.prototype._serializeValue=function(A){switch(typeof A){case "boolean":return A?"":void 0;default:return A!=null?A.toString():void 0}};
U.prototype._deserializeValue=function(A,M){switch(M){case Boolean:return A!==null;case Number:return Number(A);default:return A}};
return U});var h2w=0,tV4=[];var kl2=L3(function(H){function U(w){w=Object.getPrototypeOf(w);return w.prototype instanceof W?w:null}
function A(w){if(!w.hasOwnProperty("__ownProperties")){var d=null;if(w.hasOwnProperty("properties")){var O=w.properties;if(O){d={};for(var f in O){var J=O[f];d[f]=typeof J==="function"?{type:J}:J}}}w.__ownProperties=d}return w.__ownProperties}
var M=qUn(H),W=function(){return M.apply(this,arguments)||this};
_.R(W,M);W.finalize=function(){if(!this.hasOwnProperty("__finalized")){var w=U(this);w&&w.finalize();this.__finalized=!0;this._finalizeClass()}};
W._finalizeClass=function(){var w=A(this);w&&this.createProperties(w)};
W.typeForProperty=function(w){return(w=this._properties[w])&&w.type};
W.prototype._initializeProperties=function(){h2w++;this.constructor.finalize();M.prototype._initializeProperties.call(this)};
W.prototype.connectedCallback=function(){M.prototype.connectedCallback&&M.prototype.connectedCallback.call(this);this._enableProperties()};
W.prototype.disconnectedCallback=function(){M.prototype.disconnectedCallback&&M.prototype.disconnectedCallback.call(this)};
_.D5.Object.defineProperties(W,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var w=this;if(!this.hasOwnProperty("__observedAttributes")){cN8(this.prototype);var d=this._properties;this.__observedAttributes=d?Object.keys(d).map(function(O){return w.prototype._addPropertyToAttributeMap(O)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var w=U(this);this.__properties=Object.assign({},w&&w._properties,A(this))}return this.__properties}}});
return W});var yNN={},Bzt=/-[a-z]/g,rN7=/([A-Z])/g;for(var vaK={},Tnp=HTMLElement.prototype;Tnp;){for(var jrK=Object.getOwnPropertyNames(Tnp),Itp=0;Itp<jrK.length;Itp++)vaK[jrK[Itp]]=!0;Tnp=Object.getPrototypeOf(Tnp)}var QrB=window.trustedTypes?function(H){return trustedTypes.isHTML(H)||trustedTypes.isScript(H)||trustedTypes.isScriptURL(H)}:function(){return!1},Vkz=L3(function(H){var U=qUn(H);
H=function(){return U.apply(this,arguments)||this};
_.R(H,U);H.createPropertiesForAttributes=function(){for(var A=this.observedAttributes,M=0;M<A.length;M++)this.prototype._createPropertyAccessor(v1(A[M]))};
H.attributeNameForProperty=function(A){return T9(A)};
H.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);U.prototype._initializeProperties.call(this)};
H.prototype._initializeProtoProperties=function(A){for(var M in A)this._setProperty(M,A[M])};
H.prototype._ensureAttribute=function(A,M){this.hasAttribute(A)||this._valueToNodeAttribute(this,M,A)};
H.prototype._serializeValue=function(A){switch(typeof A){case "object":if(A instanceof Date)return A.toString();if(A){if(QrB(A))return A;try{return JSON.stringify(A)}catch(M){return""}}default:return U.prototype._serializeValue.call(this,A)}};
H.prototype._deserializeValue=function(A,M){switch(M){case Object:try{var W=JSON.parse(A)}catch(w){W=A}break;case Array:try{W=JSON.parse(A)}catch(w){W=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+A)}break;case Date:W=isNaN(A)?String(A):Number(A);W=new Date(W);break;default:W=U.prototype._deserializeValue.call(this,A,M)}return W};
H.prototype._definePropertyAccessor=function(A,M){if(!vaK[A]){var W=this[A];W!==void 0&&(this.__data?this._setPendingProperty(A,W):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[A]=W))}U.prototype._definePropertyAccessor.call(this,A,M)};
H.prototype._hasAccessor=function(A){return this.__dataHasAccessor&&this.__dataHasAccessor[A]};
H.prototype._isPropertyPending=function(A){return!!(this.__dataPending&&A in this.__dataPending)};
return H});var Hew={"dom-if":!0,"dom-repeat":!0},UDK=!1,Ayr=!1,Mqg=function(){var H=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(U){return U}});
return function(U,A,M){A=A.getAttribute(M);H&&M.startsWith("on-")?U.setAttribute(M,H.createScript(A,M)):U.setAttribute(M,A)}}(),WdH=L3(function(H){var U=function(){return H.apply(this,arguments)||this};
_.R(U,H);U._parseTemplate=function(A,M){if(!A._templateInfo){var W=A._templateInfo={};W.nodeInfoList=[];W.nestedTemplate=!!M;W.stripWhiteSpace=M&&M.stripWhiteSpace||A.hasAttribute&&A.hasAttribute("strip-whitespace");this._parseTemplateContent(A,W,{parent:null})}return A._templateInfo};
U._parseTemplateContent=function(A,M,W){return this._parseTemplateNode(A.content,M,W)};
U._parseTemplateNode=function(A,M,W){var w=!1;A.localName!="template"||A.hasAttribute("preserve-content")?A.localName==="slot"&&(M.hasInsertionPoint=!0):w=this._parseTemplateNestedTemplate(A,M,W)||w;if(!UDK){UDK=!0;var d=document.createElement("textarea");d.placeholder="a";Ayr=d.placeholder===d.textContent}Ayr&&A.localName==="textarea"&&A.placeholder&&A.placeholder===A.textContent&&(A.textContent=null);A.firstChild&&this._parseTemplateChildNodes(A,M,W);A.hasAttributes&&A.hasAttributes()&&(w=this._parseTemplateNodeAttributes(A,
M,W)||w);return w||W.noted};
U._parseTemplateChildNodes=function(A,M,W){if(A.localName!=="script"&&A.localName!=="style")for(var w=A.firstChild,d=0,O;w;w=O){if(w.localName=="template"){var f=w.getAttribute("is");if(f&&Hew[f])for(O=w,O.removeAttribute("is"),w=O.ownerDocument.createElement(f),O.parentNode.replaceChild(w,O),w.appendChild(O);O.attributes.length;)f=O.attributes[0].name,Mqg(w,O,f),O.removeAttribute(f)}O=w.nextSibling;if(w.nodeType===Node.TEXT_NODE){for(f=O;f&&f.nodeType===Node.TEXT_NODE;)w.textContent+=f.textContent,
O=f.nextSibling,A.removeChild(f),f=O;if(M.stripWhiteSpace&&!w.textContent.trim()){A.removeChild(w);continue}}f={parentIndex:d,parentInfo:W};this._parseTemplateNode(w,M,f)&&(f.infoIndex=M.nodeInfoList.push(f)-1);w.parentNode&&d++}};
U._parseTemplateNestedTemplate=function(A,M,W){M=this._parseTemplate(A,M);(M.content=A.content.ownerDocument.createDocumentFragment()).appendChild(A.content);W.templateInfo=M;return!0};
U._parseTemplateNodeAttributes=function(A,M,W){for(var w=!1,d=Array.from(A.attributes),O=d.length-1,f;f=d[O];O--)w=this._parseTemplateNodeAttribute(A,M,W,f.name,f.value)||w;return w};
U._parseTemplateNodeAttribute=function(A,M,W,w,d){return w.slice(0,3)==="on-"?(A.removeAttribute(w),W.events=W.events||[],W.events.push({name:w.slice(3),value:d}),!0):w==="id"?(W.id=d,!0):!1};
U._contentForTemplate=function(A){var M=A._templateInfo;return M&&M.content||A.content};
U.prototype._stampTemplate=function(A,M){A&&!A.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(A);M=M||this.constructor._parseTemplate(A);var W=M.nodeInfoList;A=document.importNode(M.content||A.content,!0);A.__noInsertionPoint=!M.hasInsertionPoint;var w=A.nodeList=Array(W.length);A.$={};for(var d=0,O=W.length,f=void 0;d<O&&(f=W[d]);d++){var J=w[d]=el0(A,f);f.id&&(A.$[f.id]=J);var F=J,P=f,n=M;P.templateInfo&&(F._templateInfo=P.templateInfo,F._parentTemplateInfo=
n);if(f.events&&f.events.length)for(F=0,P=f.events,n=void 0;F<P.length&&(n=P[F]);F++)this._addMethodEventListenerToNode(J,n.name,n.value,this)}return A};
U.prototype._addMethodEventListenerToNode=function(A,M,W,w){W=DTc(w||A,W);this._addEventListenerToNode(A,M,W);return W};
U.prototype._addEventListenerToNode=function(A,M,W){A.addEventListener(M,W)};
U.prototype._removeEventListenerFromNode=function(A,M,W){A.removeEventListener(M,W)};
return U});var Wa=0,bu=[],wXg={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},XXB=/[A-Z]/,iep=function(H,U,A,M,W){var w=W?I1(H):H;if(U=U[w])for(w=0;w<U.length;w++){var d=U[w];if(d.info.lastRun!==Wa&&(!W||hlt(H,d.trigger))){d.info.lastRun=Wa;d=d.info;for(var O=A,f=M,J=0,F=O.length-1,P=-1;J<=F;){var n=J+F>>1,N=f.get(O[n].methodInfo)-f.get(d.methodInfo);if(N<0)J=n+1;else if(N>0)F=n-1;else{P=n;break}}P<
0&&(P=F+1);O.splice(P,0,d)}}},ixK=[],bem=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"),E9=L3(function(H){var U=WdH(Vkz(H));
H=function(){var A=U.call(this)||this;A.__isPropertyEffectsClient=!0;return A};
_.R(H,U);H.prototype._initializeProperties=function(){U.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};
H.prototype._registerHost=function(){if(Ra.length){var A=Ra[Ra.length-1];A._enqueueClient(this);this.__dataHost=A}};
H.prototype._initializeProtoProperties=function(A){this.__data=Object.create(A);this.__dataPending=Object.create(A);this.__dataOld={}};
H.prototype._initializeInstanceProperties=function(A){var M=this.__readOnly,W;for(W in A)M&&M[W]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[W]=this.__dataPending[W]=A[W])};
H.prototype._addPropertyEffect=function(A,M,W){this._createPropertyAccessor(A,M=="__readOnly");var w=qaN(this,M,!0)[A];w||(w=this[M][A]=[]);w.push(W)};
H.prototype._removePropertyEffect=function(A,M,W){A=qaN(this,M,!0)[A];W=A.indexOf(W);W>=0&&A.splice(W,1)};
H.prototype._hasPropertyEffect=function(A,M){M=this[M];return!(!M||!M[A])};
H.prototype._hasReadOnlyEffect=function(A){return this._hasPropertyEffect(A,"__readOnly")};
H.prototype._hasNotifyEffect=function(A){return this._hasPropertyEffect(A,"__notifyEffects")};
H.prototype._hasReflectEffect=function(A){return this._hasPropertyEffect(A,"__reflectEffects")};
H.prototype._hasComputedEffect=function(A){return this._hasPropertyEffect(A,"__computeEffects")};
H.prototype._setPendingPropertyOrPath=function(A,M,W,w){if(w||I1(Array.isArray(A)?A[0]:A)!==A){if(!w&&(w=MC(this,A),A=YaN(this,A,M),!A||!U.prototype._shouldPropertyChange.call(this,A,M,w)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(A,M,W)){if(W=this.__dataLinkedPaths)for(var d in W)w=W[d],QZ(d,A)?(w=VZ(d,w,A),this._setPendingPropertyOrPath(w,M,!0,!0)):QZ(w,A)&&(w=VZ(w,d,A),this._setPendingPropertyOrPath(w,M,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[A])return this._setPendingProperty(A,
M,W);this[A]=M}return!1};
H.prototype._setUnmanagedPropertyToNode=function(A,M,W){if(W!==A[M]||typeof W=="object")M==="className"&&(A=(0,_.X7)(A)),A[M]=W};
H.prototype._setPendingProperty=function(A,M,W){var w=this.__dataHasPaths&&jD(A);if(this._shouldPropertyChange(A,M,(w?this.__dataTemp:this.__data)[A])){this.__dataPending||(this.__dataPending={},this.__dataOld={});A in this.__dataOld||(this.__dataOld[A]=this.__data[A]);w?this.__dataTemp[A]=M:this.__data[A]=M;this.__dataPending[A]=M;if(w||this.__notifyEffects&&this.__notifyEffects[A])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[A]=W;return!0}return!1};
H.prototype._setProperty=function(A,M){this._setPendingProperty(A,M,!0)&&this._invalidateProperties()};
H.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
H.prototype._enqueueClient=function(A){this.__dataPendingClients=this.__dataPendingClients||[];A!==this&&this.__dataPendingClients.push(A)};
H.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
H.prototype.__enableOrFlushClients=function(){var A=this.__dataPendingClients;if(A){this.__dataPendingClients=null;for(var M=0;M<A.length;M++){var W=A[M];W.__dataEnabled?W.__dataPending&&W._flushProperties():W._enableProperties()}}};
H.prototype._readyClients=function(){this.__enableOrFlushClients()};
H.prototype.setProperties=function(A,M){for(var W in A)!M&&this.__readOnly&&this.__readOnly[W]||this._setPendingPropertyOrPath(W,A[W],!0);this._invalidateProperties()};
H.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
H.prototype._propertiesChanged=function(A,M,W){A=this.__dataHasPaths;this.__dataHasPaths=!1;var w;if(w=this.__computeEffects)if(yGy){Wa++;var d=Qic(this),O=[],f;for(f in M)iep(f,w,O,d,A);for(;f=O.shift();)HxK(this,"",M,W,f)&&iep(f.methodInfo,w,O,d,A);Object.assign(W,this.__dataOld);Object.assign(M,this.__dataPending);this.__dataPending=null}else for(d=M;wV(this,w,d,W,A);)Object.assign(W,this.__dataOld),Object.assign(M,this.__dataPending),d=this.__dataPending,this.__dataPending=null;w=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(M,W,A);this._flushClients();wV(this,this.__reflectEffects,M,W,A);wV(this,this.__observeEffects,M,W,A);if(w){d=this.__notifyEffects;O=Wa++;for(var J in w)if(w[J]){if(f=d){var F=d;f=O;var P=J,n=M,N=W,L=A,m=!1,z=L?I1(P):P;if(F=F[z]){z=0;for(var c=F.length,C=void 0;z<c&&(C=F[z]);z++)C.info&&C.info.lastRun===f||L&&!hlt(P,C.trigger)||(C.info&&(C.info.lastRun=f),C.fn(this,P,n,N,C.info,L,void 0),m=!0)}f=m}if(f)var v=!0;else{if(f=A)f=J,P=M,n=I1(f),n!==
f?(n=T9(n)+"-changed",vjM(this,n,P[f],f),f=!0):f=!1;f&&(v=!0)}}var Y;v&&(Y=this.__dataHost)&&Y._invalidateProperties&&Y._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
H.prototype._propagatePropertyChanges=function(A,M,W){this.__propagateEffects&&wV(this,this.__propagateEffects,A,M,W);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,A,M,W)};
H.prototype._runEffectsForTemplate=function(A,M,W,w){var d=this,O=function(f,J){wV(d,A.propertyEffects,f,W,J,A.nodeList);for(var F=A.firstChild;F;F=F.nextSibling)d._runEffectsForTemplate(F,f,W,J)};
A.runEffects?A.runEffects(O,M,w):O(M,w)};
H.prototype.linkPaths=function(A,M){A=Ha(A);M=Ha(M);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[A]=M};
H.prototype.unlinkPaths=function(A){A=Ha(A);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[A]};
H.prototype.notifySplices=function(A,M){var W={path:""};A=MC(this,A,W);uY7(this,A,W.path,M)};
H.prototype.get=function(A,M){return MC(M||this,A)};
H.prototype.set=function(A,M,W){W?YaN(W,A,M):this.__readOnly&&this.__readOnly[A]||this._setPendingPropertyOrPath(A,M,!0)&&this._invalidateProperties()};
H.prototype.push=function(A){var M=_.QY.apply(1,arguments),W={path:""},w=MC(this,A,W),d=w.length,O=w.push.apply(w,_.vI(M));M.length&&Oo(this,w,W.path,d,M.length,[]);return O};
H.prototype.pop=function(A){var M={path:""};A=MC(this,A,M);var W=!!A.length,w=A.pop();W&&Oo(this,A,M.path,A.length,0,[w]);return w};
H.prototype.splice=function(A,M,W){var w=_.QY.apply(3,arguments),d={path:""},O=MC(this,A,d);M<0?M=O.length-Math.floor(-M):M&&(M=Math.floor(M));var f=arguments.length===2?O.splice(M):O.splice.apply(O,[M,W].concat(_.vI(w)));(w.length||f.length)&&Oo(this,O,d.path,M,w.length,f);return f};
H.prototype.shift=function(A){var M={path:""};A=MC(this,A,M);var W=!!A.length,w=A.shift();W&&Oo(this,A,M.path,0,0,[w]);return w};
H.prototype.unshift=function(A){var M=_.QY.apply(1,arguments),W={path:""},w=MC(this,A,W),d=w.unshift.apply(w,_.vI(M));M.length&&Oo(this,w,W.path,0,M.length,[]);return d};
H.prototype.notifyPath=function(A,M){if(arguments.length==1){var W={path:""};M=MC(this,A,W);W=W.path}else W=Array.isArray(A)?Ha(A):A;this._setPendingPropertyOrPath(W,M,!0,!0)&&this._invalidateProperties()};
H.prototype._createReadOnlyProperty=function(A,M){this._addPropertyEffect(A,"__readOnly");M&&(this["_set"+(A[0].toUpperCase()+A.substring(1))]=function(W){this._setProperty(A,W)})};
H.prototype._createPropertyObserver=function(A,M,W){var w={property:A,method:M,dynamicFn:!!W};this._addPropertyEffect(A,"__observeEffects",{fn:ksr,info:w,trigger:{name:A}});W&&this._addPropertyEffect(M,"__observeEffects",{fn:ksr,info:w,trigger:{name:M}})};
H.prototype._createMethodObserver=function(A,M){var W=dP7(A);if(!W)throw Error("Gd`"+A);wu7(this,W,"__observeEffects",VVE,null,M)};
H.prototype._createNotifyingProperty=function(A){this._addPropertyEffect(A,"__notifyEffects",{fn:TzK,info:{eventName:T9(A)+"-changed",property:A}})};
H.prototype._createReflectedProperty=function(A){var M=this.constructor.attributeNameForProperty(A);M[0]==="-"?console.warn("Property "+A+" cannot be reflected to attribute "+M+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(A,"__reflectEffects",{fn:jiN,info:{attrName:M}})};
H.prototype._createComputedProperty=function(A,M,W){var w=dP7(M);if(!w)throw Error("Hd`"+M);M=wu7(this,w,"__computeEffects",HxK,A,W);qaN(this,"__computeInfo")[A]=M};
H.prototype._marshalArgs=function(A,M,W){for(var w=this.__data,d=[],O=0,f=A.length;O<f;O++){var J=A[O],F=J.name,P=J.structured,n=J.wildcard,N=J.value;J.literal||(n?(J=QZ(F,M),P=Ox8(w,W,J?M:F),N={path:J?M:F,value:P,base:J?MC(w,F):P}):N=P?Ox8(w,W,F):w[F]);if(dV&&!this._overrideLegacyUndefined&&N===void 0&&A.length>1)return bu;d[O]=N}return d};
H.addPropertyEffect=function(A,M,W){this.prototype._addPropertyEffect(A,M,W)};
H.createPropertyObserver=function(A,M,W){this.prototype._createPropertyObserver(A,M,W)};
H.createMethodObserver=function(A,M){this.prototype._createMethodObserver(A,M)};
H.createNotifyingProperty=function(A){this.prototype._createNotifyingProperty(A)};
H.createReadOnlyProperty=function(A,M){this.prototype._createReadOnlyProperty(A,M)};
H.createReflectedProperty=function(A){this.prototype._createReflectedProperty(A)};
H.createComputedProperty=function(A,M,W){this.prototype._createComputedProperty(A,M,W)};
H.bindTemplate=function(A){return this.prototype._bindTemplate(A)};
H.prototype._bindTemplate=function(A,M){var W=this.constructor._parseTemplate(A),w=this.__preBoundTemplateInfo==W;if(!w)for(var d in W.propertyEffects)this._createPropertyAccessor(d);M?(W=Object.create(W),W.wasPreBound=w,this.__templateInfo?(A=A._parentTemplateInfo||this.__templateInfo,M=A.lastChild,W.parent=A,A.lastChild=W,(W.previousSibling=M)?M.nextSibling=W:A.firstChild=W):this.__templateInfo=W):this.__preBoundTemplateInfo=W;return W};
H._addTemplatePropertyEffect=function(A,M,W){(A.hostProps=A.hostProps||{})[M]=!0;A=A.propertyEffects=A.propertyEffects||{};(A[M]=A[M]||[]).push(W)};
H.prototype._stampTemplate=function(A,M){M=M||this._bindTemplate(A,!0);Ra.push(this);A=U.prototype._stampTemplate.call(this,A,M);Ra.pop();M.nodeList=A.nodeList;if(!M.wasPreBound)for(var W=M.childNodes=[],w=A.firstChild;w;w=w.nextSibling)W.push(w);A.templateInfo=M;W=M.nodeList;w=M.nodeInfoList;if(w.length)for(var d=0;d<w.length;d++){var O=W[d],f=w[d].bindings;if(f)for(var J=0;J<f.length;J++){var F=f[J],P=O,n=F;if(n.isCompound){for(var N=P.__dataCompoundStorage||(P.__dataCompoundStorage={}),L=n.parts,
m=Array(L.length),z=0;z<L.length;z++)m[z]=L[z].literal;L=n.target;N[L]=m;n.literal&&n.kind=="property"&&(L==="className"&&(P=(0,_.X7)(P)),P[L]=n.literal)}WcK(O,this,F)}O.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(M,this.__data,null,!1),this._flushClients());return A};
H.prototype._removeBoundDom=function(A){A=A.templateInfo;var M=A.previousSibling,W=A.nextSibling,w=A.parent;M?M.nextSibling=W:w&&(w.firstChild=W);W?W.previousSibling=M:w&&(w.lastChild=M);A.nextSibling=A.previousSibling=null;A=A.childNodes;for(M=0;M<A.length;M++)W=A[M],(0,_.X7)((0,_.X7)(W).parentNode).removeChild(W)};
H._parseTemplateNode=function(A,M,W){var w=U._parseTemplateNode.call(this,A,M,W);if(A.nodeType===Node.TEXT_NODE){var d=this._parseBindings(A.textContent,M);d&&(A.textContent=Xu0(d)||" ",Md0(this,M,W,"text","textContent",d),w=!0)}return w};
H._parseTemplateNodeAttribute=function(A,M,W,w,d){var O=this._parseBindings(d,M);if(O){d=w;var f="property";XXB.test(w)?f="attribute":w[w.length-1]=="$"&&(w=w.slice(0,-1),f="attribute");var J=Xu0(O);J&&f=="attribute"&&(w=="class"&&A.hasAttribute("class")&&(J+=" "+A.getAttribute(w)),A.setAttribute(w,J));f=="attribute"&&d=="disable-upgrade$"&&A.setAttribute(w,"");A.localName==="input"&&d==="value"&&A.setAttribute(d,"");A.removeAttribute(d);f==="property"&&(w=v1(w));Md0(this,M,W,f,w,O,J);return!0}return U._parseTemplateNodeAttribute.call(this,
A,M,W,w,d)};
H._parseTemplateNestedTemplate=function(A,M,W){var w=U._parseTemplateNestedTemplate.call(this,A,M,W),d=A.parentNode,O=W.templateInfo,f=d.localName==="dom-if",J=d.localName==="dom-repeat";s9&&(f||J)&&(d.removeChild(A),W=W.parentInfo,W.templateInfo=O,W.noted=!0,w=!1);A=O.hostProps;if(n3&&f)A&&(M.hostProps=Object.assign(M.hostProps||{},A),s9||(W.parentInfo.noted=!0));else for(var F in A)Md0(this,M,W,"property","_host_"+F,[{mode:"{",source:F,dependencies:[F],hostProp:!0}]);return w};
H._parseBindings=function(A,M){for(var W=[],w=0,d;(d=bem.exec(A))!==null;){d.index>w&&W.push({literal:A.slice(w,d.index)});w=d[1][0];var O=!!d[2];d=d[3].trim();var f=!1,J="",F=-1;w=="{"&&(F=d.indexOf("::"))>0&&(J=d.substring(F+2),d=d.substring(0,F),f=!0);F=dP7(d);var P=[];if(F){var n=F,N=n.args;n=n.methodName;for(var L=0;L<N.length;L++){var m=N[L];m.literal||P.push(m)}if((N=M.dynamicFns)&&N[n]||F.static)P.push(n),F.dynamicFn=!0}else P.push(d);W.push({source:d,mode:w,negate:O,customEvent:f,signature:F,
dependencies:P,event:J});w=bem.lastIndex}w&&w<A.length&&(A=A.substring(w))&&W.push({literal:A});return W.length?W:null};
H._evaluateBinding=function(A,M,W,w,d,O){A=M.signature?VVE(A,W,w,d,M.signature):W!=M.source?MC(A,M.source):O&&jD(W)?MC(A,W):A.__data[W];M.negate&&(A=!A);return A};
_.D5.Object.defineProperties(H.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return wXg}}});
return H}),Ra=[];var dD2=window.ShadyCSS&&window.ShadyCSS.cssBuild,mM=L3(function(H){function U(M,W,w,d){if(!dD2){for(var O=W.content.querySelectorAll("style"),f=KcE(W),J=o4V(w),F=W.content.firstElementChild,P=0;P<J.length;P++){var n=J[P];n.textContent=M._processStyleText(n.textContent,d);W.content.insertBefore(n,F)}for(F=J=0;F<f.length;F++)P=f[F],n=O[J],n!==P?(P=P.cloneNode(!0),n.parentNode.insertBefore(P,n)):J++,P.textContent=M._processStyleText(P.textContent,d)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(W,
w);if(rGK&&dD2&&z2g&&(W=W.content.querySelectorAll("style"))){var N="";Array.from(W).forEach(function(L){N+=L.textContent;L.parentNode.removeChild(L)});
M._styleSheet=new CSSStyleSheet;M._styleSheet.replaceSync(N)}}
var A=kl2(E9(H));H=function(){return A.call(this)||this};
_.R(H,A);H._finalizeClass=function(){A._finalizeClass.call(this);var M;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(M=this.__ownObservers)&&this.createObservers(M,this._properties);this._prepareTemplate()};
H._prepareTemplate=function(){var M=this.template;M&&(typeof M==="string"?(console.error("template getter must return HTMLTemplateElement"),M=null):pK||(M=M.cloneNode(!0)));this.prototype._template=M};
H.createProperties=function(M){for(var W in M){var w=this.prototype,d=W,O=M[W],f=M;O.computed&&(O.readOnly=!0);O.computed&&(w._hasReadOnlyEffect(d)?console.warn("Cannot redefine computed property '"+d+"'."):w._createComputedProperty(d,O.computed,f));O.readOnly&&!w._hasReadOnlyEffect(d)?w._createReadOnlyProperty(d,!O.computed):O.readOnly===!1&&w._hasReadOnlyEffect(d)&&console.warn("Cannot make readOnly property '"+d+"' non-readOnly.");O.reflectToAttribute&&!w._hasReflectEffect(d)?w._createReflectedProperty(d):
O.reflectToAttribute===!1&&w._hasReflectEffect(d)&&console.warn("Cannot make reflected property '"+d+"' non-reflected.");O.notify&&!w._hasNotifyEffect(d)?w._createNotifyingProperty(d):O.notify===!1&&w._hasNotifyEffect(d)&&console.warn("Cannot make notify property '"+d+"' non-notify.");O.observer&&w._createPropertyObserver(d,O.observer,f[O.observer]);w._addPropertyToAttributeMap(d)}};
H.createObservers=function(M,W){for(var w=this.prototype,d=0;d<M.length;d++)w._createMethodObserver(M[d],W)};
H.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);A.prototype._initializeProperties.call(this);this.rootPath=CNn;this.importPath=this.constructor.importPath;var M=this.constructor;if(!M.hasOwnProperty("__propertyDefaults")){M.__propertyDefaults=null;var W=M._properties,w;for(w in W){var d=W[w];"value"in d&&(M.__propertyDefaults=M.__propertyDefaults||{},M.__propertyDefaults[w]=d)}}if(M=M.__propertyDefaults)for(var O in M)W=M[O],
this._canApplyPropertyDefault(O)&&(W=typeof W.value=="function"?W.value.call(this):W.value,this._hasAccessor(O)?this._setPendingProperty(O,W,!0):this[O]=W)};
H.prototype._canApplyPropertyDefault=function(M){return!this.hasOwnProperty(M)};
H._processStyleText=function(M,W){return gjc(M,W)};
H._finalizeTemplate=function(M){var W=this.prototype._template;if(W&&!W.__polymerFinalized){W.__polymerFinalized=!0;var w=this.importPath;w=w?_.h9(w):"";U(this,W,M,w);this.prototype._bindTemplate(W)}};
H.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);A.prototype.connectedCallback.call(this)};
H.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);A.prototype.ready.call(this)};
H.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));A.prototype._readyClients.call(this)};
H.prototype._attachDom=function(M){var W=(0,_.X7)(this);if(W.attachShadow)return M?(W.shadowRoot||(W.attachShadow({mode:"open",shadyUpgradeFragment:M}),W.shadowRoot.appendChild(M),this.constructor._styleSheet&&(W.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),cGg&&window.ShadyDOM&&window.ShadyDOM.flushInitial(W.shadowRoot),W.shadowRoot):null;throw Error("Jd");};
H.prototype.updateStyles=function(M){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,M)};
H.prototype.resolveUrl=function(M,W){!W&&this.importPath&&(W=_.h9(this.importPath));return _.h9(M,W)};
H._parseTemplateContent=function(M,W,w){W.dynamicFns=W.dynamicFns||this._properties;return A._parseTemplateContent.call(this,M,W,w)};
H._addTemplatePropertyEffect=function(M,W,w){!a$||W in this._properties||w.info.part.signature&&w.info.part.signature.static||w.info.part.hostProp||M.nestedTemplate||console.warn("Property '"+W+"' used in template but not declared in 'properties'; attribute will not be observed.");return A._addTemplatePropertyEffect.call(this,M,W,w)};
_.D5.Object.defineProperties(H,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var M=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof M==="function"&&(M=M());if(M===void 0){if(M=this.hasOwnProperty("is")){M=this.is;var W=null;if(M&&(!xA||tk3)&&(W=uu.import(M,"template"),xA&&!W))throw Error("Id`"+M);M=W}M=M||Object.getPrototypeOf(this.prototype).constructor.template}this._template=M}return this._template},
set:function(M){this._template=M}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var M=this.importMeta;M?this._importPath=a9K(M.url):this._importPath=(M=uu.import(this.is))&&M.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return H});var Oep=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(H){return H}}),pu0=function(H,U){u82(H,U);
this.value=U.reduce(function(A,M,W){return A+Lch(M)+H[W+1]},H[0]).toString()},u82;
pu0.prototype.toString=function(){return this.value};
_.Zez=function(H){var U=_.QY.apply(1,arguments);u82(H,U);var A=document.createElement("template");U=U.reduce(function(M,W,w){if(W instanceof HTMLTemplateElement)W=W.innerHTML;else if(W instanceof pu0)W=Lch(W);else throw Error("Ld`"+W);return M+W+H[w+1]},H[0]);
Oep&&(U=Oep.createHTML(U));A.innerHTML=U;return A};
u82=function(H,U){if(!Array.isArray(H)||!Array.isArray(H.raw)||U.length!==H.length-1)throw new TypeError("Md");};var gg=mM(HTMLElement);var fd2=L3(function(H){var U=mM(H);H=function(){var A=U.call(this)||this;A.__lastItems=null;A.__lastMulti=null;A.__selectedMap=null;return A};
_.R(H,U);H.prototype.__updateSelection=function(A,M){var W=M.path;W=="items"?(M=M.base||[],W=this.__lastItems,A!==this.__lastMulti&&this.clearSelection(),W&&(W=SP4(M,W),this.__applySplices(W)),this.__lastItems=M,this.__lastMulti=A):M.path=="items.splices"?this.__applySplices(M.value.indexSplices):(A=W.slice(6),M=parseInt(A,10),A.indexOf(".")<0&&A==M&&this.__deselectChangedIdx(M))};
H.prototype.__applySplices=function(A){for(var M=this,W=this.__selectedMap,w={},d=0;d<A.length;w={s$jscomp$109:void 0},d++){w.s$jscomp$109=A[d];W.forEach(function(F){return function(P,n){P<F.s$jscomp$109.index||(P>=F.s$jscomp$109.index+F.s$jscomp$109.removed.length?W.set(n,P+F.s$jscomp$109.addedCount-F.s$jscomp$109.removed.length):W.set(n,-1))}}(w));
for(var O=0;O<w.s$jscomp$109.addedCount;O++){var f=w.s$jscomp$109.index+O;W.has(this.items[f])&&W.set(this.items[f],f)}}this.__updateLinks();var J=0;W.forEach(function(F,P){F<0?(M.multi?M.splice("selected",J,1):M.selected=M.selectedItem=null,W.delete(P)):J++})};
H.prototype.__updateLinks=function(){var A=this;this.__dataLinkedPaths={};if(this.multi){var M=0;this.__selectedMap.forEach(function(W){W>=0&&A.linkPaths("items."+W,"selected."+M++)})}else this.__selectedMap.forEach(function(W){A.linkPaths("selected","items."+W);
A.linkPaths("selectedItem","items."+W)})};
H.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
H.prototype.isSelected=function(A){return this.__selectedMap.has(A)};
H.prototype.isIndexSelected=function(A){return this.isSelected(this.items[A])};
H.prototype.__deselectChangedIdx=function(A){var M=this,W=this.__selectedIndexForItemIndex(A);if(W>=0){var w=0;this.__selectedMap.forEach(function(d,O){W==w++&&M.deselect(O)})}};
H.prototype.__selectedIndexForItemIndex=function(A){if(A=this.__dataLinkedPaths["items."+A])return parseInt(A.slice(9),10)};
H.prototype.deselect=function(A){var M=this.__selectedMap.get(A);if(M>=0){this.__selectedMap.delete(A);var W;this.multi&&(W=this.__selectedIndexForItemIndex(M));this.__updateLinks();this.multi?this.splice("selected",W,1):this.selected=this.selectedItem=null}};
H.prototype.deselectIndex=function(A){this.deselect(this.items[A])};
H.prototype.select=function(A){this.selectIndex(this.items.indexOf(A))};
H.prototype.selectIndex=function(A){var M=this.items[A];this.isSelected(M)?this.toggle&&this.deselectIndex(A):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(M,A),this.__updateLinks(),this.multi?this.push("selected",M):this.selected=this.selectedItem=M)};
_.D5.Object.defineProperties(H,{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 H}),Jyp=fd2(gg),aa=function(){return Jyp.apply(this,arguments)||this};
_.R(aa,Jyp);_.D5.Object.defineProperties(aa,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(aa.is,aa);var KdK=window.Polymer;window.Polymer=function(H){return window.Polymer._polymerFn(H)};
KdK&&Object.assign(Polymer,KdK);Polymer._polymerFn=function(){throw Error("Nd");};/*

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:gjc,resolveUrl:_.h9,pathFromUrl:a9K};Polymer.DomModule=uu;Polymer.Async={timeOut:_.p3,animationFrame:_.VD,idlePeriod:Glk,microTask:NC};Polymer.dedupingMixin=L3;Polymer.wrap=_.X7;Polymer.PropertiesChanged=qUn;Polymer.telemetry={instanceCount:h2w,incrementInstanceCount:function(){h2w++},
registrations:tV4,register:cN8,dumpRegistrations:function(){tV4.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=kl2;Polymer.CaseMap={dashToCamelCase:v1,camelToDashCase:T9};Polymer.PropertyAccessors=Vkz;Polymer.TemplateStamp=WdH;Polymer.Path={isPath:jD,root:I1,isAncestor:$T8,isDescendant:QZ,translate:VZ,matches:l9r,normalize:Ha,split:GsN,get:MC,set:YaN,isDeep:jD};Polymer.Settings={useShadow:LK,useNativeCSSProperties:Eak,useNativeCustomElements:mvh,get rootPath(){return CNn},setRootPath:function(H){CNn=H},
get sanitizeDOMValue(){return iu},setSanitizeDOMValue:function(H){iu=H},
get passiveTouchGestures(){return rIc},setPassiveTouchGestures:function(H){rIc=H},
get strictTemplatePolicy(){return xA},setStrictTemplatePolicy:function(H){xA=H},
get allowTemplateFromDomModule(){return tk3},setAllowTemplateFromDomModule:function(H){tk3=H},
get legacyOptimizations(){return pK},setLegacyOptimizations:function(H){pK=H},
get syncInitialRender(){return cGg},setSyncInitialRender:function(H){cGg=H},
get legacyUndefined(){return dV},setLegacyUndefined:function(H){dV=H},
get legacyWarnings(){return a$},setLegacyWarnings:function(H){a$=H},
get orderedComputed(){return yGy},setOrderedComputed:function(H){yGy=H},
get fastDomIf(){return n3},setFastDomIf:function(H){n3=H},
get removeNestedTemplates(){return s9},setRemoveNestedTemplates:function(H){s9=H},
get suppressTemplateNotifications(){return NA},setSuppressTemplateNotifications:NA};Polymer.rootPath!==void 0&&(CNn=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(iu=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(rIc=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(xA=Polymer.strictTemplatePolicy);tk3=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(pK=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(cGg=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(dV=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(a$=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(yGy=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(n3=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(s9=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(NA=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return iu},
set:function(H){iu=H}});Polymer.PropertyEffects=E9;Polymer.StyleGather={stylesFromModules:JI8,stylesFromModule:fBN,stylesFromTemplate:KcE,stylesFromModuleImports:o4V,cssFromModules:P$_,cssFromModule:Fc8,cssFromTemplate:sHE,cssFromModuleImports:function(H){return(H=uu.import(H))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(H):""}};Polymer.ElementMixin=mM;Polymer.updateStyles=function(H){window.ShadyCSS&&window.ShadyCSS.styleDocument(H)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:SP4};Polymer.html=_.Zez;Polymer.htmlLiteral=function(H){return new pu0(H,_.QY.apply(1,arguments))};Polymer.Element=gg;Polymer.ArraySelectorMixin=fd2;Polymer.ArraySelector=aa;var o$w=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Fdr=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,W3F=/@media\s(.*)/;var g40=null,mPc=window.HTMLImports&&window.HTMLImports.whenReady||null,aBV;var P0k=null,xG=null,zI=function(){this.customStyles=[];this.enqueued=!1;xPc(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},sSz=function(H){!H.enqueued&&xG&&(H.enqueued=!0,xPc(xG))};
zI.prototype.addCustomStyle=function(H){H.__seenByShadyCSS||(H.__seenByShadyCSS=!0,this.customStyles.push(H),sSz(this))};
zI.prototype.getStyleForCustomStyle=function(H){if(H.__shadyCSSCachedStyle)return H.__shadyCSSCachedStyle;var U;H.getStyle?U=H.getStyle():U=H;return U};
zI.prototype.processStyles=function(){for(var H=this.customStyles,U=0;U<H.length;U++){var A=H[U];if(!A.__shadyCSSCachedStyle){var M=this.getStyleForCustomStyle(A);M&&(M=M.__appliedElement||M,P0k&&P0k(M),A.__shadyCSSCachedStyle=M)}}return H};
zI.prototype.addCustomStyle=zI.prototype.addCustomStyle;zI.prototype.getStyleForCustomStyle=zI.prototype.getStyleForCustomStyle;zI.prototype.processStyles=zI.prototype.processStyles;Object.defineProperties(zI.prototype,{transformCallback:{get:function(){return P0k},
set:function(H){P0k=H}},
validateCallback:{get:function(){return xG},
set:function(H){var U=!1;xG||(U=!0);xG=H;U&&sSz(this)}}});var C$M=!(window.ShadyDOM&&window.ShadyDOM.inUse),zoN,eX;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(eX=window.ShadyCSS.cssBuild);var n$g=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?zoN=window.ShadyCSS.nativeCss:window.ShadyCSS?(td0(window.ShadyCSS),window.ShadyCSS=void 0):td0(window.WebComponents&&window.WebComponents.flags);var UbV=zoN;var NXB=new zI;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(H,U){NXB.processStyles();RoV(H,U)},
styleElement:function(){NXB.processStyles()},
styleDocument:function(H){NXB.processStyles();RoV(document.body,H)},
getComputedStyleValue:function(H,U){return E48(H,U)},
flushCustomStyles:function(){},
nativeCss:UbV,nativeShadow:C$M,cssBuild:eX,disableRuntime:n$g});window.ShadyCSS.CustomStyleInterface=NXB;var Sck=window.ShadyCSS.CustomStyleInterface,C3=function(){var H=HTMLElement.call(this)||this;H._style=null;Sck.addCustomStyle(H);return H};
_.R(C3,HTMLElement);C3.prototype.getStyle=function(){if(this._style)return this._style;var H=this.querySelector("style");if(!H)return null;this._style=H;var U=H.getAttribute("include");U&&(H.removeAttribute("include"),H.textContent=P$_(U)+H.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
C3.prototype.getStyle=C3.prototype.getStyle;window.customElements.define("custom-style",C3);Polymer.CustomStyle=C3;var tM=function(){this._timer=this._callback=this._asyncModule=null},cR,Ldn;
tM.prototype.setConfig=function(H,U){var A=this;this._asyncModule=H;this._callback=U;this._timer=this._asyncModule.run(function(){A._timer=null;cR.delete(A);A._callback()})};
tM.prototype.cancel=function(){this.isActive()&&(pXm(this),cR.delete(this))};
var pXm=function(H){H.isActive()&&(H._asyncModule.cancel(H._timer),H._timer=null)};
tM.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
tM.prototype.isActive=function(){return this._timer!=null};
_.yF=function(H,U,A){H instanceof tM?pXm(H):H=new tM;H.setConfig(U,A);return H};
cR=new Set;_.BR=function(H){cR.add(H)};
Ldn=function(){var H=!!cR.size;cR.forEach(function(U){try{U.flush()}catch(A){setTimeout(function(){throw A;})}});
return H};var yIK=typeof document.head.style.touchAction==="string",cI0=["mousedown","mousemove","mouseup","click"],qPr=[0,1,4,2],RDh;try{RDh=(new MouseEvent("test",{buttons:1})).buttons===1}catch(H){RDh=!1}var YP4=RDh,BjN=!1;(function(){try{var H=Object.defineProperty({},"passive",{get:function(){BjN=!0}});
window.addEventListener("test",null,H);window.removeEventListener("test",null,H)}catch(U){}})();
var DPc=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),$PK=[],E$g={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},Mm_={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},lBK=function(H){var U=H.sourceCapabilities;if(!U||U.firesTouchEvents)if(H.__polymerGesturesHandled={skip:!0},H.type==="click"){U=!1;for(var A=Tj_(H),M=0;M<A.length;M++){if(A[M].nodeType===Node.ELEMENT_NODE)if(A[M].localName==="label")$PK.push(A[M]);
else if(E$g[A[M].localName]){var W=A[M];var w=Array.prototype.slice.call(W.labels||[]);if(!w.length){w=[];try{var d=W.getRootNode();if(W.id){var O=d.querySelectorAll("label[for = '"+W.id+"']");for(W=0;W<O.length;W++)w.push(O[W])}}catch(f){}}for(W=0;W<w.length;W++)U=U||$PK.indexOf(w[W])>-1}if(A[M]===mDB)return}U||(H.preventDefault(),H.stopPropagation())}},mDB=null,rg=null,IBr=0,QHE=0,jHt=-1,Vdh=!1;
document.addEventListener("touchend",function(H){rg||Go4(!0);mDB=Tj_(H)[0];rg=_.yF(rg,_.p3.after(2500),function(){Go4();rg=mDB=null})},BjN?{passive:!0}:!1);
var Tj_=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(H){return H.composedPath&&H.composedPath()||[]},F7={},KK=[];
HTF({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){J0(this.info)},
mousedown:function(H){if(fK(H)){var U=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H),A=this;koK(this.info,function(M){fK(M)||(SX("up",U,M),J0(A.info))},function(M){fK(M)&&SX("up",U,M);
J0(A.info)});
SX("down",U,H)}},
touchstart:function(H){SX("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H),H.changedTouches[0],H)},
touchend:function(H){SX("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H),H.changedTouches[0],H)}});
HTF({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(H){this.moves.length>2&&this.moves.shift();this.moves.push(H)},
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;J0(this.info)},
mousedown:function(H){if(fK(H)){var U=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H),A=this,M=function(W){var w=W.clientX,d=W.clientY;UnE(A.info,w,d)&&(A.info.state=A.info.started?W.type==="mouseup"?"end":"track":"start",A.info.state==="start"&&o$("tap"),A.info.addMove({x:w,y:d}),fK(W)||(A.info.state="end",J0(A.info)),U&&Ag_(A.info,U,W),A.info.started=!0)};
koK(this.info,M,function(W){A.info.started&&M(W);J0(A.info)});
this.info.x=H.clientX;this.info.y=H.clientY}},
touchstart:function(H){H=H.changedTouches[0];this.info.x=H.clientX;this.info.y=H.clientY},
touchmove:function(H){var U=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H);H=H.changedTouches[0];var A=H.clientX,M=H.clientY;UnE(this.info,A,M)&&(this.info.state==="start"&&o$("tap"),this.info.addMove({x:A,y:M}),Ag_(this.info,U,H),this.info.state="track",this.info.started=!0)},
touchend:function(H){var U=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H);H=H.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:H.clientX,y:H.clientY}),Ag_(this.info,U,H))}});
HTF({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(H){fK(H)&&(this.info.x=H.clientX,this.info.y=H.clientY)},
click:function(H){fK(H)&&W9F(this.info,H)},
touchstart:function(H){H=H.changedTouches[0];this.info.x=H.clientX;this.info.y=H.clientY},
touchend:function(H){W9F(this.info,H.changedTouches[0],H)}});var g$w=L3(function(H){var U=function(){return H.apply(this,arguments)||this};
_.R(U,H);U.prototype._addEventListenerToNode=function(A,M,W){Pa(A,M,W)||H.prototype._addEventListenerToNode.call(this,A,M,W)};
U.prototype._removeEventListenerFromNode=function(A,M,W){so(A,M,W)||H.prototype._removeEventListenerFromNode.call(this,A,M,W)};
return U});var ef=L3(function(H){var U=function(){return H.apply(this,arguments)||this};
_.R(U,H);U.prototype._shouldPropertyChange=function(A,M,W){return wnc(this,A,M,W,!0)};
return U}),ad3=L3(function(H){var U=function(){return H.apply(this,arguments)||this};
_.R(U,H);U.prototype._shouldPropertyChange=function(A,M,W){return wnc(this,A,M,W,this.mutableData)};
_.D5.Object.defineProperties(U,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return U});
ef._mutablePropertyChange=wnc;var Xn_=!1;var xDr=g$w(ad3(E9(HTMLElement))),D7=function(){var H=xDr.call(this)||this;if(xA)throw Error("Od");H.root=null;H.$=null;H.__children=null;return H};
_.R(D7,xDr);_.X=D7.prototype;_.X.attributeChangedCallback=function(){this.mutableData=!0};
_.X.connectedCallback=function(){iT7()||(this.style.display="none");this.render()};
_.X.disconnectedCallback=function(){this.__removeChildren()};
_.X.__insertChildren=function(){(0,_.X7)((0,_.X7)(this).parentNode).insertBefore(this.root,this)};
_.X.__removeChildren=function(){if(this.__children)for(var H=0;H<this.__children.length;H++)this.root.appendChild(this.__children[H])};
_.X.render=function(){var H=this;if(!this.__children){var U=U||this.querySelector("template");if(!U){var A=new MutationObserver(function(){if(U=H.querySelector("template"))A.disconnect(),H.render();else throw Error("Pd");});
A.observe(this,{childList:!0});return}this.root=this._stampTemplate(U);this.$=this.root.$;this.__children=[];for(var M=this.root.firstChild;M;M=M.nextSibling)this.__children[this.__children.length]=M;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.D5.Object.defineProperties(D7,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",D7);Polymer.Debouncer=tM;Polymer.Gestures={gestures:F7,recognizers:KK,deepTargetFind:v47,addListener:Pa,removeListener:so,register:HTF,setTouchAction:_.nK,prevent:o$,resetMouseCanceller:function(){rg&&rg.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Pa,remove:so};Polymer.GestureEventListeners=g$w;Polymer.MutableData=ef;Polymer.OptionalMutableData=ad3;Polymer.DomBind=D7;_.$G=function(){do{var H=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var U=Ldn()}while(H||U)};var bTM=null;dnV.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:dnV,writable:!0}});var F9N=E9(dnV),oFF=ef(F9N),zDr=E9(function(){}),R$=function(H){var U=zDr.call(this)||this;
U._configureProperties(H);U.root=U._stampTemplate(U.__dataHost);var A=[];U.children=A;for(var M=U.root.firstChild;M;M=M.nextSibling)A.push(M),M.__templatizeInstance=U;U.__templatizeOwner&&U.__templatizeOwner.__hideTemplateChildren__&&U._showHideChildren(!0);A=U.__templatizeOptions;(H&&A.instanceProps||!A.instanceProps)&&U._enableProperties();return U};
_.R(R$,zDr);_.X=R$.prototype;_.X._configureProperties=function(H){if(this.__templatizeOptions.forwardHostProp)for(var U in this.__hostProps)this._setPendingProperty(U,this.__dataHost["_host_"+U]);for(var A in H)this._setPendingProperty(A,H[A])};
_.X.forwardHostProp=function(H,U){this._setPendingPropertyOrPath(H,U,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.X._addEventListenerToNode=function(H,U,A){var M=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(H,U,function(w){w.model=M;A(w)});
else{var W=this.__dataHost.__dataHost;W&&W._addEventListenerToNode(H,U,A)}};
_.X._showHideChildren=function(H){uVK(H,this.children)};
_.X._setUnmanagedPropertyToNode=function(H,U,A){H.__hideTemplateChildren__&&H.nodeType==Node.TEXT_NODE&&U=="textContent"?H.__polymerTextContent__=A:zDr.prototype._setUnmanagedPropertyToNode.call(this,H,U,A)};
_.X.dispatchEvent=function(){return!0};
_.D5.Object.defineProperties(R$.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var H=this.__parentModel;if(!H){var U;H=this;do H=H.__dataHost.__dataHost;while((U=H.__templatizeOptions)&&!U.parentModel);this.__parentModel=H}return H}}});
var fXc=ef(R$);var l6=function(){var H=gg.call(this)||this;H.__renderDebouncer=null;H._lastIf=!1;H.__hideTemplateChildren__=!1;return H};
_.R(l6,gg);_.X=l6.prototype;_.X.__debounceRender=function(){var H=this;this.__renderDebouncer=_.yF(this.__renderDebouncer,NC,function(){return H.__render()});
_.BR(this.__renderDebouncer)};
_.X.disconnectedCallback=function(){gg.prototype.disconnectedCallback.call(this);var H=(0,_.X7)(this).parentNode;H&&(H.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.X7)(H).host)||this.__teardownInstance()};
_.X.connectedCallback=function(){gg.prototype.connectedCallback.call(this);iT7()||(this.style.display="none");this.if&&this.__debounceRender()};
_.X.__ensureTemplate=function(){var H=this;if(!this.__template){var U=this._templateInfo?this:(0,_.X7)(this).querySelector("template");if(!U){var A=new MutationObserver(function(){if((0,_.X7)(H).querySelector("template"))A.disconnect(),H.__render();else throw Error("Sd");});
A.observe(this,{childList:!0});return!1}this.__template=U}return!0};
_.X.__ensureInstance=function(){var H=(0,_.X7)(this).parentNode;if(this.__hasInstance()){var U=this.__getInstanceNodes();if(U&&U.length&&(0,_.X7)(this).previousSibling!==U[U.length-1])for(var A=0,M=void 0;A<U.length&&(M=U[A]);A++)(0,_.X7)(H).insertBefore(M,this)}else{if(!H||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(H)}return!0};
_.X.render=function(){_.$G()};
_.X.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();NA&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.X.__hasInstance=function(){};
_.X.__getInstanceNodes=function(){};
_.X.__createAndInsertInstance=function(){};
_.X.__teardownInstance=function(){};
_.X._showHideChildren=function(){};
_.D5.Object.defineProperties(l6,{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:l6.prototype.__debounceRender},restamp:{type:Boolean,observer:l6.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var C0n=function(){var H=l6.call(this)||this;H.__instance=null;H.__syncInfo=null;return H};
_.R(C0n,l6);_.X=C0n.prototype;_.X.__hasInstance=function(){return!!this.__instance};
_.X.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.X.__createAndInsertInstance=function(H){var U=this,A=this.__dataHost||this;if(xA&&!this.__dataHost)throw Error("Qd");var M=A._bindTemplate(this.__template,!0);M.runEffects=function(W,w,d){var O=U.__syncInfo;if(U.if)O&&(U.__syncInfo=null,U._showHideChildren(),w=Object.assign(O.changedProps,w)),W(w,d);else if(U.__instance)if(O||(O=U.__syncInfo={runEffects:W,changedProps:{}}),d)for(var f in w)W=I1(f),O.changedProps[W]=U.__dataHost[W];else Object.assign(O.changedProps,w)};
this.__instance=A._stampTemplate(this.__template,M);(0,_.X7)(H).insertBefore(this.__instance,this)};
_.X.__syncHostProperties=function(){var H=this.__syncInfo;H&&(this.__syncInfo=null,H.runEffects(H.changedProps,!1))};
_.X.__teardownInstance=function(){var H=this.__dataHost||this;this.__instance&&(H._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.X._showHideChildren=function(){var H=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==H&&(this.__instance.__hidden=H,uVK(H,this.__instance.templateInfo.childNodes));H||this.__syncHostProperties()};
var tqk=function(){var H=l6.call(this)||this;H.__ctor=null;H.__instance=null;H.__invalidProps=null;return H};
_.R(tqk,l6);_.X=tqk.prototype;_.X.__hasInstance=function(){return!!this.__instance};
_.X.__getInstanceNodes=function(){return this.__instance.children};
_.X.__createAndInsertInstance=function(H){this.__ctor||(this.__ctor=Eo(this.__template,this,{mutableData:!0,forwardHostProp:function(U,A){this.__instance&&(this.if?this.__instance.forwardHostProp(U,A):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[I1(U)]=!0))}}));
this.__instance=new this.__ctor;(0,_.X7)(H).insertBefore(this.__instance.root,this)};
_.X.__teardownInstance=function(){if(this.__instance){var H=this.__instance.children;if(H&&H.length){var U=(0,_.X7)(H[0]).parentNode;if(U){U=(0,_.X7)(U);for(var A=0,M=void 0;A<H.length&&(M=H[A]);A++)U.removeChild(M)}}this.__instance=this.__invalidProps=null}};
_.X.__syncHostProperties=function(){var H=this.__invalidProps;if(H){this.__invalidProps=null;for(var U in H)this.__instance._setPendingProperty(U,this.__dataHost[U]);this.__instance._flushProperties()}};
_.X._showHideChildren=function(){var H=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==H&&(this.__instance.__hidden=H,this.__instance._showHideChildren(H));H||this.__syncHostProperties()};
_.wX=n3?C0n:tqk;customElements.define(_.wX.is,_.wX);Polymer.enqueueDebouncer=_.BR;Polymer.flush=_.$G;Polymer.Templatize={templatize:Eo,modelForElement:pn7};Polymer.TemplateInstanceBase=R$;Polymer.DomIf=_.wX;var cyr=ad3(gg),WX=function(){var H=cyr.call(this)||this;H.__instances=[];H.__renderDebouncer=null;H.__itemsIdxToInstIdx={};H.__chunkCount=null;H.__renderStartTime=null;H.__itemsArrayChanged=!1;H.__shouldMeasureChunk=!1;H.__shouldContinueChunking=!1;H.__chunkingId=0;H.__sortFn=null;H.__filterFn=null;H.__observePaths=null;H.__ctor=null;H.__isDetached=!0;H.template=null;return H};
_.R(WX,cyr);_.X=WX.prototype;_.X.disconnectedCallback=function(){cyr.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var H=0;H<this.__instances.length;H++)this.__detachInstance(H);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.X.connectedCallback=function(){cyr.prototype.connectedCallback.call(this);iT7()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var H=(0,_.X7)((0,_.X7)(this).parentNode),U=0;U<this.__instances.length;U++)this.__attachInstance(U,H);this.__chunkingId&&this.__render()}};
_.X.__ensureTemplatized=function(){var H=this;if(!this.__ctor){var U=this.template=this._templateInfo?this:this.querySelector("template");if(!U){var A=new MutationObserver(function(){if(H.querySelector("template"))A.disconnect(),H.__render();else throw Error("Td");});
A.observe(this,{childList:!0});return!1}var M={};M[this.as]=!0;M[this.indexAs]=!0;M[this.itemsIndexAs]=!0;this.__ctor=Eo(U,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:M,forwardHostProp:function(W,w){for(var d=this.__instances,O=0,f=void 0;O<d.length&&(f=d[O]);O++)f.forwardHostProp(W,w)},
notifyInstanceProp:function(W,w,d){l9r(this.as,w)&&(W=W[this.itemsIndexAs],w==this.as&&(this.items[W]=d),w=VZ(this.as,"items."+W,w),this.notifyPath(w,d))}})}return!0};
_.X.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.X.__functionFromPropertyValue=function(H){if(typeof H==="string"){var U=this.__getMethodHost();return function(){return U[H].apply(U,arguments)}}return H};
_.X.__sortChanged=function(H){this.__sortFn=this.__functionFromPropertyValue(H);this.items&&this.__debounceRender(this.__render)};
_.X.__filterChanged=function(H){this.__filterFn=this.__functionFromPropertyValue(H);this.items&&this.__debounceRender(this.__render)};
_.X.__computeFrameTime=function(H){return Math.ceil(1E3/H)};
_.X.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.X.__handleObservedPaths=function(H){if(this.__sortFn||this.__filterFn)if(!H)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var U=this.__observePaths,A=0;A<U.length;A++)H.indexOf(U[A])===0&&this.__debounceRender(this.__render,this.delay)};
_.X.__itemsChanged=function(H){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(H.path,H.value)||(H.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.X.__debounceRender=function(H,U){U=U===void 0?0:U;this.__renderDebouncer=_.yF(this.__renderDebouncer,U>0?_.p3.after(U):NC,H.bind(this));_.BR(this.__renderDebouncer)};
_.X.render=function(){this.__debounceRender(this.__render);_.$G()};
_.X.__render=function(){var H=this;if(this.__ensureTemplatized()){var U=this.items||[],A=this.__sortAndFilterItems(U),M=this.__calculateLimit(A.length);this.__updateInstances(U,M,A);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){H.__chunkingId=null;H.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);NA&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.X.__sortAndFilterItems=function(H){for(var U=this,A=Array(H.length),M=0;M<H.length;M++)A[M]=M;this.__filterFn&&(A=A.filter(function(W,w,d){return U.__filterFn(H[W],w,d)}));
this.__sortFn&&A.sort(function(W,w){return U.__sortFn(H[W],H[w])});
return A};
_.X.__calculateLimit=function(H){var U=H,A=this.__instances.length;if(this.initialCount){var M;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(U=Math.min(H,this.initialCount),this.__chunkCount=(M=Math.max(U-A,0))||1):(M=Math.min(Math.max(H-A,0),this.__chunkCount),U=Math.min(A+M,H));this.__shouldMeasureChunk=M===this.__chunkCount;this.__shouldContinueChunking=U<H;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return U};
_.X.__continueChunking=function(){if(this.__shouldMeasureChunk){var H=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/H*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.X.__updateInstances=function(H,U,A){var M=this.__itemsIdxToInstIdx={},W;for(W=0;W<U;W++){var w=this.__instances[W],d=A[W],O=H[d];M[d]=W;w?(w._setPendingProperty(this.as,O),w._setPendingProperty(this.indexAs,W),w._setPendingProperty(this.itemsIndexAs,d),w._flushProperties()):this.__insertInstance(O,W,d)}for(H=this.__instances.length-1;H>=W;H--)this.__detachAndRemoveInstance(H)};
_.X.__detachInstance=function(H){H=this.__instances[H];for(var U=(0,_.X7)(H.root),A=0;A<H.children.length;A++)U.appendChild(H.children[A]);return H};
_.X.__attachInstance=function(H,U){U.insertBefore(this.__instances[H].root,this)};
_.X.__detachAndRemoveInstance=function(H){this.__detachInstance(H);this.__instances.splice(H,1)};
_.X.__stampInstance=function(H,U,A){var M={};M[this.as]=H;M[this.indexAs]=U;M[this.itemsIndexAs]=A;return new this.__ctor(M)};
_.X.__insertInstance=function(H,U,A){H=this.__stampInstance(H,U,A);A=(A=this.__instances[U+1])?A.children[0]:this;(0,_.X7)((0,_.X7)(this).parentNode).insertBefore(H.root,A);return this.__instances[U]=H};
_.X._showHideChildren=function(H){for(var U=0;U<this.__instances.length;U++)this.__instances[U]._showHideChildren(H)};
_.X.__handleItemPath=function(H,U){var A=H.slice(6),M=A.indexOf(".");H=M<0?A:A.substring(0,M);if(H==parseInt(H,10)){A=M<0?"":A.substring(M+1);this.__handleObservedPaths(A);if(H=this.__instances[this.__itemsIdxToInstIdx[H]])H._setPendingPropertyOrPath(this.as+(A?"."+A:""),U,!1,!0),H._flushProperties();return!0}};
_.X.itemForElement=function(H){return(H=this.modelForElement(H))&&H[this.as]};
_.X.indexForElement=function(H){return(H=this.modelForElement(H))&&H[this.indexAs]};
_.X.modelForElement=function(H){return pn7(this.template,H)};
_.D5.Object.defineProperties(WX,{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:WX.prototype.__sortChanged},filter:{type:Function,observer:WX.prototype.__filterChanged},observe:{type:String,observer:WX.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!NA,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.*)"]}}});
WX.prototype._setRenderedItemCount=function(){};
customElements.define(WX.is,WX);Polymer.DomRepeat=WX;var yyn=function(H,U){var A=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=H;this.callback=U;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){A._schedule()};
this.connect();this._schedule()},BXk=function(H){var U=(0,_.X7)(H);
if(zS(H))return U.assignedNodes({flatten:!0});H=[];for(var A=0;A<U.childNodes.length;A++){var M=U.childNodes[A];zS(M)?H.push.apply(H,_.vI((0,_.X7)(M).assignedNodes({flatten:!0}))):H.push(M)}return H};
_.X=yyn.prototype;_.X.connect=function(){var H=this;zS(this._target)?this._listenSlots([this._target]):(0,_.X7)(this._target).children&&(this._listenSlots((0,_.X7)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(U){H._processMutations(U)}):(this._nativeChildrenObserver=new MutationObserver(function(U){H._processMutations(U)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.X.disconnect=function(){zS(this._target)?this._unlistenSlots([this._target]):(0,_.X7)(this._target).children&&(this._unlistenSlots((0,_.X7)(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};
_.X._schedule=function(){var H=this;this._scheduled||(this._scheduled=!0,NC.run(function(){return H.flush()}))};
_.X._processMutations=function(H){this._processSlotMutations(H);this.flush()};
_.X._processSlotMutations=function(H){if(H)for(var U=0;U<H.length;U++){var A=H[U];A.addedNodes&&this._listenSlots(A.addedNodes);A.removedNodes&&this._unlistenSlots(A.removedNodes)}};
_.X.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 H={target:this._target,addedNodes:[],removedNodes:[]},U=BXk(this._target),A=SP4(U,this._effectiveNodes),M=0,W=void 0;M<A.length&&(W=A[M]);M++)for(var w=0,d=void 0;w<W.removed.length&&(d=W.removed[w]);w++)H.removedNodes.push(d);
M=0;for(W=void 0;M<A.length&&(W=A[M]);M++)for(w=W.index;w<W.index+W.addedCount;w++)H.addedNodes.push(U[w]);this._effectiveNodes=U;U=!1;if(H.addedNodes.length||H.removedNodes.length)U=!0,this.callback.call(this._target,H);return U};
_.X._listenSlots=function(H){for(var U=0;U<H.length;U++){var A=H[U];zS(A)&&A.addEventListener("slotchange",this._boundSchedule)}};
_.X._unlistenSlots=function(H){for(var U=0;U<H.length;U++){var A=H[U];zS(A)&&A.removeEventListener("slotchange",this._boundSchedule)}};var GI=Element.prototype,ryy=GI.matches||GI.matchesSelector||GI.mozMatchesSelector||GI.msMatchesSelector||GI.oMatchesSelector||GI.webkitMatchesSelector,eD2=function(H,U){return ryy.call(H,U)},CK=function(H){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(H);
this.node=H},Gur;
_.X=CK.prototype;_.X.observeNodes=function(H){return new yyn(this.node,H)};
_.X.unobserveNodes=function(H){H.disconnect()};
_.X.notifyObserver=function(){};
_.X.deepContains=function(H){if((0,_.X7)(this.node).contains(H))return!0;var U=H;for(H=H.ownerDocument;U&&U!==H&&U!==this.node;)U=(0,_.X7)(U).parentNode||(0,_.X7)(U).host;return U===this.node};
_.X.getOwnerRoot=function(){return(0,_.X7)(this.node).getRootNode()};
_.X.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.X7)(this.node).assignedNodes({flatten:!0}):[]};
_.X.getDestinationInsertionPoints=function(){for(var H=[],U=(0,_.X7)(this.node).assignedSlot;U;)H.push(U),U=(0,_.X7)(U).assignedSlot;return H};
_.X.importNode=function(H,U){return(0,_.X7)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(H,U)};
_.X.getEffectiveChildNodes=function(){return BXk(this.node)};
_.X.queryDistributedElements=function(H){for(var U=this.getEffectiveChildNodes(),A=[],M=0,W=U.length,w=void 0;M<W&&(w=U[M]);M++)w.nodeType===Node.ELEMENT_NODE&&eD2(w,H)&&A.push(w);return A};
_.D5.Object.defineProperties(CK.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var H=this.node;return H._activeElement!==void 0?H._activeElement:H.activeElement}}});
var YG=function(H){this.event=H};
_.D5.Object.defineProperties(YG.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 DDr=CK;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var $D3=window.ShadyDOM.Wrapper,ld2=function(){return $D3.apply(this,arguments)||this};
_.R(ld2,$D3);Object.getOwnPropertyNames(CK.prototype).forEach(function(H){H!="activeElement"&&H!="constructor"&&(ld2.prototype[H]=CK.prototype[H])});
RPt(ld2.prototype,["classList"]);DDr=ld2;Object.defineProperties(YG.prototype,{localTarget:{get:function(){var H=this.event.currentTarget;H=H&&_.Ig(H).getOwnerRoot();for(var U=this.path,A=0;A<U.length;A++){var M=U[A];if(_.Ig(M).getOwnerRoot()===H)return M}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else L97(),RPt(CK.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),EF8();Gur=DDr;_.Ig=function(H){H=H||document;if(H instanceof DDr)return H;if(H instanceof YG)return H;var U=H.__domApi;U||(H instanceof Event?U=new YG(H):U=new DDr(H),H.__domApi=U);return U};var Yc3=/:host\(:dir\((ltr|rtl)\)\)/g,qcw=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,hD3=/:dir\((?:ltr|rtl)\)/,kun=!(!window.ShadyDOM||!window.ShadyDOM.inUse),ca=[],qA=null,t0="",v$B=L3(function(H){kun||qA||(t0=document.documentElement.getAttribute("dir"),qA=new MutationObserver(mnE),qA.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var U=Vkz(H);H=function(){var A=U.call(this)||this;A.__autoDirOptOut=!1;return A};
_.R(H,U);H._processStyleText=function(A,M){A=U._processStyleText.call(this,A,M);!kun&&hD3.test(A)&&(A=this._replaceDirInCssText(A),this.__activateDir=!0);return A};
H._replaceDirInCssText=function(A){A=A.replace(Yc3,':host([dir="$1"])');return A=A.replace(qcw,':host([dir="$2"]) $1')};
H.prototype.ready=function(){U.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
H.prototype.connectedCallback=function(){U.prototype.connectedCallback&&U.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(qA&&qA.takeRecords().length&&mnE(),ca.push(this),this.__autoDirOptOut||this.setAttribute("dir",t0))};
H.prototype.disconnectedCallback=function(){U.prototype.disconnectedCallback&&U.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var A=ca.indexOf(this);A>-1&&ca.splice(A,1)}};
H.__activateDir=!1;return H});var TXg=function(H){for(;H;){var U=Object.getOwnPropertyDescriptor(H,"observedAttributes");if(U)return U.get;H=Object.getPrototypeOf(H.prototype).constructor}return function(){return[]}};
L3(function(H){var U=mM(H),A=TXg(U);H=function(){return U.call(this)||this};
_.R(H,U);H.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:U.prototype._initializeProperties.call(this)};
H.prototype._enableProperties=function(){this.__isUpgradeDisabled||U.prototype._enableProperties.call(this)};
H.prototype._canApplyPropertyDefault=function(M){return U.prototype._canApplyPropertyDefault.call(this,M)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(M))};
H.prototype.attributeChangedCallback=function(M,W,w,d){M=="disable-upgrade"?this.__isUpgradeDisabled&&w==null&&(U.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.X7)(this).isConnected&&U.prototype.connectedCallback.call(this)):U.prototype.attributeChangedCallback.call(this,M,W,w,d)};
H.prototype.connectedCallback=function(){this.__isUpgradeDisabled||U.prototype.connectedCallback.call(this)};
H.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||U.prototype.disconnectedCallback.call(this)};
_.D5.Object.defineProperties(H,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return A.call(this).concat("disable-upgrade")}}});
return H});var yB=!1,aX_=[],Ba=[];var tm4=window.ShadyDOM,cgE=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",B4N):document.readyState==="interactive"||document.readyState==="complete"?B4N():window.addEventListener("DOMContentLoaded",B4N);var Dn4=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=""},rgN=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,ePr=/@import[^;]*;/gim,hP0=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,kbh=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,vF4=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,T4c=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Yhr=/^@[^\s]*keyframes/,
Gbt=/\s+/g;var jTV={};var Vmh=Promise.resolve();var jSr=new Set;var IdK=/;\s*/m,QSn=/^\s*(initial)|(inherit)\s*$/,Vqg=/\s*!important/,HGk=function(){this._map={}};
HGk.prototype.set=function(H,U){H=H.trim();this._map[H]={properties:U,dependants:{}}};
HGk.prototype.get=function(H){H=H.trim();return this._map[H]||null};
var Ueh=null,hM=function(){this._measureElement=this._currentElement=null;this._map=new HGk};
_.X=hM.prototype;_.X.detectMixin=function(H){H=Fdr.test(H)||o$w.test(H);Fdr.lastIndex=0;o$w.lastIndex=0;return H};
_.X.transformTemplate=function(H,U){if(H._gatheredStyle===void 0){var A=[];for(var M=H.content.querySelectorAll("style"),W=0;W<M.length;W++){var w=M[W];if(w.hasAttribute("shady-unscoped")){if(!C$M){var d=w.textContent;if(!jSr.has(d)){jSr.add(d);var O=document.createElement("style");O.setAttribute("shady-unscoped","");O.textContent=d;document.head.appendChild(O)}w.parentNode.removeChild(w)}}else A.push(w.textContent),w.parentNode.removeChild(w)}(A=A.join("").trim())?(M=document.createElement("style"),
M.textContent=A,H.content.insertBefore(M,H.content.firstChild),A=M):A=null;H._gatheredStyle=A}return(H=H._gatheredStyle)?this.JSC$11577_transformStyle(H,U):null};
_.X.JSC$11577_transformStyle=function(H,U){U=U===void 0?"":U;var A=M$F(H);this.transformRules(A,U);H.textContent=AJt(A);return A};
_.X.transformCustomStyle=function(H){var U=this,A=M$F(H);wQK(A,function(M){M.selector===":root"&&(M.selector="html");U.transformRule(M)});
H.textContent=AJt(A);return A};
_.X.transformRules=function(H,U){var A=this;this._currentElement=U;wQK(H,function(M){A.transformRule(M)});
this._currentElement=null};
_.X.transformRule=function(H){H.cssText=Aph(this,H.parsedCssText,H);H.selector===":root"&&(H.selector=":host > *")};
var Aph=function(H,U,A){U=U.replace(o$w,function(M,W,w,d){return H._produceCssProperties(M,W,w,d,A)});
return H._consumeCssProperties(U,A)};
_.X=hM.prototype;_.X._getInitialValueForProperty=function(H){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(H)};
_.X._fallbacksFromPreviousRules=function(H){for(var U=this,A=H;A.parent;)A=A.parent;var M={},W=!1;wQK(A,function(w){(W=W||w===H)||w.selector===H.selector&&Object.assign(M,U._cssTextToMap(w.parsedCssText))});
return M};
_.X._consumeCssProperties=function(H,U){for(var A;A=Fdr.exec(H);){var M=A[0],W=A[1];A=A.index;var w=A+M.indexOf("@apply"),d=A+M.length;M=H.slice(0,w);H=H.slice(d);w=U?this._fallbacksFromPreviousRules(U):{};Object.assign(w,this._cssTextToMap(M));W=this._atApplyToCssProperties(W,w);H=M+W+H;Fdr.lastIndex=A+W.length}return H};
_.X._atApplyToCssProperties=function(H,U){H=H.replace(IdK,"");var A=[],M=this._map.get(H);M||(this._map.set(H,{}),M=this._map.get(H));if(M){this._currentElement&&(M.dependants[this._currentElement]=!0);var W,w=M.properties;for(W in w){var d=U&&U[W];M=[W,": var(",H,"_-_",W];d&&M.push(",",d.replace(Vqg,""));M.push(")");Vqg.test(w[W])&&M.push(" !important");A.push(M.join(""))}}return A.join("; ")};
_.X._replaceInitialOrInherit=function(H,U){var A=QSn.exec(U);A&&(U=A[1]?this._getInitialValueForProperty(H):"apply-shim-inherit");return U};
_.X._cssTextToMap=function(H,U){U=U===void 0?!1:U;H=H.split(";");for(var A,M,W={},w=0;w<H.length;w++)if(A=H[w])M=A.split(":"),M.length>1&&(A=M[0].trim(),M=M.slice(1).join(":"),U&&(M=this._replaceInitialOrInherit(A,M)),W[A]=M);return W};
_.X._invalidateMixinEntry=function(H){if(Ueh)for(var U in H.dependants)U!==this._currentElement&&Ueh(U)};
_.X._produceCssProperties=function(H,U,A,M,W){var w=this;A&&XQ7(A,function(L,m){m&&w._map.get(m)&&(M="@apply "+m+";")});
if(!M)return H;var d=this._consumeCssProperties(""+M,W);W=H.slice(0,H.indexOf("--"));var O=d=this._cssTextToMap(d,!0),f=this._map.get(U),J=f&&f.properties;J?O=Object.assign(Object.create(J),d):this._map.set(U,O);var F=[],P,n=!1;for(P in O){var N=d[P];N===void 0&&(N="initial");!J||P in J||(n=!0);F.push(U+"_-_"+P+": "+N)}n&&this._invalidateMixinEntry(f);f&&(f.properties=O);A&&(W=H+";"+W);return W+F.join("; ")+";"};
hM.prototype.detectMixin=hM.prototype.detectMixin;hM.prototype.transformStyle=hM.prototype.JSC$11577_transformStyle;hM.prototype.transformCustomStyle=hM.prototype.transformCustomStyle;hM.prototype.transformRules=hM.prototype.transformRules;hM.prototype.transformRule=hM.prototype.transformRule;hM.prototype.transformTemplate=hM.prototype.transformTemplate;hM.prototype._separator="_-_";Object.defineProperty(hM.prototype,"invalidCallback",{get:function(){return Ueh},
set:function(H){Ueh=H}});var kG=new hM,Mrp=function(){this.customStyleInterface=null;kG.invalidCallback=IXc},vR=function(H){!H.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(H.customStyleInterface=window.ShadyCSS.CustomStyleInterface,H.customStyleInterface.transformCallback=function(U){kG.transformCustomStyle(U)},H.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){H.customStyleInterface.enqueued&&H.flushCustomStyles()})})};
_.X=Mrp.prototype;_.X.prepareTemplate=function(H,U){vR(this);it7(H)===""&&(jTV[U]=H,U=kG.transformTemplate(H,U),H._styleAst=U)};
_.X.flushCustomStyles=function(){vR(this);if(this.customStyleInterface){var H=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var U=0;U<H.length;U++){var A=this.customStyleInterface.getStyleForCustomStyle(H[U]);A&&kG.transformCustomStyle(A)}this.customStyleInterface.enqueued=!1}}};
_.X.styleSubtree=function(H,U){vR(this);U&&RoV(H,U);if(H.shadowRoot)for(this.styleElement(H),H=H.shadowRoot.children||H.shadowRoot.childNodes,U=0;U<H.length;U++)this.styleSubtree(H[U]);else for(H=H.children||H.childNodes,U=0;U<H.length;U++)this.styleSubtree(H[U])};
_.X.styleElement=function(H){vR(this);var U=H.localName,A;U?U.indexOf("-")>-1?A=U:A=H.getAttribute&&H.getAttribute("is")||"":A=H.is;U=jTV[A];if(!(U&&it7(U)!==""||!U||QTE(U))){if(QTE(U)||U._applyShimValidatingVersion!==U._applyShimNextVersion)this.prepareTemplate(U,A),HtN(U);if(H=H.shadowRoot)if(H=H.querySelector("style"))H.__cssRules=U._styleAst,H.textContent=AJt(U._styleAst)}};
_.X.styleDocument=function(H){vR(this);this.styleSubtree(document.body,H)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var TI=new Mrp,W7w=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(H,U){TI.flushCustomStyles();TI.prepareTemplate(H,U)},
prepareTemplateStyles:function(H,U,A){window.ShadyCSS.prepareTemplate(H,U,A)},
prepareTemplateDom:function(){},
styleSubtree:function(H,U){TI.flushCustomStyles();TI.styleSubtree(H,U)},
styleElement:function(H){TI.flushCustomStyles();TI.styleElement(H)},
styleDocument:function(H){TI.flushCustomStyles();TI.styleDocument(H)},
getComputedStyleValue:function(H,U){return E48(H,U)},
flushCustomStyles:function(){TI.flushCustomStyles()},
nativeCss:UbV,nativeShadow:C$M,cssBuild:eX,disableRuntime:n$g};W7w&&(window.ShadyCSS.CustomStyleInterface=W7w)}window.ShadyCSS.ApplyShim=kG;var w$2;w$2=window.ShadyCSS;_.jf=L3(function(H){H=g$w(mM(H));var U=dD2?H:v$B(H),A=TXg(U),M={x:"pan-x",y:"pan-y",none:"none",all:"auto"};H=function(){return U.call(this)||this};
_.R(H,U);H.prototype.created=function(){};
H.prototype.__attributeReaction=function(W,w,d){(this.__dataAttributes&&this.__dataAttributes[W]||W==="disable-upgrade")&&this.attributeChangedCallback(W,w,d,null)};
H.prototype.setAttribute=function(W,w){if(BnK&&!this._legacyForceObservedAttributes){var d=this.getAttribute(W);U.prototype.setAttribute.call(this,W,w);this.__attributeReaction(W,d,String(w))}else U.prototype.setAttribute.call(this,W,w)};
H.prototype.removeAttribute=function(W){if(BnK&&!this._legacyForceObservedAttributes){var w=this.getAttribute(W);U.prototype.removeAttribute.call(this,W);this.__attributeReaction(W,w,null)}else U.prototype.removeAttribute.call(this,W)};
H.prototype._enableProperties=function(){this.__isUpgradeDisabled||U.prototype._enableProperties.call(this)};
H.prototype._canApplyPropertyDefault=function(W){return U.prototype._canApplyPropertyDefault.call(this,W)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(W))};
H.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(U.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
H.prototype.attached=function(){};
H.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(U.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
H.prototype.detached=function(){};
H.prototype.attributeChangedCallback=function(W,w,d,O){w!==d&&(W=="disable-upgrade"?this.__isUpgradeDisabled&&d==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.X7)(this).isConnected&&this.connectedCallback()):(U.prototype.attributeChangedCallback.call(this,W,w,d,O),this.attributeChanged(W,w,d)))};
H.prototype.attributeChanged=function(){};
H.prototype._initializeProperties=function(){if(pK&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var W=Object.getPrototypeOf(this);W.hasOwnProperty("__hasRegisterFinished")||(this._registered(),W.__hasRegisterFinished=!0);U.prototype._initializeProperties.call(this);this.root=this;this.created();BnK&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
H.prototype._takeAttributes=function(){for(var W=this.attributes,w=0,d=W.length;w<d;w++){var O=W[w];this.__attributeReaction(O.name,null,O.value)}};
H.prototype._registered=function(){};
H.prototype.ready=function(){this._ensureAttributes();U.prototype.ready.call(this)};
H.prototype._ensureAttributes=function(){};
H.prototype._applyListeners=function(){};
H.prototype.serialize=function(W){return this._serializeValue(W)};
H.prototype.deserialize=function(W,w){return this._deserializeValue(W,w)};
H.prototype.reflectPropertyToAttribute=function(W,w,d){this._propertyToAttribute(W,w,d)};
H.prototype.serializeValueToAttribute=function(W,w,d){this._valueToNodeAttribute(d||this,W,w)};
H.prototype.extend=function(W,w){if(!W||!w)return W||w;for(var d=Object.getOwnPropertyNames(w),O=0,f=void 0;O<d.length&&(f=d[O]);O++){var J=Object.getOwnPropertyDescriptor(w,f);J&&Object.defineProperty(W,f,J)}return W};
H.prototype.mixin=function(W,w){for(var d in w)W[d]=w[d];return W};
H.prototype.chainObject=function(W,w){W&&w&&W!==w&&(W.__proto__=w);return W};
H.prototype.instanceTemplate=function(W){W=this.constructor._contentForTemplate(W);return document.importNode(W,!0)};
H.prototype.fire=function(W,w,d){d=d||{};w=w===null||w===void 0?{}:w;W=new Event(W,{bubbles:d.bubbles===void 0?!0:d.bubbles,cancelable:!!d.cancelable,composed:d.composed===void 0?!0:d.composed});W.detail=w;(0,_.X7)(d.node||this).dispatchEvent(W);return W};
H.prototype.listen=function(W,w,d){W=W||this;var O=this.__boundListeners||(this.__boundListeners=new WeakMap),f=O.get(W);f||(f={},O.set(W,f));O=w+d;f[O]||(f[O]=this._addMethodEventListenerToNode(W,w,d,this))};
H.prototype.unlisten=function(W,w,d){W=W||this;var O=this.__boundListeners&&this.__boundListeners.get(W);d=w+d;var f=O&&O[d];f&&(this._removeEventListenerFromNode(W,w,f),O[d]=null)};
H.prototype.setScrollDirection=function(W,w){_.nK(w||this,M[W]||"auto")};
H.prototype.$$=function(W){return this.root.querySelector(W)};
H.prototype.distributeContent=function(){var W=_.Ig(this);window.ShadyDOM&&W.shadowRoot&&ShadyDOM.flush()};
H.prototype.getEffectiveChildNodes=function(){return _.Ig(this).getEffectiveChildNodes()};
H.prototype.queryDistributedElements=function(W){return _.Ig(this).queryDistributedElements(W)};
H.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(W){return W.nodeType===Node.ELEMENT_NODE})};
H.prototype.getEffectiveTextContent=function(){for(var W=this.getEffectiveChildNodes(),w=[],d=0,O;O=W[d];d++)O.nodeType!==Node.COMMENT_NODE&&w.push(O.textContent);return w.join("")};
H.prototype.queryEffectiveChildren=function(W){return(W=this.queryDistributedElements(W))&&W[0]};
H.prototype.queryAllEffectiveChildren=function(W){return this.queryDistributedElements(W)};
H.prototype.getContentChildNodes=function(W){return(W=this.root.querySelector(W||"slot"))?_.Ig(W).getDistributedNodes():[]};
H.prototype.getContentChildren=function(W){return this.getContentChildNodes(W).filter(function(w){return w.nodeType===Node.ELEMENT_NODE})};
H.prototype.isLightDescendant=function(W){return this!==W&&(0,_.X7)(this).contains(W)&&(0,_.X7)(this).getRootNode()===(0,_.X7)(W).getRootNode()};
H.prototype.isLocalDescendant=function(W){return this.root===(0,_.X7)(W).getRootNode()};
H.prototype.scopeSubtree=function(W,w){return ygM(W,w===void 0?!1:w)};
H.prototype.getComputedStyleValue=function(W){return w$2.getComputedStyleValue(this,W)};
H.prototype.debounce=function(W,w,d){this._debouncers=this._debouncers||{};return this._debouncers[W]=_.yF(this._debouncers[W],d>0?_.p3.after(d):NC,w.bind(this))};
H.prototype.isDebouncerActive=function(W){this._debouncers=this._debouncers||{};W=this._debouncers[W];return!(!W||!W.isActive())};
H.prototype.flushDebouncer=function(W){this._debouncers=this._debouncers||{};(W=this._debouncers[W])&&W.flush()};
H.prototype.cancelDebouncer=function(W){this._debouncers=this._debouncers||{};(W=this._debouncers[W])&&W.cancel()};
H.prototype.async=function(W,w){return w>0?_.p3.run(W.bind(this),w):~NC.run(W.bind(this))};
H.prototype.cancelAsync=function(W){W<0?NC.cancel(~W):_.p3.cancel(W)};
H.prototype.create=function(W,w){W=document.createElement(W);if(w)if(W.setProperties)W.setProperties(w);else for(var d in w)W[d]=w[d];return W};
H.prototype.elementMatches=function(W,w){return eD2(w||this,W)};
H.prototype.toggleAttribute=function(W,w){var d=this;arguments.length===3&&(d=arguments[2]);arguments.length==1&&(w=!d.hasAttribute(W));if(w)return(0,_.X7)(d).setAttribute(W,""),!0;(0,_.X7)(d).removeAttribute(W);return!1};
H.prototype.toggleClass=function(W,w,d){d=d||this;arguments.length==1&&(w=!d.classList.contains(W));w?d.classList.add(W):d.classList.remove(W)};
H.prototype.transform=function(W,w){w=w||this;w.style.webkitTransform=W;w.style.transform=W};
H.prototype.translate3d=function(W,w,d,O){this.transform("translate3d("+W+","+w+","+d+")",O||this)};
H.prototype.arrayDelete=function(W,w){if(Array.isArray(W)){if(w=W.indexOf(w),w>=0)return W.splice(w,1)}else if(w=MC(this,W).indexOf(w),w>=0)return this.splice(W,w,1);return null};
H.prototype._logger=function(W,w){Array.isArray(w)&&w.length===1&&Array.isArray(w[0])&&(w=w[0]);switch(W){case "log":case "warn":case "error":console[W].apply(console,_.vI(w))}};
H.prototype._log=function(){this._logger("log",_.QY.apply(0,arguments))};
H.prototype._warn=function(){this._logger("warn",_.QY.apply(0,arguments))};
H.prototype._error=function(){this._logger("error",_.QY.apply(0,arguments))};
H.prototype._logf=function(W){return["[%s::%s]",this.is,W].concat(_.vI(_.QY.apply(1,arguments)))};
_.D5.Object.defineProperties(H.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var W=(0,_.X7)(this).getRootNode();return W instanceof DocumentFragment?W.host:W}}});
_.D5.Object.defineProperties(H,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return BnK&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],cN8(this.prototype)),this.__observedAttributes):A.call(this).concat("disable-upgrade")}}});
H.prototype.is="";return H});Polymer.FlattenedNodesObserver=yyn;Polymer.DomApi=Gur;Polymer.EventApi=YG;Polymer.dom=_.Ig;Polymer.dom.matchesSelector=eD2;Polymer.dom.flush=_.$G;Polymer.dom.addDebouncer=_.BR;Polymer.DirMixin=v$B;Polymer.RenderStatus={beforeNextRender:_.Cot,afterNextRender:_.rV,flush:function(){for(;aX_.length||Ba.length;)gFc(aX_),gFc(Ba);yB=!1}};Polymer.LegacyElementMixin=_.jf;var X$K;X$K=ef._mutablePropertyChange;var iGh={properties:{mutableData:Boolean},_shouldPropertyChange:function(H,U,A){return X$K(this,H,U,A,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(H,U,A){return X$K(this,H,U,A,!0)}};
Polymer.OptionalMutableDataBehavior=iGh;var btV={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},fn0={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},ZtF=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},fn0),bGy=(0,_.jf)(HTMLElement),NLh=function(H,U){H||console.warn("Polymer.Class requires `info` argument");U=U?U(bGy):bGy;U=JJc(H,U,H.behaviors);U.is=U.prototype.is=
H.is;return U};Polymer.Class=NLh;Polymer.mixinBehaviors=function(H,U){return JJc({},(0,_.jf)(U),H)};
Polymer.GenerateClassFromInfo=JJc;_.MD=function(H){var U=typeof H==="function"?H:_.MD.Class(H);H._legacyForceObservedAttributes&&(U.prototype._legacyForceObservedAttributes=H._legacyForceObservedAttributes);customElements.define(U.is,U);return U};
_.MD.Class=NLh;Polymer._polymerFn=_.MD;var den=window.onLegacyPolymerFunctionDefinedCallback;den&&den();var pvr={templatize:function(H,U){this._templatizerTemplate=H;this.ctor=Eo(H,this,{mutableData:!!U,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(H){return new this.ctor(H)},
modelForElement:function(H){return pn7(this._templatizerTemplate,H)}};Polymer.Templatizer=pvr;_.Ia=(0,_.jf)(HTMLElement).prototype;Polymer.Base=_.Ia;var oh8=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.$A=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.R(_.$A,PolymerFakeBaseClass);var lu=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.R(lu,PolymerFakeBaseClass);var F38=Symbol("Ud"),R0r=[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 OGn=OGn||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},u1m;(function(H){function U(Y,D,h){var T=v.get(Y);if(!T){if(!h)return;T=new c;v.set(Y,T)}Y=T.get(D);if(!Y){if(!h)return;Y=new c;T.set(D,Y)}return Y}
function A(Y,D,h){if(M(Y,D,h))return!0;D=n(D);return D!==null?A(Y,D,h):!1}
function M(Y,D,h){D=U(D,h,!1);return D===void 0?!1:!!D.has(Y)}
function W(Y,D,h){if(M(Y,D,h))return w(Y,D,h);D=n(D);if(D!==null)return W(Y,D,h)}
function w(Y,D,h){D=U(D,h,!1);if(D!==void 0)return D.get(Y)}
function d(Y,D){var h=O(Y,D);Y=n(Y);if(Y===null)return h;var T=d(Y,D);if(T.length<=0)return h;if(h.length<=0)return T;D=new C;Y=[];h=_.b(h);for(var WF=h.next();!WF.done;WF=h.next())WF=WF.value,D.has(WF)||(D.add(WF),Y.push(WF));h=_.b(T);for(T=h.next();!T.done;T=h.next())T=T.value,D.has(T)||(D.add(T),Y.push(T));return Y}
function O(Y,D){Y=U(Y,D,!1);var h=[];Y&&Y.forEach(function(T,WF){return h.push(WF)});
return h}
function f(Y){return Y===void 0}
function J(Y){return typeof Y==="object"?Y!==null:typeof Y==="function"}
function F(Y){return typeof Y==="function"}
function P(Y){return typeof Y==="symbol"?Y:String(Y)}
function n(Y){var D=Object.getPrototypeOf(Y);if(typeof Y!=="function"||Y===z||D!==z)return D;var h=Object.getPrototypeOf(Y.prototype);if(h==null||h===Object.prototype)return D;h=h.constructor;return typeof h!=="function"||h===Y?D:h}
function N(){function Y(){this._keys=[];this._values=[];this._cache=D}
var D={};Y.prototype={get size(){return this._keys.length},has:function(h){return h===this._cache?!0:this._find(h)>=0?(this._cache=h,!0):!1},
get:function(h){var T=this._find(h);if(T>=0)return this._cache=h,this._values[T]},
set:function(h,T){this.delete(h);this._keys.push(h);this._values.push(T);this._cache=h;return this},
delete:function(h){h=this._find(h);return h>=0?(this._keys.splice(h,1),this._values.splice(h,1),this._cache=D,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=D},
forEach:function(h){for(var T=this.size,WF=0;WF<T;++WF){var dK=this._keys[WF],SN=this._values[WF];this._cache=dK;h.call(this,SN,dK,this)}},
_find:function(h){for(var T=this._keys,WF=T.length,dK=0;dK<WF;++dK)if(T[dK]===h)return dK;return-1}};
return Y}
function L(){function Y(){this._map=new c}
Y.prototype={get size(){return this._map.length},has:function(D){return this._map.has(D)},
add:function(D){this._map.set(D,D);return this},
delete:function(D){return this._map.delete(D)},
clear:function(){this._map.clear()},
forEach:function(D,h){this._map.forEach(D,h)}};
return Y}
function m(){function Y(){this._key=h()}
function D(PF,BF){for(var kc=0;kc<BF;++kc)PF[kc]=Math.random()*255|0}
function h(){do{if(WF)var PF=WF.randomBytes(16);else typeof Uint8Array==="function"?(PF=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(PF):D(PF,16)):(PF=Array(16),D(PF,16));PF[6]=PF[6]&79|64;PF[8]=PF[8]&191|128;for(var BF="",kc=0;kc<16;++kc){var G8=PF[kc];if(kc===4||kc===6||kc===8)BF+="-";G8<16&&(BF+="0");BF+=G8.toString(16).toLowerCase()}PF="@@WeakMap@@"+BF}while(dK.call(SN,PF));SN[PF]=!0;return PF}
function T(PF,BF){if(!dK.call(PF,o_)){if(!BF)return;Object.defineProperty(PF,o_,{value:Object.create(null)})}return PF[o_]}
var WF=typeof global!=="undefined"&&typeof OGn==="object"&&typeof require==="function"&&require("crypto"),dK=Object.prototype.hasOwnProperty,SN={},o_=h();Y.prototype={has:function(PF){return(PF=T(PF,!1))?this._key in PF:!1},
get:function(PF){if(PF=T(PF,!1))return PF[this._key]},
set:function(PF,BF){T(PF,!0)[this._key]=BF;return this},
delete:function(PF){return(PF=T(PF,!1))&&this._key in PF?delete PF[this._key]:!1},
clear:function(){this._key=h()}};
return Y}
var z=Object.getPrototypeOf(Function),c=typeof Map==="function"?Map:N(),C=typeof Set==="function"?Set:L(),v=new (typeof WeakMap==="function"?WeakMap:m());H.decorate=function(Y,D,h,T){if(f(T)){if(f(h)){if(!Array.isArray(Y))throw new TypeError;if(!F(D))throw new TypeError;for(h=Y.length-1;h>=0;--h)if(T=(0,Y[h])(D),!f(T)){if(!F(T))throw new TypeError;D=T}return D}if(!Array.isArray(Y))throw new TypeError;if(!J(D))throw new TypeError;h=P(h);for(T=Y.length-1;T>=0;--T)(0,Y[T])(D,h)}else{if(Array.isArray(Y))if(J(D)){if(f(h))throw new TypeError;
if(!J(T))throw new TypeError;}else throw new TypeError;else throw new TypeError;h=P(h);for(var WF=Y.length-1;WF>=0;--WF){var dK=(0,Y[WF])(D,h,T);if(!f(dK)){if(!J(dK))throw new TypeError;T=dK}}return T}};
H.metadata=function(Y,D){return function(h,T){if(f(T)){if(!F(h))throw new TypeError;U(h,void 0,!0).set(Y,D)}else{if(!J(h))throw new TypeError;T=P(T);U(h,T,!0).set(Y,D)}}};
H.defineMetadata=function(Y,D){var h;if(J(D))f(h)||(h=P(h));else throw new TypeError;U(D,h,!0).set("parameters",Y)};
H.hasMetadata=function(Y,D,h){if(J(D))f(h)||(h=P(h));else throw new TypeError;return A(Y,D,h)};
H.hasOwnMetadata=function(Y,D,h){if(J(D))f(h)||(h=P(h));else throw new TypeError;return M(Y,D,h)};
H.getMetadata=function(Y,D,h){if(J(D))f(h)||(h=P(h));else throw new TypeError;return W(Y,D,h)};
H.getOwnMetadata=function(Y,D,h){if(J(D))f(h)||(h=P(h));else throw new TypeError;return w(Y,D,h)};
H.getMetadataKeys=function(Y,D){if(J(Y))f(D)||(D=P(D));else throw new TypeError;return d(Y,D)};
H.getOwnMetadataKeys=function(Y,D){if(J(Y))f(D)||(D=P(D));else throw new TypeError;return O(Y,D)};
H.deleteMetadata=function(Y,D,h){if(J(D))f(h)||(h=P(h));else throw new TypeError;var T=U(D,h,!1);if(!f(T)){if(!T.delete(Y))return!1;if(T.size>0)return!0;Y=v.get(D);Y.delete(h);if(Y.size>0)return!0;v.delete(D);return!0}};
(function(Y){if(typeof Y.Reflect!=="undefined"){if(Y.Reflect!==H)for(var D in H)Y.Reflect[D]=H[D]}else Y.Reflect=H})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(u1m||(u1m={}));var V8V=self;var ZGr=[0,_.Sm,_.RT,_.Sm];var fNK=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(fNK,_.fN);var Jpw=_.Ej(fNK,[0,_.xF,_.g4,ZGr,_.RT,_.CT]);var o32=[0,_.zb,-3,_.CT,_.xF,_.Sm,_.Pvg,_.zb,n5h,KOr,Pn,_.pT,_.Sm,function(){return K7p},
_.RT],K7p=[0,_.g4,function(){return o32},
_.xF,14,_.zb];_.zo(_.GS,_.XG);_.X=_.GS.prototype;_.X.start=function(){this.stop();this.usingListeners_=!1;var H=F7p(this),U=Pjw(this);H&&!U&&this.JSC$11620_win_.mozRequestAnimationFrame?(this.JSC$11620_id_=_.Rc(this.JSC$11620_win_,"MozBeforePaint",this.callback_),this.JSC$11620_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11620_id_=H&&U?H.call(this.JSC$11620_win_,this.callback_):this.JSC$11620_win_.setTimeout($2H(this.callback_),20)};
_.X.stop=function(){if(this.isActive()){var H=F7p(this),U=Pjw(this);H&&!U&&this.JSC$11620_win_.mozRequestAnimationFrame?jq(this.JSC$11620_id_):H&&U?U.call(this.JSC$11620_win_,this.JSC$11620_id_):this.JSC$11620_win_.clearTimeout(this.JSC$11620_id_)}this.JSC$11620_id_=null};
_.X.fire=function(){this.stop();this.JSC$11622_doAction_()};
_.X.isActive=function(){return this.JSC$11620_id_!=null};
_.X.JSC$11622_doAction_=function(){this.usingListeners_&&this.JSC$11620_id_&&jq(this.JSC$11620_id_);this.JSC$11620_id_=null;this.JSC$11620_listener_.call(this.handler_,_.x4())};
_.X.disposeInternal=function(){this.stop();_.GS.superClass_.disposeInternal.call(this)};
var F7p=function(H){H=H.JSC$11620_win_;return H.requestAnimationFrame||H.webkitRequestAnimationFrame||H.mozRequestAnimationFrame||H.oRequestAnimationFrame||H.msRequestAnimationFrame||null},Pjw=function(H){H=H.JSC$11620_win_;
return H.cancelAnimationFrame||H.cancelRequestAnimationFrame||H.webkitCancelRequestAnimationFrame||H.mozCancelRequestAnimationFrame||H.oCancelRequestAnimationFrame||H.msCancelRequestAnimationFrame||null};_.B$=function(H,U,A){_.XG.call(this);this.JSC$11623_listener_=A!=null?H.bind(A):H;this.JSC$11623_interval_=U;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11623_timer_=null};
_.R(_.B$,_.XG);_.X=_.B$.prototype;_.X.fire=function(H){this.args_=arguments;this.JSC$11623_timer_||this.pauseCount_?this.shouldFire_=!0:svK(this)};
_.X.stop=function(){this.JSC$11623_timer_&&(_.Mr.clearTimeout(this.JSC$11623_timer_),this.JSC$11623_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.X.pause=function(){this.pauseCount_++};
_.X.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11623_timer_||(this.shouldFire_=!1,svK(this))};
_.X.disposeInternal=function(){_.XG.prototype.disposeInternal.call(this);this.stop()};
var svK=function(H){H.JSC$11623_timer_=da(function(){H.JSC$11623_timer_=null;H.shouldFire_&&!H.pauseCount_&&(H.shouldFire_=!1,svK(H))},H.JSC$11623_interval_);
var U=H.args_;H.args_=null;H.JSC$11623_listener_.apply(null,U)};var n3K=function(H,U){this.childIterator_=H[_.Mr.Symbol.iterator]();this.mapFn_=U};
n3K.prototype[Symbol.iterator]=function(){return this};
n3K.prototype.next=function(){var H=this.childIterator_.next();return{value:H.done?void 0:this.mapFn_.call(void 0,H.value),done:H.done}};
var NAK=function(H,U){return new n3K(H,U)};var rJ8={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 e0_=/#(.)(.)(.)/,t$8=/^#(?:[0-9a-f]{3}){1,2}$/i,$bF=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;var SBK={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},e5=SBK;e5=SBK;var AX7,p$w,L7H;AX7=function(H,U){switch(U){case 1:return H%4!=0||H%100==0&&H%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
p$w=function(H,U,A,M,W){H=new Date(H,U,A);W=W||0;return H.valueOf()+(((M!==void 0?M:3)-W+7)%7-((H.getDay()+6)%7-W+7)%7)*864E5};
_.QF=function(H,U,A){typeof H==="number"?(this.date=L7H(H,U||0,A||1),RyH(this,A||1)):_.ht(H)?(this.date=L7H(H.getFullYear(),H.getMonth(),H.getDate()),RyH(this,H.getDate())):(this.date=new Date(_.x4()),H=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),RyH(this,H))};
L7H=function(H,U,A){U=new Date(H,U,A);H>=0&&H<100&&U.setFullYear(U.getFullYear()-1900);return U};
_.X=_.QF.prototype;_.X.firstDayOfWeek_=e5.FIRSTDAYOFWEEK;_.X.firstWeekCutOffDay_=e5.FIRSTWEEKCUTOFFDAY;_.X.clone=function(){var H=new _.QF(this.date);H.firstDayOfWeek_=this.firstDayOfWeek_;H.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return H};
_.X.getFullYear=function(){return this.date.getFullYear()};
_.X.getYear=function(){return this.getFullYear()};
_.X.getMonth=function(){return this.date.getMonth()};
_.X.getDate=function(){return this.date.getDate()};
_.X.getTime=function(){return this.date.getTime()};
_.X.getDay=function(){return this.date.getDay()};
_.X.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.X.getUTCMonth=function(){return this.date.getUTCMonth()};
_.X.getUTCDate=function(){return this.date.getUTCDate()};
_.X.getUTCDay=function(){return this.date.getDay()};
_.X.getUTCHours=function(){return this.date.getUTCHours()};
_.X.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.X.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.X.set=function(H){this.date=new Date(H.getFullYear(),H.getMonth(),H.getDate())};
_.X.setFullYear=function(H){this.date.setFullYear(H)};
_.X.setYear=function(H){this.setFullYear(H)};
_.X.setMonth=function(H){this.date.setMonth(H)};
_.X.setDate=function(H){this.date.setDate(H)};
_.X.setTime=function(H){this.date.setTime(H)};
_.X.setUTCFullYear=function(H){this.date.setUTCFullYear(H)};
_.X.setUTCMonth=function(H){this.date.setUTCMonth(H)};
_.X.setUTCDate=function(H){this.date.setUTCDate(H)};
_.X.add=function(H){if(H.years||H.months){var U=this.getMonth()+H.months+H.years*12,A=this.getYear()+Math.floor(U/12);U%=12;U<0&&(U+=12);var M=Math.min(AX7(A,U),this.getDate());this.setDate(1);this.setFullYear(A);this.setMonth(U);this.setDate(M)}H.days&&(A=this.getYear(),U=A>=0&&A<=99?-1900:0,H=new Date((new Date(A,this.getMonth(),this.getDate(),12)).getTime()+H.days*864E5),this.setDate(1),this.setFullYear(H.getFullYear()+U),this.setMonth(H.getMonth()),this.setDate(H.getDate()),RyH(this,H.getDate()))};
_.X.JSC$11636_toIsoString=function(H){var U=this.getFullYear(),A=U<0?"-":U>=1E4?"+":"";return[A+_.DX(Math.abs(U),A?6:4),_.DX(this.getMonth()+1,2),_.DX(this.getDate(),2)].join(H?"-":"")};
_.X.equals=function(H){return!(!H||this.getYear()!=H.getYear()||this.getMonth()!=H.getMonth()||this.getDate()!=H.getDate())};
_.X.toString=function(){return this.JSC$11636_toIsoString()};
var RyH=function(H,U){H.getDate()!=U&&H.date.setUTCHours(H.date.getUTCHours()+(H.getDate()<U?1:-1))};
_.QF.prototype.valueOf=function(){return this.date.valueOf()};var H0=function(H,U,A,M,W){this.reversed=!!U;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!A;H&&VF(this,H,M);this.depth=W!=void 0?W:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.zo(H0,tL);var VF=function(H,U,A,M){if(H.node=U)H.tagType=typeof A==="number"?A:H.node.nodeType!=1?0:H.reversed?-1:1;typeof M==="number"&&(H.depth=M)};
_.X=H0.prototype;_.X.JSC$11651_copyFrom=function(H){this.node=H.node;this.tagType=H.tagType;this.depth=H.depth;this.reversed=H.reversed;this.constrained=H.constrained};
_.X.clone=function(){return new H0(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.X.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return cU;var H=this.node;var U=this.reversed?-1:1;if(this.tagType==U){var A=this.reversed?H.lastChild:H.firstChild;A?VF(this,A):VF(this,H,U*-1)}else(A=this.reversed?H.previousSibling:H.nextSibling)?VF(this,A):VF(this,H.parentNode,U*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(H=this.node)?ye(H):cU};
_.X.equals=function(H){return H.node==this.node&&(!this.node||H.tagType==this.tagType)};
_.X.splice=function(H){var U=this.node,A=this.reversed?1:-1;this.tagType==A&&(this.tagType=A*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;H0.prototype.next.call(this);this.reversed=!this.reversed;A=_.l7(arguments[0])?arguments[0]:arguments;for(var M=A.length-1;M>=0;M--)_.JJ(A[M],U);_.U5(U)};var E3k=function(){},Ug=function(H){for(var U=[],A=H.getTextRangeCount(),M=0;M<A;M++)U.push(H.getTextRange(M));
return U};
E3k.prototype.isReversed=function(){return!1};
E3k.prototype.getWindow=function(){return uV(_.ZD(this.JSC$11653_getStartNode()))};
var mew=function(H,U){H0.call(this,H,U,!0)};
_.zo(mew,H0);var AO=function(H,U,A,M,W){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!W;if(H){this.startNode_=H;this.startOffset_=U;this.endNode_=A;this.endOffset_=M;if(H.nodeType==1&&H.tagName!="BR")if(H=H.childNodes,U=H[U])this.startNode_=U,this.startOffset_=0;else{H.length&&(this.startNode_=_.z8(H));var w=!0}A.nodeType==1&&((this.endNode_=A.childNodes[M])?this.endOffset_=0:this.endNode_=A)}H0.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);w&&this.next()};
_.zo(AO,mew);_.X=AO.prototype;_.X.JSC$11659_getStartNode=function(){return this.startNode_};
_.X.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)};
_.X.next=function(){return this.isLast()?cU:AO.superClass_.next.call(this)};
_.X.JSC$11651_copyFrom=function(H){this.startNode_=H.startNode_;this.endNode_=H.endNode_;this.startOffset_=H.startOffset_;this.endOffset_=H.endOffset_;this.isReversed_=H.isReversed_;AO.superClass_.JSC$11651_copyFrom.call(this,H)};
_.X.clone=function(){var H=new AO(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);H.JSC$11651_copyFrom(this);return H};lnh.prototype.__iterator__=function(){return new AO(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};_.zo(YA,lnh);var g3w=function(H){var U=_.ZD(H).createRange();if(H.nodeType==3)U.setStart(H,0),U.setEnd(H,H.length);else if(ud(H)||H.nodeType==3){for(var A,M=H;(A=M.firstChild)&&(ud(A)||A.nodeType==3);)M=A;U.setStart(M,0);for(M=H;(A=M.lastChild)&&(ud(A)||A.nodeType==3);)M=A;U.setEnd(M,M.nodeType==1?M.childNodes.length:M.length)}else A=H.parentNode,H=Array.prototype.indexOf.call(A.childNodes,H),U.setStart(A,H),U.setEnd(A,H+1);return U},aNr=function(H,U,A,M){var W=_.ZD(H).createRange();
W.setStart(H,U);W.setEnd(A,M);return W};
_.X=YA.prototype;_.X.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.X.getContainer=function(){return this.range_.commonAncestorContainer};
_.X.compareBrowserRangeEndpoints=function(H,U,A){return this.range_.compareBoundaryPoints(A==1?U==1?_.Mr.Range.START_TO_START:_.Mr.Range.START_TO_END:U==1?_.Mr.Range.END_TO_START:_.Mr.Range.END_TO_END,H)};
_.X.isCollapsed=function(){return this.range_.collapsed};
_.X.select=function(H){this.selectInternal(uV(_.ZD(this.range_.startContainer)).getSelection(),H)};
_.X.selectInternal=function(H){H.removeAllRanges();H.addRange(this.range_)};
_.X.insertNode=function(H,U){var A=this.range_.cloneRange();A.collapse(U);A.insertNode(H);A.detach();return H};
_.X.collapse=function(H){this.range_.collapse(H)};_.zo(qC,YA);qC.prototype.selectInternal=function(H,U){!U||this.isCollapsed()?qC.superClass_.selectInternal.call(this,H,U):(H.collapse(this.range_.endContainer,this.range_.endOffset),H.extend(this.range_.startContainer,this.range_.startOffset))};_.zo(h0,YA);h0.prototype.compareBrowserRangeEndpoints=function(H,U,A){return h0.superClass_.compareBrowserRangeEndpoints.call(this,H,U,A)};
h0.prototype.selectInternal=function(H,U){U?H.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):H.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var My=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},ke7;
_.zo(My,E3k);ke7=function(H,U){var A=new My;A.browserRangeWrapper_=H;A.isReversed_=!!U;return A};
_.xem=function(H){H=_.kA?new h0(g3w(H)):_.va?new qC(g3w(H)):new YA(g3w(H));return ke7(H)};
_.I$=function(H,U,A,M){var W=new My;W.isReversed_=h0F(H,U,A,M);if(_.YR(H)&&!ud(H)){var w=H.parentNode;U=Array.prototype.indexOf.call(w.childNodes,H);H=w}_.YR(A)&&!ud(A)&&(w=A.parentNode,M=Array.prototype.indexOf.call(w.childNodes,A),A=w);W.isReversed_?(W.startNode_=A,W.startOffset_=M,W.endNode_=H,W.endOffset_=U):(W.startNode_=H,W.startOffset_=U,W.endNode_=A,W.endOffset_=M);return W};
_.X=My.prototype;_.X.clone=function(){var H=new My;H.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();H.startNode_=this.startNode_;H.startOffset_=this.startOffset_;H.endNode_=this.endNode_;H.endOffset_=this.endOffset_;H.isReversed_=this.isReversed_;return H};
_.X.JSC$11653_getType=function(){return"text"};
_.X.getBrowserRangeObject=function(){return W0(this).range_};
_.X.getTextRangeCount=function(){return 1};
_.X.getTextRange=function(){return this};
var W0=function(H){var U;if(!(U=H.browserRangeWrapper_)){U=H.JSC$11653_getStartNode();var A=H.JSC$11653_getStartOffset(),M=H.JSC$11653_getEndNode(),W=H.JSC$11653_getEndOffset();U=_.kA?new h0(aNr(U,A,M,W)):_.va?new qC(aNr(U,A,M,W)):new YA(aNr(U,A,M,W));U=H.browserRangeWrapper_=U}return U};
_.X=My.prototype;_.X.getContainer=function(){return W0(this).getContainer()};
_.X.JSC$11653_getStartNode=function(){return this.startNode_||(this.startNode_=W0(this).range_.startContainer)};
_.X.JSC$11653_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=W0(this).range_.startOffset};
_.X.JSC$11653_getEndNode=function(){return this.endNode_||(this.endNode_=W0(this).range_.endContainer)};
_.X.JSC$11653_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=W0(this).range_.endOffset};
_.X.isReversed=function(){return this.isReversed_};
_.X.JSC$11653_containsRange=function(H,U){if(H.JSC$11653_getType()=="text"){var A=W0(this);H=W0(H);U=U&&!H.isCollapsed();H=H.range_;A=U?A.compareBrowserRangeEndpoints(H,0,1)>=0&&A.compareBrowserRangeEndpoints(H,1,0)<=0:A.compareBrowserRangeEndpoints(H,0,0)>=0&&A.compareBrowserRangeEndpoints(H,1,1)<=0}else A=!1;return A};
_.X.isCollapsed=function(){return W0(this).isCollapsed()};
_.X.JSC$11653_getText=function(){return W0(this).range_.toString()};
_.X.__iterator__=function(){return new AO(this.JSC$11653_getStartNode(),this.JSC$11653_getStartOffset(),this.JSC$11653_getEndNode(),this.JSC$11653_getEndOffset())};
_.X.select=function(){W0(this).select(this.isReversed_)};
_.X.JSC$11653_removeContents=function(){var H=W0(this).range_;H.extractContents();if(H.startContainer.hasChildNodes()&&(H=H.startContainer.childNodes[H.startOffset])){var U=H.previousSibling;tl3(H)==""&&_.U5(H);U&&tl3(U)==""&&_.U5(U)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.X.insertNode=function(H,U){H=W0(this).insertNode(H,U);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return H};
_.X.collapse=function(H){H=this.isReversed()?!H:H;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(H);H?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var zy3=function(){};
_.zo(zy3,E3k);zy3.prototype.JSC$11653_containsRange=function(H,U){var A=Ug(this);H=Ug(H);return(U?C_:_.oo7)(H,function(M){return C_(A,function(W){return W.JSC$11653_containsRange(M,U)})})};
zy3.prototype.insertNode=function(H,U){U?_.ft(H,this.JSC$11653_getStartNode()):_.JJ(H,this.JSC$11653_getEndNode());return H};var CjK,cpk=AD().JSC$9629_document_.documentElement;CjK=cpk.requestFullscreen?"fullscreenchange":cpk.webkitRequestFullscreen?"webkitfullscreenchange":cpk.mozRequestFullScreen?"mozfullscreenchange":cpk.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var jX=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.zo(jX,zy3);_.X=jX.prototype;_.X.clone=function(){var H=new jX;H.browserRanges_=_.$c(this.browserRanges_);return H};
_.X.JSC$11653_getType=function(){return"mutli"};
_.X.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.X.getTextRangeCount=function(){return this.browserRanges_.length};
_.X.getTextRange=function(H){this.ranges_[H]||(this.ranges_[H]=ke7(Gec(this.browserRanges_[H])));return this.ranges_[H]};
_.X.getContainer=function(){if(!this.container_){for(var H=[],U=this.getTextRangeCount(),A=0;A<U;A++)H.push(this.getTextRange(A).getContainer());this.container_=ElH.apply(null,H)}return this.container_};
var w$=function(H){H.sortedRanges_||(H.sortedRanges_=Ug(H),H.sortedRanges_.sort(function(U,A){var M=U.JSC$11653_getStartNode();U=U.JSC$11653_getStartOffset();var W=A.JSC$11653_getStartNode();A=A.JSC$11653_getStartOffset();return M==W&&U==A?0:h0F(M,U,W,A)?1:-1}));
return H.sortedRanges_};
_.X=jX.prototype;_.X.JSC$11653_getStartNode=function(){return w$(this)[0].JSC$11653_getStartNode()};
_.X.JSC$11653_getStartOffset=function(){return w$(this)[0].JSC$11653_getStartOffset()};
_.X.JSC$11653_getEndNode=function(){return _.z8(w$(this)).JSC$11653_getEndNode()};
_.X.JSC$11653_getEndOffset=function(){return _.z8(w$(this)).JSC$11653_getEndOffset()};
_.X.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.X.JSC$11653_getText=function(){return Ug(this).map(function(H){return H.JSC$11653_getText()}).join("")};
_.X.__iterator__=function(){return new XT(this)};
_.X.select=function(){var H=this.getWindow().getSelection();H.removeAllRanges();for(var U=this.getTextRangeCount(),A=0;A<U;A++)H.addRange(this.getTextRange(A).getBrowserRangeObject())};
_.X.JSC$11653_removeContents=function(){Ug(this).forEach(function(H){H.JSC$11653_removeContents()})};
_.X.collapse=function(H){if(!this.isCollapsed()){var U=H?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;U.collapse(H);this.ranges_=[U];this.sortedRanges_=[U];this.browserRanges_=[U.getBrowserRangeObject()]}};
var XT=function(H){this.iterators_=null;this.currentIdx_=0;H&&(this.iterators_=w$(H).map(function(U){return _.M92(U)}));
H0.call(this,H?this.JSC$11659_getStartNode():null,!1,!0)};
_.zo(XT,mew);_.X=XT.prototype;_.X.JSC$11659_getStartNode=function(){return this.iterators_[0].JSC$11659_getStartNode()};
_.X.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.X.next=function(){for(;this.currentIdx_<this.iterators_.length;){var H=this.iterators_[this.currentIdx_],U=H.next();if(U.done)this.currentIdx_++;else return VF(this,H.node,H.tagType,H.depth),U}return cU};
_.X.JSC$11651_copyFrom=function(H){this.iterators_=_.$c(H.iterators_);XT.superClass_.JSC$11651_copyFrom.call(this,H)};
_.X.clone=function(){var H=new XT(null);H.JSC$11651_copyFrom(this);return H};var ie=function(){_.LW.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.i9)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.i9)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.i9)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.i9)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.i9)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.i9)(this.dispatchProgressEvent_,this)};
_.zo(ie,_.LW);ie.prototype.abort=function(){try{this.reader_.abort()}catch(H){throw new i1H(H,"aborting read");}};
ie.prototype.getError=function(){return this.reader_.error&&new i1H(this.reader_.error,"reading file")};
ie.prototype.dispatchProgressEvent_=function(H){this.dispatchEvent(new i_8(H,this))};
ie.prototype.disposeInternal=function(){ie.superClass_.disposeInternal.call(this);delete this.reader_};
var BAw=function(H){var U=new ie,A=yp2(U);U.reader_.readAsArrayBuffer(H);return A},rpk=function(H){var U=new ie,A=yp2(U);
U.reader_.readAsDataURL(H);return A},yp2=function(H){var U=new fW;
H.listen("loadend",_.vg(function(A,M){var W=M.reader_.result,w=M.getError();W==null||w?A.errback(w):A.callback(W);M.dispose()},U,H));
return U};var be=function(){_.LW.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11693_eventHandler_=new _.u9(this);this.JSC$11693_isInitialized_=!1};
_.zo(be,_.LW);var eyh=new _.HS("d"),De2=new _.HS("beforedragstart"),$ew=new _.HS("dragstart"),lNn=new _.HS("beforedragmove"),Gkp=new _.HS("dragmove"),YBp=new _.HS("beforedragend"),qBH=new _.HS("dragend"),hyH=new _.HS("e");be.prototype.isDragging=function(){return!!this.JSC$11693_dragger_};
var kkz=function(H,U){U.dlgGrowthDirection_=0;U.dlgDragHoverClass_=void 0;U.dlgDragPermission=0;H.dragLists_.push(U)},v3H=function(H,U){H.getHandleForDragItem_=U};
be.prototype.init=function(){if(!this.JSC$11693_isInitialized_){for(var H=this.dragLists_.length,U=0;U<H;U++)for(var A=_.Kt(this.dragLists_[U]),M=A.length,W=0;W<M;++W){var w=A[W],d=this.getHandleForDragItem_(w),O=_.vF(d);this.dragItemForHandle_[O]=w;this.dragItemHoverClasses_&&(this.JSC$11693_eventHandler_.listen(w,"mouseover",this.handleDragItemMouseover_),this.JSC$11693_eventHandler_.listen(w,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11693_eventHandler_.listen(d,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11693_eventHandler_.listen(d,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(w);this.JSC$11693_eventHandler_.listen(d,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11693_isInitialized_=!0}};
be.prototype.disposeInternal=function(){this.JSC$11693_eventHandler_.dispose();for(var H=this.dragLists_.length,U=0;U<H;U++){var A=this.dragLists_[U];A.dlgGrowthDirection_=void 0;A.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;TA3(this);be.superClass_.disposeInternal.call(this)};
var jvg=function(H,U){for(var A=H.dragLists_.length,M=0;M<A;M++){var W=H.dragLists_[M];W.dlgBounds_=Tp8(W)}A=H.dragItems_.length;for(M=0;M<A;M++)W=H.dragItems_[M],W!=U&&(W.dlgBounds_=Tp8(W))};
_.X=be.prototype;
_.X.handlePotentialDragStart_=function(H){var U=_.vF(H.currentTarget);U=this.dragItemForHandle_[U];if(U.parentElement.dlgDragPermission!=2){this.currDragItem_=U;a:{U=this.currDragItem_;for(var A=U.cloneNode(!0),M=A8("TEXTAREA",U),W=A8("TEXTAREA",A),w=0;w<M.length;w++)W[w].value=M[w].value;switch(U.tagName){case "TR":U=_.dp("TABLE",null,_.dp("TBODY",null,A));break a;case "TD":case "TH":U=_.dp("TABLE",null,_.dp("TBODY",null,_.dp("TR",null,A)));break a;case "TEXTAREA":A.value=U.value;default:U=A;break a}U=
void 0}this.draggerEl_=U;this.draggerElClasses_&&E0(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.ZD(this.currDragItem_).body.appendChild(this.draggerEl_);A=_.fp(this.currDragItem_);U=this.draggerEl_;M=_.fp(U);if(A instanceof _.E6){var d=A.y;A=A.x}sR(U,U.offsetLeft+(A-M.x),U.offsetTop+(Number(d)-M.y));this.JSC$11693_dragger_=new _.fB(this.draggerEl_);_.f2h(this.JSC$11693_dragger_,this.hysteresisDistance_);
_.Rc(this.JSC$11693_dragger_,"start",this.handleDragStart_,!1,this);_.Rc(this.JSC$11693_dragger_,"end",this.handleDragEnd_,!1,this);_.Rc(this.JSC$11693_dragger_,"earlycancel",this.JSC$11695_cleanup_,!1,this);this.dispatchEvent(new d$(eyh,this,H,this.currDragItem_,this.draggerEl_,this.JSC$11693_dragger_));this.JSC$11693_dragger_.startDrag(H)}};
_.X.handleDragStart_=function(H){if(this.dispatchEvent(new d$(De2,this,H.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.p8z(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?E0(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var U=DuB(this.draggerEl_);this.draggerEl_.halfWidth=U.width/2;this.draggerEl_.halfHeight=U.height/2;U=this.draggerEl_.getBoundingClientRect();
var A=H.clientY,M=JTn(this.JSC$11693_dragger_,H.clientX);if(M>U.right){var W=this.currDragItem_.getBoundingClientRect();this.JSC$11693_dragger_.deltaX=M-(M-W.left)/W.width*U.width}A=Kzy(this.JSC$11693_dragger_,A);A>U.bottom&&(this.JSC$11693_dragger_.deltaY+=A-U.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";jvg(this,this.currDragItem_);this.currDragItem_.style.display="";_.Rc(this.JSC$11693_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new d$($ew,
this,H.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11693_dragger_))}else H.preventDefault(),this.JSC$11695_cleanup_()};
_.X.handleDragMove_=function(H){var U=_.fp(this.draggerEl_);U=new _.E6(U.x+this.draggerEl_.halfWidth,U.y+this.draggerEl_.halfHeight);a:{var A=null;if(this.currDragItem_.style.display!="none"){A=this.currDragItem_.parentNode;var M=Tp8(A);if(INw(U,M))break a}M=this.dragLists_.length;for(var W=0;W<M;W++){var w=this.dragLists_[W];if(w!=A&&INw(U,w.dlgBounds_)){A=w;break a}}A=null}if(A){if(A==null)throw Error("be");M=0;W=!1;w=void 0;switch(A.dlgGrowthDirection_){case 0:M=U.y;var d=QvH;var O=Vrw;break;case 4:W=
!0;case 2:M=U.x;d=Hyw;O=Vrw;break;case 5:W=!0;case 3:M=U.x,d=UFB,O=Asw}for(var f=null,J,F=_.Kt(A),P=F.length,n=0;n<P;n++){var N=F[n];if(N!=this.currDragItem_){var L=d(N.dlgBounds_);if(W){var m=MIn(N,U);w===void 0&&(w=m);O(M,L)&&(J==void 0||m<w||m==w&&(O(L,J)||L==J))&&(f=N,J=L);m<w&&(w=m)}else O(M,L)&&(J==void 0||O(L,J))&&(f=N,J=L)}}d=f!==null&&MIn(f,U)>w?null:f}else d=null;if(!this.dispatchEvent(new d$(lNn,this,H,this.currDragItem_,this.draggerEl_,this.JSC$11693_dragger_,U,A,d)))return!1;if(A&&A.dlgDragPermission!=
1)this.currDragItem_.parentNode==A&&_.p8z(this.currDragItem_)==d||A.insertBefore(this.currDragItem_,d),this.currDragItem_.style.display="",A.dlgDragHoverClass_&&_.P$(A,A.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",O=this.dragLists_.length,J=0;J<O;J++)M=this.dragLists_[J],M.dlgDragHoverClass_&&_.F1(M,M.dlgDragHoverClass_);A!=this.currHoverList_&&(this.currHoverList_=A,jvg(this,this.currDragItem_));this.dispatchEvent(new d$(Gkp,this,H,this.currDragItem_,this.draggerEl_,this.JSC$11693_dragger_,
U,A,d));return!1};
_.X.JSC$11695_cleanup_=function(){TA3(this);this.JSC$11693_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var H=this.dragLists_.length,U=0;U<H;U++)this.dragLists_[U].dlgBounds_=null;H=this.dragItems_.length;for(U=0;U<H;U++)this.dragItems_[U].dlgBounds_=null};
_.X.handleDragEnd_=function(H){if(!this.dispatchEvent(new d$(YBp,this,H,this.currDragItem_,this.draggerEl_,this.JSC$11693_dragger_)))return!1;TA3(this);this.dispatchEvent(new d$(qBH,this,H,this.currDragItem_,this.draggerEl_,this.JSC$11693_dragger_));this.JSC$11695_cleanup_();return!0};
var TA3=function(H){_.zg(H.JSC$11693_dragger_);var U=H.draggerEl_&&H.draggerEl_.parentElement;H.draggerEl_&&_.U5(H.draggerEl_);H.currDragItem_&&H.currDragItem_.style.display=="none"&&(H.origList_.insertBefore(H.currDragItem_,H.origNextItem_),H.currDragItem_.style.display="");H.currDragItemClasses_&&H.currDragItem_?FyB(H.currDragItem_,H.currDragItemClasses_||[]):H.currDragItem_&&(H.currDragItem_.style.visibility="");for(var A=H.dragLists_.length,M=0;M<A;M++){var W=H.dragLists_[M];W.dlgDragHoverClass_&&
_.F1(W,W.dlgDragHoverClass_)}U&&H.dispatchEvent(new d$(hyH,H,null,H.currDragItem_,H.draggerEl_,H.JSC$11693_dragger_))};
_.X=be.prototype;_.X.getHandleForDragItem_=function(H){return H};
_.X.handleDragItemMouseover_=function(H){E0(H.currentTarget,this.dragItemHoverClasses_||[])};
_.X.handleDragItemMouseout_=function(H){FyB(H.currentTarget,this.dragItemHoverClasses_||[])};
_.X.handleDragItemHandleMouseover_=function(H){E0(H.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.X.handleDragItemHandleMouseout_=function(H){FyB(H.currentTarget,this.dragItemHandleHoverClasses_||[])};
var INw=function(H,U){return H.x>U.left&&H.x<U.left+U.width&&H.y>U.top&&H.y<U.top+U.height},MIn=function(H,U){H=H.dlgBounds_;
return Math.abs(U.y-(H.top+(H.height-1)/2))},QvH=function(H){return H.top+H.height-1},Hyw=function(H){return H.left+H.width-1},UFB=function(H){return H.left||0},Vrw=function(H,U){return H<U},Asw=function(H,U){return H>U},d$=function(H,U,A,M,W,w){_.$R.call(this,H);
this.event=A;this.currDragItem=M;this.draggerEl=W;this.JSC$11697_dragger=w};
_.zo(d$,_.$R);_.zo(Hx,_.XG);var WYB=new _.E6(0,0);Hx.prototype.JSC$11701_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Hx.prototype.JSC$11701_onMouseMove=function(H){var U=this.containerIsActuallyContent_?WYB:H8(AD(this.containerNode_)),A=this.horizontalScrolling_?this.calculateScrollDelta(H.clientX+U.x,this.scrollBounds_.left,this.scrollBounds_.width):0,M=this.calculateScrollDelta(H.clientY+U.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=A;this.scrollDelta_.y=M;!(A=!A&&!M)&&(A=this.constrainScroll_)&&(A=H.clientX+U.x,H=H.clientY+U.y,U=this.containerBounds_,A=!(U.left<=A&&U.left+U.width>=
A&&U.top<=H&&U.top+U.height>=H));A?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Hx.prototype.calculateScrollDelta=function(H,U,A){var M=0;H<U?M=-8:H>U+A&&(M=8);return M};
Hx.prototype.disposeInternal=function(){Hx.superClass_.disposeInternal.call(this);this.JSC$11699_eventHandler_.dispose();this.scrollTimer_.dispose()};var wom={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"}}},Og=wom;Og=wom;var ue={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 Xo2=function(){},s_=function(H){if(typeof H=="number"){var U=new Xo2;
U.standardOffset_=H;var A=H;if(A==0)A="Etc/GMT";else{var M=["Etc/GMT",A<0?"-":"+"];A=Math.abs(A);M.push(Math.floor(A/60)%100);A%=60;A!=0&&M.push(":",_.DX(A,2));A=M.join("")}U.timeZoneId_=A;A=H;A==0?A="UTC":(M=["UTC",A<0?"+":"-"],A=Math.abs(A),M.push(Math.floor(A/60)%100),A%=60,A!=0&&M.push(":",A),A=M.join(""));H=iyp(H);U.tzNames_=[A,A];U.tzNamesExt_={STD_LONG_NAME_GMT:H,STD_GENERIC_LOCATION:H};U.transitions_=[];return U}U=new Xo2;U.timeZoneId_=H.id;U.standardOffset_=-H.std_offset;U.tzNames_=H.names;
U.tzNamesExt_=H.names_ext;U.transitions_=H.transitions;return U},iyp=function(H){var U=["GMT"];
U.push(H<=0?"+":"-");H=Math.abs(H);U.push(_.DX(Math.floor(H/60)%100,2),":",_.DX(H%60,2));return U.join("")},byr=function(H,U){U=Date.UTC(U.getUTCFullYear(),U.getUTCMonth(),U.getUTCDate(),U.getUTCHours(),U.getUTCMinutes())/36E5;
for(var A=0;A<H.transitions_.length&&U>=H.transitions_[A];)A+=2;return A==0?0:H.transitions_[A-1]},dFh=function(H,U){H=H.standardOffset_-byr(H,U);
return H===-1440?0:H};var nq=function(H,U){this.patternParts_=[];this.JSC$11712_dateTimeSymbols_=U||e5;typeof H=="number"?Oyr(this,H):uAk(this,H)},Zyw=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],ZA=function(H){return H.getHours?H.getHours():0},uAk=function(H,U){for(xx0&&(U=U.replace(/\u200f/g,""));U;){for(var A=U,M=0;M<Zyw.length;++M){var W=U.match(Zyw[M]);
if(W){var w=W[0];U=U.substring(w.length);M==0&&(w=="''"?w="'":(w=w.substring(1,W[1]=="'"?w.length-1:w.length),w=w.replace(/''/g,"'")));H.patternParts_.push({text:w,type:M});break}}if(A===U)throw Error("ce`"+U);}};
nq.prototype.format=function(H,U){if(!H)throw Error("de");var A=U?(H.getTimezoneOffset()-dFh(U,H))*6E4:0,M=A?new Date(H.getTime()+A):H,W=M;U&&M.getTimezoneOffset()!=H.getTimezoneOffset()&&(M=new Date(M.getTime()+(M.getTimezoneOffset()-H.getTimezoneOffset())*6E4),W=new Date(H.getTime()+(A+(A>0?-864E5:864E5))));A=[];for(var w=0;w<this.patternParts_.length;++w){var d=this.patternParts_[w].text;1==this.patternParts_[w].type?A.push(fWg(this,d,H,M,W,U)):A.push(d)}return A.join("")};
var Oyr=function(H,U){if(U<4)var A=H.JSC$11712_dateTimeSymbols_.DATEFORMATS[U];else if(U<8)A=H.JSC$11712_dateTimeSymbols_.TIMEFORMATS[U-4];else if(U<12)A=H.JSC$11712_dateTimeSymbols_.DATETIMEFORMATS[U-8],A=A.replace("{1}",H.JSC$11712_dateTimeSymbols_.DATEFORMATS[U-8]),A=A.replace("{0}",H.JSC$11712_dateTimeSymbols_.TIMEFORMATS[U-8]);else if(U===12)A=H.JSC$11712_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(U===13)A=H.JSC$11712_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{Oyr(H,10);return}uAk(H,A)},fH=function(H,U){U=String(U);
H=H.JSC$11712_dateTimeSymbols_||e5;if(H.ZERODIGIT!==void 0&&!auN){for(var A=[],M=0;M<U.length;M++){var W=U.charCodeAt(M);A.push(48<=W&&W<=57?String.fromCharCode(H.ZERODIGIT+W-48):U.charAt(M))}U=A.join("")}return U},auN=!1,xx0=!1,KYn=function(H,U,A,M){A=A.getFullYear();
A<=0&&M&&(A=1-A);return fH(H,Jsh(A,U))},Jsh=function(H,U){U==2&&(H%=100);
H<0&&U++;return _.DX(H,U)},JO=function(H){if(!(H.getHours&&H.getSeconds&&H.getMinutes))throw Error("ee");
},oYg=function(H,U){JO(U);
U=ZA(U);return H.JSC$11712_dateTimeSymbols_.AMPMS[U>=12&&U<24?1:0]},fWg=function(H,U,A,M,W,w){var d=U.length;
switch(U.charAt(0)){case "G":return A=M.getFullYear()>0?1:0,d>=4?H.JSC$11712_dateTimeSymbols_.ERANAMES[A]:H.JSC$11712_dateTimeSymbols_.ERAS[A];case "y":return KYn(H,d,M,!0);case "Y":return A=(new Date(p$w(M.getFullYear(),M.getMonth(),M.getDate(),H.JSC$11712_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,H.JSC$11712_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),d==2&&(A%=100),fH(H,Jsh(A,d));case "u":return KYn(H,d,M,!1);case "M":a:switch(A=M.getMonth(),d){case 5:d=H.JSC$11712_dateTimeSymbols_.NARROWMONTHS[A];
break a;case 4:d=H.JSC$11712_dateTimeSymbols_.MONTHS[A];break a;case 3:d=H.JSC$11712_dateTimeSymbols_.SHORTMONTHS[A];break a;default:d=fH(H,_.DX(A+1,d))}return d;case "k":return JO(W),fH(H,_.DX(ZA(W)||24,d));case "S":return fH(H,(W.getMilliseconds()/1E3).toFixed(Math.min(3,d)).slice(2)+(d>3?_.DX(0,d-3):""));case "E":return A=M.getDay(),d>=4?H.JSC$11712_dateTimeSymbols_.WEEKDAYS[A]:H.JSC$11712_dateTimeSymbols_.SHORTWEEKDAYS[A];case "a":return oYg(H,W);case "b":return oYg(H,W);case "B":return oYg(H,
W);case "h":return JO(W),fH(H,_.DX(ZA(W)%12||12,d));case "K":return JO(W),fH(H,_.DX(ZA(W)%12,d));case "H":return JO(W),fH(H,_.DX(ZA(W),d));case "c":a:switch(A=M.getDay(),d){case 5:d=H.JSC$11712_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[A];break a;case 4:d=H.JSC$11712_dateTimeSymbols_.STANDALONEWEEKDAYS[A];break a;case 3:d=H.JSC$11712_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[A];break a;default:d=fH(H,_.DX(A,1))}return d;case "L":a:switch(A=M.getMonth(),d){case 5:d=H.JSC$11712_dateTimeSymbols_.STANDALONENARROWMONTHS[A];
break a;case 4:d=H.JSC$11712_dateTimeSymbols_.STANDALONEMONTHS[A];break a;case 3:d=H.JSC$11712_dateTimeSymbols_.STANDALONESHORTMONTHS[A];break a;default:d=fH(H,_.DX(A+1,d))}return d;case "Q":return A=Math.floor(M.getMonth()/3),d<4?H.JSC$11712_dateTimeSymbols_.SHORTQUARTERS[A]:H.JSC$11712_dateTimeSymbols_.QUARTERS[A];case "d":return fH(H,_.DX(M.getDate(),d));case "m":return JO(W),fH(H,_.DX(W.getMinutes?W.getMinutes():0,d));case "s":return JO(W),fH(H,_.DX(W.getSeconds(),d));case "v":return(w||s_(A.getTimezoneOffset())).timeZoneId_;
case "V":return H=w||s_(A.getTimezoneOffset()),d<=2?H.timeZoneId_:byr(H,A)>0?H.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?H.tzNamesExt_.DST_GENERIC_LOCATION:H.tzNamesExt_.DST_GENERIC_LOCATION:H.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?H.tzNamesExt_.STD_GENERIC_LOCATION:H.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return A=p$w(W.getFullYear(),W.getMonth(),W.getDate(),H.JSC$11712_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,H.JSC$11712_dateTimeSymbols_.FIRSTDAYOFWEEK),fH(H,_.DX(Math.floor(Math.round((A-(new Date((new Date(A)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,d));case "z":return H=w||s_(A.getTimezoneOffset()),d<4?H.tzNames_[byr(H,A)>0?2:0]:H.tzNames_[byr(H,A)>0?3:1];case "Z":return U=w||s_(A.getTimezoneOffset()),d<4?(d=-dFh(U,A),H=[d<0?"-":"+"],d=Math.abs(d),H.push(_.DX(Math.floor(d/60)%100,2),_.DX(d%60,2)),d=H.join("")):d=fH(H,iyp(dFh(U,A))),d;default:return""}};var FYy=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,PZB=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,mwK=function(H){this.patternParts_=[];this.JSC$11721_dateTimeSymbols_=e5;if(typeof H=="number"){H>11&&(H=10);if(H<4)var U=this.JSC$11721_dateTimeSymbols_.DATEFORMATS[H];else H<8?U=this.JSC$11721_dateTimeSymbols_.TIMEFORMATS[H-4]:(U=this.JSC$11721_dateTimeSymbols_.DATETIMEFORMATS[H-8],U=U.replace("{1}",this.JSC$11721_dateTimeSymbols_.DATEFORMATS[H-8]),U=U.replace("{0}",this.JSC$11721_dateTimeSymbols_.TIMEFORMATS[H-
8]));sL2(this,U)}else sL2(this,H)},sL2=function(H,U){for(var A=!1,M="",W=0;W<U.length;W++){var w=U.charAt(W);
if(FYy.test(w))for(M.length>0&&(H.patternParts_.push({text:M,count:0,abutStart:!1,numeric:!1}),M=""),H.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});W<U.length-1&&U.charAt(W+1)==" ";)W++;else if(A)w=="'"?W+1<U.length&&U.charAt(W+1)=="'"?(M+="'",W++):A=!1:M+=w;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(w)>=0){M.length>0&&(H.patternParts_.push({text:M,count:0,abutStart:!1,numeric:!1}),M="");for(var d=U.charAt(W),O=W+1;O<U.length&&U.charAt(O)==d;)O++;d=O-W;d<=0?O=!1:(O="MydhHmsSDkK".indexOf(w),
O=O>0||O==0&&d<3);H.patternParts_.push({text:w,count:d,abutStart:!1,numeric:O});W+=d-1}else w=="'"?W+1<U.length&&U.charAt(W+1)=="'"?(M+="'",W++):A=!0:M+=w}M.length>0&&H.patternParts_.push({text:M,count:0,abutStart:!1,numeric:!1});U=!1;for(A=0;A<H.patternParts_.length;A++)H.patternParts_[A].numeric?!U&&A+1<H.patternParts_.length&&H.patternParts_[A+1].numeric&&(U=!0,H.patternParts_[A].abutStart=!0):U=!1};
mwK.prototype.parse=function(H,U,A){var M=!1,W=!1;A&&(M=A.predictive||!1,W=A.validate||!1);if(M)for(A=0;A<this.patternParts_.length;A++){var w=this.patternParts_[A];if(w.count>0&&("abBhHkKm".indexOf(w.text.charAt(0))<0||w.count>2||w.abutStart))throw Error("fe`"+w.text.charAt(0));}w=new nYy;A=[0];w.dayPeriodIndex=-1;for(var d=0;d<this.patternParts_.length&&!(M&&A[0]>=H.length);d++){if(this.patternParts_[d].count==0){a:{var O=H;var f=A,J=this.patternParts_[d],F=M;if(J.text.match(FYy)!=null){if(J=f[0],
NTk(O,f),f[0]>J){O=!0;break a}}else{if(O.indexOf(J.text,f[0])==f[0]){f[0]+=J.text.length;O=!0;break a}if(F&&J.text.indexOf(O.substring(f[0]))==0){f[0]+=O.length-f[0];O=!0;break a}}O=!1}if(O)continue;return 0}if(this.patternParts_[d].abutStart){a:{f=H;J=A;F=d;var P=J[0],n=0;for(O=F;O<this.patternParts_.length;O++){var N=this.patternParts_[O],L=N.count;if(L===0)break;if(O==F&&(L-=n,n++,L==0)){O=0;break a}var m=O>F&&N.numeric,z=J[0];if(!S33(this,f,J,N,L,w,!1)||m&&J[0]-z<L)O=F-1,J[0]=P}O-=F}if(O<=0)return 0;
d+=O-1}else if(!S33(this,H,A,this.patternParts_[d],0,w,M))return 0}a:{H=W;if(U==null)throw Error("ge");w.era!=void 0&&w.year!=void 0&&w.era==0&&w.year>0&&(w.year=-(w.year-1));w.year!=void 0&&U.setFullYear(w.year);M=U.getDate();U.setDate(1);w.month!=void 0&&U.setMonth(w.month);w.day!=void 0?U.setDate(w.day):(W=AX7(U.getFullYear(),U.getMonth()),U.setDate(M>W?W:M));typeof U.setHours==="function"&&(w.hours==void 0&&(w.hours=U.getHours()),w.hours<12&&(w.ampm!=void 0&&w.ampm>0?w.hours+=12:w.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(w.dayPeriodName)||["night1","night2"].includes(w.dayPeriodName)&&w.hours>=6)&&(w.hours+=12)),U.setHours(w.hours));typeof U.setMinutes==="function"&&w.minutes!=void 0&&U.setMinutes(w.minutes);typeof U.setSeconds==="function"&&w.seconds!=void 0&&U.setSeconds(w.seconds);typeof U.setMilliseconds==="function"&&w.milliseconds!=void 0&&U.setMilliseconds(w.milliseconds);if(H&&(w.year&&w.year!=U.getFullYear()||w.month&&w.month!=
U.getMonth()||w.day&&w.day!=U.getDate()||w.hours&&w.hours>=24||w.minutes&&w.minutes>=60||w.seconds&&w.seconds>=60||w.milliseconds&&w.milliseconds>=1E3))U=!1;else{w.tzOffset!=void 0&&U.setTime(U.getTime()+(w.tzOffset-U.getTimezoneOffset())*60*1E3);w.ambiguousYear&&(H=new Date,H.setFullYear(H.getFullYear()-80),U.getTime()<H.getTime()&&U.setFullYear(H.getFullYear()+100));if(w.dayOfWeek!=void 0)if(w.day==void 0)w=(7+w.dayOfWeek-U.getDay())%7,w>3&&(w-=7),H=U.getMonth(),U.setDate(U.getDate()+w),U.getMonth()!=
H&&U.setDate(U.getDate()+(w>0?-7:7));else if(w.dayOfWeek!=U.getDay()){U=!1;break a}U=!0}}return U?A[0]:0};
var S33=function(H,U,A,M,W,w,d){NTk(U,A);if(M.numeric&&W>0&&A[0]+W>U.length)return!1;switch(M.text.charAt(0)){case "G":return KH(U,A,[H.JSC$11721_dateTimeSymbols_.ERAS],function(O){return w.era=O}),!0;
case "M":case "L":return pop(H,U,A,W,M,w);case "E":return KH(U,A,[H.JSC$11721_dateTimeSymbols_.WEEKDAYS,H.JSC$11721_dateTimeSymbols_.SHORTWEEKDAYS],function(O){return w.dayOfWeek=O});
case "B":case "b":return W=[],H=[[].concat(H.JSC$11721_dateTimeSymbols_.AMPMS)],W.push("isAm"),W.push("isPm"),U=KH(U,A,H,function(O){return w.dayPeriodIndex=O},d),w.dayPeriodName=W[w.dayPeriodIndex],d?U:!0;
case "a":return U=KH(U,A,[H.JSC$11721_dateTimeSymbols_.AMPMS],function(O){return w.ampm=O},d),d?U:!0;
case "y":return LYK(H,U,A,M,W,w);case "Q":return KH(U,A,[H.JSC$11721_dateTimeSymbols_.QUARTERS,H.JSC$11721_dateTimeSymbols_.SHORTQUARTERS],function(O){w.month=O*3;w.day=1});
case "d":return oU(H,U,A,M,W,function(O){w.day=O}),!0;
case "S":return R$y(H,U,A,W,w);case "h":case "K":case "H":case "k":return U=oU(H,U,A,M,W,function(O){w.hours=M.text.charAt(0)==="h"&&O===12?0:O},d),d?U:!0;
case "m":return U=oU(H,U,A,M,W,function(O){w.minutes=O},d),d?U:!0;
case "s":return oU(H,U,A,M,W,function(O){w.seconds=O}),!0;
case "z":case "Z":case "v":return EY3(H,U,A,w);default:return!1}},LYK=function(H,U,A,M,W,w){var d=A[0];
W=FT(H,U,A,W);W===null&&(W=FT(H,U,A,0,!0));if(W===null)return!1;W>=0&&A[0]-d==2&&M.count==2?(H=W,U=(new Date).getFullYear()-80,A=U%100,w.ambiguousYear=H==A,H+=Math.floor(U/100)*100+(H<A?100:0),w.year=H):w.year=W;return!0},pop=function(H,U,A,M,W,w){return W.numeric&&oU(H,U,A,W,M,function(d){w.month=d-1})?!0:KH(U,A,[H.JSC$11721_dateTimeSymbols_.MONTHS,
H.JSC$11721_dateTimeSymbols_.STANDALONEMONTHS,H.JSC$11721_dateTimeSymbols_.SHORTMONTHS,H.JSC$11721_dateTimeSymbols_.STANDALONESHORTMONTHS],function(d){w.month=d})},R$y=function(H,U,A,M,W){var w=A[0];
H=FT(H,U,A,M);if(H===null)return!1;A=A[0]-w;W.milliseconds=A<3?H*Math.pow(10,3-A):Math.round(H/Math.pow(10,A-3));return!0},EY3=function(H,U,A,M){U.indexOf("GMT",A[0])==A[0]&&(A[0]+=3);
if(A[0]>=U.length)return M.tzOffset=0,!0;var W=A[0],w=FT(H,U,A,0,!0);if(w===null)return!1;if(A[0]<U.length&&U.charAt(A[0])==":"){var d=w*60;A[0]++;w=FT(H,U,A,0);if(w===null)return!1;d+=w}else d=w,d=d<24&&A[0]-W<=3?d*60:d%100+d/100*60;M.tzOffset=-d;return!0},oU=function(H,U,A,M,W,w,d){d=d||!1;
var O=A[0];H=FT(H,U,A,W);if(H===null)return!1;if(d&&A[0]-O<M.count){if(A[0]<U.length)return!1;H*=Math.pow(10,M.count-(A[0]-O))}w(H);return!0},KH=function(H,U,A,M,W){W=W||!1;
for(var w,d=0;d<A.length;d++){w=U;for(var O=A[d],f=W,J=0,F=null,P=H.substring(w[0]).toLowerCase(),n=0;n<O.length;n++){var N=O[n].toLowerCase();if(f&&N.indexOf(P)==0){J=P.length;F=n;break}O[n].length>J&&P.indexOf(N)==0&&(J=O[n].length,F=n)}F!==null&&(w[0]+=J);w=F;if(w!==null)return M(w),!0}return!1},NTk=function(H,U){(H=H.substring(U[0]).match(PZB))&&(U[0]+=H[0].length)},FT=function(H,U,A,M,W){U=M>0?U.substring(0,A[0]+M):U;
W=W||!1;if(H.JSC$11721_dateTimeSymbols_.ZERODIGIT){M=[];for(var w=A[0];w<U.length;w++){var d=U.charCodeAt(w)-H.JSC$11721_dateTimeSymbols_.ZERODIGIT;M.push(0<=d&&d<=9?String.fromCharCode(d+48):U.charAt(w))}U=M.join("")}else U=U.substring(A[0]);H=U.match(new RegExp("^"+(W?"[+-]?":"")+"\\d+"));if(!H)return null;A[0]+=H[0].length;return parseInt(H[0],10)},nYy=function(){};
nYy.prototype.ambiguousYear=!1;var mFm;
mFm={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 gYr={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}"]};
gYr={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 aWm=function(){var H={type:"unit",style:"narrow"};this.listType_=H&&H.type?H.type:"conjunction";this.listStyle_=H&&H.style?H.style:"long";this.listSymbols_=gYr;H=0;switch(this.listStyle_){case "short":H=1;break;case "narrow":H=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[H];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[H];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[H];this.listEndPattern_=
this.listSymbols_.AND_END[H];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[H];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[H];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[H];this.listEndPattern_=this.listSymbols_.OR_END[H];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[H],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[H],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[H],this.listEndPattern_=this.listSymbols_.UNIT_END[H]}};
aWm.prototype.format=function(H){return xFn(this,H)};
var xFn=function(H,U){var A=U.length;switch(A){case 0:return"";case 1:return String(U[0]);case 2:return H.listTwoPattern_.replace("{0}",String(U[0])).replace("{1}",String(U[1]))}for(var M=H.listStartPattern_.replace("{0}",String(U[0])).replace("{1}",String(U[1])),W=2;W<A-1;++W)M=H.listMiddlePattern_.replace("{0}",M).replace("{1}",String(U[W]));return H.listEndPattern_.replace("{0}",M).replace("{1}",String(U[A-1]))};var z$w={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"},CZB=z$w,tIk=z$w;tIk=CZB=z$w;var ysn,P0,nH,ZcK,sg,csm;
_.oE=function(H,U,A,M){var W;if(W=U){a:if(U&&U.length===3){for(W=0;W<3;W++){var w=U[W];if(w<"A"||w>"Z"&&w<"a"||w>"z"){W=!1;break a}}W=!0}else W=!1;W=!W}if(W)throw new TypeError("he");this.intlCurrencyCode_=U?U.toUpperCase():null;this.currencyStyle_=A||0;this.overrideNumberFormatSymbols_=M||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_=P0(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof H==="number")switch(H){case 1:sg(this,P0(this).DECIMAL_PATTERN);break;case 2:sg(this,P0(this).SCIENTIFIC_PATTERN);break;case 3:sg(this,P0(this).PERCENT_PATTERN);break;case 4:H=P0(this).CURRENCY_PATTERN;U=["0"];if(A=
ue[nH(this)]){A=A[0]&7;if(A>0)for(U.push("."),M=0;M<A;M++)U.push("0");H=H.replace(/0.00/g,U.join(""))}sg(this,H);break;case 5:csm(this,1);break;case 6:csm(this,2);break;default:throw Error("ke");}else sg(this,H)};
ysn=!1;P0=function(H){return H.overrideNumberFormatSymbols_||(ysn?tIk:CZB)};
nH=function(H){return H.intlCurrencyCode_||P0(H).DEF_CURRENCY_CODE};
ZcK=function(H,U){if(U>308)throw Error("je`"+U);H.maximumFractionDigits_=U;return H};
sg=function(H,U){var A=[0];H.positivePrefix_=BTk(H,U,A);for(var M=A[0],W=-1,w=0,d=0,O=0,f=-1,J=U.length,F=!0;A[0]<J&&F;A[0]++)switch(U.charAt(A[0])){case "#":d>0?O++:w++;f>=0&&W<0&&f++;break;case "0":if(O>0)throw Error("qe`"+U);d++;f>=0&&W<0&&f++;break;case ",":f>0&&H.groupingArray_.push(f);f=0;break;case ".":if(W>=0)throw Error("re`"+U);W=w+d+O;break;case "E":if(H.useExponentialNotation_)throw Error("se`"+U);H.useExponentialNotation_=!0;H.minExponentDigits_=0;A[0]+1<J&&U.charAt(A[0]+1)=="+"&&(A[0]++,
H.useSignForPositiveExponent_=!0);for(;A[0]+1<J&&U.charAt(A[0]+1)=="0";)A[0]++,H.minExponentDigits_++;if(w+d<1||H.minExponentDigits_<1)throw Error("te`"+U);F=!1;break;default:A[0]--,F=!1}d==0&&w>0&&W>=0&&(d=W,d==0&&d++,O=w-d,w=d-1,d=1);if(W<0&&O>0||W>=0&&(W<w||W>w+d)||f==0)throw Error("ue`"+U);O=w+d+O;H.maximumFractionDigits_=W>=0?O-W:0;W>=0&&(H.minimumFractionDigits_=w+d-W,H.minimumFractionDigits_<0&&(H.minimumFractionDigits_=0));H.minimumIntegerDigits_=(W>=0?W:O)-w;H.useExponentialNotation_&&(H.maximumIntegerDigits_=
w+H.minimumIntegerDigits_,H.maximumFractionDigits_==0&&H.minimumIntegerDigits_==0&&(H.minimumIntegerDigits_=1));H.groupingArray_.push(Math.max(0,f));H.decimalSeparatorAlwaysShown_=W==0||W==O;M=A[0]-M;H.positiveSuffix_=BTk(H,U,A);A[0]<U.length&&U.charAt(A[0])==";"?(A[0]++,H.multiplier_!=1&&(H.negativePercentSignExpected_=!0),H.negativePrefix_=BTk(H,U,A),A[0]+=M,H.negativeSuffix_=BTk(H,U,A)):(H.negativePrefix_+=H.positivePrefix_,H.negativeSuffix_+=H.positiveSuffix_)};
csm=function(H,U){H.compactStyle_=U;sg(H,P0(H).DECIMAL_PATTERN);H.minimumFractionDigits_=0;ZcK(H,2);if(H.minimumFractionDigits_>0)throw Error("ie");H.significantDigits_=2};
_.oE.prototype.parse=function(H,U){U=U||[0];if(this.compactStyle_!==0)throw Error("le");H=H.replace(/ |\u202f/g,"\u00a0");var A=H.indexOf(this.positivePrefix_,U[0])==U[0],M=H.indexOf(this.negativePrefix_,U[0])==U[0];A&&M&&(this.positivePrefix_.length>this.negativePrefix_.length?M=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(A=!1));A?U[0]+=this.positivePrefix_.length:M&&(U[0]+=this.negativePrefix_.length);if(H.indexOf(P0(this).INFINITY,U[0])==U[0]){U[0]+=P0(this).INFINITY.length;var W=
Infinity}else{W=H;var w=!1,d=!1,O=!1,f=-1,J=1,F=P0(this).DECIMAL_SEP,P=P0(this).GROUP_SEP,n=P0(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("me");P=P.replace(/\u202f/g,"\u00a0");for(var N="";U[0]<W.length;U[0]++){var L=W.charAt(U[0]),m=rsz(this,L);if(m>=0&&m<=9)N+=m,O=!0;else if(L==F.charAt(0)){if(w||d)break;N+=".";w=!0}else if(L==P.charAt(0)&&("\u00a0"!=P.charAt(0)||U[0]+1<W.length&&rsz(this,W.charAt(U[0]+1))>=0)){if(w||d)break}else if(L==n.charAt(0)){if(d)break;N+="E";d=!0;f=U[0]}else if(L==
"+"||L=="-"){if(O&&f!=U[0]-1)break;N+=L}else if(this.multiplier_==1&&L==P0(this).PERCENT.charAt(0)){if(J!=1)break;J=100;if(O){U[0]++;break}}else if(this.multiplier_==1&&L==P0(this).PERMILL.charAt(0)){if(J!=1)break;J=1E3;if(O){U[0]++;break}}else break}this.multiplier_!=1&&(J=this.multiplier_);W=parseFloat(N)/J}if(A){if(H.indexOf(this.positiveSuffix_,U[0])!=U[0])return NaN;U[0]+=this.positiveSuffix_.length}else if(M){if(H.indexOf(this.negativeSuffix_,U[0])!=U[0])return NaN;U[0]+=this.negativeSuffix_.length}return M?
-W:W};
_.oE.prototype.format=function(H){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ne");if(isNaN(H))return P0(this).NAN;var U=[];var A=H;if(this.compactStyle_==0)A=Ny;else{A=Math.abs(A);var M=e$n(this,A<=1?0:DFn(A)).divisorBase;A=e$n(this,M+DFn($FK(this,Sc(A,-M)).intValue))}H=Sc(H,-A.divisorBase);(M=H<0||H==0&&1/H<0)?A.negative_prefix?U.push(A.negative_prefix):(U.push(A.prefix),U.push(this.negativePrefix_)):(U.push(A.prefix),U.push(this.positivePrefix_));if(isFinite(H))if(H*=
M?-1:1,H*=this.multiplier_,this.useExponentialNotation_){var W=H;if(W==0)lWk(this,W,this.minimumIntegerDigits_,U),GB2(this,0,U);else{var w=Math.floor(Math.log(W)/Math.log(10)+2E-15);W=Sc(W,-w);var d=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(d=w%this.maximumIntegerDigits_,d<0&&(d=this.maximumIntegerDigits_+d),W=Sc(W,d),w-=d,d=1):this.minimumIntegerDigits_<1?(w++,W=Sc(W,-1)):(w-=this.minimumIntegerDigits_-1,W=Sc(W,this.minimumIntegerDigits_-
1));lWk(this,W,d,U);GB2(this,w,U)}}else lWk(this,H,this.minimumIntegerDigits_,U);else U.push(P0(this).INFINITY);M?A.negative_suffix?U.push(A.negative_suffix):(isFinite(H)&&U.push(A.suffix),U.push(this.negativeSuffix_)):(isFinite(H)&&U.push(A.suffix),U.push(this.positiveSuffix_));return U.join("")};
var $FK=function(H,U){var A=Sc(U,H.maximumFractionDigits_);H.significantDigits_>0&&(A=Y3y(A,H.significantDigits_,H.maximumFractionDigits_));A=Math.round(A);if(isFinite(A)){var M=Math.floor(Sc(A,-H.maximumFractionDigits_));A=Math.floor(A-Sc(M,H.maximumFractionDigits_));if(A<0||A>=Sc(1,H.maximumFractionDigits_))M=Math.round(U),A=0}else M=U,A=0;return{intValue:M,fracValue:A}},lWk=function(H,U,A,M){if(H.minimumFractionDigits_>H.maximumFractionDigits_)throw Error("ne");
M||(M=[]);U=$FK(H,U);var W=U.intValue,w=U.fracValue,d=H.minimumFractionDigits_>0||w>0||!1;U=H.minimumFractionDigits_;d&&(U=H.minimumFractionDigits_);for(var O="",f=W;f>1E20;)O="0"+O,f=Math.round(Sc(f,-1));O=f+O;var J=P0(H).DECIMAL_SEP;f=P0(H).ZERO_DIGIT.codePointAt(0);var F=O.length,P=0;if(W>0||A>0){for(W=F;W<A;W++)M.push(String.fromCodePoint(f));if(H.groupingArray_.length>=2)for(A=1;A<H.groupingArray_.length;A++)P+=H.groupingArray_[A];A=F-P;if(A>0){W=H.groupingArray_;P=F=0;for(var n,N=P0(H).GROUP_SEP,
L=O.length,m=0;m<L;m++)if(M.push(String.fromCodePoint(f+Number(O.charAt(m)))),L-m>1)if(n=W[P],m<A){var z=A-m;(n===1||n>0&&z%n===1)&&M.push(N)}else P<W.length&&(m===A?P+=1:n===m-A-F+1&&(M.push(N),F+=n,P+=1))}else{A=O;O=H.groupingArray_;W=P0(H).GROUP_SEP;n=A.length;N=[];for(F=O.length-1;F>=0&&n>0;F--){P=O[F];for(L=0;L<P&&n-L-1>=0;L++)N.push(String.fromCodePoint(f+Number(A.charAt(n-L-1))));n-=P;n>0&&N.push(W)}M.push.apply(M,N.reverse())}}else d||M.push(String.fromCodePoint(f));(H.decimalSeparatorAlwaysShown_||
d)&&M.push(J);w=String(w);d=w.split("e+");d.length==2&&(w=String(Y3y(parseFloat(d[0]),H.significantDigits_,1)),w=w.replace(".",""),w+=(0,_.OFy)("0",parseInt(d[1],10)-w.length+1));H.maximumFractionDigits_+1>w.length&&(w="1"+(0,_.OFy)("0",H.maximumFractionDigits_-w.length)+w);for(H=w.length;w.charAt(H-1)=="0"&&H>U+1;)H--;for(U=1;U<H;U++)M.push(String.fromCodePoint(f+Number(w.charAt(U))))},GB2=function(H,U,A){A.push(P0(H).EXP_SYMBOL);
U<0?(U=-U,A.push(P0(H).MINUS_SIGN)):H.useSignForPositiveExponent_&&A.push(P0(H).PLUS_SIGN);U=""+U;for(var M=P0(H).ZERO_DIGIT,W=U.length;W<H.minExponentDigits_;W++)A.push(M);H=M.codePointAt(0)-q3r;for(M=0;M<U.length;M++)A.push(String.fromCodePoint(H+U.codePointAt(M)))},rsz=function(H,U){U=U.codePointAt(0);
if(48<=U&&U<58)return U-48;H=P0(H).ZERO_DIGIT.codePointAt(0);return H<=U&&U<H+10?U-H:-1},q3r="0".codePointAt(0),BTk=function(H,U,A){for(var M="",W=!1,w=U.length;A[0]<w;A[0]++){var d=U.charAt(A[0]);
if(d=="'")A[0]+1<w&&U.charAt(A[0]+1)=="'"?(A[0]++,M+="'"):W=!W;else if(W)M+=d;else switch(d){case "#":case "0":case ",":case ".":case ";":return M;case "\u00a4":if(A[0]+1<w&&U.charAt(A[0]+1)=="\u00a4")A[0]++,M+=nH(H);else switch(H.currencyStyle_){case 0:d=nH(H);M+=d in ue?ue[d][1]:d;break;case 2:d=nH(H);var O=ue[d];M+=O?d==O[1]?d:d+" "+O[1]:d;break;case 1:d=nH(H),M+=d in ue?ue[d][2]:d}break;case "%":if(!H.negativePercentSignExpected_&&H.multiplier_!=1)throw Error("oe");if(H.negativePercentSignExpected_&&
H.multiplier_!=100)throw Error("pe");H.multiplier_=100;H.negativePercentSignExpected_=!1;M+=P0(H).PERCENT;break;case "\u2030":if(!H.negativePercentSignExpected_&&H.multiplier_!=1)throw Error("oe");if(H.negativePercentSignExpected_&&H.multiplier_!=1E3)throw Error("pe");H.multiplier_=1E3;H.negativePercentSignExpected_=!1;M+=P0(H).PERMILL;break;default:M+=d}}return M},Ny={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},e$n=function(H,U){H=H.compactStyle_==1?Og.COMPACT_DECIMAL_SHORT_PATTERN:Og.COMPACT_DECIMAL_LONG_PATTERN;H==null&&(H=Og.COMPACT_DECIMAL_SHORT_PATTERN);if(U<3)return Ny;U=Math.min(14,U);var A=H[Sc(1,U)];for(--U;!A&&U>=3;)A=H[Sc(1,U)],U--;if(!A)return Ny;A=A.other;var M=H="",W=A.indexOf(";");W>=0&&(A=A.substring(0,W),W=A.substring(W+1))&&(M=/([^0]*)(0+)(.*)/.exec(W),H=M[1],M=M[3]);return A&&A!="0"?(A=/([^0]*)(0+)(.*)/.exec(A))?{divisorBase:U+
1-(A[2].length-1),negative_prefix:H,negative_suffix:M,prefix:A[1],suffix:A[3]}:Ny:Ny},DFn=function(H){if(!isFinite(H))return H>0?H:0;
for(var U=0;(H/=10)>=1;)U++;return U},Sc=function(H,U){if(!H||!isFinite(H)||U==0)return H;
H=String(H).split("e");return parseFloat(H[0]+"e"+(parseInt(H[1]||0,10)+U))},h$w=function(H,U){return H&&isFinite(H)?Sc(Math.round(Sc(H,U)),-U):H},Y3y=function(H,U,A){if(!H)return H;
U=U-DFn(H)-1;return U<-A?h$w(H,-A):h$w(H,U)};var kBB=function(H){return H%10==1&&H%100!=11?"one":H%10==2&&H%100!=12?"two":H%10==3&&H%100!=13?"few":"other"},vYh=kBB;
vYh=kBB;var TTm=function(H,U){var A=H|0;if(void 0===U){U=Math;var M=U.min,W=H+"",w=W.indexOf(".");U=M.call(U,w===-1?0:W.length-w-1,3)}M=Math.pow(10,U);H={v:U,f:(H*M|0)%M};return A==1&&H.v==0?"one":"other"},Kq=TTm;
Kq=TTm;var VIh=function(H){this.JSC$11764_pattern_=H;this.parsedPattern_=this.literals_=this.initialLiterals_=null;H=CZB;var U=Og;if(jLh!==H||IW3!==U)jLh=H,IW3=U,QLH=new _.oE(1);this.numberFormatter_=QLH},jLh=null,IW3=null,QLH=null,Hly=RegExp("'([{}#].*?)'","g"),UGy=RegExp("''","g");
VIh.prototype.format=function(H){if(this.JSC$11764_pattern_){this.initialLiterals_=[];var U=AFr(this,this.JSC$11764_pattern_);this.parsedPattern_=M5p(this,U);this.JSC$11764_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.$c(this.initialLiterals_),U=[],WLm(this,this.parsedPattern_,H,!1,U),H=U.join("");this.literals_.length>0;)H=H.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else H="";return H};
var WLm=function(H,U,A,M,W){for(var w=0;w<U.length;w++)switch(U[w].type){case 4:W.push(U[w].value);break;case 3:var d=U[w].value;var O=H,f=W,J=A[d];J===void 0?f.push("Undefined parameter - "+d):(O.literals_.push(J),f.push(O.buildPlaceholder_(O.literals_)));break;case 2:d=U[w].value;O=H;f=A;J=M;var F=W,P=d.argumentIndex;f[P]===void 0?F.push("Undefined parameter - "+P):(P=d[f[P]],P===void 0&&(P=d.other),WLm(O,P,f,J,F));break;case 0:d=U[w].value;wqn(H,d,A,Kq,M,W);break;case 1:d=U[w].value,wqn(H,d,A,
vYh,M,W)}},wqn=function(H,U,A,M,W,w){var d=U.argumentIndex,O=U.argumentOffset,f=+A[d];
isNaN(f)?w.push("Undefined or invalid parameter - "+d):(O=f-O,d=U[A[d]],d===void 0&&(M=M(Math.abs(O)),d=U[M],d===void 0&&(d=U.other)),U=[],WLm(H,d,A,W,U),A=U.join(""),W?w.push(A):(H=H.numberFormatter_.format(O),w.push(A.replace(/#/g,H))))},AFr=function(H,U){var A=H.initialLiterals_,M=H.buildPlaceholder_.bind(H);
U=U.replace(UGy,function(){A.push("'");return M(A)});
return U=U.replace(Hly,function(W,w){A.push(w);return M(A)})},XqK=function(H){var U=0,A=[],M=[],W=/[{}]/g;
W.lastIndex=0;for(var w;w=W.exec(H);){var d=w.index;w[0]=="}"?(A.pop(),A.length==0&&(w={type:1},w.value=H.substring(U,d),M.push(w),U=d+1)):(A.length==0&&(U=H.substring(U,d),U!=""&&M.push({type:0,value:U}),U=d+1),A.push("{"))}H=H.substring(U);H!=""&&M.push({type:0,value:H});return M},ilH=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,blr=/^\s*(\w+)\s*,\s*selectordinal\s*,/,dGk=/^\s*(\w+)\s*,\s*select\s*,/,M5p=function(H,U){var A=[];
U=XqK(U);for(var M=0;M<U.length;M++){var W={};if(0==U[M].type)W.type=4,W.value=U[M].value;else if(1==U[M].type){var w=U[M].value;switch(ilH.test(w)?0:blr.test(w)?1:dGk.test(w)?2:/^\s*\w+\s*/.test(w)?3:5){case 2:W.type=2;W.value=Olg(H,U[M].value);break;case 0:W.type=0;W.value=udr(H,U[M].value);break;case 1:W.type=1;W.value=ZlH(H,U[M].value);break;case 3:W.type=3,W.value=U[M].value}}A.push(W)}return A},Olg=function(H,U){var A="";
U=U.replace(dGk,function(O,f){A=f;return""});
var M={};M.argumentIndex=A;U=XqK(U);for(var W=0;W<U.length;){var w=U[W].value;W++;var d=void 0;1==U[W].type&&(d=M5p(H,U[W].value));M[w.replace(/\s/g,"")]=d;W++}return M},udr=function(H,U){var A="",M=0;
U=U.replace(ilH,function(f,J,F){A=J;F&&(M=parseInt(F,10));return""});
var W={};W.argumentIndex=A;W.argumentOffset=M;U=XqK(U);for(var w=0;w<U.length;){var d=U[w].value;w++;var O=void 0;1==U[w].type&&(O=M5p(H,U[w].value));W[d.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=O;w++}return W},ZlH=function(H,U){var A="";
U=U.replace(blr,function(O,f){A=f;return""});
var M={};M.argumentIndex=A;M.argumentOffset=0;U=XqK(U);for(var W=0;W<U.length;){var w=U[W].value;W++;var d=void 0;1==U[W].type&&(d=M5p(H,U[W].value));M[w.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=d;W++}return M};
VIh.prototype.buildPlaceholder_=function(H){return"\ufddf_"+(H.length-1).toString(10)+"_"};var F$7=function(){var H={style:1},U=ffw;this.style_=(H==null?void 0:H.style)||0;this.durationSymbols_=U||mFm},JFr=function(H,U){switch(U){default:case "years":return H.durationSymbols_.YEAR;
case "months":return H.durationSymbols_.MONTH;case "weeks":return H.durationSymbols_.WEEK;case "days":return H.durationSymbols_.DAY;case "hours":return H.durationSymbols_.HOUR;case "minutes":return H.durationSymbols_.MINUTE;case "seconds":return H.durationSymbols_.SECOND}},pH=function(H,U,A){a:{A=JFr(H,A);
switch(H.style_){case 1:if(A.LONG!=void 0){H=A.LONG;break a}case 2:if(A.NARROW!=void 0){H=A.NARROW;break a}default:H=A.SHORT;break a}H=void 0}return H?(new VIh("{DURATION_VALUE,plural,"+H+"}")).format({DURATION_VALUE:U}):""};
F$7.prototype.format=function(H){var U=[],A=H.years,M=H.months,W=H.weeks,w=H.days,d=H.hours,O=H.minutes;H=H.seconds;A!=null&&U.push(pH(this,A,"years"));M!=null&&U.push(pH(this,M,"months"));W!=null&&U.push(pH(this,W,"weeks"));w!=null&&U.push(pH(this,w,"days"));d!=null&&U.push(pH(this,d,"hours"));O!=null&&U.push(pH(this,O,"minutes"));H!=null&&U.push(pH(this,H,"seconds"));return(new aWm).format(U)};var KLr;
KLr={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 Cfc=function(){this.rdtfSymbols_=oCK||KLr;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
Cfc.prototype.format=function(H,U){a:{U=FLw(this,U);switch(this.style_){case 2:if(U.NARROW!=void 0){U=U.NARROW;break a}case 1:if(U.SHORT!=void 0){U=U.SHORT;break a}default:U=U.LONG;break a}U=void 0}if(!this.alwaysNumeric_&&U&&U.R&&U.R[""+H])H=U.R[""+H];else if(U){var A=Math.abs(H);H=(new VIh("{N,plural,"+(H>0||H==0&&1/H==Infinity?U.F:U.P)+"}")).format({N:A})}else H="";return H};
var FLw=function(H,U){switch(U){default:case 0:return H.rdtfSymbols_.YEAR;case 1:return H.rdtfSymbols_.QUARTER;case 2:return H.rdtfSymbols_.MONTH;case 3:return H.rdtfSymbols_.WEEK;case 4:return H.rdtfSymbols_.DAY;case 5:return H.rdtfSymbols_.HOUR;case 6:return H.rdtfSymbols_.MINUTE;case 7:return H.rdtfSymbols_.SECOND}};jxV.prototype.clone=function(){return new jxV(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
jxV.prototype.equals=function(H){return this.x0==H.x0&&this.y0==H.y0&&this.x1==H.x1&&this.y1==H.y1&&this.x2==H.x2&&this.y2==H.y2&&this.x3==H.x3&&this.y3==H.y3};
var PAg=function(H,U){if(U==0)return H.x0;if(U==1)return H.x3;var A=wp(H.x0,H.x1,U),M=wp(H.x1,H.x2,U);H=wp(H.x2,H.x3,U);A=wp(A,M,U);M=wp(M,H,U);return wp(A,M,U)},sRw=function(H,U){var A=(U-H.x0)/(H.x3-H.x0);
if(A<=0)return 0;if(A>=1)return 1;for(var M=0,W=1,w=0,d=0;d<8;d++){w=PAg(H,A);var O=(PAg(H,A+1E-6)-w)/1E-6;if(Math.abs(w-U)<1E-6)return A;if(Math.abs(O)<1E-6)break;else w<U?M=A:W=A,A-=(w-U)/O}for(d=0;Math.abs(w-U)>1E-6&&d<8;d++)w<U?(M=A,A=(A+W)/2):(W=A,A=(A+M)/2),w=PAg(H,A);return A};var LH;_.zo(Ue,_.LW);var Qx4={},In_=0,nCz=function(H,U){var A=AD(H);hrK(U,function(M,W){Array.isArray(M)||(M=[M]);_.yW(M,function(w){w=A.JSC$9631_createDom("INPUT",{type:"hidden",name:W,value:w});H.appendChild(w)})})};
_.X=Ue.prototype;_.X.JSC$11786_form_=null;_.X.JSC$11786_iframe_=null;_.X.iframeName_=null;_.X.nextIframeId_=0;_.X.JSC$11786_active_=!1;_.X.complete_=!1;_.X.success_=!1;_.X.lastContent_=null;_.X.JSC$11786_lastErrorCode_=0;_.X.iframeDisposalTimer_=null;
_.X.send=function(H,U,A,M){if(this.JSC$11786_active_)throw Error("ve");H=new _.n1(H);U=U?U.toUpperCase():"GET";A&&_.$t(H);LH||(LH=_.dp("FORM"),LH.acceptCharset="utf-8",A=LH.style,A.position="absolute",A.visibility="hidden",A.top=A.left="-10px",A.width=A.height="10px",A.overflow="hidden",document.body.appendChild(LH));this.JSC$11786_form_=LH;U=="GET"&&nCz(this.JSC$11786_form_,H.JSC$10335_queryData_);M&&nCz(this.JSC$11786_form_,M);A=H.toString();A=mK4(A);M=this.JSC$11786_form_;A=_.VY(Y5(A));A!==void 0&&
(M.action=A);this.JSC$11786_form_.method=U;N7w(this);Sym(this)};
_.X.abort=function(H){if(this.JSC$11786_active_){var U=RU(this);if(U)if(An(U))U.removeAllListeners(void 0);else if(U=M1(U)){var A=0,M;for(M in U.listeners)for(var W=U.listeners[M].concat(),w=0;w<W.length;++w)jq(W[w])&&++A}this.success_=this.JSC$11786_active_=this.complete_=!1;this.JSC$11786_lastErrorCode_=H||7;this.dispatchEvent("abort");pqk(this)}};
_.X.disposeInternal=function(){this.JSC$11786_active_&&this.abort();Ue.superClass_.disposeInternal.call(this);this.JSC$11786_iframe_&&LLK(this);Sym(this);this.JSC$11786_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11786_form_=null;this.JSC$11786_lastErrorCode_=0;delete Qx4[this.JSC$11784_name_]};
_.X.isComplete=function(){return this.complete_};
_.X.isSuccess=function(){return this.success_};
_.X.isActive=function(){return this.JSC$11786_active_};
_.X.getResponseText=function(){return this.lastContent_};
_.X.getLastError=function(){return _.EV2(this.JSC$11786_lastErrorCode_)};
var N7w=function(H){H.JSC$11786_active_=!0;H.complete_=!1;H.JSC$11786_lastErrorCode_=0;H.iframeName_=H.JSC$11784_name_+"_"+(H.nextIframeId_++).toString(36);H.JSC$11786_iframe_=AD(H.JSC$11786_form_).JSC$9631_createDom("IFRAME",{name:H.iframeName_,id:H.iframeName_});var U=H.JSC$11786_iframe_.style;U.visibility="hidden";U.width=U.height="10px";U.display="none";_.kA?U.marginTop=U.marginLeft="-10px":(U.position="absolute",U.top=U.left="-10px");AD(H.JSC$11786_form_).JSC$9629_document_.body.appendChild(H.JSC$11786_iframe_);
U=H.iframeName_+"_inner";var A=muy(H.JSC$11786_iframe_);if(document.baseURI){var M=Cy(U);M='<head><base href="'+Cy(document.baseURI)+'"></head><body><iframe id="'+M+'" name="'+M+'"></iframe>';M=A$(M)}else M=Cy(U),M=A$('<body><iframe id="'+M+'" name="'+M+'"></iframe>');A.write(Mo(M));_.Rc(A.getElementById(U),"load",H.onIframeLoaded_,!1,H);M=A8("TEXTAREA",H.JSC$11786_form_);for(var W=0,w=M.length;W<w;W++){var d=M[W].value;tl3(M[W])!=d&&(_.ox(M[W],d),M[W].value=d)}M=A.importNode(H.JSC$11786_form_,!0);
M.target=U;M.action=H.JSC$11786_form_.action;A.body.appendChild(M);W=A8("SELECT",H.JSC$11786_form_);w=A8("SELECT",M);d=0;for(var O=W.length;d<O;d++)for(var f=A8("OPTION",W[d]),J=A8("OPTION",w[d]),F=0,P=f.length;F<P;F++)J[F].selected=f[F].selected;W=A8("INPUT",H.JSC$11786_form_);w=A8("INPUT",M);d=0;for(O=W.length;d<O;d++)if(W[d].type=="file"&&W[d].value!=w[d].value){H.JSC$11786_form_.target=U;M=H.JSC$11786_form_;break}try{H.errorHandled_=!1,M.submit(),A.close(),_.va&&setTimeout(H.testForFirefoxSilentError_.bind(H),
250)}catch(n){_.WS(A.getElementById(U),"load",H.onIframeLoaded_,!1,H),A.close(),Eg(H,2)}};
Ue.prototype.onIframeLoaded_=function(){_.WS(RU(this),"load",this.onIframeLoaded_,!1,this);try{var H=this.JSC$11786_iframe_?muy(RU(this)):null;this.complete_=!0;this.JSC$11786_active_=!1;try{var U=H.body;this.lastContent_=U.textContent||U.innerText}catch(W){var A=1}var M;A||typeof this.errorChecker_!="function"||(M=this.errorChecker_(H))&&(A=4);A?Eg(this,A):(this.success_=!0,this.JSC$11786_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),pqk(this))}catch(W){Eg(this,1)}};
var Eg=function(H,U){H.errorHandled_||(H.success_=!1,H.JSC$11786_active_=!1,H.complete_=!0,H.JSC$11786_lastErrorCode_=U,H.dispatchEvent("complete"),H.dispatchEvent("error"),pqk(H),H.errorHandled_=!0)},pqk=function(H){LLK(H);
Sym(H);H.JSC$11786_form_=null;H.dispatchEvent("ready")},LLK=function(H){var U=H.JSC$11786_iframe_;
U&&(U.onreadystatechange=null,U.onload=null,U.onerror=null,H.iframesForDisposal_.push(U));H.iframeDisposalTimer_&&(clearTimeout(H.iframeDisposalTimer_),H.iframeDisposalTimer_=null);_.va?H.iframeDisposalTimer_=setTimeout(H.disposeIframes_.bind(H),2E3):H.disposeIframes_();H.JSC$11786_iframe_=null;H.iframeName_=null};
Ue.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var H=this.iframesForDisposal_.pop();_.U5(H)}};
var Sym=function(H){H.JSC$11786_form_&&H.JSC$11786_form_==LH&&_.Zn(H.JSC$11786_form_)},RU=function(H){return H.JSC$11786_iframe_?muy(H.JSC$11786_iframe_).getElementById(H.iframeName_+"_inner"):null};
Ue.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11786_active_){var H=this.JSC$11786_iframe_?muy(RU(this)):null;H&&!IUM(H,"documentUri")?(_.WS(RU(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Eg(this,3):Eg(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.mi=function(H){return H=="\r"||H=="\n"||H==" "||H=="\t"};_.AT.prototype.isInputValid=function(){return this.streamState_!=3};
_.AT.prototype.done=function(){return this.streamState_===2};
var g$=function(H,U,A){H.streamState_=3;H.errorMessage_="The stream is broken @"+H.JSC$11788_pos_+"/"+A+". With input:\n"+U;throw Error(H.errorMessage_);};
_.AT.prototype.acceptsBinaryInput=function(){return!1};
_.AT.prototype.parse=function(H){function U(){for(;P<H.length;)if(_.mi(H[P]))P++,w.JSC$11788_pos_++;else break;return P<f}
function A(){for(var N;;){N=H[P++];if(!N)break;w.JSC$11788_pos_++;switch(w.state_){case 0:N==="{"?w.state_=2:N==="["?w.state_=4:_.mi(N)||g$(w,H,P);continue;case 7:case 2:if(_.mi(N))continue;if(w.state_===7)d.push(8);else if(N==="}"){W("{}");w.state_=M();continue}else d.push(3);N==='"'?w.state_=6:g$(w,H,P);continue;case 8:case 3:if(_.mi(N))continue;N===":"?(w.state_===3&&(d.push(3),w.depth_++),w.state_=1):N==="}"?(w.depth_--,W(),w.state_=M()):N===","?(w.state_===3&&d.push(3),w.state_=7):g$(w,H,P);
continue;case 4:case 1:if(_.mi(N))continue;if(w.state_===4)if(w.depth_++,w.state_=1,N==="]"){w.depth_--;if(w.depth_===0){w.state_=5;return}W("[]");w.state_=M();continue}else d.push(5);N==='"'?w.state_=6:N==="{"?w.state_=2:N==="["?w.state_=4:N==="t"?w.state_=9:N==="f"?w.state_=12:N==="n"?w.state_=16:N!=="-"&&("0123456789".indexOf(N)!==-1?w.state_=20:g$(w,H,P));continue;case 5:if(N===",")d.push(5),w.state_=1,w.depth_===1&&(F=P);else if(N==="]"){w.depth_--;if(w.depth_===0)return;W();w.state_=M()}else if(_.mi(N))continue;
else g$(w,H,P);continue;case 6:var L=P;a:for(;;){for(;w.unicodeCount_>0;)if(N=H[P++],w.unicodeCount_===4?w.unicodeCount_=0:w.unicodeCount_++,!N)break a;if(N==='"'&&!w.slashed_){w.state_=M();break}if(N==="\\"&&!w.slashed_&&(w.slashed_=!0,N=H[P++],!N))break;if(w.slashed_)if(w.slashed_=!1,N==="u"&&(w.unicodeCount_=1),N=H[P++])continue;else break;O.lastIndex=P;N=O.exec(H);if(!N){P=H.length+1;break}P=N.index+1;N=H[N.index];if(!N)break}w.JSC$11788_pos_+=P-L;continue;case 9:if(!N)continue;N==="r"?w.state_=
10:g$(w,H,P);continue;case 10:if(!N)continue;N==="u"?w.state_=11:g$(w,H,P);continue;case 11:if(!N)continue;N==="e"?w.state_=M():g$(w,H,P);continue;case 12:if(!N)continue;N==="a"?w.state_=13:g$(w,H,P);continue;case 13:if(!N)continue;N==="l"?w.state_=14:g$(w,H,P);continue;case 14:if(!N)continue;N==="s"?w.state_=15:g$(w,H,P);continue;case 15:if(!N)continue;N==="e"?w.state_=M():g$(w,H,P);continue;case 16:if(!N)continue;N==="u"?w.state_=17:g$(w,H,P);continue;case 17:if(!N)continue;N==="l"?w.state_=18:
g$(w,H,P);continue;case 18:if(!N)continue;N==="l"?w.state_=M():g$(w,H,P);continue;case 19:N==="."?w.state_=20:g$(w,H,P);continue;case 20:if("0123456789.eE+-".indexOf(N)!==-1)continue;else P--,w.JSC$11788_pos_--,w.state_=M();continue;default:g$(w,H,P)}}}
function M(){var N=d.pop();return N!=null?N:1}
function W(N){w.depth_>1||(N||(N=F===-1?w.JSC$11788_buffer_+H.substring(J,P):H.substring(F,P)),w.deliverMessageAsRawString_?w.result_.push(N):w.result_.push(JSON.parse(N)),F=P)}
for(var w=this,d=w.stack_,O=w.stringInputPattern_,f=H.length,J=0,F=-1,P=0;P<f;)switch(w.streamState_){case 3:return g$(w,H,P),null;case 2:return U()&&g$(w,H,P),null;case 0:if(U()){var n=H[P++];w.JSC$11788_pos_++;if(n==="["){w.streamState_=1;J=P;w.state_=4;continue}else g$(w,H,P)}return null;case 1:return A(),w.depth_===0&&w.state_==5?(w.streamState_=2,w.JSC$11788_buffer_=H.substring(P)):w.JSC$11788_buffer_=F===-1?w.JSC$11788_buffer_+H.substring(J):H.substring(F),w.result_.length>0?(n=w.result_,w.result_=
[],n):null}return null};_.zo(_.Mj,uD);Wx.prototype.getValue=function(){return this.JSC$11795_value_};
Wx.prototype.clone=function(){return new Wx(this.JSC$11795_key_,this.JSC$11795_value_)};var aU=function(H){this.nodes_=[];if(H)a:{if(H instanceof aU){var U=H.getKeys();H=H.getValues();if(this.getCount()<=0){for(var A=this.nodes_,M=0;M<U.length;M++)A.push(new Wx(U[M],H[M]));break a}}else U=_.dG.getKeys(H),H=_.dG.getValues(H);for(A=0;A<U.length;A++)this.insert(U[A],H[A])}};
_.X=aU.prototype;_.X.insert=function(H,U){var A=this.nodes_;A.push(new Wx(H,U));H=A.length-1;U=this.nodes_;for(A=U[H];H>0;){var M=H-1>>1;if(U[M].JSC$11795_key_>A.JSC$11795_key_)U[H]=U[M],H=M;else break}U[H]=A};
_.X.remove=function(){var H=this.nodes_,U=H.length,A=H[0];if(!(U<=0)){if(U==1)H.length=0;else{H[0]=H.pop();H=0;U=this.nodes_;for(var M=U.length,W=U[H];H<M>>1;){var w=H*2+1,d=H*2+2;w=d<M&&U[d].JSC$11795_key_<U[w].JSC$11795_key_?d:w;if(U[w].JSC$11795_key_>W.JSC$11795_key_)break;U[H]=U[w];H=w}U[H]=W}return A.getValue()}};
_.X.peek=function(){var H=this.nodes_;if(H.length!=0)return H[0].getValue()};
_.X.getValues=function(){for(var H=this.nodes_,U=[],A=H.length,M=0;M<A;M++)U.push(H[M].getValue());return U};
_.X.getKeys=function(){for(var H=this.nodes_,U=[],A=H.length,M=0;M<A;M++)U.push(H[M].JSC$11795_key_);return U};
_.X.containsValue=function(H){return this.nodes_.some(function(U){return U.getValue()==H})};
_.X.containsKey=function(H){return this.nodes_.some(function(U){return U.JSC$11795_key_==H})};
_.X.clone=function(){return new aU(this)};
_.X.getCount=function(){return this.nodes_.length};
_.X.isEmpty=function(){return this.nodes_.length===0};
_.X.clear=function(){this.nodes_.length=0};_.X=_.wJ.prototype;_.X.getCount=function(){return this.size};
_.X.getValues=function(){xi(this);for(var H=[],U=0;U<this.JSC$11801_keys_.length;U++)H.push(this.JSC$11801_map_[this.JSC$11801_keys_[U]]);return H};
_.X.getKeys=function(){xi(this);return this.JSC$11801_keys_.concat()};
_.X.containsKey=function(H){return this.has(H)};
_.X.has=function(H){return zF(this.JSC$11801_map_,H)};
_.X.containsValue=function(H){for(var U=0;U<this.JSC$11801_keys_.length;U++){var A=this.JSC$11801_keys_[U];if(zF(this.JSC$11801_map_,A)&&this.JSC$11801_map_[A]==H)return!0}return!1};
_.X.equals=function(H,U){if(this===H)return!0;if(this.size!=H.getCount())return!1;U=U||RO3;xi(this);for(var A,M=0;A=this.JSC$11801_keys_[M];M++)if(!U(this.get(A),H.get(A)))return!1;return!0};
var RO3=function(H,U){return H===U};
_.wJ.prototype.isEmpty=function(){return this.size==0};
_.wJ.prototype.clear=function(){this.JSC$11801_map_={};this.version_=this.size=this.JSC$11801_keys_.length=0};
_.wJ.prototype.remove=function(H){return this.delete(H)};
_.wJ.prototype.delete=function(H){return zF(this.JSC$11801_map_,H)?(delete this.JSC$11801_map_[H],--this.size,this.version_++,this.JSC$11801_keys_.length>2*this.size&&xi(this),!0):!1};
var xi=function(H){if(H.size!=H.JSC$11801_keys_.length){for(var U=0,A=0;U<H.JSC$11801_keys_.length;){var M=H.JSC$11801_keys_[U];zF(H.JSC$11801_map_,M)&&(H.JSC$11801_keys_[A++]=M);U++}H.JSC$11801_keys_.length=A}if(H.size!=H.JSC$11801_keys_.length){U={};for(M=A=0;A<H.JSC$11801_keys_.length;){var W=H.JSC$11801_keys_[A];zF(U,W)||(H.JSC$11801_keys_[M++]=W,U[W]=1);A++}H.JSC$11801_keys_.length=M}};
_.X=_.wJ.prototype;_.X.get=function(H,U){return zF(this.JSC$11801_map_,H)?this.JSC$11801_map_[H]:U};
_.X.set=function(H,U){zF(this.JSC$11801_map_,H)||(this.size+=1,this.JSC$11801_keys_.push(H),this.version_++);this.JSC$11801_map_[H]=U};
_.X.addAll=function(H){if(H instanceof _.wJ)for(var U=H.getKeys(),A=0;A<U.length;A++)this.set(U[A],H.get(U[A]));else for(U in H)this.set(U,H[U])};
_.X.forEach=function(H,U){for(var A=this.getKeys(),M=0;M<A.length;M++){var W=A[M],w=this.get(W);H.call(U,w,W,this)}};
_.X.clone=function(){return new _.wJ(this)};
_.X.transpose=function(){for(var H=new _.wJ,U=0;U<this.JSC$11801_keys_.length;U++){var A=this.JSC$11801_keys_[U];H.set(this.JSC$11801_map_[A],A)}return H};
_.X.keys=function(){return Wbg(this.__iterator__(!0)).toEs6()};
_.X.values=function(){return Wbg(this.__iterator__(!1)).toEs6()};
_.X.entries=function(){var H=this;return NAK(this.keys(),function(U){return[U,H.get(U)]})};
_.X.__iterator__=function(H){xi(this);var U=0,A=this.version_,M=this,W=new tL;W.next=function(){if(A!=M.version_)throw Error("we");if(U>=M.JSC$11801_keys_.length)return cU;var w=M.JSC$11801_keys_[U++];return ye(H?w:M.JSC$11801_map_[w])};
return W};
var zF=function(H,U){return Object.prototype.hasOwnProperty.call(H,U)};var ECn=function(H,U){if(U=H.JSC$11804_map_.get(U))U.remove(),H.insert_(U);return U};
_.X=HRK.prototype;_.X.get=function(H,U){return(H=ECn(this,H))?H.value:U};
_.X.set=function(H,U){var A=ECn(this,H);A?A.value=U:(A=new V$0(H,U),this.JSC$11804_map_.set(H,A),this.insert_(A))};
_.X.peek=function(){return this.JSC$11804_head_.next.value};
_.X.shift=function(){return mGr(this,this.JSC$11804_head_.next)};
_.X.pop=function(){return mGr(this,this.JSC$11804_head_.prev)};
_.X.remove=function(H){return(H=this.JSC$11804_map_.get(H))?(this.removeNode(H),!0):!1};
_.X.removeNode=function(H){H.remove();this.JSC$11804_map_.remove(H.key)};
_.X.getCount=function(){return this.JSC$11804_map_.getCount()};
_.X.isEmpty=function(){return this.JSC$11804_map_.isEmpty()};
_.X.getKeys=function(){return this.map(function(H,U){return U})};
_.X.getValues=function(){return this.map(function(H){return H})};
_.X.contains=function(H){return this.some(function(U){return U==H})};
_.X.containsKey=function(H){return this.JSC$11804_map_.containsKey(H)};
_.X.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11804_head_.prev)};
_.X.forEach=function(H,U){for(var A=this.JSC$11804_head_.next;A!=this.JSC$11804_head_;A=A.next)H.call(U,A.value,A.key,this)};
_.X.map=function(H,U){for(var A=[],M=this.JSC$11804_head_.next;M!=this.JSC$11804_head_;M=M.next)A.push(H.call(U,M.value,M.key,this));return A};
_.X.some=function(H,U){for(var A=this.JSC$11804_head_.next;A!=this.JSC$11804_head_;A=A.next)if(H.call(U,A.value,A.key,this))return!0;return!1};
_.X.every=function(H,U){for(var A=this.JSC$11804_head_.next;A!=this.JSC$11804_head_;A=A.next)if(!H.call(U,A.value,A.key,this))return!1;return!0};
_.X.insert_=function(H){H.next=this.JSC$11804_head_.next;H.prev=this.JSC$11804_head_;this.JSC$11804_head_.next=H;for(H.next.prev=H;this.getCount()>100;)this.removeNode(this.JSC$11804_head_.prev)};
var mGr=function(H,U){H.JSC$11804_head_!=U&&H.removeNode(U);return U.value},V$0=function(H,U){this.key=H;
this.value=U};
V$0.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var gCH=function(){aU.apply(this,arguments)};
_.R(gCH,aU);gCH.prototype.enqueue=function(H,U){this.insert(H,U)};var afk=function(){var H=Error();H.name="SecurityError";throw H;},xc8=function(){return{get opener(){return null},
get closed(){return!0},get location(){afk()},get document(){afk()},postMessage:function(){},
close:function(){},
focus:function(){}}};var U1r={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 WR7={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 xGh={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(WR7).join("|");var zOz=function(){function H(O){O.substr(-1)!==";"&&(O+=";");return d(O)}
for(var U=Object.keys(xGh).sort(Mtc),A=Object.keys(WR7).sort(Mtc),M=0,W=0;M<A.length;M++)U[W]===A[M]?(A[M]+=";?",W++):A[M]+=";";var w=new RegExp("&(?:"+A.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),d=wSN();return function(O){return String(O).replace(w,H)}}();/*

 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 CA2={};var t5p=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"),cFr=/[\\&]/,yFr=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),B72=RegExp('[&<>"]',"g"),rFk=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),eOm=function(H){return H.charCodeAt(0)===92?H.charAt(1):zOz(H)},DGw=function(H){return cFr.test(H)?H.replace(yFr,eOm):H},$G3=function(H){try{var U,A="";
if(typeof W!=="string"){var M=W;var W=";/?:@&=+$,-_.!~*'()#"}typeof M==="undefined"&&(M=!0);var w,d=CA2[W];if(d)var O=d;else{d=CA2[W]=[];for(w=0;w<128;w++){var f=String.fromCharCode(w);/^[0-9a-z]$/i.test(f)?d.push(f):d.push("%"+("0"+w.toString(16).toUpperCase()).slice(-2))}for(w=0;w<W.length;w++)d[W.charCodeAt(w)]=W[w];O=d}var J=0;for(U=H.length;J<U;J++){var F=H.charCodeAt(J);if(M&&F===37&&J+2<U&&/^[0-9a-f]{2}$/i.test(H.slice(J+1,J+3)))A+=H.slice(J,J+3),J+=2;else if(F<128)A+=O[F];else if(F>=55296&&
F<=57343){if(F>=55296&&F<=56319&&J+1<U){var P=H.charCodeAt(J+1);if(P>=56320&&P<=57343){A+=encodeURIComponent(H[J]+H[J+1]);J++;continue}}A+="%EF%BF%BD"}else A+=encodeURIComponent(H[J])}return A}catch(n){return H}},lfK=function(H){switch(H){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return H}},CH=function(H,U){return B72.test(H)?U?H.replace(rFk,lfK):H.replace(B72,lfK):H};/*

 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 tO;if(String.fromCodePoint)tO=function(H){try{return String.fromCodePoint(H)}catch(U){if(U instanceof RangeError)return String.fromCharCode(65533);throw U;}};
else{var Gnz=String.fromCharCode,Yyp=Math.floor;tO=function(){var H=[],U=-1,A=arguments.length;if(!A)return"";for(var M="";++U<A;){var W=Number(arguments[U]);if(!isFinite(W)||W<0||W>1114111||Yyp(W)!==W)return String.fromCharCode(65533);if(W<=65535)H.push(W);else{W-=65536;var w=(W>>10)+55296;W=W%1024+56320;H.push(w,W)}if(U+1===A||H.length>16384)M+=Gnz.apply(null,H),H.length=0}return M}};var qyh=function(H){this.root=this.current=H;this.entering=!0};
qyh.prototype.next=function(){var H=this.current,U=this.entering;if(H===null)return null;a:switch(H._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 A=!0;break a;default:A=!1}U&&A?H._firstChild?(this.current=H._firstChild,this.entering=!0):this.entering=!1:H===this.root?this.current=null:H._next===null?(this.current=
H._parent,this.entering=!1):(this.current=H._next,this.entering=!0);return{entering:U,node:H}};
var dJ=function(H,U){this._type=H;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=U;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};
dJ.prototype.appendChild=function(H){H.unlink();H._parent=this;this._lastChild?(this._lastChild._next=H,H._prev=this._lastChild):this._firstChild=H;this._lastChild=H};
dJ.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var hOk=function(H,U){U.unlink();U._next=H._next;U._next&&(U._next._prev=U);U._prev=H;H._next=U;U._parent=H._parent;U._next||(U._parent._lastChild=U)};
dJ.prototype.insertBefore=function(H){H.unlink();H._prev=this._prev;H._prev&&(H._prev._next=H);H._next=this;this._prev=H;H._parent=this._parent;H._prev||(H._parent._firstChild=H)};
_.D5.Object.defineProperties(dJ.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(H){this._literal=H}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(H){this._destination=H}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(H){this._title=H}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(H){this._info=H}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(H){this._level=H}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(H){this._listData.type=H}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(H){this._listData.tight=H}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(H){this._listData.start=H}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(H){this._onEnter=H}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(H){this._onExit=H}}});var XSE=/[ \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,
iRF={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 knm=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]/),
vCw=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),T72=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),jRr=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),Ifw=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),QRg=/`+/,V5B=/^`+/,HYn=/\.\.\./g,UTz=/--+/g,ANy=/^<([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])?)*)>/,
MVB=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Wur=/^ *(?:\n *)?/,wlg=/^[ \t\n\x0b\x0c\x0d]/,Xlz=/[ \t\n\x0b\x0c\x0d]+/g,iYr=/^\s/,bYm=/ *$/,dTn=/^ */,OYh=/^ *(?:\n|$)/,ukB=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),ZYy=/^[^\n`\[\]\\!<&*_'"]+/m,c0=function(H){var U=new dJ("text");U._literal=H;return U},yo=function(H){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=H||{}};
yo.prototype.match=function(H){H=H.exec(this.subject.slice(this.pos));if(H===null)return null;this.pos+=H.index+H[0].length;return H[0]};
yo.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var B0=function(H){H.match(Wur);return!0},f9H=function(H,U,A){var M=0;
var W=H.pos;if(U===39||U===34)M++,H.pos++;else for(;H.peek()===U;)M++,H.pos++;if(M===0)M=null;else{var w=W===0?"\n":H.subject.charAt(W-1);var d=H.peek();d=d===-1?"\n":tO(d);var O=iYr.test(d);d=knm.test(d);var f=iYr.test(w);var J=knm.test(w);w=!O&&!(d&&!f&&!J);O=!f&&!(J&&!O&&!d);U===95?(f=w&&(!O||J),d=O&&(!w||d)):(f=U===39||U===34?w&&!O:w,d=O);H.pos=W;M={numdelims:M,can_open:f,can_close:d}}if(!M)return!1;W=M.numdelims;d=H.pos;H.pos+=W;d=U===39?"\u2019":U===34?"\u201c":H.subject.slice(d,H.pos);d=c0(d);
A.appendChild(d);H.delimiters={cc:U,numdelims:W,origdelims:W,node:d,previous:H.delimiters,next:null,can_open:M.can_open,can_close:M.can_close};H.delimiters.previous!==null&&(H.delimiters.previous.next=H.delimiters);return!0},JNn=function(H,U){U.previous!==null&&(U.previous.next=U.next);
U.next===null?H.delimiters=U.previous:U.next.previous=U.previous},Kuh=function(H,U){var A,M,W=[],w=!1;
W[95]=U;W[42]=U;W[39]=U;W[34]=U;for(A=H.delimiters;A!==null&&A.previous!==U;)A=A.previous;for(;A!==null;){var d=A.cc;if(A.can_close){var O=A.previous;for(M=!1;O!==null&&O!==U&&O!==W[d];){w=(A.can_open||O.can_close)&&(O.origdelims+A.origdelims)%3===0;if(O.cc===A.cc&&O.can_open&&!w){M=!0;break}O=O.previous}var f=A;if(d===42||d===95)if(M){var J=A.numdelims>=2&&O.numdelims>=2?2:1;var F=O.node;var P=A.node;O.numdelims-=J;A.numdelims-=J;F._literal=F._literal.slice(0,F._literal.length-J);P._literal=P._literal.slice(0,
P._literal.length-J);var n=new dJ(J===1?"emph":"strong");for(J=F._next;J&&J!==P;){var N=J._next;J.unlink();n.appendChild(J);J=N}hOk(F,n);J=O;N=A;J.next!==N&&(J.next=N,N.previous=J);O.numdelims===0&&(F.unlink(),JNn(H,O));A.numdelims===0&&(P.unlink(),O=A.next,JNn(H,A),A=O)}else A=A.next;else d===39?(A.node._literal="\u2019",M&&(O.node._literal="\u2018"),A=A.next):d===34&&(A.node._literal="\u201d",M&&(O.node.literal="\u201c"),A=A.next);M||w||(W[d]=f.previous,f.can_open||JNn(H,f))}else A=A.next}for(;H.delimiters!==
null&&H.delimiters!==U;)JNn(H,H.delimiters)},ojz=function(H){H=H.match(vCw);
return H===null?null:DGw(H.substr(1,H.length-2))},Fug=function(H){var U=H.match(T72);
if(U===null){U=H.pos;for(var A=0,M;(M=H.peek())!==-1;)if(M===92)H.pos+=1,H.peek()!==-1&&(H.pos+=1);else if(M===40)H.pos+=1,A+=1;else if(M===41)if(A<1)break;else H.pos+=1,--A;else if(wlg.exec(tO(M))!==null)break;else H.pos+=1;U=H.subject.substr(U,H.pos-U);return $G3(DGw(U))}return $G3(DGw(U.substr(1,U.length-2)))},PXz=function(H){H=H.match(ukB);
return H===null||H.length>1001?0:H.length},sim=function(H,U,A,M){H.brackets!==null&&(H.brackets.bracketAfter=!0);
H.brackets={node:U,previous:H.brackets,previousDelimiter:H.delimiters,index:A,image:M,active:!0}},nj3=function(H,U){var A;
return(A=H.match(ZYy))?(H.options.smart?U.appendChild(c0(A.replace(HYn,"\u2026").replace(UTz,function(M){var W=0,w=0;M.length%3===0?w=M.length/3:M.length%2===0?W=M.length/2:M.length%3===2?(W=1,w=(M.length-2)/3):(W=2,w=(M.length-4)/3);M="";var d;for(d=0;d<w;d++)M+="\u2014";for(d=0;d<W;d++)M+="\u2013";return M}))):U.appendChild(c0(A)),!0):!1},Nzm=function(H,U,A){H.subject=U;
H.pos=0;U=H.pos;var M=PXz(H);if(M===0)return 0;var W=H.subject.substr(0,M);if(H.peek()===58)H.pos++;else return H.pos=U,0;B0(H);M=Fug(H);if(M===null||M.length===0)return H.pos=U,0;var w=H.pos;B0(H);var d=ojz(H);d===null&&(d="",H.pos=w);var O=!0;H.match(OYh)===null&&(d===""?O=!1:(d="",H.pos=w,O=H.match(OYh)!==null));if(!O)return H.pos=U,0;W=bRM(W);if(W==="")return H.pos=U,0;A[W]||(A[W]={destination:M,title:d});return H.pos-U},Sag=function(H,U){var A,M=H.peek();
if(M===-1)return!1;switch(M){case 10:H.pos+=1;if((A=U._lastChild)&&A.type==="text"&&A._literal[A._literal.length-1]===" "){var W=A._literal[A._literal.length-2]===" ";A._literal=A._literal.replace(bYm,"");U.appendChild(new dJ(W?"linebreak":"softbreak"))}else U.appendChild(new dJ("softbreak"));H.match(dTn);A=!0;break;case 92:A=H.subject;H.pos+=1;H.peek()===10?(H.pos+=1,A=new dJ("linebreak"),U.appendChild(A)):jRr.test(A.charAt(H.pos))?(U.appendChild(c0(A.charAt(H.pos))),H.pos+=1):U.appendChild(c0("\\"));
A=!0;break;case 96:a:if(A=H.match(V5B),A===null)A=!1;else{W=H.pos;for(var w;(w=H.match(QRg))!==null;)if(w===A){w=new dJ("code");w._literal=H.subject.slice(W,H.pos-A.length).trim().replace(Xlz," ");U.appendChild(w);A=!0;break a}H.pos=W;U.appendChild(c0(A));A=!0}break;case 42:case 95:A=f9H(H,M,U);break;case 39:case 34:A=H.options.smart&&f9H(H,M,U);break;case 91:A=H.pos;H.pos+=1;W=c0("[");U.appendChild(W);sim(H,W,A,!1);A=!0;break;case 33:A=H.pos;H.pos+=1;H.peek()===91?(H.pos+=1,W=c0("!["),U.appendChild(W),
sim(H,W,A+1,!0)):U.appendChild(c0("!"));A=!0;break;case 93:var d,O=!1,f;H.pos+=1;var J=H.pos;W=H.brackets;if(W===null)U.appendChild(c0("]"));else if(W.active){A=W.image;var F=H.pos;H.peek()===40&&(H.pos++,B0(H)&&(w=Fug(H))!==null&&B0(H)&&(wlg.test(H.subject.charAt(H.pos-1))&&(d=ojz(H)),1)&&B0(H)&&H.peek()===41?(H.pos+=1,O=!0):H.pos=F);if(!O){var P=H.pos,n=PXz(H);n>2?f=H.subject.slice(P,P+n):W.bracketAfter||(f=H.subject.slice(W.index,J));n===0&&(H.pos=F);f&&(f=H.refmap[bRM(f)])&&(w=f.destination,d=
f.title,O=!0)}if(O){J=new dJ(A?"image":"link");J._destination=w;J._title=d||"";for(w=W.node._next;w;)d=w._next,w.unlink(),J.appendChild(w),w=d;U.appendChild(J);Kuh(H,W.previousDelimiter);H.brackets=H.brackets.previous;W.node.unlink();if(!A)for(W=H.brackets;W!==null;)W.image||(W.active=!1),W=W.previous}else H.brackets=H.brackets.previous,H.pos=J,U.appendChild(c0("]"))}else U.appendChild(c0("]")),H.brackets=H.brackets.previous;A=!0;break;case 60:(A=H.match(ANy))?(A=A.slice(1,A.length-1),W=new dJ("link"),
W._destination=$G3("mailto:"+A),W._title="",W.appendChild(c0(A)),U.appendChild(W),A=!0):(A=H.match(MVB))?(A=A.slice(1,A.length-1),W=new dJ("link"),W._destination=$G3(A),W._title="",W.appendChild(c0(A)),U.appendChild(W),A=!0):A=!1;A||(A=H.match(t5p),A===null?A=!1:(W=new dJ("html_inline"),W._literal=A,U.appendChild(W),A=!0));break;case 38:(A=H.match(Ifw))?(U.appendChild(c0(zOz(A))),A=!0):A=!1;break;default:A=nj3(H,U)}A||(H.pos+=1,U.appendChild(c0(tO(M))));return!0};
yo.prototype.parseInlines=function(H){this.subject=H._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;Sag(this,H););H._string_content=null;Kuh(this,null)};
yo.prototype.parse=yo.prototype.parseInlines;var plp=[/./,/^<(?: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")],Lu3=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],RlH=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Ejr=/^[#`~*+_=<>0-9-\|]|\|/,mTy=/[^ \t\f\v\r\n]/,gj3=/^[*+-]/,a9m=/^(\d{1,9})([.)])/,xTm=/^#{1,6}(?:[ \t]+|$)/,zlm=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,CXB=/^(?:`{3,}|~{3,})(?= *$)/,tVg=/^(?:=+|-+)[ \t]*$/,cN2=/\r\n|\n|\r/,ORN=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,uf4=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,yNw={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(H){return H!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(H,U){for(H=U._firstChild;H;){if(d1c(H)&&H._next){U._listData.tight=!1;break}for(var A=H._firstChild;A;){if(d1c(A)&&(H._next||A._next)){U._listData.tight=!1;break}A=A._next}H=H._next}},
canContain:function(H){return H==="item"},
acceptsLines:!1},block_quote:{continue:function(H){var U=H.currentLine;if(H.indented||iU(U,H.nextNonspace)!==62)return 1;r$(H);ec(H,1,!1);Xg(iU(U,H.offset))&&ec(H,1,!0);return 0},
finalize:function(){},
canContain:function(H){return H!=="item"},
acceptsLines:!1},item:{continue:function(H,U){if(H.blank){if(U._firstChild==null)return 1;r$(H)}else if(H.indent>=U._listData.markerOffset+U._listData.padding)ec(H,U._listData.markerOffset+U._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(H){return H!=="item"&&!ZR7(H)},
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(H,U){var A=H.currentLine,M=H.indent;if(U._isFenced){if((M=M<=3&&A.charAt(H.nextNonspace)===U._fenceChar&&A.slice(H.nextNonspace).match(CXB))&&M[0].length>=U._fenceLength)return H.finalize(U,H.lineNumber),2;for(U=U._fenceOffset;U>0&&Xg(iU(A,H.offset));)ec(H,1,!0),U--}else if(M>=4)ec(H,4,!0);else if(H.blank)r$(H);else return 1;return 0},
finalize:function(H,U){if(U._isFenced){var A=U._string_content,M=A.indexOf("\n");H=A.slice(0,M);A=A.slice(M+1);U.info=DGw(H.trim());U._literal=A}else U._literal=U._string_content.replace(/(\n *)+$/,"\n");U._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(H,U){return!H.blank||U._htmlBlockType!==6&&U._htmlBlockType!==7?0:1},
finalize:function(H,U){U._literal=U._string_content.replace(/(\n *)+$/,"");U._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(H){return H.blank?1:0},
finalize:function(H,U){for(var A,M=!1;iU(U._string_content,0)===91&&(A=Nzm(H.inlineParser,U._string_content,H.refmap));)U._string_content=U._string_content.slice(A),M=!0;M&&!mTy.test(U._string_content)&&U.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(H){return bU(H.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(H){return H=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(H,U){if(!U._rowIsDelimiter){H=U._isHeader?"th":"td";for(var A=U._parent._tableColumns,M=U._string_content,W=0,w="",d,O=U._sourcepos[0][0];W<M.length;){switch(M[W]){case "|":d&&(d._string_content=w.trim(),w="",d=null,A--,A<=0&&(W=M.length));break;default:if(!d){d=new dJ(H,[[O,W],[O,W]]);var f=U._parent._columnAlignment,J=U._parent._tableColumns-A;f&&J<=f.length&&J>=0&&(d._alignment=f[J]);U.appendChild(d)}w+=M[W];d._sourcepos[1][1]=W}W++}d&&(d._string_content=w.trim());U._string_content=
""}},
canContain:function(H){return H!=="row"},
acceptsLines:!1}},BzH=[function(H){if(H.indented||iU(H.currentLine,H.nextNonspace)!==62)return 0;r$(H);ec(H,1,!1);Xg(iU(H.currentLine,H.offset))&&ec(H,1,!0);DA(H);H.addChild("block_quote",H.nextNonspace);return 1},
function(H){var U;if(!H.indented&&(U=H.currentLine.slice(H.nextNonspace).match(xTm))){r$(H);ec(H,U[0].length,!1);DA(H);var A=H.addChild("heading",H.nextNonspace);A.level=U[0].trim().length;A._string_content=H.currentLine.slice(H.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");ec(H,H.currentLine.length-H.offset);return 2}return 0},
function(H){var U;if(!H.indented&&(U=H.currentLine.slice(H.nextNonspace).match(zlm))){var A=U[0].length;DA(H);var M=H.addChild("code_block",H.nextNonspace);M._isFenced=!0;M._fenceLength=A;M._fenceChar=U[0][0];M._fenceOffset=H.indent;r$(H);ec(H,A,!1);return 2}return 0},
function(H,U){if(!H.indented&&iU(H.currentLine,H.nextNonspace)===60){var A=H.currentLine.slice(H.nextNonspace),M;for(M=1;M<=7;M++)if(plp[M].test(A)&&(M<7||U.type!=="paragraph"))return DA(H),H.addChild("html_block",H.offset)._htmlBlockType=M,2}return 0},
function(H,U){var A;if(!H.indented&&U.type==="paragraph"&&(A=H.currentLine.slice(H.nextNonspace).match(tVg))){DA(H);var M=new dJ("heading",U.sourcepos);M.level=A[0][0]==="="?1:2;M._string_content=U._string_content;hOk(U,M);U.unlink();H.tip=M;ec(H,H.currentLine.length-H.offset,!1);return 2}return 0},
function(H){return!H.indented&&RlH.test(H.currentLine.slice(H.nextNonspace))?(DA(H),H.addChild("thematic_break",H.nextNonspace),ec(H,H.currentLine.length-H.offset,!1),2):0},
function(H,U){var A,M;if(!(M=H.indented&&U.type!=="list")){a:{var W=U,w=H.currentLine.slice(H.nextNonspace);M={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:H.indent};if(A=w.match(gj3))M.type="bullet",M.bulletChar=A[0][0];else{if(!(A=w.match(a9m))||W.type==="paragraph"&&A[1]!=="1"){A=null;break a}M.type="ordered";M.start=parseInt(A[1],10);M.delimiter=A[2]}var d=iU(H.currentLine,H.nextNonspace+A[0].length);if(d!==-1&&d!==9&&d!==32||W.type==="paragraph"&&!H.currentLine.slice(H.nextNonspace+
A[0].length).match(mTy))A=null;else{r$(H);ec(H,A[0].length,!0);W=H.column;w=H.offset;do ec(H,1,!0),d=iU(H.currentLine,H.offset);while(H.column-W<5&&Xg(d));d=iU(H.currentLine,H.offset)===-1;var O=H.column-W;O>=5||O<1||d?(M.padding=A[0].length+1,H.column=W,H.offset=w,Xg(iU(H.currentLine,H.offset))&&ec(H,1,!0)):M.padding=A[0].length+O;A=M}}M=!A}if(M)return 0;DA(H);(M=H.tip.type!=="list")||(U=U._listData,M=!(U.type===A.type&&U.delimiter===A.delimiter&&U.bulletChar===A.bulletChar));M&&(U=H.addChild("list",
H.nextNonspace),U._listData=A);U=H.addChild("item",H.nextNonspace);U._listData=A;return 1},
function(H){var U;return((U=H.options.shouldParseIndentAsCodeBlock)!=null?U:1)&&H.indented&&H.tip.type!=="paragraph"&&!H.blank?(ec(H,4,!0),DA(H),H.addChild("code_block",H.offset),2):0},
function(H,U){var A=bU(H.currentLine),M=bU(H.lookahead);if(A!==0&&M<0&&Math.abs(A)==Math.abs(M)&&!ZR7(U.type)){DA(H);U=H.addChild("table",H.nextNonspace);U._tableRows=1;U._tableColumns=Math.abs(A);A=H.lookahead;if(uf4.test(A)){M=[];for(var W=0,w=!1,d=0,O=void 0;W<A.length;){var f=d>=3;switch(A[W]){case "-":d++;break;case "|":w&&(M.push(O),O=void 0,d=0);w=!0;break;case ":":O||f||(O="left"),!O&&f&&(O="right"),O==="left"&&f&&(O="center")}W++}A=M}else A=void 0;U._columnAlignment=A;U=H.addChild("row",
H.nextNonspace);U._isHeader=!0;ec(H,H.currentLine.length-H.offset,!1);U._string_content=H.currentLine;return 1}return 0},
function(H,U){if(U.type=="table"&&bU(H.currentLine)!==0){DA(H);var A=U;U=H.addChild("row",H.nextNonspace);bU(H.currentLine)<0?U._rowIsDelimiter=!0:A._tableRows+=1;ec(H,H.currentLine.length-H.offset,!1);U._string_content=H.currentLine;return 2}return 0}],Em7=function(){var H={shouldParseIndentAsCodeBlock:!1};
H=H===void 0?{}:H;this.lastMatchedContainer=this.doc=fm7();this.refmap={};this.lastLineLength=0;this.inlineParser=new yo(H);this.options=H;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=yNw;this.blockStarts=BzH},rNn=function(H){H.partiallyConsumedTab&&(H.offset+=1,H.tip._string_content+=" ".repeat(4-H.column%
4));
H.tip._string_content+=H.currentLine.slice(H.offset)+"\n"};
Em7.prototype.addChild=function(H,U){for(;!this.blocks[this.tip.type].canContain(H);)this.finalize(this.tip,this.lineNumber-1);H=new dJ(H,[[this.lineNumber,U+1],[0,0]]);H._string_content="";this.tip.appendChild(H);return this.tip=H};
var DA=function(H){if(!H.allClosed){for(;H.oldtip!==H.lastMatchedContainer;){var U=H.oldtip._parent;H.finalize(H.oldtip,H.lineNumber-1);H.oldtip=U}H.allClosed=!0}},ec=function(H,U,A){for(var M=H.currentLine,W,w;U>0&&(w=M[H.offset]);)w==="\t"?(W=4-H.column%4,A?(H.partiallyConsumedTab=W>U,W=W>U?U:W,H.column+=W,H.offset+=H.partiallyConsumedTab?0:1,U-=W):(H.partiallyConsumedTab=!1,H.column+=W,H.offset+=1,--U)):(H.partiallyConsumedTab=!1,H.offset+=1,H.column+=1,--U)},r$=function(H){H.offset=H.nextNonspace;
H.column=H.nextNonspaceColumn;H.partiallyConsumedTab=!1},elh=function(H){for(var U=H.currentLine,A=H.offset,M=H.column,W;(W=U.charAt(A))!=="";)if(W===" ")A++,M++;
else if(W==="\t")A++,M+=4-M%4;else break;H.blank=W==="\n"||W==="\r"||W==="";H.nextNonspace=A;H.nextNonspaceColumn=M;H.indent=H.nextNonspaceColumn-H.column;H.indented=H.indent>=4};
Em7.prototype.finalize=function(H,U){var A=H._parent;H._open=!1;H.sourcepos[1]=[U,this.lastLineLength];this.blocks[H.type].finalize(this,H);this.tip=A};
Em7.prototype.parse=function(H){this.tip=this.doc=fm7();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!H)return this.doc;this.options.time&&console.time("preparing input");var U=H.split(cN2),A=U.length;H.charCodeAt(H.length-1)===10&&--A;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(H=0;H<A;H++)a:{var M=void 0,W=U[H],w=U[H+1],d=!0,O=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;W.indexOf("\x00")!==-1&&(W=W.replace(/\0/g,"\ufffd"));this.currentLine=W;for(this.lookahead=w;(M=O._lastChild)&&M._open;){O=M;elh(this);switch(this.blocks[O.type].continue(this,O)){case 0:break;case 1:d=!1;break;case 2:this.lastLineLength=W.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!d){O=O._parent;break}}this.allClosed=O===this.oldtip;this.lastMatchedContainer=
O;M=O.type!=="paragraph"&&yNw[O.type].acceptsLines;w=this.blockStarts;for(d=w.length;!M;){elh(this);if(!this.indented&&!Ejr.test(W.slice(this.nextNonspace))){r$(this);break}for(var f=0;f<d;){var J=w[f](this,O);if(J===1){O=this.tip;break}else if(J===2){O=this.tip;M=!0;break}else f++}if(f===d){r$(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){DA(this);this.blank&&O.lastChild&&(O.lastChild._lastLineBlank=!0);M=O.type;w=this.blank&&!(M==="block_quote"||M==="code_block"&&O._isFenced||
M==="item"&&!O._firstChild&&O.sourcepos[0][0]===this.lineNumber);for(d=O;d;)d._lastLineBlank=w,d=d._parent;this.blocks[M].acceptsLines?(rNn(this),M==="html_block"&&O._htmlBlockType>=1&&O._htmlBlockType<=5&&Lu3[O._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(O,this.lineNumber)):this.offset<W.length&&!this.blank&&(this.addChild("paragraph",this.offset),r$(this),rNn(this))}else rNn(this);this.lastLineLength=W.length}for(;this.tip;)this.finalize(this.tip,A);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");W=new qyh(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;A=W.next();)U=A.node,H=U.type,A.entering||H!=="paragraph"&&H!=="heading"&&H!=="th"&&H!="td"||this.inlineParser.parse(U);this.options.time&&console.timeEnd("inline parsing");return this.doc};JnV.prototype.render=function(H){H=new qyh(H);var U;this.buffer="";for(this.lastOut="\n";U=H.next();){var A=U.node.type;if(this[A])this[A](U.node,U.entering)}return this.buffer};
JnV.prototype.out=function(H){$i(this,H)};
var $i=function(H,U){H.buffer+=U;H.lastOut=U};
JnV.prototype.cr=function(){this.lastOut!=="\n"&&$i(this,"\n")};var DTK=/^javascript:|vbscript:|file:|data:/i,$T2=/^data:image\/(?:png|gif|jpeg|webp)/i,l9p=function(H){return DTK.test(H)&&!$T2.test(H)};
Oe.prototype=Object.create(JnV.prototype);_.X=Oe.prototype;_.X.text=function(H){this.out(H.literal)};
_.X.html_inline=function(H){this.options.safe?$i(this,"\x3c!-- raw HTML omitted --\x3e"):$i(this,H.literal)};
_.X.html_block=function(H){this.cr();this.options.safe?$i(this,"\x3c!-- raw HTML omitted --\x3e"):$i(this,H.literal);this.cr()};
_.X.softbreak=function(){$i(this,this.options.softbreak)};
_.X.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.X.link=function(H,U){var A=this.attrs(H);U?(this.options.safe&&l9p(H.destination)||A.push(["href",CH(H.destination,!0)]),H.title&&A.push(["title",CH(H.title,!0)]),this.tag("a",A)):this.tag("/a")};
_.X.image=function(H,U){U?(this.disableTags===0&&(this.options.safe&&l9p(H.destination)?$i(this,'<img src="" alt="'):$i(this,'<img src="'+CH(H.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(H.title&&$i(this,'" title="'+CH(H.title,!0)),$i(this,'" />')))};
_.X.emph=function(H,U){this.tag(U?"em":"/em")};
_.X.strong=function(H,U){this.tag(U?"strong":"/strong")};
_.X.paragraph=function(H,U){var A=H.parent.parent;H=this.attrs(H);A!==null&&A.type==="list"&&A.listTight||(U?(this.cr(),this.tag("p",H)):(this.tag("/p"),this.cr()))};
_.X.heading=function(H,U){var A="h"+H.level;H=this.attrs(H);U?(this.cr(),this.tag(A,H)):(this.tag("/"+A),this.cr())};
_.X.code=function(H){this.tag("code");this.out(H.literal);this.tag("/code")};
_.X.code_block=function(H){var U=H.info?H.info.split(/\s+/):[],A=this.attrs(H);U.length>0&&U[0].length>0&&A.push(["class","language-"+CH(U[0],!0)]);this.cr();this.tag("pre");this.tag("code",A);this.out(H.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.X.thematic_break=function(H){H=this.attrs(H);this.cr();this.tag("hr",H,!0);this.cr()};
_.X.block_quote=function(H,U){H=this.attrs(H);U?(this.cr(),this.tag("blockquote",H)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.X.list=function(H,U){var A=H.listType==="bullet"?"ul":"ol",M=this.attrs(H);U?(H=H.listStart,H!==null&&H!==1&&M.push(["start",H.toString()]),this.cr(),this.tag(A,M)):(this.cr(),this.tag("/"+A));this.cr()};
_.X.item=function(H,U){H=this.attrs(H);U?this.tag("li",H):(this.tag("/li"),this.cr())};
_.X.custom_inline=function(H,U){U&&H.onEnter?$i(this,H.onEnter):!U&&H.onExit&&$i(this,H.onExit)};
_.X.custom_block=function(H,U){this.cr();U&&H.onEnter?$i(this,H.onEnter):!U&&H.onExit&&$i(this,H.onExit);this.cr()};
_.X.table=function(H,U){H=this.attrs(H);U?(this.cr(),this.tag("table",H)):(this.tag("/table"),this.cr())};
_.X.row=function(H,U){H._rowIsDelimiter||(H=this.attrs(H),U?this.tag("tr",H):this.tag("/tr"))};
_.X.td=function(H,U){var A=this.attrs(H);H._alignment&&A.push(["align",H._alignment]);U?this.tag("td",A):this.tag("/td")};
_.X.th=function(H,U){var A=this.attrs(H);H._alignment&&A.push(["align",H._alignment]);U?this.tag("th",A):this.tag("/th")};
_.X.out=function(H){$i(this,CH(H,!1))};
_.X.tag=function(H,U,A){if(!(this.disableTags>0)){this.buffer+="<"+H;if(U&&U.length>0){H=0;for(var M;(M=U[H])!==void 0;)this.buffer+=" "+M[0]+'="'+M[1]+'"',H++}A&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.X.attrs=function(H){var U=[];this.options.sourcepos&&(H=H.sourcepos)&&U.push(["data-sourcepos",String(H[0][0])+":"+String(H[0][1])+"-"+String(H[1][0])+":"+String(H[1][1])]);return U};
Oe.prototype.text=Oe.prototype.text;Oe.prototype.html_inline=Oe.prototype.html_inline;Oe.prototype.html_block=Oe.prototype.html_block;Oe.prototype.softbreak=Oe.prototype.softbreak;Oe.prototype.linebreak=Oe.prototype.linebreak;Oe.prototype.link=Oe.prototype.link;Oe.prototype.image=Oe.prototype.image;Oe.prototype.emph=Oe.prototype.emph;Oe.prototype.strong=Oe.prototype.strong;Oe.prototype.paragraph=Oe.prototype.paragraph;Oe.prototype.heading=Oe.prototype.heading;Oe.prototype.code=Oe.prototype.code;
Oe.prototype.code_block=Oe.prototype.code_block;Oe.prototype.thematic_break=Oe.prototype.thematic_break;Oe.prototype.block_quote=Oe.prototype.block_quote;Oe.prototype.list=Oe.prototype.list;Oe.prototype.item=Oe.prototype.item;Oe.prototype.custom_inline=Oe.prototype.custom_inline;Oe.prototype.custom_block=Oe.prototype.custom_block;Oe.prototype.table=Oe.prototype.table;Oe.prototype.row=Oe.prototype.row;Oe.prototype.td=Oe.prototype.td;Oe.prototype.th=Oe.prototype.th;Oe.prototype.out=Oe.prototype.out;
Oe.prototype.tag=Oe.prototype.tag;Oe.prototype.attrs=Oe.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 Gsw,Yaw,D67;(function(){function H(t,x){return t<x?-1:t>x?1:t>=x?0:NaN}
function U(t){return function(x,l){return H(t(x),l)}}
function A(){for(var t=0,x=arguments.length,l={},At;t<x;++t){if(!(At=arguments[t]+"")||At in l)throw Error("ye`"+At);l[At]=[]}return new M(l)}
function M(t){this._=t}
function W(t,x){return t.trim().split(/^|\s+/).map(function(l){var At="",u7=l.indexOf(".");u7>=0&&(At=l.slice(u7+1),l=l.slice(0,u7));if(l&&!x.hasOwnProperty(l))throw Error("ze`"+l);return{type:l,name:At}})}
function w(t,x,l){for(var At=0,u7=t.length;At<u7;++At)if(t[At].name===x){t[At]=eLh;t=t.slice(0,At).concat(t.slice(At+1));break}l!=null&&t.push({name:x,value:l});return t}
function d(t){var x=t,l=x.indexOf(":");l>=0&&(x=t.slice(0,l))!=="xmlns"&&(t=t.slice(l+1));return uX.hasOwnProperty(x)?{space:uX[x],local:t}:t}
function O(t){return function(){var x=this.ownerDocument,l=this.namespaceURI;return l==="http://www.w3.org/1999/xhtml"&&x.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?x.createElement(t):x.createElementNS(l,t)}}
function f(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}
function J(t){t=d(t);return(t.local?f:O)(t)}
function F(){}
function P(t){return t==null?F:function(){return this.querySelector(t)}}
function n(t){return Array(t.length)}
function N(t,x){this.ownerDocument=t.ownerDocument;this.namespaceURI=t.namespaceURI;this._next=null;this._parent=t;this.__data__=x}
function L(t){return function(){return t}}
function m(t,x,l,At,u7,sM){for(var EM=0,tt,dm=x.length,Mp=sM.length;EM<Mp;++EM)(tt=x[EM])?(tt.__data__=sM[EM],At[EM]=tt):l[EM]=new N(t,sM[EM]);for(;EM<dm;++EM)if(tt=x[EM])u7[EM]=tt}
function z(t,x,l,At,u7,sM,EM){var tt,dm,Mp={},un=x.length,Np=sM.length,Vh=Array(un),rh;for(tt=0;tt<un;++tt)if(dm=x[tt])Vh[tt]=rh="$"+EM.call(dm,dm.__data__,tt,x),rh in Mp?u7[tt]=dm:Mp[rh]=dm;for(tt=0;tt<Np;++tt)rh="$"+EM.call(t,sM[tt],tt,sM),(dm=Mp[rh])?(At[tt]=dm,dm.__data__=sM[tt],Mp[rh]=null):l[tt]=new N(t,sM[tt]);for(tt=0;tt<un;++tt)(dm=x[tt])&&Mp[Vh[tt]]===dm&&(u7[tt]=dm)}
function c(t,x){return t<x?-1:t>x?1:t>=x?0:NaN}
function C(t){return function(){this.removeAttribute(t)}}
function v(t){return function(){this.removeAttributeNS(t.space,t.local)}}
function Y(t,x){return function(){this.setAttribute(t,x)}}
function D(t,x){return function(){this.setAttributeNS(t.space,t.local,x)}}
function h(t,x){return function(){var l=x.apply(this,arguments);l==null?this.removeAttribute(t):this.setAttribute(t,l)}}
function T(t,x){return function(){var l=x.apply(this,arguments);l==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,l)}}
function WF(t){return function(){this.style.removeProperty(t)}}
function dK(t,x,l){return function(){this.style.setProperty(t,x,l)}}
function SN(t,x,l){return function(){var At=x.apply(this,arguments);At==null?this.style.removeProperty(t):this.style.setProperty(t,At,l)}}
function o_(t,x){return t.style.getPropertyValue(x)||(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView).getComputedStyle(t,null).getPropertyValue(x)}
function PF(t){return function(){delete this[t]}}
function BF(t,x){return function(){this[t]=x}}
function kc(t,x){return function(){var l=x.apply(this,arguments);l==null?delete this[t]:this[t]=l}}
function G8(){this.textContent=""}
function Pr(t){return function(){this.textContent=t}}
function Z3(t){return function(){var x=t.apply(this,arguments);this.textContent=x==null?"":x}}
function Yc(){this.innerHTML=""}
function sz(t){return function(){this.innerHTML=t}}
function Ry(t){return function(){var x=t.apply(this,arguments);this.innerHTML=x==null?"":x}}
function oy(){return null}
function aY(){var t=this.parentNode;t&&t.removeChild(this)}
function im(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Kh(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function rK(t,x,l){t=FB(t,x,l);return function(At){var u7=At.relatedTarget;u7&&(u7===this||u7.compareDocumentPosition(this)&8)||t.call(this,At)}}
function FB(t,x,l){return function(){t.call(this,this.__data__,x,l)}}
function T2(t){return t.trim().split(/^|\s+/).map(function(x){var l="",At=x.indexOf(".");At>=0&&(l=x.slice(At+1),x=x.slice(0,At));return{type:x,name:l}})}
function xK(t){return function(){var x=this.__on;if(x){for(var l=0,At=-1,u7=x.length,sM;l<u7;++l)(sM=x[l],t.type&&sM.type!==t.type||sM.name!==t.name)?x[++At]=sM:this.removeEventListener(sM.type,sM.listener,sM.capture);++At?x.length=At:delete this.__on}}}
function Hj(t,x,l){var At=obn.hasOwnProperty(t.type)?rK:FB;return function(u7,sM,EM){u7=this.__on;var tt;sM=At(x,sM,EM);if(u7){EM=0;for(var dm=u7.length;EM<dm;++EM)if((tt=u7[EM]).type===t.type&&tt.name===t.name){this.removeEventListener(tt.type,tt.listener,tt.capture);this.addEventListener(tt.type,tt.listener=sM,tt.capture=l);tt.value=x;return}}this.addEventListener(t.type,sM,l);tt={type:t.type,name:t.name,value:x,listener:sM,capture:l};u7?u7.push(tt):this.__on=[tt]}}
function CU(t,x,l){var At=t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView,u7=At.CustomEvent;typeof u7==="function"?u7=new u7(x,l):(u7=At.document.createEvent("Event"),l?(u7.initEvent(x,l.bubbles,l.cancelable),u7.detail=l.detail):u7.initEvent(x,!1,!1));t.dispatchEvent(u7)}
function Qh(t,x){return function(){return CU(this,t,x)}}
function oY(t,x){return function(){return CU(this,t,x.apply(this,arguments))}}
function qp(t,x){this._groups=t;this._parents=x}
function kf(){return new qp([[document.documentElement]],Dd5)}
function Oz(){this._="@"+(++$df).toString(36)}
function Fh(t,x,l){t.prototype=x.prototype=l;l.constructor=t}
function Kk(t,x){t=Object.create(t.prototype);for(var l in x)t[l]=x[l];return t}
function kK(){}
function ew(t){var x;t=(t+"").trim().toLowerCase();return(x=l88.exec(t))?(x=parseInt(x[1],16),new Qp(x>>8&15|x>>4&240,x>>4&15|x&240,(x&15)<<4|x&15,1)):(x=GtX.exec(t))?O$(parseInt(x[1],16)):(x=Yd$.exec(t))?new Qp(x[1],x[2],x[3],1):(x=qdY.exec(t))?new Qp(x[1]*255/100,x[2]*255/100,x[3]*255/100,1):(x=hLj.exec(t))?lv(x[1],x[2],x[3],x[4]):(x=kt7.exec(t))?lv(x[1]*255/100,x[2]*255/100,x[3]*255/100,x[4]):(x=vN8.exec(t))?Rl(x[1],x[2]/100,x[3]/100,1):(x=TU7.exec(t))?Rl(x[1],x[2]/100,x[3]/100,x[4]):F$n.hasOwnProperty(t)?
O$(F$n[t]):t==="transparent"?new Qp(NaN,NaN,NaN,0):null}
function O$(t){return new Qp(t>>16&255,t>>8&255,t&255,1)}
function lv(t,x,l,At){At<=0&&(t=x=l=NaN);return new Qp(t,x,l,At)}
function G2(t){t instanceof kK||(t=ew(t));if(!t)return new Qp;t=t.rgb();return new Qp(t.r,t.g,t.b,t.opacity)}
function K8(t,x,l,At){return arguments.length===1?G2(t):new Qp(t,x,l,At==null?1:At)}
function Qp(t,x,l,At){this.r=+t;this.g=+x;this.b=+l;this.opacity=+At}
function uv(t){t=Math.max(0,Math.min(255,Math.round(t)||0));return(t<16?"0":"")+t.toString(16)}
function Rl(t,x,l,At){At<=0?t=x=l=NaN:l<=0||l>=1?t=x=NaN:x<=0&&(t=NaN);return new pW(t,x,l,At)}
function uL(t){if(t instanceof pW)return new pW(t.h,t.s,t.l,t.opacity);t instanceof kK||(t=ew(t));if(!t)return new pW;if(t instanceof pW)return t;t=t.rgb();var x=t.r/255,l=t.g/255,At=t.b/255,u7=Math.min(x,l,At),sM=Math.max(x,l,At),EM=NaN,tt=sM-u7,dm=(sM+u7)/2;tt?(EM=x===sM?(l-At)/tt+(l<At)*6:l===sM?(At-x)/tt+2:(x-l)/tt+4,tt/=dm<.5?sM+u7:2-sM-u7,EM*=60):tt=dm>0&&dm<1?0:EM;return new pW(EM,tt,dm,t.opacity)}
function UW(t,x,l,At){return arguments.length===1?uL(t):new pW(t,x,l,At==null?1:At)}
function pW(t,x,l,At){this.h=+t;this.s=+x;this.l=+l;this.opacity=+At}
function pU(t,x,l){return(t<60?x+(l-x)*t/60:t<180?l:t<240?x+(l-x)*(240-t)/60:x)*255}
function mF(t){if(t instanceof gK)return new gK(t.l,t.a,t.b,t.opacity);if(t instanceof mw){if(isNaN(t.h))return new gK(t.l,0,0,t.opacity);var x=t.h*PfK;return new gK(t.l,Math.cos(x)*t.c,Math.sin(x)*t.c,t.opacity)}t instanceof Qp||(t=G2(t));var l=RY(t.r),At=RY(t.g),u7=RY(t.b);x=eN(.2225045*l+.7168786*At+.0606169*u7);if(l===At&&At===u7)var sM=l=x;else sM=eN((.4360747*l+.3850649*At+.1430804*u7)/.96422),l=eN((.0139322*l+.0971045*At+.7141733*u7)/.82521);return new gK(116*x-16,500*(sM-x),200*(x-l),t.opacity)}
function gK(t,x,l,At){this.l=+t;this.a=+x;this.b=+l;this.opacity=+At}
function eN(t){return t>jjm?Math.pow(t,1/3):t/spw+nbn}
function T8(t){return t>gl?t*t*t:spw*(t-nbn)}
function Sw(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}
function RY(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}
function gM(t){if(t instanceof mw)return new mw(t.h,t.c,t.l,t.opacity);t instanceof gK||(t=mF(t));if(t.a===0&&t.b===0)return new mw(NaN,0,t.l,t.opacity);var x=Math.atan2(t.b,t.a)*Nxn;return new mw(x<0?x+360:x,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}
function zy(t,x,l,At){return arguments.length===1?gM(t):new mw(t,x,l,At==null?1:At)}
function mw(t,x,l,At){this.h=+t;this.c=+x;this.l=+l;this.opacity=+At}
function Ez(t,x,l,At){if(arguments.length===1){var u7=t;if(u7 instanceof Gy)u7=new Gy(u7.h,u7.s,u7.l,u7.opacity);else{u7 instanceof Qp||(u7=G2(u7));var sM=u7.g/255,EM=u7.b/255,tt=(SNn*EM+u7.r/255*-1.7884503806-3.5172982438*sM)/(SNn+-1.7884503806-3.5172982438);EM-=tt;var dm=(1.97294*(sM-tt)- -.29227*EM)/-.90649;EM=(sM=Math.sqrt(dm*dm+EM*EM)/(1.97294*tt*(1-tt)))?Math.atan2(dm,EM)*Nxn-120:NaN;u7=new Gy(EM<0?EM+360:EM,sM,tt,u7.opacity)}}else u7=new Gy(t,x,l,At==null?1:At);return u7}
function Gy(t,x,l,At){this.h=+t;this.s=+x;this.l=+l;this.opacity=+At}
function XL(t,x,l,At,u7){var sM=t*t,EM=sM*t;return((1-3*t+3*sM-EM)*x+(4-6*sM+3*EM)*l+(1+3*t+3*sM-3*EM)*At+EM*u7)/6}
function nk(t){return function(){return t}}
function tz(t,x){return function(l){return t+l*x}}
function V9(t,x,l){return t=Math.pow(t,l),x=Math.pow(x,l)-t,l=1/l,function(At){return Math.pow(t+At*x,l)}}
function GC(t,x){var l=x-t;return l?tz(t,l>180||l<-180?l-360*Math.round(l/360):l):nk(isNaN(t)?x:t)}
function JD(t){return(t=+t)===1?U4:function(x,l){return l-x?V9(x,l,t):nk(isNaN(x)?l:x)}}
function U4(t,x){var l=x-t;return l?tz(t,l):nk(isNaN(t)?x:t)}
function gV(t){return function(x){var l=x.length,At=Array(l),u7=Array(l),sM=Array(l),EM;for(EM=0;EM<l;++EM){var tt=K8(x[EM]);At[EM]=tt.r||0;u7[EM]=tt.g||0;sM[EM]=tt.b||0}At=t(At);u7=t(u7);sM=t(sM);tt.opacity=1;return function(dm){tt.r=At(dm);tt.g=u7(dm);tt.b=sM(dm);return tt+""}}}
function DD(t,x){return t=+t,x-=t,function(l){return t+x*l}}
function vC(t){return function(){return t}}
function hq(t){return function(x){return t(x)+""}}
function nv(t,x){var l=g0E.lastIndex=aa7.lastIndex=0,At,u7,sM,EM=-1,tt=[],dm=[];t+="";for(x+="";(At=g0E.exec(t))&&(u7=aa7.exec(x));)(sM=u7.index)>l&&(sM=x.slice(l,sM),tt[EM]?tt[EM]+=sM:tt[++EM]=sM),(At=At[0])===(u7=u7[0])?tt[EM]?tt[EM]+=u7:tt[++EM]=u7:(tt[++EM]=null,dm.push({i:EM,x:DD(At,u7)})),l=aa7.lastIndex;l<x.length&&(sM=x.slice(l),tt[EM]?tt[EM]+=sM:tt[++EM]=sM);return tt.length<2?dm[0]?hq(dm[0].x):vC(x):(x=dm.length,function(Mp){for(var un=0,Np;un<x;++un)tt[(Np=dm[un]).i]=Np.x(Mp);return tt.join("")})}
function Yh(t,x,l,At,u7,sM){var EM,tt,dm;if(EM=Math.sqrt(t*t+x*x))t/=EM,x/=EM;if(dm=t*l+x*At)l-=t*dm,At-=x*dm;if(tt=Math.sqrt(l*l+At*At))l/=tt,At/=tt,dm/=tt;t*At<x*l&&(t=-t,x=-x,dm=-dm,EM=-EM);return{translateX:u7,translateY:sM,rotate:Math.atan2(x,t)*pir,skewX:Math.atan(dm)*pir,scaleX:EM,scaleY:tt}}
function p1(t,x,l,At){function u7(Mp){return Mp.length?Mp.pop()+" ":""}
function sM(Mp,un,Np,Vh,rh,x5){Mp!==Np||un!==Vh?(rh=rh.push("translate(",null,x,null,l),x5.push({i:rh-4,x:DD(Mp,Np)},{i:rh-2,x:DD(un,Vh)})):(Np||Vh)&&rh.push("translate("+Np+x+Vh+l)}
function EM(Mp,un,Np,Vh){Mp!==un?(Mp-un>180?un+=360:un-Mp>180&&(Mp+=360),Vh.push({i:Np.push(u7(Np)+"rotate(",null,At)-2,x:DD(Mp,un)})):un&&Np.push(u7(Np)+"rotate("+un+At)}
function tt(Mp,un,Np,Vh){Mp!==un?Vh.push({i:Np.push(u7(Np)+"skewX(",null,At)-2,x:DD(Mp,un)}):un&&Np.push(u7(Np)+"skewX("+un+At)}
function dm(Mp,un,Np,Vh,rh,x5){Mp!==Np||un!==Vh?(rh=rh.push(u7(rh)+"scale(",null,",",null,")"),x5.push({i:rh-4,x:DD(Mp,Np)},{i:rh-2,x:DD(un,Vh)})):Np===1&&Vh===1||rh.push(u7(rh)+"scale("+Np+","+Vh+")")}
return function(Mp,un){var Np=[],Vh=[];Mp=t(Mp);un=t(un);sM(Mp.translateX,Mp.translateY,un.translateX,un.translateY,Np,Vh);EM(Mp.rotate,un.rotate,Np,Vh);tt(Mp.skewX,un.skewX,Np,Vh);dm(Mp.scaleX,Mp.scaleY,un.scaleX,un.scaleY,Np,Vh);Mp=un=null;return function(rh){for(var x5=-1,ID=Vh.length,rY;++x5<ID;)Np[(rY=Vh[x5]).i]=rY.x(rh);return Np.join("")}}}
function LU(t){return function(x,l){var At=t((x=UW(x)).h,(l=UW(l)).h),u7=U4(x.s,l.s),sM=U4(x.l,l.l),EM=U4(x.opacity,l.opacity);return function(tt){x.h=At(tt);x.s=u7(tt);x.l=sM(tt);x.opacity=EM(tt);return x+""}}}
function pe(t){return function(x,l){var At=t((x=zy(x)).h,(l=zy(l)).h),u7=U4(x.c,l.c),sM=U4(x.l,l.l),EM=U4(x.opacity,l.opacity);return function(tt){x.h=At(tt);x.c=u7(tt);x.l=sM(tt);x.opacity=EM(tt);return x+""}}}
function YC(t){return function At(l){function u7(sM,EM){var tt=t((sM=Ez(sM)).h,(EM=Ez(EM)).h),dm=U4(sM.s,EM.s),Mp=U4(sM.l,EM.l),un=U4(sM.opacity,EM.opacity);return function(Np){sM.h=tt(Np);sM.s=dm(Np);sM.l=Mp(Math.pow(Np,l));sM.opacity=un(Np);return sM+""}}
l=+l;u7.gamma=At;return u7}(1)}
function qG(){return de||(L$K(k6),de=Lc.now()+FU0)}
function k6(){de=0}
function Go(){this._call=this._time=this._next=null}
function qb(t,x,l){var At=new Go;At.restart(t,x,l);return At}
function hJ(){de=(PM0=Lc.now())+FU0;aO=RB=0;try{qG();++aO;for(var t=s1K,x;t;)(x=de-t._time)>=0&&t._call.call(null,x),t=t._next;--aO}finally{aO=0;t=s1K;for(var l=Infinity;t;)if(t._call){l>t._time&&(l=t._time);var At=t;t=t._next}else x=t._next,t._next=null,t=At?At._next=x:s1K=x;EJ=At;kh(l);de=0}}
function OD(){var t=Lc.now(),x=t-PM0;x>1E3&&(FU0-=x,PM0=t)}
function kh(t){aO||(RB&&(RB=clearTimeout(RB)),t-de>24?(t<Infinity&&(RB=setTimeout(hJ,t-Lc.now()-FU0)),ma&&(ma=clearInterval(ma))):(ma||(PM0=Lc.now(),ma=setInterval(OD,1E3)),aO=1,L$K(hJ)))}
function vb(t,x,l){var At=new Go;x=x==null?0:+x;At.restart(function(u7){At.stop();t(u7+x)},x,l);
return At}
function Hr(t,x,l,At,u7,sM){var EM=t.__transition;if(!EM)t.__transition={};else if(l in EM)return;XI(t,l,{name:x,index:At,group:u7,on:I8p,tween:Qjj,time:sM.time,delay:sM.delay,duration:sM.duration,ease:sM.ease,timer:null,state:0})}
function dh(t,x){t=Vp(t,x);if(t.state>0)throw Error("Ae");return t}
function gh(t,x){t=Vp(t,x);if(t.state>2)throw Error("Be");return t}
function Vp(t,x){t=t.__transition;if(!t||!(t=t[x]))throw Error("Ce");return t}
function XI(t,x,l){function At(dm){var Mp,un;if(l.state!==1)return sM();for(Vh in EM){var Np=EM[Vh];if(Np.name===l.name){if(Np.state===3)return vb(At);Np.state===4?(Np.state=6,Np.timer.stop(),Np.on.call("interrupt",t,t.__data__,Np.index,Np.group),delete EM[Vh]):+Vh<x&&(Np.state=6,Np.timer.stop(),delete EM[Vh])}}vb(function(){l.state===3&&(l.state=4,l.timer.restart(u7,l.delay,l.time),u7(dm))});
l.state=2;l.on.call("start",t,t.__data__,l.index,l.group);if(l.state===2){l.state=3;tt=Array(un=l.tween.length);var Vh=0;for(Mp=-1;Vh<un;++Vh)if(Np=l.tween[Vh].value.call(t,t.__data__,l.index,l.group))tt[++Mp]=Np;tt.length=Mp+1}}
function u7(dm){dm=dm<l.duration?l.ease.call(null,dm/l.duration):(l.timer.restart(sM),l.state=5,1);for(var Mp=-1,un=tt.length;++Mp<un;)tt[Mp].call(null,dm);l.state===5&&(l.on.call("end",t,t.__data__,l.index,l.group),sM())}
function sM(){l.state=6;l.timer.stop();delete EM[x];for(var dm in EM)return;delete t.__transition}
var EM=t.__transition,tt;EM[x]=l;l.timer=qb(function(dm){l.state=1;l.timer.restart(At,l.delay,l.time);l.delay<=dm&&At(dm-l.delay)},0,l.time)}
function UA(t,x){var l,At;return function(){var u7=gh(this,t),sM=u7.tween;if(sM!==l){At=l=sM;sM=0;for(var EM=At.length;sM<EM;++sM)if(At[sM].name===x){At=At.slice();At.splice(sM,1);break}}u7.tween=At}}
function HJ(t,x,l){var At,u7;if(typeof l!=="function")throw Error();return function(){var sM=gh(this,t),EM=sM.tween;if(EM!==At){u7=(At=EM).slice();EM={name:x,value:l};for(var tt=0,dm=u7.length;tt<dm;++tt)if(u7[tt].name===x){u7[tt]=EM;break}tt===dm&&u7.push(EM)}sM.tween=u7}}
function D$(t,x,l){var At=t._id;t.each(function(){var u7=gh(this,At);(u7.value||(u7.value={}))[x]=l.apply(this,arguments)});
return function(u7){return Vp(u7,At).value[x]}}
function Oh(t,x){var l;return(typeof x==="number"?DD:x instanceof ew?RtB:(l=ew(x))?(x=l,RtB):nv)(t,x)}
function gr(t){return function(){this.removeAttribute(t)}}
function nX_(t){return function(){this.removeAttributeNS(t.space,t.local)}}
function aB(t,x,l){var At,u7;return function(){var sM=this.getAttribute(t);return sM===l?null:sM===At?u7:u7=x(At=sM,l)}}
function x_(t,x,l){var At,u7;return function(){var sM=this.getAttributeNS(t.space,t.local);return sM===l?null:sM===At?u7:u7=x(At=sM,l)}}
function Nu_(t,x,l){var At,u7,sM;return function(){var EM=l(this);if(EM==null)return void this.removeAttribute(t);var tt=this.getAttribute(t);return tt===EM?null:tt===At&&EM===u7?sM:sM=x(At=tt,u7=EM)}}
function VL5(t,x,l){var At,u7,sM;return function(){var EM=l(this);if(EM==null)return void this.removeAttributeNS(t.space,t.local);var tt=this.getAttributeNS(t.space,t.local);return tt===EM?null:tt===At&&EM===u7?sM:sM=x(At=tt,u7=EM)}}
function HQ$(t,x){function l(){var At=this,u7=x.apply(At,arguments);return u7&&function(sM){At.setAttributeNS(t.space,t.local,u7(sM))}}
l._value=x;return l}
function Ukh(t,x){function l(){var At=this,u7=x.apply(At,arguments);return u7&&function(sM){At.setAttribute(t,u7(sM))}}
l._value=x;return l}
function A_h(t,x){return function(){dh(this,t).delay=+x.apply(this,arguments)}}
function M8$(t,x){return x=+x,function(){dh(this,t).delay=x}}
function Whj(t,x){return function(){gh(this,t).duration=+x.apply(this,arguments)}}
function wBm(t,x){return x=+x,function(){gh(this,t).duration=x}}
function XB$(t,x){if(typeof x!=="function")throw Error();return function(){gh(this,t).ease=x}}
function iQf(t){return(t+"").trim().split(/^|\s+/).every(function(x){var l=x.indexOf(".");l>=0&&(x=x.slice(0,l));return!x||x==="start"})}
function bQX(t,x,l){var At,u7,sM=iQf(x)?dh:gh;return function(){var EM=sM(this,t),tt=EM.on;if(tt!==At)(u7=(At=tt).copy()).on(x,l);EM.on=u7}}
function dk8(t){return function(){var x=this.parentNode,l;for(l in this.__transition)if(+l!==t)return;x&&x.removeChild(this)}}
function OQY(t,x){var l,At,u7;return function(){var sM=o_(this,t),EM=(this.style.removeProperty(t),o_(this,t));return sM===EM?null:sM===l&&EM===At?u7:u7=x(l=sM,At=EM)}}
function uuy(t){return function(){this.style.removeProperty(t)}}
function ZQ8(t,x,l){var At,u7;return function(){var sM=o_(this,t);return sM===l?null:sM===At?u7:u7=x(At=sM,l)}}
function fC$(t,x,l){var At,u7,sM;return function(){var EM=o_(this,t),tt=l(this);tt==null&&(tt=(this.style.removeProperty(t),o_(this,t)));return EM===tt?null:EM===At&&tt===u7?sM:sM=x(At=EM,u7=tt)}}
function J_f(t,x,l){function At(){var u7=this,sM=x.apply(u7,arguments);return sM&&function(EM){u7.style.setProperty(t,sM(EM),l)}}
At._value=x;return At}
function Khf(t){return function(){this.textContent=t}}
function oxh(t){return function(){var x=t(this);this.textContent=x==null?"":x}}
function Tm(t,x,l,At){this._groups=t;this._parents=x;this._name=l;this._id=At}
function xMN(t){return{type:t}}
function znh(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function SDV(){}
function EbK(t,x){var l=new SDV;if(t instanceof SDV)t.each(function(EM,tt){l.set(tt,EM)});
else if(Array.isArray(t)){var At=-1,u7=t.length,sM;if(x==null)for(;++At<u7;)l.set(At,t[At]);else for(;++At<u7;)l.set(x(sM=t[At],At,t),sM)}else if(t)for(At in t)l.set(At,t[At]);return l}
function p1r(){}
function mxh(t){return function(x){for(var l={},At=0;At<t.length;At++)l[t[At]]=x[At]||"";return l}}
function FhX(t,x){var l=mxh(t);return function(At,u7){return x(l(At),u7,t)}}
function PkY(t){var x=Object.create(null),l=[];t.forEach(function(At){for(var u7 in At)u7 in x||l.push(x[u7]=u7)});
return l}
function gbw(t){function x(EM,tt){function dm(){if(x5)return CQ_;if(ID)return ID=!1,auw;var J9,bB=Np,x2;if(EM.charCodeAt(bB)===34){for(;Np++<un&&EM.charCodeAt(Np)!==34||EM.charCodeAt(++Np)===34;);(J9=Np)>=un?x5=!0:(x2=EM.charCodeAt(Np++))===10?ID=!0:x2===13&&(ID=!0,EM.charCodeAt(Np)===10&&++Np);return EM.slice(bB+1,J9-1).replace(/""/g,'"')}for(;Np<un;){if((x2=EM.charCodeAt(J9=Np++))===10)ID=!0;else if(x2===13)ID=!0,EM.charCodeAt(Np)===10&&++Np;else if(x2!==sM)continue;return EM.slice(bB,J9)}return x5=
!0,EM.slice(bB,un)}
var Mp=[],un=EM.length,Np=0,Vh=0,rh,x5=un<=0,ID=!1;EM.charCodeAt(un-1)===10&&--un;for(EM.charCodeAt(un-1)===13&&--un;(rh=dm())!==CQ_;){for(var rY=[];rh!==auw&&rh!==CQ_;)rY.push(rh),rh=dm();tt&&(rY=tt(rY,Vh++))==null||Mp.push(rY)}return Mp}
function l(EM){return EM.map(At).join(t)}
function At(EM){return EM==null?"":u7.test(EM)?'"'+EM.replace(/"/g,'""')+'"':EM}
var u7=new RegExp('["'+t+"\n\r]"),sM=t.charCodeAt(0);return{parse:function(EM,tt){var dm,Mp;EM=x(EM,function(un,Np){if(dm)return dm(un,Np-1);Mp=un;dm=tt?FhX(un,tt):mxh(un)});
EM.columns=Mp||[];return EM},
parseRows:x,format:function(EM,tt){tt==null&&(tt=PkY(EM));return[tt.map(At).join(t)].concat(EM.map(function(dm){return tt.map(function(Mp){return At(dm[Mp])}).join(t)})).join("\n")},
formatRows:function(EM){return EM.map(l).join("\n")}}}
function sGB(t){if(!t.ok)throw Error("De`"+t.status+"`"+t.statusText);return t.text()}
function xxh(t){return function(x,l,At){arguments.length===2&&typeof l==="function"&&(At=l,l=void 0);return fetch(x,l).then(sGB).then(function(u7){return t(u7,At)})}}
function ztn(t,x,l,At){if(isNaN(x)||isNaN(l))return t;var u7,sM=t._root;At={data:At};var EM=t._x0,tt=t._y0,dm=t._x1,Mp=t._y1,un,Np,Vh,rh,x5;if(!sM)return t._root=At,t;for(;sM.length;)if((Vh=x>=(un=(EM+dm)/2))?EM=un:dm=un,(rh=l>=(Np=(tt+Mp)/2))?tt=Np:Mp=Np,u7=sM,!(sM=sM[x5=rh<<1|Vh]))return u7[x5]=At,t;var ID=+t._x.call(null,sM.data);var rY=+t._y.call(null,sM.data);if(x===ID&&l===rY)return At.next=sM,u7?u7[x5]=At:t._root=At,t;do u7=u7?u7[x5]=Array(4):t._root=Array(4),(Vh=x>=(un=(EM+dm)/2))?EM=un:dm=
un,(rh=l>=(Np=(tt+Mp)/2))?tt=Np:Mp=Np;while((x5=rh<<1|Vh)===(Vh=(rY>=Np)<<1|ID>=un));return u7[Vh]=sM,u7[x5]=At,t}
function Xp(t,x,l,At,u7){this.node=t;this.x0=x;this.y0=l;this.x1=At;this.y1=u7}
function nxX(t){return t[0]}
function NoY(t){return t[1]}
function tA_(t,x,l,At,u7,sM){this._x=t;this._y=x;this._x0=l;this._y0=At;this._x1=u7;this._y1=sM;this._root=void 0}
function Cf3(t){for(var x={data:t.data},l=x;t=t.next;)l=l.next={data:t.data};return x}
function LUK(t,x){if((x=(t=x?t.toExponential(x-1):t.toExponential()).indexOf("e"))<0)return null;var l=t.slice(0,x);return[l.length>1?l[0]+l.slice(2):l,+t.slice(x+1)]}
function Sq5(t){return t=LUK(Math.abs(t)),t?t[1]:NaN}
function pBm(t,x){return function(l,At){for(var u7=l.length,sM=[],EM=0,tt=t[0],dm=0;u7>0&&tt>0;){dm+tt+1>At&&(tt=Math.max(1,At-dm));sM.push(l.substring(u7-=tt,u7+tt));if((dm+=tt+1)>At)break;tt=t[EM=(EM+1)%t.length]}return sM.reverse().join(x)}}
function Lh8(t){return function(x){return x.replace(/[0-9]/g,function(l){return t[+l]})}}
function c1_(t){return new y1E(t)}
function y1E(t){if(!(x=Rh5.exec(t)))throw Error("Ee`"+t);var x;this.fill=x[1]||" ";this.align=x[2]||">";this.sign=x[3]||"-";this.symbol=x[4]||"";this.zero=!!x[5];this.width=x[6]&&+x[6];this.comma=!!x[7];this.precision=x[8]&&+x[8].slice(1);this.trim=!!x[9];this.type=x[10]||""}
function tor(t,x){x=LUK(t,x);if(!x)return t+"";t=x[0];x=x[1];return x<0?"0."+Array(-x).join("0")+t:t.length>x+1?t.slice(0,x+1)+"."+t.slice(x+1):t+Array(x-t.length+2).join("0")}
function ce2(t){return t}
function ExB(t){function x(tt){function dm(WI){var aQ=x2,Hy=Ky,LN,JR;if(bB==="c")Hy=dP(WI)+Hy,WI="";else{WI=+WI;var e7=WI<0;WI=dP(Math.abs(WI),rY);if(J9){var ix=WI.length,Uo=1,K5=-1;a:for(;Uo<ix;++Uo)switch(WI[Uo]){case ".":K5=LN=Uo;break;case "0":K5===0&&(K5=Uo);LN=Uo;break;default:if(!+WI[Uo])break a;K5>0&&(K5=0)}WI=K5>0?WI.slice(0,K5)+WI.slice(LN+1):WI}e7&&+WI===0&&(e7=!1);aQ=(e7?Np==="("?Np:"-":Np==="-"||Np==="("?"":Np)+aQ;Hy=(bB==="s"?yeH[8+Bxw/3]:"")+Hy+(e7&&Np==="("?")":"");if(mP)for(e7=-1,
LN=WI.length;++e7<LN;)if(JR=WI.charCodeAt(e7),48>JR||JR>57){Hy=(JR===46?u7+WI.slice(e7+1):WI.slice(e7))+Hy;WI=WI.slice(0,e7);break}}ID&&!rh&&(WI=l(WI,Infinity));JR=aQ.length+WI.length+Hy.length;e7=JR<x5?Array(x5-JR+1).join(Mp):"";ID&&rh&&(WI=l(e7+WI,e7.length?x5-Hy.length:Infinity),e7="");switch(un){case "<":WI=aQ+WI+Hy+e7;break;case "=":WI=aQ+e7+WI+Hy;break;case "^":WI=e7.slice(0,JR=e7.length>>1)+aQ+WI+Hy+e7.slice(JR);break;default:WI=e7+aQ+WI+Hy}return sM(WI)}
tt=c1_(tt);var Mp=tt.fill,un=tt.align,Np=tt.sign,Vh=tt.symbol,rh=tt.zero,x5=tt.width,ID=tt.comma,rY=tt.precision,J9=tt.trim,bB=tt.type;bB==="n"?(ID=!0,bB="g"):rew[bB]||(rY==null&&(rY=12),J9=!0,bB="g");if(rh||Mp==="0"&&un==="=")rh=!0,Mp="0",un="=";var x2=Vh==="$"?At[0]:Vh==="#"&&/[boxX]/.test(bB)?"0"+bB.toLowerCase():"",Ky=Vh==="$"?At[1]:/[%p]/.test(bB)?EM:"",dP=rew[bB],mP=/[defgprs%]/.test(bB);rY=rY==null?6:/[gprs]/.test(bB)?Math.max(1,Math.min(21,rY)):Math.max(0,Math.min(20,rY));dm.toString=function(){return tt+
""};
return dm}
var l=t.grouping&&t.thousands?pBm(t.grouping,t.thousands):ce2,At=t.currency,u7=t.decimal,sM=t.numerals?Lh8(t.numerals):ce2,EM=t.percent||"%";return{format:x,formatPrefix:function(tt,dm){var Mp=x((tt=c1_(tt),tt.type="f",tt));tt=Math.max(-8,Math.min(8,Math.floor(Sq5(dm)/3)))*3;var un=Math.pow(10,-tt),Np=yeH[8+tt/3];return function(Vh){return Mp(un*Vh)+Np}}}}
function uo(){this.reset()}
function etK(t,x,l){var At=t.s=x+l,u7=At-x;t.t=x-(At-u7)+(l-u7)}
function RTE(t){return t>1?Z9:t<-1?-Z9:Math.asin(t)}
function mkh(){}
function Dxw(t){var x=t[0];t=t[1];var l=fY(t);return[l*fY(x),l*$U(x),$U(t)]}
function $xB(t,x){return[t[1]*x[2]-t[2]*x[1],t[2]*x[0]-t[0]*x[2],t[0]*x[1]-t[1]*x[0]]}
function lu3(t){var x=EXE(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=x;t[1]/=x;t[2]/=x}
function gx8(){var t=[],x;return{point:function(l,At){x.push([l,At])},
lineStart:function(){t.push(x=[])},
lineEnd:mkh,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},
result:function(){var l=t;t=[];x=null;return l}}}
function maN(t,x,l,At){this.x=t;this.z=x;this.o=l;this.e=At;this.v=!1;this.n=this.p=null}
function aCp(t,x,l,At,u7){var sM=[],EM=[];t.forEach(function(Np){if(!((Vh=Np.length-1)<=0)){var Vh,rh=Np[0],x5=Np[Vh],ID=rh;if(j4(ID[0]-x5[0])<1E-6&&j4(ID[1]-x5[1])<1E-6){u7.lineStart();for(tt=0;tt<Vh;++tt)u7.point((rh=Np[tt])[0],rh[1]);u7.lineEnd()}else sM.push(Vh=new maN(rh,Np,null,!0)),EM.push(Vh.o=new maN(rh,null,Vh,!1)),sM.push(Vh=new maN(x5,Np,null,!1)),EM.push(Vh.o=new maN(x5,null,Vh,!0))}});
if(sM.length){EM.sort(x);G4w(sM);G4w(EM);var tt=0;for(t=EM.length;tt<t;++tt)EM[tt].e=l=!l;l=sM[0];for(var dm;;){for(var Mp=l,un=!0;Mp.v;)if((Mp=Mp.n)===l)return;x=Mp.z;u7.lineStart();do{Mp.v=Mp.o.v=!0;if(Mp.e){if(un)for(tt=0,t=x.length;tt<t;++tt)u7.point((dm=x[tt])[0],dm[1]);else At(Mp.x,Mp.n.x,1,u7);Mp=Mp.n}else{if(un)for(x=Mp.p.z,tt=x.length-1;tt>=0;--tt)u7.point((dm=x[tt])[0],dm[1]);else At(Mp.x,Mp.p.x,-1,u7);Mp=Mp.p}Mp=Mp.o;x=Mp.z;un=!un}while(!Mp.v);u7.lineEnd()}}}
function G4w(t){if(x=t.length){for(var x,l=0,At=t[0],u7;++l<x;)At.n=u7=t[l],u7.p=At,At=u7;At.n=u7=t[0];u7.p=At}}
function xk8(t){return t.length>1}
function zhB(t,x){return((t=t.x)[0]<0?t[1]-Z9-1E-6:Z9-t[1])-((x=x.x)[0]<0?x[1]-Z9-1E-6:Z9-x[1])}
function BFh(){}
function YNr(t){return function(x,l){var At=fY(x),u7=fY(l);At=t(At*u7);return[At*u7*$U(x),At*$U(l)]}}
function zd(t){return function(x,l){var At=EXE(x*x+l*l),u7=t(At),sM=$U(u7);u7=fY(u7);return[qNr(x*sM,At*u7),RTE(At&&l*sM/At)]}}
function Ckm(t){var x=0,l=t.children,At=l&&l.length;if(At)for(;--At>=0;)x+=l[At].value;else x=1;t.value=x}
function htH(t,x){var l=new Cc(t);t=+t.value&&(l.value=t.value);var At,u7=[l],sM,EM,tt,dm;for(x==null&&(x=t8h);At=u7.pop();)if(t&&(At.value=+At.data.value),(EM=x(At.data))&&(dm=EM.length))for(At.children=Array(dm),tt=dm-1;tt>=0;--tt)u7.push(sM=At.children[tt]=new Cc(EM[tt])),sM.parent=At,sM.depth=At.depth+1;return l.eachBefore(c_j)}
function t8h(t){return t.children}
function y_h(t){t.data=t.data.data}
function c_j(t){var x=0;do t.height=x;while((t=t.parent)&&t.height<++x)}
function Cc(t){this.data=t;this.depth=this.height=0;this.parent=null}
function zP(t,x,l,At){function u7(sM){return t(sM=new Date(+sM)),sM}
u7.floor=u7;u7.ceil=function(sM){return t(sM=new Date(sM-1)),x(sM,1),t(sM),sM};
u7.round=function(sM){var EM=u7(sM),tt=u7.ceil(sM);return sM-EM<tt-sM?EM:tt};
u7.offset=function(sM,EM){return x(sM=new Date(+sM),EM==null?1:Math.floor(EM)),sM};
u7.range=function(sM,EM,tt){var dm=[],Mp;sM=u7.ceil(sM);tt=tt==null?1:Math.floor(tt);if(!(sM<EM&&tt>0))return dm;do dm.push(Mp=new Date(+sM)),x(sM,tt),t(sM);while(Mp<sM&&sM<EM);return dm};
u7.filter=function(sM){return zP(function(EM){if(EM>=EM)for(;t(EM),!sM(EM);)EM.setTime(EM-1)},function(EM,tt){if(EM>=EM)if(tt<0)for(;++tt<=0;)for(;x(EM,-1),!sM(EM););
else for(;--tt>=0;)for(;x(EM,1),!sM(EM););})};
l&&(u7.count=function(sM,EM){r1K.setTime(+sM);ent.setTime(+EM);t(r1K);t(ent);return Math.floor(l(r1K,ent))},u7.every=function(sM){sM=Math.floor(sM);
return isFinite(sM)&&sM>0?sM>1?u7.filter(At?function(EM){return At(EM)%sM===0}:function(EM){return u7.count(0,EM)%sM===0}):u7:null});
return u7}
function Os(t){return zP(function(x){x.setDate(x.getDate()-(x.getDay()+7-t)%7);x.setHours(0,0,0,0)},function(x,l){x.setDate(x.getDate()+l*7)},function(x,l){return(l-x-(l.getTimezoneOffset()-x.getTimezoneOffset())*6E4)/6048E5})}
function uy(t){return zP(function(x){x.setUTCDate(x.getUTCDate()-(x.getUTCDay()+7-t)%7);x.setUTCHours(0,0,0,0)},function(x,l){x.setUTCDate(x.getUTCDate()+l*7)},function(x,l){return(l-x)/6048E5})}
function Bo8(t){if(0<=t.y&&t.y<100){var x=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);x.setFullYear(t.y);return x}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}
function gXN(t){if(0<=t.y&&t.y<100){var x=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));x.setUTCFullYear(t.y);return x}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}
function t2(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}
function r_p(t){function x(Hy,LN){return function(JR){var e7=[],ix=-1,Uo=0,K5=Hy.length,ah,hO;for(JR instanceof Date||(JR=new Date(+JR));++ix<K5;)if(Hy.charCodeAt(ix)===37){e7.push(Hy.slice(Uo,ix));(Uo=k4K[ah=Hy.charAt(++ix)])!=null?ah=Hy.charAt(++ix):Uo=ah==="e"?" ":"0";if(hO=LN[ah])ah=hO(JR,Uo);e7.push(ah);Uo=ix+1}e7.push(Hy.slice(Uo,ix));return e7.join("")}}
function l(Hy,LN){return function(JR){var e7=t2(1900);if(At(e7,Hy,JR,0)!=JR.length)return null;if("Q"in e7)return new Date(e7.Q);"p"in e7&&(e7.H=e7.H%12+e7.p*12);if("V"in e7){if(e7.V<1||e7.V>53)return null;"w"in e7||(e7.w=1);if("Z"in e7){JR=gXN(t2(e7.y));var ix=JR.getUTCDay();JR=ix>4||ix===0?DMK.ceil(JR):DMK(JR);JR=vbH.offset(JR,(e7.V-1)*7);e7.y=JR.getUTCFullYear();e7.m=JR.getUTCMonth();e7.d=JR.getUTCDate()+(e7.w+6)%7}else JR=LN(t2(e7.y)),ix=JR.getDay(),JR=ix>4||ix===0?$M8.ceil(JR):$M8(JR),JR=Txk.offset(JR,
(e7.V-1)*7),e7.y=JR.getFullYear(),e7.m=JR.getMonth(),e7.d=JR.getDate()+(e7.w+6)%7}else if("W"in e7||"U"in e7)"w"in e7||(e7.w="u"in e7?e7.u%7:"W"in e7?1:0),ix="Z"in e7?gXN(t2(e7.y)).getUTCDay():LN(t2(e7.y)).getDay(),e7.m=0,e7.d="W"in e7?(e7.w+6)%7+e7.W*7-(ix+5)%7:e7.w+e7.U*7-(ix+6)%7;return"Z"in e7?(e7.H+=e7.Z/100|0,e7.M+=e7.Z%100,gXN(e7)):LN(e7)}}
function At(Hy,LN,JR,e7){for(var ix=0,Uo=LN.length,K5=JR.length,ah;ix<Uo;){if(e7>=K5)return-1;ah=LN.charCodeAt(ix++);if(ah===37){if(ah=LN.charAt(ix++),ah=aQ[ah in k4K?LN.charAt(ix++):ah],!ah||(e7=ah(Hy,JR,e7))<0)return-1}else if(ah!=JR.charCodeAt(e7++))return-1}return e7}
var u7=t.dateTime,sM=t.date,EM=t.time,tt=t.periods,dm=t.days,Mp=t.shortDays,un=t.months,Np=t.shortMonths,Vh=c7(tt),rh=y6(tt),x5=c7(dm),ID=y6(dm),rY=c7(Mp),J9=y6(Mp),bB=c7(un),x2=y6(un),Ky=c7(Np),dP=y6(Np),mP={a:function(Hy){return Mp[Hy.getDay()]},
A:function(Hy){return dm[Hy.getDay()]},
b:function(Hy){return Np[Hy.getMonth()]},
B:function(Hy){return un[Hy.getMonth()]},
c:null,d:jpH,e:jpH,f:ehX,H:Dkj,I:$ky,j:lC7,L:Iuy,m:GH8,M:Yqp,p:function(Hy){return tt[+(Hy.getHours()>=12)]},
Q:Qpw,s:Vow,S:qqj,u:hhy,U:kHh,V:vxm,w:ToB,W:jGj,x:null,X:null,y:ICh,Y:QGj,Z:V85,"%":HjH},WI={a:function(Hy){return Mp[Hy.getUTCDay()]},
A:function(Hy){return dm[Hy.getUTCDay()]},
b:function(Hy){return Np[Hy.getUTCMonth()]},
B:function(Hy){return un[Hy.getUTCMonth()]},
c:null,d:Udy,e:Udy,f:HXf,H:ULf,I:AKh,j:MiX,L:A6h,m:Wm5,M:wh7,p:function(Hy){return tt[+(Hy.getUTCHours()>=12)]},
Q:Qpw,s:Vow,S:Xh5,u:iX5,U:bX8,V:dLB,w:OXf,W:uDm,x:null,X:null,y:ZXh,Y:fG5,Z:JKp,"%":HjH},aQ={a:function(Hy,LN,JR){return(LN=rY.exec(LN.slice(JR)))?(Hy.w=J9[LN[0].toLowerCase()],JR+LN[0].length):-1},
A:function(Hy,LN,JR){return(LN=x5.exec(LN.slice(JR)))?(Hy.w=ID[LN[0].toLowerCase()],JR+LN[0].length):-1},
b:function(Hy,LN,JR){return(LN=Ky.exec(LN.slice(JR)))?(Hy.m=dP[LN[0].toLowerCase()],JR+LN[0].length):-1},
B:function(Hy,LN,JR){return(LN=bB.exec(LN.slice(JR)))?(Hy.m=x2[LN[0].toLowerCase()],JR+LN[0].length):-1},
c:function(Hy,LN,JR){return At(Hy,u7,LN,JR)},
d:ML2,e:ML2,f:Kmk,H:WIg,I:WIg,j:oom,L:Fm5,m:PyY,M:sZm,p:function(Hy,LN,JR){return(LN=Vh.exec(LN.slice(JR)))?(Hy.p=rh[LN[0].toLowerCase()],JR+LN[0].length):-1},
Q:noh,s:Nef,S:Ssj,u:ph8,U:Lm5,V:Rqf,w:EoX,W:mLf,x:function(Hy,LN,JR){return At(Hy,sM,LN,JR)},
X:function(Hy,LN,JR){return At(Hy,EM,LN,JR)},
y:goh,Y:aGk,Z:xL8,"%":zq$};mP.x=x(sM,mP);mP.X=x(EM,mP);mP.c=x(u7,mP);WI.x=x(sM,WI);WI.X=x(EM,WI);WI.c=x(u7,WI);return{format:function(Hy){var LN=x(Hy,mP);LN.toString=function(){return Hy};
return LN},
parse:function(Hy){var LN=l(Hy,Bo8);LN.toString=function(){return Hy};
return LN},
utcFormat:function(Hy){var LN=x(Hy,WI);LN.toString=function(){return Hy};
return LN},
utcParse:function(Hy){var LN=l(Hy,gXN);LN.toString=function(){return Hy};
return LN}}}
function yq(t,x,l){var At=t<0?"-":"";t=(At?-t:t)+"";var u7=t.length;return At+(u7<l?Array(l-u7+1).join(x)+t:t)}
function Cyj(t){return t.replace(ti5,"\\$&")}
function c7(t){return new RegExp("^(?:"+t.map(Cyj).join("|")+")","i")}
function y6(t){for(var x={},l=-1,At=t.length;++l<At;)x[t[l].toLowerCase()]=l;return x}
function EoX(t,x,l){return(x=zR.exec(x.slice(l,l+1)))?(t.w=+x[0],l+x[0].length):-1}
function ph8(t,x,l){return(x=zR.exec(x.slice(l,l+1)))?(t.u=+x[0],l+x[0].length):-1}
function Lm5(t,x,l){return(x=zR.exec(x.slice(l,l+2)))?(t.U=+x[0],l+x[0].length):-1}
function Rqf(t,x,l){return(x=zR.exec(x.slice(l,l+2)))?(t.V=+x[0],l+x[0].length):-1}
function mLf(t,x,l){return(x=zR.exec(x.slice(l,l+2)))?(t.W=+x[0],l+x[0].length):-1}
function aGk(t,x,l){return(x=zR.exec(x.slice(l,l+4)))?(t.y=+x[0],l+x[0].length):-1}
function goh(t,x,l){return(x=zR.exec(x.slice(l,l+2)))?(t.y=+x[0]+(+x[0]>68?1900:2E3),l+x[0].length):-1}
function xL8(t,x,l){return(x=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(x.slice(l,l+6)))?(t.Z=x[1]?0:-(x[2]+(x[3]||"00")),l+x[0].length):-1}
function PyY(t,x,l){return(x=zR.exec(x.slice(l,l+2)))?(t.m=x[0]-1,l+x[0].length):-1}
function ML2(t,x,l){return(x=zR.exec(x.slice(l,l+2)))?(t.d=+x[0],l+x[0].length):-1}
function oom(t,x,l){return(x=zR.exec(x.slice(l,l+3)))?(t.m=0,t.d=+x[0],l+x[0].length):-1}
function WIg(t,x,l){return(x=zR.exec(x.slice(l,l+2)))?(t.H=+x[0],l+x[0].length):-1}
function sZm(t,x,l){return(x=zR.exec(x.slice(l,l+2)))?(t.M=+x[0],l+x[0].length):-1}
function Ssj(t,x,l){return(x=zR.exec(x.slice(l,l+2)))?(t.S=+x[0],l+x[0].length):-1}
function Fm5(t,x,l){return(x=zR.exec(x.slice(l,l+3)))?(t.L=+x[0],l+x[0].length):-1}
function Kmk(t,x,l){return(x=zR.exec(x.slice(l,l+6)))?(t.L=Math.floor(x[0]/1E3),l+x[0].length):-1}
function zq$(t,x,l){return(t=cK5.exec(x.slice(l,l+1)))?l+t[0].length:-1}
function noh(t,x,l){return(x=zR.exec(x.slice(l)))?(t.Q=+x[0],l+x[0].length):-1}
function Nef(t,x,l){return(x=zR.exec(x.slice(l)))?(t.Q=+x[0]*1E3,l+x[0].length):-1}
function jpH(t,x){return yq(t.getDate(),x,2)}
function Dkj(t,x){return yq(t.getHours(),x,2)}
function $ky(t,x){return yq(t.getHours()%12||12,x,2)}
function lC7(t,x){return yq(1+Txk.count(xz(t),t),x,3)}
function Iuy(t,x){return yq(t.getMilliseconds(),x,3)}
function ehX(t,x){return Iuy(t,x)+"000"}
function GH8(t,x){return yq(t.getMonth()+1,x,2)}
function Yqp(t,x){return yq(t.getMinutes(),x,2)}
function qqj(t,x){return yq(t.getSeconds(),x,2)}
function hhy(t){t=t.getDay();return t===0?7:t}
function kHh(t,x){return yq(yKY.count(xz(t),t),x,2)}
function vxm(t,x){var l=t.getDay();t=l>=4||l===0?laV(t):laV.ceil(t);return yq(laV.count(xz(t),t)+(xz(t).getDay()===4),x,2)}
function ToB(t){return t.getDay()}
function jGj(t,x){return yq($M8.count(xz(t),t),x,2)}
function ICh(t,x){return yq(t.getFullYear()%100,x,2)}
function QGj(t,x){return yq(t.getFullYear()%1E4,x,4)}
function V85(t){t=t.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yq(t/60|0,"0",2)+yq(t%60,"0",2)}
function Udy(t,x){return yq(t.getUTCDate(),x,2)}
function ULf(t,x){return yq(t.getUTCHours(),x,2)}
function AKh(t,x){return yq(t.getUTCHours()%12||12,x,2)}
function MiX(t,x){return yq(1+vbH.count(zY(t),t),x,3)}
function A6h(t,x){return yq(t.getUTCMilliseconds(),x,3)}
function HXf(t,x){return A6h(t,x)+"000"}
function Wm5(t,x){return yq(t.getUTCMonth()+1,x,2)}
function wh7(t,x){return yq(t.getUTCMinutes(),x,2)}
function Xh5(t,x){return yq(t.getUTCSeconds(),x,2)}
function iX5(t){t=t.getUTCDay();return t===0?7:t}
function bX8(t,x){return yq(Be5.count(zY(t),t),x,2)}
function dLB(t,x){var l=t.getUTCDay();t=l>=4||l===0?G00(t):G00.ceil(t);return yq(G00.count(zY(t),t)+(zY(t).getUTCDay()===4),x,2)}
function OXf(t){return t.getUTCDay()}
function uDm(t,x){return yq(DMK.count(zY(t),t),x,2)}
function ZXh(t,x){return yq(t.getUTCFullYear()%100,x,2)}
function fG5(t,x){return yq(t.getUTCFullYear()%1E4,x,4)}
function JKp(){return"+0000"}
function HjH(){return"%"}
function Qpw(t){return+t}
function Vow(t){return Math.floor(+t/1E3)}
function Ss(t){for(var x=t.length/6|0,l=Array(x),At=0;At<x;)l[At]="#"+t.slice(At*6,++At*6);return l}
function bx(t){return rKh(t[t.length-1])}
function az_(t){var x=t.length;return function(l){return t[Math.max(0,Math.min(x-1,Math.floor(l*x)))]}}
function w6k(t){this._context=t}
function X6g(t){this._curve=t}
function ijy(t,x,l){var At=t._x1-t._x0;x-=t._x1;var u7=(t._y1-t._y0)/(At||x<0&&-0);t=(l-t._y1)/(x||At<0&&-0);return((u7<0?-1:1)+(t<0?-1:1))*Math.min(Math.abs(u7),Math.abs(t),.5*Math.abs((u7*x+t*At)/(At+x)))||0}
function bjm(t,x){var l=t._x1-t._x0;return l?(3*(t._y1-t._y0)/l-x)/2:x}
function YFN(t,x,l){var At=t._x0,u7=t._x1,sM=t._y1,EM=(u7-At)/3;t._context.bezierCurveTo(At+EM,t._y0+EM*x,u7-EM,sM-EM*l,u7,sM)}
function qFr(t){this._context=t}
function ddw(t){this._context=t}
function B7(t,x,l){this.k=t;this.x=x;this.y=l}
(function(t){t.length===1&&(t=U(t));return{left:function(x,l,At,u7){At==null&&(At=0);u7==null&&(u7=x.length);for(;At<u7;){var sM=At+u7>>>1;t(x[sM],l)<0?At=sM+1:u7=sM}return At},
right:function(x,l,At,u7){At==null&&(At=0);u7==null&&(u7=x.length);for(;At<u7;){var sM=At+u7>>>1;t(x[sM],l)>0?u7=sM:At=sM+1}return At}}})(H);
var eLh={value:function(){}};
M.prototype=A.prototype={constructor:M,on:function(t,x){var l=this._,At=W(t+"",l),u7,sM=-1,EM=At.length;if(arguments.length<2)for(;++sM<EM;){var tt;if(tt=u7=(t=At[sM]).type){a:{tt=l[u7];for(var dm=0,Mp=tt.length;dm<Mp;++dm)if((u7=tt[dm]).name===t.name){u7=u7.value;break a}u7=void 0}tt=u7}if(tt)return u7}else{if(x!=null&&typeof x!=="function")throw Error("Fe`"+x);for(;++sM<EM;)if(u7=(t=At[sM]).type)l[u7]=w(l[u7],t.name,x);else if(x==null)for(u7 in l)l[u7]=w(l[u7],t.name,null);return this}},
copy:function(){var t={},x=this._,l;for(l in x)t[l]=x[l].slice();return new M(t)},
call:function(t,x){if((u7=arguments.length-2)>0)for(var l=Array(u7),At=0,u7,sM;At<u7;++At)l[At]=arguments[At+2];if(!this._.hasOwnProperty(t))throw Error("ze`"+t);sM=this._[t];At=0;for(u7=sM.length;At<u7;++At)sM[At].value.apply(x,l)},
apply:function(t,x,l){if(!this._.hasOwnProperty(t))throw Error("ze`"+t);t=this._[t];for(var At=0,u7=t.length;At<u7;++At)t[At].value.apply(x,l)}};
var uX={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/"},OjH=function(t){return function(){return this.matches(t)}};
if(typeof document!=="undefined"){var rr=document.documentElement;if(!rr.matches){var eqk=rr.webkitMatchesSelector||rr.msMatchesSelector||rr.mozMatchesSelector||rr.oMatchesSelector;OjH=function(t){return function(){return eqk.call(this,t)}}}}var uWm=OjH;
N.prototype={constructor:N,appendChild:function(t){return this._parent.insertBefore(t,this._next)},
insertBefore:function(t,x){return this._parent.insertBefore(t,x)},
querySelector:function(t){return this._parent.querySelector(t)},
querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};
var obn={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(obn={mouseenter:"mouseover",mouseleave:"mouseout"}));var Dd5=[null];qp.prototype=kf.prototype={constructor:qp,select:function(t){typeof t!=="function"&&(t=P(t));for(var x=this._groups,l=x.length,At=Array(l),u7=0;u7<l;++u7)for(var sM=x[u7],EM=sM.length,tt=At[u7]=Array(EM),dm,Mp,un=0;un<EM;++un)(dm=sM[un])&&(Mp=t.call(dm,dm.__data__,un,sM))&&("__data__"in dm&&(Mp.__data__=dm.__data__),tt[un]=Mp);return new qp(At,
this._parents)},
filter:function(t){typeof t!=="function"&&(t=uWm(t));for(var x=this._groups,l=x.length,At=Array(l),u7=0;u7<l;++u7)for(var sM=x[u7],EM=sM.length,tt=At[u7]=[],dm,Mp=0;Mp<EM;++Mp)(dm=sM[Mp])&&t.call(dm,dm.__data__,Mp,sM)&&tt.push(dm);return new qp(At,this._parents)},
data:function(t,x){if(!t)return rh=Array(this.size()),Mp=-1,this.each(function(bB){rh[++Mp]=bB}),rh;
var l=x?z:m,At=this._parents,u7=this._groups;typeof t!=="function"&&(t=L(t));for(var sM=u7.length,EM=Array(sM),tt=Array(sM),dm=Array(sM),Mp=0;Mp<sM;++Mp){var un=At[Mp],Np=u7[Mp],Vh=Np.length,rh=t.call(un,un&&un.__data__,Mp,At),x5=rh.length,ID=tt[Mp]=Array(x5),rY=EM[Mp]=Array(x5);Vh=dm[Mp]=Array(Vh);l(un,Np,ID,rY,Vh,rh,x);Np=un=0;for(var J9;un<x5;++un)if(Vh=ID[un]){for(un>=Np&&(Np=un+1);!(J9=rY[Np])&&++Np<x5;);Vh._next=J9||null}}EM=new qp(EM,At);EM._enter=tt;EM._exit=dm;return EM},
enter:function(){return new qp(this._enter||this._groups.map(n),this._parents)},
exit:function(){return new qp(this._exit||this._groups.map(n),this._parents)},
merge:function(t){var x=this._groups;t=t._groups;for(var l=x.length,At=Math.min(l,t.length),u7=Array(l),sM=0;sM<At;++sM)for(var EM=x[sM],tt=t[sM],dm=EM.length,Mp=u7[sM]=Array(dm),un,Np=0;Np<dm;++Np)if(un=EM[Np]||tt[Np])Mp[Np]=un;for(;sM<l;++sM)u7[sM]=x[sM];return new qp(u7,this._parents)},
order:function(){for(var t=this._groups,x=-1,l=t.length;++x<l;)for(var At=t[x],u7=At.length-1,sM=At[u7],EM;--u7>=0;)if(EM=At[u7])sM&&sM!==EM.nextSibling&&sM.parentNode.insertBefore(EM,sM),sM=EM;return this},
sort:function(t){function x(Np,Vh){return Np&&Vh?t(Np.__data__,Vh.__data__):!Np-!Vh}
t||(t=c);for(var l=this._groups,At=l.length,u7=Array(At),sM=0;sM<At;++sM){for(var EM=l[sM],tt=EM.length,dm=u7[sM]=Array(tt),Mp,un=0;un<tt;++un)if(Mp=EM[un])dm[un]=Mp;dm.sort(x)}return(new qp(u7,this._parents)).order()},
call:function(){var t=arguments[0];arguments[0]=this;t.apply(null,arguments);return this},
nodes:function(){var t=Array(this.size()),x=-1;this.each(function(){t[++x]=this});
return t},
node:function(){for(var t=this._groups,x=0,l=t.length;x<l;++x)for(var At=t[x],u7=0,sM=At.length;u7<sM;++u7){var EM=At[u7];if(EM)return EM}return null},
size:function(){var t=0;this.each(function(){++t});
return t},
empty:function(){return!this.node()},
each:function(t){for(var x=this._groups,l=0,At=x.length;l<At;++l)for(var u7=x[l],sM=0,EM=u7.length,tt;sM<EM;++sM)(tt=u7[sM])&&t.call(tt,tt.__data__,sM,u7);return this},
attr:function(t,x){var l=d(t);if(arguments.length<2){var At=this.node();return l.local?At.getAttributeNS(l.space,l.local):At.getAttribute(l)}return this.each((x==null?l.local?v:C:typeof x==="function"?l.local?T:h:l.local?D:Y)(l,x))},
style:function(t,x,l){return arguments.length>1?this.each((x==null?WF:typeof x==="function"?SN:dK)(t,x,l==null?"":l)):o_(this.node(),t)},
property:function(t,x){return arguments.length>1?this.each((x==null?PF:typeof x==="function"?kc:BF)(t,x)):this.node()[t]},
text:function(t){return arguments.length?this.each(t==null?G8:(typeof t==="function"?Z3:Pr)(t)):this.node().textContent},
html:function(t){return arguments.length?this.each(t==null?Yc:(typeof t==="function"?Ry:sz)(t)):this.node().innerHTML},
append:function(t){var x=typeof t==="function"?t:J(t);return this.select(function(){return this.appendChild(x.apply(this,arguments))})},
insert:function(t,x){var l=typeof t==="function"?t:J(t),At=x==null?oy:typeof x==="function"?x:P(x);return this.select(function(){return this.insertBefore(l.apply(this,arguments),At.apply(this,arguments)||null)})},
remove:function(){return this.each(aY)},
clone:function(t){return this.select(t?Kh:im)},
datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},
on:function(t,x,l){var At=T2(t+""),u7=At.length,sM;if(arguments.length<2){var EM=this.node().__on;if(EM)for(var tt=0,dm=EM.length,Mp;tt<dm;++tt){var un=0;for(Mp=EM[tt];un<u7;++un)if((sM=At[un]).type===Mp.type&&sM.name===Mp.name)return Mp.value}}else{EM=x?Hj:xK;l==null&&(l=!1);for(un=0;un<u7;++un)this.each(EM(At[un],x,l));return this}},
dispatch:function(t,x){return this.each((typeof x==="function"?oY:Qh)(t,x))}};
var $df=0;Oz.prototype=function(){return new Oz}.prototype={constructor:Oz,
get:function(t){for(var x=this._;!(x in t);)if(!(t=t.parentNode))return;return t[x]},
set:function(t,x){return t[this._]=x},
remove:function(t){return this._ in t&&delete t[this._]},
toString:function(){return this._}};
var Cr=1/.7,l88=/^#([0-9a-f]{3})$/,GtX=/^#([0-9a-f]{6})$/,Yd$=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),qdY=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),hLj=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),kt7=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*\\)$"),
vN8=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),TU7=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*\\)$"),F$n={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};
Fh(kK,ew,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Fh(Qp,K8,Kk(kK,{brighter:function(t){t=t==null?Cr:Math.pow(Cr,t);return new Qp(this.r*t,this.g*t,this.b*t,this.opacity)},
darker:function(t){t=t==null?.7:Math.pow(.7,t);return new Qp(this.r*t,this.g*t,this.b*t,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"#"+uv(this.r)+uv(this.g)+uv(this.b)},
toString:function(){var t=this.opacity;t=isNaN(t)?1:Math.max(0,Math.min(1,t));return(t===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))+(t===1?")":", "+t+")")}}));
Fh(pW,UW,Kk(kK,{brighter:function(t){t=t==null?Cr:Math.pow(Cr,t);return new pW(this.h,this.s,this.l*t,this.opacity)},
darker:function(t){t=t==null?.7:Math.pow(.7,t);return new pW(this.h,this.s,this.l*t,this.opacity)},
rgb:function(){var t=this.h%360+(this.h<0)*360,x=this.l,l=x+(x<.5?x:1-x)*(isNaN(t)||isNaN(this.s)?0:this.s);x=2*x-l;return new Qp(pU(t>=240?t-240:t+120,x,l),pU(t,x,l),pU(t<120?t+240:t-120,x,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 PfK=Math.PI/180,Nxn=180/Math.PI,nbn=4/29,gl=6/29,spw=3*gl*gl,jjm=gl*gl*gl;Fh(gK,function(t,x,l,At){return arguments.length===1?mF(t):new gK(t,x,l,At==null?1:At)},Kk(kK,{brighter:function(t){return new gK(this.l+18*(t==null?1:t),this.a,this.b,this.opacity)},
darker:function(t){return new gK(this.l-18*(t==null?1:t),this.a,this.b,this.opacity)},
rgb:function(){var t=(this.l+16)/116,x=isNaN(this.a)?t:t+this.a/500,l=isNaN(this.b)?t:t-this.b/200;x=.96422*T8(x);t=1*T8(t);l=.82521*T8(l);return new Qp(Sw(3.1338561*x-1.6168667*t-.4906146*l),Sw(-.9787684*x+1.9161415*t+.033454*l),Sw(.0719453*x-.2289914*t+1.4052427*l),this.opacity)}}));
Fh(mw,zy,Kk(kK,{brighter:function(t){return new mw(this.h,this.c,this.l+18*(t==null?1:t),this.opacity)},
darker:function(t){return new mw(this.h,this.c,this.l-18*(t==null?1:t),this.opacity)},
rgb:function(){return mF(this).rgb()}}));
var SNn=1.78277*-.29227-.1347134789;Fh(Gy,Ez,Kk(kK,{brighter:function(t){t=t==null?Cr:Math.pow(Cr,t);return new Gy(this.h,this.s,this.l*t,this.opacity)},
darker:function(t){t=t==null?.7:Math.pow(.7,t);return new Gy(this.h,this.s,this.l*t,this.opacity)},
rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*PfK,x=+this.l,l=isNaN(this.s)?0:this.s*x*(1-x),At=Math.cos(t);t=Math.sin(t);return new Qp(255*(x+l*(-.14861*At+1.78277*t)),255*(x+l*(-.29227*At+-.90649*t)),255*(x+1.97294*At*l),this.opacity)}}));
var RtB=function l(x){function At(sM,EM){var tt=u7((sM=K8(sM)).r,(EM=K8(EM)).r),dm=u7(sM.g,EM.g),Mp=u7(sM.b,EM.b),un=U4(sM.opacity,EM.opacity);return function(Np){sM.r=tt(Np);sM.g=dm(Np);sM.b=Mp(Np);sM.opacity=un(Np);return sM+""}}
var u7=JD(x);At.gamma=l;return At}(1),rKh=gV(function(x){var l=x.length-1;
return function(At){var u7=At<=0?At=0:At>=1?(At=1,l-1):Math.floor(At*l),sM=x[u7],EM=x[u7+1];return XL((At-u7/l)*l,u7>0?x[u7-1]:2*sM-EM,sM,EM,u7<l-1?x[u7+2]:2*EM-sM)}});
gV(function(x){var l=x.length;return function(At){var u7=Math.floor(((At%=1)<0?++At:At)*l);return XL((At-u7/l)*l,x[(u7+l-1)%l],x[u7%l],x[(u7+1)%l],x[(u7+2)%l])}});
var g0E=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,aa7=new RegExp(g0E.source,"g"),pir=180/Math.PI,hnN={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},e_,k00,ZjB,xat,DLy=p1(function(x){if(x==="none")return hnN;e_||(e_=document.createElement("DIV"),k00=document.documentElement,ZjB=document.defaultView);e_.style.transform=x;x=ZjB.getComputedStyle(k00.appendChild(e_),null).getPropertyValue("transform");k00.removeChild(e_);x=x.slice(7,-1).split(",");return Yh(+x[0],+x[1],+x[2],+x[3],
+x[4],+x[5])},"px, ","px)","deg)"),$LY=p1(function(x){if(x==null)return hnN;
xat||(xat=document.createElementNS("http://www.w3.org/2000/svg","g"));xat.setAttribute("transform",x);if(!(x=xat.transform.baseVal.consolidate()))return hnN;x=x.matrix;return Yh(x.a,x.b,x.c,x.d,x.e,x.f)},", ",")",")");
LU(GC);LU(U4);pe(GC);pe(U4);YC(GC);var v0c=YC(U4),aO=0,RB=0,ma=0,s1K,EJ,PM0=0,de=0,FU0=0,Lc=typeof performance==="object"&&performance.now?performance:Date,L$K=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(x){setTimeout(x,17)};
Go.prototype=qb.prototype={constructor:Go,restart:function(x,l,At){if(typeof x!=="function")throw new TypeError("Ge");At=(At==null?qG():+At)+(l==null?0:+l);this._next||EJ===this||(EJ?EJ._next=this:s1K=this,EJ=this);this._call=x;this._time=At;kh()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,kh())}};
var I8p=A("start","end","interrupt"),Qjj=[],lG$=kf.prototype.constructor,f8y=0,ti=kf.prototype;Tm.prototype=function(x){return kf().transition(x)}.prototype={constructor:Tm,
select:function(x){var l=this._name,At=this._id;typeof x!=="function"&&(x=P(x));for(var u7=this._groups,sM=u7.length,EM=Array(sM),tt=0;tt<sM;++tt)for(var dm=u7[tt],Mp=dm.length,un=EM[tt]=Array(Mp),Np,Vh,rh=0;rh<Mp;++rh)(Np=dm[rh])&&(Vh=x.call(Np,Np.__data__,rh,dm))&&("__data__"in Np&&(Vh.__data__=Np.__data__),un[rh]=Vh,Hr(un[rh],l,At,rh,un,Vp(Np,At)));return new Tm(EM,this._parents,l,At)},
filter:function(x){typeof x!=="function"&&(x=uWm(x));for(var l=this._groups,At=l.length,u7=Array(At),sM=0;sM<At;++sM)for(var EM=l[sM],tt=EM.length,dm=u7[sM]=[],Mp,un=0;un<tt;++un)(Mp=EM[un])&&x.call(Mp,Mp.__data__,un,EM)&&dm.push(Mp);return new Tm(u7,this._parents,this._name,this._id)},
merge:function(x){if(x._id!==this._id)throw Error();var l=this._groups;x=x._groups;for(var At=l.length,u7=Math.min(At,x.length),sM=Array(At),EM=0;EM<u7;++EM)for(var tt=l[EM],dm=x[EM],Mp=tt.length,un=sM[EM]=Array(Mp),Np,Vh=0;Vh<Mp;++Vh)if(Np=tt[Vh]||dm[Vh])un[Vh]=Np;for(;EM<At;++EM)sM[EM]=l[EM];return new Tm(sM,this._parents,this._name,this._id)},
selection:function(){return new lG$(this._groups,this._parents)},
transition:function(){for(var x=this._name,l=this._id,At=++f8y,u7=this._groups,sM=u7.length,EM=0;EM<sM;++EM)for(var tt=u7[EM],dm=tt.length,Mp,un=0;un<dm;++un)if(Mp=tt[un]){var Np=Vp(Mp,l);Hr(Mp,x,At,un,tt,{time:Np.time+Np.delay+Np.duration,delay:0,duration:Np.duration,ease:Np.ease})}return new Tm(u7,this._parents,x,At)},
call:ti.call,nodes:ti.nodes,node:ti.node,size:ti.size,empty:ti.empty,each:ti.each,on:function(x,l){var At=this._id;return arguments.length<2?Vp(this.node(),At).on.on(x):this.each(bQX(At,x,l))},
attr:function(x,l){var At=d(x),u7=At==="transform"?$LY:Oh;return this.attrTween(x,typeof l==="function"?(At.local?VL5:Nu_)(At,u7,D$(this,"attr."+x,l)):l==null?(At.local?nX_:gr)(At):(At.local?x_:aB)(At,u7,l+""))},
attrTween:function(x,l){var At="attr."+x;if(arguments.length<2)return(At=this.tween(At))&&At._value;if(l==null)return this.tween(At,null);if(typeof l!=="function")throw Error();var u7=d(x);return this.tween(At,(u7.local?HQ$:Ukh)(u7,l))},
style:function(x,l,At){var u7=x==="transform"?DLy:Oh;return l==null?this.styleTween(x,OQY(x,u7)).on("end.style."+x,uuy(x)):this.styleTween(x,typeof l==="function"?fC$(x,u7,D$(this,"style."+x,l)):ZQ8(x,u7,l+""),At)},
styleTween:function(x,l,At){var u7="style."+x;if(arguments.length<2)return(u7=this.tween(u7))&&u7._value;if(l==null)return this.tween(u7,null);if(typeof l!=="function")throw Error();return this.tween(u7,J_f(x,l,At==null?"":At))},
text:function(x){return this.tween("text",typeof x==="function"?oxh(D$(this,"text",x)):Khf(x==null?"":x+""))},
remove:function(){return this.on("end.remove",dk8(this._id))},
tween:function(x,l){var At=this._id;if(arguments.length<2){At=Vp(this.node(),At).tween;for(var u7=0,sM=At.length,EM;u7<sM;++u7)if((EM=At[u7]).name===x)return EM.value;return null}return this.each((l==null?UA:HJ)(At,x,l))},
delay:function(x){var l=this._id;return arguments.length?this.each((typeof x==="function"?A_h:M8$)(l,x)):Vp(this.node(),l).delay},
duration:function(x){var l=this._id;return arguments.length?this.each((typeof x==="function"?Whj:wBm)(l,x)):Vp(this.node(),l).duration},
ease:function(x){var l=this._id;return arguments.length?this.each(XB$(l,x)):Vp(this.node(),l).ease}};
var TFK={time:null,delay:0,duration:250,ease:function(x){return((x*=2)<=1?x*x*x:(x-=2)*x*x+2)/2}};
kf.prototype.transition=function(x){var l;if(x instanceof Tm){var At=x._id;x=x._name}else At=++f8y,(l=TFK).time=qG(),x=x==null?null:x+"";for(var u7=this._groups,sM=u7.length,EM=0;EM<sM;++EM)for(var tt=u7[EM],dm=tt.length,Mp,un=0;un<dm;++un)if(Mp=tt[un]){var Np=Mp,Vh=x,rh=At,x5=un,ID=tt,rY;if(!(rY=l))a:{rY=void 0;for(var J9=At;!(rY=Mp.__transition)||!(rY=rY[J9]);)if(!(Mp=Mp.parentNode)){rY=(TFK.time=qG(),TFK);break a}}Hr(Np,Vh,rh,x5,ID,rY)}return new Tm(u7,this._parents,x,At)};
["e","w"].map(xMN);["n","s"].map(xMN);"n e s w nw ne se sw".split(" ").map(xMN);znh.prototype=function(){return new znh}.prototype={constructor:znh,
moveTo:function(x,l){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+l)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(x,l){this._+="L"+(this._x1=+x)+","+(this._y1=+l)},
bezierCurveTo:function(x,l,At,u7,sM,EM){this._+="C"+ +x+","+ +l+","+ +At+","+ +u7+","+(this._x1=+sM)+","+(this._y1=+EM)},
rect:function(x,l,At,u7){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+l)+"h"+ +At+"v"+ +u7+"h"+-At+"Z"},
toString:function(){return this._}};
SDV.prototype=EbK.prototype={constructor:SDV,has:function(x){return" "+x in this},
get:function(x){return this[" "+x]},
set:function(x,l){this[" "+x]=l;return this},
remove:function(x){x=" "+x;return x in this&&delete this[x]},
clear:function(){for(var x in this)x[0]===" "&&delete this[x]},
keys:function(){var x=[],l;for(l in this)l[0]===" "&&x.push(l.slice(1));return x},
values:function(){var x=[],l;for(l in this)l[0]===" "&&x.push(this[l]);return x},
entries:function(){var x=[],l;for(l in this)l[0]===" "&&x.push({key:l.slice(1),value:this[l]});return x},
size:function(){var x=0,l;for(l in this)l[0]===" "&&++x;return x},
empty:function(){for(var x in this)if(x[0]===" ")return!1;return!0},
each:function(x){for(var l in this)l[0]===" "&&x(this[l],l.slice(1),this)}};
var ZG=EbK.prototype;p1r.prototype=function(x,l){var At=new p1r;if(x instanceof p1r)x.each(function(EM){At.add(EM)});
else if(x){var u7=-1,sM=x.length;if(l==null)for(;++u7<sM;)At.add(x[u7]);else for(;++u7<sM;)At.add(l(x[u7],u7,x))}return At}.prototype={constructor:p1r,
has:ZG.has,add:function(x){this[" "+x]=x;return this},
remove:ZG.remove,clear:ZG.clear,values:ZG.keys,size:ZG.size,empty:ZG.empty,each:ZG.each};var auw={},CQ_={},GDy=gbw(",").parse,Ys5=gbw("\t").parse;xxh(GDy);xxh(Ys5);var iN=function(x,l,At){l=new tA_(l==null?nxX:l,At==null?NoY:At,NaN,NaN,NaN,NaN);return x==null?l:l.addAll(x)}.prototype=tA_.prototype;
iN.copy=function(){var x=new tA_(this._x,this._y,this._x0,this._y0,this._x1,this._y1),l=this._root,At,u7;if(!l)return x;if(!l.length)return x._root=Cf3(l),x;for(At=[{source:l,target:x._root=Array(4)}];l=At.pop();)for(var sM=0;sM<4;++sM)if(u7=l.source[sM])u7.length?At.push({source:u7,target:l.target[sM]=Array(4)}):l.target[sM]=Cf3(u7);return x};
iN.add=function(x){var l=+this._x.call(null,x),At=+this._y.call(null,x);return ztn(this.cover(l,At),l,At,x)};
iN.addAll=function(x){var l,At,u7=x.length,sM,EM,tt=Array(u7),dm=Array(u7),Mp=Infinity,un=Infinity,Np=-Infinity,Vh=-Infinity;for(At=0;At<u7;++At)isNaN(sM=+this._x.call(null,l=x[At]))||isNaN(EM=+this._y.call(null,l))||(tt[At]=sM,dm[At]=EM,sM<Mp&&(Mp=sM),sM>Np&&(Np=sM),EM<un&&(un=EM),EM>Vh&&(Vh=EM));Np<Mp&&(Mp=this._x0,Np=this._x1);Vh<un&&(un=this._y0,Vh=this._y1);this.cover(Mp,un).cover(Np,Vh);for(At=0;At<u7;++At)ztn(this,tt[At],dm[At],x[At]);return this};
iN.cover=function(x,l){if(isNaN(x=+x)||isNaN(l=+l))return this;var At=this._x0,u7=this._y0,sM=this._x1,EM=this._y1;if(isNaN(At))sM=(At=Math.floor(x))+1,EM=(u7=Math.floor(l))+1;else if(At>x||x>sM||u7>l||l>EM){var tt=sM-At,dm=this._root,Mp;switch(Mp=(l<(u7+EM)/2)<<1|x<(At+sM)/2){case 0:do{var un=Array(4);un[Mp]=dm;dm=un}while(tt*=2,sM=At+tt,EM=u7+tt,x>sM||l>EM);break;case 1:do un=Array(4),un[Mp]=dm,dm=un;while(tt*=2,At=sM-tt,EM=u7+tt,At>x||l>EM);break;case 2:do un=Array(4),un[Mp]=dm,dm=un;while(tt*=
2,sM=At+tt,u7=EM-tt,x>sM||u7>l);break;case 3:do un=Array(4),un[Mp]=dm,dm=un;while(tt*=2,At=sM-tt,u7=EM-tt,At>x||u7>l)}this._root&&this._root.length&&(this._root=dm)}else return this;this._x0=At;this._y0=u7;this._x1=sM;this._y1=EM;return this};
iN.data=function(){var x=[];this.visit(function(l){if(!l.length){do x.push(l.data);while(l=l.next)}});
return x};
iN.extent=function(x){return arguments.length?this.cover(+x[0][0],+x[0][1]).cover(+x[1][0],+x[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
iN.find=function(x,l,At){var u7=this._x0,sM=this._y0,EM,tt,dm,Mp,un=this._x1,Np=this._y1,Vh=[],rh=this._root,x5;rh&&Vh.push(new Xp(rh,u7,sM,un,Np));At==null?At=Infinity:(u7=x-At,sM=l-At,un=x+At,Np=l+At,At*=At);for(;x5=Vh.pop();)if(!(!(rh=x5.node)||(EM=x5.x0)>un||(tt=x5.y0)>Np||(dm=x5.x1)<u7||(Mp=x5.y1)<sM))if(rh.length){x5=(EM+dm)/2;var ID=(tt+Mp)/2;Vh.push(new Xp(rh[3],x5,ID,dm,Mp),new Xp(rh[2],EM,ID,x5,Mp),new Xp(rh[1],x5,tt,dm,ID),new Xp(rh[0],EM,tt,x5,ID));if(rh=(l>=ID)<<1|x>=x5)x5=Vh[Vh.length-
1],Vh[Vh.length-1]=Vh[Vh.length-1-rh],Vh[Vh.length-1-rh]=x5}else if(x5=x-+this._x.call(null,rh.data),ID=l-+this._y.call(null,rh.data),x5=x5*x5+ID*ID,x5<At){var rY=Math.sqrt(At=x5);u7=x-rY;sM=l-rY;un=x+rY;Np=l+rY;rY=rh.data}return rY};
iN.remove=function(x){if(isNaN(Mp=+this._x.call(null,x))||isNaN(un=+this._y.call(null,x)))return this;var l,At=this._root,u7,sM=this._x0,EM=this._y0,tt=this._x1,dm=this._y1,Mp,un,Np,Vh,rh,x5,ID;if(!At)return this;if(At.length)for(;;){(rh=Mp>=(Np=(sM+tt)/2))?sM=Np:tt=Np;(x5=un>=(Vh=(EM+dm)/2))?EM=Vh:dm=Vh;if(!(l=At,At=At[ID=x5<<1|rh]))return this;if(!At.length)break;if(l[ID+1&3]||l[ID+2&3]||l[ID+3&3]){var rY=l;var J9=ID}}for(;At.data!==x;)if(!(u7=At,At=At.next))return this;(x=At.next)&&delete At.next;
if(u7)return x?u7.next=x:delete u7.next,this;if(!l)return this._root=x,this;x?l[ID]=x:delete l[ID];(At=l[0]||l[1]||l[2]||l[3])&&At===(l[3]||l[2]||l[1]||l[0])&&!At.length&&(rY?rY[J9]=At:this._root=At);return this};
iN.removeAll=function(x){for(var l=0,At=x.length;l<At;++l)this.remove(x[l]);return this};
iN.root=function(){return this._root};
iN.size=function(){var x=0;this.visit(function(l){if(!l.length){do++x;while(l=l.next)}});
return x};
iN.visit=function(x){var l=[],At,u7=this._root,sM,EM,tt,dm,Mp;for(u7&&l.push(new Xp(u7,this._x0,this._y0,this._x1,this._y1));At=l.pop();)if(!x(u7=At.node,EM=At.x0,tt=At.y0,dm=At.x1,Mp=At.y1)&&u7.length){At=(EM+dm)/2;var un=(tt+Mp)/2;(sM=u7[3])&&l.push(new Xp(sM,At,un,dm,Mp));(sM=u7[2])&&l.push(new Xp(sM,EM,un,At,Mp));(sM=u7[1])&&l.push(new Xp(sM,At,tt,dm,un));(sM=u7[0])&&l.push(new Xp(sM,EM,tt,At,un))}};
iN.visitAfter=function(x){var l=[],At=[],u7;for(this._root&&l.push(new Xp(this._root,this._x0,this._y0,this._x1,this._y1));u7=l.pop();){var sM=u7.node;if(sM.length){var EM,tt=u7.x0,dm=u7.y0,Mp=u7.x1,un=u7.y1,Np=(tt+Mp)/2,Vh=(dm+un)/2;(EM=sM[0])&&l.push(new Xp(EM,tt,dm,Np,Vh));(EM=sM[1])&&l.push(new Xp(EM,Np,dm,Mp,Vh));(EM=sM[2])&&l.push(new Xp(EM,tt,Vh,Np,un));(EM=sM[3])&&l.push(new Xp(EM,Np,Vh,Mp,un))}At.push(u7)}for(;u7=At.pop();)x(u7.node,u7.x0,u7.y0,u7.x1,u7.y1);return this};
iN.x=function(x){return arguments.length?(this._x=x,this):this._x};
iN.y=function(x){return arguments.length?(this._y=x,this):this._y};
var Rh5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;c1_.prototype=y1E.prototype;y1E.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 Bxw,rew={"%":function(x,l){return(x*100).toFixed(l)},
b:function(x){return Math.round(x).toString(2)},
c:function(x){return x+""},
d:function(x){return Math.round(x).toString(10)},
e:function(x,l){return x.toExponential(l)},
f:function(x,l){return x.toFixed(l)},
g:function(x,l){return x.toPrecision(l)},
o:function(x){return Math.round(x).toString(8)},
p:function(x,l){return tor(x*100,l)},
r:tor,s:function(x,l){var At=LUK(x,l);if(!At)return x+"";var u7=At[0];At=At[1];At=At-(Bxw=Math.max(-8,Math.min(8,Math.floor(At/3)))*3)+1;var sM=u7.length;return At===sM?u7:At>sM?u7+Array(At-sM+1).join("0"):At>0?u7.slice(0,At)+"."+u7.slice(At):"0."+Array(1-At).join("0")+LUK(x,Math.max(0,l+At-1))[0]},
X:function(x){return Math.round(x).toString(16).toUpperCase()},
x:function(x){return Math.round(x).toString(16)}},yeH="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),qs7;
(function(x){return qs7=ExB(x)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});uo.prototype={constructor:uo,reset:function(){this.s=this.t=0},
add:function(x){etK(zT0,x,this.t);etK(this,zT0.s,this.s);this.s?this.t+=zT0.t:this.s=zT0.t},
valueOf:function(){return this.s}};
var zT0=new uo,A0=Math.PI,Z9=A0/2,J6m=A0/4,hqh=A0*2,jN0=A0/180,j4=Math.abs,Iac=Math.atan,qNr=Math.atan2,fY=Math.cos,$U=Math.sin,EXE=Math.sqrt;new uo;new uo;new uo;var QN_=new uo;(function(x,l,At,u7){return function(sM){function EM(dP,mP){x(dP,mP)&&sM.point(dP,mP)}
function tt(dP,mP){rh.point(dP,mP)}
function dm(){Ky.point=tt;rh.lineStart()}
function Mp(){Ky.point=EM;rh.lineEnd()}
function un(dP,mP){x2.push([dP,mP]);ID.point(dP,mP)}
function Np(){ID.lineStart();x2=[]}
function Vh(){un(x2[0][0],x2[0][1]);ID.lineEnd();var dP=ID.clean(),mP=x5.result(),WI=mP.length,aQ;x2.pop();J9.push(x2);x2=null;if(WI)if(dP&1){if(WI=mP[0],(mP=WI.length-1)>0){rY||(sM.polygonStart(),rY=!0);sM.lineStart();for(dP=0;dP<mP;++dP)sM.point((aQ=WI[dP])[0],aQ[1]);sM.lineEnd()}}else WI>1&&dP&2&&mP.push(mP.pop().concat(mP.shift())),bB.push(mP.filter(xk8))}
var rh=l(sM),x5=gx8(),ID=l(x5),rY=!1,J9,bB,x2,Ky={point:EM,lineStart:dm,lineEnd:Mp,polygonStart:function(){Ky.point=un;Ky.lineStart=Np;Ky.lineEnd=Vh;bB=[];J9=[]},
polygonEnd:function(){Ky.point=EM;Ky.lineStart=dm;Ky.lineEnd=Mp;var dP=bB,mP=dP.length;var WI=-1;for(var aQ=0,Hy,LN;++WI<mP;)aQ+=dP[WI].length;for(Hy=Array(aQ);--mP>=0;)for(LN=dP[mP],WI=LN.length;--WI>=0;)Hy[--aQ]=LN[WI];bB=Hy;dP=J9;mP=u7[0];aQ=u7[1];var JR=$U(aQ);WI=[$U(mP),-fY(mP),0];LN=Hy=0;QN_.reset();JR===1?aQ=Z9+1E-6:JR===-1&&(aQ=-Z9-1E-6);JR=0;for(var e7=dP.length;JR<e7;++JR)if(Uo=(ix=dP[JR]).length){var ix,Uo,K5=ix[Uo-1],ah=K5[0],hO=K5[1]/2+J6m,CM7=$U(hO),KI3=fY(hO);for(hO=0;hO<Uo;++hO,ah=
VAV,CM7=oNp,KI3=Dq,K5=tD4){var tD4=ix[hO],VAV=tD4[0];Dq=tD4[1]/2+J6m;var oNp=$U(Dq),Dq=fY(Dq),c2=VAV-ah,HnK=c2>=0?1:-1,Ux0=HnK*c2,c94=Ux0>A0;CM7*=oNp;QN_.add(qNr(CM7*HnK*$U(Ux0),KI3*Dq+CM7*fY(Ux0)));Hy+=c94?c2+HnK*hqh:c2;c94^ah>=mP^VAV>=mP&&(K5=$xB(Dxw(K5),Dxw(tD4)),lu3(K5),ah=$xB(WI,K5),lu3(ah),ah=(c94^c2>=0?-1:1)*RTE(ah[2]),aQ>ah||aQ===ah&&(K5[0]||K5[1]))&&(LN+=c94^c2>=0?1:-1)}}dP=(Hy<-1E-6||Hy<1E-6&&QN_<-1E-6)^LN&1;bB.length?(rY||(sM.polygonStart(),rY=!0),aCp(bB,zhB,dP,At,sM)):dP&&(rY||(sM.polygonStart(),
rY=!0),sM.lineStart(),At(null,null,1,sM),sM.lineEnd());rY&&(sM.polygonEnd(),rY=!1);bB=J9=null},
sphere:function(){sM.polygonStart();sM.lineStart();At(null,null,1,sM);sM.lineEnd();sM.polygonEnd()}};
return Ky}})(function(){return!0},function(x){var l=NaN,At=NaN,u7=NaN,sM;
return{lineStart:function(){x.lineStart();sM=1},
point:function(EM,tt){var dm=EM>0?A0:-A0,Mp=j4(EM-l);if(j4(Mp-A0)<1E-6)x.point(l,At=(At+tt)/2>0?Z9:-Z9),x.point(u7,At),x.lineEnd(),x.lineStart(),x.point(dm,At),x.point(EM,At),sM=0;else if(u7!==dm&&Mp>=A0){j4(l-u7)<1E-6&&(l-=u7*1E-6);j4(EM-dm)<1E-6&&(EM-=dm*1E-6);Mp=l;var un=At,Np=EM,Vh,rh,x5=$U(Mp-Np);At=j4(x5)>1E-6?Iac(($U(un)*(rh=fY(tt))*$U(Np)-$U(tt)*(Vh=fY(un))*$U(Mp))/(Vh*rh*x5)):(un+tt)/2;x.point(u7,At);x.lineEnd();x.lineStart();x.point(dm,At);sM=0}x.point(l=EM,At=tt);u7=dm},
lineEnd:function(){x.lineEnd();l=At=NaN},
clean:function(){return 2-sM}}},function(x,l,At,u7){x==null?(At*=Z9,u7.point(-A0,At),u7.point(0,At),u7.point(A0,At),u7.point(A0,0),u7.point(A0,-At),u7.point(0,-At),u7.point(-A0,-At),u7.point(-A0,0),u7.point(-A0,At)):j4(x[0]-l[0])>1E-6?(x=x[0]<l[0]?A0:-A0,At=At*x/2,u7.point(-x,At),u7.point(0,At),u7.point(x,At)):u7.point(l[0],l[1])},[-A0,
-Z9]);new uo;new uo;new uo;new uo;BFh.prototype={constructor:BFh,point:function(x,l){this.stream.point(x,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()}};
fY(30*jN0);(function(x){return function(l){var At=new BFh,u7;for(u7 in x)At[u7]=x[u7];At.stream=l;return At}})({point:function(x,l){this.stream.point(x*jN0,l*jN0)}});
YNr(function(x){return EXE(2/(1+x))}).invert=zd(function(x){return 2*RTE(x/2)});
YNr(function(x){return(x=x>1?0:x<-1?A0:Math.acos(x))&&x/$U(x)}).invert=zd(function(x){return x});
EXE(3);zd(Iac);zd(RTE);zd(function(x){return 2*Iac(x)});
Cc.prototype=htH.prototype={constructor:Cc,count:function(){return this.eachAfter(Ckm)},
each:function(x){var l,At=[this],u7;do{var sM=At.reverse();for(At=[];l=sM.pop();)if(x(l),l=l.children){var EM=0;for(u7=l.length;EM<u7;++EM)At.push(l[EM])}}while(At.length);return this},
eachAfter:function(x){for(var l,At=[this],u7=[],sM,EM;l=At.pop();)if(u7.push(l),l=l.children)for(sM=0,EM=l.length;sM<EM;++sM)At.push(l[sM]);for(;l=u7.pop();)x(l);return this},
eachBefore:function(x){for(var l,At=[this],u7;l=At.pop();)if(x(l),l=l.children)for(u7=l.length-1;u7>=0;--u7)At.push(l[u7]);return this},
sum:function(x){return this.eachAfter(function(l){for(var At=+x(l.data)||0,u7=l.children,sM=u7&&u7.length;--sM>=0;)At+=u7[sM].value;l.value=At})},
sort:function(x){return this.eachBefore(function(l){l.children&&l.children.sort(x)})},
path:function(x){var l=this;var At=l;var u7=x;if(At!==u7){var sM=At.ancestors(),EM=u7.ancestors(),tt=null;At=sM.pop();for(u7=EM.pop();At===u7;)tt=At,At=sM.pop(),u7=EM.pop();At=tt}for(u7=[l];l!==At;)l=l.parent,u7.push(l);for(l=u7.length;x!==At;)u7.splice(l,0,x),x=x.parent;return u7},
ancestors:function(){for(var x=this,l=[x];x=x.parent;)l.push(x);return l},
links:function(){var x=this,l=[];x.each(function(At){At!==x&&l.push({source:At.parent,target:At})});
return l},
copy:function(){return htH(this).eachBefore(y_h)}};
(function(x,l){this._=x;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(Cc.prototype);
var r1K=new Date,ent=new Date,FI3=zP(function(){},function(x,l){x.setTime(+x+l)},function(x,l){return l-x});
FI3.every=function(x){x=Math.floor(x);return isFinite(x)&&x>0?x>1?zP(function(l){l.setTime(Math.floor(l/x)*x)},function(l,At){l.setTime(+l+At*x)},function(l,At){return(At-l)/x}):FI3:null};
zP(function(x){x.setTime(Math.floor(x/1E3)*1E3)},function(x,l){x.setTime(+x+l*1E3)},function(x,l){return(l-x)/1E3},function(x){return x.getUTCSeconds()});
zP(function(x){x.setTime(Math.floor(x/6E4)*6E4)},function(x,l){x.setTime(+x+l*6E4)},function(x,l){return(l-x)/6E4},function(x){return x.getMinutes()});
zP(function(x){var l=x.getTimezoneOffset()*6E4%36E5;l<0&&(l+=36E5);x.setTime(Math.floor((+x-l)/36E5)*36E5+l)},function(x,l){x.setTime(+x+l*36E5)},function(x,l){return(l-x)/36E5},function(x){return x.getHours()});
var Txk=zP(function(x){x.setHours(0,0,0,0)},function(x,l){x.setDate(x.getDate()+l)},function(x,l){return(l-x-(l.getTimezoneOffset()-x.getTimezoneOffset())*6E4)/864E5},function(x){return x.getDate()-1}),yKY=Os(0),$M8=Os(1);
Os(2);Os(3);var laV=Os(4);Os(5);Os(6);zP(function(x){x.setDate(1);x.setHours(0,0,0,0)},function(x,l){x.setMonth(x.getMonth()+l)},function(x,l){return l.getMonth()-x.getMonth()+(l.getFullYear()-x.getFullYear())*12},function(x){return x.getMonth()});
var xz=zP(function(x){x.setMonth(0,1);x.setHours(0,0,0,0)},function(x,l){x.setFullYear(x.getFullYear()+l)},function(x,l){return l.getFullYear()-x.getFullYear()},function(x){return x.getFullYear()});
xz.every=function(x){return isFinite(x=Math.floor(x))&&x>0?zP(function(l){l.setFullYear(Math.floor(l.getFullYear()/x)*x);l.setMonth(0,1);l.setHours(0,0,0,0)},function(l,At){l.setFullYear(l.getFullYear()+At*x)}):null};
zP(function(x){x.setUTCSeconds(0,0)},function(x,l){x.setTime(+x+l*6E4)},function(x,l){return(l-x)/6E4},function(x){return x.getUTCMinutes()});
zP(function(x){x.setUTCMinutes(0,0,0)},function(x,l){x.setTime(+x+l*36E5)},function(x,l){return(l-x)/36E5},function(x){return x.getUTCHours()});
var vbH=zP(function(x){x.setUTCHours(0,0,0,0)},function(x,l){x.setUTCDate(x.getUTCDate()+l)},function(x,l){return(l-x)/864E5},function(x){return x.getUTCDate()-1}),Be5=uy(0),DMK=uy(1);
uy(2);uy(3);var G00=uy(4);uy(5);uy(6);zP(function(x){x.setUTCDate(1);x.setUTCHours(0,0,0,0)},function(x,l){x.setUTCMonth(x.getUTCMonth()+l)},function(x,l){return l.getUTCMonth()-x.getUTCMonth()+(l.getUTCFullYear()-x.getUTCFullYear())*12},function(x){return x.getUTCMonth()});
var zY=zP(function(x){x.setUTCMonth(0,1);x.setUTCHours(0,0,0,0)},function(x,l){x.setUTCFullYear(x.getUTCFullYear()+l)},function(x,l){return l.getUTCFullYear()-x.getUTCFullYear()},function(x){return x.getUTCFullYear()});
zY.every=function(x){return isFinite(x=Math.floor(x))&&x>0?zP(function(l){l.setUTCFullYear(Math.floor(l.getUTCFullYear()/x)*x);l.setUTCMonth(0,1);l.setUTCHours(0,0,0,0)},function(l,At){l.setUTCFullYear(l.getUTCFullYear()+At*x)}):null};
var k4K={"-":"",_:" ",0:"0"},zR=/^\s*\d+/,cK5=/^%/,ti5=/[\\^$*+?|[\]().{}]/g,y9h;(function(x){y9h=r_p(x);Gsw=y9h.utcFormat;Yaw=y9h.utcParse;return y9h})({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||Gsw("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Yaw("%Y-%m-%dT%H:%M:%S.%LZ");Ss("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Ss("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Ss("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Ss("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Ss("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Ss("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Ss("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Ss("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Ss("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Ss("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Ss("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Ss("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var kDX=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Ss);bx(kDX);var vop=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Ss);bx(vop);var Tey=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Ss);bx(Tey);var jZp=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Ss);
bx(jZp);var IG$=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Ss);bx(IG$);var QZh=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Ss);bx(QZh);var Viy=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Ss);bx(Viy);var HCf=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Ss);bx(HCf);var UBy=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Ss);bx(UBy);var ASm=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Ss);bx(ASm);var MY5=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Ss);bx(MY5);var W8h=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Ss);bx(W8h);var wE5=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Ss);bx(wE5);var XEy=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Ss);bx(XEy);var iCh=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Ss);bx(iCh);var bCX=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Ss);bx(bCX);var dBh=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Ss);bx(dBh);var OC5=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Ss);bx(OC5);var um8=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Ss);bx(um8);var ZC$=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Ss);bx(ZC$);var fE5=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Ss);bx(fE5);var JSh=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Ss);bx(JSh);var K8$=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Ss);bx(K8$);var ouf=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Ss);bx(ouf);var F87=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Ss);bx(F87);var PCf=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Ss);bx(PCf);var sX$=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Ss);bx(sX$);v0c(Ez(300,.5,0),Ez(-240,.5,1));v0c(Ez(-100,.75,.35),Ez(80,1.5,.8));v0c(Ez(260,.75,.35),Ez(80,1.5,.8));Ez();K8();az_(Ss("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
az_(Ss("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
az_(Ss("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
az_(Ss("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
w6k.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(x,l){x=+x;l=+l;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(x,l):this._context.moveTo(x,l);break;case 1:this._point=2;default:this._context.lineTo(x,l)}}};
(function(x){function l(At){return new X6g(x(At))}
l._curve=x;return l})(function(x){return new w6k(x)});
X6g.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(x,l){this._curve.point(l*Math.sin(x),l*-Math.cos(x))}};
qFr.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:YFN(this,this._t0,bjm(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(x,l){var At=NaN;x=+x;l=+l;if(x!==this._x1||l!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(x,l):this._context.moveTo(x,l);break;case 1:this._point=2;break;case 2:this._point=3;YFN(this,bjm(this,At=ijy(this,x,l)),At);break;default:YFN(this,this._t0,At=ijy(this,x,l))}this._x0=this._x1;this._x1=x;this._y0=this._y1;this._y1=l;this._t0=At}}};
(function(x){this._context=new ddw(x)}.prototype=Object.create(qFr.prototype)).point=function(x,l){qFr.prototype.point.call(this,l,x)};
ddw.prototype={moveTo:function(x,l){this._context.moveTo(l,x)},
closePath:function(){this._context.closePath()},
lineTo:function(x,l){this._context.lineTo(l,x)},
bezierCurveTo:function(x,l,At,u7,sM,EM){this._context.bezierCurveTo(l,x,u7,At,EM,sM)}};
B7.prototype={constructor:B7,scale:function(x){return x===1?this:new B7(this.k*x,this.x,this.y)},
translate:function(x,l){return x===0&l===0?this:new B7(this.k,this.x+this.k*x,this.y+this.k*l)},
apply:function(x){return[x[0]*this.k+this.x,x[1]*this.k+this.y]},
invert:function(x){return[(x[0]-this.x)/this.k,(x[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new B7(1,0,0);D67=ew;uX.svg=uX.svg;uX.xhtml=uX.xhtml;uX.xlink=uX.xlink;uX.xml=uX.xml;uX.xmlns=uX.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 qaw="hammer_"+(Math.random()*1E6|0),hlH=function(){var H=document||document;if(!H[qaw]){var U=function(){(function(A,M,W,w){function d(gK,eN,T8){return setTimeout(n(gK,T8),eN)}
function O(gK,eN,T8){return Array.isArray(gK)?(f(gK,T8[eN],T8),!0):!1}
function f(gK,eN,T8){var Sw;if(gK)if(gK.forEach)gK.forEach(eN,T8);else if(gK.length!==w){var RY=0;for(Sw=gK.length;RY<Sw;RY++)eN.call(T8,gK[RY],RY,gK)}else for(RY in gK)gK.hasOwnProperty(RY)&&eN.call(T8,gK[RY],RY,gK)}
function J(gK,eN,T8){for(var Sw=Object.keys(eN),RY=0,gM=Sw.length;RY<gM;RY++)if(!T8||T8&&gK[Sw[RY]]===w)gK[Sw[RY]]=eN[Sw[RY]];return gK}
function F(gK,eN){return J(gK,eN,!0)}
function P(gK,eN,T8){eN=eN.prototype;var Sw=gK.prototype=Object.create(eN);Sw.constructor=gK;Sw._super=eN;T8&&J(Sw,T8)}
function n(gK,eN){return function(){return gK.apply(eN,arguments)}}
function N(gK,eN){return typeof gK=="function"?gK.apply(eN?eN[0]||w:w,eN):gK}
function L(gK,eN,T8){f(z(eN),function(Sw){gK.addEventListener(Sw,T8,!1)})}
function m(gK,eN,T8){f(z(eN),function(Sw){gK.removeEventListener(Sw,T8,!1)})}
function z(gK){return gK.trim().split(/\s+/g)}
function c(gK,eN,T8){if(gK.indexOf&&!T8)return gK.indexOf(eN);for(var Sw=0,RY=gK.length;Sw<RY;Sw++)if(T8&&gK[Sw][T8]==eN||!T8&&gK[Sw]===eN)return Sw;return-1}
function C(gK,eN,T8){for(var Sw=[],RY=[],gM=0,zy=gK.length;gM<zy;gM++){var mw=eN?gK[gM][eN]:gK[gM];c(RY,mw)<0&&Sw.push(gK[gM]);RY[gM]=mw}T8&&(Sw=eN?Sw.sort(function(Ez,Gy){return Ez[eN]>Gy[eN]}):Sw.sort());
return Sw}
function v(gK,eN){for(var T8,Sw=eN[0].toUpperCase()+eN.slice(1),RY=0,gM=oY.length;RY<gM;RY++)if(T8=(T8=oY[RY])?T8+Sw:eN,T8 in gK)return T8;return w}
function Y(gK,eN){var T8=this;this.manager=gK;this.callback=eN;this.element=gK.element;this.target=gK.options.inputTarget;this.domHandler=function(Sw){N(gK.options.enable,[gK])&&T8.handler(Sw)};
this.evEl&&L(this.element,this.evEl,this.domHandler);this.evTarget&&L(this.target,this.evTarget,this.domHandler);this.evWin&&L(A,this.evWin,this.domHandler)}
function D(gK){var eN;O$?eN=BF:lv?eN=kc:ew?eN=G8:eN=PF;return new eN(gK,h)}
function h(gK,eN,T8){var Sw=T8.pointers.length,RY=T8.changedPointers.length,gM=eN&1&&Sw-RY===0;T8.isFirst=!!gM;T8.isFinal=!!(eN&12&&Sw-RY===0);gM&&(gK.session={});T8.eventType=eN;eN=gK.session;Sw=T8.pointers;RY=Sw.length;eN.firstInput||(eN.firstInput=T(T8));RY>1&&!eN.firstMultiple?eN.firstMultiple=T(T8):RY===1&&(eN.firstMultiple=!1);gM=eN.firstInput;var zy=(RY=eN.firstMultiple)?RY.center:gM.center,mw=T8.center=WF(Sw);T8.timeStamp=Fh();T8.deltaTime=T8.timeStamp-gM.timeStamp;T8.angle=o_(zy,mw);T8.distance=
SN(zy,mw);gM=T8.center;zy=eN.offsetDelta||{};mw=eN.prevDelta||{};var Ez=eN.prevInput||{};if(T8.eventType===1||Ez.eventType===4)mw=eN.prevDelta={x:Ez.deltaX||0,y:Ez.deltaY||0},zy=eN.offsetDelta={x:gM.x,y:gM.y};T8.deltaX=mw.x+(gM.x-zy.x);T8.deltaY=mw.y+(gM.y-zy.y);T8.offsetDirection=dK(T8.deltaX,T8.deltaY);RY?(gM=RY.pointers,gM=SN(Sw[0],Sw[1],K8)/SN(gM[0],gM[1],K8)):gM=1;T8.scale=gM;RY?(RY=RY.pointers,Sw=o_(Sw[1],Sw[0],K8)-o_(RY[1],RY[0],K8)):Sw=0;T8.rotation=Sw;zy=eN.lastInterval||T8;Sw=T8.timeStamp-
zy.timeStamp;T8.eventType!=8&&(Sw>25||zy.velocity===w)?(gM=zy.deltaX-T8.deltaX,zy=zy.deltaY-T8.deltaY,mw=gM/Sw||0,Ez=zy/Sw||0,Sw=mw,RY=Ez,mw=Oz(mw)>Oz(Ez)?mw:Ez,gM=dK(gM,zy),eN.lastInterval=T8):(mw=zy.velocity,Sw=zy.velocityX,RY=zy.velocityY,gM=zy.direction);T8.velocity=mw;T8.velocityX=Sw;T8.velocityY=RY;T8.direction=gM;eN=gK.element;a:{for(Sw=T8.srcEvent.target;Sw;){if(Sw==eN){Sw=!0;break a}Sw=Sw.parentNode}Sw=!1}Sw&&(eN=T8.srcEvent.target);T8.target=eN;gK.emit("hammer.input",T8);gK.recognize(T8);
gK.session.prevInput=T8}
function T(gK){for(var eN=[],T8=0;T8<gK.pointers.length;T8++)eN[T8]={clientX:kf(gK.pointers[T8].clientX),clientY:kf(gK.pointers[T8].clientY)};return{timeStamp:Fh(),pointers:eN,center:WF(eN),deltaX:gK.deltaX,deltaY:gK.deltaY}}
function WF(gK){var eN=gK.length;if(eN===1)return{x:kf(gK[0].clientX),y:kf(gK[0].clientY)};for(var T8=0,Sw=0,RY=0;RY<eN;RY++)T8+=gK[RY].clientX,Sw+=gK[RY].clientY;return{x:kf(T8/eN),y:kf(Sw/eN)}}
function dK(gK,eN){return gK===eN?1:Oz(gK)>=Oz(eN)?gK>0?2:4:eN>0?8:16}
function SN(gK,eN,T8){T8||(T8=G2);var Sw=eN[T8[0]]-gK[T8[0]];gK=eN[T8[1]]-gK[T8[1]];return Math.sqrt(Sw*Sw+gK*gK)}
function o_(gK,eN,T8){T8||(T8=G2);return Math.atan2(eN[T8[1]]-gK[T8[1]],eN[T8[0]]-gK[T8[0]])*180/Math.PI}
function PF(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;Y.apply(this,arguments)}
function BF(){this.evEl=uL;this.evWin=UW;Y.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function kc(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};Y.apply(this,arguments)}
function G8(){Y.apply(this,arguments);var gK=n(this.handler,this);this.touch=new kc(this.manager,gK);this.mouse=new PF(this.manager,gK)}
function Pr(gK,eN){this.manager=gK;this.set(eN)}
function Z3(gK){if(gK.indexOf("none")>-1)return"none";var eN=gK.indexOf("pan-x")>-1,T8=gK.indexOf("pan-y")>-1;return eN&&T8?"pan-x pan-y":eN||T8?eN?"pan-x":"pan-y":gK.indexOf("manipulation")>-1?"manipulation":"auto"}
function Yc(gK){this.id=Kk++;this.manager=null;this.options=F(gK||{},this.defaults);gK=this.options.enable;this.options.enable=gK===w?!0:gK;this.state=1;this.simultaneous={};this.requireFail=[]}
function sz(gK){return gK==16?"down":gK==8?"up":gK==2?"left":gK==4?"right":""}
function Ry(gK,eN){return(eN=eN.manager)?eN.get(gK):gK}
function oy(){Yc.apply(this,arguments)}
function aY(){oy.apply(this,arguments);this.pY=this.pX=null}
function im(){oy.apply(this,arguments)}
function Kh(){Yc.apply(this,arguments);this._input=this._timer=null}
function rK(){oy.apply(this,arguments)}
function FB(){oy.apply(this,arguments)}
function T2(){Yc.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function xK(gK,eN){eN=eN||{};var T8=eN.recognizers;eN.recognizers=T8===w?xK.defaults.preset:T8;return new Hj(gK,eN)}
function Hj(gK,eN){eN=eN||{};this.options=F(eN,xK.defaults);this.options.inputTarget=this.options.inputTarget||gK;this.handlers={};this.session={};this.recognizers=[];this.element=gK;this.input=D(this);this.touchAction=new Pr(this,this.options.touchAction);CU(this,!0);f(eN.recognizers,function(T8){var Sw=this.add(new T8[0](T8[1]));T8[2]&&Sw.recognizeWith(T8[2]);T8[3]&&Sw.requireFailure(T8[2])},this)}
function CU(gK,eN){var T8=gK.element;f(gK.options.cssProps,function(Sw,RY){T8.style[v(T8.style,RY)]=eN?Sw:""})}
function Qh(gK,eN){var T8=M.createEvent("Event");T8.initEvent(gK,!0,!0);T8.gesture=eN;eN.target.dispatchEvent(T8)}
var oY=" webkit moz MS ms o".split(" "),qp=M.createElement("div"),kf=Math.round,Oz=Math.abs,Fh=Date.now,Kk=1,kK=/mobile|tablet|ip(ad|hone|od)|android/i,ew="ontouchstart"in A,O$=v(A,"PointerEvent")!==w,lv=ew&&kK.test(navigator.userAgent),G2=["x","y"],K8=["clientX","clientY"];Y.prototype={handler:function(){},
destroy:function(){this.evEl&&m(this.element,this.evEl,this.domHandler);this.evTarget&&m(this.target,this.evTarget,this.domHandler);this.evWin&&m(A,this.evWin,this.domHandler)}};
var Qp={mousedown:1,mousemove:2,mouseup:4};P(PF,Y,{handler:function(gK){var eN=Qp[gK.type];eN&1&&gK.button===0&&(this.pressed=!0);eN&2&&gK.which!==1&&(eN=4);this.pressed&&this.allow&&(eN&4&&(this.pressed=!1),this.callback(this.manager,eN,{pointers:[gK],changedPointers:[gK],pointerType:"mouse",srcEvent:gK}))}});
var uv={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Rl={2:"touch",3:"pen",4:"mouse",5:"kinect"},uL="pointerdown",UW="pointermove pointerup pointercancel";A.MSPointerEvent&&(uL="MSPointerDown",UW="MSPointerMove MSPointerUp MSPointerCancel");P(BF,Y,{handler:function(gK){var eN=this.store,T8=!1,Sw=gK.type.toLowerCase().replace("ms","");Sw=uv[Sw];var RY=Rl[gK.pointerType]||gK.pointerType;Sw&1&&(gK.button===0||RY=="touch")?eN.push(gK):Sw&12&&(T8=!0);var gM=c(eN,gK.pointerId,"pointerId");
gM<0||(eN[gM]=gK,this.callback(this.manager,Sw,{pointers:eN,changedPointers:[gK],pointerType:RY,srcEvent:gK}),T8&&eN.splice(gM,1))}});
var pW={touchstart:1,touchmove:2,touchend:4,touchcancel:8};P(kc,Y,{handler:function(gK){var eN=pW[gK.type];var T8=Array.prototype.slice.call(gK.touches,0);var Sw=this.targetIds;if(eN&3&&T8.length===1)Sw[T8[0].identifier]=!0,Sw=[T8,T8];else{var RY,gM=Array.prototype.slice.call(gK.targetTouches,0),zy=Array.prototype.slice.call(gK.changedTouches,0),mw=[];if(eN===1)for(T8=0,RY=gM.length;T8<RY;T8++)Sw[gM[T8].identifier]=!0;T8=0;for(RY=zy.length;T8<RY;T8++)Sw[zy[T8].identifier]&&mw.push(zy[T8]),eN&12&&
delete Sw[zy[T8].identifier];Sw=mw.length?[C(gM.concat(mw),"identifier",!0),mw]:void 0}Sw&&this.callback(this.manager,eN,{pointers:Sw[0],changedPointers:Sw[1],pointerType:"touch",srcEvent:gK})}});
P(G8,Y,{handler:function(gK,eN,T8){var Sw=T8.pointerType=="mouse";if(T8.pointerType=="touch")this.mouse.allow=!1;else if(Sw&&!this.mouse.allow)return;eN&12&&(this.mouse.allow=!0);this.callback(gK,eN,T8)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var pU=v(qp.style,"touchAction"),mF=pU!==w;Pr.prototype={set:function(gK){gK=="compute"&&(gK=this.compute());mF&&(this.manager.element.style[pU]=gK);this.actions=gK.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var gK=[];f(this.manager.recognizers,function(eN){N(eN.options.enable,[eN])&&(gK=gK.concat(eN.getTouchAction()))});
return Z3(gK.join(" "))},
preventDefaults:function(gK){if(!mF){var eN=gK.srcEvent;gK=gK.offsetDirection;if(this.manager.session.prevented)eN.preventDefault();else{var T8=this.actions,Sw=T8.indexOf("none")>-1,RY=T8.indexOf("pan-y")>-1;T8=T8.indexOf("pan-x")>-1;if(Sw||RY&&T8||RY&&gK&6||T8&&gK&24)return this.preventSrc(eN)}}},
preventSrc:function(gK){this.manager.session.prevented=!0;gK.preventDefault()}};
Yc.prototype={defaults:{},set:function(gK){J(this.options,gK);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(gK){if(O(gK,"recognizeWith",this))return this;var eN=this.simultaneous;gK=Ry(gK,this);eN[gK.id]||(eN[gK.id]=gK,gK.recognizeWith(this));return this},
dropRecognizeWith:function(gK){if(O(gK,"dropRecognizeWith",this))return this;gK=Ry(gK,this);delete this.simultaneous[gK.id];return this},
requireFailure:function(gK){if(O(gK,"requireFailure",this))return this;var eN=this.requireFail;gK=Ry(gK,this);c(eN,gK)===-1&&(eN.push(gK),gK.requireFailure(this));return this},
dropRequireFailure:function(gK){if(O(gK,"dropRequireFailure",this))return this;gK=Ry(gK,this);gK=c(this.requireFail,gK);gK>-1&&this.requireFail.splice(gK,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(gK){return!!this.simultaneous[gK.id]},
emit:function(gK){function eN(RY){T8.manager.emit(T8.options.event+(RY?Sw&16?"cancel":Sw&8?"end":Sw&4?"move":Sw&2?"start":"":""),gK)}
var T8=this,Sw=this.state;Sw<8&&eN(!0);eN();Sw>=8&&eN(!0)},
tryEmit:function(gK){if(this.canEmit())return this.emit(gK);this.state=32},
canEmit:function(){for(var gK=0;gK<this.requireFail.length;gK++)if(!(this.requireFail[gK].state&33))return!1;return!0},
recognize:function(gK){gK=J({},gK);N(this.options.enable,[this,gK])?(this.state&56&&(this.state=1),this.state=this.process(gK),this.state&30&&this.tryEmit(gK)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
P(oy,Yc,{defaults:{pointers:1},attrTest:function(gK){var eN=this.options.pointers;return eN===0||gK.pointers.length===eN},
process:function(gK){var eN=this.state,T8=gK.eventType,Sw=eN&6;gK=this.attrTest(gK);return Sw&&(T8&8||!gK)?eN|16:Sw||gK?T8&4?eN|8:eN&2?eN|4:2:32}});
P(aY,oy,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var gK=this.options.direction;if(gK===30)return["none"];var eN=[];gK&6&&eN.push("pan-y");gK&24&&eN.push("pan-x");return eN},
directionTest:function(gK){var eN=this.options,T8=!0,Sw=gK.distance,RY=gK.direction,gM=gK.deltaX,zy=gK.deltaY;RY&eN.direction||(eN.direction&6?(RY=gM===0?1:gM<0?2:4,T8=gM!=this.pX,Sw=Math.abs(gK.deltaX)):(RY=zy===0?1:zy<0?8:16,T8=zy!=this.pY,Sw=Math.abs(gK.deltaY)));gK.direction=RY;return T8&&Sw>eN.threshold&&RY&eN.direction},
attrTest:function(gK){return oy.prototype.attrTest.call(this,gK)&&(this.state&2||!(this.state&2)&&this.directionTest(gK))},
emit:function(gK){this.pX=gK.deltaX;this.pY=gK.deltaY;var eN=sz(gK.direction);eN&&this.manager.emit(this.options.event+eN,gK);this._super.emit.call(this,gK)}});
P(im,oy,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(gK){return this._super.attrTest.call(this,gK)&&(Math.abs(gK.scale-1)>this.options.threshold||this.state&2)},
emit:function(gK){this._super.emit.call(this,gK);gK.scale!==1&&this.manager.emit(this.options.event+(gK.scale<1?"in":"out"),gK)}});
P(Kh,Yc,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(gK){var eN=this.options,T8=gK.pointers.length===eN.pointers,Sw=gK.distance<eN.threshold,RY=gK.deltaTime>eN.time;this._input=gK;if(!Sw||!T8||gK.eventType&12&&!RY)this.reset();else if(gK.eventType&1)this.reset(),this._timer=d(function(){this.state=8;this.tryEmit()},eN.time,this);
else if(gK.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(gK){this.state===8&&(gK&&gK.eventType&4?this.manager.emit(this.options.event+"up",gK):(this._input.timeStamp=Fh(),this.manager.emit(this.options.event,this._input)))}});
P(rK,oy,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(gK){return this._super.attrTest.call(this,gK)&&(Math.abs(gK.rotation)>this.options.threshold||this.state&2)}});
P(FB,oy,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return aY.prototype.getTouchAction.call(this)},
attrTest:function(gK){var eN=this.options.direction;if(eN&30)var T8=gK.velocity;else eN&6?T8=gK.velocityX:eN&24&&(T8=gK.velocityY);return this._super.attrTest.call(this,gK)&&eN&gK.direction&&Oz(T8)>this.options.velocity&&gK.eventType&4},
emit:function(gK){var eN=sz(gK.direction);eN&&this.manager.emit(this.options.event+eN,gK);this.manager.emit(this.options.event,gK)}});
P(T2,Yc,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(gK){var eN=this.options,T8=gK.pointers.length===eN.pointers,Sw=gK.distance<eN.threshold,RY=gK.deltaTime<eN.time;this.reset();if(gK.eventType&1&&this.count===0)return this.failTimeout();if(Sw&&RY&&T8){if(gK.eventType!=4)return this.failTimeout();T8=this.pTime?gK.timeStamp-this.pTime<eN.interval:!0;Sw=!this.pCenter||SN(this.pCenter,gK.center)<eN.posThreshold;this.pTime=gK.timeStamp;this.pCenter=gK.center;Sw&&T8?this.count+=1:this.count=1;this._input=gK;if(this.count%eN.taps===0)return this.hasRequireFailures()?
(this._timer=d(function(){this.state=8;this.tryEmit()},eN.interval,this),2):8}return 32},
failTimeout:function(){this._timer=d(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))}});
xK.VERSION="2.0.2";xK.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[rK,{enable:!1}],[im,{enable:!1},["rotate"]],[FB,{direction:6}],[aY,{direction:6},["swipe"]],[T2],[T2,{event:"doubletap",taps:2},["tap"]],[Kh]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Hj.prototype={set:function(gK){J(this.options,gK);return this},
stop:function(gK){this.session.stopped=gK?2:1},
recognize:function(gK){var eN=this.session;if(!eN.stopped){this.touchAction.preventDefaults(gK);var T8=this.recognizers,Sw=eN.curRecognizer;if(!Sw||Sw&&Sw.state&8)Sw=eN.curRecognizer=null;for(var RY=0,gM=T8.length;RY<gM;RY++){var zy=T8[RY];eN.stopped===2||Sw&&zy!=Sw&&!zy.canRecognizeWith(Sw)?zy.reset():zy.recognize(gK);!Sw&&zy.state&14&&(Sw=eN.curRecognizer=zy)}}},
get:function(gK){if(gK instanceof Yc)return gK;for(var eN=this.recognizers,T8=0;T8<eN.length;T8++)if(eN[T8].options.event==gK)return eN[T8];return null},
add:function(gK){if(O(gK,"add",this))return this;var eN=this.get(gK.options.event);eN&&this.remove(eN);this.recognizers.push(gK);gK.manager=this;this.touchAction.update();return gK},
remove:function(gK){if(O(gK,"remove",this))return this;var eN=this.recognizers;gK=this.get(gK);eN.splice(c(eN,gK),1);this.touchAction.update();return this},
on:function(gK,eN){var T8=this.handlers;f(z(gK),function(Sw){T8[Sw]=T8[Sw]||[];T8[Sw].push(eN)});
return this},
off:function(gK,eN){var T8=this.handlers;f(z(gK),function(Sw){eN?T8[Sw].splice(c(T8[Sw],eN),1):delete T8[Sw]});
return this},
emit:function(gK,eN){this.options.domEvents&&Qh(gK,eN);var T8=this.handlers[gK]&&this.handlers[gK].slice();if(T8&&T8.length){eN.type=gK;eN.preventDefault=function(){eN.srcEvent.preventDefault()};
gK=0;for(var Sw=T8.length;gK<Sw;gK++)T8[gK](eN)}},
destroy:function(){this.element&&CU(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
J(xK,{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:Hj,Input:Y,TouchAction:Pr,Recognizer:Yc,AttrRecognizer:oy,Tap:T2,Pan:aY,Swipe:FB,Pinch:im,Rotate:rK,Press:Kh,on:L,off:m,each:f,merge:F,extend:J,inherit:P,bindFn:n,prefixed:v});
A[W]=xK})(window,document,"Hammer");
return window.Hammer}.call({});
U.DOCUMENT=H;H[qaw]=U}return H[qaw]};/*

 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 ksp=function(H,U){if(H.length!==U.length)return!1;for(var A=0;A<H.length;++A)if(H[A]!==U[A])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var vjz=_.b(["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"]),Tzm=vjz.next();!Tzm.done;Tzm=vjz.next()){var jiw=Tzm.value,I9K=document.createElement("link");I9K.rel="stylesheet";I9K.href=jiw;document.head.appendChild(I9K)};var ntc,S0M,LRc,FRr,Na8,PR8,KR_,oth;ntc={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};S0M={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:"*"};LRc={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};FRr=/[a-z0-9*]/;Na8=/U\+/;PR8=/^arrow/;KR_=/^space(bar)?/;oth=/^escape$/;_.le={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(H,U){this._imperativeKeyBindings[H]=U;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(H,U){U=Et0(U);for(var A=0;A<U.length;++A)if(pSV(U[A],H))return!0;return!1},
_collectKeyBindings:function(){var H=this.behaviors.map(function(U){return U.keyBindings});
H.indexOf(this.keyBindings)===-1&&H.push(this.keyBindings);return H},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(A){for(var M in A)this._addKeyBinding(M,A[M])},this);
for(var H in this._imperativeKeyBindings)this._addKeyBinding(H,this._imperativeKeyBindings[H]);for(var U in this._keyBindings)this._keyBindings[U].sort(function(A,M){A=A[0].hasModifiers;return A===M[0].hasModifiers?0:A?-1:1})},
_addKeyBinding:function(H,U){Et0(H).forEach(function(A){this._keyBindings[A.event]=this._keyBindings[A.event]||[];this._keyBindings[A.event].push([A,U])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(H){var U=this._onKeyBindingEvent.bind(this,this._keyBindings[H]);this._boundKeyHandlers.push([this.keyEventTarget,H,U]);this.keyEventTarget.addEventListener(H,U)},this)},
_unlistenKeyEventListeners:function(){for(var H,U,A;this._boundKeyHandlers.length;)H=this._boundKeyHandlers.pop(),U=H[0],A=H[1],H=H[2],U.removeEventListener(A,H)},
_onKeyBindingEvent:function(H,U){this.stopKeyboardEventPropagation&&U.stopPropagation();if(!U.defaultPrevented)for(var A=0;A<H.length;A++){var M=H[A][0],W=H[A][1];if(pSV(M,U)&&(this._triggerKeyHandler(M,W,U),U.defaultPrevented))break}},
_triggerKeyHandler:function(H,U,A){var M=Object.create(H);M.keyboardEvent=A;H=new CustomEvent(H.event,{detail:M,cancelable:!0});this[U].call(this,H);H.defaultPrevented&&A.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
*/
_.MD({is:"iron-a11y-keys",_template:null,behaviors:[_.le],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(H){this.keyEventTarget=H},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(H){this.fire("keys-pressed",H.detail,{})}});_.GF={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(H){this._setFocused(H.type==="focus")},
_disabledChanged:function(H){this.setAttribute("aria-disabled",H?"true":"false");this.style.pointerEvents=H?"none":"";H?(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 Yi={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(H){this._detectKeyboardFocus(H);H||this._setPressed(!1)},
_detectKeyboardFocus:function(H){this._setReceivedFocusFromKeyboard(!this.pointerDown&&H)},
_userActivate:function(H){this.active!==H&&(this.active=H,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(H){H=H.detail.keyboardEvent;var U=_.Ig(H).localTarget;this.isLightDescendant(U)||(H.preventDefault(),H.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(H){H=_.Ig(H.detail.keyboardEvent).localTarget;this.isLightDescendant(H)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(H,U){U&&U!=H&&this.hasAttribute(U)&&this.removeAttribute(U)},
_activeChanged:function(H){this.toggles?this.setAttribute(this.ariaActiveAttribute,H?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},QiK=[_.le,
Yi];_.qy={IronButtonState:QiK,IronButtonStateImpl:Yi};_.ki={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.v0=function(H){_.v0[" "](H);this.type=H&&H.type||"default";this.key=H&&H.key;H&&"value"in H&&(this.value=H.value)};
_.v0.prototype.byKey=function(H){this.key=H;return this.value};
_.D5.Object.defineProperties(_.v0.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var H=this.type,U=this.key;if(H&&U)return TF[H]&&TF[H][U]},
set:function(H){var U=this.type,A=this.key;U&&A&&(U=TF[U]=TF[U]||{},H==null?delete U[A]:U[A]=H)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var H=TF[this.type];return H?Object.keys(H).map(function(U){return TF[this.type][U]},this):[]}}});
_.v0[" "]=function(){};
var TF={};_.MD({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(H,U,A){H=new _.v0({type:H,key:U});A!==void 0&&A!==H.value?H.value=A:this.value!==H.value&&(this.value=H.value);return H},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(H){H&&(this.value=this)},
byKey:function(H){return(new _.v0({type:this.type,key:H})).value}});var VVB;VVB=null;_.jc={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){VVB=new _.v0({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return VVB&&VVB.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(H){this.invalid=H===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(H);return!this.invalid},
_getValidity:function(H){return this.hasValidator()?this._validator.validate(H):!0}};var Hxm={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"}},UPr=[_.ki,
_.jc,Hxm];_.MD({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 _.v0({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(H){return this.name+":"+H},this)},
applyIcon:function(H,U){this.removeIcon(H);if(U=this._cloneIcon(U,this.rtlMirroring&&this._targetIsRTL(H))){var A=_.Ig(H.root||H);A.insertBefore(U,A.childNodes[0]);return H._svgIcon=U}return null},
removeIcon:function(H){H._svgIcon&&(_.Ig(H.root||H).removeChild(H._svgIcon),H._svgIcon=null)},
_targetIsRTL:function(H){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(H&&H.nodeType!==Node.ELEMENT_NODE&&(H=H.host),this.__targetIsRTL=H&&window.getComputedStyle(H).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 H=Object.create(null);_.Ig(this).querySelectorAll("[id]").forEach(function(U){H[U.id]=U});
return H},
_cloneIcon:function(H,U){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[H],this.size,U)},
_prepareSvgClone:function(H,U,A){if(H){H=H.cloneNode(!0);var M=document.createElementNS("http://www.w3.org/2000/svg","svg");U=H.getAttribute("viewBox")||"0 0 "+U+" "+U;var W="pointer-events: none; display: block; width: 100%; height: 100%;";A&&H.hasAttribute("mirror-in-rtl")&&(W+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");M.setAttribute("viewBox",U);M.setAttribute("preserveAspectRatio","xMidYMid meet");M.setAttribute("focusable","false");M.style&&(M.style.cssText=
W);M.appendChild(H).removeAttribute("id");return M}return null}});var AIg=function(H){this.multi=!1;this.selection=[];this.selectCallback=H};
_.X=AIg.prototype;_.X.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.X.clear=function(H){this.selection.slice().forEach(function(U){(!H||H.indexOf(U)<0)&&this.setItemSelected(U,!1)},this)};
_.X.isSelected=function(H){return this.selection.indexOf(H)>=0};
_.X.setItemSelected=function(H,U){if(H!=null&&U!==this.isSelected(H)){if(U)this.selection.push(H);else{var A=this.selection.indexOf(H);A>=0&&this.selection.splice(A,1)}this.selectCallback&&this.selectCallback(H,U)}};
_.X.select=function(H){this.multi?this.toggle(H):this.get()!==H&&(this.setItemSelected(this.get(),!1),this.setItemSelected(H,!0))};
_.X.toggle=function(H){this.setItemSelected(H,!this.isSelected(H))};_.sc={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 AIg(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Ig(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(H){return this.items?this.items.indexOf(H):-1},
select:function(H){this.selected=H},
selectPrevious:function(){var H=this.items.length,U=H-1;this.selected!==void 0&&(U=(Number(this._valueToIndex(this.selected))-1+H)%H);this.selected=this._indexToValue(U)},
selectNext:function(){var H=0;this.selected!==void 0&&(H=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(H)},
selectIndex:function(H){this.select(this._indexToValue(H))},
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(H){this.listen(this,H,"_activateHandler")},
_removeListener:function(H){this.unlisten(this,H,"_activateHandler")},
_activateEventChanged:function(H,U){this._removeListener(U);this._addListener(H)},
_updateItems:function(){var H=_.Ig(this).queryDistributedElements(this.selectable||"*");H=Array.prototype.filter.call(H,this._bindFilterItem);this._setItems(H)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var H=this._valueToItem(this.selected);H?this._selection.select(H):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(H){return!this._excludedLocalNames[H.localName]},
_valueToItem:function(H){return H==null?null:this.items[this._valueToIndex(H)]},
_valueToIndex:function(H){if(this.attrForSelected)for(var U=0,A;A=this.items[U];U++){if(this._valueForItem(A)==H)return U}else return Number(H)},
_indexToValue:function(H){if(this.attrForSelected){if(H=this.items[H])return this._valueForItem(H)}else return H},
_valueForItem:function(H){if(!H)return null;if(!this.attrForSelected)return H=this.indexOf(H),H===-1?null:H;var U=H[v1(this.attrForSelected)];return U!=void 0?U:H.getAttribute(this.attrForSelected)},
_applySelection:function(H,U){this.selectedClass&&this.toggleClass(this.selectedClass,U,H);this.selectedAttribute&&this.toggleAttribute.call(H,this.selectedAttribute,U);this._selectionChange();this.fire("iron-"+(U?"select":"deselect"),{item:H})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(H){return _.Ig(H).observeNodes(function(U){this._updateItems();this._updateSelected();this.fire("iron-items-changed",U,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(H){H=H.target;for(var U=this.items;H&&H!=this;){var A=U.indexOf(H);if(A>=0){U=this._indexToValue(A);this._itemActivate(U,H);break}H=H.parentNode}},
_itemActivate:function(H,U){this.fire("iron-activate",{selected:H,item:U},{cancelable:!0}).defaultPrevented||this.select(H)}};var Mdh={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(H){this.multi?this._toggleSelected(H):this.selected=H},
multiChanged:function(H){this._selection.multi=H;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(H){return this._indexToValue(this.indexOf(H))},this).filter(function(H){return H!=null},this)):_.sc._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(H){H=H||[];H=(this._valuesToItems(H)||[]).filter(function(A){return A!==null&&A!==void 0});
this._selection.clear(H);for(var U=0;U<H.length;U++)this._selection.setItemSelected(H[U],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var H=this._selection.get();this.multi?(this._setSelectedItems(H),this._setSelectedItem(H.length?H[0]:null)):H!==null&&H!==void 0?(this._setSelectedItems([H]),this._setSelectedItem(H)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(H){var U=this.selectedValues.indexOf(H);U<0?this.push("selectedValues",H):this.splice("selectedValues",U,1)},
_valuesToItems:function(H){return H==null?null:H.map(function(U){return this._valueToItem(U)},this)}},Wcm=[_.sc,
Mdh];var wun;
_.IU={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(H){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var U=this._valueToItem(H);U&&U.hasAttribute("disabled")||(this._setFocusedItem(U),Mdh.select.apply(this,arguments))},
_resetTabindices:function(){var H=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(U){U.setAttribute("tabindex",U===H?"0":"-1");U.setAttribute("aria-selected",this._selection.isSelected(U))},this)},
_updateMultiselectable:function(H){H?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(H){if(this._MODIFIER_KEYS.indexOf(H.key)===-1){this.cancelDebouncer("_clearSearchText");var U=this._searchText||"";U+=(H.key&&H.key.length==1?H.key:String.fromCharCode(H.keyCode)).toLocaleLowerCase();H=U.length;for(var A=0,M;M=this.items[A];A++)if(!M.hasAttribute("disabled")){var W=this.attrForItemTitle||"textContent";W=(M[W]||M.getAttribute(W)||"").trim();if(!(W.length<H)&&W.slice(0,H).toLocaleLowerCase()==U){this._setFocusedItem(M);break}}this._searchText=U;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var H=this.items.length,U=Number(this.indexOf(this.focusedItem)),A=1;A<H+1;A++){var M=this.items[(U-A+H)%H];if(!M.hasAttribute("disabled")){var W=_.Ig(M).getOwnerRoot()||document;this._setFocusedItem(M);if(_.Ig(W).activeElement==M)break}}},
_focusNext:function(){for(var H=this.items.length,U=Number(this.indexOf(this.focusedItem)),A=1;A<H+1;A++){var M=this.items[(U+A)%H];if(!M.hasAttribute("disabled")){var W=_.Ig(M).getOwnerRoot()||document;this._setFocusedItem(M);if(_.Ig(W).activeElement==M)break}}},
_applySelection:function(H,U){U?H.setAttribute("aria-selected","true"):H.setAttribute("aria-selected","false");_.sc._applySelection.apply(this,arguments)},
_focusedItemChanged:function(H,U){U&&U.setAttribute("tabindex","-1");!H||H.hasAttribute("disabled")||this.disabled||(H.setAttribute("tabindex","0"),H.focus())},
_onIronItemsChanged:function(H){H.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var H=this.getAttribute("tabindex");_.IU._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",H);_.IU._shiftTabPressed=!1},1)},
_onFocus:function(H){!_.IU._shiftTabPressed&&(H=_.Ig(H).rootTarget,H===this||typeof H.tabIndex==="undefined"||this.isLightDescendant(H))&&(this._defaultFocusAsync=this.async(function(){var U=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);U?this._setFocusedItem(U):this.items[0]&&this._focusNext()}))},
_onUpKey:function(H){this._focusPrevious();H.detail.keyboardEvent.preventDefault()},
_onDownKey:function(H){this._focusNext();H.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var H=this.focusedItem;H&&H.blur()},
_onKeydown:function(H){this.keyboardEventMatchesKeys(H,"up down esc")||this._focusWithKeyboardEvent(H);H.stopPropagation()},
_activateHandler:function(H){_.sc._activateHandler.call(this,H);H.stopPropagation()},
_disabledChanged:function(H){H?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};wun=[Wcm,_.le,_.IU];_.Xuh={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(H){this.focusedItem&&(this.focusedItem.click(),H.detail.keyboardEvent.preventDefault())},
_onDownKey:function(H){this.focusedItem&&(this.focusedItem.click(),H.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(H){return H.ctrlKey||H.shiftKey||H.altKey||H.metaKey},
_onLeftKey:function(H){this._isSpecialKey(H.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),H.detail.keyboardEvent.preventDefault())},
_onRightKey:function(H){this._isSpecialKey(H.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),H.detail.keyboardEvent.preventDefault())},
_onKeydown:function(H){this.keyboardEventMatchesKeys(H,"up down left right esc")||this._focusWithKeyboardEvent(H)}};
_.ixm=[wun,_.Xuh];var bxw;bxw=new Set;_.Qo={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):(bxw.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(H){this.resizerShouldNotify(H)&&this._notifyDescendant(H)},this),this._fireResize())},
assignParentResizable:function(H){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=H)&&H._interestedResizables.indexOf(this)===-1&&(H._interestedResizables.push(this),H._subscribeIronResize(this))},
stopResizeNotificationsFor:function(H){var U=this._interestedResizables.indexOf(H);U>-1&&(this._interestedResizables.splice(U,1),this._unsubscribeIronResize(H))},
_subscribeIronResize:function(H){H.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(H){H.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(H){this._notifyingDescendant?H.stopPropagation():LK||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(H){var U=_.Ig(H).rootTarget;U!==this&&(U.assignParentResizable(this),this._notifyDescendant(U),H.stopPropagation())},
_parentResizableChanged:function(H){H&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(H){this.isAttached&&(this._notifyingDescendant=!0,H.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var H=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function A(){document.removeEventListener("readystatechange",A);H()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(U){U!==this&&U._findParent()},this):(bxw.forEach(function(U){U!==this&&U._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?bxw.delete(this):bxw.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
*/
_.dPn={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(H,U){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);U&&(H==="document"?this.scrollTarget=this._doc:typeof H==="string"?this.scrollTarget=(U=this.domHost)&&U.$?U.$[H]:_.Ig(this.ownerDocument).querySelector("#"+H):this._isValidScrollTarget()&&(this._oldScrollTarget=H,this._toggleScrollListener(this._shouldHaveListener,H)))},
_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(H){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,H):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
H)},set _scrollLeft(H){this.scrollTarget===this._doc?window.scrollTo(H,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=H)},scroll:function(H,U){if(typeof H==="object"){var A=H.left;U=H.top}else A=H;A=A||0;U=U||0;this.scrollTarget===this._doc?window.scrollTo(A,U):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=A,this.scrollTarget.scrollTop=U)},
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(H,U){U=U===this._doc?window:U;H?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),U.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(U.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(H){this._shouldHaveListener=H;this._toggleScrollListener(H,this.scrollTarget)}};_.MD({is:"iron-selector",_template:null,behaviors:[Wcm]});var Vo={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(H){if(H.timing)for(var U in H.timing)this.animationTiming[U]=H.timing[U];return this.animationTiming},
setPrefixedProperty:function(H,U,A){for(var M={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[U],W,w=0;W=M[w];w++)H.style[W]=A;H.style[U]=A},
complete:function(){}};_.MD({is:"fade-in-animation",_template:null,behaviors:[Vo],configure:function(H){return this._effect=new KeyframeEffect(H.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(H))}});_.MD({is:"fade-out-animation",_template:null,behaviors:[Vo],configure:function(H){return this._effect=new KeyframeEffect(H.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(H))}});var Ox2=[{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(H,U){for(var A in U)H[A]=U[A]},
_cloneConfig:function(H){var U={isClone:!0};this._copyProperties(U,H);return U},
_getAnimationConfigRecursive:function(H,U,A){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 M=H?this.animationConfig[H]:this.animationConfig;Array.isArray(M)||(M=[M]);if(M)for(var W,w=0;W=M[w];w++)if(W.animatable)W.animatable._getAnimationConfigRecursive(W.type||H,U,A);else if(W.id){var d=U[W.id];
d?(d.isClone||(U[W.id]=this._cloneConfig(d),d=U[W.id]),this._copyProperties(d,W)):U[W.id]=W}else A.push(W)}},
getAnimationConfig:function(H){var U={},A=[];this._getAnimationConfigRecursive(H,U,A);for(var M in U)A.push(U[M]);return A}},
{_configureAnimations:function(H){var U=[],A=[];if(H.length>0)for(var M,W=0;M=H[W];W++){var w=document.createElement(M.name);if(w.isNeonAnimation){var d=null;w.configure||(w.configure=function(){return null});
d=w.configure(M);A.push({result:d,config:M})}else console.warn(this.is+":",M.name,"not found!")}for(H=0;H<A.length;H++){d=A[H].result;M=A[H].config;try{typeof d.cancel!="function"&&(d=document.timeline.play(d))}catch(O){d=null,console.warn("Couldnt play","(",M.name,").",O)}d&&U.push({neonAnimation:w,config:M,animation:d})}return U},
_shouldComplete:function(H){for(var U=!0,A=0;A<H.length;A++)if(H[A].animation.playState!="finished"){U=!1;break}return U},
_complete:function(H){for(var U=0;U<H.length;U++)H[U].neonAnimation.complete(H[U].config);for(U=0;U<H.length;U++)H[U].animation.cancel()},
playAnimation:function(H,U){var A=this.getAnimationConfig(H);if(A){this._active=this._active||{};this._active[H]&&(this._complete(this._active[H]),delete this._active[H]);var M=this._configureAnimations(A);if(M.length==0)this.fire("neon-animation-finish",U,{bubbles:!1});else for(this._active[H]=M,A=0;A<M.length;A++)M[A].animation.onfinish=function(){this._shouldComplete(M)&&(this._complete(M),delete this._active[H],this.fire("neon-animation-finish",U,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var H in this._active){var U=this._active[H],A;for(A in U)U[A].animation&&U[A].animation.cancel&&U[A].animation.cancel()}this._active={}}}];var uU=function(H,U){H=Error.call(this,H);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.arg=U;this.name=this.constructor.name;this.constructor=uU;this.__proto__=uU.prototype};
_.R(uU,Error);var uYn=L3(function(H){var U=function(){return H.apply(this,arguments)||this};
_.R(U,H);U.prototype._marshalArgs=function(A,M,W){M=H.prototype._marshalArgs.call(this,A,M,W);if(this._legacyUndefinedCheck&&M.length>1)for(W=0;W<M.length;W++)if(M[W]===void 0||A[W].wildcard&&M[W].base===void 0)throw A=A[W].name,new uU("Argument '"+A+"' is undefined.",A);return M};
U.prototype._addPropertyEffect=function(A,M,W){return H.prototype._addPropertyEffect.call(this,A,M,m1N(W,W&&W.info&&W.info.methodName))};
U._addTemplatePropertyEffect=function(A,M,W){return H._addTemplatePropertyEffect.call(this,A,M,m1N(W))};
return U}),Zxh=_.MD.Class;
_.MD.Class=function(H,U){return Zxh(H,function(A){return U?U(uYn(A)):uYn(A)})};
var fBw=L3(function(H){var U=uYn(H);H=function(){return U.apply(this,arguments)||this};
_.R(H,U);_.D5.Object.defineProperties(H.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return H}),JI2=Eo.mixin;
Eo.mixin=JI2?function(H){return fBw(JI2(H))}:fBw;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.HY=_.qy.IronButtonState;var SGc=pK;_.gt0="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");var ttM=function(){return Math.random().toString(36).substring(7).split("").join(".")},CRt="@@redux/INIT"+ttM(),Bar="@@redux/REPLACE"+ttM();var rnM=typeof Symbol==="function"&&Symbol.observable||"@@observable";var KcB=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var o4w="top right bottom left width height size weight".split(" "),Fc2=typeof MutationObserver!=="undefined",P$y=KcB&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,sHB=function(){this.mutationEventsAdded_=this.JSC$12060_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=eXF(this.refresh.bind(this))},n4k=function(H,
U){var A=H.observers_;
U=A.indexOf(U);~U&&A.splice(U,1);!A.length&&H.JSC$12060_connected_&&KcB&&H.JSC$12060_connected_&&(document.removeEventListener("transitionend",H.onTransitionEnd_),window.removeEventListener("resize",H.refresh),H.mutationsObserver_&&(H.mutationsObserver_.disconnect(),P$y&&(HTMLElement.prototype.attachShadow=P$y)),H.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",H.refresh),H.mutationsObserver_=null,H.mutationEventsAdded_=!1,H.JSC$12060_connected_=!1)};
sHB.prototype.refresh=function(){Njk(this)&&this.refresh()};
var Njk=function(H){H=H.observers_.filter(function(U){return SPg(U),U.activeObservations_.length>0});
H.forEach(function(U){return puh(U)});
return H.length>0},Lck=function(H){if(KcB&&!H.JSC$12060_connected_){document.addEventListener("transitionend",H.onTransitionEnd_);
window.addEventListener("resize",H.refresh);if(Fc2){H.mutationsObserver_=new MutationObserver(H.refresh);var U={attributes:!0,childList:!0,characterData:!0,subtree:!0};H.mutationsObserver_.observe(document,U);P$y&&(function W(M){var w=M.shadowRoot;w&&(H.mutationsObserver_.observe(w,U),W(w));for(M=M.firstElementChild;M;)W(M),M=M.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var M=P$y.apply(this,_.QY.apply(0,arguments));
H.mutationsObserver_.observe(M,U);return M})}else document.addEventListener("DOMSubtreeModified",H.refresh),H.mutationEventsAdded_=!0;
H.JSC$12060_connected_=!0}};
sHB.prototype.onTransitionEnd_=function(H){var U=H.propertyName===void 0?"":H.propertyName;o4w.some(function(A){return!!~U.indexOf(A)})&&this.refresh()};
var Row=null;var E42=function(H,U){for(var A=_.b(Object.keys(U)),M=A.next();!M.done;M=A.next())M=M.value,Object.defineProperty(H,M,{value:U[M],enumerable:!1,writable:!1,configurable:!0})};var Ux=function(H){var U;return(H==null?void 0:(U=H.ownerDocument)==null?void 0:U.defaultView)||globalThis};var mPK={x:0,y:0,width:0,height:0},g4h=typeof SVGGraphicsElement!=="undefined"?function(H){return H instanceof Ux(H).SVGGraphicsElement}:function(H){return H instanceof Ux(H).SVGElement&&typeof H.getBBox==="function"};var aBw=function(H){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=H};
aBw.prototype.isActive=function(){var H=this.target;if(KcB)if(g4h(H)){var U=H.getBBox();U={x:0,y:0,width:U.width,height:U.height}}else{var A=H.clientWidth,M=H.clientHeight;if(A||M){var W=Ux(H).getComputedStyle(H);U=fv(W["padding-top"]);var w=fv(W["padding-left"]),d=w+fv(W["padding-right"]),O=U+fv(W["padding-bottom"]),f=fv(W.width),J=fv(W.height);W.boxSizing==="border-box"&&(Math.round(f+d)!==A&&(f-=D1h(W,"left","right")+d),Math.round(J+O)!==M&&(J-=D1h(W,"top","bottom")+O));H!==Ux(H).document.documentElement&&
(H=Math.round(f+d)-A,M=Math.round(J+O)-M,Math.abs(H)!==1&&(f-=H),Math.abs(M)!==1&&(J-=M));U={x:w,y:U,width:f,height:J}}else U=mPK}else U=mPK;this.contentRect_=U;return U.width!==this.broadcastWidth||U.height!==this.broadcastHeight};var xPK=function(H,U){var A=U.x;var M=U.y;var W=U.width;U=U.height;var w=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);E42(w,{x:A,y:M,width:W,height:U,top:M,right:A+W,bottom:U+M,left:A});E42(this,{target:H,contentRect:w})};var zow=function(H,U){var A=Row;this.activeObservations_=[];this.observations_=new Map;if(typeof H!=="function")throw new TypeError("Xe");this.callback_=H;this.controller_=A;this.callbackCtx_=U};
zow.prototype.observe=function(H){if(H===void 0)throw new TypeError("Ye");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(H instanceof Ux(H).Element))throw new TypeError("Ze");var U=this.observations_;U.has(H)||(U.set(H,new aBw(H)),H=this.controller_,~H.observers_.indexOf(this)||H.observers_.push(this),H.JSC$12060_connected_||Lck(H),this.controller_.refresh())}};
zow.prototype.unobserve=function(H){if(H===void 0)throw new TypeError("Ye");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(H instanceof Ux(H).Element))throw new TypeError("Ze");var U=this.observations_;U.has(H)&&(U.delete(H),U.size||n4k(this.controller_,this))}};
zow.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();n4k(this.controller_,this)};
var SPg=function(H){H.activeObservations_.splice(0);H.observations_.forEach(function(U){U.isActive()&&H.activeObservations_.push(U)})},puh=function(H){if(H.activeObservations_.length>0){var U=H.callbackCtx_,A=H.activeObservations_.map(function(M){var W=M.target,w=M.contentRect_;
M.broadcastWidth=w.width;M.broadcastHeight=w.height;return new xPK(W,w)});
H.callback_.call(U,A,U);H.activeObservations_.splice(0)}};var Af=function(H){if(!(this instanceof Af))throw new TypeError("$e");if(!arguments.length)throw new TypeError("Ye");Row||(Row=new sHB);this.observer_=new zow(H,this)};
Af.prototype.observe=function(H){this.observer_.observe(H)};
Af.prototype.unobserve=function(H){this.observer_.unobserve(H)};
Af.prototype.disconnect=function(){this.observer_.disconnect()};var m3M=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:Af;var yk={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchMove_Departed:8,TouchEnd:9,TouchCancel:10,0:"MouseUp",1:"MouseDown",2:"Click",3:"ContextMenu",4:"DblClick",5:"Focus",6:"Blur",7:"TouchStart",8:"TouchMove_Departed",9:"TouchEnd",10:"TouchCancel"},eU={"2D":0,WebGL:1,WebGL2:2};eU[eU["2D"]]="2D";eU[1]="WebGL";eU[2]="WebGL2";var lmN={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},GzE={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},$1_={},q08={},hXM={},SU=function(H){return JT("Node",H,"childNodes")},Nj=function(H){return JT("Node",H,"parentNode")},pv=function(H){return JT("Node",H,"parentElement")},Enc=function(H){return JT("Node",H,
"textContent")},$zc=function(H){return kzt(H,"getRootNode")()},og=function(H){return H&&"host"in H?JT("ShadowRoot",H,"host"):null},Fg=function(H){return H&&"shadowRoot"in H?JT("Element",H,"shadowRoot"):null};var mz=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
mz.prototype.getId=function(H){if(!H)return-1;var U,A;return(A=(U=this.nodeMetaMap.get(H)||null)==null?void 0:U.id)!=null?A:-1};
mz.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var C$z=function(H,U){var A=H.getId(U);H.idNodeMap.delete(A);U.childNodes&&U.childNodes.forEach(function(M){return C$z(H,M)})};
mz.prototype.has=function(H){return this.idNodeMap.has(H)};
mz.prototype.add=function(H,U){this.idNodeMap.set(U.id,H);this.nodeMetaMap.set(H,U)};
mz.prototype.replace=function(H,U){var A=this.idNodeMap.get(H)||null;A&&(A=this.nodeMetaMap.get(A))&&this.nodeMetaMap.set(U,A);this.idNodeMap.set(H,U)};
mz.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var AL_=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,M2V=/^(?:[a-z+]+:)?\/\//i,Wec=/^www\..*/i,wU4=/^(data:)([^,]*),(.*)/i;var bB7=1,OB4=RegExp("[^a-z0-9-_:]"),Lv,gnF,fpt=/^[^ \t\n\r\u000c]+/,ZB0=/^[, \t\n\r\u000c]+/,Fe7=new WeakMap;var D2,cx=function(H){return D2?function(){var U=_.QY.apply(0,arguments);try{return H.apply(null,_.vI(U))}catch(A){if(!D2||D2(A)!==!0)throw A;}}:H};var M$=function(H){this.generateIdFn=H;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
M$.prototype.getId=function(H,U,A,M){A=A||tdh(this,H);H=M||cIh(this,H);M=A.get(U);M||(M=this.generateIdFn(),A.set(U,M),H.set(M,U));return M};
M$.prototype.getIds=function(H,U){var A=this,M=tdh(this,H),W=cIh(this,H);return U.map(function(w){return A.getId(H,w,M,W)})};
M$.prototype.reset=function(H){H?(this.iframeIdToRemoteIdMap.delete(H),this.iframeRemoteIdToIdMap.delete(H)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var tdh=function(H,U){var A=H.iframeIdToRemoteIdMap.get(U);A||(A=new Map,H.iframeIdToRemoteIdMap.set(U,A));return A},cIh=function(H,U){var A=H.iframeRemoteIdToIdMap.get(U);
A||(A=new Map,H.iframeRemoteIdToIdMap.set(U,A));return A};var a7h=function(H){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new M$(dzt);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=H.mutationCb;this.wrappedEmit=H.wrappedEmit;this.stylesheetManager=H.stylesheetManager;this.recordCrossOriginIframes=H.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new M$(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=H.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$12124_handleMessage.bind(this))},cMc=function(H,U){H.iframes.set(U,!0);
U.contentWindow&&H.crossOriginIframeMap.set(U.contentWindow,U)},$Ah=function(H,U){H.loadListener=U},rMc=function(H,U,A){H.mutationCb({adds:[{parentId:H.mirror.getId(U),
nextId:null,node:A}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(H.recordCrossOriginIframes){var M;(M=U.contentWindow)==null||M.addEventListener("message",H.JSC$12124_handleMessage.bind(H))}var W;(W=H.loadListener)==null||W.call(H,U);U.contentDocument&&U.contentDocument.adoptedStyleSheets&&U.contentDocument.adoptedStyleSheets.length>0&&dAE(H.stylesheetManager,U.contentDocument.adoptedStyleSheets,H.mirror.getId(U.contentDocument))};
a7h.prototype.JSC$12124_handleMessage=function(H){if(H.data.type==="rrweb"&&H.origin===H.data.origin&&H.source){var U=this.crossOriginIframeMap.get(H.source);U&&(U=yIm(this,U,H.data.event))&&this.wrappedEmit(U,H.data.isCheckout)}};
var yIm=function(H,U,A){switch(A.type){case 2:H.crossOriginIframeMirror.reset(U);H.crossOriginIframeStyleMirror.reset(U);Bjw(H,A.data.node,U);var M=A.data.node.id;H.crossOriginIframeRootIdMap.set(U,M);rI3(H,A.data.node,M);return{timestamp:A.timestamp,type:3,data:{source:0,adds:[{parentId:H.mirror.getId(U),nextId:null,node:A.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return A;case 5:return WY(H,A.data.payload,U,["id","parentId","previousId","nextId"]),A;case 3:switch(A.data.source){case 0:return A.data.adds.forEach(function(W){WY(H,
W,U,["parentId","nextId","previousId"]);Bjw(H,W.node,U);var w=H.crossOriginIframeRootIdMap.get(U);w&&rI3(H,W.node,w)}),A.data.removes.forEach(function(W){WY(H,W,U,["parentId",
"id"])}),A.data.attributes.forEach(function(W){WY(H,W,U,["id"])}),A.data.texts.forEach(function(W){WY(H,W,U,["id"])}),A;
case 12:case 6:case 1:return A.data.positions.forEach(function(W){WY(H,W,U,["id"])}),A;
case 7:case 2:case 3:case 9:case 5:return WY(H,A.data,U,["id"]),A;case 8:case 13:return WY(H,A.data,U,["id"]),eo3(H,A.data,U,["styleId"]),A;case 10:return A;case 14:return A.data.ranges.forEach(function(W){WY(H,W,U,["start","end"])}),A;
case 15:return WY(H,A.data,U,["id"]),eo3(H,A.data,U,["styleIds"]),(M=A.data.styles)==null||M.forEach(function(W){eo3(H,W,U,["styleId"])}),A}}return!1};
a7h.prototype.replace=function(H,U,A,M){M=_.b(M);for(var W=M.next();!W.done;W=M.next())if(W=W.value,Array.isArray(U[W])||typeof U[W]==="number")Array.isArray(U[W])?U[W]=H.getIds(A,U[W]):U[W]=H.getId(A,U[W]);return U};
var WY=function(H,U,A,M){H.replace(H.crossOriginIframeMirror,U,A,M)},eo3=function(H,U,A,M){H.replace(H.crossOriginIframeStyleMirror,U,A,M)},Bjw=function(H,U,A){WY(H,U,A,["id",
"rootId"]);"childNodes"in U&&U.childNodes.forEach(function(M){Bjw(H,M,A)})},rI3=function(H,U,A){U.type===0||U.rootId||(U.rootId=A);
"childNodes"in U&&U.childNodes.forEach(function(M){rI3(H,M,A)})};var Ip_=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},DP3=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.X=DP3.prototype;_.X.getId=function(H){var U;return(U=this.styleIDMap.get(H))!=null?U:-1};
_.X.has=function(H){return this.styleIDMap.has(H)};
_.X.add=function(H,U){if(this.has(H))return this.getId(H);U=U===void 0?this.id++:U;this.styleIDMap.set(H,U);this.idStyleMap.set(U,H);return U};
_.X.getStyle=function(H){return this.idStyleMap.get(H)||null};
_.X.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.X.generateId=function(){return this.id++};var $Pm=function(){this.length=0;this.tail=this.head=null};
$Pm.prototype.get=function(H){if(H>=this.length)throw Error("af");for(var U=this.head,A=0;A<H;A++){var M=void 0;U=((M=U)==null?void 0:M.next)||null}return U};
var lBm=function(H,U){var A={value:U,previous:null,next:null};U.__ln=A;if(U.previousSibling&&"__ln"in U.previousSibling){var M=U.previousSibling.__ln.next;A.next=M;A.previous=U.previousSibling.__ln;U.previousSibling.__ln.next=A;M&&(M.previous=A)}else U.nextSibling&&"__ln"in U.nextSibling&&U.nextSibling.__ln.previous?(M=U.nextSibling.__ln.previous,A.previous=M,A.next=U.nextSibling.__ln,U.nextSibling.__ln.previous=A,M&&(M.next=A)):(H.head&&(H.head.previous=A),A.next=H.head,H.head=A);A.next===null&&
(H.tail=A);H.length++};
$Pm.prototype.removeNode=function(H){var U=H.__ln;this.head&&(U.previous?(U.previous.next=U.next)?U.next.previous=U.previous:this.tail=U.previous:(this.head=U.next)?this.head.previous=null:this.tail=null,H.__ln&&delete H.__ln,this.length--)};
var Gog=function(H,U){return H+"@"+U},T3E=function(){var H=this;
this.locked=this.JSC$12155_frozen=!1;this.texts=[];this.attributes=[];this.attributeMap=new WeakMap;this.removes=[];this.mapRemoves=[];this.movedMap={};this.addedSet=new Set;this.movedSet=new Set;this.droppedSet=new Set;this.removesSubTreeCache=new Set;this.processMutations=function(U){U.forEach(H.JSC$12155_processMutation);H.emit()};
this.emit=function(){if(!H.JSC$12155_frozen&&!H.locked){for(var U=[],A=new Set,M=new $Pm,W=function(P){for(var n=-2;n===-2;)n=(P=P&&P.nextSibling)&&H.mirror.getId(P);return n},w=function(P){var n=Nj(P);
if(n&&GG7(P)){var N=!1;if(P.nodeType===Node.TEXT_NODE){var L=n.tagName;if(L==="TEXTAREA")return;L==="STYLE"&&H.addedSet.has(n)&&(N=!0)}n=Px(n)?H.mirror.getId(lpc(P)):H.mirror.getId(n);L=W(P);if(n===-1||L===-1)return lBm(M,P);if(N=Ee(P,{doc:H.doc,mirror:H.mirror,blockClass:H.blockClass,blockSelector:H.blockSelector,maskTextClass:H.maskTextClass,maskTextSelector:H.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:H.inlineStylesheet,maskInputOptions:H.maskInputOptions,maskTextFn:H.maskTextFn,
maskInputFn:H.maskInputFn,slimDOMOptions:H.slimDOMOptions,dataURLOptions:H.dataURLOptions,recordCanvas:H.recordCanvas,inlineImages:H.inlineImages,onSerialize:function(m){m.nodeName==="IFRAME"&&H.mirror.nodeMetaMap.get(m)&&cMc(H.iframeManager,m);Dzc(m,H.mirror)&&yMV(H.stylesheetManager,m);P&&Fg(P)&&BgK(H.shadowDomManager,Fg(P),H.doc)},
onIframeLoad:function(m,z){rMc(H.iframeManager,m,z);m.contentWindow&&m.contentDocument&&ee_(H.shadowDomManager,m.contentWindow.Element,m.contentDocument)},
onStylesheetLoad:function(m,z){DAc(H.stylesheetManager,m,z)},
cssCaptured:N}))U.push({parentId:n,nextId:L,node:N}),A.add(N.id)}};H.mapRemoves.length;)C$z(H.mirror,H.mapRemoves.shift());
for(var d=_.b(H.movedSet),O=d.next();!O.done;O=d.next())O=O.value,hjh(H.removesSubTreeCache,O)&&!H.movedSet.has(Nj(O))||w(O);d=_.b(H.addedSet);for(O=d.next();!O.done;O=d.next())O=O.value,vn4(H.droppedSet,O)||hjh(H.removesSubTreeCache,O)?vn4(H.movedSet,O)?w(O):H.droppedSet.add(O):w(O);for(O=null;M.length;){d=null;if(O){var f=H.mirror.getId(Nj(O.value)),J=W(O.value);f!==-1&&J!==-1&&(d=O)}if(!d)for(O=M.tail;O;){var F=O;O=O.previous;if(F&&(f=H.mirror.getId(Nj(F.value)),W(F.value)!==-1))if(f!==-1){d=F;
break}else if((f=Nj(F.value))&&f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(f=og(f),H.mirror.getId(f)!==-1)){d=F;break}}if(!d){for(;M.head;)M.removeNode(M.head.value);break}O=d.previous;M.removeNode(d.value);w(d.value)}w={texts:H.texts.map(function(P){var n=P.node,N=Nj(n);N&&N.tagName==="TEXTAREA"&&H.genTextAreaValueMutation(N);return{id:H.mirror.getId(n),value:P.value}}).filter(function(P){return!A.has(P.id)}).filter(function(P){return H.mirror.has(P.id)}),
attributes:H.attributes.map(function(P){var n=P.attributes;if(typeof n.style==="string"){var N=JSON.stringify(P.styleDiff),L=JSON.stringify(P._unchangedStyles);N.length<n.style.length&&(N+L).split("var(").length===n.style.split("var(").length&&(n.style=P.styleDiff)}return{id:H.mirror.getId(P.node),attributes:n}}).filter(function(P){return!A.has(P.id)}).filter(function(P){return H.mirror.has(P.id)}),
removes:H.removes,adds:U};if(w.texts.length||w.attributes.length||w.removes.length||w.adds.length)H.texts=[],H.attributes=[],H.attributeMap=new WeakMap,H.removes=[],H.addedSet=new Set,H.movedSet=new Set,H.droppedSet=new Set,H.removesSubTreeCache=new Set,H.movedMap={},H.mutationCb(w)}};
this.genTextAreaValueMutation=function(U){var A=H.attributeMap.get(U);A||(A={node:U,attributes:{},styleDiff:{},_unchangedStyles:{}},H.attributes.push(A),H.attributeMap.set(U,A));var M=Array.from(SU(U),function(W){return Enc(W)||""}).join("");
A.attributes.value=Qwr({element:U,maskInputOptions:H.maskInputOptions,tagName:U.tagName,type:HBM(U),value:M,maskInputFn:H.maskInputFn})};
this.JSC$12155_processMutation=function(U){if(!B37(U.target,H.mirror,H.slimDOMOptions))switch(U.type){case "characterData":var A=Enc(U.target);x8(U.target,H.blockClass,H.blockSelector,!1)||A===U.oldValue||H.texts.push({value:Sp0(U.target,H.maskTextClass,H.maskTextSelector,!0)&&A?H.maskTextFn?H.maskTextFn(A,yLc(U.target)):A.replace(/[\S]/g,"*"):A,node:U.target});break;case "attributes":A=U.target;var M=U.attributeName,W=U.target.getAttribute(M);if(M==="value"){var w=HBM(A);W=Qwr({element:A,maskInputOptions:H.maskInputOptions,
tagName:A.tagName,type:w,value:W,maskInputFn:H.maskInputFn})}if(x8(U.target,H.blockClass,H.blockSelector,!1)||W===U.oldValue)break;w=H.attributeMap.get(U.target);if(A.tagName==="IFRAME"&&M==="src"&&!H.keepIframeSrcFn(W))if(A.contentDocument)break;else M="rr_src";w||(w={node:U.target,attributes:{},styleDiff:{},_unchangedStyles:{}},H.attributes.push(w),H.attributeMap.set(U.target,w));M==="type"&&A.tagName==="INPUT"&&(U.oldValue||"").toLowerCase()==="password"&&A.setAttribute("data-rr-is-password","true");
if(!sCE(A.tagName,M))if(w.attributes[M]=Pw7(H.doc,A.tagName.toLowerCase(),M.toLowerCase(),W),M==="style"){if(!H.unattachedDoc)try{H.unattachedDoc=document.implementation.createHTMLDocument()}catch(J){H.unattachedDoc=H.doc}M=H.unattachedDoc.createElement("span");U.oldValue&&M.setAttribute("style",U.oldValue);W=_.b(Array.from(A.style));for(var d=W.next();!d.done;d=W.next()){d=d.value;var O=A.style.getPropertyValue(d),f=A.style.getPropertyPriority(d);O!==M.style.getPropertyValue(d)||f!==M.style.getPropertyPriority(d)?
w.styleDiff[d]=f===""?O:[O,f]:w._unchangedStyles[d]=[O,f]}M=_.b(Array.from(M.style));for(W=M.next();!W.done;W=M.next())W=W.value,A.style.getPropertyValue(W)===""&&(w.styleDiff[W]=!1)}else M==="open"&&A.tagName==="DIALOG"&&(A.matches("dialog:modal")?w.attributes.rr_open_mode="modal":w.attributes.rr_open_mode="non-modal");break;case "childList":x8(U.target,H.blockClass,H.blockSelector,!0)||(U.target.tagName==="TEXTAREA"?H.genTextAreaValueMutation(U.target):(U.addedNodes.forEach(function(J){return H.genAdds(J,
U.target)}),U.removedNodes.forEach(function(J){var F=H.mirror.getId(J),P=Px(U.target)?H.mirror.getId(og(U.target)):H.mirror.getId(U.target);
x8(U.target,H.blockClass,H.blockSelector,!1)||B37(J,H.mirror,H.slimDOMOptions)||H.mirror.getId(J)===-1||(H.addedSet.has(J)?(YpM(H.addedSet,J),H.droppedSet.add(J)):H.addedSet.has(U.target)&&F===-1||rLM(U.target,H.mirror)||(H.movedSet.has(J)&&H.movedMap[F+"@"+P]?YpM(H.movedSet,J):(H.removes.push({parentId:P,id:F,isShadow:Px(U.target)&&se(U.target)?!0:void 0}),qp_(J,H.removesSubTreeCache))),H.mapRemoves.push(J))})))}};
this.genAdds=function(U,A){if(!YPg(H.processedNodeManager,U,H)&&!H.addedSet.has(U)&&!H.movedSet.has(U)){if(H.mirror.nodeMetaMap.has(U)){if(B37(U,H.mirror,H.slimDOMOptions))return;H.movedSet.add(U);var M=null;A&&H.mirror.nodeMetaMap.has(A)&&(M=H.mirror.getId(A));M&&M!==-1&&(H.movedMap[Gog(H.mirror.getId(U),M)]=!0)}else H.addedSet.add(U),H.droppedSet.delete(U);x8(U,H.blockClass,H.blockSelector,!1)||(SU(U).forEach(function(W){return H.genAdds(W)}),U&&Fg(U)&&SU(Fg(U)).forEach(function(W){H.processedNodeManager.add(W,
H);
H.genAdds(W,U)}))}}};
_.X=T3E.prototype;_.X.init=function(H){var U=this;"mutationCb blockClass blockSelector maskTextClass maskTextSelector inlineStylesheet maskInputOptions maskTextFn maskInputFn keepIframeSrcFn recordCanvas inlineImages slimDOMOptions dataURLOptions doc mirror iframeManager stylesheetManager shadowDomManager canvasManager processedNodeManager".split(" ").forEach(function(A){U[A]=H[A]})};
_.X.freeze=function(){this.JSC$12155_frozen=!0;this.canvasManager.freeze()};
_.X.unfreeze=function(){this.JSC$12155_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.X.isFrozen=function(){return this.JSC$12155_frozen};
_.X.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.X.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.X.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var tT=[],rJ=window.Proxy,AM7=["INPUT","TEXTAREA","SELECT"],Mfr=new WeakMap;var qPp=new Map,NgM=function(H,U,A){if(H&&(nGV(H,U)||typeof H==="object")){U=H.constructor.name;var M=qPp.get(A);M||(M=new Map,qPp.set(A,M));M.has(U)||M.set(U,[]);A=M.get(U);U=A.indexOf(H);U===-1&&(U=A.length,A.push(H));return U}},S98=function(H,U,A){return H.map(function(M){return sat(M,U,A)})},nGV=function(H,U){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(A){return typeof U[A]===
"function"}).find(function(A){return H instanceof U[A]})};var ho2=nx(["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = `${width}-${height}`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for `converToBlobs`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// `as any` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"],
["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = \\`\\${width}-\\${height}\\`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for \\`converToBlobs\\`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// \\`as any\\` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"]),
bp4=_.Or(ho2.join(""));var C6N=function(H){var U=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$12197_frozen=!1;this.JSC$12197_processMutation=function(f,J){if(U.rafStamps.invokeId&&U.rafStamps.latestId!==U.rafStamps.invokeId||!U.rafStamps.invokeId)U.rafStamps.invokeId=U.rafStamps.latestId;U.pendingCanvasMutations.has(f)||U.pendingCanvasMutations.set(f,[]);U.pendingCanvasMutations.get(f).push(J)};
var A=H.sampling===void 0?"all":H.sampling,M=H.win,W=H.blockClass,w=H.blockSelector,d=H.recordCanvas,O=H.dataURLOptions;this.mutationCb=H.mutationCb;this.mirror=H.mirror;d&&A==="all"&&kom(this,M,W,w);d&&typeof A==="number"&&v4n(this,A,M,W,w,{dataURLOptions:O})};
_.X=C6N.prototype;_.X.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.X.freeze=function(){this.JSC$12197_frozen=!0};
_.X.unfreeze=function(){this.JSC$12197_frozen=!1};
_.X.lock=function(){this.locked=!0};
_.X.unlock=function(){this.locked=!1};
var v4n=function(H,U,A,M,W,w){var d=LMM(A,M,W,!0),O=new Map,f=c$h(du7());f.onmessage=function(L){var m=L.data.id;O.set(m,!1);"base64"in L.data&&(L=L.data,H.mutationCb({id:m,type:eU["2D"],commands:[{property:"clearRect",args:[0,0,L.width,L.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:L.base64}],type:L.type}]},0,0]}]}))};
var J=1E3/U,F=0,P=function(){var L=[];A.document.querySelectorAll("canvas").forEach(function(m){x8(m,M,W,!0)||L.push(m)});
return L},n=function(L){F&&L-F<J||(F=L,P().forEach(function(m){var z,c,C,v,Y;
return _.u(function(D){if(D.nextAddress==1){z=H.mirror.getId(m);if(O.get(z)||m.width===0||m.height===0)return D.return();O.set(z,!0);["webgl","webgl2"].includes(m.__context)&&(c=m.getContext(m.__context),((C=c)==null?void 0:(v=C.getContextAttributes())==null?void 0:v.preserveDrawingBuffer)===!1&&c.clear(c.COLOR_BUFFER_BIT));return D.yield(createImageBitmap(m),2)}Y=D.yieldResult;f.postMessage({id:z,bitmap:Y,width:m.width,height:m.height,dataURLOptions:w.dataURLOptions},[Y]);_.DO(D)})}));
N=requestAnimationFrame(n)};
var N=requestAnimationFrame(n);H.resetObservers=function(){d();cancelAnimationFrame(N)}},kom=function(H,U,A,M){Tjy(H);
jHH(H);var W=LMM(U,A,M,!1),w=pRh(H.JSC$12197_processMutation.bind(H),U,A,M),d=EG_(H.JSC$12197_processMutation.bind(H),U,A,M);H.resetObservers=function(){W();w();d()}},jHH=function(H){requestAnimationFrame(function(){return IBp(H)})},Tjy=function(H){var U=function(A){H.rafStamps.latestId=A;
requestAnimationFrame(U)};
requestAnimationFrame(U)},IBp=function(H){H.pendingCanvasMutations.forEach(function(U,A){var M=H.mirror.getId(A);
QHB(H,A,M)});
requestAnimationFrame(function(){return IBp(H)})},QHB=function(H,U,A){if(!H.JSC$12197_frozen&&!H.locked){var M=H.pendingCanvasMutations.get(U);
if(M&&A!==-1){var W=M.map(function(w){w=Object.assign({},w);return delete w.type,w});
H.mutationCb({id:A,type:M[0].type,commands:W});H.pendingCanvasMutations.delete(U)}}};var xAt=function(){this.nodeMap=new WeakMap;this.active=!1},YPg=function(H,U,A){return(H=H.nodeMap.get(U))&&Array.from(H).some(function(M){return M!==A})};
xAt.prototype.add=function(H,U){var A=this;this.active||(this.active=!0,requestAnimationFrame(function(){A.nodeMap=new WeakMap;A.active=!1}));
this.nodeMap.set(H,(this.nodeMap.get(H)||new Set).add(U))};
xAt.prototype.destroy=function(){};var tfr=function(H){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=H.mutationCb;this.scrollCb=H.scrollCb;this.bypassOptions=H.bypassOptions;this.mirror=H.mirror;this.init()};
tfr.prototype.init=function(){this.reset();ee_(this,Element,document)};
var BgK=function(H,U,A){if(se(U)&&!H.shadowDoms.has(U)){H.shadowDoms.add(U);var M=jCE(Object.assign({},H.bypassOptions,{doc:A,mutationCb:H.mutationCb,mirror:H.mirror,shadowDomManager:H}),U);H.restoreHandlers.push(function(){return M.disconnect()});
H.restoreHandlers.push(H3_(Object.assign({},H.bypassOptions,{scrollCb:H.scrollCb,doc:U,mirror:H.mirror})));setTimeout(function(){U.adoptedStyleSheets&&U.adoptedStyleSheets.length>0&&dAE(H.bypassOptions.stylesheetManager,U.adoptedStyleSheets,H.mirror.getId(og(U)));H.restoreHandlers.push(O34({mirror:H.mirror,stylesheetManager:H.bypassOptions.stylesheetManager},U))},0)}},ee_=function(H,U,A){H.restoreHandlers.push(Kv(U.prototype,"attachShadow",function(M){return function(W){W=M.call(this,W);
var w=Fg(this);w&&GG7(this)&&BgK(H,w,A);return W}}))};
tfr.prototype.reset=function(){this.restoreHandlers.forEach(function(H){try{H()}catch(U){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var gGK=function(H){this.trackedLinkElements=new WeakSet;this.styleMirror=new DP3;this.mutationCb=H.mutationCb;this.adoptedStyleSheetCb=H.adoptedStyleSheetCb},DAc=function(H,U,A){"_cssText"in A.attributes&&H.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:A.id,attributes:A.attributes}]});yMV(H,U)},yMV=function(H,U){H.trackedLinkElements.has(U)||H.trackedLinkElements.add(U)},dAE=function(H,U,A){if(U.length!==0){A={id:A,
styleIds:[]};var M=[];U=_.b(U);for(var W=U.next(),w={};!W.done;w={sheet$jscomp$3:void 0},W=U.next())w.sheet$jscomp$3=W.value,W=void 0,H.styleMirror.has(w.sheet$jscomp$3)?W=H.styleMirror.getId(w.sheet$jscomp$3):(W=H.styleMirror.add(w.sheet$jscomp$3),M.push({styleId:W,rules:Array.from(w.sheet$jscomp$3.rules||CSSRule,function(d){return function(O,f){return{rule:Ta7(O,d.sheet$jscomp$3.href),index:f}}}(w))})),A.styleIds.push(W);
M.length>0&&(A.styles=M);H.adoptedStyleSheetCb(A)}};
gGK.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var lU,mAV,ze7;try{if(Array.from([1],function(H){return H*2})[0]!==2){var Vdk=document.createElement("iframe");
document.body.appendChild(Vdk);var HTr;Array.from=((HTr=Vdk.contentWindow)==null?void 0:HTr.Array.from)||Array.from;document.body.removeChild(Vdk)}}catch(H){console.debug("Unable to override Array.from",H)}var $8=new mz;var jac="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(" "),Tgt={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},vGN=null,GI_=null;var I7c={},Qa7=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 w08={text:1},Uy8={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var UnB=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Agy={CONSTANT:{isUnwrappable:function(H){return H instanceof p5},
unwrap:Opp},JAVASCRIPT:{isUnwrappable:function(H){return H instanceof _.dY},
unwrap:ZO},HTML:{isUnwrappable:function(H){return H instanceof Ur},
unwrap:function(H){return Mo(H)}},
RESOURCE_URL:{isUnwrappable:function(H){return H instanceof By},
unwrap:_.e3},STRING:{isUnwrappable:function(H){return H instanceof Object},
unwrap:function(H){return String(H)}},
STYLE:{isUnwrappable:function(H){return typeof H==="string"},
unwrap:function(H){return H}},
URL:{isUnwrappable:function(H){return qS(H)},
unwrap:_.hR}},Mmy={CONSTANT:X0h,JAVASCRIPT:X0h,HTML:function(H){H=H instanceof Ur?H:A$(String(H).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return Mo(H)},
RESOURCE_URL:X0h,STRING:String,STYLE:X0h,URL:function(H,U){H=UnB.test(H)?H:void 0;return H===void 0?U:H}};var Fi0=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,iHt=/[\t\n\f\r ]+/,dyr=/[\t\n\f\r ,]+/g,uTt=function(H,U,A){return A},hT={},W9r=function(){var H=function(){var M={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",M):M}(),U=H.createHTML(""),A=H.createScript("");
H=H.createScriptURL("");return{INNOCUOUS_STRING:U,INNOCUOUS_SCRIPT:A,INNOCUOUS_URL:H}}(),qj=W9r.INNOCUOUS_STRING,oi7=W9r.INNOCUOUS_SCRIPT,Ki0=W9r.INNOCUOUS_URL;var wnK=function(H){var U=Pe4(H);return function(A,M,W,w){return w?U(w,M,W,A):qj}}({reportHandler:function(H,U){if(H)try{throw Error(U);
}catch(A){_.sD(A)}},
safeTypesBridge:function(H,U,A){var M=Agy[U];return M.isUnwrappable(H)&&(M=M.unwrap(H,A),M!==A)?M:(0,Mmy[U])(String(H),A)},
allowedIdentifierPrefixes:[""]});if(iu!==void 0)throw Error("cf");iu=wnK;if(iu!==wnK)throw Error("df");k8("Injectable",[]);var qgM=k8("Inject",[["token",void 0]]),kFM=k8("Optional",[]);k8("Injectable",[]);var viK=k8("Self",[]),T$8=k8("SkipSelf",[]);k8("Host",[]);var Xny={},iTn=function(){};
iTn.prototype.resolve=function(){throw Error("ff");};
iTn.prototype.addProvider=function(){throw Error("ff");};var GF_=Function;var bTz=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,dnw=function(){this._reflect=window.Reflect};
_.X=dnw.prototype;_.X.factory=function(H){return function(){return new (Function.prototype.bind.apply(H,[null].concat(_.vI(_.QY.apply(0,arguments)))))}};
_.X._zipTypesAndAnnotations=function(H,U){var A=typeof H==="undefined"?Array(U.length):Array(H.length);for(var M=0;M<A.length;M++)A[M]=typeof H==="undefined"?[]:H[M]!=Object?[H[M]]:[],U&&nih(U[M])&&(A[M]=A[M].concat(U[M]));return A};
_.X._ownParameters=function(H,U){if(bTz.exec(H.toString()))return null;if(H.parameters&&H.parameters!==U.parameters)return H.parameters;var A=H.ctorParameters;return A&&A!==U.ctorParameters?(U=typeof A==="function"?A():A,H=U.map(function(M){return M&&M.type}),U=U.map(function(M){return M&&Sgc(M.decorators)}),this._zipTypesAndAnnotations(H,U)):nih(this._reflect)&&nih(this._reflect.getOwnMetadata)&&(U=this._reflect.getOwnMetadata("parameters",H),(A=this._reflect.getOwnMetadata("design:paramtypes",H))||
U)?this._zipTypesAndAnnotations(A,U):Array(H.length).fill(void 0)};
_.X.parameters=function(H){if(!H.prototype)return[];var U=Object.getPrototypeOf(H.prototype).constructor;(H=this._ownParameters(H,U))||U===Object||(H=this.parameters(U));return H||[]};
_.X._ownAnnotations=function(H,U){if(H.annotations&&H.annotations!==U.annotations)return H=H.annotations,typeof H==="function"&&H.annotations&&(H=H.annotations),H;if(H.decorators&&H.decorators!==U.decorators)return Sgc(H.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",H)};
_.X.annotations=function(H){var U=Object.getPrototypeOf(H.prototype).constructor;H=this._ownAnnotations(H,U)||[];return(U!==Object?this.annotations(U):[]).concat(H)};
_.X._ownPropMetadata=function(H,U){if(H.propMetadata&&H.propMetadata!==U.propMetadata)return H=H.propMetadata,typeof H==="function"&&H.propMetadata&&(H=H.propMetadata),H;if(H.propDecorators&&H.propDecorators!==U.propDecorators){var A=H.propDecorators,M={};Object.keys(A).forEach(function(W){M[W]=Sgc(A[W])});
return M}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",H)};
_.X.propMetadata=function(H){var U=Object.getPrototypeOf(H.prototype).constructor,A={};if(U!==Object){var M=this.propMetadata(U);Object.keys(M).forEach(function(w){A[w]=M[w]})}var W=this._ownPropMetadata(H,U);
W&&Object.keys(W).forEach(function(w){var d=[];A.hasOwnProperty(w)&&d.push.apply(d,_.vI(A[w]));d.push.apply(d,_.vI(W[w]));A[w]=d});
return A};
_.X.getter=function(H){return function(U){return U[H]}};
_.X.setter=function(H){return function(U,A){return U[H]=A}};
_.X.method=function(H){return function(U,A){if(!U[H])throw Error("gf`"+H);return U[H].apply(U,A)}};var OT2=function(){};var uVm=function(H){this.reflectionCapabilities=H};
_.R(uVm,OT2);_.X=uVm.prototype;_.X.factory=function(H){return this.reflectionCapabilities.factory(H)};
_.X.parameters=function(H){return this.reflectionCapabilities.parameters(H)};
_.X.annotations=function(H){return this.reflectionCapabilities.annotations(H)};
_.X.propMetadata=function(H){return this.reflectionCapabilities.propMetadata(H)};
_.X.getter=function(H){return this.reflectionCapabilities.getter(H)};
_.X.setter=function(H){return this.reflectionCapabilities.setter(H)};
_.X.method=function(H){return this.reflectionCapabilities.method(H)};var zBh=new uVm(new dnw);var wS=function(H,U){this.token=H;this.id=U;if(H===void 0||H===null)throw Error("mf");};
_.D5.Object.defineProperties(wS.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return vx(this.token)}}});
_.D5.Object.defineProperties(wS,{JSC$12253_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return jU.JSC$12257_numberOfKeys}}});
var ZTw=function(){this._allKeys=new Map};
ZTw.prototype.get=function(H){if(H instanceof wS)return H;if(this._allKeys.has(H))return this._allKeys.get(H);var U=new wS(H,wS.JSC$12253_numberOfKeys);this._allKeys.set(H,U);return U};
_.D5.Object.defineProperties(ZTw.prototype,{JSC$12257_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var jU=new ZTw;var jUN=function(H,U,A){this.key=H;this.optional=U;this.visibility=A},tct=function(H){return new jUN(H,!1,null)},yOF=[],eBh=function(H,U,A){this.key=H;
this.resolvedFactories=U;this.multiProvider=A},B$7=function(H,U,A,M){this.factory=H;
this.dependencies=U;this.providerClass=A;this.providerValue=M};var Xa={},iI=function(H,U){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=U===void 0?null:U;H=_.b(H);for(U=H.next();!U.done;U=H.next())this.addProvider(U.value)};
_.X=iI.prototype;_.X.addProvider=function(H){this.keyIdToIndex.set(H.key.id,this.keyIds.length);this.providers.push(H);this.keyIds.push(H.key.id);this.objs.push(Xa)};
_.X.resolve=function(H,U){U=U===void 0?Xny:U;return this._getByKey(jU.get(TP(H)),null,U)};
_.X._new=function(H){if(this.constructedKeyIds[H.key.id])throw gih(this,H.key);this.constructedKeyIds[H.key.id]=!0;return this._instantiateProvider(H)};
_.X._instantiateProvider=function(H){if(H.multiProvider){for(var U=Array(H.resolvedFactories.length),A=0;A<H.resolvedFactories.length;++A)U[A]=this._instantiate(H,H.resolvedFactories[A]);return U}return this._instantiate(H,H.resolvedFactories[0])};
_.X._instantiate=function(H,U){var A=this,M=U.factory;try{var W=U.dependencies.map(function(d){return A._getByReflectiveDependency(d)})}catch(d){throw d.addKey&&d.addKey(this,H.key),d;
}try{var w=M.apply(null,_.vI(W))}catch(d){throw aAM(this,d,H.key);}return w};
_.X._getByReflectiveDependency=function(H){return this._getByKey(H.key,H.visibility,H.optional?null:Xny)};
_.X._getByKey=function(H,U,A){return H===fXK?this:U instanceof viK?this._getByKeySelf(H,A):this._getByKeyDefault(H,A,U)};
_.X._getObjByKeyId=function(H){for(var U=0;U<this.keyIds.length;U++)if(this.keyIds[U]===H)return this.objs[U]===Xa&&(this.objs[U]=this._new(this.providers[U])),this.objs[U];return Xa};
_.X._throwOrNull=function(H,U){if(U!==Xny)return U;throw my4(this,H);};
_.X._getByKeySelf=function(H,U){var A=this._getObjByKeyId(H.id);return A!==Xa?A:this._throwOrNull(H,U)};
_.X._getByKeyDefault=function(H,U,A){for(var M=A=A instanceof T$8?this.parent:this;A instanceof iI;){var W=A._getObjByKeyId(H.id);if(W!==Xa)return W;A=A.parent}W=void 0;if(A!==null)try{var w=A.resolve(H.token,U);if(w!==Xa)return w}catch(d){W=d}if(!(M instanceof iI&&QUF(H.token))){if(W)throw W;return this._throwOrNull(H,U)}for(w=M;w.parent instanceof iI;)w=w.parent;w.addProvider(Dyt({provide:H.token,useClass:H.token}));return w.resolve(H.token,U)};
_.X.toString=function(){return this.displayName};
_.D5.Object.defineProperties(iI.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+IAE(this,function(H){return' "'+H.key.displayName+'" '}).join(", ")+"])"}}});
var fXK=jU.get(TP(iTn));(function(){let module=undefined;let exports=undefined;let define=undefined;var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_ES6=!1;$jscomp.ASSUME_ES2020=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.INSTRUMENT_ASYNC_CONTEXT=!0;$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:
function(e,m,n){if(e==Array.prototype||e==Object.prototype)return e;e[m]=n.value;return e};
$jscomp.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var m=0;m<e.length;++m){var n=e[m];if(n&&n.Math==Math)return n}throw Error("Cannot find global object");};
$jscomp.global=$jscomp.ASSUME_ES2020?globalThis:$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE=typeof Symbol==="function"&&typeof Symbol("x")==="symbol";$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var JSCompiler_inline_result$jscomp$0,classes$jscomp$inline_5="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");$jscomp.global.BigInt64Array&&(classes$jscomp$inline_5.push("BigInt64"),
classes$jscomp$inline_5.push("BigUint64"));JSCompiler_inline_result$jscomp$0=classes$jscomp$inline_5;$jscomp.TYPED_ARRAY_CLASSES=JSCompiler_inline_result$jscomp$0;$jscomp.polyfillTypedArrayMethod=function(e,m,n,b){if(m)for(var q=0;q<$jscomp.TYPED_ARRAY_CLASSES.length;q++){var t=$jscomp.TYPED_ARRAY_CLASSES[q]+"Array.prototype."+e;$jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,m,n,b):$jscomp.polyfillUnisolated(t,m,n,b)}};
$jscomp.polyfill=function(e,m,n,b){m&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,m,n,b):$jscomp.polyfillUnisolated(e,m,n,b))};
$jscomp.polyfillUnisolated=function(e,m){var n=$jscomp.global;e=e.split(".");for(var b=0;b<e.length-1;b++){var q=e[b];if(!(q in n))return;n=n[q]}e=e[e.length-1];b=n[e];m=m(b);m!=b&&m!=null&&$jscomp.defineProperty(n,e,{configurable:!0,writable:!0,value:m})};
$jscomp.polyfillIsolated=function(e,m,n){var b=e.split("."),q=b.length===1;e=b[0];e=!q&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var t=0;t<b.length-1;t++){var u=b[t];if(!(u in e))return;e=e[u]}b=b[b.length-1];n=$jscomp.IS_SYMBOL_NATIVE&&n==="es6"?e[b]:null;m=m(n);m!=null&&(q?$jscomp.defineProperty($jscomp.polyfills,b,{configurable:!0,writable:!0,value:m}):m!==n&&($jscomp.propertyToPolyfillSymbol[b]===void 0&&(q=Math.random()*1E9>>>0,$jscomp.propertyToPolyfillSymbol[b]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(b):$jscomp.POLYFILL_PREFIX+q+"$"+b),q=$jscomp.propertyToPolyfillSymbol[b],$jscomp.defineProperty(e,q,{configurable:!0,writable:!0,value:m})))};
$jscomp.checkEs6ConformanceViaProxy=function(){try{var e={},m=Object.create(new $jscomp.global.Proxy(e,{get:function(n,b,q){return n==e&&b=="q"&&q==m}}));
return m.q===!0}catch(n){return!1}};
$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();$jscomp.arrayIteratorImpl=function(e){var m=0;return function(){return m<e.length?{done:!1,value:e[m++]}:{done:!0}}};
$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};
$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(e){if(e)return e;var m=function(t,u){this.$jscomp$symbol$id_=t;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:u})};
m.prototype.toString=function(){return this.$jscomp$symbol$id_};
e=Math.random()*1E9>>>0;var n="jscomp_symbol_"+e+"_",b=0,q=function(t){if(this instanceof q)throw new TypeError("Symbol is not a constructor");return new m(n+(t||"")+"_"+b++,t)};
return q},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");$jscomp.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});
return e},"es6","es3");
$jscomp.iteratorPrototype=function(e){e={next:e};e[Symbol.iterator]=function(){return this};
return e};
$jscomp.makeIterator=function(e){var m=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(m)return m.call(e);if(typeof e.length=="number")return $jscomp.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike");};
$jscomp.owns=function(e,m){return Object.prototype.hasOwnProperty.call(e,m)};
$jscomp.polyfill("WeakMap",function(e){function m(){if(!e||!Object.seal)return!1;try{var f=Object.seal({}),h=Object.seal({}),k=new e([[f,2],[h,3]]);if(k.get(f)!=2||k.get(h)!=3)return!1;k.delete(f);k.set(h,4);return!k.has(f)&&k.get(h)==4}catch(r){return!1}}
function n(){}
function b(f){var h=typeof f;return h==="object"&&f!==null||h==="function"}
function q(f){if(!$jscomp.owns(f,u)){var h=new n;$jscomp.defineProperty(f,u,{value:h})}}
function t(f){if(!$jscomp.ISOLATE_POLYFILLS){var h=Object[f];h&&(Object[f]=function(k){if(k instanceof n)return k;Object.isExtensible(k)&&q(k);return h(k)})}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(m())return e;var u="$jscomp_hidden_"+Math.random();t("freeze");t("preventExtensions");t("seal");var A=0,d=function(f){this.id_=(A+=Math.random()+1).toString();if(f){f=$jscomp.makeIterator(f);for(var h;!(h=f.next()).done;)h=h.value,this.set(h[0],h[1])}};
d.prototype.set=function(f,h){if(!b(f))throw Error("Invalid WeakMap key");q(f);if(!$jscomp.owns(f,u))throw Error("WeakMap key fail: "+f);f[u][this.id_]=h;return this};
d.prototype.get=function(f){return b(f)&&$jscomp.owns(f,u)?f[u][this.id_]:void 0};
d.prototype.has=function(f){return b(f)&&$jscomp.owns(f,u)&&$jscomp.owns(f[u],this.id_)};
d.prototype.delete=function(f){return b(f)&&$jscomp.owns(f,u)&&$jscomp.owns(f[u],this.id_)?delete f[u][this.id_]:!1};
return d},"es6","es3");
$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(e){function m(){if($jscomp.ASSUME_NO_NATIVE_MAP||!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var d=Object.seal({x:4}),f=new e($jscomp.makeIterator([[d,"s"]]));if(f.get(d)!="s"||f.size!=1||f.get({x:4})||f.set({x:4},"t")!=f||f.size!=2)return!1;var h=f.entries(),k=h.next();if(k.done||k.value[0]!=d||k.value[1]!="s")return!1;k=h.next();return k.done||k.value[0].x!=4||k.value[1]!="t"||!h.next().done?!1:!0}catch(r){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(m())return e;var n=new WeakMap,b=function(d){this[0]={};this[1]=u();this.size=0;if(d){d=$jscomp.makeIterator(d);for(var f;!(f=d.next()).done;)f=f.value,this.set(f[0],f[1])}};
b.prototype.set=function(d,f){d=d===0?0:d;var h=q(this,d);h.list||(h.list=this[0][h.id]=[]);h.entry?h.entry.value=f:(h.entry={next:this[1],previous:this[1].previous,head:this[1],key:d,value:f},h.list.push(h.entry),this[1].previous.next=h.entry,this[1].previous=h.entry,this.size++);return this};
b.prototype.delete=function(d){d=q(this,d);return d.entry&&d.list?(d.list.splice(d.index,1),d.list.length||delete this[0][d.id],d.entry.previous.next=d.entry.next,d.entry.next.previous=d.entry.previous,d.entry.head=null,this.size--,!0):!1};
b.prototype.clear=function(){this[0]={};this[1]=this[1].previous=u();this.size=0};
b.prototype.has=function(d){return!!q(this,d).entry};
b.prototype.get=function(d){return(d=q(this,d).entry)&&d.value};
b.prototype.entries=function(){return t(this,function(d){return[d.key,d.value]})};
b.prototype.keys=function(){return t(this,function(d){return d.key})};
b.prototype.values=function(){return t(this,function(d){return d.value})};
b.prototype.forEach=function(d,f){for(var h=this.entries(),k;!(k=h.next()).done;)k=k.value,d.call(f,k[1],k[0],this)};
b.prototype[Symbol.iterator]=b.prototype.entries;var q=function(d,f){var h;var k=(h=f)&&typeof h;k=="object"||k=="function"?n.has(h)?h=n.get(h):(k=""+ ++A,n.set(h,k),h=k):h="p_"+h;if((k=d[0][h])&&$jscomp.owns(d[0],h))for(d=0;d<k.length;d++){var r=k[d];if(f!==f&&r.key!==r.key||f===r.key)return{id:h,list:k,index:d,entry:r}}return{id:h,list:k,index:-1,entry:void 0}},t=function(d,f){var h=d[1];
return $jscomp.iteratorPrototype(function(){if(h){for(;h.head!=d[1];)h=h.previous;for(;h.next!=h.head;)return h=h.next,{done:!1,value:f(h)};h=null}return{done:!0,value:void 0}})},u=function(){var d={};
return d.previous=d.next=d.head=d},A=0;
return b},"es6","es3");
$jscomp.polyfill("Set",function(e){function m(){if($jscomp.ASSUME_NO_NATIVE_SET||!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var b=Object.seal({x:4}),q=new e($jscomp.makeIterator([b]));if(!q.has(b)||q.size!=1||q.add(b)!=q||q.size!=1||q.add({x:4})!=q||q.size!=2)return!1;var t=q.entries(),u=t.next();if(u.done||u.value[0]!=b||u.value[1]!=b)return!1;u=t.next();return u.done||u.value[0]==b||u.value[0].x!=4||u.value[1]!=u.value[0]?!1:t.next().done}catch(A){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(m())return e;var n=function(b){this.map_=new Map;if(b){b=$jscomp.makeIterator(b);for(var q;!(q=b.next()).done;)q=q.value,this.add(q)}this.size=this.map_.size};
n.prototype.add=function(b){b=b===0?0:b;this.map_.set(b,b);this.size=this.map_.size;return this};
n.prototype.delete=function(b){b=this.map_.delete(b);this.size=this.map_.size;return b};
n.prototype.clear=function(){this.map_.clear();this.size=0};
n.prototype.has=function(b){return this.map_.has(b)};
n.prototype.entries=function(){return this.map_.entries()};
n.prototype.values=function(){return this.map_.values()};
n.prototype.keys=n.prototype.values;n.prototype[Symbol.iterator]=n.prototype.values;n.prototype.forEach=function(b,q){var t=this;this.map_.forEach(function(u){return b.call(q,u,u,t)})};
return n},"es6","es3");
$jscomp.polyfill("Set.prototype.union",function(e){function m(n){$jscomp.checkIsSetInstance(this);$jscomp.checkIsSetLike(n);var b=new Set(this);n=$jscomp.checkIsValidIterator(n.keys());for(var q=n.next();!q.done;)b.add(q.value),q=n.next();return b}
return e?e:m},"es_next","es6");
$jscomp.checkIsSetLike=function(e){if(typeof e!=="object"||e===null||typeof e.size!=="number"||e.size<0||typeof e.keys!=="function"||typeof e.has!=="function")throw new TypeError("Argument must be set-like");};
$jscomp.checkIsValidIterator=function(e){if(typeof e!=="object"||e===null||typeof e.next!=="function")throw new TypeError("Invalid iterator.");return e};
$jscomp.getSmallerAndLargerSets=function(e,m){return e.size<=m.size?{smallerSetIterator:e.keys(),largerSet:m}:{smallerSetIterator:$jscomp.checkIsValidIterator(m.keys()),largerSet:e}};
$jscomp.checkIsSetInstance=function(e){if(!(e instanceof Set))throw new TypeError("Method must be called on an instance of Set.");};
(function(e){if(typeof exports==="object"&&typeof module!=="undefined")module.exports=e();else if(typeof define==="function"&&define.amd)define([],e);else{var m=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;m.XRegExp=e()}})(function(){return function q(m,n,b){function t(d,f){if(!n[d]){if(!m[d]){var h=typeof require=="function"&&require;
if(!f&&h)return h(d,!0);if(u)return u(d,!0);f=Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f;}f=n[d]={exports:{}};m[d][0].call(f.exports,function(k){var r=m[d][1][k];return t(r?r:k)},f,f.exports,q,m,n,b)}return n[d].exports}
for(var u=typeof require=="function"&&require,A=0;A<b.length;A++)t(b[A]);return t}({1:[function(m,n){n.exports=function(b){function q(d){var f=/^(?:\(\?:\))*\^/,h=/\$(?:\(\?:\))*$/;
return f.test(d)&&h.test(d)&&h.test(d.replace(/\\[\s\S]/g,""))?d.replace(f,"").replace(h,""):d}
function t(d,f){f=f?"x":"";return b.isRegExp(d)?d.xregexp&&d.xregexp.captureNames?d:b(d.source,f):b(d,f)}
var u=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,A=b.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,u],"g",{conjunction:"or"});b.build=function(d,f,h){h=h||"";var k=h.indexOf("x")>-1,r=/^\(\?([\w$]+)\)/.exec(d);r&&(h=b._clipDuplicates(h+r[1]));var v={},B;for(B in f)f.hasOwnProperty(B)&&(r=t(f[B],k),v[B]={pattern:q(r.source),names:r.xregexp.captureNames||[]});d=t(d,k);var C=0,D,p=0,I=[0],E=d.xregexp.captureNames||[];d=d.source.replace(A,function(F,J,N,Q,R){var L=J||N;if(L){if(!v.hasOwnProperty(L))throw new ReferenceError("Undefined property "+
F);if(J){var M=E[p];I[++p]=++C;F="(?<"+(M||L)+">"}else F="(?:";D=C;return F+v[L].pattern.replace(u,function(T,U,O){if(U){if(M=v[L].names[C-D],++C,M)return"(?<"+M+">"}else if(O)return P=+O-1,v[L].names[P]?"\\k<"+v[L].names[P]+">":"\\"+(+O+D);return T})+")"}if(Q){if(M=E[p],I[++p]=++C,M)return"(?<"+M+">"}else if(R){var P=+R-1;
return E[P]?"\\k<"+E[P]+">":"\\"+I[+R]}return F});
return b(d,h)}}},
{}],2:[function(m,n){n.exports=function(b){function q(t,u,A,d){return{name:t,value:u,start:A,end:d}}
b.matchRecursive=function(t,u,A,d,f){d=d||"";f=f||{};var h=d.indexOf("g")>-1,k=d.indexOf("y")>-1,r=d.replace(/y/g,""),v=f.escapeChar;f=f.valueNames;var B=[],C=0,D=0,p=0,I=0;u=b(u,r);A=b(A,r);if(v){if(v.length>1)throw Error("Cannot use more than one escape character");v=b.escape(v);var E=new RegExp("(?:"+v+"[\\S\\s]|(?:(?!"+b.union([u,A],"",{conjunction:"or"}).source+")[^"+v+"])+)+",d.replace(/[^imu]+/g,""))}for(;;){v&&(p+=(b.exec(t,E,p,"sticky")||[""])[0].length);d=b.exec(t,u,p);r=b.exec(t,A,p);d&&
r&&(d.index<=r.index?r=null:d=null);if(d||r)D=(d||r).index,p=D+(d||r)[0].length;else if(!C)break;if(k&&!C&&D>I)break;if(d){if(!C){var F=D;var J=p}++C}else if(r&&C){if(!--C&&(f?(f[0]&&F>I&&B.push(q(f[0],t.slice(I,F),I,F)),f[1]&&B.push(q(f[1],t.slice(F,J),F,J)),f[2]&&B.push(q(f[2],t.slice(J,D),J,D)),f[3]&&B.push(q(f[3],t.slice(D,p),D,p))):B.push(t.slice(J,D)),I=p,!h))break}else throw Error("Unbalanced delimiter found in string");D===p&&++p}h&&!k&&f&&f[0]&&t.length>I&&B.push(q(f[0],t.slice(I),I,t.length));
return B}}},
{}],3:[function(m,n){n.exports=function(b){function q(k){return k.replace(/[- _]+/g,"").toLowerCase()}
function t(k){var r=/^\\[xu](.+)/.exec(k);return r?d(r[1]):k.charCodeAt(k.charAt(0)==="\\"?1:0)}
function u(k){var r="",v=-1;b.forEach(k,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(B){var C=t(B[1]);C>v+1&&(r+="\\u"+h(f(v+1)),C>v+2&&(r+="-\\u"+h(f(C-1))));v=t(B[2]||B[1])});
v<65535&&(r+="\\u"+h(f(v+1)),v<65534&&(r+="-\\uFFFF"));return r}
var A={},d=b._dec,f=b._hex,h=b._pad4;b.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(k,r,v){var B=k[1]==="P"||!!k[2],C=v.indexOf("A")>-1;v=q(k[4]||k[3]);var D=A[v];if(k[1]==="P"&&k[2])throw new SyntaxError("Invalid double negation "+k[0]);if(!A.hasOwnProperty(v))throw new SyntaxError("Unknown Unicode token "+k[0]);if(D.inverseOf){v=q(D.inverseOf);if(!A.hasOwnProperty(v))throw new ReferenceError("Unicode token missing data "+k[0]+" -> "+D.inverseOf);D=A[v];B=!B}if(!D.bmp&&!C)throw new SyntaxError("Astral mode required for Unicode token "+
k[0]);if(C){if(r==="class")throw new SyntaxError("Astral mode does not support Unicode tokens within character classes");k=B?"a!":"a=";(r=A[v][k])||(r=A[v],v=A[v],C="",v.bmp&&!v.isBmpLast&&(C="["+v.bmp+"]"+(v.astral?"|":"")),v.astral&&(C+=v.astral),v.isBmpLast&&v.bmp&&(C+=(v.astral?"|":"")+"["+v.bmp+"]"),B=B?"(?:(?!"+C+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+C+")",r=r[k]=B);return B=r}return B=r==="class"?B?A[v]["b!"]||(A[v]["b!"]=u(A[v].bmp)):D.bmp:(B?"[^":"[")+D.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});b.addUnicodeData=function(k){for(var r,v=0;v<k.length;++v){r=k[v];if(!r.name)throw Error("Unicode token requires name");if(!(r.inverseOf||r.bmp||r.astral))throw Error("Unicode token has no character data "+r.name);A[q(r.name)]=r;r.alias&&(A[q(r.alias)]=r)}b.cache.flush("patterns")};
b._getUnicodeProperty=function(k){k=q(k);return A[k]}}},
{}],4:[function(m,n){n.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks");b.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(m,n){n.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");b.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(m,n){n.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Properties");var q=[{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"}];q.push({name:"Assigned",inverseOf:"Cn"});b.addUnicodeData(q)}},
{}],7:[function(m,n){n.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");b.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(m,n){var b=m("./xregexp");m("./addons/build")(b);m("./addons/matchrecursive")(b);m("./addons/unicode-base")(b);m("./addons/unicode-blocks")(b);m("./addons/unicode-categories")(b);m("./addons/unicode-properties")(b);m("./addons/unicode-scripts")(b);n.exports=b},
{"./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(m,n){function b(a){var c=!0;try{c=!!RegExp("",a)}catch(g){c=!1}return c}
function q(a,c,g,l,x){var z;a.xregexp={captureNames:c};if(x)return a;if(a.__proto__)a.__proto__=p.prototype;else for(z in p.prototype)a[z]=p.prototype[z];a.xregexp.source=g;a.xregexp.flags=l?l.split("").sort().join(""):l;return a}
function t(a){return E.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function u(a,c){if(!p.isRegExp(a))throw new TypeError("Type RegExp expected");var g=a.xregexp||{},l=P?a.flags:E.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(a))[1],x="",z="",w=null,y=null;c=c||{};c.removeG&&(z+="g");c.removeY&&(z+="y");z&&(l=E.replace.call(l,new RegExp("["+z+"]+","g"),""));c.addG&&(x+="g");c.addY&&(x+="y");x&&(l=t(l+x));c.isInternalOnly||(g.source!==void 0&&(w=g.source),g.flags!=null&&(y=x?t(g.flags+x):g.flags));return a=q(new RegExp(c.source||a.source,l),a.xregexp&&a.xregexp.captureNames?
g.captureNames.slice(0):null,w,y,c.isInternalOnly)}
function A(a){return parseInt(a,16)}
function d(a,c,g){(c=a.input.charAt(a.index-1)==="("||a.input.charAt(a.index+a[0].length)===")")||(g=g.indexOf("x")>-1?["\\s","#[^#\\n]*","\\(\\?#[^)]*\\)"]:["\\(\\?#[^)]*\\)"],c=E.test.call(new RegExp("^(?:"+g.join("|")+")*(?:[?*+]|{\\d+(?:,\\d*)?})"),a.input.slice(a.index+a[0].length)));return c?"":"(?:)"}
function f(a){return parseInt(a,10).toString(16)}
function h(a,c){var g=a.length,l;for(l=0;l<g;++l)if(a[l]===c)return l;return-1}
function k(a,c){return T.call(a)==="[object "+c+"]"}
function r(a){for(;a.length<4;)a="0"+a;return a}
function v(a,c){var g;if(t(c)!==c)throw new SyntaxError("Invalid duplicate regex flag "+c);a=E.replace.call(a,/^\(\?([\w$]+)\)/,function(l,x){if(E.test.call(/[gy]/,x))throw new SyntaxError("Cannot use flag g or y in mode modifier "+l);c=t(c+x);return""});
for(g=0;g<c.length;++g)if(!Z[c.charAt(g)])throw new SyntaxError("Unknown regex flag "+c.charAt(g));return{pattern:a,flags:c}}
function B(a){var c={};return k(a,"String")?(p.forEach(a,/[^\s,]+/,function(g){c[g]=!0}),c):a}
function C(a){if(!/^[\w$]$/.test(a))throw Error("Flag must be a single character A-Za-z0-9_$");Z[a]=!0}
function D(a){if(a==null)throw new TypeError("Cannot convert null or undefined to object");return a}
function p(a,c){if(p.isRegExp(a)){if(c!==void 0)throw new TypeError("Cannot supply flags when copying a RegExp");return u(a)}a=a===void 0?"":String(a);c=c===void 0?"":String(c);p.isInstalled("astral")&&c.indexOf("A")===-1&&(c+="A");N[a]||(N[a]={});if(!N[a][c]){var g={hasNamedCapture:!1,captureNames:[]},l="default",x="",z=0,w=v(a,c),y=w.pattern;for(w=w.flags;z<y.length;){do{for(var K,H=y,V=w,W=z,X=l,Y=g,S=Q.length,ba=H.charAt(W),aa=null;S--;){var G=Q[S];if(!(G.leadChar&&G.leadChar!==ba||G.scope!==
X&&G.scope!=="all"||G.flag&&V.indexOf(G.flag)===-1)&&(K=p.exec(H,G.regex,W,"sticky"))){aa={matchLength:K[0].length,output:G.handler.call(Y,K,X,V),reparse:G.reparse};break}}(G=aa)&&G.reparse&&(y=y.slice(0,z)+G.output+y.slice(z+G.matchLength))}while(G&&G.reparse);G?(x+=G.output,z+=G.matchLength||1):(G=p.exec(y,R[l],z,"sticky")[0],x+=G,z+=G.length,G==="["&&l==="default"?l="class":G==="]"&&l==="class"&&(l="default"))}N[a][c]={pattern:E.replace.call(x,/(?:\(\?:\))+/g,"(?:)"),flags:E.replace.call(w,/[^gimuy]+/g,
""),captures:g.hasNamedCapture?g.captureNames:null}}g=N[a][c];return q(new RegExp(g.pattern,g.flags),g.captures,a,c)}
var I={astral:!1,natives:!1},E={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},F={},J={},N={},Q=[],R={"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]/},L=/\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g,
M=E.exec.call(/()??/,"")[1]===void 0,P=/x/.flags!==void 0,T={}.toString,U=b("u"),O=b("y"),Z={g:!0,i:!0,m:!0,u:U,y:O};p.prototype=RegExp();p.version="3.2.0";p._clipDuplicates=t;p._hasNativeFlag=b;p._dec=A;p._hex=f;p._pad4=r;p.addToken=function(a,c,g){g=g||{};var l=g.optionalFlags,x;g.flag&&C(g.flag);if(l)for(l=E.split.call(l,""),x=0;x<l.length;++x)C(l[x]);Q.push({regex:u(a,{addG:!0,addY:O,isInternalOnly:!0}),handler:c,scope:g.scope||"default",flag:g.flag,reparse:g.reparse,leadChar:g.leadChar});p.cache.flush("patterns")};
p.cache=function(a,c){J[a]||(J[a]={});return J[a][c]||(J[a][c]=p(a,c))};
p.cache.flush=function(a){a==="patterns"?N={}:J={}};
p.escape=function(a){return E.replace.call(D(a),/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};
p.exec=function(a,c,g,l){var x="g",z,w=!1;(z=O&&!!(l||c.sticky&&l!==!1))?x+="y":l&&(w=!0,x+="FakeY");c.xregexp=c.xregexp||{};l=c.xregexp[x]||(c.xregexp[x]=u(c,{addG:!0,addY:z,source:w?c.source+"|()":void 0,removeY:l===!1,isInternalOnly:!0}));g=g||0;l.lastIndex=g;a=F.exec.call(l,a);w&&a&&a.pop()===""&&(a=null);c.global&&(c.lastIndex=a?l.lastIndex:0);return a};
p.forEach=function(a,c,g){for(var l=0,x=-1;l=p.exec(a,c,l);)g(l,++x,a,c),l=l.index+(l[0].length||1)};
p.install=function(a){a=B(a);!I.astral&&a.astral&&(I.astral=!0);!I.natives&&a.natives&&(RegExp.prototype.exec=F.exec,RegExp.prototype.test=F.test,String.prototype.match=F.match,String.prototype.replace=F.replace,String.prototype.split=F.split,I.natives=!0)};
p.isInstalled=function(a){return!!I[a]};
p.isRegExp=function(a){return T.call(a)==="[object RegExp]"};
p.match=function(a,c,g){var l=c.global&&g!=="one"||g==="all",x=(l?"g":"")+(c.sticky?"y":"")||"noGY";c.xregexp=c.xregexp||{};x=c.xregexp[x]||(c.xregexp[x]=u(c,{addG:!!l,removeG:g==="one",isInternalOnly:!0}));a=E.match.call(D(a),x);c.global&&(c.lastIndex=g==="one"&&a?a.index+a[0].length:0);return l?a||[]:a&&a[0]};
p.replace=function(a,c,g,l){var x=p.isRegExp(c),z=c.global&&l!=="one"||l==="all",w=(z?"g":"")+(c.sticky?"y":"")||"noGY",y=c;x?(c.xregexp=c.xregexp||{},y=c.xregexp[w]||(c.xregexp[w]=u(c,{addG:!!z,removeG:l==="one",isInternalOnly:!0}))):z&&(y=new RegExp(p.escape(String(c)),"g"));a=F.replace.call(D(a),y,g);x&&c.global&&(c.lastIndex=0);return a};
p.split=function(a,c,g){return F.split.call(D(a),c,g)};
p.test=function(a,c,g,l){return!!p.exec(a,c,g,l)};
p.union=function(a,c,g){function l(W,X,Y){var S=V[z-H];if(X){if(++z,S)return"(?<"+S+">"}else if(Y)return"\\"+(+Y+H);return W}
g=g||{};var x=g.conjunction||"or",z=0;if(!k(a,"Array")||!a.length)throw new TypeError("Must provide a nonempty array of patterns to merge");var w=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;g=[];for(var y,K=0;K<a.length;++K)if(y=a[K],p.isRegExp(y)){var H=z;var V=y.xregexp&&y.xregexp.captureNames||[];g.push(E.replace.call(p(y.source).source,w,l))}else g.push(p.escape(y));a=x==="none"?"":"|";return p(g.join(a),c)};
F.exec=function(a){var c=this.lastIndex,g=E.exec.apply(this,arguments),l;if(g){if(!M&&g.length>1&&h(g,"")>-1){var x=u(this,{removeG:!0,isInternalOnly:!0});E.replace.call(String(a).slice(g.index),x,function(){var z=arguments.length,w;for(w=1;w<z-2;++w)arguments[w]===void 0&&(g[w]=void 0)})}if(this.xregexp&&this.xregexp.captureNames)for(l=1;l<g.length;++l)(x=this.xregexp.captureNames[l-1])&&(g[x]=g[l]);
this.global&&!g[0].length&&this.lastIndex>g.index&&(this.lastIndex=g.index)}this.global||(this.lastIndex=c);return g};
F.test=function(a){return!!F.exec.call(this,a)};
F.match=function(a){if(!p.isRegExp(a))a=new RegExp(a);else if(a.global){var c=E.match.apply(this,arguments);a.lastIndex=0;return c}return F.exec.call(a,D(this))};
F.replace=function(a,c){var g=p.isRegExp(a);if(g){if(a.xregexp)var l=a.xregexp.captureNames;var x=a.lastIndex}else a+="";var z=k(c,"Function")?E.replace.call(String(this),a,function(){var w=arguments,y;if(l)for(w[0]=new String(w[0]),y=0;y<l.length;++y)l[y]&&(w[0][l[y]]=w[y+1]);g&&a.global&&(a.lastIndex=w[w.length-2]+w[0].length);return c.apply(void 0,w)}):E.replace.call(this==null?this:String(this),a,function(){var w=arguments;
return E.replace.call(String(c),L,function(y,K,H){if(K){H=+K;if(H<=w.length-3)return w[H]||"";H=l?h(l,K):-1;if(H<0)throw new SyntaxError("Backreference to undefined group "+y);return w[H+1]||""}if(H==="$")return"$";if(H==="&"||+H===0)return w[0];if(H==="`")return w[w.length-1].slice(0,w[w.length-2]);if(H==="'")return w[w.length-1].slice(w[w.length-2]+w[0].length);H=+H;if(!isNaN(H)){if(H>w.length-3)throw new SyntaxError("Backreference to undefined group "+y);return w[H]||""}throw new SyntaxError("Invalid token "+
y);})});
g&&(a.lastIndex=a.global?0:x);return z};
F.split=function(a,c){if(!p.isRegExp(a))return E.split.apply(this,arguments);var g=String(this),l=[],x=a.lastIndex,z=0,w;c=(c===void 0?-1:c)>>>0;p.forEach(g,a,function(y){y.index+y[0].length>z&&(l.push(g.slice(z,y.index)),y.length>1&&y.index<g.length&&Array.prototype.push.apply(l,y.slice(1)),w=y[0].length,z=y.index+w)});
z===g.length?(!E.test.call(a,"")||w)&&l.push(""):l.push(g.slice(z));a.lastIndex=x;return l.length>c?l.slice(0,c):l};
p.addToken(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/,function(a,c){if(a[1]==="B"&&c==="default")return a[0];throw new SyntaxError("Invalid escape "+a[0]);},{scope:"all",
leadChar:"\\"});p.addToken(/\\u{([\dA-Fa-f]+)}/,function(a,c,g){c=A(a[1]);if(c>1114111)throw new SyntaxError("Invalid Unicode code point "+a[0]);if(c<=65535)return"\\u"+r(f(c));if(U&&g.indexOf("u")>-1)return a[0];throw new SyntaxError("Cannot use Unicode code point above \\u{FFFF} without flag u");},{scope:"all",
leadChar:"\\"});p.addToken(/\[(\^?)\]/,function(a){return a[1]?"[\\s\\S]":"\\b\\B"},{leadChar:"["});
p.addToken(/\(\?#[^)]*\)/,d,{leadChar:"("});p.addToken(/\s+|#[^\n]*\n?/,d,{flag:"x"});p.addToken(/\./,function(){return"[\\s\\S]"},{flag:"s",
leadChar:"."});p.addToken(/\\k<([\w$]+)>/,function(a){var c=isNaN(a[1])?h(this.captureNames,a[1])+1:+a[1],g=a.index+a[0].length;if(!c||c>this.captureNames.length)throw new SyntaxError("Backreference to undefined group "+a[0]);return"\\"+c+(g===a.input.length||isNaN(a.input.charAt(g))?"":"(?:)")},{leadChar:"\\"});
p.addToken(/\\(\d+)/,function(a,c){if(!(c==="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:"\\"});p.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(h(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:"("});
p.addToken(/\((?!\?)/,function(a,c,g){if(g.indexOf("n")>-1)return"(?:";this.captureNames.push(null);return"("},{optionalFlags:"n",
leadChar:"("});n.exports=p},
{}]},{},[8])(8)})}).call(globalThis);var Jgz=globalThis.XRegExp;var K9m=-1,oFr=function(H){addEventListener("pageshow",function(U){U.persisted&&(K9m=U.timeStamp,H(U))},!0)};var PoB=function(H,U,A){var M=F9w,W,w;return function(d){if(U.value>=0&&(d||A)){var O;if((w=U.value-((O=W)!=null?O:0))||W===void 0)W=U.value,U.delta=w,d=U.value,U.rating=d>M[1]?"poor":d>M[0]?"needs-improvement":"good",H(U)}}};var sT2=function(H){requestAnimationFrame(function(){return requestAnimationFrame(function(){return H()})})};var nFw=function(){var H=performance.getEntriesByType("navigation")[0];if(H&&H.responseStart>0&&H.responseStart<performance.now())return H};var N4B=function(){var H,U;return(U=(H=nFw())==null?void 0:H.activationStart)!=null?U:0};var bI=-1,Shw=new Set,pnn=function(H){if(document.visibilityState==="hidden"){if(H.type==="visibilitychange")for(var U=_.b(Shw),A=U.next();!A.done;A=U.next())A=A.value,A();isFinite(bI)||(bI=H.type==="visibilitychange"?H.timeStamp:0,removeEventListener("prerenderingchange",pnn,!0))}},L9n=function(){if(bI<0){var H=N4B(),U,A;
bI=(A=document.prerendering?void 0:(U=globalThis.performance.getEntriesByType("visibility-state").filter(function(M){return M.name==="hidden"&&M.startTime>H})[0])==null?void 0:U.startTime)!=null?A:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",pnn,!0);addEventListener("prerenderingchange",pnn,!0);oFr(function(){setTimeout(function(){bI=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return bI},
onHidden:function(M){Shw.add(M)}}};var RPH=function(){var H=H===void 0?-1:H;var U=nFw(),A="navigate";K9m>=0?A="back-forward-cache":U&&(document.prerendering||N4B()>0?A="prerender":document.wasDiscarded?A="restore":U.type&&(A=U.type.replace(/_/g,"-")));return{name:"LCP",value:H,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:A}};var HZE=new WeakMap;var EF2=function(H){var U=U===void 0?{}:U;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var A=new PerformanceObserver(function(M){Promise.resolve().then(function(){H(M.getEntries())})});
A.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},U));return A}}catch(M){}};var mnB=function(H){var U=!1;return function(){U||(H(),U=!0)}};var gF3=function(H){document.prerendering?addEventListener("prerenderingchange",function(){return H()},!0):H()};var aXy=function(H){var U=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?H():(H=mnB(H),addEventListener("visibilitychange",H,{once:!0,capture:!0}),U(function(){H();removeEventListener("visibilitychange",H,{capture:!0})}))};var Vcc=function(){};
Vcc.prototype._processEntry=function(H){var U;(U=this._onBeforeProcessingEntry)==null||U.call(this,H)};var F9w=[2500,4E3],OM0=function(H){var U=U===void 0?{}:U;gF3(function(){var A=L9n(),M=RPH(),W=U$N(U),w=function(n){U.reportAllChanges||(n=n.slice(-1));n=_.b(n);for(var N=n.next();!N.done;N=n.next())N=N.value,W._processEntry(N),N.startTime<A.firstHiddenTime&&(M.value=Math.max(N.startTime-N4B(),0),M.entries=[N],O())},d=EF2(w);
if(d){var O=PoB(H,M,U.reportAllChanges);for(var f=mnB(function(){w(d.takeRecords());d.disconnect();O(!0)}),J=function(n){n.isTrusted&&(aXy(f),removeEventListener(n.type,J,{capture:!0}))},F=_.b(["keydown",
"click","visibilitychange"]),P=F.next();!P.done;P=F.next())addEventListener(P.value,J,{capture:!0});oFr(function(n){M=RPH();O=PoB(H,M,U.reportAllChanges);sT2(function(){M.value=performance.now()-n.timeStamp;O(!0)})})}})};var xnh;var zPw;_.k=function(){return zPw!==void 0?zPw:zPw=document.createElement("template")};
document.head.appendChild(_.k().content);var CoH;_.MD({_template:function(){if(CoH!==void 0)return CoH;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
var U=H.content,A=U.insertBefore;xnh===void 0&&(xnh=document.createElement("template"));var M=xnh;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return CoH=H},
is:"tp-yt-app-toolbar"});var tmg;var cgB;_.dS=function(){};
_.dS=_.MD({_template:function(){if(cgB!==void 0)return cgB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;tmg===void 0&&(tmg=document.createElement("template"));var M=tmg;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return cgB=H},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.dS.instance||(_.dS.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(H){this._text===H&&(H+="\u00a0");this._text="";this.async(function(){this._text=H},this.timeout)},
_onIronAnnounce:function(H){H.detail&&H.detail.text&&this.announce(H.detail.text)}});
_.dS.instance=null;_.dS.requestAvailability=function(){_.dS.instance||(_.dS.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.dS.instance):document.addEventListener("load",function(){document.body.appendChild(_.dS.instance)})};var ygz;var B4w;/*

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
*/
_.MD({_template:function(){if(B4w!==void 0)return B4w;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;ygz===void 0&&(ygz=document.createElement("template"));var M=ygz;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return B4w=H},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.jc,_.GF],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(H){this.$.textarea.selectionStart=H},set selectionEnd(H){this.$.textarea.selectionEnd=H},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var H=this.$.textarea.validity.valid;H&&(this.required&&this.value===""?H=!1:this.hasValidator()&&(H=_.jc.validate.call(this,this.value)));this.invalid=!H;this.fire("iron-input-validate");return H},
_bindValueChanged:function(H){this.value=H},
_valueChanged:function(H){var U=this.textarea;U&&(U.value!==H&&(U.value=H||H===0?H:""),this.bindValue=H,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(H){var U=_.Ig(H).path;this.value=U?U[0].value:H.target.value},
_constrain:function(H){var U;H=H||[""];for(U=this.maxRows>0&&H.length>this.maxRows?H.slice(0,this.maxRows):H.slice(0);this.rows>0&&U.length<this.rows;)U.push("");return U.join("\n")+"\u00a0"},
_valueForMirror:function(){var H=this.textarea;if(H)return this.tokens=H&&H.value?H.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var rgw;var ePp;_.MD({_template:function(){if(ePp!==void 0)return ePp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
var U=H.content,A=U.insertBefore;rgw===void 0&&(rgw=document.createElement("template"));var M=rgw;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return ePp=H},
is:"tp-yt-iron-collapse",behaviors:[_.Qo],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(H,U){H=H==="auto"?"":H;U=U&&!this.noAnimation&&this.isAttached&&this._desiredSize!==H;this._desiredSize=H;this._updateTransition(!1);U&&(U=this._calcSize(),H===""&&(this.style[this._dimensionMax]="",H=this._calcSize()),this.style[this._dimensionMax]=U,this.scrollTop=this.scrollTop,this._updateTransition(!0),U=H!==U);this.style[this._dimensionMax]=H;U||this._transitionEnd()},
enableTransition:function(H){_.Ia._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!H},
_updateTransition:function(H){this.style.transitionDuration=H&&!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(H){_.Ig(H).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var Dng;var $n2;var lXm=void 0,GbH={properties:{sizingTarget:{type:Object,value:function(){var H;return(H=this.hostElement)!=null?H: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},addSpacing:{type:Boolean,value:!1}},get _defaultPositionTarget(){var H,
U=_.Ig((H=this.hostElement)!=null?H:this).parentNode;U&&U.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(U=U.host);return U},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 H;this._memoizedIsRTL=window.getComputedStyle((H=this.hostElement)!=
null?H:this).direction=="rtl"}return this._memoizedIsRTL},attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var H;window.getComputedStyle((H=this.hostElement)!=null?H: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 H,U=window.getComputedStyle((H=this.hostElement)!=null?H:this);H=window.getComputedStyle(this.sizingTarget);var A,M,W;this._fitInfo={inlineStyle:{top:((A=this.hostElement)!=null?A:this).style.top||"",left:((M=this.hostElement)!=null?M:this).style.left||"",position:((W=this.hostElement)!=null?W:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:U.top!=="auto"?"top":U.bottom!=="auto"?"bottom":null,horizontally:U.left!=="auto"?"left":U.right!=="auto"?"right":null},sizedBy:{height:H.maxHeight!=="none",width:H.maxWidth!=="none",minWidth:parseInt(H.minWidth,10)||0,minHeight:parseInt(H.minHeight,10)||0},margin:{top:parseInt(U.marginTop,10)||0,right:parseInt(U.marginRight,10)||0,bottom:parseInt(U.marginBottom,10)||0,left:parseInt(U.marginLeft,10)||0}}}},
resetFit:function(){var H=this._fitInfo||{},U;for(U in H.sizerInlineStyle)this.sizingTarget.style[U]=H.sizerInlineStyle[U];for(U in H.inlineStyle){var A=void 0;((A=this.hostElement)!=null?A:this).style[U]=H.inlineStyle[U]}this._fitInfo=null},
refit:function(){var H=this.sizingTarget.scrollLeft,U=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=H;this.sizingTarget.scrollTop=U},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var H;((H=this.hostElement)!=null?H:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var U;((U=this.hostElement)!=null?U:this).style.left="0px";var A;((A=this.hostElement)!=null?A:this).style.top="0px";var M,W=((M=this.hostElement)!=null?M:this).getBoundingClientRect();A=this.__getNormalizedRect(this.positionTarget);M=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(M={left:M.left+24,right:M.right-24,top:M.top+24,bottom:M.bottom-24});if(this.expandSizingTargetForScrollbars){var w=this.sizingTarget.offsetWidth;var d=this.sizingTarget.offsetHeight;var O=this.sizingTarget.clientWidth;var f=this.sizingTarget.clientHeight}H=this._fitInfo.margin;var J={width:W.width+H.left+H.right,height:W.height+H.top+H.bottom};U=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,J,W,A,M);this.addSpacing&&(A.left-J.width===U.left?U.left-=8:A.top-J.height===U.top?U.top-=
8:A.right===U.left?U.left+=8:A.bottom===U.top&&(U.top+=8));J=U.left+H.left;var F=U.top+H.top;A=Math.min(M.right-H.right,J+W.width);var P=Math.min(M.bottom-H.bottom,F+W.height);J=Math.max(M.left+H.left,Math.min(J,A-this._fitInfo.sizedBy.minWidth));F=Math.max(M.top+H.top,Math.min(F,P-this._fitInfo.sizedBy.minHeight));A=Math.max(A-J,this._fitInfo.sizedBy.minWidth);P=Math.max(P-F,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=A+"px";this.sizingTarget.style.maxHeight=P+"px";J-=W.left;
W=F-W.top;var n;((n=this.hostElement)!=null?n:this).style.left=J+"px";var N;((N=this.hostElement)!=null?N:this).style.top=W+"px";if(this.expandSizingTargetForScrollbars){n=this.sizingTarget.offsetHeight;d=n-this.sizingTarget.clientHeight-(d-f);if(d>0){this.sizingTarget.style.maxHeight=Math.min(M.height-H.top-H.bottom,P+d)+"px";d=this.sizingTarget.offsetHeight;f=d-n;var L;U.verticalAlign==="top"?L=W:U.verticalAlign==="middle"?L=W-f/2:U.verticalAlign==="bottom"&&(L=W-f);L=Math.max(M.top+H.top,Math.min(L,
M.bottom-H.bottom-d));var m;((m=this.hostElement)!=null?m:this).style.top=L+"px"}L=this.sizingTarget.offsetWidth;w=L-this.sizingTarget.clientWidth-(w-O);if(w>0){lXm!==void 0?O=lXm:(O=document.createElement("div"),Object.assign(O.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),m=document.createElement("div"),m.style.width="200px",m.style.height="200px",O.appendChild(m),document.body.appendChild(O),lXm=Math.abs(O.offsetWidth-100)>1?O.offsetWidth-O.clientWidth:
0,document.body.removeChild(O),O=lXm);this.sizingTarget.style.maxWidth=Math.min(M.width-H.left-H.right,A+w-O)+"px";w=this.sizingTarget.offsetWidth+O;O=w-L;var z;U.horizontalAlign==="left"?z=J:U.horizontalAlign==="center"?z=J-O/2:U.horizontalAlign==="right"&&(z=J-O);z=Math.max(M.left+H.left,Math.min(z,M.right-H.right-w));var c;((c=this.hostElement)!=null?c:this).style.left=z+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var H=this._fitInfo;if(!H.positionedBy.vertically){var U;((U=this.hostElement)!=null?U:this).style.position="fixed";var A;((A=this.hostElement)!=null?A:this).style.top="0px"}if(!H.positionedBy.horizontally){var M;((M=this.hostElement)!=null?M:this).style.position="fixed";var W;((W=this.hostElement)!=null?W:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var w;U=((w=this.hostElement)!=null?w:this).getBoundingClientRect();
H.sizedBy.height||this.__sizeDimension(U,H.positionedBy.vertically,"top","bottom","Height");H.sizedBy.width||this.__sizeDimension(U,H.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(H,U,A,M,W){this.__sizeDimension(H,U,A,M,W)},
__sizeDimension:function(H,U,A,M,W){var w=this._fitInfo,d=this.__getNormalizedRect(this.fitInto);d=W==="Width"?d.width:d.height;H=(U=U===M)?d-H[M]:H[A];A=w.margin[U?A:M];M="offset"+W;var O;w=((O=this.hostElement)!=null?O:this)[M]-this.sizingTarget[M];this.sizingTarget.style["max"+W]=d-A-H-w+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var H=this._fitInfo.positionedBy;if(!H.vertically||!H.horizontally){var U;((U=this.hostElement)!=null?U:this).style.position="fixed";if(!H.vertically){var A;((A=this.hostElement)!=null?A:this).style.top="0px"}if(!H.horizontally){var M;((M=this.hostElement)!=null?M:this).style.left="0px"}var W;U=((W=this.hostElement)!=null?W:this).getBoundingClientRect();W=this.__getNormalizedRect(this.fitInto);if(!H.vertically){A=W.top-U.top+(W.height-
U.height)/2;var w;((w=this.hostElement)!=null?w:this).style.top=A+"px"}if(!H.horizontally){H=W.left-U.left+(W.width-U.width)/2;var d;((d=this.hostElement)!=null?d:this).style.left=H+"px"}}}},
__getNormalizedRect:function(H){return H===document.documentElement||H===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:H.getBoundingClientRect()},
__getOffscreenArea:function(H,U,A){return Math.abs(Math.min(0,H.top)+Math.min(0,A.bottom-(H.top+U.height)))*U.width+Math.abs(Math.min(0,H.left)+Math.min(0,A.right-(H.left+U.width)))*U.height},
__getPosition:function(H,U,A,M,W,w){var d=[{verticalAlign:"top",horizontalAlign:"left",top:W.top+this.verticalOffset,left:W.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:W.top+this.verticalOffset,left:W.right-A.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:W.bottom-A.height-this.verticalOffset,left:W.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:W.bottom-A.height-this.verticalOffset,left:W.right-A.width-
this.horizontalOffset}];if(this.noOverlap){for(var O=0,f=d.length;O<f;O++){var J={},F;for(F in d[O])J[F]=d[O][F];d.push(J)}d[0].top=d[1].top+=W.height;d[2].top=d[3].top-=W.height;d[4].left=d[6].left+=W.width;d[5].left=d[7].left-=W.width}U=U==="auto"?null:U;H=H==="auto"?null:H;H&&H!=="center"||(d.push({verticalAlign:"top",horizontalAlign:"center",top:W.top+this.verticalOffset+(this.noOverlap?W.height:0),left:W.left-M.width/2+W.width/2+this.horizontalOffset}),d.push({verticalAlign:"bottom",horizontalAlign:"center",
top:W.bottom-A.height-this.verticalOffset-(this.noOverlap?W.height:0),left:W.left-M.width/2+W.width/2+this.horizontalOffset}));U&&U!=="middle"||(d.push({verticalAlign:"middle",horizontalAlign:"left",top:W.top-M.height/2+W.height/2+this.verticalOffset,left:W.left+this.horizontalOffset+(this.noOverlap?W.width:0)}),d.push({verticalAlign:"middle",horizontalAlign:"right",top:W.top-M.height/2+W.height/2+this.verticalOffset,left:W.right-A.width-this.horizontalOffset-(this.noOverlap?W.width:0)}));U==="middle"&&
H==="center"&&d.push({verticalAlign:"middle",horizontalAlign:"center",top:W.top-M.height/2+W.height/2+this.verticalOffset,left:W.left-M.width/2+W.width/2+this.horizontalOffset});for(O=0;O<d.length;O++){M=d[O];W=M.verticalAlign===U;f=M.horizontalAlign===H;if(!this.dynamicAlign&&!this.noOverlap&&W&&f){var P=M;break}J=(!U||W)&&(!H||f);if(this.dynamicAlign||J){M.offscreenArea=this.__getOffscreenArea(M,A,w);if(M.offscreenArea===0&&J){P=M;break}M.alignsOk=W+f;P=P||M;W=M.offscreenArea-P.offscreenArea;if(W<
0||W===0&&M.alignsOk>P.alignsOk)P=M}}return P}};/*

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 Ox,Yhp,qhw;Ox=Element.prototype;Yhp=Ox.matches||Ox.matchesSelector||Ox.mozMatchesSelector||Ox.msMatchesSelector||Ox.oMatchesSelector||Ox.webkitMatchesSelector;qhw=function(){};
_.kbk=function(H){var U=hPh,A=[];return U._collectTabbableNodes(H,A)?U._sortByTabIndex(A):A};
_.X=qhw.prototype;_.X.isFocusable=function(H){return Yhp.call(H,"input, select, textarea, button, object")?Yhp.call(H,":not([disabled])"):Yhp.call(H,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.X._normalizedTabIndex=function(H){return this.isFocusable(H)?(H=H.getAttribute("tabindex")||0,Number(H)):-1};
_.X._collectTabbableNodes=function(H,U){if(H.nodeType!==Node.ELEMENT_NODE||!this._isVisible(H))return!1;var A=this._normalizedTabIndex(H),M=A>0;A>=0&&U.push(H);if(H.localName==="content"||H.localName==="slot")A=_.Ig(H).getDistributedNodes();else{var W;A=((W=_.Ig(H).shadowRoot)!=null?W:_.Ig(H.root||H)).children}for(H=0;H<A.length;H++)M=this._collectTabbableNodes(A[H],U)||M;return M};
_.X._isVisible=function(H){var U=H.style;return U.visibility!=="hidden"&&U.display!=="none"?(U=window.getComputedStyle(H),U.visibility!=="hidden"&&U.display!=="none"):!1};
_.X._sortByTabIndex=function(H){var U=H.length;if(U<2)return H;var A=Math.ceil(U/2);U=this._sortByTabIndex(H.slice(0,A));H=this._sortByTabIndex(H.slice(A));return this._mergeSortByTabIndex(U,H)};
_.X._mergeSortByTabIndex=function(H,U){for(var A=[];H.length>0&&U.length>0;)this._hasLowerTabOrder(H[0],U[0])?A.push(U.shift()):A.push(H.shift());return A.concat(H,U)};
_.X._hasLowerTabOrder=function(H,U){H=Math.max(H.tabIndex,0);U=Math.max(U.tabIndex,0);return H===0||U===0?U>H:H>U};
var hPh=new qhw;var vFg;var T4K;_.MD({_template:function(){if(T4K!==void 0)return T4K;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;vFg===void 0&&(vFg=document.createElement("template"));var M=vFg;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return T4K=H},
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&&_.Ig(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Ig(this.parentNode).removeChild(this)},
_onTransitionend:function(H){H&&H.target===this&&this.complete()},
_openedChanged:function(H){H?this.prepare():(H=window.getComputedStyle(this),H.transitionDuration!=="0s"&&H.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 uI=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Pa(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)};
uI.prototype._bringOverlayAtIndexToFront=function(H){var U=this._overlays[H];if(U){var A=this._overlays.length-1,M=this._overlays[A];M&&this._shouldBeBehindOverlay(U,M)&&A--;if(!(H>=A)){M=Math.max(this._getZ(_.jTw(this)),this._minimumZ);for(this._getZ(U)<=M&&this._applyOverlayZ(U,M);H<A;)this._overlays[H]=this._overlays[H+1],H++;this._overlays[A]=U}}};
uI.prototype.addOverlay=function(H){var U=this._overlays.indexOf(H);if(U>=0)this._bringOverlayAtIndexToFront(U);else{U=this._overlays.length;var A=this._overlays[U-1],M=Math.max(this._getZ(A),this._minimumZ),W=this._getZ(H);A&&this._shouldBeBehindOverlay(H,A)&&(this._applyOverlayZ(A,M),U--,M=Math.max(this._getZ(this._overlays[U-1]),this._minimumZ));W<=M&&this._applyOverlayZ(H,M);this._overlays.splice(U,0,H)}this.trackBackdrop()};
uI.prototype.removeOverlay=function(H){H=this._overlays.indexOf(H);H!==-1&&(this._overlays.splice(H,1),this.trackBackdrop())};
_.jTw=function(H){return H._overlays[H._overlays.length-1]};
_.X=uI.prototype;_.X.trackBackdrop=function(){var H=this._overlayWithBackdrop();if(H||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(H)-1,this.backdropElement.opened=!!H,this.backdropElement.prepare()};
_.X._overlayWithBackdrop=function(){for(var H=this._overlays.length-1;H>=0;H--)if(this._overlays[H].withBackdrop)return this._overlays[H]};
_.X._getZ=function(H){var U=this._minimumZ;if(H){var A,M,W=Number(((A=H.hostElement)!=null?A:H).style.zIndex||window.getComputedStyle((M=H.hostElement)!=null?M:H).zIndex);W===W&&(U=W)}return U};
_.X._setZ=function(H,U){var A;((A=H.hostElement)!=null?A:H).style.zIndex=U};
_.X._applyOverlayZ=function(H,U){this._setZ(H,U+2)};
_.X._overlayInPath=function(H){H=H||[];for(var U=0;U<H.length;U++){var A=void 0;if(((A=H[U].polymerController)!=null?A:H[U])._manager===this)return H[U]}};
_.X._onCaptureClick=function(H){var U=this._overlays.length-1;if(U!==-1)for(var A=_.Ig(H).path,M,W;(M=this._overlays[U])&&this._overlayInPath(A)!==((W=M.hostElement)!=null?W:M);)if(M._onCaptureClick(H),M.allowClickThrough)U--;else break};
_.X._onCaptureFocus=function(H){var U=_.jTw(this);U&&U._onCaptureFocus(H)};
_.X._onCaptureKeyDown=function(H){var U=_.jTw(this);U&&(_.le.keyboardEventMatchesKeys(H,"esc")?U._onCaptureEsc(H):_.le.keyboardEventMatchesKeys(H,"tab")&&U._onCaptureTab(H))};
_.X._shouldBeBehindOverlay=function(H,U){return!H.alwaysOnTop&&U.alwaysOnTop&&!U.contains(H)};
_.D5.Object.defineProperties(uI.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 H=document.activeElement;H&&H instanceof Element!==!1||(H=document.body);for(;H.root&&_.Ig(H.root).activeElement;)H=_.Ig(H.root).activeElement;return H}}});
_.Zl=new uI;var AfV=0,MQM=0,WXE=null,wYF=[],Qk=["wheel","mousewheel","DOMMouseScroll"],XYE;_.S("web_no_lock_on_touchstart_killswitch")&&(Qk.push("touchstart"),Qk.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;_.fZ={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:_.Zl},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var H;return this._focusedChild||_.Ig((H=this.hostElement)!=null?H:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var H;return _.kbk((H=this.hostElement)!=null?H: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 H;this._observer=_.Ig((H=this.hostElement)!=null?H:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var H;_.Ig((H=this.hostElement)!=null?H:this).unobserveNodes(this._observer)}this._observer=null;for(var U in this.__rafs)this.__rafs[U]!==null&&cancelAnimationFrame(this.__rafs[U]);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(H){this.fire("iron-overlay-canceled",H,{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 H;((H=this.hostElement)!=null?H:this).style.outline="none";var U;((U=this.hostElement)!=null?U:this).style.display="none"}},
_openedChanged:function(H){if(H){var U;((U=this.hostElement)!=null?U:this).removeAttribute("aria-hidden")}else{var A;((A=this.hostElement)!=null?A: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 H;if(this.withBackdrop&&!((H=this.hostElement)!=null?H:this).hasAttribute("tabindex")){var U;((U=this.hostElement)!=null?U:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var A;((A=this.hostElement)!=null?A: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 H;((H=this.hostElement)!=null?H:this).style.display="none";var U;((U=this.hostElement)!=null?U:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var H,U;((H=this.hostElement)!=null?H:this).style.transition=((U=this.hostElement)!=null?U:this).style.webkitTransition="none";var A,M;((A=this.hostElement)!=null?A:this).style.transform=((M=this.hostElement)!=null?M:this).style.webkitTransform="none";var W;((W=this.hostElement)!=null?W:this).style.display=""},
_finishPositioning:function(){var H;((H=this.hostElement)!=null?H:this).style.display="none";this.scrollTop=this.scrollTop;var U,A;((U=this.hostElement)!=null?U:this).style.transition=((A=this.hostElement)!=null?A:this).style.webkitTransition="";var M,W;((M=this.hostElement)!=null?M:this).style.transform=((W=this.hostElement)!=null?W:this).style.webkitTransform="";var w;((w=this.hostElement)!=null?w:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var H=this._manager.deepActiveElement,U;if(!(U=H===document.body))a:{for(;H;H=H.assignedSlot||H.parentNode||H.host)if(H===this){U=!0;break a}U=!1}U&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(H){this.noCancelOnOutsideClick||this.cancel(H)},
_onCaptureFocus:function(H){if(this.withBackdrop){var U=_.Ig(H).path;U.indexOf(this)===-1?(H.stopPropagation(),this._applyFocus()):this._focusedChild=U[0]}},
_onCaptureEsc:function(H){this.noCancelOnEscKey||this.cancel(H)},
_onCaptureTab:function(H){if(this.withBackdrop){this.__ensureFirstLastFocusables();var U=H.shiftKey,A=U?this.__firstFocusableNode:this.__lastFocusableNode;U=U?this.__lastFocusableNode:this.__firstFocusableNode;if(A===U)A=!0;else{var M=this._manager.deepActiveElement;A=M===A||M===this}A&&(H.preventDefault(),this._focusedChild=U,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 H=this._focusableNodes;this.__firstFocusableNode=H[0];this.__lastFocusableNode=H[H.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(H,U){var A=this.__rafs;A[H]!==null&&cancelAnimationFrame(A[H]);A[H]=requestAnimationFrame(function(){A[H]=null;U.call(this)}.bind(this))},
__updateScrollObservers:function(H,U,A){H&&U&&this.__isValidScrollAction(A)?(A==="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),XYE=_._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()):(H=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),H!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(H,1),XYE=_._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(LK)for(var H=this;H;)H.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&H.host&&this.__rootNodes.push(H),H=H.host||H.assignedSlot||H.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(U){U.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(H){H.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(H){return H==="lock"||H==="refit"||H==="cancel"},
__onCaptureScroll:function(H){if(!(this.__isAnimating||_.Ig(H).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(H)}},
__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)}};
_.Jf=[GbH,_.Qo,_.fZ];_.MD({_template:function(){if($n2!==void 0)return $n2;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;Dng===void 0&&(Dng=document.createElement("template"));var M=Dng;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return $n2=H},
is:"tp-yt-iron-dropdown",behaviors:[_.GF,_.le,_.Jf,Ox2],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 H=_.Ig(this.$.content).getDistributedNodes(),U=0,A=H.length;U<A;U++)if(H[U].nodeType===Node.ELEMENT_NODE)return H[U]},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(),_.fZ._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.fZ._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.fZ._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var H=this.containedElement,U=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),A=0;A<U.length;A++)U[A].node=H;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(H){this._readied&&(H?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var H=this.focusTarget||this.containedElement;H&&this.opened&&!this.noAutoFocus?H.focus():_.fZ._applyFocus.apply(this,arguments)}});var IX3;var QTB;/*

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 Vmk=new _.v0({type:"iconset"});
_.MD({_template:function(){if(QTB!==void 0)return QTB;var H=document.createElement("template");_.E(H,"\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");H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;IX3===void 0&&(IX3=document.createElement("template"));
var M=IX3;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return QTB=H},
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(H){H=(H||"").split(":");this._iconName=H.pop();this._iconsetName=H.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&&_.Ig(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=Vmk.byKey(this._iconsetName)){var H=this._iconset.applyIcon(this,this._iconName,this.theme);H&&H.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,_.Ig(this.root).appendChild(this._img)}});var Htw;var Ubw;_.MD({_template:function(){if(Ubw!==void 0)return Ubw;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
var U=H.content,A=U.insertBefore;Htw===void 0&&(Htw=document.createElement("template"));var M=Htw;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return Ubw=H},
is:"tp-yt-iron-input",behaviors:[_.jc],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(){_.dS.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Ig(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Ig(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 H=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":H=/[0-9.,e-]/}return H},_bindValueChanged:function(H,U){U&&(H===void 0?U.value=null:H!==U.value&&(this.inputElement.value=H),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:H}))},
_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(H){var U=H.keyCode==19||H.keyCode==20||H.keyCode==45||H.keyCode==46||H.keyCode==144||H.keyCode==145||H.keyCode>32&&H.keyCode<41||H.keyCode>111&&H.keyCode<124;return!(H.keyCode==8||H.keyCode==9||H.keyCode==13||H.keyCode==27)&&!(H.charCode==0&&U)},
_onKeypress:function(H){if(this.allowedPattern||this.inputElement.type==="number"){var U=this._patternRegExp;if(U&&!(H.metaKey||H.ctrlKey||H.altKey)){this._patternAlreadyChecked=!0;var A=String.fromCharCode(H.charCode);this._isPrintable(H)&&!U.test(A)&&(H.preventDefault(),this._announceInvalidCharacter("Invalid character "+A+" not entered."))}}},
_checkPatternValidity:function(){var H=this._patternRegExp;if(!H)return!0;for(var U=0;U<this.inputElement.value.length;U++)if(!H.test(this.inputElement.value[U]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var H=this.inputElement.checkValidity();H&&(this.required&&this.bindValue===""?H=!1:this.hasValidator()&&(H=_.jc.validate.call(this,this.bindValue)));this.invalid=!H;this.fire("iron-input-validate");return H},
_announceInvalidCharacter:function(H){this.fire("iron-announce",{text:H})},
_computeValue:function(H){return H}});var AJH;var M$r;var W3r=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),wQm=W3r&&W3r[1]>=8;
_.MD({_template:function(){if(M$r!==void 0)return M$r;var H=document.createElement("template");_.E(H,'\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 aria-label="[[listAriaLabel]]" id="items" role="list" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;AJH===void 0&&(AJH=document.createElement("template"));var M=AJH;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return M$r=H},
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},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[pvr,_.Qo,_.dPn,iGh],_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 _.Ig(_.Ig(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var H=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,H-this._physicalCount)},set _virtualStart(H){H=this._clamp(H,0,this._maxVirtualStart);this.grid&&(H-=H%this._itemsPerRow);this._virtualStartVal=H},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(H){H%=this._physicalCount;H<0&&(H=this._physicalCount+H);this.grid&&(H-=H%this._itemsPerRow);this._physicalStartVal=H},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(H){this._physicalCountVal=H},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 H=this._firstVisibleIndexVal;if(H==null){var U=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
H=this._iterateItems(function(A,M){U+=this._getPhysicalSizeIncrement(A);if(U>this._scrollPosition)return this.grid?M-M%this._itemsPerRow:M;if(this.grid&&this._virtualCount-1===M)return M-M%this._itemsPerRow})||0}return H},
get lastVisibleIndex(){var H=this._lastVisibleIndexVal;if(H==null){if(this.grid)H=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var U=this._physicalTop+this._scrollOffset;this._iterateItems(function(A,M){U<this._scrollBottom&&(H=M);U+=this._getPhysicalSizeIncrement(A)})}this._lastVisibleIndexVal=H}return H},
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,_.VD);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(H){this.style.webkitOverflowScrolling=H===this?"touch":"";this.style.overflowY=H===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.VD)},
updateViewportBoundaries:function(){var H=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(H["padding-top"],10);this._isRTL=H.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var H=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),U=H-this._scrollPosition,A=U>=0;this._scrollPosition=H;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(U)>this._physicalSize&&this._physicalSize>0?(U-=this._scrollOffset,A=Math.round(U/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=A,this._physicalStart+=A,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(H=this._getReusables(A),A?(this._physicalTop=H.physicalTop,this._virtualStart+=H.indexes.length,this._physicalStart+=H.indexes.length):(this._virtualStart=this._virtualStart-H.indexes.length,this._physicalStart=this._physicalStart-H.indexes.length),this._update(H.indexes,A?null:H.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),NC))},
_getReusables:function(H){var U=[],A=this._hiddenContentSize*this._ratio,M=this._virtualStart,W=this._virtualEnd,w=this._physicalCount,d=this._physicalTop+this._scrollOffset;var O=this._physicalBottom+this._scrollOffset;var f=this._scrollPosition,J=this._scrollBottom;if(H){var F=this._physicalStart;O=f-d}else F=this._physicalEnd,O-=J;for(;;){var P=this._getPhysicalSizeIncrement(F);O-=P;if(U.length>=w||O<=A)break;if(H){if(W+U.length+1>=this._virtualCount)break;if(d+P>=f-this._scrollOffset)break;U.push(F);
d+=P;F=(F+1)%w}else{if(M-U.length<=0)break;if(d+this._physicalSize-P<=J)break;U.push(F);d-=P;F=F===0?w-1:F-1}}return{indexes:U,physicalTop:d-this._scrollOffset}},
_update:function(H,U){if(!(H&&H.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(H);this._updateMetrics(H);if(U)for(;U.length;)H=U.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(H);this._positionItems();this._updateScrollerSize()}},
_createPool:function(H){this._ensureTemplatized();var U,A=Array(H);for(U=0;U<H;U++){var M=this.stamp(null);A[U]=M.root.querySelector("*");this._itemsParent.appendChild(M.root)}return A},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(H){H=this._clamp(this._physicalCount+H,3,this._virtualCount-this._virtualStart);H=this._convertIndexToCompleteRow(H);if(this.grid){var U=H%this._itemsPerRow;U&&H-U<=this._physicalCount&&(H+=this._itemsPerRow);H-=U}H-=this._physicalCount;U=Math.round(this._physicalCount*.5);if(!(H<0)){if(H>0){U=window.performance.now();[].push.apply(this._physicalItems,this._createPool(H));for(var A=0;A<H;A++)this._physicalSizes.push(0);this._physicalCount+=H;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=H);this._update();this._templateCost=(window.performance.now()-U)/H;U=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||U===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,U)),Glk):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,U),NC))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var H=this._getReusables(!0);this._physicalTop=H.physicalTop;this._virtualStart+=H.indexes.length;this._physicalStart+=H.indexes.length;this._update(H.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 H={__key__:!0};H[this.as]=!0;H[this.indexAs]=!0;H[this.selectedAs]=!0;H.tabIndex=!0;this._instanceProps=H;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(H,U){typeof U!=="undefined"&&(this.notifyResize(),_.$G(),H&&this._updateGridMetrics())},
_itemsChanged:function(H){if(H.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,
_.VD);else if(H.path==="items.splices"){this._adjustVirtualIndex(H.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(H.value.indexSplices.some(function(A){return A.addedCount>0||A.removed.length>0})){var U=this._getActiveElement();
this.contains(U)&&U.blur()}H=H.value.indexSplices.some(function(A){return A.index+A.addedCount>=this._virtualStart&&A.index<=this._virtualEnd},this);
this._isClientFull()&&!H||this._debounce("_render",this._render,_.VD)}else H.path!=="items.length"&&this._forwardItemPath(H.path,H.value)},
_forwardItemPath:function(H,U){H=H.slice(6);var A=H.indexOf(".");A===-1&&(A=H.length);var M,W=this.modelForElement(this._offscreenFocusedItem),w=parseInt(H.substring(0,A),10);if(M=this._isIndexRendered(w)){var d=this._getPhysicalIndex(w);var O=this.modelForElement(this._physicalItems[d])}else W&&(O=W);O&&O[this.indexAs]===w&&(H=H.substring(A+1),H=this.as+(H?"."+H:""),O._setPendingPropertyOrPath(H,U,!1,!0),O._flushProperties&&O._flushProperties(),M&&(this._updateMetrics([d]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(H){H.forEach(function(U){U.removed.forEach(this._removeItem,this);U.index<this._virtualStart&&(U=Math.max(U.addedCount-U.removed.length,U.index-this._virtualStart),this._virtualStart+=U,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=U))},this)},
_removeItem:function(H){this.$.selector.deselect(H);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===H&&this._removeFocusedItem()},
_iterateItems:function(H,U){var A,M;if(arguments.length===2&&U)for(M=0;M<U.length;M++){var W=U[M];var w=this._computeVidx(W);if((A=H.call(this,W,w))!=null)return A}else{W=this._physicalStart;for(w=this._virtualStart;W<this._physicalCount;W++,w++)if((A=H.call(this,W,w))!=null)return A;for(W=0;W<this._physicalStart;W++,w++)if((A=H.call(this,W,w))!=null)return A}},
_computeVidx:function(H){return H>=this._physicalStart?this._virtualStart+(H-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+H},
_assignModels:function(H){this._iterateItems(function(U,A){var M=this._physicalItems[U],W=this.items&&this.items[A];if(W!=null){var w=this.modelForElement(M);w.__key__=null;this._forwardProperty(w,this.as,W);this._forwardProperty(w,this.selectedAs,this.$.selector.isSelected(W));this._forwardProperty(w,this.indexAs,A);this._forwardProperty(w,"tabIndex",this._focusedVirtualIndex===A?0:-1);this._physicalIndexForKey[w.__key__]=U;w._flushProperties&&w._flushProperties(!0);M.removeAttribute("hidden")}else M.setAttribute("hidden",
"")},H)},
_updateMetrics:function(H){_.$G();var U=0,A=0,M=this._physicalAverageCount,W=this._physicalAverage;this._iterateItems(function(w){A+=this._physicalSizes[w];this._physicalSizes[w]=this._physicalItems[w].offsetHeight;U+=this._physicalSizes[w];this._physicalAverageCount+=this._physicalSizes[w]?1:0},H);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(A=this._itemsPerRow===1?A:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+U-A,this._itemsPerRow=1);this._physicalAverageCount!==M&&(this._physicalAverage=Math.round((W*M+U)/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 H=this._physicalTop;if(this.grid){var U=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(A,M){var W=Math.floor(M%this._itemsPerRow*this._itemWidth+U);this._isRTL&&(W*=-1);this.translate3d(W+"px",H+"px",0,this._physicalItems[A]);this._shouldRenderNextRow(M)&&(H+=this._rowHeight)})}else this._iterateItems(function(A){this.translate3d(0,H+"px",0,this._physicalItems[A]);
H+=this._physicalSizes[A]})},
_getPhysicalSizeIncrement:function(H){return this.grid?this._computeVidx(H)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[H]},
_shouldRenderNextRow:function(H){return H%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var H=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(H!==0){this._physicalTop=this._physicalTop-H;var U=this._scrollPosition;!wQm&&U>0&&this._resetScrollPosition(U-H)}},
_resetScrollPosition:function(H){this.scrollTarget&&H>=0&&(this._scrollPosition=this._scrollTop=H)},
_updateScrollerSize:function(H){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((H=(H=(H=H||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(H){return this.scrollToIndex(this.items.indexOf(H))},
scrollToIndex:function(H){if(!(typeof H!=="number"||H<0||H>this.items.length-1)&&(_.$G(),this._physicalCount!==0)){H=this._clamp(H,0,this._virtualCount-1);if(!this._isIndexRendered(H)||H>=this._maxVirtualStart)this._virtualStart=this.grid?H-this._itemsPerRow*2:H-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var U=this._physicalStart,A=this._virtualStart,M=0,W=this._hiddenContentSize;A<H&&
M<=W;)M+=this._getPhysicalSizeIncrement(U),U=(U+1)%this._physicalCount,A++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+M);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)},_.VD)},
selectItem:function(H){return this.selectIndex(this.items.indexOf(H))},
selectIndex:function(H){if(!(H<0||H>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(H)){var U=this.modelForElement(this._physicalItems[this._getPhysicalIndex(H)]);U&&(U[this.selectedAs]=!0);this.updateSizeForIndex(H)}this.$.selector.selectIndex(H)}},
deselectItem:function(H){return this.deselectIndex(this.items.indexOf(H))},
deselectIndex:function(H){H<0||H>=this._virtualCount||(this._isIndexRendered(H)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(H)])[this.selectedAs]=!1,this.updateSizeForIndex(H)),this.$.selector.deselectIndex(H))},
toggleSelectionForItem:function(H){return this.toggleSelectionForIndex(this.items.indexOf(H))},
toggleSelectionForIndex:function(H){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(H):this.$.selector.isSelected(this.items[H]))?this.deselectIndex(H):this.selectIndex(H)},
clearSelection:function(){this._iterateItems(function(H){this.modelForElement(this._physicalItems[H])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(H){(H?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(H){var U=this.modelForElement(H.target);if(U){var A=_.Ig(H).path[0];H=this._getActiveElement();var M=this._physicalItems[this._getPhysicalIndex(U[this.indexAs])];if(A.localName!=="input"&&A.localName!=="button"&&A.localName!=="select"){A=U.tabIndex;U.tabIndex=-100;var W=H?H.tabIndex:-1;U.tabIndex=A;H&&M!==H&&M.contains(H)&&W!==-100||this.toggleSelectionForItem(U[this.as])}}},
_multiSelectionChanged:function(H){this.clearSelection();this.$.selector.multi=H},
updateSizeForItem:function(H){return this.updateSizeForIndex(this.items.indexOf(H))},
updateSizeForIndex:function(H){if(!this._isIndexRendered(H))return null;this._updateMetrics([this._getPhysicalIndex(H)]);this._positionItems();return null},
_manageFocus:function(){var H=this._focusedVirtualIndex;H>=0&&H<this._virtualCount?this._isIndexRendered(H)?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(H){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(H/this._itemsPerRow)*this._itemsPerRow:H},
_isIndexRendered:function(H){return H>=this._virtualStart&&H<=this._virtualEnd},
_isIndexVisible:function(H){return H>=this.firstVisibleIndex&&H<=this.lastVisibleIndex},
_getPhysicalIndex:function(H){return(this._physicalStart+(H-this._virtualStart))%this._physicalCount},
focusItem:function(H){this._focusPhysicalItem(H)},
_focusPhysicalItem:function(H){if(!(H<0||H>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(H)||this.scrollToIndex(H);var U=this._physicalItems[this._getPhysicalIndex(H)],A=this.modelForElement(U),M;A.tabIndex=-100;U.tabIndex===-100&&(M=U);M||(M=_.Ig(U).querySelector('[tabindex="-100"]'));A.tabIndex=0;this._focusedVirtualIndex=H;M&&M.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 H=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var U=this.stamp(null);this._focusBackfillItem=U.root.querySelector("*");this._itemsParent.appendChild(U.root)}this._offscreenFocusedItem=this._physicalItems[H];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[H]=this._focusBackfillItem;this._focusedPhysicalIndex=H;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var H=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),U=this._physicalItems[H];if(U){var A=this.modelForElement(U),M=this.modelForElement(this._offscreenFocusedItem);A[this.as]===M[this.as]?(this._focusBackfillItem=U,A.tabIndex=-1,this._physicalItems[H]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(H){H=this.modelForElement(H.target);var U=this.modelForElement(this._focusedItem),A=this._offscreenFocusedItem!==null,M=this._focusedVirtualIndex;H&&(U===H?this._isIndexVisible(M)||this.scrollToIndex(M):(this._restoreFocusedItem(),U&&(U.tabIndex=-1),H.tabIndex=0,this._focusedVirtualIndex=M=H[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(M),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],A&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(H){switch(H.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&H.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&&H.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(H)}},
_clamp:function(H,U,A){return Math.min(A,Math.max(U,H))},
_debounce:function(H,U,A){this._debouncers=this._debouncers||{};this._debouncers[H]=_.yF(this._debouncers[H],A,U.bind(this));_.BR(this._debouncers[H])},
_forwardProperty:function(H,U,A){H._setPendingProperty(U,A)},
_forwardHostPropV2:function(H,U){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(A){A&&this.modelForElement(A).forwardHostProp(H,U)},this)},
_notifyInstancePropV2:function(H,U,A){l9r(this.as,U)&&(H=H[this.indexAs],U==this.as&&(this.items[H]=A),this.notifyPath(VZ(this.as,"items."+H,U),A))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(H,U,A){U.indexOf(this.as+".")===0&&this.notifyPath("items."+H.__key__+"."+U.slice(this.as.length+1),A)},
_forwardParentPath:function(H,U){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(A){A&&this.modelForElement(A).notifyPath(H,U)},this)},
_forwardParentProp:function(H,U){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(A){A&&(this.modelForElement(A)[H]=U)},this)},
_getActiveElement:function(){var H=this._itemsParent.node.domHost;return _.Ig(H?H.root:document).activeElement},
_scrollTargetChanged:function(H,U){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(U)if(H==="document")this.scrollTarget=this._doc;else if(typeof H==="string"){var A,M;this.scrollTarget=(U=(M=(A=this.domHost)==null?void 0:A.polymerController)!=null?M:this.domHost)&&U.$?U.$[H]:_.Ig(this.ownerDocument).querySelector("#"+H)}else this._isValidScrollTarget()&&(this._oldScrollTarget=H,this._toggleScrollListener(this._shouldHaveListener,H))}});var XQn;var itn;var btw=function(H,U,A,M){H-=A;U-=M;return Math.sqrt(H*H+U*U)},dbw=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
iZ7.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var bZM=function(H){H.maxRadius=0;H.mouseDownStart=0;H.mouseUpStart=0;H.xStart=0;H.yStart=0;H.xEnd=0;H.yEnd=0;H.containerMetrics=new iZ7(H.element)};
d$V.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var H=dbw()-this.mouseDownStart;this.mouseUpStart&&(H-=this.mouseUpElapsed);return H},get mouseUpElapsed(){return this.mouseUpStart?dbw()-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 H=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(H*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-H/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===0&&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 H=this.radius/(this.containerMetrics.size/2);var U=this.xNow-this.containerMetrics.width/2;var A=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+U+"px, "+A+"px)";this.waveContainer.style.transform="translate3d("+U+"px, "+A+"px, 0)";this.wave.style.webkitTransform="scale("+H+","+H+")";this.wave.style.transform="scale3d("+H+","+H+",1)"},
downAction:function(H){var U=this.containerMetrics.width/2,A=this.containerMetrics.height/2;bZM(this);this.mouseDownStart=dbw();this.center?(this.xStart=U,this.yStart=A):(this.xStart=H?H.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=H?H.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=U,this.yEnd=A);H=this.containerMetrics;U=this.xStart;A=this.yStart;this.maxRadius=Math.max(btw(U,A,0,0),btw(U,A,
H.width,0),btw(U,A,0,H.height),btw(U,A,H.width,H.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=dbw())},
remove:function(){_.Ig(_.Ig(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.MD({_template:function(){if(itn!==void 0)return itn;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;XQn===void 0&&(XQn=document.createElement("template"));var M=XQn;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return itn=H},
is:"tp-yt-paper-ripple",behaviors:[_.le],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(){_.Ig(this).parentNode.nodeType==11?this.keyEventTarget=_.Ig(this).getOwnerRoot().host:this.keyEventTarget=_.Ig(this).parentNode;var H=this.keyEventTarget;this.listen(H,"up","uiUpAction");this.listen(H,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(H){H.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var H=0;H<this.ripples.length;++H)if(!this.ripples[H].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(H){this.noink||this.downAction(H)},
downAction:function(H){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(H),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(H){this.noink||this.upAction(H)},
upAction:function(H){this.holdDown||(this.ripples.forEach(function(U){U.upAction(H)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var H=0;H<this.ripples.length;++H){var U=this.ripples[H];U.isOpacityFullyDecayed&&!U.isRestingAtMaxRadius&&this.removeRipple(U)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var H=new d$V(this);_.Ig(this.$.waves).appendChild(H.waveContainer);this.$.background.style.backgroundColor=H.color;this.ripples.push(H);this._setAnimating(!0);return H},
removeRipple:function(H){var U=this.ripples.indexOf(H);U<0||(this.ripples.splice(U,1),H.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var H;for(H=0;H<this.ripples.length;++H){var U=this.ripples[H];U.draw();this.$.background.style.opacity=U.outerOpacity;U.isOpacityFullyDecayed&&!U.isRestingAtMaxRadius&&this.removeRipple(U)}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(H,U){U!==void 0&&(H?this.downAction():this.upAction())}});var KZ={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(H){Yi._downHandler.call(this,H);this.pressed&&this.ensureRipple(H)},
ensureRipple:function(H){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var U=this._rippleContainer||this.root;U&&_.Ig(U).appendChild(this._ripple);if(H){U=_.Ig(this._rippleContainer||this);var A=_.Ig(H).rootTarget;U.deepContains(A)&&this._ripple.uiDownAction(H)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(H){this.hasRipple()&&(this._ripple.noink=H)}};var Otp={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 H=1;this.disabled?H=0:this.active||this.pressed?H=4:this.receivedFocusFromKeyboard&&(H=3);this._setElevation(H)},
_computeKeyboardClass:function(H){this.toggleClass("keyboard-focus",H)},
_spaceKeyDownHandler:function(H){Yi._spaceKeyDownHandler.call(this,H);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(H){Yi._spaceKeyUpHandler.call(this,H);this.hasRipple()&&this._ripple.uiUpAction()}},uwg=[QiK,
_.GF,KZ,Otp];_.Ztr={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(H){H&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=H)},
_createRipple:function(){var H=KZ._createRipple();H.id="ink";H.setAttribute("center","");H.classList.add("circle");return H}};
_.fnh=[QiK,_.GF,KZ,_.Ztr];_.JJ3=[_.fnh,UPr,{_checkedChanged:function(){Hxm._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){KZ._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var K3w;var oh2;var F32=function(){};
_.X=F32.prototype;_.X.registered=function(){};
_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X._tapHandler=function(){};
_.X._focusChanged=function(){};
_.X._detectKeyboardFocus=function(){};
_.X._userActivate=function(){};
_.X._upHandler=function(){};
_.X._asyncClick=function(){};
_.X._pressedChanged=function(){};
_.X._ariaActiveAttributeChanged=function(){};
_.X._activeChanged=function(){};
_.X._controlStateChanged=function(){};
_.X._changedButtonState=function(){};
_.X._focusBlurHandler=function(){};
_.X._disabledChanged=function(){};
_.X._changedControlState=function(){};
_.X._buttonStateChanged=function(){};
_.X._downHandler=function(){};
_.X.ensureRipple=function(){};
_.X.getRipple=function(){};
_.X.hasRipple=function(){};
_.X._createRipple=function(){};
_.X._noinkChanged=function(){};
_.X._computeKeyboardClass=function(){};
_.X._spaceKeyDownHandler=function(){};
_.X._spaceKeyUpHandler=function(){};
_.X._setPressed=function(){};
_.X._setPointerDown=function(){};
_.X._setReceivedFocusFromKeyboard=function(){};
_.X._setFocused=function(){};
_.X._setElevation=function(){};
F32=_.MD({_template:function(){if(oh2!==void 0)return oh2;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
var U=H.content,A=U.insertBefore;K3w===void 0&&(K3w=document.createElement("template"));var M=K3w;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return oh2=H},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[uwg],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?Otp._calculateElevation.apply(this):this._setElevation(0)}});var Pdr;var sxm;var nhw={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(H){_.S("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(H)},
_onDialogClickWrapped:function(H){_.S("dialog_behavior_no_tap_killswitch")||this._onDialogClick(H)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(H,U){U&&(H?(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))},
isAriaModalChanged:function(H){if(H){var U;((U=this.hostElement)!=null?U:this).setAttribute("aria-modal","true")}else{var A;((A=this.hostElement)!=null?A:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(H){this.closingReason=this.closingReason||{};this.closingReason.confirmed=H},
_onDialogClick:function(H){for(var U=_.Ig(H).path,A=0,M,W=U.indexOf((M=this.hostElement)!=null?M:this);A<W;A++)if(M=U[A],M.hasAttribute&&(M.hasAttribute("dialog-dismiss")||M.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(M.hasAttribute("dialog-confirm"));this.close();H.stopPropagation();break}}},Nph=[_.Jf,
nhw];var SRk=document.createElement("template");_.E(SRk,'<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(SRk.content);var pQh=document.createElement("template");_.E(pQh,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(pQh.content);_.MD({_template:function(){if(sxm!==void 0)return sxm;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
var U=H.content,A=U.insertBefore;Pdr===void 0&&(Pdr=document.createElement("template"));var M=Pdr;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return sxm=H},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[Nph,Ox2],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 L3n;var R0p;_.MD({_template:function(){if(R0p!==void 0)return R0p;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;L3n===void 0&&(L3n=document.createElement("template"));var M=L3n;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return R0p=H},
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 H,U,A;if(((H=window.ShadyDOM)==null?void 0:H.noPatch)!==!0&&((U=window.ShadyDOM)==null?void 0:U.noPatch)!=="on-demand"||((A=this.__shady_parentNode)==null?void 0:A.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(nhw)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var Ehg=_.NP(['<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>']),mbg=_.Zez(Ehg);mbg.setAttribute("style","display: none;");document.head.appendChild(mbg.content);var ghr;var anp;var xbh;var z0p;_.MD({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[Vo],configure:function(H){var U=H.node,A=U.getBoundingClientRect().height;return this._effect=new KeyframeEffect(U,[{height:A/2+"px"},{height:A+"px"}],this.timingFromConfig(H))}});
_.MD({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[Vo],configure:function(H){var U=H.node,A=U.getBoundingClientRect().width;return this._effect=new KeyframeEffect(U,[{width:A/2+"px"},{width:A+"px"}],this.timingFromConfig(H))}});
_.MD({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[Vo],configure:function(H){var U=H.node,A=U.getBoundingClientRect().width;return this._effect=new KeyframeEffect(U,[{width:A+"px"},{width:A-A/20+"px"}],this.timingFromConfig(H))}});
_.MD({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[Vo],configure:function(H){var U=H.node,A=U.getBoundingClientRect().height;this.setPrefixedProperty(U,"transformOrigin","0 0");return this._effect=new KeyframeEffect(U,[{height:A+"px",transform:"translateY(0)"},{height:A/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(H))}});var om={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},Cdh=function(){};
_.X=Cdh.prototype;_.X.registered=function(){};
_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X._focusBlurHandler=function(){};
_.X._changedControlState=function(){};
_.X._setFocused=function(){};
Cdh=_.MD({_template:function(){if(z0p!==void 0)return z0p;var H=document.createElement("template");_.E(H,'\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]]" fit-into="[[fitInto]]" 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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;xbh===void 0&&(xbh=document.createElement("template"));var M=xbh;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return z0p=H},
is:"tp-yt-paper-menu-button",behaviors:[_.le,_.GF],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:om.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:om.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:om.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},fitInto:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var H=_.Ig(this.$.content).getDistributedNodes(),U=0,A=H.length;U<A;U++)if(H[U].nodeType===Node.ELEMENT_NODE)return H[U]},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(H,U){H?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):U!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(H){_.GF._disabledChanged.apply(this,arguments);H&&this.opened&&this.close()},
__onIronOverlayCanceled:function(H){var U=this.$.trigger;_.Ig(H.detail).path.indexOf(U)>-1&&H.preventDefault()}});
Object.keys(om).forEach(function(H){Cdh[H]=om[H]});var t$2=_.qy.IronButtonState,cJr=(0,_.jf)(HTMLElement);
_.MD({_template:function(){if(anp!==void 0)return anp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;ghr===void 0&&(ghr=document.createElement("template"));var M=ghr;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return anp=H},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[t$2,_.GF,KZ,_.ki,_.jc],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(H){var U=(0,_.X7)(this);U.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:H});U.shadowRoot.appendChild(H);return cJr.prototype._attachDom.call(this,H)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var H=this.contentElement;H&&H.selectedItem&&this._setSelectedItem(H.selectedItem)},
get contentElement(){for(var H=_.Ig(this.$.content).getDistributedNodes(),U=0,A=H.length;U<A;U++)if(H[U].nodeType===Node.ELEMENT_NODE)return H[U]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(H){this._setSelectedItem(H.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(H){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H)===this&&this.open()},
_selectedItemChanged:function(H){var U="";H?U=H.label||H.getAttribute("label")||H.textContent.trim():U="";this.value=U;this._setSelectedItemLabel(U)},
_computeMenuVerticalOffset:function(H,U){return U?U:H?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var H=this.opened?"true":"false",U=this.contentElement;U&&U.setAttribute("aria-expanded",H)},
_computeLabelClass:function(H,U,A){var M="label";if(H)A&&(M+=" label-is-hidden");else if(A||U)M+=" label-is-floating";return M},
_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 yJw;var Bpk;_.MD({is:"tp-yt-paper-icon-button",_template:function(){if(Bpk!==void 0)return Bpk;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;yJw===void 0&&(yJw=document.createElement("template"));var M=yJw;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return Bpk=H},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.fnh],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(H,U){var A=this.getAttribute("aria-label");A&&U!=A||this.setAttribute("aria-label",H)}});var rJ2;var e0y;_.Fa=[QiK,_.GF,{hostAttributes:{role:"option",tabindex:"0"}}];_.MD({_template:function(){if(e0y!==void 0)return e0y;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;rJ2===void 0&&(rJ2=document.createElement("template"));var M=rJ2;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return e0y=H},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.Fa]});var Dbh;var $br;var lnk={attached:function(){this.fire("addon-attached")},
update:function(){}};var GeK=1,YRz=1,qRm=1,h0r=[_.GF,_.le,{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();!gg&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(H,U){H?H=H+" "+U:H=U;return H},
_onAddonAttached:function(H){H=_.Ig(H).rootTarget;if(H.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,H.id);else{var U="paper-input-add-on-"+YRz++;H.id=U;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,U)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(H){_.GF._focusBlurHandler.call(this,H);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var H=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",H);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(H){try{var U=this.inputElement.selectionStart;this.value=H;this.inputElement.selectionStart=U;this.inputElement.selectionEnd=U}catch(A){this.value=H}},
_computeAlwaysFloatLabel:function(H,U){return U||H},
_updateAriaLabelledBy:function(){var H=_.Ig(this.root).querySelector("label");if(H){if(H.id)var U=H.id;else U="paper-input-label-"+GeK++,H.id=U;this._ariaLabelledBy=U}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+qRm++)},
_onChange:function(H){this.shadowRoot&&this.fire(H.type,{sourceEvent:H},{node:this,bubbles:H.bubbles,cancelable:H.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var H=document.activeElement;H instanceof HTMLElement&&H!==document.body&&H!==document.documentElement||this._focusableElement.focus()}}}];var ken;var vh2;_.MD({_template:function(){if(vh2!==void 0)return vh2;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;ken===void 0&&(ken=document.createElement("template"));var M=ken;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return vh2=H},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[lnk],properties:{_charCounterStr:{type:String,value:"0"}},update:function(H){if(H.inputElement){H.value=H.value||"";var U=H.value.toString().length.toString();H.inputElement.hasAttribute("maxlength")&&(U+="/"+H.inputElement.getAttribute("maxlength"));this._charCounterStr=U}}});var Tp2;var jxw;_.MD({_template:function(){if(jxw!==void 0)return jxw;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;Tp2===void 0&&(Tp2=document.createElement("template"));var M=Tp2;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return jxw=H},
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 v1(this.attrForValue)},get _inputElement(){return _.Ig(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(H){this._addons||(this._addons=[]);H=H.target;this._addons.indexOf(H)===-1&&(this._addons.push(H),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(H){this._handleValueAndAutoValidate(H.target)},
_onValueChanged:function(H){var U=H.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,U.value===void 0||U.value===""))return;this._handleValueAndAutoValidate(H.target)},
_handleValue:function(H){var U=this._inputElementValue;U||U===0||H.type==="number"&&!H.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:H,value:U,invalid:this.invalid})},
_handleValueAndAutoValidate:function(H){this.autoValidate&&H&&(this.invalid=!(H.validate?H.validate(this._inputElementValue):H.checkValidity()));this._handleValue(H)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(H){if(this._addons)for(var U,A=0;U=this._addons[A];A++)U.update(H)},
_computeInputContentClass:function(H,U,A,M,W){var w="input-content";H?(W&&(w+=" label-is-hidden"),M&&!this.noUnfloatedLabelError&&(w+=" is-invalid")):(H=this.querySelector("label"),U||W?(w+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",M?w+=" is-invalid":A&&(w+=" label-is-highlighted")):(H&&(this.$.labelAndInputContainer.style.position="relative"),M&&!this.noUnfloatedLabelError&&(w+=" is-invalid")));A&&(w+=" focused");return w},
_computeUnderlineClass:function(H,U){var A="underline";U?A+=" is-invalid":H&&(A+=" is-highlighted");return A},
_computeAddOnContentClass:function(H,U){var A="add-on-content";U?A+=" is-invalid":H&&(A+=" is-highlighted");return A}});var Iny;var Qxg;_.MD({_template:function(){if(Qxg!==void 0)return Qxg;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;Iny===void 0&&(Iny=document.createElement("template"));var M=Iny;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return Qxg=H},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[lnk],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(H){this._setInvalid(H.invalid)}});_.MD({is:"tp-yt-paper-input",_template:function(){if($br!==void 0)return $br;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;Dbh===void 0&&(Dbh=document.createElement("template"));var M=Dbh;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return $br=H},
behaviors:[h0r,_.ki],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 V$h;var HRm;_.MD({_template:function(){if(HRm!==void 0)return HRm;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=
H.content,A=U.insertBefore;V$h===void 0&&(V$h=document.createElement("template"));var M=V$h;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return HRm=H},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.Fa]});var U1p;var Anh;_.MD({_template:function(){if(Anh!==void 0)return Anh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
var U=H.content,A=U.insertBefore;U1p===void 0&&(U1p=document.createElement("template"));var M=U1p;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return Anh=H},
is:"tp-yt-paper-item-body"});var Mt3;var WRn;var wSw=function(){};
_.X=wSw.prototype;_.X.indexOf=function(){};
_.X.selectPrevious=function(){};
_.X.selectNext=function(){};
_.X.selectIndex=function(){};
_.X.forceSynchronousItemUpdate=function(){};
_.X._checkFallback=function(){};
_.X._addListener=function(){};
_.X._removeListener=function(){};
_.X._activateEventChanged=function(){};
_.X._updateItems=function(){};
_.X._selectSelected=function(){};
_.X._filterItem=function(){};
_.X._valueToItem=function(){};
_.X._valueToIndex=function(){};
_.X._indexToValue=function(){};
_.X._valueForItem=function(){};
_.X._observeItems=function(){};
_.X._itemActivate=function(){};
_.X.multiChanged=function(){};
_.X._updateAttrForSelected=function(){};
_.X._updateSelected=function(){};
_.X._selectMulti=function(){};
_.X._selectionChange=function(){};
_.X._toggleSelected=function(){};
_.X._valuesToItems=function(){};
_.X.registered=function(){};
_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X.select=function(){};
_.X._resetTabindices=function(){};
_.X._updateMultiselectable=function(){};
_.X._focusWithKeyboardEvent=function(){};
_.X._clearSearchText=function(){};
_.X._focusPrevious=function(){};
_.X._focusNext=function(){};
_.X._applySelection=function(){};
_.X._focusedItemChanged=function(){};
_.X._onIronItemsChanged=function(){};
_.X._onShiftTabDown=function(){};
_.X._onFocus=function(){};
_.X._onUpKey=function(){};
_.X._onDownKey=function(){};
_.X._onEscKey=function(){};
_.X._onKeydown=function(){};
_.X._activateHandler=function(){};
_.X._disabledChanged=function(){};
_.X._setSelectedItem=function(){};
_.X._setItems=function(){};
_.X._setSelectedItems=function(){};
_.X._setFocusedItem=function(){};
wSw=_.MD({_template:function(){if(WRn!==void 0)return WRn;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
var U=H.content,A=U.insertBefore;Mt3===void 0&&(Mt3=document.createElement("template"));var M=Mt3;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return WRn=H},
is:"tp-yt-paper-listbox",behaviors:[wun],hostAttributes:{role:"listbox"}});var XSB;var iRr;var bRz={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(H,U){return[H||U?"active":"",U?"cooldown":""].join(" ")},
__activeChanged:function(H,U){this.__setAriaHidden(!H);this.__coolingDown=!H&&U},
__altChanged:function(H){this.setAttribute("aria-label",H||"loading")},
__setAriaHidden:function(H){H?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.MD({_template:function(){if(iRr!==void 0)return iRr;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;XSB===void 0&&(XSB=document.createElement("template"));var M=XSB;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return iRr=H},
is:"tp-yt-paper-spinner",behaviors:[bRz]});var d1K;var ORw;_.MD({_template:function(){if(ORw!==void 0)return ORw;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;d1K===void 0&&(d1K=document.createElement("template"));var M=d1K;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return ORw=H},
is:"tp-yt-paper-spinner-lite",behaviors:[bRz]});var ufg;var ZRn;_.MD({_template:function(){if(ZRn!==void 0)return ZRn;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;ufg===void 0&&(ufg=document.createElement("template"));var M=ufg;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return ZRn=H},
is:"tp-yt-paper-tab",behaviors:[_.GF,_.qy.IronButtonState,KZ],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 H=_.Ig(this).parentNode;return!!H&&!!H.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(H){if(this.link){var U=this.queryEffectiveChildren("a");U&&H.target!==U&&U.click()}}});var fmn;var Jnw;var KRy=_.NP(['<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>']),otk=_.Zez(KRy);document.head.appendChild(otk.content);_.MD({_template:function(){if(Jnw!==void 0)return Jnw;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;fmn===void 0&&(fmn=document.createElement("template"));var M=fmn;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return Jnw=H},
is:"tp-yt-paper-tabs",behaviors:[_.Qo,_.ixm],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(H){_.Ig(this).querySelectorAll("tp-yt-paper-tab").forEach(H?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(H){H.setAttribute("noink","")},
_removeNoinkAttribute:function(H){H.removeAttribute("noink")},
_computeScrollButtonClass:function(H,U,A,M){return!U||A?"hidden":H?M?"hidden":"not-visible":""},
_computeTabsContentClass:function(H,U){var A="tabs-content";H&&(A+=" scrollable");if(!H||U)A+=" fit-container";return A},
_computeSelectionBarClass:function(H,U){var A="selection-bar";H?A+=" hidden":U&&(A+=" align-bottom");return A},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(H){return""+H},
_onIronSelect:function(H){this._tabChanged(H.detail.item,this._previousTab);this._previousTab=H.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();_.IU._activateHandler.apply(this,arguments)},
_scheduleActivation:function(H,U){this._pendingActivationItem=H;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,U)},
_delayedActivationHandler:function(){var H=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;H.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(H){H.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(H,U){this.scrollable&&this._affectScroll(U&&-U.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(H){this.$.tabsContainer.scrollLeft+=H;H=this.$.tabsContainer.scrollLeft;this._leftHidden=H===0||this.hideScrollButtons;this._rightHidden=H===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(H,U){if(H){var A=this.$.tabsContent.getBoundingClientRect(),M=A.width,W=H.getBoundingClientRect();A=W.left-A.left;this._pos={width:this._calcPercent(W.width,M),left:this._calcPercent(A,M)};if(this.noSlide||U==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var w=U.getBoundingClientRect();U=this.items.indexOf(U);H=this.items.indexOf(H);this.$.selectionBar.classList.add("expand");
H=U<H;this._isRTL&&(H=!H);H?this._positionBar(this._calcPercent(W.left+W.width-w.left,M)-5,this._left):this._positionBar(this._calcPercent(w.left+w.width-W.left,M)-5,this._calcPercent(A,M)+5);this.scrollable&&this._scrollToSelectedIfNeeded(W.width,A)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(H,U){U-=this.$.tabsContainer.scrollLeft;U<0?this.$.tabsContainer.scrollLeft+=U:(U+=H-this.$.tabsContainer.offsetWidth,U>0&&(this.$.tabsContainer.scrollLeft+=U))},
_calcPercent:function(H,U){return 100*H/U},
_positionBar:function(H,U){H=H||0;U=U||0;this._width=H;this._left=U;this.transform("translateX("+U+"%) scaleX("+H/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var H=this.$.selectionBar.classList;H.contains("expand")?(H.remove("expand"),H.add("contract"),this._positionBar(this._pos.width,this._pos.left)):H.contains("contract")&&H.remove("contract")}});var FRp;var PR2;_.MD({_template:function(){if(PR2!==void 0)return PR2;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;FRp===void 0&&(FRp=document.createElement("template"));var M=FRp;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return PR2=H},
is:"tp-yt-paper-textarea",behaviors:[h0r,_.ki],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(H){this.$.input.textarea.selectionStart=H},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(H){this.$.input.textarea.selectionEnd=H},_ariaLabelledByChanged:function(H){this._focusableElement.setAttribute("aria-labelledby",H)},
_ariaDescribedByChanged:function(H){this._focusableElement.setAttribute("aria-describedby",H)},
get _focusableElement(){return this.inputElement.textarea}});var swp;var ntK;/*

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 Na2=function(){};
_.X=Na2.prototype;_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X._tapHandler=function(){};
_.X._focusChanged=function(){};
_.X._detectKeyboardFocus=function(){};
_.X._userActivate=function(){};
_.X._upHandler=function(){};
_.X._spaceKeyDownHandler=function(){};
_.X._spaceKeyUpHandler=function(){};
_.X._asyncClick=function(){};
_.X._pressedChanged=function(){};
_.X._ariaActiveAttributeChanged=function(){};
_.X._activeChanged=function(){};
_.X._controlStateChanged=function(){};
_.X._changedButtonState=function(){};
_.X._focusBlurHandler=function(){};
_.X._disabledChanged=function(){};
_.X._changedControlState=function(){};
_.X._downHandler=function(){};
_.X.ensureRipple=function(){};
_.X.getRipple=function(){};
_.X.hasRipple=function(){};
_.X._noinkChanged=function(){};
_.X._focusedChanged=function(){};
_.X.registered=function(){};
_.X._invalidChanged=function(){};
_.X.hasValidator=function(){};
_.X.validate=function(){};
_.X._getValidity=function(){};
_.X._requiredChanged=function(){};
_.X._valueChanged=function(){};
_.X._checkedChanged=function(){};
_.X._buttonStateChanged=function(){};
_.X._setPressed=function(){};
_.X._setPointerDown=function(){};
_.X._setReceivedFocusFromKeyboard=function(){};
_.X._setFocused=function(){};
Na2=_.MD({is:"tp-yt-paper-toggle-button",_template:function(){if(ntK!==void 0)return ntK;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;swp===void 0&&(swp=document.createElement("template"));var M=swp;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return ntK=H},
behaviors:[_.JJ3],hostAttributes:{role:"button","aria-pressed":"false",tabindex:0},properties:{ironLabelTarget:{type:Boolean,reflectToAttribute:!0}},listeners:{track:"_ontrack"},__calculateIsRtl:function(){return window.getComputedStyle(this).direction==="rtl"},
attached:function(){this.__calculateIsRtl()&&this.setAttribute("dir","rtl");_.rV(this,function(){_.nK(this,"pan-y")})},
_ontrack:function(H){H=H.detail;H.state==="start"?this._trackStart(H):H.state==="track"?this._trackMove(H):H.state==="end"&&this._trackEnd(H)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(H){H=H.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+H:H)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+H:H));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 H=KZ._createRipple();H.id="ink";H.setAttribute("recenters","");H.classList.add("circle","toggle-ink");return H}});var S0z;var pSw;_.MD({_template:function(){if(pSw!==void 0)return pSw;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;S0z===void 0&&(S0z=document.createElement("template"));var M=S0z;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return pSw=H},
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 H=_.Ig(this).parentNode,U=_.Ig(this).getOwnerRoot(),A;this.for?A=_.Ig(U).querySelector("#"+this.for):A=H.nodeType==Node.DOCUMENT_FRAGMENT_NODE?U.host:H;return A},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(H){H==="entry"?this.show():H==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Ig(this).textContent.trim()===""){for(var H=!0,U=_.Ig(this).getEffectiveChildNodes(),A=0;A<U.length;A++)if(U[A].textContent.trim()!==""){H=!1;break}if(H)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 H=this.offset;this.marginTop!=14&&this.offset==14&&(H=this.marginTop);var U=this.offsetParent.getBoundingClientRect(),A=this._target.getBoundingClientRect(),M=this.getBoundingClientRect(),W=(A.width-M.width)/2,w=(A.height-M.height)/2,d=A.left-U.left,O=A.top-U.top;switch(this.position){case "top":var f=d+W;var J=O-M.height-H;break;case "bottom":f=d+W;J=O+A.height+H;break;case "left":f=d-M.width-H;J=O+w;break;case "right":f=d+A.width+
H,J=O+w}this.fitToVisibleBounds?(U.left+f+M.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,f)+"px",this.style.right="auto"),U.top+J+M.height>window.innerHeight?(this.style.bottom=U.height+"px",this.style.top="auto"):(this.style.top=Math.max(-U.top,J)+"px",this.style.bottom="auto")):(this.style.left=f+"px",this.style.top=J+"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(H){H!==500&&this.updateStyles({"--paper-tooltip-delay-in":H+"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(H){if(H==="entry"&&this.animationEntry!=="")return this.animationEntry;if(H==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[H]&&typeof this.animationConfig[H][0].name==="string"){if(this.animationConfig[H][0].timing&&this.animationConfig[H][0].timing.delay&&this.animationConfig[H][0].timing.delay!==0){var U=this.animationConfig[H][0].timing.delay;H==="entry"?this.updateStyles({"--paper-tooltip-delay-in":U+"ms"}):H==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":U+
"ms"})}return this.animationConfig[H][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 LRK=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(LRK,_.fN);var RXm=_.Ej(LRK,[0,_.CT]);var PY=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(PY,_.fN);var Eth=[3,4],m1w=[5,6];var gth=[0,Eth,m1w,_.tJ,-1,_.aT,_.cQ,-1,g5B,aeB];var amm=_.Ej(PY,gth),x1w=_.mO(gth);var zXB=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(zXB,_.fN);var CRH=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(CRH,_.fN);var ttz=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(ttz,_.fN);var cnK=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(cnK,_.fN);var ynm=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(ynm,_.fN);var sx=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(sx,_.fN);sx.prototype.getSource=function(){return _.Wn(this,1)};
sx.prototype.getMessage=function(){return _.Mn(this,4)};
sx.prototype.getData=function(){return _.qK(this,ynm,8)};var Bap=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Bap,_.fN);var nZ=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(nZ,_.fN);var N$=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(N$,_.fN);var SQ=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(SQ,_.fN);SQ.prototype.getUrl=function(){return _.Mn(this,1)};
SQ.prototype.setUrl=function(H){return _.Mu(this,1,H)};
SQ.prototype.hasUrl=function(){return _.m5(_.qP(this,1))!=null};var rnz=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(rnz,_.fN);var eXr=[3];var D1k=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(D1k,_.fN);var pZ=function(H){var U=new D1k;return _.hj(U,2,H)};
D1k.prototype.getLanguage=function(){return XV(this,4,LZ)};
var $1y=function(H){var U=pZ(1);return _.tR(U,6,LZ,H)},LZ=[3,
4,5,6];var lmw=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(lmw,_.fN);var Rm=function(H){var U=new lmw;return _.hj(U,1,H)},Ex=function(H,U){return _.tR(H,2,GzB,U)},GzB=[2,
3,4,5];var Y0w=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Y0w,_.fN);var mX=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(mX,_.fN);var q02=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(q02,_.fN);var hXz=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(hXz,_.fN);var kzH=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(kzH,_.fN);var vty=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(vty,_.fN);var Tan=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Tan,_.fN);var jwh=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(jwh,_.fN);var gS=function(H){return _.qK(H,N$,5)};var Imp=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Imp,_.fN);Imp.prototype.getValue=function(){return Uh(this,1)};var Qwp=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Qwp,_.fN);var am=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(am,_.fN);am.prototype.getMetadata=function(){return _.io(this,vty,7,xk)};
am.prototype.hasMetadata=function(){return _.k4(this,vty,7,xk)};
var Vtp=_.do8(am),xk=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];var zV=function(H){this.JSC$12479_name_=H;this.files_=[];this.directories_=[];this.directoryMap_={}};
zV.prototype.getName=function(){return this.JSC$12479_name_};var tf=function(H,U){this.callback_=U;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new zV("");HBz(this,H,this.rootDirectory_);CZ(this)},HBz=function(H,U,A){for(var M=0;M<U.length;M++){var W=U[M];
W.isFile?(H.fileOps_++,W.file((0,_.i9)(H.handleFileSuccess_,H,A),(0,_.i9)(H.handleFileError_,H))):H.unscannedDirectories_.push(new Uzn(W,A))}},CZ=function(H){if(H.unscannedDirectories_.length>0&&H.directoryOps_<5&&!H.hasError_){H.directoryOps_++;
var U=H.unscannedDirectories_.shift(),A=U.entry,M=new zV(A.name);U=U.parent;U.directoryMap_[M.getName()]=M;U.directories_.push(M);A=A.createReader();A.readEntries((0,_.i9)(H.handleDirectorySuccess_,H,A,M),(0,_.i9)(H.handleDirectoryError_,H))}H.directoryOps_!=0||H.fileOps_!=0||H.unscannedDirectories_.length!=0&&!H.hasError_||H.callback_(H.rootDirectory_.files_,H.rootDirectory_.directories_,H.hasError_)};
tf.prototype.handleDirectorySuccess_=function(H,U,A){HBz(this,A,U);A.length==0?(this.directoryOps_--,CZ(this)):H.readEntries((0,_.i9)(this.handleDirectorySuccess_,this,H,U),(0,_.i9)(this.handleDirectoryError_,this))};
tf.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;CZ(this)};
tf.prototype.handleFileSuccess_=function(H,U){H.files_.push(U);this.fileOps_--;CZ(this)};
tf.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;CZ(this)};
var Uzn=function(H,U){this.entry=H;this.parent=U};var cY=function(H){_.LW.call(this);_.Rc(H,"drop",this.onObjectsDropped_,!1,this);_.Rc(H,"dragenter",this.onFilesDragged_,!1,this);_.Rc(H,"dragover",this.onFilesDragged_,!1,this);_.Rc(H,"dragleave",this.onDragLeave_,!1,this);_.Rc(H,"dragend",this.onDragLeave_,!1,this)};
_.zo(cY,_.LW);var ALy=function(H,U){_.$R.call(this,"f");this.files=H;this.directories=U};
_.zo(ALy,_.$R);var M2w=function(){_.$R.call(this,"h")};
_.zo(M2w,_.$R);var We3=function(){_.$R.call(this,"i")};
_.zo(We3,_.$R);var wUg=function(){_.$R.call(this,"g")};
_.zo(wUg,_.$R);cY.prototype.onObjectsDropped_=function(H){var U=this;H.preventDefault();var A=H.event_.dataTransfer;if((H=A&&A.items)&&H.length>0&&H[0].webkitGetAsEntry){A=[];for(var M=[],W=0;W<H.length;W++){var w=H[W].webkitGetAsEntry();w?A.push(w):M.push(H[W])}new tf(A,function(d,O,f){f?U.dispatchEvent(new wUg("Error occurred while reading from the file system.")):U.dispatchEvent(new ALy(d,O,M))})}else(H=A&&A.files)&&this.dispatchEvent(new ALy(Array.from(H),[]))};
cY.prototype.onFilesDragged_=function(H){H.type==="dragenter"&&this.dispatchEvent(new M2w);H.preventDefault()};
cY.prototype.onDragLeave_=function(){this.dispatchEvent(new We3)};var XUw=function(H,U){this.JSC$12502_name_=H;this.inputElement_=U};
XUw.prototype.getName=function(){return this.JSC$12502_name_};
XUw.prototype.getInputElement=function(){return this.inputElement_};var BY=function(H,U,A){U=U===void 0?"single_file":U;A=A===void 0?[]:A;_.LW.call(this);this.overlayTarget_=H;this.parentOverlay_=H!=null?H.parentNode:_.Q9("scotty-overlay-parent");this.selectorType_=U;this.acceptTypes_=A;this.overlay_=iBw(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.R(BY,_.LW);
var iBw=function(H,U,A,M){var W=document.createElement("input");W.setAttribute("type","file");W.setAttribute("name","Filedata");_.Rc(W,"change",H.onFilesSelected_,!1,H);A==="multiple_file"&&(W.multiple="true");A==="single_directory"&&(W.webkitdirectory="true");M.length>0&&W.setAttribute("accept",M.join(","));W.style.position="absolute";W.style.overflow="hidden";W.style.height="0px";W.style.width="0px";W.style.opacity="0";W.setAttribute("aria-hidden","true");W.setAttribute("tabIndex",-1);if(H.overlayTarget_!=
null)return W.style.height=U.offsetHeight+"px",W.style.width=U.offsetWidth+"px",H.parentOverlay_&&(H.parentOverlay_.style.position="relative"),_.JJ(W,U),sR(W,new _.E6(U.offsetLeft,U.offsetTop)),W;H.parentOverlay_.appendChild(W);return W};
BY.prototype.click=function(){this.overlay_.click()};
BY.prototype.onFilesSelected_=function(H){a:{try{var U=(new XMLHttpRequest).upload!==void 0;break a}catch(J){}U=!1}if(U){var A;H=Array.from((A=H.target.files)!=null?A:[]);A=[];if(this.selectorType_==="single_directory"&&(_.kA||BK||_.va)){A=new zV("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(U=0;U<H.length;U++)for(var M=H[U],W=M.webkitRelativePath.split("/"),w=A,d=0;d<W.length;d++){var O=W[d];if(d==W.length-1){O!="."&&w.files_.push(M);break}var f=w.directoryMap_[O];f==void 0&&(O=
f=new zV(O),w.directoryMap_[O.getName()]=O,w.directories_.push(O));w=f}A=A.directories_}this.dispatchEvent(new bBn(H,A,null))}else H=H.target.value,H.match(/^c:\\fakepath\\/i)&&(H=H.substring(12)),this.dispatchEvent(new bBn([],[],new XUw(H,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=iBw(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var bBn=function(H,U){_.$R.call(this,"j");this.files=H;this.directories=U};
_.R(bBn,_.$R);var dzH=function(H){this.uploadUrl_=H};var OBg=function(){_.LW.call(this)};
_.zo(OBg,_.LW);var rS=function(H){_.$R.call(this,H)};
_.zo(rS,_.$R);var eQ=function(H){_.$R.call(this,H)};
_.zo(eQ,_.$R);var ubH=function(H,U,A,M,W){_.LW.call(this);A=document.createElement("form");A.setAttribute("method",U);A.setAttribute("enctype","multipart/form-data");A.setAttribute("encoding","multipart/form-data");U=document.createElement("input");U.setAttribute("type","hidden");U.setAttribute("name","metadata");U.setAttribute("value",W);A.appendChild(U);A.appendChild(M);this.JSC$12519_form_=A;H=new _.n1(H);_.rO(H,"upload_protocol","multipart");this.JSC$12519_url_=H.toString();this.JSC$12519_request_=new Ue;this.state_=
"Ready";this.JSC$12519_errorDescription_=null;this.JSC$12519_eventHandler_=new _.u9(this);_.kl(this,this.JSC$12519_eventHandler_);this.JSC$12519_eventHandler_.listen(this.JSC$12519_request_,"success",this.onTransferSuccess_);this.JSC$12519_eventHandler_.listen(this.JSC$12519_request_,"error",this.onTransferError_)};
_.R(ubH,OBg);_.X=ubH.prototype;_.X.run=function(){this.state_="Transferring";var H=this.JSC$12519_request_,U=this.JSC$12519_form_;if(H.JSC$11786_active_)throw Error("ve");var A=new _.n1(this.JSC$12519_url_||U.action);H.JSC$11786_form_=U;U=H.JSC$11786_form_;A=_.VY(A.toString());A!==void 0&&(U.action=A);N7w(H)};
_.X.getResponseCode=function(){return null};
_.X.getResponseText=function(){return this.JSC$12519_request_&&this.JSC$12519_request_.getResponseText()||null};
_.X.JSC$30516_getErrorDescription=function(){return this.JSC$12519_errorDescription_};
_.X.cancel=function(){this.JSC$12519_request_&&this.JSC$12519_request_.abort();this.state_="Cancelled";this.dispatchEvent(new rS("o"))};
_.X.pause=function(){};
_.X.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new rS("l"))};
_.X.onTransferError_=function(){this.JSC$12519_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new rS("n"))};var Dl=function(){_.Zm.call(this)};
_.R(Dl,_.Zm);Dl.prototype.createXhr=function(){var H=_.Zm.prototype.createXhr.call(this);H.upload&&(H.upload.onprogress=(0,_.i9)(this.onProgress_,this));return H};
Dl.prototype.onProgress_=function(H){this.dispatchEvent(H)};var ZBh=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},JLz=function(H,U){var A=H.attempt_+1;
if(H.maxAttempts_>0&&A>H.maxAttempts_)return!1;A==0?U():H.delayCallId_=da(function(){H.delayCallId_=null;U()},fpH(H),H);
H.attempt_=A;return!0};
ZBh.prototype.reset=function(){this.delayCallId_&&_.Mr.clearTimeout(this.delayCallId_);this.attempt_=-1};
var fpH=function(H){var U=250*Math.pow(2,H.attempt_);H.maxDelayMs_>=0&&(U=Math.min(U,H.maxDelayMs_));return U};var uaN=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var $k=function(){_.LW.call(this);this.JSC$12529_request_=this.state_=null;this.JSC$12529_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12529_bytesTransferred_=0;this.retryIterator_=new ZBh;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12529_errorDescription_=null;this.JSC$12529_eventHandler_=new _.u9(this);_.kl(this,this.JSC$12529_eventHandler_);this.JSC$12529_url_=this.blob_=null;this.JSC$12529_method_=void 0;this.chunkSize_=this.JSC$12529_metadata_=
this.JSC$12529_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12529_responseText_=this.JSC$12529_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.zo($k,OBg);_.X=$k.prototype;_.X.run=function(){lI(this)};
_.X.getResponseCode=function(){return this.JSC$12529_responseCode_};
_.X.getResponseText=function(){return this.JSC$12529_responseText_};
_.X.JSC$30516_getErrorDescription=function(){return this.JSC$12529_errorDescription_};
_.X.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12529_eventHandler_.removeAll();this.JSC$12529_request_&&this.JSC$12529_request_.abort();this.retryIterator_.reset();var H=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(H==="Upload"||H==="Query")H=new Dl,H.JSC$10099_withCredentials_=this.JSC$12529_withCredentials_,H.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12529_bytesTransferred_=
0;this.dispatchEvent(new rS("o"))}};
_.X.pause=function(){this.pauseRequested_=!0};
var lI=function(H){var U=H.state_;H.pauseRequested_?(H.pauseRequested_=!1,H.stateAfterUnpausing_=U,H.state_="Paused"):JLz(H.retryIterator_,function(){switch(H.state_){case "Start":H.JSC$12529_request_=new Dl;var A=_.dG.clone(H.JSC$12529_headers_);H.blob_.size!=null&&(A["Content-Length"]=H.blob_.size);A=ZZK(A);A["X-Goog-Upload-Protocol"]="resumable";A["X-Goog-Upload-Command"]="start";H.JSC$12529_eventHandler_.removeAll();H.JSC$12529_eventHandler_.listen(H.JSC$12529_request_,"complete",H.onStartComplete_);
H.JSC$12529_request_.JSC$10099_withCredentials_=H.JSC$12529_withCredentials_;H.JSC$12529_request_.send(H.JSC$12529_url_,H.JSC$12529_method_,H.JSC$12529_metadata_,A);H.lastCommandResponseCode_=null;H.dispatchEvent(new eQ("q"));break;case "Upload":A=H.transferHandle_.uploadUrl_;var M=H.blob_.size;if(dZ3()){var W=H.chunkSize_;var w=H.offset_+W>=M;M=b12(H.blob_,H.offset_,w?M:H.offset_+W)}else H.offset_=0,M=H.blob_,w=!0;H.JSC$12529_request_=new Dl;H.JSC$12529_request_.JSC$10099_withCredentials_=H.JSC$12529_withCredentials_;
H.JSC$12529_eventHandler_.removeAll();H.JSC$12529_eventHandler_.listen(H.JSC$12529_request_,"progress",H.onUploadProgress_);W=(0,_.i9)(H.JSC$12531_onUploadComplete_,H,H.offset_+M.size,w);H.JSC$12529_eventHandler_.listen(H.JSC$12529_request_,"complete",W);H.lastCommandResponseCode_=null;H.dispatchEvent(new eQ("q"));w=Object.assign({},H.JSC$12529_headers_||{},{"X-Goog-Upload-Command":"upload"+(w?", finalize":""),"X-Goog-Upload-Offset":H.offset_});H.JSC$12529_request_.send(A,"POST",M,w);break;case "Query":H.JSC$12529_request_=
new Dl;H.JSC$12529_eventHandler_.removeAll();H.JSC$12529_eventHandler_.listen(H.JSC$12529_request_,"complete",H.onQueryComplete_);A=Object.assign({},H.JSC$12529_headers_||{},{"X-Goog-Upload-Command":"query"});H.JSC$12529_request_.send(H.transferHandle_.uploadUrl_,"POST","",A);H.lastCommandResponseCode_=null;H.dispatchEvent(new eQ("q"));break;default:throw Error("nf");}})||GV(H,"Transfer encountered too many consecutive failures.")},GV=function(H,U){H.state_="Error";
H.JSC$12529_errorDescription_=U;H.dispatchEvent(new rS("n"))};
$k.prototype.onStartComplete_=function(H){var U=H.target;this.lastCommandResponseCode_=U.getStatus();this.dispatchEvent(new eQ("r"));if(Key(U))onm(this,U);else if(Fen(U)){H=Gr(H.target.getAllResponseHeaders());for(var A in H)_.XE(A.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new rS("m"));A=Vk(H,"X-Goog-Upload-URL");H=(H=Vk(H,"X-Goog-Upload-Chunk-Granularity"))?parseInt(H,10):1;A===void 0||isNaN(H)||H<=0?GV(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
H)*H,this.transferHandle_=new dzH(A),this.dispatchEvent(new rS("p")),this.state_="Upload",this.retryIterator_.reset(),lI(this))}else lI(this)};
$k.prototype.onUploadProgress_=function(H){this.JSC$12529_bytesTransferred_=this.offset_+H.loaded;this.dispatchEvent(new rS("k"))};
$k.prototype.JSC$12531_onUploadComplete_=function(H,U,A){var M=this,W,w;return _.u(function(d){switch(d.nextAddress){case 1:W=A.target;M.lastCommandResponseCode_=W.getStatus();M.dispatchEvent(new eQ("r"));if(Pwn(W)||W.getStatus()==404)return M.JSC$12529_bytesTransferred_=H,onm(M,W),d.return();if(Fen(W)){d.jumpTo(2);break}if(!(w=M.detectCorruptedBlobEnabled_)){d.jumpTo(3);break}return d.yield(sCB(M),4);case 4:w=d.yieldResult;case 3:if(w)return GV(M,"Blob has been modified or corrupted."),d.return();
M.requireUploadRequestModification_=W.getStatus()==400;M.state_="Query";lI(M);return d.return();case 2:if(U)return GV(M,"Got a non-final success response after issuing a finalize command."),d.return();M.JSC$12529_bytesTransferred_=H;M.offset_=H;M.retryIterator_.reset();lI(M);return d.return()}})};
$k.prototype.onQueryComplete_=function(H){var U=H.target;this.lastCommandResponseCode_=U.getStatus();this.dispatchEvent(new eQ("r"));Key(U)?(U.getStatus()===200&&(this.JSC$12529_bytesTransferred_=this.blob_.size),onm(this,U)):Fen(U)?(H=Gr(H.target.getAllResponseHeaders()),H=parseInt(Vk(H,"X-Goog-Upload-Size-Received"),10),isNaN(H)?GV(this,"Server did not respond with current offset."):H<this.offset_?GV(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
H+"."):this.requireUploadRequestModification_&&this.offset_===H?GV(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<H&&this.retryIterator_.reset(),this.offset_=this.JSC$12529_bytesTransferred_=H,this.state_="Upload",lI(this))):lI(this)};
var onm=function(H,U){H.JSC$12529_responseCode_=U.getStatus();var A=Gr(U.getAllResponseHeaders());fl0(A);H.JSC$12529_responseText_=U.getResponseText();H.state_="Response received";H.dispatchEvent(new rS("l"))},Fen=function(H){var U=H.getStatus();
H=Gr(H.getAllResponseHeaders());H=Vk(H,"X-Goog-Upload-Status");return U===200&&H==="active"},Pwn=function(H){H=Gr(H.getAllResponseHeaders());
return Vk(H,"X-Goog-Upload-Status")==="final"},Key=function(H){if(Pwn(H))return!0;
H=H.getStatus();return H>=400&&H<500},sCB=function(H){var U;
return _.u(function(A){if(A.nextAddress==1){if(!H.blob_||H.originalBlobSize_<=0)return A.return(!1);if(H.blob_.size!==H.originalBlobSize_)return A.return(!0);_.zj(A,2);if(U=b12(H.blob_,0,1)){var M=A.yield,W=new ie,w=yp2(W);W.reader_.readAsBinaryString(U);A=M.call(A,w,4)}else A=A.return(!0);return A}if(A.nextAddress!=2)return A.return(H.blob_.size!==H.originalBlobSize_);_.eG(A);return A.return(!0)})};var nn3=function(H,U,A,M,W,w){_.LW.call(this);this.payload_=M;this.JSC$12532_url_=H;this.JSC$12532_method_=U;this.JSC$12532_headers_=A;this.JSC$12532_metadata_=W;this.encoding_=w||"binary";H=new _.QF;this.boundary_="uploader-"+cJ()+"-"+H.JSC$11636_toIsoString();this.JSC$12532_responseText_=this.JSC$12532_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12532_errorDescription_=null;this.JSC$12532_eventHandler_=new _.u9(this);_.kl(this,this.JSC$12532_eventHandler_)};
_.R(nn3,OBg);_.X=nn3.prototype;
_.X.run=function(){var H=_.dG.clone(this.JSC$12532_headers_);this.payload_.length!=null&&(H["Content-Length"]=this.payload_.length);H=ZZK(H);H["X-Goog-Upload-Protocol"]="multipart";H["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new Dl;this.JSC$12532_eventHandler_.removeAll();this.JSC$12532_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12532_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12532_url_,this.JSC$12532_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12532_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",H)};
_.X.getResponseCode=function(){return this.JSC$12532_responseCode_};
_.X.getResponseText=function(){return this.JSC$12532_responseText_};
_.X.JSC$30516_getErrorDescription=function(){return this.JSC$12532_errorDescription_};
_.X.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12532_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new rS("o")))};
_.X.pause=function(){};
_.X.onTransferProgress_=function(){this.dispatchEvent(new rS("k"))};
_.X.onTransferComplete_=function(H){var U=H.target.getStatus();U===void 0||U===-1?(this.JSC$12532_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new rS("n"))):(this.JSC$12532_responseCode_=U,H=H.target,U=Gr(H.getAllResponseHeaders()),fl0(U),this.JSC$12532_responseText_=H.getResponseText(),this.state_="Complete",this.dispatchEvent(new rS("l")))};_.N3y=function(H,U,A,M){M=M===void 0?!1:M;if(A instanceof XUw)return new ubH(H,"POST",U,A.getInputElement(),"");if(typeof A==="string"||A instanceof String)return new nn3(H,"POST",U,A,"");var W=new $k(void 0);W.JSC$12529_url_=H;W.JSC$12529_method_="POST";W.JSC$12529_headers_=U;W.blob_=A;W.originalBlobSize_=A.size;W.JSC$12529_metadata_="";M&&(W.JSC$12529_withCredentials_=M);W.state_="Start";return W};var Yk=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Yk,_.fN);_.X=Yk.prototype;_.X.getEnableSsEngine=function(){return _.Hn(this,2)};
_.X.getEnableAwr=function(){return _.Hn(this,3)};
_.X.getAlohaAutoGaRollout=function(){return _.Hn(this,5)};
_.X.getEnableConfigurator=function(){return _.Hn(this,6)};
_.X.getEnableMweb=function(){return _.Hn(this,7)};
var pUh=function(){var H=Sph();return _.AP(H,7,!0)};
Yk.prototype.getEnableCtlConsentCheckbox=function(){return _.Hn(this,8)};
Yk.prototype.getEnableIframe=function(){return _.Hn(this,9)};
var Sph=function(){var H=new Yk;H=_.AP(H,5,!0);H=_.AP(H,2,!0);H=_.AP(H,4,!1);H=_.AP(H,8,!0);return _.AP(H,9,!0)};
Yk.prototype.getEnableScreenshotNudge=function(){return _.Hn(this,10)};
var Lew=function(){var H=pUh();return _.AP(H,10,!0)};
Yk.prototype.getEnableWebStartupConfigEndpoint=function(){return _.Hn(this,11)};
Yk.prototype.getEnableJunkNudge=function(){return _.Hn(this,12)};
var CIF=function(){var H=Lew();return _.AP(H,12,!0)};
_.X=Yk.prototype;_.X.getEnableConfiguratorLocale=function(){return _.Hn(this,13)};
_.X.getEnableTinyNoPointer=function(){return _.Hn(this,14)};
_.X.getEnableSupportSessionLogging=function(){return _.Hn(this,15)};
_.X.getEnableFileUploadForScreenshot=function(){return _.Hn(this,16)};
_.X.getEnableDirectDeflectionForSingleCategory=function(){return _.Hn(this,17)};
_.X.getEnableImageSanitization=function(){return _.Hn(this,18)};
_.X.getEnableAlohaBinarySplit=function(){return _.Hn(this,19)};
_.X.getEnableDbFeedbackIntents=function(){return _.Hn(this,20)};
_.X.getEnableMarkMandatoryFieldsWithRequired=function(){return _.Hn(this,21)};
_.X.getEnableFeedbackCategoryCustomUi=function(){return _.Hn(this,22)};
_.X.getEnableRealtimeCtl=function(){return _.Hn(this,23)};var zZ0=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(zZ0,_.fN);var Jf8=[/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 okc="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 FXc=_.NP(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),PI_=_.NP(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Hg=function(){var H=Error.call(this,"Form is either loading or already opened");this.message=H.message;"stack"in H&&(this.stack=H.stack);this.name="DuplicateFormError"};
_.R(Hg,Error);var nkK,pYF,NS4,LXK;var q$,Rjw;
q$=function(H,U,A){H.timeOfStartCall=(new Date).getTime();var M=A||_.Mr,W=M.document,w=H.nonce||_.bL(M.document);w&&!H.nonce&&(H.nonce=w);if(H.flow=="help"){var d=_.tr("document.location.href",M);!H.helpCenterContext&&d&&(H.helpCenterContext=d.substring(0,1200));d=!0;if(U&&JSON&&JSON.stringify){var O=JSON.stringify(U);(d=O.length<=1200)&&(H.psdJson=O)}d||(U={invalidPsd:!0})}U=[H,U,A];M.GOOGLE_FEEDBACK_START_ARGUMENTS=U;A=H.feedbackServerUri||"//www.google.com/tools/feedback";if(d=M.GOOGLE_FEEDBACK_START)d.apply(M,U);
else{M=A+"/load.js?";for(var f in H)U=H[f],U==null||_.ht(U)||(M+=encodeURIComponent(f)+"="+encodeURIComponent(U)+"&");H=AD(W).createElement("SCRIPT");w&&H.setAttribute("nonce",w);_.J$(H,_.rM(M));W.body.appendChild(H)}};
Rjw=function(H,U,A,M){var W,w;return _.u(function(d){W=A||_.Mr;var O=H.serverEnvironment==="DEV",f=A||_.Mr;f=H.nonce||_.bL(f.document);O={integrationKeys:{productId:H.productId,feedbackBucket:H.bucket,triggerId:H.triggerId},callbacks:{onClose:H.callback,onLoad:H.onLoadCallback},formContent:{locale:H.locale,disableScreenshot:H.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:H.abuseLink,additionalDataConsent:H.additionalDataConsent},initializationData:{isLocalServer:O,nonce:f,useNightlyRelease:O,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:H.feedbackServerUri,colorScheme:H.colorScheme},extraData:{productVersion:H.productVersion,authUser:H.authuser,configuratorId:H.configuratorId,customZIndex:H.customZIndex,tinyNoPointer:H.tinyNoPointer,
allowNonLoggedInFeedback:H.allowNonLoggedInFeedback,enableAnonymousFeedback:H.enableAnonymousFeedback}};U&&(f=new Map(Object.entries(U)),O.extraData.productSpecificData=f);w=O;return d.yield(gk4(w,M,W),0)})};
_.EnK=function(H,U,A){try{if(H.flow==="help"){var M=H.helpCenterPath.replace(/^\//,"");_.iL(A||window,"https://support.google.com/"+M)}else H.flow==="submit"?q$(H,U,A):tQt(H.productId,H.feedbackServerUri).then(function(W){W=_.qK(W,Yk,1);var w=!hgw||(W==null?void 0:W.getEnableMweb()),d=!H.tinyNoPointer||(W==null?void 0:W.getEnableTinyNoPointer());!W||W.getAlohaAutoGaRollout()&&w&&d?Rjw(H,U,A,W).catch(function(O){!O||O instanceof Hg||q$(H,U,A)}):q$(H,U,A)},function(W){!W||W instanceof Hg||q$(H,U,A)})}catch(W){Rjw(H,
U,A,null).catch(function(w){!w||w instanceof Hg||q$(H,U,A)})}};
_.eC("userfeedback.api.startFeedback",_.EnK);var cf_=/https?:\/\/\S+\.\S+/,yfh=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],BSc=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var e78=function(H){var U=H.split(""),A=[-263237435,15,U,function(M,W,w){var d=W.length;w.forEach(function(O,f,J){this.push(J[f]=W[(W.indexOf(O)-W.indexOf(this[f])+f+d--)%W.length])},M.split(""))},
function(M,W){M=(M%W.length+W.length)%W.length;W.splice(-M).reverse().forEach(function(w){W.unshift(w)})},
"response",function(){for(var M=64,W=[];++M-W.length-32;){switch(M){case 58:M-=14;case 91:case 92:case 93:continue;case 123:M=47;case 94:case 95:case 96:continue;case 46:M=95}W.push(String.fromCharCode(M))}return W},
null,12,1540023973,65941107,null,U,function(M,W){for(M=(M%W.length+W.length)%W.length;M--;)W.unshift(W.pop())},
695603893,function(M){for(var W=M.length;W;)M.push(M.splice(--W,1)[0])},
"'[;'[(",function(M,W){M.push(W)},
null,function(M,W,w,d,O){return W(w,d,O)},
"continuation",U,function(M,W){if(M.length!=0){W=(W%M.length+M.length)%M.length;var w=M[0];M[0]=M[W];M[W]=w}},
function(){for(var M=64,W=[];++M-W.length-32;){switch(M){case 91:M=44;continue;case 123:M=65;break;case 65:M-=18;continue;case 58:M=96;continue;case 46:M=95}W.push(String.fromCharCode(M))}return W},
'"),/]];'];A[7]=A;A[11]=A;A[18]=A;try{(((0,A[15])(A[21]),A[22])(A[11],A[9]),A[22])(A[new Date("1970-01-01T04:30:12.000+04:30")/1E3],A[1]),((0,A[22])(A[11],A[23]),A[4])(A[10],A[18]),(0,A[20])(A[21],A[14])<<(0,A[17])(A[18],A[1]),(0,A[4])(A[8],A[21]),(0,A[19])((0,A[19])((0,A[17])(A[7],A[9]),A[3],A[20],(0,A[6])(),A[2]),A[3],A[5],(0,A[15])(),A[2])}catch(M){return"aTlOUOubTO4AP____8P_"+H}return U.join("")};_.mz2=new _.me("runAttestationCommand");var gnr=new _.me("verifyCommand");_.Tn=new _.me("accessibilityContext");var apn=new _.me("accessibilityData");var xzm=new _.me("profileCardCommand");var cl0=new _.me("signInEndpoint");var tK4=new _.me("signOutEndpoint");var Cww;_.zj3=new _.me("accountItemSectionRenderer");Cww=new _.me("accountItemRenderer");_.t2B=new _.me("saveCommandToSessionStorageAction");var cLp=new _.me("crossAccountChannelTransferEndpoint");var m7_=new _.me("getAccountMenuEndpoint");_.geE=new _.me("getAccountSwitcherEndpoint");var Eet=new _.me("getAccountsListEndpoint");var yL3=new _.me("getAccountsListInnertubeEndpoint");_.B3n=new _.me("addToToastAction");var rLz=new _.me("hideEnclosingAction");_.hf=new _.me("replaceEnclosingAction");var ejz=new _.me("buttonRefreshAction");var Dz3=new _.me("adsControlFlowOpportunityReceivedCommand");var $zK=new _.me("openAdAllowlistInstructionCommand");var lpK=new _.me("videoMastheadAdPrimaryVideoRenderer");var GGn=new _.me("displayAdRenderer");_.Ypz=new _.me("inFeedAdLayoutRenderer");var qpy=new _.me("sequenceItemInPlayerAdLayoutRenderer");_.hjk=new _.me("adSlotRenderer");var kGB=new _.me("adAvatarViewModel");var vng=new _.me("adBadgeViewModel");var T3B=new _.me("adButtonViewModel");var jCB=new _.me("adImageViewModel");var vqh=new _.me("reelsAdCardButtonedViewModel");var Ipy=new _.me("reelsPlayerOverlayLayoutViewModel");var QCp=new _.me("formDataDecoratorCommand");var V2n=new _.me("updateConversationIdCommand");var H3y=new _.me("showSchedulingPanelCommand");var UAB=new _.me("backstageCommentsRenderer");var AMn=new _.me("backstageImageRenderer");var Mfp=new _.me("backstagePostRenderer");var WMr=new _.me("backstageZeroStateRenderer");var wRg=new _.me("postRenderer");var XRw=new _.me("sharedPostRenderer");var i3r=new _.me("createBackstagePostEndpoint");var b3g=new _.me("getPostVideoPreviewEndpoint");var dAB=new _.me("updateBackstagePostEndpoint");var O3g=new _.me("filterChipTransformCommand");var uFK=new _.me("insertRichSectionCommand");var JVM=new _.me("talkToRecsDeselectCommand");var Z3H=new _.me("talkToRecsNextCommand");var fSc=new _.me("talkToRecsSelectCommand");var f7n=new _.me("talkToRecsUpdateTextCommand");_.Gv=new _.me("browseEndpoint");_.JMK=new _.me("confirmDialogEndpoint");var KMz=new _.me("expandOnHoverCardRenderer");var oGz=new _.me("lumiereShelfDetailsRenderer");var FMz=new _.me("revealBusinessEmailCommand");var P6w=new _.me("validateChannelHandleCommand");var saH=new _.me("channelCreationFormEndpoint");var nGw=new _.me("aboutChannelViewModel");var Ngz=new _.me("channelThumbnailWithLinkRenderer");var S92=new _.me("channelCreationServiceEndpoint");var pRk=new _.me("updateChannelPageSettingsEndpoint");var kk=function(H){this.delegate=H},vY=function(){kk.apply(this,arguments)};
_.R(vY,kk);_.D5.Object.defineProperties(vY.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(H){this.delegate.entityMetadata=H}}});var LMz=function(){vY.apply(this,arguments)};
_.R(LMz,vY);LMz.prototype.getAssociations=function(){return[]};
LMz.prototype.getTypeName=function(){return"channelHandle"};var ReB=new _.me("webResponseContextExtensionData");var CcE=new _.me("webThumbnailDetailsExtensionData");_.w7=new _.me("commandContext");var EGy=new _.me("addVideoLinkAction");var mAw=new _.me("banAuthorAction");var gGm=new _.me("createCommentAction");var a7k=new _.me("createCommentReplyAction");var xAH=new _.me("createPollAction");var zen=new _.me("hideIdentityChipAction");var C6w=new _.me("openUpdateCommentDialogAction");var tfp=new _.me("pinCommentAction");var cM3=new _.me("removeCommentAction");var yMw=new _.me("unpinCommentAction");var TV=new _.me("updateBackstagePollAction");var Bgm=new _.me("updateCommentVoteAction");var rM3=new _.me("commentThreadRenderer");var eey=function(){vY.apply(this,arguments)};
_.R(eey,vY);eey.prototype.getAssociations=function(){return[]};
eey.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var DA3=function(){vY.apply(this,arguments)};
_.R(DA3,vY);DA3.prototype.getAssociations=function(){return[]};
DA3.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.$Ak=new _.me("commentDialogRenderer");var l7m=new _.me("reloadCommentsCommand");var GIy=new _.me("updateCommentsSettingsEndpoint");var Y9w=new _.me("commentViewModel");var q93=new _.me("triStateButtonViewModel");var hey=new _.me("voiceReplyContainerViewModel");_.$2=new _.me("commandExecutorCommand");var W$=new _.me("emoji");var kIk=new _.me("updateCreatorChannelInnertubeCommand");_.vGw=new _.me("appendContinuationItemsAction");_.TgH=new _.me("changeEngagementPanelVisibilityAction");_.XA=new _.me("continuationCommand");var ja3=new _.me("hideReportedCommentAction");var I7K=new _.me("listMutationCommand");_.jQ=new _.me("openPopupAction");var Qan=new _.me("persistSubscriptionsDisplayPreferencesCommand");var X0k;_.VfH=new _.me("playlistRemoveVideosAction");_.HH2=new _.me("updatePlaylistAction");_.Uy2=new _.me("addToPlaylistCommand");_.AOg=new _.me("endPlaylistCommand");_.Mcy=new _.me("recoverPlaylistCommand");_.Wir=new _.me("refreshPlaylistCommand");_.w02=new _.me("refreshFormCommand");X0k=new _.me("openOnePickAddVideoModalCommand");var yCE=new _.me("reloadContinuationItemsCommand");_.iHH=new _.me("scrollToEngagementPanelCommand");var bHH=new _.me("selectCountryCommand");var dyp=new _.me("showReloadUiCommand");var OHz=new _.me("undoFeedbackAction");var uTH=new _.me("updateButtonAction");var ZH2=new _.me("updateSubscribeButtonAction");var fAk=new _.me("updateToggleAction");var JOz=new _.me("webNativeShareCommand");_.Y2=new _.me("webCommandMetadata");_.Im=new _.me("webHandleServiceEndpointExtension");var lbV=new _.me("webNavigationEndpointData");var Kih=new _.me("backgroundAudioPlaybackCommand");var oin=new _.me("copyLinkCommand");var Fih=new _.me("playlistVotingRefreshPopupCommand");var Peg=new _.me("selectChipCommand");var sUw=new _.me("setCookieCommand");var nik=new _.me("setLocalStorageCommand");var N$z=new _.me("setPrefStorageEntryCommand");var RB2;_.SgK=new _.me("settingsUpdateCheckboxCommand");_.p02=new _.me("settingsUpdateTextCommand");_.Liw=new _.me("settingsUpdateOptionsCommand");RB2=new _.me("settingsUpdateSwitchCommand");_.Eir=new _.me("settingsUpdateConnectedAppRendererCommand");var myg=new _.me("showCreatorChatbotEngagementPanelCommand");var gik=new _.me("updateTextInputFormFieldRendererCommand");var aAz=new _.me("updateToggleButtonStateCommand");var xyy=new _.me("updateUrlParamCommand");var zBk=new _.me("webSubmitFormCommand");var Cew=new _.me("channelSwitcherPageRenderer"),tcH=new _.me("updateChannelSwitcherPageAction");_.Ea=new _.me("continuationItemRenderer");_.Qt=new _.me("richItemRenderer");var cOz=new _.me("richSectionRenderer");_.yOr=new _.me("richShelfRenderer");_.B$n=new _.me("metadataBadgeRenderer");_.rOB=new _.me("multiPageMenuNotificationSectionRenderer");_.eBk=new _.me("playlistLoopButtonStateRenderer");var DyH=new _.me("claimLegacyYoutubeChannelEndpoint");var $yw=new _.me("getNotificationMenuEndpoint");var lAk=new _.me("getSearchInVideoCommand");_.GFy=new _.me("getTranscriptEndpoint");_.GR=new _.me("signalServiceEndpoint");var Ygh=new _.me("verifyAgeEndpoint");var $_4=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R($_4,_.fN);$_4.prototype.getPath=function(){return _.Mn(this,1)};
$_4.prototype.getValue=function(){return _.Mn(this,2)};var qgz=[0,_.RT,-1];var hBw=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(hBw,_.fN);var D_M=_.Ej(hBw,[0,_.g4,qgz]);var kFz=new _.me("dismissalEndpoint");var vim=new _.me("elementsCommand");_.X1=new _.me("innertubeCommand");var Joc=new _.me("multipleInlinePlaybackCommand");var Rs7=new _.me("loggingDirectives");var T$2=new _.me("acknowledgeChannelTouStrikeCommand");var jUw=function(){vY.apply(this,arguments)};
_.R(jUw,vY);jUw.prototype.getAssociations=function(){return[]};
jUw.prototype.getTypeName=function(){return"booleanEntity"};var IAB=function(){vY.apply(this,arguments)};
_.R(IAB,vY);IAB.prototype.getAssociations=function(){return[]};
IAB.prototype.getTypeName=function(){return"stringEntity"};var FA=new _.me("entityBatchUpdate");_.QUr=new _.me("entityUpdateCommand");var Vc3=function(){vY.apply(this,arguments)};
_.R(Vc3,vY);Vc3.prototype.getAssociations=function(){var H=[];this.delegate.alternateChannel&&H.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&H.push.apply(H,_.vI(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&H.push(this.delegate.oneofChannelEntity);return[].concat(_.vI(new Set(H)))};
Vc3.prototype.getTypeName=function(){return"fakeChannel"};var HZB=function(){vY.apply(this,arguments)};
_.R(HZB,vY);HZB.prototype.getAssociations=function(){var H=[];this.delegate.entryCollection&&H.push(this.delegate.entryCollection);return[].concat(_.vI(new Set(H)))};
HZB.prototype.getTypeName=function(){return"fakePlaylist"};
var U$w=function(){vY.apply(this,arguments)};
_.R(U$w,vY);U$w.prototype.getAssociations=function(){var H=[];this.delegate.parentPlaylist&&H.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var U=_.b(this.delegate.entries),A=U.next();!A.done;A=U.next())H.push.apply(H,_.vI((new Afw(A.value)).getAssociations()));return[].concat(_.vI(new Set(H)))};
U$w.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var Afw=function(){kk.apply(this,arguments)};
_.R(Afw,kk);Afw.prototype.getAssociations=function(){var H=[];this.delegate.video&&H.push(this.delegate.video);return[].concat(_.vI(new Set(H)))};var MQz=function(){vY.apply(this,arguments)};
_.R(MQz,vY);MQz.prototype.getAssociations=function(){var H=[];this.delegate.descriptionEntity&&H.push(this.delegate.descriptionEntity);this.delegate.creators&&H.push.apply(H,_.vI(this.delegate.creators));this.delegate.theBiggestFan&&H.push(this.delegate.theBiggestFan);return[].concat(_.vI(new Set(H)))};
MQz.prototype.getTypeName=function(){return"fakeVideo"};
var WXB=function(){vY.apply(this,arguments)};
_.R(WXB,vY);WXB.prototype.getAssociations=function(){return[]};
WXB.prototype.getTypeName=function(){return"fakeVideoDescription"};var wYr=new _.me("fantasyRosterViewModel");var XYB=new _.me("addFollowUpSurveyCommand");var iZn=new _.me("getSurveyCommand");var bZz=new _.me("ratingSurveyOptionRenderer");_.i$=new _.me("feedbackEndpoint");var d$w=new _.me("reportHistoryTableCellRenderer"),OZh=new _.me("reportHistoryTableTextCellRenderer"),uaw=new _.me("reportHistoryTableReasonCellRenderer");_.ZZm=new _.me("flagEndpoint");var flh=new _.me("deleteFlowStepsCommand");_.Jf2=new _.me("flowNextStepCommand");_.KXr=new _.me("flowPrevStepCommand");var okK=new _.me("getFlowCommand");var FXK=new _.me("submitFormWithValidationFlowCommand");_.PIy=new _.me("updateFlowCommand");var smn=function(){vY.apply(this,arguments)};
_.R(smn,vY);smn.prototype.getAssociations=function(){return[]};
smn.prototype.getTypeName=function(){return"flowStateEntity"};var nkm=new _.me("flowFormState");_.Vt=new _.me("flowStepRenderer");var NSg=new _.me("gameCardRenderer");var Sxp=new _.me("accountLinkingStateChangedCommand");var pYr=function(){vY.apply(this,arguments)};
_.R(pYr,vY);pYr.prototype.getAssociations=function(){return[]};
pYr.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var LXm=new _.me("changeMiniAppPlayStateCommand");var RZB=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(RZB,_.fN);var Hc=[1,2,3];var Ekk=[0,Hc,RSy,_.m9,FOk];var m$w=_.Ej(RZB,Ekk),gkg=_.mO(Ekk);var aln=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(aln,_.fN);var x$r=[0,_.sh,_.RT];var zZh=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(zZh,_.fN);var CIr=[0,_.RT,_.sh,-1];var U7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(U7,_.fN);var tQH=_.mO([0,1,x$r,_.CT,CIr,_.RT]);var cfy=new _.me("miniAppScoreChallengeViewModel");var yfk=new _.me("miniGameCardViewModel");var BS3=new _.me("teaserCardViewModel");var rfn=function(){vY.apply(this,arguments)};
_.R(rfn,vY);rfn.prototype.getAssociations=function(){return[]};
rfn.prototype.getTypeName=function(){return"logoEntity"};var eZk=new _.me("feedbackItemRenderer");var D$m=function(){vY.apply(this,arguments)};
_.R(D$m,vY);D$m.prototype.getAssociations=function(){return[]};
D$m.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.$$K=new _.me("playerInterstitialRenderer");var llm=new _.me("getKidsBlocklistPickerCommand");_.GVp=new _.me("updateKidsBlacklistEndpoint");_.AA=new _.me("likeEndpoint");var Yxm,qxB,hZm;Yxm=new _.me("addChatItemAction");qxB=new _.me("removeChatItemAction");hZm=new _.me("markChatItemAsDeletedAction");_.kVB=new _.me("setLiveChatCollapsedStateAction");var vkz=function(){vY.apply(this,arguments)};
_.R(vkz,vY);vkz.prototype.getAssociations=function(){return[]};
vkz.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var TSz=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(TSz,_.fN);TSz.prototype.getPayloadCase=function(){return _.To(this,jmB)};
var jmB=[3,4];var Ilh=[0,_.g4,[0,[1,2],_.m9,_.aT,[0,_.Eh,1,_.Eh]]];var Qmg=[0,_.RT,-1];var VQr=[0,[1],_.m9];var MJ=[0,[1,2],_.m9,_.aT,[0,_.CT]];var Wc=[0,_.RT];var H$B=[0,[0,_.pT,_.Sm,[0,_.Eh,_.tg,_.Eh]],1,[0,_.pT]];var UJp=[0,nT];var AAw=[0,nT];var MRk=[0,AAw,UJp];var WoB=[0,_.g4,[0,[1,2],_.m9,-1],_.pT];var wcy=[0,[2],1,_.aT,[0,_.Eh,-1,WoB]];var Xcg=[0,[1],_.aT,[0,_.Eh,_.RT,_.tg,1,WoB]];var i$w=[0,_.Sm,-1,o5z,_.CT];var b$y=[0,[0,Pn,-3],-4];var wk=[0,_.pT,-3,_.RT,_.pT,_.tJ,_.pT,Ilh,_.pT,-2];var Xj=[0,_.g4,[0,[1,2],_.m9,-1],_.pT,_.RT];var dJw=[0,[3],MJ,[0,[2,3,4],xSw,_.m9,-2],_.aT,[0,_.RT],_.sh];var O$p=[0,[3,5],_.RT,_.Nn,_.aT,[0,1,_.sh,_.CT],_.CT,_.aT,[0,_.CT,_.sh]];var ujn=[0,2,_.Nn,_.RT,-1];var Z$H=[0,pyk];var fJw=[0,[3,4],2,s5w,_.m9,_.RT];var JAz=[0,_.CT,-2,1,_.RT];var Kow=[0,_.RT,-1,_.CT];var ogK=[0,Wc,function(){return iY},
Wc,_.RT],Fon=[0,_.CT,Wc,MJ,function(){return iY},
_.RT],iY=[-161,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160],Wc,_.Nn,[0,_.pT,1,_.pT,1,_.pT,1,_.CT,-1,Wc],[0,1,_.pT,2,_.pT,_.CT,_.pT],1,_.Nn,-1,_.RT,_.Nn,2,Pn,[0,Pn,_.Nn],_.RT,1,H$B,1,MJ,_.tJ,1,[0,[0,_.g4,[0,_.RT,_.pT,_.CT]]],[0,_.pT,[0,_.sh,[0,_.tg]],_.sh,1,[0,NMw,-1]],_.RT,[0,1,_.RT],76,_.aT,[0,MJ,Xj,H$B,1,[0,_.g4,Xj]],1,_.aT,[0,MJ,_.RT,
_.pT],_.aT,[0,MJ,VQr],_.aT,[0,MJ,VQr,_.Nn],_.aT,[0,MJ,VQr],_.aT,[0,MJ,_.g4,Wc,MJ,E5w],_.aT,[0,MJ,Wc,_.RT],_.aT,[0,MJ,_.pT,wk,-1,_.pT],4,_.aT,[0,MJ,_.pT,_.Nn,wk,_.pT],_.aT,[0,[4,9],MJ,_.CT,_.Nn,_.m9,Xj,1,H$B,_.RT,_.m9,JAz],_.aT,[0,MJ,Wc,MJ,_.CT,_.RT],_.aT,[0,_.pT,MJ,wk,_.pT,_.RT],_.aT,[0,MJ,Wc,MJ,_.CT,_.RT],1,_.aT,[0,MJ,_.CT,_.RT,wk],_.aT,[0,MJ,_.CT,[0,_.RT,_.Nn],_.RT,_.Nn,_.RT,_.zb,-2,3,Kow,_.g4,Kow,Kow,JAz],_.aT,[0,MJ,_.CT,Xcg,_.g4,[0,AAw,wcy],Wc,_.g4,MRk,_.RT,1,_.CT,i$w,b$y,KOr,-1],_.aT,[0,MJ,[0,
_.tg,-1,Xcg,_.g4,[0,AAw,wcy,UJp],[0,_.cQ],1,_.Eh],Wc,_.RT],_.aT,[0,MJ,Xj,_.RT,[0,_.Sm]],_.aT,function(){return Fon},
_.aT,[0,MJ,_.Nn,_.RT,-1,_.pT],_.aT,[0,[6,7],MJ,_.g4,ujn,_.CT,Xj,1,_.aT,fJw,_.aT,Z$H],_.aT,[0,_.g4,ujn,_.CT,_.pT],_.aT,[0,_.RT,O_m,-1],_.aT,[0,Wc,_.g4,MRk,_.RT],_.aT,[0,MJ,Wc,_.RT],_.aT,[0,_.zb,_.RT],_.aT,[0,Qmg],_.aT,[0,Qmg],_.aT,[0,Xj],_.aT,[0,Wc,Xj],_.aT,function(){return ogK},
_.aT,[0,Wc,_.RT],_.aT,[0,Wc,_.RT],1,_.aT,[0,_.pT,MJ,wk,_.pT,wk],_.aT,[0,_.cQ],1,_.aT,[0],1,_.aT,[0,Wc,_.CT,MJ,_.CT],_.aT,[0,[1,2],_.aT,fJw,_.aT,Z$H,_.Nn],_.aT,[0,_.cQ,Xj,O$p,_.RT,_.Nn],_.aT,[0,O$p,_.RT,_.Nn],_.aT,[0,i$w,Xj,_.pT,b$y],_.aT,dJw,_.aT,[0],_.aT,[0,_.RT,-1,_.sh],_.aT,[0,Wc,_.RT],_.aT,[0,dJw,_.sh,_.RT],_.aT,[0,MJ,wk,_.pT],_.aT,[0,MJ,wk,_.pT],_.aT,[0,i$w,b$y,Xj,_.tJ,_.pT,KOr,-1],_.aT,[0,MJ,wk,_.pT],_.aT,[0,_.Nn]];var PYw=[0,_.g4,iY];var stn=_.Ej(TSz,[0,jmB,1,_.sh,_.aT,[0,[18,22,24],PYw,3,[0,PYw],1,_.sh,[0,_.g4,[0,_.Nn,Pn],_.Nn],1,iY,-1,[0,_.LT,-2,_.tJ,_.LT,-1,_.tJ,_.LT,Ilh,_.LT,-2],fe2,[!0,_.RT,[0,VQr,2,_.RT,_.Nn,_.pT,2,_.RT,_.zb]],[0,[1,2,3],[5,6],_.aT,[0,_.Eh],_.aT,[0,_.Eh,-1],_.aT,[0,_.Eh],1,_.aT,Qmg,_.aT,[0,_.RT]],[0,iY,-1],_.cQ,iY,_.aT,iY,[0,PYw],_.sh,iY,_.aT,iY,_.RT,_.aT,iY,iY],_.aT,K7p,_.sh]);var ngB=new _.me("liveChatEndpoint");var Nkw=new _.me("liveChatItemContextMenuEndpoint");var S7h=new _.me("liveChatReplayEndpoint");_.pcm=new _.me("emojiPickerRenderer");var Low=new _.me("liveChatAuthorBadgeViewModel");var RUH=new _.me("deleteLiveChatMessageCommand");var Eg2=new _.me("liveChatActionEndpoint");var mJ2=new _.me("createLiveChatPollEndpoint");var gg3=new _.me("manageLiveChatUserEndpoint");var aJz=new _.me("moderateLiveChatEndpoint");_.xJ2=new _.me("sendLiveChatMessageEndpoint");var zUB=new _.me("sendLiveChatVoteEndpoint");var CYH=new _.me("clearLocationCommand");var tR2=new _.me("resolveLocationCommand");var cAw=new _.me("interactionLoggingCommandMetadata");var yA3=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(yA3,_.fN);var Bkz=function(H,U){return _.Gg(H,1,U)};var rA2=[0,_.pT];var eUw=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(eUw,_.fN);var DJz=function(H,U){return A9(H,1,yA3,U)};eUw.prototype.JSC$12628_serializeBinary=bUN([0,_.g4,rA2]);var wc_={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 $JH={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"},
lJK={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 bkt={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",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SINGLE_COLUMN_GRID_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SINGLE_COLUMN_GRID_TRIGGERED"};_.Ju7=new _.me("logFlowLoggingEventCommand");_.vX=new _.me("loggingContext");var GJp=new _.me("audioTrackSelectActionCommand");var Y7p=new _.me("captionLanguageSelectActionCommand");var q72=new _.me("showAudioTrackPickerActionCommand");var hUp=new _.me("showCaptionLanguageSelectActionCommand");var kJp=new _.me("dismissDialogEndpoint");var vgz=new _.me("dismissPlayerOverlayCommand");var Tkz=new _.me("hideItemSectionVideosByIdCommand");var jtp=new _.me("showMiniplayerCommand");var IJw=function(){vY.apply(this,arguments)};
_.R(IJw,vY);IJw.prototype.getAssociations=function(){return[]};
IJw.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var Qt2=function(){vY.apply(this,arguments)};
_.R(Qt2,vY);Qt2.prototype.getAssociations=function(){return[]};
Qt2.prototype.getTypeName=function(){return"downloadStatusEntity"};var VRh=function(){vY.apply(this,arguments)};
_.R(VRh,vY);VRh.prototype.getAssociations=function(){return[]};
VRh.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var H9y=function(){vY.apply(this,arguments)};
_.R(H9y,vY);H9y.prototype.getAssociations=function(){var H=[];this.delegate.downloadsList&&H.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&H.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&H.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&H.push(this.delegate.refresh);return[].concat(_.vI(new Set(H)))};
H9y.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var U5r=function(){vY.apply(this,arguments)};
_.R(U5r,vY);U5r.prototype.getAssociations=function(){var H=[];this.delegate.refresh&&H.push(this.delegate.refresh);if(this.delegate.downloads)for(var U=_.b(this.delegate.downloads),A=U.next();!A.done;A=U.next())H.push.apply(H,_.vI((new Aq3(A.value)).getAssociations()));return[].concat(_.vI(new Set(H)))};
U5r.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var Aq3=function(){kk.apply(this,arguments)};
_.R(Aq3,kk);Aq3.prototype.getAssociations=function(){var H=[];this.delegate.video&&H.push(this.delegate.video);this.delegate.playlist&&H.push(this.delegate.playlist);this.delegate.videoItem&&H.push(this.delegate.videoItem);this.delegate.playlistItem&&H.push(this.delegate.playlistItem);return[].concat(_.vI(new Set(H)))};var MZ3=function(){vY.apply(this,arguments)};
_.R(MZ3,vY);MZ3.prototype.getAssociations=function(){var H=[];this.delegate.localImageEntities&&H.push.apply(H,_.vI(this.delegate.localImageEntities));return[].concat(_.vI(new Set(H)))};
MZ3.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var WBh=function(){vY.apply(this,arguments)};
_.R(WBh,vY);WBh.prototype.getAssociations=function(){var H=[];this.delegate.playbackData&&H.push(this.delegate.playbackData);this.delegate.localImageEntities&&H.push.apply(H,_.vI(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&H.push(this.delegate.videoDownloadContextEntity);return[].concat(_.vI(new Set(H)))};
WBh.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var wd3=function(){vY.apply(this,arguments)};
_.R(wd3,vY);wd3.prototype.getAssociations=function(){return[]};
wd3.prototype.getTypeName=function(){return"offlineabilityEntity"};var XdK=function(){vY.apply(this,arguments)};
_.R(XdK,vY);XdK.prototype.getAssociations=function(){var H=[];this.delegate.fakeChildren&&H.push.apply(H,_.vI(this.delegate.fakeChildren));return[].concat(_.vI(new Set(H)))};
XdK.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var i9n=function(){vY.apply(this,arguments)};
_.R(i9n,vY);i9n.prototype.getAssociations=function(){var H=[];this.delegate.video&&H.push(this.delegate.video);this.delegate.playbackData&&H.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&H.push(this.delegate.offlineVideoPolicy);return[].concat(_.vI(new Set(H)))};
i9n.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var b9K=function(){vY.apply(this,arguments)};
_.R(b9K,vY);b9K.prototype.getAssociations=function(){return[]};
b9K.prototype.getTypeName=function(){return"continuationTokenEntity"};var d5z=function(){vY.apply(this,arguments)};
_.R(d5z,vY);d5z.prototype.getAssociations=function(){var H=[];this.delegate.channelOwner&&H.push(this.delegate.channelOwner);this.delegate.videos&&H.push.apply(H,_.vI(this.delegate.videos));this.delegate.collaboratorChannels&&H.push.apply(H,_.vI(this.delegate.collaboratorChannels));this.delegate.downloadState&&H.push(this.delegate.downloadState);this.delegate.refresh&&H.push(this.delegate.refresh);return[].concat(_.vI(new Set(H)))};
d5z.prototype.getTypeName=function(){return"mainPlaylistEntity"};var O9h=function(){vY.apply(this,arguments)};
_.R(O9h,vY);O9h.prototype.getAssociations=function(){var H=[];this.delegate.video&&H.push(this.delegate.video);this.delegate.channelContributor&&H.push(this.delegate.channelContributor);return[].concat(_.vI(new Set(H)))};
O9h.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var uX2=function(){kk.apply(this,arguments)};
_.R(uX2,kk);uX2.prototype.getAssociations=function(){var H=[];this.delegate.recommendedVideoMetadata&&H.push.apply(H,_.vI((new Z9w(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.vI(new Set(H)))};
var Z9w=function(){kk.apply(this,arguments)};
_.R(Z9w,kk);Z9w.prototype.getAssociations=function(){var H=[];this.delegate.localImageEntities&&H.push.apply(H,_.vI(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&H.push(this.delegate.videoDownloadContextEntity);return[].concat(_.vI(new Set(H)))};var f4K=function(){kk.apply(this,arguments)};
_.R(f4K,kk);f4K.prototype.getAssociations=function(){var H=[];this.delegate.playbackPosition&&H.push(this.delegate.playbackPosition);return[].concat(_.vI(new Set(H)))};var Jqr=function(){vY.apply(this,arguments)};
_.R(Jqr,vY);Jqr.prototype.getAssociations=function(){var H=[];this.delegate.owner&&H.push(this.delegate.owner);this.delegate.downloadState&&H.push(this.delegate.downloadState);this.delegate.userState&&H.push.apply(H,_.vI((new f4K(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&H.push.apply(H,_.vI((new uX2(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.vI(new Set(H)))};
Jqr.prototype.getTypeName=function(){return"mainVideoEntity"};var KBg=function(){vY.apply(this,arguments)};
_.R(KBg,vY);KBg.prototype.getAssociations=function(){var H=[];this.delegate.userChannelDetails&&H.push(this.delegate.userChannelDetails);return[].concat(_.vI(new Set(H)))};
KBg.prototype.getTypeName=function(){return"ytMainChannelEntity"};var o6z=function(){vY.apply(this,arguments)};
_.R(o6z,vY);o6z.prototype.getAssociations=function(){var H=[];this.delegate.channelOwner&&H.push(this.delegate.channelOwner);this.delegate.playbackPosition&&H.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&H.push.apply(H,_.vI(this.delegate.localImageEntities));this.delegate.downloadStatus&&H.push(this.delegate.downloadStatus);return[].concat(_.vI(new Set(H)))};
o6z.prototype.getTypeName=function(){return"ytMainVideoEntity"};var HmV=new _.me("downloadsPageSmartDownloadsOptInBannerParams");var WEr=new _.me("downloadsPageUpsellBannerParams");var FBw=function(){vY.apply(this,arguments)};
_.R(FBw,vY);FBw.prototype.getAssociations=function(){return[]};
FBw.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var P1n=function(){vY.apply(this,arguments)};
_.R(P1n,vY);P1n.prototype.getAssociations=function(){return[]};
P1n.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var szw=function(){vY.apply(this,arguments)};
_.R(szw,vY);szw.prototype.getAssociations=function(){return[]};
szw.prototype.getTypeName=function(){return"macroMarkerEntity"};var n6B=function(){vY.apply(this,arguments)};
_.R(n6B,vY);n6B.prototype.getAssociations=function(){return[]};
n6B.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var NIh=function(){vY.apply(this,arguments)};
_.R(NIh,vY);NIh.prototype.getAssociations=function(){return[]};
NIh.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var SCw=function(){vY.apply(this,arguments)};
_.R(SCw,vY);SCw.prototype.getAssociations=function(){return[]};
SCw.prototype.getTypeName=function(){return"playerStateEntity"};var pdz=function(){vY.apply(this,arguments)};
_.R(pdz,vY);pdz.prototype.getAssociations=function(){return[]};
pdz.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var LBw=function(){vY.apply(this,arguments)};
_.R(LBw,vY);LBw.prototype.getAssociations=function(){return[]};
LBw.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var Rfy=function(){vY.apply(this,arguments)};
_.R(Rfy,vY);Rfy.prototype.getAssociations=function(){return[]};
Rfy.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.JI=new _.me("dislikeButtonViewModel");_.fx=new _.me("likeButtonViewModel");var E6H=new _.me("videoSummaryContentViewModel");var m5h=new _.me("videoSummaryParagraphViewModel");var g6w=new _.me("changeTimelyActionVisibilityCommand");var a4h=new _.me("hideEngagementPanelEndpoint");var x5m=new _.me("refreshPanelEndpoint");var zfH=new _.me("scrollToSectionEndpoint");var C1r=new _.me("seekToVideoTimestampCommand");_.XY=new _.me("showEngagementPanelEndpoint");var tZg=new _.me("showTransientPlayerScrimOverlayCommand");var cqn=new _.me("toggleEngagementPanelCommand");var yq3=new _.me("aiResponseBoxViewModel");_.BIh=new _.me("createBroadcastCommand");var rqr=new _.me("metadataUpdateCommand");var efH=function(){vY.apply(this,arguments)};
_.R(efH,vY);efH.prototype.getAssociations=function(){return[]};
efH.prototype.getTypeName=function(){return"featuredProductsEntity"};var D5w=function(){vY.apply(this,arguments)};
_.R(D5w,vY);D5w.prototype.getAssociations=function(){return[]};
D5w.prototype.getTypeName=function(){return"pinnedProductEntity"};var $5m=function(){vY.apply(this,arguments)};
_.R($5m,vY);$5m.prototype.getAssociations=function(){return[]};
$5m.prototype.getTypeName=function(){return"trendingOfferEntity"};_.l4h=new _.me("merchandiseShelfRenderer");var G1w=new _.me("shoppingContentLineItemViewModel");var YCz=new _.me("gridMovieRenderer");_.qCm=new _.me("movieRenderer");var hfy=function(){vY.apply(this,arguments)};
_.R(hfy,vY);hfy.prototype.getAssociations=function(){return[]};
hfy.prototype.getTypeName=function(){return"compositeSourceEntity"};var k1H=function(){vY.apply(this,arguments)};
_.R(k1H,vY);k1H.prototype.getAssociations=function(){var H=[];this.delegate.compositeSourceKeys&&H.push.apply(H,_.vI(this.delegate.compositeSourceKeys));return[].concat(_.vI(new Set(H)))};
k1H.prototype.getTypeName=function(){return"multiviewStagingEntity"};var v6w=function(){vY.apply(this,arguments)};
_.R(v6w,vY);v6w.prototype.getAssociations=function(){var H=[];this.delegate.trackDownloadMetadatas&&H.push.apply(H,_.vI(this.delegate.trackDownloadMetadatas));return[].concat(_.vI(new Set(H)))};
v6w.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var TIB=function(){vY.apply(this,arguments)};
_.R(TIB,vY);
TIB.prototype.getAssociations=function(){var H=[];this.delegate.downloadedTracks&&H.push.apply(H,_.vI(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&H.push.apply(H,_.vI(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&H.push.apply(H,_.vI(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&H.push.apply(H,_.vI(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&H.push.apply(H,_.vI(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
H.push.apply(H,_.vI(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&H.push.apply(H,_.vI(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&H.push.apply(H,_.vI(this.delegate.metadataOnlyTracks));return[].concat(_.vI(new Set(H)))};
TIB.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var jzr=function(){vY.apply(this,arguments)};
_.R(jzr,vY);jzr.prototype.getAssociations=function(){var H=[];this.delegate.trackDownloadMetadatas&&H.push.apply(H,_.vI(this.delegate.trackDownloadMetadatas));return[].concat(_.vI(new Set(H)))};
jzr.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var I4w=function(){vY.apply(this,arguments)};
_.R(I4w,vY);I4w.prototype.getAssociations=function(){var H=[];this.delegate.playbackData&&H.push(this.delegate.playbackData);this.delegate.localImageEntities&&H.push.apply(H,_.vI(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&H.push(this.delegate.videoDownloadContextEntity);return[].concat(_.vI(new Set(H)))};
I4w.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var Qz3=function(){vY.apply(this,arguments)};
_.R(Qz3,vY);
Qz3.prototype.getAssociations=function(){var H=[];this.delegate.musicLibraryStatusEntity&&H.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&H.push.apply(H,_.vI(this.delegate.primaryArtists));this.delegate.details&&H.push(this.delegate.details);this.delegate.userDetails&&H.push(this.delegate.userDetails);this.delegate.tracks&&H.push.apply(H,_.vI(this.delegate.tracks));this.delegate.share&&H.push(this.delegate.share);this.delegate.downloadMetadata&&H.push(this.delegate.downloadMetadata);this.delegate.refresh&&
H.push(this.delegate.refresh);return[].concat(_.vI(new Set(H)))};
Qz3.prototype.getTypeName=function(){return"musicAlbumRelease"};
var VZH=function(){vY.apply(this,arguments)};
_.R(VZH,vY);VZH.prototype.getAssociations=function(){var H=[];this.delegate.albumRelease&&H.push(this.delegate.albumRelease);this.delegate.tracks&&H.push.apply(H,_.vI(this.delegate.tracks));return[].concat(_.vI(new Set(H)))};
VZH.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var HJr=function(){vY.apply(this,arguments)};
_.R(HJr,vY);HJr.prototype.getAssociations=function(){var H=[];this.delegate.albumRelease&&H.push(this.delegate.albumRelease);return[].concat(_.vI(new Set(H)))};
HJr.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var UEz=function(){vY.apply(this,arguments)};
_.R(UEz,vY);UEz.prototype.getAssociations=function(){var H=[];this.delegate.details&&H.push(this.delegate.details);this.delegate.userDetails&&H.push(this.delegate.userDetails);return[].concat(_.vI(new Set(H)))};
UEz.prototype.getTypeName=function(){return"musicArtist"};
var Ahh=function(){vY.apply(this,arguments)};
_.R(Ahh,vY);Ahh.prototype.getAssociations=function(){var H=[];this.delegate.parentArtist&&H.push(this.delegate.parentArtist);return[].concat(_.vI(new Set(H)))};
Ahh.prototype.getTypeName=function(){return"musicArtistDetail"};
var M4w=function(){vY.apply(this,arguments)};
_.R(M4w,vY);M4w.prototype.getAssociations=function(){var H=[];this.delegate.parentArtist&&H.push(this.delegate.parentArtist);return[].concat(_.vI(new Set(H)))};
M4w.prototype.getTypeName=function(){return"musicArtistUserDetail"};var WgK=function(){vY.apply(this,arguments)};
_.R(WgK,vY);WgK.prototype.getAssociations=function(){return[]};
WgK.prototype.getTypeName=function(){return"musicLibraryEdit"};var wbw=function(){vY.apply(this,arguments)};
_.R(wbw,vY);wbw.prototype.getAssociations=function(){return[]};
wbw.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var XbB=function(){vY.apply(this,arguments)};
_.R(XbB,vY);
XbB.prototype.getAssociations=function(){var H=[];this.delegate.tracks&&H.push.apply(H,_.vI(this.delegate.tracks));this.delegate.refresh&&H.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&H.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&H.push(this.delegate.details);this.delegate.downloadMetadata&&H.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&H.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&H.push(this.delegate.userDetails);this.delegate.entryCollection&&
H.push(this.delegate.entryCollection);this.delegate.share&&H.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&H.push.apply(H,_.vI((new iJy(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.vI(new Set(H)))};
XbB.prototype.getTypeName=function(){return"musicPlaylist"};
var iJy=function(){kk.apply(this,arguments)};
_.R(iJy,kk);iJy.prototype.getAssociations=function(){var H=[];this.delegate.creatorEntity&&H.push(this.delegate.creatorEntity);return[].concat(_.vI(new Set(H)))};var bJh=function(){vY.apply(this,arguments)};
_.R(bJh,vY);bJh.prototype.getAssociations=function(){return[]};
bJh.prototype.getTypeName=function(){return"musicShare"};var dEK=function(){vY.apply(this,arguments)};
_.R(dEK,vY);
dEK.prototype.getAssociations=function(){var H=[];this.delegate.musicLibraryStatusEntity&&H.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&H.push.apply(H,_.vI(this.delegate.artists));this.delegate.audioModeVersion&&H.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&H.push(this.delegate.videoModeVersion);this.delegate.userDetails&&H.push(this.delegate.userDetails);this.delegate.details&&H.push(this.delegate.details);this.delegate.albumRelease&&H.push(this.delegate.albumRelease);this.delegate.share&&
H.push(this.delegate.share);this.delegate.libraryEdit&&H.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&H.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&H.push(this.delegate.playbackPosition);this.delegate.lyrics&&H.push(this.delegate.lyrics);return[].concat(_.vI(new Set(H)))};
dEK.prototype.getTypeName=function(){return"musicTrack"};
var OJK=function(){vY.apply(this,arguments)};
_.R(OJK,vY);OJK.prototype.getAssociations=function(){var H=[];this.delegate.parentTrack&&H.push(this.delegate.parentTrack);return[].concat(_.vI(new Set(H)))};
OJK.prototype.getTypeName=function(){return"musicTrackDetail"};
var u42=function(){vY.apply(this,arguments)};
_.R(u42,vY);u42.prototype.getAssociations=function(){var H=[];this.delegate.parentTrack&&H.push(this.delegate.parentTrack);return[].concat(_.vI(new Set(H)))};
u42.prototype.getTypeName=function(){return"musicTrackUserDetail"};var pY=new _.me("musicResponsiveListItemRenderer");var ezM=new _.me("addToPlaylistEndpoint");var ZJp=new _.me("captionPickerEndpoint");var f1w=new _.me("suggestStats");var Jhm=new _.me("backstageImageUploadEndpoint");var Kgn=new _.me("createBackstagePostDialogEndpoint");_.oyB=new _.me("createCommentReplyDialogEndpoint");_.Fg2=new _.me("updateCommentDialogEndpoint");_.PKK=new _.me("updateCommentReplyDialogEndpoint");var sfK=new _.me("menuEndpoint");var es0=new _.me("modalEndpoint");var nyz=new _.me("playlistEditorEndpoint");var Nv3=new _.me("copyTextEndpoint");var SYz,pbg;SYz=new _.me("shareEndpoint");pbg=new _.me("shareEntityEndpoint");_.Lgz=new _.me("shareEntityServiceEndpoint");_.aKN=new _.me("userFeedbackEndpoint");_.sH=new _.me("watchEndpoint");var ehr=new _.me("watchPlaylistEndpoint");var RQw=new _.me("addUpcomingEventReminderEndpoint");_.bY=new _.me("getCommentsFromInboxCommand");var EyK=new _.me("notificationOptOutEndpoint");var mEz=new _.me("recordNotificationInteractionsEndpoint");var gy3=new _.me("removeUpcomingEventReminderEndpoint");_.s3=new _.me("getDownloadActionCommand");_.a1w=new _.me("offlineOrchestrationActionCommand");var xEz=function(){vY.apply(this,arguments)};
_.R(xEz,vY);xEz.prototype.getAssociations=function(){return[]};
xEz.prototype.getTypeName=function(){return"captionTrack"};var zQw=function(){vY.apply(this,arguments)};
_.R(zQw,vY);zQw.prototype.getAssociations=function(){return[]};
zQw.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var CKw=function(){vY.apply(this,arguments)};
_.R(CKw,vY);CKw.prototype.getAssociations=function(){return[]};
CKw.prototype.getTypeName=function(){return"offlineVideoPolicy"};var t4g=function(){vY.apply(this,arguments)};
_.R(t4g,vY);t4g.prototype.getAssociations=function(){return[]};
t4g.prototype.getTypeName=function(){return"offlineVideoStreams"};var chH=function(){vY.apply(this,arguments)};
_.R(chH,vY);chH.prototype.getAssociations=function(){var H=[];this.delegate.transfer&&H.push(this.delegate.transfer);this.delegate.adsPlaybackData&&H.push.apply(H,_.vI(this.delegate.adsPlaybackData));this.delegate.drmLicense&&H.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&H.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&H.push(this.delegate.videoDownloadContextEntity);return[].concat(_.vI(new Set(H)))};
chH.prototype.getTypeName=function(){return"playbackData"};var yhH=function(){vY.apply(this,arguments)};
_.R(yhH,vY);yhH.prototype.getAssociations=function(){return[]};
yhH.prototype.getTypeName=function(){return"refresh"};var Bvk=function(){vY.apply(this,arguments)};
_.R(Bvk,vY);Bvk.prototype.getAssociations=function(){var H=[];this.delegate.offlineVideoStreams&&H.push.apply(H,_.vI(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&H.push.apply(H,_.vI(this.delegate.captionTrack));return[].concat(_.vI(new Set(H)))};
Bvk.prototype.getTypeName=function(){return"transfer"};var rhg=function(){vY.apply(this,arguments)};
_.R(rhg,vY);rhg.prototype.getAssociations=function(){return[]};
rhg.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var eQh=new _.me("showMoreDrawerCommand");var DEn=new _.me("updateEngagementPanelContentCommand");var $Ek=new _.me("getPdgBuyFlowCommand");var l1K=new _.me("liveChatPurchaseMessageEndpoint");var Gmh=new _.me("openSuperStickerBuyFlowCommand");var YYm=new _.me("updatePdgFeatureEnablementCommand");var qYw=function(){vY.apply(this,arguments)};
_.R(qYw,vY);qYw.prototype.getAssociations=function(){return[]};
qYw.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var hQn=function(){vY.apply(this,arguments)};
_.R(hQn,vY);hQn.prototype.getAssociations=function(){return[]};
hQn.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.kmh=new _.me("pdgCommentChipRenderer");_.vyg=new _.me("permissionRoleBottomBarRenderer");_.Tvn=new _.me("updatePermissionRoleCommand");var jfz=new _.me("prefetchWatchCommand");var I1H=new _.me("updatePlayerErrorMessageCommand");var asF=new _.me("toggleCaptionsVisibilityCommand");var Qf3=new _.me("playerDisclosureViewModel");_.V4p=new _.me("quickActionsViewModel");var Han=new _.me("playerResponse");var UIr=new _.me("playlistRenderer");_.Abw=new _.me("playlistVideoListRenderer");_.dk=new _.me("playlistEditEndpoint");var Mew=new _.me("createImagePollCommand");var W1H=new _.me("createQuizCommand");var wNK=new _.me("quizRenderer");var XNH=new _.me("uploadedVideoRenderer");var iam=new _.me("decorateMessageEndpoint");var baw=new _.me("lpOfferCardOptionViewModel");var dIn=new _.me("sfvAudioItemPlaybackCommand");var Oak=function(){vY.apply(this,arguments)};
_.R(Oak,vY);Oak.prototype.getAssociations=function(){return[]};
Oak.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.O7=new _.me("reelNonVideoContentEndpoint");_.kO=new _.me("reelWatchEndpoint");var unw=new _.me("reelActionBarViewModel");_.uY=new _.me("reelItemRenderer");var Zam=new _.me("reelMetapanelViewModel");_.ZJ=new _.me("reelNonVideoContentRenderer");_.f_n=new _.me("reelPlayerOverlayRenderer");var Jbn=new _.me("shortsLockupViewModel");var K1w=new _.me("sponsorButtonViewModel");var ovk=new _.me("reelItemWatchResponse");var F1z=new _.me("textBadgeRenderer");_.f$=new _.me("buttonRenderer");_.JA=new _.me("toggleButtonRenderer");var rdK=new _.me("switchButtonViewModel");_.P8z=new _.me("confirmDialogRenderer");var sJB;sJB=new _.me("menuRenderer");_.nvK=new _.me("menuFlexibleItemRenderer");var N6z=new _.me("pollRenderer");_.S8p=new _.me("backgroundPromoRenderer");var L12;_.pNk=new _.me("chipCloudRenderer");L12=new _.me("chipCloudChipRenderer");var Rxh=new _.me("dropdownRenderer");var Evy=new _.me("gridVideoRenderer");_.mI2=new _.me("itemSectionRenderer");_.gvz=new _.me("messageRenderer");var a_h=new _.me("sortFilterHeaderRenderer");_.xIr=new _.me("videoRenderer");var zxw=new _.me("resolveUrlCommandMetadata");var C82=function(){vY.apply(this,arguments)};
_.R(C82,vY);C82.prototype.getAssociations=function(){return[]};
C82.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.ter=new _.me("getAnswerCommand");_.YO=new _.me("searchEndpoint");var cbr=new _.me("genAiRichTextViewModel");var BCc=new _.me("overviewAnswerViewModel");var ybz=new _.me("videoOverviewViewModel");var B6B=new _.me("addToPlaylistServiceEndpoint");var rbp=new _.me("clearSearchHistoryEndpoint");var exn=new _.me("clearWatchHistoryEndpoint");var DI3=new _.me("webSerializedServiceEndpointExtension");_.$Ig=new _.me("createCommentEndpoint");var l_r=new _.me("createCommentReplyEndpoint");var GO2=new _.me("performCommentActionEndpoint");var Y8K=new _.me("updateCommentEndpoint");var q8y=new _.me("updateCommentReplyEndpoint");_.K$=new _.me("createPlaylistServiceEndpoint");var hxz=new _.me("deletePlaylistEndpoint");var kOp=new _.me("deleteVideoEndpoint");var rCV=new _.me("getReportFormEndpoint");var vvH=new _.me("modifyChannelNotificationPreferenceEndpoint");var v1V;_.DW=new _.me("offlinePlaylistEndpoint");v1V={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 Twr;_.eI=new _.me("offlineVideoEndpoint");Twr={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 T63=new _.me("pingingEndpoint");_.jJr=new _.me("selectActiveIdentityEndpoint");var I_z=new _.me("setSettingEndpoint");var KZM=new _.me("undoFeedbackEndpoint");var QJz=new _.me("unsubscribeEndpoint");_.Vez=new _.me("updatedMetadataEndpoint");var Hmw=function(){vY.apply(this,arguments)};
_.R(Hmw,vY);Hmw.prototype.getAssociations=function(){return[]};
Hmw.prototype.getTypeName=function(){return"settingEntity"};_.UMz=new _.me("updateLocalAppSettingCommand");var A13=new _.me("saveImageToDeviceEndpoint");var MAg=new _.me("shareImageCommand");var WEp=new _.me("sharingProviderDataCommand");var wAp=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(wAp,_.fN);var XAg=[0,_.RT,-1];wAp.prototype.JSC$12835_serializeBinary=bUN(XAg);var imm=_.mO(XAg);var bmB=new _.me("userMentionSuggestionRenderer");var dMk=new _.me("liveChatTunnelCommand");var OmK=new _.me("showSponsorshipsGiftOfferDialogCommand");var u3n=new _.me("sponsorshipsScrollableShelfViewModel");var ZmB=new _.me("updateUpcomingEventReminderButtonStateCommand");var faH=new _.me("upcomingEventReminderButtonStateRenderer");var J1r=new _.me("subscribeEndpoint");var KEB=new _.me("registerTasksCommand");var o0H=new _.me("hideSheetCommand");var FEr=new _.me("hideSnackbarCommand");var PQm=new _.me("showDialogCommand");_.kY=new _.me("showSheetCommand");var sNr=new _.me("showSnackbarCommand");var n0n=function(){vY.apply(this,arguments)};
_.R(n0n,vY);n0n.prototype.getAssociations=function(){return[]};
n0n.prototype.getTypeName=function(){return"chipEntity"};var NFw=function(){vY.apply(this,arguments)};
_.R(NFw,vY);NFw.prototype.getAssociations=function(){return[]};
NFw.prototype.getTypeName=function(){return"dismissState"};_.Xd=new _.me("avatarViewModel");var SF3=new _.me("badgeViewModel");_.ot=new _.me("buttonViewModel");_.Fj=new _.me("chipViewModel");var pAk=new _.me("contentPreviewImageViewModel");var LEm=new _.me("decoratedAvatarViewModel");_.MT7=new _.me("engagementBarViewModel");_.RnH=new _.me("imageBannerViewModel");var E0B=new _.me("lockupContentMetadataRowExtension");_.mMH=new _.me("lockupMetadataViewModel");var g0B=new _.me("lockupViewModel");var aan=new _.me("avatarStackViewModel");_.xMw=new _.me("contentMetadataViewModel");var znk=function(){vY.apply(this,arguments)};
_.R(znk,vY);znk.prototype.getAssociations=function(){return[]};
znk.prototype.getTypeName=function(){return"pageHeaderEntity"};_.CQy=new _.me("pageHeaderViewModel");var tAy=new _.me("snackbarViewModel");var c1y=new _.me("thumbnailHoverOverlayToggleActionsViewModel");_.Pc=new _.me("toggleButtonViewModel");var y1B=function(){vY.apply(this,arguments)};
_.R(y1B,vY);y1B.prototype.getAssociations=function(){return[]};
y1B.prototype.getTypeName=function(){return"votingEntity"};_.W0c=new _.me("votingViewModel");var BFk=new _.me("sectionHeaderViewModel");var r1m=new _.me("notifyDropdownOptionSelectedCommand");var oP0=new _.me("listViewModel");_.vo=new _.me("listItemViewModel");var enH=new _.me("dialogHeaderViewModel");var DMm=function(){vY.apply(this,arguments)};
_.R(DMm,vY);DMm.prototype.getAssociations=function(){return[]};
DMm.prototype.getTypeName=function(){return"dataFreshnessEntity"};var pkE=new _.me("suspenseViewModel");var $M2=new _.me("tooltipViewModel");var law=function(){vY.apply(this,arguments)};
_.R(law,vY);law.prototype.getAssociations=function(){return[]};
law.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var G0h=function(){vY.apply(this,arguments)};
_.R(G0h,vY);G0h.prototype.getAssociations=function(){return[]};
G0h.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var YFw=function(){vY.apply(this,arguments)};
_.R(YFw,vY);YFw.prototype.getAssociations=function(){return[]};
YFw.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.qFp=new _.me("transcriptSubmitCaptionCorrectionCommand");var hnw=function(){vY.apply(this,arguments)};
_.R(hnw,vY);hnw.prototype.getAssociations=function(){return[]};
hnw.prototype.getTypeName=function(){return"buttonEntity"};var E98=new _.me("unpluggedStringRunImage");var k0h=new _.me("tabViewModel");var v03=new _.me("tabbedViewModel");var TFm=function(){vY.apply(this,arguments)};
_.R(TFm,vY);TFm.prototype.getAssociations=function(){return[]};
TFm.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.jNh=new _.me("updateDescriptionAction");var IaK=new _.me("updateToggleButtonTextAction");var QNy=new _.me("showFullscreenPlayerControlsCommand");var VAw=new _.me("updateVideoMetadataCommand");_.Hnm=new _.me("autoplaySwitchButtonRenderer");var dj;_.Uxh=new _.me("multiMarkersPlayerBarRenderer");dj=new _.me("chapterRenderer");var Aek=new _.me("heatMarkerRenderer");var m97=new _.me("heatmapRenderer");var Mog=new _.me("smartSkipPlayerScrimOverlayRenderer");var W$h=new _.me("timedMarkerDecorationRenderer");var q1N=new _.me("postWebToNativeMessageCommand");var Xk=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Xk,_.fN);Xk.prototype.getMethodName=function(){return _.Mn(this,1)};var wiK=[0,_.RT,-2];Xk.prototype.JSC$12857_serializeBinary=bUN(wiK);var XiH=_.Ej(Xk,wiK);var inz=new _.me("whitelistEditEndpoint");var bnK=new _.me("clearUrlParamCommand");var dxp=new _.me("commerceActionCommand");_.Onk=new _.me("getPaymentInstrumentsParamsCommand");var uih=new _.me("getPaymentsClientTokenCommand");var Znp=new _.me("googlePaymentBillingCommand");var fuK=new _.me("googlePaymentPurchaseManagerCommand");_.Je3=new _.me("logGtmCommand");var K$h=new _.me("updateCardItemOnClickCommand");_.Phh=new _.me("ypcPauseSubscriptionCommand");_.sjw=new _.me("ypcResumeSubscriptionCommand");var nNK=function(){vY.apply(this,arguments)};
_.R(nNK,vY);nNK.prototype.getAssociations=function(){return[]};
nNK.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var NUw=function(){vY.apply(this,arguments)};
_.R(NUw,vY);NUw.prototype.getAssociations=function(){return[]};
NUw.prototype.getTypeName=function(){return"commerceCartListEntity"};var Sdm=function(){vY.apply(this,arguments)};
_.R(Sdm,vY);Sdm.prototype.getAssociations=function(){return[]};
Sdm.prototype.getTypeName=function(){return"iconBadgeEntity"};var p6g=function(){vY.apply(this,arguments)};
_.R(p6g,vY);p6g.prototype.getAssociations=function(){return[]};
p6g.prototype.getTypeName=function(){return"pdpStateEntity"};var LIy=function(){vY.apply(this,arguments)};
_.R(LIy,vY);LIy.prototype.getAssociations=function(){return[]};
LIy.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var SIF=new _.me("ypcOffersEndpoint");var RLk=new _.me("cardItemRenderer"),ENn=new _.me("cardItemTextRenderer");var mdz=new _.me("commerceCartItemQuantityPickerRenderer");var gNm=new _.me("linkCardRenderer");var rU7=new _.me("quantityIncrementerButtonViewModel");var a8K=new _.me("quantityIncrementerViewModel");var xdB=new _.me("themedImageViewModel");_.zLr=new _.me("ypcCancelRecurrenceEndpoint");var Ch3=new _.me("ypcCompleteTransactionEndpoint");_.tLn=new _.me("ypcGetCartEndpoint");_.sy=new _.me("ypcGetOffersEndpoint");_.s7=new _.me("ypcHandleTransactionEndpoint");var c6r=new _.me("ypcLogWalletAnalyticDataEndpoint");_.y6r=new _.me("ypcRedeemCodeEndpoint");var BUm=new _.me("ypcUpdateFopEndpoint");Ex(Rm(1),pZ(4));wI3((new MessageChannel).port2);var r6z=function(){this.register=new Map},i$V=function(H,U,A){H=H+"_"+U;
n$.register.has(H)?A=n$.register.get(H):(A=A(),n$.register.set(H,A));return A},eLB=function(H){H=_.b(H.register.values());
for(var U=H.next();!U.done;U=H.next())_.Gs(U.value,"ABORTED")};
r6z.prototype.clear=function(){eLB(this);this.register.clear()};
var n$=new r6z;var $$c=Date.now().toString();var YxK=GVr();var Qm4={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 Ddw;Ddw=1;_.Wg=function(H){this.veData=H};
_.IS=function(H){return new _.Wg({trackingParams:H})};
_.ts=function(H,U,A,M,W,w){var d=Ddw++;return new _.Wg({veType:H,veCounter:d,elementIndex:A,dataElement:U,youtubeData:M,jspbYoutubeData:W,loggingDirectives:w})};
_.X=_.Wg.prototype;
_.X.getAsJson=function(){var H={};this.veData.trackingParams!==void 0?H.trackingParams=this.veData.trackingParams:(H.veType=this.veData.veType,this.veData.veCounter!==void 0&&(H.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(H.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(H.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(H.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(H.isCounterfactual=!0);
return H};
_.X.getAsJspb=function(){var H=new kRw;this.veData.trackingParams!==void 0?H.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.bo(H,2,this.veData.veType),this.veData.veCounter!==void 0&&_.bo(H,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.bo(H,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Gg(H,5,!0));if(this.veData.dataElement!==void 0){var U=this.veData.dataElement.getAsJspb();_.CN(H,7,U)}this.veData.youtubeData!==void 0&&_.CN(H,8,this.veData.jspbYoutubeData);
return H};
_.X.toString=function(){return JSON.stringify(this.getAsJson())};
_.X.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.X.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.eC("yt_logging_screen.getRootVeType",TSM);_.eC("yt_logging_screen.getCurrentCsn",_.XK);_.eC("yt_logging_screen.getCttAuthInfo",iH);_.eC("yt_logging_screen.setCurrentScreen",_.bH);var $dK=function(){this.events=new Map},l8k=function(H){var U=[];
H=_.b(H.events.values());for(var A=H.next();!A.done;A=H.next())U.push(A.value);return U};
$dK.prototype.clear=function(){this.events.clear()};var Ydz=function(){this.logTransport=new Gtp;this.loggedEventRegister=new $dK;this.unloggedEventRegister=new $dK;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12894_flushTimer=new _.ZT(this.flushInterval);this.JSC$12894_flushTimer.listen("tick",this.flush,!1,this)};
Ydz.prototype.flush=function(){if(this.eventsCount){var H={loggedEvents:l8k(this.loggedEventRegister),unloggedEvents:l8k(this.unloggedEventRegister)};if(_.S("export_player_version_to_ytconfig")){var U;(U=_.gD("PLAYER_CLIENT_VERSION"))?(U=U.split("-")[0].replace(/\./g,""),U=isNaN(Number(U))?"0":U):U="";var A=_.gD("PLAYER_CLIENT_VERSION");if(A){A=A.split("-");var M="";A.length>1&&(M=A[A.length-1]);A=D$K(M.startsWith("canary_experiment")?"canary":M.startsWith("canary_control")?"control":"none")}else A=
"CLIENT_CANARY_STATE_UNKNOWN";H.dimensions={playerClientVersion:U,playerCanaryState:A}}this.logTransport.flush(H);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12894_flushTimer.enabled&&this.JSC$12894_flushTimer.stop()}};
var qdy=function(H){NJ==null&&(NJ=new Ydz);var U=NJ;var A=U.loggedEventRegister;H.dimensions=H.dimensions||{};H.dimensions.csn=_.XK()||"";var M=UJr(H.dimensions).join(";");if(H.records!=null)if(A.events.has(M)){var W;(W=A.events.get(M).records)==null||W.push.apply(W,_.vI(H.records))}else A.events.set(M,H);U.JSC$12894_flushTimer.enabled||U.JSC$12894_flushTimer.start();U.eventsCount++;U.eventsCount>=100&&U.flush()};var Gtp=function(){};
Gtp.prototype.flush=function(H,U){_.S("enable_client_sli_logging")&&_.Fx("sliEventBatch",H,{sendIsolatedPayload:!!U})};var NJ;var ktw;ktw=function(H){var U=hLr;H=H===void 0?{}:H;U=U.name;var A=Xc4("SUCCESS");qdy({dimensions:H,records:[{name:U,state:"SLI_STATE_END",status:A}]})};
_.b$_=function(H,U,A,M){this.name=H;this.sliId=U;this.timeoutMs=A;this.statusOnTimeout=M;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.b$_.prototype.getId=function(){return this.sliId};
_.lX=function(H,U){U=U===void 0?{}:U;H.ongoing||(H.ongoing=!0,H.dimensions=U,H.logSliId=amK(),qdy({dimensions:H.dimensions,records:[{name:H.name,state:"SLI_STATE_START",sliId:H.logSliId}]}),H.timeoutMs>0&&(H.timeoutHandle=setTimeout(function(){_.Gs(H,H.statusOnTimeout)},H.timeoutMs)))};
_.Gs=function(H,U){H.ongoing&&(H.timeoutMs>0&&clearTimeout(H.timeoutHandle),H.ongoing=!1,U={dimensions:H.dimensions,records:[{name:H.name,status:Xc4(U),state:"SLI_STATE_END",sliId:H.logSliId}]},n$.register.delete(H.name+"_"+H.sliId),qdy(U))};var hLr=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var vNk=function(){vY.apply(this,arguments)};
_.R(vNk,vY);vNk.prototype.getAssociations=function(){return[]};
vNk.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var TUw=new _.me("highlightTextDecoratorColorMapExtension");var jjn=new _.me("styleRunColorMapExtension");var KoN=_.NP(["data-"]),PYN={};var ngE={};var SR=function(H){this.wrappedPromise_=H===void 0?null:H;this.state_=0;this.JSC$12925_value_=null};
SR.prototype.then=function(H,U,A){return this.wrappedPromise_?this.wrappedPromise_.then(H,U,A):this.state_===1&&H?(H=H.call(A,this.JSC$12925_value_))&&typeof H.then==="function"?H:_.p$(H):this.state_===2&&U?(H=U.call(A,this.JSC$12925_value_))&&typeof H.then==="function"?H:_.I8h(H):this};
SR.prototype.getValue=function(){return this.JSC$12925_value_};
SR.prototype.isRejected=function(){return this.state_==2};
UU2(SR);_.I8h=function(H){var U=new SR;H=H===void 0?null:H;U.state_=2;U.JSC$12925_value_=H===void 0?null:H;return U};
_.p$=function(H){var U=new SR;H=H===void 0?null:H;U.state_=1;U.JSC$12925_value_=H===void 0?null:H;return U};var yAc="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Qjr=["load","abort","error"],L$=function(H,U,A){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12945_maxAspectRatio_=H;this.disableAnimation_=U===void 0?!1:U;this.disableExifRotation_=A===void 0?!1:A;this.JSC$12945_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12945_reject_=this.resolve_=null};
L$.prototype.transform=function(H){var U=this;this.mime_=H.type;aw(rpk(H),this.dataUrlRead_,this.readError_,this);aw(BAw(H.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(A,M){U.resolve_=A;U.JSC$12945_reject_=M})};
L$.prototype.dataUrlRead_=function(H){this.dataUrl_=H;this.angle_!=null&&VLg(this)};
L$.prototype.exifRead_=function(H){if(this.disableExifRotation_)this.angle_=0;else{a:if(H=new DataView(H),H.byteLength<2||H.getUint16(0)!==65496)H=-2;else{for(var U=2,A=H.byteLength;U<A;){var M=H.getUint16(U),W=H.getUint16(U+2);if(M===65505){U+=4;M=H.getUint32(U);W=H.getUint16(U+4);if(M!==1165519206||W!==0)break;U+=6;M=H.getUint16(U)===18761;U+=H.getUint32(U+4,M);W=H.getUint16(U,M);U+=2;for(var w=0;w<W;w++){if(H.getUint16(U,M)===274){U+=8;H=H.getUint16(U,M);break a}U+=12}}else if(M>>8!==255)break;
else U+=W+2}H=-1}switch(H){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&&VLg(this)};
L$.prototype.readError_=function(){this.JSC$12945_reject_()};
var VLg=function(H){FG(H.JSC$12945_image_,Qjr,H.completeTransform_,!1,H);H.JSC$12945_image_.src=_.j3(H.dataUrl_).toString();H.JSC$12945_image_.src!=TC.toString()&&H.JSC$12945_image_.src.substr(0,11)==="data:image/"||H.JSC$12945_reject_()};
L$.prototype.completeTransform_=function(){if(this.JSC$12945_image_.src!=TC.toString()){var H=_.j3(this.dataUrl_),U=this.JSC$12945_image_.naturalHeight?this.JSC$12945_image_.naturalWidth/this.JSC$12945_image_.naturalHeight:null;this.invalidAspectRatio=U>this.JSC$12945_maxAspectRatio_||U<1/this.JSC$12945_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var A=this.JSC$12945_image_.naturalWidth,M=this.JSC$12945_image_.naturalHeight,W=U=0,w=this.JSC$12945_image_.naturalHeight?this.JSC$12945_image_.naturalWidth/
this.JSC$12945_image_.naturalHeight:null;w>this.JSC$12945_maxAspectRatio_?(A=this.JSC$12945_maxAspectRatio_*M,U=(A-this.JSC$12945_image_.naturalWidth)/2,this.cropped=!0):w<1/this.JSC$12945_maxAspectRatio_?(M=this.JSC$12945_maxAspectRatio_*A,W=(M-this.JSC$12945_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)w=A,A=M,M=w,w=U,U=W,W=w;switch(this.angle_){case 90:W-=A;break;case 180:U-=A;W-=M;break;case 270:U-=
M}this.cropped||this.angle_%360!==0?(H=document.createElement("canvas"),H.width=A||1,H.height=M||1,this.JSC$12945_image_.naturalWidth&&this.JSC$12945_image_.naturalHeight&&(A=H.getContext("2d"),A.rotate(Math.PI/180*this.angle_),A.drawImage(this.JSC$12945_image_,U,W,this.JSC$12945_image_.naturalWidth,this.JSC$12945_image_.naturalHeight)),this.transformedData=_.j3(H.toDataURL(this.mime_))):this.transformedData=H}else this.transformedData=H;this.resolve_(this)}};var Rt=function(H,U){_.$R.call(this,H);this.value=U};
_.R(Rt,_.$R);
var E7=function(H,U,A,M,W,w,d){d=d===void 0?!1:d;_.LW.call(this);var O=this;this.JSC$12950_url_=H;this.channelId_=U;this.maxFileSizeMb_=A;this.JSC$12950_maxAspectRatio_=M;this.dropZoneEl_=W;this.rejectInvalidAspectRatio_=d;this.selectButtonEl_=w;this.JSC$12950_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new cY(this.dropZoneEl_);this.selectOverlay_=new BY(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12950_image_=this.transfer_=null;this.handler_=new _.u9(this);_.kl(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(w,"click",function(){O.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.R(E7,_.LW);E7.prototype.disposeInternal=function(){for(var H=this.selectButtonEl_.nextSibling;H&&H.parentNode&&H.tagName=="INPUT";)H.parentNode.removeChild(H),H=this.selectButtonEl_.nextSibling;this.cancel();_.LW.prototype.disposeInternal.call(this)};
E7.prototype.uploadPromise=function(){if(this.JSC$12950_image_==null)return null;this.uploadPromise_||HQz(this);return this.uploadPromise_};
E7.prototype.cancel=function(){Ukm(this);this.JSC$12950_image_=null};
var Ukm=function(H){H.transfer_&&H.transfer_.cancel();H.transfer_=null;H.uploadPromise_=null;H.resolve_=null;H.JSC$12950_reject_=null},HQz=function(H){Ukm(H);
H.transfer_=_.N3y(H.JSC$12950_url_,{"X-YouTube-ChannelId":H.channelId_},H.JSC$12950_image_);H.handler_.listenOnce(H.transfer_,"l",H.JSC$12952_onUploadComplete_);H.handler_.listenOnce(H.transfer_,"n",H.onUploadError_);H.transfer_.run();H.uploadPromise_=new Promise(function(U,A){H.resolve_=U;H.JSC$12950_reject_=A})};
_.X=E7.prototype;_.X.onChange_=function(H){H.files.length&&(this.JSC$12950_image_=H.files[0],this.JSC$12950_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12950_image_=null,this.dispatchEvent(new Rt("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(HQz(this),(new L$(this.JSC$12950_maxAspectRatio_)).transform(this.JSC$12950_image_).then((0,_.i9)(this.onPreview_,this),(0,_.i9)(this.onPreviewError_,this))))};
_.X.onPreview_=function(H){if(H.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12950_image_=null),this.dispatchEvent(new Rt("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;H.cropped&&this.dispatchEvent(new Rt("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Rt("yt.comments.ImageUploadOverlay.CHANGE_EVENT",H.transformedData))};
_.X.onPreviewError_=function(){this.JSC$12950_image_=null;this.dispatchEvent(new Rt("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.X.onHover_=function(H){H.stopPropagation();H.preventDefault();if(H.type==="dragover")H=!0;else if(H.type==="dragleave")H=!1;else return;this.dispatchEvent(new Rt("yt.comments.ImageUploadOverlay.HOVER_EVENT",H))};
_.X.JSC$12952_onUploadComplete_=function(){var H=(0,_.RYz)(this.transfer_.getResponseText());this.resolve_(H.encryptedBlobId)};
_.X.onUploadError_=function(){this.JSC$12950_reject_();Ukm(this)};var A_m=function(H){H=H||{};var U={},A={};this.url=H.url||"";this.args=H.args||_.dG.clone(U);this.assets=H.assets||{};this.attrs=H.attrs||_.dG.clone(A);this.fallback=H.fallback||null;this.fallbackMessage=H.fallbackMessage||null;this.html5=!!H.html5;this.disable=H.disable||{};this.loaded=!!H.loaded;this.messages=H.messages||{}};
A_m.prototype.clone=function(){var H=new A_m,U;for(U in this)if(this.hasOwnProperty(U)){var A=this[U];_.Wj(A)=="object"?H[U]=_.dG.clone(A):H[U]=A}return H};var GJr=function(H,U,A){A=A===void 0?{}:A;this.name=H;this.id=gs.nextSpanId++;this.sessionId=gs.sessionId;this.attributes=U;this.status="SPAN_STATUS_UNSET";var M;this.startTime=(M=A.startTime)!=null?M:(0,_.lD)();this.isActiveSpan=A.active;if(H=gs.stack[gs.stack.length-1])this.parentId=H.id,H.children||(H.children=[]),H.children.push(this);H=_.b(gs.processors);for(U=H.next();!U.done;U=H.next()){U=U.value;try{var W=M=void 0;(W=(M=U).onSpanStart)==null||W.call(M,this)}catch(w){_.Na(w)}}A.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",A.endTime))};
GJr.prototype.end=function(H,U){H=H===void 0?"SPAN_STATUS_OK":H;this.endTime=U=U===void 0?(0,_.lD)():U;this.duration=this.endTime-this.startTime;this.status=H;this.isActiveSpan!==!1&&(gs.stack[gs.stack.length-1]===this?gs.stack.pop():_.Na(Error("Df`"+String(this.name))));H=_.b(gs.processors);for(U=H.next();!U.done;U=H.next()){U=U.value;try{var A=void 0,M=void 0;(M=(A=U).onSpanEnd)==null||M.call(A,this)}catch(W){_.Na(W)}}};
GJr.prototype.addAttributes=function(H){Object.assign(this.attributes,H)};
var Y7r={end:function(){},
addAttributes:function(){}},gs={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},lJc={rootSpan:function(){return gs.stack[0]}};var tP={};var WrE=function(H){this.observers=[];this.value=H};
_.X=WrE.prototype;_.X.subscribe=function(H){var U=this;if(H.idx!=null)throw Error("Ff");H.idx=this.observers.length;this.observers.push(H);try{H(this.value)}catch(A){}return function(){var A=U.observers[U.observers.length-1];U.observers[H.idx]=A;A.idx=H.idx;U.observers.pop()}};
_.X.update=function(H){this.value=H(this.value);this.notify()};
_.X.mutate=function(H){H(this.value);this.notify()};
_.X.set=function(H){this.value=H;this.notify()};
_.X.notify=function(){for(var H=_.b(this.observers),U=H.next();!U.done;U=H.next()){U=U.value;try{U(this.value)}catch(A){}}};var M8z,Whr,wBn,SV,iQK,bQp,dkk,OQy,uu2,ZQk,fCz,J_K,KhK,oxB,Fhp,Pky,sGH,nxp,Noy,Sqg,pBn,Lhk,Rhg,ExH,mkB,gxk,aCh,xkk,zhH,V_c,Ckn,t8B,c_r,y_m,Bok,r_h,ehp,Dkr,$k2,lCw,QBK,GHk,Yqh,qqr,hh2,kHm,vxn,ToH,jGr,ICB,QGr,V8w,HXK,ULK,AKm,Mip,mo,Wmw,whw,Xhw,iXw,bXk,dLH,OXK,uDn,ZXB,fGw,JKh,Km3,oon,Fmw,Pyy,sZn,nom,NeK,Ssr,jBt,phk,Lmg,RqK,Eop,mLK,goB,aG3,xLk,zqz,Cyr,tiw,cKg,yKy,Bew,rKm,eq3,DL2,$Ly,lGz,GD2,Ysg,qsw,hqB,kDp,voh;M8z=["account/accounts_list"];Whr=["acknowledge_channel_tou_strike"];wBn=["notification/add_upcoming_event_reminder"];
_.XBz=["att/get"];SV=["browse","music/browse","streaming_browse","unplugged/browse"];iQK=["channel/claim_legacy_youtube_channel"];bQp=["history/clear_search_history"];dkk=["history/clear_watch_history"];OQy=["comment/perform_comment_action"];uu2=["comment/get_comment_replies"];ZQk=["ypc/commerce_action"];fCz=["backstage/create_post"];J_K=["live/create_broadcast"];KhK=["channel/create_channel"];oxB=["comment/create_comment_reply"];Fhp=["comment/create_comment"];Pky=["live_chat/create_poll"];sGH=["playlist/create"];
nxp=["decorate_message"];Noy=["live_chat/delete_message"];Sqg=["playlist/delete"];pBn=["video/delete"];Lhk=["like/dislike"];Rhg=["dismissal/dismiss"];ExH=["flag/flag"];mkB=["flow"];gxk=["account/account_menu"];aCh=["playlist/get_add_to_playlist"];xkk=["get_answer"];zhH=["channel/get_channel_creation_form"];V_c=["offline/get_download_action"];Ckn=["kids/get_kids_blocklist_picker"];t8B=["live_chat/get_item_context_menu"];c_r=["live_chat/get_live_chat_message_buy_flow"];y_m=["live_chat/get_live_chat_replay"];
Bok=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];r_h=["live_chat/get_live_chat_super_sticker_buy_flow"];ehp=["notification/get_notification_menu"];Dkr=["playlist/get_settings_editor"];$k2=["backstage/get_post_video_preview"];lCw=["account/get_profile_card"];QBK=["share/get_share_panel"];GHk=["share/get_sharing_provider_data"];Yqh=["get_survey"];qqr=["notification/get_unseen_count"];hh2=["get_user_mention_suggestions"];kHm=["get_watch"];vxn=["guide"];
ToH=["feedback"];jGr=["kids/update_blacklist"];ICB=["like/like"];QGr=["live_chat/live_chat_action"];V8w=["live_chat/manage_user"];HXK=["video_manager/metadata_update"];ULK=["live_chat/moderate"];AKm=["notification/modify_channel_preference"];Mip=["notification/opt_out"];mo=["get_panel","get_posts_by_host_panel"];Wmw=["player"];whw=["browse/edit_playlist"];Xhw=["notification/record_interactions"];iXw=["reel/reel_item_watch"];bXk=["reel/reel_watch_sequence"];dLH=["like/removelike"];OXK=["notification/remove_upcoming_event_reminder"];
uDn=["flag/get_form"];ZXB=["miniapp/report_value"];fGw=["navigation/resolve_url"];JKh=["channel/reveal_business_email"];Km3=["in_video/search"];oon=["search","sfv/search","unplugged/search"];Fmw=["live_chat/send_message"];Pyy=["live_chat/send_live_chat_vote"];sZn=["account/set_setting"];nom=["submit_caption_correction"];NeK=["submit_form"];Ssr=["subscription/subscribe"];jBt=["get_transcript"];phk=["resolve_location","unplugged/resolve_location"];Lmg=["subscription/unsubscribe"];RqK=["backstage/update_post"];
Eop=["channel_edit/update_channel_page_settings"];mLK=["comment/update_comment_reply"];goB=["comment/update_comment"];aG3=["comment/update_comments_settings"];xLk=["creator/update_creator_channel"];zqz=["pdg/update_enablement"];Cyr=["updated_metadata"];tiw=["channel_edit/validate_channel_handle"];cKg=["verify_age"];yKy=["next","unplugged/watch_next"];Bew=["whitelist/edit"];rKm=["ypc/cancel_recurrence"];eq3=["ypc/complete_transaction"];DL2=["ypc/get_cart"];$Ly=["ypc/get_fix_instrument_params"];
lGz=["ypc/get_offers"];GD2=["ypc/get_payment_instruments_params"];Ysg=["ypc/handle_transaction"];qsw=["ypc/log_payment_server_analytics"];hqB=["ypc/pause_subscription"];kDp=["ypc/redeem_code"];voh=["ypc/resume_subscription"];var Te2=[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,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,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,276200,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,273905,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,282159,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,262686,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,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,293324,32633,74858,271884,222932,279119,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,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,282181,278926,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,283898,120137,186350,186351,256690,264349,264351,264350,264352,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,279531,50663,36387,14908,37533,105443,61635,62274,161670,
133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,293041,293042,293043,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,
198313,59149,181013,278306,282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,294119,257268,63349,281127,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,282218,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,
11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,295069,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,294089,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,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,127738,127083,155281,162959,220886,227356,248007,163566,
186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,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,
268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,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,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,
267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var qZ=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.eC("yt.msgs_",qZ);var gk=new _.g3("ACTION_ROUTER_TOKEN");_.at=function(){this.autonavState_=_.S("kevlar_is_pupi_enabled")?2:MZc()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.at.prototype.getState=function(){return this.autonavState_};
_.at.prototype.pause=function(H){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=H):this.autonavState_==1&&(this.disabledAutonavPauseReason_=H)};
_.at.prototype.setState=function(H,U,A){U&&(this.autoplayChangedByUser=!0);U=this.autonavState_===3||H===3;this.autonavState_!=H&&(this.autonavState_=H,H!=3&&_.WB0(H==2),H=_.S("kevlar_is_pupi_enabled")?A||U:!0,_.a1.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,H,A))};
_.at.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.aH(_.at);var xg=function(){this.e7=!1};var zJ={},KB4=(zJ.auto_search="LATENCY_ACTION_AUTO_SEARCH",zJ.ad_to_ad="LATENCY_ACTION_AD_TO_AD",zJ.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",zJ.app_startup="LATENCY_ACTION_APP_STARTUP",zJ.browse="LATENCY_ACTION_BROWSE",zJ.cast_splash="LATENCY_ACTION_CAST_SPLASH",zJ.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",zJ.channels="LATENCY_ACTION_CHANNELS",zJ.chips="LATENCY_ACTION_CHIPS",zJ.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",zJ.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
zJ.editor="LATENCY_ACTION_EDITOR",zJ.embed="LATENCY_ACTION_EMBED",zJ.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",zJ.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",zJ.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",zJ.explore="LATENCY_ACTION_EXPLORE",zJ.favorites="LATENCY_ACTION_FAVORITES",zJ.home="LATENCY_ACTION_HOME",zJ.inboarding="LATENCY_ACTION_INBOARDING",zJ.landing="LATENCY_ACTION_LANDING",zJ.learning="LATENCY_ACTION_LEARNING",
zJ.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",zJ.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",zJ.library="LATENCY_ACTION_LIBRARY",zJ.live="LATENCY_ACTION_LIVE",zJ.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",zJ.management="LATENCY_ACTION_MANAGEMENT",zJ.mini_app="LATENCY_ACTION_MINI_APP_PLAY",zJ.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",zJ.onboarding="LATENCY_ACTION_ONBOARDING",zJ.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
zJ.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",zJ.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",zJ.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",zJ.prebuffer="LATENCY_ACTION_PREBUFFER",zJ.prefetch="LATENCY_ACTION_PREFETCH",zJ.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",zJ.profile_switcher="LATENCY_ACTION_LOGIN",zJ.projects="LATENCY_ACTION_PROJECTS",zJ.reel_watch="LATENCY_ACTION_REEL_WATCH",zJ.results="LATENCY_ACTION_RESULTS",zJ.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
zJ.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",zJ.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",zJ.review="LATENCY_ACTION_REVIEW",zJ.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",zJ.search_ui="LATENCY_ACTION_SEARCH_UI",zJ.search_suggest="LATENCY_ACTION_SUGGEST",zJ.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",zJ.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",zJ.seek="LATENCY_ACTION_PLAYER_SEEK",zJ.settings="LATENCY_ACTION_SETTINGS",zJ.store="LATENCY_ACTION_STORE",
zJ.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",zJ.tenx="LATENCY_ACTION_TENX",zJ.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",zJ.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",zJ.watch="LATENCY_ACTION_WATCH",zJ.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",zJ["watch,watch7"]="LATENCY_ACTION_WATCH",zJ["watch,watch7_html5"]="LATENCY_ACTION_WATCH",zJ["watch,watch7ad"]="LATENCY_ACTION_WATCH",zJ["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",zJ.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
zJ.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",zJ.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",zJ.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",zJ.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",zJ.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",zJ.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",zJ.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",zJ),jZh=0;var tZ4=function(H,U){Ve.call(this,1,arguments);this.timer=U};
_.R(tZ4,Ve);var C1F=new Mq4("aft-recorded",tZ4);var szV=_.Mr.ytLoggingGelSequenceIdObj_||{};_.eC("ytLoggingGelSequenceIdObj_",szV);var C$=_.Mr.ytLoggingLatencyUsageStats_||{};_.eC("ytLoggingLatencyUsageStats_",C$);var tA=function(){this.cleanupJob=0},SCN=function(){tA.instance||(tA.instance=new tA);
return tA.instance};
_.X=tA.prototype;_.X.baseline=function(H,U,A){cc(this,"baseline_"+H)||_.Fx("latencyActionBaselined",{clientActionNonce:H},{timestamp:U,cttAuthInfo:A})};
_.X.tick=function(H,U,A,M){cc(this,"tick_"+H+"_"+U)||_.Fx("latencyActionTicked",{tickName:H,clientActionNonce:U},{timestamp:A,cttAuthInfo:M})};
_.X.info=function(H,U,A){var M=Object.keys(H).join("");cc(this,"info_"+M+"_"+U)||(H=Object.assign({},H),H.clientActionNonce=U,_.Fx("latencyActionInfo",H,{cttAuthInfo:A}))};
_.X.jspbInfo=function(H,U,A){for(var M="",W=0;W<Bj(H).length;W++)Bj(H)[W]!==void 0&&(M=W===0?M.concat(""+W):M.concat("_"+W));cc(this,"info_"+M+"_"+U)||(_.Mu(H,2,U),U={cttAuthInfo:A},A=_.S("jspb_sparse_encoded_pivot")?new iM([{}]):new iM,_.tR(A,7,dhr,H),n6E("latencyActionInfo",A,U))};
_.X.span=function(H,U,A){var M=Object.keys(H).join("");cc(this,"span_"+M+"_"+U)||(H.clientActionNonce=U,_.Fx("latencyActionSpan",H,{cttAuthInfo:A}))};
var cc=function(H,U){C$[U]=C$[U]||{count:0};var A=C$[U];A.count++;A.time=(0,_.lD)();H.cleanupJob||(H.cleanupJob=_.bM(_.Fl,function(){var M=(0,_.lD)(),W;for(W in C$)C$[W]&&M-C$[W].time>6E4&&delete C$[W];H&&(H.cleanupJob=0)},5E3));
return A.count>5?(A.count===6&&Math.random()*1E5<1&&(A=new _.bD("CSI data exceeded logging limit with key",U.split("_")),U.indexOf("plev")>=0||_.Na(A)),!0):!1};var IGz,QZB;IGz=window;QZB=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Aw=IGz.performance||IGz.mozPerformance||IGz.msPerformance||IGz.webkitPerformance||new QZB;var zft=!1,LBN=!1,cq7=(0,_.i9)(_.Aw.clearResourceTimings||_.Aw.webkitClearResourceTimings||_.Aw.mozClearResourceTimings||_.Aw.msClearResourceTimings||_.Aw.oClearResourceTimings||_.UR,_.Aw);var VW7=_.CA(function(H,U,A,M,W,w,d){if(!_.S("web_csi_action_sampling_enabled")||!_.I2(w).actionDisabled){var O=d==null?void 0:d.spanStatus;d=d==null?void 0:d.rootSpanNonce;var f=_.Qr(w);if(f.gelSpans)f.gelSpans[H]=!0;else{var J={};f.gelSpans=(J[H]=!0,J)}jZh++;H={spanName:H,spanLengthUsec:String(Math.round(U*1E3)),spanNonce:jZh,rootSpanNonce:d||jZh};O&&(H.spanStatus=O);M&&(H.spanInfo=M);W&&(H.parentSpanNonce=W);A&&(H.spanStartTimeUsec=String(Math.round(A*1E3)));_.Vr(w||"").span[String(H.spanName)]=
H;A=_.Qr(w);A.gelSpans||(A.gelSpans={});_.OH(A.gelSpans,H);A=uX8(w);w=_.I2(w).cttAuthInfo;SCN().span(H,A,w);return H.spanNonce}}),Vi2=window;
Vi2.ytcsi&&(Vi2.ytcsi.infoGel=_.wH,Vi2.ytcsi.tick=_.ba);var hf_=function(H){Ve.call(this,1,arguments);this.csn=H};
_.R(hf_,Ve);var beK=new Mq4("screen-created",hf_),bJ0=[],qCK=iJ_,dEc=0,fE=new Map,k1t=new Map,v6V=new Map;var vQ_=Symbol("Hf"),LE=new WeakMap;var yg=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Tu=function(){yg.instance||(yg.instance=new yg);
return yg.instance};
_.X=yg.prototype;_.X.setClient=function(H){this.client=H};
_.X.JSC$13049_newScreen=function(){this.clear();this.csn=_.XK()};
_.X.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.X.reportShown=function(H,U,A,M){var W=this.JSC$13049_getTrackingParams(H),w=H.visualElement?H.visualElement:W;U=this.shownElements.has(w);var d=this.visibleState.get(w);this.shownElements.add(w);this.visibleState.set(w,!0);H.impressionLog&&!U&&H.impressionLog();if(W||H.visualElement)if(A=HCK(this,H,A))if(w=UB2(this,H),Bc(this,H)||w){W=H.visualElement?H.visualElement:_.IS(W);var O=H.interactionLoggingClientData;w||U?Bc(this,H)&4?d||Ah0(this.client,A,W,O):Bc(this,H)&1&&!U&&VZt(this.client,A,W,O,M):
VZt(this.client,A,W,O,M)}};
_.X.reportHidden=function(H,U,A,M){var W=this.JSC$13049_getTrackingParams(H),w=H.visualElement?H.visualElement:W;U=this.hiddenElements.has(w);var d=this.visibleState.get(w);this.hiddenElements.add(w);this.visibleState.set(w,!1);if(d===!1)return!0;if(!W&&!H.visualElement)return!1;A=HCK(this,H,A);if(!A||!Bc(this,H)&&UB2(this,H))return!1;W=H.visualElement?H.visualElement:_.IS(W);Bc(this,H)&8?M4V(this.client,A,W,void 0,void 0,M):Bc(this,H)&2&&!U&&(H=this.client,M=Z$({cttAuthInfo:iH(A)||void 0,automatedLogEventSource:M},
A),U={csn:A,ve:W.getAsJson(),eventType:2},A==="UNDEFINED_CSN"?KE("visualElementHidden",M,U):H?f5("visualElementHidden",U,H,M):_.Fx("visualElementHidden",U,M));return!0};
_.X.JSC$13049_getTrackingParams=function(H){var U=this.getData(H),A,M;if(_.S("il_use_view_model_logging_context")&&(U==null?0:(A=U.context)==null?0:(M=A.loggingContext)==null?0:M.loggingDirectives))return U.context.loggingContext.loggingDirectives.trackingParams||"";var W,w;if(U==null?0:(W=U.rendererContext)==null?0:(w=W.loggingContext)==null?0:w.loggingDirectives)return U.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(U==null?0:U.loggingDirectives)return U.loggingDirectives.trackingParams||
"";var d;return((d=H.veContainer)==null?0:d.trackingParams)?H.veContainer.trackingParams:(U==null?void 0:U.trackingParams)||""};
_.X.JSC$13049_elementShouldLogGesture=function(H,U){H=this.getData(H);return!!((Math.floor(Number(H&&H.loggingDirectives&&H.loggingDirectives.gestures&&H.loggingDirectives.gestures.types||""))||0)&U)};
_.X.JSC$13049_getNearestParentVe=function(H){var U=this.JSC$13049_getTrackingParams(H);return H.visualElement?H.visualElement:U?_.IS(U):H.parentElement?this.JSC$13049_getNearestParentVe(H.parentElement):null};
var HCK=function(H,U,A){var M=_.XK(A);return H.csn===null||M===H.csn||A?M:(H=new _.bD("VisibilityLogger called before newScreen",{caller:U.tagName,previous_csn:H.csn,current_csn:M}),_.Na(H),null)};
yg.prototype.getData=function(H){var U,A=H.data||((U=H.props)==null?void 0:U.data);if(!A||H.isWebComponentWrapper){var M;A=(M=LE.get(H))==null?void 0:M[vQ_]}return A};
var UB2=function(H,U){var A;return!((A=H.getData(U))==null||!A.loggingDirectives)},Bc=function(H,U){H=H.getData(U);
return Math.floor(Number(H&&H.loggingDirectives&&H.loggingDirectives.visibility&&H.loggingDirectives.visibility.types||""))||1};var rk;rk=function(){};
_.qD=function(){rk.instance||(rk.instance=new rk);return rk.instance};
rk.prototype.setClient=function(H){_.CA(Tu().setClient).bind(Tu())(H)};
_.ASn=function(){_.qD();_.CA(Tu().JSC$13049_newScreen).bind(Tu())()};
rk.prototype.clear=function(){_.CA(Tu().clear).bind(Tu())()};
rk.prototype.reportShown=function(H,U,A,M){_.CA(Tu().reportShown).bind(Tu())(H,U,A,M)};
rk.prototype.reportHidden=function(H,U,A,M){return _.CA(Tu().reportHidden).bind(Tu())(H,U,A,M)};
var OI0=function(H,U){return _.CA(Tu().JSC$13049_getTrackingParams).bind(Tu())(U)},TZ0=function(H,U){return _.CA(Tu().JSC$13049_getNearestParentVe).bind(Tu())(U)};var eR,MYg;eR=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};
_.k$=function(){eR.instance||(eR.instance=new eR);return eR.instance};
eR.prototype.setClient=function(H){this.client=H};
MYg=function(H,U,A){A=A===void 0?{}:A;_.CA(function(){var M,W,w,d=((M=_.p(U==null?void 0:U.commandMetadata,_.Y2))==null?void 0:M.rootVe)||((W=_.p(U==null?void 0:U.commandMetadata,cAw))==null?void 0:(w=W.screenVisualElement)==null?void 0:w.uiType);if(d){M=_.p(U==null?void 0:U.commandMetadata,zxw);if(M==null?0:M.parentTrackingParams){var O=_.IS(M.parentTrackingParams);if(M.parentCsn)var f=M.parentCsn}else A.clickedVisualElement?O=A.clickedVisualElement:U.clickTrackingParams&&(O=_.IS(U.clickTrackingParams));
a:{M=_.p(U,_.sH);W=_.p(U,ehr);if(M){if(W=wdc(M,"VIDEO")){M={token:W,videoId:M.videoId};break a}}else if(W&&(M=wdc(W,"PLAYLIST"))){M={token:M,playlistId:W.playlistId};break a}M=void 0}A=Object.assign({},{cttAuthInfo:M,parentCsn:f},A);if(_.S("expectation_logging")){var J;A.loggingExpectations=((J=_.p(U==null?void 0:U.commandMetadata,cAw))==null?void 0:J.loggingExpectations)||void 0}_.DJ(H,d,O,A)}else _.Na(new _.bD("Error: Trying to create a new screen without a rootVeType",U))})()};
_.DJ=function(H,U,A,M){M=M===void 0?{}:M;_.CA(function(){Te2.includes(U)||(_.Na(new _.bD("createClientScreen() called with a non-page VE",U)),U=83769);M.isHistoryNavigation||(H.forwardHistoryStack=[],H.backHistoryStack.push({rootVe:U,key:M.key||""}));H.graftQueue=[];H.stateChangedQueue=[];M.dataPromises?W8m(H,U,A,M):wEg(H,U,A,M)})()};
_.XE2=function(H,U,A){A=A===void 0?0:A;_.CA(function(){U.then(function(M){H.pendingScreenCreation.has(A)&&H.pendingScreenFn&&H.pendingScreenFn();var W=_.XK(A),w=_.ws(A);if(W&&w){var d={automatedLogEventSource:3},O;(M==null?0:(O=M.response)==null?0:O.trackingParams)&&Jw(H.client,W,w,_.IS(M.response.trackingParams),!1,d);var f;(M==null?0:(f=M.playerResponse)==null?0:f.trackingParams)&&Jw(H.client,W,w,_.IS(M.playerResponse.trackingParams),!1,d)}})})()};
eR.prototype.graftServerVe=function(H,U,A){var M=this;return _.CA(function(){var W=_.IS(H);_.$g(M,W,U,A);return W})()};
_.jME=function(H,U,A,M){return _.S("enable_client_ve_spec")&&U.clientVeSpec?(U=_.ts(U.clientVeSpec.uiType,void 0,U.clientVeSpec.elementIndex,U.clientVeSpec.clientYoutubeData,void 0,U),_.$g(H,U,A,M)?U:null):U.trackingParams?H.graftServerVe(U.trackingParams,A,M):null};
_.hy=function(H,U,A,M){return _.CA(function(){if(!U.veType)return _.n5(new _.bD("Error: Trying to graft a client VE without a veType.")),null;if(U.visibilityTypes){var W=U.visibilityTypes.reduce(function(w,d){return w|d});
W={visibility:{types:String(W)}}}W=_.ts(U.veType,U.visualElement,U.elementIndex,U.clientYouTubeData,void 0,W);return _.$g(H,W,A,M)?W:null})()};
_.$g=function(H,U,A,M){M=M===void 0?0:M;return _.CA(function(){if(H.pendingScreenCreation.has(M))return H.graftQueue.push([U,A]),!0;var W=_.XK(M),w=A||_.ws(M);if(W&&w){if(_.S("combine_ve_grafts")){var d=H.cachedVisualElements.get(w.toString());d?d.push(U):(H.cachedRootVisualElements.set(w.toString(),w),H.cachedVisualElements.set(w.toString(),[U]));H.attachTimeout||(H.attachTimeout=_.bM(_.Fl,function(){iCm(H,W)},1200))}else Jw(H.client,W,w,U);
return!0}return!1})()};
_.lY=function(H,U,A){A=A===void 0?0:A;var M=H.recurringGrafts.get(A)||new Map;if(_.S("smarter_ve_dedupping"))for(var W=Array.from(M.keys()),w=0;w<W.length;w++){var d=void 0,O=void 0;var f=U;var J=W[w];J.isClientVe()&&f.isClientVe()?(d=f.getAsJson(),O=J.getAsJson(),f=d.veType!==O.veType||d.elementIndex!==O.elementIndex||d.dataElement!==O.dataElement||f.getLoggingDirectives()!==J.getLoggingDirectives()?!1:!0):f=J.veData.trackingParams!==void 0&&f.veData.trackingParams!==void 0?((O=f.veData)==null?void 0:
O.trackingParams)===((d=J.veData)==null?void 0:d.trackingParams):!1;if(f)return}else if(M.has(U))return;M.set(U,void 0);H.recurringGrafts.set(A,M);_.XK(A)==="UNDEFINED_CSN"||H.pendingScreenCreation.has(A)||_.$g(H,U,void 0,A)};
_.GJ=function(H,U,A,M){M=_.XK(M===void 0?0:M);if(!M)return!1;wbV(H.client,M,U,A);return!0};
_.Yg=function(H,U,A,M){if(!U)return!1;M=_.XK(M===void 0?0:M);if(!M)return!1;wbV(H.client,M,_.IS(U),A);return!0};
_.uZ=function(H,U){var A=U.getScreenLayer&&U.getScreenLayer();if(U.visualElement)return _.GJ(H,U.visualElement,void 0,A);U=OI0(_.qD(),U);return _.Yg(H,U,void 0,A)};
eR.prototype.clickCommand=function(H,U,A){return _.Yg(this,H.clickTrackingParams,U,A===void 0?0:A)};
eR.prototype.stateChanged=function(H,U,A){this.visualElementStateChanged(_.IS(H),U,A===void 0?0:A)};
eR.prototype.visualElementStateChanged=function(H,U,A){A=A===void 0?0:A;A===0&&this.pendingScreenCreation.has(A)?this.stateChangedQueue.push([H,U]):this.logStateChanged(H,U,A)};
eR.prototype.logStateChanged=function(H,U,A){A=A===void 0?0:A;var M=_.XK(A);H=H||_.ws(A);return M&&H?(XbE(this.client,M,H,U),!0):!1};
var W8m=function(H,U,A,M){M=M===void 0?{}:M;H.pendingScreenCreation.add(M.layer||0);H.pendingScreenFn=function(){wEg(H,U,A,M);var d=_.ws(M.layer);if(d){for(var O=_.b(H.graftQueue),f=O.next();!f.done;f=O.next())f=f.value,_.$g(H,f[0],f[1]||d,M.layer);d=_.b(H.stateChangedQueue);for(O=d.next();!O.done;O=d.next())O=O.value,H.logStateChanged(O[0],O[1])}};
A||_.XK(M.layer)||H.pendingScreenFn();if(M.dataPromises)for(var W=_.b(M.dataPromises),w=W.next();!w.done;w=W.next())_.XE2(H,w.value,M.layer);else _.sD(Error("If"))},wEg=function(H,U,A,M){M=M===void 0?{}:M;
var W=void 0;M.layer||(M.layer=0);W=M.parentLayer!==void 0?M.parentLayer:M.layer;var w=_.XK(W);W=_.ws(W);var d=A||W,O;d&&(M.parentCsn!==void 0?O={clientScreenNonce:M.parentCsn,visualElement:d}:w&&w!=="UNDEFINED_CSN"&&(O={clientScreenNonce:w,visualElement:d}));var f,J=_.gD("EVENT_ID");w==="UNDEFINED_CSN"&&J&&(f={servletData:{serializedServletEventId:J}});_.S("combine_ve_grafts")&&w&&iCm(H,w);_.S("no_client_ve_attach_unless_shown")&&d&&w&&Qzc(d,w);try{var F=_.TIE(H.client,U,O,M.csnToClone,M.cttAuthInfo,
f,M.implicitGestureType,void 0,M.loggingExpectations,M.automatedLogEventSource)}catch(N){_.SD(N,{rootVeType:U,rootVe:W,parentVisualElement:A,currentCsn:w,parentEl:O,csnToClone:M.csnToClone});_.sD(N);return}_.bH(F,U,M.layer,M.cttAuthInfo);w&&w!=="UNDEFINED_CSN"&&W&&!VQF(w)&&M4V(H.client,w,W,!0);H.backHistoryStack[H.backHistoryStack.length-1]&&!H.backHistoryStack[H.backHistoryStack.length-1].csn&&(H.backHistoryStack[H.backHistoryStack.length-1].csn=F||"");_.wH({clientScreenNonce:F});_.ASn();var P=_.ws(M.layer);
w&&w!=="UNDEFINED_CSN"&&P&&_.S("music_web_mark_root_visible")&&_.PO(F,P);H.pendingScreenCreation.delete(M.layer||0);H.pendingScreenFn=void 0;var n;(n=H.recurringGrafts.get(M.layer))==null||n.forEach(function(N,L){N?_.$g(H,L,N,M.layer):P&&_.$g(H,L,P,M.layer)});
bCp(H)},bCp=function(H){for(var U=0;U<H.afterNewScreenOneOffJobs.length;U++){var A=H.afterNewScreenOneOffJobs[U];
try{A()}catch(M){_.sD(M)}}for(U=H.afterNewScreenOneOffJobs.length=0;U<H.afterNewScreenRecurringJobs.length;U++){A=H.afterNewScreenRecurringJobs[U];try{A()}catch(M){_.sD(M)}}},iCm=function(H,U){if(U===void 0)for(var A=Il0(),M=0;M<A.length;M++)A[M]!==void 0&&iCm(H,A[M]);
else H.cachedVisualElements.forEach(function(W,w){(w=H.cachedRootVisualElements.get(w))&&jzF(H.client,U,w,W)}),H.cachedVisualElements.clear(),H.cachedRootVisualElements.clear(),H.attachTimeout=void 0};var qJ=function(H){H=H===void 0?{layer:0}:H;this.e7=!1;this.createScreenConfig=H;H={};this.vyL=(H.response=!1,H.playerResponse=!1,H)};
_.R(qJ,xg);qJ.prototype.validate=function(H){return!(!H.data||!H.data.response&&!H.data.playerResponse)};
qJ.prototype.handle=function(H){var U=_.k$(),A=this.createScreenConfig.layer;H.data.response&&H.data.response.trackingParams&&!this.vyL.response&&(U.graftServerVe(H.data.response.trackingParams,void 0,A),this.vyL.response=!0);H.data.playerResponse&&H.data.playerResponse.trackingParams&&!this.vyL.playerResponse&&(U.graftServerVe(H.data.playerResponse.trackingParams,void 0,A),this.vyL.playerResponse=!0)};var hA=function(){this.rK=_.oL();this.f8=[];this.vfG=0};
hA.prototype.processChunk=function(H){if(H){for(var U=_.b(this.f8),A=U.next();!A.done;A=U.next())A=A.value,A.validate(H)&&(A.handle(H),A.e7=!0);_.ba("np"+this.vfG);this.vfG++}};var oI7,dBB,ZCz;_.$$=function(H,U,A,M,W,w,d,O){d=d===void 0?[]:d;O=O===void 0?[]:O;this.buildCommandPayload=H;this.navigate=U;this.handleServiceRequest=A;this.sendAction=M;this.JSC$13084_screenManager=W;this.commandResolverMap=w;this.autoLogResolverAllowlist=d;this.metaCommandClickLoggingDenylist=O;this.pendingCommands=new Set;this.isTracingEnabled=!1;dBB(this)};
oI7=function(H,U,A){var M=[_.QUr,Z3H],W=AV8,w=M18,d=_.k$(),O=OCg;A=A===void 0?[]:A;M=M===void 0?[]:M;_.$$.instance=new _.$$(H,U,W,w,d,O,A,M)};
dBB=function(H){if(!H.isTracingEnabled&&a2("command")){var U=H.resolveCommand;H.resolveCommand=function(A,M){a:{for(W in A)if(Object.prototype.hasOwnProperty.call(A,W)){var W={commandType:W};break a}W={}}return C1("command",W,U.bind(this,A,M))};
H.isTracingEnabled=!0}};
ZCz=function(H,U,A){if(!H.commandResolverMap)return!1;var M=JhK(U,H.commandResolverMap);return M?((H.autoLogResolverAllowlist.some(function(W){return!!_.p(U,W)})||(A==null?0:A.forceClickLogging))&&umk(H,U,A),M instanceof Promise?M.then(function(W){W.resolve(U,A)}):M.resolve(U,A),!0):!1};
_.$$.prototype.resolveCommand=function(H,U){var A=this,M=fEw(H);if((U==null||!U.skipCommandResolverMap)&&ZCz(this,H,U))return!0;if(M)return JSm(this,H,U);if(!this.buildCommandPayload)return u48(H,"Unhandled command by buildCommandPayload"),!1;var W=this.buildCommandPayload(H,U);if(U==null?0:U.commandController)W.commandController=U.commandController;if(W.type===0){if(!this.navigate)return ZJr(H,"navigate"),!1;if(!K8z(W.command))return u48(H,"Page requests need to specify a url"),!1;_.S("logging_avoid_blocking_during_navigation")&&
_.Y3_().transition("application_navigating");H=this.navigate(W)||[];bAy(H).then(function(){A.pendingCommands.delete(W.command)});
return!0}if(W.type===1){if(!this.handleServiceRequest)return ZJr(H,"handleServiceRequest"),!1;(U==null?0:U.forceClickLogging)&&umk(this,W.command,U);H=this.handleServiceRequest(W);bAy(H).then(function(){A.pendingCommands.delete(W.command)});
return!0}if(W.type===2){if(!this.sendAction)return ZJr(H,"sendAction"),!1;umk(this,W.command,U);this.sendAction(W);return!0}return!1};
var umk=function(H,U,A){if((A==null||!A.disableClickTracking)&&H.JSC$13084_screenManager)if(U.clickTrackingParams&&_.S("log_click_with_layer_from_element_in_command_handler")){var M;A=A==null?void 0:(M=A.form)==null?void 0:M.element;H.JSC$13084_screenManager.clickCommand(U,null,A&&A.getScreenLayer&&A.getScreenLayer())}else U.clickTrackingParams?H.JSC$13084_screenManager.clickCommand(U):!_.S("disable_clicked_visual_element_in_command_handler")&&(A==null?0:A.clickedVisualElement)&&_.GJ(H.JSC$13084_screenManager,
A.clickedVisualElement)},fEw=function(H){var U=!!_.p(H,_.$2),A;
H=((A=_.p(H,_.GR))==null?void 0:A.signal)==="CLIENT_SIGNAL";return U||H},JSm=function(H,U,A){var M=_.p(U,_.$2);
if(M)var W=(M==null?void 0:M.commands)||[];else{var w;if(((w=_.p(U,_.GR))==null?void 0:w.signal)==="CLIENT_SIGNAL"){var d;W=((d=_.p(U,_.GR))==null?void 0:d.actions)||[]}}if(W){(M=ouK(H,W))&&umk(H,U,A);U=_.b(W);for(W=U.next();!W.done;W=U.next()){W=W.value;try{var O=Object.assign({},A);M&&(O.disableClickTracking=!0);H.resolveCommand(W,O)}catch(f){f instanceof Error&&_.sD(f)}}return!0}u48(U,"Could not handle the meta command");return!1},ouK=function(H,U){return U.every(function(A){return H.metaCommandClickLoggingDenylist.some(function(M){return!!_.p(A,
M)})})},K8z=function(H){var U;
return!((U=_.p(H==null?void 0:H.commandMetadata,_.Y2))==null||!U.url)};var kg=function(){xg.apply(this,arguments)};
_.R(kg,xg);kg.prototype.validate=function(H){var U,A;return!this.e7&&!!((U=H.data.response)==null?0:(A=U.onResponseReceivedEndpoints)==null?0:A.length)};
kg.prototype.handle=function(H){var U=_.$$.instance;H=_.b(H.data.response.onResponseReceivedEndpoints);for(var A=H.next();!A.done;A=H.next())U.resolveCommand(A.value)};var F8w,PCK,TJ;
F8w=function(){this.companionCanvasActivation=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=_.DH();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.vc=function(){PCK||(PCK=new F8w);return PCK};
TJ=function(){var H=_.vc();H.miniplayerButtonActivation=!1;H.userActivation=!1;H.playlistWatchPageActivation=!1;H.productDetailsPageActivation=!1;H.miniAppPageActivation=!1;H.playablesDestPageActivation=!1;H.lockupActivation=!1;H.showMiniplayerCommandActivation=!1;H.playlistSuggestionsShelfActivation=!1;H.mediaSessionPipActivation=!1;H.watchPipActivation=!1;H.watchWhileActivation=!1;H.shortsPipActivation=!1;H.companionCanvasActivation=!1};
_.sXz=function(){var H=_.vc(),U=H.mediaSessionPipActivation,A=H.watchPipActivation,M=H.watchWhileActivation,W=H.playlistWatchPageActivation,w=H.lockupActivation,d=H.showMiniplayerCommandActivation,O=H.navigatingAwayFromWatchDeletedVideo,f=H.shortsPipActivation,J=H.playlistSuggestionsShelfActivation,F=H.productDetailsPageActivation,P=H.miniAppPageActivation,n=H.playablesDestPageActivation,N=H.companionCanvasActivation;return!H.miniplayerButtonActivation&&!W&&!J&&!F&&!P&&!n&&!w&&!d&&!U&&!A&&!M&&!f&&
!N||O};var TRh;_.jR=_.En("FEwhat_to_watch","/",3854);_.j70=_.En("FEdownloads","/feed/downloads",42352);TRh=_.En("FEmusic_offline","browse/FEmusic_offline",42352);var pq=function(H,U){U=U===void 0?[]:U;var A=A===void 0?[]:A;U=x1N.apply(null,[zXE.apply(null,_.vI(U))].concat(_.vI(A)));this.store=ynK(H,void 0,U)};
pq.prototype.getState=function(){return this.store.getState()};
pq.prototype.dispatch=function(H){return this.store.dispatch(H)};
pq.prototype.subscribe=function(H){return this.store.subscribe(H)};
pq.prototype.replaceReducer=function(H){return this.store.replaceReducer(H)};
pq.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.It=function(H,U,A){var M=U(H.getState());return H.subscribe(function(){var W=U(H.getState());if(W!==M){var w=M;M=W;A(W,w)}})};var wNc;_.hs=function(H,U,A){return _.zQ({type:"REPLACE_ENTITY",payload:{entityPayload:A,entityType:H,key:U}})};
wNc=function(H){return _.zQ({type:"REPLACE_ENTITIES",payload:H})};
_.Wl=function(H,U,A,M){return _.zQ({type:"UPDATE_ENTITY",payload:{entityPayload:A,entityType:H,key:U,mergeOption:M}})};var mEM=function(H){var U=this;H=H===void 0?[]:H;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;H.forEach(function(A){U.append(A)})};
_.X=mEM.prototype;_.X.getLength=function(){return this.totalLength};
_.X.append=function(H){var U=this.arrays.length===0?!1:(U=this.arrays[this.arrays.length-1])&&U.buffer===H.buffer&&U.byteOffset+U.length===H.byteOffset;U?(U=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(U.buffer,U.byteOffset,U.length+H.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(H);this.totalLength+=H.length};
_.X.split=function(H){for(var U=new mEM,A=new mEM,M=_.b(this.arrays),W=M.next();!W.done;W=M.next())W=W.value,H>=W.length?(U.append(W),H-=W.length):H?(U.append(new Uint8Array(W.buffer,W.byteOffset,H)),A.append(new Uint8Array(W.buffer,W.byteOffset+H,W.length-H)),H=0):A.append(W);return{headView:U,tailView:A}};
_.X.isFocused=function(H){return H>=this.arrayPos&&H<this.arrayPos+this.arrays[this.arrayIdx].length};
_.X.focus=function(H){if(!this.isFocused(H))for(H<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=H&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var nu3=function(H,U){H.focus(U);return H.arrays[H.arrayIdx][U-H.arrayPos]};(function(){var H=function(M){return new Uint8Array(M)},U=function(M){for(var W=new Uint8Array(M.length),w=0;w<M.length;w++)W[w]=M[w];
return W},A=new Uint8Array([1]);
return A.length===1&&A[0]===1?H:U})();
var Nvc=Array(1024),nyM=window.TextDecoder?new TextDecoder:void 0,pb4=window.TextEncoder?new TextEncoder:void 0;var Eyc=function(H){this.arrayView=H;this.pos=0;this.pendingTagAndType=-1},CE=function(H){var U=nu3(H.arrayView,H.pos);
++H.pos;if(U<128)return U;for(var A=U&127,M=1;U>=128;)U=nu3(H.arrayView,H.pos),++H.pos,M*=128,A+=(U&127)*M;return A},gyc=function(H,U){var A=H.pendingTagAndType;
for(H.pendingTagAndType=-1;H.pos+1<=H.arrayView.totalLength;){A<0&&(A=CE(H));var M=A>>3,W=A&7;if(M===U)return!0;if(M>U){H.pendingTagAndType=A;break}A=-1;switch(W){case 0:CE(H);break;case 1:H.pos+=8;break;case 2:M=CE(H);H.pos+=M;break;case 5:H.pos+=4}}return!1};var xEM=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=RQN(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},yy=function(H,U){U=H.pos+U;
if(!(H.buf.length>=U)){for(var A=H.buf.length*2;A<U;)A*=2;H.buf=RQN(A,H.wasm,H.buf.subarray(0,H.pos));H.view=new DataView(H.buf.buffer,H.buf.byteOffset,H.buf.byteLength)}},cO=function(H,U){if(U>268435455){yy(H,4);
for(var A=U&1073741823,M=0;M<4;M++)H.view.setUint8(H.pos,A&127|128),A>>=7,H.pos+=1;U=Math.floor(U/268435456)}for(yy(H,4);U>127;)H.view.setUint8(H.pos,U&127|128),U>>=7,H.pos+=1;H.view.setUint8(H.pos,U);H.pos+=1};for(var zQV={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,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,selectedChipIndexEntityPayload:479,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},a1N={},NWB=_.b(Object.entries(zQV)),SXz=NWB.next();!SXz.done;SXz=NWB.next()){var pEy=_.b(SXz.value),L8K=pEy.next().value,RIg=pEy.next().value,Euk=L8K,mB2=RIg;mB2&&(a1N[mB2]=Euk)};var t44=function(H,U){H=H===void 0?{}:H;switch(U.type){case "ENTITY_LOADED":return U.payload.reduce(function(M,W){var w,d=(w=W.options)==null?void 0:w.persistenceOption;if(d&&d!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&d!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return M;if(!W.entityKey)return _.sD(Error("Kf")),M;if(W.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!W.payload)return W=new _.bD("REPLACE entity mutation is missing a payload",{entityKey:W.entityKey}),_.sD(W),M;var O=(0,_.dG.getAnyKey)(W.payload);
return yht(M,O,W.entityKey,W.payload[O])}if(W.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{W=W.entityKey;try{var f=_.tw(W).entityType;O=yht(M,f,W);break a}catch(P){if(P instanceof Error){W=new _.bD("Failed to deserialize entity key",{entityKey:W,originalMessage:P.message});_.sD(W);O=M;break a}throw P;}O=void 0}return O}if(W.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!W.payload)return W=new _.bD("UPDATE entity mutation is missing a payload",{entityKey:W.entityKey}),_.sD(W),M;O=(0,_.dG.getAnyKey)(W.payload);
var J,F;return Bvh(M,O,W.entityKey,W.payload[O],(J=W.fieldMask)==null?void 0:(F=J.mergeOptions)==null?void 0:F.repeatedFieldsMergeOption)}return M},H);
case "REPLACE_ENTITY":var A=U.payload;return yht(H,A.entityType,A.key,A.entityPayload);case "REPLACE_ENTITIES":return Object.keys(U.payload).reduce(function(M,W){var w=U.payload[W];return Object.keys(w).reduce(function(d,O){return yht(d,W,O,w[O])},M)},H);
case "UPDATE_ENTITY":return A=U.payload,Bvh(H,A.entityType,A.key,A.entityPayload,A.mergeOption);default:return H}};var rh4;var guy=!1,Qg,Vg,Hd,UC,Aq,aEz=function(H){_.XG.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!guy){var U,A=new Uint8Array(256),M=new Uint8Array(256);var W=1;for(U=0;U<256;U++)A[W]=U,M[U]=W,W^=W<<1^(W>>7&&283);Qg=new Uint8Array(256);Vg=e9(256);Hd=e9(256);UC=e9(256);Aq=e9(256);for(var w=0;w<256;w++){W=w?M[255^A[w]]:0;W^=W<<1^W<<2^W<<3^W<<4;W=W&255^W>>>8^99;Qg[w]=W;U=W<<1^(W>>7&&283);var d=U^W;Vg[w]=U<<24|W<<16|W<<8|d;Hd[w]=d<<24|Vg[w]>>>8;UC[w]=W<<24|Hd[w]>>>
8;Aq[w]=W<<24|UC[w]>>>8}guy=!0}W=e9(44);for(A=0;A<4;A++)W[A]=H[4*A]<<24|H[4*A+1]<<16|H[4*A+2]<<8|H[4*A+3];for(M=1;A<44;A++)H=W[A-1],A%4||(H=(Qg[H>>16&255]^M)<<24|Qg[H>>8&255]<<16|Qg[H&255]<<8|Qg[H>>>24],M=M<<1^(M>>7&&283)),W[A]=W[A-4]^H;this.key=W};
_.R(aEz,_.XG);
aEz.prototype.encrypt=function(H){var U=H.length;H=new Uint8Array(H.buffer.slice(H.byteOffset,H.byteOffset+U));for(var A=this.cipherBlock,M=0;M<U&&this.blockOffset<16;)H[M++]^=A[this.blockOffset++];for(var W=U-(U-M)%16;M<W;)xBB(this),H[M++]^=A[0],H[M++]^=A[1],H[M++]^=A[2],H[M++]^=A[3],H[M++]^=A[4],H[M++]^=A[5],H[M++]^=A[6],H[M++]^=A[7],H[M++]^=A[8],H[M++]^=A[9],H[M++]^=A[10],H[M++]^=A[11],H[M++]^=A[12],H[M++]^=A[13],H[M++]^=A[14],H[M++]^=A[15];if(M<U)for(xBB(this),this.blockOffset=0;M<U;)H[M++]^=
A[this.blockOffset++];return H};
var xBB=function(H){for(var U=H.key,A=H.counter[0]^U[0],M=H.counter[1]^U[1],W=H.counter[2]^U[2],w=H.counter[3]^U[3],d=3;d>=0&&!(H.counter[d]=-~H.counter[d]);d--);for(var O,f,J=4;J<40;)d=Vg[A>>>24]^Hd[M>>16&255]^UC[W>>8&255]^Aq[w&255]^U[J++],O=Vg[M>>>24]^Hd[W>>16&255]^UC[w>>8&255]^Aq[A&255]^U[J++],f=Vg[W>>>24]^Hd[w>>16&255]^UC[A>>8&255]^Aq[M&255]^U[J++],w=Vg[w>>>24]^Hd[A>>16&255]^UC[M>>8&255]^Aq[W&255]^U[J++],A=d,M=O,W=f;H=H.cipherBlock;d=U[40];H[0]=Qg[A>>>24]^d>>>24;H[1]=Qg[M>>16&255]^d>>16&255;H[2]=
Qg[W>>8&255]^d>>8&255;H[3]=Qg[w&255]^d&255;d=U[41];H[4]=Qg[M>>>24]^d>>>24;H[5]=Qg[W>>16&255]^d>>16&255;H[6]=Qg[w>>8&255]^d>>8&255;H[7]=Qg[A&255]^d&255;d=U[42];H[8]=Qg[W>>>24]^d>>>24;H[9]=Qg[w>>16&255]^d>>16&255;H[10]=Qg[A>>8&255]^d>>8&255;H[11]=Qg[M&255]^d&255;d=U[43];H[12]=Qg[w>>>24]^d>>>24;H[13]=Qg[A>>16&255]^d>>16&255;H[14]=Qg[M>>8&255]^d>>8&255;H[15]=Qg[W&255]^d&255};var zIp=!1;(function(){var H=function(M){return new Uint8Array(M)},U=function(M){for(var W=new Uint8Array(M.length),w=0;w<M.length;w++)W[w]=M[w];
return W},A=new Uint8Array([1]);
return A.length===1&&A[0]===1?H:U})();
var M5;var cSK=function(H){a:{if(!zIp&&!BK){if(M5){var U=M5;break a}M5=(U=window.crypto)==null?void 0:U.subtle;var A,M,W;if(((A=M5)==null?0:A.importKey)&&((M=M5)==null?0:M.sign)&&((W=M5)==null?0:W.encrypt)){U=M5;break a}M5=void 0}U=void 0}U&&(this.nativeEncryptor=new CCg(H,U));this.encryptorPolyfill=new tYH(H)};
cSK.prototype.encrypt=function(H,U){var A=this,M;return _.u(function(W){switch(W.nextAddress){case 1:if(!A.nativeEncryptor){W.jumpTo(2);break}_.zj(W,3);return W.yield(A.nativeEncryptor.encrypt(H,U),5);case 5:return W.return(W.yieldResult);case 3:M=_.eG(W),_.Na(M),zIp=!0,A.nativeEncryptor=void 0;case 2:return W.return(A.encryptorPolyfill.encrypt(H,U))}})};
cSK.prototype.decrypt=function(H,U){return this.encrypt(H,U)};
var CCg=function(H,U){this.JSC$13157_aesKey=H;this.subtleCrypto=U};
CCg.prototype.encrypt=function(H,U){var A=this,M;return _.u(function(W){if(W.nextAddress==1)return _.zj(W,2),W.yield(ySB(A,H,U),4);if(W.nextAddress!=2)return W.return(W.yieldResult);M=_.eG(W);_.Na(M);zIp=!0;throw M;})};
var ySB=function(H,U,A){var M,W;return _.u(function(w){switch(w.nextAddress){case 1:if(H.cryptoKey){w.jumpTo(2);break}return w.yield(H.subtleCrypto.importKey("raw",H.JSC$13157_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:H.cryptoKey=w.yieldResult;case 2:return M={name:"AES-CTR",counter:A,length:128},w.yield(H.subtleCrypto.encrypt(M,H.cryptoKey,U),4);case 4:return W=w.yieldResult,w.return(new Uint8Array(W))}})},tYH=function(H){this.JSC$13160_aesKey=H};
tYH.prototype.encrypt=function(H,U){this.encryptor||(this.encryptor=new aEz(this.JSC$13160_aesKey));for(var A=this.encryptor,M=0;M<4;M++)A.counter[M]=U[M*4]<<24|U[M*4+1]<<16|U[M*4+2]<<8|U[M*4+3];A.blockOffset=16;return this.encryptor.encrypt(H)};
tYH.prototype.decrypt=function(H,U){return this.encrypt(H,U)};var BWh={},$Eh=$D("yt-idb-pref-storage",{objectStores:(BWh.prefs={addedAtVersion:1},BWh),shared:!1,upgrade:function(H,U){U(1)&&RQ(L_(H,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Wd=function(H){this.token=H};
_.Wd.getInstance=function(){return _.u(function(H){return H.return(new Promise(function(U){_.D0().then(function(A){A?(_.Wd.instance||(_.Wd.instance=new _.Wd(A)),U(_.Wd.instance)):U(void 0)})}))})};
_.Wd.prototype.get=function(H){var U=this,A,M,W;return _.u(function(w){if(w.nextAddress==1)return w.yield(l1c(U.token),2);if(w.nextAddress!=3)return A=w.yieldResult,w.yield(A.get("prefs",H),3);M=w.yieldResult;if(!M)return w.return();W=(0,_.lD)();return M.expirationTimestampMs<=W?w.return():w.return(M.value)})};
_.Wd.prototype.set=function(H,U,A){A=A===void 0?31536E3:A;var M=this,W,w,d;return _.u(function(O){if(O.nextAddress==1)return W=(0,_.lD)(),w={key:H,value:U,expirationTimestampMs:W+A*1E3},O.yield(l1c(M.token),2);d=O.yieldResult;return O.yield(d.put("prefs",w),0)})};
_.Wd.prototype.remove=function(H){var U=this,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(l1c(U.token),2);A=M.yieldResult;return M.yield(A.delete("prefs",H),0)})};var wI={},rSB=(wI.INVALID_ENCODER_VERSION="Invalid encoder version",wI.KEY_CREATION_FAILED="Failed to create encoder key",wI.UNKNOWN_DECODE_ERROR="Failed to decode PES data",wI.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",wI.WRONG_DATA_TYPE="Encoder cannot process the data type",wI),la=function(H,U){U=U===void 0?{}:U;_.bD.call(this,rSB[H],Object.assign({},{name:"PESEncoderError",type:H},U));this.type=H;this.level="WARNING";Object.setPrototypeOf(this,la.prototype)};
_.R(la,_.bD);var XX=function(){};
XX.prototype.encode=function(H,U){try{return this.encodeImpl(H,U)}catch(A){hQ7(A,YYK)}};
XX.prototype.decode=function(H,U){try{return this.decodeImpl(H,U)}catch(A){hQ7(A,qYV)}};
var eIk=function(H,U,A){var M;return _.u(function(W){if(W.nextAddress==1)return _.zj(W,2),W.yield(H.decodeAsyncImpl(U,A),4);if(W.nextAddress!=2)return W.return(W.yieldResult);M=_.eG(W);hQ7(M,qYV);_.DO(W)})};
XX.prototype.decodeAsyncImpl=function(H,U){return Promise.resolve(this.decodeImpl(H,U))};var i1=function(H,U){this.aesEncryptor=H;this.aesEncryptorAsync=U};
_.R(i1,XX);i1.prototype.encodeImpl=function(H,U){U=km0(U);H=(new TextEncoder).encode(JSON.stringify(H));return this.aesEncryptor.encrypt(H,U)};
i1.prototype.decodeImpl=function(H,U){if(!(H instanceof Uint8Array))throw Gm0(1);var A=new TextDecoder;U=km0(U);H=this.aesEncryptor.decrypt(H,U);return JSON.parse(A.decode(H))};
i1.prototype.decodeAsyncImpl=function(H,U){var A=this,M,W,w;return _.u(function(d){if(d.nextAddress==1){if(!(H instanceof Uint8Array))throw Gm0(1);M=new TextDecoder;W=km0(U);return d.yield(A.aesEncryptorAsync.decrypt(H,W),2)}w=d.yieldResult;return d.return(JSON.parse(M.decode(w)))})};var vy4={accountLinkStatusEntity:pYr,booleanEntity:jUw,buttonEntity:hnw,captionTrack:xEz,channelHandle:LMz,chipEntity:n0n,commerceAcquisitionClientPayloadEntity:nNK,commerceCartListEntity:NUw,compositeSourceEntity:hfy,multiviewStagingEntity:k1H,contextNoteFeedEntityPayload:eey,contextNoteUserRatingEntityPayload:DA3,continuationTokenEntity:b9K,downloadQualityPickerEntity:IJw,downloadsPageRefreshTokenEntity:VRh,downloadsPageViewConfigurationEntity:FBw,downloadStatusEntity:Qt2,dismissState:NFw,sfvAudioItemCurrentlyPlayingEntity:Oak,
emojiFountainDataEntity:G0h,emojiCustomizationSetEntity:law,fakeChannel:Vc3,fakePlaylist:HZB,fakePlaylistEntryCollection:U$w,fakeVideo:MQz,fakeVideoDescription:WXB,featuredProductsEntity:efH,flowStateEntity:smn,iconBadgeEntity:Sdm,interstitialInteractionStateEntity:D$m,likeButtonAnimationEntity:P1n,liveChatPollStateEntity:vkz,dataFreshnessEntity:DMm,liveViewerLeaderboardChatEntryPointStateEntity:qYw,liveViewerLeaderboardPointsEntity:hQn,liveReactionsDataEntity:YFw,logoEntity:rfn,macroMarkerEntity:szw,
mainDownloadsLibraryEntity:H9y,mainDownloadsListEntity:U5r,mainPlaylistDownloadStateEntity:MZ3,mainPlaylistEntity:d5z,mainPlaylistVideoEntity:O9h,mainVideoDownloadStateEntity:WBh,mainVideoEntity:Jqr,markersEngagementPanelSyncEntity:n6B,markersVisibilityOverrideEntity:NIh,musicAlbumReleaseDetail:VZH,musicAlbumReleaseDownloadMetadataEntity:v6w,musicAlbumRelease:Qz3,musicAlbumReleaseUserDetail:HJr,musicArtistDetail:Ahh,musicArtist:UEz,musicArtistUserDetail:M4w,musicDownloadsLibraryEntity:TIB,musicLibraryEdit:WgK,
musicLibraryStatusEntity:wbw,musicPlaylist:XbB,musicPlaylistDownloadMetadataEntity:jzr,musicShare:bJh,musicTrackDetail:OJK,musicTrackDownloadMetadataEntity:I4w,musicTrack:dEK,musicTrackUserDetail:u42,offlineOrchestrationActionWrapperEntity:zQw,offlineVideoPolicy:CKw,offlineVideoStreams:t4g,offlineabilityEntity:wd3,orchestrationWebSamplingEntity:XdK,pageHeaderEntity:znk,pdpStateEntity:p6g,pinnedProductEntity:D5w,playbackData:chH,playerStateEntity:SCw,quantityIncrementerEntity:LIy,refresh:yhH,saveToPlaylistListEntity:C82,
selectedChipIndexEntityPayload:pdz,settingEntity:Hmw,stringEntity:IAB,suggestedFeedbackChipStateEntity:LBw,transfer:Bvk,trendingOfferEntity:$5m,videoDownloadContextEntity:rhg,videoOverviewAsyncDataEntity:vNk,videoPlaybackPositionEntity:TFm,votingEntity:y1B,ytMainChannelEntity:KBg,youchatPendingResponseEntity:Rfy,ytMainDownloadedVideoEntity:i9n,ytMainVideoEntity:o6z};var DBp,lE2,kU,AbV,MeN,qXw,kMg,hIn,YXg;DBp=function(H,U){this.JSC$13179_wrapped=H;this.JSC$13179_encoderRegistry=U;this.changedKeys={}};
lE2=function(H,U){return $BH(H.JSC$13179_encoderRegistry,U.version).decode(U.data,U.key)};
_.GMk=function(H,U,A){return H.JSC$13179_wrapped.objectStore("EntityStore").get(U).then(function(M){if(M){if(A&&M.entityType!==A)throw Error("Lf");return lE2(H,M)}})};
kU=function(H,U,A){return A?(A=A.map(function(M){return _.GMk(H,M,U)}),Rd.all(A)):H.JSC$13179_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(U)).then(function(M){return M.map(function(W){return lE2(H,W)})})};
_.UIF=function(H,U,A){var M=CKN(U),W=$BH(H.JSC$13179_encoderRegistry,1),w=Object.assign({},U);return H.JSC$13179_wrapped.objectStore("EntityStore").get(M).then(function(d){if(d){if(d.entityType!==A)throw Error("Lf");w.entityMetadata||(d=lE2(H,d),w.entityMetadata=d.entityMetadata)}}).then(function(){var d={key:M,
entityType:A,data:W.encode(w,M),version:1};return Rd.all([H.JSC$13179_wrapped.objectStore("EntityStore").put(d),YXg(H,w,A)])}).then(function(){qXw(H,M,A);
return M})};
AbV=function(H,U){var A=_.tw(U).entityType;return Rd.all([H.JSC$13179_wrapped.objectStore("EntityStore").delete(U),hIn(H,U)]).then(function(){qXw(H,U,A)})};
MeN=function(H,U,A,M){var W=$BH(H.JSC$13179_encoderRegistry,1);return _.GMk(H,U,M).then(function(w){if(w){w=sfc(w,A);var d={key:U,entityType:M,data:W.encode(w,U),version:1};return Rd.all([H.JSC$13179_wrapped.objectStore("EntityStore").put(d),YXg(H,w,M)])}}).then(function(){qXw(H,U,M);
return U})};
qXw=function(H,U,A){var M=H.changedKeys[A];M||(M=new Set,H.changedKeys[A]=M);M.add(U)};
kMg=function(H,U,A){var M=CKN(U);A=Tv7(A);if(!A)return Rd.resolve([]);A=new A(U);H=H.JSC$13179_wrapped.objectStore("EntityAssociationStore");U=[];A=_.b(A.getAssociations());for(var W=A.next();!W.done;W=A.next())U.push(H.put({parentEntityKey:M,childEntityKey:W.value}));return Rd.all(U).then(function(w){return w.map(function(d){return d[1]})})};
hIn=function(H,U){return H.JSC$13179_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(U))};
YXg=function(H,U,A){var M=CKN(U);return hIn(H,M).then(function(){return kMg(H,U,A)})};var vug=function(){};
_.R(vug,XX);vug.prototype.encodeImpl=function(H){return H};
vug.prototype.decodeImpl=function(H){if(H instanceof Uint8Array)throw Gm0(0);return H};var Qfc=function(){this.cacheMap={};this.cacheMap[0]=new vug;if(!_.S("aes_pes_encoder_killswitch")){var H=this.cacheMap;try{var U=_.XU();var A=km0(U);var M=new i1(new tYH(A),new cSK(A))}catch(W){throw H=W instanceof Error?new la("KEY_CREATION_FAILED",{originalMessage:W.message}):new la("KEY_CREATION_FAILED"),_.sD(H),H;}H[1]=M}},$BH=function(H,U){U=U===void 0?0:U;
H=H.cacheMap[U];if(!H)throw U=new la("INVALID_ENCODER_VERSION",{encoderVersion:U}),_.sD(U),U;return H};var YU=function(H,U){_.XG.call(this);this.token=H;this.JSC$13193_encoderRegistry=U;this.observers=[];H=new _.Mr.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.XU());H.onmessage=this.JSC$13193_handleMessage.bind(this);this.channel=H};
_.R(YU,_.XG);_.hw=function(H,U,A){var M,W,w,d;return _.u(function(O){if(O.nextAddress==1)return O.yield(DE7(H.token),2);if(O.nextAddress!=3)return M=O.yieldResult,O.yield(_.tj(M,["EntityStore","EntityAssociationStore"],U,function(f){W=new DBp(f,H.JSC$13193_encoderRegistry);return A(W)}),3);
w=O.yieldResult;W&&(d=W.changedKeys,Object.keys(d).length>0&&(H.channel.postMessage(d),TWK(H,d)));return O.return(w)})};
YU.prototype.observe=function(H){var U=this;this.observers.push(H);return function(){var A=U.observers.indexOf(H);A>=0&&U.observers.splice(A,1)}};
var P44=function(H){var U;return _.u(function(A){if(A.nextAddress==1)return A.yield(_.hw(H,{mode:"readonly",enableRetries:!0},function(M){return M.JSC$13179_wrapped.objectStore("EntityStore").getAll()}),2);
U=A.yieldResult;return A.return(Promise.all(U.filter(function(M){return!!M}).map(function(M){var W,w;
return _.u(function(d){if(d.nextAddress==1){W=M.key;w=M.entityType;var O=d.yield;var f=eIk($BH(H.JSC$13193_encoderRegistry,M.version),M.data,M.key);return O.call(d,f,2)}return d.return({key:W,entityType:w,data:d.yieldResult})})})))})};
YU.prototype.JSC$13193_handleMessage=function(H){TWK(this,H.data)};
var TWK=function(H,U){H=_.b(H.observers);for(var A=H.next();!A.done;A=H.next())A=A.value,A(U)};
YU.prototype.disposeInternal=function(){this.channel.close()};
var jfM;var b1,IEg,S8r;b1={};_.jXy=(b1.mainVideoEntity="mainVideoEntityActionMetadata",b1.mainPlaylistEntity="mainPlaylistEntityActionMetadata",b1.musicTrack="musicTrackEntityActionMetadata",b1.musicPlaylist="musicPlaylistEntityActionMetadata",b1);IEg=new _.g3("DOWNLOADS_ENTITY_TYPE_MAP");_.U_=_.BO("","downloadsPageViewConfigurationEntity");S8r=_.BO("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.A1c=_.BO("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.BO("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.BO("SMART_DOWNLOADS_ENABLED","settingEntity");_.BO("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var baV=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var K1N=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var QXw={isLeaderTab:!0};var Y8c={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var dI=window,Jc=dI.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",ob7=dI.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||Kq,Nx7=dI.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||e5,oCK=dI.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||KLr,ffw=dI.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||mFm,fqM=dI.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||tIk;var K$0;s_({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 ce8=SN7(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(H){return H}}}),yW4=SN7(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(H){return H}}}),Ebc=new Map;var BxN=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],zt7;var VYn=function(H){return _.zQ({type:"SET_EPHEMERAL_ACTION",payload:H})};var Hu2={ephemeralAction:null};var UNB=Z2({ephemeralAction:function(H,U){H=H===void 0?Hu2.ephemeralAction:H;switch(U.type){case "SET_EPHEMERAL_ACTION":return U.payload;default:return H}}});var A7n=function(H){return _.zQ({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:H})};var MBz={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var Wlk={sharedUi:MBz,a11y:Hu2,entities:{}},bjK={sharedUi:function(H,U){H=H===void 0?MBz:H;switch(U.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},H,{animatedThumbnailEnabled:U.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},H,{inlinePreviewEnabled:U.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},H,{currentPageType:U.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},H,{currentPageSubType:U.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},H,{persistentPanelVisible:U.payload});default:return H}},
a11y:UNB,entities:cht};var G4V={playlistId:"",inviteLinkURL:""};var wvB={continuationCommand:{}};var Hjt=Z2({continuationCommand:function(H,U){H=H===void 0?wvB.continuationCommand:H;switch(U.type){case "SET_CONTINUATION_COMMAND":return U.payload.continuationCommand;default:return H}}});var qNF={currentFormId:"",commandsMap:{}};var Ud_=Z2({isLeaderTab:function(H,U){H=H===void 0?QXw.isLeaderTab:H;switch(U.type){case "SET_IS_LEADER_TAB":var A,M;return(M=U==null?void 0:(A=U.payload)==null?void 0:A.isLeaderTab)!=null?M:H;default:return H}}});var iu2;_.Xvg=function(H){return _.zQ({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:H}})};
iu2=function(H){return _.zQ({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:H}})};var OC={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var ij_=Z2({isDesktopSmallWidth:function(H,U){H=H===void 0?OC.isDesktopSmallWidth:H;switch(U.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return U.payload.isDesktopSmallWidth;default:return H}},
isShortsActive:function(H,U){H=H===void 0?OC.isShortsActive:H;switch(U.type){case "SET_IS_SHORTS_ACTIVE":return U.payload.isShortsActive;default:return H}},
isWatchWhileMode:function(H,U){H=H===void 0?OC.isWatchWhileMode:H;switch(U.type){case "SET_IS_WATCH_WHILE_MODE":return U.payload.isWatchWhileMode;default:return H}},
playerState:function(H,U){H=H===void 0?OC.playerState:H;switch(U.type){case "SET_PLAYER_STATE":return U.payload.playerState;default:return H}},
isFullscreen:function(H,U){H=H===void 0?OC.isFullscreen:H;switch(U.type){case "SET_IS_FULLSCREEN":return U.payload.isFullscreen;default:return H}},
isSmallScreenSqueezeback:function(H,U){H=H===void 0?OC.isSmallScreenSqueezeback:H;switch(U.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return U.payload.isSmallScreenSqueezeback;default:return H}},
isShortsPipActive:function(H,U){H=H===void 0?OC.isShortsPipActive:H;switch(U.type){case "SET_IS_SHORTS_PIP_ACTIVE":return U.payload.isShortsPipActive;default:return H}},
isPlaybackStarted:function(H,U){H=H===void 0?OC.isPlaybackStarted:H;switch(U.type){case "SET_IS_PLAYBACK_STARTED":return U.payload.isPlaybackStarted;default:return H}}});var k4c={currentMode:"canvas-hidden"};var Ojt=function(){return function(H){return function(U){var A=H(U);_.yr(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[U],!0);return A}}};var buh,Dcc;buh=new _.r1;_.aL=new _.g3("WATCH_PLAYER_PROMISE_TOKEN");_.dNB=new _.r1;_.Oum=new _.g3("SHORTS_PLAYER_PROMISE_TOKEN");Dcc=new _.g3("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var uWK=function(){return function(H){return function(U){U.type==="ENTITY_LOADED"&&_.lx().resolve(_.aL).then(function(A){var M;(M=A.dispatchReduxAction)==null||M.call(A,U)});
return H(U)}}};var uOK={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var A60=Z2({additionalContext:function(H,U){H=H===void 0?uOK.additionalContext:H;switch(U.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var A;return(A=U.payload)!=null?A:"";default:return H}},
impersonatedChannelUrl:function(H,U){H=H===void 0?uOK.impersonatedChannelUrl:H;switch(U.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var A;return(A=U.payload)!=null?A:"";default:return H}},
selectedVideoIds:function(H,U){H=H===void 0?uOK.selectedVideoIds:H;switch(U.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var A={};return Object.assign({},H,(A[U.payload]=!0,A));case "VIDEO_UNSELECTED":return U=U.payload,H=Object.assign({},H),delete H[U],H;default:return H}}});var Zuk={parentClickTrackingParams:""};var ML8=Z2({parentClickTrackingParams:function(H,U){H=H===void 0?Zuk.parentClickTrackingParams:H;switch(U.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return U.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return H}}});var foH=function(H){return _.zQ({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:H})},J7p=function(H){return _.zQ({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:H})};var KlH={stepStates:{}};var WI4=Z2({stepStates:function(H,U){H=H===void 0?KlH.stepStates:H;switch(U.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var A=H,M=U.payload,W,w,d;H={};U={selectionStates:Object.assign({},(d=(W=A[M.stepId])==null?void 0:W.selectionStates)!=null?d:{},(H[M.token]={isSelected:M.isSelected},H)),userQuery:(w=A[M.stepId])==null?void 0:w.userQuery};W={};return Object.assign({},A,(W[M.stepId]=U,W));case "TALK_TO_RECS_UPDATE_USER_QUERY":return W=H,w=U.payload,d=
{selectionStates:Object.assign({},(M=(A=W[w.stepId])==null?void 0:A.selectionStates)!=null?M:{}),userQuery:{userQuery:w.userQuery,token:w.userQueryToken}},A={},Object.assign({},W,(A[w.stepId]=d,A));default:return H}}});var oTh,Fln,sVr;oTh=function(H){return _.zQ({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:H})};
Fln=function(H){return _.zQ({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:H})};
_.Wu=function(H){return _.zQ({type:"SET_CURRENT_PAGE_TYPE",payload:H})};
_.PrH=function(H){return _.zQ({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:H})};
sVr=function(H){return _.zQ({type:"SET_CHIP_BAR_IS_STICKY",payload:H})};var Txh={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"};_.nTz=function(H){return _.zQ({type:"SET_PLAYER_STATE",payload:{playerState:H}})};var u1={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:Iu_(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var w6h=Z2({isTheaterMode:function(H,U){H=H===void 0?Iu_():H;switch(U.type){case "SET_IS_THEATER_MODE":return U.payload.isTheaterMode;default:return H}},
isWatchActive:function(H,U){H=H===void 0?u1.isWatchActive:H;switch(U.type){case "SET_IS_WATCH_ACTIVE":return U.payload.isWatchActive;default:return H}},
isLearningJourneyActive:function(H,U){H=H===void 0?u1.isLearningJourneyActive:H;switch(U.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return U.payload.isLearningJourneyActive;default:return H}},
isWatchFullscreen:function(H,U){H=H===void 0?u1.isWatchFullscreen:H;switch(U.type){case "SET_IS_WATCH_FULLSCREEN":return U.payload.isWatchFullscreen;default:return H}},
isWatchNarrowWidth:function(H,U){H=H===void 0?u1.isWatchNarrowWidth:H;switch(U.type){case "SET_IS_WATCH_NARROW_WIDTH":return U.payload.isWatchNarrowWidth;default:return H}},
isSwatcherooActive:function(H,U){H=H===void 0?u1.isSwatcherooActive:H;switch(U.type){case "SET_IS_SWATCHEROO_ACTIVE":return U.payload.isSwatcherooActive;default:return H}},
isWatchRetroMode:function(H,U){H=H===void 0?u1.isWatchRetroMode:H;switch(U.type){case "SET_IS_WATCH_RETRO_MODE":return U.payload.isWatchRetroMode;default:return H}},
isLiveChatCollapsed:function(H,U){H=H===void 0?u1.isLiveChatCollapsed:H;switch(U.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return U.payload.isLiveChatCollapsed;default:return H}},
openEngagementPanels:function(H,U){H=H===void 0?u1.openEngagementPanels:H;var A=[].concat(_.vI(H));switch(U.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return A.push(U.payload.panelToAdd),A;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return A.splice(A.indexOf(U.payload.panelToRemove),1),A;default:return H}},
playerState:function(H,U){H=H===void 0?u1.playerState:H;switch(U.type){case "SET_PLAYER_STATE":return U.payload.playerState;default:return H}},
watchScrollTop:function(H,U){H=H===void 0?u1.watchScrollTop:H;switch(U.type){case "SET_WATCH_SCROLL_TOP":return U.payload.watchScrollTop;default:return H}},
watchWindowSize:function(H,U){H=H===void 0?u1.watchWindowSize:H;switch(U.type){case "SET_WATCH_WINDOW_SIZE":return U.payload.watchWindowSize;default:return H}}});var NLk={surveyFeedbackData:{feedbackTokens:[]}};var X64=Z2({surveyFeedbackData:function(H,U){H=H===void 0?NLk.surveyFeedbackData:H;switch(U.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return U.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},H,U.payload);default:return H}}});var QpN={};var f8_=void 0;_.S("web_enable_redux_store_on_demand")||(f8_=ZjE());var SG3=function(H,U,A){var M=this;this.listId=H;this.JSC$13337_updateCallback=U;this.isOfflineVideoCallback=A;_.Lq().subscribe(function(){M.handleUpdate()})};
SG3.prototype.getPlaylistData=function(){var H=_.Lq().getState().entities;if(this.listId&&this.listId!=="PPSV"){var U=C88(H,this.listId,!0),A=_.BO(this.listId,"mainPlaylistEntity"),M,W;H=H==null?void 0:(M=H.mainPlaylistEntity)==null?void 0:(W=M[A])==null?void 0:W.title;return J6K(U,H,this.listId)}U=_.ovh(bmE(H));H=_.ovh(_.Ac(H));H=U.concat(H);return J6K(H)};
SG3.prototype.getPlaylistId=function(){return this.listId};
SG3.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13337_updateCallback(this.listId,this.getPlaylistData(),{})};var Z4=function(H,U,A,M){M=M===void 0?[]:M;this.JSC$13340_playlistNetworkManager=H;this.listId=U;this.JSC$13340_updateCallback=A;this.videoIds=M;this.pendingUpdates=[];this.currentIndex=0};
Z4.prototype.JSC$13340_setCurrentIndex=function(H){this.currentIndex=H};
Z4.prototype.setListId=function(H){this.listId=H};
var pvp=function(H,U){H.currentCreateRequest&&H.currentCreateRequest.cancel(U);H.currentUpdateRequest&&H.currentUpdateRequest.cancel(U);H.currentRefreshRequest&&H.currentRefreshRequest.cancel(U)};
Z4.prototype.delete=function(){pvp(this,"PROXY DELETED")};
Z4.prototype.addVideos=function(H,U,A){var M=this;A!==void 0?this.videoIds.splice.apply(this.videoIds,[A,0].concat(_.vI(H))):this.videoIds.push.apply(this.videoIds,_.vI(H));this.listId||this.currentCreateRequest?(H.forEach(function(W,w){W={addedVideoId:W,action:"ACTION_ADD_VIDEO"};A&&(W.addedVideoPosition=A+w);M.pendingUpdates.push(W)}),f9(this)):LlK(this,U.onCreateListCommand)};
var RAw=function(H,U,A,M,W){rtN(H.videoIds,U,A);U>H.currentIndex&&A<=H.currentIndex?H.JSC$13340_setCurrentIndex(H.currentIndex+1):U===H.currentIndex?H.JSC$13340_setCurrentIndex(A):U<H.currentIndex&&A>=H.currentIndex&&H.JSC$13340_setCurrentIndex(H.currentIndex-1);H.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:M,movedSetVideoIdPredecessor:W});f9(H)},LlK=function(H,U){pvp(H,"OBSOLETE");
H.currentCreateRequest=ETh(H.JSC$13340_playlistNetworkManager,U,H.videoIds);_.bR(H.currentCreateRequest,function(){H.currentCreateRequest=void 0}).then(function(A){H.setListId(A.playlistId);
H.pendingUpdates.length>0?f9(H):mNm(H)})},f9=function(H){if(H.pendingUpdates.length!==0&&(H.currentRefreshRequest&&H.currentRefreshRequest.cancel("OBSOLETE"),!H.currentUpdateRequest&&!H.currentCreateRequest)){var U=H.pendingUpdates.splice(0,H.pendingUpdates.length);
H.currentUpdateRequest=H.JSC$13340_playlistNetworkManager.updatePlaylist(H.listId,U);_.bR(H.currentUpdateRequest,function(){H.currentUpdateRequest=void 0}).then(function(){H.pendingUpdates.length>0?f9(H):mNm(H)}).thenCatch(function(){H.pendingUpdates.unshift.apply(H.pendingUpdates,_.vI(U))})}},mNm=function(H){H.currentRefreshRequest=_.gTy(H.JSC$13340_playlistNetworkManager,H.listId,H.currentIndex,H.videoIds[H.currentIndex]);
_.bR(H.currentRefreshRequest,function(){H.currentRefreshRequest=void 0}).then(function(U){H.JSC$13340_updateCallback(U.playlistId,U.playlistPanelRenderer,U.autoplayRenderer)})};
Z4.prototype.size=function(){return this.videoIds.length};var aow=function(H,U,A,M){M=M===void 0?[]:M;Z4.call(this,H,U,A,M);this.JSC$13340_playlistNetworkManager=H;this.listId=U;this.JSC$13340_updateCallback=A;this.videoIds=M};
_.R(aow,Z4);_.Jq=function(H,U,A,M,W,w,d){W=W===void 0?[]:W;d=d===void 0?lV:d;Z4.call(this,H,U,A,W);this.JSC$13340_playlistNetworkManager=H;this.listId=U;this.JSC$13340_updateCallback=A;this.onAuthChange=M;this.videoIds=W;this.storage=w;this.cookieReader=d;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.av(_.Fl,this.checkLoggedInStatusChange.bind(this),1E3)};
_.R(_.Jq,Z4);_.X=_.Jq.prototype;_.X.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.av(_.Fl,this.checkLoggedInStatusChange.bind(this),1E3)};
_.X.JSC$13340_setCurrentIndex=function(H){Z4.prototype.JSC$13340_setCurrentIndex.call(this,H);this.store()};
_.X.delete=function(){_.Fl.cancelJob(this.queueSapisIdJob);Z4.prototype.delete.call(this)};
_.X.setListId=function(H){Z4.prototype.setListId.call(this,H);this.store()};
_.X.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var xNk=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],zAK=["playerResponse","videoDetails"],Cr2=["response","currentVideoEndpoint","watchEndpoint","videoId"],tBm=["response","currentVideoEndpoint","watchEndpoint","playlistId"],c7m=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],y7H=["response","contents","twoColumnWatchNextResults","playlist","playlist"],BLr=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
r7B=["response","contents","twoColumnWatchNextResults"];var K9={},sjV=(K9.WEB_UNPLUGGED="^unplugged/",K9.WEB_UNPLUGGED_ONBOARDING="^unplugged/",K9.WEB_UNPLUGGED_OPS="^unplugged/",K9.WEB_UNPLUGGED_PUBLIC="^unplugged/",K9.WEB_CREATOR="^creator/",K9.WEB_KIDS="^kids/",K9.WEB_EXPERIMENTS="^experiments/",K9.WEB_MUSIC="^music/",K9.WEB_REMIX="^music/",K9.WEB_MUSIC_EMBEDDED_PLAYER="^music/",K9.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",K9);var Yq0,ETh;Yq0=function(H,U){this.networkManager=H;this.innertubeTransportService=U};
ETh=function(H,U,A){if(!_.p(U,_.K$))return _.H$(Error("Pf"));_.p(U,_.K$).videoIds=A;A={create_playlist_title:_.hP("QUEUE",void 0,"Queue")};return FIc(_.Js(H.innertubeTransportService,U,A),KIc)};
_.gTy=function(H,U,A,M){U={videoId:M,playlistId:U,playlistIndex:A};A=_.RE(yKy);return FIc(_.oz(H.innertubeTransportService,U,A),Ph0)};
Yq0.prototype.updatePlaylist=function(H,U){return FIc(_.Js(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:H,actions:U}}),oNr)};var eAr=function(H){this.storage=H},DN3;
eAr.prototype.store=function(H,U){U=U===void 0?0:U;if(this.storage&&H.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",H),this.storage.set("TLPQindex",String(U)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(A){}};
eAr.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
eAr.prototype.getPlaylistId=function(){if(!this.storage)return null;var H=null;try{H=this.storage.get("TLPQplaylist")}catch(U){}return H};var p64=["navigationEndpoint","watchEndpoint","videoId"],SdK=["nextButtonVideo","watchEndpoint","videoId"];_.jp=new _.g3("NETWORK_TOKEN");_.SI=new _.g3("PAGE_TOKEN");_.FX=new _.g3("PLAYLIST_TOKEN");var $Nh;$Nh=new _.g3("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.IE=new _.g3("INNERTUBE_TRANSPORT_TOKEN");var loh,Pd,YGK,qGw,k6z,vTr;loh=new Set(["ci","cr","carml"]);Pd=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13387_parkedJobs=new Map;this.parkedProcessors=new Map};
_.sC=function(){Pd.instance||(Pd.instance=new Pd);return Pd.instance};
Pd.prototype.onAny=function(H){return _.G6K(this,H,2)};
Pd.prototype.parkOrScheduleJob=function(H,U,A,M,W){_.n9(this,A)?_.MP().addJob(H,U,M):(W&&(H=YGK(H),qGw(this,H,U,A,W)),W=this.JSC$13387_parkedJobs.get(A),W||(this.JSC$13387_parkedJobs.set(A,[]),W=this.JSC$13387_parkedJobs.get(A)),W.push({job:H,priority:U,delay:M}))};
Pd.prototype.addListener=function(H,U,A){A&&(U=YGK(U),qGw(this,U,0,H,A));A=this.parkedProcessors.get(H);A||(this.parkedProcessors.set(H,[]),A=this.parkedProcessors.get(H));A.push(U)};
Pd.prototype.processSignal=function(H){if(!_.n9(this,H)){this.inProgressSignals.add(H);var U=this.JSC$13387_parkedJobs.get(H);if(U){U=_.b(U);for(var A=U.next();!A.done;A=U.next())A=A.value,_.MP().addJob(A.job,A.priority,A.delay);this.JSC$13387_parkedJobs.delete(H)}if(U=this.parkedProcessors.get(H)){U=_.b(U);for(A=U.next();!A.done;A=U.next())A=A.value,A();this.parkedProcessors.delete(H)}this.signals.push(H);this.inProgressSignals.delete(H)}};
_.n9=function(H,U){return loh.has(U)||_.xV("IS_HOMEPAGE_COLD")||_.xV("IS_RESULTS_PAGE_COLD")||_.xV("IS_WATCH_PAGE_COLD")?H.signals.indexOf(U)>=0:!0};
YGK=function(H){var U=!1;return function(){U||(U=!0,H())}};
qGw=function(H,U,A,M,W){if(hAp.has(M))_.MP().addJob(U,A,W);else{var w=H.compoundSignals.get(M);w&&_.MP().addJob(function(){_.n9(H,M)||(w.isTimeoutConditionSatisfied?_.MP().addJob(U,A):w.timeoutConditionObservers.push(function(){_.MP().addJob(U,A)}))},A,W)}};
_.G6K=function(H,U,A){if(U.length>1){var M=[],W=Object.create(null);U=_.b(U);for(var w=U.next();!w.done;w=U.next())w=w.value,W[w]||(M.push(w),W[w]=!0);U=M}if(U.length===1)return U[0];w=U;M="";W=A===2?"|":"&";w.sort();w=_.b(w);for(var d=w.next();!d.done;d=w.next())M+=d.value+W;if(!H.compoundSignals.get(M)){W=0;w=[];d=_.b(U);for(var O=d.next();!O.done;O=d.next())O=O.value,W++,_.n9(H,O)||w.push(O);(A=A===2)&&W>w.length||!A&&!w.length?H.signals.push(M):k6z(H,M,A,U,w)}return M};
k6z=function(H,U,A,M,W){var w=W.length,d=function(){A||--w===0?H.processSignal(U):vTr(H,U)};
W=_.b(W);for(var O=W.next();!O.done;O=W.next())H.addListener(O.value,d);H.compoundSignals.set(U,{signals:M,isOnAny:A,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});vTr(H,U)};
vTr=function(H,U){if(!_.n9(H,U)){var A=H.compoundSignals.get(U);if(A&&!A.isTimeoutConditionSatisfied){for(var M=!1,W=0,w=0,d=_.b(A.signals),O=d.next();!O.done;O=d.next()){var f=O.value;O=!_.n9(H,f);hAp.has(f)?M=!0:(f=H.compoundSignals.get(f))?O&&!f.isTimeoutConditionSatisfied&&(w++,A.isInitialized||f.timeoutConditionObservers.push(function(){vTr(H,U)})):O&&W++}A.isInitialized=!0;
A.isOnAny?M&&(A.isTimeoutConditionSatisfied=!0):W===0&&w===0&&(A.isTimeoutConditionSatisfied=!0);if(A.isTimeoutConditionSatisfied)for(A=_.b(A.timeoutConditionObservers),M=A.next();!M.done;M=A.next())M=M.value,M()}}};
Pd.prototype.processSignal=Pd.prototype.processSignal;Pd.prototype.parkOrScheduleJob=Pd.prototype.parkOrScheduleJob;Pd.prototype.onAny=Pd.prototype.onAny;_.eC("ytsignals.getInstance",_.sC);Pd.prototype.onAny=Pd.prototype.onAny;Pd.prototype.parkOrScheduleJob=Pd.prototype.parkOrScheduleJob;Pd.prototype.processSignal=Pd.prototype.processSignal;var hAp=new Set(["eop","eocs","dl","pcl"]);_.ZB=new _.g3("MINIPLAYER_SERVICE");var N5,TLz,jV3;N5=function(H,U,A){var M=_.a1.getInstance();if(!DN3){var W=new dhF;var w=void 0,d=_.gD("ID_TOKEN");d&&W.isAvailable()&&(w=new fO(W,"yt-queue"+d));DN3=new eAr(w)}W=DN3;w=_.sC();this.JSC$13394_actionRouter=M;this.JSC$13394_pageManager=H;this.playlistManager=U;this.JSC$13394_playlistNetworkManager=A;this.storage=W;this.signals=w;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.SZ=function(){if(!TLz){var H=_.lx(),U=H.resolve(_.$V(_.SI)),A=H.resolve(_.$V(_.jp)),M=H.resolve(_.$V(_.FX));H=H.resolve(_.IE);TLz=new N5(U,M,new Yq0(A,H))}return TLz};
jV3=function(H,U,A){if(A){var M;if(((M=H.responsePlaylistData)==null?void 0:M.playlistId)!==A)return}H.responsePlaylistData&&(A=a8c(U,H.responsePlaylistData),H.responsePlaylistData=(0,_.dG.unsafeClone)(H.responsePlaylistData),zLF(H.responsePlaylistData,A));A=H.temporaryItems.findIndex(function(W){return W.videoId===U});
A>-1&&H.temporaryItems.splice(A,1);_.p9(H,_.L9(H,H.response?H.response.autoplayRenderer:void 0))};
_.Io2=function(H,U){if(H.responsePlaylistData){var A=xdE(U,H.responsePlaylistData);zLF(H.responsePlaylistData,A);if(H.queueProxy){var M=H.queueProxy;A<0||(M.videoIds.splice(A,1),A<M.currentIndex&&M.JSC$13340_setCurrentIndex(M.currentIndex-1),M.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:U}),f9(M))}}_.p9(H,_.L9(H,H.response?H.response.autoplayRenderer:void 0))};
N5.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.p9(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
N5.prototype.setPlaylistData=function(H,U,A){this.temporaryItems=[];this.listId=H;this.responsePlaylistData=U;_.p9(this,_.L9(this,A))};
var QVB=function(H){return(H==null?0:H.playlistId)?H.playlistId:"PPSV"},VBh=function(H){return H&&H.playlistId?H.playlistId==="PPSV"?!0:xIF(_.Lq().getState().entities,H.playlistId):!1};
N5.prototype.isPlayingOfflineVideo=function(){return this.response?VBh(this.response):!1};
N5.prototype.closeMiniplayer=function(H){var U=this.queueProxy&&this.queueProxy.size()<=1,A=_.lx().resolve(_.ZB);if(!this.queueProxy||U)this.queueProxy&&this.clearQueue(),A.close(!0);else{A.pipController.getWindow()&&window.focus();U=this.responsePlaylistData;var M=this.temporaryItems.length+(U&&U.contents?U.contents.length:0);U=_.hP("QUEUE_CLEARED_UNPLURALIZED")||_.k2("QUEUE_CLEARED",M);U=_.mH(U);A=_.hP("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");M=_.hP("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.k2("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",M);var W=_.hP("MINIPLAYER_CLOSE",void 0,"Close"),w=_.hP("CANCEL",void 0,"Cancel");_.dg(this.JSC$13394_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Nh(A),dialogMessages:[_.Nh(M)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Nh(W),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
U]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Nh(w)}}}}}}],H)}};
_.L9=function(H,U){var A={},M=H.response;A.autoplayRenderer=U;if(!H.responsePlaylistData&&!H.temporaryItems.length)return!M||!M.hasRelatedVideoData&&_.S("kevlar_prefetch_data_augments_network_data")||(A.playerData={rvs:M.relatedVideoArgs,endScreenRenderer:M.endScreenRenderer}),A;A.playerData={};if(H.index===void 0)return _.sD(Error("Rf")),A;A.panel=H.responsePlaylistData?(0,_.dG.unsafeClone)(H.responsePlaylistData):{titleText:_.Nh(_.hP("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
U=A.panel;if(U.contents)for(var W=_.b(H.temporaryItems),w=W.next();!w.done;w=W.next())U.contents.push({playlistPanelVideoRenderer:w.value});H.queueProxy&&M&&M.playingVideo&&M.playingVideoId&&!gNK(M.playingVideoId,A.panel)&&(U=M.playingVideo,W=A.panel,w=H.index,W.contents&&W.contents.splice(w===void 0?0:w,0,{playlistPanelVideoRenderer:U}));M&&M.playingVideoId&&(U=H.index,W=A.panel,U=!W.contents||U>=W.contents.length?void 0:W.contents[U].playlistPanelVideoRenderer,U&&U.videoId===M.playingVideoId||(U=
a8c(M.playingVideoId,A.panel),H.index=U!==-1?U:H.index?H.index-1:0));U=mdM(H.index+1,A.panel);W=void 0;H.index>0&&(W=mdM(H.index-1,A.panel));if(W||U)A.autoplayRenderer=LI_(U,W,A.autoplayRenderer);!U&&(M==null?0:M.relatedVideoArgs)&&(A.playerData.rvs=M.relatedVideoArgs);M=M?M.playlistIndexOffset:0;H.queueProxy?c6F(A.panel,H.index,M,EN7,!0,!0,!0):c6F(A.panel,H.index,M);A.playerData.playlistPanelRenderer=A.panel;return A};
N5.prototype.isMiniplayerActive=function(){return _.lx().resolve(_.ZB).isMiniplayerActive()};
_.p9=function(H,U){H.playlistManager.setAutoplayRenderer(U.autoplayRenderer||null);H.playlistManager.setPlaylistData(U.panel||null);U.playerData&&H.playlistManager.setPlayerPlaybackControlData(U.playerData)};var y6F="#";var HP2={},UHg={},AQH={},MPz={},W_y={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:(HP2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",HP2),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:(UHg.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",UHg),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:(AQH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",AQH),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:(MPz.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",MPz),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 Pk_=[{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:W_y},{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:W_y}}];var bQr;_.BC=[[["dGZza2luZCNkdG4wM3dybHg=","dmFsdWUjamJuNXhuNm56Nms2"],"U1RBUlQjaHIwcWFvcWpxa3htQURfUExBQ0VNRU5UX0tJTkRf"]];
bQr=[[["bWFyeSNkM21kYzlycXpxZHByaQ==",null,null],[null,["MjZyeXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjbzY1MHk5N3Vl","YmU3Nm9xc3R5bGUtc2NvcGUjeG14ZTJv"],null],["ZmgyZXI1bWFzdGhlYWQtYWQjMXJxNWFn",["bmRlcmVyI3RkbHBhc2Zlazhnanl0ZC1yaWNoLWdyaWQtcmU="],null],[null,["bmRlcmVyIzkyMWo0cGxjZGFrN3l0ZC1yaWNoLWdyaWQtcmU=","ajgxa3Nqc3R5bGUtc2NvcGUjazE1bDBz"],null],[null,["cmVyI3VrcnNwdXVrd3E2a3l0ZC1iYW5uZXItcHJvbW8tcmVuZGU=","Y3lwb2poc3R5bGUtc2NvcGUjejBjdzBv"],null],[null,["cmVuZGVyZXIjbzM0bnZzdDd2bTc4eXRkLWFkLXNsb3Qt"],
null]],[["cHlnZTdod2lwbGF5ZXItYWRzIzJ3MjA=",null,null]]];_.y3=["b2JhbENhbGxiYWNrcyNkMWNvMXJsMmtqeDBnbA==","ZXRlY3RlZCN4c2F3djF3MTY1bXpvbkFibm9ybWFsaXR5RA==","OHRjaTR1cHVmdzhjb25BZFNraXAj","X3Jlc3BvbnNlI29uazN3d3o4OWh0cnJhd19wbGF5ZXI=","cyNnODBvNjB1cWI0bHRhZFNsb3Q="];_.Rz="b2JhbENhbGxiYWNrcyNkMWNvMXJsMmtqeDBnbA== ZXRlY3RlZCN4c2F3djF3MTY1bXpvbkFibm9ybWFsaXR5RA== OHRjaTR1cHVmdzhjb25BZFNraXAj X3Jlc3BvbnNlI29uazN3d3o4OWh0cnJhd19wbGF5ZXI= NTBrY2p3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjcXo0NTd1cA== eW16dXkyNnY0N2h5YWJfc2FfZWYj cyNnODBvNjB1cWI0bHRhZFNsb3Q=".split(" ");var EC;EC=function(H,U,A){this.c2R=H;this.jJL=U;this.aLc=A};
_.xkh=[new EC("b.f_",!1,0),new EC("j.s_",!1,2),new EC("r.s_",!1,4),new EC("e.h_",!1,6),new EC("i.s_",!0,8),new EC("s.t_",!1,10),new EC("p.h_",!1,12),new EC("s.i_",!1,14),new EC("f.i_",!1,16),new EC("a.b_",!1,18),new EC("a.o_",!1),new EC("g.o_",!1,22),new EC("p.i_",!1,24),new EC("p.m_",!1),new EC("n.k_",!0,20),new EC("i.f_",!1),new EC("a.s_",!0),new EC("m.c_",!1),new EC("n.h_",!1,26),new EC("o.p_",!1),new EC("m.p_",!0,28),new EC("o.a_",!1),new EC("d.p_",!1),new EC("e.i_",!1)].reduce(function(H,U){H[U.c2R]=
U;return H},{});var w3p=function(){};
w3p.prototype.flush=function(H,U){H=H===void 0?[]:H;U=U===void 0?!1:U;if(_.S("enable_client_streamz_web")){H=_.b(H);for(var A=H.next();!A.done;A=H.next())A=Ufr(A.value),this.rootSpec&&_.CN(A,2,this.rootSpec),A={serializedIncrementBatch:_.I_(A.JSC$9910_serializeBinary())},_.Fx("streamzIncremented",A,{sendIsolatedPayload:U})}};
var $dc=function(){};
_.R($dc,w3p);var X3w=function(H){var U=new vRz;var A=new q53;A=_.Mu(A,1,"botguard");H=_.Mu(A,2,H);this.rootSpec=_.tR(U,1,TOz,H)};
_.R(X3w,w3p);var Cq,iPw=new Map;var ZQh,Gtr,QjF,hLF,TUN,XBM,J_c,WhF;ZQh=2;Gtr=2;QjF=2;hLF=2;TUN=2;XBM=2;J_c=2;WhF=new vD3;var dHh,OPK;dHh=function(){this.ongoingFlowNonces=new Map};
_.DY=function(){OPK||(OPK=new dHh);return OPK};
_.ep=function(H,U,A){return{eventType:{flowEventNamespace:H,flowEventType:U},metadata:A,statusCode:void 0,csn:void 0,can:void 0}};
_.Ck7=function(H,U){var A=_.DY(),M=u5k(A,U,!0);A.logFlowEvent(H,U,M,void 0)};
dHh.prototype.logFlowEvent=function(H,U,A,M){U={flowNonce:A||u5k(this,U),flowType:U,flowEventType:H.eventType};H.metadata&&(U.flowMetadata=H.metadata);H.statusCode!==void 0&&(U.flowEventStatus=H.statusCode);H.csn&&(U.csn=H.csn);H.can&&(U.can=H.can);_.Fx("flowEvent",U,M)};
var u5k=function(H,U,A){A=A===void 0?!1:A;var M=H.ongoingFlowNonces.get(U);if(!M||A)M=MZ(16),H.ongoingFlowNonces.set(U,M);return M};_.ZPh=new kUH;var r_0={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",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var mB=function(H,U,A,M,W,w,d){A=A===void 0?!1:A;M=M===void 0?!1:M;w=w===void 0?_.SZ():w;this.e7=!1;this.uYF=H;this.yKH=U;this.fmB=A;this.fromHistory=M;this.previousVideoId=W;this.pgE=w;this.tempData=d;this.cJL=new _.TiK};
_.R(mB,xg);mB.prototype.validate=function(H){return!(!H.data.playerResponse||H.data.page!=="watch"&&H.data.page!=="learning_journey_watch"&&H.data.page!=="shorts"||this.e7)};
mB.prototype.handle=function(H){var U=this,A=_.p(H.endpoint,_.sH),M=_.p(H.endpoint,_.kO);if(_.S("kevlar_continue_playback_without_player_response")&&(A==null?0:A.videoId)&&this.previousVideoId&&(A==null?void 0:A.videoId)===this.previousVideoId&&(A==null?0:A.continuePlayback)&&!this.fromHistory)this.uYF.resolve();else{var W={};A?W.watch_endpoint=A:M&&(W.watch_endpoint=M,M.endTimeSeconds&&(W.end=M.endTimeSeconds));H.data.page==="watch"?(H.data.filler||this.fmB||(_.dH("cfg"),_.a1.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(W,fgr(this,H.endpoint)),_.S("enable_masthead_quartile_ping_fix")&&Object.assign(W,JQ3(this)),Object.assign(W,void 0),H.data.forceExternalPlaylist&&(W.external_list=!0)):H.data.page==="shorts"?_.a1.getInstance().triggerAction("yt-start-loading-shorts"):H.data.page==="learning_journey_watch"&&_.a1.getInstance().triggerAction("yt-start-loading-learning-journey");if(A=this.yKH()){try{A.loadVideoWithPlayerResponse(H.data.playerResponse,W),A.getPlayerPromise().then(this.uYF.resolve)}catch(w){_.sD(w),
this.uYF.resolve()}this.e7=!0;A.getPlayerPromise().then(function(w){w.addEventListener("onAbnormalityDetected",function(){var d=H.data.playerResponse,O=w.getVideoData().cpn;J_c=0;_.bPw=O;if(O=aC0(d))U.cJL.increment("IN_PLAYER"),_.$O(5),_.S("ab_st_vid_ks")?w.pauseVideo(!0):w.stopVideo(),d.playabilityStatus=Object.assign({},d.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:O}}),d.videoDetails=void 0,_.a1.getInstance().triggerOptionalAction("yt-updated-playability-status",
d.playabilityStatus)})})}else _.Na(Error("Uf"))}};
var fgr=function(H,U){var A=_.p(U,_.sH);if(U&&A&&A.playlistId&&A.videoId&&(H=H.pgE,H.queueProxy?(H=H.queueProxy,A=H.listId===A.playlistId?H.attributionData.get(A.videoId):void 0):A=void 0,A))return{queue_info:A}},JQ3=function(H){var U;
if((U=H.tempData)==null?0:U.adpings)return{adpings:H.tempData.adpings}};var gI=function(H,U,A){this.e7=!1;this.rJI=H;this.x78=U;this.lZc=A};
_.R(gI,xg);gI.prototype.validate=function(H){return!!_.dG.getValueByKeys.apply(null,[H.data].concat(_.vI(r7B)))};
gI.prototype.handle=function(H){var U=this;this.rJI.promise.then(function(){var A=H.data;var M=_.dG.getValueByKeys.apply(null,[A].concat(_.vI(xNk))),W=_.dG.getValueByKeys.apply(null,[A].concat(_.vI(y7H))),w=_.dG.getValueByKeys.apply(null,[A].concat(_.vI(Cr2)));var d=(d=_.dG.getValueByKeys.apply(null,[A].concat(_.vI(zAK))))?{videoId:d.videoId,thumbnail:d.thumbnail,title:d.title?_.Nh(d.title):void 0,shortBylineText:d.author?_.Nh(d.author):void 0}:void 0;var O=void 0;_.S("web_get_playlist_id_from_current_endpoint_ks")||
(O=_.dG.getValueByKeys.apply(null,[A].concat(_.vI(tBm))));var f=_.dG.getValueByKeys.apply(null,[A].concat(_.vI(BLr))),J=_.dG.getValueByKeys.apply(null,[A].concat(_.vI(c7m))),F=!!f||!!J&&!!J.results&&J.results.length>0,P=0;W&&W.currentIndex&&W.localCurrentIndex&&(P=W.currentIndex-W.localCurrentIndex);W&&W.playlistId&&(O=W.playlistId);A={rawResponse:A,autoplayRenderer:M,hasRelatedVideoData:F,playingVideo:d,playingVideoId:w,playlistPanelRenderer:W,playlistId:O,playlistIndex:W&&W.currentIndex,relatedVideoArgs:f,
endScreenRenderer:J,playlistIndexOffset:P};a:{M=U.lZc;W=U.x78;M.response=A;if(VBh(A))M.downloadPlaylistProxy&&M.downloadPlaylistProxy.getPlaylistId()===QVB(A)||(M.downloadPlaylistProxy=new SG3(QVB(A),M.setPlaylistData.bind(M),M.isPlayingOfflineVideo.bind(M))),M.responsePlaylistData=M.downloadPlaylistProxy.getPlaylistData(),M.listId=QVB(A),M.index=0;else if(A.playlistPanelRenderer&&A.playlistId&&A.autoplayRenderer)A.playlistId.startsWith("TLPQ")?M.queueProxy?M.listId===A.playlistId?(M.index=A.playlistIndex,
M.responsePlaylistData=A.playlistPanelRenderer,M.queueProxy.JSC$13340_setCurrentIndex(M.index)):A.playingVideoId&&M.index!==void 0&&W.clientParams.autoSaveToQueue&&(M.index+=1,M.queueProxy.JSC$13340_setCurrentIndex(M.index),M.queueProxy.addVideos([A.playingVideoId],{},M.index)):(M.queueProxy=new _.Jq(M.JSC$13394_playlistNetworkManager,A.playlistId,M.setPlaylistData.bind(M),M.clearQueue.bind(M),_.Chc(A.playlistPanelRenderer),M.storage),M.responsePlaylistData=A.playlistPanelRenderer,M.listId=A.playlistId,
M.index=A.playlistIndex):(M.index=A.playlistIndex,M.listId!==A.playlistId&&M.clearQueue(),M.responsePlaylistData=A.playlistPanelRenderer,M.listId=A.playlistId,M.playlistProxy=new aow(M.JSC$13394_playlistNetworkManager,A.playlistId,M.setPlaylistData.bind(M),_.Chc(A.playlistPanelRenderer)));else if(!M.queueProxy)M.responsePlaylistData=void 0;else if(A.playingVideoId&&W.clientParams.autoSaveToQueue){if(M.index===void 0){_.sD(Error("Qf"));M.clearQueue();break a}M.queueProxy.videoIds.includes(A.playingVideoId)||
(M.index+=1,M.queueProxy.JSC$13340_setCurrentIndex(M.index),M.queueProxy.addVideos([A.playingVideoId],{},M.index))}_.p9(M,_.L9(M,M.response.autoplayRenderer))}})};var K_K=function(H,U){U=U===void 0?_.SZ():U;hA.call(this);this.f8.push(new gI(this.rK,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},U));this.f8.push(new mB(this.rK,H,!1,!1));_.S("web_response_commands_chunk_processor")&&this.f8.push(new kg)};
_.R(K_K,hA);K_K.prototype.processChunk=function(H){H&&H.data.player===void 0&&this.rK.resolve();hA.prototype.processChunk.call(this,H)};var az=function(H,U){H=H===void 0?{layer:0}:H;this.e7=!1;this.createScreenConfig=H;this.yRk=U;this.createScreenConfig.automatedLogEventSource=9};
_.R(az,xg);az.prototype.validate=function(H){return!(this.e7||!H.endpoint)};
az.prototype.handle=function(H){var U=_.k$(),A,M,W=(M=_.p((A=H.endpoint)==null?void 0:A.commandMetadata,_.Y2))==null?void 0:M.rootVe;this.yRk&&W?_.DJ(U,W,this.yRk,this.createScreenConfig):MYg(U,H.endpoint,this.createScreenConfig);this.e7=!0};var x6=function(H,U){this.e7=!1;this.wFL=H;this.previousVideoId=U};
_.R(x6,xg);x6.prototype.validate=function(H){return _.S("kevlar_continue_playback_without_player_response")&&(H=_.p(H.endpoint,_.sH),(H==null?0:H.videoId)&&this.previousVideoId&&(H==null?void 0:H.videoId)===this.previousVideoId&&(H==null?0:H.continuePlayback))?!1:this.wFL.vfG===0};
x6.prototype.handle=function(H){_.a1.getInstance().triggerAction("yt-stop-old-player",H.data,!0)};var oJw=function(H){H=H===void 0?{layer:0}:H;hA.call(this);this.f8.push(new x6(this));this.f8.push(new az(H));this.f8.push(new qJ(H))};
_.R(oJw,hA);var z1=function(){xg.apply(this,arguments)};
_.R(z1,xg);z1.prototype.validate=function(H){return!!H.data.preconnect};
z1.prototype.handle=function(H){_.ba("bc");H=_.b(H.data.preconnect);for(var U=H.next();!U.done;U=H.next())U=U.value,(new Image).src=U};var F_w=function(H,U,A,M,W,w,d){A=A===void 0?{layer:0}:A;w=w===void 0?_.SZ():w;hA.call(this);if(M)if(W){W=w;this.f8.push(new gI(this.rK,U,W));this.f8.push(new z1);var O,f;this.f8.push(new mB(this.rK,H,!1,!((O=U.clientParams)==null||!O.fromHistory),(f=U.clientParams)==null?void 0:f.previousVideoId,W,U.tempData));var J;this.f8.push(new x6(this,(J=U.clientParams)==null?void 0:J.previousVideoId));var F;(F=U.clientParams)!=null&&F.fromHistory||(A.layer||(A=Object.assign({},A,{layer:0})),this.f8.push(new az(A,
d)),this.f8.push(new qJ(A)))}else this.f8.push(new gI(this.rK,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},w)),this.f8.push(new mB(this.rK,H,!1,!1));else this.f8.push(new x6(this)),this.f8.push(new az(A)),this.f8.push(new qJ(A));_.S("web_response_commands_chunk_processor")&&M&&this.f8.push(new kg)};
_.R(F_w,hA);F_w.prototype.processChunk=function(H){H&&H.data.player===void 0&&this.rK.resolve();hA.prototype.processChunk.call(this,H)};var PP3=function(){this.e7=this.e7=!1};
_.R(PP3,xg);PP3.prototype.validate=function(H){return!this.e7&&!(!H.data.csn||!H.data.rootVe)};
PP3.prototype.handle=function(H){this.e7=!0;_.bH(H.data.csn,H.data.rootVe,3)};var s6K=function(H,U,A){A=A===void 0?{layer:0}:A;hA.call(this);this.f8.push(new mB(this.rK,H));this.f8.push(new az(A));this.f8.push(new qJ(A))};
_.R(s6K,hA);var nJH=function(H,U,A,M,W){A=A===void 0?{layer:0}:A;M=M===void 0?_.SZ():M;hA.call(this);var w=!!U&&!!U.clientParams&&!!U.clientParams.miniplayer;w&&this.f8.push(new PP3);this.f8.push(new gI(this.rK,U,M));this.f8.push(new z1);var d,O;this.f8.push(new mB(this.rK,H,w,!((d=U.clientParams)==null||!d.fromHistory),(O=U.clientParams)==null?void 0:O.previousVideoId,M,U.tempData));var f;this.f8.push(new x6(this,(f=U.clientParams)==null?void 0:f.previousVideoId));var J;(J=U.clientParams)!=null&&J.fromHistory||
(A.layer||(A=Object.assign({},A,{layer:w?3:0})),this.f8.push(new az(A,W)),this.f8.push(new qJ(A)));_.S("web_response_commands_chunk_processor")&&this.f8.push(new kg)};
_.R(nJH,hA);var C9,p3g;C9={};
_.N_B=(C9["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},C9["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},C9["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},C9["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},C9["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},C9["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},C9["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},C9);_.tq=new _.Sx("yt-edu");_.SEz=function(){this.JSC$13492_eduDisplayedThisLoad_={}};
p3g=function(H){var U=_.SEz.getInstance();var A=_.hr("kevlar_tooltip_impression_cap");U=A&&parseInt(_.tq.get(H+"-impression")||0,10)>=A||_.tq.get(H+"-dismissed")?!1:(A=_.N_B[H])&&!U.JSC$13492_eduDisplayedThisLoad_[A.setKey||H]&&(A.titleText&&_.hP(A.titleText)||A.bodyText&&_.hP(A.bodyText))?!0:!1;if(!U)return null;U=_.N_B[H];if(!U)return null;A=U.bodyText?_.hP(U.bodyText):void 0;var M=U.titleText?_.hP(U.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:U.position,popup:{bubbleHintRenderer:{text:M?
_.Nh(M):void 0,detailsText:A?_.Nh(A):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Nh(_.hP("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:H}}]}}}}}}}},{eduImpressionAction:{key:H}}]};
_.aH(_.SEz);var t8E=!1;for(var L_p="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),R_g=[],cd=6;cd>=1;cd--)R_g.push({columnCount:cd,query:cd==1?0:cd*2*107-4+32,className:"grid-"+cd+"-columns",width:cd*2*107+"px"});_.yN=function(H){this.actionRouter_=H=H===void 0?_.a1.getInstance():H;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.EJg(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.EJg=function(H){var U=H.documentWidth_-(H.miniGuideVisible_?72:0)-(H.guidePersistentAndVisible_?240:0)-(H.persistentPanelVisible_?400:0);return R_g.find(function(A){return U>A.query})};
_.aH(_.yN);var mH3=function(){var H=this;this.JSC$13504_keyboardInUse=!1;document.addEventListener("keydown",function(){H.onKeydown()});
document.addEventListener("mousedown",function(){H.JSC$13504_keyboardInUse=!1})},gJ3;
mH3.prototype.isKeyBoardInUse=function(){return this.JSC$13504_keyboardInUse};
mH3.prototype.onKeydown=function(){this.JSC$13504_keyboardInUse=!0};var agK,eZ;_.Bd=new _.Sx("yt-mentions");_.rI=function(){};
agK=function(H,U){return eZ(U,"drag-to-reorder-edu-displayed")};
eZ=function(H,U,A,M,W,w){A=A===void 0?"OPEN_POPUP_POSITION_TOP":A;if(U){if(_.Bd.get(U))return;_.Bd.set(U,!0,M)}if(W&&w!==void 0){U=Number(_.Bd.get(W)||0);if(U>=w)return;_.Bd.set(W,U+1)}return[{openPopupAction:{popupType:"HINT",position:A,popup:{bubbleHintRenderer:{detailsText:H,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.aH(_.rI);var xHg,z_k,CPz;xHg=function(H,U,A,M){this.JSC$13514_taskManager_=H;this.onFulfilled_=typeof U==="function"?U:null;this.onRejected_=typeof A==="function"?A:null;this.JSC$13514_context_=M};
z_k=function(H,U){H.onFulfilled_&&_.TB(H.JSC$13514_taskManager_,function(){H.onFulfilled_.call(H.JSC$13514_context_,U)})};
CPz=function(H,U){H.onRejected_&&_.TB(H.JSC$13514_taskManager_,function(){H.onRejected_.call(H.JSC$13514_context_,U)})};
_.D4=function(H){this.JSC$13517_taskManager_=H;this.callbacks_=[]};
_.D4.prototype.then=function(H,U,A){this.callbacks_.push(new xHg(this.JSC$13517_taskManager_,H,U,A));return this};
_.D4.prototype.onSuccess=function(H){this.callbacks_.forEach(function(U){z_k(U,H)})};
_.D4.prototype.onFailure=function(H){this.callbacks_.forEach(function(U){CPz(U,H)})};
_.D4.prototype.cancel=function(){this.callbacks_.length=0};
UU2(_.D4);_.DkF=null;_.qe=new _.g3("ACTIVITY_TOKEN");var tPw;_.UP=new _.g3("PAGE_REQUEST_TOKEN");tPw=new _.g3("FETCH_PBJ_TOKEN");_.cQB=function(H){if(H.validatedFragments_.length==0)return null;if(!H.mergedPrefetchedData_){for(var U=[],A=_.b(H.validatedFragments_),M=A.next();!M.done;M=A.next()){M=_.b(H.fragmentConfiguration_[M.value].graftedKeys);for(var W=M.next();!W.done;W=M.next())(W=H.prefetchedData_[W.value].trackingParams)&&U.push(W)}H.mergedPrefetchedData_={};Object.assign(H.mergedPrefetchedData_,H.prefetchedData_,{clientSideGrafts:U})}return H.mergedPrefetchedData_};var yQ3;_.$6=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
yQ3=function(H,U,A){if(_.$k8(U))return H.prefetchCache_.get(_.lCN(U,A))};_.l1=new _.g3("NAVIGATION_TOKEN");var B_y=function(H){var U=this;var A=A===void 0?qqF():A;var M=M===void 0?_.lx().resolve(_.l1):M;this.onePickCommand=H;this.JSC$13589_playlistNetworkManager=A;this.navigationManager=M;this.videoPickerBuilder=_.GHh("yt-addtoplaylist");_.FFp(Mbw(WJw(APK(this.videoPickerBuilder.setTitle(H.modalTitle).setSize(1E3).addView(f5n()).addView(ZKr())).addView("youtube"),H.selectButtonLabel)),function(W){U.handleAction(W)})};
B_y.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
B_y.prototype.handleAction=function(H){var U=this;if(H&&this.onePickCommand.listId&&H.action==="picked"&&H.docs){var A=[];H.docs.forEach(function(M){A.push({addedVideoId:M.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13589_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,A).then(function(){_.S("playlist_add_video_hard_reload_killswitch")?U.navigationManager.reload():rQw(U.navigationManager)})}};var e_z=function(){if(this.constructor===e_z)throw new TypeError("Wf");};
_.X=e_z.prototype;_.X.dispose=function(){};
_.X.disconnect=function(){};
_.X.reconnect=function(){};
_.X.observe=function(H,U,A){return{element:H,option:A}};
_.X.unobserveByKey=function(){};var hh8=function(H,U){U=U===void 0?0:U;e_z.call(this);this.viewroot=H;this.defaultPrescanHeight=U;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),H?{root:H,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.R(hh8,e_z);_.X=hh8.prototype;_.X.dispose=function(){this.disconnect();this.handlers.clear()};
_.X.disconnect=function(H){this.isConnected=!1;this.pauseObservingUntilReconnect=H===void 0?!1:H;this.observer.disconnect();H=_.b(this.prescanObservers.values());for(var U=H.next();!U.done;U=H.next())U.value.disconnect()};
_.X.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var H=_.b(this.handlers),U=H.next();!U.done;U=H.next()){var A=_.b(U.value);U=A.next().value;var M=A.next().value;A=!1;M=_.b(M.keys());for(var W=M.next();!W.done;W=M.next())if((W=W.value)&&W.state==="prescan"){A=!0;break}A&&DHk(this,U).observe(U);this.observer.observe(U)}}};
_.X.handleObserveEvent=function(H){H=_.b(H);for(var U=H.next();!U.done;U=H.next()){U=U.value;var A=this.handlers.get(U.target);if(A){var M=U.isIntersecting;A=_.b(A);for(var W=A.next();!W.done;W=A.next()){var w=_.b(W.value);W=w.next().value;w=w.next().value;W&&(W.state==="visible"&&M||W.state==="hidden"&&!M)&&(w(U.target,W.state),W.calledOnce&&this.unobserveByKey({element:U.target,option:W}))}}}};
_.X.handlePrescanEvent=function(H){H=_.b(H);for(var U=H.next();!U.done;U=H.next()){U=U.value;var A=this.handlers.get(U.target);if(A&&U.isIntersecting){A=_.b(A);for(var M=A.next();!M.done;M=A.next()){var W=_.b(M.value);M=W.next().value;W=W.next().value;M&&M.state==="prescan"&&(W(U.target,M.state),M.calledOnce&&this.unobserveByKey({element:U.target,option:M}))}}}};
_.X.observe=function(H,U,A){var M=(M=this.handlers.get(H))&&M.has(A)?{element:H,option:A}:void 0;if(M)return M;M={element:H,option:A};this.handlers.has(H)||this.handlers.set(H,new Map);var W=this.handlers.get(H);W&&!W.has(A)&&W.set(A,U);this.pauseObservingUntilReconnect||(A.state==="prescan"&&DHk(this,H).observe(H),this.observer.observe(H));return M};
_.X.unobserveByKey=function(H){var U=this.handlers.get(H.element);if(U&&U.has(H.option)){U.delete(H.option);if(H&&H.option.state==="prescan")for(var A=_.b(this.prescanObservers.values()),M=A.next();!M.done;M=A.next())M.value.unobserve(H.element);U.size===0&&(this.handlers.delete(H.element),this.observer.unobserve(H.element))}};
var DHk=function(H,U){var A=H.defaultPrescanHeight;U.hasAttribute("prescan-height")&&(U=Number(U.getAttribute("prescan-height")),isNaN(U)||(A=U));if(H.prescanObservers.has(A))return H.prescanObservers.get(A);U="-0.1px -0.1px "+A+"px -0.1px";U=new IntersectionObserver(H.handlePrescanEvent.bind(H),H.viewroot?{root:H.viewroot,rootMargin:U}:{rootMargin:U});H.prescanObservers.set(A,U);return U};var $Hk=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],lg2=function(){var H,U=this;this.JSC$13606_actionRouter=H=H===void 0?_.a1.getInstance():H;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return U.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return U.visibilityObservedElementHandlerKeys}}},GXw,G1,h_n;
lg2.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.S("kevlar_use_vimio_behavior")&&_.gD("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=kHK())};
lg2.prototype.dispose=function(){this.visibilityMonitor&&_.WS(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
lg2.prototype.handleVisibilityRefreshed=function(){for(var H=_.b(this.targetMap.entries()),U=H.next();!U.done;U=H.next()){var A=_.b(U.value);U=A.next().value;A=A.next().value;_.YEh(this,U,A)}};
_.Y6=function(H,U,A){G1(H,A);var M=_.qEn(H,U);M.element=A;H.targetedElements.set(A,U);_.YEh(H,U,M)};
G1=function(H,U){var A=H.targetedElements.get(U);if(A){var M=H.targetMap.get(A);M&&(delete M.element,H.targetMap.set(A,M));H.targetedElements.delete(U);H.visibilityObserver&&H.visibilityObservedElementHandlerKeys&&(A=H.visibilityObservedElementHandlerKeys.get(U))&&(H.visibilityObserver.unobserveByKey(A),H.visibilityObservedElementHandlerKeys.delete(U))}};
_.YEh=function(H,U,A){var M=A.action,W=A.element;W&&M&&($Hk.includes(U)||_.gD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||H.visibilityMonitor&&H.visibilityMonitor.isNodeVisible(W)?h_n(H,U,A):H.visibilityObserver&&(H.visibilityObservedElementHandlerKeys||(H.visibilityObservedElementHandlerKeys=new WeakMap),M=H.visibilityObserver.observe(W,function(){h_n(H,U,A);H.visibilityObservedElementHandlerKeys.delete(W)},{calledOnce:!0,
state:"visible"}),H.visibilityObservedElementHandlerKeys.set(W,M)))};
h_n=function(H,U,A){var M=A.action;(A=A.element)&&M&&(_.dg(H.JSC$13606_actionRouter,[M],A),H.targetMap.delete(U),H.targetedElements.delete(A),H.triggeredTargets.add(U))};
_.qEn=function(H,U){var A=H.targetMap.get(U);A||(A={},H.targetMap.set(U,A));return A};
_.q5=function(){GXw||(GXw=new lg2);return GXw};var kXr=document.createElement("div");kXr.style.touchAction="pan-down";var vx7=kXr.style.touchAction==="pan-down";var vJy,T_y;vJy=function(){this.hammerFn=hlH();this.JSC$13614_screenManager=_.k$();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.ts(83615);_.lY(this.JSC$13614_screenManager,this.ve);Tot()};
_.vd=function(){T_y||(T_y=new vJy);return T_y};
vJy.prototype.registerTouchEvents=function(H,U,A){var M=_.QY.apply(3,arguments),W=this.hammerFn(H,{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}]]});A&&W.set({touchAction:A});this.nodeManagerMapping.set(H,W);var w=
jGF(U);M=_.b(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;if(d.includes("swipe")||d.includes("pinch")||d.includes("pan"))d.includes("swipe")?W.get("swipe").set({enable:!0,direction:w,velocity:.2}):d.includes("pinch")?W.get("pinch").set({enable:!0}):d.includes("pan")&&(W.get("pan").set({enable:!0,direction:w}),W.get("swipe").set({enable:!0,direction:w,velocity:.2}),W.get("swipe").recognizeWith("pan"));j6n(this,H,W,d)}};
var j6n=function(H,U,A,M){A.on(M,function(W){if(M.includes("pinch"))H.lastPinchTime=Date.now();else if(M.includes("swipe")&&Date.now()-H.lastPinchTime<400)return;W.pointerType!=="mouse"&&(W=M==="doubletap"?{coordinates:W.center}:M.includes("pan")?W:M.includes("swipe")?{target:W.target}:{},U.dispatchEvent(new CustomEvent(M,{bubbles:!0,composed:!0,detail:W})))})};
vJy.prototype.unregisterTouchEvents=function(H){var U=_.QY.apply(1,arguments),A=this.nodeManagerMapping.get(H);if(A){U=_.b(U);for(var M=U.next();!M.done;M=U.next())A.off(M.value);this.nodeManagerMapping.delete(H);H.style.touchAction="unset"}};var Ig3=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;_.Q3={getLocalStorage:_.AJ(function(){try{var H=new bqN;var U=H.isAvailable()?H:null}catch(A){return null}return U?new _.Mj(U):null}),
getSessionStorage:_.AJ(function(){var H=new dhF;return H.isAvailable()?new _.Mj(H):null})};var Q6w=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},ZXE=function(){Q6w.instance||(Q6w.instance=new Q6w);
return Q6w.instance},fGV=function(H){var U=H.networkEvents;
H.networkEvents=[];return U};var VPw;VPw={};_.How=$D("yt-serviceworker-metadata",{objectStores:(VPw.auth={addedAtVersion:1},VPw["resource-manifest-assets"]={addedAtVersion:2},VPw),shared:!0,upgrade:function(H,U){U(1)&&L_(H,"resource-manifest-assets");U(2)&&L_(H,"auth")},
version:2});var HXc=self.location.origin+"/";ULc([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);ULc([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);ULc([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//,/\/music_integrations\/_\/js\//,/\/music_integrations\/_\/ss\//]);ULc([/purge_shell=1/]);var UVy=void 0;UVy=UVy===void 0?[]:UVy;
for(var AEp=[],M6w=_.b($Zg),WGH=M6w.next();!WGH.done;WGH=M6w.next())AEp.push({key:WGH.value});for(var wVr=_.b(UVy),XV3=wVr.next();!XV3.done;XV3=wVr.next())AEp.push(XV3.value);var iog,AG=_.Mr==null?void 0:(iog=_.Mr.performance)==null?void 0:iog.memory,WmV=!1,JK0={},iXV={},Mv={},W4=navigator;var T1=function(H){this.JSC$13659_expiringStorage=new uD(H)};
T1.prototype.set=function(H,U,A){A=A!==void 0?Date.now()+A:void 0;this.JSC$13659_expiringStorage.set(H,U,A)};
T1.prototype.get=function(H){return this.JSC$13659_expiringStorage.get(H)};
T1.prototype.remove=function(H){this.JSC$13659_expiringStorage.remove(H)};var Nec=_.NP(["https://www.youtube.com/",""]),SsF=_.NP(["https://studio.youtube.com/",""]),mLc="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",Lm4=null,CyF;var boB=_.NP(["https://www.youtube.com/iframe_api"]),jZ=function(){this.playerResolver_=_.oL();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.UR;this.playbackDurationSeconds_=0},dVw=function(H){var U=function(){return window.YT&&typeof window.YT.ready==="function"};
if(U())return _.DH(window.YT);var A=_.oL(),M=_.Q9("SCRIPT");M.onload=M.onreadystatechange=function(){M.readyState&&M.readyState!="loaded"&&M.readyState!="complete"||(M.onload=_.UR,M.onreadystatechange=_.UR,M.onerror=_.UR,U()?A.resolve(window.YT):A.reject(new _.bD("Failed to load the iframe player library","script.onload",M.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
M.onerror=function(W){M.onload=_.UR;M.onreadystatechange=_.UR;M.onerror=_.UR;A.reject(new _.bD("Failed to load the iframe player library","script.onerror",W&&W.target&&W.target.src))};
_.J$(M,_.LF(boB));H.insertBefore(M,H.firstChild);return A.promise},Ooy=function(H,U,A){var M,W;
_.u(function(w){switch(w.nextAddress){case 1:return H.playbackEndedCallback_=A,_.zj(w,2),w.yield(dVw(U.parentElement||null),4);case 4:M=w.yieldResult;_.xD(w,3);break;case 2:return W=_.eG(w),W instanceof _.bD&&W.args&&W.args[0]=="script.onerror"?_.Na(W):_.sD(W),w.return();case 3:M.ready(function(){return new M.Player(U,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:H.onPlayerReady_.bind(H),onStateChange:H.onPlayerStateChange_.bind(H),
onCueRangeExit:H.onCueRangeExit_.bind(H)}})}),_.DO(w)}})};
_.X=jZ.prototype;_.X.getPlayerPromise=function(){return this.playerPromise_};
_.X.onPlayerReady_=function(H){this.playerResolver_.resolve(H.target)};
_.X.onPlayerStateChange_=function(H){if(H.data==YT.PlayerState.PLAYING){H=H.target;var U=H.getCurrentTime();H.addCueRange("playback",U,U+this.playbackDurationSeconds_)}};
_.X.onCueRangeExit_=function(H){H.data=="playback"&&(H.target.stopVideo(),this.playbackEndedCallback_())};
_.X.stopVideo=function(){this.playerPromise_.then(function(H){H.stopVideo()})};
var uor=function(H){H.playerVars_&&H.playerPromise_.then(function(U){typeof U.cueVideoByPlayerVars!="function"?_.Na(new _.bD("vmh: player API not ready","cueVideoByPlayerVars",typeof U.cueVideoByPlayerVars)):U.cueVideoByPlayerVars(H.playerVars_)})};
jZ.prototype.playVideo=function(){var H=this;this.playerVars_&&this.playerPromise_.then(function(U){typeof U.loadVideoByPlayerVars!="function"?(U=new _.bD("vmh: player API not ready","loadVideoByPlayerVars",typeof U.loadVideoByPlayerVars),_.sD(U)):U.loadVideoByPlayerVars(H.playerVars_)})};
var ZoB=function(H,U,A,M,W){U&&(A===void 0&&(A=0),M===void 0&&(M=0),H.playbackDurationSeconds_=M/1E3,H.playerVars_={adformat:"17_8",videoId:U,suggestedQuality:"hd720",startSeconds:A/1E3,player_params:W})};
jZ.prototype.mute=function(){this.playerPromise_.then(function(H){H.mute()})};
jZ.prototype.unMute=function(){this.playerPromise_.then(function(H){H.unMute()})};var DL8=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Iz;Iz=function(){this.tokenJars={};if(this.cookiesEnabled=_.wi()){var H=_.MK.get("CONSISTENCY",void 0);H&&fxB(this,{encryptedTokenJarContents:H})}};
_.lGM=function(){Iz.instance||(Iz.instance=new Iz);return Iz.instance};
Iz.prototype.handleResponse=function(H,U){if(!U)throw Error("ag");var A,M;U=((A=U.innerTubeRequest.context)==null?void 0:(M=A.request)==null?void 0:M.consistencyTokenJars)||[];var W;(H=(W=H.responseContext)==null?void 0:W.consistencyTokenJar)&&this.replace(U,H)};
Iz.prototype.replace=function(H,U){H=_.b(H);for(var A=H.next();!A.done;A=H.next())delete this.tokenJars[A.value.encryptedTokenJarContents];fxB(this,U)};
var fxB=function(H,U){if(U.encryptedTokenJarContents&&(H.tokenJars[U.encryptedTokenJarContents]=U,typeof U.expirationSeconds==="string")){var A=Number(U.expirationSeconds);setTimeout(function(){delete H.tokenJars[U.encryptedTokenJarContents]},A*1E3);
H.cookiesEnabled&&_.WK("CONSISTENCY",U.encryptedTokenJarContents,A,void 0,!0)}};var JE2,QN;JE2=window.location.hostname.split(".").slice(-2).join(".");_.P4=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var H=_.gD("LOCATION_PLAYABILITY_TOKEN");_.gD("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=KGk(this))&&(H=this.localStorage.get("yt-location-playability-token"));H&&(this.locationPlayabilityToken=H,this.mostRecentPosition=void 0)};
_.P4.getInstance=function(){QN=_.tr("yt.clientLocationService.instance");QN||(QN=new _.P4,_.eC("yt.clientLocationService.instance",QN));return QN};
_.P4.prototype.setLocationOnInnerTubeContext=function(H){H.client||(H.client={});if(this.mostRecentPosition)H.client.locationInfo||(H.client.locationInfo={}),H.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),H.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),H.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),H.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)H.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.P4.prototype.handleResponse=function(H){var U;H=(U=H.responseContext)==null?void 0:U.locationPlayabilityToken;H!==void 0&&(this.locationPlayabilityToken=H,this.mostRecentPosition=void 0,_.gD("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=KGk(this))&&this.localStorage.set("yt-location-playability-token",H,15552E3):_.WK("YT_CL",JSON.stringify({loctok:H}),15552E3,JE2,!0))};
var KGk=function(H){return H.localStorage===void 0?new _.Sx("yt-client-location"):H.localStorage};
_.P4.prototype.clearLocationPlayabilityToken=function(H){H==="TVHTML5"?(this.localStorage=KGk(this))&&this.localStorage.remove("yt-location-playability-token"):_.Uh0("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.P4.prototype.getCurrentPositionFromGeolocation=function(){var H=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("bg"));var U=!1,A=1E4;_.gD("INNERTUBE_CLIENT_NAME")==="MWEB"&&(U=!0,A=15E3);return new Promise(function(M,W){navigator.geolocation.getCurrentPosition(function(w){H.mostRecentPosition=w;M(w)},function(w){W(w)},{enableHighAccuracy:U,
maximumAge:0,timeout:A})})};
_.P4.prototype.createUnpluggedLocationInfo=function(H){var U={};H=H.coords;if(H==null?0:H.latitude)U.latitudeE7=Math.floor(H.latitude*1E7);if(H==null?0:H.longitude)U.longitudeE7=Math.floor(H.longitude*1E7);if(H==null?0:H.accuracy)U.locationRadiusMeters=Math.round(H.accuracy);return U};
_.P4.prototype.createLocationInfo=function(H){var U={};H=H.coords;if(H==null?0:H.latitude)U.latitudeE7=Math.floor(H.latitude*1E7);if(H==null?0:H.longitude)U.longitudeE7=Math.floor(H.longitude*1E7);return U};var oSB=function(H,U){var A=ZH();H||(H="unknown");U||(U="unknown");H="MAIN_APP_WEB_PAGE_TYPE_"+H.toUpperCase();H in $JH||(H="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");U="MAIN_APP_WEB_REQUEST_TYPE_"+U.toUpperCase();U in lJK||(U="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.lX(A,{mainAppWeb:{pageType:H,requestType:U,isShellLoad:_.xV("IS_SHELL_LOAD",!1)}})},FGn={start:function(){_.lX(O$r(),{mainAppWeb:_.nf()})},
success:function(){_.Gs(O$r(),"SUCCESS")},
failure:function(){_.Gs(O$r(),"FAILURE")},
cancelled:function(){_.Gs(O$r(),"CANCELLED")}};var PW3,s9y,hqE;PW3=_.NP(["/sw.js"]);s9y=_.NP(["/sw.js?0"]);_.nSm=_.LF(PW3);hqE=_.LF(s9y);var Nb2=function(){var H=Error.apply(this,arguments);this.message=H.message;"stack"in H&&(this.stack=H.stack)};
_.R(Nb2,Error);_.pf.prototype.load=function(H){this.megabloxUrl_=_.gD("YPC_MB_URL");_.f1(this.megabloxUrl_,(0,_.i9)(function(){H&&H()},this))};
_.GW8=function(H,U,A,M,W,w,d,O,f,J,F){_.vo0(f);H.load((0,_.i9)(function(){try{var P=w?w:_.gD("HL"),n=_.gD("SESSION_INDEX");_.Qt8("client",function(){i_2("59",{helpCenterPath:"/youtube",locale:P,window:window}).JSC$10278_loadChatSupport({authuser:String(n)})})}catch(N){throw Nv(10,F,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),W&&W(N),_.sD(N),N;
}Sb3(this,U,A,M,W,w,d,O,f,J,F)},H))};
_.pf.prototype.openFixFlowDialog=function(H,U,A,M){this.load((0,_.i9)(function(){try{pVg(this,_.tr("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(H).withIntegratorCallback(U).load(A,M)}catch(W){throw _.sD(W),W;}},this))};
var pVg=function(H,U,A,M){var W=U.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.S("enable_window_constrained_buy_flow_dialog")&&(W=W.usingPopupStyle(_.tr("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));M&&(W=W.usingCloseCallback(M));U.bootstrap.fromPaymentsUrl(H.megabloxUrl_);H=U.bootstrap.asMashupMode(W);A=A?A:_.gD("HL");H.usingGaiaIndex(_.gD("SESSION_INDEX")).usingLocale(A).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.S("enable_google_payments_buyflow_material2_style_web")?
H.usingStyle(":m2;pc=#444;ac=#065fd4"):H.usingStyle(":md;pc=#444;ac=#065fd4");return H},Sb3=function(H,U,A,M,W,w,d,O,f,J,F){try{var P=_.tr("payments.business.integration");
if(!P)throw new Nb2("payments.business.integration is undefined");var n=P.standaloneContextAuthId.forUserId(),N=pVg(H,P,w,function(){jZ0(!1);O&&O()});
d&&N.usingServerAnalyticsEventHandler(d);var L=N.inStandaloneContext(n).buyFlow(function(m){if(m&&(!m.integratorData||m.integratorData===""||m.error))if(m.error!=null)if(String(m.error)==="-1")_.Te8(f);else{var z=String(m.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Nv(10,F,z,m.debugCode);_.Sk(z,f,m.debugCode);z=new _.bD("PAYMENT_ERROR_MESSAGE::"+m.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+m.internalErrorDetails);
_.sD(z)}else Nv(10,F,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.Sk("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",f,"EMPTY_INTEGRATOR_DATA"),_.sD(Error("dg"));A&&(jZ0(!1),A(m))}).withEncryptedParameters(U);
J&&L.withClientParameters(nKp(_.G8E(J)));L.load(function(){Nv(24,F);_.On("ttc",void 0,"commerce_transaction");X_("commerce_transaction");M&&(M(),jZ0(!0))},function(m){if(m==null?0:m.debugCode)var z=m==null?void 0:m.debugCode;
else if(!m||(m==null?0:m.debugCode))z="EMPTY_LOAD_FAILURE_ERROR",_.sD(Error(z));else{z="EMPTY_LOAD_FAILURE_DEBUG_CODE";var c=new _.bD("LOAD_FAILURE:"+m.message," DEBUG_CODE:"+z);_.sD(c)}Nv(10,F,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",z);_.Sk("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",f,z);_.sD(m);W&&W(m)})}catch(m){throw m instanceof Nb2&&(Nv(10,F,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),W&&W(m)),_.sD(m),m;
}};var LG3;LG3=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.D0K=function(H,U){U=U===void 0?!1:U;H=LG3.test(H)?_.rM(H):null;!U&&window.payments||!H?(H=_.oL(),U=H.promise,H.resolve()):U=_.l5w(H,{attributes:{"data-payments-main":"",id:"payment-lib"}});return U};var Rvr;Rvr=_.NP(["//www.googletagmanager.com/gtm.js?id=",""]);_.VN=function(H,U){_.E3(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:U}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.gD("GL")}),U=_.Q9("SCRIPT"),U.async=!0,_.J$(U,_.LF(Rvr,H)),U.id="gtm",H=document.getElementsByTagName("script"),H.length==0?document.head.appendChild(U):(H=H[0],H.parentNode.insertBefore(U,H)))};
_.Hb=function(H){if(H=JSON.parse(H))window.dataLayer=window.dataLayer||[],window.dataLayer.push(H)};var ESh,mVw;ESh=_.NP(["https://clients2.google.com/gr/gr_sync.js"]);_.roK=function(){};
_.roK.prototype.init=function(){if(mVw()){var H=_.oL();H.resolve();return H.promise}return _.l5w(_.LF(ESh)).then(function(){if(!mVw())throw Error("eg");},function(){throw Error("fg");
})};
_.ec0=function(){if(!mVw())return"";var H=window.google.gr;H.init({async:{schedule:"sync"},merchantId:"youtube"});H.start();H=H.finish();return H==null?"":H};
mVw=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.B=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.R(_.B,PolymerFakeBaseClassWithoutHtml);_.v4=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.R(_.v4,PolymerFakeBaseClassWithoutHtml);var IGM=window.ShadyDOM;var cSc,CC4,BW0,rSE,DBr,$Bt,UY,tG;cSc=_.S("enable_shadydom_free_scoped_query_methods");CC4=_.S("enable_shadydom_free_scoped_node_methods");BW0=_.S("enable_shadydom_free_scoped_readonly_properties_batch_one");rSE=_.S("enable_shadydom_free_parent_node");DBr=_.S("enable_shadydom_free_children");$Bt=_.S("enable_shadydom_free_last_child");UY=window.ShadyDOM;_.ek=UY&&UY.noPatch&&UY.wrap?UY.wrap:UY?function(H){return UY.patch(H)}:function(H){return H};
tG=function(H){if(H instanceof ShadowRoot)this.host=(0,_.ek)(H.host),this.root=H;else if(H.$$){this.host=(0,_.ek)(H);var U;this.root=(U=H.root)!=null?U:this.host}else if(H.polymerController){this.host=(0,_.ek)(H);var A;this.root=(A=this.host.shadowRoot)!=null?A:this.host}else this.root=this.host=(0,_.ek)(H)};
tYt();ySE();lE8();GMh();eIh();var gSz={querySelector:function(H,U){U=OC4(U,gn(H));return _.S("sunnydom_native_scoped_query_selectors")?Vi8(H,U):Vi8(_.ar(H),U)},
querySelectorAll:function(H,U){U=OC4(U,gn(H));return _.S("sunnydom_native_scoped_query_selectors")?Array.from(HCc(H,U)):HCc(_.ar(H),U)}},axh={appendChild:function(H,U){var A=gn(H),M=_.mq(U);
return _.xBE(_.ar(H),A?_.zl(U,A,M):U)},
cloneNode:function(H,U){var A=_.mq(H);H=_.ar(H);U=EU(H).prototype.cloneNode.call(H,U);return A?Cf(U,A):U},
contains:function(H,U){var A=gn(H),M=_.mq(U);return A!==M?!1:zIr(H,U)},
insertBefore:function(H,U,A){var M=gn(H),W=_.mq(U);H=_.ar(H);U=M?_.zl(U,M,W):U;return EU(H).prototype.insertBefore.call(H,U,A)},
removeChild:function(H,U){var A=gn(H);H=_.ar(H);U=A?Cf(U,A):U;return EU(H).prototype.removeChild.call(H,U)},
replaceChild:function(H,U,A){var M=gn(H),W=_.mq(U);U=M?_.zl(U,M,W):W?Cf(U,W):U;A=M?Cf(A,M):A;H=_.ar(H);return EU(H).prototype.replaceChild.call(H,U,A)},
getRootNode:function(H,U){U=U===void 0?{composed:!0}:U;var A;if(((A=U)!=null?A:{}).composed)H=aEM(H);else{U=H;for(H=AS7(H);H;)U=H,H=ZCM(H);H=U}return H}},qXV=BW0?{firstChild:pE_,
nextSibling:nuc,previousSibling:SXM,firstElementChild:L8c,lastElementChild:Euh,nextElementSibling:sXM,previousElementSibling:NWE,childNodes:mB8}:{};rSE&&(qXV.parentNode=PCc);DBr&&(qXV.children=gu_);$Bt&&(qXV.lastChild=RI4);cSc&&YX4(gSz);CC4&&YX4(axh);hI7();var kM4=function(H){this.node=H instanceof ShadowRoot?H.host:H};
vu4();TWc();var QXV=new WeakMap;var Hu8=Symbol("Dd");var wvE=new Set(["tap","track","down","up"]),Xv4=_.S("pbcm_fi_query_decorators");var Ah=function(){return _.v4.apply(this,arguments)||this};
_.R(Ah,_.v4);_.X=Ah.prototype;_.X.getState=function(){return this.store.getState()};
_.X.dispatch=function(H){this.store.dispatch(H)};
_.X.beforeRegister=function(){if(this&&typeof this==="object"){var H;var U=!!this.useSignals||!((H=this.polymerController)==null||!H.useSignals)}else U=!1;if(!U&&this.properties)for(U=_.b(Object.keys(this.properties)),H=U.next();!H.done;H=U.next()){var A=H.value;H=this.properties[A];if(H.selector){if(H.computed)throw Error("mg");A=["reduxPropertiesRecomputeTrigger",'"'+A+'"'].concat(_.vI(H.selectorArgs||[])).join(",");H.computed="recomputeReduxSelector("+A+")"}}};
_.X.attached=function(){var H=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){H.reduxPropertiesRecomputeTrigger++}));
_.S("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.X.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.X.recomputeReduxSelector=function(H,U){var A=_.QY.apply(2,arguments),M=this.properties[U].selector;if(!M)throw Error("kg`"+U);return M.apply(null,[this.store.getState()].concat(_.vI(A)))};
_.X.select=function(H){var U=_.QY.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return H.apply(null,[this.store.getState()].concat(_.vI(U)))};
_.D5.Object.defineProperties(Ah.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("lg");}}});
Ah.prototype.recomputeReduxSelector=Ah.prototype.recomputeReduxSelector;_.G([_.y(),_.q("design:type",Number)],Ah.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.G([_.Tl()],Ah);var ME=[],OuK={},i0=function(){return lu.apply(this,arguments)||this};
_.R(i0,lu);i0.prototype._addPropertyEffect=function(H,U,A){if(U==="__observeEffects"&&A){var M,W=(M=A.info.method)!=null?M:A.info.methodName;if(W){var w=this[W];this[W]=function(){ME.push(W);try{w==null||w.apply(this,arguments)}finally{ME.pop()}}}}_.Ia._addPropertyEffect.apply(this,[H,
U,A])};
i0.prototype._setPendingProperty=function(H,U,A){if(ME.length){var M=ME[ME.length-1],W;(W=OuK[this.is])!=null&&W.has(M)||(uOc(this.is,M),_.Fx("polymerPropertyChangedInObserver",{componentName:this.is,observerName:M}))}return _.Ia._setPendingProperty.apply(this,[H,U,A])};
_.G([sxK()],i0);var Zuh=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),J7r,Qf={};_.S("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Qf);var Uc=function(){return _.v4.apply(this,arguments)||this};
_.R(Uc,_.v4);Uc.prototype._setUnmanagedPropertyToNode=function(H,U,A){H.loggingStatus&&(H.loggingStatus.isDeclarativeExternal=!0);if(A!==H[U]||typeof A==="object")H[U]=A;H.is&&H.polymerController&&H.polymerController!==H&&Vf(H.is,U,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");H.loggingStatus&&(H.loggingStatus.isDeclarativeExternal=!1)};
_.G([_.Tl()],Uc);fot()&&(R$.prototype._setUnmanagedPropertyToNode=(new Uc)._setUnmanagedPropertyToNode);_.gT_={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(H){},set polymerController(H){}}]};var X8=function(){var H=lu.apply(this,arguments)||this;H.json=function(){};
return H};
_.R(X8,lu);X8.prototype.equals=function(H,U){return H===U};
X8.prototype.isEmpty=function(H){var U;(U=!H)||(U=_.l7(H)&&H.length===0);return U};
_.G([sxK()],X8);var xVH=function(H){H=lAh(H);iI.call(this,H)};
_.R(xVH,iI);xVH.prototype.addProvider=function(H){H=H.key?H:lAh([H])[0];var U=this.keyIdToIndex.get(H.key.id);if(U){if(sVF(H,this.providers[U]))throw Error("ng`"+H.key.displayName);}else iI.prototype.addProvider.call(this,H)};
var zvK=new xVH([]);var CWH=!1;var RAV={};CWH||(Llc(),CWH=!0);
RAV.InjectBehavior={initializeInjection:function(){var H=this.provide;try{if((H=H!=null?H:[])&&H.length>0)for(var U=lAh(H),A=_.b(U),M=A.next();!M.done;M=A.next())zvK.addProvider(M.value);var W=new Set;nTM(this.behaviors||[],W);U={};for(var w=_.b(W),d=w.next();!d.done;d=w.next()){var O=d.value;O.inject&&Object.assign(U,O.inject)}this.inject&&Object.assign(U,this.inject);for(var f=_.b(Object.keys(U)),J=f.next();!J.done;J=f.next()){var F=J.value,P=U[F];try{this[F]=zvK.resolve(P)}catch(n){throw n;}}}catch(n){throw Error(n.message);
}}};var mNK;var aoN=/\bclass\b/.test(function(){}.toString()),Cr8=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var t6y=function(H){this.wasDefined=!0;Array.isArray(H)||H instanceof Array?(this.JSC$13817_getImpl=H[0],this.JSC$13817_setImpl=H[1]):this.JSC$13817_getImpl=H};
_.X=t6y.prototype;_.X.getWithPath=function(H){return y7t(this.JSC$13817_getImpl(),H)};
_.X.setWithPath=function(H,U){var A=this;if(H.length)throw Error("og");if(!this.JSC$13817_setImpl)throw Error("pg");Kd(function(){A.JSC$13817_setImpl(U)})};
_.X.notifyPath=function(){throw Error("qg");};
_.X.notifySplices=function(){throw Error("rg");};
_.X.getChangeRecordSignal=function(H,U){var A=this;if(H.length)throw Error("sg");return function(){var M=A.getWithPath(H);return{path:U!=null?U:"",base:M,value:M}}};
_.X.getSplicesSignal=function(){throw Error("tg");};
_.X.getPathMutationSignal=function(){throw Error("ug");};
_.X.pop=function(){throw Error("vg");};
_.X.push=function(){throw Error("wg");};
_.X.splice=function(){throw Error("xg");};
_.X.unshift=function(){throw Error("yg");};var Wb=function(H){var U=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(H)||H instanceof Array?(this.JSC$13822_getImpl=H[0],this.JSC$13822_setImpl=H[1]):this.JSC$13822_getImpl=H;this.wasDefined=!1;_.X$(function(){U.wasDefined=U.JSC$13822_getImpl()!==void 0})};
Wb.prototype.getWithPath=function(H){return y7t(this.JSC$13822_getImpl(),H)};
Wb.prototype.setWithPath=function(H,U){var A=this;if(H[H.length-1]!=="*"&&H[H.length-1]!=="splices"){var M=_.X$(function(){return A.getWithPath([])});
if(H.length===0){if(!this.JSC$13822_setImpl)throw Error("zg");if(M===U)return;this.wasDefined||(this.wasDefined=U!==void 0);Kd(function(){A.JSC$13822_setImpl(U)})}else{for(var W=0;W<H.length-1;W++){if(!M)return;
M=M[H[W]]}W=H[H.length-1];M&&(M[W]=U);this.wasDefined||(this.wasDefined=H.length>1||U!==void 0)}cEm(this,H,{pathComponents:H,value:U})}};
Wb.prototype.notifyPath=function(H,U){H.length===0?U&&this.setWithPath(H,U.value):cEm(this,H,{pathComponents:H,value:U==null?void 0:U.value,fallbackWhenUndefined:U==null?void 0:U.value})};
var cEm=function(H,U,A,M){if(H.setMutationSignal){var W=++H.mutationIndex,w=[H.observedPath],d=H.observedPath,O;U.length===0&&(O=d);for(var f=0;f<U.length;f++){var J=d.subPaths[U[f]];if(!J)break;w.push(J);d=J;f===U.length-1&&(O=J)}for(U=!1;w.length;)d=w.shift(),d.data={index:W,mutation:A,spliceMutationIndex:M},U||(U=d===O),U&&w.push.apply(w,_.vI(Object.values(d.subPaths)));Kd(function(){H.setMutationSignal(W)})}};
Wb.prototype.notifySplices=function(H,U){var A=this,M=_.X$(function(){return A.getWithPath(H)}),W=[].concat(_.vI(H),["splices"]);
cEm(this,W,{pathComponents:W,value:{indexSplices:U}});if(M==null?0:M.length)U=this.mutationIndex,W=[].concat(_.vI(H),["length"]),cEm(this,W,{pathComponents:W,value:M.length},U)};
var yEK=function(H,U,A,M,W,w){H.notifySplices(A,[{index:M,addedCount:W,removed:w,object:U,type:"splice"}])},BbB=function(H,U){H=H.observedPath;
for(var A=0;A<U.length;A++){var M=U[A],W=H.subPaths[M];W||(W={pathComponents:U.slice(0,A+1),subPaths:{}},H.subPaths[M]=W);H=W}},evk=function(H,U,A){BbB(H,U);
if(!H.getMutationSignal){var M=_.b(_.iB(H.mutationIndex,void 0,"sNBMCd"));H.getMutationSignal=M.next().value;H.setMutationSignal=M.next().value}var W=H.getMutationSignal;return _.Ja(function(){W();return A(rEw(H,U))},void 0,"zvsXEd")};
Wb.prototype.getChangeRecordSignal=function(H,U){var A=this,M=this.mutationIndex,W;return evk(this,H,function(w){if(w&&w.index>M){var d=w.mutation;M=w.index;W=void 0}w=_.X$(function(){return A.getWithPath(H)});
if(d){var O=d.pathComponents[d.pathComponents.length-1],f=[].concat(_.vI(d.pathComponents));if(O==="splices"||O==="length")return{base:w,path:(U?[U].concat(_.vI(f)):f).join("."),value:d.value};var J=H.length>f.length?H:f,F;return{base:w!=null?w:d.fallbackWhenUndefined,path:(U?[U].concat(_.vI(J)):J).join("."),value:(F=_.X$(function(){return A.getWithPath(J)}))!=null?F:d.fallbackWhenUndefined}}W||(W={base:w,
path:(U?[U].concat(_.vI(H)):H).join("."),value:w});return W})};
Wb.prototype.getSplicesSignal=function(H){var U=this.mutationIndex,A;return evk(this,H,function(M){if(M&&M.index>U&&M.spliceMutationIndex!==U){var W=M.mutation;U=M.index;A=void 0}return W&&W.pathComponents[W.pathComponents.length-1]==="splices"?A=M=W.value:A})};
Wb.prototype.getPathMutationSignal=function(H){var U=this;BbB(this,H);if(!this.getMutationSignal){var A=_.b(_.iB(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=A.next().value;this.setMutationSignal=A.next().value}var M=this.getMutationSignal,W=this.mutationIndex,w;return _.Ja(function(){M();var d=rEw(U,H);if(d&&d.index>W&&d.mutation&&BLF(d.mutation.pathComponents,H)){var O=d.mutation;W=d.index}if(!w||W!==w.index){var f,J;d=(J=_.X$(function(){return U.getWithPath(H)}))!=null?J:(f=O)==null?
void 0:f.fallbackWhenUndefined;
w={index:W,value:d}}return w},void 0,"RXYC9b")};
var rEw=function(H,U){H=H.observedPath;U=_.b(U);for(var A=U.next();!A.done;A=U.next())H=H.subPaths[A.value];return H.data};
Wb.prototype.pop=function(H){var U=this,A=_.X$(function(){return U.getWithPath(H)});
if(!(A instanceof Array))throw Error("Ag");var M=A.length>0,W=A.pop();M&&yEK(this,A,H,A.length,0,[W]);return W};
Wb.prototype.push=function(H){var U=_.QY.apply(1,arguments),A=this,M=_.X$(function(){return A.getWithPath(H)});
if(!(M instanceof Array))throw Error("Bg");var W=M.length,w=M.push.apply(M,_.vI(U));U.length&&yEK(this,M,H,W,U.length,[]);return w};
Wb.prototype.splice=function(H,U,A){var M=_.QY.apply(3,arguments),W=this,w=_.X$(function(){return W.getWithPath(H)});
if(!(w instanceof Array))throw Error("Cg");U<0?U=w.length-Math.floor(-U):U&&(U=Math.floor(U));var d=w.splice.apply(w,[U,A].concat(_.vI(M)));(M.length||d.length)&&yEK(this,w,H,U,M.length,d);return d};
Wb.prototype.unshift=function(H){var U=_.QY.apply(1,arguments),A=this,M=_.X$(function(){return A.getWithPath(H)});
if(!(M instanceof Array))throw Error("Dg");var W=M.unshift.apply(M,_.vI(U));U.length&&yEK(this,M,H,0,U.length,[]);return W};var wv=function(H,U,A){this.model=H;this.unknownSignalResolver=U;this.options=A;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];U=_.b(hAr());H=U.next().value;U=U.next().value;this.owner=H;this.disposeImpl=U};
wv.prototype.dispose=function(){if(!this.isDisposed){for(var H=_.b(this.childSignalProxies),U=H.next();!U.done;U=H.next())U.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var DVp=function(H,U){H=h8(H.owner);try{U()}finally{h8(H)}};
wv.prototype.effect=function(H){DVp(this,function(){_.Rn(H,"j")})};
var $Vg=function(H,U){H.options!=null||(H.options={});var A;(A=H.options).immutableProps!=null||(A.immutableProps=new Set);H.options.immutableProps.add(U)},F_N=function(H,U){U=""+U;
lxh(H,U);var A,M;if((A=H.options)==null?0:(M=A.immutableProps)==null?0:M.has(U))return!0;var W;if((W=H.model.__signalCache)==null?0:W.has(U))A=H.model.__signalCache.get(U),Array.isArray(A)&&$Vg(H,U);var w,d,O;return(O=(w=H.options)==null?void 0:(d=w.immutableProps)==null?void 0:d.has(U))!=null?O:!1},GTw=function(H,U){var A;
H.unknownSignalResolver&&(A=H.unknownSignalResolver(U));var M,W;((M=H.options)==null?0:(W=M.immutableProps)==null?0:W.has(U))?A!=null||(A=new t6y(_.iB(H.model[U],void 0,"By5iP"))):A!=null||(A=new Wb(_.iB(H.model[U],void 0,"CXghNc")));var w=H.model.hostElement;Object.defineProperty(H.model,U,{get:function(){oT0(w,U);return A.getWithPath([])},
set:function(d){HX(w,U);H.setWithPath([U],d)},
configurable:!0});return A},lxh=function(H,U){var A,M,W;
((A=H.model.__signalCache)==null||!A.has(U))&&((M=H.options)==null?0:(W=M.externalSignalProps)==null?0:W.has(U))&&H.model[U]},Zd=function(H,U){U=""+U;
var A=H.signalCache[U];if(A!==void 0)return A;A=!1;lxh(H,U);var M;if((M=H.model.__signalCache)==null?0:M.has(U))if(A=H.model.__signalCache.get(U),Array.isArray(A))A=!0,$Vg(H,U);else return H.signalCache[U]=H.model.__signalCache.get(U).signal,H.signalCache[U];var W,w;M=(w=(W=H.options)==null?void 0:W.reactivityMode)!=null?w:0;var d,O;if(!((d=H.options)==null?0:(O=d.reactiveProps)==null?0:O.has(U))&&!A&&M===1)throw Error("Eg`"+U);W=A?YbK(H,U):GTw(H,U);return H.signalCache[U]=W},YbK=function(H,U){var A=
Object.getOwnPropertyDescriptor(H.model.constructor.prototype,U),M=function(){return H.model[U]};
return new t6y(A&&A.get&&!A.set?M:[M,function(W){H.model[U]=W}])};
wv.prototype.getWithPath=function(H){var U=_.b(H);H=U.next().value;U=l9(U);oT0(this.model.hostElement,""+H);return Zd(this,H).getWithPath(U)};
wv.prototype.setWithPath=function(H,U){if(H.length){HX(this.model.hostElement,H.join("."));var A=_.b(H);H=A.next().value;A=l9(A);Zd(this,H).setWithPath(A,U)}};
wv.prototype.getPathMutationSignal=function(H){var U=_.b(H);H=U.next().value;U=l9(U);return Zd(this,H).getPathMutationSignal(U)};
wv.prototype.notifyPath=function(H,U){var A=_.b(H);H=A.next().value;A=l9(A);Zd(this,H).notifyPath(A,U)};
var qby=function(H,U){if(U.type==="literal")return function(){return{rootWasDefined:!0,value:U.value}};
var A=Oc(U.path),M=_.b(A),W=M.next().value;M=l9(M);var w,d;if(U.type==="path"&&(A.length===1||((w=H.options)==null?0:(d=w.immutableProps)==null?0:d.has(W))))return function(){var P=H.getWithPath(A.slice(0,1));P=y7t(P,A.slice(1));return{rootWasDefined:Zd(H,A[0]).wasDefined,value:P}};
var O=Zd(H,W);if(U.type==="path"){var f=O.getPathMutationSignal(M);return function(){var P,n=(P=f())==null?void 0:P.value;return{rootWasDefined:O.wasDefined,value:n}}}if(U.type==="splices"){var J=O.getSplicesSignal(M);
return function(){var P=J();return{rootWasDefined:O.wasDefined,value:P}}}var F=O.getChangeRecordSignal(M,""+W);
return function(){var P=F();return{rootWasDefined:O.wasDefined,value:P}}},G6c=function(H,U,A){var M=A.map(function(O){return qby(H,O)}),W=A.length===0,w=[],d=A.length!==1||A[0].type!=="path"?!1:!0;
H.effect(function(){for(var O=M.length,f=[],J=!!w.length,F=0;F<O;F++){var P=M[F](),n=P.rootWasDefined;P=P.value;W||(W=n);f[F]=P;d&&(f[F+O]=J?w[F]:f[F],w[F]=P)}W&&xp(H.owner,function(){return void U.apply(null,_.vI(f))})})},r7E=function(H,U,A,M,W){var w=Zd(H,U);
W!==void 0&&w.setWithPath([],W);G6c(H,function(){var d=_.QY.apply(0,arguments);HX(H.model.hostElement,U,!0);w.setWithPath([],A.apply(null,_.vI(d)))},M)};
wv.prototype.arrayPush=function(H){var U=_.QY.apply(1,arguments),A=_.b(H),M=A.next().value;A=l9(A);M=Zd(this,M);return M.push.apply(M,[A].concat(_.vI(U)))};
wv.prototype.arraySplice=function(H,U,A){var M=_.QY.apply(3,arguments),W=_.b(H),w=W.next().value;W=l9(W);w=Zd(this,w);return w.splice.apply(w,[W,U,A].concat(_.vI(M)))};
wv.prototype.arrayUnshift=function(H){var U=_.QY.apply(1,arguments),A=_.b(H),M=A.next().value;A=l9(A);M=Zd(this,M);return M.unshift.apply(M,[A].concat(_.vI(U)))};
wv.prototype.notifySplices=function(H,U){var A=_.b(H);H=A.next().value;A=l9(A);Zd(this,H).notifySplices(A,U)};var hvm=!0,kT2=!1,PWc=!1,vSk=!1,Tbp=0;vSk=!1;Tbp=0;hvm=!0;kT2=PWc=!1;var QVE=/([^\s]+?)\(([\s\S]*)\)/,TLM=/\.([^.]+)$/,HP8=/\\,/g,k6M=/&comma;/g,vTF=/\\(.)/g,VB0=[],jVc={"*":"wildcard",splices:"splices"};var OPc=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"),X3V=/[A-Z]/,j9y=["class","hidden","id","on-dom-change"],ZP0=new Set([].concat(_.vI(j9y),
["if","notify-dom-change","restamp"])),fgF=new Set([].concat(_.vI(j9y),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),JQc=new Set(["restamp"]);var Zw8=new Set(["className","id"]);var s6c=Symbol(),EJ4=window;var cQE=window;var lg8=0,rQN=0,fe=[],$Hh=0,B__=!1,DHh=document.createTextNode("");(new window.MutationObserver(e_M)).observe(DHh,{characterData:!0});var Ke=new Map,Jy=0,IxK=function(H){this.mappedHandleId=H},YE0=function(H,U,A,M){this.mappedHandleId=H;
var W=this;this.mappedHandleId=H;this.callback=U;this.waitTime=A;this.schedulerPriority=M;this.handleId=_.Fl.addJob(function(){W.callback();Ke.delete(W.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.R(YE0,IxK);YE0.prototype.cancel=function(){_.Fl.cancelJob(this.handleId);Ke.delete(this.mappedHandleId)};
var qE7=function(H,U){this.mappedHandleId=H;var A=this;this.mappedHandleId=H;this.callback=U;this.handleId=GXN(function(){A.callback();Ke.delete(A.mappedHandleId)})};
_.R(qE7,IxK);qE7.prototype.cancel=function(){var H=this.handleId-rQN;H<0||fe.length<=H||(fe[H]=null);Ke.delete(this.mappedHandleId)};var T__=function(){};
T__.prototype.cancel=function(){this.jobHandle!==void 0&&(h_7(this.jobHandle),this.jobHandle=void 0)};
T__.prototype.run=function(H,U,A){var M=this;this.cancel();this.callback=H;this.jobHandle=_.oS(function(){H();M.callback=void 0},U,A)};
T__.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var kXF=new WeakMap;var Q92=L3(function(H){for(var U=H,A=0;A<3;A++)U=Object.getPrototypeOf(U);delete U.prototype.connectedCallback;var M=function(){return H.apply(this,arguments)||this};
_.R(M,H);M.prototype._attachDom=function(W){if(!W)return null;var w=(0,_.ek)(this.hostElement);w.attachShadow({mode:"open",shadyUpgradeFragment:W});w.shadowRoot.appendChild(W);return w.shadowRoot};
M.prototype._takeAttributes=function(){for(var W=this.hostElement.attributes,w=0;w<W.length;w++){var d=W[w],O=void 0,f=void 0;(f=(O=this).__attributeReaction)==null||f.call(O,d.name,null,d.value)}};
M.prototype._readyClients=function(){H.prototype._readyClients.call(this);this.root=this};
M.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);H.prototype.connectedCallback.call(this)};
_.D5.Object.defineProperties(M,{template:{configurable:!0,enumerable:!0,get:function(){return M.prototype._template}}});
return M}),V6m=L3(function(H){var U=function(){return H.apply(this,arguments)||this};
_.R(U,H);U.prototype.created=function(){if(this.__notifyEffects)for(var A=_.b(Object.values(this.__notifyEffects)),M=A.next();!M.done;M=A.next()){M=_.b(M.value);for(var W=M.next();!W.done;W=M.next())W.value.fn=VPN}if(this.__reflectEffects)for(A=_.b(Object.values(this.__reflectEffects)),M=A.next();!M.done;M=A.next())for(M=_.b(M.value),W=M.next();!W.done;W=M.next())W.value.fn=HoV};
U.prototype._addEventListenerToNode=function(A,M,W){A=PX(A);Pa(A,M,W)||H.prototype._addEventListenerToNode.call(this,A,M,W)};
U.prototype._removeEventListenerFromNode=function(A,M,W){A=PX(A);so(A,M,W)||H.prototype._removeEventListenerFromNode.call(this,A,M,W)};
U.prototype._propertiesChanged=function(A,M,W){if(this.__dataToNotify&&this.__notifyEffects)for(var w=_.b(Object.keys(this.__dataToNotify)),d=w.next();!d.done;d=w.next()){d=d.value;var O=Q6V(d);this.__notifyEffects[O]||delete this.__dataToNotify[d]}else this.__dataToNotify=null;H.prototype._propertiesChanged.call(this,A,M,W)};
U.prototype.fire=function(A,M,W){M=M===void 0?{}:M;var w;return _.cg(PX((w=W==null?void 0:W.node)!=null?w:this),A,M,W)};
U.prototype._ensureAttribute=function(A,M){var W=PX(this);W.hasAttribute(A)||u0(W,M,A)};
U.prototype.isLightDescendant=function(A){var M=PX(this);return PX(M)!==A&&_.c4(M).contains(A)&&_.c4(M).getRootNode()===_.c4(A).getRootNode()};
return U});
_.GF.ready=function(){var H;((H=this.hostElement)!=null?H:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var U;((U=this.hostElement)!=null?U:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Qo._subscribeIronResize=function(H){var U;((U=H.hostElement)!=null?U:H).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Qo._unsubscribeIronResize=function(H){var U;((U=H.hostElement)!=null?U:H).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var M6N=[Array,Boolean,Date,Number,Object,String],ne=function(H,U,A,M){this.polySiInfo=H;this.polySiParams=U;this.polySiContext=A;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;M||this instanceof HTMLElement&&(M=this);if(!M)throw Error("Lg");this.allowedProps=U.allowedProps;this.hostElement=M;this.is=H.is;this.upgradeDisabled=!!U.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");H=new Set(U.reactiveSchemas.filter(function(W){return W.type!==
"observe"}).map(function(W){return W.propertyKey}));
this.signalProxy=new wv(this,void 0,{reactiveProps:H,reactivityMode:U.reactivityMode});this.__dataHasAccessor={};U=_.b(U.reactiveSchemas);for(H=U.next();!H.done;H=U.next())H=H.value,H.type==="signal"&&(this.__dataHasAccessor[H.propertyKey]=!0);this.upgradeDisabled||Hw2(this)};
ne.prototype.getExtraMethodsToForward=function(){return[]};
var Hw2=function(H){H.polySiContext.didRegister||(H.registered(),H.polySiContext.didRegister=!0);H.polySiContext.finalizedTemplate||(H.polySiContext.finalizedTemplate={},H.polySiParams.templateGetter&&(H.polySiContext.finalizedTemplate.processedTemplate=yQc(H.polySiParams.templateGetter,H.polySiParams.is)));U6y(H);var U=H.hostElement;U.loggingStatus!=null||(U.loggingStatus={});U.loggingStatus.isInitializing=!0;_.X$(function(){return void H.created()});
U.loggingStatus.isInitializing=!1;H.isPolySiElementConnected&&AZr(H)},AZr=function(H){H.didCallReady||(_.X$(function(){return void H.ready()}),H.didCallReady=!0);
H.isAttached=!0;H.attached()};
_.X=ne.prototype;_.X.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||AZr(this)};
_.X.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.X.attributeChangedCallback=function(H,U,A){if(this.upgradeDisabled)H==="disable-upgrade"&&A===null&&(this.upgradeDisabled=!1,Hw2(this));else if(U!==A){var M=_.Y8(H),W=this.polySiContext.typesForSignals[M];if(W&&(!this.reflecting||_.S("polysi_attribute_changed_serializing_killswitch"))){switch(W){case Object:try{var w=JSON.parse(A)}catch(O){w=A}break;case Array:try{w=JSON.parse(A)}catch(O){w=null}break;case Date:w=isNaN(A)?String(A):Number(A);w=new Date(w);break;case Boolean:w=A!==null;break;case Number:w=
Number(A);break;default:w=A}this[M]=w}M=_.b(this.polySiParams.behaviors);for(W=M.next();!W.done;W=M.next())w=void 0,(w=W.value.attributeChanged)==null||w.call(this,H,U,A);var d;(d=this.attributeChanged)==null||d.call(this,H,U,A)}};
_.X.attributeChangedCallbackWrapper=function(H,U,A){this.attributeChangedCallback(H,U,A)};
_.X.setPropertiesFromInitialAttributeValues=function(){for(var H=0;H<this.hostElement.attributes.length;H++){var U=this.hostElement.attributes[H];(U.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(U.name))&&this.attributeChangedCallback(U.name,null,U.value)}};
_.X.created=function(){this.provide=this.polySiParams.provide;var H;(H=this.initializeInjection)==null||H.call(this);H=_.b(this.polySiParams.reactiveSchemas);for(var U=H.next();!U.done;U=H.next())U=U.value,U.type==="signal"&&(this.mutablePropNames.add(U.propertyKey),Zd(this.signalProxy,U.propertyKey));AEr(this,this.polySiInfo,this.polySiParams.behaviors);H=_.b(this.polySiParams.reactiveSchemas);for(U=H.next();!U.done;U=H.next())U=U.value,U.type==="signal"&&U.value!==void 0&&(this.signalProxy.model[U.propertyKey]=
typeof U.value==="function"?U.value.call(this):U.value);if(this.polySiParams.signalProperties)for(H=_.b(this.polySiParams.signalProperties),U=H.next();!U.done;U=H.next()){U=U.value;var A=void 0;((A=this.__signalCache)==null?0:A.has(U))||(this.signalProxy.model[U]=void 0)}vSk||MzH(this);UV_(this);H=_.b(this.polySiParams.behaviors);for(U=H.next();!U.done;U=H.next())A=void 0,(A=U.value.created)==null||A.call(this);var M;(M=this.polySiInfo.created)==null||M.call(this)};
_.X.registered=function(){var H=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var U=Object.getPrototypeOf(this);U.addReactiveSchema=function(O){H.polySiParams.reactiveSchemas.push(O)};
for(var A=_.b(this.polySiParams.behaviors),M=A.next();!M.done;M=A.next()){var W=void 0;(W=M.value.beforeRegister)==null||W.call(U)}var w;(w=this.polySiInfo.beforeRegister)==null||w.call(U);U.addReactiveSchema=wVF;A=_.b(this.polySiParams.behaviors);for(M=A.next();!M.done;M=A.next())W=void 0,(W=M.value.registered)==null||W.call(U);var d;(d=this.polySiInfo.registered)==null||d.call(U)};
_.X.ready=function(){var H;(H=this.beforeReady)==null||H.call(this);vSk&&MzH(this);var U;if(H=(U=this.polySiContext.finalizedTemplate)==null?void 0:U.processedTemplate){H=tPN(H.template,H.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:H.hasInsertionPoint,thisCtx:this});U=H.nodesById;H=H.root;var A=this.hostElement;var M=M===void 0?!1:M;A=(0,_.ek)(A);if(!A.attachShadow)throw Error("Jd");if(!A.shadowRoot||M)A.attachShadow({mode:"open",shadyUpgradeFragment:H}),A.shadowRoot.appendChild(H);
this.root=A.shadowRoot;this.$=U}Wnz(this);M=_.b(this.polySiParams.behaviors);for(U=M.next();!U.done;U=M.next())H=void 0,(H=U.value.ready)==null||H.call(this);var W;(W=this.polySiInfo.ready)==null||W.call(this)};
_.X.attached=function(){for(var H=_.b(this.polySiParams.behaviors),U=H.next();!U.done;U=H.next()){var A=void 0;(A=U.value.attached)==null||A.call(this)}var M;(M=this.polySiInfo.attached)==null||M.call(this)};
_.X.detached=function(){for(var H=_.b(this.polySiParams.behaviors),U=H.next();!U.done;U=H.next()){var A=void 0;(A=U.value.detached)==null||A.call(this)}var M;(M=this.polySiInfo.detached)==null||M.call(this)};
var U6y=function(H){for(var U=_.b(H.polySiParams.behaviors),A=U.next();!A.done;A=U.next())if(A=A.value,A.listeners)for(var M in A.listeners)CPM(H,H.hostElement,M,A.listeners[M]);if(H.polySiInfo.listeners)for(var W in H.polySiInfo.listeners)CPM(H,H.hostElement,W,H.polySiInfo.listeners[W])},CPM=function(H,U,A,M,W){H=c7K(H,M,W);
Pa(U,A,H)||U.addEventListener(A,H);return H},MzH=function(H){for(var U=_.b(H.polySiParams.reactiveSchemas),A=U.next();!A.done;A=U.next())A=A.value,A.type==="compute"||A.type==="computeWithMethod"?eAF(H.signalProxy,A,H):A.type==="redux"?lo0(H.signalProxy,A,H.store):A.type==="signal"&&A.readOnly&&$N0(H.signalProxy,A)},Wnz=function(H){for(var U=_.b(H.polySiParams.reactiveSchemas),A=U.next(),M={};!A.done;M={schema$jscomp$12:void 0},A=U.next())M.schema$jscomp$12=A.value,M.schema$jscomp$12.type==="notify"?
YGc(H.signalProxy,M.schema$jscomp$12,H.hostElement):M.schema$jscomp$12.type==="observe"?qGN(H.signalProxy,M.schema$jscomp$12,H):M.schema$jscomp$12.type==="reflect"&&H.signalProxy.effect(function(w){return function(){var d=H.signalProxy.getWithPath([w.schema$jscomp$12.propertyKey]);
H.reflecting=!0;AQt(H.hostElement,w.schema$jscomp$12.propertyKey,d,!0);H.reflecting=!1}}(M));
if(H.reflectedAttributes)for(U=_.b(Object.entries(H.reflectedAttributes)),M=U.next(),A={};!M.done;A={key$jscomp$940:void 0,value$jscomp$10328:void 0},M=U.next()){var W=_.b(M.value);M=W.next().value;W=W.next().value;A.key$jscomp$940=M;A.value$jscomp$10328=W;H.signalProxy.effect(function(w){return function(){H.reflecting=!0;AQt(H.hostElement,w.key$jscomp$940,(0,w.value$jscomp$10328)(),!0);H.reflecting=!1}}(A))}};
_.X=ne.prototype;_.X._setPendingProperty=function(H,U){this.set(H,U);return!1};
_.X._enableProperties=function(){};
_.X._setPendingPropertyOrPath=function(H,U){this.notifyPath(H,U);return!1};
_.X._addPropertyEffect=function(){};
_.X._stampTemplate=function(){throw Error("Mg");};
_.X.fire=function(H,U,A){U=U===void 0?{}:U;A=A===void 0?{}:A;var M,W,w={bubbles:(M=A.bubbles)!=null?M:!0,cancelable:!!A.cancelable,composed:(W=A.composed)!=null?W:!0},d;return _.cg(XVc((d=A.node)!=null?d:this.hostElement),H,U,w)};
_.X.get=function(H,U){var A=Oc(H);return U?y7t(U,A):H==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(A)};
_.X.linkPaths=function(){};
_.X.listen=function(H,U,A){H=XVc(H);this.boundListeners!=null||(this.boundListeners=new WeakMap);var M=this.boundListeners.get(H);M||(M={},this.boundListeners.set(H,M));var W=U+A;M[W]||(M[W]=CPM(this,H,U,A))};
_.X.notifyPath=function(H,U){this.signalProxy.notifyPath(Oc(H),arguments.length===2?{value:U}:void 0)};
_.X.canNotifyPath=function(H){return this.mutablePropNames.has(H)&&!F_N(this.signalProxy,H)};
_.X.notifySplices=function(H,U){this.signalProxy.notifySplices(Oc(H),U)};
_.X.pop=function(H){var U=this.signalProxy;H=Oc(H);var A=_.b(H);H=A.next().value;A=l9(A);return Zd(U,H).pop(A)};
_.X.push=function(H){var U=_.QY.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Oc(H)].concat(_.vI(U)))};
_.X.set=function(H,U,A){if(A)throw Error("Ng");H==="hidden"?this.hostElement.hidden=!!U:this.signalProxy.setWithPath(Oc(H),U)};
_.X.setProperties=function(H){H=_.b(Object.entries(H));for(var U=H.next();!U.done;U=H.next()){var A=_.b(U.value);U=A.next().value;A=A.next().value;this[U]=A}};
_.X.splice=function(H,U,A){var M=_.QY.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Oc(H),U,A].concat(_.vI(M)))};
_.X.unlinkPaths=function(){};
_.X.unlisten=function(H,U,A){H=XVc(H);if(this.boundListeners){var M=this.boundListeners.get(H);if(M){A=U+A;var W=M[A];W&&(so(H,U,W)||H.removeEventListener(U,W),delete M[A])}}};
_.X.unshift=function(H){var U=_.QY.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Oc(H)].concat(_.vI(U)))};
_.D5.Object.defineProperties(ne.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 FG7=[Array,Boolean,Date,Number,Object,String];var nSK=!1;var X4=function(){var H=HTMLElement.apply(this,arguments)||this;H.restamp=!1;H.notifyDomChange=!1;H.JSC$13930_didCallConnected=!1;H.JSC$13930_renderDebouncer=null;H.disableTemplateUpdateSignalImpl=ND()?void 0:_.iB(!1,void 0,"OUmlUc");var U;H.getDisableTemplateUpdate=(U=H.disableTemplateUpdateSignalImpl)==null?void 0:U[0];var A;H.setDisableTemplateUpdate=(A=H.disableTemplateUpdateSignalImpl)==null?void 0:A[1];return H};
_.R(X4,HTMLElement);var w9h=function(H){H.conditionSignalImpl!=null||(H.conditionSignalImpl=new Wb(_.iB(!1,void 0,"Mh1Uwb")));return H.conditionSignalImpl};
_.X=X4.prototype;_.X.showHideChildren=function(H){X9w(this,H,this.if)};
_.X.attributeChangedCallback=function(H,U,A){if(this.JSC$13930_didCallConnected)throw Error("Rg`"+H);H==="notify-dom-change"?this.notifyDomChange=A!==null:H==="restamp"&&(this.restamp=A!==null)};
_.X.debounceRender=function(){this.JSC$13930_renderDebouncer=_.yF(this.JSC$13930_renderDebouncer,NC,this.JSC$13930_renderImpl.bind(this));_.BR(this.JSC$13930_renderDebouncer)};
_.X.disconnectedCallback=function(){var H=(0,_.ek)(this).parentNode;(!H||H.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in H&&!H.host)&&iww(this)};
_.X.connectedCallback=function(){var H=this;if(_.S("ps_dom_if_require_parent_signal_proxy_killswitch")||this.parentSignalProxy)this.JSC$13930_didCallConnected=!0,hvm?Nb8():this.style.display="none",this.parentSignalProxy.isDisposed&&!_.S("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){w9h(H).getWithPath([]);H.debounceRender()});
else{var U=(0,_.ek)(this).parentNode,A={parentNode:U==null?void 0:U.nodeName};U instanceof Element&&(A.parentClassName=U.className);_.Na(new _.bD("PsDomIf connected with undefined parentSignalProxy",A))}};
_.X.render=function(){_.$G()};
_.X.JSC$13930_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var H=this.if,U=!1;if(H){this.hasInstance()||(bwy(this),U=!0);a:{var A=(0,_.ek)(this).parentNode;if(this.hasInstance()){var M=this.instance.children;if((M==null?0:M.length)&&(0,_.ek)(this).previousSibling!==M[M.length-1])for(var W=0;W<M.length;W++)(0,_.ek)(A).insertBefore(M[W],this)}else{if(!A){A=!1;break a}d6m(this,A)}A=!0}if(!A)return}else this.restamp&&iww(this);X9w(this,!1,H);H&&!U&&bwy(this);kT2&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.X.hasInstance=function(){return!!this.instance};
var d6m=function(H,U){var A=H.parentSignalProxy;if(ND()){var M=_.b(_.iB(!0,void 0,"QhELFb"));var W=M.next().value;M=M.next().value;A=H.parentSignalProxy}else{var w;var d=new wv((w=Owm(H))!=null?w:{},function(f){var J=Zd(H.parentSignalProxy,f).getChangeRecordSignal([]);f=_.iB(void 0,void 0,"RUDHfc");var F=new Wb(f);d.effect(function(){if(H.getDisableTemplateUpdate&&!H.getDisableTemplateUpdate()){var P=J();F.notifyPath(Oc(P.path),{value:P.value})}});
return F});
H.parentSignalProxy.childSignalProxies.push(d);var O=A=d}A=tPN(H.templateInfo,H.templateInfo.nodeInfoList,A,{eventListenerHost:H.eventListenerHost,hasInsertionPoint:H.templateInfo.hasInsertionPoint,thisCtx:H.eventListenerHost,enabledSignal:ND()?W:void 0,getModel:function(){return Owm(H)}}).root;
H.instance={root:A,children:[],hidden:!1,signalProxy:O,getTemplateUpdatesEnabled:W,setTemplateUpdatesEnabled:M};O=_.b(A.childNodes);for(W=O.next();!W.done;W=O.next())H.instance.children.push(W.value);(0,_.ek)(U).insertBefore(H.instance.root,H)},Owm=function(H){if((H=H.parentSignalProxy.model)&&!H.hostElement){var U={},A;
for(A in H)H.hasOwnProperty(A)&&(U[A]=H[A]);return U}},iww=function(H){if(H.instance){var U=H.instance.children;
if(U.length){var A=(0,_.ek)(U[0]).parentNode;if(A){A=(0,_.ek)(A);for(var M=0;M<U.length;M++)A.removeChild(U[M])}}ND()?H.instance.setTemplateUpdatesEnabled(!1):H.instance.signalProxy.dispose();H.instance=void 0}},X9w=function(H,U,A){U=U||!A;
H.instance&&H.instance.hidden!==U&&(H.instance.hidden=U,s9_(U,H.instance.children))},bwy=function(H){if(ND()){var U=H.instance;
U&&xp(H.parentSignalProxy.owner,function(){return!U.getTemplateUpdatesEnabled()})&&U.setTemplateUpdatesEnabled(!0)}else H.setDisableTemplateUpdate(!1)};
_.D5.Object.defineProperties(X4.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var H=this;return xp(this.parentSignalProxy.owner,function(){return w9h(H).getWithPath([])})},
set:function(H){H||(ND()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));w9h(this).setWithPath([],!!H)}}});
_.D5.Object.defineProperties(X4,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",X4);var uyp=[],iK=function(){var H=HTMLElement.apply(this,arguments)||this;H.as="item";H.indexAs="index";H.itemsIndexAs="itemsIndex";H.targetFramerate=20;H.notifyDomChange=!1;H.isDetached=!1;H.JSC$13937_renderDebouncer=null;H.instances=[];H.chunkingId=null;H.chunkCount=null;H.shouldMeasureChunk=!1;H.shouldContinueChunking=!1;H.renderStartTime=null;H.JSC$13937_didCallConnected=!1;return H};
_.R(iK,HTMLElement);var Zw2=function(H){H.itemSignalImpl!=null||(H.itemSignalImpl=new Wb(_.iB(uyp,void 0,"sOVFgf")));return H.itemSignalImpl},fwh=function(H,U){Array.isArray(U)||(U=uyp);
Zw2(H).setWithPath([],U)};
_.X=iK.prototype;_.X.showHideChildren=function(H){for(var U=_.b(this.instances),A=U.next();!A.done;A=U.next())s9_(H,A.value.children)};
_.X.notifyPath=function(H,U){H=Oc(H);H[0]==="items"&&(H.length===1?fwh(this,U):Zw2(this).setWithPath(H.slice(1),U))};
_.X.canNotifyPath=function(H){return H==="items"};
_.X.attributeChangedCallback=function(H,U,A){if(this.JSC$13937_didCallConnected)throw Error("Sg`"+H);H==="as"?this.as=A:H==="index-as"?this.indexAs=A:H==="items-index-as"?this.itemsIndexAs=A:H==="initial-count"?this.initialCount=Number(A):H==="notify-dom-change"?this.notifyDomChange=A!==null:H==="target-framerate"&&(this.targetFramerate=Number(A))};
_.X.disconnectedCallback=function(){this.isDetached=!0;for(var H=0;H<this.instances.length;H++)JZm(this,H);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.X.connectedCallback=function(){var H=this;if(_.S("ps_dom_repeat_require_parent_signal_proxy_killswitch")||this.parentSignalProxy){var U=Zw2(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var W=U(),w=Oc(W.path);if(w[0]===void 0||w[0]==="splices"||w[0]==="length")H.debounceRender();else{var d=w[0];if(d=H.instances[typeof d==="string"?Math.floor(Number(d)):d])w=[H.as].concat(_.vI(w.slice(1))),d.signalProxy.notifyPath(w,W)}});
this.JSC$13937_didCallConnected=!0;hvm?Nb8():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var A=(0,_.ek)((0,_.ek)(this).parentNode),M=0;M<this.instances.length;M++)A.insertBefore(this.instances[M].root,this);this.chunkingId&&this.render()}}else A=(0,_.ek)(this).parentNode,M={parentNode:A==null?void 0:A.nodeName},A instanceof Element&&(M.parentClassName=A.className),_.Na(new _.bD("PsDomRepeat connected with undefined parentSignalProxy",M))};
_.X.debounceRender=function(){this.JSC$13937_renderDebouncer=_.yF(this.JSC$13937_renderDebouncer,NC,this.JSC$13937_renderImpl.bind(this));_.BR(this.JSC$13937_renderDebouncer)};
_.X.render=function(){this.debounceRender();_.$G()};
_.X.JSC$13937_renderImpl=function(){var H=this;if(!this.parentSignalProxy.isDisposed){var U=this.items,A=Knk(this,U.length);odr(this,U,A);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){H.chunkingId=null;if(H.shouldMeasureChunk){var M=performance.now()-H.renderStartTime;H.chunkCount=Math.round(Math.ceil(1E3/H.targetFramerate)/M*H.chunkCount)||1}H.shouldContinueChunking&&H.debounceRender()}));
kT2&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var Knk=function(H,U){var A=U,M=H.instances.length;if(H.initialCount){if(H.chunkCount){var W=Math.min(Math.max(U-M,0),H.chunkCount);A=Math.min(M+W,U)}else A=Math.min(U,H.initialCount),W=Math.max(A-M,0),H.chunkCount=W||1;H.shouldMeasureChunk=W===H.chunkCount;H.shouldContinueChunking=A<U;H.renderStartTime=performance.now()}return A},odr=function(H,U,A){for(var M=0;M<A;M++){var W=H.instances[M],w=U[M];
W?(W.signalProxy.setWithPath([H.as],w),W.signalProxy.setWithPath([H.indexAs],M)):Fnr(H,w,M)}for(U=H.instances.length-1;U>=M;U--)A=H,W=U,JZm(A,W),_.b(A.instances.splice(W,1)).next().value.signalProxy.dispose()},JZm=function(H,U){H=H.instances[U];
U=(0,_.ek)(H.root);for(var A=0;A<H.children.length;A++)U.appendChild(H.children[A])},Fnr=function(H,U,A){var M={};
U=Object.assign({},PTn(H),(M[H.as]=U,M[H.indexAs]=A,M[H.itemsIndexAs]=A,M));var W=new wv(U,function(d){if(d!==H.as&&d!==H.indexAs){if(d===H.itemsIndexAs)return Zd(W,H.indexAs);var O=Zd(H.parentSignalProxy,d).getChangeRecordSignal([]);d=_.iB(void 0,void 0,"DS4mcc");var f=new Wb(d);W.effect(function(){var J=O();f.notifyPath(Oc(J.path),{value:J.value})});
return f}});
H.parentSignalProxy.childSignalProxies.push(W);M=tPN(H.templateInfo,H.templateInfo.nodeInfoList,W,{eventListenerHost:H.eventListenerHost,getModel:function(){var d={};return Object.assign({},PTn(H),(d[H.as]=W.model[H.as],d[H.indexAs]=W.model[H.indexAs],d[H.itemsIndexAs]=W.model[H.indexAs],d))},
hasInsertionPoint:H.templateInfo.hasInsertionPoint,thisCtx:H.eventListenerHost,methodInvocationRequirement:Tbp,enabledSignal:H.stampingEnabled}).root;U={root:M,children:[],signalProxy:W};M=_.b(M.childNodes);for(var w=M.next();!w.done;w=M.next())U.children.push(w.value);M=(M=H.instances[A+1])?M.children[0]:H;(0,_.ek)((0,_.ek)(H).parentNode).insertBefore(U.root,M);H.instances[A]=U},PTn=function(H){if((H=H.parentSignalProxy.model)&&!H.hostElement){var U={},A;
for(A in H)H.hasOwnProperty(A)&&(U[A]=H[A]);return U}};
iK.prototype.itemForElement=function(H){var U=this,A=this.instances.find(function(M){return M.children.includes(H)});
if(A)return xp(this.parentSignalProxy.owner,function(){return A.signalProxy.getWithPath([U.as])})};
iK.prototype.indexForElement=function(H){var U=this.instances.findIndex(function(A){return A.children.includes(H)});
return U>=0?U:void 0};
_.D5.Object.defineProperties(iK.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var H=this;return xp(this.parentSignalProxy.owner,function(){return Zw2(H).getWithPath([])})},
set:function(H){fwh(this,H)}},
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}}});
_.D5.Object.defineProperties(iK,{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",iK);var s4k,ndg;_.bK=new _.g3("STATE_STORE_TOKEN");s4k=new _.g3("SELECT_TOKEN");ndg=new _.g3("DISPATCH_TOKEN");var mVV={getSelectFn:function(){var H;return(H=_.lx().resolve(_.$V(s4k)))!=null?H:Sbc},
getDispatchFn:function(){var H;return(H=_.lx().resolve(_.$V(ndg)))!=null?H:_.Sq().dispatch.bind(_.Sq())},
getAppStore:function(){return _.lx().resolve(_.bK)}},pV4,ES0=!1;var cEK=function(){};var zvc=void 0;var Ncg=function(){};
Ncg.prototype.hasAttribute=function(H){if(H==="dir")return!1;if(H==="disable-upgrade"){var U,A;return(A=(U=this.hostElement)==null?void 0:U.hasAttribute("disable-upgrade"))!=null?A:!1}throw Error("Tg`"+H);};
Ncg.prototype.attributeChangedCallbackWrapper=function(H,U,A){if(H==="disable-upgrade"&&this.__isUpgradeDisabled&&A===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var M;((M=this.hostElement)!=null?M:this).isConnected&&this.connectedCallback()}else U===A||this.__isReflecting||this.attributeChangedCallback(H,U,A)};
Ncg.prototype.getExtraMethodsToForward=function(){for(var H=this,U=[],A=_.b(SZz),M=A.next(),W={};!M.done;W={tagName$jscomp$67:void 0,name$jscomp$631:void 0},M=A.next())W.name$jscomp$631=M.value,M=void 0,W.name$jscomp$631==="_setPendingProperty"?(W.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),M=function(w){return function(d,O,f){Vf(w.tagName$jscomp$67,d,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return H._setPendingProperty(d,O,f)}}(W)):M=function(w){return function(){return H[w.name$jscomp$631].apply(H,
_.vI(_.QY.apply(0,arguments)))}}(W),U.push([W.name$jscomp$631,
M]);return U};
for(var rEV=V6m(Q92((0,_.jf)(Ncg))),lx0=["disabled","disable-upgrade"],p9n=(0,_.jf)(function(){}),Lnp=new Set(Object.getOwnPropertyNames(p9n.prototype)),kT8=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.vI(Lnp))),Ybc=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),SZz=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),Rmh=new Set([].concat(_.vI(Ybc),_.vI(SZz),_.vI(Lnp))),EdH=_.b(Rmh),m6z=EdH.next();!m6z.done;m6z=EdH.next())Zuh.add(m6z.value);var hvK={created:function(){UV_(this);this.initializeInjection()}};var AZF=!1,zu=window.ShadyDOM,OwK=["appendChild","insertBefore","removeChild","replaceChild"],d6K=[Node];zu&&d6K.push(zu.Wrapper);var FnF,PT7,Nc4={};var Ce,Edt=new WeakMap,p97=new Set;var zmK=new Set("context didCallReady is info params signalProxy".split(" ")),tzh="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),cZV="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var gdk=Z2({entities:cht}),aww=new pq(gdk);var x6z=function(){return _.v4.apply(this,arguments)||this};
_.R(x6z,_.v4);_.D5.Object.defineProperties(x6z.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return aww}}});
_.G([_.Tl()],x6z);_.dv=[Ah.prototype,x6z.prototype];_.OY={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var H=this,U={};setTimeout(function(){var A;return _.cg((A=H.hostElement)!=null?A:H,"yt-live-chat-add-tooltip-target",U)},0);
this.handler_=U.handler},
detached:function(){if(this.handler_){var H;this.handler_.removeElementFromSupportingTooltips((H=this.hostElement)!=null?H:this)}this.handler_=null}}};_.Dd=new _.g3("ICON_MANAGER_TOKEN");var zmm=[48,20,18,16,15,13,12],Q4K=new Map,vd8=new Set,qZh=new Set,kxE=new Set,YZc=new Set,hmV=new Set,j4F=new Promise(function(H){var U=!1,A=!1,M=!1,W=[],w=function(d){if("detail"in d)if(d=d.detail,d.name==="yt-icons")Tct(d),U=!0;else if(d.name==="yt-sys-icons")Tct(d),A=!0;else{var O;((O=d.name)==null?0:O.includes("yt-sys-icons"))&&d.size!==24&&(Tct(d,!0),W.push(d.size),W.length===zmm.length&&(M=!0))}U&&A&&M&&(window.removeEventListener("iron-iconset-added",w),H())};
window.addEventListener("iron-iconset-added",w)}),CTz=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"]]);_.uK={};_.uK.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Sp,computeHref_:function(H,U){U=U===void 0?!1:U;if(!H||H.commandExecutorCommand)return null;var A=afh(H,U);return U||A!==null?A?_.S("enable_polymer_resin")?_.j3(A).toString():A:null:(_.Na(new _.bD("computeHref was null",this.is,H)),null)},
computeOptionalHref_:function(H){return this.computeHref_(H,!0)},
computeNofollow_:function(H){return H?nCM(H)?"nofollow":null:null},
computeIcon_:function(H){return H&&H.iconType?_.eq(H.iconType):""},
resolveCommand:function(H,U,A){U=U===void 0?{}:U;return _.l0(H,this.hostElement,U,A===void 0?!1:A)}};var cZw,Z1;_.tzk={};cZw=null;
Z1={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_=kHK(this.viewroot));_.oS(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var H=this;this.unobserve_();if(_.S("kevlar_vimio_use_shared_monitor"))Y$(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 U=[];this.visibilityOptionVisible_&&U.push(this.visibilityObserver.observe(this.hostElement,function(){return H.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&U.push(this.visibilityObserver.observe(this.hostElement,function(){return H.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&U.push(this.visibilityObserver.observe(this.hostElement,function(){return H.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=U}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){VzV(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 H=_.Kp(this.parentNode,function(A){var M,W=(M=A.polymerController)!=null?M:A;return!!W.getVisibilityObserverForChild&&W.getVisibilityObserverForChild()},!0);
if(H){var U;this.localVisibilityObserver_=((U=H.polymerController)!=null?U:H).getVisibilityObserverForChild()}else cZw||(cZw=kHK()),this.localVisibilityObserver_=cZw;return this.localVisibilityObserver_},visibilityCallback:function(H){H?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.S("kevlar_use_vimio_behavior")||(Z1={});Z1&&!_.S("kevlar_use_vimio_behavior")&&(delete Z1.attached,delete Z1.detached);_.tzk.YtVisibilityObserverBehavior=[Z1];var yZB={};yZB.YtVisualElementBehavior=[_.tzk.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.S("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.S("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var H=this.getScreenLayer&&this.getScreenLayer(),U=this.getVisibilityLogger();U&&U.reportShown(this,void 0,H)}},
onHidden:function(){if(_.S("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.S("kevlar_vimio_use_shared_monitor")){var H=this.getScreenLayer&&this.getScreenLayer(),U=this.getVisibilityLogger();U&&U.reportHidden(this,void 0,H)}},
getVisibilityLogger:function(){return _.S("kevlar_use_vimio_behavior")?_.qD():null},
shouldSkipLogging:function(){if(_.gD("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var H=this.getParentRenderer&&this.getParentRenderer();if(!H)return!1;var U,A=(U=H.polymerController)!=null?U:H;if(!A.data)return!1;H=this.data.trackingParams;H=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:H;var M;U=(M=A.data)==null?void 0:M.trackingParams;var W,w;U=((W=A.data)==null?0:W.loggingDirectives)?(w=A.data)==null?void 0:w.loggingDirectives.trackingParams:U;return H&&U&&H===
U}}];var wst=new Map,QD;var kcE=function(H){this.layer=H},Yj=function(H){return H.layer!==void 0?H.layer:H.parent?Yj(H.parent):H.layer=0};var usV;_.I={};usV=0;_.I.YtRendererBehavior=[_.uK.YtComponentBehavior,yZB.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_:_.S("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var H,U;(U=(H=this.monitorScrollElement)!=null?H:this.hostElement)==null||U.removeEventListener("scroll",_.lN(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();MOr(this.hostElement);G1(_.q5(),this.hostElement);LE.delete(this.hostElement)},
registerRenderer:function(H){var U;((U=H.polymerController)!=null?U:H).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(H),this.markDirty())},
unregisterRenderer_:function(H){this.useVimio_||(this.childCache_.delete(H),this.markDirty())},
attached:function(){var H=this,U=this.getParentRenderer();if(U){var A,M,W;(M=(A=(W=U.polymerController)!=null?W:U).registerRenderer)==null||M.call(A,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var w,d;(d=(w=this.monitorScrollElement)!=null?w:this.hostElement)==null||d.addEventListener("scroll",_.lN(this,this.onScroll))}_.Fl.addJob(function(){Xsr(H.hostElement)},8);
A=new kcE(this.screenLayer||void 0);(U=LE.get(U))&&U.layerNode&&(A.parent=U.layerNode);U={};OJc(this.hostElement,(U.isRenderer=!0,U.layerNode=A,U[vQ_]=this.data,U))},
getParentRenderer:function(){for(var H=this.hostElement.parentNode,U,A;H&&((U=LE.get(H))==null||!U.isRenderer)&&!((A=H.polymerController)!=null?A:H).isRenderer_;)H=H.parentNode||H.host;return H},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.S("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.xV("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.S("debug_web_ve_data")&&this.data.trackingParams){var H="";try{H=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(A){_.sD(A)}if(H){var U=I$M(H,1);U!==void 0&&(this.hostElement.dataset.veIndex=String(U));H=I$M(H,2);
H!==void 0&&(this.hostElement.dataset.ve=String(H))}}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,_.S("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.IS(this.data.loggingDirectives.trackingParams)),this.visualElement=_.hy(_.k$(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var H=this.data.targetId;_.Y6(_.q5(),H,this.hostElement)}else G1(_.q5(),this.hostElement)},
onScroll:function(){var H=Date.now();H-this.lastHandledScroll_<50||(this.lastHandledScroll_=H,this.markDirty())},
markDirty:function(){_.S("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():ZIF(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var H=this.getParentRenderer();if(H&&(H=LE.get(H))&&H.layerNode)return Yj(H.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.vI(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var H=0;H<this.data.impressionEndpoints.length;H++)this.sendImpression(this.data.impressionEndpoints[H]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(H){H.clickTrackingParams&&delete H.clickTrackingParams;var U,A;(H==null?0:(U=H.commandMetadata)==null?0:(A=U.webCommandMetadata)==null?0:A.sendPost)?_.rs(this.hostElement,[H,{impression:!0}]):_.eb(this.hostElement,[H],this.hostElement)},
logExplicitClick:function(H){var U=_.XK(this.getScreenLayer());if(U){var A,M=(A=H.polymerController)!=null?A:H;H=M.visualElement;M=M.trackingParams||M.clickTrackingParams;!H&&M&&(H=_.IS(M));H&&_.NY(U,H)}}}];var Bc3={},fJ=function(){return _.v4.apply(this,arguments)||this};
_.R(fJ,_.v4);fJ.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
fJ.prototype.onPdgItemBehaviorClick=fJ.prototype.onPdgItemBehaviorClick;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],fJ.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],fJ.prototype,"data",void 0);_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],fJ.prototype,"onPdgItemBehaviorClick",null);_.G([_.Tl()],fJ);Bc3.YtPdgLiveChatItemBehavior=[fJ.prototype,_.I.YtRendererBehavior];var rZB;var emw;_.Jh={};_.Jh.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var KJ=function(){var H=lu.apply(this,arguments)||this;H.switchTemplateAtRegistration=!1;return H};
_.R(KJ,lu);KJ.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||o90(this),_.j67(this,"doRender"),this.doRender())};
KJ.prototype.debounceRender=function(){this.templatingFn&&_.F8(this,"doRender",this.doRender)};
KJ.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.sD(Error("ch"))};
KJ.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.G([sxK()],KJ);var D6n=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,of={},n9M=(of[1]={filterString:null,isUnwrappable:null,unwrap:null},of[2]={filterString:function(H,U,A){return Cy(A)},
isUnwrappable:function(H){return H instanceof Ur},
unwrap:function(H){return Mo(H)}},of[3]={filterString:function(H,U,A){return D6n.test(A)?A:TC.toString()},
isUnwrappable:function(H){return qS(H)},
unwrap:function(H){return _.hR(H)}},of[4]={filterString:function(){return TC.toString()},
isUnwrappable:function(H){return H instanceof By},
unwrap:function(H){return _.e3(H).toString()}},of[5]={filterString:function(H,U,A){return A},
isUnwrappable:function(H){return typeof H==="string"},
unwrap:function(H){return H.toString()}},of[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(H){return H instanceof _.dY},
unwrap:function(H){return ZO(H)}},of[8]={filterString:function(H,U,A){A=String(A).toLowerCase();
return $Ct(H,U,A)?A:"zClosurez"},
isUnwrappable:null,unwrap:null},of[10]={filterString:null,isUnwrappable:null,unwrap:null},of);c1[ta["default"]]=S28;var psK=[];(function(){var H=Gi;Gi=function(U){H==null||H(U);UB(function(){for(var A=0;A<U.length;A++)Lv4(U[A])})}})();var $6B=function(){var H=_.v4.apply(this,arguments)||this;H.hasUnmounted=!1;return H};
_.R($6B,_.v4);_.X=$6B.prototype;_.X.beforeRegister=function(){var H=this.doIdomRender;this.templatingFn?_.sD(Error("bh")):(this.templatingFn=H,this.switchTemplateAtRegistration=!0,sPc(this))};
_.X.attached=function(){};
_.X.detached=function(){Lv4(this.hostElement)};
_.X.renderIdom=function(){throw Error("eh");};
_.X.doIdomRender=function(){var H=this;DGV(this.hostElement,function(){H.renderIdom()})};
_.G([_.Tl()],$6B);var lwr=[KJ.prototype,$6B.prototype];var Gxk,YZ3=function(){return Gxk!==void 0?Gxk:Gxk=document.createElement("template")};
document.head.appendChild(YZ3().content);var qZk;var hmw,kxB=function(){return hmw!==void 0?hmw:hmw=document.createElement("template")};
document.head.appendChild(kxB().content);var vd2;var TcH=document.head,j4r=TcH.appendChild,Iwn;if(vd2===void 0){var Q4m=document.createElement("template");_.E(Q4m,"\x3c!--css-build:shady--\x3e");Q4m.content.insertBefore(kxB().content.cloneNode(!0),Q4m.content.firstChild);vd2=Q4m}Iwn=vd2;j4r.call(TcH,Iwn.content);var Vzw,HIw=function(){return Vzw!==void 0?Vzw:Vzw=document.createElement("template")};
document.head.appendChild(HIw().content);var U4n;var Auw=document.head,MOp=Auw.appendChild,Wvm;if(U4n===void 0){var wsH=document.createElement("template");_.E(wsH,"\x3c!--css-build:shady--\x3e");wsH.content.insertBefore(HIw().content.cloneNode(!0),wsH.content.firstChild);U4n=wsH}Wvm=U4n;MOp.call(Auw,Wvm.content);var Xsp=document.head,iIk=Xsp.appendChild,bIw;if(qZk===void 0){var d4B=document.createElement("template");_.E(d4B,"\x3c!--css-build:shady--\x3e");d4B.content.insertBefore(YZ3().content.cloneNode(!0),d4B.content.firstChild);qZk=d4B}bIw=qZk;iIk.call(Xsp,bIw.content);var OIh,usw=function(){return OIh!==void 0?OIh:OIh=document.createElement("template")};
document.head.appendChild(usw().content);var ZIr;_.qF=new _.g3("DARK_THEME_TOKEN");var fbz=new _.me("accessibilityProperties");var Jun=new _.me("layoutProperties");var Kvn=new _.me("imageType");var o9h={};if("ytAttributedStringLinkHoverColor"in o9h)throw Error("hh`ytAttributedStringLinkHoverColor");(function(H,U){o9h[H]="value"in U&&"unit"in U?g9t(H,U):function(A){try{return U(A)}catch(M){throw Error("fh`"+H+"`"+M.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var Fvn=function(H){var U=this;this.holdTime=H===void 0?500:H;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(A){var M=new CustomEvent("LONG_PRESS"),W;(W=A.changedTouches[0].target)==null||W.dispatchEvent(M)};
this.ontouchstart=function(A){U.longPressTimeout=_.qT(_.Fl,function(){U.onlongpress(A);U.longPressOccurred=!0},U.holdTime)};
this.ontouchmove=function(){_.Fl.cancelJob(U.longPressTimeout);U.longPressTimeout=NaN;U.longPressOccurred=!1;U.moveOccurred=!0};
this.ontouchend=function(A){if(U.longPressTimeout&&!U.longPressOccurred&&!U.moveOccurred){var M;(M=A.changedTouches[0].target)==null||M.dispatchEvent(new Event("click"))}_.Fl.cancelJob(U.longPressTimeout);U.longPressTimeout=NaN;U.longPressOccurred=!1;U.moveOccurred=!1}};var kpr=function(H,U){Fvn.call(this,U);var A=this;this.callback=H;this.onlongpress=function(M){var W;(W=A.callback)==null||W.call(A,M)}};
_.R(kpr,Fvn);var v9c=function(H,U){var A=Object.assign({},U);H=_.b(new Map([["ontouchstart",H.ontouchstart],["ontouchend",H.ontouchend],["ontouchmove",H.ontouchmove]]));for(var M=H.next(),W={};!M.done;W={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},M=H.next()){var w=_.b(M.value);M=w.next().value;w=w.next().value;W.eventName$jscomp$103=M;W.eventHandler$jscomp$2=w;U[W.eventName$jscomp$103]=function(d){return function(O){var f;(f=A[d.eventName$jscomp$103])==null||f.call(A,O);(0,d.eventHandler$jscomp$2)(O)}}(W)}};_.YV=new _.g3("COMMAND_HANDLER_TOKEN");var x40=new _.me("parallelCommand");var tOF=new _.me("performOnceCommand");var Cbh=new _.me("serialCommand");var cu7=void 0;var Pbw=function(){this.data=[];this.consumer=null};
Pbw.prototype.push=function(H){this.consumer?this.consumer(H):this.data.push(H)};var Pq={};_.iB(Pq,void 0,"sgPmTd");_.iB(null,void 0,"jypsq");_.iB(null,void 0,"mWiOof");var lLE=new Pbw;var Gp8=[vsh,TYH,jDK,QDw,IOz,kjg,VGB,HFr];var sPK=new _.me("bracketTextDecorator");var Jp=new _.me("highlightTextDecorator");_.JF=new _.g3("APP_DIRECTION_TOKEN");var MEM={calledOnce:!1,state:"visible"},AiK={calledOnce:!1,state:"hidden"};var n9z=new _.g3("ICON_WIZ_COMPONENT_TOKEN");_.er=_.r(function(H){var U=H.icon;var A=H.active;var M=H.className;var W=H.style;var w=H.dataSelected;var d=H.dataDisabled;var O=H.role;var f=H.animateIcon;var J=H.themeOverride;var F=H.ariaHidden;var P=H.ariaExpanded;var n=H.ariaLabel;var N=H.tabindex;var L=H.id;var m=H.size;var z=H.iconFilter;var c=H.gradientColor;var C=H.onKeydown;var v=H.title;return _.Z(_.K,{cond:U,then:function(){var Y=_.lx().resolve(n9z);return _.Z(Y,{icon:U,dataSelected:w,dataDisabled:d,animateIcon:f,themeOverride:J,ariaExpanded:P,
tabindex:N,id:L,active:A,size:m,role:O,className:M,ariaHidden:F,ariaLabel:n,style:function(){return W!=null&&W()||m==null||!m()?W==null?void 0:W():"width: "+(m==null?void 0:m())+"px;height: "+((m==null?void 0:m())+"px;")},
title:v,iconFilter:z,gradientColor:c,onKeydown:C})}})},"p");
_.er.idomCompat={callbacks:{onKeydown:!0}};var fvt=new _.me("borderImageProcessor");var oz4=window.devicePixelRatio||1;var nz8=new Map([["yt_outline_bag_black_24","bag"]]);var F4=function(H){var U=this;this.margin=.1;this.whenInViewportWithMargin=H;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){U.requestScan()});
window.addEventListener("touchend",function(){U.requestScan()});
window.addEventListener("updateui",function(){U.requestScan()});
var A=new _.B$((0,_.i9)(this.requestScan,this),100);window.addEventListener("scroll",function(){A.fire()},!0);
window.addEventListener("resize",(0,_.i9)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){U.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.i9)(this.requestScan,this))};
F4.prototype.observe=function(H){this.observationTargets.includes(H)||this.observationTargets.push(H)};
F4.prototype.unobserve=function(H){this.observationTargets=this.observationTargets.filter(function(U){return U!==H})};
F4.prototype.requestScan=function(){var H=this;this.scanRequested||(UB(function(){NEm(H)}),this.scanRequested=!0)};
var NEm=function(H){var U=(1+H.margin)*(document.documentElement.clientHeight||window.innerHeight);H.observationTargets=H.observationTargets.filter(function(A){var M=A.getBoundingClientRect();(M=U>M.top&&!!M.height)&&H.whenInViewportWithMargin(A);return!M&&A.parentNode});
H.scanRequested=!1};
F4.prototype.disconnect=function(){this.observationTargets=[]};var S22,Lvg;S22=_.b(_.iB(RCN(),void 0,"O3X2wd"));_.psm=S22.next().value;Lvg=S22.next().value;window.addEventListener("resize",function(){Lvg(RCN())});var Rsn={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},E92=void 0,m4r=window.innerWidth,g9H=window.innerHeight;window.addEventListener("resize",function(){E92=void 0});var abw;if("IntersectionObserver"in window)abw=gz4();else{if(E92===void 0){var x4h;x4h="matchMedia"in window?window.matchMedia(Rsn.landscape+","+Rsn.portrait).matches:void 0;E92=x4h!==void 0?x4h:m4r>=930&&g9H>=550||m4r>=550&&g9H>=930}abw=E92?{observe:function(H){UB(function(){var U;(U=H.onViewportEntered)==null||U.call(H)})},
unobserve:function(){}}:new F4(function(H){UB(function(){var U;
(U=H.onViewportEntered)==null||U.call(H)})})}var Ezt=abw;var zs3=_.r(function(H){var U=!1,A=_.nA("img",function(M){_.m4(function(){U=!0;M.onload=null})});
_.Em(function(){var M,W=(M=H.data)==null?void 0:M.call(H),w,d=(w=H.getSrc)==null?void 0:w.call(H).cb,O;M=(O=H.config)==null?void 0:O.call(H);if(O=A.value)if(w=function(J,F){if(!U)return d?d(J,F):J},zCM(O,M),_.S("web_image_dont_reload_same_src")&&xQM(O,W,w))_.S("web_image_dont_reload_same_src_simulate_load")&&O.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var f;avF(O,W||null,w,M,(f=H.lazy)==null?void 0:f.call(H))}},"zS0jKb");
return _.Z("img",{el:A})},"r");
zs3.idomCompat=!0;_.nG=_.r(function(H){var U=function(){var A,M=H.data(),W,w,d,O,f,J,F,P,n,N,L,m,z,c,C,v,Y,D,h,T,WF,dK,SN,o_,PF,BF,kc,G8,Pr;var Z3={contentMode:(W=H.contentMode)==null?void 0:W.call(H),loadedClass:(w=H.loadedClass)==null?void 0:w.call(H),isPreloaded:(d=H.isPreloaded)==null?void 0:d.call(H),notifyOnLoaded:(O=H.notifyOnLoaded)==null?void 0:O.call(H),notifyOnUnloaded:(f=H.notifyOnUnloaded)==null?void 0:f.call(H),preferredThumbnail:(J=H.preferredThumbnail)==null?void 0:J.call(H),preserveHeight:(F=H.preserveHeight)==
null?void 0:F.call(H),preserveWidth:(P=H.preserveWidth)==null?void 0:P.call(H),objectPosition:(n=H.objectPosition)==null?void 0:n.call(H),targetWidth:(N=H.targetWidth)==null?void 0:N.call(H),targetHeight:(L=H.targetHeight)==null?void 0:L.call(H),shouldShowPlaceholder:(m=H.shouldShowPlaceholder)==null?void 0:m.call(H),useWidth:(z=H.useWidth)==null?void 0:z.call(H),isToggled:(c=H.isToggled)==null?void 0:c.call(H),alt:(C=H.alt)==null?void 0:C.call(H),className:(v=H.className)==null?void 0:v.call(H),
onerror:H.onerror,onload:H.onload,style$:((Y=H.style$)==null?void 0:Y.call(H))||((D=H.style)==null?void 0:D.call(H)),color:(h=H.color)==null?void 0:h.call(H),width:(T=H.width)==null?void 0:T.call(H),height:(WF=H.height)==null?void 0:WF.call(H),"aria-hidden$":(G8=(dK=H["aria-hidden$"])==null?void 0:dK.call(H))!=null?G8:(SN=H.ariaHidden)==null?void 0:SN.call(H),draggable:(o_=H.draggable)==null?void 0:o_.call(H),"data-disabled$":(Pr=(PF=H["data-disabled$"])==null?void 0:PF.call(H))!=null?Pr:(BF=H.dataDisabled)==
null?void 0:BF.call(H),size:(kc=H.size)==null?void 0:kc.call(H)};return tE7(M,Z3,(A=H.hideOn404)==null?void 0:A.call(H))};
return _.Z(_.P5,null,_.Z(_.KA,{when:function(){var A;return((A=U())==null?void 0:A.type)==="image"}},function(){return _.Z(zs3,{data:function(){return U().image},
getSrc:{cb:function(A,M){var W=U().image.sources,w=U().config.isPreloaded,d=U().config.useWidth,O=U().config.targetWidth,f=U().config.targetHeight,J=U().config.preferredThumbnail;return _.FtE(M,W,w,d,O,f,J)||""}},
config:function(){var A=U().config,M;for(M in A)A[M]===void 0&&delete A[M];return A},
lazy:H.renderLazy})}),_.Z(_.KA,{when:function(){var A;
return((A=U())==null?void 0:A.type)==="icon"}},function(){return _.Z(_.er,{icon:function(){return U().iconName},
role:function(){return U().config.role},
className:function(){return U().config.className},
style:function(){return U().config.style$+";width: "+(U().config.width+"px;height: ")+(U().config.height+"px;color: ")+(U().config.color+";")},
ariaLabel:function(){return U().config["aria-label$"]},
ariaHidden:function(){return U().config["aria-hidden$"]},
dataDisabled:function(){return U().config["data-disabled$"]},
active:function(){return U().config.isToggled},
size:function(){return U().config.size}})}))},"s");
_.nG.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var Cbk=_.r(function(H){var U=function(W){var w,d,O=_.sB(function(N){w=W();d=gP(function(){for(var L=_.b(P()),m=L.next();!m.done;m=L.next()){m=ri8(m.value);m=typeof m==="string"?document.createTextNode(m):m;if(!(m instanceof Node)){L=new _.bD("Part is not a node",m,typeof m);_.sD(L);break}N.appendChild(m)}})}),f=_.RS(H.config),J=function(){var N,L=W();
return!((N=f())==null||!N.ariaLabel)||!(L.commandRuns&&L.commandRuns.length!==0||L.paragraphStyleRuns&&L.paragraphStyleRuns.length!==0)},F=yih(f,{isEqual:DQ4}),P=function(){var N=W(),L=F(),m=[],z=N.content.length,c,C=(c=_.lx().resolve(_.$V(_.qF)))==null?void 0:c();
if(N.paragraphStyleRuns)for(var v=_.b(N.paragraphStyleRuns),Y=v.next();!Y.done;Y=v.next()){var D=m.push,h=D.apply;var T=void 0,WF=Y.value;if((T=WF.listGroup)!=null&&T.listItems){var dK=[];b:switch(WF.listGroup.listType){case "LIST_TYPE_BULLET":var SN="ul";break b;default:SN="span"}dK.push(ZN({run:WF,textLength:z,tag:SN,config:{className:"yt-core-attributed-string__list-group"},startIndex:WF.startIndex,length:WF.length}));for(var o_=_.b(WF.listGroup.listItems),PF=o_.next();!PF.done;PF=o_.next()){var BF=
PF.value;b:switch(WF.listGroup.listType){case "LIST_TYPE_BULLET":var kc="li";break b;default:kc="span"}dK.push(ZN({run:WF,textLength:z,tag:kc,startIndex:BF.startIndex,length:BF.length}))}var G8=dK}else G8=[];h.call(D,m,_.vI(G8))}if(N.styleRuns&&(L==null||!L.noStyleRuns))for(var Pr=_.b(N.styleRuns),Z3=Pr.next();!Z3.done;Z3=Pr.next()){var Yc=Z3.value,sz=Yc,Ry=C,oy=L,aY=Ibh({extension:_.p(sz.styleRunExtensions,jjn),isDarkTheme:Ry===void 0?!1:Ry,runColor:sz.fontColor}),im=void 0,Kh=sz,rK=[];aY&&rK.push("yt-core-attributed-string--link-inherit-color");
Kh.italic&&rK.push("yt-core-attributed-string--italicized");Kh.underline&&Kh.strikethrough?rK.push("yt-core-attributed-string--underline-strikethrough",VOK(Kh.underline)):Kh.underline?rK.push("yt-core-attributed-string--underlined",VOK(Kh.underline)):Kh.strikethrough&&rK.push("yt-core-attributed-string--strikethrough",VOK(Kh.strikethrough));if(Kh.baselineOffset){a:switch(Kh.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":im="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":im=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:im="yt-core-attributed-string--baseline-offset-unknown"}rK.push(im)}var FB=rK.join(" ");var T2=sz,xK=aY,Hj={};if(T2.weight||T2.weightLabel)Hj.fontWeight=QPV(T2,oy==null?void 0:oy.isHeadline).toString();xK&&(Hj.color=xK);m.push(ZN({run:Yc,textLength:z,tag:"span",config:{className:FB,style:Hj},startIndex:Yc.startIndex,length:Yc.length}))}if(N.decorationRuns)for(var CU=_.b(N.decorationRuns),Qh=CU.next();!Qh.done;Qh=CU.next()){var oY=
Qh.value,qp={};if(oY.textDecorator){var kf=oY.textDecorator,Oz=C===void 0?!1:C,Fh=[],Kk=_.p(kf,Jp),kK=_.p(kf,sPK);if(Kk){var ew=Fh,O$=ew.concat,lv=[],G2=Ibh({extension:_.p(Kk.highlightTextDecoratorExtensions,TUw),isDarkTheme:Oz,runColor:Kk.backgroundColor});G2&&lv.push("background-color: "+G2+";");Kk.backgroundCornerRadius!==void 0&&lv.push("border-radius: "+Kk.backgroundCornerRadius+"px;");Kk.leftPadding!==void 0&&lv.push("padding-left: "+Kk.leftPadding+"px;");Kk.rightPadding!==void 0&&lv.push("padding-right: "+
Kk.rightPadding+"px;");Kk.topPadding!==void 0&&lv.push("padding-top: "+Kk.topPadding+"px;");Kk.bottomPadding!==void 0&&lv.push("padding-bottom: "+Kk.bottomPadding+"px;");Fh=O$.call(ew,lv)}else if(kK){var K8=Fh,Qp=K8.concat,uv=Oz?"#2ba640":"#107516",Rl=kK.color?jP_(kK.color):uv;Fh=Qp.call(K8,["padding: 2px;","border-top: solid "+Rl+" 2px;","border-bottom: solid "+Rl+" 2px;","background: linear-gradient(135deg, "+Rl+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+Rl+" 3px, rgba(0, 0, 0, 0) 3px);"])}var uL=
Fh.join(" ");qp.style$=uL;var UW=oY.textDecorator,pW=[],pU=_.p(UW,sPK);_.p(UW,Jp)?pW.push("yt-core-attributed-string--highlight-text-decorator"):pU&&pW.push("yt-core-attributed-string--bracket-text-decorator");var mF=pW.join(" ");qp.className=mF;qp.dir="auto"}var gK=_.p(oY.textDecorator,Jp),eN=_.p(oY.textDecorator,sPK),T8=_.p(oY.textDecorator,Jp),Sw=_.p(oY.textDecorator,sPK);m.push(ZN({run:oY,textLength:z,tag:"span",config:qp,startIndex:(gK==null?void 0:gK.startIndex)||(eN==null?void 0:eN.startIndex)||
0,length:(T8==null?void 0:T8.length)||(Sw==null?void 0:Sw.length)||0}))}if(N.commandRuns&&(L==null||!L.noEndpoints))for(var RY=_.b(N.commandRuns),gM=RY.next();!gM.done;gM=RY.next()){var zy=gM.value,mw=TEc(zy,L);m.push(ZN({run:zy,textLength:z,tag:"a",config:mw,startIndex:zy.startIndex,length:zy.length}))}if(N.attachmentRuns)for(var Ez=_.b(N.attachmentRuns),Gy=Ez.next();!Gy.done;Gy=Ez.next()){var XL=Gy.value,nk=void 0,tz=void 0,V9={className:"yt-core-attributed-string--inline-block-mod"};if((tz=XL.element)==
null?0:tz.properties){var GC=(nk=XL.element)==null?void 0:nk.properties,JD=[],U4=_.p(GC,Jun);if(U4==null?0:U4.margin){var gV=U4.margin;gV.left&&JD.push("margin-left: "+wA(gV.left)+";");gV.right&&JD.push("margin-right: "+wA(gV.right)+";");gV.top&&JD.push("margin-top: "+wA(gV.top)+";");gV.bottom&&JD.push("margin-bottom: "+wA(gV.bottom)+";")}var DD=JD.length!==0?JD.join(" "):void 0;V9.style$=DD}var vC=V9,hq=void 0,nv={alt:"",preserveHeight:!0,preserveWidth:!0},Yh=["yt-core-attributed-string__image-element"];
if(XL.alignment){a:switch(XL.alignment){case "ALIGNMENT_BASELINE":var p1="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":p1="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:p1="yt-core-attributed-string__image-element--image-alignment-bottom"}Yh.push(p1)}if((hq=XL.element)==null?0:hq.properties){var LU=[],pe=_.p(XL.element.properties,Jun);(pe==null?0:pe.height)&&LU.push("height: "+wA(pe.height)+
";");(pe==null?0:pe.width)&&LU.push("width: "+wA(pe.width)+";");var YC=LU.length!==0?LU.join(" "):void 0;nv.style$=YC;var qG=void 0;var k6=((qG=_.p(XL.element.properties,fbz))==null?void 0:qG.label)||"";nv.alt=k6}nv.className=Yh.join(" ");var Go=nv,qb=void 0;var hJ=void 0,OD=void 0;var kh=((OD=XL.element)==null?0:OD.type)?(hJ=_.p(XL.element.type,Kvn))==null?void 0:hJ.image:void 0;m.push(ZN({run:XL,textLength:z,tag:"img",image:kh,imageConfig:Go,imageWrapperConfig:vC,startIndex:XL.startIndex,length:(qb=
XL.length)!=null?qb:0}))}if(L==null?0:L.headerRuns)for(var vb=_.b(L.headerRuns),Hr=vb.next();!Hr.done;Hr=vb.next()){var dh=Hr.value;if(dh.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(dh.headerMapping)){a:{switch(dh.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":var gh="yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":gh=
"yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":gh="yt-core-attributed-string--heading-3";break a}gh=void 0}m.push(ZN({run:dh,textLength:z,tag:"span",config:gh?{className:gh}:void 0,startIndex:dh.startIndex,length:dh.length}))}}var Vp=F();if(Vp==null?0:Vp.userInput)for(var XI=_.b(m),UA=XI.next();!UA.done;UA=XI.next()){var HJ=UA.value;if(HJ.tag!=="a"&&HJ.tag!=="li"){var D$=void 0;(D$=HJ).config||(D$.config={});HJ.config.dir=HJ.tag==="ul"?_.lx().resolve(_.JF):
"auto"}}if(W().content){var Oh=W().content;br4(m);for(var gr={data:null,start:0,end:Oh.length,parts:[]},nX_=_.b(m),aB=nX_.next();!aB.done;aB=nX_.next()){var x_=aB.value;X2K(gr,x_.startIndex,x_.endIndex,x_)}irN(Oh,gr);var Nu_=gr.parts}else Nu_=[];return Nu_},n=!0;
_.Em(function(){W();F();if(n&&(n=!1,Blc(W(),w)))return;var N=P();Promise.resolve().then(function(){var L=O.value;if(L){L.innerText="";var m;(m=d)==null||m();d=_.Sy(L,function(){return _.Z(eCN,{parts:N})},"t")}})},"Dfzccf");
return _.Z("span",{el:O,class:function(){var N;if(N=W()){N=W();var L=f(),m=[];m.push("yt-core-attributed-string");(L==null?0:L.className)&&m.push(L==null?void 0:L.className);(L==null?0:L.ellipsisTruncate)?m.push("yt-core-attributed-string--ellipsis-truncate"):(L==null?0:L.noWrap)?m.push("yt-core-attributed-string--white-space-no-wrap"):(L==null?0:L.noPreWrap)||m.push("yt-core-attributed-string--white-space-pre-wrap");(L==null?0:L.linkInheritColor)&&m.push("yt-core-attributed-string--link-inherit-color");
N.alignment&&m.push(Hr0(N.alignment));N.lineBreakMode&&m.push("yt-core-attributed-string--word-wrapping");N=m.join(" ")}return N},
dir:function(){var N;return((N=f())==null?0:N.userInput)?"auto":void 0},
"aria-label":function(){var N;return J()?(N=f())==null?void 0:N.ariaLabel:void 0},
role:function(){return J()?"text":void 0}})},A=yih(function(){var W,w=(W=H.text)==null?void 0:W.call(H);
if(w)return W=_.ov(w)?w:_.Me(w),(W==null?0:W.content)?W:void 0},{isEqual:Blc}),M;
return((M=H.config)==null?0:M.contentAsserted)?U(A):_.Z(_.K,{cond:A,then:U})},"v");
Cbk.idomCompat=!0;_.Pb=_.r(function(H){var U=_.RS(H.text),A=$Q7(H);H.contentAsserted!==void 0&&(A.contentAsserted=!0);return _.Z(Cbk,{text:U,config:A})},"w");
_.Pb.idomCompat=!0;var lvM=function(H,U,A){U=U===void 0?"unknown":U;A=A===void 0?{}:A;_.bD.call(this,H+" ("+U+")",Object.assign({},{name:"YtWcwError",tagName:U},A));Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(lvM,_.bD);_.pG=new WeakMap;_.Sr=!1;var kY0,vz7,hC7;_.sY=Symbol("jh");_.Ne=Symbol("kh");kY0=Symbol("lh");vz7=new Set(Object.getOwnPropertyNames(Element.prototype));hC7=Symbol("mh");var tOr=_.r(function(H){return _.Z("yt-attributed-string",{"aria-label":H.ariaLabel,hidden:H.hidden,id:H.id,class:H.className,"force-default-style":H.forceDefaultStyle},_.Z(_.Pb,{text:H.data,ariaLabel:H.ariaLabel,ellipsisTruncate:H.ellipsisTruncate,isOverlay:H.isOverlay,linkInheritColor:H.linkInheritColor,noPreWrap:H.noPreWrap,noWrap:H.noWrap,userInput:H.userInput,noEndpoints:H.noEndpoints,headerRuns:H.headerRuns,isHeadline:H.isHeadline}))},"x");
_.S("web_wiz_attributed_string")&&_.LG(tOr,"yt-attributed-string",{props:{ariaHidden:_.sY,ariaLabel:_.sY,className:_.sY,ellipsisTruncate:_.sY,isOverlay:_.sY,linkInheritColor:_.sY,noEndpoints:_.sY,noStyleRuns:_.sY,noLinkColor:_.sY,noPreWrap:_.sY,noWrap:_.sY,skipOnClick:_.sY,userInput:_.sY,headerRuns:_.sY,isHeadline:_.sY,id:_.sY,data:_.sY,hidden:_.sY,forceDefaultStyle:_.sY,text:_.Ne,disableUpgrade:_.Ne,disable:_.Ne,slot:_.Ne}});var nJ=function(){return _.B.apply(this,arguments)||this};
_.R(nJ,_.B);nJ.prototype.renderIdom=function(){if(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};var H=this.data,U=this.config;H&&(H=_.ov(H)?H:_.Me(H),H!=null&&H.content&&(U=U||{},U.contentAsserted=!0,LtM(Cbk)({text:H,config:U})))}};
_.G([_.g(lwr),_.q("design:type",Object)],nJ.prototype,"ytIdomTemplatingBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],nJ.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],nJ.prototype,"ariaLabel",void 0);_.G([_.y(),_.q("design:type",Boolean)],nJ.prototype,"disable",void 0);_.G([_.y(),_.q("design:type",Boolean)],nJ.prototype,"ellipsisTruncate",void 0);_.G([_.y(),_.q("design:type",Boolean)],nJ.prototype,"isOverlay",void 0);
_.G([_.y(),_.q("design:type",Boolean)],nJ.prototype,"linkInheritColor",void 0);_.G([_.y(),_.q("design:type",Boolean)],nJ.prototype,"noPreWrap",void 0);_.G([_.y(),_.q("design:type",Boolean)],nJ.prototype,"noWrap",void 0);_.G([_.y(),_.q("design:type",Boolean)],nJ.prototype,"userInput",void 0);_.G([_.y(),_.q("design:type",Boolean)],nJ.prototype,"noEndpoints",void 0);_.G([_.y(),_.q("design:type",Array)],nJ.prototype,"headerRuns",void 0);
_.G([_.b0({is:"yt-attributed-string",disableElementRegistration:!0})],nJ);
_.S("web_wiz_attributed_string")||_.e(nJ,"yt-attributed-string",function(){if(ZIr===void 0){var H=document.createElement("template");_.E(H,"\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");H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
H.content.insertBefore(usw().content.cloneNode(!0),H.content.firstChild);ZIr=H}H=ZIr;return H},{mode:2});var cun,yuH,UOt;cun=function(){this.firstThumbnailLoaded=!1};
_.BE2=function(){yuH||(yuH=new cun);return yuH};
UOt=function(H){var U=_.BE2();U.firstThumbnailLoaded||(U.firstThumbnailLoaded=!0,_.ba("ftl",H))};
cun.prototype.reset=function(){this.firstThumbnailLoaded=!1};var jOt=0,HgF=new WeakMap,QO7=0,m7=new Set;var rup,esh=function(){return rup!==void 0?rup:rup=document.createElement("template")};
document.head.appendChild(esh().content);var D4H;var wwV,igh,NE;_.x3=_.Mr.caches;NE=function(){};
NE.prototype.open=function(H){return _.x3.open($4p(H))};
NE.prototype.has=function(H){return _.x3.has($4p(H))};
NE.prototype.delete=function(H){return _.x3.delete($4p(H))};
NE.prototype.match=function(H,U){var A=this,M,W,w,d,O,f;return _.u(function(J){switch(J.nextAddress){case 1:return J.yield(A.keys(),2);case 2:M=J.yieldResult,W=_.b(M),w=W.next();case 3:if(w.done){J.jumpTo(5);break}d=w.value;return J.yield(A.open(d),6);case 6:return O=J.yieldResult,J.yield(O.match(H,U),7);case 7:if(f=J.yieldResult)return J.return(f);w=W.next();J.jumpTo(3);break;case 5:return J.return()}})};
var bgr=function(){};
_.R(bgr,NE);var $4p=function(H){if(H.includes(":"))throw Error("ph`"+H);return H+":"+_.XU("CacheStorage get")};
bgr.prototype.keys=function(){var H,U,A,M,W,w,d,O,f;return _.u(function(J){if(J.nextAddress==1)return H=[],U=_.XU("CacheStorage keys"),J.yield(_.x3.keys(),2);A=J.yieldResult;M=_.b(A);for(W=M.next();!W.done;W=M.next())w=W.value,d=_.WCc(w),O=d.originalName,f=d.datasyncId,f===U&&H.push(O);return J.return(H)})};var S4=function(){var H=_.B.apply(this,arguments)||this;H.objectURL=null;H.loadTime=Infinity;return H};
_.R(S4,_.B);_.X=S4.prototype;
_.X.renderIdom=function(){M0c(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("sh");this.setConfig();if(this.config){var H=this.config,U=this.shouldRenderLazy;LtM(_.nG)({contentMode:H.contentMode,loadedClass:H.loadedClass,isPreloaded:H.isPreloaded,notifyOnLoaded:H.notifyOnLoaded,notifyOnUnloaded:H.notifyOnUnloaded,preferredThumbnail:H.preferredThumbnail,preserveHeight:H.preserveHeight,preserveWidth:H.preserveWidth,objectPosition:H.objectPosition,targetWidth:H.targetWidth,
targetHeight:H.targetHeight,shouldShowPlaceholder:H.shouldShowPlaceholder,useWidth:H.useWidth,isToggled:H.isToggled,alt:H.alt,className:H.className,onerror:H.onerror,onload:H.onload,style$:H.style$,color:H.color,width:H.width,height:H.height,"aria-hidden$":H["aria-hidden$"],draggable:H.draggable,"data-disabled$":H["data-disabled$"],data:this.data,callback:void 0,renderLazy:U===void 0?!0:U,hideOn404:!1})}}};
_.X.objectFitToContentMode=function(H){switch(H){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.X.logThumbnailFailureVe=function(){var H=_.ts(197497);_.$g(_.k$(),H);var U=_.XK();U&&H&&U&&_.sn(U,[H])};
_.X.loadImageFromCacheIfExists=function(H){var U=this,A=H.target;(A==null?0:A.src)&&Ogc(A.src).then(function(M){U.objectURL=_.I5(M).toString();U.setSrc(A,U.objectURL)}).catch(function(){})};
_.X.onError=function(H){var U=this;if(_.S("web_use_cache_for_image_fallback")){var A=H.target;A&&Ogc(A.src).then(function(M){U.objectURL=_.I5(M).toString();U.setSrc(A,U.objectURL)}).catch(function(){_.S("kevlar_woffle_log_thumbnail_failure_ve")&&U.logThumbnailFailureVe();
_.S("kevlar_woffle_fallback_image")&&U.setSrc(A,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.X.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.X.setConfig=function(){var H=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(U){H.loadImageFromCacheIfExists(U);H.revokeObjectURL();A57(H.hostElement)},
onerror:function(U){H.onError(U)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.S("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.X.setSrc=function(H,U){U&&(H.src=U)};
_.G([_.g(lwr),_.q("design:type",Object)],S4.prototype,"ytIdomTemplatingBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],S4.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],S4.prototype,"alt",void 0);_.G([_.y(),_.q("design:type",Boolean)],S4.prototype,"ftlEligible",void 0);_.G([_.y(),_.q("design:type",Number)],S4.prototype,"height",void 0);_.G([_.y(),_.q("design:type",Boolean)],S4.prototype,"notifyOnLoaded",void 0);
_.G([_.y(),_.q("design:type",Boolean)],S4.prototype,"notifyOnUnloaded",void 0);_.G([_.y(),_.q("design:type",String)],S4.prototype,"objectFit",void 0);_.G([_.y(),_.q("design:type",String)],S4.prototype,"objectPosition",void 0);_.G([_.y(),_.q("design:type",String)],S4.prototype,"preferredThumbnail",void 0);_.G([_.y(),_.q("design:type",Boolean)],S4.prototype,"preserveHeight",void 0);_.G([_.y(),_.q("design:type",Boolean)],S4.prototype,"preserveWidth",void 0);
_.G([_.y({value:!0}),_.q("design:type",Boolean)],S4.prototype,"useWidth",void 0);_.G([_.y({value:function(){return!_.xV("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.q("design:type",Boolean)],S4.prototype,"shouldRenderLazy",void 0);_.G([_.y(),_.q("design:type",Number)],S4.prototype,"width",void 0);_.G([_.b0({is:"yt-image",disableElementRegistration:!0})],S4);
_.e(S4,"yt-image",function(){if(D4H===void 0){var H=document.createElement("template");_.E(H,"\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");H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);H.content.insertBefore(esh().content.cloneNode(!0),H.content.firstChild);
D4H=H}H=D4H;return H},{mode:2});var pJ=function(){return _.B.apply(this,arguments)||this};
_.R(pJ,_.B);pJ.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var H=_.ij(this.data.onVisibleCommand);H&&this.ytComponentBehavior.resolveCommand(H)}};
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],pJ.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],pJ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.Jh.YtVisibilityBehavior),_.q("design:type",Object)],pJ.prototype,"ytVisibilityBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],pJ.prototype,"data",void 0);_.G([_.b0({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],pJ);
_.e(pJ,"yt-bumper-user-edu-content-view-model",function(){if(emw===void 0){var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;rZB===void 0&&(rZB=document.createElement("template"));var M=rZB;A.call(U,M.content.cloneNode(!0),H.content.firstChild);emw=H}H=emw;return H},{mode:0});var lbw;var Gp2,Y2w=function(){if(Gp2!==void 0)return Gp2;var H=document.createElement("template");_.E(H,'\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="countdown style-scope yt-creator-goal-progress-flow-view-model" target-timestamp="[[endTimestamp]]"></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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;lbw===void 0&&(lbw=document.createElement("template"));var M=lbw;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return Gp2=H};var q2y;_.LJ={};q2y=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"]);_.LJ.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var H=this.getContext_();return H?H.getTaskManager():_.Fl},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var H=_.cg(this.hostElement,"yt-get-context-provider",{});H.detail&&H.detail.contextProvider?this.cachedProviderNode_=H.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return q2y.has(this.hostElement.localName)},
getNetworkManager:function(){var H=this.getContext_();if(H)return H.getNetworkManager()}};var oEt,hsz,v9K,kpp;_.Rf=function(H){var U=hsz.get(H);if(U&&(U=U.pop()))return kpp++,U;v9K++;try{var A=document.createElement(H)}catch(M){throw new _.bD("ElementPool failed to create element",H,M.message);}return A};
oEt=function(H){var U=H.is;if(U){var A=hsz.get(U);A||(A=[],hsz.set(U,A));var M=_.gD("ELEMENT_POOL_CONFIG")||{};A.length>=(M[U]!==void 0?M[U]:_.gD("ELEMENT_POOL_DEFAULT_CAP",0))||A.push(H)}else _.Na(new _.bD("Element pool should only handle custom elements:",H.nodeName))};
hsz=new Map;v9K=0;kpp=0;var zk=new WeakMap,KCc=new WeakMap;var jPy;_.EY=function(H,U,A){A=A===void 0?_.MP():A;this.JSC$14204_defaultPriority=H;this.signal=U;this.scheduler=A;this.nextJobDescriptor=0;this.JSC$14204_parkedJobs=[];this.scheduledJobs=new Map};
_.mg=function(H,U){if(U){var A=_.sC();H.signal&&!_.n9(A,H.signal)?(A.addListener(H.signal,function(){H.processSignal()}),H.JSC$14204_parkedJobs.push({job:U,
priority:void 0})):TEK(H,U)}};
jPy=function(H,U){if(U!==H.JSC$14204_defaultPriority){H.JSC$14204_defaultPriority=U;for(var A=_.b(H.scheduledJobs.values()),M=A.next();!M.done;M=A.next())M=M.value,H.scheduler.cancelJob(M.jobId),M.jobId=H.scheduler.addJob(M.jobWrapper,U)}};
_.EY.prototype.flushJobs=function(){jPy(this,10);this.processSignal()};
_.EY.prototype.cancel=function(){for(var H=_.b(this.scheduledJobs),U=H.next();!U.done;U=H.next()){var A=_.b(U.value);U=A.next().value;A=A.next().value;this.scheduler.cancelJob(A.jobId);this.scheduledJobs.delete(U)}this.JSC$14204_parkedJobs=[]};
_.EY.prototype.processSignal=function(){for(var H=_.b(this.JSC$14204_parkedJobs),U=H.next();!U.done;U=H.next())U=U.value,TEK(this,U.job,U.priority);this.JSC$14204_parkedJobs=[]};
var TEK=function(H,U,A){A=A||H.JSC$14204_defaultPriority;if(A===10)gA(U);else{var M=H.nextJobDescriptor++,W=function(){U();H.scheduledJobs.delete(M)},w=H.scheduler.addJob(W,A);
H.scheduledJobs.set(M,{jobWrapper:W,jobId:w,priority:A})}};var Ibk;_.gv={};Ibk={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.gv.YtRendererstamperBehavior=[_.LJ.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 H in this.stampDom){var U=this.stampDom[H];U&&U.id&&this.addReactiveSchema({type:"observe",method:{methodName:Zg4(U.id),args:[{type:"wildcard",path:H}]}})}else{(H=(this.constructor.generatedFrom||this).observers)||(H=[]);for(U in this.stampDom){var A=this.stampDom[U];A&&A.id&&H.push(Zg4(A.id)+"("+U+".*)")}this.constructor.generatedFrom.observers=H}},
addStampDomObserverFns_:function(){for(var H in this.stampDom){var U=this.stampDom[H];U.id?(this[Zg4(U.id)]=this.rendererStamperObserver_.bind(this,H,U.id),this.hasDataPath_[H]=!1):(U=new _.bD("Bad rendererstamper config",this.is+":"+H),_.sD(U))}},
rendererStamperObserver_:function(H,U,A){if(A.path==H){if(A.value===void 0&&!this.hasDataPath_[H])return;this.hasDataPath_[H]=A.value!==void 0}this.rendererStamperApplyChangeRecord_(H,U,A)},
rendererStamperApplyChangeRecord_:function(H,U,A){var M=this.renderJobsMap_[U],W=null;H==A.path?(A=A.value,_.l7(A)||(A=A===void 0||A===null?[]:[A]),H=this.stampDom[H],H.mapping&&(W=this.stampDomArray_.bind(this,A,U,H.mapping,H.reuseComponents,H.events,H.stamperStableList)),M&&M.cancel(),A=H.usePageScheduler?this.getTaskManager():void 0,M||H.initialRenderPriority==void 0)?H.renderPriority==void 0||M||(M=new _.EY(H.renderPriority,H.waitForSignal,A),this.renderJobsMap_[U]=M):(M=new _.EY(H.initialRenderPriority,
H.waitForSignal,A),this.renderJobsMap_[U]=M,W=function(w,d){w();jPy(d,10)}.bind(this,W,M)):W=H+".splices"==A.path?this.stampDomArraySplices_.bind(this,H,U,A.value):this.forwardRendererStamperChanges_.bind(this,H,U,A);
M?_.mg(M,W):W()},
forwardRendererStamperChanges_:function(H,U,A){var M=A.path.slice(H.length+1),W=this.getStampContainer_(U),w=M.indexOf("."),d=M.substring(0,w),O=!1,f=0,J=parseInt(d,0);if(d[0]=="#"){O=parseInt(d.substring(1),0);J=this.get(H);var F=this.get([H,d]);J[O]==F?f=O:f=J.indexOf(F);O=!0}else isNaN(J)||(f=J,O=!0);O&&(M=M.substring(d.length+1),w=M.indexOf("."));d=this.polymerDom(W).children[f];var P;if(W=(P=d==null?void 0:d.polymerController)!=null?P:d)M="data"+M.slice(w),typeof W.notifyPath!=="function"?_.Na(new _.bD("notifyPath missing",
this.is+": "+H+", "+U)):A.value?W.notifyPath(M,A.value):W.notifyPath(M)},
stampDomArraySplices_:function(H,U,A){if(A&&A.indexSplices){var M=this.getStampContainer_(U);if(M){for(var W=this.polymerDom(M),w=J58(this.stampDom[H].reuseComponents),d=A.indexSplices.length,O=0;O<d;O++){for(var f=A.indexSplices[O],J=W.children[f.index],F=f.removed.length;F>0;F--)J&&J.parentElement&&(this.polymerDom(J.parentElement).removeChild(J),w&&oEt(J),J=W.children[f.index]);F=this.stampDom[H].mapping;for(var P=f.index+f.addedCount,n=document.createDocumentFragment(),N=w,L=f.index;L<P;L++){var m=
f.object[L],z=u9N(F,m);if(z){var c=F[z];m=m[z];z=this.getComponentName_(c,m);var C=J?zk.has(J):!1;N&&J&&J.is==z&&C?(z=J,this.telemetry_.reuse++,J=J.nextElementSibling):N&&J&&C?(z=this.createComponent_(c,m,w),C=this.polymerDom(J).nextElementSibling,W.insertBefore(z,C),Ppc(this.is,W,J,w),J=C):(N=!1,z=this.createComponent_(c,m,w),n.appendChild(z));this.deferRenderStamperBinding_(z,c,m)}else c=new _.bD("Unimplemented type",H,U,M.tagName,Object.keys(m)[0]),_.sD(c)}W.insertBefore(n,J)}this.flushRenderStamperComponentBindings_();
this.stampDom[H].events&&_.cg(this.hostElement,"yt-rendererstamper-finished",{container:M})}else H=new _.bD("Container object not found",U,this.hostElement?this.hostElement.is:""),_.sD(H)}},
stampDomArray_:function(H,U,A,M,W,w){var d=this.getStampContainer_(U);if(d)if(U=this.polymerDom(d),M=J58(M),H){var O=0,f=0,J;if(w=w===void 0?_.xV("STAMPER_STABLE_LIST",!1):w||!1)for(J=U.firstElementChild;J&&!zk.has(J)&&H.length>f;){w=H[f];var F=u9N(A,w);if(F){if(this.getComponentName_(A[F],w[F])!=J.is){var P=this.createComponent_(A[F],w[F],M),n=this.polymerDom(J).nextElementSibling;n?U.insertBefore(P,n):U.appendChild(P);Ppc(this.is,U,J,M);J=P}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(J,
A[F],w[F]);O++;f++;J=this.polymerDom(J).nextElementSibling}else f++}nEM(this.is,U,O,M);O=J;if(H.length>f){w=document.createDocumentFragment();for(F=H.length;f<F;f++)if(P=H[f],n=u9N(A,P))J=this.createComponent_(A[n],P[n],M),this.deferRenderStamperBinding_(J,A[n],P[n]),w.appendChild(J);O&&this.polymerDom(O).parentNode&&J&&!zk.has(J)?U.insertBefore(w,O):U.appendChild(w)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();W&&_.cg(this.hostElement,"yt-rendererstamper-finished",
{container:d})}else nEM(this.is,U,0,M);else H=new _.bD("Container object not found",U,this.hostElement?this.hostElement.is:""),_.sD(H)},
polymerDom:function(H){return this.minimizePipBreakages?H:_.Ig(H)},
getStampContainer_:function(H){return this.$&&this.$[H]||_.c4(this.hostElement).querySelector("#"+H)},
getComponentName_:function(H,U){return typeof H==="string"?H:H.matcher?H.matcher.call(this,U):H.component},
createComponent_:function(H,U,A){H=this.getComponentName_(H,U);try{var M=p97.has(H);if(A&&!M){var W=_.Rf(H);try{_.Dt(W)}catch(w){A="Failed to clear styles for "+H+".",w.message&&(A+=" Original error: "+w.message),_.Na(new _.bD(A))}}else W=document.createElement(H)}catch(w){return W="YtRendererStamperBehavior failed to create "+H+".",w.message&&(W+=" Original description: "+w.message),w.message="YtRendererStamperBehavior failed to create element",_.SD(w,W),Ibk.hasOwnProperty(H)?_.Na(w):_.sD(w),document.createElement("SPAN")}this.telemetry_.create++;
return W},
deferRenderStamperBinding_:function(H,U,A){this.deferredBindingTasks_.push({component:H,typeOrConfig:U,data:A})},
flushRenderStamperComponentBindings_:function(){for(var H=0,U=this.deferredBindingTasks_.length;H<U;H++){var A=this.deferredBindingTasks_[H];if(!A)break;s8K(this,A.component,A.typeOrConfig,A.data)}this.deferredBindingTasks_.length=0}}];_.LG(_.r(function(H){function U(){A().seconds&&w(Znr({seconds:Number(A().seconds)-Date.now()/1E3}))}
var A=H.targetTimestamp;H=H.className;var M=_.b(_.iB("",void 0,"U1Q8Ae")),W=M.next().value,w=M.next().value;_.pA(function(){U();var d=setInterval(function(){U()},1E3);
_.m4(function(){clearInterval(d)})});
return _.Z("yt-countdown",{class:_.CG("ytCountDownHost",H)},_.Z("div",null,W))},"z"),"yt-countdown",{props:{targetTimestamp:_.sY,
className:_.Ne}});_.af=new _.g3("KEY_MANAGER_TOKEN");var gEM={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.xy=_.r(function(H){var U=_.nA("a",H.ref),A=H.aTagConfig?H.aTagConfig:_.Ja(function(){var M,W,w,d,O;var f=(O=_.ij((w=H.command)==null?void 0:w.call(H)))!=null?O:(d=H.command)==null?void 0:d.call(H);return _.dA({innertubeCommand:f,skipOnClick:(M=H.skipOnClick)==null?void 0:M.call(H),defaultTarget:(W=H.target)==null?void 0:W.call(H)})||{}},void 0,"TAvz0");
_.Em(function(){_.S("mweb_get_endpoint_from_atag_command")||(U.value._data=A()._data,U.value.params=A().params)},"dcjvAe");
return _.Z("a",{el:U,href:function(){return A().href$},
rel:function(){return A().rel$},
class:function(){var M,W;return(W=A().className)!=null?W:(M=H.className)==null?void 0:M.call(H)},
style:function(){var M;if((M=H.style)==null?0:M.call(H))return H.style();var W;return((W=H.disabled)==null?0:W.call(H))?"pointer-events:none":""},
"aria-haspopup":function(){return!!A()["aria-haspopup$"]},
"force-new-state":ym(function(){return A()["force-new-state$"]}),
title:ym(function(){var M,W;return(W=A().title$)!=null?W:(M=H.title)==null?void 0:M.call(H)}),
role:ym(function(){var M;return((M=H.role)==null?void 0:M.call(H))||A().role$}),
target:ym(function(){return A().target$}),
dir:ym(function(){var M;return((M=H.dir)==null?void 0:M.call(H))||A().dir}),
tabindex:function(){var M;return A().tabindex$?Number(A().tabindex$):(M=H.tabIndex)==null?void 0:M.call(H)},
"aria-hidden":function(){var M,W;return(W=A()["aria-hidden$"])!=null?W:(M=H.ariaHidden)==null?void 0:M.call(H)},
"aria-label":function(){var M,W;return(W=A()["aria-label$"])!=null?W:(M=H.ariaLabel)==null?void 0:M.call(H)},
"aria-current":H.ariaCurrent,"aria-disabled":H.disabled,"aria-labelledby":H.ariaLabelledby,"aria-describedby":H.ariaDescribedby,"aria-selected":H.ariaSelected,"tab-identifier":H.tabIdentifier,"on:pointerdown":_.c$(function(M){var W,w;return void((w=(W=A()).onpointerdown)==null?void 0:w.call(W,M))}),
"on:click":_.c$(function(M){var W,w;(w=(W=A()).onclick)==null||w.call(W,M);var d;(d=H.onClick)==null||d.call(H,M)}),
"on:focusin":_.c$(function(M){var W;(W=H.onFocusin)==null||W.call(H,M)}),
"on:focusout":_.c$(function(M){var W;(W=H.onFocusout)==null||W.call(H,M)})},H.children)},"B");var y5h={duration:1E3,easing:"ease",fill:"forwards"};c5F.componentType=F$;var eJE={duration:1E3,easing:"ease",fill:"forwards"},Hrh=_.r(function(H){var U=_.nA("animated-rolling-character"),A=void 0,M=function(){var O,f;return NZ((O=H.character)==null?void 0:O.call(H))||NZ((f=H.previousCharacter)==null?void 0:f.call(H))},W=_.b(_.iB(0,void 0,"CYT8Ob")),w=W.next().value,d=W.next().value;
_.pA(function(){if(window.ResizeObserver&&_.S("web_fix_rolling_numbers_zoom_safari")){var O=new _.B$(function(){var J,F,P=Math.round(((F=(J=U.value.querySelector("div"))==null?void 0:J.getBoundingClientRect().height)!=null?F:0)*100)/100;P&&d(P)},500),f=new ResizeObserver(function(){O.fire()});
f.observe(U.value);_.m4(function(){f.disconnect();O.dispose()})}});
_.Em(function(){var O=_.S("web_fix_rolling_numbers_zoom_safari")?w:H.marginMultiplier;if(O()){var f;(f=A)==null||f.cancel();if(M()){var J;f=((J=H.previousCharacter)==null?0:J.call(H))?Number(H.previousCharacter())+10:H.rollUp()?0:30;var F;if((F=H.shouldAnimate)==null||!F.call(H)){var P,n;f-=r57((P=H.character)==null?void 0:P.call(H),(n=H.previousCharacter)==null?void 0:n.call(H),H.rollUp(),f)}}else{f=H.rollUp()?0:2;var N;(N=H.shouldAnimate)!=null&&N.call(H)||(J=f,F=H.rollUp()?-1:1,f=J-F)}U.value.style.marginTop=
"-"+f*O()+"px";var L;if((L=H.shouldAnimate)==null?0:L.call(H)){var m,z;A=DOr(U.value,(m=H.character)==null?void 0:m.call(H),(z=H.previousCharacter)==null?void 0:z.call(H),H.rollUp(),f,M(),O())}else{var c;U.value.style.display=((c=H.character)==null?0:c.call(H))?"":"none"}}},"CA6Pmf");
return _.Z("animated-rolling-character",{el:U,class:"animatedRollingCharacterHost"},_.Z(_.K,{cond:M,then:function(){return _.Z(QPw,null)},
else:function(){return _.Z(VOm,{character:H.character})}}))},"E");
Hrh.idomCompat=!0;var $OF=_.S("web_enable_sink_animated_rolling_character_and_number")?Hrh:c5F,UQp=_.S("web_enable_sink_animated_rolling_character_and_number")?Hrh:Byt(c5F),QPw=_.r(function(){for(var H=[],U=1;U<30;U++)H.push(_.Z("div",null,U%10));return _.Z(_.ve,null,_.Z("div",null,"\u00a0"),H,_.Z("div",null,"\u00a0"))},"F"),VOm=_.r(function(H){var U=H.character;
return _.Z(_.ve,null,_.Z("div",null,"\u00a0"),_.Z(_.K,{cond:function(){return!(U==null?0:U())||_.b7(U==null?void 0:U())},
then:function(){return _.Z("div",null,"\u00a0")},
else:function(){return _.Z("div",null,U)}}),_.Z("div",null,"\u00a0"))},"G");lVM.componentType=F$;var Aim=_.r(function(H){var U=void 0,A=void 0,M=function(){var w;return((w=H.fontSizeMultiplier)==null?0:w.call(H))?H.heightPx()*H.fontSizeMultiplier():H.heightPx()},W=_.Ja(function(){if(!H.numberText())return[];
var w,d,O=((w=H.forceRollUp)==null?void 0:w.call(H))||!A||!((d=H.numberValue)==null?0:d.call(H))||A<H.numberValue(),f,J=H.numberText();w=M();d=!((f=H.shouldAnimate)==null||!f.call(H));f=[];var F=0,P=0,n=(U?U.replace(/\D/g,"").length:0)-(J?J.replace(/\D/g,"").length:0),N=U?U.split(/(\d)/).filter(Boolean):[];for(J=J.split(/(\d)/).filter(Boolean);n<0;){var L=J[P];f.push({character:L,rollUp:O,marginMultiplier:w,shouldAnimate:d});P++;NZ(L)&&n++}for(;F<n;)L=N[F],f.push({previousCharacter:L,rollUp:O,marginMultiplier:w,
shouldAnimate:d}),F++,NZ(L)||n++;for(;P<J.length;)n=J[P],L=N[F],NZ(n)===NZ(L)?(P++,F++):NZ(n)?(F++,n=void 0):NZ(L)&&(P++,L=void 0),f.push({character:n,previousCharacter:L,rollUp:O,marginMultiplier:w,shouldAnimate:d});U=H.numberText();var m;A=(m=H.numberValue)==null?void 0:m.call(H);return f},void 0,"kWiBv");
return _.Z("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return H.numberText()?["height: "+M()+"px;","line-height: "+H.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.Z(_.FQ,{each:W,keyBy:"INDEX"},function(w){return _.Z(UQp,{character:function(){return w().character},
previousCharacter:function(){return w().previousCharacter},
marginMultiplier:function(){return w().marginMultiplier},
rollUp:function(){return w().rollUp},
shouldAnimate:function(){return w().shouldAnimate}})}))},"H");
Aim.idomCompat=!0;_.MEz=_.S("web_enable_sink_animated_rolling_character_and_number")?Aim:Byt(lVM);var Wtm=function(H,U){this.fillAnimation=new Animation(hJh(H),document.timeline);this.strokeAnimation=new Animation(kAK(U),document.timeline)};
Wtm.prototype.play=function(){var H,U;(U=(H=this.fillAnimation).play)==null||U.call(H);var A,M;(M=(A=this.strokeAnimation).play)==null||M.call(A)};
Wtm.prototype.cancel=function(){var H,U;(U=(H=this.fillAnimation).cancel)==null||U.call(H);var A,M;(M=(A=this.strokeAnimation).cancel)==null||M.call(A)};_.zm=_.r(function(H){var U=H.model;var A=H.pointerDownEvent;var M=H.pointerUpEvent;var W=H.pointerLeaveEvent;var w=H.hovered;H=_.nA("yt-touch-feedback-shape");var d=_.nA("div"),O=_.nA("div"),f=_.b(_.md(function(){return(M==null?0:M())||(W==null?0:W())?!1:!(A==null||!A())||!1})),J=f.next().value,F=f.next().value,P=void 0,n=function(){!P&&O.value&&d.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(P=new Wtm(O.value,d.value));
var C;(C=P)==null||C.play()},N=function(){var C;
(C=P)==null||C.cancel()},L=function(){var C;
(C=P)==null||C.cancel()};
_.Em(function(){(M==null?0:M())&&n()},"bg756c");
_.Em(function(){(A==null?0:A())&&N()},"QAes8c");
_.Em(function(){(W==null?0:W())&&L()},"YaFbrc");
f=_.c$(function(){n();F(!1)});
var m=_.c$(function(){N();F(!0)}),z=_.c$(function(){L();
F(!1)});
_.m4(function(){if(P){var C;(C=P)==null||C.cancel();P=void 0}});
var c={};J=_.CG("yt-spec-touch-feedback-shape",function(){return vEE(U().color)},function(){return TyM(U().thumbnailSize,!!U().isExtended)},(c["yt-spec-touch-feedback-shape--focused"]=function(){return!!U().focused&&!U().disabled},c["yt-spec-touch-feedback-shape--circular"]=function(){return!!U().circular},c["yt-spec-touch-feedback-shape--down"]=J,c["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!U().triggerEvents},c["yt-spec-touch-feedback-shape--hovered"]=function(){return w==
null?void 0:w()},c));
return _.Z("yt-touch-feedback-shape",{el:H,class:J,style:_.rA({"margin-top":function(){return U().customTopExtend?"-"+U().customTopExtend+"px":void 0}}),
"on:mousedown":m,"on:mouseup":f,"on:pointerleave":z,"on:touchstart":m,"on:touchend":f,"aria-hidden":!0},_.Z(_.K,{cond:function(){return!!U().hoverEffect},
then:function(){return _.Z("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.rA({"border-radius":function(){return U().borderRadius},
background:function(){var C;if(C=U().hoverEffect){for(var v=[],Y=_.b((C==null?void 0:C.lightingTechniques)||[]),D=Y.next();!D.done;D=Y.next())switch(D.value){case 2:var h=D=void 0,T=void 0,WF=void 0;v.push("linear-gradient(180deg, "+((D=C)==null?void 0:(h=D.palette)==null?void 0:h.keyLight)+", "+((T=C)==null?void 0:(WF=T.palette)==null?void 0:WF.background)+")")}var dK,SN;v.push((dK=U().hoverEffect)==null?void 0:(SN=dK.palette)==null?void 0:SN.background);C=v.join(", ")}else C=void 0;return C}})})}}),
_.Z("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.rA({"border-radius":function(){return U().borderRadius},
"border-color":function(){var C,v;return(C=U().touchEffect)==null?void 0:(v=C.palette)==null?void 0:v.background}}),
el:d}),_.Z("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.rA({"border-radius":function(){return U().borderRadius},
"background-color":function(){var C,v;return(C=U().touchEffect)==null?void 0:(v=C.palette)==null?void 0:v.background}}),
el:O}))},"L");
_.zm.idomCompat=!0;var w2K={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 CJ=_.FE();CJ=CJ.toLowerCase();if(_.OM(CJ,"android")){var X2m=CJ.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);X2m&&parseFloat(X2m[1])<100||CJ.match("("+Object.keys(w2K).join("|")+")")};var irw=_.r(function(H){return _.Z(_.K,{cond:H.aTagConfig,then:function(U){return _.Z(_.xy,{aTagConfig:U,disabled:H.disabled,className:H.className,style:H.style,title:H.title,ariaLabel:H.ariaLabel,ariaCurrent:function(){var A,M;return((A=H.toggleable)==null?void 0:A.call(H))&&((M=H.toggled)==null?void 0:M.call(H))},
ref:H.ref},H.children)},
else:function(){return _.Z("button",{el:_.sB(H.ref),"on:click":_.c$(function(U){var A;return(A=H.onClick)==null?void 0:A.call(H,U)}),
class:H.className,title:H.title,style:H.style,disabled:H.disabled,"aria-pressed":function(){var U,A;return((U=H.toggleable)==null?0:U.call(H))?!((A=H.toggled)==null||!A.call(H)):void 0},
"aria-label":H.ariaLabel,"aria-disabled":H.visiblyDisabled,"aria-hidden":H.ariaHidden,tabindex:H.tabIndex},H.children)}})},"M"),dQr=_.r(function(H){var U=H.data;
var A=H.hasIconLeading;var M=H.hasIconLeadingTrailing;var W=H.hasIconTrailing;var w=H.iconButton;var d=H.iconClassName;var O=H.secondaryIconClassName;var f=H.icon;var J=H.secondaryIcon;var F=H.textContentClassName;return _.Z(th,{className:"",style:"display: inherit; justify-content: center"},_.Z(_.K,{debugInstance:"V4z1Uc",cond:function(){return f&&(A()||M()||(w==null?void 0:w()))},
then:function(){return _.Z(th,null,_.Z("div",{class:d,"aria-hidden":"true"},f==null?void 0:f()))}}),_.Z(_.K,{debugInstance:"ok3btb",
cond:function(){return(U().buttonText||U().animatedTextProps||U().formattedButtonText)&&!(w==null?0:w())},
then:function(){return _.Z(th,null,_.Z(brg,{className:F,iconPosition:function(){return U().iconPosition},
text:function(){return U().buttonText},
oneOffCustomTextWrap:function(){return U().oneOffCustomTextWrap},
formattedButtonText:function(){return U().formattedButtonText},
animatedTextProps:function(){return U().animatedTextProps}}))}}),_.Z(_.K,{debugInstance:"DO5Rz",
cond:W,then:function(){return _.Z(th,null,_.Z("div",{class:d},f==null?void 0:f()))}}),_.Z(_.K,{debugInstance:"bnojSc",
cond:M,then:function(){return _.Z(th,null,_.Z("div",{class:O},J==null?void 0:J()))}}),_.Z(_.K,{debugInstance:"HN3kad",
cond:function(){return!U().disabled&&!0},
then:function(){return _.Z(_.zm,{model:function(){var P=U();return{color:P.style==="overlay-dark"?4:P.style==="overlay"?P.type==="filled"?4:3:P.type==="filled"||P.style==="call-to-action-inverse"||P.style==="mono-inverse"?2:1}}})}}))},"N"),brg=_.r(function(H){var U=function(){var A,M;
return((A=H.iconPosition)==null?void 0:A.call(H))==="icon-with-label"||((M=H.oneOffCustomTextWrap)==null?void 0:M.call(H))};
return _.Z("div",{class:H.className,"aria-hidden":function(){var A,M,W;return((A=H.ariaHidden)==null?void 0:A.call(H))&&(!((M=H.animatedTextProps)==null||!M.call(H))||!((W=H.formattedButtonText)==null||!W.call(H)))}},_.Z(_.P5,null,_.Z(_.KA,{when:function(){var A;
return(A=H.animatedTextProps)==null?void 0:A.call(H)}},function(){return _.Z(_.MEz,{numberText:function(){return H.animatedTextProps().numberText},
numberValue:function(){return H.animatedTextProps().numberValue},
heightPx:function(){return H.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return H.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return H.animatedTextProps().shouldAnimate},
forceRollUp:function(){return H.animatedTextProps().forceRollUp}})}),_.Z(_.KA,{when:function(){var A;
return(A=H.formattedButtonText)==null?void 0:A.call(H)}},function(){return _.Z(_.Pb,{text:function(){return Object.assign({},H.formattedButtonText(),{lineBreakMode:U()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":H.formattedButtonText().lineBreakMode,
alignment:U()?"TEXT_ALIGNMENT_CENTER":H.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!U()}})}),_.Z(_.KA,{when:function(){var A,M;
return((A=H.iconPosition)==null?void 0:A.call(H))==="icon-with-label"&&((M=H.text)==null?void 0:M.call(H))}},function(){return _.Z(_.Pb,{text:function(){return{content:H.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.Z(_.oh,null,function(){return H.text})))},"O"),Orn=_.r(function(H){return _.Z(_.K,{debugInstance:"kM7Sgc",
cond:H.hasLabel,then:function(){var U;return _.Z("label",{class:H.className},H.children,(U=H.textContent)==null?void 0:U.call(H))},
else:function(){return H.children}})},"P"),th=_.r(function(H){return H.children},"Q");var u0k=_.r(function(H){function U(){w(void 0);O(void 0);J(void 0)}
var A=_.sB(),M=_.b(_.iB(void 0,void 0,"Ug77pc")),W=M.next().value,w=M.next().value;M=_.b(_.iB(void 0,void 0,"XGf7Zb"));var d=M.next().value,O=M.next().value,f=_.b(_.iB(void 0,void 0,"w55oqd"));M=f.next().value;var J=f.next().value;f=_.b(_.iB(0,void 0,"rBgpzc"));var F=f.next().value,P=f.next().value;f=_.c$(function(){switch(F()){case 1:P(2);break;case 3:var N,L;(L=(N=A.value).hidePopover)==null||L.call(N);P(0);U()}});
_.Em(function(){if(H.show()){var N;w((N=H.children)==null?void 0:N.call(H));var L;O((L=H.location)==null?void 0:L.call(H));var m;J((m=H.classNames)==null?void 0:m.call(H));switch(F()){case 0:var z,c;(c=(z=A.value).showPopover)==null||c.call(z);P(1);break;case 3:P(1);var C,v;(v=(C=A.value).hidePopover)==null||v.call(C);var Y,D;(D=(Y=A.value).showPopover)==null||D.call(Y)}}else switch(F()){case 2:P(3);break;case 1:var h,T;(T=(h=A.value).hidePopover)==null||T.call(h);U();P(0)}},"Z8V4Qb");
_.LA(function(){});
var n={};return _.Z("yt-popover",{popover:"manual",el:A,style:_.rA({left:function(){var N;return(N=d())==null?void 0:N.left},
top:function(){var N;return(N=d())==null?void 0:N.top},
bottom:function(){var N;return(N=d())==null?void 0:N.bottom},
right:function(){var N;return(N=d())==null?void 0:N.right}}),
class:_.CG("ytPopoverComponentHost",M,(n.ytPopoverComponentHostClosing=function(){return F()===3},n.ytPopoverComponentHostSeeThrough=function(){var N;
return((N=H.seeThrough)==null?void 0:N.call(H))===!0},n)),
"on:animationend":f},W)},"S");var Zrw={left:"0px",right:"auto",top:"0px",bottom:"auto"},fvH=function(){var H=this;this.registerTooltipElement=function(A){var M;H.tooltipElement=(M=A.querySelector("yt-popover"))!=null?M:void 0};
var U=_.b(_.iB(void 0,void 0,"EIh5sc"));this.state=U.next().value;this.setState=U.next().value;U=_.b(_.iB(void 0,void 0,"PC1M0b"));this.schedulerJobID=U.next().value;this.setSchedulerJobID=U.next().value},WD_=function(H,U){var A=$3,M=_.Fl.addJob(function(){var W=Jir(A,H,U);
A.currentConfig=U;A.setState({text:U.text,location:_.S("web_tooltip_location_fix")?void 0:W,anchor:H,offset:U.offset,style:U.style})},4,U.delay);
A.setSchedulerJobID(M)},wDr=function(){var H=$3,U=H.schedulerJobID();
U&&(_.Fl.cancelJob(U),H.setSchedulerJobID(void 0));H.setState(void 0);H.currentConfig=void 0};
fvH.prototype.notify=function(H,U){var A;((A=this.state())==null?void 0:A.anchor)===H&&(A=Jir(this,H,U),this.currentConfig=U,this.setState({text:U.text,location:_.S("web_tooltip_location_fix")?void 0:A,anchor:H,offset:U.offset,style:U.style}))};
var Jir=function(H,U,A){var M=U.getBoundingClientRect();U=window.innerWidth;var W=window.innerHeight,w=A.location,d=A.offset;A=A.text;if(H=H.tooltipElement){var O=getComputedStyle(H);H=O.font;var f=DN(O.lineHeight),J=DN(O.paddingLeft),F=DN(O.paddingRight),P=DN(O.paddingTop);O=DN(O.paddingBottom);var n=document.createElement("canvas").getContext("2d");n.font=H;A={width:n.measureText(A).width+J+F,height:f+P+O}}else A=void 0;H=A;if(!H)return Zrw;A=H.width;H=H.height;J=d+H;P=d+A;f=M.top>=J;J=W-M.bottom>=
J;F=M.left>=P;P=U-M.right>=P;O=w;switch(w){case "top":!f&&J&&(O="bottom");break;case "bottom":!J&&f&&(O="top");break;case "left":!F&&P&&(O="right");break;case "right":!P&&F&&(O="left")}switch(O){case "top":w=M.left+M.width/2-A/2;M=M.top-H-d;break;case "bottom":w=M.left+M.width/2-A/2;M=M.bottom+d;break;case "left":w=M.left-A-d;M=M.top+M.height/2-H/2;break;case "right":w=M.right+d;M=M.top+M.height/2-H/2;break;default:w=M.left+M.width/2-A/2,M=M.bottom+d}d=Object.assign({},Zrw);w+A>U?(d.right="0px",d.left=
"auto"):(d.left=Math.round(Math.max(0,w)+window.scrollX)+"px",d.right="auto");M+H>W?(d.bottom="0px",d.top="auto"):(d.top=Math.round(Math.max(0,M)+window.scrollY)+"px",d.bottom="auto");return d};var $3;$3=new fvH;_.Ktn=_.r(function(){var H=_.Ja(function(){var W;return(W=$3.state())==null?void 0:W.anchor},void 0,"tiGUn"),U=_.Ja(function(){var W;
return(W=$3.state())==null?void 0:W.text},void 0,"TA2GQe"),A=_.Ja(function(){var W;
return(W=$3.state())==null?void 0:W.style},void 0,"ucvFsf"),M=_.S("web_tooltip_location_fix")?_.Ja(function(){var W=H();
var w=$3.currentConfig;if(W&&w)return Jir($3,W,w)},void 0,"EpDz6"):_.Ja(function(){var W;
return(W=$3.state())==null?void 0:W.location},void 0,"aRJtfd");
return _.Z("yt-tooltip",{class:"ytTooltipContainerHost",el:_.sB($3.registerTooltipElement),"aria-hidden":"true"},_.Z(u0k,{classNames:function(){switch(A()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:M,show:function(){return!!U()&&!!M()},
seeThrough:!0},U))},"T");var V5E=vJ("stamper-context");_.cb=_.r(function(H){var U=H.data;var A=H.icon;var M=H.iconName;var W=H.animateIcon;var w=H.secondaryIcon;var d=H.secondaryIconName;var O=H.focusedOverride;var f=H.clientOnlyWizTooltipsEnabled;isF();var J=j8c(U),F=J.size,P=J.style;H=J.disabled;var n=J.onTap,N=J.alignByText,L=J.aTagConfig,m=J.customColors,z=J.segmentedPosition,c=J.toggled,C=J.toggleable,v=J.accessibilityLabel,Y=J.onToggle,D=J.iconPosition,h=J.oneOffCustomTextWrap,T=J.disableTextEllipsis,WF=J.disableBackdropFilter,dK=J.tooltipText,
SN=J.ariaHidden,o_=J.tabIndex,PF=J.buttonText,BF=J.formattedButtonText,kc=J.animatedTextProps,G8=J.onClickRateLimitMs,Pr=HsE(U,A,w,M,d,O,W),Z3=Pr.type;A=Pr.shouldFocus;M=Pr.hasIconLeading;W=Pr.hasIconTrailing;var Yc=Pr.hasIconLeadingTrailing,sz=Pr.hasIconOnly;w=Pr.hasIconOnly40;var Ry=Pr.hasIconWithLabel;d=Pr.iconButton;var oy=Pr.visiblyDisabled;O=Pr.overrideSmallSizeIcon;var aY=Pr.iconToRender;Pr=Pr.secondaryIconToRender;var im=_.b(XDr(dK,J.tooltipShape)).next().value,Kh=function(xK){n==null||n(xK);
C()&&(Y==null||Y(xK))},rK=_.Ja(function(){return G8==null?void 0:G8()},void 0,"siKywb"),FB=_.Ja(function(){return rK()?lUm(Kh,rK()):Kh},void 0,"wDTcN");
J={};var T2={};return _.Z(Orn,{className:_.CG("yt-spec-button-shape-with-label",(J["yt-spec-button-shape-with-label--is-overlay"]=function(){return P()==="overlay"||P()==="overlay-dark"},J)),
hasLabel:Ry,textContent:function(){return _.Z(brg,{text:PF,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:h,iconPosition:D,formattedButtonText:BF,animatedTextProps:kc})}},_.Z(irw,{aTagConfig:L,
className:_.CG("yt-spec-button-shape-next",function(){return Uqt(Z3())},function(){return oy()?void 0:Av0(P())},function(){return MJr(F())},(T2["yt-spec-button-shape-next--disabled"]=oy,T2["yt-spec-button-shape-next--focused"]=A,T2["yt-spec-button-shape-next--icon-trailing"]=W,T2["yt-spec-button-shape-next--icon-leading"]=M,T2["yt-spec-button-shape-next--icon-leading-trailing"]=Yc,T2["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return Yc()&&!(PF()||BF())},T2["yt-spec-button-shape-next--icon-button"]=
function(){return sz()||Ry()},T2["yt-spec-button-shape-next--icon-only-default"]=w,T2["yt-spec-button-shape-next--align-by-text"]=N,T2["yt-spec-button-shape-next--segmented-start"]=function(){return z()==="start"},T2["yt-spec-button-shape-next--segmented-end"]=function(){return z()==="end"},T2["yt-spec-button-shape-next--override-small-size-icon"]=O,T2["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=h,T2["yt-spec-button-shape-next--disable-text-ellipsis"]=T,T2["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!WF()&&!_.S("web_disable_backdrop_filter")},T2)),
style:function(){var xK=m();if(xK){var Hj=xK.color;var CU=xK.backgroundColor;xK=xK.borderColor;var Qh="";Hj&&(Qh+="color: "+Hj+";");CU&&(Qh+="background-color: "+CU+";");xK&&(Qh+="border-color: "+xK+";");Hj={style:Qh}}else Hj={};return Hj.style},
onClick:function(xK){FB()(xK)},
disabled:H,ariaLabel:v,toggleable:C,toggled:c,title:function(){return(f==null?0:f())||!dK()?"":dK()},
visiblyDisabled:oy,ariaHidden:SN,tabIndex:o_,ref:function(xK){(f==null?0:f())&&im(xK)}},_.Z(dQr,{data:U,
hasIconLeading:M,hasIconLeadingTrailing:Yc,hasIconTrailing:W,iconButton:d,icon:aY,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:Pr})))},"V");
_.cb.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.yJ=_.r(function(H){var U=H.data;var A=H.className;var M=H.style;var W=H.useOutlinedIcon;var w=H.buttonOverrides;var d=H.animatedTextProps;var O=H.onClick;var f=H.target;var J=_.nA("button-view-model",function(D){D.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var h=U().targetId;h&&_.Y6(_.q5(),h,D);return function(){G1(_.q5(),D)}}),F=function(){return U().iconName},P=function(){var D;
return(D=U())==null?void 0:D.entityKey},n=_.Gk(function(D){a:{var h=P(),T=U().buttonEntitySelectorType;
if(T&&h)switch(T){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":D=(D=_.tp(D,h))?{isHidden:D.adsState==="ADS_STATE_NONE"||D.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:D={isHidden:!1};break a}D=void 0}return D}),N,L=(N=_.lx().resolve(_.$V(_.qF)))==null?void 0:N(),m=function(){var D=U();
var h=w==null?void 0:w(),T=d==null?void 0:d(),WF=f==null?void 0:f();if(D){var dK=KDc(D.type);var SN=!!D.title||!!D.titleFormatted;var o_=!(!D.iconName&&!D.iconImage);SN=o_&&!SN?"icon-only":o_?D.iconTrailing||D.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;SN==="icon-only-40"&&(dK="text");var PF;o_=(PF=h==null?void 0:h.state)!=null?PF:o7E(D.state);var BF,kc=(BF=h==null?void 0:h.disabled)!=null?BF:D.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||D.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.S("web_button_vm_refactor_disabled")){var G8;kc=(G8=h==null?void 0:h.disabled)!=null?G8:o_==="disabled"}T=T&&T.numberText&&!isNaN(Number(T.numberValue))?T:void 0;BF=Object;G8=BF.assign;PF=D.title;var Pr=D.titleFormatted,Z3=D.accessibilityText,Yc=JvF(D.style),sz=FD8(D.buttonSize);WF=fKr(D,J,kc,O,WF);kc=kc&&!D.onDisabledTap;var Ry=uJK(D,J),oy=D.customFontColor,aY=D.customBackgroundColor;var im=D.customBorderColor;var Kh=D.customDarkThemeFontColor,rK=D.customDarkThemeBackgroundColor,FB=D.customDarkThemeBorderColor;
oy=L&&Kh?Kh:oy;aY=L&&rK?rK:aY;im=L&&FB?FB:im;im={color:oy?_.bN(oy):void 0,backgroundColor:aY?_.bN(aY):void 0,borderColor:im?_.bN(im):void 0};if(FB=_.p(D.tooltipData,$M2)){var T2;aY={text:(T2=FB.tooltipText)!=null?T2:"",location:dqh(FB.placement),style:FB.style}}else aY=void 0;D=G8.call(BF,{},{buttonText:PF,formattedButtonText:Pr,animatedTextProps:T,accessibilityLabel:Z3,style:Yc,type:dK,state:o_,size:sz,iconPosition:SN,onTap:WF,disabled:kc,aTagConfig:Ry,customColors:im,tooltipText:D.tooltip,tooltipShape:aY},
h)}else D={style:"mono",type:"text",state:"active",size:"M"};D.focused=C();return D},z=function(){return Q87(m(),!!U().iconName)};
H=_.b(_.iB(!1,void 0,"yZ8hab"));N=H.next().value;var c=H.next().value,C=N;H=_.c$(function(){var D=_.lx().resolve(_.$V(_.af));D&&c(D.isKeyBoardInUse());return!0});
N=_.c$(function(){c(!1);return!0});
_.Em(function(){var D,h=_.p(U==null?void 0:(D=U())==null?void 0:D.onVisible,_.X1);h&&_.bj(h,{disableClickTracking:!0})},"G9MlKd");
var v=function(){var D;return(U==null?0:(D=U())==null?0:D.iconImage)?{sources:[U().iconImage]}:void 0},Y=_.S("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.Z("button-view-model",{el:J,class:_.CG("ytSpecButtonViewModelHost",A),"on:focusin":H,"on:focusout":N},_.Z(_.K,{cond:function(){var D,h;return!((h=P()&&U().buttonEntitySelectorType&&((D=n())==null?void 0:D.isHidden))!=null&&h)},
then:function(){return _.Z(_.K,{cond:v,then:function(D){return _.Z(_.cb,{data:m,icon:function(){return _.Z(_.nG,{data:D,alt:"",targetWidth:z,targetHeight:z,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:Y})},
else:function(){return _.Z(_.cb,{data:m,icon:function(){return _.Z(_.er,{icon:F,active:function(){return(W==null?0:W())?!1:m().toggled},
animateIcon:function(){var D;return!!(M==null?0:(D=M())==null?0:D.animateIcon)},
size:z})},
clientOnlyWizTooltipsEnabled:Y})}})}}))},"X");
_.yJ.idomCompat={callbacks:{onClick:!0}};_.LG(_.r(function(H){return _.Z("yt-button-view-model",{id:H.id,class:_.CG(H.scopingClassName,H.classes),icon:function(){var U;return(U=H.icon)==null?void 0:U.call(H)},
"dialog-dismiss":function(){var U;return((U=H.dialogDismiss)==null?0:U.call(H))?"":void 0}},_.Z(_.yJ,{data:function(){var U;
return(U=H.data)==null?void 0:U.call(H)},
className:function(){var U;return(U=H.className)==null?void 0:U.call(H)},
style:function(){var U;return(U=H.style)==null?void 0:U.call(H)},
useOutlinedIcon:function(){var U;return(U=H.useOutlinedIcon)==null?void 0:U.call(H)},
buttonOverrides:function(){var U;return(U=H.buttonOverrides)==null?void 0:U.call(H)},
animatedTextProps:function(){var U;return(U=H.animatedTextProps)==null?void 0:U.call(H)},
onClick:function(U){var A;return(A=H.onClick)==null?void 0:A.call(H,U)}}))},"Y"),"yt-button-view-model",{props:{data:_.sY,
className:_.sY,style:_.sY,useOutlinedIcon:_.sY,buttonOverrides:_.sY,animatedTextProps:_.sY,onClick:_.Ne,scopingClassName:_.sY,id:_.sY,icon:_.sY,dialogDismiss:_.sY,classes:_.sY,target:_.Ne}});_.LG(_.r(function(H){var U=H.data;var A=H.id;var M=H.className;var W=H.iconName;var w=H.animateIcon;var d=H.secondaryIconName;H=_.b(_.iB(!1,void 0,"TtJl8"));var O=H.next().value,f=H.next().value,J=function(){var P=_.lx().resolve(_.$V(_.af));P&&f(P.isKeyBoardInUse())},F=function(){f(!1)};
H=_.nA("yt-button-shape",function(P){if(_.lx().resolve(_.$V(_.af)))return P.addEventListener("focusin",J),P.addEventListener("focusout",F),function(){P.removeEventListener("focusin",J);P.removeEventListener("focusout",F)}});
return _.Z("yt-button-shape",{el:H,id:A,class:M},_.Z(_.K,{cond:U,then:function(){return _.Z(_.cb,{data:U,iconName:W,secondaryIconName:d,focusedOverride:O,animateIcon:w})}}))},"Z"),"yt-button-shape",{props:{data:_.sY,
id:_.sY,className:_.sY,iconName:_.sY,animateIcon:_.sY,secondaryIconName:_.sY,clientOnlyWizTooltipsEnabled:_.sY,disableUpgrade:_.sY},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var Bb=function(){var H=_.B.apply(this,arguments)||this;H.isGoalActive=!0;return H};
_.R(Bb,_.B);Bb.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Bb.prototype.progressBarChanged=function(){var H=_.c4(this.hostElement).querySelector("#progress-bar-progress"),U,A,M,W=(M=Number((U=this.creatorGoalState)==null?void 0:U.currentGoalCount)/Number((A=this.creatorGoalState)==null?void 0:A.totalGoalCount)*100)!=null?M:0,w;H.style.width=((w=Math.min(W,100))!=null?w:0)+"%"};
Bb.prototype.goalStateChanged=function(){var H;this.isGoalActive=((H=this.creatorGoalState)==null?void 0:H.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var U;H={"--yt-progress-bar-color":fbM((U=this.creatorGoalState)==null?void 0:U.progressBarColor)};_.Dt(this.hostElement,H)};
Bb.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.D5.Object.defineProperties(Bb.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var H;return this.isGoalActive&&!((H=this.creatorGoalState)==null||!H.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.creatorGoalState)==null?0:H.endTimestampMs){var U;H=Number((U=this.creatorGoalState)==null?void 0:U.endTimestampMs)/1E3;return{seconds:String(H)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.creatorGoalState)==null?0:H.themedTargetImage){var U;H=_.p((U=this.creatorGoalState)==null?void 0:U.themedTargetImage,xdB);return this.isAppDarkTheme()?H==null?void 0:H.imageDark:H==null?void 0:H.imageLight}}}});
_.D5.Object.defineProperties(Bb,{template:{configurable:!0,enumerable:!0,get:function(){return Y2w()}}});
Bb.prototype.goalStateChanged=Bb.prototype.goalStateChanged;Bb.prototype.progressBarChanged=Bb.prototype.progressBarChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Bb.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dv),_.q("design:type",Object)],Bb.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);
_.G([_.y({selectorArgs:["data.creatorGoalEntityKey"],selector:function(H,U){return _.rH(H.entities,"creatorGoalEntity",U)}}),
_.q("design:type",Object)],Bb.prototype,"creatorGoalState",void 0);_.G([_.y(),_.q("design:type",Object)],Bb.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Bb.prototype,"isGoalActive",void 0);_.G([_.a("creatorGoalState","isGoalActive"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bb.prototype,"shouldShowCountdown",null);_.G([_.a("creatorGoalState"),_.q("design:type",Object),_.q("design:paramtypes",[])],Bb.prototype,"endTimestamp",null);
_.G([_.a("creatorGoalState"),_.q("design:type",Object),_.q("design:paramtypes",[])],Bb.prototype,"targetIconThemedImage",null);_.G([_.Ya("creatorGoalState.currentGoalCount"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Bb.prototype,"progressBarChanged",null);_.G([_.Ya("creatorGoalState.creatorGoalState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Bb.prototype,"goalStateChanged",null);
_.G([_.b0({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Bb);_.e(Bb,"yt-creator-goal-progress-flow-view-model",function(){return Y2w()},{mode:0});var ozg;var FtB;var rv=function(){return _.B.apply(this,arguments)||this};
_.R(rv,_.B);rv.prototype.attached=function(){var H,U,A;if(this==null?0:(H=this.data)==null?0:(U=H.pdgPurchasedBumperLoggingDirectives)==null?0:(A=U.loggingDirectives)==null?0:A.trackingParams){var M,W,w;n7V(this==null?void 0:(M=this.data)==null?void 0:(W=M.pdgPurchasedBumperLoggingDirectives)==null?void 0:(w=W.loggingDirectives)==null?void 0:w.trackingParams)}};
rv.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],rv.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],rv.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],rv.prototype,"data",void 0);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],rv);
_.e(rv,"yt-live-chat-item-bumper-view-model",function(){if(FtB===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;ozg===void 0&&(ozg=document.createElement("template"));var M=ozg;A.call(U,M.content.cloneNode(!0),H.content.firstChild);FtB=H}H=FtB;return H},{mode:0});var Pcm;var sOg;_.Po=function(H,U){this.data=H;this.actions=U;this.data=H;this.actions=U};
_.O3=function(){};_.e4={};_.e4.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(H,U){N5_(this.hostElement,H,U)},
getNavigationEndpointPopupAction:function(H){return Sf0(H,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(H,U){pD0(this.hostElement,H,U,this.openPopupConfig)}};var tJV=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.D1={};
_.D1.YtEndpointBehavior=[_.e4.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.gD("openPopupConfig");(this.useClickHandler=_.xV("useClickHandler",!1))?this.hostElement.addEventListener("click",$a(this,this.onEndpointClick_)):(Pa(this.hostElement,"tap",$a(this,this.onEndpointTap_)),Pa(this.hostElement,"touchend",$a(this,this.onEndpointTouchEnd_)));Pa(this.hostElement,"touchstart",$a(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
$a(this,this.onEndpointTapStart_))},
onEndpointClick_:function(H){E7_(this.hostElement,H,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(H){var U=this.hostElement,A=this.openPopupConfig,M=this.disableCommandHandlerOverride;M=M===void 0?!1:M;var W=LDF(H);if(W){W.href&&Zt(W.href);var w=H.detail;var d=w.sourceEvent;w=w.preventer;d=d.button!==void 0?d.button===0&&!Y3(d):w?!Y3(w):!0;W.data&&d&&R67(U,W,H,A,M)}},
onEndpointTouchEnd_:function(H){Y3(H)||LDF(H)&&H.preventDefault()},
onEndpointTapStart_:function(H){z6M(H)}}];_.$y={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(H){for(var U=_.a1.getInstance(),A=_.b(Object.keys(H)),M=A.next();!M.done;M=A.next()){var W=M.value;M=H[W];if(this&&this[M]){var w=U.actionRoutingMap.get(W);w||(w=new Map,U.actionRoutingMap.set(W,w));U.registerActionHandler(this,W,this[M].bind(this),w)}else W=Error("od"),W.params=M,_.za(W)}},
unregisterActionMap:function(H){_.z9(_.a1.getInstance(),H,this)}}]};var k3=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_"+(_.S("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.S("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.S("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.S("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.S("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"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:_.S("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var hp;var v$=new Map;var Dq_=window.matchMedia("(forced-colors: active)").matches;var nz2;var NlB;var STm=new _.g3("LOTTIE_LOADER_TOKEN");_.lK=_.r(function(H){var U=H.data;var A=H.className;var M=H.animationName;var W=H.animationRef;var w=H.elRefForInterop;var d=_.NU("lottie-component"),O;_.m4(function(){var J;return void((J=O)==null?void 0:J.destroy())});
var f;_.Em(function(){var J=_.an(M);if(J!==f){f=J;var F=Object.assign({},{animationName:J,animationRef:_.an(W)},_.an(U));try{_.lx().resolve(STm)().then(function(N){var L;(L=O)==null||L.destroy();var m,z;L=(z=w==null?void 0:(m=w())==null?void 0:m.value)!=null?z:d.value;m=F.animationRef;z=F.listeners;N=N.loadAnimation(Object.assign({},{container:L},F.animationConfig));m&&(m.lottieEl=N);if(z)for(L=_.b(Object.entries(z)),m=L.next();!m.done;m=L.next())z=_.b(m.value),m=z.next().value,(z=z.next().value)&&
N.addEventListener(m,z);O=N})}catch(N){J=N;
var P="LottieComponent error.";J.message&&(P+=" Original description: "+J.message);_.SD(J,P);_.Na(J);var n;((n=F.listeners)==null?0:n.error)&&F.listeners.error(J)}}},"nrJISd");
return _.Z(Ns8,{cond:function(){return!(w==null?0:w())},
then:function(){return _.Z("lottie-component",{class:_.CG("ytLottieComponentHost",A),el:d})}})},"aa");_.LG(_.r(function(H){return _.Z("ytd-lottie-player",{id:H.id,hidden:H.hidden,class:H.className,"aria-label":H.ariaLabel,style:"display: block;"},_.Z(_.lK,{data:H.data,animationName:function(){var U;return((U=H.data().animationConfig)==null?void 0:U.name)||""},
animationRef:function(){return H.data().animationRef}}))},"ba"),"ytd-lottie-player",{props:{data:_.sY,
id:_.sY,hidden:_.sY,className:_.sY,ariaLabel:_.sY}});var Gm=function(){var H=_.B.apply(this,arguments)||this;H.animationRef={};H.delhiIconsEnabled=_.S("enable_web_delhi_icons");return H};
_.R(Gm,_.B);_.X=Gm.prototype;
_.X.handlePropertyChange=function(){var H=this.animatedIcon,U=this.active,A=this.isDarkTheme;if(H){var M=this.previousActive!==U;this.previousActive=U;this.animationRef.lottieEl?M?this.toggleAnimation(U,H.totalFrames):_.S("web_enable_animated_icon_active_state_fix")&&this.setAnimationState(U,H.totalFrames):U?this.initializeAnimationAsToggled(H.lottiePlayerProps,H.totalFrames):this.initializeAnimationAsUntoggled(H.lottiePlayerProps);H.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=
H.type;this.lottiePlayerProps=this.computeLottiePlayerProps(H,A)}};
_.X.computeLottiePlayerProps=function(H,U){var A=this.deepCloneLottiePlayerProps(H);U?(U=H.nameDarkTheme,H=H.pathDarkTheme):(U=H.name,H=H.path);A.animationConfig.name=U;(U=v$.get(H))?A.animationConfig.animationData=U:A.animationConfig.path=H;return A};
_.X.initializeAnimationAsToggled=function(H,U){H.animationConfig.initialSegment=[U-1,U]};
_.X.initializeAnimationAsUntoggled=function(H){H.animationConfig.initialSegment=void 0};
_.X.toggleAnimation=function(H,U){if(H){var A;(A=this.animationRef.lottieEl)==null||A.playSegments([0,U],!0)}else{var M;(M=this.animationRef.lottieEl)==null||M.playSegments([0,1],!0)}};
_.X.setAnimationState=function(H,U){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(H?U-1:0,!0)};
_.X.deepCloneLottiePlayerProps=function(H){var U=Object.assign({},H.lottiePlayerProps.animationConfig);H=Object.assign({},H.lottiePlayerProps);H.animationConfig=U;return H};
Gm.prototype.handlePropertyChange=Gm.prototype.handlePropertyChange;_.G([_.y(),_.q("design:type",Object)],Gm.prototype,"animatedIcon",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Gm.prototype,"active",void 0);_.G([_.y(),_.q("design:type",Boolean)],Gm.prototype,"isDarkTheme",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],Gm.prototype,"animatedIconType",void 0);_.G([_.y(),_.q("design:type",Boolean)],Gm.prototype,"previousActive",void 0);
_.G([_.y(),_.q("design:type",Object)],Gm.prototype,"lottiePlayerProps",void 0);_.G([_.y(),_.q("design:type",Object)],Gm.prototype,"animationRef",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Gm.prototype,"delhiIconsEnabled",void 0);_.G([_.Ya("animatedIcon","active","isDarkTheme"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gm.prototype,"handlePropertyChange",null);_.G([_.b0({is:"yt-animated-icon",disableElementRegistration:!0})],Gm);
_.e(Gm,"yt-animated-icon",function(){if(NlB===void 0){var H=document.createElement("template");_.E(H,'\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="lottie-player style-scope yt-animated-icon" data="[[lottiePlayerProps]]"></ytd-lottie-player>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;nz2===void 0&&(nz2=document.createElement("template"));var M=nz2;A.call(U,M.content.cloneNode(!0),H.content.firstChild);NlB=H}H=NlB;return H},{mode:2});var p2h;var Ltz;_.Tk=_.r(function(H){var U={value:null,cancelled:!1};_.m4(function(){U.cancelled=!0});
var A=_.Ja(H.data,{equals:function(M,W){return M.iconName===W.iconName&&M.iconStyle===W.iconStyle&&M.iconSize===W.iconSize&&M.iconSetName===W.iconSetName&&M.iconSelected===W.iconSelected}},"ck24jb");
return _.Z("span",{class:"yt-icon-shape",el:_.sB(function(M){_.Em(function(){var W,w=(W=H.options)==null?void 0:W.call(H);W=A();qfV(M,U,W,w)},"v878Je")})})},"da");
_.Tk.idomCompat=!0;var i7_=["youtube_fill","youtube_outline"];var RCw=new _.v0({type:"iconset",value:void 0}),Yy=function(){var H=_.B.apply(this,arguments)||this;H.isDarkTheme=document.documentElement.hasAttribute("dark");H.iconName="";H.iconsetName="yt-icons";H.iconset=null;H.missingIconSet=!1;H.iconType=null;H.iconShapeDataSignal=_.iB(void 0,void 0,"TaEgXd");H.renderingOptionsSignal=_.iB({iconWidth:"100%",iconHeight:"100%",iconFilter:H.iconFilter,iconColor:H.gradientColor},void 0,"a1vqYe");H.wizHasRendered=!1;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return H};
_.R(Yy,_.B);Yy.prototype.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&(this.isDarkTheme=H)};
Yy.prototype.handlePropertyChange=function(){var H=this,U,A,M,W,w,d,O,f,J,F,P,n,N,L,m,z,c;return _.u(function(C){switch(C.nextAddress){case 1:if(U=!H.icon&&!H.iconName||!H.isAttached)return C.return();A=H;M=A.icon;W=A.size;w=A.defaultToFilled;d=A.active;O=A.targetContainer;H.toggleContainerClass(O);_.S("kevlar_use_wil_icons")&&M&&(f=Gxh(M),H.iconType=f.length?f[1]:null);if(M){C.jumpTo(2);break}H.iconsetName="";H.iconName="";return C.yield(H.renderIcon(O,M),3);case 3:return C.return();case 2:J=EzH(M);
F=Gxh(J);F.length&&(H.iconsetName=F[0],H.iconName=F[1]);if(!_.S("kevlar_use_wil_icons")){C.jumpTo(4);break}P=Yy;n=mQw;N=H.iconType;L=H.active;m=H.defaultToFilled;z=H.size;c=H.iconsetName;return C.yield(gzg(),6);case 6:return C.yield(n.call(P,N,L,m,z,c,C.yieldResult),5);case 5:H.iconShapeData=C.yieldResult;case 4:if(H.shouldRenderIconShape(O)){C.jumpTo(7);break}return C.yield(H.determineIconSet(J,d,w,W,O),7);case 7:return C.yield(H.renderIcon(O,M),0)}})};
Yy.prototype.toggleContainerClass=function(H){H?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var EzH=function(H){return!_.S("default_to_innertube_icon")||H.indexOf(":")>0?H:_.eq(H)};
_.X=Yy.prototype;_.X.determineIconSet=function(H,U,A,M){var W=this;return _.u(function(w){return w.nextAddress==1?_.S("kevlar_system_icons")||_.gD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.gD("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?w.yield(W.switchToYtSysIconset(H,U,A,M),3):w.jumpTo(2):w.nextAddress!=2?w.return():w.yield(W.useYtSysIconsetForMissingIcons(H,U,A,M),0)})};
_.X.switchToYtSysIconset=function(H,U,A,M){var W=this,w,d,O,f,J,F,P;return _.u(function(n){switch(n.nextAddress){case 1:if(!H||W.iconsetName!=="yt-icons"&&W.iconsetName!=="yt-sys-icons"){n.jumpTo(0);break}w=Gxh(H);d=w[1];var N=d;if(Iw7(N))d=N;else{var L=N=N.toLowerCase();(N=CTz.get(N))&&(L=N);d=L}_.S("enable_polymer_icons_replace_underscores_dash")&&d.includes("_filled")&&(d=d.replace(/_filled/g,"-filled"));return n.yield(rX(d,!0),3);case 3:return O=n.yieldResult,n.yield(rX(d,!1),4);case 4:if((f=
n.yieldResult)||U&&O)W.iconsetName="yt-sys-icons";W.iconName=W.getIconName(d,U,A,f,O);if(M===24){n.jumpTo(0);break}J="yt-sys-icons"+M+":"+W.iconName;return n.yield(rX(J,!1,!0),6);case 6:return F=n.yieldResult,n.yield(rX(J,!0,!0),7);case 7:P=n.yieldResult;W.iconName=W.getIconName(d,U,A,F,P);if(!U&&F||U&&P)W.iconsetName="yt-sys-icons"+M;_.DO(n)}})};
_.X.getIconName=function(H,U,A,M,W){H.includes("-filled")&&(H=H.replace("-filled",""));return W&&(U||A)?H+"-filled":H};
_.X.useYtSysIconsetForMissingIcons=function(H,U,A,M){var W=this,w,d;return _.u(function(O){if(O.nextAddress==1)return W.iconsetName!=="yt-icons"?O.jumpTo(0):O.yield(rX(W.iconName,!1,!1,!0),3);if(O.nextAddress!=4)return w=O.yieldResult,O.yield(rX(W.iconName,!1),4);d=O.yieldResult;if(w||!d)return O.jumpTo(0);W.iconsetName="yt-sys-icons";return O.yield(W.switchToYtSysIconset(H,U,A,M),0)})};
_.X.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var gzg=function(){return _.u(function(H){try{return H.return(_.lx().resolve(_.Dd))}catch(U){return H.return(new Promise(function(A){_.sC().parkOrScheduleJob(function(){A(_.lx().resolve(_.Dd))},2,"ci")}))}})},mQw=function(H,U,A,M,W,w){M=M===void 0?24:M;
if(H){H=H.toLowerCase();var d=H.endsWith("_filled")||H.endsWith("-filled");U={iconName:H,iconStyle:(U===void 0?0:U)||(A===void 0?0:A)||d?"youtube_fill":"youtube_outline",iconSize:M,iconSetName:W===void 0?"yt-icons":W};A=!!w.resolveIcon(U);A||(U.iconSize=void 0,A=!!w.resolveIcon(U));!A&&d&&(U.iconName=H.substring(0,H.length-7),U.iconSize=M,A=!!w.resolveIcon(U),A||(U.iconSize=void 0,A=!!w.resolveIcon(U)));A||(U.iconStyle=void 0,A=!!w.resolveIcon(U));A||_.Na(new _.bD("Icon not supported",{iconName:U.iconName,
iconStyle:U.iconStyle,iconSize:U.iconSize,iconType:H}));return A?U:void 0}};
_.X=Yy.prototype;_.X.shouldRenderIconShape=function(H){if(!_.S("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;H=this.getContainer(H);return!$qN(H,this.icon)};
_.X.renderIcon=function(H,U){var A=this,M,W,w,d,O,f,J,F;return _.u(function(P){switch(P.nextAddress){case 1:if(U&&A.icon!==U)return P.return();M=A.getContainer(H);W=$qN(M,A.icon);if(A.shouldRenderIconShape(H)&&A.iconType)return A.applyIconShape(W,M),P.return();A.removeIconShape();if(!M)return P.return();A.iconName===""&&A.iconset&&M&&(A.removeStaticIcon(A.iconset,M),W&&A.removeAnimatedIcon(M));if(A.iconName===""&&A.iconset||!A.iconsetName||!RCw)return P.return();A.iconset=RCw.byKey(A.iconsetName);
if(!A.iconset)return A.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.lN(A,A.onIconsetAdded)),P.return();A.missingIconSet&&(A.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.lN(A,A.onIconsetAdded)));d=(w=W||A.isAnimatedIcon?rvE(A.icon):void 0)&&!w.lazyLoad;f=w&&((O=w)==null?void 0:O.lazyLoad)&&(w.lottiePlayerProps.animationConfig.animationData?!0:v$.get(A.isDarkTheme?w.pathDarkTheme:w.path)?!0:!1);if(d||f)return A.applyAnimatedIcon(M,w,A.iconset),P.return();if(f||
(J=w)==null||!J.lazyLoad){P.jumpTo(2);break}F=G3_(w,A.isDarkTheme);A.applyStaticIcon(A.iconset,M,A.iconName,H,W);return P.yield(F,3);case 3:return P.yield(A.renderIcon(A.targetContainer,A.icon),4);case 4:return P.return();case 2:A.applyStaticIcon(A.iconset,M,A.iconName,H,W),_.DO(P)}})};
_.X.getContainer=function(H){var U,A=(U=aEM(this.hostElement))==null?void 0:U.host;U=!!A&&!!A.polymerController;if(!H||U)return H?this.getTargetContainer(H,A):this.hostElement};
_.X.getTargetContainer=function(H,U){var A=_.c4(U).querySelector("#"+H);A||(H=new _.bD("yt-icon container missing",U.is,H),_.sD(H));return A};
_.X.applyStaticIcon=function(H,U,A,M,W){W&&this.removeAnimatedIcon(U);this.removeIconShape();W=W&&!!this.iconType&&!!this.iconShapeData&&_.S("kevlar_use_wil_icons");try{W?this.applyIconShape(!1,U):H.applyIcon(U,A)}catch(w){this.handleError(w,M,U)}};
_.X.applyIconShape=function(H,U){this.iconset&&U&&(this.removeStaticIcon(this.iconset,U),H&&this.removeAnimatedIcon(U));H={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var A=_.b(this.iconShapeDataSignal);U=A.next().value;A=A.next().value;var M=_.b(this.renderingOptionsSignal),W=M.next().value;M=M.next().value;A(this.iconShapeData);M(H);if(!this.wizHasRendered)for(this.wizHasRendered=!0,H=_.b(h67(U,W)).next().value;H.firstChild;)_.c4(this.hostElement).appendChild(H.firstChild)};
_.X.removeIconShape=function(){if(_.S("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.X.removeStaticIcon=function(H,U){H.removeIcon(U)};
_.X.applyAnimatedIcon=function(H,U,A){this.removeStaticIcon(A,H);this.removeIconShape();var M;A=this.animatedIconElement&&((M=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:M.type)===U.type;if(this.animatedIconElement&&A){this.animatedIconElement.polymerController.animatedIcon=U;var W;((W=this.animatedIconElement)==null?void 0:W.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(H),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=U,this.animatedIconElement.polymerController.active=this.active,_.S("delhi_modern_web_player_icons")?(U=e6r(H,this.icon)&&H.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=U?U.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.S("kevlar_use_wil_icons")?
H.insertBefore(this.animatedIconElement,H.childNodes[0]):(H=_.c4(H),H.insertBefore(this.animatedIconElement,H.childNodes[0]))};
_.X.removeAnimatedIcon=function(H){_.S("kevlar_use_wil_icons")?this.animatedIconElement&&H.contains(this.animatedIconElement)&&H.removeChild(this.animatedIconElement):(H=_.c4(H),this.animatedIconElement&&H.contains(this.animatedIconElement)&&H.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.X.handleError=function(H,U,A){_.SD(H,this.iconName,U,A);U=$qN(A,this.icon);var M=!1;window.location.href.includes("JpymaW6Lh2w")?M=!0:A._svgIcon&&(A=(A=A._svgIcon.parentNode)?A.tagName:"unknown",_.SD(H,A),A==="YT-ICON"&&H.name==="NotFoundError"?M=!0:H.name==="NotFoundError"&&U&&(M=!0));M?_.Na(H):_.sD(H)};
_.D5.Object.defineProperties(Yy,{template:{configurable:!0,enumerable:!0,get:function(){if(Ltz===void 0){var H=document.createElement("template");_.E(H,"\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");H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;
p2h===void 0&&(p2h=document.createElement("template"));var M=p2h;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Ltz=H}H=Ltz;return H}}});
Yy.prototype.handlePropertyChange=Yy.prototype.handlePropertyChange;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Yy.prototype,"actionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",String)],Yy.prototype,"icon",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Yy.prototype,"active",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Yy.prototype,"defaultToFilled",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Yy.prototype,"isAnimatedIcon",void 0);
_.G([_.y({value:24}),_.q("design:type",Number)],Yy.prototype,"size",void 0);_.G([_.y({value:""}),_.q("design:type",String)],Yy.prototype,"targetContainer",void 0);_.G([_.y(),_.q("design:type",Object)],Yy.prototype,"animatedIconElement",void 0);_.G([_.y(),_.q("design:type",Object)],Yy.prototype,"isDarkTheme",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Yy.prototype,"ariaHidden",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],Yy.prototype,"ariaLabel",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],Yy.prototype,"role",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],Yy.prototype,"tabindex",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],Yy.prototype,"title",void 0);_.G([_.y(),_.q("design:type",String)],Yy.prototype,"style",void 0);_.G([_.y(),_.q("design:type",String)],Yy.prototype,"iconFilter",void 0);_.G([_.y(),_.q("design:type",String)],Yy.prototype,"gradientColor",void 0);
_.G([_.Ya("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],Yy.prototype,"handlePropertyChange",null);_.G([_.b0({is:"yt-icon",noInjection:!0})],Yy);var k3K="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),T50=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var avr={};avr.YtPlaintextBehavior=[_.le,{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(H){H.preventDefault();H=H.clipboardData.getData("text/plain");document.execCommand("insertText",!1,H)},
preventRichTextFormatting_:function(H){_.DB&&(H=H.detail.keyboardEvent,H.stopImmediatePropagation(),H.preventDefault())}}];var xQz;var zCz;var qE=function(){var H=_.B.apply(this,arguments)||this;H.ignoreShadyDom=!1;H.hasChange_=!1;H.hasSetTitle_=!1;H.useIOObserverForVisibilityLogging_=_.S("kevlar_use_vimio_behavior")&&_.gD("INNERTUBE_CLIENT_NAME")==="WEB";H.ytFormattedStringObserverHandlerKeys_=void 0;return H};
_.R(qE,_.B);_.X=qE.prototype;_.X.created=function(){this.useIOObserverForVisibilityLogging_=_.S("kevlar_use_vimio_behavior")&&_.gD("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.X.ready=function(){_.gD("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_()};
_.X.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.X.detached=function(){this.unobserveIOObservers_()};
_.X.clearContents_=function(){for(var H=this.getRoot(),U=H.lastChild;U&&U.tagName!=="STYLE";){try{H.removeChild(U)}catch(A){break}U=H.lastChild}};
_.X.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var H=_.b(this.ytFormattedStringObserverHandlerKeys_),U=H.next();!U.done;U=H.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(U.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.X.resetForAttributedString=function(){var H=this.getRoot();!H.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),H.appendChild(this.ytAttributedStringElementRef))};
_.X.resetForFormattedString=function(){var H=this.getRoot(),U=H.querySelector("yt-attributed-string");U&&(this.ytAttributedStringElementRef=H.removeChild(U))};
_.X.textChanged=function(){this.textChanged_(this.text)};
_.X.textChanged_=function(H){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!H||!H.runs&&!H.simpleText;if(_.S("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var U=this.hostElement.firstChild;U&&U.nodeName==="FONT";){var A=U;U=U.nextSibling;this.hostElement.removeChild(A)}U=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
A=H.simpleText;var M;!A&&((M=H.runs)==null?void 0:M.length)===1&&this.isSimpleString_(H.runs[0])&&(A=H.runs[0].text);A!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.gD("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(A!==void 0){try{U.textContent=A}catch(W){}U.textContent||(this.isEmpty=!0)}else H=H.runs,A!==void 0&&(H=[{text:A}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),H&&this.updateText_(H),
U.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.X.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)};
_.X.computeAriaLabel_=function(H){return H};
_.X.computeEllipsisTruncateStyling=function(H,U){return H&&!U};
_.X.computeUseAttributedString=function(H){return _.S("web_replace_formatted_with_attributed_string")&&m4F(H)&&!this.disableAttributedString&&!this.enableContentEditable};
_.X.setNodeStyle_=function(H,U){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.S("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?U.removeAttribute("dir"):U.setAttribute("dir","auto");U.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");U.style.color="";var A=null;this.noStyles||(H.bold&&(U.classList.add("bold"),A="bold"),H.deemphasize&&(U.classList.add("deemphasize"),A="deemphasize"),H.italics&&U.classList.add("italic"),
H.strikethrough&&U.classList.add("strikethrough"),H.errorUnderline&&(U.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),H.bracket&&U.classList.add("bracket"),H.textColor&&(U.style.color=_.wn(H.textColor)));A!==U.getAttribute("style-target")&&(A?U.setAttribute("style-target",A):U.removeAttribute("style-target"))};
_.X.setUpVisibilityLogging_=function(H,U){var A=this;this.setNodeTrackingParams_(H,U);var M;((M=U.data)==null?0:M.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(H=this.ytRendererBehavior.visibilityObserver.observe(U,function(W){var w=A.ytRendererBehavior.getVisibilityLogger();w&&w.reportShown(W)},this.ytRendererBehavior.visibilityOptionVisible_),U=this.ytRendererBehavior.visibilityObserver.observe(U,function(W){var w=A.ytRendererBehavior.getVisibilityLogger();
w&&w.reportHidden(W)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(H),this.ytFormattedStringObserverHandlerKeys_.push(U))};
_.X.setNodeTrackingParams_=function(H,U){U.data||(U.data={});if((H=H.loggingDirectives?H.loggingDirectives.trackingParams:null)||U.data.trackingParams)U.data.trackingParams=H};
_.X.computeHasLinkOnly_=function(H){return!(!H||H.length!==1||this.noEndpoints||!H[0].navigationEndpoint)};
_.X.getRoot=function(){var H=this.buildScopeDomOptions();return this.enableContentEditable?_.c4(_.c4(this.hostElement,H).querySelector("[contenteditable]")):_.c4(this.hostElement,H)};
_.X.fixContenteditableScope=function(){var H=function(U){U&&(U.nodeType===1&&U.classList&&(U.classList.add("style-scope"),U.classList.add("yt-formatted-string")),U.childNodes&&U.childNodes.forEach(function(A){H(A)}))};
H(this.getRoot())};
_.X.updateText_=function(H){for(var U=H.length,A=this.getRoot(),M=A.firstChild;M&&M.nodeName==="STYLE";)M=M.nextSibling;for(var W=0;W<U&&M;){var w=H[W],d=_.S("remove_cr_char")&&w.text?w.text.replace("\r",""):w.text;if(this.isSimpleString_(w)&&!this.useMixedDirectionFormattedStrings)if(M.nodeName==="#text"){M.textContent!=d&&(M.textContent=d);W++;M=M.nextSibling;continue}else break;if(_.p(w,W$))break;else if(!this.noEndpoints&&w.navigationEndpoint){if(M.nodeName!=="A")break;this.setDataOnAnchor_(M,
w.navigationEndpoint)}else if(M.nodeName!=="SPAN")break;this.setNodeStyle_(w,M);this.setUpVisibilityLogging_(w,M);M.textContent!=d&&(M.textContent=d);W++;M=M.nextSibling}if(M)for(w=A.lastChild,M=W?M.previousSibling:null;w&&w!=M;){try{A.removeChild(w)}catch(O){break}w=A.lastChild}W!==U&&this.addTextNodes_(H,W)};
_.X.addTextNodes_=function(H,U){for(var A=document.createDocumentFragment(),M=H.length;U<M;U++){var W=H[U],w=_.S("remove_cr_char")&&W.text?W.text.replace("\r",""):W.text;if(this.isSimpleString_(W)&&!this.useMixedDirectionFormattedStrings)A.appendChild(document.createTextNode(w));else{var d=_.p(W,W$);if(d){if(d.image){var O=document.createElement("img");d.isCustomEmoji||O.classList.add("small-emoji");O.classList.add("emoji");d.isCustomEmoji&&(O.dataset.emojiId=d.emojiId);O.src=_.Rv(d.image.thumbnails,
this.emojiSize);(W=this.get("image.accessibility.accessibilityData.label",d))?O.alt=W:d.shortcuts&&d.shortcuts.length>0?O.alt=d.shortcuts[0]:d.emojiId&&(O.alt=d.emojiId);A.appendChild(O);this.hasEmoji=!0}}else!this.noEndpoints&&W.navigationEndpoint?(O=document.createElement("a"),O.classList.add("yt-simple-endpoint"),O.setAttribute("spellcheck","false"),this.setDataOnAnchor_(O,W.navigationEndpoint)):O=document.createElement("span"),this.setNodeStyle_(W,O),this.setUpVisibilityLogging_(W,O),O.appendChild(document.createTextNode(w)),
A.appendChild(O)}}this.getRoot().appendChild(A)};
_.X.isSimpleString_=function(H){return(this.noEndpoints||!H.navigationEndpoint)&&!_.p(H,W$)&&(this.noStyles||!(H.bold||H.deemphasize||H.italics||H.strikethrough||H.errorUnderline||H.bracket||H.textColor))&&!H.loggingDirectives};
_.X.getRawText=function(){return _.Sp(this.text)};
_.X.getFirstRunText=function(){var H;if(((H=this.text)==null?0:H.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.X.setFirstRunText=function(H){var U;((U=this.text)==null?0:U.runs)&&this.text.runs[0]&&(this.text.runs[0].text=H,this.textChanged_(this.text))};
_.X.setDataOnAnchor_=function(H,U){var A=this;!_.S("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(U)||this.isSignalServiceEndpoint_(U)?(H.onclick=this.serviceEndpointHandler_(U),HI(H,"#")):PA4({text:this.text,command:U},function(){xG0(H,U,A.target)})};
_.X.isServiceEndpoint_=function(H){var U;return!((U=_.p(H==null?void 0:H.commandMetadata,_.Y2))==null||!U.sendPost)};
_.X.isSignalServiceEndpoint_=function(H){return!!_.p(H,_.GR)};
_.X.serviceEndpointHandler_=function(H){var U=this;return function(A){_.rs(U.hostElement,[H]);A.preventDefault()}};
_.X.overrideAriaLabelChanged_=function(){var H=this.getRoot();this.enableContentEditable&&H&&H.setAttribute("aria-label",this.overrideAriaLabel)};
_.X.enableContentEditableChanged_=function(){var H=this,U=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),U=_.c4(this.hostElement,U),!U.lastChild||U.lastChild instanceof HTMLElement&&U.lastChild.id!=="contenteditable-root"){var A=document.createElement("div");A.id="contenteditable-root";A.setAttribute("contenteditable","true");A.setAttribute("dir","auto");A.onfocus=function(){H.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
U.appendChild(A);this.overrideAriaLabel&&A.setAttribute("aria-label",this.overrideAriaLabel)}}else A=_.yf(this.hostElement).firstChild,A instanceof HTMLElement&&A.id==="contenteditable-root"&&_.c4(this.hostElement,U).removeChild(A)};
_.X.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.X.getNodesForVisibilityLogging_=function(){return _.cu(this.getRoot().childNodes,function(H){var U;return!((U=H.data)==null||!U.trackingParams)})};
_.X.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.X.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var H=this.ytRendererBehavior.getVisibilityLogger();H&&this.getNodesForVisibilityLogging_().forEach(function(U){H.reportShown(U)})}};
_.X.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var H=this.ytRendererBehavior.getVisibilityLogger();H&&this.getNodesForVisibilityLogging_().forEach(function(U){H.reportHidden(U)})}};
_.D5.Object.defineProperties(qE.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.S("enable_mixed_direction_formatted_strings")}}});
qE.prototype.enableContentEditableChanged_=qE.prototype.enableContentEditableChanged_;qE.prototype.overrideAriaLabelChanged_=qE.prototype.overrideAriaLabelChanged_;qE.prototype.ellipsisTruncateChanged_=qE.prototype.ellipsisTruncateChanged_;qE.prototype.textChanged=qE.prototype.textChanged;_.G([_.g(avr.YtPlaintextBehavior),_.q("design:type",Object)],qE.prototype,"ytPlaintextBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],qE.prototype,"ytComponentBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],qE.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],qE.prototype,"text",void 0);_.G([_.y(),_.q("design:type",Boolean)],qE.prototype,"noEndpoints",void 0);_.G([_.y(),_.q("design:type",Boolean)],qE.prototype,"noStyles",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],qE.prototype,"isDarkTheme",void 0);
_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],qE.prototype,"splitLines",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],qE.prototype,"forceDefaultStyle",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],qE.prototype,"ellipsisTruncate",void 0);_.G([_.y(),_.q("design:type",Object)],qE.prototype,"ignoreShadyDom",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.q("design:type",Boolean)],qE.prototype,"ellipsisTruncateStyling",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.q("design:type",String)],qE.prototype,"ariaLabel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],qE.prototype,"isEmpty",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.q("design:type",Boolean)],qE.prototype,"hasLinkOnly_",void 0);_.G([_.y(),_.q("design:type",Boolean)],qE.prototype,"hasEmoji",void 0);_.G([_.y(),_.q("design:type",Boolean)],qE.prototype,"disableAttributedString",void 0);_.G([_.y(),_.q("design:type",Boolean)],qE.prototype,"isOverlay",void 0);_.G([_.y(),_.q("design:type",Boolean)],qE.prototype,"linkInheritColor",void 0);
_.G([_.y(),_.q("design:type",Boolean)],qE.prototype,"noPreWrap",void 0);_.G([_.y(),_.q("design:type",Boolean)],qE.prototype,"userInput",void 0);_.G([_.y({value:16}),_.q("design:type",Number)],qE.prototype,"emojiSize",void 0);_.G([_.y(),_.q("design:type",String)],qE.prototype,"target",void 0);_.G([_.y(),_.q("design:type",Boolean)],qE.prototype,"enableContentEditable",void 0);_.G([_.y(),_.q("design:type",String)],qE.prototype,"overrideAriaLabel",void 0);
_.G([_.y(),_.q("design:type",Boolean)],qE.prototype,"respectHtmlDir",void 0);_.G([_.y(),_.q("design:type",Boolean)],qE.prototype,"respectLangDir",void 0);_.G([_.a("plaintextOnly"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],qE.prototype,"useMixedDirectionFormattedStrings",null);_.G([_.y({computed:"computeUseAttributedString(text)"}),_.q("design:type",Boolean)],qE.prototype,"useYtAttributedString",void 0);
_.G([_.Ya("text"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qE.prototype,"textChanged",null);_.G([_.Ya("ellipsisTruncate"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qE.prototype,"ellipsisTruncateChanged_",null);_.G([_.Ya("overrideAriaLabel"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qE.prototype,"overrideAriaLabelChanged_",null);
_.G([_.Ya("enableContentEditable"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qE.prototype,"enableContentEditableChanged_",null);_.G([_.b0({is:"yt-formatted-string",disableElementRegistration:!0})],qE);
_.e(qE,"yt-formatted-string",function(){if(zCz===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;xQz===void 0&&(xQz=document.createElement("template"));var M=xQz;A.call(U,M.content.cloneNode(!0),H.content.firstChild);zCz=H}H=zCz;return H});var CcB;var tEn;var ciw;var yik;var hh=function(){var H=_.B.apply(this,arguments)||this;H.focused=!1;H.disabled=!1;H.isOverlay=!1;return H};
_.R(hh,_.B);hh.prototype.triggerDown=function(){if(!this.disabled){_.B4(this.hostElement,"down",!0);var H;(H=this.currentAnimation)==null||H.cancel()}};
hh.prototype.triggerUp=function(){if(!this.disabled){_.B4(this.hostElement,"down",!1);var H=this.fillElement;var U=this.strokeElement;typeof GroupEffect==="function"?(H=new GroupEffect([hJh(H),kAK(U)]),H=new Animation(H,document.timeline)):H=new Wtm(H,U);this.currentAnimation=H;var A;(A=this.currentAnimation)==null||A.play()}};
_.G([_.hG(".stroke"),_.q("design:type",HTMLElement)],hh.prototype,"strokeElement",void 0);_.G([_.hG(".fill"),_.q("design:type",HTMLElement)],hh.prototype,"fillElement",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],hh.prototype,"focused",void 0);_.G([_.y(),_.q("design:type",Object)],hh.prototype,"disabled",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],hh.prototype,"isOverlay",void 0);_.G([_.b0({is:"yt-interaction",disableElementRegistration:!0})],hh);
_.e(hh,"yt-interaction",function(){if(yik===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;ciw===void 0&&(ciw=document.createElement("template"));var M=ciw;A.call(U,M.content.cloneNode(!0),H.content.firstChild);yik=H}H=yik;return H},{mode:2});var ky=function(){return _.B.apply(this,arguments)||this};
_.R(ky,_.B);_.X=ky.prototype;_.X.ready=function(){var H=this,U=_.c4(this.hostElement).querySelector("#button");U.addEventListener("focus",function(){gJ3||(gJ3=new mH3);H.keyboardFocused=gJ3.isKeyBoardInUse()});
U.addEventListener("blur",function(){H.keyboardFocused=!1;H.rippleUp_()})};
_.X.computeTabIndex_=function(H){return H?-1:0};
_.X.computeButtonAriaPressed_=function(H){if(this.toggleable)return H?"true":"false"};
_.X.rippleDown_=function(){_.c4(this.hostElement).querySelector("#interaction").triggerDown()};
_.X.rippleUp_=function(){_.c4(this.hostElement).querySelector("#interaction").triggerUp()};
_.X.onPressedChanged_=function(){var H=_.yf(_.c4(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.yf(_.c4(this.hostElement).querySelector("#button")).children[0];H&&(H.active=this.pressed)};
ky.prototype.onPressedChanged_=ky.prototype.onPressedChanged_;ky.prototype.rippleUp_=ky.prototype.rippleUp_;ky.prototype.rippleDown_=ky.prototype.rippleDown_;_.G([_.y(),_.q("design:type",String)],ky.prototype,"label",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],ky.prototype,"disabled",void 0);_.G([_.y(),_.q("design:type",Boolean)],ky.prototype,"pressed",void 0);_.G([_.y(),_.q("design:type",Object)],ky.prototype,"toggleable",void 0);
_.G([_.y(),_.q("design:type",Boolean)],ky.prototype,"untabbable",void 0);_.G([_.y(),_.q("design:type",Boolean)],ky.prototype,"keyboardFocused",void 0);_.G([_.Gl("down"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ky.prototype,"rippleDown_",null);_.G([_.Gl("up"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ky.prototype,"rippleUp_",null);
_.G([_.Ya("pressed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ky.prototype,"onPressedChanged_",null);_.G([_.b0({is:"yt-icon-button",disableElementRegistration:!0})],ky);
_.e(ky,"yt-icon-button",function(){if(tEn===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;CcB===void 0&&(CcB=document.createElement("template"));var M=CcB;A.call(U,M.content.cloneNode(!0),H.content.firstChild);tEn=H}H=tEn;return H},{mode:2});var Bl3;var ri2=function(){var H=document.body,U=H.appendChild;if(Bl3===void 0){var A=document.createElement("template");_.E(A,'\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>');
Bl3=A}A=Bl3;U.call(H,A.content)};
document.body?ri2():window.addEventListener("DOMContentLoaded",ri2);var eCw=_.NP(["aria-"]),If={};If.YtRenderButtonBehavior=[_.I.YtRendererBehavior,_.D1.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!!_.lx().resolve(_.$V(_.af))&&_.S("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 H=this.computeHref_(this.endpoint,!0);H?HI(this.elements_.endpoint,H):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){H=this.buttonClass.split(" ");H=_.b(H);for(var U=H.next();!U.done;U=H.next())U=U.value,_.B4(this.hostElement,U,!0),this.elements_.button&&_.B4(this.elements_.button,U,!0),this.elements_.text&&_.B4(this.elements_.text,U,!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&&(H=null,this.buttonAccessibility&&(H=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=H:H?_.oD([_.N2(eCw)],this.elements_.button,"aria-label",H):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var H=_.lx().resolve(_.$V(_.af));H&&(this.keyboardFocused=H.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Rf("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,_.Ig(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Ig(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(H,U){if(U)for(H=U.split(" "),H=_.b(H),U=H.next();!U.done;U=H.next())U=U.value,_.B4(this.hostElement,U,!1),this.elements_.button&&_.B4(this.elements_.button,U,!1),this.elements_.text&&_.B4(this.elements_.text,U,!1)},
buttonIconChanged_:function(H){this.elements_.icon?H?(this.elements_.icon.icon=H,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Ig(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.rn(this.hostElement,"is-paper-button-with-icon",!1)):H&&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"&&_.Ig(this.elements_.button).appendChild(this.elements_.icon):_.Ig(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.rn(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(H){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,H){var U=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(H){case "yt_icon_button_with_label":U=!0;_.B4(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();H=_.Ig(this.elements_.button).firstElementChild;
this.elements_.icon=H;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Ig(this.elements_.endpoint).appendChild(this.elements_.button);_.Ig(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Rf("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;_.Ig(this.elements_.button).appendChild(this.elements_.text);_.Ig(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":U=!0,this.elements_.button=this.getYtIconButton_(),H=_.Ig(this.elements_.button).firstElementChild,this.elements_.icon=H,this.setIconActive_(this.elements_.icon),
_.Ig(this.elements_.endpoint).appendChild(this.elements_.button)}_.rn(this.hostElement,"is-icon-button",U);_.rn(this.hostElement,"is-paper-button",!U);_.rn(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 A;_.c4((A=this.container.hostElement)!=null?A:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Ig(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(H){if(H!=void 0||this.disabled)this.disabled=H,this.elements_.button&&(this.elements_.button.disabled=H)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(H){_.S("kevlar_system_icons")&&H&&this.data&&(this.data.isSelected!==void 0?H.active=this.data.isSelected:this.data.isToggled!==void 0&&(H.active=this.data.isToggled))},
observeBasicPalette_:function(H){_.jr(this.hostElement,H)},
disabledChanged_:function(H){this.data&&this.set("data.isDisabled",H)},
onYtButtonTap_:function(H){if(this.disabled)H.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.rs(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(H=this.disableCommandHandlerOverride,!this.data||!this.data.command||H||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.S("handle_service_request_actions")||_.rs(this.hostElement,[this.serviceEndpoint]),
_.cg(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.S("handle_service_request_actions")?(H=[],this.serviceEndpoint&&H.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&H.push(this.data.command),H.length&&_.eb(this.hostElement,H,this.hostElement)):this.data&&this.data.command&&(H=this.data.command,H.accountUnlinkCommand||H.accountLinkCommand||H.insertAdCommand||H.insertHighlightMarkerCommand||
H.createLivestreamHighlightClipCommand||H.getVideoUploadFeedbackCommand||H.musicDeletePrivatelyOwnedEntityCommand||H.ypcCancelRecurrenceEndpoint||H.getMultiSelectCommandEndpoint?_.rs(this.hostElement,[H]):_.eb(this.hostElement,[H],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 H,U=_.c4((H=this.container.hostElement)!=null?H:this.container);U.lastChild&&U.lastChild.tagName!="STYLE";)try{U.removeChild(U.lastChild)}catch(A){break}},
getYtIconButton_:function(){var H=this.reuseEnabled_()?_.Rf("yt-icon-button"):document.createElement("yt-icon-button"),U=_.Ig(H).firstElementChild;if(U&&U.is!="yt-icon"){for(U=_.Ig(H);U.lastChild;)U.removeChild(U.lastChild);U=null}U||(U=this.getIcon_(),this.setIconActive_(U),_.Ig(H).appendChild(U));return H},
reuseEnabled_:function(){return _.S("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Rf("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Rf("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.DQg={};
_.DQg.YtButtonBehavior=[If.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var H=this.data;H&&(this._setEndpoint(this.computeEndpoint_(H)),this._setServiceEndpoint(this.computeServiceEndpoint_(H)),this._setCommand(this.computeCommand_(H)),this._setButtonIcon(this.computeButtonIcon_(H)),this._setButtonText(this.computeButtonText_(H,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(H)),this._setButtonTooltip(this.computeTooltip_(H)),this._setButtonClass(this.computeButtonClass_(H)),this._setIconPositionType(this.computeIconPositionType_(H)),this.updateRenderedElements())},
setPressedState:function(H){var U;if((U=this.elements_)==null?0:U.button)this.elements_.button.pressed=!!H},
computeIconPositionType_:function(H){return H&&H.iconPosition||null},
computeEndpoint_:function(H){var U=H&&H.navigationEndpoint,A=this.get("data.command.commandMetadata.webCommandMetadata.url"),M=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return U?U:H&&H.command&&H.command.modalEndpoint?H.command:A&&!M&&H.command?H.command:null},
computeServiceEndpoint_:function(H){var U=H&&H.serviceEndpoint,A=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return U?U:A&&H.command?H.command:null},
computeCommand_:function(H){return H&&H.command||null},
computeButtonIcon_:function(H){return H&&H.icon&&H.icon.iconType?_.eq(H.icon.iconType):null},
computeButtonText_:function(H,U){return!U&&H&&H.text||null},
computeAccessibility_:function(H){return this.get("accessibilityData.accessibilityData",H)||H&&H.accessibility||(H&&H.text?{label:this.getSimpleString(H.text)}:null)},
computeTooltip_:function(H){return H?H.isDisabled&&H.disabledTooltip||H.tooltip||null:null},
computeButtonClass_:function(H){var U=H&&H.style?H.style.toLowerCase().replace(/_/g,"-")+" ":"";U+=H&&H.size?H.size.toLowerCase().replace(/_/g,"-")+" ":"";H.colorData&&H.colorData.basicColorPaletteData&&H.colorData.basicColorPaletteData.borderColor&&(U+="palette-with-border");return U.trim()}}];var Iv={};var $Qn;var lvz;var GY3,YTw=function(){return GY3!==void 0?GY3:GY3=document.createElement("template")};
document.head.appendChild(YTw().content);var qTw;var hCn,kYh=function(){return hCn!==void 0?hCn:hCn=document.createElement("template")};
document.head.appendChild(kYh().content);var vzn;var TlH,jOH=function(){return TlH!==void 0?TlH:TlH=document.createElement("template")};
document.head.appendChild(jOH().content);var IvB;var QOn=document.head,VEK=QOn.appendChild,Hgr;if(IvB===void 0){var UOH=document.createElement("template");_.E(UOH,"\x3c!--css-build:shady--\x3e");UOH.content.insertBefore(jOH().content.cloneNode(!0),UOH.content.firstChild);IvB=UOH}Hgr=IvB;VEK.call(QOn,Hgr.content);var A5n=document.head,M03=A5n.appendChild,WC3;if(vzn===void 0){var www=document.createElement("template");_.E(www,"\x3c!--css-build:shady--\x3e");www.content.insertBefore(kYh().content.cloneNode(!0),www.content.firstChild);vzn=www}WC3=vzn;M03.call(A5n,WC3.content);var Xww=document.head,igk=Xww.appendChild,bgp;if(qTw===void 0){var dOh=document.createElement("template");_.E(dOh,"\x3c!--css-build:shady--\x3e");dOh.content.insertBefore(YTw().content.cloneNode(!0),dOh.content.firstChild);qTw=dOh}bgp=qTw;igk.call(Xww,bgp.content);var OgK;_.Qm("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");OgK=_.S("web_button_rework")&&_.xV("BUTTON_REWORK")||_.S("web_button_rework_with_live");_.QJ=function(){return _.B.apply(this,arguments)||this};
_.R(_.QJ,_.B);_.QJ.prototype.created=function(){this.openPopupConfig=_.gD("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.QJ.prototype.onYtNavigate_=function(H){var U=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(H.detail.endpoint);U&&(this.ytOpenPopupBehavior.openPopup(U),H.stopPropagation(),H.preventDefault())};
_.D5.Object.defineProperties(_.QJ,{template:{configurable:!0,enumerable:!0,get:function(){if(lvz===void 0){var H=document.createElement("template");_.E(H,"\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");H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
var U=H.content,A=U.insertBefore;$Qn===void 0&&($Qn=document.createElement("template"));var M=$Qn;A.call(U,M.content.cloneNode(!0),H.content.firstChild);lvz=H}H=lvz;return H}}});
_.QJ.prototype.onYtNavigate_=_.QJ.prototype.onYtNavigate_;_.G([_.g(_.e4.YtOpenPopupBehavior),_.q("design:type",Object)],_.QJ.prototype,"ytOpenPopupBehavior",void 0);_.G([_.g(_.DQg.YtButtonBehavior),_.q("design:type",Object)],_.QJ.prototype,"ytButtonBehavior",void 0);_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],_.QJ.prototype,"onYtNavigate_",null);
_.G([_.b0({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:OgK})],_.QJ);var u9w;var Zgg=_.S("web_button_rework")&&_.xV("BUTTON_REWORK")||_.S("web_button_rework_with_live"),VJ=function(){var H=_.B.apply(this,arguments)||this;H.isPressed=!1;H.forceIconButton=!1;H.forceIconOnly=!1;H.forceModernIconButton=!1;H.skipCommandHandling=!1;H.alignByText=!1;H.fitToVisibleBounds=!0;H.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};H.onTap=function(U){_.cg(H.hostElement,"yt-service-request-sent-button-renderer",U)};
return H};
_.R(VJ,_.B);_.X=VJ.prototype;_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.X.onClick=function(H){var U,A=this.disabled||((U=this.data)==null?void 0:U.isDisabled);U=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");A&&U&&H.stopPropagation()};
_.X.computeIcon=function(){var H,U,A=(H=this.data)==null?void 0:(U=H.icon)==null?void 0:U.iconType;if(A)return _.eq(A)};
_.X.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.X.handleUpdateButtonAction=function(H){H=_.p(H,uTH);var U=_.p(H==null?void 0:H.updatedButton,_.f$);if(this.data&&H&&U){var A=this.data;A.targetId&&H.targetId&&A.targetId===H.targetId&&(this.data=U)}};
_.D5.Object.defineProperties(VJ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var H=this;if(this.data){var U=U7V({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.cg(H.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.cg(H.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});U.alignByText=this.alignByText;return U}}}});
_.D5.Object.defineProperties(VJ,{template:{configurable:!0,enumerable:!0,get:function(){if(u9w===void 0){var H=document.createElement("template");_.E(H,'\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>');u9w=H}H=u9w;return H}}});
VJ.prototype.onClick=VJ.prototype.onClick;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],VJ.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],VJ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],VJ.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],VJ.prototype,"isPressed",void 0);
_.G([_.y(),_.q("design:type",Object)],VJ.prototype,"forceIconButton",void 0);_.G([_.y(),_.q("design:type",Object)],VJ.prototype,"forceIconOnly",void 0);_.G([_.y(),_.q("design:type",Object)],VJ.prototype,"forceModernIconButton",void 0);_.G([_.y(),_.q("design:type",Object)],VJ.prototype,"skipCommandHandling",void 0);_.G([_.y(),_.q("design:type",Object)],VJ.prototype,"alignByText",void 0);_.G([_.y(),_.q("design:type",Object)],VJ.prototype,"buttonTooltipPosition",void 0);
_.G([_.y(),_.q("design:type",Object)],VJ.prototype,"fitToVisibleBounds",void 0);_.G([_.y({computed:"computeTooltip(data)"}),_.q("design:type",Object)],VJ.prototype,"tooltip",void 0);_.G([_.y(),_.q("design:type",Object)],VJ.prototype,"overrides",void 0);_.G([_.y(),_.q("design:type",Boolean)],VJ.prototype,"disabled",void 0);_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],VJ.prototype,"onClick",null);
_.G([_.a("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.q("design:type",Object),_.q("design:paramtypes",[])],VJ.prototype,"computedButtonShape",null);_.G([_.b0({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!Zgg,cssBuildOptOut:!0}),_.b0({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!Zgg,cssBuildOptOut:!0})],VJ);var fVg;var J52;var HN=function(){var H=_.B.apply(this,arguments)||this;H.empty_=!0;H.loadTime=Infinity;H.pendingPaint=!1;H.hasChange_=!1;H.oldThumbnail_=null;H.oldDelayedSrc_="";H.objectURL_=null;return H};
_.R(HN,_.B);_.X=HN.prototype;_.X.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.X.ready=function(){var H=this.shouldShowPlaceholder_();_.B4(this.hostElement,"no-transition",!0);H&&this.hostElement.classList.add("with-placeholder")};
_.X.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.X.isThumbPreloaded_=function(H){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",H)};
_.X.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||KC3};
_.X.computeThumbnailSrc_=function(H){return H&&H.thumbnails?_.Rv(H.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.X.computeAlt_=function(){var H=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&H||""};
_.X.thumbnailChanged_=function(){var H=_.b([this.thumbnail,this.oldThumbnail_]),U=H.next().value;H=H.next().value;this.oldThumbnail_=U;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(H=this.computeThumbnailSrc_(H),this.computeThumbnailSrc_(U)===H))return;_.S("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(U)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):U&&_.xV("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.rV(this,this.onReload_):_.rV(this,this.onShow_):this.resetImage_();U&&(this.hostElement.style.opacity=""+U.opacity)}};
_.X.delayedSrcChanged_=function(){var H=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===H||this.resetImage_()};
_.X.setSrc_=function(H){H?(_.c4(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.c4(this.hostElement).querySelector("#img").src=H):(_.c4(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.X.resetImage_=function(){M0c(this.hostElement);this.empty_=!0;this.setSrc_(KC3);this.ytRendererBehavior.invalidate(!1)};
_.X.observePlaceholderColor_=function(){var H=this.thumbnail&&this.thumbnail.placeholderColor;H?this.hostElement.style.backgroundColor=_.wn(H):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.X.onLoad_=function(){_.c4(this.hostElement).querySelector("#img").src&&_.c4(this.hostElement).querySelector("#img").src!==KC3&&(A57(this.hostElement),this.notifyOnLoaded&&_.cg(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.X.onError_=function(){var H=this;if(_.S("web_use_cache_for_image_fallback"))Ogc(_.c4(this.hostElement).querySelector("#img").src).then(function(U){H.objectURL_=_.I5(U).toString();H.setSrc_(H.objectURL_)}).catch(function(){_.S("kevlar_woffle_fallback_image")&&H.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.X.onPrescanVisible=function(){this.onShow_()};
_.X.onVisible=function(){if(_.S("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.X.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var H=this.computeSrc_();H!==_.c4(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(H))}};
_.X.onReload_=function(){this.empty_=!1;var H=this.computeSrc_();H!==_.c4(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(H))};
_.X.shouldShowPlaceholder_=function(){return _.S("kevlar_thumbnail_bg")};
HN.prototype.observePlaceholderColor_=HN.prototype.observePlaceholderColor_;HN.prototype.delayedSrcChanged_=HN.prototype.delayedSrcChanged_;HN.prototype.thumbnailChanged_=HN.prototype.thumbnailChanged_;_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],HN.prototype,"alt",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],HN.prototype,"ariaHidden",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],HN.prototype,"ariaLabel",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],HN.prototype,"hidden",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],HN.prototype,"id",void 0);_.G([_.g(_.Jh.YtVisibilityBehavior),_.q("design:type",Object)],HN.prototype,"ytVisibilityBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",String)],HN.prototype,"delayedSrc",void 0);
_.G([_.y(),_.q("design:type",Object)],HN.prototype,"thumbnail",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],HN.prototype,"loaded",void 0);_.G([_.y(),_.q("design:type",Boolean)],HN.prototype,"notifyOnLoaded",void 0);_.G([_.y(),_.q("design:type",Number)],HN.prototype,"height",void 0);_.G([_.y(),_.q("design:type",Number)],HN.prototype,"width",void 0);_.G([_.y({value:function(){return"width"}}),
_.q("design:type",String)],HN.prototype,"dimension",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],HN.prototype,"fit",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],HN.prototype,"fitHeight",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],HN.prototype,"fitWidth",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],HN.prototype,"objectFit",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],HN.prototype,"objectPosition",void 0);_.G([_.y(),_.q("design:type",String)],HN.prototype,"preferredThumbnail",void 0);_.G([_.y({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.q("design:type",String)],HN.prototype,"alt_",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],HN.prototype,"sharedTooltipText",void 0);
_.G([_.y(),_.q("design:type",Boolean)],HN.prototype,"ftlEligible",void 0);_.G([_.y({value:void 0}),_.q("design:type",String)],HN.prototype,"observeHiddenOption",void 0);_.G([_.y({value:"observe_once"}),_.q("design:type",String)],HN.prototype,"observePrescanOption",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],HN.prototype,"roundedContainer",void 0);
_.G([_.jk("thumbnail"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HN.prototype,"thumbnailChanged_",null);_.G([_.jk("delayedSrc"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HN.prototype,"delayedSrcChanged_",null);_.G([_.Ya("thumbnail.placeholderColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HN.prototype,"observePlaceholderColor_",null);
_.G([_.b0({is:"yt-img-shadow",disableElementRegistration:!0})],HN);var KC3=_.xV("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.ty()(HN,"yt-img-shadow",function(){if(J52===void 0){var H=document.createElement("template");_.E(H,'\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">');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;fVg===void 0&&(fVg=document.createElement("template"));var M=fVg;A.call(U,M.content.cloneNode(!0),H.content.firstChild);J52=H}H=J52;return H},{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 bMK;_.U8=new _.g3("SCREEN_MANAGER_TOKEN");bMK=new _.g3("LOG_INITIAL_SCREEN_TOKEN");var oEH=Ho({entities:{}});_.Ab=U3(oEH)(oEH.entities,{selectSfvAudioItemPlaybackState:function(H,U){var A,M;H=(M=_.rH(H,"sfvAudioItemCurrentlyPlayingEntity",U))!=null?M:void 0;return(A=H==null?void 0:H.sfvAudioItemPlaybackState)!=null?A:void 0},
playlistLoopStateEntitySelector:Wp7,toggleMenuServiceItemEntitySelector:wT7});_.MI=_.r(function(H){function U(T){return _.p(T,_.ot)}
function A(){var T=M().isTogglingDisabled||m()&&M().toggledIsTogglingDisabled,WF=T||n()?m():!m();z(WF);C(!1);if(!T){var dK;(dK=d)==null||dK(!!WF)}var SN;((SN=w)==null?0:SN())||_.Yg(_.lx().resolve(_.U8),M().trackingParams);var o_;if(!WF||!U(M().defaultButtonViewModel)||(o_=w)!=null&&o_()){var PF;!U(M().toggledButtonViewModel)||((PF=w)==null?0:PF())||_.Yg(_.lx().resolve(_.U8),U(M().toggledButtonViewModel).trackingParams)}else _.Yg(_.lx().resolve(_.U8),U(M().defaultButtonViewModel).trackingParams)}
var M=H.data,W=H.buttonShapeOverrides,w=H.disableExplicitClickLogging,d=H.onToggle,O=H.style,f=H.useOutlinedIcon,J=H.className,F=function(){var T,WF;return m()?(T=H.animatedTextPropsToggled)==null?void 0:T.call(H):(WF=H.animatedTextPropsDefault)==null?void 0:WF.call(H)},P=_.Ja(function(){return F()?Object.assign({},F(),{shouldAnimate:c()}):void 0},void 0,"Zp4uoe"),n=function(){var T;
return((T=D())==null?void 0:T.isToggled)!==void 0},N=_.b(_.md(function(){var T,WF,dK;
return n()?(T=D())==null?void 0:T.isToggled:(dK=W==null?void 0:(WF=W())==null?void 0:WF.toggled)!=null?dK:M().isToggled})),L=N.next().value;
N=N.next().value;var m=L,z=N;N=_.b(_.md(function(){var T,WF;return(T=H.animatedTextPropsToggled)==null?void 0:(WF=T.call(H))==null?void 0:WF.shouldAnimate}));
L=N.next().value;N=N.next().value;var c=L,C=N;L=_.b(_.iB(!1,void 0,"mq3Zfe"));var v=L.next().value,Y=L.next().value,D=_.Gk(function(T){a:{var WF=M().entityKey,dK=M().toggledStateEntitySelectorType;if(dK)switch(dK){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!WF)break;T=_.Ab.selectSfvAudioItemPlaybackState(T,WF);if(T==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){T={isToggled:!0};break a}if(T){T={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":T={isToggled:_.d77(T).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":T={isToggled:_.d77(T).includes("engagement-panel-live-chat-item-section")};break a;default:_.Na(new _.bD("Error: entitySelectorType defined but not matched in selector.",T,dK))}T=void 0}return T}),h=function(){return Object.assign({},W==null?void 0:W(),{onToggle:A,
toggleable:!0,toggled:m(),focused:v()})};
return _.Z("toggle-button-view-model",{"on:focusin":_.c$(function(){var T=_.lx().resolve(_.$V(_.af));T&&Y(T.isKeyBoardInUse());return!1}),
"on:focusout":_.c$(function(){Y(!1);return!1})},_.Z(_.K,{cond:function(){return m()?U(M().toggledButtonViewModel):U(M().defaultButtonViewModel)},
then:function(T){return _.Z(_.yJ,{data:T,className:J,style:O,useOutlinedIcon:f,buttonOverrides:h,animatedTextProps:P})}}))},"fa");
_.MI.idomCompat={callbacks:{onToggle:!0}};_.LG(_.r(function(H){return _.Z("yt-toggle-button-view-model",{class:function(){var U;return(U=H.scopingClassName)==null?void 0:U.call(H)}},_.Z(_.MI,{data:function(){var U;
return(U=H.data)==null?void 0:U.call(H)},
buttonShapeOverrides:function(){var U;return(U=H.overrides)==null?void 0:U.call(H)},
animatedTextPropsDefault:function(){var U;return(U=H.animatedTextPropsDefault)==null?void 0:U.call(H)},
animatedTextPropsToggled:function(){var U;return(U=H.animatedTextPropsToggled)==null?void 0:U.call(H)},
disableExplicitClickLogging:function(){var U;return(U=H.disableExplicitClickLogging)==null?void 0:U.call(H)},
onToggle:function(U){var A;return(A=H.onToggle)==null?void 0:A.call(H,U)},
style:function(){var U;return(U=H.style)==null?void 0:U.call(H)},
useOutlinedIcon:function(){var U;return(U=H.useOutlinedIcon)==null?void 0:U.call(H)},
className:function(){var U;return(U=H.className)==null?void 0:U.call(H)}}))},"ga"),"yt-toggle-button-view-model",{props:{data:_.sY,
buttonShapeOverrides:_.sY,overrides:_.sY,animatedTextPropsDefault:_.sY,animatedTextPropsToggled:_.sY,disableExplicitClickLogging:_.sY,onToggle:_.Ne,style:_.sY,useOutlinedIcon:_.sY,className:_.sY,scopingClassName:_.sY}});var WN=function(){return _.B.apply(this,arguments)||this};
_.R(WN,_.B);WN.prototype.onTap=function(H){H.stopPropagation();H=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Wl("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:H})):this.ytLiveChatReduxBehavior.dispatch(_.hs("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:H}))};
_.D5.Object.defineProperties(WN.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.engagementState)==null?void 0:H.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var H=_.p(this.data.toggleButton,_.Pc),U;if(Number(((U=this.likeCountState)==null?void 0:U.likeCountIfIndifferentNumber)||"0")===0){var A;U=((A=this.data.likeCountPlaceholder)==null?void 0:A.content)||""}else{var M,W,w;U=((M=this.likeCountState)==null?void 0:(W=M.likeCountIfIndifferent)==null?void 0:W.content)||((w=this.data.likeCountPlaceholder)==null?void 0:w.content)||""}var d,O;A=((d=this.likeCountState)==null?void 0:(O=
d.likeCountIfLiked)==null?void 0:O.content)||"1";d=_.p(H.toggledButtonViewModel,_.ot);return Object.assign({},H,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.p(H.defaultButtonViewModel,_.ot),{title:U})},toggledButtonViewModel:{buttonViewModel:Object.assign({},d,{title:A})}})}}}});
WN.prototype.onTap=WN.prototype.onTap;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],WN.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dv),_.q("design:type",Object)],WN.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],WN.prototype,"data",void 0);
_.G([_.y({selectorArgs:["data.likeCountEntityKey"],selector:O67}),_.q("design:type",Object)],WN.prototype,"likeCountState",void 0);_.G([_.y({selectorArgs:["data.engagementStateKey"],selector:POh}),_.q("design:type",Object)],WN.prototype,"engagementState",void 0);_.G([_.a("data","engagementState"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],WN.prototype,"isLiked",null);
_.G([_.a("data","likeCountState","isLiked"),_.q("design:type",Object),_.q("design:paramtypes",[])],WN.prototype,"toggleButton",null);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],WN.prototype,"onTap",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],WN);
_.e(WN,"yt-live-chat-like-button-view-model",function(){if(sOg===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Pcm===void 0&&(Pcm=document.createElement("template"));var M=Pcm;A.call(U,M.content.cloneNode(!0),H.content.firstChild);sOg=H}H=sOg;return H},{mode:0});var FCp;var Pp3;var w6=function(){return _.B.apply(this,arguments)||this};
_.R(w6,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],w6.prototype,"data",void 0);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],w6);
_.e(w6,"yt-live-chat-paid-message-footer-renderer",function(){if(Pp3===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;FCp===void 0&&(FCp=document.createElement("template"));var M=FCp;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Pp3=H}H=Pp3;return H},{mode:0});var s8m;var nEz;var Ny3;var SV3,pwy=function(){if(SV3!==void 0)return SV3;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;Ny3===void 0&&(Ny3=document.createElement("template"));var M=Ny3;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return SV3=H};var Xn=function(){return _.B.apply(this,arguments)||this};
_.R(Xn,_.B);Xn.prototype.onTap=function(H){H.stopPropagation()};
_.D5.Object.defineProperties(Xn.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var H=_.p(this.data.replyButton,_.ot),U,A,M,W,w,d,O,f=Number(((U=this.replyCountState)==null?void 0:U.replyCountNumber)||"0")===0?(A=this.data)==null?void 0:(M=A.replyCountPlaceholder)==null?void 0:M.content:((W=this.replyCountState)==null?void 0:(w=W.replyCount)==null?void 0:w.content)||((d=this.data)==null?void 0:(O=d.replyCountPlaceholder)==null?void 0:O.content)||"",J;return Object.assign({},
H,{title:f,accessibilityText:(J=this.replyCountState)==null?void 0:J.replyButtonAccessibilityText})}}}});
_.D5.Object.defineProperties(Xn,{template:{configurable:!0,enumerable:!0,get:function(){return pwy()}}});
Xn.prototype.onTap=Xn.prototype.onTap;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Xn.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Xn.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dv),_.q("design:type",Object)],Xn.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Xn.prototype,"data",void 0);
_.G([_.y({selectorArgs:["data.replyCountEntityKey"],selector:function(H,U){return _.rH(H.entities,"replyCountEntity",U)}}),
_.q("design:type",Object)],Xn.prototype,"replyCountState",void 0);_.G([_.a("data","replyCountState"),_.q("design:type",Object),_.q("design:paramtypes",[])],Xn.prototype,"buttonViewModel",null);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],Xn.prototype,"onTap",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],Xn);_.e(Xn,"yt-live-chat-reply-button-view-model",function(){return pwy()},{mode:0});var LCz;var RJy;var i8=function(){var H=_.B.apply(this,arguments)||this;H.ariaLabel="";return H};
_.R(i8,_.B);
i8.prototype.dataChanged=function(){for(var H=(0,_.ek)(_.c4(this.hostElement).querySelector("#image"));H.firstChild;)H.removeChild(H.firstChild);if(this.data)if(this.data.icon){var U=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(U.polymerController.icon="yt-sys-icons:shield_empty",U.polymerController.defaultToFilled=!0):U.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();H.appendChild(U)}else if(this.data.customThumbnail){U=document.createElement("img");
var A=_.Tlt(this.data.customThumbnail.thumbnails,16);A?(U.src=A,H.appendChild(U),U.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Na(new _.bD("Could not compute URL for thumbnail",this.data.customThumbnail))}};
i8.prototype.identity=function(H){return H};
i8.prototype.computeType=function(H){return yD(H||void 0)};
i8.prototype.dataChanged=i8.prototype.dataChanged;_.G([_.y(),_.q("design:type",Object)],i8.prototype,"data",void 0);_.G([_.y({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.q("design:type",Object)],i8.prototype,"ariaLabel",void 0);_.G([_.y({computed:"computeType(data)",reflectToAttribute:!0}),_.q("design:type",String)],i8.prototype,"type",void 0);
_.G([_.y({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.q("design:type",String)],i8.prototype,"sharedTooltipText",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.S("enable_new_shield_moderator_badge")}}),
_.q("design:type",Boolean)],i8.prototype,"enableNewModeratorBadge",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],i8.prototype,"dataChanged",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],i8);
_.e(i8,"yt-live-chat-author-badge-renderer",function(){if(RJy===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;LCz===void 0&&(LCz=document.createElement("template"));var M=LCz;A.call(U,M.content.cloneNode(!0),H.content.firstChild);RJy=H}H=RJy;return H},{mode:0});var EEr;var mOk;var b8=function(){return _.B.apply(this,arguments)||this};
_.R(b8,_.B);_.X=b8.prototype;_.X.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"}}}}};
_.X.computeBadgesInsideChip=function(H){return H?H.filter(function(U){return yD(U.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.X.computeBadgesOutsideChip=function(H){return this.prependChatBadges||!H?[]:H.filter(function(U){U=yD(U.liveChatAuthorBadgeRenderer);return U!=="verified"&&U!=="owner"})};
_.X.computeBadgesBeforeChip=function(H){return this.prependChatBadges&&H?H.filter(function(U){U=yD(U.liveChatAuthorBadgeRenderer);return U!=="verified"&&U!=="owner"}):[]};
_.X.computeIsHighlighted=function(H,U){var A=!!rZE(H,"owner"),M=!!rZE(H,"verified");H=!!rZE(H,"moderator");return(A||M&&!H)&&!U};
_.X.computeAuthorType=function(H){return Bcc(H)};
_.X.computeAuthorClass=function(H,U){return U?(H?H+" ":"")+"single-line":H};
_.X.onSeedColorChanged=function(){_.S("live_chat_author_name_color_usernames")||_.S("live_chat_seed_color_usernames")||_.S("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):_.S("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
b8.prototype.onSeedColorChanged=b8.prototype.onSeedColorChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],b8.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],b8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],b8.prototype,"authorName",void 0);_.G([_.y(),_.q("design:type",Array)],b8.prototype,"authorBadges",void 0);
_.G([_.y({computed:"computeAuthorType(authorBadges)"}),_.q("design:type",String)],b8.prototype,"authorType",void 0);_.G([_.y({computed:"computeAuthorClass(authorType, singleLine)"}),_.q("design:type",String)],b8.prototype,"authorClass",void 0);_.G([_.y({computed:"computeBadgesInsideChip(authorBadges)"}),_.q("design:type",Array)],b8.prototype,"badgesInsideChip",void 0);_.G([_.y({computed:"computeBadgesOutsideChip(authorBadges)"}),_.q("design:type",Array)],b8.prototype,"badgesOutsideChip",void 0);
_.G([_.y({computed:"computeBadgesBeforeChip(authorBadges)"}),_.q("design:type",Array)],b8.prototype,"badgesBeforeChip",void 0);_.G([_.y({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.q("design:type",Boolean)],b8.prototype,"isHighlighted",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.S("enable_new_shield_moderator_badge")}}),
_.q("design:type",Boolean)],b8.prototype,"enableNewModeratorTextColor",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],b8.prototype,"singleLine",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],b8.prototype,"disableHighlighting",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],b8.prototype,"dashboardMoneyFeed",void 0);_.G([_.y({value:_.S("live_chat_prepend_badges"),reflectToAttribute:!0}),_.q("design:type",Boolean)],b8.prototype,"prependChatBadges",void 0);
_.G([_.y(),_.q("design:type",String)],b8.prototype,"authorNameColor",void 0);_.G([_.hG("#author-name"),_.q("design:type",HTMLDivElement)],b8.prototype,"username",void 0);_.G([_.Ya("authorNameColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],b8.prototype,"onSeedColorChanged",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],b8);
_.e(b8,"yt-live-chat-author-chip",function(){if(mOk===void 0){var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;EEr===void 0&&(EEr=document.createElement("template"));var M=EEr;A.call(U,M.content.cloneNode(!0),H.content.firstChild);mOk=H}H=mOk;return H},{mode:0});var gEz;var aVg;var d6=function(){var H=_.B.apply(this,arguments)||this;H.debounceCommand=_.Mb(function(U){H.ytComponentBehavior.resolveCommand(U)},1500);
return H};
_.R(d6,_.B);d6.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var H=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",U,A,M=this.isHearted?(U=this.data)==null?void 0:U.unheartCommand:(A=this.data)==null?void 0:A.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Wl("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:H}));(H=_.ij(M))&&this.debounceCommand(H)}};
_.D5.Object.defineProperties(d6.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var H,U;if(!((H=this.data)==null?0:(U=H.creatorThumbnail)==null?0:U.sources))return{};H={thumbnails:[]};U={};U.url=this.data.creatorThumbnail.sources[0].url;H.thumbnails.push(U);return H}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((U=this.engagementState)==null?void 0:U.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((U=this.engagementState)==null?void 0:U.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((U=this.engagementState)==null?void 0:U.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((A=this.engagementState)==null?void 0:A.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}}});
d6.prototype.onTap=d6.prototype.onTap;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],d6.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dv),_.q("design:type",Object)],d6.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],d6.prototype,"data",void 0);
_.G([_.y({selectorArgs:["data.engagementStateKey"],selector:POh}),_.q("design:type",Object)],d6.prototype,"engagementState",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],d6.prototype,"thumbnailDetails",null);_.G([_.a("data","engagementState"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],d6.prototype,"isHearted",null);_.G([_.a("data","engagementState"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],d6.prototype,"isEditable",null);
_.G([_.a("data","engagementState"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],d6.prototype,"showCreatorView",null);_.G([_.a("data","engagementState"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],d6.prototype,"showButton",null);_.G([_.a("data","isHearted"),_.q("design:type",String),_.q("design:paramtypes",[])],d6.prototype,"label",null);_.G([_.a("data","isHearted"),_.q("design:type",Object),_.q("design:paramtypes",[])],d6.prototype,"heartHoverText",null);
_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],d6.prototype,"onTap",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],d6);
_.e(d6,"yt-live-chat-creator-heart-view-model",function(){if(aVg===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;gEz===void 0&&(gEz=document.createElement("template"));var M=gEz;A.call(U,M.content.cloneNode(!0),H.content.firstChild);aVg=H}H=aVg;return H},{mode:0});var xOH=function(){this.internalMap={}};
_.X=xOH.prototype;_.X.contains=function(H){return Object.prototype.hasOwnProperty.call(this.internalMap,H)};
_.X.get=function(H){if(this.contains(H))return this.internalMap[H]};
_.X.set=function(H,U){this.internalMap[H]=U};
_.X.getKeys=function(){return Object.keys(this.internalMap)};
_.X.remove=function(H){delete this.internalMap[H]};var O8=function(){this.mappings=new xOH;this.errorCallbacks=new Set};
O8.prototype.getModuleId=function(H){return H.serviceId.getModuleId()};
O8.prototype.get=function(H){a:{var U=this.mappings.get(H.toString());switch(U.type){case "mapping":H=U.value;break a;case "factory":U=U.value();this.mappings.set(H.toString(),{type:"mapping",value:U});H=U;break a;default:H=_.U$(U)}}return H};
O8.prototype.registerService=function(H,U){this.mappings.set(H.toString(),{type:"mapping",value:U});return H};
O8.prototype.onLoadError=function(H){var U=this;this.errorCallbacks.add(H);return function(){U.errorCallbacks.delete(H)}};
new O8;var zJ2=function(){};
_.X=zJ2.prototype;
_.X.JSC$14478_getRequest=function(H,U,A){U=U===void 0?{}:U;A=A===void 0?v2y:A;var M=U;if(this.isNavigationCommand()){var W,w=(W=_.p(H==null?void 0:H.commandMetadata,_.Y2))==null?void 0:W.url;M=_.sU(H.clickTrackingParams,!0,!1,w,this.JSC$14478_getClientScreen(M))}else M=_.sU(H.clickTrackingParams,!1,this.includeCsn);M={context:M};if(W=this.getExtension(H))return this.JSC$14478_buildRequest(M,W,U),W=this.getApiUrl(H),w=Object.assign({},{command:H},this.getRequestConfig(H,U)),M={input:W,requestShell:FK(W),
innerTubeRequest:M,config:w},M.config.authStrategy?M.config.authStrategy.identity=A:M.config.authStrategy={identity:A},(H=this.JSC$14478_getRequestKey(H,U))&&!M.config.requestKey&&(M.config.requestKey=H),M;H=new _.bD("Error: Failed to create Request from Command.",H);_.sD(H)};
_.X.getApiUrl=function(H){var U=_.RE(this.getApiPaths(H)),A;(H=(A=_.p(H.commandMetadata,_.Y2))==null?void 0:A.apiUrl)&&(U=H);return RUt(LoV(U))};
_.X.isNavigationCommand=function(){return!1};
_.X.JSC$14478_getClientScreen=function(){};
_.X.JSC$14478_getRequestKey=function(){};
_.X.getRequestConfig=function(){};
_.D5.Object.defineProperties(zJ2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var u8=function(){};
_.R(u8,zJ2);u8.prototype.JSC$14485_getStoreKey=function(){};
u8.prototype.JSC$14478_getRequestKey=function(H,U){U=U===void 0?{}:U;return this.JSC$14485_getStoreKey(H,U)};var Z_=function(){};
_.R(Z_,u8);Z_.prototype.JSC$14478_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:FK("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Z_.prototype.getApiPaths=function(){return[]};
Z_.prototype.getExtension=function(){};
Z_.prototype.JSC$14478_buildRequest=function(){};var Cpg={},t0w=(Cpg.GET_DATASYNC_IDS=iZ(Z_),Cpg);var c5r,y5k,ByH,YVw,lVz,fa,$Or,r5n,DOp,eJB;c5r="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store manifest player_preload shorts_prefetch".split(" ");y5k=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];
_.ZW=function(H,U,A,M,W,w,d,O,f){this.endpointMap=H;this.networkManager=U;this.authService=A;this.responseProcessorMap=M;this.innertubeResponseStore=W;this.contextProcessors=w;this.asyncContextProcessors=d;this.localInnertubeRouter=O;this.requestSequencer=f;this.inflightRequests=new Map;H.signalEndpointMap||(H.signalEndpointMap={});H.signalEndpointMap=Object.assign({},t0w,H.signalEndpointMap)};
ByH=function(H,U,A,M,W,w,d,O,f){if(_.ZW.instance!==void 0){if(M=_.ZW.instance,H=[H!==M.endpointMap,U!==M.networkManager,A!==M.authService,W!==M.innertubeResponseStore,w!==M.contextProcessors,d!==M.asyncContextProcessors,O!==M.localInnertubeRouter],H.some(function(J){return J}))throw new _.bD("InnerTubeTransportService is already initialized",H);
}else _.ZW.instance=new _.ZW(H,U,A,M,W,w,d,O,f)};
_.Js=function(H,U,A){var M=M===void 0?v2y:M;var W=r5n(H,U);return W?new _.IQ(function(w,d){var O,f,J,F,P;return _.u(function(n){switch(n.nextAddress){case 1:return n.yield(W,2);case 2:O=n.yieldResult;f=O.JSC$14478_getRequest(U,A,M);if(!f){d(new _.bD("Error: Failed to build request for command.",U));n.jumpTo(0);break}Zt(f.input);F=((J=f.requestShell)==null?void 0:J.mode)==="cors"?"cors":void 0;if(H.authService.syncHeaders){P=eJB(f.config,F);n.jumpTo(4);break}return n.yield(DOp(f.config,F),5);case 5:P=
n.yieldResult;case 4:w($Or(H,f,P)),_.DO(n)}})}):_.H$(new _.bD("Error: No request builder found for command.",U))};
YVw=function(H,U,A,M){var W=W===void 0?v2y:W;var w,d,O,f,J,F,P,n,N,L,m,z,c,C,v,Y,D,h;return _.u(function(T){switch(T.nextAddress){case 1:w=JCE(U,H.endpointMap);if(!w)throw new _.bD("Error: No streaming request builder found for command",U);d=w.JSC$14478_getRequest(U,A,W);if(!d)throw new _.bD("Failed to build YtRequest for streaming Command",U);if((O=H.localInnertubeRouter)==null||!O.shouldPreferLocalResponse(d.input,d.innerTubeRequest)){T.jumpTo(2);break}return T.yield(H.localInnertubeRouter.localInnertubeResponse(d.input,
d.innerTubeRequest),3);case 3:return f=T.yieldResult,J={},f.playerResponse&&(fa(H,f.playerResponse,d),J.player=f.playerResponse,(F=M)==null||F(J,f)),f.watchNextResponse&&(fa(H,f.watchNextResponse,d),J.content=f.watchNextResponse,(P=M)==null||P(J,f)),T.return(J);case 2:return T.yield(lVz(H,d),4);case 4:N=((n=d.requestShell)==null?void 0:n.mode)==="cors"?"cors":void 0;if(H.authService.syncHeaders){L=eJB(d.config,N);T.jumpTo(5);break}return T.yield(DOp(d.config,N),6);case 6:L=T.yieldResult;case 5:return c=
(z=(m=d.requestShell)==null?void 0:m.headers)!=null?z:{},d.requestShell=Object.assign({},d.requestShell,{headers:Object.assign({},c,L)}),C=Object.assign({},d.requestShell),v=JSON.stringify(d.innerTubeRequest),d.requestShell.method==="POST"&&(C=Object.assign({},C,{body:v})),Y=function(WF,dK){fa(H,dK.playerResponse||dK.watchNextResponse||dK.reelItemWatchResponse||dK.reelWatchSequenceResponse,d);M==null||M(WF,dK);dK.playerResponse&&VbB()},D={},T.yield(GAw(H.networkManager,d.input,C,Y),7);
case 7:return D=T.yieldResult,((h=d.config)==null?0:h.responseTick)&&_.ba(d.config.responseTick),T.return(D)}})};
_.oz=function(H,U,A,M,W){W=W===void 0?{authStrategy:{identity:v2y}}:W;var w=w===void 0?!0:w;var d=function(){};
d=YCM(l40(A));U.context||(U.context=_.sU(M,w));return new _.IQ(function(O){var f,J,F,P,n;return _.u(function(N){if(N.nextAddress==1)return f=LoV(A),J=_.o2(f),H.authService.syncHeaders?(F=eJB(W,J),N.jumpTo(2)):N.yield(DOp(W,J),3);N.nextAddress!=2&&(F=N.yieldResult);P=RUt(LoV(A));n={input:P,requestShell:FK(P),innerTubeRequest:U,config:W};O($Or(H,n,F,d));_.DO(N)})})};
lVz=function(H,U){var A,M,W,w,d,O,f,J,F,P,n;return _.u(function(N){switch(N.nextAddress){case 1:if(!((A=U)==null?0:(M=A.innerTubeRequest)==null?0:M.context)){N.jumpTo(0);break}W=U.innerTubeRequest.context;if(!(H.asyncContextProcessors&&H.asyncContextProcessors.length>0)){N.jumpTo(3);break}w=[];d=_.b(H.asyncContextProcessors);for(O=d.next();!O.done;O=d.next())f=O.value,J=f.processContext(U),J.wrappedPromise_&&w.push(J.wrappedPromise_);if(!(w.length>0)){N.jumpTo(3);break}return N.yield(Promise.all(w),
3);case 3:F=_.b(H.contextProcessors||[]),P=F.next();case 6:if(P.done){N.jumpTo(0);break}n=P.value;return N.yield(n.processContext(W),7);case 7:P=F.next(),N.jumpTo(6)}})};
fa=function(H,U,A){var M;if(U&&!(U==null?0:(M=U.sequenceMetaData)==null?0:M.skipProcessing)&&H.responseProcessorMap){M=_.b(c5r);for(var W=M.next();!W.done;W=M.next())W=W.value,H.responseProcessorMap[W]&&H.responseProcessorMap[W].handleResponse(U,A)}};
$Or=function(H,U,A,M){M=M===void 0?function(){}:M;
var W,w,d,O,f,J,F,P,n,N,L,m,z,c,C,v,Y,D,h,T,WF,dK,SN,o_,PF,BF,kc,G8,Pr,Z3;return _.u(function(Yc){switch(Yc.nextAddress){case 1:d=(W=U.config)==null?void 0:(w=W.storeStrategy)==null?void 0:w.storeKey;if(!(d&&H.innertubeResponseStore&&H.innertubeResponseStore.has(d))||((O=U.config)==null?0:(f=O.storeStrategy)==null?0:f.disableCache)){Yc.jumpTo(2);break}return Yc.yield(H.innertubeResponseStore.get(d),3);case 3:J=Yc.yieldResult;if(!J||J.isExpired()){Yc.jumpTo(2);break}F=_.xj(J);if(!_.S("web_process_response_store_responses")||
J.isProcessed()){Yc.jumpTo(5);break}fa(H,F,U);return Yc.yield(H.innertubeResponseStore.markAsProcessed(d),5);case 5:return Yc.return(Promise.resolve(F));case 2:return Yc.yield(lVz(H,U),7);case 7:if((P=H.localInnertubeRouter)==null||!P.shouldPreferLocalResponse(U.input,U.innerTubeRequest)){Yc.jumpTo(8);break}return Yc.yield(H.localInnertubeRouter.localInnertubeResponse(U.input,U.innerTubeRequest),9);case 9:return n=Yc.yieldResult,fa(H,n,U),Yc.return(n);case 8:return(m=(L=U.config)==null?void 0:L.requestKey)&&
H.inflightRequests.has(m)?N=H.inflightRequests.get(m):(z=JSON.stringify(U.innerTubeRequest),v=(C=(c=U.requestShell)==null?void 0:c.headers)!=null?C:{},U.requestShell=Object.assign({},U.requestShell,{headers:Object.assign({},v,A)}),Y=Object.assign({},U.requestShell),U.requestShell.method==="POST"&&(Y=Object.assign({},Y,{body:z})),((D=U.config)==null?0:D.requestTick)&&_.ba(U.config.requestTick),h=function(){return H.networkManager.fetch(U.input,Y,U.config)},N=H.requestSequencer?qVr(H.requestSequencer,
U,h):h(),m&&H.inflightRequests.set(m,N)),Yc.yield(N,10);
case 10:(T=Yc.yieldResult)&&_.S("web_streaming_player")&&Array.isArray(T)&&(T=T[0].playerResponse);if(T&&"error"in T&&((WF=T)==null?0:(dK=WF.error)==null?0:dK.details))for(SN=T.error.details,o_=_.b(SN),PF=o_.next();!PF.done;PF=o_.next())BF=PF.value,(kc=BF["@type"])&&y5k.indexOf(kc)>-1&&(delete BF["@type"],T=BF);m&&H.inflightRequests.has(m)&&H.inflightRequests.delete(m);((G8=U.config)==null?0:G8.responseTick)&&_.ba(U.config.responseTick);if(T||(Pr=H.localInnertubeRouter)==null||!Pr.canProvideFallbackResponse(U.input,
U.innerTubeRequest)){Yc.jumpTo(11);break}return Yc.yield(H.localInnertubeRouter.localFallbackInnertubeResponse(U.input,U.innerTubeRequest),12);case 12:T=Yc.yieldResult;case 11:return fa(H,T,U),((Z3=U.config)==null?0:Z3.processorTick)&&_.ba(U.config.processorTick),M(),Yc.return(T||void 0)}})};
_.fy=function(H,U){return fsM(U,H.endpointMap)};
r5n=function(H,U){H=Kpt(U,H.endpointMap);if(H!==void 0)return Promise.resolve(H)};
DOp=function(H,U){var A,M,W,w;return _.u(function(d){if(d.nextAddress==1){W=(A=H)==null?void 0:(M=A.authStrategy)==null?void 0:M.sessionIndex;var O=d.yield;var f=_.DH(JG7({sessionIndex:W}));return O.call(d,f,2)}w=d.yieldResult;return d.return(Promise.resolve(Object.assign({},oeh(U),w)))})};
eJB=function(H,U){var A;H=H==null?void 0:(A=H.authStrategy)==null?void 0:A.sessionIndex;A=JG7({sessionIndex:H});return Object.assign({},oeh(U),A)};var hJk,kAm,vEB,Tyz,j8K,IVz,HsB,UqH,oJ,Avh,MJp,V0w,WDy;hJk=0;kAm=/tone[1-5]/;vEB=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");Tyz="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
j8K=Number.MAX_SAFE_INTEGER;IVz=RegExp("\ufe0f","g");_.Jb=function(H){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;H&&_.Q8n(this,H)};
_.Q8n=function(H,U){try{_.VW(U,{context:H,onSuccess:function(M,W){Array.isArray(W)?H.load(W):(M=new _.bD("Emoji manager JSON response was not an array!",{response:W}),_.sD(M))},
onError:function(M){M=new _.bD("Failed to retrieve emoji manager initial JSON data!",{url:U,statusCode:_.Ta(M).toString()});_.Na(M)}})}catch(M){var A=new _.bD("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:U});
_.Na(A)}};
_.Jb.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Jb.prototype.load=function(H,U){if(U)if(H.length)H=H.concat(U.emojis);else{this.emojis=U.emojis;this.emojiMap=U.emojiMap;this.emojiShortcutMap=U.emojiShortcutMap;this.emojiShortcutCharMap=V0w(U);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=U.emojiRegex;return}this.emojis=[].concat(_.vI(new Set(this.emojis.concat(H))));this.hasInitializedShortcutCharMap=!1;H=Array(this.emojis.length);for(U=0;U<this.emojis.length;U++){var A=this.emojis[U];if(A.emojiId){this.emojiMap[A.emojiId]=A;this.emojiMap[A.emojiId].index=
U;for(var M=0;A.shortcuts&&M<A.shortcuts.length;M++)this.emojiShortcutMap[A.shortcuts[M].toLocaleLowerCase()]=A;H[U]=A.isCustomEmoji&&A.shortcuts?A.shortcuts[0]:A.emojiId}}H.sort(function(W,w){return w.length-W.length});
if(H.length)try{this.emojiRegex=new RegExp(H.join("|").replace("*","\\*"),"gi")}catch(W){this.emojiRegex=/$./}else this.emojiRegex=/$./};
HsB=function(H,U){U=_.b(U);for(var A=U.next();!A.done;A=U.next()){var M=A.value;if(M.emojiId&&H.emojiMap[M.emojiId]){A=Object.assign({},H.emojiMap[M.emojiId],M);H.emojiMap[M.emojiId]=A;var W=void 0;A.index&&((W=H.emojis[A.index])==null?void 0:W.emojiId)===M.emojiId&&(H.emojis[A.index]=A);M=void 0;if((M=A.shortcuts)==null?0:M.length)for(H.hasInitializedShortcutCharMap=!1,M=_.b(A.shortcuts),W=M.next();!W.done;W=M.next())H.emojiShortcutMap[W.value.toLocaleLowerCase()]=A}}};
UqH=function(H){var U,A;_.u(function(M){if(M.nextAddress==1)return M.yield(_.Wd.getInstance(),2);if(M.nextAddress!=3)return(U=M.yieldResult)?M.yield(U.get("ytlc-emoji-pref"),3):M.return();(A=M.yieldResult)&&HsB(H,Object.keys(A).map(function(W){return{emojiId:W,stickyPrefId:A[W]}}).filter(function(W){return!!W.emojiId&&!!W.stickyPrefId}));
_.DO(M)})};
_.Ka=function(H,U,A){return(H=H.emojiMap[U])&&(!H.isLocked||A!==void 0&&A)?H:void 0};
oJ=function(H,U,A){A=_.Ka(H,U,A===void 0?!1:A);var M=U.match("\u200d");A&&H.skinTone!==0&&(H=(M==null?void 0:M.length)===1?_.Ka(H,U.replace("\u200d",vEB[H.skinTone]+"\u200d")):_.Ka(H,U+vEB[H.skinTone]))&&(A=H);return A};
Avh=function(H,U){var A=H.emojiMap[U];return(A==null?0:A.stickyPrefId)?H.emojiMap[A.stickyPrefId]:oJ(H,U)};
_.Cl=function(H,U){H=H.emojiShortcutMap[U.toLocaleLowerCase()];return!H||H.isLocked?null:H};
MJp=function(H,U,A){return V0w(H,A===void 0?!1:A)[U]||{}};
V0w=function(H,U){U=U===void 0?!1:U;if(!H.hasInitializedShortcutCharMap){H.hasInitializedShortcutCharMap=!0;for(var A=0;A<H.emojis.length;A++){var M=H.emojis[A];if(!(M.isLocked||U&&M.isCustomEmoji&&M.emojiId&&!H.pickerCustomEmojiIds.includes(M.emojiId)))for(var W=0;M.shortcuts&&W<M.shortcuts.length;W++){var w=M.shortcuts[W];w.startsWith(":_")&&M.isCustomEmoji&&(H.emojiShortcutCharMap[":_"]==null&&(H.emojiShortcutCharMap[":_"]=Object.create(null)),H.emojiShortcutCharMap[":_"][w]=M);if(!(w.length<3||
!M.isCustomEmoji&&kAm.test(w))){var d=w.substr(0,3).toLocaleLowerCase();H.emojiShortcutCharMap[d]==null&&(H.emojiShortcutCharMap[d]=Object.create(null));H.emojiShortcutCharMap[d][w]=M}}}}return H.emojiShortcutCharMap};
_.Jb.prototype.createEmoji=function(H,U){U=U===void 0?!0:U;var A=document.createElement("img");H.isCustomEmoji||A.classList.add("small-emoji");A.classList.add("emoji");A.classList.add("yt-formatted-string");A.src=H.image?_.Rv(H.image.thumbnails,this.emojiSize)||"":"";var M=void 0;H.image&&H.image.accessibility&&H.image.accessibility.accessibilityData&&(M=H.image.accessibility.accessibilityData.label);A.alt=M?M:(H.isCustomEmoji&&H.shortcuts?H.shortcuts[0]:H.emojiId)||"";H.isCustomEmoji&&(A.dataset.emojiId=
H.emojiId);_.Bu&&(A.setAttribute("contenteditable","false"),A.setAttribute("unselectable","on"));U&&(H.shortcuts&&H.shortcuts.length&&A.setAttribute("shared-tooltip-text",H.shortcuts[0]),A.id="emoji-"+hJk++);return A};
_.Jb.prototype.createDocumentFragment=function(H,U,A,M){U=U===void 0?!1:U;A=A===void 0?!0:A;M=M===void 0?!1:M;H=H.replace(IVz,"");for(var W=document.createDocumentFragment(),w=0,d,O=0;(d=this.emojiRegex.exec(H))!=null;){var f=_.Ka(this,d[0])||_.Cl(this,d[0]);!f||f.isCustomEmoji&&!U||(f=this.createEmoji(f,A),w!==d.index&&W.appendChild(document.createTextNode(H.substring(w,d.index))),W.appendChild(f),w=d.index+d[0].length,O++)}if(!M||O)return W.appendChild(document.createTextNode(H.substr(w))),W};
WDy=function(H,U,A){var M,W,w,d,O,f,J,F,P;return _.u(function(n){if(n.nextAddress==1){if(!U.emojiId||!H.emojiMap[U.emojiId])return n.return();M=Object.assign({},H.emojiMap[U.emojiId],{stickyPrefId:A});H.emojiMap[U.emojiId]=M;U.index&&((W=H.emojis[U.index])==null?void 0:W.emojiId)===U.emojiId&&(H.emojis[U.index]=M);if((w=U.shortcuts)==null?0:w.length)for(H.hasInitializedShortcutCharMap=!1,d=_.b(U.shortcuts),O=d.next();!O.done;O=d.next())f=O.value,H.emojiShortcutMap[f.toLocaleLowerCase()]=M;return n.yield(_.Wd.getInstance(),
2)}if(n.nextAddress!=4)return(J=n.yieldResult)?n.yield(J.get("ytlc-emoji-pref"),4):n.jumpTo(0);P=(F=n.yieldResult)!=null?F:{};P[U.emojiId]=A;return n.yield(J.set("ytlc-emoji-pref",P,j8K),0)})};
_.Fn=new _.Jb;var isr;_.PN={};
isr={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.S("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:_.S("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 nq(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 H=_.c4(this.hostElement||this).querySelector("#inline-action-button-container");H&&H.setAttribute("aria-hidden","true");this.menuButton=_.c4(this.hostElement).querySelector("#menu-button")},
attached:function(){var H=this.menuButton;H&&(H.addEventListener("focusin",_.lN(this,this.onMenuButtonFocus_)),H.addEventListener("focusout",_.lN(this,this.onMenuButtonBlur_)))},
detached:function(){var H=this.menuButton;H&&(H.removeEventListener("focusin",_.lN(this,this.onMenuButtonFocus_)),H.removeEventListener("focusout",_.lN(this,this.onMenuButtonBlur_)))},
identity:_.Ch,truthy:function(H){return!!H},
computeTimestampString:function(H){return H?H.timestampText?this.getSimpleString(H.timestampText):this.TIME_FORMATTER.format(new Date(H.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(H){return H},
computeMenuVisible_:function(H,U){return H||U},
computeHasInlineActionButtons:function(H){if(!H)return!1;var U,A;return!((U=H.inlineActionButtons)==null||!U.length)||!((A=H.additionalInlineActionButtons)==null||!A.length)},
createDocumentFragmentFromString:function(H){var U=_.Fn.createDocumentFragment.bind(_.Fn),A;if((A=this.participantsManager)==null||!A.viewerRegex)return U(H);A=document.createDocumentFragment();for(var M=0,W;(W=this.participantsManager.viewerRegex.exec(H))!=null;){if(W.index>0){var w=":"+W[0]+":";if((_.Ka(_.Fn,w)||_.Cl(_.Fn,w))&&H.indexOf(w)===W.index-1)continue}A.appendChild(U(H.substring(M,W.index)));M=document.createElement("span");M.appendChild(U(W[0]));M.classList.add("mention");A.appendChild(M);
M=W.index+W[0].length}A.appendChild(U(H.substring(M)));return A},
createDocumentFragment:function(H){var U=document.createDocumentFragment();if(H.simpleText)return U.appendChild(this.createDocumentFragmentFromString(H.simpleText)),U;if(!H.runs)return U;for(var A=0;A<H.runs.length;A++){var M=H.runs[A];if(M.emoji)U.appendChild(_.Fn.createEmoji(M.emoji));else if(M.text)if(M.navigationEndpoint){var W=document.createElement("a");W.classList.add("yt-simple-endpoint");xG0(W,M.navigationEndpoint);_.c4(W).appendChild(this.createDocumentFragmentFromString(M.text));U.appendChild(W)}else U.appendChild(this.createDocumentFragmentFromString(M.text))}return U},
hasModerationOverlayVisible:function(){var H;return((H=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:H.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(H){H.composedPath().some(function(U){return(U=U instanceof Element?U:null)?U.tagName&&(U.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||U.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.S("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(H)},
colorFromDecimal:function(H){return fbM(H)},
markAsDeleted:function(H,U){this.set("data.deletedStateMessage",H);this.set("data.showOriginalContentMessage",U)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(H){if(this.data.contextMenuEndpoint){var U=_.lx().resolve(_.jp),A=this.data.contextMenuEndpoint,M;(M=_.ZW.instance)&&_.fy(M,A)?(U=wDp(U,A),M=_.oz(M,{},U)):M=_.XDp(U,A);M.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);H&&H.stopPropagation()}},
handleGetContextMenuResponse_:function(H){var U=_.ZW.instance;U&&_.fy(U,{liveChatEndpoint:{}})||(H=H.response);H.liveChatItemContextMenuSupportedRenderers&&H.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(H.liveChatItemContextMenuSupportedRenderers.menuRenderer);H.actions&&_.yr(this.hostElement,"yt-live-chat-actions",[H.actions])},
handleGetContextMenuError:function(H){if(H instanceof Error||H instanceof Object||H instanceof String)var U=H;_.sD(new _.bD("Error encountered calling GetLiveChatItemContextMenu",U))},
showContextMenu_:function(H){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:H}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.cg(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.cg(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.PN.YtLiveChatItemBehavior=[isr,_.uK.YtComponentBehavior,_.e4.YtOpenPopupBehavior];_.s8=function(){};var bsk;var dqk;var OsH;var uJm;var na=function(){var H=_.B.apply(this,arguments)||this;H.active=!1;H.identity=_.Ch;return H};
_.R(na,_.B);na.prototype.dataChanged=function(){this.active=!1};
na.prototype.onClick=function(){_.cg(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
na.prototype.dataChanged=na.prototype.dataChanged;_.G([_.y(),_.q("design:type",Object)],na.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],na.prototype,"active",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],na.prototype,"dataChanged",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],na);
_.e(na,"yt-live-chat-text-input-field-suggestion",function(){if(uJm===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;OsH===void 0&&(OsH=document.createElement("template"));var M=OsH;A.call(U,M.content.cloneNode(!0),H.content.firstChild);uJm=H}H=uJm;return H},{mode:0});_.NI=function(H,U,A){return CustomEvent.call(this,H,{detail:{value:U,path:A}})||this};
_.R(_.NI,CustomEvent);_.Se=function(){var H=_.B.apply(this,arguments)||this;H.viewerName=null;H.actionMap={"yt-live-chat-actions":"onChatMessage_"};H.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];H.PARTICIPANT_TIME_USEC_=3E8;return H};
_.R(_.Se,_.B);_.X=_.Se.prototype;_.X.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.X.addParticipant=function(H){var U=_.ytE(this.participants,H,function(M,W){M=M[Object.keys(M)[0]];W=W[Object.keys(W)[0]];M=String(_.Sp(M.authorName)).toLowerCase();W=String(_.Sp(W.authorName)).toLowerCase();return M<W?-1:M==W?0:1}.bind(this));
if(U>=0){var A=this.participants[U];A[Object.keys(A)[0]].timestampUsec&&this.splice("participants",U,1,H)}else this.splice("participants",-U-1,0,H);H=H[Object.keys(H)[0]];U=_.Sp(H.authorName).toLocaleLowerCase();A=U.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(A)||(this.allParticipantsCharMap_[A]={});this.allParticipantsCharMap_[A][U]=H};
_.X.getAuthorsFromPrefix=function(H){return this.allParticipantsCharMap_.hasOwnProperty(H)?this.allParticipantsCharMap_[H]:null};
_.X.computeViewerRegex_=function(H){if(!H)return null;H=H.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var U=H.indexOf("@")===0&&_.S("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(U+H.replace(/ /g,"\\s*")+"|^"+H.replace(/ /g,"\\s*")+"$|^"+H.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+H.replace(/ /g,"\\s*")+"$|(?<=\\s)"+H.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.X.checkForStaleParticipants_=function(){var H=this;this.trimOldParticipants_();this.asyncHandle_&&h_7(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.oS(function(){H.checkForStaleParticipants_()},3E4))};
_.X.onChatMessage_=function(H){var U=this,A=Date.now()*1E3;H.forEach(function(M){if(M=_.p(M,Yxm)){M=M.item;var W=Object.keys(M)[0];U.SUPPORTED_ITEM_TYPES_.indexOf(W)!=-1&&M[W].timestampUsec>=A-U.PARTICIPANT_TIME_USEC_&&U.addParticipant(M)}},this);
this.checkForStaleParticipants_()};
_.X.trimOldParticipants_=function(){for(var H=Date.now()*1E3,U=this.participants.length-1;U>=0;U--){var A=this.participants[U];A=A[Object.keys(A)[0]];A.timestampUsec&&A.timestampUsec<H-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",U,1)}};
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],_.Se.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],_.Se.prototype,"viewerName",void 0);_.G([_.y({computed:"computeViewerRegex_(viewerName)"}),_.q("design:type",Object)],_.Se.prototype,"viewerRegex",void 0);_.G([_.y({value:function(){return[]},
notify:!0}),_.q("design:type",Array)],_.Se.prototype,"participants",void 0);_.G([_.b0({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Se);var Zsm=/.*([:@#].*?)$/,pa=/\u00a0/g,fKp=String.fromCharCode(160),Jvr={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"},La=function(){var H=_.B.apply(this,arguments)||this;H.disabled=!1;H.liveChatRichMessageInput=null;H.messageInput=null;H.isValidWithNoInputText=!1;H.suggestions=[];H.emojiManager=_.Fn;H.inputMethodEditorActive=
!1;H.suggestionIndex=-1;H.JSC$14536_lastSuggestionRange=null;return H};
_.R(La,_.B);_.X=La.prototype;_.X.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.X.attached=function(){_.va&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.X.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.X.dataChanged=function(){if(!this.ignoreColorMapping){var H=!1,U={},A;for(A in Jvr)this.data&&this.data.hasOwnProperty(A)&&(U[Jvr[A]]=this.colorFromDecimal(this.data[A]),H=!0);H&&_.Dt(this.hostElement,U)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.X.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.X.colorFromDecimal=function(H){H=Math.floor(Number(H));return"rgba("+[H>>16&255,H>>8&255,H&255,(H>>24&255)/255].join()+")"};
_.X.preventDrag=function(H){H.dataTransfer&&(H.dataTransfer.dropEffect="none");H.preventDefault()};
_.X.preventResize=function(H){H.returnValue=!1};
_.X.onInputChange=function(){var H=this.characterCount,U=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&U&&U.remove();if(!U&&this.characterCount>this.maxCharacterLimit){var A=window.getSelection();if(A){var M=A.getRangeAt(0);A.removeAllRanges();A.addRange(M)}}if(A=this.getCurrentRange())M=this.calculateTextBeforeRange(A),this.completeEmojisInRange(A,M,!0)||this.updateSuggestions(A,M);M=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(M);
_.cg(this.hostElement,"yt-live-chat-message-input-change",M);U&&this.characterCount===0&&U.remove();A&&A.commonAncestorContainer.parentElement.id==="input"&&A.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>H):A&&!A.collapsed&&A.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(H=this.input.childNodes.length-1;H>=0;H--)this.input.childNodes[H].nodeName==="BR"&&this.input.childNodes[H].remove()};
_.X.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.X.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var H=this.getCurrentRange();H&&H.commonAncestorContainer.parentElement.id==="input"&&H.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.X.mergeOverflowText=function(H){if(H){var U=document.createRange();U.selectNodeContents(H);U=U.extractContents();this.input.insertBefore(U,H)}};
_.X.checkRangeAtEndOfInput=function(){var H=this.getCurrentRange();if(H){var U=_.c4(this.hostElement).querySelector("#overflow-text"),A=document.createRange();U&&U.previousSibling?U.previousSibling instanceof HTMLImageElement?A.selectNode(U.previousSibling):A.selectNodeContents(U.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?A.selectNode(this.input.lastChild):A.selectNodeContents(this.input.lastChild));A.collapse(!1);return A.isPointInRange(H.startContainer,
H.startOffset)}return!1};
_.X.handleOverflowText=function(H){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var U=_.c4(this.hostElement).querySelector("#overflow-text"),A=this.getCurrentRange();this.input.normalize();H=this.checkRangeAtEndOfInput()&&H;this.mergeOverflowText(U);for(var M,W=0,w=0,d,O=this.input.childNodes,f=0;f<O.length;f++){var J=O[f];J instanceof Text?(w+=J.textContent.length,w>this.maxCharacterLimit&&(M=J,W=this.maxCharacterLimit+J.textContent.length-w)):J instanceof HTMLImageElement&&
(M=void 0,w=J.dataset.emojiId&&((M=this.data)==null?0:M.emojiCharacterCount)?w+this.data.emojiCharacterCount:w+J.alt.length,M=this.input,W=f);if(w>this.maxCharacterLimit&&M){d=document.createRange();d.collapse(!1);U?(w=this.input.lastChild.previousSibling,w instanceof Text?d.setEnd(this.input.lastChild.previousSibling,w.textContent.length):w instanceof HTMLImageElement&&d.setEnd(this.input,this.input.childNodes.length-1)):d.selectNodeContents(this.input);d.setStart(M,W);break}}d&&(M=!1,A&&(H=d.isPointInRange(A.startContainer,
A.startOffset-1)),U||(U=document.createElement("span"),U.id="overflow-text",U.textContent="",U.setAttribute("contenteditable","true"),_.c4(_.c4(this.hostElement).querySelector("#input")).appendChild(U),M=!0),U&&(A=d.extractContents(),U.insertBefore(A,U.firstChild),H&&U.firstChild&&(A=document.createRange(),M?A.setStartAfter(U.lastChild):A.setStartAfter(U.firstChild),A.collapse(!0),U=window.getSelection(),U.removeAllRanges(),U.addRange(A))))}};
_.X.checkForDuplicateSpans=function(){for(var H=0;H<this.input.childNodes.length;H++){var U=this.input.childNodes[H];if(U.nodeName==="SPAN"){var A=document.createRange();A.selectNodeContents(U);A=A.extractContents();this.input.insertBefore(A,U);U.remove()}}this.handleOverflowText(!0)};
_.X.getCurrentRange=function(){var H=window.getSelection();return H&&H.rangeCount?H.getRangeAt(0).cloneRange():null};
_.X.getInputRange=function(){var H=this.getCurrentRange();if(H){for(var U=H.commonAncestorContainer,A=!1,M=_.c4(this.hostElement).querySelector("#input");U;){if(U===M){A=!0;break}U=U.parentNode}A||(H=null)}H||(H=this.getRangeAtEnd());return H};
_.X.getRangeAtEnd=function(){var H=document.createRange(),U=_.c4(this.hostElement).querySelector("#input").lastChild;!U||U.nodeName!=="#text"&&U.nodeName!=="SPAN"?(H.selectNodeContents(_.c4(this.hostElement).querySelector("#input")),H.collapse(!1)):U.nodeName==="#text"?H.setStart(U,U.textContent.length):H.setStart(U,U.childNodes.length);return H};
_.X.getChatParticipantSuggestions=function(H,U,A,M){var W=_.S("live_chat_enable_handles_web_text_input_update");if(U)for(var w in U)if(w.indexOf(H)===0||W&&w.indexOf(A+H)===0){var d=U[w],O=_.Sp(d.authorName);M.push({suggestion:{author:!0,authorType:A,image:d.authorPhoto,alt:O,text:O}});if(M.length>=64)break}};
_.X.getSuggestions=function(H){var U=[],A=H.substring(0,3),M=MJp(_.Fn,A,!0);if(M)for(var W in M)if(W.toLocaleLowerCase().indexOf(H)===0){var w=M[W];if(w&&w.emojiId){if(w=Avh(_.Fn,w.emojiId)){var d=void 0,O=void 0,f=void 0,J=void 0,F=((d=w.image)==null?0:(O=d.accessibility)==null?0:(f=O.accessibilityData)==null?0:f.label)||w.isCustomEmoji?(J=w.shortcuts)==null?void 0:J[0]:w.emojiId;U.push({suggestion:{emoji:!0,image:w.image,alt:F,text:W,textToInsertWhenSelected:w.isCustomEmoji?W:F}})}if(U.length>=
64)break}}if(!this.participantsManager)return null;if(A.indexOf("@")===0||A.indexOf("#")===0)M=A.charAt(0),H=H.substring(1),W=_.S("live_chat_enable_handles_web_text_input_update"),A.indexOf("@")===0&&W&&(W=this.participantsManager.getAuthorsFromPrefix(A.substring(0,2)),this.getChatParticipantSuggestions(H,W,M,U)),A=A.substring(1),A=this.participantsManager.getAuthorsFromPrefix(A),this.getChatParticipantSuggestions(H,A,M,U);return U?U.sort(function(P,n){return n.suggestion.text<P.suggestion.text?-1:
n.suggestion.text===P.suggestion.text?0:1}):null};
_.X.insertSuggestion=function(H){var U=_.S("live_chat_enable_handles_web_text_input_update"),A=H.authorType;U=H.text.indexOf(A)===0&&U?H.text+fKp:A+H.text+fKp;H.emoji?this.insertTextAtRange(this.JSC$14536_lastSuggestionRange,H.textToInsertWhenSelected||""):H.author&&this.insertTextAtRange(this.JSC$14536_lastSuggestionRange,U)};
_.X.updateSuggestionsAtCaret=function(){var H=this.getCurrentRange();H&&this.updateSuggestions(H,this.calculateTextBeforeRange(H))};
_.X.offsetStartOfRangeBy=function(H,U){for(;U>0;)if(H.startOffset-U>=0){H.setStart(H.startContainer,H.startOffset-U);break}else{U=H.startContainer instanceof HTMLImageElement?U-H.startContainer.alt.length:U-H.startOffset;var A=H.startContainer.previousSibling;if(!A){H.setStart(H.startContainer,0);break}if(_.S("live_chat_require_space_for_autocomplete_emoji")){var M=void 0,W=void 0;H.setStart(A,((M=A)==null?void 0:(W=M.textContent)==null?void 0:W.length)||0)}else H.setStart(A,A.childNodes.length||
0)}};
_.X.updateSuggestions=function(H,U){var A=this;this.JSC$14536_lastSuggestionRange&&(this.JSC$14536_lastSuggestionRange.detach(),this.JSC$14536_lastSuggestionRange=null);if((U=Zsm.exec(U))&&U.length&&(U=U[U.length-1].toLocaleLowerCase(),U.length>2&&(this.offsetStartOfRangeBy(H,U.length),this.JSC$14536_lastSuggestionRange=H,(H=this.getSuggestions(U))&&H.length))){this.suggestions=H;_.rV(this,function(){_.c4(A.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(H.length-1);return}this.dropdown.opened=!1};
_.X.completeEmojisInRange=function(H,U,A){var M=U.replace(/[\s\xa0]+$/,"");U=U.length-M.length;M=M.split(" ");M=M[M.length-1].trim().toLocaleLowerCase();var W=M.lastIndexOf(":");if(A&&!U&&W!==M.length-1)return!1;W!==-1&&(A=M.lastIndexOf(":",W-1),A!==-1&&(M=M.substring(A)));if((A=_.Cl(_.Fn,M))&&A.emojiId){A=Avh(_.Fn,A.emojiId)||null;this.offsetStartOfRangeBy(H,M.length+U);var w,d,O,f;M=(((w=A)==null?0:w.isCustomEmoji)?(d=A)==null?void 0:(O=d.shortcuts)==null?void 0:O[0]:(f=A)==null?void 0:f.emojiId)||
"";U&&(M+=fKp);this.insertTextAtRange(H,M);this.dropdown.opened=!1;return!0}return!1};
_.X.onSuggestion=function(H){this.insertSuggestion(H.detail);this.dropdown.opened=!1};
_.X.onKeyPress=function(H){H.keyCode===13&&(H.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.cg(this.hostElement,"yt-live-chat-send-message"))};
_.X.completeEmojis=function(){var H=document.createRange(),U=_.c4(this.hostElement).querySelector("#input").lastChild;U?H.setStart(U,U.childNodes.length):(H.selectNodeContents(_.c4(this.hostElement).querySelector("#input")),H.collapse(!1));this.completeEmojisInRange(H,this.calculateTextBeforeRange(H),_.S("live_chat_require_space_for_autocomplete_emoji"))};
_.X.maybePreventTextFormatting=function(H){!_.DB||!H.ctrlKey&&!H.metaKey||H.keyCode!==66&&H.keyCode!==73||(H.stopImmediatePropagation(),H.preventDefault())};
_.X.onKeyDown=function(H){this.maybePreventTextFormatting(H);if(this.dropdown.opened)switch(H.keyCode){case 27:this.dropdown.opened=!1;H.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;H.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);H.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),H.preventDefault()}};
_.X.onKeyUp=function(H){switch(H.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Bu)this.onInputChange()};
_.X.changeSuggestionIndex=function(H){if(this.dropdown.opened){var U=_.c4(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<U.children.length&&(U.children[this.suggestionIndex].active=!1);var A=this.suggestions.length;this.suggestionIndex=(H+A)%A;H=U.children[this.suggestionIndex];H.active=!0;U.scrollTop=H.offsetTop}};
_.X.onInputPaste=function(H){H.preventDefault();(H=H.clipboardData)&&H.types&&(H=H.getData("text/plain")||"",H=H.replace(/\n/g,""),this.insertText(H));(H=this.getCurrentRange())&&H.commonAncestorContainer.parentElement.id==="input"&&H.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.X.onFocus=function(){this._setFocused(!0)};
_.X.onBlur=function(){this._setFocused(!1)};
_.X.insertText=function(H){this.insertTextAtRange(this.getInputRange(),H)};
_.X.insertTextAtRange=function(H,U){if(H&&(H.collapsed||H.deleteContents(),U=_.Fn.createDocumentFragment(U,!0,!1))){for(var A=_.b((U==null?void 0:U.childNodes)||[]),M=A.next();!M.done;M=A.next()){M=M.value;var W=void 0,w=void 0,d=void 0,O=void 0,f=void 0;(d=(W=window)==null?void 0:(w=W.ShadyCSS)==null?void 0:w.ScopingShim)==null||(f=(O=d).scopeNode)==null||f.call(O,M,this.hostElement.localName)}A=U.lastChild;H.insertNode(U);this.focused||this.input.focus();if(this.focused){H=H.cloneRange();H.selectNodeContents(A);
H.collapse(!1);if(U=window.getSelection())U.removeAllRanges(),U.addRange(H);H.commonAncestorContainer.parentElement.id==="input"&&H.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}H=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(H);_.cg(this.hostElement,"yt-live-chat-message-input-change",H)}};
_.X.setLiveChatRichMessageInput=function(H){_.c4(_.c4(this.hostElement).querySelector("#input")).textContent="";if(H&&H.textSegments){for(var U=0;U<H.textSegments.length;U++){var A=H.textSegments[U];A.text?_.c4(_.c4(this.hostElement).querySelector("#input")).appendChild(_.Fn.createDocumentFragment(A.text,!0,!1)):A.emojiId&&(A=_.Ka(_.Fn,A.emojiId))&&_.c4(_.c4(this.hostElement).querySelector("#input")).appendChild(_.Fn.createEmoji(A,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.X.setText=function(H){this.setLiveChatRichMessageInput(H?{textSegments:[{text:H}]}:null)};
_.X.calculateTextBeforeRange=function(H){var U="",A=H.startContainer;if(A&&A instanceof Text){var M;U=((M=A.textContent)==null?void 0:M.substring(0,H.startOffset))||"";A=A.previousSibling}for(;A&&A instanceof Text;)U=A.textContent+U,A=A.previousSibling;return U.replace(pa," ")};
_.X.calculateLiveChatRichMessageInput=function(){for(var H=[],U="",A=_.c4(_.c4(this.hostElement).querySelector("#input")).childNodes,M=0;M<A.length;M++){var W=A[M];W instanceof Text?U+=W.textContent:W instanceof HTMLImageElement&&(W.dataset.emojiId?(U&&(H.push({text:U.replace(pa," ")}),U=""),H.push({emojiId:W.dataset.emojiId})):U+=W.alt)}U&&H.push({text:U.replace(pa," ")});if(A=_.c4(this.hostElement).querySelector("#overflow-text")){U="";A=A.childNodes;for(M=0;M<A.length;M++)W=A[M],W instanceof Text?
U+=W.textContent:W instanceof HTMLImageElement&&(W.dataset.emojiId?(U&&(H.push({text:U.replace(pa," ")}),U=""),H.push({emojiId:W.dataset.emojiId})):U+=W.alt);U&&H.push({text:U.replace(pa," ")})}return{textSegments:H}};
_.X.computeCharacterCount=function(H){if(!H||!H.textSegments)return 0;for(var U=0,A=0;A<H.textSegments.length;A++){var M=H.textSegments[A];if(M.text)U+=M.text.length;else if(M.emojiId){var W=void 0;if((W=this.data)==null?0:W.emojiCharacterCount)U+=this.data.emojiCharacterCount;else{var w=W=void 0,d=void 0;U+=((w=_.Ka(_.Fn,(W=M)==null?void 0:W.emojiId))==null?void 0:(d=w.shortcuts)==null?void 0:d[0].length)||0}}}return U};
_.X.characterCountChanged=function(){_.cg(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.X.focusedChanged=function(){this.hostElement.dispatchEvent(new _.NI("focused-changed",this.focused))};
_.X.focus=function(){this.setFocus(!1)};
_.X.focusAtEnd=function(){this.setFocus(!0)};
_.X.setFocus=function(H){H=H?this.getRangeAtEnd():this.getInputRange();_.c4(this.hostElement).querySelector("#input").focus();var U=window.getSelection();U&&(U.removeAllRanges(),U.addRange(H))};
_.X.insertEmoji=function(H){var U,A=((H==null?0:H.isCustomEmoji)?(U=H.shortcuts)==null?void 0:U[0]:H==null?void 0:H.emojiId)||"";this.insertText(A)};
_.X.computeText=function(H){if(!H||!H.textSegments)return"";for(var U="",A=0;A<H.textSegments.length;A++){var M=H.textSegments[A];if(M.text)U+=M.text;else if(M.emojiId){var W=void 0,w=void 0,d=void 0;U+=((w=_.Ka(_.Fn,(W=M)==null?void 0:W.emojiId))==null?void 0:(d=w.shortcuts)==null?void 0:d[0])||""}}return U};
_.X.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.D5.Object.defineProperties(La.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.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}}});
La.prototype.focusedChanged=La.prototype.focusedChanged;La.prototype.characterCountChanged=La.prototype.characterCountChanged;La.prototype.onSuggestion=La.prototype.onSuggestion;La.prototype.onMessageSet=La.prototype.onMessageSet;La.prototype.dataChanged=La.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],La.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],La.prototype,"disabled",void 0);_.G([_.a("disabled"),_.q("design:type",Number),_.q("design:paramtypes",[])],La.prototype,"inputTabIndex",null);_.G([_.a("data.maxCharacterLimit"),_.y({readOnly:!0,notify:!0}),_.q("design:type",Number),_.q("design:paramtypes",[])],La.prototype,"maxCharacterLimit",null);
_.G([_.a("liveChatRichMessageInput"),_.y({readOnly:!0,notify:!0}),_.q("design:type",Number),_.q("design:paramtypes",[])],La.prototype,"characterCount",null);_.G([_.a("maxCharacterLimit, characterCount"),_.y({readOnly:!0,notify:!0}),_.q("design:type",Number),_.q("design:paramtypes",[])],La.prototype,"remainingCharacterCount",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],La.prototype,"isChatMessageInput",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],La.prototype,"inputExpanded",void 0);_.G([_.y({readOnly:!0,notify:!0}),_.q("design:type",Object)],La.prototype,"liveChatRichMessageInput",void 0);_.G([_.y(),_.q("design:type",Object)],La.prototype,"messageInput",void 0);_.G([_.y(),_.q("design:type",Boolean)],La.prototype,"ignoreColorMapping",void 0);_.G([_.a("characterCount"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],La.prototype,"hasText",null);
_.G([_.y(),_.q("design:type",Object)],La.prototype,"isValidWithNoInputText",void 0);_.G([_.a("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.y(),_.q("design:type",Boolean),_.q("design:paramtypes",[])],La.prototype,"isInputValid",null);_.G([_.y({readOnly:!0,value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],La.prototype,"focused",void 0);_.G([_.y(),_.q("design:type",Array)],La.prototype,"suggestions",void 0);
_.G([_.y(),_.q("design:type",_.Jb)],La.prototype,"emojiManager",void 0);_.G([_.y(),_.q("design:type",_.Se)],La.prototype,"participantsManager",void 0);_.G([_.y(),_.q("design:type",Boolean)],La.prototype,"noUnderline",void 0);_.G([_.y(),_.q("design:type",Object)],La.prototype,"inputMethodEditorActive",void 0);_.G([_.hG("#dropdown"),_.q("design:type",Object)],La.prototype,"dropdown",void 0);_.G([_.hG("#input"),_.q("design:type",HTMLElement)],La.prototype,"input",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"dataChanged",null);_.G([_.Ya("messageInput"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"onMessageSet",null);_.G([_.Gl("yt-live-chat-select-suggestion"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],La.prototype,"onSuggestion",null);
_.G([_.Ya("characterCount"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"characterCountChanged",null);_.G([_.Ya("focused"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"focusedChanged",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],La);
_.KD3=_.e(La,"yt-live-chat-text-input-field-renderer",function(){if(dqk===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;bsk===void 0&&(bsk=document.createElement("template"));var M=bsk;A.call(U,M.content.cloneNode(!0),H.content.firstChild);dqk=H}H=dqk;return H},{mode:0});var RJ=function(){var H=_.B.apply(this,arguments)||this;H.buttonOverrides={style:"overlay",type:"filled"};H.allowAnimations=!1;H.modern=_.S("web_button_rework_with_live");H.noPadding=!1;return H};
_.R(RJ,_.B);_.X=RJ.prototype;_.X.shouldSupportInlineActionButtons=function(){return!0};
_.X.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"}}}}};
_.X.ready=function(){var H=document.querySelector("yt-live-chat-app");H&&H.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.X.attached=function(){this.allowAnimations=!1};
_.X.dataChanged=function(){if(this.data){var H={"--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)};_.Dt(this.hostElement,H);this.allowAnimations=!0}};
_.X.messageChanged=function(){var H,U=(H=this.data)==null?void 0:H.message;H=_.c4(_.c4(this.hostElement).querySelector("#message"));H.textContent="";U&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(U))};
_.X.computeShowOnlyHeader=function(H,U){return!H||H.pdgLikeButton||H.replyButton||H.buyFlowButton?!1:this.isEmpty(H,U)&&!H.footer};
_.X.computeShowFooterDivider=function(H,U,A){return H?!!H.footer&&!this.isEmpty(H,U)&&!A:!1};
_.X.computeIsUserEditable=function(H){return!!H.inputField};
_.X.computeHasHeartButton=function(H){return(H==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(H==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(H==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.X.computeNoveltyImage=function(H){if(H.headerOverlayImage&&H.headerOverlayImage.thumbnails.length){var U=H.headerOverlayImage.thumbnails[0],A,M;if((A=H.pdgPurchasedNoveltyLoggingDirectives)==null?0:(M=A.loggingDirectives)==null?0:M.trackingParams){var W,w;n7V((W=H.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(w=W.loggingDirectives)==null?void 0:w.trackingParams)}return U.width||0}return 0};
_.X.computeAuthorPhotoSize=function(H){return(H==null?0:H.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.X.inputFocus=function(){var H=_.c4(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");H&&H.focus()};
_.X.inputInsertEmoji=function(H){var U=_.c4(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");U&&U.insertEmoji(H)};
_.X.inputMessage=function(){var H=_.c4(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),U;return H&&((U=this.data)==null?0:U.inputField)?(H.completeEmojis(),_.dT(H.liveChatRichMessageInput)):null};
_.X.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.X.isEmpty=function(H,U){return H?H.empty||!(H.message||H.inputField||U):!0};
_.X.onLowerBuyButtonClick=function(){var H,U=_.p((H=this.data)==null?void 0:H.buyButton,_.f$);U&&U.trackingParams&&!Kv7(U.command)&&(H=_.IS(U.trackingParams))&&(U=_.XK())&&_.NY(U,H)};
_.X.shouldSupportWholeItemClick=function(){return!0};
_.D5.Object.defineProperties(RJ.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?0:H.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
RJ.prototype.isDeletedChanged=RJ.prototype.isDeletedChanged;RJ.prototype.messageChanged=RJ.prototype.messageChanged;RJ.prototype.dataChanged=RJ.prototype.dataChanged;_.G([_.g(Bc3.YtPdgLiveChatItemBehavior),_.q("design:type",Object)],RJ.prototype,"ytPdgLiveChatItemBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],RJ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dv),_.q("design:type",Object)],RJ.prototype,"ytLiveChatReduxBehavior",void 0);
_.G([_.g(_.PN.YtLiveChatItemBehavior),_.q("design:type",_.s8)],RJ.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],RJ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],RJ.prototype,"data",void 0);_.G([_.y({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:POh}),_.q("design:type",Object)],RJ.prototype,"engagementState",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.q("design:type",Boolean)],RJ.prototype,"isUserEditable",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.q("design:type",Boolean)],RJ.prototype,"hasHeartButton",void 0);_.G([_.y({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.q("design:type",Boolean)],RJ.prototype,"showOnlyHeader",void 0);
_.G([_.y({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.q("design:type",Boolean)],RJ.prototype,"showFooterDivider",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Object)],RJ.prototype,"allowAnimations",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],RJ.prototype,"dashboardMoneyFeed",void 0);_.G([_.y({computed:"computeNoveltyImage(data)"}),_.q("design:type",Number)],RJ.prototype,"noveltyWidth",void 0);
_.G([_.y({computed:"computeAuthorPhotoSize(data)"}),_.q("design:type",Number)],RJ.prototype,"authorPhotoSize",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],RJ.prototype,"modern",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],RJ.prototype,"noPadding",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],RJ.prototype,"dataChanged",null);
_.G([_.Ya("data.message"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],RJ.prototype,"messageChanged",null);_.G([_.a("data","dashboardMoneyFeed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],RJ.prototype,"hideLowerBumper",null);_.G([_.Ya("isDeleted"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],RJ.prototype,"isDeletedChanged",null);
_.G([_.dX({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],RJ);
_.e(RJ,"yt-live-chat-paid-message-renderer",function(){if(nEz===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;s8m===void 0&&(s8m=document.createElement("template"));var M=s8m;A.call(U,M.content.cloneNode(!0),H.content.firstChild);nEz=H}H=nEz;return H},{mode:0});var o7B;var FD2;var E8=function(){var H=_.v4.apply(this,arguments)||this;H._noAccessors=!0;return H};
_.R(E8,_.v4);E8.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.gD("openPopupConfig")};
_.G([_.g(_.e4.YtOpenPopupBehavior),_.q("design:type",Object)],E8.prototype,"ytOpenPopupBehavior",void 0);_.G([_.Tl()],E8);_.m1=[_.e4.YtOpenPopupBehavior,E8.prototype];var POk;var tHE=[_.Gv,saH,_.i$,_.ter,_.s3,_.GFy,_.dk,_.kO,_.YO,_.Vez,_.sH];_.S("web_show_ep_endpoint_response_received")&&tHE.push(_.XY);var Ecg=new _.g3("RESPONSE_RECEIVED_COMMANDS"),CG8=new _.g3("RESPONSE_RECEIVED_COMMANDS");var RzM="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),Lp0=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],pTE=["GET_UNSEEN_NOTIFICATION_COUNT"];var g6=function(){var H=_.v4.apply(this,arguments)||this;H._noAccessors=!0;H.serviceEndpointHandlers=[];return H};
_.R(g6,_.v4);g6.prototype.created=function(){var H=this;this.endpointHandlerActionMap={"yt-service-request":function(U,A,M,W){var w;return SK_(H.hostElement,U,A,M,W,H.serviceEndpointHandlers,(w=H.onEntitiesUpdated)==null?void 0:w.bind(H))}}};
g6.prototype.attached=function(){_.xX(_.a1.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
g6.prototype.detached=function(){_.z9(_.a1.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.G([_.Tl()],g6);_.ssy=[g6.prototype];var n7w,N5y=function(){return n7w!==void 0?n7w:n7w=document.createElement("template")};
document.head.appendChild(N5y().content);var Sfh;var pDh=document.head,LDr=pDh.appendChild,R6n;if(Sfh===void 0){var E7y=document.createElement("template");_.E(E7y,"\x3c!--css-build:shady--\x3e");E7y.content.insertBefore(N5y().content.cloneNode(!0),E7y.content.firstChild);Sfh=E7y}R6n=Sfh;LDr.call(pDh,R6n.content);var mqK,g7n=function(){return mqK!==void 0?mqK:mqK=document.createElement("template")};
document.head.appendChild(g7n().content);var aKw;var xqH=document.head,z6z=xqH.appendChild,COh;if(aKw===void 0){var tJw=document.createElement("template");_.E(tJw,"\x3c!--css-build:shady--\x3e");tJw.content.insertBefore(g7n().content.cloneNode(!0),tJw.content.firstChild);aKw=tJw}COh=aKw;z6z.call(xqH,COh.content);var cvB;_.Qm("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Qm("sharingRendererButtons","buttonRenderer","ytd-button-renderer");cvB=_.S("web_button_rework")&&_.xV("BUTTON_REWORK")||_.S("web_button_rework_with_live");_.aJ=function(){var H=_.B.apply(this,arguments)||this;H.isPressed=!1;H.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return H};
_.R(_.aJ,_.B);_.X=_.aJ.prototype;_.X.created=function(){this.showTooltips=!0};
_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.onHintIdChanged=function(){var H=this,U,A,M=(U=this.ytButtonBehavior.data)==null?void 0:(A=U.hint)==null?void 0:A.hintRenderer;if(M&&M.hintId){U=_.Bg(this.hostElement,"yt-get-opened-popups-action");U=(U&&U.length===1?U[0]:[]).length>0;var W=null;M.hintId!=="sponsor-pre-purchase"||U?M.hintId.startsWith("sponsor-post-purchase")&&!U?W=p3g("membership-manage"):M.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!U&&(W=p3g("membership-freebie-join")):W=p3g("membership-join");W&&_.Fl.addLowPriorityJob(function(){for(var w=
_.b(W),d=w.next();!d.done;d=w.next())H.ytComponentBehavior.resolveCommand(d.value)})}};
_.X.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.X.onYtNavigate=function(H){var U=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(H.detail.endpoint);U&&(H.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(U))};
_.X.onYtServiceRequestSent=function(H,U){this.handleServiceRequestActions(U);_.cg(this.hostElement,"yt-service-request-sent-button-renderer")};
_.X.onServiceRequestCompleted=function(H,U){this.handleServiceRequestActions(U);_.cg(this.hostElement,"yt-service-request-completed-button-renderer")};
_.X.updateButton=function(H){var U;if(H=(U=_.p(H,uTH))==null?void 0:U.updatedButton)this.ytButtonBehavior.data=_.p(H,_.f$)};
_.X.handleUpdateButtonAction=function(H){var U=this.ytButtonBehavior.data;U.targetId&&H.updateButtonAction.targetId&&U.targetId===H.updateButtonAction.targetId&&this.updateButton(H)};
_.X.handleServiceRequestActions=function(H){if(H=H.actions)for(var U=0;U<H.length;U++)this.updateButton(H[U])};
_.D5.Object.defineProperties(_.aJ,{template:{configurable:!0,enumerable:!0,get:function(){if(POk===void 0){var H=document.createElement("template");_.E(H,"\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");H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);POk=H}H=POk;return H}}});
_.aJ.prototype.onServiceRequestCompleted=_.aJ.prototype.onServiceRequestCompleted;_.aJ.prototype.onYtServiceRequestSent=_.aJ.prototype.onYtServiceRequestSent;_.aJ.prototype.onYtNavigate=_.aJ.prototype.onYtNavigate;_.aJ.prototype.onPressedStateChanged=_.aJ.prototype.onPressedStateChanged;_.aJ.prototype.onHintIdChanged=_.aJ.prototype.onHintIdChanged;_.G([_.y(),_.q("design:type",Object)],_.aJ.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],_.aJ.prototype,"isPressed",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],_.aJ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.DQg.YtButtonBehavior),_.q("design:type",Object)],_.aJ.prototype,"ytButtonBehavior",void 0);_.G([_.g(_.m1),_.q("design:type",Object)],_.aJ.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],_.aJ.prototype,"ytComponentBehavior",void 0);
_.G([_.g(If.YtRenderButtonBehavior),_.q("design:type",Object)],_.aJ.prototype,"ytRenderButtonBehavior",void 0);_.G([_.Ya("data.hint.hintRenderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],_.aJ.prototype,"onHintIdChanged",null);_.G([_.Ya("isPressed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],_.aJ.prototype,"onPressedStateChanged",null);
_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],_.aJ.prototype,"onYtNavigate",null);_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],_.aJ.prototype,"onYtServiceRequestSent",null);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],_.aJ.prototype,"onServiceRequestCompleted",null);_.G([_.dX({is:"ytd-button-renderer",disableElementRegistration:cvB})],_.aJ);var xv=function(){var H=_.B.apply(this,arguments)||this;H.modern=_.S("web_button_rework_with_live");H.buttonOverrides={style:"overlay",type:"filled"};return H};
_.R(xv,_.B);_.X=xv.prototype;_.X.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"}}}}};
_.X.ready=function(){var H=document.querySelector("yt-live-chat-app");H&&H.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.X.dataChanged=function(){if(this.data&&this.data.sticker){var H=_.Rv(this.data.sticker.thumbnails,this.stickerWidth);H||_.D7r(H).thenCatch(function(){_.Na(new _.bD("Failed to load Super Sticker with url",H))})}};
_.X.computeAuthorPhotoSize=function(H){return(H==null?0:H.isV2Style)?32:40};
_.X.computeIsV2Style=function(H){return(H==null?0:H.isV2Style)?!0:!1};
_.X.onStickerLoaded=function(H){var U,A,M;(U=_.Rr(H))==null||(A=U.parentNode)==null||(M=A.classList)==null||M.add("sticker-loaded")};
_.X.computeNoveltyImageWidth=function(H){var U,A;if(H==null?0:(U=H.headerOverlayImage)==null?0:(A=U.thumbnails)==null?0:A.length){U=H.headerOverlayImage.thumbnails[0];var M,W;if((M=H.pdgPurchasedNoveltyLoggingDirectives)==null?0:(W=M.loggingDirectives)==null?0:W.trackingParams){var w,d;n7V((w=H.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(d=w.loggingDirectives)==null?void 0:d.trackingParams)}return U.width||0}return 0};
_.X.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.X.updateStickerStyles=function(){var H=this.data;H&&(H={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(H.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(H.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(H.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(H.authorNameTextColor)},
_.Dt(this.hostElement,H))};
_.X.onBuyButtonClick=function(){var H,U=_.p((H=this.data)==null?void 0:H.buyButton,_.f$);U&&!Kv7(U.command)&&this.ytRendererBehavior.logExplicitClick(U)};
_.X.shouldSupportWholeItemClick=function(){return!0};
_.D5.Object.defineProperties(xv.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 H;return((H=this.data)==null?0:H.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
xv.prototype.updateStickerStyles=xv.prototype.updateStickerStyles;xv.prototype.isDeletedChanged=xv.prototype.isDeletedChanged;xv.prototype.onStickerLoaded=xv.prototype.onStickerLoaded;xv.prototype.dataChanged=xv.prototype.dataChanged;_.G([_.g(Bc3.YtPdgLiveChatItemBehavior),_.q("design:type",Object)],xv.prototype,"ytPdgLiveChatItemBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],xv.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.PN.YtLiveChatItemBehavior),_.q("design:type",_.s8)],xv.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],xv.prototype,"data",void 0);
_.G([_.y({computed:"computeAuthorPhotoSize(data)"}),_.q("design:type",Number)],xv.prototype,"authorPhotoSize",void 0);_.G([_.y(),_.q("design:type",Boolean)],xv.prototype,"isDeleted",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],xv.prototype,"dashboardMoneyFeed",void 0);_.G([_.y({computed:"computeNoveltyImageWidth(data)"}),_.q("design:type",Number)],xv.prototype,"noveltyWidth",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],xv.prototype,"modern",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.q("design:type",Boolean)],xv.prototype,"isV2Style",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xv.prototype,"dataChanged",null);_.G([_.Gl("yt-img-shadow-loaded"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],xv.prototype,"onStickerLoaded",null);
_.G([_.a("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],xv.prototype,"stickerWidth",null);_.G([_.a("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],xv.prototype,"stickerHeight",null);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],xv.prototype,"hasHeartButton",null);_.G([_.a("data","dashboardMoneyFeed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],xv.prototype,"hideLowerBumper",null);
_.G([_.Ya("isDeleted"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xv.prototype,"isDeletedChanged",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xv.prototype,"updateStickerStyles",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],xv);
_.e(xv,"yt-live-chat-paid-sticker-renderer",function(){if(FD2===void 0){var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;o7B===void 0&&(o7B=document.createElement("template"));var M=o7B;A.call(U,M.content.cloneNode(!0),H.content.firstChild);FD2=H}H=FD2;return H},{mode:0});var yvw;var B5w;var rvB,e6p=function(){return rvB!==void 0?rvB:rvB=document.createElement("template")};
document.head.appendChild(e6p().content);var Dqy,$qw=function(){return Dqy!==void 0?Dqy:Dqy=document.createElement("template")};
document.head.appendChild($qw().content);var lKm;var G3y,YfH=function(){return G3y!==void 0?G3y:G3y=document.createElement("template")};
document.head.appendChild(YfH().content);var qfw;var h6n=document.head,k3m=h6n.appendChild,v7w;if(qfw===void 0){var T5h=document.createElement("template");_.E(T5h,"\x3c!--css-build:shady--\x3e");T5h.content.insertBefore(YfH().content.cloneNode(!0),T5h.content.firstChild);qfw=T5h}v7w=qfw;k3m.call(h6n,v7w.content);var jsr=document.head,IKK=jsr.appendChild,Qsw;if(lKm===void 0){var zO=document.createElement("template");_.E(zO,"\x3c!--css-build:shady--\x3e");zO.content.insertBefore($qw().content.cloneNode(!0),zO.content.firstChild);zO.content.insertBefore(e6p().content.cloneNode(!0),zO.content.firstChild);lKm=zO}Qsw=lKm;IKK.call(jsr,Qsw.content);var Ca=function(){var H=_.v4.apply(this,arguments)||this;H.focusedIndex=0;H.verticalOffset=0;H.verticalAlign="top";H.dynamicAlign=!0;return H};
_.R(Ca,_.v4);Ca.prototype.emojiUrl=function(H){H=_.Ka(this.emojiManager,H);if(!H)return"";var U;H=(U=H.image)==null?void 0:U.thumbnails;return _.Rv(H,24)||""};
var VJp=function(H){var U;H.emojiVariants&&(U=H.data)!=null&&U.target&&_.rV(H,function(){H.set("verticalOffset",-1*H.hostElement.clientHeight);var A=_.c4(H.hostElement).querySelector("img");A&&A.focus()})};
_.X=Ca.prototype;_.X.onKeyboardEnter=function(){};
_.X.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.X.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.X.onKeyDown=function(H){switch(H.keyCode){case 13:this.onKeyboardEnter();H.preventDefault();break;case 40:this.changeFocus(1);H.preventDefault();break;case 38:this.changeFocus(-1);H.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.X.onYtEmojiSelect=function(H){var U=this,A,M,W,w,d,O,f,J;return _.u(function(F){if(F.nextAddress==1)return M=(A=U.data)==null?void 0:A.emoji,d=((W=M)==null?void 0:W.stickyPrefId)||((w=M)==null?void 0:w.emojiId),f=(O=H.detail)==null?void 0:O.emojiId,d&&f&&d!==f?F.yield((J=U.emojiManager)==null?void 0:WDy(J,M,f),2):F.return();_.yr(U.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[M,f]);_.DO(F)})};
_.X.changeFocus=function(H){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+H+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(H=_.c4(this.hostElement).querySelector("#variants"))&&H.children[this.focusedIndex].focus())};
_.D5.Object.defineProperties(Ca.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Ca.prototype.onYtEmojiSelect=Ca.prototype.onYtEmojiSelect;Ca.prototype.onKeyDown=Ca.prototype.onKeyDown;Ca.prototype.onEmojiVariantsChanged=Ca.prototype.onEmojiVariantsChanged;Ca.prototype.onVerticalOffsetOrPositionTargetChanged=Ca.prototype.onVerticalOffsetOrPositionTargetChanged;_.G([_.g(_.Jf),_.q("design:type",Object)],Ca.prototype,"ironOverlayBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ca.prototype,"data",void 0);_.G([_.y(),_.q("design:type",_.Jb)],Ca.prototype,"emojiManager",void 0);
_.G([_.y(),_.q("design:type",Object)],Ca.prototype,"emojiVariants",void 0);_.G([_.y(),_.q("design:type",Object)],Ca.prototype,"focusedIndex",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Ca.prototype,"positionTarget",null);_.G([_.y({reflectToAttribute:!0}),_.a("verticalOffset","data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Ca.prototype,"isPositioned",null);_.G([_.y(),_.q("design:type",Object)],Ca.prototype,"verticalOffset",void 0);
_.G([_.y(),_.q("design:type",Object)],Ca.prototype,"verticalAlign",void 0);_.G([_.y(),_.q("design:type",Object)],Ca.prototype,"dynamicAlign",void 0);_.G([_.Ya("verticalOffset","positionTarget"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ca.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.G([_.Ya("emojiVariants"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ca.prototype,"onEmojiVariantsChanged",null);
_.G([_.Gl("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[KeyboardEvent]),_.q("design:returntype")],Ca.prototype,"onKeyDown",null);_.G([_.Gl("yt-emoji-select"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype",Promise)],Ca.prototype,"onYtEmojiSelect",null);_.G([_.Tl()],Ca);var H6k=[Ca.prototype];var U7w;var ACw;var MHr=/medium-light|medium-dark|light|medium|dark/,Wpn=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,wTn=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),tb=function(){var H=_.B.apply(this,arguments)||this;H.userSelection={left:null,right:null};H.scrollAction="lock";H.isEmojiDraftInProgress=!1;return H};
_.R(tb,_.B);_.X=tb.prototype;_.X.onClick=function(H){H=_.Rr(H);H instanceof HTMLImageElement&&this.selectOrUpdateEmoji(H)};
_.X.selectOrUpdateEmoji=function(H){var U=H.getAttribute("selection");U&&(U==="default"?_.cg(this.hostElement,"yt-emoji-select",_.Ka(this.emojiManager,H.id)):U==="left"?this.userSelection=Object.assign({},this.userSelection,{left:H.src}):U==="right"?this.userSelection=Object.assign({},this.userSelection,{right:H.src}):U==="user"&&this.userSelection.left&&this.userSelection.right&&_.cg(this.hostElement,"yt-emoji-select",_.Ka(this.emojiManager,H.id)))};
_.X.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.X.onMultiSelectorThumbnailRowChanged=function(){var H,U,A;((H=this.data)==null?0:(U=H.emoji)==null?0:(A=U.multiSelectorThumbnailRow)==null?0:A.length)&&this.openSelector()};
_.X.getThumbnailFromEmojiRow=function(H){var U,A;return(H==null?void 0:(U=H.thumbnails)==null?void 0:(A=U[0])==null?void 0:A.url)||""};
_.X.getEmojiAltTextForPartialSelector=function(H){var U;return((U=this.getThumbnailFromEmojiRow(H).match(Wpn))==null?void 0:U[0])||""};
_.X.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.X.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.X.getRowSelection=function(H){return["left","right"][H]};
_.X.getIdFromComposedEmoji=function(H){return(H==null?void 0:H.emojiId)||""};
_.X.getEmojiFromPartialSelections=function(H,U){if(!H&&!U)return null;var A,M,W=(A=this.data)==null?void 0:(M=A.emoji)==null?void 0:M.variantIds;if(!W||!W.length)return null;var w;H=(w=H.match(MHr))==null?void 0:w[0];var d;U=(d=U.match(MHr))==null?void 0:d[0];if(!H||!U)return null;var O=wTn.get(H);d=wTn.get(U);if(O===d){d=Array.from(wTn.values()).filter(function(J){return J!==O}).join("|");
var f=new RegExp("^((?!("+d+")).)*"+O+"$")}else f=new RegExp(O+".*"+d);return(W=W.find(function(J){return f.test(J)}))&&_.Ka(this.emojiManager,W)||null};
_.X.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var H,U=this.ytEmojiSelectorBehavior.emojiUrl(((H=this.data.emoji)==null?void 0:H.emojiId)||"");_.c4(this.hostElement).querySelector('[selection="user"]').src.includes(U)||(this.isEmojiDraftInProgress=!0)}};
_.X.onDomChange=function(){VJp(this.ytEmojiSelectorBehavior)};
_.X.getFocusableElements=function(){return _.c4(this.hostElement).querySelectorAll("img").filter(function(H){return H.getAttribute("role")==="option"})};
_.X.changeFocus=function(H){var U=this.getFocusableElements();U!=null&&U.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+H+U.length)%U.length,this.ytEmojiSelectorBehavior.focusedIndex<U.length&&(H=U[this.ytEmojiSelectorBehavior.focusedIndex])&&H.focus())};
_.X.onKeyboardEnter=function(){var H=this.getFocusableElements();H!=null&&H.length&&(H=H[this.ytEmojiSelectorBehavior.focusedIndex])&&H instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(H),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.D5.Object.defineProperties(tb.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var H=this,U,A,M;return this.emojiManager&&((U=this.data)==null?0:(A=U.emoji)==null?0:(M=A.variantIds)==null?0:M.length)?this.data.emoji.variantIds.map(function(W){return!!W&&_.Ka(H.emojiManager,W)}).filter(function(W){return!!W}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var H,U=(H=this.userSelection)==null?void 0:H.left,A;H=(A=this.userSelection)==null?void 0:A.right;return U&&H?this.getEmojiFromPartialSelections(U,H):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.composedEmojiSelection)==null?0:H.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var U;H=(U=this.userSelection)==null?void 0:U.left;var A;U=(A=this.userSelection)==null?void 0:A.right;if(!H&&!U){var M;return this.ytEmojiSelectorBehavior.emojiUrl(((M=this.data.emoji)==null?void 0:M.emojiId)||"")}return H&&!U?H:!H&&U?U:""}}});
tb.prototype.onMultiSelectorThumbnailRowChanged=tb.prototype.onMultiSelectorThumbnailRowChanged;tb.prototype.onClick=tb.prototype.onClick;_.G([_.g(_.Jf),_.q("design:type",Object)],tb.prototype,"ironOverlayBehavior",void 0);_.G([_.g(H6k),_.q("design:type",Object)],tb.prototype,"ytEmojiSelectorBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],tb.prototype,"data",void 0);_.G([_.y(),_.q("design:type",_.Jb)],tb.prototype,"emojiManager",void 0);
_.G([_.y(),_.q("design:type",Object)],tb.prototype,"userSelection",void 0);_.G([_.y(),_.q("design:type",Object)],tb.prototype,"scrollAction",void 0);_.G([_.y(),_.q("design:type",Object)],tb.prototype,"isEmojiDraftInProgress",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],tb.prototype,"emojiVariants",null);_.G([_.a("data","userSelection"),_.q("design:type",Object),_.q("design:paramtypes",[])],tb.prototype,"composedEmojiSelection",null);
_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[MouseEvent]),_.q("design:returntype")],tb.prototype,"onClick",null);_.G([_.Ya("data.emoji.multiSelectorThumbnailRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tb.prototype,"onMultiSelectorThumbnailRowChanged",null);_.G([_.a("data","userSelection","composedEmojiSelection"),_.q("design:type",String),_.q("design:paramtypes",[])],tb.prototype,"draftEmojiUrl",null);
_.G([_.b0({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],tb);
_.e(tb,"yt-emoji-multi-person-selector",function(){if(ACw===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;U7w===void 0&&(U7w=document.createElement("template"));var M=U7w;A.call(U,M.content.cloneNode(!0),H.content.firstChild);ACw=H}H=ACw;return H},{mode:2});var XTK;var i6B;var cN=function(){var H=_.B.apply(this,arguments)||this;H.tooltip_=null;return H};
_.R(cN,_.B);_.X=cN.prototype;_.X.dataChanged_=function(){var H;if((H=this.data)==null?0:H.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.c4(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.ek)(this.tooltip_).textContent=this.data.tooltip};
_.X.computeTargetId=function(){var H;return((H=this.data)==null?void 0:H.targetId)||""};
_.X.computeId_=function(H){return H};
_.X.computeIcon_=function(H){return _.eq(H)};
_.X.onTap_=function(){this.active=!this.active;_.cg(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.X.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("active-changed",this.active))};
_.D5.Object.defineProperties(cN.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var H,U;if((H=this.data)==null?0:(U=H.icon)==null?0:U.iconType)return this.data.icon.iconType==="SUPER_STICKER";var A,M;return((A=this.data)==null?void 0:(M=A.icon)==null?void 0:M.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
cN.prototype.activeChangedForBinding=cN.prototype.activeChangedForBinding;cN.prototype.dataChanged_=cN.prototype.dataChanged_;_.G([_.g(_.OY.YtLiveChatTooltipTargetingBehavior),_.q("design:type",Object)],cN.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],cN.prototype,"data",void 0);_.G([_.y({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.q("design:type",String)],cN.prototype,"id",void 0);
_.G([_.y({computed:"computeTargetId(data.targetId)"}),_.q("design:type",String)],cN.prototype,"targetId",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],cN.prototype,"active",void 0);_.G([_.y({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.q("design:type",String)],cN.prototype,"icon",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cN.prototype,"dataChanged_",null);
_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],cN.prototype,"iconFilled",null);_.G([_.Ya("active"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cN.prototype,"activeChangedForBinding",null);_.G([_.b0({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],cN);
_.e(cN,"yt-emoji-picker-category-button-renderer",function(){if(i6B===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;XTK===void 0&&(XTK=document.createElement("template"));var M=XTK;A.call(U,M.content.cloneNode(!0),H.content.firstChild);i6B=H}H=i6B;return H},{mode:2});var b6r;var d7n;var y1=function(){var H=_.B.apply(this,arguments)||this;H.ariaLabel=null;H.ariaActivedescendant=null;H.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};H.JSC$14601_ignoreNextFocus_=!1;H.longPressTimeoutId=-1;return H};
_.R(y1,_.B);_.X=y1.prototype;_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.X.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.X.emojiChanged_=function(){this.changeFocus_(0,!1);for(var H=_.k$(),U=0;U<this.emoji.length;U++){var A={veType:88013,elementIndex:U},M=this.emoji[U];M.isCustomEmoji&&(M=document.querySelector(("#"+M.emojiId).replace("/","\\/")))&&(A=_.hy(H,A))&&(M.visualElement=A)}};
_.X.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.X.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.X.emojiSkinToneChanged_=function(H){this.skinTone=H};
_.X.dataChanged=function(){this.data&&this.data.emojiData&&HsB(this.emojiManager,this.data.emojiData)};
_.X.emojiUrl=function(H){H=this.getEmoji(H);if(!H)return"";var U;H=(U=H.image)==null?void 0:U.thumbnails;return _.Rv(H,24)||""};
_.X.emojiAlt=function(H){var U=this.get("image.accessibility.accessibilityData.label",H);return U?U:H.isCustomEmoji?H.shortcuts[0]:H.emojiId};
_.X.emojiAriaLabel=function(H){return H.shortcuts?H.shortcuts[0]:""};
_.X.emojiAriaSelected=function(H,U,A){return H&&A==U?"true":"false"};
_.X.getEmoji=function(H){if(this.emojiManager)return this.shouldUseStickyPreferences?Avh(this.emojiManager,H):oJ(this.emojiManager,H)};
_.X.computeId_=function(H){return H.categoryId||""};
_.X.computeEmoji=function(H){var U=this;return this.emojiManager?H.emojiIds?H.emojiIds.map(function(A){return A?_.Ka(U.emojiManager,A):null}).filter($7r):H.emojiData?H.emojiData.map(function(A){var M=!!A.emojiId&&_.Ka(U.emojiManager,A.emojiId);
return M?Object.assign({},M,A):null}).filter($7r):[]:[]};
_.X.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.X.computeAriaLabel_=function(H){return _.Sp(H)};
_.X.computeAriaActivedescendant_=function(H,U){return H&&H[U]?H[U].emojiId||"":""};
_.X.handleLongPressEmojiWithVariants=function(H,U){this.changeFocusToEmoji(H.emojiId,!1);this.openVariantSelector(H,U)};
_.X.onMouseDown=function(H){var U=this;this.hostElement!==document.activeElement&&(this.JSC$14601_ignoreNextFocus_=!0);if(H.button===0){var A=_.Rr(H);if(A instanceof HTMLImageElement){var M=_.c4(this.hostElement).querySelector("#repeat").itemForElement(A);this.emojiContainsVariants(M)&&(this.longPressTimeoutId=setTimeout(function(){U.handleLongPressEmojiWithVariants(M,A)},500))}}};
_.X.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.X.onFocus=function(){this.JSC$14601_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14601_ignoreNextFocus_=!1};
_.X.onBlur_=function(){this.showFocus=!1};
_.X.emojiContainsVariants=function(H){return!!(H&&H.variantIds&&H.variantIds.length)};
_.X.onClick=function(H){clearTimeout(this.longPressTimeoutId);H=_.Rr(H);if(H instanceof HTMLImageElement){var U=H.id;this.changeFocusToEmoji(U,!1);var A=this.getEmoji(U),M;if(M=this.shouldUseStickyPreferences&&this.emojiContainsVariants(A)){var W;M=!((W=this.emojiManager.emojiMap[U])!=null&&W.stickyPrefId)}M?(W=_.c4(this.hostElement).querySelector("#repeat").itemForElement(H),this.openVariantSelector(W,H)):_.cg(this.hostElement,"yt-emoji-select",A)}};
_.X.isActiveEmojiWithVariants=function(H,U){return H&&U?U.stickyPrefId?H===U.stickyPrefId:H===U.emojiId:!1};
_.X.onCloseEmojiVariantSelector=function(H){this.activeEmojiWithVariantsId===H&&(this.activeEmojiWithVariantsId="")};
_.X.onMouseOver_=function(H){H=_.Rr(H);H instanceof HTMLImageElement&&_.cg(this.hostElement,"yt-emoji-hover",_.Ka(this.emojiManager,H.id))};
_.X.changeFocus_=function(H,U){this.focusedIndex=(this.focusedIndex+H+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(H=this.emoji[this.focusedIndex],U&&(this.showFocus=!0,_.c4(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.cg(this.hostElement,"yt-emoji-hover",H)))};
_.X.changeFocusToEmoji=function(H,U){if(H){var A=this.emoji.findIndex(function(M){return M.emojiId===H});
A!==-1&&this.changeFocus_(A-this.focusedIndex,U)}};
_.X.onKeyDown_=function(H){switch(H.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var U=this.emoji[this.focusedIndex];if(U&&U.emojiId){if(this.emojiContainsVariants(U)){var A=_.c4(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(U,A)}else _.cg(this.hostElement,"yt-emoji-select",oJ(this.emojiManager,U.emojiId)),this.hostElement.focus();H.preventDefault()}}break;case 40:this.changeFocus_(1,!0);H.preventDefault();break;case 38:this.changeFocus_(-1,!0),
H.preventDefault()}};
_.X.onEmojiStickyPreferenceChanged=function(H,U){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&H.emojiId&&H.variantIds&&H.variantIds.includes(U)&&this.activeEmojiWithVariantsId!==U&&this.setStickyEmojiPreference(H.emojiId,U)};
_.X.openVariantSelector=function(H,U){this.activeEmojiWithVariantsId=H.stickyPrefId||H.emojiId||"";_.cg(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:H,target:U})};
_.X.setStickyEmojiPreference=function(H,U){if(this.data){var A=this.emoji.findIndex(function(W){return W.emojiId===H});
if(A!==-1){var M=this.emoji[A];M.stickyPrefId=U;this.set("emoji."+A,Object.assign({},M));this.activeEmojiWithVariantsId=U}}};
y1.prototype.onKeyDown_=y1.prototype.onKeyDown_;y1.prototype.onMouseOver_=y1.prototype.onMouseOver_;y1.prototype.onClick=y1.prototype.onClick;y1.prototype.onBlur_=y1.prototype.onBlur_;y1.prototype.onFocus=y1.prototype.onFocus;y1.prototype.onMouseUp=y1.prototype.onMouseUp;y1.prototype.onMouseDown=y1.prototype.onMouseDown;y1.prototype.dataChanged=y1.prototype.dataChanged;y1.prototype.disableIncrementalLoadingChanged_=y1.prototype.disableIncrementalLoadingChanged_;y1.prototype.emojiManagerChanged_=y1.prototype.emojiManagerChanged_;
y1.prototype.emojiChanged_=y1.prototype.emojiChanged_;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],y1.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],y1.prototype,"data",void 0);_.G([_.y({computed:"computeId_(data)"}),_.q("design:type",String)],y1.prototype,"id",void 0);_.G([_.y({computed:"computeEmoji(data)"}),_.q("design:type",Array)],y1.prototype,"emoji",void 0);_.G([_.y(),_.q("design:type",Number)],y1.prototype,"skinTone",void 0);
_.G([_.y(),_.q("design:type",_.Jb)],y1.prototype,"emojiManager",void 0);_.G([_.y(),_.q("design:type",Boolean)],y1.prototype,"disableIncrementalLoading",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],y1.prototype,"focusedIndex",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],y1.prototype,"showFocus",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.q("design:type",Object)],y1.prototype,"ariaLabel",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.q("design:type",Object)],y1.prototype,"ariaActivedescendant",void 0);_.G([_.y({value:60}),_.q("design:type",Number)],y1.prototype,"domRepeatTargetFramerate",void 0);_.G([_.y({value:1}),_.q("design:type",Number)],y1.prototype,"domRepeatInitialCount",void 0);_.G([_.y({value:""}),_.q("design:type",String)],y1.prototype,"activeEmojiWithVariantsId",void 0);
_.G([_.y({value:!1}),_.q("design:type",Boolean)],y1.prototype,"shouldUseStickyPreferences",void 0);_.G([_.Ya("emoji"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],y1.prototype,"emojiChanged_",null);_.G([_.Ya("emojiManager"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],y1.prototype,"emojiManagerChanged_",null);
_.G([_.Ya("disableIncrementalLoading"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],y1.prototype,"disableIncrementalLoadingChanged_",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],y1.prototype,"dataChanged",null);_.G([_.Gl("mousedown"),_.q("design:type",Function),_.q("design:paramtypes",[Object]),_.q("design:returntype")],y1.prototype,"onMouseDown",null);
_.G([_.Gl("mouseup"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],y1.prototype,"onMouseUp",null);_.G([_.Gl("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],y1.prototype,"onFocus",null);_.G([_.Gl("blur"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],y1.prototype,"onBlur_",null);
_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],y1.prototype,"onClick",null);_.G([_.Gl("mouseover"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],y1.prototype,"onMouseOver_",null);_.G([_.Gl("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],y1.prototype,"onKeyDown_",null);
_.G([_.b0({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],y1);
_.e(y1,"yt-emoji-picker-category-renderer",function(){if(d7n===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;b6r===void 0&&(b6r=document.createElement("template"));var M=b6r;A.call(U,M.content.cloneNode(!0),H.content.firstChild);d7n=H}H=d7n;return H},{mode:2});var O6n;var u2r;var Z6h;var fsz;var BN=function(){var H=_.B.apply(this,arguments)||this;H.ariaLabel=null;H.ariaActivedescendant=null;H.getFormattedStringRawText=_.Sp;H.JSC$14607_ignoreNextFocus_=!1;return H};
_.R(BN,_.B);_.X=BN.prototype;_.X.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")};
_.X.emojiUrl=function(H){var U,A;H=(U=oJ(this.emojiManager,H,!0))==null?void 0:(A=U.image)==null?void 0:A.thumbnails;return _.Rv(H,24)||""};
_.X.emojiAlt=function(H){var U=this.get("image.accessibility.accessibilityData.label",H);return U?U:H.isCustomEmoji?H.shortcuts[0]:H.emojiId};
_.X.emojiId=function(H){return"emoji"+H};
_.X.computeId_=function(H){return H.categoryId||""};
_.X.computeAriaActivedescendant_=function(H){return this.emoji&&H<this.emoji.length?this.emojiId(H):""};
_.X.emojiChanged_=function(){this.changeFocus_(0,!1);for(var H=_.k$(),U=0;U<this.emoji.length;U++){var A={veType:88013,elementIndex:U},M=this.emoji[U];M.isCustomEmoji&&(M=document.querySelector(("#"+M.emojiId).replace("/","\\/")))&&(A=_.hy(H,A))&&(M.visualElement=A)}};
_.X.computeEmoji_=function(H){var U=this;return this.emojiManager?H.emojiIds.map(function(A){return _.Ka(U.emojiManager,A,!0)}).filter(lsh):[]};
_.X.titleOffsetChanged_=function(){var H=this.hostElement.getBoundingClientRect(),U=_.c4(this.hostElement).querySelector("#title").getBoundingClientRect();H=Math.max(0,Math.min(this.titleOffset,H.height-U.height));_.c4(this.hostElement).querySelector("#title").style.top=H+"px"};
_.X.onEmojiMouseOver_=function(H){_.cg(this.hostElement,"yt-emoji-hover",H.model.item)};
_.X.onEmojiTap_=function(H){this.data.command&&(H=g77(_.lx().resolve(_.$V(mU)),this.data.command,H),_.cg(this.hostElement,"yt-navigate",H))};
_.X.emojiAriaLabel=function(H){return H.shortcuts[0]};
_.X.emojiAriaSelected=function(H,U,A){return H&&A==U?"true":"false"};
_.X.changeFocus_=function(H,U){var A=this.emoji.length;this.focusedIndex=(this.focusedIndex+H+A)%A;H=this.emoji[this.focusedIndex];if(U){var M;(M=_.c4(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||M.scrollIntoView(!1);_.cg(this.hostElement,"yt-emoji-hover",H)}};
_.X.onMouseDown_=function(){this.JSC$14607_ignoreNextFocus_=!0};
_.X.onFocus_=function(){this.JSC$14607_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14607_ignoreNextFocus_=!1};
_.X.onBlur_=function(){this.showFocus=!1};
_.X.onKeyDown_=function(H){switch(H.keyCode){case 13:this.onEmojiTap_(H);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);H.preventDefault();break;case 38:this.changeFocus_(-1,!0),H.preventDefault()}};
BN.prototype.onKeyDown_=BN.prototype.onKeyDown_;BN.prototype.onBlur_=BN.prototype.onBlur_;BN.prototype.onFocus_=BN.prototype.onFocus_;BN.prototype.onMouseDown_=BN.prototype.onMouseDown_;BN.prototype.onEmojiTap_=BN.prototype.onEmojiTap_;BN.prototype.titleOffsetChanged_=BN.prototype.titleOffsetChanged_;BN.prototype.emojiChanged_=BN.prototype.emojiChanged_;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],BN.prototype,"ytComponentBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],BN.prototype,"data",void 0);_.G([_.y({computed:"computeId_(data)"}),_.q("design:type",String)],BN.prototype,"id",void 0);_.G([_.y({computed:"computeEmoji_(data)"}),_.q("design:type",Array)],BN.prototype,"emoji",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],BN.prototype,"titleOffset",void 0);_.G([_.y({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.q("design:type",Object)],BN.prototype,"ariaLabel",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.q("design:type",Object)],BN.prototype,"ariaActivedescendant",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],BN.prototype,"showFocus",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],BN.prototype,"focusedIndex",void 0);_.G([_.y(),_.q("design:type",_.Jb)],BN.prototype,"emojiManager",void 0);
_.G([_.Ya("emoji"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BN.prototype,"emojiChanged_",null);_.G([_.Ya("titleOffset"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BN.prototype,"titleOffsetChanged_",null);_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],BN.prototype,"onEmojiTap_",null);
_.G([_.Gl("mousedown"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BN.prototype,"onMouseDown_",null);_.G([_.Gl("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BN.prototype,"onFocus_",null);_.G([_.Gl("blur"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BN.prototype,"onBlur_",null);
_.G([_.Gl("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],BN.prototype,"onKeyDown_",null);_.G([_.b0({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],BN);
_.e(BN,"yt-emoji-picker-upsell-category-renderer",function(){if(fsz===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Z6h===void 0&&(Z6h=document.createElement("template"));var M=Z6h;A.call(U,M.content.cloneNode(!0),H.content.firstChild);fsz=H}H=fsz;return H},{mode:2});var JCB;var KpH;var r6=function(){var H=_.B.apply(this,arguments)||this;H.scrollAction="lock";H.verticalAlign="top";return H};
_.R(r6,_.B);_.X=r6.prototype;_.X.onClick=function(H){H=_.Rr(H);H instanceof HTMLImageElement&&_.cg(this.hostElement,"yt-emoji-select",_.Ka(this.emojiManager,H.id))};
_.X.openSelector=function(){this.ironOverlayBehavior.open()};
_.X.onDomChange=function(){VJp(this.ytEmojiSelectorBehavior)};
_.X.computeIsFamilySelector=function(H){var U;return(H==null?void 0:(U=H.emoji)==null?void 0:U.emojiId)==="\ud83d\udc6a"};
_.X.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var H=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];H&&H.emojiId&&(_.cg(this.hostElement,"yt-emoji-select",_.Ka(this.emojiManager,H.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.D5.Object.defineProperties(r6.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var H=this,U,A,M;return this.emojiManager&&((U=this.data)==null?0:(A=U.emoji)==null?0:(M=A.variantIds)==null?0:M.length)?this.data.emoji.variantIds.map(function(W){return!!W&&_.Ka(H.emojiManager,W)}).filter(function(W){return!!W}):[]}}});
r6.prototype.onClick=r6.prototype.onClick;_.G([_.g(_.Jf),_.q("design:type",Object)],r6.prototype,"ironOverlayBehavior",void 0);_.G([_.g(H6k),_.q("design:type",Object)],r6.prototype,"ytEmojiSelectorBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],r6.prototype,"data",void 0);_.G([_.y(),_.q("design:type",_.Jb)],r6.prototype,"emojiManager",void 0);_.G([_.y(),_.q("design:type",Object)],r6.prototype,"scrollAction",void 0);_.G([_.y(),_.q("design:type",Object)],r6.prototype,"verticalAlign",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.q("design:type",Boolean)],r6.prototype,"isFamilySelector",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],r6.prototype,"emojiVariants",null);_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[MouseEvent]),_.q("design:returntype")],r6.prototype,"onClick",null);_.G([_.b0({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],r6);
_.e(r6,"yt-emoji-variant-selector",function(){if(KpH===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;JCB===void 0&&(JCB=document.createElement("template"));var M=JCB;A.call(U,M.content.cloneNode(!0),H.content.firstChild);KpH=H}H=KpH;return H},{mode:2});var oek=/:/g,FpB=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],ee=function(){var H=_.B.apply(this,arguments)||this;H.emojiVariantSelector=null;H.emojiMultiPersonSelector=null;H.identity=_.Ch;H.lastAnimationTime_=0;H.animationStart_=null;H.animationEnd_=null;return H};
_.R(ee,_.B);_.X=ee.prototype;
_.X.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}}};
_.X.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Fn)};
_.X.attached=function(){_.Bu&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&UqH(this.emojiManager)};
_.X.dataChanged=function(){var H;if((H=this.data)==null?0:H.categories){H=this.emojiManager;var U=this.getCustomEmojiIds();H.pickerCustomEmojiIds=[].concat(_.vI(Tyz),_.vI(U))}};
_.X.getCustomEmojiIds=function(){var H,U=(H=this.data.categories)==null?void 0:H.find(function(w){var d;return((d=w.emojiPickerCategoryRenderer)==null?void 0:d.categoryId)&&FpB.includes(w.emojiPickerCategoryRenderer.categoryId)}),A;
H=(A=this.data.categories)==null?void 0:A.find(function(w){return w.emojiPickerUpsellCategoryRenderer});
var M,W;return[U==null?void 0:(M=U.emojiPickerCategoryRenderer)==null?void 0:M.emojiIds,H==null?void 0:(W=H.emojiPickerUpsellCategoryRenderer)==null?void 0:W.emojiIds].flat().filter(function(w){return!!w})};
_.X.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.X.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.X.updateCategoriesAndPlaceholderInternal=function(H,U){var A=this;H&&U&&(this.categories=H.categories||[],this.categoryButtons=H.categoryButtons||[],this.resetPlaceholder(),this.search="",_.oS(function(){A.updateButtons_()}))};
_.X.computeId_=function(H){return H.id||""};
_.X.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(H){return H.emojiPickerCategoryRenderer&&H.emojiPickerCategoryRenderer.emojiData}):!1};
_.X.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.X.onShowEmojiVariantSelector=function(H){var U=H.detail.emojiData;U.variantIds&&U.variantIds.length&&(U.multiSelectorThumbnailRow&&U.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:U,target:H.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:U,target:H.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.X.onIronOverlayClosed=function(H){var U=Avh(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");U&&H.composedPath&&(H.composedPath().includes(_.c4(this.hostElement).querySelector("#emoji-variant-selector"))||H.composedPath().includes(_.c4(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.yr(this.hostElement,"yt-close-emoji-variant-selector",[U.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.X.onEmojiVariantSelectorMouseup=function(H){var U=H.target.firstChild;this.variantSelectorOpened&&U&&_.oS(function(){U.noCancelOnOutsideClick=!1},100)};
_.X.onEmojiVariantSelectorMousedown=function(H){H=H.target.firstChild;this.variantSelectorOpened&&H&&(H.noCancelOnOutsideClick=!1)};
_.X.onSelectCategory_=function(H){var U=this.search!="";this.search="";for(var A=_.c4(this.hostElement).querySelector("#categories").children,M=0;M<A.length;M++){var W=A[M];if(W.id==H.detail.categoryId){U?(_.c4(this.hostElement).querySelector("#categories").scrollTop=W.offsetTop,this.updateButtons_()):(this.animationStart_=_.c4(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=W.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.X.onEmojiHover_=function(H){this.placeholder=H.detail.shortcuts?H.detail.shortcuts[0]:""};
_.X.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.X.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.X.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.X.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.X.computeSearchCategory_=function(H){H=H.replace(oek,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();H=H.split(" ");for(var U=[],A=this.emojiManager.emojis,M=0;M<A.length;M++){var W=A[M];if(W.searchTerms)for(var w=0;w<W.searchTerms.length;w++){for(var d=W.searchTerms[w].toLocaleLowerCase(),O=!1,f=0;f<H.length;f++)if(d.indexOf(H[f])!=-1){O=!0;break}if(O&&(!W.isCustomEmoji||!W.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(W.emojiId))){U.push(W.emojiId);
break}}}return{categoryId:-1,emojiIds:U}};
_.X.computeSearchEmptyMessage_=function(H,U){return H&&U&&U.emojiIds&&U.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.X.computeSearching_=function(H){return this.emojiManager&&H.replace(oek,"").length>1};
_.X.computeSkinToneHidden=function(){var H;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((H=this.data)==null||!H.hideSkinTonePicker)};
_.X.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.X.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.X.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.X.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.X.selectSkinTone_=function(H){H=Number(H.target.getAttribute("tone"));this.set("emojiManager.skinTone",H);_.yr(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[H]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.X.skinToneChanged_=function(){_.c4(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var H=_.c4(this.hostElement).querySelector("#dropdown-content").children,U=0;U<H.length;U++)U===this.skinTone?H[U].setAttribute("selected",""):H[U].removeAttribute("selected")};
_.X.animateScroll_=function(H){this.lastAnimationTime_||(this.lastAnimationTime_=H);H-=this.lastAnimationTime_;H<200?(_.c4(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*H/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.c4(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.X.searchChanged_=function(){this.updateButtons_()};
_.X.updateButtons_=function(){var H=null;if(!this.search)for(var U=_.c4(this.hostElement).querySelector("#categories").scrollTop,A=_.c4(this.hostElement).querySelector("#categories").children,M=0;M<A.length;M++){var W=A[M];W.offsetTop<=U&&(H=W.id)}U=_.c4(this.hostElement).querySelector("#category-buttons").children;for(A=0;A<U.length;A++)M=U[A],M.active=M.id===H};
ee.prototype.searchChanged_=ee.prototype.searchChanged_;ee.prototype.skinToneChanged_=ee.prototype.skinToneChanged_;ee.prototype.onEmojiHover_=ee.prototype.onEmojiHover_;ee.prototype.onSelectCategory_=ee.prototype.onSelectCategory_;ee.prototype.onShowEmojiVariantSelector=ee.prototype.onShowEmojiVariantSelector;ee.prototype.updateCategoriesAndPlaceholder_=ee.prototype.updateCategoriesAndPlaceholder_;ee.prototype.dataChanged=ee.prototype.dataChanged;
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ee.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ee.prototype,"data",void 0);_.G([_.y({value:function(){return[]}}),
_.q("design:type",Array)],ee.prototype,"categories",void 0);_.G([_.y({value:function(){return[]}}),
_.q("design:type",Array)],ee.prototype,"categoryButtons",void 0);_.G([_.y({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.q("design:type",Boolean)],ee.prototype,"disableScroll",void 0);_.G([_.y({computed:"computeId_(data)",reflectToAttribute:!0}),_.q("design:type",String)],ee.prototype,"id",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],ee.prototype,"selected",void 0);
_.G([_.y({value:!1}),_.q("design:type",Boolean)],ee.prototype,"disableIncrementalLoading",void 0);_.G([_.y(),_.q("design:type",String)],ee.prototype,"placeholder",void 0);_.G([_.y({value:""}),_.q("design:type",String)],ee.prototype,"search",void 0);_.G([_.y({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.q("design:type",Boolean)],ee.prototype,"searching",void 0);_.G([_.y({computed:"computeSearchCategory_(search)"}),_.q("design:type",Object)],ee.prototype,"searchCategory",void 0);
_.G([_.y({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.q("design:type",Object)],ee.prototype,"searchEmptyMessage",void 0);_.G([_.y({computed:"identity(emojiManager.skinTone)"}),_.q("design:type",Number)],ee.prototype,"skinTone",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],ee.prototype,"skinToneOpened",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],ee.prototype,"variantSelectorOpened",void 0);
_.G([_.y({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.q("design:type",Boolean)],ee.prototype,"skinToneHidden",void 0);_.G([_.y(),_.q("design:type",_.Jb)],ee.prototype,"emojiManager",void 0);_.G([_.y(),_.q("design:type",Object)],ee.prototype,"emojiVariantSelector",void 0);_.G([_.y(),_.q("design:type",Object)],ee.prototype,"emojiMultiPersonSelector",void 0);
_.G([_.y({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.q("design:type",Boolean)],ee.prototype,"shouldUseStickyPreferences",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ee.prototype,"dataChanged",null);_.G([_.Ya("data","selected"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ee.prototype,"updateCategoriesAndPlaceholder_",null);
_.G([_.Gl("yt-show-emoji-variant-selector"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],ee.prototype,"onShowEmojiVariantSelector",null);_.G([_.Gl("yt-emoji-picker-select-category"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],ee.prototype,"onSelectCategory_",null);_.G([_.Gl("yt-emoji-hover"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],ee.prototype,"onEmojiHover_",null);
_.G([_.Ya("skinTone"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ee.prototype,"skinToneChanged_",null);_.G([_.Ya("search"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ee.prototype,"searchChanged_",null);_.G([_.b0({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],ee);
_.e(ee,"yt-emoji-picker-renderer",function(){if(u2r===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;O6n===void 0&&(O6n=document.createElement("template"));var M=O6n;A.call(U,M.content.cloneNode(!0),H.content.firstChild);u2r=H}H=u2r;return H},{mode:2});var D_=function(){var H=_.B.apply(this,arguments)||this;H.emojiManager=_.Fn;H.isDarkTheme=document.documentElement.hasAttribute("dark");H.selectedIndex=1;H.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return H};
_.R(D_,_.B);_.X=D_.prototype;_.X.handleEmojiCustomizationVisible=function(H){this.emojiPickerRenderer.selected=H;this.selectedIndex=1;H?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.X.emojiCustomizationSetChanged=function(){var H;(H=this.data)!=null&&H.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.jN(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.X.updateSaveButtonState=function(H){var U;(U=this.data)!=null&&U.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.hs("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:H}))};
_.X.emojiUrl=function(H){H=_.Ka(this.emojiManager,H);if(!H)return"";var U;H=(U=H.image)==null?void 0:U.thumbnails;return _.Rv(H,24)||""};
_.X.emojiAlt=function(H){var U=_.Ka(this.emojiManager,H);if(!U)return H;var A,M,W,w=(U==null?void 0:(A=U.image)==null?void 0:(M=A.accessibility)==null?void 0:(W=M.accessibilityData)==null?void 0:W.label)||"";return w?w:U.isCustomEmoji?U.shortcuts[0]:U.emojiId||H};
_.X.emojiAriaLabel=function(H){var U,A;return((U=_.Ka(this.emojiManager,H))==null?void 0:(A=U.shortcuts)==null?void 0:A[0])||H};
_.X.onEmojiClick=function(H){H.model.index!==0&&(this.selectedIndex=H.model.index)};
_.X.onEmojiSelect=function(H){H=H.detail;var U,A;((U=this.data)==null?0:U.emojiCustomizationSetEntityKey)&&((A=this.emojiCustomizationSet)==null?0:A.emojiId)&&H.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,H.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.hs("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,H.emojiId,this.selectedIndex)}))};
_.X.canEditEmoji=function(H,U,A){H=H.indexOf(U);return H===A||H===0||A===0?!1:!0};
_.X.getUpdatedEmojiIdList=function(H,U,A){var M=H.indexOf(U);H=[].concat(_.vI(H));M>=0&&(H[M]=H[A]);H[A]=U;return H};
_.D5.Object.defineProperties(D_,{template:{configurable:!0,enumerable:!0,get:function(){if(B5w===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;yvw===void 0&&(yvw=document.createElement("template"));var M=yvw;A.call(U,M.content.cloneNode(!0),H.content.firstChild);B5w=H}H=B5w;return H}}});
D_.prototype.onEmojiSelect=D_.prototype.onEmojiSelect;_.G([_.g(_.dv),_.q("design:type",Object)],D_.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],D_.prototype,"ytActionHandlerBehavior",void 0);_.G([_.hG("yt-emoji-picker-renderer"),_.q("design:type",Object)],D_.prototype,"emojiPickerRenderer",void 0);
_.G([_.y({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(H,U){return _.rH(H.entities,"emojiCustomizationSetEntity",U)},
observer:"emojiCustomizationSetChanged"}),_.q("design:type",Object)],D_.prototype,"emojiCustomizationSet",void 0);_.G([_.y(),_.q("design:type",Object)],D_.prototype,"originalEmojiSet",void 0);_.G([_.y(),_.q("design:type",_.Jb)],D_.prototype,"emojiManager",void 0);_.G([_.y(),_.q("design:type",Object)],D_.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],D_.prototype,"isDarkTheme",void 0);_.G([_.y(),_.q("design:type",Object)],D_.prototype,"selectedIndex",void 0);
_.G([_.Gl("yt-emoji-select"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],D_.prototype,"onEmojiSelect",null);_.G([_.b0({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],D_);var PGn;var sbm;var NCk;var SKy;var $v=function(){var H=_.B.apply(this,arguments)||this;H.authorBadges=[];return H};
_.R($v,_.B);_.X=$v.prototype;_.X.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.X.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]]"}}}}}};
_.X.dataChanged=function(){var H=Bcc(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",H)};
_.X.updateMessage=function(){var H=this.data.message,U=_.c4(_.c4(this.hostElement).querySelector("#message"));U.textContent="";H&&U.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(H))};
_.X.shouldSupportWholeItemClick=function(){return!0};
_.X.onShowOriginalClick=function(H){H.preventDefault();this.showOriginal=!0};
_.X.computeShowBar=function(H,U,A){return H&&U||A};
_.X.computeAuthorBadges=function(H){return H.authorBadges||[]};
_.X.computeAuthorIsOwner=function(H){return!!rZE(H.authorBadges,"owner")};
_.X.computeAuthorNameColor=function(H){var U;if(_.S("live_chat_author_name_color_usernames")&&(H==null?0:(U=H.authorName)==null?0:U.simpleText))return _.$6E(_.lwF(H.authorName.simpleText));if(_.S("live_chat_seed_color_usernames")&&(H==null?0:H.authorSeedColorArgb))return _.$6E(_.BX(H.authorSeedColorArgb));if(_.S("live_chat_colored_usernames"))return"#cc0000";var A;return _.S("live_chat_simple_color_usernames")&&(H==null?0:(A=H.authorName)==null?0:A.simpleText)&&(H==null?0:H.authorUsernameColorLight)&&
(H==null?0:H.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.BX(H.authorUsernameColorDark):_.BX(H.authorUsernameColorLight):""};
$v.prototype.updateMessage=$v.prototype.updateMessage;$v.prototype.dataChanged=$v.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.PN.YtLiveChatItemBehavior),_.q("design:type",_.s8)],$v.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],$v.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],$v.prototype,"data",void 0);
_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],$v.prototype,"showOriginal",void 0);_.G([_.y({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.q("design:type",Boolean)],$v.prototype,"isDimmed",void 0);_.G([_.y({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.q("design:type",Boolean)],$v.prototype,"showBar",void 0);
_.G([_.y({computed:"computeAuthorBadges(data)"}),_.q("design:type",Array)],$v.prototype,"authorBadges",void 0);_.G([_.y({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],$v.prototype,"authorIsOwner",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],$v.prototype,"inCollapsedBanner",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],$v.prototype,"inBanner",void 0);
_.G([_.y({value:_.S("live_chat_hide_avatars"),reflectToAttribute:!0}),_.q("design:type",Boolean)],$v.prototype,"avatarHidden",void 0);_.G([_.y({computed:"computeAuthorNameColor(data)"}),_.q("design:type",String)],$v.prototype,"authorNameColor",void 0);_.G([_.y(),_.q("design:type",_.Se)],$v.prototype,"participantsManager",void 0);_.G([_.y({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.q("design:type",Object)],$v.prototype,"filledButtonOverrides",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$v.prototype,"dataChanged",null);_.G([_.Ya("data.message"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$v.prototype,"updateMessage",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],$v);
_.e($v,"yt-live-chat-text-message-renderer",function(){if(SKy===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;NCk===void 0&&(NCk=document.createElement("template"));var M=NCk;A.call(U,M.content.cloneNode(!0),H.content.firstChild);SKy=H}H=SKy;return H},{mode:0});var l8=function(){var H=_.B.apply(this,arguments)||this;H.tonalButtonOverrides={type:"tonal",style:"overlay"};return H};
_.R(l8,_.B);
l8.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]]"}}}}}};
l8.prototype.shouldSupportInlineActionButtons=function(){return!0};
l8.prototype.shouldSupportWholeItemClick=function(){return!0};
_.D5.Object.defineProperties(l8.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.PN.YtLiveChatItemBehavior),_.q("design:type",_.s8)],l8.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],l8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],l8.prototype,"data",void 0);_.G([_.y(),_.q("design:type",_.Se)],l8.prototype,"participantsManager",void 0);
_.G([_.y(),_.q("design:type",Object)],l8.prototype,"tonalButtonOverrides",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data.infoDialogButton"),_.q("design:type",Object),_.q("design:paramtypes",[])],l8.prototype,"hasInfoDialogButton",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],l8);
_.e(l8,"yt-live-chat-auto-mod-message-renderer",function(){if(sbm===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;PGn===void 0&&(PGn=document.createElement("template"));var M=PGn;A.call(U,M.content.cloneNode(!0),H.content.firstChild);sbm=H}H=sbm;return H},{mode:0});var pTB;var Lph;var Rzz;var EeH=function(){return _.B.apply(this,arguments)||this};
_.R(EeH,_.B);_.G([_.y(),_.q("design:type",Object)],EeH.prototype,"data",void 0);_.G([_.dX({is:"ytd-factoid-renderer",disableElementRegistration:!0})],EeH);
_.e(EeH,"ytd-factoid-renderer",function(){if(Rzz!==void 0)return Rzz;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Rzz=H},{mode:1});var GO=function(){return _.B.apply(this,arguments)||this};
_.R(GO,_.B);GO.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.G([_.y(),_.q("design:type",Object)],GO.prototype,"data",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],GO);
_.e(GO,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Lph===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;pTB===void 0&&(pTB=document.createElement("template"));var M=pTB;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Lph=H}H=Lph;return H},{mode:0});var m7y;var geB;var Yv=function(){return _.B.apply(this,arguments)||this};
_.R(Yv,_.B);Yv.prototype.ready=function(){var H=document.querySelector("yt-live-chat-app");H&&H.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Boolean)],Yv.prototype,"menuFocused",void 0);_.G([_.y(),_.q("design:type",Object)],Yv.prototype,"data",void 0);_.G([_.g(_.PN.YtLiveChatItemBehavior),_.q("design:type",_.s8)],Yv.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Yv);
_.e(Yv,"yt-live-chat-donation-announcement-renderer",function(){if(geB===void 0){var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;m7y===void 0&&(m7y=document.createElement("template"));var M=m7y;A.call(U,M.content.cloneNode(!0),H.content.firstChild);geB=H}H=geB;return H},{mode:0});var asr;var x7k,zzH=function(){if(x7k!==void 0)return x7k;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;asr===void 0&&(asr=document.createElement("template"));var M=asr;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return x7k=H};var qI=function(){return _.B.apply(this,arguments)||this};
_.R(qI,_.B);_.D5.Object.defineProperties(qI,{template:{configurable:!0,enumerable:!0,get:function(){return zzH()}}});
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],qI.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],qI.prototype,"data",void 0);_.G([_.b0({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],qI);_.e(qI,"yt-live-chat-empty-feed-view-model",function(){return zzH()},{mode:0});var CG2;var tHB;var hb=function(){return _.B.apply(this,arguments)||this};
_.R(hb,_.B);hb.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"}}}}}};
_.D5.Object.defineProperties(hb.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var H,U;return{runs:[{text:(H=this.data)==null?void 0:(U=H.channelName)==null?void 0:U.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var H=[],U;if((U=this.data)==null||!U.channelBadges)return H;var A;U=_.b((A=this.data)==null?void 0:A.channelBadges);for(A=U.next();!A.done;A=U.next()){A=_.p(A.value,Low);var M=void 0,W=void 0;if((M=A)==null?0:(W=M.badgeImage)==null?0:W.sources)M=void 0,W={liveChatAuthorBadgeRenderer:{tooltip:A.tooltip,accessibility:{accessibilityData:{label:(M=_.p(A.rendererContext,_.Tn))==null?void 0:M.label}}}},A.badgeImage.sources[0].clientResource?W.liveChatAuthorBadgeRenderer.icon=
{iconType:A.badgeImage.sources[0].clientResource.imageName}:W.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:A.badgeImage.sources},H.push(W)}return H}}});
_.G([_.y(),_.q("design:type",Object)],hb.prototype,"data",void 0);_.G([_.a("data.channelName"),_.q("design:type",Object),_.q("design:paramtypes",[])],hb.prototype,"channelName",null);_.G([_.a("data.channelBadges"),_.q("design:type",Array),_.q("design:paramtypes",[])],hb.prototype,"channelBadges",null);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],hb.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],hb);
_.e(hb,"yt-live-chat-identity-view-model",function(){if(tHB===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;CG2===void 0&&(CG2=document.createElement("template"));var M=CG2;A.call(U,M.content.cloneNode(!0),H.content.firstChild);tHB=H}H=tHB;return H},{mode:0});var cCw;var yCB;var BC3;var rCw;var kv=function(){var H=_.B.apply(this,arguments)||this;H.hidden=!1;H.supportsInlineActionButtons=!0;return H};
_.R(kv,_.B);kv.prototype.ready=function(){var H;((H=document.querySelector("yt-live-chat-app"))==null?0:H.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
kv.prototype.dataChanged=function(H){var U=(0,_.ek)(_.c4(this.hostElement).querySelector("#detail-text"));U.textContent="";(H==null?0:H.detailText)&&U.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(H.detailText))};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.PN.YtLiveChatItemBehavior),_.q("design:type",_.s8)],kv.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y({observer:"dataChanged"}),_.q("design:type",Object)],kv.prototype,"data",void 0);
_.G([_.y({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.q("design:type",Object)],kv.prototype,"hidden",void 0);_.G([_.dX({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],kv);
_.e(kv,"yt-live-chat-legacy-paid-message-renderer",function(){if(rCw===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;BC3===void 0&&(BC3=document.createElement("template"));var M=BC3;A.call(U,M.content.cloneNode(!0),H.content.firstChild);rCw=H}H=rCw;return H},{mode:0});var ezz;var D7p;var $7p={},vN=function(){return _.v4.apply(this,arguments)||this};
_.R(vN,_.v4);vN.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
vN.prototype.onLiveChatMembershipItemBehaviorClick=vN.prototype.onLiveChatMembershipItemBehaviorClick;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],vN.prototype,"data",void 0);_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],vN.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.G([_.Tl()],vN);
$7p.YtLiveChatMembershipItemBehavior=[vN.prototype,_.I.YtRendererBehavior];var TO=function(){var H=_.B.apply(this,arguments)||this;H.supportsInlineActionButtons=!0;H.hasPrimaryHeaderText=!1;H.showOnlyHeader=!1;H.authorBadges=[];H.modern=_.S("web_button_rework_with_live");H.buttonOverrides={style:"overlay",type:"filled"};return H};
_.R(TO,_.B);_.X=TO.prototype;_.X.shouldSupportInlineActionButtons=function(){return!0};
_.X.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.X.ready=function(){var H=document.querySelector("yt-live-chat-app");H&&H.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.X.messageChanged=function(){var H=this.data.message,U=(0,_.ek)(_.c4(this.hostElement).querySelector("#message"));U.textContent="";H&&U.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(H))};
_.X.computeHasPrimaryHeaderText=function(H){return!(!H||!H.headerPrimaryText)};
_.X.computeShowOnlyHeader=function(H,U){return this.isMessageEmpty(H,U)};
_.X.computeAuthorBadges=function(H){return H.authorBadges||[]};
_.X.isMessageEmpty=function(H,U){return!H||H.empty?!0:!H.message&&!H.inputField&&!U};
_.X.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.X.getInputElement=function(){return _.c4(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.X.inputFocus=function(){var H=this.getInputElement();H&&H.focus()};
_.X.inputInsertEmoji=function(H){var U=this.getInputElement();U&&U.insertEmoji(H)};
_.X.inputMessage=function(){var H=this.getInputElement();return H&&this.data.inputField?(H.completeEmojis(),_.dT(H.liveChatRichMessageInput)):null};
_.X.onFooterButtonClick=function(){this.data.footerButton&&_.cg(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.X.shouldSupportWholeItemClick=function(){return!0};
TO.prototype.isDeletedChanged=TO.prototype.isDeletedChanged;TO.prototype.messageChanged=TO.prototype.messageChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.PN.YtLiveChatItemBehavior),_.q("design:type",_.s8)],TO.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.g($7p.YtLiveChatMembershipItemBehavior),_.q("design:type",Object)],TO.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],TO.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],TO.prototype,"data",void 0);_.G([_.y({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.q("design:type",Object)],TO.prototype,"hasPrimaryHeaderText",void 0);_.G([_.y({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.q("design:type",Object)],TO.prototype,"showOnlyHeader",void 0);
_.G([_.y({computed:"computeAuthorBadges(data)"}),_.q("design:type",Array)],TO.prototype,"authorBadges",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],TO.prototype,"modern",void 0);_.G([_.Ya("data.message"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TO.prototype,"messageChanged",null);_.G([_.Ya("isDeleted"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TO.prototype,"isDeletedChanged",null);
_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],TO);
_.e(TO,"yt-live-chat-membership-item-renderer",function(){if(D7p===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;ezz===void 0&&(ezz=document.createElement("template"));var M=ezz;A.call(U,M.content.cloneNode(!0),H.content.firstChild);D7p=H}H=D7p;return H},{mode:0});var lsk;var G_m;var je=function(){return _.B.apply(this,arguments)||this};
_.R(je,_.B);je.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],je.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],je.prototype,"data",void 0);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],je);
_.e(je,"yt-live-chat-mode-change-message-renderer",function(){if(G_m===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;lsk===void 0&&(lsk=document.createElement("template"));var M=lsk;A.call(U,M.content.cloneNode(!0),H.content.firstChild);G_m=H}H=G_m;return H},{mode:0});var YKh;var qKz;var IJ=function(){return _.B.apply(this,arguments)||this};
_.R(IJ,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.PN.YtLiveChatItemBehavior),_.q("design:type",_.s8)],IJ.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],IJ.prototype,"data",void 0);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],IJ);
_.e(IJ,"yt-live-chat-moderation-message-renderer",function(){if(qKz===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;YKh===void 0&&(YKh=document.createElement("template"));var M=YKh;A.call(U,M.content.cloneNode(!0),H.content.firstChild);qKz=H}H=qKz;return H},{mode:0});var hzh;var k_H;var Q1=function(){return _.B.apply(this,arguments)||this};
_.R(Q1,_.B);Q1.prototype.onClick=function(){var H;if((H=this.data)!=null&&H.onClickCommand){var U;_.$$.instance.resolveCommand((U=this.data)==null?void 0:U.onClickCommand)}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dv),_.q("design:type",Object)],Q1.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.g(_.PN.YtLiveChatItemBehavior),_.q("design:type",_.s8)],Q1.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Q1.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Q1.prototype,"data",void 0);
_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Q1);
_.e(Q1,"yt-live-chat-offer-click-count-message-renderer",function(){if(k_H===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;hzh===void 0&&(hzh=document.createElement("template"));var M=hzh;A.call(U,M.content.cloneNode(!0),H.content.firstChild);k_H=H}H=k_H;return H},{mode:0});var vep;var TCm=function(){return _.B.apply(this,arguments)||this};
_.R(TCm,_.B);_.G([_.y(),_.q("design:type",Object)],TCm.prototype,"data",void 0);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],TCm);
_.e(TCm,"yt-live-chat-placeholder-item-renderer",function(){if(vep===void 0){var H=document.createElement("template");_.E(H,"\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");H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);vep=H}H=vep;return H},{mode:0});var jbK;var Ism;var Qbz=new nq(7),V1=function(){var H=_.B.apply(this,arguments)||this;H.data={};return H};
_.R(V1,_.B);V1.prototype.dataChanged=function(){var H;((H=this.data)==null?0:H.class)&&_.B4(this.hostElement,this.data.class,!0);var U;((U=this.oldData)==null?0:U.class)&&_.B4(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
V1.prototype.computeTimestampString=function(H){return Qbz.format(new Date(H/1E3))};
V1.prototype.dataChanged=V1.prototype.dataChanged;_.G([_.y(),_.q("design:type",Object)],V1.prototype,"data",void 0);_.G([_.y({computed:"computeTimestampString(data.timestampUsec)"}),_.q("design:type",String)],V1.prototype,"timestampString",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],V1.prototype,"dataChanged",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],V1);
_.e(V1,"yt-live-chat-server-error-message",function(){if(Ism===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;jbK===void 0&&(jbK=document.createElement("template"));var M=jbK;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Ism=H}H=Ism;return H},{mode:0});var VHn;var HLz;var HA=function(){var H=_.B.apply(this,arguments)||this;H.defaultToFilledIcon=!1;return H};
_.R(HA,_.B);HA.prototype.computeHasPrimaryColorIcon=function(H){return H==="SPARK"||H==="SPONSORSHIP_STAR"};
HA.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.PN.YtLiveChatItemBehavior),_.q("design:type",_.s8)],HA.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],HA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],HA.prototype,"defaultToFilledIcon",void 0);_.G([_.y(),_.q("design:type",Object)],HA.prototype,"data",void 0);
_.G([_.y({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.q("design:type",Boolean)],HA.prototype,"hasPrimaryColorIcon",void 0);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],HA);
_.e(HA,"yt-live-chat-viewer-engagement-message-renderer",function(){if(HLz===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;VHn===void 0&&(VHn=document.createElement("template"));var M=VHn;A.call(U,M.content.cloneNode(!0),H.content.firstChild);HLz=H}H=HLz;return H},{mode:0});var UcH;var UF=function(){var H=_.B.apply(this,arguments)||this;H.modernUpdate=!1;H.buttonStyle="overlay";H.buttonType="filled";return H};
_.R(UF,_.B);UF.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
UF.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],UF.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],UF.prototype,"modernUpdate",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],UF.prototype,"buttonStyle",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],UF.prototype,"buttonType",void 0);
_.G([_.dX({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],UF);
_.e(UF,"ytd-ad-hover-text-button-renderer",function(){if(UcH!==void 0)return UcH;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return UcH=H},{mode:1});var Alr;var A1=function(){var H=_.B.apply(this,arguments)||this;H.buttonOverrides={size:"XS"};return H};
_.R(A1,_.B);A1.prototype.onHelpTap=function(H){this.data&&this.data.informationDialog&&(_.cg(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),H.preventDefault(),H.stopPropagation())};
_.G([_.y(),_.q("design:type",Object)],A1.prototype,"buttonOverrides",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],A1.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],A1);
_.e(A1,"ytd-live-chat-purchased-product-message-renderer",function(){if(Alr!==void 0)return Alr;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Alr=H},{mode:1});var MKh;var WA2;var MM=function(){var H=_.B.apply(this,arguments)||this;H.isContainerDeleted=!1;return H};
_.R(MM,_.B);MM.prototype.onContextMenuClick=function(H){this.ytLiveChatItemBehavior.showContextMenu(H)};
MM.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))};
MM.prototype.isContainerDeletedChanged=MM.prototype.isContainerDeletedChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],MM.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.PN.YtLiveChatItemBehavior),_.q("design:type",_.s8)],MM.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],MM.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],MM.prototype,"isContainerDeleted",void 0);
_.G([_.y(),_.q("design:type",String)],MM.prototype,"deletedStateMessage",void 0);_.G([_.Ya("isContainerDeleted"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],MM.prototype,"isContainerDeletedChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],MM);
_.e(MM,"ytd-sponsorships-live-chat-header-renderer",function(){if(WA2!==void 0)return WA2;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return WA2=H},{mode:1});var WA=function(){var H=_.B.apply(this,arguments)||this;H.modern=_.S("web_button_rework_with_live");H.buttonOverrides={style:"overlay",type:"filled"};return H};
_.R(WA,_.B);WA.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]]"}}}}}};
WA.prototype.onCtaButtonClick=function(){var H,U=_.p((H=this.data)==null?void 0:H.optInPrompt,_.f$);if(H=this.maybeGetButtonCommand(U)){var A;(A=_.k$())==null||A.clickCommand(H)}};
WA.prototype.maybeGetButtonCommand=function(H){return!H||!H.command||_.p(H.command,OmK)===void 0&&_.p(H.command,dMk)===void 0?null:H.command};
WA.prototype.shouldHideOptinPrompt=function(H,U){return!H||U};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],WA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.PN.YtLiveChatItemBehavior),_.q("design:type",_.s8)],WA.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],WA.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],WA.prototype,"modern",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],WA);
_.e(WA,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(MKh!==void 0)return MKh;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return MKh=H},{mode:1});var wzm;var wF=function(){return _.B.apply(this,arguments)||this};
_.R(wF,_.B);wF.prototype.onContextMenuClick=function(H){this.ytLiveChatItemBehavior.showContextMenu(H)};
wF.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))};
wF.prototype.isDeletedChanged=wF.prototype.isDeletedChanged;_.G([_.g(_.PN.YtLiveChatItemBehavior),_.q("design:type",_.s8)],wF.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],wF.prototype,"data",void 0);_.G([_.Ya("isDeleted"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wF.prototype,"isDeletedChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],wF);
_.e(wF,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(wzm!==void 0)return wzm;var H=document.createElement("template");_.E(H,'\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="star_circle_ribbon" 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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return wzm=H},{mode:1});var X3=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return H};
_.R(X3,_.B);_.X=X3.prototype;
_.X.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"}}}};
_.X.handleLiveChatAction=function(H){_.p(H,hZm)?this.handleMarkChatItemAsDeletedAction(_.p(H,hZm)):_.p(H,qxB)&&this.handleRemoveChatItemAction(_.p(H,qxB))};
_.X.handleLiveChatActions=function(H){H.forEach(this.handleLiveChatAction,this)};
_.X.handleMarkChatItemAsDeletedAction=function(H){var U=this,A;((A=this.data)==null?0:A.items)&&this.data.items.forEach(function(M,W){var w=Object.keys(M)[0];Object.values(M)[0].id===H.targetItemId&&U.markAsDeleted("data.items",W,w,H.deletedStateMessage,H.showOriginalContentMessage)})};
_.X.handleRemoveChatItemAction=function(H){var U=this,A;((A=this.data)==null?0:A.items)&&this.data.items.forEach(function(M,W){Object.values(M)[0].id===H.targetItemId&&U.splice("data.items",W,1)})};
_.X.markAsDeleted=function(H,U,A,M,W){H=[H,U,A].join(".");this.set(H+".deletedStateMessage",M);this.set(H+".showOriginalContentMessage",W)};
_.G([_.y(),_.q("design:type",Object)],X3.prototype,"data",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],X3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],X3.prototype,"ytActionHandlerBehavior",void 0);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],X3);
_.e(X3,"yt-live-chat-item-display-list-renderer",function(){if(yCB===void 0){var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;cCw===void 0&&(cCw=document.createElement("template"));var M=cCw;A.call(U,M.content.cloneNode(!0),H.content.firstChild);yCB=H}H=yCB;return H},{mode:0});var XzB;var iLn,bLw=function(){if(iLn!==void 0)return iLn;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;XzB===void 0&&(XzB=document.createElement("template"));var M=XzB;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return iLn=H};var iQ=function(){var H=_.B.apply(this,arguments)||this;H.isHeader=!1;return H};
_.R(iQ,_.B);iQ.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.D5.Object.defineProperties(iQ,{template:{configurable:!0,enumerable:!0,get:function(){return bLw()}}});
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],iQ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],iQ.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],iQ.prototype,"isHeader",void 0);_.G([_.b0({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],iQ);_.e(iQ,"yt-live-chat-item-display-renderer",function(){return bLw()},{mode:0});var dck,OLk,KAp,Jly;
dck={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}};OLk={home:"eohps",search:"eosps",watch:"eowps"};_.uey=["watch","search","home"];
_.bQ=function(){this.JSC$14718_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14718_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.gD("PRECONSTRUCTION_DELAY",0);this.signals_=_.sC();this.targetPage_=""};
_.bQ.prototype.init=function(H,U){H=H===void 0?"":H;U=U===void 0?null:U;if(this.JSC$14718_isInitialized_)this.abort();else if(this.JSC$14718_isInitialized_=!0,H&&_.ZLm(this,H),U){var A=_.n9(this.signals_,"pcl")?0:10,M=function(){for(var W=0,w;w=_.uey[W++];)w!=H&&w!=U&&this.pendingPages_.push(w);_.fQB(this)}.bind(this);
this.signals_.parkOrScheduleJob(M,A,"pcl")}};
_.bQ.prototype.abort=function(){this.fragmentJobId_&&(_.Fl.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Jly(this)};
_.ZLm=function(H,U){H.JSC$14718_isInitialized_&&!H.targetPage_&&(H.targetPage_=U,KAp(H,U),H.isInitialPass_=!1,KAp(H,U),H.signals_.processSignal(OLk[H.targetPage_]),Jly(H),_.fQB(H))};
_.fQB=function(H){H.pendingPages_.length&&!H.pagePreparerJobId_&&(H.pagePreparerJobId_=_.bM(_.Fl,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.ZLm(this,this.pendingPages_.shift())}.bind(H),H.DEFAULT_DELAY_))};
KAp=function(H,U){if(U=dck[U])for(var A in U){var M=!1,W=A;A.charAt(0)=="~"&&(M=!0,W=A.substring(1));var w=U[A];w=typeof w=="object"?w:{count:w};U[A]=w;w.componentName=W;w.count>0&&(H.isInitialPass_?M||H.isSeenDuringInitialPass_[W]||(H.JSC$14718_queue_.push({componentName:W,count:1,signals:w.signals}),H.isSeenDuringInitialPass_[W]=!0,w.count--):H.JSC$14718_queue_.push(w))}};
Jly=function(H){H.JSC$14718_queue_.length=0;H.targetPage_="";H.isInitialPass_=!0;H.signals_.processSignal("eop")};
_.bQ.getInstance=function(){return _.gz(_.bQ)};var o1h=function(){this.signals=_.sC();this.init()};
o1h.prototype.startPreconstruction=function(){_.bQ.getInstance().init(_.xV("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
o1h.prototype.init=function(){FAz(this);window.Polymer&&CHB&&c_F();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var H=_.Mr.ytcsi;if(H&&H.gt&&(H=H.gt())&&H.tick&&(H.tick.aft>0||H.tick.pbs>0)&&(_.xV("IS_HOMEPAGE_COLD")||_.xV("IS_RESULTS_PAGE_COLD")||_.xV("IS_WATCH_PAGE_COLD"))){P2k(this);break a}XXE(C1F,this.onNotifications,this)}};
var FAz=function(H){var U=function(){H.signals.processSignal("dl")};
document.readyState==="complete"?(_.c5(Error("vh"),"WARNING"),U()):_.cph(window,"load",U)};
o1h.prototype.onNotifications=function(H){H.timer||(_.xV("IS_HOMEPAGE_COLD")||_.xV("IS_RESULTS_PAGE_COLD")||_.xV("IS_WATCH_PAGE_COLD"))&&P2k(this)};
var P2k=function(H){H.signals.parkOrScheduleJob(function(){H.signals.processSignal("eocs")},10,"eor")};
new o1h;var s3k=function(){return _.v4.apply(this,arguments)||this};
_.R(s3k,_.v4);_.D5.Object.defineProperties(s3k.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_entity_store_from_dependency_injection")?_.Sq():_.Lq()}}});
_.G([_.Tl()],s3k);_.dF=[Ah.prototype,s3k.prototype];var n1r=["ytd-rich-shelf-renderer"],OF=function(){var H=_.v4.apply(this,arguments)||this;H._noAccessors=!0;H.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";H.followUpDialogPromise=null;H.followUpDialogPromiseResolve=null;H.followUpDialogPromiseReject=null;return H};
_.R(OF,_.v4);_.X=OF.prototype;_.X.dismissibleItemIsDismissedChanged_=function(H){_.S("kevlar_fluid_dismiss")&&(H?_.cg(this.hostElement,"yt-dismissible-item-dismissed"):_.cg(this.hostElement,"yt-dismissible-item-undismissed"))};
_.X.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.X.dismissibleItemReset_=function(){var H=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 _.IQ(function(U,A){H.followUpDialogPromiseResolve=U;H.followUpDialogPromiseReject=A});
_.cg(this.hostElement,"yt-enable-lockup-interaction")};
_.X.dismissibleItemOnYtServiceRequestSent_=function(H,U){U.actions&&this.dismissibleItemProcessActions(U.actions,H)};
_.X.dismissibleItemOnRequestSent=function(H){for(var U=_.b(H.detail),A=U.next();!A.done;A=U.next()){var M=void 0;(A=(M=_.p(A.value,_.GR))==null?void 0:M.actions)&&this.dismissibleItemProcessActions(A,H)}};
_.X.dismissibleItemOnCommandSent=function(H,U){U&&this.dismissibleItemProcessActions(U,H)};
_.X.setAndGetDismissedContentId=function(H){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+H};
_.X.replayDismissAction=function(H){this.dismissibleItemProcessActions([H])};
_.X.dismissibleItemProcessActions=function(H,U){for(var A=0;A<H.length;A++){var M=H[A],W=void 0;((W=_.p(M,_.$2))==null?0:W.commands)&&this.dismissibleItemProcessActions(_.p(M,_.$2).commands,U);if(_.p(M,_.hf)){if(W=_.p(M,_.hf),!W.replaceParentSection||n1r.includes(this.hostElement.nodeName.toLowerCase()))W.groupDismissal&&G_K(this,W.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(W),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.hs("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:M})),M=void 0,(M=U)==null||M.stopPropagation()}else if(_.p(M,rLz))this.dismissibleItemHandleHideEnclosingAction_(),M=void 0,(M=U)==null||M.stopPropagation();else if(_.p(M,OHz))M=_.p(M,OHz),W=void 0,((W=M)==null?0:W.targetGroupId)&&G_K(this,{targetGroupId:M.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.hs("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
M=void 0,(M=U)==null||M.stopPropagation();else if(_.p(M,_.GR))(M=_.p(M,_.GR).actions)&&_.eb(this.hostElement,M,this.hostElement),M=void 0,(M=U)==null||M.stopPropagation();else{var w=W=void 0;((W=_.p(M,_.ED))==null?void 0:W.signal)!=="TELL_US_WHY"||((w=_.p(M,_.ED))==null?0:w.targetId)&&_.S("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),M=void 0,(M=U)==null||M.stopPropagation())}}};
_.X.dismissibleItemOnYtServiceRequestCompleted_=function(H,U){var A=this.get("feedbackResponses.0.followUpDialog",U.data);A?this.followUpDialogPromiseResolve(A):U.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(U.actions,H)};
_.X.dismissibleItemHandleReplaceEnclosingAction_=function(H){this.dismissedRenderer=H.item;this.isDismissed=!0;var U=null;(U=_.c4(this.hostElement).querySelector("#dismissed"))&&_.rV(this,function(){_.cW(U)});
_.cg(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.X.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.X.dismissibleItemHandleUndoFeedbackAction_=function(){_.cg(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.X.dismissibleItemHandleTellUsWhySignalAction_=function(){var H=this;this.followUpDialogPromise.then(function(U){H.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:U}})})};
OF.prototype.dismissibleItemOnYtServiceRequestCompleted_=OF.prototype.dismissibleItemOnYtServiceRequestCompleted_;OF.prototype.dismissibleItemOnCommandSent=OF.prototype.dismissibleItemOnCommandSent;OF.prototype.dismissibleItemOnRequestSent=OF.prototype.dismissibleItemOnRequestSent;OF.prototype.dismissibleItemOnYtServiceRequestSent_=OF.prototype.dismissibleItemOnYtServiceRequestSent_;OF.prototype.dismissibleItemDataChanged_=OF.prototype.dismissibleItemDataChanged_;
OF.prototype.dismissibleItemIsDismissedChanged_=OF.prototype.dismissibleItemIsDismissedChanged_;_.G([_.g(_.m1),_.q("design:type",Object)],OF.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],OF.prototype,"ytdReduxBehavior",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],OF.prototype,"isDismissed",void 0);_.G([_.y(),_.q("design:type",Object)],OF.prototype,"dismissedRenderer",void 0);
_.G([_.Ya("isDismissed"),_.q("design:type",Function),_.q("design:paramtypes",[Boolean]),_.q("design:returntype")],OF.prototype,"dismissibleItemIsDismissedChanged_",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],OF.prototype,"dismissibleItemDataChanged_",null);
_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],OF.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.G([_.Gl("yt-service-request-sent-button-renderer"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],OF.prototype,"dismissibleItemOnRequestSent",null);
_.G([_.Gl("yt-dismissible-item-action"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Array]),_.q("design:returntype")],OF.prototype,"dismissibleItemOnCommandSent",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],OF.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.G([_.Tl()],OF);_.uQ=[_.m1,_.dF,OF.prototype];var Za=function(){var H=_.v4.apply(this,arguments)||this;H.disableGridStateAware=!1;H.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};H.currentGridClass="";return H};
_.R(Za,_.v4);Za.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.rV(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var H=this.gridStateAwareGetElement();_.B4(H,"grid",!0)}};
Za.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Za.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.c4(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Za.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var H="grid-disabled";else{H=_.yN.getInstance();var U=this.get("pageSubtype");H=U&&L_p.includes(U)?"grid-disabled":H.currentSnapState_?H.currentSnapState_.className:null}(U=this.gridStateAwareGetElement())&&H!==this.currentGridClass&&(H&&_.B4(U,H,!0),this.currentGridClass&&_.B4(U,this.currentGridClass,!1),this.currentGridClass=H)};
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Za.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",String)],Za.prototype,"gridStateAwareSizingElementSelector",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Za.prototype,"disableGridStateAware",void 0);_.G([_.Tl()],Za);_.fm=[Za.prototype,_.$y.YtActionHandlerBehavior];_.J1=new _.g3("GUIDE_TOKEN");var oN;_.Km={};oN=function(){var H=_.v4.apply(this,arguments)||this;H.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 H};
_.R(oN,_.v4);_.X=oN.prototype;_.X.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.X.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var H=_.lx().resolve(_.$V(_.J1));H&&(this.guidePersistentAndVisible=H.getGuidePersistentAndVisible(),this.activeEndpoint=H.getActiveEndpoint(),this.guideOpened=H.getGuideOpened(),this.miniGuideVisible=H.getMiniGuideVisible())};
_.X.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.X.handleGuideStateAction=function(H){this.guidePersistentAndVisible=H};
_.X.handleMiniGuideStateAction=function(H){this.miniGuideVisible=H};
_.X.handleGuideOpenedAction=function(H){this.guideOpened=H};
_.X.handleActiveEndpointAction=function(H){this.activeEndpoint=H};
oN.prototype.onActiveEndpointChange=oN.prototype.onActiveEndpointChange;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],oN.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],oN.prototype,"guidePersistentAndVisible",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],oN.prototype,"miniGuideVisible",void 0);_.G([_.y(),_.q("design:type",Object)],oN.prototype,"activeEndpoint",void 0);
_.G([_.Ya("activeEndpoint"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],oN.prototype,"onActiveEndpointChange",null);_.G([_.y(),_.q("design:type",Boolean)],oN.prototype,"guideOpened",void 0);_.G([_.Tl()],oN);_.Km.YtdGuideStateAwareBehavior=[];_.Km.YtdGuideStateAwareBehavior.push(oN.prototype,_.$y.YtActionHandlerBehavior);var Nwh=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],F3=function(){var H=_.v4.apply(this,arguments)||this;H.hoverJobId=0;H.JSC$14745_touched=!1;return H};
_.R(F3,_.v4);_.X=F3.prototype;_.X.created=function(){this.useExpandableTooltip=!Nwh.includes(this.is)};
_.X.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.X.detached=function(){this.useExpandableTooltip=!1};
_.X.lockupOnDown=function(H){this.interactionElement&&!_.ny(_.Lf(H),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.X.lockupOnUp=function(H){this.interactionElement&&!_.ny(_.Lf(H),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.X.onTouchStart=function(){this.JSC$14745_touched=!0};
_.X.lockupOnMouseEnter=function(){var H=this,U=_.hr("kevlar_lockup_hover_delay",-1);this.JSC$14745_touched&&U>=0?(_.Fl.cancelJob(this.hoverJobId),this.hoverJobId=_.Fl.addJob(function(){H.lockupIsHovered=!0},8,U),this.JSC$14745_touched=!1):this.lockupIsHovered=!0};
_.X.lockupOnMouseLeave=function(){this.hoverJobId&&(_.Fl.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.X.lockupOnPopupClosed=function(H,U){var A;((A=U.popupRenderer)==null?void 0:A.is)==="ytd-menu-popup-renderer"&&(H=U.popupRenderer.veData,U=_.XK(),H&&U&&_.nE(U,[H]))};
_.X.lockupOnLockupRequested=function(H){var U=H.detail.videoIds[0],A;H.detail&&U===((A=this.data)==null?void 0:A.videoId)&&(H.detail.returnValue=[this.data])};
_.X.lockupOnYtServiceRequestSent=function(H,U){if(H=U.actions)for(var A=0;A<H.length;A++){var M=H[A];if(M.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&U.ajaxPromise){var W=void 0,w=(W=_.p(U.endpoint,_.dk))==null?void 0:W.playlistId;W=void 0;M=(W=M.removedVideoId)!=null?W:"";jV3(_.SZ(),M,w)}else M.action==="ACTION_REMOVE_VIDEO"&&U.ajaxPromise&&(w=void 0,M=(w=M.setVideoId)!=null?w:"",_.Io2(_.SZ(),M))}};
_.X.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.X.lockupOnLockupEnabled=function(){if(!this.$){var H=_.lx().resolve(_.SI).getCurrentPage(),U=this.getParentRenderer?this.getParentRenderer():void 0;_.Na(new _.bD("component not ready",this.is,this.isAttached,H==null?void 0:H.is,U==null?void 0:U.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
F3.prototype.lockupOnLockupEnabled=F3.prototype.lockupOnLockupEnabled;F3.prototype.lockupOnLockupDisabled=F3.prototype.lockupOnLockupDisabled;F3.prototype.lockupOnYtServiceRequestSent=F3.prototype.lockupOnYtServiceRequestSent;F3.prototype.lockupOnLockupRequested=F3.prototype.lockupOnLockupRequested;F3.prototype.lockupOnPopupClosed=F3.prototype.lockupOnPopupClosed;F3.prototype.lockupOnMouseLeave=F3.prototype.lockupOnMouseLeave;F3.prototype.lockupOnMouseEnter=F3.prototype.lockupOnMouseEnter;
F3.prototype.onTouchStart=F3.prototype.onTouchStart;F3.prototype.lockupOnUp=F3.prototype.lockupOnUp;F3.prototype.lockupOnDown=F3.prototype.lockupOnDown;_.G([_.y(),_.q("design:type",Object)],F3.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],F3.prototype,"lockupIsHovered",void 0);_.G([_.y(),_.q("design:type",Boolean)],F3.prototype,"lockupTouchTriggered",void 0);_.G([_.y(),_.q("design:type",Boolean)],F3.prototype,"useExpandableTooltip",void 0);
_.G([_.hG("#interaction"),_.q("design:type",Object)],F3.prototype,"interactionElement",void 0);_.G([_.Gl("down"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],F3.prototype,"lockupOnDown",null);_.G([_.Gl("up"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],F3.prototype,"lockupOnUp",null);
_.G([_.Gl("touchstart"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],F3.prototype,"onTouchStart",null);_.G([_.Gl("mouseenter"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],F3.prototype,"lockupOnMouseEnter",null);_.G([_.Gl("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],F3.prototype,"lockupOnMouseLeave",null);
_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],F3.prototype,"lockupOnPopupClosed",null);_.G([_.Gl("yt-lockup-requested"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],F3.prototype,"lockupOnLockupRequested",null);
_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],F3.prototype,"lockupOnYtServiceRequestSent",null);_.G([_.Gl("yt-disable-lockup-interaction"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],F3.prototype,"lockupOnLockupDisabled",null);
_.G([_.Gl("yt-enable-lockup-interaction"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],F3.prototype,"lockupOnLockupEnabled",null);_.G([_.Tl()],F3);_.PA=[F3.prototype];_.SLh={YtdReduxBehavior:[]};_.SLh.YtdReduxBehavior.push.apply(_.SLh.YtdReduxBehavior,_.dF);var sF=function(){var H=_.v4.apply(this,arguments)||this;H._noAccessors=!0;H.disableNowPlaying=!1;H.disableTooltips=!1;H.useHoveredProperty=!1;H.hovered=!1;H.isThumbnailHovered_=!1;H.addBackground=_.S("kevlar_thumbnail_bg");H.nowPlaying=!1;H.disableRounding=!1;H.size="small";return H};
_.R(sF,_.v4);_.X=sF.prototype;_.X.computeThumbnailOverlaySidePanelWidth_=function(H,U){return H-U};
_.X.computeSize=function(H,U){if(!this.disableRounding){if(!H&&!U)return"small";H=Math.max(H||0,U||0);return H>=256?"large":H>=96?"medium":"small"}};
_.X.computeFinalHoveredState_=function(H,U,A){return this.nowPlaying?!1:_.S("kevlar_thumbnail_fluid")&&H?U:A};
_.X.computeHoverOverlays_=function(H,U){return H&&U?U:void 0};
_.X.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.X.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.X.checkMiniplayer_=function(){var H;if(((H=this.data)==null?0:H.playlistSetVideoId)&&_.S("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{H=_.vc();var U=H.currentEndpoint;!this.disableNowPlaying&&U&&_.p(U,_.sH)&&this.data?(U=_.p(U,_.sH),this.nowPlaying=this.data.playlistId?U.playlistId===this.data.playlistId:U.videoId===this.data.videoId,this.isVideoPlaying=H==null?void 0:H.isVideoPlaying):this.nowPlaying=!1}};
sF.prototype.checkMiniplayer_=sF.prototype.checkMiniplayer_;sF.prototype.onMouseLeave_=sF.prototype.onMouseLeave_;sF.prototype.onMouseEnter_=sF.prototype.onMouseEnter_;sF.prototype.computeHoverOverlays_=sF.prototype.computeHoverOverlays_;sF.prototype.computeFinalHoveredState_=sF.prototype.computeFinalHoveredState_;sF.prototype.computeSize=sF.prototype.computeSize;sF.prototype.computeThumbnailOverlaySidePanelWidth_=sF.prototype.computeThumbnailOverlaySidePanelWidth_;
_.G([_.g(_.dF),_.q("design:type",Object)],sF.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],sF.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Number)],sF.prototype,"height",void 0);_.G([_.y(),_.q("design:type",Boolean)],sF.prototype,"bottomSidePanel",void 0);_.G([_.y(),_.q("design:type",Number)],sF.prototype,"width",void 0);_.G([_.y(),_.q("design:type",Object)],sF.prototype,"disableNowPlaying",void 0);
_.G([_.y({selector:_.iE}),_.q("design:type",Boolean)],sF.prototype,"miniplayerIsActive",void 0);_.G([_.y(),_.q("design:type",Object)],sF.prototype,"disableTooltips",void 0);_.G([_.y(),_.q("design:type",Object)],sF.prototype,"useHoveredProperty",void 0);_.G([_.y(),_.q("design:type",Object)],sF.prototype,"hovered",void 0);_.G([_.y(),_.q("design:type",Object)],sF.prototype,"isThumbnailHovered_",void 0);
_.G([_.y({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.q("design:type",Boolean)],sF.prototype,"finalHoveredState_",void 0);_.G([_.y({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.q("design:type",Number)],sF.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],sF.prototype,"addBackground",void 0);
_.G([_.y({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.q("design:type",Object)],sF.prototype,"hoverOverlays_",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],sF.prototype,"nowPlaying",void 0);_.G([_.y(),_.q("design:type",Boolean)],sF.prototype,"isVideoPlaying",void 0);_.G([_.y(),_.q("design:type",Object)],sF.prototype,"disableRounding",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.q("design:type",Object)],sF.prototype,"size",void 0);_.G([_.Gl("mouseenter"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sF.prototype,"onMouseEnter_",null);_.G([_.Gl("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sF.prototype,"onMouseLeave_",null);
_.G([_.Ya("data","disableNowPlaying","miniplayerIsActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sF.prototype,"checkMiniplayer_",null);_.G([_.Tl()],sF);var pzB=[sF.prototype];_.nm={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(H,U){return H+":"+_.vF(U)},
getPlayerListener_:function(H,U,A){H=this.getPlayerListenerKey_(H,U);U=this.playerListeners_.get(H);A&&this.playerListeners_.delete(H);return U},
savePlayerListener_:function(H,U){var A=U.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(H,U),A);return A},
listenToPlayerEvent:function(H,U,A){A=this.savePlayerListener_(U,A);H.addEventListener(U,A)},
listenToPlayerEvents:function(H,U){U.forEach(function(A,M){this.listenToPlayerEvent(H,M,A)}.bind(this))},
unlistenFromPlayerEvent:function(H,U,A){A=this.getPlayerListener_(U,A,!0);H.removeEventListener(U,A)},
unlistenFromPlayerEvents:function(H,U){U.forEach(function(A,M){this.unlistenFromPlayerEvent(H,M,A)}.bind(this))}}};
_.NM=function(){};_.LAr=new _.g3("PLAYER_API_TOKEN");var k_t=!1,IsK,TCK=!1,VH7;var mY=function(H,U,A,M,W){_.XG.call(this);var w=this;this.playerId=U;this.webPlayerContextConfig=M;this.dJ2=W;this.tSx=!1;this.api={};this.xkK=this.rHN=null;this.ptf=new _.HK;this.v0={};this.eM7=this.aiL=this.elementId=this.adG=this.config=null;this.mC2=!1;this.xg=this.zrc=null;this.yTf={};this.iyE=["onReady"];this.lastError=null;this.kHf=NaN;this.x32={};this.gYj=0;this.jY=this.targetElement=H;_.kl(this,this.ptf);RVw(this);A?this.gYj=setTimeout(function(){w.loadNewVideoConfig(A)},0):M&&(E1h(this),
mcm(this))};
_.R(mY,_.XG);mY.prototype.getId=function(){return this.playerId};
mY.prototype.loadNewVideoConfig=function(H){if(!this.isDisposed()){this.gYj&&(clearTimeout(this.gYj),this.gYj=0);var U=H||{};U instanceof A_m||(U=new A_m(U));this.config=U;this.setConfig(H);mcm(this);this.isReady()&&g13(this)}};
var E1h=function(H){var U;H.webPlayerContextConfig?U=H.webPlayerContextConfig.rootElementId:U=H.config.attrs.id;H.elementId=U||H.elementId;H.elementId==="video-player"&&(H.elementId=H.playerId,H.webPlayerContextConfig?H.webPlayerContextConfig.rootElementId=H.playerId:H.config.attrs.id=H.playerId);var A;((A=H.jY)==null?void 0:A.id)===H.elementId&&(H.elementId+="-player",H.webPlayerContextConfig?H.webPlayerContextConfig.rootElementId=H.elementId:H.config.attrs.id=H.elementId)};
mY.prototype.setConfig=function(H){this.adG=H;this.config=aQw(H);E1h(this);if(!this.aiL){var U;this.aiL=xc2(this,((U=this.config.args)==null?void 0:U.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var A;if((A=this.config)==null?0:A.attrs)H=this.config.attrs,(U=H.width)&&this.jY&&(this.jY.style.width=PQ(Number(U)||U,!0)),(H=H.height)&&this.jY&&(this.jY.style.height=PQ(Number(H)||H,!0))};
mY.prototype.getConfig=function(){return this.adG};
var g13=function(H){if(H.config&&H.config.loaded!==!0)if(H.config.loaded=!0,!H.config.args||H.config.args.autoplay!=="0"&&H.config.args.autoplay!==0&&H.config.args.autoplay!==!1){var U;H.api.loadVideoByPlayerVars((U=H.config.args)!=null?U:null)}else H.api.cueVideoByPlayerVars(H.config.args)},C23=function(H){var U=!0,A=H.getPlayerElement();
A&&H.config&&(U=A.dataset.version===zVp(H));return U&&!!_.tr("yt.player.Application.create")},mcm=function(H){if(!H.isDisposed()&&!H.mC2){var U=C23(H);
if(U&&(H.getPlayerElement()?"html5":null)==="html5")H.eM7="html5",H.isReady()||tKg(H);else if(clh(H),H.eM7="html5",U&&H.xg&&H.targetElement)H.targetElement.appendChild(H.xg),tKg(H);else{H.config&&(H.config.loaded=!0);var A=!1;H.zrc=function(){A=!0;var M=ylH(H,"player_bootstrap_method")?_.tr("yt.player.Application.createAlternate")||_.tr("yt.player.Application.create"):_.tr("yt.player.Application.create");var W=H.config?aQw(H.config):void 0;M&&M(H.targetElement,W,H.webPlayerContextConfig,H.dJ2);tKg(H)};
H.mC2=!0;U?H.zrc():(_.f1(zVp(H),H.zrc),(U=Bwy(H))&&Aqc(U||""),rlK(H)&&!A&&_.eC("yt.player.Application.create",null))}}};
mY.prototype.getPlayerElement=function(){var H=_.E3(document,this.elementId);!H&&this.jY&&this.jY.querySelector&&(H=this.jY.querySelector("#"+this.elementId));return H};
var tKg=function(H){if(!H.isDisposed()){var U=H.getPlayerElement(),A=!1;U&&U.getApiInterface&&U.getApiInterface()&&(A=!0);if(A){H.mC2=!1;if(!ylH(H,"html5_remove_not_servable_check_killswitch")){var M;if((U==null?0:U.isNotServable)&&H.config&&(U==null?0:U.isNotServable((M=H.config.args)==null?void 0:M.video_id)))return}eVw(H)}else H.kHf=setTimeout(function(){tKg(H)},50)}},eVw=function(H){RVw(H);
H.tSx=!0;var U=H.getPlayerElement();if(U){H.rHN=Dc3(H,U,"addEventListener");H.xkK=Dc3(H,U,"removeEventListener");var A=U.getApiInterface();A=A.concat(U.getInternalApiInterface());for(var M=H.api,W=0;W<A.length;W++){var w=A[W];M[w]||(M[w]=Dc3(H,U,w))}}for(var d in H.v0)H.v0.hasOwnProperty(d)&&H.rHN&&H.rHN(d,H.v0[d]);g13(H);H.aiL&&H.aiL(H.api);H.ptf.publish("onReady",H.api)},Dc3=function(H,U,A){var M=U[A];
return function(){var W=_.QY.apply(0,arguments);try{return H.lastError=null,M.apply(U,W)}catch(w){if(A!=="sendAbandonmentPing")throw w.params=A,H.lastError=w,W=new _.bD("PlayerProxy error in method call",{error:w,method:A,playerId:H.playerId}),W.level="WARNING",W;}}},RVw=function(H){H.tSx=!1;
if(H.xkK)for(var U in H.v0)H.v0.hasOwnProperty(U)&&H.xkK(U,H.v0[U]);for(var A in H.x32)H.x32.hasOwnProperty(A)&&clearTimeout(Number(A));H.x32={};H.rHN=null;H.xkK=null;U=H.api;for(var M in U)U.hasOwnProperty(M)&&(U[M]=null);U.addEventListener=function(W,w){H.addEventListener(W,w)};
U.removeEventListener=function(W,w){H.removeEventListener(W,w)};
U.destroy=function(){H.dispose()};
U.getLastError=function(){return H.getLastError()};
U.getPlayerType=function(){return H.getPlayerType()};
U.getCurrentVideoConfig=function(){return H.getConfig()};
U.loadNewVideoConfig=function(W){H.loadNewVideoConfig(W)};
U.isReady=function(){return H.isReady()}};
mY.prototype.isReady=function(){return this.tSx};
mY.prototype.addEventListener=function(H,U){var A=this;this.isDisposed();var M=xc2(this,U);M&&(_.y0(this.iyE,H)||this.v0[H]||(U=$cn(this,H),this.rHN&&this.rHN(H,U)),this.ptf.subscribe(H,M),H==="onReady"&&this.isReady()&&setTimeout(function(){M(A.api)},0))};
mY.prototype.removeEventListener=function(H,U){this.isDisposed()||(U=xc2(this,U))&&this.ptf.unsubscribe(H,U)};
var xc2=function(H,U){var A=U;if(typeof U==="string"){if(H.yTf[U])return H.yTf[U];A=function(){var M=_.QY.apply(0,arguments),W=_.tr(U);if(W)try{W.apply(_.Mr,M)}catch(w){throw M=new _.bD("PlayerProxy error when executing callback",{error:w}),M.level="ERROR",M;}};
H.yTf[U]=A}return A?A:null},$cn=function(H,U){var A=function(M){var W=function(){H.isDisposed();
if(!H.isDisposed())try{H.ptf.publish(U,M!=null?M:void 0)}catch(O){var d=new _.bD("PlayerProxy error when creating global callback",{error:O.message,event:U,playerId:H.playerId,data:M,originalStack:O.stack,componentStack:O.componentStack});d.level="WARNING";throw d;}};
if(ylH(H,"web_player_publish_events_immediately"))W();else{var w=setTimeout(function(){W();_.dG.remove(H.x32,String(w))},0);
_.dG.add(H.x32,String(w),!0)}};
return H.v0[U]=A};
mY.prototype.getPlayerType=function(){return this.eM7||(this.getPlayerElement()?"html5":null)};
mY.prototype.getLastError=function(){return this.lastError};
var clh=function(H){H.cancel();RVw(H);H.eM7=null;H.config&&(H.config.loaded=!1);var U=H.getPlayerElement();U&&(C23(H)||!rlK(H)?H.xg=U:(U&&U.destroy&&U.destroy(),H.xg=null));H.targetElement&&_.Zn(H.targetElement)};
mY.prototype.cancel=function(){this.zrc&&_.NkV(zVp(this),this.zrc);clearTimeout(this.kHf);this.mC2=!1};
mY.prototype.disposeInternal=function(){clh(this);if(this.xg&&this.config&&this.xg.destroy)try{this.xg.destroy()}catch(U){var H=new _.bD("PlayerProxy error during disposal",{error:U});H.level="ERROR";throw H;}this.yTf=null;for(H in this.v0)this.v0.hasOwnProperty(H)&&delete this.v0[H];this.adG=this.config=this.api=null;delete this.targetElement;delete this.jY;_.XG.prototype.disposeInternal.call(this)};
var rlK=function(H){var U,A;H=(U=H.config)==null?void 0:(A=U.args)==null?void 0:A.fflags;return!!H&&H.indexOf("player_destroy_old_version=true")!==-1},zVp=function(H){return H.webPlayerContextConfig?H.webPlayerContextConfig.jsUrl:(H=H.config.assets)?H.js:""},Bwy=function(H){return H.webPlayerContextConfig?H.webPlayerContextConfig.cssUrl:(H=H.config.assets)?H.css:""},ylH=function(H,U){if(H.webPlayerContextConfig)var A=H.webPlayerContextConfig.serializedExperimentFlags;
else{var M;if((M=H.config)==null?0:M.args)A=H.config.args.fflags}return(A||"").split("&").includes(U+"=true")},aQw=function(H){for(var U={},A=_.b(Object.keys(H)),M=A.next();!M.done;M=A.next()){M=M.value;
var W=H[M];U[M]=typeof W==="object"?_.dG.clone(W):W}return U};var WA8={},MK0="player_uid_"+(Math.random()*1E9>>>0);var SA=function(H,U,A,M,W,w){U=U===void 0?document.createElement("div"):U;this.webPlayerContextConfig=H;this.container=U;this.commandResolver=A;this.apiResolver=iL7();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.r1;M||w?lQB(this):Ghp(this);this.pendingPlayerResponse=M;this.pendingWatchNextResponse=W;this.pendingPlayerVars=w;YLh(this)};
SA.prototype.loadVideoWithPlayerResponse=function(H,U,A){this.loadVideo(H,U,A)};
SA.prototype.loadVideoWithPlayerVars=function(H){return this.loadVideo(void 0,void 0,H)};
SA.prototype.destroy=function(H){if(H=_.E3(document,H))H=MK0+"_"+_.vF(H),(H=WA8[H])&&H.dispose()};
var hVy=function(H,U){var A;_.u(function(M){if(M.nextAddress==1)return H.pendingWatchNextResponse=U,H.synchronousApi?(A=H.synchronousApi,M.jumpTo(2)):M.yield(H.api,3);M.nextAddress!=2&&(A=M.yieldResult);if(!qLz(H,A))return M.return();H.pendingWatchNextResponse&&(A.updateVideoData({raw_watch_next_response:H.pendingWatchNextResponse}),H.pendingWatchNextResponse=void 0);_.DO(M)})},qLz=function(H,U){var A;
if(!(U==null?0:(A=U.isReady)==null?0:A.call(U))){var M;_.Na(new _.bD("playerApi is falsey",{synchronousApi:H.synchronousApi,apiResolved:H.apiResolver.resolved,playerApiUndefined:U===void 0,playerApiNull:U===null,playerApiReady:(U==null?void 0:(M=U.isReady)==null?void 0:M.call(U))===!0,playerApiMethods:U?Object.keys(U):[]}));return!1}return!0},khw=function(H,U){if(typeof H[U]==="function")return H[U]()},v1w=function(H){var U=window,A,M=(A=U.ytplayer)==null?void 0:A.bootstrapPlayerContainer;
if((A=M==null?void 0:M.firstElementChild)&&_.Rw(A,"html5-video-player")){var W,w,d=(W=U.ytplayer)==null?void 0:(w=W.bootstrapWebPlayerContextConfig)==null?void 0:w.contextId;W=H.webPlayerContextConfig.contextId;if(d&&d===W){M!==H.container&&(M=!1,khw(A,"getPlayerState")===2&&(M=!0),H.container.appendChild(A),M||khw(A,"playVideo"));var O;if((O=U.ytplayer)==null?0:O.bootstrapPlayerResponse)H.bootstrapPlayerResponse=U.ytplayer.bootstrapPlayerResponse}}},YLh=function(H){var U,A,M,W,w;
_.u(function(d){if(d.nextAddress==1)return H.pageReadyOrDataAvailable?d.jumpTo(2):d.yield(H.pageReadyOrDataAvailableResolver.promise,2);if(d.nextAddress!=4)return!_.S("kevlar_player_unified_player_loading")||ver()&&jbc()?d.jumpTo(4):d.yield(Uct(),4);v1w(H);if(H.pendingPlayerResponse||H.pendingPlayerVars)U=AlF(H.pendingPlayerResponse,H.pendingWatchNextResponse,H.pendingPlayerVars),H.pendingPlayerResponse&&H.pendingPlayerResponse===H.bootstrapPlayerResponse&&(U.loaded=!0),H.bootstrapPlayerResponse=
void 0;A=XzE(H.container,U,H.webPlayerContextConfig);((M=U)==null?0:M.loaded)&&H.pendingWatchNextResponse?(hVy(H,H.pendingWatchNextResponse),H.pendingPlayerResponse=void 0,H.pendingPlayerVars=void 0):Twp(H);W=function(O){A.removeEventListener("onReady",W);H.synchronousApi=O;H.apiResolver.resolve(O)};
A.addEventListener("onReady",W);H.commandResolver!==void 0&&(w=H.commandResolver,A.addEventListener("innertubeCommand",function(O){w(O)}));
_.DO(d)})};
SA.prototype.loadVideo=function(H,U,A){var M=this,W,w,d,O,f,J,F,P,n;return _.u(function(N){if(N.nextAddress==1)return M.pendingPlayerResponse=H,M.pendingWatchNextResponse=U,M.pendingPlayerVars=A,lQB(M),M.synchronousApi?(W=M.synchronousApi,N.jumpTo(2)):N.yield(M.api,3);N.nextAddress!=2&&(W=N.yieldResult);if(!qLz(M,W))return N.return(new Promise(function(){}));
d=new Promise(function(L){w=L});
O=function(){var L=W.getPlayerResponse();L&&(W.removeEventListener("onVideoDataChange",O),w(L))};
W.addEventListener("onVideoDataChange",O);if(M.pendingPlayerResponse||M.pendingPlayerVars)M.pendingPlayerResponse&&M.pendingPlayerResponse===M.bootstrapPlayerResponse?(w(M.pendingPlayerResponse),M.pendingWatchNextResponse&&hVy(M,M.pendingWatchNextResponse)):(f=AlF(M.pendingPlayerResponse,M.pendingWatchNextResponse,M.pendingPlayerVars),(n=(J=M.pendingPlayerResponse)==null?void 0:(F=J.playerConfig)==null?void 0:(P=F.playbackStartConfig)==null?void 0:P.startPaused)?W.cueVideoByPlayerVars(f.args):W.loadVideoByPlayerVars(f.args)),
Twp(M),M.bootstrapPlayerResponse=void 0;return N.return(d)})};
var Ghp=function(H){if(document.readyState==="complete"||document.readyState==="interactive")lQB(H);else{var U=function(){document.removeEventListener("DOMContentLoaded",U);lQB(H)};
document.addEventListener("DOMContentLoaded",U)}},lQB=function(H){H.pageReadyOrDataAvailable=!0;
H.pageReadyOrDataAvailableResolver.resolve()},Twp=function(H){H.pendingPlayerResponse=void 0;
H.pendingWatchNextResponse=void 0;H.pendingPlayerVars=void 0};
_.D5.Object.defineProperties(SA.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var pm=function(H){i6.call(this,H===void 0?"document_active":H);var U=this;this.overridePriority=10;this.JSC$14778_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(A){U.transition("document_disposed",{event:A})});
window.addEventListener("beforeunload",function(A){U.transition("document_disposed_preventable",{event:A})});
window.addEventListener("unload",function(A){U.transition("document_disposed",{event:A});U.JSC$14778_hasRun=new Map})};
_.R(pm,i6);
pm.prototype.runPreventableDispose=function(H,U){if(!this.JSC$14778_hasRun.get("document_disposed_preventable")){H(U==null?void 0:U.event);var A,M;if((U==null?0:(A=U.event)==null?0:A.defaultPrevented)||(U==null?0:(M=U.event)==null?0:M.returnValue)){U.event.returnValue||(U.event.returnValue=!0);U.event.defaultPrevented||U.event.preventDefault();this.JSC$14778_hasRun=new Map;this.transition("document_active");return}}this.JSC$14778_hasRun.set("document_disposed_preventable",!0);this.JSC$14778_hasRun.get("document_disposed")?this.transition("flush_logs"):
this.transition("document_disposed")};
pm.prototype.runDispose=function(H,U){this.JSC$14778_hasRun.get("document_disposed")?this.transition("document_active"):(H(U==null?void 0:U.event),this.JSC$14778_hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
pm.prototype.runFlush=function(H,U){H(U==null?void 0:U.event);this.transition("document_active")};
pm.prototype.runActive=function(){};var Lm=function(H){i6.call(this,H===void 0?"document_visibility_unknown":H);var U=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(A){document.visibilityState==="visible"?U.transition("document_visible",{event:A}):U.transition("document_hidden",
{event:A})});
_.S("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(A){U.transition("document_backgrounded",{event:A})}),window.addEventListener("focus",function(A){U.transition("document_foregrounded",{event:A})}))};
_.R(Lm,i6);Lm.prototype.runVisible=function(H,U){H(U==null?void 0:U.event);_.S("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Lm.prototype.runHidden=function(H,U){H(U==null?void 0:U.event);_.S("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Lm.prototype.runBackgrounded=function(H,U){H(U==null?void 0:U.event)};
Lm.prototype.runForegrounded=function(H,U){H(U==null?void 0:U.event)};var RN=function(){this.teardownLifecycle=new pm;this.visibilityLifecycle=new Lm};
RN.prototype.install=function(){var H=_.QY.apply(0,arguments),U=this;H.forEach(function(A){U.teardownLifecycle.install(A)});
H.forEach(function(A){U.visibilityLifecycle.install(A)})};var EF=function(){RN.call(this);var H={};this.install((H.document_disposed={callback:this.abortSlisAndFlush},H));_.S("combine_ve_grafts")&&(H={},this.install((H.document_disposed={callback:this.flushInteractionLoggingAttachVes},H)));H={};this.install((H.flush_logs={callback:this.logFinalPayload},H));_.S("web_log_cfg_cee_ks")||_.bM(_.Fl,j3m)};
_.R(EF,RN);var bLV=function(){EF.loggingInstance||(EF.loggingInstance=new EF);return EF.loggingInstance};
EF.prototype.logFinalPayload=function(){if(_.S("web_fp_via_jspb")){var H=new bqw,U=_.XK();U&&_.Mu(H,1,U);U=_.S("jspb_sparse_encoded_pivot")?new iM([{}]):new iM;_.tR(U,380,dhr,H);n6E("finalPayload",U);_.S("web_fp_via_jspb_and_json")&&_.Fx("finalPayload",{csn:_.XK()})}else _.Fx("finalPayload",{csn:_.XK()})};
EF.prototype.abortSlisAndFlush=function(){eLB(n$);NJ!=null&&NJ.flush()};
EF.prototype.flushInteractionLoggingAttachVes=function(){iCm(_.k$())};
var j3m=function(){var H=_.gD("CLIENT_EXPERIMENT_EVENTS");if(H){var U=dp0();H=_.b(H);for(var A=H.next();!A.done;A=H.next())A=A.value,U(A)&&_.Fx("genericClientExperimentEvent",{eventType:A});delete _.EW.CLIENT_EXPERIMENT_EVENTS}};var IQ3={};
IQ3.YtPlayerBehavior=[_.nm.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 H=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.r1;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;dch(function(){H.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.nK(this,"pan-down"),_.S("kevlar_pinch_fullscreen")&&_.vd().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.S("kevlar_pinch_fullscreen")&&_.vd().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(H,U,A){var M=this;gT(this.useUnifiedPlayer_());if(this.mainAppPlayer_)gT(!1,"MainAppPlayer already created.");else{var W=_.S("kevlar_player_container_query_killswitch")?this.$.container:_.c4(this.hostElement).querySelector("#container");this.mainAppPlayer_=new SA(this.getWebPlayerContextConfig_(),W,function(w){return _.l0(w,M.hostElement)},H,U,A);
this.mainAppPlayer_.api.then(function(w){M.player_=w;M.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&buh.resolve(w)})}},
loadVideoWithPlayerResponse:function(H,U){var A=this;if(this.useUnifiedPlayer_()){var M=this.watchNextData,W,w=(W=H.videoDetails)==null?void 0:W.videoId,d,O,f;(W=(d=this.watchNextData)==null?void 0:(O=d.currentVideoEndpoint)==null?void 0:(f=O.watchEndpoint)==null?void 0:f.videoId)&&w!=W&&(M=void 0,_.S("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(H,M,U):this.createMainAppPlayer_(H,M,U);this.mainAppPlayer_.api.then(function(){_.cg(A.hostElement,
"yt-player-updated")})}else this.update(YK0(H,U))},
loadVideoWithPlayerVars:function(H){var U=this;this.useUnifiedPlayer_()?(_.S("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(H):this.createMainAppPlayer_(void 0,void 0,H),this.mainAppPlayer_.api.then(function(){_.cg(U.hostElement,"yt-player-updated")})):this.update({args:H})},
update:function(H){var U=this;if(this.useUnifiedPlayer_())gT(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(H);var A=xJ8(H.args);A&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==A&&Object.assign(H.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(H).then(function(M){_.cg(U.hostElement,"yt-player-updated",_.S("kevlar_player_updated_obsolete_player_killswitch")?
M:void 0)})}_.n5(new _.bD("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(H){var U=this,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(U.getPlayerPromise(),2);A=M.yieldResult;if(!A)throw Error("xh");H&&U.updatePlayerPlaylist_(H);_.DO(M)})},
acquireApi_:function(H){var U=this;if(this.useUnifiedPlayer_())gT(!1,"Invalid method call in kevlar_unified_player.");else return _.Fl.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(gT(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(A){U.shouldAutoplay_(H)?A.loadVideoByPlayerVars(H.args):A.cueVideoByPlayerVars(H.args)})):this.initPlayerPromise_=this.initPlayerContainer_(H),this.initPlayerPromise_},
initPlayerContainer_:function(H){var U=this;if(this.useUnifiedPlayer_())gT(!1,"Invalid method call in kevlar_unified_player.");else return gT(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Na(Error("yh")),gT(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.S("kevlar_player_container_query_killswitch")?this.$.container:_.c4(this.hostElement).querySelector("#container"),Uct().then(function(){var A=U.initPlayer_(H);U.playerResolver_.resolve(A);
return A})},
onPlayerReady_:function(H,U){this.useUnifiedPlayer_()?gT(!1,"Invalid method call in kevlar_unified_player."):(H.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&buh.resolve(H),U(H))},
maybeCallApiMethodOnElement_:function(H,U){if(typeof H[U]==="function")return H[U]()},
maybeAdoptBootstrapPlayer_:function(){var H=window,U,A=(U=H.ytplayer)==null?void 0:U.bootstrapPlayerContainer;if((U=A==null?void 0:A.firstElementChild)&&U.classList.contains("html5-video-player")){var M,W,w=(M=H.ytplayer)==null?void 0:(W=M.bootstrapWebPlayerContextConfig)==null?void 0:W.contextId;M=this.getWebPlayerContextConfig_().contextId;if(w&&w===M){A!==this.playerContainer_&&(A=!1,this.maybeCallApiMethodOnElement_(U,"getPlayerState")===2&&(A=!0),this.playerContainer_.appendChild(U),A||this.maybeCallApiMethodOnElement_(U,
"playVideo"));var d;if((d=H.ytplayer)==null?0:d.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=H.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(H){var U=this;if(this.useUnifiedPlayer_())gT(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(A){U.maybeAdoptBootstrapPlayer_();var M=H?qKM(H):void 0;M&&M==U.bootstrapPlayerResponse_&&(H.loaded=!0);M=U.playerContainer_;var W=U.getWebPlayerContextConfig_();M=XzE(M,H,W);U.player_=M;U.onPlayerReadyEvent_=U.onPlayerReady_.bind(U,U.player_,A);U.player_.addEventListener("onReady",U.onPlayerReadyEvent_);U.player_.addEventListener("innertubeCommand",
U.onPlayerInnerTubeCommand_.bind(U))})},
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(H){H.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(H){H.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var H=_.lx().resolve(_.SI).getCurrentPage();H&&H.getScrollTop()<=0?_.nK(this,"pan-down"):_.nK(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(H){H.isFullscreen()||H.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(H){H.isFullscreen()&&H.toggleFullscreen()})},
updatePlayerPlaylist_:function(H){var U=this,A,M,W;return _.u(function(w){if(w.nextAddress==1)return A=_.lx().resolve(_.$V(_.FX)),M=!!(A&&A.playlistComponent&&A.playlistComponent.loopOn),w.yield(U.getPlayerPromise(),2);var d=W=w.yieldResult,O=d.updatePlaylist,f=[];if(_.S("kevlar_player_playlist_use_local_index")){var J,F;var P=(F=(J=H.localCurrentIndex)!=null?J:H.currentIndex)!=null?F:0}else{var n;P=(n=H.currentIndex)!=null?n:0}if(H.contents)for(J=0;J<H.contents.length;J++)if((F=H.contents[J])&&F.playlistPanelVideoRenderer)if(RLh(F)){F=
F.playlistPanelVideoRenderer;n="";F.shortBylineText&&(n=_.Sp(F.shortBylineText));var N="";F.title?N=_.Sp(F.title):F.unplayableText&&(N=_.Sp(F.unplayableText));f.push({author:n,title:N,encrypted_id:F.videoId})}else J<P&&--P;O.call(d,{index:P,list:H.playlistId?H.playlistId:"",loop:M,playlist_title:H.title,playlist_length:f.length,video:f,fetch:0,external_list:"1",title:H.title?H.title:"",playlist_author:H.ownerName?_.Sp(H.ownerName):void 0});_.DO(w)})},
focusOnPlayer:function(){_.rV(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var H=this.playerContainer_.querySelector(".html5-video-player");H&&(_.mE(_.lx().resolve(_.qe)),H.focus())}})},
preparePlayer:function(){var H=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(U){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")U();else{var A=function(){document.removeEventListener("DOMContentLoaded",A);U()};
document.addEventListener("DOMContentLoaded",A)}})).then(function(){return Uct()}).then(function(){H.initPlayerPromise_||H.preparePlayerJobId_||(H.preparePlayerJobId_=_.bM(_.Fl,function(){H.initPlayerPromise_||(H.initPlayerPromise_=H.initPlayerContainer_())}))}):_.n5(new _.bD("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(H){this.useUnifiedPlayer_()?gT(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(H)||(H.args.autoplay="0")},
shouldAutoplay_:function(H){if(this.useUnifiedPlayer_())gT(!1,"Invalid method call in kevlar_unified_player.");else{var U=this.get("args.el",H);return U&&U!="detailpage"&&this.isMiniplayerActive_()||U&&(U=="sponsorshipsoffer"||U=="handlesclaiming")&&this.get("args.autoplay",H)=="0"?!1:(H=qKM(H))&&this.get("playerConfig.playbackStartConfig.startPaused",H)?!1:!0}},
isMiniplayerActive_:function(){return _.lx().resolve(_.ZB).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var H=this.getPlayer();if(H){var U=H.getPlayerState();_.S("kevlar_player_check_ad_state_on_stop")&&(U=H.getPlayerState(H.getPresentingPlayerType()));U!=5&&H.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(H,U,A){A=A===void 0?!1:A;var M=this,W,w,d,O;return _.u(function(f){if(f.nextAddress==1)return U||(U=M.hostElement),W=M.useUnifiedPlayer_()?!!M.mainAppPlayer_:!!M.initPlayerPromise_,W?f.yield(M.getPlayerPromise(),2):(A?H.insertBefore(U,H.firstChild):H.appendChild(U),f.return());w=f.yieldResult;d=w.getPlayerState(w.getPresentingPlayerType());O=!1;if(d==-1||d==1||d==3)O=!0;A?H.insertBefore(U,H.firstChild):H.appendChild(U);O&&w.playVideo();w.setSize(NaN,NaN);_.DO(f)})},
watchNextDataChanged_:function(H){var U=this;H&&(this.useUnifiedPlayer_()&&_.S("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&hVy(this.mainAppPlayer_,H):this.getPlayerPromise().then(function(A){A.updateVideoData(U.computeWatchNextPlayerVars_(H))}))},
computeWatchNextPlayerVars_:function(H){if(this.useUnifiedPlayer_()&&_.S("kevlar_unified_player_update_watch_next_killswitch"))gT(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:H}},
maybeSendAbandonmentPing_:function(){var H=this.getPlayer();H&&H.getPlayerState()!=5&&H.getPlayerState()!=0&&H.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var H=_.gD("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(H=Object.assign({},H),H.rootElementId=this.playerId);H.serializedExperimentIds&&H.serializedExperimentFlags||_.Na(Error("zh"));return H},
hasWebPlayerContextConfig_:function(){return!!_.gD("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(H){this.useUnifiedPlayer_()?gT(!1,"Invalid method call in kevlar_unified_player."):_.l0(H,this.hostElement)},
useUnifiedPlayer_:function(){var H=_.S("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.S("kevlar_unified_player")||H}}];var Q33={};Q33.YtPlaylistPanelBehavior=[_.I.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(H){H=H.detail;if(H.actions.loop!=void 0||H.actions["yt-icons:loop"]!=void 0)this.loopOn=H.actions.loop||H.actions["yt-icons:loop"];if(H.actions.shuffle!=void 0||H.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=H.actions.shuffle||H.actions["yt-icons:shuffle"]},
setMenuData_:function(H){if(!H||!H.playlistButtons||H.isInfinite)return null;for(var U=H.playlistButtons.menuRenderer.topLevelButtons,A=U.length,M=0;M<A;M++)if(U[M].toggleButtonRenderer){var W=U[M].toggleButtonRenderer;W.defaultIcon.iconType=="LOOP"&&this.loopOn?W.isToggled=this.loopOn:W.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(W.isToggled=this.shuffleOn)}return H.playlistButtons}}];_.gF={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(H,U,A){var M=this.getClickTarget_(U);if(M&&this.isClickAllowed_(M)){U.preventDefault();H=(0,_.dG.unsafeClone)(H);var W=this.getContainerBoundingRect();U=this.getRelativeClickXy_(U,W);this.expandEndpointUrlMacros_(H,{NX:U[0],NY:U[1],NB:M.code});A&&this.truncateWebCommendMetadataUrl_(H);_.cg(this.hostElement,"yt-navigate",{endpoint:H})}},
getClickTarget_:function(H){if(!this.clickTargetMap)return null;H=_.Lf(H)||[];H=_.b(H);for(var U=H.next();!U.done;U=H.next()){U=U.value;if(U===_.c4(this.hostElement).querySelector("#menu"))break;if(U=this.clickTargetMap.get(U.id))return U}return null},
getRelativeClickXy_:function(H,U){var A=Math.round(H.detail.x-U.left);H=Math.round(H.detail.y-U.top);return A<0||H<0?[null,null]:[A,H]},
getContainerBoundingRect:function(){return _.c4(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(H,U){for(var A=_.b(H.loggingUrls||[]),M=A.next();!M.done;M=A.next())M=M.value,M.baseUrl&&(M.baseUrl=q5c(M.baseUrl,U));H.urlEndpoint&&H.urlEndpoint.url&&(H.urlEndpoint.url=q5c(H.urlEndpoint.url,U));H.commandMetadata&&H.commandMetadata.webCommandMetadata&&H.commandMetadata.webCommandMetadata.url&&(H.commandMetadata.webCommandMetadata.url=q5c(H.commandMetadata.webCommandMetadata.url,U))},
truncateWebCommendMetadataUrl_:function(H){if(H.commandMetadata&&H.commandMetadata.webCommandMetadata&&H.commandMetadata.webCommandMetadata.url){var U=H.commandMetadata.webCommandMetadata.url,A=U.indexOf("&pp=");if(A>0){var M=U.indexOf("&",A+1);H.commandMetadata.webCommandMetadata.url=M>A&&M<U.length?U.slice(0,A)+U.slice(M):U.slice(0,A)}}},
configureClickTargets:function(H,U,A){this.containerId=H;this.clickTargetMap=new Map;H=_.b(U);for(U=H.next();!U.done;U=H.next())if(U=U.value,U.location){var M=A.get(U.location);M&&(_.B4(_.c4(this.hostElement).querySelector("#"+M),"yt-simple-endpoint",this.isClickAllowed_(U)),this.clickTargetMap.set(M,U))}},
isClickAllowed_:function(H){return H.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||H.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||H.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||H.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.aN={};
_.aN.YtLazyListBehavior=[_.LJ.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 H=(this.constructor.generatedFrom||this).observers;H||(H=[]);H.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
H}},
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 H=this.renderElementsOutsideVisibleArea_;H&&(jPy(H,4),H.processSignal())},
deepLazyListObserver_:function(H){var U=this;if(H){var A=H.value||[];if(this.itemsPath==H.path){var M=this.nonDeferredItemCount;H=0;M>-1&&A.length>M&&(H=_.gD("REMAINING_DOVA_DEFERRED_CHUNKS",-1));H>0?(M>0&&(M=A.slice(0,M),this.setInitialItemsOnDataChanged(M)),(M=this.renderElementsOutsideVisibleArea_)?M.cancel():(M=this.renderElementsOutsideVisibleArea_=new _.EY(2,"eocs"),_.cph(window,"scroll",function(){return U.renderDeferredElements()})),_.mg(M,function(){U.setInitialItemsOnDataChanged(A)}),_.mT("REMAINING_DOVA_DEFERRED_CHUNKS",
H-1)):this.setInitialItemsOnDataChanged(A)}else if(this.itemsPath+".splices"==H.path)this.onItemsUpdated_(A);
else M="shownItems"+H.path.substr(this.itemsPath.length),this.useSignals&&M==="shownItems.length"||this.notifyPath(M,H.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(H){H&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(H),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(H){H=H.indexSplices;for(var U=0,A=H.length;U<A;U++){var M=H[U];if(M.index<this.shownCount&&(M.removed&&this.splice("shownItems",M.index,M.removed.length),M.addedCount)){var W=M.object.slice(M.index,M.index+M.addedCount);M=["shownItems",M.index,0];M.push.apply(M,W);this.splice.apply(this,M)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(H){this.cancelPendingTasks_();H||(H=[]);this.items_=H;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&&(_.xV("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.rV(this,this.tryRenderChunk_)))},
fillRange_:function(H,U){this.canShowMore&&this.items_&&(H=this.items_.slice(H,U),H.unshift("shownItems"),this.push.apply(this,H),this.shownCount=U,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var H=this;this.canShowMore&&_.F8(this,"renderChunk",function(){H.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.xV("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.TB(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var H=this.renderElementsOutsideVisibleArea_;H&&(H.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var H=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(H-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=H;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(H){return Math.ceil(1E3/H)},
onCanShowMoreUpdated_:function(H){this.data&&this.items_!==null&&(H?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(H){!this.shouldUseTaskManager()&&this.data&&(!H&&this.canShowMore?(_.j67(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):H&&this.partiallyRenderedItems_.has(this.items_)&&(_.S("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Cm;_.x0={};
Cm=function(){var H=_.v4.apply(this,arguments)||this;H.atStart=!0;H.atEnd=!0;H.startIndex=0;H.endIndex=0;H.scrollCount=0;H.initialStartIndex=0;H.disableScrollEventListener=!1;H.useFloorScrolling=!1;H.isSearch=!1;H.dragging=!1;H.dragMouseStart=0;H.dragOffsetStart=0;H.disableWheelScroll=!1;H.centerListItems=!1;H.offset=0;H.minComponentWidth=0;H.marginWidthRight=0;H.marginWidthLeft=0;H.setButtonsStateRequested=!1;H.itemsVisibilityObserver=null;H.fullyVisibleItemsIndices=[];H.JSC$14807_onWheelScroll=function(U){if(H.isSearch&&
!H.disableWheelScroll&&_.S("desktop_enable_dmpanel_wheel_scroll")){var A=U.shiftKey?Math.abs(U.deltaY)>Math.abs(U.deltaX)?U.deltaY:U.deltaX:U.deltaX;A!==0&&(U.preventDefault(),H.ytLazyListBehavior.fillRemainingListItems(),H.offset+=A,z0(H),H.reposition_())}};
H.onPointerDown=function(U){VKm(H)&&(H.dragMouseStart=U.clientX,H.dragOffsetStart=H.offset,H.dragging=!0)};
H.onPointerMove=function(U){VKm(H)&&H.dragging&&(H.ytLazyListBehavior.fillRemainingListItems(),H.offset=H.dragOffsetStart-(U.clientX-H.dragMouseStart),z0(H),H.reposition_())};
H.onPointerUp=function(){VKm(H)&&(H.dragging=!1)};
return H};
_.R(Cm,_.v4);var H4k=function(H){var U=_.c4(H.hostElement).querySelector("#items").children;if(!U)return 0;var A=0;H=_.b(H.fullyVisibleItemsIndices);for(var M=H.next();!M.done;M=H.next())A+=U[M.value].clientWidth;return A},VKm=function(H){return H.isSearch&&_.S("desktop_enable_dmpanel_click_drag_scroll")};
Cm.prototype.created=function(){this.cachedViewportWidth=_.gD("initialInnerWidth")||window.innerWidth;this.JSC$14807_cachedViewportHeight=_.gD("initialInnerHeight")||window.innerHeight;_.gD("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.mT("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Cm.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.S("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();U8r(this)};
Cm.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.S("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var H;(H=this.itemsVisibilityObserver)==null||H.disconnect();this.itemsVisibilityObserver=null;var U;(U=this.itemsObserver)==null||U.disconnect()};
var U8r=function(H){var U=_.c4(H.hostElement).querySelector("#scroll-container");if(U){if(!H.itemsVisibilityObserver){var A=window.getComputedStyle(U).marginRight;H.itemsVisibilityObserver=new IntersectionObserver(function(M){AYn(H,M)},{root:U,
rootMargin:A,threshold:.98})}if(U=_.c4(H.hostElement).querySelector("#items"))H.itemsObserver=new yyn(U,function(M){Mhy(H,M)})}},Mhy=function(H,U){W2z(H)&&(Array.from(U.addedNodes).filter(function(A){return A.nodeType===Node.ELEMENT_NODE}).forEach(function(A){H.itemsVisibilityObserver&&H.itemsVisibilityObserver.observe(A)}),Array.from(U.removedNodes).filter(function(A){return A.nodeType===Node.ELEMENT_NODE}).forEach(function(A){H.itemsVisibilityObserver&&H.itemsVisibilityObserver.unobserve(A)}))},
AYn=function(H,U){var A=new Set(H.fullyVisibleItemsIndices);
U=_.b(U);for(var M=U.next();!M.done;M=U.next()){M=M.value;var W=M.target.parentElement;W?(W=Array.from(W.children).indexOf(M.target),M.isIntersecting?A.add(W):A.has(W)&&A.delete(W)):_.Na(new _.bD("Parent element not found",M.target.nodeName))}H.fullyVisibleItemsIndices=Array.from(A).sort(function(w,d){return w-d});
A.size===0?_.Na(new _.bD("No visible entries in horizontal list")):(H.startIndex=H.fullyVisibleItemsIndices[0],H.endIndex=H.fullyVisibleItemsIndices[H.fullyVisibleItemsIndices.length-1])},W2z=function(H){H.data?H=(H=H.data)&&H.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===H.itemSizeConstraint:!1:H=!1;
return H};
_.X=Cm.prototype;_.X.addScrollEventListeners=function(){var H=_.c4(this.hostElement).querySelector("#scroll-container");H.style.touchAction="pan-y";H.addEventListener("wheel",this.JSC$14807_onWheelScroll);H.addEventListener("pointerdown",this.onPointerDown);H.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.X.removeScrollEventListeners=function(){var H=_.c4(this.hostElement).querySelector("#scroll-container");H.removeEventListener("wheel",this.JSC$14807_onWheelScroll);H.removeEventListener("pointerdown",this.onPointerDown);H.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.X.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.rV(this,this.setStartIndex,[this.initialStartIndex])};
_.X.reposition_=function(){var H=_.gD("HTML_DIR")=="rtl"?"":"-",U=_.c4(this.hostElement).querySelector("#items");U&&(U.style.transform="translateX("+H+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.X.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.rV(this,this.setButtonsState_))};
_.X.setButtonsState_=function(){this.setButtonsStateRequested=!1;var H=_.c4(this.hostElement).querySelector("#items").firstElementChild;if(H){this.minComponentWidth||(this.minComponentWidth=wt2(this,H));H=_.c4(this.hostElement).querySelector("#scroll-container").clientWidth;var U=_.c4(this.hostElement).querySelector("#items");U=_.S("kevlar_horizontal_list_scroll_width_killswitch")?U.clientWidth:U.scrollWidth;var A=this.get(this.ytLazyListBehavior.itemsPath,this);if(A){var M=Math.round(H/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+M,A.length)-1)}this.ytLazyListBehavior.canShowMore?U+this.minComponentWidth>=this.offset+H&&(this.atEnd=!1):this.atEnd=this.offset+H>=U-20?!0:!1;this.atStart=this.offset<=20}};
_.X.setStartIndex=function(H){if(!this.minComponentWidth){var U=_.c4(this.hostElement).querySelector("#items").firstElementChild;if(!U)return;this.minComponentWidth=wt2(this,U)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*H;z0(this);this.reposition_()};
_.X.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.$G();var H=_.c4(this.hostElement).querySelector("#scroll-container").clientWidth;_.S("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=wt2(this,_.c4(this.hostElement).querySelector("#items").firstElementChild));H=this.useFloorScrolling?Math.floor(H/this.minComponentWidth)||1:Math.round(H/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&Xtw(this);this.offset+=W2z(this)?
H4k(this):H*this.minComponentWidth;z0(this);this.reposition_();this.scrollCount++};
_.X.prevClick_=function(){var H=_.c4(this.hostElement).querySelector("#scroll-container").clientWidth;H=this.useFloorScrolling?Math.floor(H/this.minComponentWidth)||1:Math.round(H/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=W2z(this)?H4k(this):this.minComponentWidth*this.scrollCount-1):this.offset-=W2z(this)?H4k(this):H*this.minComponentWidth;this.centerListItems&&Xtw(this);z0(this);this.reposition_()};
_.X.onIronResize_=function(){this.resizeSupportEnabled&&_.rV(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.X.onItemsTransitionEnd_=function(H){_.Rr(H)===_.c4(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.X.onChildElementFocus_=function(H){H=H.target.closest("#items > *");var U=_.c4(this.hostElement).querySelector("#scroll-container");if(U.contains(H)){if(_.S("web_horizontal_list_behavior_focus_killswitch"))if(H.offsetLeft<this.offset)this.offset=Math.abs(H.offsetLeft)<H.clientWidth?0:H.offsetLeft;else if(H.offsetLeft+H.clientWidth>this.offset+U.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.$G(),this.offset=H.offsetLeft+H.clientWidth-U.clientWidth;else return;else{var A=_.c4(this.hostElement).querySelector("#items"),
M=_.gD("HTML_DIR")==="rtl",W=M?A.clientWidth-H.offsetLeft:H.offsetLeft;A=M?A.clientWidth-(H.offsetLeft+H.clientWidth):H.offsetLeft+H.clientWidth;var w=M?W>this.offset+U.clientWidth:W<this.offset,d=M?A<this.offset:A>this.offset+U.clientWidth,O=M?w:d;if(M?d:w)U=M?A:W,this.offset=Math.abs(U)<H.clientWidth?0:U;else if(O)this.ytLazyListBehavior.fillRemainingListItems(),_.$G(),this.offset=(M?W:A)-U.clientWidth;else return}z0(this);this.reposition_()}};
_.X.observeShownItems_=function(){this.reset()};
_.X.checkComponentWidthResize=function(){var H=_.c4(this.hostElement).querySelector("#items").firstElementChild;H&&(H=wt2(this,H),this.centerListItems||H!==this.minComponentWidth)&&(this.minComponentWidth=H,this.offset=H*this.scrollCount,this.centerListItems&&Xtw(this),z0(this),this.reposition_())};
var wt2=function(H,U){var A=window.getComputedStyle(U).marginRight;A=Math.floor(Number(A.replace("px","")));var M=window.getComputedStyle(U).marginLeft;M=Math.floor(Number(M.replace("px","")));H.centerListItems&&!H.marginWidthRight&&(H.marginWidthRight=A,H.marginWidthLeft=M);return H.resizeSupportEnabled?U.getBoundingClientRect().width+A:U.offsetWidth+A},z0=function(H){var U=_.c4(H.hostElement).querySelector("#scroll-container").clientWidth,A=_.c4(H.hostElement).querySelector("#items").clientWidth;
H.offset<0?H.offset=0:H.offset+U>=A&&(H.offset=A-U)},Xtw=function(H){H.offset-=(_.c4(H.hostElement).querySelector("#scroll-container").clientWidth+H.marginWidthRight-H.minComponentWidth)/2-H.marginWidthLeft};
_.D5.Object.defineProperties(Cm.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var H=_.gD("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(H==-1)H=this.JSC$14807_cachedViewportHeight,H=H>1320?5:H>1020?4:H>730?3:H>430?2:1;else if(H==0)return 0;_.mT("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",H-1);H=_.gD("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(H>-1)return H;H=this.cachedViewportWidth;H=H>1600?6:H>1400?5:H>1300?4:H>1090?5:H>870?4:H>660?3:2;_.mT("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
H);return H},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.S("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
Cm.prototype.observeShownItems_=Cm.prototype.observeShownItems_;Cm.prototype.onChildElementFocus_=Cm.prototype.onChildElementFocus_;Cm.prototype.onItemsTransitionEnd_=Cm.prototype.onItemsTransitionEnd_;Cm.prototype.onIronResize_=Cm.prototype.onIronResize_;Cm.prototype.prevClick_=Cm.prototype.prevClick_;Cm.prototype.nextClick_=Cm.prototype.nextClick_;Cm.prototype.setButtonsState_=Cm.prototype.setButtonsState_;Cm.prototype.requestButtonsStateUpdate_=Cm.prototype.requestButtonsStateUpdate_;
Cm.prototype.reposition_=Cm.prototype.reposition_;Cm.prototype.reset=Cm.prototype.reset;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.aN.YtLazyListBehavior),_.q("design:type",Object)],Cm.prototype,"ytLazyListBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Cm.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Cm.prototype,"atStart",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Cm.prototype,"atEnd",void 0);_.G([_.y(),_.q("design:type",Object)],Cm.prototype,"startIndex",void 0);_.G([_.y(),_.q("design:type",Object)],Cm.prototype,"endIndex",void 0);_.G([_.y({value:6}),_.q("design:type",Number)],Cm.prototype,"initialCount",void 0);_.G([_.y(),_.q("design:type",Object)],Cm.prototype,"scrollCount",void 0);_.G([_.y(),_.q("design:type",Object)],Cm.prototype,"initialStartIndex",void 0);
_.G([_.y(),_.q("design:type",Object)],Cm.prototype,"disableScrollEventListener",void 0);_.G([_.y(),_.q("design:type",Object)],Cm.prototype,"supportComponentResize",void 0);_.G([_.y({value:function(){var H=this;return function(){return H.prevClick_()}}}),
_.q("design:type",Function)],Cm.prototype,"boundPrevClick",void 0);_.G([_.y({value:function(){var H=this;return function(){return H.nextClick_()}}}),
_.q("design:type",Function)],Cm.prototype,"boundNextClick",void 0);_.G([_.y(),_.q("design:type",Object)],Cm.prototype,"useFloorScrolling",void 0);_.G([_.y(),_.q("design:type",Object)],Cm.prototype,"isSearch",void 0);_.G([_.y(),_.q("design:type",Object)],Cm.prototype,"dragging",void 0);_.G([_.y(),_.q("design:type",Object)],Cm.prototype,"dragMouseStart",void 0);_.G([_.y(),_.q("design:type",Object)],Cm.prototype,"dragOffsetStart",void 0);
_.G([_.y(),_.q("design:type",Object)],Cm.prototype,"disableWheelScroll",void 0);_.G([_.y(),_.q("design:type",Object)],Cm.prototype,"centerListItems",void 0);_.G([_.Gl("iron-resize"),_.Ya("guideOpened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Cm.prototype,"onIronResize_",null);_.G([_.Gl("transitionend"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],Cm.prototype,"onItemsTransitionEnd_",null);
_.G([_.Gl("focusin"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],Cm.prototype,"onChildElementFocus_",null);_.G([_.Ya("shownItems"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Cm.prototype,"observeShownItems_",null);_.G([_.Tl()],Cm);_.x0.YtdHorizontalListBehavior=[];_.x0.YtdHorizontalListBehavior.push(_.Qo,_.I.YtRendererBehavior,_.aN.YtLazyListBehavior,_.Km.YtdGuideStateAwareBehavior,Cm.prototype);var ue_=["APP_STATE","PI"];var t1,cA=function(H){this.hostElement=H},y4=function(H,U){if(U&&(KAr(U.viewableCommands)||KAr(U.endOfSessionCommands))){var A=FAM(U.viewableCommands);
U=FAM(U.endOfSessionCommands);if(!t1){var M=_.hr("custom_active_view_tos_timeout_ms");t1=M>0&&M!==36E5?new r4c(o10(),M):new r4c(o10())}Dt_(t1,H.hostElement);$t4(t1,H.hostElement,A,U)}},BA=function(H){t1&&Dt_(t1,H.hostElement)};var i4w=_.NP(["about:blank"]),b4k={pushState:window.history.pushState,replaceState:window.history.replaceState};var rF=function(H){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=H;this.internalPushState=H.pushState.bind(H);this.internalReplaceState=H.replaceState.bind(H)};
rF.prototype.init=function(){this.initialized=!0};
rF.prototype.pushState=function(H,U){this.initialized||this.init();this.internalPushState&&this.internalPushState(H,"",U)};
rF.prototype.replaceState=function(H,U){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(H,"",U)};
rF.prototype.getState=function(){return this.history&&this.history.state};var d8H=function(H){var U=function(){var A=H.apply(this,arguments)||this;A.boundHistoryPushState=!1;A.boundHistoryReplaceState=!1;A.debugInfo={};return A};
_.R(U,H);U.prototype.init=function(){var A=_.Q9("IFRAME");_.wY(A,_.LF(i4w));A.sandbox="allow-same-origin";A.style.display="none";this.iframe=A;document.body.appendChild(A);this.bindHistoryStateFunctions();H.prototype.init.call(this)};
U.prototype.bindHistoryStateFunctions=function(){var A=this,M=[],W;this.iframe&&((W=this.iframe.contentWindow)==null?0:W.history)&&(W=this.iframe.contentWindow.history)&&(M.push(W),Object.getPrototypeOf(W)&&M.push(Object.getPrototypeOf(W)));window.history&&M.push(window.history);W=window.history;Object.getPrototypeOf(W)&&M.push(Object.getPrototypeOf(W));M.push(b4k);W=function(d){for(var O=null,f=0;f<M.length;f++){var J=M[f][d];if(typeof J==="function"){O=J.bind(window.history);A.debugInfo[d]=f;break}}return O};
if(!this.boundHistoryReplaceState){var w=W("replaceState");w&&(this.internalReplaceState=w,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(W=W("pushState"))&&(this.internalPushState=W,this.boundHistoryPushState=!0)};
return U}(rF),O4y=function(){return d8H.call(this,window.history)||this};
_.R(O4y,d8H);O4y.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var eA=function(H){this.browserHistory=H;this.initialized=!1};
eA.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
eA.prototype.pushState=function(H,U){this.initialized||this.init();this.browserHistory.pushState(H,U)};
eA.prototype.replaceState=function(H,U){this.initialized||this.init();this.browserHistory.replaceState(H,U)};
eA.prototype.handlePopstate=function(H){return H.state};_.uRm=function(H,U,A,M,W){this.endpoint=H;this.forward=U;this.historyEntry=A;this.JSC$31213_savedComponentState=M;this.legacyBorder=W===void 0?!1:W};var Z4n=function(H,U){this.rootData=H;this.scrollTop=U};_.Da=new _.g3("EPHEMERAL_STORE_TOKEN");_.$0=function(H){this.data=Object.assign({},H);var U;(U=this.data.innertubeResponse)==null||delete U.frameworkUpdates};
_.$0.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.lD)()};
_.$0.prototype.isProcessed=function(){return!!this.data.isProcessed};
_.xj=function(H){return Object.assign({},H.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var fZ2=function(){this.maxSize=100;this.timeToDataCache=new Map};
fZ2.prototype.get=function(H){var U=this.timeToDataCache.get(H);U&&(this.timeToDataCache.delete(H),this.timeToDataCache.set(H,U));if(U&&U.rootData&&(_.S("web_use_response_store_for_history_cache")||_.S("mweb_use_new_history_manager"))){var A=_.lx().resolve(_.Da),M=JY2(U),W=!!M;if(M){if(M.content){var w=lQ(A,M.content);W&&w?U.rootData.response=_.xj(w):W=!1}M.player&&(w=lQ(A,M.player),W&&w?U.rootData.playerResponse=_.xj(w):W=!1);M.reelSequence&&(A=lQ(A,M.reelSequence),W&&A?U.rootData.reelWatchSequenceResponse=
_.xj(A):W=!1)}W||(this.timeToDataCache.delete(H),U=void 0)}return U};
fZ2.prototype.set=function(H,U){if(U.rootData&&(_.S("web_use_response_store_for_history_cache")||_.S("mweb_use_new_history_manager"))){var A=JY2(U),M=Object.assign({},U.rootData);A&&(A.content&&U.rootData.response&&(K2w(this,A.content,U.rootData.response),M.response=null),A.player&&U.rootData.playerResponse&&(K2w(this,A.player,U.rootData.playerResponse),M.playerResponse=null),A.reelSequence&&U.rootData.reelWatchSequenceResponse&&(K2w(this,A.reelSequence,U.rootData.reelWatchSequenceResponse),M.reelWatchSequenceResponse=
null));U=new Z4n(M,U.scrollTop)}this.timeToDataCache.has(H)?this.timeToDataCache.delete(H):this.timeToDataCache.size>=this.maxSize&&(A=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(A.value));this.maxSize!==0&&this.timeToDataCache.set(H,U)};
fZ2.prototype.clear=function(){this.timeToDataCache.clear()};
var JY2=function(H){var U=_.lx().resolve(_.$V(_.UP)),A;if((A=H.rootData)==null?0:A.endpoint)return U==null?void 0:s_K(U,H.rootData.endpoint);var M;_.Na(new _.bD("History snapshot response data does not contain endpoint",(M=H.rootData)==null?void 0:M.url));return null},K2w=function(H,U,A){if(H.maxSize>0){var M;
(H=(M=A.responseContext)==null?void 0:M.maxAgeSeconds)&&Number(H)>0&&(M=_.lx().resolve(_.Da),A=zB(A,H),M.put(U,new _.$0(A)))}};var oLy=function(H,U,A){this.endpoint=U;this.JSC$31219_savedComponentState=A===void 0?null:A;this.entryTime=H};var s3h=1;var G0=function(H){var U=function(){var A=H.apply(this,[].concat(_.vI(_.QY.apply(0,arguments))))||this;A.historyEntryTime=0;A.historySnapshotCache=A.createHistoryCache();return A};
_.R(U,H);U.prototype.createHistoryCache=function(){return new fZ2};
U.prototype.saveAndReplace=function(A,M,W){var w=window.location.href;var d=d===void 0?{}:d;var O=(O=this.browserHistory.getState())&&O.entryTime?O.entryTime:n1F();A=this.createNewHistoryEntry(A,d,O);this.saveSnapshot(O,M,W);this.replaceState(A,w||window.location.href)};
U.prototype.saveAndPush=function(A,M,W,w,d){d=d===void 0?{}:d;this.saveSnapshot(this.historyEntryTime,W,w);W=this.historySnapshotCache;w=this.historyEntryTime;var O=W.timeToDataCache.keys();O=_.b(O);for(var f=O.next();!f.done;f=O.next())f=f.value,f>w&&W.timeToDataCache.delete(f);M=this.createNewHistoryEntry(M,d);this.pushState(M,A)};
U.prototype.saveSnapshot=function(A,M,W){this.historySnapshotCache.set(A,new Z4n(M,W))};
U.prototype.createNewHistoryEntry=function(A,M,W){W=W===void 0?n1F():W;return new oLy(W,A,M)};
U.prototype.handlePopstate=function(A){var M=H.prototype.handlePopstate.call(this,A),W=null,w=null,d=!1,O=null;M&&M.entryTime&&(O=this.historySnapshotCache.get(M.entryTime)||null,d=M.entryTime>this.historyEntryTime,this.historyEntryTime=M.entryTime,W=M.endpoint,w=M.JSC$31219_savedComponentState);this.handleHistoryCacheLoad(new _.uRm(W,d,O,w),A);return M};
U.prototype.pushState=function(A,M){Number(A==null?void 0:A.entryTime)>=0&&(this.historyEntryTime=A.entryTime);H.prototype.pushState.call(this,A,M)};
U.prototype.replaceState=function(A,M){Number(A==null?void 0:A.entryTime)>=0&&(this.historyEntryTime=A.entryTime);H.prototype.replaceState.call(this,A,M)};
U.prototype.handleHistoryCacheLoad=function(){};
return U}(eA),F2r=function(){var H=G0.call(this,new O4y)||this;
H.dispatchElement=null;H.entryIndex=0;return H};
_.R(F2r,G0);_.X=F2r.prototype;_.X.init=function(H){H=H===void 0?!0:H;G0.prototype.init.call(this);this.initialized||(H||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.X.handlePopstate=function(H){var U=null;H.state||(U="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return G0.prototype.handlePopstate.call(this,H);var A=new CustomEvent("yt-history-pop",{cancelable:!0});_.yr(this.dispatchElement,"yt-history-pop",[A,{errorMsg:U}]);_.Bg(this.dispatchElement,"yt-close-all-popups-action");if(!A.defaultPrevented){A=_.lx().resolve(_.SI);U=A.getCurrentData();var M=A.getCurrentPage();A=0;M?(M=_.yr(this.dispatchElement,"yt-get-page-offset",
[M]),M.length>0&&(A=M[0])):_.Na(new _.bD("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:U?U.page:"undefined"}));U&&(U.csn=_.XK());this.saveSnapshot(this.historyEntryTime,U,A)}return G0.prototype.handlePopstate.call(this,H)};
_.X.handleHistoryCacheLoad=function(H,U){H.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.b(_.Bg(this.dispatchElement,"yt-history-will-navigate",[U])).next().value||_.yr(this.dispatchElement,"yt-history-load",[U,H]))};
_.X.pushState=function(H,U){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var A=new _.bD("history.pushState is not a function",this.getDebugString());_.sD(A)}G0.prototype.pushState.call(this,H,U)};
_.X.replaceState=function(H,U){if(!this.browserHistory.boundHistoryReplaceState){var A=new _.bD("history.replaceState is not a function",this.getDebugString());_.sD(A)}G0.prototype.replaceState.call(this,H,U)};
_.X.saveAndPush=function(H,U,A,M,W){W=W===void 0?{}:W;A&&(A.csn=_.XK());G0.prototype.saveAndPush.call(this,H,U,A,M,W)};
_.X.getDebugString=function(){var H=[];this.initialized&&H.push("i");this.browserHistory.boundHistoryReplaceState&&H.push("bhr");this.browserHistory.boundHistoryPushState&&H.push("bhs");"replaceState"in this.browserHistory.debugInfo&&H.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&H.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&H.push("ei:"+String(this.entryIndex));return H.join(",")};
_.Y0=function(H,U){H.init(!0);var A=H.browserHistory.getState();H.replaceState(A,xY(U))};
F2r.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.qM=new _.g3("DESKTOP_HISTORY_MANAGER_TOKEN");var Psg=[10,20,30,40,50,60],h1=function(){this.currentPartitionIndex=0},se3=function(H){ktw({mainAppWeb:_.nf(),
survivalSli:{partitionMinute:H,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},nLH=function(H){ktw({mainAppWeb:_.nf(),
survivalSli:{partitionMinute:H,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},N8r=function(H){return H.currentPartitionIndex>=0&&H.currentPartitionIndex<Psg.length?Psg[H.currentPartitionIndex]:-1},Sun=function(H){return H.currentPartitionIndex>0&&H.currentPartitionIndex-1<Psg.length?Psg[H.currentPartitionIndex-1]:-1};
h1.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var H=Sun(this);H>0&&nLH(H);H=N8r(this);H>0&&se3(H);ptK(this)}};
var ptK=function(H){var U=N8r(H);if(U>0){var A=Sun(H);A<0&&(A=0);H.intervalId=_.Fl.addJob(function(){var M=Sun(H);M>0&&nLH(M);M=N8r(H);M>0&&se3(M);ptK(H)},3,(U-A)*6E4);
H.currentPartitionIndex+=1}else H.currentPartitionIndex=-1};var L2g=function(H){Hx.call(this,H,132);this.isDocument=H===document.documentElement};
_.R(L2g,Hx);L2g.prototype.calculateScrollDelta=function(H,U,A){var M=0;H<U?M=H<U-100?-48:-8:H>U+A&&(M=H>U+A+100?48:8);return M};
L2g.prototype.JSC$11701_onMouseMove=function(H){this.isDocument||(H.clientX=H.event_.pageX,H.clientY=H.event_.pageY);Hx.prototype.JSC$11701_onMouseMove.call(this,H)};_.REH=function(H,U){var A=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14861_dragListGroup=null;this.onDraggerCreated=function(M){var W=M.JSC$11697_dragger;W.scrollTarget_=A.scrollElement;M=M.draggerEl;W&&M.menuOpened&&W.setEnabled(!1)};
this.onDragStart=function(M){var W=M.draggerEl;M=M.currDragItem;var w=Object.assign({},M==null?void 0:M.data);w.trackingParams=void 0;W.data=w;W.style.position="absolute";W.style.width=(M==null?void 0:M.clientWidth)+"px";W.style.zIndex="2030";W.onDrag&&W.onDrag();M=_.ZD(W);(w=M.querySelector("ytd-app"))?_.c4(w).appendChild(W):M.body.appendChild(W);A.dragScrollSupport=new L2g(A.scrollElement);A.dragScrollSupport.horizontalScrolling_=!1;W=A.dragScrollSupport;W.constrainScroll_=!!W.margin_&&!1};
this.onDrop=function(M){A.handleDrop(M);A.dragScrollSupport&&(_.zg(A.dragScrollSupport),A.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(A.JSC$14861_dragListGroup){var M=A.JSC$14861_dragListGroup;jvg(M,M.currDragItem_)}};
this.handleDrop=U};
_.k0=function(H){H.JSC$14861_dragListGroup&&(_.WS(H.JSC$14861_dragListGroup,$ew,H.onDragStart),_.WS(H.JSC$14861_dragListGroup,qBH,H.onDragStart),H.JSC$14861_dragListGroup.dispose(),H.JSC$14861_dragListGroup=null);H.dragScrollSupport&&(_.zg(H.dragScrollSupport),H.dragScrollSupport=null);H.scrollElement.removeEventListener("scroll",H.onReorderableScroll)};
_.ELB=function(H,U,A,M){M=M===void 0?"":M;_.k0(H);A&&(H.scrollElement=A);H.JSC$14861_dragListGroup=new be;H.JSC$14861_dragListGroup.hysteresisDistance_=2;kkz(H.JSC$14861_dragListGroup,U);H.JSC$14861_dragListGroup.draggerElClasses_=fh("dragging").split(" ");M&&v3H(H.JSC$14861_dragListGroup,function(W){var w=W||document,d=null;w.getElementsByClassName?d=w.getElementsByClassName(M)[0]:d=uSk("*",M,W);return d||W});
_.Rc(H.JSC$14861_dragListGroup,eyh,H.onDraggerCreated);_.Rc(H.JSC$14861_dragListGroup,$ew,H.onDragStart);_.Rc(H.JSC$14861_dragListGroup,qBH,H.onDrop);H.JSC$14861_dragListGroup.init();H.scrollElement.addEventListener("scroll",H.onReorderableScroll,{passive:!0})};
_.D5.Object.defineProperties(_.REH.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var m8k=function(){this.skipNextNavigation=!1},gLr=function(H,U,A){if(!U)return!1;
if(H.skipNextNavigation)return H.skipNextNavigation=!1;if(_.p(A,_.gu))return!1;var M,W,w;if((M=_.p(A,_.Gv))==null?0:(W=M.browseEndpointContextSupportedConfigs)==null?0:(w=W.browseEndpointContextMainConfig)==null?0:w.skipConfirmation)return!1;var d;return((d=_.p(U.commandMetadata,_.Y2))==null?void 0:d.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
m8k.prototype.showConfirmationDialog=function(H,U){this.navigateParams=U;this.customConfirmationCommand?_.lx().resolve(_.YV).resolveCommand(this.customConfirmationCommand):(U={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Nh(_.hP("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Nh(_.hP("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Nh(_.hP("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Nh(_.hP("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.a1.getInstance().triggerAction("yt-open-popup-action",U,H))};
m8k.prototype.cancelPendingNavigation=function(){var H;((H=this.navigateParams)==null?void 0:H.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var aZn=function(){},zE2=function(H,U,A,M,W,w,d){A=A===void 0?{}:A;
d=d===void 0?{}:d;var O=_.lx().resolve(_.UP),f,J=(f=_.p(U,_.gu))==null?void 0:f.url;return J?X_V(O,J,A,window.location.href,function(F,P){x8h(H,F,P,!1,!0,A,w,M)},function(){return!1}):Kx(O,U,A,window.location.href,qh(U),function(F,P){x8h(H,F,P,!1,!0,A,w,M)},W,d)},x8h=function(H,U,A,M,W,w,d,O){if(!H.JSC$14876_chunkHandler)if(A.page==="learning_journey_watch"&&_.S("web_enable_canvas_on_learning_journey")){var f=!_.p(O,_.Gv);
W=W||M;if(f)if(W){if(_.S("kevlar_continue_playback_without_player_response")){var J;var F=(J=_.p(O,_.sH))==null?void 0:J.videoId}M={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:M,previousVideoId:F},tempData:w}}else M={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else M={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};H.JSC$14876_chunkHandler=new F_w(_.Ly,M,d,f,W)}else if(A.page==="watch"||A.page==="learning_journey_watch")if(W||M){if(_.S("kevlar_continue_playback_without_player_response")){var P;
f=(P=_.p(O,_.sH))==null?void 0:P.videoId}H.JSC$14876_chunkHandler=new nJH(_.Ly,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:M,previousVideoId:f},tempData:w},d)}else H.JSC$14876_chunkHandler=new K_K(_.Ly);else A.page==="shorts"&&W&&!M?H.JSC$14876_chunkHandler=new s6K(_.Ly,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:w},d):H.JSC$14876_chunkHandler=new oJw(d);H.JSC$14876_chunkHandler.processChunk({endpoint:U,data:A});return H.JSC$14876_chunkHandler.rK.promise},
Csy=function(H,U,A,M,W){(A=_.cQB(A))&&x8h(H,U,A,!1,!0,M,void 0,W)};_.thg=new _.g3("NAVIGATION_SERVICE_TOKEN");var cYp=function(){this.pendingNavigationPromise=null};
_.X=cYp.prototype;_.X.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.X.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.X.addEventListener=function(){throw Error("Ah");};
_.X.dispatchEvent=function(){throw Error("Ah");};
_.X.removeEventListener=function(){throw Error("Ah");};var yY3=new _.g3("APP_ROOT");var SL0=null;var B8p=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],vA=function(){_.LW.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];rYm(this)};
_.R(vA,_.LW);vA.prototype.verifyUser=function(){var H=rYm(this),U=H.logout;if(!H.sessionChange)return!0;this.dispatchEvent("ytsessionchange");U&&this.dispatchEvent("ytuserinvalid");return!1};
var rYm=function(H){var U=B8p.map(function(W){var w;return(w=_.MK.get(W))!=null?w:""}),A=U.some(function(W,w){return H.sessionCookies&&H.sessionCookies[w]!==""&&W===""}),M=U.some(function(W,w){return H.sessionCookies&&H.sessionCookies[w]!==W});
H.sessionCookies=U;return{logout:A,sessionChange:M}};
vA.prototype.clearTimeout=function(){this.scheduledJobId&&(_.Fl.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var g1c=new _.g3("POSTMESSAGE_TUNNEL_TOKEN");var RVV=["/parent_tools","/file_download","/artist_roster"],zVr=[vsh,TYH,jDK,QDw,IOz,kjg,VGB,HFr];var T0=new _.g3("NAVIGATION_CONFIRMATION_SERVICE");var eEp="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /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(" "),D8K=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],jA=function(H,U){this.pendingNavigationPromise=null;this.JSC$14899_clientRoot=H;this.historyManager=U;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 aZn;this.debugString=H.is;H={"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};_.xX(_.a1.getInstance(),H,this.JSC$14899_clientRoot)},quh,hEw,k$2,vLw,YuB;
_.R(jA,cYp);jA.prototype.reload=function(){_.ff(window.location.href)};
var rQw=function(H){H.currentEndpoint&&_.p(H.currentEndpoint,_.kO)?H.reload():H.currentEndpoint&&H.navigate(H.currentEndpoint,!0,void 0,{disableCache:!0})};
jA.prototype.navigate=function(H,U,A,M,W,w,d,O){U=U===void 0?!1:U;A=A===void 0?{}:A;M=M===void 0?{}:M;var f=_.lx().resolve(T0),J;if(!d&&gLr(f,(J=this.currentEndpoint)!=null?J:void 0,H))return f.showConfirmationDialog(this.JSC$14899_clientRoot.parentElement,{endpoint:H,reload:U,params:A,tempData:M,requestType:W,createScreenConfig:w}),!1;var F=_.sC();_.n9(F,"eocs")||F.parkOrScheduleJob(function(){F.processSignal("eocs")},10,"eor");
pzE();d=qh(H);f=M.autonav==="1";J=_.XK();vA.instance||(vA.instance=new vA);var P=vA.instance.verifyUser(),n;if(_.S("enable_dark_theme_only_on_shorts")){var N=document.documentElement.hasAttribute("dark"),L=_.Kf(!0)==="USER_INTERFACE_THEME_DARK";if(d==="shorts"){if(!N)if(_.S("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var m;_.ff((m=_.p(H==null?void 0:H.commandMetadata,_.Y2))==null?void 0:m.url,void 0,void 0,window.top)}}else{var z;_.ff(_.ey((z=_.p(H==
null?void 0:H.commandMetadata,_.Y2))==null?void 0:z.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.S("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!N){var c;_.ff(_.ey((c=_.p(H==null?void 0:H.commandMetadata,_.Y2))==null?void 0:c.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(L!==N){var C;_.ff(_.ey((C=_.p(H==null?void 0:H.commandMetadata,_.Y2))==null?void 0:C.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(d==="watch"){if($8n(_.lx().resolve(_.ZB),
H)&&(P||_.S("fix_miniplayer_navigation_killswitch")))return!1;_.S("block_all_player_prefetch_requests")||(n=yQ3(_.gz(_.$6),H,f))}else{var v,Y=(v=_.p(this.currentEndpoint,_.sH))==null?void 0:v.videoId;Y&&_.Wd.getInstance().then(function(BF){BF&&BF.set("yt-miniplayer-shown-video-id",Y)})}n&&(A.frags=n.missingFragments_.join(","));
m=null;var D;z=(D=_.p(H==null?void 0:H.commandMetadata,_.Y2))==null?void 0:D.ignoreNavigation;if(!z)if(_.S("kevlar_command_url")){var h;m=(h=_.p(H==null?void 0:H.commandMetadata,_.Y2))==null?void 0:h.url}else m=_.sRN(H,A);if(m&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&m==this.lastNavigationUrl)return _.wH({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Gs(ZH(),"CANCELLED")}m&&(this.lastNavigationUrl=m);zht();_.mT("IS_HOMEPAGE_COLD",
!1);_.mT("IS_RESULTS_PAGE_COLD",!1);_.mT("IS_WATCH_PAGE_COLD",!1);H.loggingUrls&&H.loggingUrls.forEach(function(BF){BF.baseUrl&&_.my(BF.baseUrl)});
_.ylt(H,w?w.layer:0)&&_.S("kevlar_flush_logs_on_away_navigation")&&_.P1();if(C2c(H))return!1;oSB(d,W);if(!m)return z||_.Na(new _.bD("Can't construct url for endpoint",H)),_.Gs(ZH(),"FAILURE"),!1;_.LAF();D=H&&_.p(H,_.Gv)&&_.p(H,_.Gv).browseId.startsWith("UC");A=(h=_.S("enable_dark_theme_only_on_shorts")&&d==="shorts"?!1:_.or()&&document.documentElement.hasAttribute("dark")!==_.JG())?{themeRefresh:1}:{};h&&!_.wi()&&_.Kf()==="USER_INTERFACE_THEME_DARK"&&(A.theme="dark");D=h||lZH(m)&&!D&&!_.S("kevlar_disable_url_allowlist");
P||(D=!0);if(D||_.gD("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var T;var WF=(T=window.top)==null?void 0:T.location.href}catch(BF){var dK;WF=(dK=BF)==null?void 0:dK.message}_.Na(new _.bD("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:WF}))}H=_.S("kevlar_redirect_on_window_killswitch")?window.top:window;Zt(m);_.ff(_.ey(m,A),void 0,void 0,H);_.Gs(ZH(),"ABORTED");return!1}_.S("kevlar_early_popup_close")&&_.yr(this.JSC$14899_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14876_chunkHandler=void 0;var SN;WF=qh((SN=this.currentEndpoint)!=null?SN:void 0);(SN=d==="shorts"&&WF==="shorts")||_.BI0();_.CA(Rf_)("nr",void 0);f&&_.wH({webInfo:{navigationReason:"an"}});H.clickTrackingParams&&(M.itct=H.clickTrackingParams,M.csn=J);Eor(M);M.endpoint=JSON.stringify(H);_.S("enable_unknown_lact_fix_on_html5")&&(_.lx().resolve(_.qe),M.lact=_.$B());_.dG.isEmpty(M)||_.Sb(m,M);!_.S("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(w=Object.assign({},{layer:0},w,{parentLayer:3}));this.pendingNavigationPromise=w=zE2(this.pageFetcher,H,M,this.currentEndpoint,this.JSC$14899_isNetworkPromiseStale.bind(this),w,O);w=w.then(this.handleNavigateSuccess.bind(this,w,H,n,M),this.handleNavigateFail.bind(this,w,H));_.vc().navigationFinishPromise=w;U={endpoint:H,pageType:d,url:xY(m),reload:!!U,noProgressBar:SN};W&&(U.type=W);var o_;W=_.lE((o_=this.currentEndpoint)!=null?o_:null);o_=_.lE(H!=null?H:null);this.fireEvent("yt-navigate-start",
U);var PF;(PF=_.lx().resolve(_.$V(_.thg)))==null||PF.publish("navigation-start",{sourcePageSubtype:W,destinationPageSubtype:o_});n&&Csy(this.pageFetcher,H,n,M,this.currentEndpoint);return!0};
jA.prototype.JSC$14899_isNetworkPromiseStale=function(H){return H!=this.pendingNavigationPromise};
var G$h=function(H,U,A,M,W){var w=qh(U);U={endpoint:U,pageType:w};W&&(U.errorMessage=W);_.Na(A);U.navigationDoneMs=_.ba("nd");U.navigationErrorReason=M;H.fireEvent("yt-navigate-error",U)};
jA.prototype.handleNavigateFail=function(H,U,A){var M=void 0;A instanceof _.Oa&&(M=A,FLN(A));if(this.JSC$14899_isNetworkPromiseStale(H))return _.H$(M);_.Gs(ZH(),"FAILURE");G$h(this,U,A,"101");return _.H$(A)};
jA.prototype.handleNavigateSuccess=function(H,U,A,M,W){if(this.JSC$14899_isNetworkPromiseStale(H))return _.DH();this.pendingNavigationPromise=null;if(!W)return U=new _.bD("Missing data in response for navigation endpoint",U),_.H$(U);if(W.reload)return window.location.reload(!0),_.DH();A&&(H={},_.dG.extend(H,_.cQB(A),W),W=H);var w,d;A=(w=W)==null?void 0:(d=w.timing)==null?void 0:d.responseStart;A!=null&&_.ba("srt",A);_.ba("pdc");var O,f;w=(O=W)==null?void 0:(f=O.timing)==null?void 0:f.info;w!=null&&
(O=_.CA(_.g6N)(w),_.wH(O));_.Gs(ZH(),"SUCCESS");YuB(this,U,W,1,M);return _.DH()};
var lZH=function(H){var U=H;_.S("kevlar_no_redirect_to_classic_2_ks")||(U=(new _.n1(H)).getPath());if(U==="/"||U==="/red")return!1;var A=!0;eEp.forEach(function(M){H.indexOf(M)===0&&(A=!1)});
D8K.forEach(function(M){var W=M.url;_.S(M.expFlag)&&H.indexOf(W)===0&&(A=!1)});
return A};
jA.prototype.publishPageData=function(H){this.fireEvent("yt-page-data-fetched",{pageData:H})};
quh=function(H,U,A,M,W,w){var d=null;U.page!=="watch"&&U.page!=="learning_journey_watch"||M?U.filler||_.yr(H.JSC$14899_clientRoot,"yt-stop-old-player",[U]):d=x8h(H.pageFetcher,W,U,A,!1,w,void 0,H.currentEndpoint);if(d)return d.then(H.publishPageData.bind(H,U));H.publishPageData(U);return _.DH()};
hEw=function(H,U,A){var M=null;if(!A)return M=new _.bD("Empty data",H.debugString,U);var W=A.response;if(!W)return M;var w={endpointType:qh(U)||"unknown"};W.responseContext?(W=W.responseContext.errors)&&(M=new _.bD("Errors in response context",H.debugString,U,W,w)):M=W.error||W.errorMetadata?new _.bD("Errors in response",H.debugString,U,W.error,W.errorMetadata,w):new _.bD("responseContext missing",H.debugString,U,Object.keys(W).sort().join(","),w);var d,O,f,J;if(H=A==null?void 0:(d=A.response)==null?
void 0:(O=d.responseContext)==null?void 0:(f=O.webResponseContextExtensionData)==null?void 0:(J=f.webResponseContextDebugData)==null?void 0:J.debugErrorMessages)for(d=0;d<H.length;d++);return M};
k$2=function(H){var U,A,M,W;return H==null?void 0:(U=H.response)==null?void 0:(A=U.responseContext)==null?void 0:(M=A.errors)==null?void 0:(W=M.error)==null?void 0:W["0"]};
vLw=function(H,U){var A;if(A=U.url&&!U.url.startsWith("/clip"))A=U.url,A=!_.S("webfe_parse_debug_param_in_resolveurl_service")&&H.searchDebugUrlMatcher.test(A)||a$r(A)?!0:!1;if(A)a$r(U.url)&&_.rD(window.location.href).themeRefresh?(U=_.js(U.url,"themeRefresh"),_.Y0(H.historyManager,U)):U.url&&!P2h(U.url)&&_.Y0(H.historyManager,U.url);else if(U.endpoint){var M,W,w;(A=(M=U.endpoint)==null?void 0:(W=M.commandMetadata)==null?void 0:(w=W.webCommandMetadata)==null?void 0:w.url)&&!P2h(A)&&_.Y0(H.historyManager,
A);A&&U.url&&A!=U.url&&!U.url.match("playnext=1")&&new _.bD("Response url mismatch in response data",H.debugString,A,U.url)}};
_.T8B=function(H,U,A,M,W,w,d,O){w=w===void 0?!1:w;var f=_.lx().resolve(T0),J;if(!O&&gLr(f,(J=H.currentEndpoint)!=null?J:void 0,U))return f.showConfirmationDialog(H.JSC$14899_clientRoot.parentElement,{endpoint:U,data:A,navigationType:M,tempData:W,isMiniplayer:w,isForwardHistoryNavigation:d==null?void 0:d.forward}),_.DH();H.pageFetcher.JSC$14876_chunkHandler=void 0;return YuB(H,U,A,M,W,w)};
YuB=function(H,U,A,M,W,w){w=w===void 0?!1:w;H.isMiniplayerExpansion=w;var d=M===2;H.currentEndpoint=U;H.numNavigations++;H.numNavigations&&(JK0.navigationCount=H.numNavigations);_.mT("NUM_NAV",H.numNavigations);var O=hEw(H,U,A);if(O)return G$h(H,U,O,"102",k$2(A)),_.H$(O);var f,J,F,P;O=A.rootVe||(A==null?void 0:(f=A.response)==null?void 0:(J=f.responseContext)==null?void 0:(F=J.webResponseContextExtensionData)==null?void 0:(P=F.ytConfigData)==null?void 0:P.rootVisualElementType);!d&&A&&vLw(H,A);var n,
N;f=A==null?void 0:(n=A.response)==null?void 0:(N=n.responseContext)==null?void 0:N.maxAgeSeconds;if(!d&&!isNaN(f)){var L;_.S("kevlar_use_response_ttl_to_invalidate_cache")?L=(0,_.lD)()+1E3*f:_.S("kevlar_always_invalidate_cache")&&(L=0);isNaN(L)||(A.expirationTime=L)}_.gz(_.$6).prefetchCache_.clear();d||A.page!=="watch"||M!==1?M=quh(H,A,d,!!w,U,W):(H.publishPageData(A),M=_.DH());W=M.then(function(){var m=qh(U);m={endpoint:U,pageType:m,fromHistory:d,response:A};m.navigationDoneMs=_.ba("nd");H.fireEvent("yt-navigate-finish",
m);var z;(z=_.lx().resolve(_.$V(_.thg)))==null||z.publish("navigation-end")});
A.csn&&O&&A.clientSideGrafts&&M.then(H.attachClientSideGrafts.bind(H,A,_.ws()));return W};
_.X=jA.prototype;_.X.attachClientSideGrafts=function(H,U){H.clientSideGrafts&&U&&H.clientSideGrafts.forEach(function(A){if(U&&A){var M=_.IS(A);_.S("combine_ve_grafts")?_.k$().graftServerVe(A,U):_.ou(H.csn,U,M)}})};
_.X.handleSignalActionHistoryBack=function(){window.history.back()};
_.X.handleSignalActionCloseWindow=function(){window.close()};
_.X.handleSignalActionReloadPage=function(){this.reload()};
_.X.handleSignalActionSoftReloadPage=function(){rQw(this)};
_.X.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.X.fireEvent=function(H,U){H=new CustomEvent(H,{bubbles:!0,cancelable:!1,composed:!0,detail:U});this.dispatchEvent(H)};
_.X.addEventListener=function(H,U){this.JSC$14899_clientRoot.addEventListener(H,U)};
_.X.dispatchEvent=function(H){return this.JSC$14899_clientRoot.dispatchEvent(H)};
_.X.removeEventListener=function(H,U){this.JSC$14899_clientRoot.removeEventListener(H,U)};
jA[Ga]=[yY3,_.qM];var jen;var IZ2=function(){return _.B.apply(this,arguments)||this};
_.R(IZ2,_.B);_.D5.Object.defineProperties(IZ2,{template:{configurable:!0,enumerable:!0,get:function(){if(jen===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);jen=H}H=jen;return H}}});
_.G([_.g(IQ3.YtPlayerBehavior),_.q("design:type",Object)],IZ2.prototype,"ytPlayerBehavior",void 0);_.G([_.dX({is:"ytd-player"})],IZ2);var Qep;var Vhw;var HVn;var IN=function(){var H=_.B.apply(this,arguments)||this;H.forceModernIconButton=!1;H.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return H};
_.R(IN,_.B);IN.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]]"}}}}}};
IN.prototype.handleAccountLinkingStateChangedCommand=function(H){if(H=_.p(H,Sxp)){var U,A=(U=this.data)==null?void 0:U.providerKey;U=H.providerKey;A&&U&&A.id===U.id&&A.subject===U.subject&&(H=H.linked,H!==void 0&&(this.set("data.linked",H),this.notifyPath("data.linked"),_.S("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(H)))}};
IN.prototype.setPlayerAccountLinkState=function(H){var U=new eUw;DJz(U,Bkz(new yA3,H));var A=_.Ly();A&&A.getPlayerPromise().then(function(M){M.setAccountLinkState(_.I_(U.JSC$12628_serializeBinary(),4));M.updateAccountLinkingConfig(H)})};
IN.prototype.handleShowAccountLinkDialog=function(){var H=this.get("button.buttonRenderer.command");H&&_.lH([H],this.hostElement)};
_.D5.Object.defineProperties(IN.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}}}});
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.G([_.g([_.$y.YtActionHandlerBehavior]),_.q("design:type",Object)],IN.prototype,"actionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],IN.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],IN.prototype,"overrides",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IN.prototype,"forceModernIconButton",void 0);_.G([_.y({value:"bottom"}),_.q("design:type",String)],IN.prototype,"buttonTooltipPosition",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],IN.prototype,"forceIconButton",void 0);_.G([_.y(),_.q("design:type",Boolean)],IN.prototype,"disableTextTransform",void 0);
_.G([_.a("data","data.linked","data.isWarning"),_.q("design:type",Object),_.q("design:paramtypes",[])],IN.prototype,"button",null);_.G([_.dX({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],IN);
_.e(IN,"ytd-account-link-button-renderer",function(){if(HVn!==void 0)return HVn;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return HVn=H},{mode:1});var URr;var AWB=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Q4=function(){return _.B.apply(this,arguments)||this};
_.R(Q4,_.B);Q4.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Q4.prototype.updateButtonActiveState=function(){var H=this,U=!!AWB.find(function(A){return H.currentState===A});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.S("enable_web_delhi_icons")&&(U=!1);this.button&&(this.button.isPressed=U)};
_.D5.Object.defineProperties(Q4.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.playlistLoopStateEntity)==null?void 0:H.state)||((U=this.data)==null?void 0:U.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var H=void 0,U;if(this.currentState&&((U=this.data)==null?0:U.states)){U=_.b(this.data.states);for(var A=U.next();!A.done;A=U.next()){A=_.p(A.value,_.eBk);var M=void 0;if(((M=A)==null?void 0:M.state)===this.currentState){H=A;break}}}return H}}});
Q4.prototype.updateButtonActiveState=Q4.prototype.updateButtonActiveState;_.G([_.g(_.dF),_.q("design:type",Object)],Q4.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Q4.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Q4.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.y({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.Ab.playlistLoopStateEntitySelector}),_.q("design:type",Object)],Q4.prototype,"playlistLoopStateEntity",void 0);_.G([_.y(),_.q("design:type",Object)],Q4.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],Q4.prototype,"forceIconOnly",void 0);_.G([_.hG("ytd-button-renderer"),_.q("design:type",_.aJ)],Q4.prototype,"button",void 0);
_.G([_.a("data","playlistLoopStateEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],Q4.prototype,"currentState",null);_.G([_.Ya("currentButtonStateRenderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Q4.prototype,"updateButtonActiveState",null);_.G([_.a("currentState"),_.q("design:type",Object),_.q("design:paramtypes",[])],Q4.prototype,"currentButtonStateRenderer",null);
_.G([_.dX({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Q4);
_.e(Q4,"ytd-playlist-loop-button-renderer",function(){if(URr!==void 0)return URr;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return URr=H},
{mode:1});var Muy;var WQ3=_.hP("DOWNLOAD",{},"Download"),wZy=_.hP("DOWNLOADING",{},"Downloading"),XZn=_.hP("DOWNLOADED",{},"Downloaded"),iVK=_.hP("RETRY",{},"Retry"),V4=function(){var H=_.B.apply(this,arguments)||this;H.forceIconButton=!1;H.forceIconOnly=!1;H.overrides=!1;H.buttonTooltipPosition=!1;H.styleActionButton=!1;H.disableTextTransform=!1;H.downloadProgress=0;H.isDownloadComplete=!1;H.isHidden=!0;H.transferState="TRANSFER_STATE_UNKNOWN";H.isVideoDeletedByUser=!1;H.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return H};
_.R(V4,_.B);_.X=V4.prototype;_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.dataChanged=function(){var H;(H=this.data)!=null&&H.text||(H=_.O_(_.Lq().getState(),this.videoId),this.updateButtonState(H))};
_.X.computeVideoId=function(H){return H};
_.X.computePlayerStateEntityKey=function(H){return H};
_.X.showHideButton=function(){this.updateButtonVisibility()};
_.X.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var H;((H=this.playerStateEntity)==null?void 0:H.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0: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};
_.X.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.X.updateButtonState=function(H){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==wZy||!_.TQ(H))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(H){case "TRANSFER_STATE_UNKNOWN":H=WQ3;var U="OFFLINE_DOWNLOAD";var A="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":H=iVK;U="OFFLINE_DOWNLOAD";A="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":H=XZn;U="OFFLINE_PIN";A="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":H=
wZy;U="OFFLINE_DOWNLOADING_ZERO";A="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":H=iVK;U="OFFLINE_DOWNLOAD";A="ACTION_RETRY";break;default:H=WQ3,U="OFFLINE_DOWNLOAD",A="ACTION_ADD"}this.isVideoDeletedByUser&&(H=WQ3,U="OFFLINE_DOWNLOAD",A="ACTION_ADD");var M=Object.assign({},this.data);M.text=_.Nh(H);M.tooltip=H;M.icon={iconType:U};M.size="SIZE_DEFAULT";M.style="STYLE_DEFAULT";_.p(M.command,_.eI)&&(_.p(M.command,_.eI).action=A);this.set("data",M)}};
_.X.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var H="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?H="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?H="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?H="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?H="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?H="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(H="OFFLINE_PIN",this.isDownloadComplete=!0);var U;H!==((U=this.data.icon)==null?void 0:U.iconType)&&(U=Object.assign({},this.data),U.text=_.Nh(wZy),U.tooltip=wZy,U.icon={iconType:H},_.p(U.command,_.eI)&&(_.p(U.command,_.eI).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",U))}};
V4.prototype.updateProgress=V4.prototype.updateProgress;V4.prototype.onTransferStateChanged=V4.prototype.onTransferStateChanged;V4.prototype.showHideButton=V4.prototype.showHideButton;V4.prototype.dataChanged=V4.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],V4.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],V4.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],V4.prototype,"forceIconButton",void 0);
_.G([_.y(),_.q("design:type",Object)],V4.prototype,"forceIconOnly",void 0);_.G([_.y(),_.q("design:type",Object)],V4.prototype,"overrides",void 0);_.G([_.y(),_.q("design:type",Object)],V4.prototype,"buttonTooltipPosition",void 0);_.G([_.y(),_.q("design:type",Object)],V4.prototype,"styleActionButton",void 0);_.G([_.y(),_.q("design:type",Object)],V4.prototype,"disableTextTransform",void 0);
_.G([_.y({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.q("design:type",String)],V4.prototype,"videoId",void 0);_.G([_.y({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.q("design:type",String)],V4.prototype,"playerStateEntityKey",void 0);_.G([_.y(),_.q("design:type",Object)],V4.prototype,"data",void 0);_.G([_.y({selector:ZY,selectorArgs:["videoId"]}),_.q("design:type",Object)],V4.prototype,"downloadProgress",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],V4.prototype,"isDownloadComplete",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],V4.prototype,"isHidden",void 0);_.G([_.y({selector:_.O_,selectorArgs:["videoId"]}),_.q("design:type",String)],V4.prototype,"transferState",void 0);_.G([_.y({selector:_.inM,selectorArgs:["videoId"]}),_.q("design:type",Object)],V4.prototype,"isVideoDeletedByUser",void 0);
_.G([_.y({selector:mMt,selectorArgs:["videoId"]}),_.q("design:type",Object)],V4.prototype,"offlineabilityState",void 0);_.G([_.y({selector:_.tp,selectorArgs:["playerStateEntityKey"]}),_.q("design:type",Object)],V4.prototype,"playerStateEntity",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],V4.prototype,"showTooltips",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],V4.prototype,"sendCommandWhenDisabled",void 0);
_.G([_.y({value:!1}),_.q("design:type",Boolean)],V4.prototype,"disabled",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],V4.prototype,"dataChanged",null);_.G([_.jk("offlineabilityState","playerStateEntity"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],V4.prototype,"showHideButton",null);
_.G([_.jk("transferState","isVideoDeletedByUser"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],V4.prototype,"onTransferStateChanged",null);_.G([_.jk("downloadProgress"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],V4.prototype,"updateProgress",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],V4);
_.e(V4,"ytd-download-button-renderer",function(){if(Muy!==void 0)return Muy;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Muy=H},{mode:2});var bVp;var dRh,OVn=function(){if(dRh!==void 0)return dRh;var H=document.createElement("template");_.E(H,'\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 dRh=H};var u6w=_.S("web_button_rework")&&_.xV("BUTTON_REWORK")||_.S("web_button_rework_with_live"),ZVH=_.hr("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,Hi=function(){var H=_.B.apply(this,arguments)||this;H.isPressed=!1;H.forceIconButton=!1;H.forceIconOnly=!1;H.forceModernIconButton=!1;H.alignByText=!1;H.isShorts=!1;H.animatedText=!1;H.shouldAnimate=!1;H.JSC$14937_browserSupportsAnimation=_.S("web_supports_animations_api");H.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};H.onTap=function(){var U;if((U=H.data)==null||!U.defaultNavigationEndpoint){var A;U=!((A=H.data)==null?0:A.isToggled);var M;if((M=H.data)==null||!M.preventAutoToggle){H.shouldAnimate=!1;H.disableTextUpdateJobId&&_.Fl.cancelJob(H.disableTextUpdateJobId);H.disableTextUpdateJobId=_.Fl.addLowPriorityJob(function(){H.disableTextUpdateJobId=void 0},ZVH);
var W;H.set("data.isToggled",!((W=H.data)==null?0:W.isToggled));A=H.getInnertubeIcon();M={toggled:U,actions:{}};A&&(M.actions[A.toLowerCase()]=U);_.cg(H.hostElement,"yt-toggle-button",M)}}};
return H};
_.R(Hi,_.B);_.X=Hi.prototype;_.X.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.Fl.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.toggle=function(H){var U;this.set("data.isToggled",H!==void 0?H:!((U=this.data)==null?0:U.isToggled))};
_.X.handleUpdateToggleButtonStateCommand=function(H){if(this.data){H=_.p(H,aAz);var U,A,M,W=(U=this.data)==null?void 0:(A=U.toggleButtonSupportedData)==null?void 0:(M=A.toggleButtonIdData)==null?void 0:M.id;W&&H&&W===(H==null?void 0:H.buttonId)&&this.set("data.isToggled",H.toggled)}};
_.X.handleUpdateToggleButtonTextAction=function(H){if(this.data){H=_.p(H,IaK);var U,A,M,W=(U=this.data)==null?void 0:(A=U.toggleButtonSupportedData)==null?void 0:(M=A.toggleButtonIdData)==null?void 0:M.id;W&&H&&W===(H==null?void 0:H.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=H.defaultNumericalValue,this.set("data.defaultText",H.defaultText),this.set("data.toggledText",H.toggledText),this.shouldAnimate=!1)}};
_.X.getInnertubeIcon=function(){var H=this.data;if(H){var U,A,M=((U=H.defaultIcon)==null?0:U.iconType)?(A=H.defaultIcon)==null?void 0:A.iconType:null,W,w;U=((W=H.toggledIcon)==null?0:W.iconType)?(w=H.toggledIcon)==null?void 0:w.iconType:M;return H.isToggled?U:M}};
_.X.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.D5.Object.defineProperties(Hi.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var H={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$14937_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var U=H.renderer;var A=H.element;var M=H.toggled;var W=H.onTapCallback;var w=H.commandClientArgs;var d=H.overrides;var O=H.forceIcon;var f=H.forceModernIconButton;var J=H.forceDisabled;var F=H.useAnimatedText;var P=H.animatedTextProps;H=eVN(U,M);O=!U.defaultIcon||!O&&U.defaultText?U.defaultIcon?"leading":void 0:f?"icon-only":"icon-only-40";O==="icon-only-40"&&(H.type="text");var n;f=Object;var N=f.assign,L;a:switch((L=
U.style)==null?void 0:L.styleType){case "STYLE_COMPACT_GRAY":L={size:"S"};break a;default:L={size:"M"}}var m=!!M;var z=(z=M&&U.toggledText||U.defaultText)?_.Me(z):void 0;F?(F=_.Sp(M&&U.toggledText||U.defaultText))&&P&&!isNaN(Number(P.numberValue))?(P.numberText=F,M&&(P.numberValue+=1),F=P):F=void 0:F=void 0;var c,C,v,Y;var D=(P=((C=M?U.toggledAccessibilityData||((D=U.toggledText)==null?void 0:D.accessibility):U.accessibilityData||((c=U.defaultText)==null?void 0:c.accessibility))==null?void 0:(v=C.accessibilityData)==
null?void 0:v.label)||((Y=U.accessibility)==null?void 0:Y.label))?P:_.Sp(M&&U.toggledText||U.defaultText);J=J===void 0?U.isDisabled:J;A=rlc(U,M,W,A,w);M=Bw_(U,M);M!=null&&M.length?(M=_.dA({innertubeCommand:$4r(M),forceNewState:!0}),M=OB(M)?M:void 0):M=void 0;U=N.call(f,{},H,L,{iconPosition:O},d,{focused:!1,toggled:m,toggleable:!0,formattedButtonText:z,animatedTextProps:F,accessibilityLabel:D,disabled:J,onTap:A,aTagConfig:M},jsF((n=U.colorData)==null?void 0:n.basicColorPaletteData));U.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(U.type="filled");return U}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var H=this.getInnertubeIcon();if(H)return _.eq(H)}}});
Hi.prototype.resetAnimation=Hi.prototype.resetAnimation;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Hi.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Hi.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Hi.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Object)],Hi.prototype,"isPressed",void 0);_.G([_.y(),_.q("design:type",Object)],Hi.prototype,"forceIconButton",void 0);_.G([_.y(),_.q("design:type",Object)],Hi.prototype,"forceIconOnly",void 0);_.G([_.y(),_.q("design:type",Object)],Hi.prototype,"forceModernIconButton",void 0);_.G([_.y(),_.q("design:type",Object)],Hi.prototype,"alignByText",void 0);_.G([_.y(),_.q("design:type",Object)],Hi.prototype,"overrides",void 0);
_.G([_.y(),_.q("design:type",Boolean)],Hi.prototype,"disabled",void 0);_.G([_.y(),_.q("design:type",Object)],Hi.prototype,"isShorts",void 0);_.G([_.y(),_.q("design:type",Object)],Hi.prototype,"buttonTooltipPosition",void 0);_.G([_.y(),_.q("design:type",Object)],Hi.prototype,"animatedText",void 0);_.G([_.y(),_.q("design:type",String)],Hi.prototype,"textNumberValue",void 0);_.G([_.y({computed:"computeTooltip(data, data.isToggled)"}),_.q("design:type",Object)],Hi.prototype,"tooltip",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Hi.prototype,"resetAnimation",null);_.G([_.a("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hi.prototype,"computedButtonShape",null);_.G([_.a("data.*"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hi.prototype,"computedIcon",null);
_.G([_.dX({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],Hi);u6w&&_.e(Hi,"ytd-toggle-button-renderer",OVn,{mode:2});var fyw=_.r(function(H){function U(J){var F;return _.u(function(P){if(P.nextAddress==1)return(F=!$c7(J,O())||!O().enabled)?P.jumpTo(2):P.yield(hV_(),3);P.nextAddress!=2&&(F=P.yieldResult);if(F)return P.return();A();setTimeout(function(){d(!1)},1500);
_.DO(P)})}
function A(){setTimeout(function(){d(!0);var J;(J=M.lottieEl)==null||J.goToAndPlay(0)},150)}
var M=_.Bo(),W=_.b(_.iB(!1,void 0,"UfUosc")),w=W.next().value,d=W.next().value,O=_.RS(H.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.LA(function(){var J,F;((J=H.settings)==null?void 0:(F=J.call(H))==null?void 0:F.uniqueId)==="this is not intended behavior"&&_.Na(new _.bD("Smartimation Settings is undefined"))});
_.Em(function(){O().experimentEnabled&&(O().enabled?lQE(U):(d(!1),Ghr(U)),_.m4(function(){Ghr(U)}))},"IHhVmc");
_.Em(function(){O().timings.join("");O().experimentEnabled&&(YL0(O()),_.m4(function(){qLM(O())}))},"fsfhOe");
var f=_.Ja(function(){var J=M,F=O().uniqueId+"-border",P,n;var N="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((n=(P=_.lx().resolve(_.$V(_.qF)))==null?void 0:P())!=null&&n?"dark":"light")+"_v2.json";return{animationRef:J,animationConfig:{name:F,autoplay:!1,loop:!1,path:N}}},void 0,"UWvUGe");
W={};return _.Z("yt-smartimation",{class:_.CG(H.className,"smartimation",(W["smartimation--experiment-enabled"]=function(){return O().experimentEnabled},W["smartimation--active-border"]=w,W["smartimation--enable-masking"]=khV(),W))},_.Z(_.K,{cond:function(){return O().experimentEnabled},
then:function(){return _.Z("div",{class:"smartimation__border"},_.Z(_.lK,{className:"smartimation__border-gradient",data:f,animationName:function(){return f().animationConfig.name}}))}}),_.Z("div",{class:"smartimation__content"},H.children))},"ja");
fyw.idomCompat=!0;_.LG(fyw,"yt-smartimation",{props:{className:_.sY,settings:_.sY}});var UN=function(){var H=_.B.apply(this,arguments)||this;H.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};H.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};H.shouldEnableSmartimation=!1;return H};
_.R(UN,_.B);UN.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
UN.prototype.onDataChanged=function(){var H,U;this.shouldEnableSmartimation=(((H=this.data)==null?void 0:(U=H.timedAnimationData)==null?void 0:U.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
UN.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var H=_.p(this.data.likeButton,_.JA),U=_.p(this.data.dislikeButton,_.JA);return!!((H==null?0:H.isToggled)||(U==null?0:U.isToggled))};
UN.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]]"}}}}}};
_.D5.Object.defineProperties(UN.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var H,U,A=((H=this.data)==null?void 0:(U=H.timedAnimationData)==null?void 0:U.animationTiming)||[];return{uniqueId:"like-dislike",timings:A,enabled:this.shouldEnableSmartimation,experimentEnabled:A.length>0}}}});
UN.prototype.onDataChanged=UN.prototype.onDataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],UN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],UN.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],UN.prototype,"likeButtonOverride",void 0);_.G([_.y(),_.q("design:type",Object)],UN.prototype,"dislikeButtonOverride",void 0);
_.G([_.a("shouldEnableSmartimation"),_.q("design:type",Object),_.q("design:paramtypes",[])],UN.prototype,"smartimationSettings",null);_.G([_.Ya("data"),_.Gl("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],UN.prototype,"onDataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],UN);
_.e(UN,"ytd-segmented-like-dislike-button-renderer",function(){if(bVp!==void 0)return bVp;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return bVp=H},{mode:1});var JWp;var KQK;(KQK=document.body)==null||KQK.setAttribute("rounded-container","");var oPh={};oPh.YtToggleButtonBehavior=[_.$y.YtActionHandlerBehavior,If.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 H=this.data.isToggled;if(!this.isModal_(H)){if(!this.data.preventAutoToggle){this.toggle();var U={toggled:this.data.isToggled,actions:{}};U.actions[this.buttonIcon]=this.data.isToggled;_.cg(this.hostElement,"yt-toggle-button",U)}U=this.data.defaultServiceEndpoint||null;var A=this.data.toggledServiceEndpoint||null;if(U&&A||U&&this.data.preventAutoToggle)H=H?A:U,U=this.disableCommandHandlerOverride,_.S("killswitch_toggle_button_behavior_resolve_command")||U?_.rs(this.hostElement,
[H]):_.l0(H,this.hostElement),_.cg(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:H})}},
stateChanged_:function(){var H=this.data;if(H){var U=H.isToggled;this._setEndpoint(this.computeEndpoint_(H));this._setServiceEndpoint(this.computeServiceEndpoint_(H));this._setButtonIcon(this.computeButtonIcon_(H,U));this._setButtonText(this.computeButtonText_(H,U));this._setButtonAccessibility(this.computeAccessibility_(H,U));this._setButtonTooltip(this.computeTooltip_(H,U));this._setButtonClass(this.computeButtonClass_(H,U));this._setIconPositionType(this.computeIconPositionType_(H));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=U):this.elements_.button.setAttribute("aria-pressed",U));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=U)}},
shouldSetIconActiveState_:function(){return _.S("kevlar_system_icons")},
toggle:function(H){this.set("data.isToggled",H!==void 0?H:!this.data.isToggled);_.S("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(H){if(H){var U,A;return!!((U=this.data)==null?0:(A=U.toggledServiceEndpoint)==null?0:A.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(H){return H&&H.defaultNavigationEndpoint||null},
computeButtonIcon_:function(H,U){var A=H&&H.defaultIcon?_.eq(H.defaultIcon.iconType):null;H=H&&H.toggledIcon?_.eq(H.toggledIcon.iconType):A;return U?H:A},
handleUpdateToggleButtonStateCommand_:function(H){H=H.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==H.buttonId&&this.toggle(H.toggled)},
computeButtonText_:function(H,U){return H?U&&H.toggledText||H.defaultText||null:null},
computeAccessibility_:function(H,U){return H?(U?this.get("toggledAccessibilityData.accessibilityData",H):this.get("accessibilityData.accessibilityData",H))||H.accessibility||null:null},
computeTooltip_:function(H,U){return H?U&&H.toggledTooltip||H.defaultTooltip||null:null},
computeButtonClass_:function(H,U){if(!H)return"";var A="",M=H.toggledStyle||H.style;if(U=U?M:H.style){U.styleType&&(U=U.styleType);try{A+=U.toLowerCase().replace(/_/g,"-")+" "}catch(W){_.SD(W,U,typeof U),_.Na(W)}}if(H=H.size){H.sizeType&&(H=H.sizeType);try{A+=H.toLowerCase().replace(/_/g,"-")+" "}catch(W){_.SD(W,H,typeof H),_.Na(W)}}return A.trim()},
computeIconPositionType_:function(H){return H&&H.iconPosition||null},
computeServiceEndpoint_:function(H){var U=H&&H.serviceEndpoint,A=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return U?U:A&&H.command?H.command:null},
handleUpdateToggleButtonTextAction_:function(H){H=H.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==H.buttonId&&(this.set("data.defaultText",H.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",H.toggledText),this.notifyPath("data.toggledText"))}}];_.Qm("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var FQ2=_.S("web_button_rework")&&_.xV("BUTTON_REWORK")||_.S("web_button_rework_with_live"),Ae=function(){var H=_.B.apply(this,arguments)||this;H.systemIcons=_.S("kevlar_system_icons");H.roundedContainer=!0;return H};
_.R(Ae,_.B);Ae.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Ae.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var H=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var U={toggled:!!this.data.isToggled,actions:{}};U.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var A,M;U.actions.playlistId=(A=this.data.defaultServiceEndpoint)==null?void 0:(M=A.playlistEditEndpoint)==null?void 0:M.playlistId;_.cg(this.hostElement,"yt-toggle-button",U)}(H=H?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(H)}};
Ae.prototype.onYtNavigate=function(H){var U=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(H.detail.endpoint);U&&(H.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(U))};
_.D5.Object.defineProperties(Ae,{template:{configurable:!0,enumerable:!0,get:function(){if(JWp===void 0){var H=document.createElement("template");_.E(H,"\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");H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);JWp=H}H=JWp;return H}}});
Ae.prototype.onYtNavigate=Ae.prototype.onYtNavigate;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Ae.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ae.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.m1),_.q("design:type",Object)],Ae.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.g(oPh.YtToggleButtonBehavior),_.q("design:type",Object)],Ae.prototype,"ytToggleButtonBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],Ae.prototype,"data",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],Ae.prototype,"showTooltips",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ae.prototype,"systemIcons",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ae.prototype,"roundedContainer",void 0);_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Ae.prototype,"onYtNavigate",null);
_.G([_.dX({is:"ytd-toggle-button-renderer",disableElementRegistration:FQ2})],Ae);var Pzw,s0m;_.Mx=new _.g3("PANEL_CONTROLLER_TOKEN");_.Wi=new _.g3("SHEET_CONTROLLER_TOKEN");_.wx=new _.g3("DIALOG_CONTROLLER_TOKEN");Pzw=new _.g3("DIALOG_CONTAINER_TOKEN");s0m=new _.g3("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.Xi=new _.g3("PERSISTENT_PANEL_CONTROLLER_TOKEN");var AY7=_.hP("DOWNLOAD",{},"Download"),Mh_=_.hP("DOWNLOADING",{},"Downloading"),W2M=_.hP("DOWNLOADED",{},"Downloaded"),wt8=_.hP("RETRY",{},"Retry");var nPw=_.r(function(H){var U=O4_,A=function(){return""},M=XtN(H.data),W=i4N(H.data),w=b4h(H.data),d=d8t(H.data);
U=function(){var O=H.data(),f=H4h(O,M(),W(),w(),d()),J=!!O.videoId,F=f.text;return{title:J?F:void 0,tooltip:J?void 0:F,accessibilityText:F,onTap:f.onTap,iconName:f.iconType,style:O.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:f.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:O.buttonSize}};
A={};A=_.CG("ytDownloadButtonViewModelHost",(A.ytDownloadButtonViewModelIsHidden=function(){var O=H.data(),f=d();return O.playlistId||f()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||f()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},A));
return _.Z("download-button-view-model",{class:A},_.Z(_.yJ,{data:U}))},"ka");
nPw.idomCompat=!0;var sec=new _.g3("SUBMIT_API_SERVICE_TOKEN");var oL_,F2F,nLt={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var eEr=new _.g3("RENDERER_LOGGER_TOKEN");var cYr=new _.g3("RENDERER_STAMPER_OPTIONS_TOKEN");var Su7;_.GB=new HRK;Su7=new Map;var yYc="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),rYK=["notificationTextRenderer","notificationMultiActionRenderer"],
B8r="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),th4=ptc(function(H){return _.an(H==null?void 0:H.targetId)}).useUpdatableData;var Cs_=0,x80=new Set;_.YY.debugName="EjJbCe";var N0w=_.r(function(H){var U=H.data;H=H.className;_.pA(function(){U().formId||_.sD(Error("Eh"))});
var A=_.K2N(function(){return U().formId},function(){return U().beforeSubmitCommand},function(){return U().afterSubmitCommand}),M=A.submitForm,W=A.isValid,w=A.isSubmitting,d=function(){return{state:U().isDisabled||!W()||w()?"disabled":"active"}};
return _.Z("yt-submit-button-view-model",{class:_.CG("ytSubmitButtonViewModelHost",H)},_.Z(_.YY,{data:function(){return U().button}},{buttonViewModel:function(O){return _.Z(_.yJ,{data:O.data,
buttonOverrides:d,onClick:M})}}))},"na");var pZz=_.r(function(H){var U=H.backgroundLottieRef;var A=H.foregroundLottieRef;var M=H.children;var W=H.wrapperClass;var w=H.disableAnimation;H=function(){return(_.S("web_animated_actions")||_.S("web_animated_actions_v2"))&&!(w==null?0:w())};
return _.Z("yt-animated-action",{class:_.CG("ytAnimatedActionHost",W)},_.Z("div",{class:"ytAnimatedActionContentWithBackground"},_.Z(_.K,{cond:H,then:function(){return _.Z(Skk,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:U==null?void 0:U(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(D8c()?"dark":"light")+"_v5.json"}}}})}}),M),_.Z(_.K,{cond:H,
then:function(){return _.Z(Skk,{lottiePlayerProps:function(){return{animationRef:A==null?void 0:A(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(D8c()?"dark":"light")+"_v4.json"}}}})}}))},"oa");
pZz.idomCompat=!0;var Skk=_.r(function(H){var U=H.wrapperClass;var A=H.lottieClass;var M=H.lottiePlayerProps;return _.Z("div",{class:_.CG("ytAnimatedActionLottie",U),"aria-hidden":"true"},_.Z(_.lK,{className:A,data:M,animationName:function(){return M().animationConfig.name}}))},"pa");var $87={isOpen:!1};var G$0={isAllowed:!1};var qu0={errorMessage:"",title:"",privacy:"",isDisabled:!0};var k$8={isOpen:!1};var T8E={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var LQK={response:void 0};var IZ8=function(H,U){H=H===void 0?LQK:H;switch(U.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},H,{response:U.payload});default:return H}};var Rd2={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var Qer=function(H,U){H=H===void 0?Rd2:H;switch(U.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},H,{nextDisabled:U.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},H,{nextCommand:U.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},H,{footerSubmissionData:U.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},H,{isImpersonationValid:U.payload});default:return H}};var EPy={reportFormData:void 0,reportDetailsFormData:void 0};var VhN=function(H,U){H=H===void 0?EPy:H;switch(U.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},H,{reportFormData:U.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},H,{reportDetailsFormData:U.payload});default:return H}};var mRm=void 0;_.S("mweb_enable_redux_store_on_demand")||(mRm=new pq(HV7()));var bf=_.S("enable_web_delhi_icons");var gPn=_.r(function(H){H=_.Ec(H,{themeOverride:void 0,animationRef:{}});var U=H.animatedIconType,A=H.active,M=H.themeOverride,W=H.animationRef;H=H.staticIconFn;var w=_.b(_.iB(void 0,void 0,"l48agc")),d=w.next().value,O=w.next().value,f=function(){a:{var z=U();var c=M==null?void 0:M();var C;c=(c==null?void 0:c.useDarkTheme)||((C=_.lx().resolve(_.$V(_.qF)))==null?void 0:C());switch(z){case "LIKE":mRm||(mRm=new pq(HV7()));z=(z=mOh(mRm.getState()))&&z.animationLightUrl&&z.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:c?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:c?z.animationDarkUrl:z.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(z){c=z;break a}c="animated_like_icon_"+(c?"dark":"light")+"_"+(bf?"v5":"v4");c={lottiePlayerProps:{animationConfig:{name:c,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+c+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(bf?" animated-like-icon-delhi":"")}}},totalFrames:bf?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":c={lottiePlayerProps:{animationConfig:{name:c?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(c?"dark":"light")+(bf?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(bf?" animated-subscribe-icon-delhi":"")}}},totalFrames:bf?120:79,lazyLoad:!1};break a}c=
void 0}return c},J=function(){var z,c;
return(c=(z=f())==null?void 0:z.lottiePlayerProps.animationConfig.name)!=null?c:""},F=function(){if(f()){var z=f().lottiePlayerProps.animationConfig.path;
return v$.get(z)||d()}};
w=_.b(_.iB(!1,void 0,"sDrGId"));var P=w.next().value;w=w.next().value;var n=AWE(w),N=function(){var z=f(),c,C,v;return(v=z==null?void 0:(c=z.lottiePlayerProps.animationConfig)==null?void 0:(C=c.rendererSettings)==null?void 0:C.className)!=null?v:""},L=void 0,m=void 0;
_.Em(function(){var z=f(),c=J(),C=F(),v=P(),Y=A();if(z&&(m!==c&&(m=c,L=Y,c=W(),n.animationConfig=z.lottiePlayerProps.animationConfig,n.animationRef=c,C&&(n.animationConfig.animationData=C,n.animationConfig.path=void 0),c=z.lottiePlayerProps.animationConfig.path,!v$.get(c)&&z.lazyLoad&&c&&URF(c,O)),!(v||z.lazyLoad&&!C))){if(C=!W().lottieEl)Y?(v=z.totalFrames,n.animationConfig.initialSegment=[v-1,v]):n.animationConfig.initialSegment=void 0;if(L!==Y&&!C)if(C=W(),Y){var D;(D=C.lottieEl)==null||D.playSegments([0,
z.totalFrames],!0)}else{var h;(h=C.lottieEl)==null||h.playSegments([0,1],!0)}L=Y}},"RQVZ1d");
return _.Z("animated-icon",{class:"ytAnimatedIconHost"},_.Z(_.K,{cond:function(){var z,c;return!((z=f())==null||!z.lottiePlayerProps.animationConfig.path||((c=f())==null?0:c.lazyLoad)&&!F()||P())},
then:function(){return _.Z(_.lK,{data:n,animationName:J,className:N,animationRef:W})},
else:H}))},"ra");_.dx=_.r(function(H){var U=_.nA("yt-subscribe-button-view-model"),A=_.nA("div"),M=_.nA("div"),W=_.Bo(),w=_.Bo(),d=_.Bo(),O=_.$Y(XZ7,function(){return H.data().stateEntityStoreKey}),f=_.$Y(iVc,function(){var Yc,sz;
return(sz=(Yc=H.data().notificationStateEntityStoreKeys)==null?void 0:Yc.subsNotificationStateKey)!=null?sz:""}),J=function(){return!H.data().enableSubscribeButtonPostClickAnimation},F=_.b(_.iB(0,void 0,"YtsSKb")),P=F.next().value,n=F.next().value;
F=_.b(_.iB(0,void 0,"V6JxRe"));var N=F.next().value,L=F.next().value;F=_.b(_.iB(!1,void 0,"JUCSZ"));var m=F.next().value,z=F.next().value;F=_.b(_.iB(!1,void 0,"oV6jwf"));var c=F.next().value,C=F.next().value;F=_.b(_.iB(!1,void 0,"hK1Whe"));var v=F.next().value,Y=F.next().value,D;F=_.b(_.iB(!1,void 0,"Asaolf"));var h=F.next().value,T=F.next().value,WF=function(){C(!0);_.TB(_.Fl,function(){C(!1)},1500)};
_.Em(function(){var Yc=c();_.X$(function(){Yc&&!J()&&O()&&nPN(W,w,d)})},"Qq6Hsf");
_.Em(function(){var Yc=O();_.X$(function(){if(!J()&&Yc){var sz;((sz=H.animateWidth)==null?0:sz.call(H))&&s0K(U.value,!!Yc.subscribed,P(),N());var Ry,oy;((Ry=D)==null?0:Ry.subscribed)||!Yc.subscribed||Yc.key!==((oy=D)==null?void 0:oy.key)||WF();D=Yc}})},"hog8te");
F=_.Ja(function(){var Yc,sz,Ry,oy=H.data(),aY=!((Yc=O())==null||!Yc.subscribed);Yc=!((sz=H.isOverlay)==null||!sz.call(H));sz=m()?U:void 0;var im=(Ry=f())==null?void 0:Ry.state;Ry=h();PzV(oy,im);return wZ_({model:oy,subscribed:aY,isOverlay:Yc,element:sz,notificationState:im,disableTextEllipsis:!0,focused:Ry})},void 0,"hc1PRd");
var dK=function(){var Yc;if(!J()&&((Yc=H.animateWidth)==null?0:Yc.call(H))&&(A==null?0:A.value)&&(M==null?0:M.value)&&!v()){Yc=O();var sz=_.b((Yc==null?0:Yc.subscribed)?[A,M]:[M,A]),Ry=sz.next().value;sz=sz.next().value;Ry=Math.ceil(Ry.value.getBoundingClientRect().width);sz=Math.ceil(sz.value.getBoundingClientRect().width);n(Ry);L(sz);s0K(U.value,!(Yc==null||!Yc.subscribed),Ry,sz);Y(!0)}},SN=_.c$(function(Yc){dK();
var sz=O();sz&&(Yc.detail.endpoint.subscribeEndpoint||Yc.detail.endpoint.unsubscribeEndpoint)&&KQc(U.value,!sz.subscribed,sz)}),o_=function(){var Yc=_.lx().resolve(_.$V(_.af));
Yc&&T(Yc.isKeyBoardInUse())},PF=function(){T(!1)};
_.C5("yt-player-subscribe",function(Yc){var sz=O();sz&&Yc===H.data().channelId&&KQc(U.value,!0,sz)});
_.C5("yt-player-unsubscribe",function(Yc){var sz=O();sz&&Yc===H.data().channelId&&KQc(U.value,!1,sz)});
_.C5("yt-update-subscribe-button-action",function(Yc){Yc=_.p(Yc,ZH2);var sz=O();sz&&Yc&&Yc.channelId===H.data().channelId&&KQc(U.value,!!Yc.subscribed,sz)});
_.LA(function(){U.value&&(U.value.addEventListener("focusin",o_),U.value.addEventListener("focusout",PF));var Yc=_.bM(_.Fl,function(){dK()});
z(!0);_.m4(function(){_.Fl.cancelJob(Yc);U.value&&(U.value.removeEventListener("focusin",o_),U.value.removeEventListener("focusout",PF))})});
var BF=function(){var Yc,sz,Ry;if(Ry=!((Yc=O())==null||!Yc.subscribed))Yc=!!H.data().disableNotificationBell,Ry=(sz=f())==null?void 0:sz.state,Ry=!Yc&&!!Ry;return Ry},kc=function(){var Yc;
return!((Yc=O())==null?0:Yc.subscribed)},G8=function(){var Yc,sz;
if(sz=kc()){sz=!!H.data().disableNotificationBell;var Ry=(Yc=f())==null?void 0:Yc.state;sz=!sz&&!!Ry}return sz},Pr={},Z3={};
return _.Z("yt-subscribe-button-view-model",{class:_.CG(H.className,"ytSubscribeButtonViewModelHost",(Pr.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var Yc,sz;return!((Yc=O())==null||!Yc.subscribed)&&((sz=H.animateWidth)==null?void 0:sz.call(H))&&c()},Pr.ytSubscribeButtonViewModelHostHidden=function(){var Yc;
return!((Yc=O())==null?0:Yc.subscribed)&&H.data().hideWhenUnsubscribed},Pr)),
el:U,"on:yt-service-request-sent":SN},_.Z(pZz,{backgroundLottieRef:W,foregroundLottieRef:w,wrapperClass:_.CG("ytSubscribeButtonViewModelAnimatedActionWrapper",(Z3.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var Yc;return((Yc=H.animateWidth)==null?void 0:Yc.call(H))&&c()},Z3.ytSubscribeButtonViewModelStaticWidth=function(){var Yc;
return!((Yc=H.animateWidth)==null?0:Yc.call(H))},Z3)),
disableAnimation:J},_.Z("div",{el:A,class:"ytSubscribeButtonViewModelContainer"},_.Z(_.cb,{data:F,icon:function(){return _.Z(_.K,{cond:BF,then:function(){var Yc=function(){var sz;return JWr((sz=f())==null?void 0:sz.state)};
return _.Z(_.K,{cond:function(){return J()||Yc()!=="NOTIFICATIONS_NONE"},
then:function(){return _.Z(_.er,{icon:Yc})},
else:function(){return _.Z(gPn,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:d})}})}})},
secondaryIconName:function(){return BF()?"EXPAND":void 0}}))),_.Z("div",{el:M,
class:"ytSubscribeButtonViewModelInvisible"},_.Z(_.K,{cond:function(){var Yc;return((Yc=H.animateWidth)==null?void 0:Yc.call(H))&&!J()&&!v()},
then:function(){return _.Z(_.cb,{data:_.Ja(function(){var Yc;return wZ_({model:H.data(),subscribed:kc(),isOverlay:!((Yc=H.isOverlay)==null||!Yc.call(H)),element:U,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var Yc;return G8()?JWr((Yc=f())==null?void 0:Yc.state):void 0},
secondaryIconName:function(){return G8()?"EXPAND":void 0}})}})))},"ua");
_.dx.idomCompat=!0;var ayr=_.r(function(H){var U=H.data;var A=_.$Y(XZ7,function(){return U().subscriptionStateEntityKey});
return _.Z(_.K,{cond:function(){var M=U(),W=A();return!M.hideWhenUnsubscribed||(W==null?0:W.subscribed)?_.p(U().button,_.ot):void 0},
then:function(M){return _.Z("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.Z(_.yJ,{data:M,buttonOverrides:function(){return{toggled:!0}}}))}})},"va");
ayr.idomCompat=!0;var xRw,ON;xRw=_.r(function(H){return _.Z(_.YY,{data:function(){return H.actionRow().actions}},{buttonViewModel:function(U){var A=U.data;
return _.Z(ON,{isRow:H.isRow,isIconOnlyButton:function(){return N0V(A())},
useIntrinsicWidth:H.useIntrinsicWidth},_.Z(_.yJ,{data:A}))},
subscribeButtonViewModel:function(U){return _.Z(ON,{isRow:H.isRow},_.Z(_.dx,{data:U.data,isOverlay:!1,animateWidth:function(){return!H.isRow()}}))},
downloadButtonViewModel:function(U){var A=U.data;return _.Z(ON,{isRow:H.isRow,isIconOnlyButton:function(){return!!A().playlistId}},_.Z(nPw,{data:A}))},
submitButtonViewModel:function(U){var A=U.data;return _.Z(ON,{isRow:H.isRow,isIconOnlyButton:function(){var M=A();return N0V(_.p(M==null?void 0:M.button,_.ot))}},_.Z(N0w,{data:A}))},
toggleButtonViewModel:function(U){var A=U.data;return _.Z(ON,{isRow:H.isRow,isIconOnlyButton:function(){var M=A();return N0V(_.p(M.isToggled?M.toggledButtonViewModel:M.defaultButtonViewModel,_.ot))}},_.Z(_.MI,{data:A}))},
subscribePlusButtonViewModel:function(U){return _.Z(ON,{isRow:H.isRow},_.Z(ayr,{data:U.data}))}})},"wa");
ON=_.r(function(H){var U={};return _.Z("div",{class:_.CG("ytFlexibleActionsViewModelAction",(U.ytFlexibleActionsViewModelActionRowAction=H.isRow,U.ytFlexibleActionsViewModelActionIntrinsicWidth=H.useIntrinsicWidth,U.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,U.ytFlexibleActionsViewModelActionIconOnlyButton=H.isIconOnlyButton,U))},H.children)},"xa");
_.uf=_.r(function(H){var U=function(){var M;return((M=H.layout)==null?void 0:M.call(H))===1},A={};
return _.Z("yt-flexible-actions-view-model",{class:_.CG("ytFlexibleActionsViewModelHost",H.className,(A.ytFlexibleActionsViewModelInline=function(){return!U()},A.ytFlexibleActionsViewModelScrollable=function(){return H.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},A))},_.Z(_.FQ,{each:function(){return H.data().actionsRows||[]}},function(M){return _.Z(_.K,{cond:U,
then:function(){return _.Z("div",{class:"ytFlexibleActionsViewModelActionRow"},_.Z(xRw,{actionRow:M,isRow:U,useIntrinsicWidth:function(){return!!H.data().respectActionIntrinsicWidth}}))},
else:function(){return _.Z(xRw,{actionRow:M,isRow:U})}})}))},"ya");_.LG(_.uf,"yt-flexible-actions-view-model",{props:{data:_.sY,layout:_.sY,justifyContentOverride:_.sY,className:_.sY}});_.Zu=_.r(function(H){var U=_.$Y(_.wT,function(){var W;return(W=H.data().dislikeEntityKey)!=null?W:""}),A=_.Ja(function(){var W=U();
return W?W.likeStatus==="DISLIKE":_.p(H.data().toggleButtonViewModel,_.Pc).isToggled},void 0,"fNr9he"),M=_.Ja(function(){return Object.assign({},_.p(H.data().toggleButtonViewModel,_.Pc),{isToggled:A()})},void 0,"AezoCc");
return _.Z("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.Z(_.MI,{data:M,buttonShapeOverrides:H.buttonShapeOverrideables,onToggle:function(W){var w=U();w&&W!==(w.likeStatus==="DISLIKE")&&w.key&&_.Le(_.Wl("likeStatusEntity",w.key,{likeStatus:W?"DISLIKE":"INDIFFERENT",hadUserInteraction:W}))}}))},"za");
_.Zu.idomCompat=!0;_.fn=_.r(function(H){var U=_.S("web_supports_animations_api"),A=yih(function(n){var N=J();if(!n){var L,m;return{numberText:(m=N==null?void 0:(L=N.likeCountIfIndifferent)==null?void 0:L.content)!=null?m:"",numberValue:Number(N==null?void 0:N.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var z;L=(N==null?void 0:(z=N.likeCountIfIndifferent)==null?void 0:z.content)!==n.numberText;if(O()||!L)return n;var c;return{numberText:(N==null?void 0:(c=N.likeCountIfIndifferent)==null?void 0:c.content)||
"",numberValue:Number(N==null?void 0:N.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!N}}),M=yih(function(n){var N=J();
if(!n){var L,m;return{numberText:(m=N==null?void 0:(L=N.likeCountIfLiked)==null?void 0:L.content)!=null?m:"",numberValue:Number(N==null?void 0:N.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var z;L=(N==null?void 0:(z=N.likeCountIfIndifferent)==null?void 0:z.content)!==n.numberText;if(O()||!L)return n;var c;return{numberText:(N==null?void 0:(c=N.likeCountIfLiked)==null?void 0:c.content)||"",numberValue:Number(N==null?void 0:N.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!N}}),W=_.b(_.iB(void 0,
void 0,"xYSlUe")),w=W.next().value,d=W.next().value,O=w,f=_.$Y(_.wT,function(){var n,N;
return(N=(n=H.data())==null?void 0:n.likeStatusEntityKey)!=null?N:""}),J=_.$Y(O67,function(){var n,N;
return((n=H.likeCountEntity)==null?void 0:(N=n.call(H))==null?void 0:N.key)||""}),F=_.Ja(function(){var n;
return((n=f())==null?void 0:n.likeStatus)==="LIKE"},void 0,"DG5Osd"),P=function(){var n;
return U&&!((n=H.likeCountEntity)==null||!n.call(H))};
return _.Z("like-button-view-model",{class:_.CG("ytLikeButtonViewModelHost",H.className)},_.Z(_.MI,{data:function(){var n=Object,N=n.assign,L;var m=_.p((L=H.data())==null?void 0:L.toggleButtonViewModel,_.Pc);return N.call(n,{},m||{},{isToggled:F()})},
buttonShapeOverrides:H.buttonShapeOverrideables,animatedTextPropsDefault:function(){return P()?A():void 0},
animatedTextPropsToggled:function(){return P()?M():void 0},
onToggle:function(n){Skh(n,f(),O(),d)},
style:function(){var n;return((n=H.disableIconAnimation)==null?0:n.call(H))?void 0:{animateIcon:"true"}}}))},"Aa");
_.fn.idomCompat=!0;var zdw=_.r(function(H){var U=function(){return _.p(H.data().likeButtonViewModel,_.fx)},A=function(){var W;
return((W=U())==null?void 0:W.likeStatusEntityKey)||""},M=_.Ja(function(){var W,w;
var d=(w=_.$Y(_.wT,A)())!=null?w:(W=U())==null?void 0:W.likeStatusEntity;W=H.data();var O;W=(W==null?void 0:(O=W.timedAnimationData)==null?void 0:O.animationTiming)||[];return{uniqueId:"like-dislike",timings:W,enabled:(d==null?void 0:d.likeStatus)==="INDIFFERENT"&&W.length>0,experimentEnabled:W.length>0}},void 0,"zZ3GQb");
return _.Z("segmented-like-dislike-button-view-model",{class:_.CG("ytSegmentedLikeDislikeButtonViewModelHost",H.className),"button-renderer":!0},_.Z(fyw,{settings:M},_.Z("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.Z(_.K,{cond:U,then:function(W){return _.Z(_.fn,{data:W,likeCountEntity:function(){return H.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.S("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.Z(_.K,{cond:function(){return _.p(H.data().dislikeButtonViewModel,_.JI)},
then:function(W){return _.Z(_.Zu,{data:W,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"Ba");
zdw.idomCompat=!0;_.LG(zdw,"segmented-like-dislike-button-view-model",{props:{data:_.sY,className:_.sY}});var Czr=_.r(function(H){var U=H.data;var A=H.className;var M=H.setMinWidth;var W=H.forceIconOnly;var w=_.nA("account-link-button-view-model"),d=_.$Y(_.pZM,function(){var n;return(n=U().accountLinkStatusEntityKey)!=null?n:""}),O=_.$Y(_.pZM,function(){var n;
return(n=U().accountLinkStatusSecondaryEntityKey)!=null?n:""}),f=function(){if(!_.S("web_account_link_secondary_killswitch")){var n,N;
return((n=d())==null?void 0:n.linked)||((N=O())==null?void 0:N.linked)}var L;return(L=d())==null?void 0:L.linked};
_.Em(function(){var n=d();if(n){var N=DJz(new eUw,Bkz(new yA3,!!n.linked));_.co().then(function(L){L&&(L.setAccountLinkState(_.I_(N.JSC$12628_serializeBinary(),4)),L.updateAccountLinkingConfig(!!n.linked))})}},"IvZF7");
var J=function(){return _.p(U().toggleButtonViewModel,_.Pc)};
_.C5("yt-signal-action-show-account-link-dialog",function(){if(J()){var n=f()?J().toggledButtonViewModel:J().defaultButtonViewModel;n=_.p(n,_.ot);var N;if((N=d())==null?0:N.isWarning){N=_.p(U().warningButtonViewModel,_.ot);if(!N){_.c5(Error("Fh"));return}n=N}var L;(N=_.ij((L=n)==null?void 0:L.onTap))&&_.lH([N],w.value)}else _.c5(Error("Gh"))});
var F=function(){var n=J();return Object.assign({},n,{isToggled:f()})},P=function(){return(W==null?0:W())?{iconPosition:"icon-only"}:{}};
return _.Z("account-link-button-view-model",{class:_.CG("ytwAccountLinkButtonViewModelHost",A,function(){return(M==null?0:M())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:w,"button-renderer":!0},_.Z("div",null,_.Z(_.K,{cond:function(){var n;if((n=d())==null?0:n.isWarning)return(n=_.p(U().warningButtonViewModel,_.ot))||_.c5(Error("Fh")),n},
then:function(n){return _.Z(_.yJ,{data:n,buttonOverrides:P})},
else:function(){return _.Z(_.MI,{data:F,buttonShapeOverrides:P})}})))},"Da");_.LG(Czr,"account-link-button-view-model",{props:{data:_.sY,className:_.Ne,setMinWidth:_.Ne,forceIconOnly:_.Ne}});_.Qm("menuRenderer","menuRenderer","ytd-menu-renderer");
var tu3={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"}},
cWh=_.S("web_fix_missing_action_buttons")?100:200,Je=function(){var H=_.B.apply(this,arguments)||this;H.safeArea=!_.S("kevlar_flex_menu_safe_area_killswitch");H.tonalOverride=!1;H.threeDotSize="M";H.isOverlay=!1;H.useOverlayDark=!1;H.topLevelIconsOnly=!1;H.JSC$15071_lastWidth=0;H.maybeUpdateFlexibleMenu=function(){_.S("web_fix_missing_action_buttons")?requestAnimationFrame(H.maybeUpdateFlexibleMenuImpl):H.maybeUpdateFlexibleMenuImpl()};
H.maybeUpdateFlexibleMenuImpl=function(){var U;if((U=H.data)!=null&&U.flexibleItems){H.maybeFlushDebouncer();U=H.hostElement.clientWidth;var A=U>H.JSC$15071_lastWidth,M,W=((M=H.topLevelButtonsContainer)==null?void 0:M.scrollHeight)||0,w;M=((w=H.flexibleItemButtonsContainer)==null?void 0:w.scrollHeight)||0;w=H.hostElement.scrollHeight>Math.max(W,M)+8;A?(H.resetFlexibleItems(),H.JSC$15071_lastWidth=H.hostElement.clientWidth,H.maybeUpdateFlexibleMenu()):w&&(H.shrinkFlexibleMenu(),H.JSC$15071_lastWidth=
U)}};
H.computeThreeDotButtonShape=function(){if(H.tonalOverride)return Object.assign({},{onTap:function(){H.onOverflowTap()},
iconPosition:"icon-only",style:H.isOverlay?H.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:H.threeDotSize,state:"active",accessibilityLabel:H.computeAccessibilityLabel(H.data)},H.threeDotButtonOverride)};
H.onOverflowTap=function(){var U,A,M,W,w,d;_.u(function(O){switch(O.nextAddress){case 1:if(H.data.fetchMenuCommand)return U=_.lx().resolve(_.YV),U.resolveCommand(H.data.fetchMenuCommand,{form:{element:H.hostElement}}),O.return();if(H.data.isDisabled&&H.data.disabledCommand)return _.l0(H.data.disabledCommand,H.hostElement),O.return();A=H.createMenuRendererVe();M={items:H.items};H.data.menuPopupAccessibility&&(M.menuPopupAccessibility=H.data.menuPopupAccessibility);H.data.footer&&(M.footer=H.data.footer);
W={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:M},veData:A}};w=_.lx().resolve(_.Wi);if(!_.S("ytd-menu-singleton-sheet-killswitch")){O.jumpTo(2);break}return O.yield(w.openSheet({openPopupActionCommand:W},H.hostElement),3);case 3:return O.return();case 2:return O.yield(w.isSheetOpen(),4);case 4:return(d=O.yieldResult)?O.yield(w.closeSheet(),0):O.yield(w.openSheet({openPopupActionCommand:W},H.hostElement),0)}})};
return H};
_.R(Je,_.B);_.X=Je.prototype;_.X.updateButtonOverrides=function(){if(!_.S("menu_renderer_label_update_upkillswitch")){var H=_.c4(this.hostElement).querySelector("yt-button-view-model");H&&(H.buttonOverrides=this.buttonOverrides)}};
_.X.computeHasItems=function(){var H;return((H=this.topLevelButtonData)==null?void 0:H.length)||this.hasFlexibleItems};
_.X.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.X.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Dt(this.hostElement,{"--ytd-menu-renderer-button-color":_.wn(this.data.iconColor)}))};
_.X.onStamperFinished=function(){this.JSC$15071_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.X.setupFlexibleMenu=function(){var H=this,U;(U=this.data)!=null&&U.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.B$(this.maybeUpdateFlexibleMenu,cWh,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){H.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))};
_.X.maybeFlushDebouncer=function(){if(_.S("web_replace_formatted_with_attributed_string")){var H;(H=this.topLevelButtons)==null||H.forEach(function(A){var M;(A=(M=A.getElementsByTagName("yt-attributed-string"))==null?void 0:M[0])&&Igc(A)});
var U;(U=this.flexibleItemButtons)==null||U.forEach(function(A){var M;(A=(M=A.getElementsByTagName("yt-attributed-string"))==null?void 0:M[0])&&Igc(A)})}};
_.X.resetFlexibleItems=function(){var H;if((H=this.data)!=null&&H.flexibleItems){_.S("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var U;this.flexAsTopLevelButtons=(U=this.data.flexibleItems)==null?void 0:U.map(function(A){return _.p(A,_.nvK).topLevelButton});
_.S("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.X.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.X.shrinkFlexibleMenu=function(){var H;(H=this.flexAsTopLevelButtons)!=null&&H.length&&(this.flexAsTopLevelButtons=[].concat(_.vI(this.flexAsTopLevelButtons.slice(0,-1))))};
_.X.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:tu3,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:tu3,events:!0}}};
_.X.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.X.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.X.detached=function(){this.icon="MORE_VERT"};
_.X.computeTopLevelButtonData=function(H){if(!H)return[];var U;H=(U=H==null?void 0:H.topLevelButtons)!=null?U:[];return _.dG.unsafeClone([].concat(_.vI(H)))};
_.X.computeItems=function(H,U){if(!H)return[];var A=[];if(U){var M=(H.flexibleItems||[]).map(function(d){return _.p(d,_.nvK)});
M=_.b(M);for(var W=M.next();!W.done;W=M.next())W=W.value,U.includes(W.topLevelButton)||(W=W.menuItem)&&A.push(W)}var w;H=(w=H==null?void 0:H.items)!=null?w:[];return[].concat(_.vI(A),_.vI(H))};
_.X.computeMenuActive=function(H,U){return H||U};
_.X.onPopupOpened=function(){this.overlayOpen=!0;_.cg(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.X.onPopupClosed=function(){this.overlayOpen=!1;_.cg(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.X.onPopupCanceled=function(){this.overlayOpen=!1;_.cg(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.X.computeAccessibilityLabel=function(H){return this.get("accessibility.accessibilityData.label",H)};
_.X.isHidden=function(H,U){return this.tonalOverride||!H?!0:H.fetchMenuCommand||H.isDisabled&&H.disabledCommand?!1:!(U==null?0:U.length)};
_.X.isModernOverflowHidden=function(H,U){return this.tonalOverride&&H?H.fetchMenuCommand?!1:!(U==null?0:U.length):!0};
_.X.createMenuRendererVe=function(){var H=this.data.trackingParams,U=_.XK(),A=_.ws();return H&&U&&A?(H=_.IS(H),A=_.ts(7591),_.S("combine_ve_grafts")?_.$g(_.k$(),A,H):_.ou(U,H,A),A):null};
_.D5.Object.defineProperties(Je.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.flexAsTopLevelButtons)==null||!H.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Je.prototype.onPopupCanceled=Je.prototype.onPopupCanceled;Je.prototype.onPopupClosed=Je.prototype.onPopupClosed;Je.prototype.onPopupOpened=Je.prototype.onPopupOpened;Je.prototype.tonalOverrideChanged=Je.prototype.tonalOverrideChanged;Je.prototype.resetFlexibleItems=Je.prototype.resetFlexibleItems;Je.prototype.setupFlexibleMenu=Je.prototype.setupFlexibleMenu;Je.prototype.iconButtonColorChanged=Je.prototype.iconButtonColorChanged;Je.prototype.updateButtonOverrides=Je.prototype.updateButtonOverrides;
_.G([_.g(_.m1),_.q("design:type",Object)],Je.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Je.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Je.prototype,"ytRendererstamperBehavior",void 0);_.G([_.hG("#button-shape"),_.q("design:type",HTMLElement)],Je.prototype,"buttonShape",void 0);_.G([_.hG("#button"),_.q("design:type",Object)],Je.prototype,"button",void 0);
_.G([_.y(),_.q("design:type",Object)],Je.prototype,"data",void 0);_.G([_.y({computed:"computeTopLevelButtonData(data)"}),_.q("design:type",Array)],Je.prototype,"topLevelButtonData",void 0);_.G([_.y(),_.q("design:type",Array)],Je.prototype,"flexAsTopLevelButtons",void 0);_.G([_.y({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.q("design:type",Array)],Je.prototype,"items",void 0);_.G([_.y({value:"MORE_VERT"}),_.q("design:type",String)],Je.prototype,"icon",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Je.prototype,"safeArea",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.q("design:type",Boolean)],Je.prototype,"menuActive",void 0);_.G([_.y(),_.q("design:type",Boolean)],Je.prototype,"menuFocused",void 0);_.G([_.y({value:"bottom"}),_.q("design:type",String)],Je.prototype,"buttonTooltipPosition",void 0);_.G([_.y(),_.q("design:type",Boolean)],Je.prototype,"overlayOpen",void 0);
_.G([_.y({value:!0}),_.q("design:type",Boolean)],Je.prototype,"forceIconButton",void 0);_.G([_.y(),_.q("design:type",Boolean)],Je.prototype,"styleActionButton",void 0);_.G([_.y(),_.q("design:type",Boolean)],Je.prototype,"disableTextTransformOnButtons",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Je.prototype,"tonalOverride",void 0);_.G([_.y(),_.q("design:type",Object)],Je.prototype,"threeDotSize",void 0);
_.G([_.y(),_.q("design:type",Object)],Je.prototype,"threeDotButtonOverride",void 0);_.G([_.y(),_.q("design:type",Object)],Je.prototype,"isOverlay",void 0);_.G([_.y(),_.q("design:type",Object)],Je.prototype,"useOverlayDark",void 0);_.G([_.y({computed:"computeButtonOverride(tonalOverride)"}),_.q("design:type",Object)],Je.prototype,"buttonOverride",void 0);_.G([_.y(),_.q("design:type",Boolean)],Je.prototype,"minimizePipBreakages",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Je.prototype,"hasCustomIconColor",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("flexAsTopLevelButtons"),_.q("design:type",Object),_.q("design:paramtypes",[])],Je.prototype,"hasFlexibleItems",null);_.G([_.y({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.q("design:type",Boolean)],Je.prototype,"hasItems",void 0);_.G([_.y(),_.q("design:type",Object)],Je.prototype,"topLevelIconsOnly",void 0);
_.G([_.Ya("topLevelIconsOnly"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Je.prototype,"updateButtonOverrides",null);_.G([_.a("topLevelIconsOnly"),_.q("design:type",Object),_.q("design:paramtypes",[])],Je.prototype,"buttonOverrides",null);_.G([_.hG("#top-level-buttons-computed"),_.q("design:type",HTMLElement)],Je.prototype,"topLevelButtonsContainer",void 0);_.G([_.ka(".top-level-buttons > *"),_.q("design:type",Array)],Je.prototype,"topLevelButtons",void 0);
_.G([_.hG("#flexible-item-buttons"),_.q("design:type",HTMLElement)],Je.prototype,"flexibleItemButtonsContainer",void 0);_.G([_.ka("#flexible-item-buttons > *"),_.q("design:type",Array)],Je.prototype,"flexibleItemButtons",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Je.prototype,"iconButtonColorChanged",null);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Je.prototype,"setupFlexibleMenu",null);_.G([_.jk("topLevelIconsOnly"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Je.prototype,"resetFlexibleItems",null);_.G([_.Ya("tonalOverride"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Je.prototype,"tonalOverrideChanged",null);
_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Je.prototype,"onPopupOpened",null);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Je.prototype,"onPopupClosed",null);_.G([_.Gl("yt-popup-canceled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Je.prototype,"onPopupCanceled",null);
_.e(Je,"ytd-menu-renderer",function(){if(Vhw===void 0){var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);Vhw=H}H=Vhw;return H},{mode:2});var yWg;var B0h;_.Kn=_.r(function(H){var U=H.data;var A=function(){if(U().icon)a:{var W={iconName:U().icon};for(var w=_.lx().resolve(_.Dd),d=_.b([12,24]),O=d.next();!O.done;O=d.next()){var f=O.value;O=Object.assign({},W,{iconStyle:"youtube_fill",iconSize:f});f=Object.assign({},W,{iconStyle:"youtube_outline",iconSize:f});if(w.resolveIcon(O)){W=O;break a}if(w.resolveIcon(f)){W=f;break a}}W=void 0}else W=void 0;return W};
H={};var M={};return _.Z("badge-shape",{class:_.CG("yt-badge-shape",function(){return ayF(U().type)},(H["yt-badge-shape--overlay"]=function(){return U().isOverlay},H["yt-badge-shape--ads-include-dot"]=function(){return U().adsIncludeDot},H["yt-badge-shape--thumbnail-badge"]=function(){a:switch(U().type){case 17:case 18:case 19:var W=!0;
break a;default:W=!1}return W},H["yt-badge-shape--status-badge"]=function(){a:switch(U().type){case 12:case 13:case 14:case 15:case 16:var W=!0;
break a;default:W=!1}return W},H["yt-badge-shape--no-text"]=function(){return!U().text},H["yt-badge-shape--modern"]=function(){return U().modern||_.S("web_modern_badge_shape")},H["yt-badge-shape--typography"]=function(){a:{var W=U();
if(W.shouldInheritTypography)switch(W.type){case 0:case 1:case 9:W=!0;break a;default:W=!1}else W=!1}return!W},H)),
style:_.rA({"background-color":function(){var W;return(W=U().customColors)==null?void 0:W.backgroundColor}}),
role:function(){return U().accessibilityText?"img":void 0},
"aria-label":function(){return U().accessibilityText}},_.Z(_.K,{cond:function(){return U().animation},
then:function(W){return _.Z(_.lK,{className:"yt-badge-shape__icon",data:W,animationName:function(){return W().animationConfig.name||""}})}}),_.Z(_.K,{cond:function(){var W;
return A()&&!((W=U())==null?0:W.animation)},
then:function(){return _.Z("div",{class:"yt-badge-shape__icon"},_.Z(_.Tk,{data:function(){return A()}}))}}),_.Z("div",{class:_.CG("yt-badge-shape__text",(M["yt-badge-shape__text--clip-text-overflow"]=function(){return U().clipTextOverflow},M["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(U().numBadgesInRow||0)>1},M))},function(){var W;
return(W=U())==null?void 0:W.text}))},"Ea");
_.Kn.idomCompat=!0;_.LG(_.Kn,"badge-shape",{props:{data:_.sY}});var op=function(){var H=_.B.apply(this,arguments)||this;H.systemIcons=_.S("kevlar_system_icons");H.animated=_.S("animated_live_badge_icon");H.useBadgeShape=_.S("web_badge_shape_defrag");return H};
_.R(op,_.B);_.X=op.prototype;_.X.addTooltips=function(){for(var H=_.c4(this.hostElement).querySelectorAll(".badge"),U=0,A;A=H[U++];){var M=this.repeatElement.itemForElement(A);A=_.c4(A);A.lastChild&&A.lastChild.is==="tp-yt-paper-tooltip"&&A.removeChild(A.lastChild);if(M=M.metadataBadgeRenderer&&M.metadataBadgeRenderer.tooltip){var W=_.Rf("tp-yt-paper-tooltip");(0,_.ek)(W).textContent=M;W.setAttribute("position","top");W.setAttribute("aria-hidden","true");A.appendChild(W)}}};
_.X.badgesChanged=function(){var H=this;_.sC().parkOrScheduleJob(function(){H.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.X.standaloneRoundedBadgeChanged=function(){var H=this.useRoundedBadge?this.useRoundedBadge:void 0;H&&(this.useRoundedBadge=H)};
_.X.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.X.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.X.computeStyle=function(H){_.S("kevlar_ytb_live_badges")&&H==="BADGE_STYLE_TYPE_LIVE_NOW"&&(H="badge-style-type-live-now-alternate");return H?H.toLowerCase().replace(/_/g,"-"):""};
_.X.computeRole=function(H){return this.computeAriaLabel(H)?"img":"status"};
_.X.computeAriaLabel=function(H){var U;return(H==null?void 0:(U=H.accessibilityData)==null?void 0:U.label)||(H==null?void 0:H.label)};
_.X.computeBadgeShape=function(H){if(H){var U,A;var M=mRK(H.style);var W=gP7(H.style),w=H.label,d=((U=H.accessibilityData)==null?void 0:U.label)||H.label;a:switch(H.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":U=!0;break a;default:U=!1}var O=(A=H.icon)==null?void 0:A.iconType;a:switch(H.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":H=!0;break a;default:H=!1}M={type:M,brNzRatingBadgeType:W,text:w,accessibilityText:d,
isOverlay:U,icon:O!=="PREMIUM"?O:void 0,modern:_.S("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:H}}else M={};return M};
_.X.updateComputedBadges=function(H,U,A){var M=this;(U=U?[U]:A?[A]:void 0)?this.computedBadges=U:this.computedBadges=H==null?void 0:H.filter(function(W){var w;if((w=W.metadataBadgeRenderer)==null?0:w.groups){w=!1;W=_.b(W.metadataBadgeRenderer.groups);for(var d=W.next();!d.done;d=W.next()){d=d.value;var O=void 0;w=w||((O=M.hiddenBadgeGroups)==null?void 0:O.includes(d))}return!w}return!0})};
_.X.useFilledIcons=function(H){return _.S("kevlar_system_icons")&&(H==="AUDIO_BADGE"||H==="CHECK_CIRCLE_THICK"||H==="OFFICIAL_ARTIST_BADGE"||H==="SPONSORSHIP_STAR"||H==="PERSON_RADAR_FILLED"||H==="PERSON_RADAR")};
_.X.computeBadgeShapeStyle=function(H){return this.useBadgeShape?H==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||H==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":H==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.X.computeIcon=function(H){var U,A;H=H==null?void 0:(U=H.metadataBadgeRenderer)==null?void 0:(A=U.icon)==null?void 0:A.iconType;if(H!=="PREMIUM"&&H)return _.eq(H)};
_.X.computeStandaloneBadge=function(H){var U;H=H==null?void 0:(U=H.icon)==null?void 0:U.iconType;return H==="PREMIUM_STANDALONE"||H==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
op.prototype.hiddenBadgeGroupsChanged=op.prototype.hiddenBadgeGroupsChanged;op.prototype.standaloneBadgeChanged=op.prototype.standaloneBadgeChanged;op.prototype.standaloneRoundedBadgeChanged=op.prototype.standaloneRoundedBadgeChanged;op.prototype.badgesChanged=op.prototype.badgesChanged;_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],op.prototype,"hidden",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],op.prototype,"componentBehavior",void 0);
_.G([_.y(),_.q("design:type",Array)],op.prototype,"badges",void 0);_.G([_.y(),_.q("design:type",Object)],op.prototype,"topStandaloneBadge",void 0);_.G([_.y(),_.q("design:type",Object)],op.prototype,"bottomStandaloneBadge",void 0);_.G([_.y(),_.q("design:type",Object)],op.prototype,"computedBadges",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],op.prototype,"mediumFontAdBadge",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],op.prototype,"useRoundedBadge",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],op.prototype,"largeFontAdBadge",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],op.prototype,"overlayAd",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],op.prototype,"overlayPremium",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],op.prototype,"noDotAdBadge",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],op.prototype,"collectionTruncate",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],op.prototype,"isThumbnailBadge",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],op.prototype,"wrapBadges",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Number)],op.prototype,"numBadgesInRow",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],op.prototype,"systemIcons",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],op.prototype,"animated",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],op.prototype,"useBadgeShape",void 0);_.G([_.y({value:[]}),_.q("design:type",Array)],op.prototype,"hiddenBadgeGroups",void 0);_.G([_.hG("#repeat"),_.q("design:type",WX)],op.prototype,"repeatElement",void 0);_.G([_.jk("badges"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],op.prototype,"badgesChanged",null);
_.G([_.jk("useRoundedBadge"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],op.prototype,"standaloneRoundedBadgeChanged",null);_.G([_.jk("topStandaloneBadge","bottomStandaloneBadge"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],op.prototype,"standaloneBadgeChanged",null);_.G([_.jk("hiddenBadgeGroups"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],op.prototype,"hiddenBadgeGroupsChanged",null);
_.G([_.dX({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],op);
var rWw=_.ty()(op,"ytd-badge-supported-renderer",function(){if(B0h===void 0){var H=document.createElement("template");_.E(H,'\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"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);B0h=H}H=B0h;return H},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:2});var Fi=function(){var H=_.B.apply(this,arguments)||this;H.iconType="STAR";H.plaMedium=_.S("enable_pla_resizing_for_desktop_medium");H.plaLarge=_.S("enable_pla_resizing_for_desktop_large");H.plaExtraLarge=_.S("enable_pla_resizing_for_desktop_extra_large");H.standardizeIconSize=_.S("kevlar_system_icons");H.mediaHoverOverlayInitialVisibility=_.S("enable_top_landscape_image_button_command_web");H.noBottomMargin=!1;H.thumbnailObjectFit="CONTAIN";H.thumbnailFitHeight=!0;H.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return H};
_.R(Fi,_.B);_.X=Fi.prototype;_.X.created=function(){this.activeView=new cA(this.hostElement)};
_.X.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"}}}};
_.X.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",Fi.JSC$15084_DEFAULT_CLICK_LOCATION_BEHAVIOR,Fi.JSC$15084_CLICK_LOCATION_ID_MAP))};
_.X.onTap=function(H){this.onTapOrClick(H)};
_.X.onTapOrClick=function(H){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,H,!1)};
_.X.updateMediaBackgroundImage=function(){var H=this.get("data.image.thumbnail.thumbnails");H&&(H=_.Rv(H,0))&&_.Dt(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+H+")"})};
_.X.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var H=0;H<this.data.impressionEndpoints.length;H++){var U=this.data.impressionEndpoints[H];U.clickTrackingParams&&delete U.clickTrackingParams;_.lx().resolve(_.YV).resolveCommand(U,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var A;((A=this.data)==null?0:A.activeView)&&y4(this.activeView,this.data.activeView)}};
_.X.handleMuteAd=function(){};
_.X.attached=function(){var H=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&BA(H.activeView)})};
_.X.detached=function(){_.S("stop_av_measurement_on_detach")&&BA(this.activeView)};
_.D5.Object.defineProperties(Fi.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null||!H.titleText)return"";var U;return _.hP("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((U=this.data)==null?void 0:U.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?0:H.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?0:H.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?0:H.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?0:H.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?0:H.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 H;return!((H=this.data)==null||!H.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"}}});
Fi.prototype.onTap=Fi.prototype.onTap;Fi.prototype.dataChanged=Fi.prototype.dataChanged;
Fi.JSC$15084_CLICK_LOCATION_ID_MAP=_.S("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"]]);
Fi.JSC$15084_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.S("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"}];_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Fi.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Fi.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.uQ),_.q("design:type",Object)],Fi.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Fi.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.gF.YtSparklesClickLocationBehavior),_.q("design:type",Object)],Fi.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.g([_.$y.YtActionHandlerBehavior]),_.q("design:type",Object)],Fi.prototype,"actionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Fi.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Object)],Fi.prototype,"clickCommand",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.w1}),_.q("design:type",Boolean)],Fi.prototype,"miniMode",void 0);_.G([_.y(),_.q("design:type",String)],Fi.prototype,"iconType",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Fi.prototype,"plaMedium",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Fi.prototype,"plaLarge",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Fi.prototype,"plaExtraLarge",void 0);_.G([_.a("data.titleText"),_.q("design:type",String),_.q("design:paramtypes",[])],Fi.prototype,"titleAriaLabel",null);_.G([_.a("data.rating"),_.q("design:type",Object),_.q("design:paramtypes",[])],Fi.prototype,"getRating",null);_.G([_.a("data.price"),_.q("design:type",Object),_.q("design:paramtypes",[])],Fi.prototype,"getPrice",null);
_.G([_.a("data.thirdLine"),_.q("design:type",Object),_.q("design:paramtypes",[])],Fi.prototype,"getThirdLine",null);_.G([_.a("data.fourthLine"),_.q("design:type",Object),_.q("design:paramtypes",[])],Fi.prototype,"getFourthLine",null);_.G([_.a("data.fifthLine"),_.q("design:type",Object),_.q("design:paramtypes",[])],Fi.prototype,"getFifthLine",null);_.G([_.a("getRating"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Fi.prototype,"computeRatingHidden",null);
_.G([_.a("getPrice"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Fi.prototype,"computePriceHidden",null);_.G([_.a("getThirdLine"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Fi.prototype,"computeThirdLineHidden",null);_.G([_.a("getFourthLine"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Fi.prototype,"computeFourthLineHidden",null);_.G([_.a("getFifthLine"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Fi.prototype,"computeFifthLineHidden",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data.energyIcon"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Fi.prototype,"hasEnergyIcon",null);_.G([_.a("computePriceHidden","computeRatingHidden"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Fi.prototype,"computeSecondaryTextHidden",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Fi.prototype,"standardizeIconSize",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Fi.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Fi.prototype,"noBottomMargin",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data.layout"),_.q("design:type",String),_.q("design:paramtypes",[])],Fi.prototype,"layout",null);_.G([_.a("data.layout"),_.q("design:type",Object),_.q("design:paramtypes",[])],Fi.prototype,"mediaThumbnailWidth",null);
_.G([_.a("layout"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Fi.prototype,"useRoundedBadge",null);_.G([_.y(),_.q("design:type",String)],Fi.prototype,"thumbnailObjectFit",void 0);_.G([_.y(),_.q("design:type",Object)],Fi.prototype,"thumbnailFitHeight",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Fi.prototype,"dataChanged",null);
_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Fi.prototype,"onTap",null);_.G([_.dX({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Fi);
_.e(Fi,"ytd-display-ad-renderer",function(){if(yWg!==void 0)return yWg;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return yWg=H},{mode:1});var edw;var DRr;var $RH;var xRV=new Map;var lyK=!1;var Pi=function(){var H=_.B.apply(this,arguments)||this;H.DEFAULT_TOOLTIP_OFFSET="10";H.TOOLTIP_OFFSET_NO_BANNER="-8";H.badges=null;H.noEndpoints=!1;H.wrapText=!1;H.forceVerified=!1;H.tooltipPosition="top";H.compactStyle=!1;H.height=0;H.lineHeight=0;return H};
_.R(Pi,_.B);_.X=Pi.prototype;_.X.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.X.attached=function(){var H=this;this.observer=new MutationObserver(function(U,A){H.handleResized();A.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.X.detached=function(){this.observer&&this.observer.disconnect()};
_.X.logTooltipEvent=function(){_.S("kevlar_wiz_tooltip_event_killswitch")||lyK||(_.zdN("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),lyK=!0)};
_.X.handleWindowResized=function(){this.handleResized()};
_.X.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")))};
_.X.onHeightChanged=function(){if(this.verified){var H=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.gD("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=H:this.textContainerEl.style.marginRight=H}};
_.X.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.gD("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.X.handleResized=function(){var H=this;this.verified&&_.Fl.addLowPriorityJob(function(){H.fitBackgroundToText();var U=getComputedStyle(H.hostElement).lineHeight;U&&(U=U.match(/\d+/))&&U.length&&(H.lineHeight=Number(U[0]));H.height=H.lineHeight&&!H.wrapText?H.lineHeight:H.textEl.offsetHeight})};
_.X.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var H=document.createRange(),U=_.c4(this.textEl).children;U.length>0?H.selectNodeContents(U[0]):H.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(H.getBoundingClientRect().width)+"px"}};
_.X.computeChannelBadgeStyle=function(H){var U;if((H==null?0:(U=H.runs)==null?0:U.length)&&H.runs[0].textColor)return"--ytd-badge-icon-color:"+_.wn(H.runs[0].textColor)+";"};
_.D5.Object.defineProperties(Pi.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"?_.Nh(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var H=this.get("badges.0.metadataBadgeRenderer.tooltip");if(H)return H}return _.Sp(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
Pi.prototype.onLineHeightChanged=Pi.prototype.onLineHeightChanged;Pi.prototype.onHeightChanged=Pi.prototype.onHeightChanged;Pi.prototype.onChannelNameChanged=Pi.prototype.onChannelNameChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Pi.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Pi.prototype,"badges",void 0);_.G([_.y(),_.q("design:type",Object)],Pi.prototype,"channelName",void 0);
_.G([_.y(),_.q("design:type",Object)],Pi.prototype,"noEndpoints",void 0);_.G([_.y(),_.q("design:type",Object)],Pi.prototype,"wrapText",void 0);_.G([_.y(),_.q("design:type",Object)],Pi.prototype,"forceVerified",void 0);_.G([_.y(),_.q("design:type",Object)],Pi.prototype,"tooltipPosition",void 0);_.G([_.y(),_.q("design:type",String)],Pi.prototype,"tooltip",void 0);_.G([_.y(),_.q("design:type",Boolean)],Pi.prototype,"hasChannelArt",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Pi.prototype,"compactStyle",void 0);_.G([_.hG("#text-container"),_.q("design:type",HTMLElement)],Pi.prototype,"textContainerEl",void 0);_.G([_.hG("#text"),_.q("design:type",Object)],Pi.prototype,"textEl",void 0);_.G([_.hG("#verified-tooltip"),_.q("design:type",HTMLElement)],Pi.prototype,"verifiedTooltip",void 0);_.G([_.y(),_.q("design:type",Object)],Pi.prototype,"height",void 0);
_.G([_.y(),_.q("design:type",Object)],Pi.prototype,"lineHeight",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("badges","forceVerified"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Pi.prototype,"verified",null);_.G([_.a("badges","verified"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Pi.prototype,"hideBadges",null);_.G([_.a("channelName"),_.q("design:type",Object),_.q("design:paramtypes",[])],Pi.prototype,"formattedName",null);
_.G([_.a("badges","verified","formattedName"),_.q("design:type",String),_.q("design:paramtypes",[])],Pi.prototype,"tooltipText",null);_.G([_.a("hasChannelArt"),_.q("design:type",String),_.q("design:paramtypes",[])],Pi.prototype,"tooltipOffset",null);_.G([_.Ya("channelName"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Pi.prototype,"onChannelNameChanged",null);
_.G([_.Ya("height"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Pi.prototype,"onHeightChanged",null);_.G([_.Ya("lineHeight","height"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Pi.prototype,"onLineHeightChanged",null);_.G([_.dX({is:"ytd-channel-name",disableElementRegistration:!0})],Pi);
_.e(Pi,"ytd-channel-name",function(){if($RH!==void 0)return $RH;var H=document.createElement("template");_.E(H,'\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 aria-hidden="true" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return $RH=H},{mode:2});var sN=function(){var H=_.B.apply(this,arguments)||this;H.standardizeIconSize=_.S("kevlar_system_icons");return H};
_.R(sN,_.B);sN.prototype.basicPaletteChanged=function(){var H;(H=this.data.color)!=null&&H.basicColorPaletteData&&_.jr(this.hostElement,this.data.color.basicColorPaletteData)};
sN.prototype.useFilledIcons=function(H){return _.S("kevlar_system_icons")&&(H==="CHECK_CIRCLE_THICK"||H==="OFFICIAL_ARTIST_BADGE")};
_.D5.Object.defineProperties(sN.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return this.data.authorCreator||((H=this.data)==null?void 0:(U=H.color)==null?void 0:(A=U.basicColorPaletteData)==null?void 0:A.backgroundColor)}}});
sN.prototype.basicPaletteChanged=sN.prototype.basicPaletteChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],sN.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],sN.prototype,"standardizeIconSize",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data.authorUnifiedVerified"),_.q("design:type",Object),_.q("design:paramtypes",[])],sN.prototype,"verified",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],sN.prototype,"creator",null);_.G([_.Ya("data.color.basicColorPaletteData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sN.prototype,"basicPaletteChanged",null);_.G([_.dX({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],sN);
_.e(sN,"ytd-author-comment-badge-renderer",function(){if(DRr!==void 0)return DRr;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return DRr=H},{mode:1});var GNB;var nn=function(){return _.B.apply(this,arguments)||this};
_.R(nn,_.B);nn.prototype.computeThumbnailWidth=function(H){if(H==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],nn.prototype,"data",void 0);_.G([_.y({computed:"computeIcon_(data.icon)"}),_.q("design:type",String)],nn.prototype,"icon",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],nn.prototype,"surface",void 0);
_.G([_.y({reflectToAttribute:!0,value:_.S("enable_shrink_image_size_on_web_posts_singleton")}),_.q("design:type",Boolean)],nn.prototype,"searchSxsUx",void 0);_.G([_.y({reflectToAttribute:!0,value:_.S("enable_community_page_on_desktop")}),_.q("design:type",Boolean)],nn.prototype,"useSmallerPostImageAttachments",void 0);_.G([_.dX({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],nn);
_.e(nn,"ytd-backstage-image-renderer",function(){if(GNB!==void 0)return GNB;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return GNB=H},{mode:1});var Ykw;var Nx=function(){var H=_.B.apply(this,arguments)||this;H.isLoading=!1;H.selectedItemIndex=-1;return H};
_.R(Nx,_.B);_.X=Nx.prototype;_.X.computeIsChannelOwner=function(H){if(!H)return!0;H=H[0];return!(H&&(H.signinEndpoint||H.selectServiceEndpoint))};
_.X.computeIsImagePoll=function(H){return(H==null?void 0:H.type)==="POLL_TYPE_IMAGE"};
_.X.computeIsTotalVotesDisabled=function(H){return!(H==null?0:H.totalVotes)};
_.X.thumbnailSrc=function(H){var U,A,M,W;return(H==null?0:(U=H.thumbnails)==null?0:(A=U[0])==null?0:A.url)?_.j3((M=H.thumbnails)==null?void 0:(W=M[0])==null?void 0:W.url):void 0};
_.X.progressWidth=function(H){return"width:"+(H?H*100:0)+"%;"};
_.X.textAreaWidth=function(H){return this.isImagePoll?null:"width:"+(H?H*100:0)+"%;"};
_.X.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.X.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var H=this.data.choices,U=0;U<H.length;U++)if(H[U].selected){this.selectedItemIndex=U;break}};
_.X.onPopupClosed=function(H,U){H=Number(this.pollVotes.selected);U.confirmed&&(this.selectChoice(H,!1),_.yr(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.X.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.X.onYtCommentPollRevert=function(H,U){U&&(this.selectChoice(U.selectedChoiceIndex,!0),this.set("data.totalVotes",U.totalVotes))};
_.X.onYtServiceRequestSent=function(H,U){if(U.actions)for(H=0;H<U.actions.length;H++){var A=U.actions[H];_.p(A,TV)&&this.set("data.totalVotes",_.p(A,TV).totalVotes)}};
_.X.onYtServiceRequestCompleted=function(H){var U=this.get("detail.data.actionResults.0.feedback",H);H=this.get("detail.data.actionResults.0.status",H);if(U==="FEEDBACK_DESELECT"||U==="FEEDBACK_SELECT")this.isLoading=!1,H==="STATUS_FAILED"?_.cg(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.X.getEndpoint=function(H,U){return U===H?this.data.choices[U].deselectServiceEndpoint||null:this.data.choices[H].selectServiceEndpoint||null};
_.X.selectChoice=function(H,U){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var A=0;A<this.data.choices.length;A++){var M;if(H===this.selectedItemIndex){var W=!1;var w=M=null}else M=(W=A===H)?this.data.choices[A].voteRatioIfSelected:this.data.choices[A].voteRatioIfNotSelected,w=W?this.data.choices[A].votePercentageIfSelected:this.data.choices[A].votePercentageIfNotSelected;this.set("data.choices."+A+".voteRatio",M);
this.set("data.choices."+A+".votePercentage",w);this.set("data.choices."+A+".selected",W)}U||(this.isLoading=!0,(U=this.getEndpoint(H,this.selectedItemIndex))&&_.lx().resolve(_.YV).resolveCommand(U,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===H?-1:H};
_.D5.Object.defineProperties(Nx.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Nx.prototype.onYtServiceRequestCompleted=Nx.prototype.onYtServiceRequestCompleted;Nx.prototype.onYtServiceRequestSent=Nx.prototype.onYtServiceRequestSent;Nx.prototype.onYtCommentPollRevert=Nx.prototype.onYtCommentPollRevert;Nx.prototype.onPopupClosed=Nx.prototype.onPopupClosed;Nx.prototype.dataChanged=Nx.prototype.dataChanged;_.G([_.g(_.Fa),_.q("design:type",Object)],Nx.prototype,"paperItemBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.m1),_.q("design:type",Object)],Nx.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Nx.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Nx.prototype,"isLoading",void 0);_.G([_.y({computed:"computeIsChannelOwner(data.choices)"}),_.q("design:type",Boolean)],Nx.prototype,"isChannelOwner",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.q("design:type",Boolean)],Nx.prototype,"isImagePoll",void 0);_.G([_.y({computed:"computeIsTotalVotesDisabled(data)"}),_.q("design:type",Boolean)],Nx.prototype,"isTotalVotesDisabled",void 0);_.G([_.y(),_.q("design:type",Object)],Nx.prototype,"previousPollInfo",void 0);_.G([_.y(),_.q("design:type",Object)],Nx.prototype,"selectedItemIndex",void 0);_.G([_.hG("#poll-votes"),_.q("design:type",Object)],Nx.prototype,"pollVotes",void 0);
_.G([_.a("isChannelOwner"),_.q("design:type",Object),_.q("design:paramtypes",[])],Nx.prototype,"endpointStyle",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Nx.prototype,"dataChanged",null);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],Nx.prototype,"onPopupClosed",null);
_.G([_.Gl("yt-comment-poll-revert"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],Nx.prototype,"onYtCommentPollRevert",null);_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],Nx.prototype,"onYtServiceRequestSent",null);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Nx.prototype,"onYtServiceRequestCompleted",null);_.G([_.dX({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Nx);
_.e(Nx,"ytd-backstage-poll-renderer",function(){if(Ykw!==void 0)return Ykw;var H=document.createElement("template");_.E(H,'\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" aria-selected$="[[item.selected]]">\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Ykw=H},{mode:2});var qkm;var hd3={autoplay:!1,loop:!1},kNh={simpleText:""},So=function(){var H=_.B.apply(this,arguments)||this;H.isLoading=!1;H.usesPanelLockup=!1;H.selectedItemIndex=-1;H.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},hd3,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});H.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},hd3,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});H.correctnessAnimationProps=[];H.correctnessAnimationRefs=[];return H};
_.R(So,_.B);_.X=So.prototype;_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.X.computeIsChannelOwner=function(H){if(!H)return!0;H=H[0];return!(H&&(H.signinEndpoint||H.selectServiceEndpoint))};
_.X.computeIsTotalVotesDisabled=function(H){return!(H==null?0:H.totalVotes)};
_.X.computeIsImageQuiz=function(H){return(H==null?void 0:H.type)==="POLL_TYPE_IMAGE"};
_.X.onExplanationChanged=function(){this.expander.reset()};
_.X.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var H=this.data.choices;if(H){this.maybeInitializeQuizLotties(H);for(var U=0;U<H.length;U++)if(H[U].isSelected||this.isChannelOwner&&H[U].isCorrect){this.selectedItemIndex=U;return}this.selectedItemIndex=-1}}};
_.X.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var H=this.selectedItemIndex,U=Number(this.quizVotes.selected);this.selectChoice(U);this.sendVoteAction(U,H);this.quizVotes.selected=-1;var A;H=!((A=this.data)==null?0:A.enableAnimation);this.maybePlayAnswerAnimations(H)}};
_.X.onYtCommentPollRevert=function(H,U){U&&(this.selectChoice(U.selectedChoiceIndex),this.set("data.totalVotes",U.totalVotes))};
_.X.onYtServiceRequestSent=function(H,U){if(U.actions)for(H=_.b(U.actions),U=H.next();!U.done;U=H.next())(U=_.p(U.value,TV))&&this.set("data.totalVotes",U.totalVotes)};
_.X.onYtServiceRequestCompleted=function(H){var U=this.get("detail.data.actionResults.0.feedback",H);H=this.get("detail.data.actionResults.0.status",H);if(U==="FEEDBACK_DESELECT"||U==="FEEDBACK_SELECT")this.isLoading=!1,H==="STATUS_FAILED"?_.cg(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.X.getAnimationPropsForChoiceIndex=function(H,U){return U[H]};
_.X.maybePlayAnswerAnimations=function(H){H=H===void 0?!1:H;var U;if((U=this.data)!=null&&U.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){U=_.b(this.correctnessAnimationRefs);for(var A=U.next();!A.done;A=U.next()){var M=void 0,W=void 0;(M=A.value)==null||(W=M.lottieEl)==null||W.stop()}if(!(this.selectedItemIndex<0)){U=0;H&&(U=this.isCorrect?37:25);var w,d;(w=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(d=w.lottieEl)==null||d.goToAndPlay(H?U:0,!0);if(!(this.isCorrect||
(w=this.data.choices.findIndex(function(F){return F.isCorrect}),w<0))){var O,f;
(f=(O=this.correctnessAnimationRefs[w])==null?void 0:O.lottieEl)==null||f.goToAndPlay(37,!0);var J;O=(J=this.fadeContainers)==null?void 0:J.item(w);!H&&O&&this.fadeIn(O)}}}};
_.X.thumbnailSrc=function(H){var U,A,M,W;return(H==null?0:(U=H.thumbnails)==null?0:(A=U[0])==null?0:A.url)?_.j3((M=H.thumbnails)==null?void 0:(W=M[0])==null?void 0:W.url):void 0};
_.X.a11yVotedText=function(H,U){var A,M,W=((A=this.data)==null?void 0:(M=A.correctVotedText)==null?void 0:M.simpleText)||"",w,d;A=((w=this.data)==null?void 0:(d=w.votedText)==null?void 0:d.simpleText)||"";if(!U)return"";var O,f;if((O=this.data)==null?0:(f=O.choices)==null?0:f[H].isCorrect)return W;var J,F;return((J=this.data)==null?0:(F=J.choices)==null?0:F[H].isSelected)?A:""};
_.X.getEndpoint=function(H,U){return U===H?this.data.choices[H].deselectServiceEndpoint||null:this.data.choices[H].selectServiceEndpoint||null};
_.X.sendVoteAction=function(H,U){if(H=this.getEndpoint(H,U))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(H)};
_.X.selectChoice=function(H){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var U=0;U<this.data.choices.length;U++)this.set("data.choices."+U+".isSelected",H===this.selectedItemIndex?!1:U===H);this.selectedItemIndex=this.selectedItemIndex===H?-1:H};
_.X.maybeInitializeQuizLotties=function(H){var U=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=H.map(function(A){return{animationConfig:A.isCorrect?U.baseCorrectLottiePlayerAnimationConfig:U.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){U.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(A){return A.animationRef||{}})};
_.X.fadeIn=function(H){H.classList.add("fade-in");_.av(_.Fl,function(){H.classList.remove("fade-in")},900)};
_.D5.Object.defineProperties(So.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Sp(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 H,U;return((H=this.data)==null?void 0:(U=H.choices)==null?void 0:U.some(function(A){return A.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null||!H.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?kNh:this.data.choices[this.selectedItemIndex].explanation||kNh}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null||!H.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
So.prototype.onYtServiceRequestCompleted=So.prototype.onYtServiceRequestCompleted;So.prototype.onYtServiceRequestSent=So.prototype.onYtServiceRequestSent;So.prototype.onYtCommentPollRevert=So.prototype.onYtCommentPollRevert;So.prototype.dataChanged=So.prototype.dataChanged;So.prototype.onExplanationChanged=So.prototype.onExplanationChanged;_.G([_.g(_.Fa),_.q("design:type",Object)],So.prototype,"paperItemBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],So.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],So.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.LJ.YtTaskEmitterBehavior),_.q("design:type",Object)],So.prototype,"ytTaskEmitterBehavior",void 0);_.G([_.g(_.m1),_.q("design:type",Object)],So.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],So.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Object)],So.prototype,"isLoading",void 0);_.G([_.y(),_.q("design:type",Object)],So.prototype,"usesPanelLockup",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.q("design:type",Boolean)],So.prototype,"isChannelOwner",void 0);_.G([_.y({computed:"computeIsTotalVotesDisabled(data)"}),_.q("design:type",Boolean)],So.prototype,"isTotalVotesDisabled",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.q("design:type",Boolean)],So.prototype,"isImageQuiz",void 0);_.G([_.y(),_.q("design:type",Object)],So.prototype,"previousQuizInfo",void 0);_.G([_.y(),_.q("design:type",Object)],So.prototype,"selectedItemIndex",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data","usesPanelLockup"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],So.prototype,"shouldUseModernUi",null);
_.G([_.ka(".fade-container"),_.q("design:type",Object)],So.prototype,"fadeContainers",void 0);_.G([_.y(),_.q("design:type",Array)],So.prototype,"correctnessAnimationProps",void 0);_.G([_.a("explanation","showCorrectAnswer"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],So.prototype,"showExplanation",null);_.G([_.a("isChannelOwner","isAttempted"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],So.prototype,"showCorrectAnswer",null);
_.G([_.a("isChannelOwner","isAttempted","data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],So.prototype,"isQuizAnsweringDisabled",null);_.G([_.a("isQuizAnsweringDisabled"),_.q("design:type",Object),_.q("design:paramtypes",[])],So.prototype,"endpointStyle",null);_.G([_.a("data","selectedItemIndex"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],So.prototype,"isAttempted",null);
_.G([_.a("data","selectedItemIndex"),_.q("design:type",Object),_.q("design:paramtypes",[])],So.prototype,"explanation",null);_.G([_.a("data","selectedItemIndex"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],So.prototype,"isCorrect",null);_.G([_.hG("ytd-expander"),_.q("design:type",Object)],So.prototype,"expander",void 0);_.G([_.hG("#quiz-votes"),_.q("design:type",Object)],So.prototype,"quizVotes",void 0);
_.G([_.Ya("explanation"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],So.prototype,"onExplanationChanged",null);_.G([_.Ya("data","isChannelOwner"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],So.prototype,"dataChanged",null);_.G([_.Gl("yt-comment-quiz-revert"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],So.prototype,"onYtCommentPollRevert",null);
_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],So.prototype,"onYtServiceRequestSent",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],So.prototype,"onYtServiceRequestCompleted",null);_.G([_.dX({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],So);
_.e(So,"ytd-backstage-quiz-renderer",function(){if(qkm!==void 0)return qkm;var H=document.createElement("template");_.E(H,'\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="correctness-lottie style-scope ytd-backstage-quiz-renderer" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]">\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return qkm=H},{mode:1});var vPh;var pn=function(){return _.B.apply(this,arguments)||this};
_.R(pn,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],pn.prototype,"data",void 0);_.G([_.dX({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],pn);
_.e(pn,"ytd-post-uploaded-video-renderer",function(){if(vPh!==void 0)return vPh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return vPh=H},{mode:1});var T0w;var Ln=function(){return _.B.apply(this,arguments)||this};
_.R(Ln,_.B);Ln.prototype.useFilledIcons=function(H){return H==="SPONSORSHIP_STAR"};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ln.prototype,"data",void 0);_.G([_.dX({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Ln);
var j0n=_.ty()(Ln,"ytd-sponsors-only-badge-renderer",function(){if(T0w===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);T0w=H}H=T0w;return H},{allowedProps:["data"],
mode:1});var Iyz;var Rp=function(){return _.B.apply(this,arguments)||this};
_.R(Rp,_.B);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Rp.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Rp.prototype,"data",void 0);_.G([_.dX({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Rp);
_.e(Rp,"ytd-child-video-renderer",function(){if(Iyz!==void 0)return Iyz;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Iyz=H},{mode:1});var Q0w;var Vu2;var EN=function(){var H=_.B.apply(this,arguments)||this;H.size=0;H.fallbackImageSize={height:void 0,width:9999};H.webModernCollections=!1;return H};
_.R(EN,_.B);_.X=EN.prototype;_.X.computeBlurredImageSize=function(H){return H?{height:H*2,width:H*2}:this.fallbackImageSize};
_.X.computeImageSize=function(H){return H?{height:H,width:H}:this.fallbackImageSize};
_.X.computeObjectFit=function(H){return H?"FILL":"CONTAIN"};
_.X.computePreserve=function(H){return H?!0:!1};
_.X.setBackground=function(){var H,U;if((H=this.data)==null?0:(U=H.thumbnail)==null?0:U.sampledThumbnailColor)H=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+H.red+","+H.green+","+H.blue+",1)"};
EN.prototype.setBackground=EN.prototype.setBackground;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],EN.prototype,"watchFeedThumbnail",void 0);_.G([_.y(),_.q("design:type",Object)],EN.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],EN.prototype,"size",void 0);
_.G([_.y({computed:"computeBlurredImageSize(size)"}),_.q("design:type",Object)],EN.prototype,"blurredImageSize",void 0);_.G([_.y({computed:"computeImageSize(size)"}),_.q("design:type",Object)],EN.prototype,"imageSize",void 0);_.G([_.y({computed:"computePreserve(size)"}),_.q("design:type",String)],EN.prototype,"preserve",void 0);_.G([_.y({computed:"computeObjectFit(size)"}),_.q("design:type",String)],EN.prototype,"objectFit",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],EN.prototype,"webModernCollections",void 0);_.G([_.Ya("data.thumbnail.sampledThumbnailColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],EN.prototype,"setBackground",null);_.G([_.dX({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],EN);
_.e(EN,"ytd-playlist-custom-thumbnail-renderer",function(){if(Vu2!==void 0)return Vu2;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Vu2=H},{mode:1});var HzH;var m$=function(){return _.B.apply(this,arguments)||this};
_.R(m$,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],m$.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],m$.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Number)],m$.prototype,"width",void 0);_.G([_.dX({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],m$);
_.e(m$,"ytd-playlist-video-thumbnail-renderer",function(){if(HzH!==void 0)return HzH;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return HzH=H},{mode:1});var Umn;var gx=function(){return _.B.apply(this,arguments)||this};
_.R(gx,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],gx.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],gx.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Number)],gx.prototype,"width",void 0);_.G([_.dX({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],gx);
_.e(gx,"ytd-show-custom-thumbnail-renderer",function(){if(Umn!==void 0)return Umn;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Umn=H},{mode:1});var Axw;var ap=function(){return _.B.apply(this,arguments)||this};
_.R(ap,_.B);ap.prototype.useFilledIcons=function(H){return H==="MUSIC"||H==="COURSE"};
ap.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=dn(this.overlayColor,"0.8");else if(this.overlayColor){var H=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+H.red+","+H.green+","+H.blue+",0.8)"}};
_.D5.Object.defineProperties(ap.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)}}});
ap.prototype.overlayColorChanged=ap.prototype.overlayColorChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ap.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],ap.prototype,"overlayColor",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data.icon","data.text"),_.q("design:type",Object),_.q("design:paramtypes",[])],ap.prototype,"overlayStyle",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data.icon","data.text"),_.q("design:type",Object),_.q("design:paramtypes",[])],ap.prototype,"overlayTextStyle",null);_.G([_.Ya("overlayColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ap.prototype,"overlayColorChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],ap);
_.e(ap,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(Axw!==void 0)return Axw;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Axw=H},{mode:1});var MnB;var xb=function(){var H=_.B.apply(this,arguments)||this;H.active=!1;return H};
_.R(xb,_.B);xb.prototype.computeIsSpinnerHidden=function(H){return(H==null?void 0:H.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
xb.prototype.computeOverlayIcon=function(H){return(H==null?void 0:H.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(H==null?void 0:H.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],xb.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],xb.prototype,"active",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],xb);
_.e(xb,"ytd-thumbnail-overlay-downloading-renderer",function(){if(MnB!==void 0)return MnB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return MnB=H},{mode:1});var WxB;var z4=function(){return _.B.apply(this,arguments)||this};
_.R(z4,_.B);_.D5.Object.defineProperties(z4.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],z4.prototype,"data",void 0);_.G([_.a("data.text"),_.q("design:type",Object),_.q("design:paramtypes",[])],z4.prototype,"text",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],z4);
_.e(z4,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(WxB!==void 0)return WxB;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return WxB=H},{mode:1});var wp3,XpB=function(){if(wp3!==void 0)return wp3;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return wp3=H};var Cn=function(){return _.B.apply(this,arguments)||this};
_.R(Cn,_.B);_.D5.Object.defineProperties(Cn,{template:{configurable:!0,enumerable:!0,get:function(){return XpB()}}});
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Cn.prototype,"animateEqualizer",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],Cn);_.ty()(Cn,"ytd-thumbnail-overlay-equalizer",function(){return XpB()},{allowedProps:["animateEqualizer"],
mode:1});var izw;var te=function(){var H=_.B.apply(this,arguments)||this;H.nowPlayingBadge=_.S("web_now_playing_badge");H.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return H};
_.R(te,_.B);te.prototype.activeChanged=function(){var H=this;_.S("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.rV(this,function(){_.cg(H.hostElement,"yt-playlist-lockup-now-playing-active",H)})};
te.prototype.onMiniplayerPlayStateChanged=function(H){var U,A=(U=_.p(_.vc().currentEndpoint,_.sH))==null?void 0:U.videoId;this.isVideoPlaying=H&&(_.S("web_limit_now_playing_animation_killswitch")||this.videoId===A)};
te.prototype.activeChanged=te.prototype.activeChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],te.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],te.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],te.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],te.prototype,"isVideoPlaying",void 0);_.G([_.y(),_.q("design:type",String)],te.prototype,"videoId",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],te.prototype,"equalizerOnly",void 0);_.G([_.y(),_.q("design:type",Boolean)],te.prototype,"isActive",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],te.prototype,"nowPlayingBadge",void 0);_.G([_.Ya("isActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],te.prototype,"activeChanged",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],te);
_.e(te,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(izw!==void 0)return izw;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return izw=H},{mode:1});var bzk;var ci=function(){return _.B.apply(this,arguments)||this};
_.R(ci,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ci.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],ci);
_.e(ci,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(bzk!==void 0)return bzk;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return bzk=H},{mode:2});var dmB;var yu=function(){return _.B.apply(this,arguments)||this};
_.R(yu,_.B);yu.prototype.onDurationChanged=function(){var H,U;_.c4(this.hostElement).querySelector("#progress").style.width=((U=(H=this.data)==null?void 0:H.percentDurationWatched)!=null?U:0)+"%"};
yu.prototype.onDurationChanged=yu.prototype.onDurationChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],yu.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],yu.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],yu.prototype,"isLive",void 0);_.G([_.Ya("data.percentDurationWatched"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yu.prototype,"onDurationChanged",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],yu);
_.e(yu,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(dmB!==void 0)return dmB;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return dmB=H},{mode:1});var OzH;var Bi=function(){var H=_.B.apply(this,arguments)||this;H.bottomPanel=!1;H.richGridOverlay=!1;H.watchFeedOverlay=!1;H.isCompact=!1;return H};
_.R(Bi,_.B);Bi.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.D5.Object.defineProperties(Bi.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.data)==null?void 0:(U=H.icon)==null?void 0:U.iconType)==="PLAY_ALL"&&_.S("kevlar_system_icons")}}});
Bi.prototype.widthChanged=Bi.prototype.widthChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Bi.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Number)],Bi.prototype,"width",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Bi.prototype,"bottomPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Bi.prototype,"richGridOverlay",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Bi.prototype,"watchFeedOverlay",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Bi.prototype,"isCompact",void 0);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bi.prototype,"isIconFilled",null);_.G([_.Ya("width","watchFeedOverlay"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Bi.prototype,"widthChanged",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Bi);
_.e(Bi,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(OzH!==void 0)return OzH;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return OzH=H},{mode:1});var uMr;var Zzp=["CLIP","SHORTS"],rx=function(){var H=_.B.apply(this,arguments)||this;H.animated=_.S("animated_live_badge_icon");H.hasIcon=!1;H.updateTimerIntervalId=0;H.timeSinceLive=0;return H};
_.R(rx,_.B);_.X=rx.prototype;_.X.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.X.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.X.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.X.hasIconOrText=function(){var H,U;return!!(((H=this.data)==null?0:H.icon)||((U=this.data)==null?0:U.text))};
_.X.initializeLiveBadgeTimer=function(){var H=this,U,A=(U=this.liveBadgeData)==null?void 0:U.startTimestampSec;if(A&&this.canShowLiveBadgeTimer()){var M;U=Number((M=this.liveBadgeData)==null?void 0:M.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(A);this.updateTimerIntervalId=_.Ih(function(){H.canShowLiveBadgeTimer()?H.timeSinceLive++:(H.timeSinceLive=0,window.clearInterval(H.updateTimerIntervalId))},U)}else this.timeSinceLive=0};
_.X.canShowLiveBadgeTimer=function(){var H=Date.now(),U,A;return H<(Number((U=this.liveBadgeData)==null?void 0:U.endTimestampSec)-1)*1E3&&H>Number((A=this.liveBadgeData)==null?void 0:A.startTimestampSec)*1E3};
_.D5.Object.defineProperties(rx.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.CzF(this.data,this.timeSinceLive):{}}},
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 H;return(H=this.data)==null?void 0:H.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 Zzp.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
rx.prototype.initializeLiveBadgeTimer=rx.prototype.initializeLiveBadgeTimer;rx.prototype.dataChanged=rx.prototype.dataChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],rx.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],rx.prototype,"data",void 0);_.G([_.y({computed:"computeIcon_(data.icon)"}),_.q("design:type",String)],rx.prototype,"icon",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],rx.prototype,"animated",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.q("design:type",Boolean)],rx.prototype,"hideTimeStatus",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],rx.prototype,"hasIcon",void 0);_.G([_.y(),_.q("design:type",Object)],rx.prototype,"timeSinceLive",void 0);_.G([_.a("data","timeSinceLive"),_.q("design:type",Object),_.q("design:paramtypes",[])],rx.prototype,"badgeShapeData",null);
_.G([_.a("data","overlayType"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],rx.prototype,"hideBadgeShape",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rx.prototype,"dataChanged",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.style"),_.q("design:type",Object),_.q("design:paramtypes",[])],rx.prototype,"overlayStyle",null);
_.G([_.a("data.liveBadgeData"),_.q("design:type",Object),_.q("design:paramtypes",[])],rx.prototype,"liveBadgeData",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.type"),_.q("design:type",Object),_.q("design:paramtypes",[])],rx.prototype,"overlayType",null);_.G([_.a("overlayType","overlayStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],rx.prototype,"useFilledIcon",null);
_.G([_.jk("liveBadgeData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rx.prototype,"initializeLiveBadgeTimer",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],rx);
_.e(rx,"ytd-thumbnail-overlay-time-status-renderer",function(){if(uMr!==void 0)return uMr;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return uMr=H},{mode:2});var fin;var eo=function(){return _.B.apply(this,arguments)||this};
_.R(eo,_.B);eo.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"}}}}};
eo.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(H){if(this.hasPlaybackProgressBar)return{percentDurationWatched:H.percentDurationWatched}};
eo.prototype.computeHasPlaybackProgressBar=function(H){return!!H.percentDurationWatched&&H.percentDurationWatched>0};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],eo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],eo.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.q("design:type",Boolean)],eo.prototype,"hasPlaybackProgressBar",void 0);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],eo);
_.e(eo,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(fin!==void 0)return fin;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return fin=H},{mode:1});var Jx2;var Kxw=_.r(function(H){var U=H.data;var A=H.children;var M=function(){return!!U().doubleStack},W=function(){return!!U().includeStackHeight};
return _.Z("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!U().experimentEnabled}},_.Z(_.K,{cond:U,
then:function(){var w={};return _.Z(_.ve,null,_.Z(_.K,{cond:W,then:function(){var d={};return _.Z("div",{class:_.CG("ytCollectionsStackSpacer",(d.ytCollectionsStackSpacerDoubleStack=M,d))})}}),_.Z("div",{class:_.CG((w.ytCollectionsStackRelativeStack=W,w))},_.Z(_.K,{cond:M,
then:function(){var d={};return _.Z("div",{class:_.CG("ytCollectionsStackCollectionStack2",function(){return U().customClassName2ndStack},(d.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return U().enableResponsiveMode},d)),
style:_.rA({"background-color":function(){return cW0(U())}})})}}),_.Z("div",{class:_.CG("ytCollectionsStackCollectionStack1",function(){return U().customClassName1stStack},function(){return tuc(U().thumbnailSize?U().thumbnailSize:"medium")}),
style:_.rA({"background-color":function(){return cW0(U())}})}),A))}}))},"Fa");_.LG(Kxw,"yt-collections-stack",{props:{data:_.sY}});var Du=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};H.webModernCollections=!1;H.isSearch=!1;H.isDoubleStack=!1;H.thumbnailSize="medium";return H};
_.R(Du,_.B);_.X=Du.prototype;
_.X.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]]"}}}}}};
_.X.getThumbnailDetails=function(H){if(H!=null&&H.thumbnailRenderer){var U=H.thumbnailRenderer,A;if((A=U.playlistVideoThumbnailRenderer)==null?0:A.thumbnail)return U.playlistVideoThumbnailRenderer.thumbnail;var M;if((M=U.playlistCustomThumbnailRenderer)==null?0:M.thumbnail)return U.playlistCustomThumbnailRenderer.thumbnail;H=H.thumbnailRenderer;var W;if((W=H.showCustomThumbnailRenderer)==null?0:W.thumbnail)return H.showCustomThumbnailRenderer.thumbnail}};
_.X.computeOverlayColor=function(H){var U,A;if((U=this.getThumbnailDetails(H))==null?0:(A=U.darkColorPalette)==null?0:A.section2Color)return this.getThumbnailDetails(H).darkColorPalette.section2Color;var M;return(M=this.getThumbnailDetails(H))==null?void 0:M.sampledThumbnailColor};
_.X.computeWebModernCollections=function(H){if(H==null||!H.thumbnailOverlays)return!1;H=_.b(H.thumbnailOverlays);for(var U=H.next();!U.done;U=H.next()){var A=void 0;if((A=U.value)==null?0:A.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.X.computeNavigationEndpoint=function(H){return Fg8(H==null?void 0:H.navigationEndpoint)};
_.D5.Object.defineProperties(Du.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var H=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:H==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:H==null?void 0:H.vibrantColorPalette,darkColorPalette:H==null?void 0:H.darkColorPalette,experimentEnabled:!0}}}});
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Du.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Du.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(pzB),_.q("design:type",Object)],Du.prototype,"ytdThumbnailBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Du.prototype,"componentBehavior",void 0);
_.G([_.y({value:!1}),_.q("design:type",Boolean)],Du.prototype,"watchFeedThumbnail",void 0);_.G([_.y(),_.q("design:type",Number)],Du.prototype,"customThumbnailSize",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],Du.prototype,"hideAria",void 0);_.G([_.y(),_.q("design:type",Object)],Du.prototype,"data",void 0);_.G([_.y({computed:"computeOverlayColor(data)"}),_.q("design:type",Object)],Du.prototype,"overlayColor",void 0);
_.G([_.y({computed:"computeWebModernCollections(data)"}),_.q("design:type",Object)],Du.prototype,"webModernCollections",void 0);_.G([_.y({computed:"computeNavigationEndpoint(data)"}),_.q("design:type",Object)],Du.prototype,"computedNavigationEndpoint",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Du.prototype,"isSearch",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Du.prototype,"isDoubleStack",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],Du.prototype,"thumbnailSize",void 0);_.G([_.a("data","isDoubleStack","thumbnailSize"),_.q("design:type",Object),_.q("design:paramtypes",[])],Du.prototype,"collectionStack",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Du);
_.e(Du,"ytd-playlist-thumbnail",function(){if(Jx2!==void 0)return Jx2;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Jx2=H},{mode:2});var oWK;_.LG(_.r(function(H){return _.Z("yt-text-view-model",{class:_.CG("ytTextViewModelHost")},_.Z(_.Pb,{text:function(){return H.data().text}}))},"Ga"),"yt-text-view-model",{props:{data:_.sY}});var $b=function(){var H=_.B.apply(this,arguments)||this;H.noEndpoints=!1;H.amsterdamPostMvp=_.S("web_amsterdam_post_mvp_playlists");H.badges=[];H.transferState="TRANSFER_STATE_UNKNOWN";return H};
_.R($b,_.B);_.X=$b.prototype;_.X.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.X.getMetadata=function(H){if(!H)return[];var U=[],A=H.shortViewCountText||H.viewCountText;A&&U.push(_.Sp(A));H.publishedTimeText&&U.push(_.Sp(H.publishedTimeText));H.upcomingEventData&&H.upcomingEventData.upcomingEventText&&U.push(_.jI(_.Sp(H.upcomingEventData.upcomingEventText),Number(H.upcomingEventData.startTime)));return U};
_.X.observeDataForBylineSeparator=function(){this.data&&_.B4(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.X.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.wn(this.metadataColor)};
_.X.getSimpleString=function(H){return _.Sp(H)};
_.X.isBylineHidden=function(H){return this.noByline||!((H==null?0:H.longBylineText)||(H==null?0:H.shortBylineText))};
_.X.isMetadataHidden=function(H){var U;return((U=this.getMetadata(H))==null?void 0:U.length)===0};
_.X.isBylineMetadataSeparatorHidden=function(H){return this.isMetadataHidden(H)||!this.shouldShowVideoInfo};
_.X.isLongByline=function(H,U){return U&&!(H==null||!H.longBylineText)};
_.D5.Object.defineProperties($b.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var H;return this.amsterdamPostMvp&&!((H=this.data)==null||!H.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}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
$b.prototype.metadataColorChanged=$b.prototype.metadataColorChanged;$b.prototype.observeDataForBylineSeparator=$b.prototype.observeDataForBylineSeparator;_.G([_.g(_.dF),_.q("design:type",Object)],$b.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],$b.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],$b.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],$b.prototype,"noEndpoints",void 0);
_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],$b.prototype,"isSlimShort",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],$b.prototype,"radioMeta",void 0);_.G([_.y({selector:_.Wo}),_.q("design:type",Object)],$b.prototype,"isGridViewEnabled",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],$b.prototype,"richMeta",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],$b.prototype,"amsterdamPostMvp",void 0);
_.G([_.y(),_.q("design:type",Boolean)],$b.prototype,"noByline",void 0);_.G([_.y({computed:"isLongByline(data, radioMeta)"}),_.q("design:type",Boolean)],$b.prototype,"longByline",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],$b.prototype,"truncateMetadataLine",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],$b.prototype,"miniMode",void 0);_.G([_.y(),_.q("design:type",Number)],$b.prototype,"metadataColor",void 0);
_.G([_.y(),_.q("design:type",Array)],$b.prototype,"badges",void 0);_.G([_.y({selector:_.O_,selectorArgs:["data.videoId"]}),_.q("design:type",String)],$b.prototype,"transferState",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],$b.prototype,"isDownloading",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],$b.prototype,"typographyBump",void 0);_.G([_.hG("#metadata-line"),_.q("design:type",HTMLElement)],$b.prototype,"metadataLine",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$b.prototype,"observeDataForBylineSeparator",null);_.G([_.Ya("metadataColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$b.prototype,"metadataColorChanged",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],$b.prototype,"shouldShowVideoInfo",null);
_.G([_.a("badges"),_.q("design:type",String),_.q("design:paramtypes",[])],$b.prototype,"inlineBadgeClass",null);_.G([_.a("longByline"),_.q("design:type",String),_.q("design:paramtypes",[])],$b.prototype,"longBylineClass",null);_.G([_.a("data","longByline"),_.q("design:type",Object),_.q("design:paramtypes",[])],$b.prototype,"bylineText",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],$b.prototype,"hasAttributedBylineText",null);
_.G([_.a("isGridViewEnabled","data"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],$b.prototype,"watchFeedBigThumbs",null);_.G([_.dX({is:"ytd-video-meta-block",disableElementRegistration:!0})],$b);
_.e($b,"ytd-video-meta-block",function(){if(oWK!==void 0)return oWK;var H=document.createElement("template");_.E(H,'\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    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return oWK=H},{mode:2});_.Qm("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var lf=function(){var H=_.B.apply(this,arguments)||this;H.displayItemCount=2;H.isBackstagePlaylist=!1;H.isPostCompactPlaylist=!1;H.shouldShowChannelThumbnail=!1;return H};
_.R(lf,_.B);_.X=lf.prototype;_.X.computeFirstVideos=function(H,U){return H===void 0||U===void 0?[]:H.slice(0,U)};
_.X.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var H=this.data.thumbnailRenderer;H.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",H.playlistVideoThumbnailRenderer.thumbnail);H.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",H.playlistCustomThumbnailRenderer.thumbnail)}};
_.X.computeThumbnailHeight=function(H,U,A,M,W){return M?W==="BIG"?280:W==="MASSIVE"?337:234:A?240:U?72:H?118:138};
_.X.computeThumbnailWidth=function(H,U,A,M,W){return M?W==="MEDIUM"?450:W==="BIG"?500:W==="MASSIVE"?600:420:A?360:U?128:H?210:246};
_.X.computeUseBiggerThumbs=function(H){return H&&_.S("enable_desktop_search_bigger_thumbs")};
_.X.computeShouldShowChannelThumbnail=function(H,U){return H&&!(U==null||!U.channelThumbnail)};
_.D5.Object.defineProperties(lf.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
lf.prototype.dataChanged=lf.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.PA),_.q("design:type",Object)],lf.prototype,"ytdLockupBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],lf.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],lf.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],lf.prototype,"displayItemCount",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],lf.prototype,"isBackstagePlaylist",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],lf.prototype,"isPostCompactPlaylist",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],lf.prototype,"isSearch",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.q("design:type",Boolean)],lf.prototype,"useBiggerThumbs",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.kV("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],lf.prototype,"biggerThumbsStyle",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],lf.prototype,"isDownloads",void 0);_.G([_.y({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.q("design:type",Object)],lf.prototype,"shouldShowChannelThumbnail",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lf.prototype,"dataChanged",null);
_.G([_.a("isSearch"),_.q("design:type",String),_.q("design:paramtypes",[])],lf.prototype,"stackThumbnailSize",null);_.G([_.dX({is:"ytd-playlist-renderer",disableElementRegistration:!0})],lf);
_.e(lf,"ytd-playlist-renderer",function(){if(Q0w===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);Q0w=H}H=Q0w;return H},{mode:1});var Fx3;var PqB;var G4=function(){var H=_.B.apply(this,arguments)||this;H.startX=0;return H};
_.R(G4,_.B);G4.prototype.onEndpointMouseDown=function(H){this.startX=H.clientX};
G4.prototype.onEndpointClick=function(H){this.startX!==H.clientX&&(H.preventDefault(),H.stopPropagation())};
G4.prototype.computeObjectFit=function(H){return H==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||H==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||H==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
G4.prototype.computeCardStyle=function(H){return H?H.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.D5.Object.defineProperties(G4.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.data)==null?void 0:(U=H.searchRefinementCardRendererStyle)==null?void 0:U.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],G4.prototype,"data",void 0);_.G([_.y({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.q("design:type",Number)],G4.prototype,"objectFit",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.q("design:type",String)],G4.prototype,"cardStyle",void 0);
_.G([_.y({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],G4.prototype,"roundContainer",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],G4.prototype,"isAlbumCard",null);_.G([_.a("data","isAlbumCard"),_.q("design:type",Object),_.q("design:paramtypes",[])],G4.prototype,"collectionStack",null);_.G([_.dX({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],G4);
_.e(G4,"ytd-search-refinement-card-renderer",function(){if(PqB!==void 0)return PqB;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return PqB=H},{mode:1});var sIg;var Yb=function(){var H=_.B.apply(this,arguments)||this;H.isRichGrid=!1;return H};
_.R(Yb,_.B);_.G([_.y(),_.q("design:type",Object)],Yb.prototype,"data",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Yb.prototype,"componentBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Yb.prototype,"ytdReduxBehavior",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Yb.prototype,"isRichGrid",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.w1}),_.q("design:type",Boolean)],Yb.prototype,"miniMode",void 0);
_.G([_.dX({is:"ytd-game-details-renderer",disableElementRegistration:!0})],Yb);
_.e(Yb,"ytd-game-details-renderer",function(){if(sIg!==void 0)return sIg;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return sIg=H},{mode:1});var nWK;var Ndw;var qx=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return H};
_.R(qx,_.B);_.X=qx.prototype;_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.currentStateData=function(H){var U=H||this.data;return U&&U.states&&U.currentStateId!=null?U.states.find(function(A){return A.stateId===U.currentStateId})||null:null};
_.X.currentStateRendererData=function(H){return(H=this.currentStateData(H))&&H.state&&H.state.buttonRenderer?H.state.buttonRenderer:null};
_.X.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())};
_.X.computeButtonIcon=function(H){H=this.currentStateRendererData(H);var U;return(H==null?0:(U=H.icon)==null?0:U.iconType)?H.icon.iconType.toLowerCase():null};
_.X.computeAccessibility=function(H){return(H=this.currentStateRendererData(H))&&H.accessibilityData?H.accessibilityData.accessibilityData||null:null};
_.X.computeButtonClass=function(H){var U=this.currentStateRendererData(H);if(!U)return"";H="";var A=U.style;A&&(H+=A.toLowerCase().replace(/_/g,"-")+" ");(U=U.size)&&(H+=U.toLowerCase().replace(/_/g,"-")+" ");return H.trim()};
_.X.computeServiceEndpoint=function(H){if(!H)return null;var U=H&&H.serviceEndpoint,A=this.get("command.commandMetadata.webCommandMetadata.sendPost",H);return U?U:A&&H.command?H.command:null};
_.X.computeBellMenuItemParams=function(H){var U;H=(U=_.p(H==null?void 0:H.command,_.$2))==null?void 0:U.commands;if(!H||H.length===0)return null;U=_.p(H[0],_.jQ);var A,M;return(U==null?0:(A=U.popup)==null?0:(M=A.menuPopupRenderer)==null?0:M.items)?U.popup.menuPopupRenderer.items.map(function(W){return W.menuServiceItemRenderer.trackingParams}):null};
_.X.handleBellMenuOpenSelectedAction=function(H){var U=H.trackingParams,A=this.computeBellMenuItemParams(this.data);this.data&&U&&A&&A.includes(U)&&this.ytRenderButtonBehavior._setButtonIcon(H.icon.iconType.toLowerCase())};
_.X.onYtServiceRequestCompleted=function(H,U){(H=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",U))&&this.set("data",H)};
_.X.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.X.resetState=function(){this.set("data.currentStateId",3)};
_.X.onYtButtonTapHandler=function(){if(this.data){var H=this.currentStateRendererData(this.data);H&&this.ytRendererBehavior.logExplicitClick(H)}};
qx.prototype.onYtServiceRequestError=qx.prototype.onYtServiceRequestError;qx.prototype.onYtServiceRequestCompleted=qx.prototype.onYtServiceRequestCompleted;qx.prototype.stateChanged=qx.prototype.stateChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],qx.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.g(If.YtRenderButtonBehavior),_.q("design:type",Object)],qx.prototype,"ytRenderButtonBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],qx.prototype,"data",void 0);_.G([_.jk("data","data.currentStateId"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qx.prototype,"stateChanged",null);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],qx.prototype,"onYtServiceRequestCompleted",null);_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],qx.prototype,"onYtServiceRequestError",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],qx);
_.e(qx,"ytd-subscription-notification-toggle-button-renderer",function(){if(Ndw!==void 0)return Ndw;var H=document.createElement("template");_.E(H,"\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");H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Ndw=H},{mode:1});var SwB;var he=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};H.tapHandler=function(){if(H.data){var U=H.currentStateRendererData();U&&H.ytRendererBehavior.logExplicitClick(U)}};
return H};
_.R(he,_.B);_.X=he.prototype;_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.currentStateData=function(){var H=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(U){return U.stateId===H.data.currentStateId})||null:null};
_.X.currentStateRendererData=function(){var H=this.currentStateData();return H&&H.state&&H.state.buttonRenderer?H.state.buttonRenderer:null};
_.X.computeAccessibilityLabel=function(){var H,U,A;return(H=this.currentStateRendererData())==null?void 0:(U=H.accessibilityData)==null?void 0:(A=U.accessibilityData)==null?void 0:A.label};
_.X.computeBellMenuItemParams=function(){var H,U,A=(U=_.p((H=this.data)==null?void 0:H.command,_.$2))==null?void 0:U.commands;if(!A||A.length===0)return null;H=_.p(A[0],_.jQ);var M,W;return(H==null?0:(M=H.popup)==null?0:(W=M.menuPopupRenderer)==null?0:W.items)?H.popup.menuPopupRenderer.items.map(function(w){return w.menuServiceItemRenderer.trackingParams}):null};
_.X.handleBellMenuOpenSelectedAction=function(H){var U=H.trackingParams,A=this.computeBellMenuItemParams();if(this.data&&U&&A&&A.includes(U)&&(H==null||!H.isDisabled)){var M;((M=_.p(H.serviceEndpoint,_.GR))==null?void 0:M.signal)!=="CLIENT_SIGNAL"&&(this.icon=H.icon.iconType)}};
_.X.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.X.onYtServiceRequestCompleted=function(H,U){if(H=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",U))this.icon=void 0,this.set("data",H)};
_.X.onYtServiceRequestError=function(){this.icon=void 0};
_.D5.Object.defineProperties(he.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var H=this.data,U=this.textLabel,A=this.hostElement,M=this.computeAccessibilityLabel(),W=this.tapHandler,w=this.isOverlay?"overlay":"mono",d=(H==null?0:H.disableButton)?"disabled":"active";U=U?_.Me(U):void 0;return{style:w,type:"tonal",state:d,size:"M",focused:!1,formattedButtonText:U,iconPosition:"leading-trailing",onTap:B00(H,W,A),accessibilityLabel:M}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var H=this.currentStateRendererData(),U,A,M=(A=this.icon)!=null?A:H==null?void 0:(U=H.icon)==null?void 0:U.iconType;if(M)return _.eq(M)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var H,U,A=(H=this.data)==null?void 0:(U=H.secondaryIcon)==null?void 0:U.iconType;if(A)return _.eq(A)}}});
he.prototype.onYtServiceRequestError=he.prototype.onYtServiceRequestError;he.prototype.onYtServiceRequestCompleted=he.prototype.onYtServiceRequestCompleted;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],he.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],he.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],he.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],he.prototype,"textLabel",void 0);
_.G([_.y(),_.q("design:type",String)],he.prototype,"icon",void 0);_.G([_.y(),_.q("design:type",Boolean)],he.prototype,"isOverlay",void 0);_.G([_.a("data.*","textLabel"),_.q("design:type",Object),_.q("design:paramtypes",[])],he.prototype,"computedButtonShape",null);_.G([_.a("data.*","icon"),_.q("design:type",Object),_.q("design:paramtypes",[])],he.prototype,"computedIcon",null);_.G([_.a("computedIcon"),_.q("design:type",Object),_.q("design:paramtypes",[])],he.prototype,"computedAnimateIcon",null);
_.G([_.a("data.*"),_.q("design:type",Object),_.q("design:paramtypes",[])],he.prototype,"computedSecondaryIcon",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],he.prototype,"onYtServiceRequestCompleted",null);_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],he.prototype,"onYtServiceRequestError",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],he);_.e(he,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(SwB!==void 0)return SwB;var H=document.createElement("template");_.E(H,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return SwB=H},{mode:2});var ppw;_.LG(pZz,"yt-animated-action",{props:{backgroundLottieRef:_.sY,foregroundLottieRef:_.sY,wrapperClass:_.sY,disableAnimation:_.sY},unsafeExternallySettableAttributes:new Set(["key"])});var kb=function(){var H=_.B.apply(this,arguments)||this;H.animatedActionEnabled=_.S("web_animated_actions");H.foregroundLottieRef={};H.backgroundLottieRef={};H.forceIconOnly=!1;H.showTextWhileAnimating=!1;H.keyboardFocused=!1;H.isAnimating=!1;H.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return H};
_.R(kb,_.B);_.X=kb.prototype;_.X.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.X.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]]"}}}}}};
_.X.attached=function(){this.keyboardFocused=!1};
_.X.onYtServiceRequestSent=function(H,U){(this.get("endpoint.subscribeEndpoint",U)||this.get("endpoint.unsubscribeEndpoint",U))&&this.updateSubscriptionState(!this.subscribed)};
_.X.onYtServiceRequestCompleted=function(H,U){(H=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",U.data))&&this.bellButton&&(this.bellButton.data=H)};
_.X.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Dt(this.hostElement)};
_.X.onPlayerSubscribe=function(H){this.isCompactRed()||H!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.X.onPlayerUnsubscribe=function(H){this.isCompactRed()||H!==this.data.channelId||this.updateSubscriptionState(!1)};
_.X.handleUpdateSubscribeButtonAction=function(H){H=_.p(H,ZH2);var U;H&&H.channelId===((U=this.data)==null?void 0:U.channelId)&&this.updateSubscriptionState(!!H.subscribed)};
_.X.computeButtonStyle=function(H){return this.get("style.styleType",H)||null};
_.X.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.X.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.X.updateSubscriptionState=function(H){if(H!==this.subscribed){this.set("data.subscribed",H);var U,A=(U=this.data)==null?void 0:U.subscribedEntityKey;A&&this.ytdReduxBehavior.dispatch(_.hs("subscriptionStateEntity",A,{key:A,subscribed:H}));this.isCompactRed()||_.cg(this.hostElement,"yt-subscription-changed",H);H||(_.yr(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!H),H&&this.hasBellButton&&this.startAnimation())}};
_.X.startAnimation=function(){var H=this;if(!this.isAnimating){var U=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var A;(A=this.backgroundLottieRef.lottieEl)==null||A.goToAndPlay(0);var M;(M=this.foregroundLottieRef.lottieEl)==null||M.goToAndPlay(0);_.Fl.addJob(function(){H.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.Fl.addJob(function(){H.updateContainerToFitContent(!!H.subscribed,!0)},2,1500);
_.Fl.addJob(function(){H.isAnimating=!1},2,U)}};
_.X.maybeAnimateBellIcon=function(){var H=_.yf(this.hostElement).querySelector("yt-animated-icon");if(H){var U;(U=H.animationRef.lottieEl)==null||U.goToAndPlay(0)}};
_.X.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.X.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.X.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var H;this.unsubscribedWidth=(H=this.subscribeButtonShape)==null?void 0:H.getBoundingClientRect().width}var U;this.subscribedWidth=(U=this.bellButton)==null?void 0:U.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.X.updateContainerToFitContent=function(H,U){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(H?(H=this.subscribedWidth,U=this.isAnimating&&!U,this.subscribedIconOnlyWidth===void 0||U||(H=this.subscribedIconOnlyWidth),this.hostElement.style.width=H+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.X.clearContainerSize=function(){this.hostElement.style.width=""};
_.X.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.X.maybeSetSubscribedButtonIconOnlyWidth=function(){var H=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var U;H.subscribedIconOnlyWidth=(U=H.bellButton)==null?void 0:U.getBoundingClientRect().width;requestAnimationFrame(function(){if(H.bellButton){var A;H.bellButton.textLabel=
(A=H.data)==null?void 0:A.subscribedButtonText}})})))};
_.D5.Object.defineProperties(kb.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}},
subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){if(this.showTextWhileAnimating&&(this.isAnimating||!this.subscribed)){var H;return(H=this.data)==null?void 0:H.subscribedButtonText}var U;return this.forceIconOnly?void 0:(U=this.data)==null?void 0:U.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var H,U,A=((H=this.data)==null?void 0:(U=H.timedAnimationData)==null?void 0:U.animationTiming)||[];return{uniqueId:"subscribe",timings:A,enabled:A.length>0&&!this.subscribed,experimentEnabled:A.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var H;return!this.subscribed&&((H=this.data)==null?void 0:H.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 H={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var U=H.renderer;var A=H.element;var M=H.subscribed;var W=H.commandController;var w=H.isOverlay;H=H.stopPropagation;var d=$Rt(U,M);w&&(d.style="overlay");w=Object;var O=w.assign,f;a:switch((f=U.style)==null?void 0:f.styleType){case "COMPACT_GRAY":case "COMPACT_RED":f={size:"S"};break a;default:f={size:"M"}}var J=DRF(U,
M);var F=(F=M?U.subscribedButtonText:U.unsubscribedButtonText)?_.Me(F):void 0;return O.call(w,{},d,f,{focused:!1,toggled:M,accessibilityLabel:J,formattedButtonText:F,onTap:edV(U,M,A,W,H)})}}}});
kb.prototype.onMouseDown=kb.prototype.onMouseDown;kb.prototype.onDataChanged=kb.prototype.onDataChanged;kb.prototype.observedSubscribed=kb.prototype.observedSubscribed;kb.prototype.onYtServiceRequestCompleted=kb.prototype.onYtServiceRequestCompleted;kb.prototype.onYtServiceRequestSent=kb.prototype.onYtServiceRequestSent;kb.prototype.maybeUpdateBellButtonText=kb.prototype.maybeUpdateBellButtonText;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],kb.prototype,"ytComponentBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],kb.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],kb.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],kb.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],kb.prototype,"data",void 0);
_.G([_.y({selectorArgs:["data.subscribedEntityKey"],selector:XZ7}),_.q("design:type",Object)],kb.prototype,"subscriptionStateEntity",void 0);_.G([_.y({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.q("design:type",Boolean)],kb.prototype,"subscribed",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],kb.prototype,"branded",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],kb.prototype,"animatedActionEnabled",void 0);
_.G([_.y(),_.q("design:type",Object)],kb.prototype,"foregroundLottieRef",void 0);_.G([_.y(),_.q("design:type",Object)],kb.prototype,"backgroundLottieRef",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],kb.prototype,"overlayButton",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.q("design:type",Object)],kb.prototype,"buttonStyle",void 0);_.G([_.y(),_.q("design:type",Object)],kb.prototype,"forceIconOnly",void 0);
_.G([_.y(),_.q("design:type",Object)],kb.prototype,"showTextWhileAnimating",void 0);_.G([_.y({value:function(){return!!_.lx().resolve(_.$V(_.af))&&_.S("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.q("design:type",Boolean)],kb.prototype,"useKeyboardFocused",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],kb.prototype,"keyboardFocused",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],kb.prototype,"isAnimating",void 0);_.G([_.a("data.notificationPreferenceButton.*"),_.q("design:type",Object),_.q("design:paramtypes",[])],kb.prototype,"hasBellButton",null);
_.G([_.Ya("subscribedButtonText"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kb.prototype,"maybeUpdateBellButtonText",null);_.G([_.a("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.q("design:type",Object),_.q("design:paramtypes",[])],kb.prototype,"subscribedButtonText",null);_.G([_.a("data.timedAnimationData.animationTiming","subscribed"),_.q("design:type",Object),_.q("design:paramtypes",[])],kb.prototype,"smartimationSettings",null);
_.G([_.y({reflectToAttribute:!0}),_.a("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.q("design:type",Object),_.q("design:paramtypes",[])],kb.prototype,"subscribeButtonHidden",null);_.G([_.y({reflectToAttribute:!0}),_.a("subscribed","hasBellButton"),_.q("design:type",Object),_.q("design:paramtypes",[])],kb.prototype,"subscribeButtonInvisible",null);
_.G([_.y({reflectToAttribute:!0}),_.a("subscribed"),_.q("design:type",Object),_.q("design:paramtypes",[])],kb.prototype,"unsubscribeButtonHidden",null);_.G([_.hG("ytd-subscription-notification-toggle-button-renderer-next"),_.q("design:type",Object)],kb.prototype,"bellButton",void 0);_.G([_.hG("#subscribe-button-shape"),_.q("design:type",HTMLElement)],kb.prototype,"subscribeButtonShape",void 0);
_.G([_.a("overlayButton","subscribed","data"),_.q("design:type",Object),_.q("design:paramtypes",[])],kb.prototype,"buttonShape",null);_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],kb.prototype,"onYtServiceRequestSent",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],kb.prototype,"onYtServiceRequestCompleted",null);
_.G([_.Ya("subscribed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kb.prototype,"observedSubscribed",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kb.prototype,"onDataChanged",null);_.G([_.Gl("mousedown"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],kb.prototype,"onMouseDown",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],kb);
_.e(kb,"ytd-subscribe-button-renderer",function(){if(ppw!==void 0)return ppw;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return ppw=H},{mode:1});var vi=function(){var H=_.B.apply(this,arguments)||this;H.isRichGrid=!1;return H};
_.R(vi,_.B);vi.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"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],vi.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],vi.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],vi.prototype,"isRichGrid",void 0);_.G([_.dX({is:"ytd-game-card-renderer",disableElementRegistration:!0})],vi);
_.e(vi,"ytd-game-card-renderer",function(){if(nWK!==void 0)return nWK;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return nWK=H},{mode:1});var T4={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.S("defer_menus")&&!Ig3?0:void 0,waitForSignal:"eocs"};var Lxp;var R9k;var jo=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return H};
_.R(jo,_.B);_.X=jo.prototype;_.X.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.X.onSeriesReminderStateEntityChange=function(){var H,U,A;((H=this.eventReminderStateEntity)==null?0:H.key)&&((U=this.seriesReminderStateEntity)==null?void 0:U.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((A=this.eventReminderStateEntity)==null?void 0:A.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.hs("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.X.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.X.onYtServiceRequestError=function(){var H;this.updateReminderStateEntitiesFromButtonState((H=this.data)==null?void 0:H.currentState)};
_.X.handleUpdateUpcomingEventReminderButtonStateCommand=function(H){if(H=_.p(H,ZmB)){var U,A=(U=this.data)==null?void 0:U.targetId;A&&H.targetId===A&&_.oS(this.updateReminderStateEntitiesFromButtonState.bind(this,H.state))}};
_.X.getButtonStateFromReminderState=function(){var H;if(((H=this.seriesReminderStateEntity)==null?void 0:H.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var U;if(((U=this.eventReminderStateEntity)==null?void 0:U.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var A,M;if(((A=this.seriesReminderStateEntity)==null?void 0:A.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((M=this.eventReminderStateEntity)==
null?void 0:M.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var W;return(W=this.data)==null?void 0:W.currentState};
_.X.updateReminderStateEntitiesFromButtonState=function(H){if(H){switch(H){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":H="UPCOMING_EVENT_REMINDER_STATE_NONE";var U="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":H="UPCOMING_EVENT_REMINDER_STATE_SINGLE";U="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":H="UPCOMING_EVENT_REMINDER_STATE_NONE";U="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var A;
((A=this.eventReminderStateEntity)==null?0:A.key)&&this.ytdReduxBehavior.dispatch(_.hs("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:H})));var M;((M=this.seriesReminderStateEntity)==null?0:M.key)&&this.ytdReduxBehavior.dispatch(_.hs("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:U})))}};
_.D5.Object.defineProperties(jo.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var H=this.getButtonStateFromReminderState(),U,A;if(H&&((U=this.data)==null?0:(A=U.states)==null?0:A.length))for(U=_.b(this.data.states),A=U.next();!A.done;A=U.next()){A=A.value;var M=void 0;if(((M=_.p(A,faH))==null?void 0:M.state)===H)return _.p(A,faH)}}}});
jo.prototype.onYtServiceRequestError=jo.prototype.onYtServiceRequestError;jo.prototype.onYtServiceRequestCompleted=jo.prototype.onYtServiceRequestCompleted;jo.prototype.onSeriesReminderStateEntityChange=jo.prototype.onSeriesReminderStateEntityChange;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],jo.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],jo.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],jo.prototype,"data",void 0);_.G([_.y({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:bVr}),_.q("design:type",Object)],jo.prototype,"eventReminderStateEntity",void 0);
_.G([_.y({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(H,U){return _.rH(H.entities,"sportsSeriesReminderStateEntity",U)}}),
_.q("design:type",Object)],jo.prototype,"seriesReminderStateEntity",void 0);_.G([_.a("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],jo.prototype,"currentButtonStateRenderer",null);_.G([_.Ya("seriesReminderStateEntity"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jo.prototype,"onSeriesReminderStateEntityChange",null);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jo.prototype,"onYtServiceRequestCompleted",null);_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jo.prototype,"onYtServiceRequestError",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],jo);
_.e(jo,"ytd-upcoming-event-reminder-button-renderer",function(){if(R9k!==void 0)return R9k;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
return R9k=H},{mode:1});var EWr;var Ip=function(){return _.B.apply(this,arguments)||this};
_.R(Ip,_.B);Ip.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.D5.Object.defineProperties(Ip.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(_.S("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Ip.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ip.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Ip.prototype,"shelfDismissal",void 0);_.G([_.a("data.responseText"),_.q("design:type",Object),_.q("design:paramtypes",[])],Ip.prototype,"text",null);
_.G([_.a("data.responseText"),_.q("design:type",Object),_.q("design:paramtypes",[])],Ip.prototype,"textAriaLabel",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Ip);
_.e(Ip,"ytd-notification-multi-action-renderer",function(){if(EWr!==void 0)return EWr;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return EWr=H},{mode:1});var mmw;var Qu=function(){return _.B.apply(this,arguments)||this};
_.R(Qu,_.B);Qu.prototype.ready=function(){var H=this;_.c4(this.hostElement).querySelector("#undo").addEventListener("tap",function(){H.onUndoTap()})};
Qu.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.lx().resolve(_.YV).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Qu.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Qu);
_.e(Qu,"ytd-notification-text-renderer",function(){if(mmw!==void 0)return mmw;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return mmw=H},{mode:1});var gWk;var Vu=function(){var H=_.B.apply(this,arguments)||this;H.mouseOverDelayJobId=0;H.fadeInImageDelayJobId=0;H.startTimeMs=-1;H.loadingStartTimeMs=-1;H.loadingEndTimeMs=-1;H.hasVideoPreview=!1;return H};
_.R(Vu,_.B);_.X=Vu.prototype;_.X.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.X.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.X.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.X.showThumbnail=function(){var H=this;this.csn=_.XK();_.dH("fmth");_.Fl.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.av(_.Fl,function(){H.loadingStartTimeMs=(0,_.lD)();var U=_.c4(H.hostElement).querySelector("#thumbnail");U.complete?H.displayMouseOverImage():U.addEventListener("load",_.lN(H,H.displayMouseOverImage))},150):_.B4(_.c4(this.hostElement).querySelector("#play"),"show",!0)};
_.X.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.X.onTap=function(){this.removeVideoPreview()};
_.X.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var H=this.videoId,U=this.csn,A=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,M=this.startTimeMs,W=this.hasVideoPreview,w=_.IS(this.trackingParams),d={isMovingThumbnail:W};W&&M>0&&(A>0&&(d.movingThumbnailLoadingDurationMs=Math.round(A)),d.durationHoveredMs=Math.round((0,_.lD)()-M));H&&(d.videoId=H);_.S9(U,w,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:d});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.X.removeVideoPreview=function(){_.Fl.cancelJob(this.mouseOverDelayJobId);_.Fl.cancelJob(this.fadeInImageDelayJobId);var H=_.c4(this.hostElement).querySelector("#thumbnail");_.B4(H,"fade-in",!1);H.removeEventListener("load",_.lN(this,this.displayMouseOverImage));H=_.c4(this.hostElement).querySelector("#play");_.B4(H,"fade-in",!1);_.B4(H,"show",!1)};
_.X.displayMouseOverImage=function(){var H=_.c4(this.hostElement).querySelector("#thumbnail"),U=_.c4(this.hostElement).querySelector("#play");this.isImageAvailable(H)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.lD)(),this.startTimeMs=(0,_.lD)(),this.fadeInImageDelayJobId=_.av(_.Fl,function(){_.B4(H,"fade-in",!0)},50)):_.B4(U,"fade-in",!0)};
_.X.computeThumbnail=function(H,U){var A;H&&H.movingThumbnailDetails&&H.movingThumbnailDetails.thumbnails&&U?A=_.Rv(H.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):A=U?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(A)return _.j3(A)};
_.X.isImageAvailable=function(H){return!(!H.src||H.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||H.naturalWidth===120)};
Vu.prototype.onTap=Vu.prototype.onTap;Vu.prototype.dataChanged=Vu.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Vu.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Vu.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Vu.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Vu.prototype,"csn",void 0);_.G([_.y(),_.q("design:type",Object)],Vu.prototype,"trackingParams",void 0);
_.G([_.y(),_.q("design:type",String)],Vu.prototype,"videoId",void 0);_.G([_.y(),_.q("design:type",Boolean)],Vu.prototype,"isAttachedAndDataSet",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Vu.prototype,"dataChanged",null);_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Vu.prototype,"onTap",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Vu);
_.e(Vu,"ytd-moving-thumbnail-renderer",function(){if(gWk!==void 0)return gWk;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return gWk=H},{mode:1});var aig;_.rz=function(H){this.hostElement=H;this.eventSink=null;this.eventList=[]};
_.rz.prototype.shouldForward=function(){var H,U;return(U=(H=this.eventSink)==null?void 0:H.isConnected)!=null?U:document.body.contains(this.eventSink)};
_.rz.prototype.start=function(H,U){this.eventSink&&this.stop();for(var A=0;A<H.length;A++)this.hostElement.addEventListener(H[A],_.lN(this,this.forwardEvent));var M;this.eventSink=(M=U.hostElement)!=null?M:U;this.eventList=H};
_.rz.prototype.stop=function(){for(var H=0;H<this.eventList.length;H++)this.hostElement.removeEventListener(this.eventList[H],_.lN(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.rz.prototype.forwardEvent=function(H,U){this.shouldForward()&&(H.stopPropagation(),this.eventSink instanceof Element?_.cg(this.eventSink,H.type,U):_.Na(new _.bD("eventSink is not an element")))};_.H6={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.rz(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(H,U){this.forwarder_.start(H,U)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Ud=function(){return _.B.apply(this,arguments)||this};
_.R(Ud,_.B);_.X=Ud.prototype;_.X.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=_.gD("HTML_DIR")==="rtl"?"right":"left"};
_.X.dataChanged=function(){this.popupOpen=!1};
_.X.computeAriaLabel=function(H){return _.p(H,apn).label};
_.X.onTap=function(H){H.stopPropagation();H.preventDefault();this.data.command&&_.lx().resolve(_.YV).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.X.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.X.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Ud.prototype.onPopupClosed=Ud.prototype.onPopupClosed;Ud.prototype.onPopupOpened=Ud.prototype.onPopupOpened;Ud.prototype.onTap=Ud.prototype.onTap;Ud.prototype.dataChanged=Ud.prototype.dataChanged;_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],Ud.prototype,"eventForwardingBehavior",void 0);_.G([_.g(_.HY),_.q("design:type",Object)],Ud.prototype,"ironButtonState",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Ud.prototype,"componentBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],Ud.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,value:-1}),_.q("design:type",Number)],Ud.prototype,"tabindex",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.q("design:type",Object)],Ud.prototype,"ariaLabel",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Ud.prototype,"disableTooltips",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Ud.prototype,"popupOpen",void 0);
_.G([_.y(),_.q("design:type",Element)],Ud.prototype,"eventSink",void 0);_.G([_.hG("#tooltip"),_.q("design:type",Object)],Ud.prototype,"tooltip",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ud.prototype,"dataChanged",null);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Ud.prototype,"onTap",null);
_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ud.prototype,"onPopupOpened",null);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ud.prototype,"onPopupClosed",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Ud);
_.e(Ud,"ytd-thumbnail-overlay-button-renderer",function(){if(aig!==void 0)return aig;var H=document.createElement("template");_.E(H,'\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]]" on-click="onTap" 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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return aig=H},{mode:1});var xmK;var A6=function(){return _.B.apply(this,arguments)||this};
_.R(A6,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],A6.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],A6.prototype,"disableAnimation",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],A6.prototype,"rounded",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],A6.prototype,"transparentBackground",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],A6.prototype,"noPadding",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],A6);
_.e(A6,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(xmK!==void 0)return xmK;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return xmK=H},{mode:1});var z9B;var Md=function(){return _.B.apply(this,arguments)||this};
_.R(Md,_.B);Md.prototype.computeIconPosition=function(H){return this.get("iconPosition",H)||null};
Md.prototype.computeIconStyle=function(H){return this.get("iconStyle",H)||null};
Md.prototype.computeIsIconStyleFilled=function(H){if(!H)return!1;var U;return H.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((U=H.icon)==null?void 0:U.iconType)==="ERROR_BLACK"};
_.G([_.y(),_.q("design:type",Object)],Md.prototype,"data",void 0);_.G([_.y({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.q("design:type",Object)],Md.prototype,"iconPosition",void 0);_.G([_.y({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.q("design:type",Object)],Md.prototype,"iconStyle",void 0);_.G([_.y({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Md.prototype,"iconStyleFilled",void 0);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],Md);
_.e(Md,"ytd-thumbnail-overlay-icon-renderer",function(){if(z9B!==void 0)return z9B;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return z9B=H},{mode:1});var CqB;var W6=function(){return _.B.apply(this,arguments)||this};
_.R(W6,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],W6.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],W6);
_.e(W6,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(CqB!==void 0)return CqB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return CqB=H},{mode:1});var tnm;var wU=function(){var H=_.B.apply(this,arguments)||this;H.isPreviewLoading=!1;return H};
_.R(wU,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],wU.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],wU.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],wU.prototype,"isPreviewLoading",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],wU);
_.e(wU,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(tnm!==void 0)return tnm;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return tnm=H},{mode:1});var cxg;var XW=function(){return _.B.apply(this,arguments)||this};
_.R(XW,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],XW.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],XW);
_.e(XW,"ytd-thumbnail-overlay-pinking-renderer",function(){if(cxg!==void 0)return cxg;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return cxg=H},{mode:1});var yxB;var ih=function(){var H=_.B.apply(this,arguments)||this;H.disableTooltips=!1;H.isLoading=!1;H.useExpandableTooltip=!1;H.toggled=!1;H.hovered=!1;H.mouseoverDelayJobId=0;H.toggleDelayJobId=0;H.expandAnimationDelayJobId=0;return H};
_.R(ih,_.B);_.X=ih.prototype;_.X.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");_.c4(this.hostElement).querySelector("#tooltip").position=_.gD("HTML_DIR")==="rtl"?"right":"left"};
_.X.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.Fl.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.Fl.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.Fl.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.X.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.Fl.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.Fl.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.Fl.cancelJob(this.expandAnimationDelayJobId)};
_.X.computeIcon=function(H,U,A){return(H=A?U:H)&&H.iconType?_.eq(H.iconType):void 0};
_.X.computeAriaLabel=function(H,U,A){return _.p(A?U:H,apn).label};
_.X.computeTooltip=function(H,U,A){return A?U:H};
_.X.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.X.computeIconOnHover=function(H,U){if((H==null?0:H.iconType)&&!U)return _.eq(H.iconType)};
_.X.onTap=function(H){var U=this;H.stopPropagation();H.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(H=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(H),this.useExpandableTooltip&&(this.toggleDelayJobId=_.av(_.Fl,function(){U.hovered=!1;U.data&&!U.data.toggledServiceEndpoint&&(U.expandAnimationDelayJobId=_.av(_.Fl,function(){U.set("data.isToggled",
!1)},200))},2E3))};
_.X.onMouseenter=function(){var H=this;this.mouseoverDelayJobId=_.av(_.Fl,function(){H.hovered=!0},300)};
_.X.onMouseleave=function(){_.Fl.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.X.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.X.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.X.onServiceRequestCompleted=function(H,U){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(U)||this.set("data.isToggled",!this.data.isToggled)};
_.X.serviceRequestWasSuccessful=function(H){return _.p(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.dk)?H.data.status==="STATUS_SUCCEEDED":!0};
ih.prototype.onServiceRequestCompleted=ih.prototype.onServiceRequestCompleted;ih.prototype.onPopupClosed=ih.prototype.onPopupClosed;ih.prototype.onPopupOpened=ih.prototype.onPopupOpened;ih.prototype.onMouseleave=ih.prototype.onMouseleave;ih.prototype.dataChanged=ih.prototype.dataChanged;_.G([_.g(_.HY),_.q("design:type",Object)],ih.prototype,"ironButtonState",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ih.prototype,"ytComponentBehavior",void 0);
_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],ih.prototype,"ytEventForwardingBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ih.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.q("design:type",Object)],ih.prototype,"ariaLabel",void 0);_.G([_.y(),_.q("design:type",Object)],ih.prototype,"disableTooltips",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],ih.prototype,"popupOpen",void 0);_.G([_.y(),_.q("design:type",Object)],ih.prototype,"isLoading",void 0);_.G([_.y(),_.q("design:type",Element)],ih.prototype,"eventSink",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],ih.prototype,"useExpandableTooltip",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.q("design:type",Object)],ih.prototype,"toggled",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],ih.prototype,"hovered",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.q("design:type",Object)],ih.prototype,"iconOnHover",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ih.prototype,"dataChanged",null);
_.G([_.Gl("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ih.prototype,"onMouseleave",null);_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ih.prototype,"onPopupOpened",null);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ih.prototype,"onPopupClosed",null);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],ih.prototype,"onServiceRequestCompleted",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],ih);
_.e(ih,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(yxB!==void 0)return yxB;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return yxB=H},{mode:2});var Bdk;var rxK=_.r(function(H){var U=H.data;var A=H.thumbnailSize;var M=function(){return U().enableSegmentView};
return _.Z("yt-thumbnail-overlay-progress-bar-view-model",{class:_.CG("ytThumbnailOverlayProgressBarHost",function(){return lyc(A==null?void 0:A())})},_.Z(_.K,{cond:M,
then:function(){return _.Z("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.Z("div",{class:_.QU("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+U().startPercent+"%"}}),_.Z("div",{class:_.QU("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+U().segmentDurationPercent+"%"}},_.Z("div",{class:_.QU("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.Z("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.Z("div",null," ",function(){return U().segmentLabel})),_.Z("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.Z("div",{class:_.QU("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.Z(_.K,{cond:function(){return!M()&&U().startPercent},
then:function(){var W={};return _.Z("div",{class:_.QU("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(W.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.S("web_enable_modern_progress_bar_overlay"),W))},_.Z("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+U().startPercent+"%"}}))}}))},"Ha");
rxK.idomCompat=!0;_.e9k=_.r(function(H){var U=_.Bo(),A=_.Gk(function(W){var w,d,O;a:{var f=(w=H.data())==null?void 0:w.animationActivationTargetId;w=((d=H.data())==null?void 0:d.animationActivationEntityKey)||"";d=(O=H.data())==null?void 0:O.animationActivationEntitySelectorType;if(w&&f)switch(d){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":W=_.tp(W,w);O=_.lx().resolve(_.$V(_.ZB));f=!!(W&&W.videoId===f&&(O==null?0:O.isMiniplayerActive()));f={activated:f,playAnimation:f&&W.playerState==="PLAYER_STATE_PLAYING"};
break a}f=void 0}return f});
_.Em(function(){var W;if((W=A())==null?0:W.activated){var w;if((w=A())==null?0:w.playAnimation){var d;(d=U.lottieEl)==null||d.goToAndPlay(0)}else{var O;(O=U.lottieEl)==null||O.goToAndStop(0)}}},"DbQiXd");
var M=function(){var W,w=!((W=A())==null||!W.activated);if(H.data()){W=H.data();var d=void 0;W.icon&&(d=_.ZrV(W.icon),d=NlE(d));var O=void 0,f;if((f=W.backgroundColor)==null?0:f.lightTheme){var J;O={backgroundColor:dn((J=W.backgroundColor)==null?void 0:J.lightTheme,"0.8")}}if(W.text||d||w){if(w&&W.lottieData&&U){J=W.lottieData;var F,P,n;f={animationConfig:{name:J.url,path:J.url,autoplay:(F=J.settings)==null?void 0:F.autoplay,loop:(n=(P=J.settings)==null?void 0:P.loop)!=null?n:!0},animationRef:U}}else f=
void 0;if(w)F=17;else b:switch(W.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":F=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":F=19;break b;default:F=17}w={type:F,text:w&&W.animatedText?W.animatedText:W.text,icon:d,customColors:O,animation:f}}else w=void 0}else w=void 0;return w};
return _.Z("yt-thumbnail-badge-view-model",{class:_.CG("ytThumbnailBadgeViewModelHost",H.class)},_.Z(_.K,{cond:M,then:function(){return _.Z(_.Kn,{data:function(){return M()}})}}))},"Ja");var Dmy=_.r(function(H){var U={},A={};return _.Z("yt-thumbnail-bottom-overlay-view-model",{class:_.CG("ytThumbnailBottomOverlayViewModelHost",(U.ytThumbnailBottomOverlayViewModelHostBackground=function(){return H.data().enableGradientBackground},U))},_.Z(_.YY,{data:function(){return H.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(M){return _.Z(rxK,{data:M.data,
thumbnailSize:H.thumbnailSize})}}),_.Z("div",{class:_.CG("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var M;
return GNE((M=H.thumbnailSize)==null?void 0:M.call(H))},(A.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var M;
return(M=H.isClip)==null?void 0:M.call(H)},A.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var M;
return!_.S("web_enable_modern_progress_bar_overlay")&&((M=H.thumbnailSize)==null?void 0:M.call(H))==="small"},A))},_.Z(_.YY,{data:function(){return H.data().badge}},{thumbnailBadgeViewModel:function(M){return _.Z(_.e9k,{data:M.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.Z(_.YY,{data:function(){return H.data().badges}},{thumbnailBadgeViewModel:function(M){return _.Z(_.e9k,{data:M.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ka");
Dmy.idomCompat=!0;_.LG(Dmy,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Ne,thumbnailSize:_.Ne,isClip:_.Ne}});var bh=_.r(function(H){var U=H.data;var A=H.className;H=H.alwaysShow;var M=_.qkK(),W={};return _.Z("thumbnail-hover-overlay-view-model",{el:_.sB(_.Wq(function(){return U().rendererContext})),
class:_.CG("ytThumbnailHoverOverlayViewModelHost",A,(W.ytThumbnailHoverOverlayViewModelHostForceHover=H,W)),"aria-label":function(){var w;return(w=_.p(U().rendererContext,_.Tn))==null?void 0:w.label},
role:function(){return _.AF(U().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.AF(U().rendererContext)!==void 0?0:void 0},
"on:keypress":M},_.Z("div",{class:_.CG("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(U().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var w="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:w="ytThumbnailHoverOverlayViewModelStyleCover"}return w})},_.Z(_.K,{cond:function(){return U().icon},
then:function(w){return _.Z(_.nG,{data:w,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.Z(_.K,{cond:function(){return U().text},
then:function(w){return _.Z(_.Pb,{text:w,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ma");
bh.idomCompat=!0;var $m3=_.r(function(H){var U=H.data;return _.Z(_.YY,{data:function(){return U==null?void 0:U().overlays}},{thumbnailHoverOverlayViewModel:bh})},"Na");
$m3.idomCompat=!0;var lir={};var Gww=_.r(function(H){var U=H.data;var A=H.image;var M=H.state;var W=H.iconType;var w=H.overlays;var d=H.isOverlay;var O=_.NU("div");H=_.b(_.iB(!0,void 0,"AA4e7b"));var f=H.next().value,J=H.next().value,F=function(){return!!U().onTap},P=_.RS(W,"LIVE");
_.Em(function(){var N=U();requestAnimationFrame(function(){if(O.value===null)var L=!0;else{var m=O.value;L=N.badgeText;var z=Vu8(N.size);L in lir?m=lir[L]:(m=m.clientWidth,lir[L]=m);(L=m>z)?O.value.style.display="none":O.value.style.visibility="visible"}J(L)})},"vNdN8b");
var n=function(){var N={};return N["yt-spec-avatar-shape__image"]=!0,N["yt-spec-avatar-shape__image--ads-app"]=U().type===1,N["yt-spec-avatar-shape__image--inscribed-square"]=U().type===2,N};
return _.Z("yt-avatar-shape",null,_.Z("div",{el:_.sB(Um7(F,{keydown:function(N){if(N.key==="Enter"){var L;(L=N.currentTarget)==null||L.click()}},
click:function(N){var L,m;return void((m=(L=U()).onTap)==null?void 0:m.call(L,N))}})),
class:function(){var N={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},L=U();N=(N[L.clusterLayoutConfig?WxE(L.clusterLayoutConfig):wpc(L.size)]=!0,N["yt-spec-avatar-shape__button--tappable"]=F(),N);(L=U().avatarButtonCustomClassName)&&(N[L]=!0);return _.QU(N)},
"aria-label":function(){return F()?U().accessibilityText:""},
role:function(){return F()?"button":void 0},
tabindex:function(){return F()?0:void 0}},_.Z("div",{class:function(){var N,L=U(),m=M==null?void 0:M(),z=d==null?void 0:d(),c=!((N=L.decorations)==null||!N.includes(2)||L.size!=="medium"&&L.size!=="large"),C=L.size==="tiny"||L.size==="extra-small",v,Y,D,h,T={};
N=(T["yt-spec-avatar-shape--live-ring"]=!!(((v=L.decorations)==null?0:v.includes(0))&&izV(L.size)),T["yt-spec-avatar-shape--stories-watched"]=c&&!(m==null||!m.storiesWatched),T["yt-spec-avatar-shape--stories-unwatched"]=c&&!(m==null?0:m.storiesWatched),T["yt-spec-avatar-shape--background-border"]=bzh(L.decorations)&&!C,T["yt-spec-avatar-shape--background-border-thin"]=bzh(L.decorations)&&C,T["yt-spec-avatar-shape__on-select-border"]=!((Y=L.decorations)==null||!Y.includes(4)),T["yt-spec-avatar-shape__white-border"]=
!((D=L.decorations)==null||!D.includes(5)),T["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((h=L.decorations)==null?0:h.includes(5))&&C),T["yt-spec-avatar-shape--is-overlay"]=!!z,T);return _.QU(N)},
style:function(){a:{var N=U().clusterLayoutConfig;if(N){b:{var L=N.numAvatarsInCluster;var m=N.avatarIndex;if(m!==L-1){switch(N.clusterSize){case "small":N="32";break;case "medium":N="36";break;case "40":N="40";break;default:L=void 0;break b}L="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+N+"x"+N+"_avatars_"+L+"_index_"+m+".svg"}else L=void 0}if(L){L=_.rA({"-webkit-mask-image":"url("+L+")","mask-image":"url("+L+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}L=void 0}return L}},_.Z("div",{class:function(){var N={};
var L=U();N=(N[L.clusterLayoutConfig?AxN(L.clusterLayoutConfig):MnE(L.size)]=!0,N["yt-spec-avatar-shape--no-margin"]=bzh(U().decorations),N["yt-spec-avatar-shape--square"]=U().type===2,N);return _.QU(N)}},_.Z(_.nG,{data:A,
alt:function(){return!F()&&U().accessibilityText?U().accessibilityText:""},
targetWidth:function(){return XpE(U().size)},
targetHeight:function(){return XpE(U().size)},
className:function(){return _.QU(n())}}),_.Z(_.K,{cond:function(){var N;
return((N=U().decorations)==null?void 0:N.includes(0))&&izV(U().size)},
then:function(){return _.Z("div",{class:function(){var N={};N=(N["yt-spec-avatar-shape__live-badge"]=!0,N["yt-spec-avatar-shape__live-badge--badge-small"]=U().size==="small",N["yt-spec-avatar-shape__live-badge--badge-medium"]=U().size==="medium"||U().size==="48",N["yt-spec-avatar-shape__live-badge--badge-large"]=U().size==="large",N["yt-spec-avatar-shape__live-badge--badge-extra-large"]=U().size==="extra-large"||U().size==="extra-extra-large"||U().size==="giant",N);return _.QU(N)}},_.Z(_.K,{cond:function(){return U().badgeText},
then:function(N){return _.Z("div",{class:"yt-spec-avatar-shape__badge-text",el:O},N)}}),_.Z(_.K,{cond:f,
then:function(){return _.Z("div",{class:"yt-spec-avatar-shape__badge-icon"},_.Z(_.er,{icon:P,size:function(){a:switch(U().size){case "extra-large":var N=16;break a;default:N=13}return N}}))}}))}}),_.Z(_.K,{cond:function(){var N,L;
return((N=U().decorations)==null?void 0:N.includes(1))||((L=U().decorations)==null?void 0:L.includes(0))&&!izV(U().size)},
then:function(){return _.Z("div",{class:function(){var N=U(),L,m,z={};var c=(z["yt-spec-avatar-shape__live-dot"]=!((L=N.decorations)==null||!L.includes(0)||izV(N.size)),z["yt-spec-avatar-shape__new-content"]=!((m=N.decorations)==null||!m.includes(1)),z);return _.QU(c)}})}}),_.Z(_.K,{cond:function(){return!!w},
then:function(){return _.Z("div",{class:function(){var N={};N=Object.assign((N["yt-spec-avatar-shape__image-overlays"]=!0,N),n());return _.QU(N)}},w==null?void 0:w())}})))))},"Qa");
Gww.idomCompat={callbacks:{overlays:!0}};_.dU=_.r(function(H){function U(){A().endpoint&&_.uj(A().endpoint)}
var A=H.data;var M=H.decorations;var W=H.avatarButtonCustomClassName;var w=H.isOverlay;var d=H.clusterLayoutConfig;return _.Z("avatar-view-model",null,_.Z(_.K,{cond:function(){return A().image},
then:function(O){return _.Z(Gww,{data:function(){return Ozt({data:A(),onTap:A().endpoint?U:void 0,decorations:M==null?void 0:M(),badgeText:void 0,accessibilityText:A().accessibilityText,avatarButtonCustomClassName:W==null?void 0:W(),clusterLayoutConfig:d==null?void 0:d()})},
image:O,iconType:"RADAR_LIVE",overlays:function(){return _.Z($m3,{data:A})},
isOverlay:w})}}))},"Ra");
_.dU.idomCompat=!0;_.Od=_.r(function(H){var U=H.data;H=H.className;var A=_.NU("yt-decorated-avatar-view-model"),M=function(){return _.p(U().avatar,_.Xd)},W=_.Ja(function(){var w,d=U(),O=M(),f=_.AF(U().rendererContext),J=(w=A.value)!=null?w:void 0,F;
if(O){J={data:d,avatar:O,onTap:f,element:J};w=J.data;d=J.avatar;O=J.onTap;f=J.element;J=J.commandController;O=O?Jx8(O,f,J):void 0;f=[];w.liveData&&f.push(0);var P;J=(P=w.liveData)==null?void 0:P.liveBadgeText;P=(F=_.p(w.rendererContext,_.Tn))==null?void 0:F.label;F=Ozt({data:d,onTap:O,decorations:f,badgeText:J,accessibilityText:P?P:w.a11yLabel})}else F={size:"medium"};return F},void 0,"c00kWd");
return _.Z("yt-decorated-avatar-view-model",{class:_.CG("ytDecoratedAvatarViewModelHost",H),el:A},_.Z(_.K,{cond:function(){var w;return(w=M())==null?void 0:w.image},
then:function(w){return _.Z(Gww,{data:W,image:w,iconType:"RADAR_LIVE",overlays:function(){return _.Z($m3,{data:M})}})}}))},"Sa");
_.Od.idomCompat=!0;_.uh=_.r(function(H){var U=function(){var O;return Object.assign({},H.data(),(O=H.overrides)==null?void 0:O.call(H))},A=function(){return _.MG(U().rendererContext)},M=function(){var O=U().avatars,f,J;
return(J=(f=(O==null?0:O[0])?_.p(O[0],_.Xd):void 0)==null?void 0:f.avatarImageSize)!=null?J:"AVATAR_SIZE_UNKNOWN"},W=function(){return fi7(U())},w=function(){if(U().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var O=void 0;
else if((O=H.decorations)==null?0:O.call(H))O=H.decorations();else{O=U();var f=0;O.avatars&&(f+=O.avatars.length);O.decoratedText&&(f+=1);O=f>1?[3]:[]}return O},d={};
return _.Z("yt-avatar-stack-view-model",{el:_.sB(_.Wq(function(){return U().rendererContext})),
class:_.CG("yt-avatar-stack-view-model",H.className,(d["yt-avatar-stack-view-model--tappable"]=A,d["yt-avatar-stack-view-model--is-overlay"]=H.isOverlay,d["yt-avatar-stack-view-model--medium-text"]=H.useMediumText,d)),tabindex:function(){return A()?0:void 0},
role:function(){return A()?"link":void 0},
"aria-label":function(){var O,f;return(f=(O=_.p(U().rendererContext,_.Tn))==null?void 0:O.label)!=null?f:""}},_.Z(_.K,{cond:function(){var O;
return U().avatars&&!((O=H.hideAvatar)==null?0:O.call(H))},
then:function(){return _.Z("div",{class:"yt-avatar-stack-view-model__avatars"},_.Z(_.K,{cond:function(){return U().decoratedText},
then:function(O){var f={};return _.Z("div",{class:_.CG("yt-avatar-stack-view-model__text-container",(f["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return M()==="AVATAR_SIZE_XXS"||M()==="AVATAR_SIZE_XS"},f["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var J;
return((J=H.isOverlay)==null?void 0:J.call(H))&&(M()==="AVATAR_SIZE_XXS"||M()==="AVATAR_SIZE_XS")},f)),
style:_.rA({width:function(){return W().avatarSizeInPx+"px"},
height:function(){return W().avatarSizeInPx+"px"}})},_.Z(_.Pb,{text:O,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.Z("div",{style:function(){return _.rA(W().avatarStackStyle)()},
class:function(){return W().avatarStackClass}},_.Z(_.YY,{data:function(){return W().avatars.reverse()}},{avatarViewModel:function(O,f){return _.Z("div",{style:function(){var J,F;
return _.rA((F=(J=W()).avatarStyle)==null?void 0:F.call(J,f()))()},
class:function(){return W().avatarClass}},_.Z(_.dU,{data:O.data,
decorations:w,avatarButtonCustomClassName:function(){return W().avatarButtonCustomClassName},
isOverlay:H.isOverlay,clusterLayoutConfig:function(){var J,F;return(F=(J=W()).clusterLayoutConfig)==null?void 0:F.call(J,f())}}))},
decoratedAvatarViewModel:function(O,f){return _.Z("div",{style:function(){var J,F;return _.rA((F=(J=W()).avatarStyle)==null?void 0:F.call(J,f()))()},
class:function(){return W().avatarClass}},_.Z(_.Od,{data:O.data}))}})))}}),_.Z(_.K,{cond:function(){return U().text},
then:function(O){return _.Z(_.Pb,{text:O,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ta");
_.uh.idomCompat=!0;_.LG(_.r(function(H){var U=H.data;var A=H.thumbnailSize;return _.Z("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.Z("div",{class:_.CG("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return KxN(A==null?void 0:A())})},_.Z(_.YY,{data:function(){return U().avatarStack}},{avatarStackViewModel:function(M){return _.Z(_.uh,{data:M.data,
decorations:[5]})}})))},"Ua"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.sY,
thumbnailSize:_.sY}});var Ywp=_.r(function(H){H=_.Ec(H,{hidden:!1});var U=H.data;H=H.hidden;return _.Z("yt-thumbnail-overlay-title-view-model",{class:_.CG("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(U().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var A="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:A="ytThumbnailOverlayTitleViewModelPositionTop"}return A}),
hidden:H},_.Z(_.K,{cond:function(){return U().leadingContent},
then:function(A){return _.Z("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.Z(_.YY,{data:A},{decoratedAvatarViewModel:_.Od}))}}),_.Z("div",null,_.Z(_.Pb,{text:function(){return U().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.Z(_.K,{cond:function(){return U().subtitle},
then:function(){return _.Z(_.Pb,{text:function(){return U().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Va");
Ywp.idomCompat=!0;_.LG(Ywp,"yt-thumbnail-overlay-title-view-model",{props:{data:_.sY,hidden:_.sY}});_.qwk=_.r(function(H){H=_.Ec(H,{isClip:!1});var U=H.data,A=H.thumbnailSize,M={};return _.Z("yt-thumbnail-overlay-badge-view-model",{class:_.CG("yt-thumbnail-overlay-badge-view-model",function(){a:switch(U().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var W="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:W="yt-thumbnail-overlay-badge-view-model--bottom-end"}return W},function(){return oWc(A==null?void 0:A())},(M["yt-thumbnail-overlay-badge-view-model--clip"]=H.isClip,
M))},_.Z(_.YY,{data:function(){return U().thumbnailBadges}},{thumbnailBadgeViewModel:function(W){return _.Z(_.e9k,{data:W.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Wa");
_.qwk.idomCompat=!0;_.LG(_.qwk,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.sY,thumbnailSize:_.sY,isClip:_.sY}});var h9K=_.r(function(H){var U=H.data;H=H.hidden;var A=_.Ja(function(){return U().indicatorCount||0},void 0,"AbKnMc"),M={};
return _.Z("yt-page-indicator-view-model",{class:_.CG("ytPageIndicatorViewModelHost",(M.ytPageIndicatorViewModelIndicatorHidden=function(){return!U().indicatorCount},M)),
hidden:H},_.Z(_.FQ,{each:function(){return Array(A())}},function(W,w){var d={};
return _.Z("div",{class:_.CG("ytPageIndicatorViewModelIndicator",(d.ytPageIndicatorViewModelIndicatorSelected=function(){return U().selectedIndex===w()},d))})}))},"Xa");
h9K.idomCompat=!0;_.LG(h9K,"yt-page-indicator-view-model",{props:{data:_.sY,hidden:_.sY}});var Z8=function(){var H=_.B.apply(this,arguments)||this;H.eventSink=function(){return H};
H.disableInteraction=!1;H.noRoundedCorners=!1;H.isPreviewLoading=!1;H.isOriginalAspectRatio=!1;H.computedObjectFit=!1;H.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return H};
_.R(Z8,_.B);_.X=Z8.prototype;
_.X.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:_.S("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"}}};
_.X.onImageLoaded=function(){this.loaded=!0};
_.X.onImageUnloaded=function(){this.loaded=!1};
_.X.computeRichThumbnail=function(H,U,A,M){if(H&&U&&!M&&!_.S("disable_moving_thumbs_handling")&&!A)return U};
_.X.computeImageWidth=function(H,U){return U||9999};
_.X.computeIsOriginalAspectRatio=function(H){return H};
_.X.computeIsLive=function(H){if(H==null?0:H.badges)for(var U=0;U<H.badges.length;U++){var A=H.badges[U];if(A.metadataBadgeRenderer&&A.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(H==null?0:H.thumbnailOverlays)for(U=0;U<H.thumbnailOverlays.length;U++)if(A=H.thumbnailOverlays[U],A.thumbnailOverlayTimeStatusRenderer&&A.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.X.computeObjectFit=function(H,U){return U||(H?"CONTAIN":"")};
_.X.computeNavigationEndpoint=function(H,U,A){return H?U:A};
_.X.computeHasClip=function(H){H=_.b(H||[]);for(var U=H.next();!U.done;U=H.next())if(U.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.X.computeOverlayColor=function(H){var U;return(H==null?0:(U=H.darkColorPalette)==null?0:U.section2Color)?H.darkColorPalette.section2Color:H==null?void 0:H.sampledThumbnailColor};
_.D5.Object.defineProperties(Z8.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.YVV(this.width)}}});
Z8.prototype.onImageUnloaded=Z8.prototype.onImageUnloaded;Z8.prototype.onImageLoaded=Z8.prototype.onImageLoaded;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Z8.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Z8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(pzB),_.q("design:type",Object)],Z8.prototype,"ytdThumbnailBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Z8.prototype,"componentBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Z8.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Z8.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Z8.prototype,"circular",void 0);
_.G([_.y({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.q("design:type",Object)],Z8.prototype,"richThumbnail",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.q("design:type",Boolean)],Z8.prototype,"hasClip",void 0);_.G([_.y(),_.q("design:type",Object)],Z8.prototype,"eventSink",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Z8.prototype,"queued",void 0);
_.G([_.y({value:!1}),_.q("design:type",Boolean)],Z8.prototype,"richGridThumbnail",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Z8.prototype,"useExpandableTooltip",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Z8.prototype,"useUntranslatedNavigationEndpoint",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Z8.prototype,"disableInteraction",void 0);
_.G([_.y({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.q("design:type",Object)],Z8.prototype,"computedNavigationEndpoint",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Z8.prototype,"nowPlayingEqualizerOnly",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Z8.prototype,"hidePlaybackStatus",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],Z8.prototype,"objectFit",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Z8.prototype,"noRoundedCorners",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Z8.prototype,"watchFeedThumbnail",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Z8.prototype,"isPreviewLoading",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.q("design:type",Object)],Z8.prototype,"isOriginalAspectRatio",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.q("design:type",Object)],Z8.prototype,"computedObjectFit",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.q("design:type",Boolean)],Z8.prototype,"isLiveVideo",void 0);
_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Z8.prototype,"loaded",void 0);_.G([_.y({computed:"computeOverlayColor(data.thumbnail)"}),_.q("design:type",Object)],Z8.prototype,"overlayColor",void 0);_.G([_.y(),_.q("design:type",Boolean)],Z8.prototype,"minimizePipBreakages",void 0);_.G([_.y({selector:_.o0t}),_.q("design:type",Boolean)],Z8.prototype,"inlinePreviewIsEnabled",void 0);_.G([_.y(),_.q("design:type",Number)],Z8.prototype,"width",void 0);
_.G([_.a("inlinePreviewIsEnabled"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Z8.prototype,"isPreviewDisabled",null);_.G([_.a("width"),_.q("design:type",String),_.q("design:paramtypes",[])],Z8.prototype,"thumbnailSize",null);_.G([_.Gl("image-loaded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Z8.prototype,"onImageLoaded",null);
_.G([_.Gl("image-unloaded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Z8.prototype,"onImageUnloaded",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-thumbnail"})],Z8);
_.ty()(Z8,"ytd-thumbnail",function(){if(Bdk===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);Bdk=H}H=Bdk;return H},{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 minimizePipBreakages".split(" "),mode:2});var sI4=function(H){var U=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15344_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15344_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(A){kwz(U,A)};
this.onLockupMouseLeaveFn=function(A){A=A.relatedTarget;var M,W;((M=document.getElementsByTagName("ytd-video-preview"))==null?0:(W=M.item(0))==null?0:W.contains(A))||(U.terminateVideoPreview(),fj(U))};
this.onThumbnailMouseDownFn=function(){U.terminateVideoPreview();fj(U)};
this.onTouchStart=function(){U.JSC$15344_touched=!0};
this.mediaRenderer=H.mediaRenderer;this.thumbnailElement=H.thumbnailElement;this.lockupElement=H.lockupElement;this.videoPreviewOptsInput=H.videoPreviewOpts;vW3(this);J6(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)):
_.Na(Error("Hh")):_.Na(Error("Ih")):Tdh(this)},Ri=function(H){Tdh(H);
var U;(U=H.lockupElement)==null||U.removeEventListener("mouseenter",H.onMouseMoveFn);var A;(A=H.lockupElement)==null||A.removeEventListener("mouseleave",H.onLockupMouseLeaveFn);var M;(M=H.lockupElement)==null||M.removeEventListener("touchstart",H.onTouchStart);var W;(W=H.thumbnailElement)==null||W.removeEventListener("mousedown",H.onThumbnailMouseDownFn);fj(H)},vW3=function(H){H.inlinePreviewIsEnabledForUser=_.Lq().getState().ui.inlinePreviewIsEnabled;
H.unsubscribeFromInlinePreviewIsEnabled=_.It(_.Lq(),_.o0t,function(U){(H.inlinePreviewIsEnabledForUser=U)||fj(H)});
H.JSC$15344_unsubscribeFromInlinePreviewIsActive=_.It(_.Lq(),_.KEE,function(U){(H.inlinePreviewIsActive=U)||fj(H)})},Tdh=function(H){H.unsubscribeFromInlinePreviewIsEnabled();
H.unsubscribeFromInlinePreviewIsEnabled=function(){};
H.JSC$15344_unsubscribeFromInlinePreviewIsActive();H.JSC$15344_unsubscribeFromInlinePreviewIsActive=function(){}},kwz=function(H,U){U.buttons>0||(U=_.hr("kevlar_lockup_hover_delay",-1),H.JSC$15344_touched&&U>=0?(_.Fl.cancelJob(H.videoPreviewJobId),H.videoPreviewJobId=_.av(_.Fl,function(){jIh(H)},U),H.JSC$15344_touched=!1):jIh(H))},K0K=function(H){H.videoPreviewJobId=_.av(_.Fl,function(){return _.u(function(U){return U.yield(Ii2(H,{isAutoplay:!0}),0)})})},jIh=function(H){!H.previewTriggered&&J6(H)&&
(H.inlinePreviewIsActive&&H.terminateVideoPreview(),H.previewTriggered=!0,H.mediaRenderer.isInlinePreviewTriggered=!0,_.Fl.cancelJob(H.videoPreviewJobId),H.videoPreviewJobId=_.av(_.Fl,function(){return _.u(function(U){return U.yield(Ii2(H),0)})}))},Ii2=function(H,U){U=U===void 0?{}:U;
var A=U.isAutoplay===void 0?!1:U.isAutoplay;var M,W,w,d;return _.u(function(O){if(O.nextAddress==1){if(!J6(H))return O.return();M=H.getVideoPreviewOpts();if(!M)return O.return();A&&(M.isAutoplay=!0);return(w=(W=_.Bg(H.mediaRenderer.hostElement,"yt-open-video-preview-action",[M]))&&W[0])?O.yield(W[0],3):O.jumpTo(2)}O.nextAddress!=2&&(w=O.yieldResult===1);if(w){var f=(d=H.mediaRenderer)==null?void 0:d.data;f&&(PqE(f)?delete f.inlinePlayerData:"inlinePlaybackEndpoint"in f&&delete f.inlinePlaybackEndpoint)}_.DO(O)})};
sI4.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var H,U;if((U=(H=this.videoPreviewOptsInput)==null?void 0:H.videoPreviewData)!=null)H=U;else if(H=this.mediaRenderer.data)if(PqE(H))H={inlinePlaybackEndpoint:_.ij(H.inlinePlayerData.onVisible),navigationEndpoint:_.ij(H.onTap),thumbnail:"image"in H?H.image:H.thumbnail,thumbnailOverlays:void 0,accessibilityText:Fxc(H)};else if("multipleInlinePlaybackEndpoint"in H){var A=_.p(_.p(H.multipleInlinePlaybackEndpoint,vim),Joc);if(A!=
null&&A.playerDescriptors){U=[];A=_.b(A.playerDescriptors);for(var M=A.next();!M.done;M=A.next())M=M.value,U.push({inlinePlaybackEndpoint:M.inlinePlaybackEndpoint,navigationEndpoint:M.navigationEndpoint,thumbnail:M.thumbnail,thumbnailOverlays:M.thumbnailOverlays,accessibilityText:Fxc(H)});H=U}else H=void 0}else H={inlinePlaybackEndpoint:H.inlinePlaybackEndpoint,navigationEndpoint:H.navigationEndpoint,thumbnail:H.thumbnail,thumbnailOverlays:H.thumbnailOverlays,accessibilityText:Fxc(H)};else H=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:H,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var J6=function(H){var U;if(U=H.inlinePreviewIsEnabledForUser)U=(H=H.mediaRenderer.data)?"inlinePlaybackEndpoint"in H&&H.inlinePlaybackEndpoint||PqE(H)&&H.inlinePlayerData||"multipleInlinePlaybackEndpoint"in H&&H.multipleInlinePlaybackEndpoint?!0:!1:!1;return U};
sI4.prototype.terminateVideoPreview=function(){_.yr(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var fj=function(H){_.Fl.cancelJob(H.videoPreviewJobId);H.inlinePreviewIsActive=!1;H.previewTriggered=!1;H.mediaRenderer.isInlinePreviewTriggered=!1};var QIw=_.NP(["#"]),Kj=function(){var H=_.B.apply(this,arguments)||this;H.isDisabled=!1;return H};
_.R(Kj,_.B);_.X=Kj.prototype;
_.X.configureRendererStamper=function(){return{"data.menu":T4,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.X.attached=function(){this.updateInlinePreviewHoverListeners()};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.getMetadata=function(H){var U=[];if(H.metadataText&&Object.keys(H.metadataText).length>0){var A=this.ytRendererBehavior.getSimpleString(H.metadataText);H.upcomingEventData&&H.upcomingEventData.upcomingEventText&&(A=_.jI(A,Number(H.upcomingEventData.startTime)));U.push(A)}else H.shortViewCountText&&U.push(this.ytRendererBehavior.getSimpleString(H.shortViewCountText)),H.publishedTimeText&&U.push(this.ytRendererBehavior.getSimpleString(H.publishedTimeText)),H.upcomingEventData&&H.upcomingEventData.upcomingEventText&&
(A=this.ytRendererBehavior.getSimpleString(H.upcomingEventData.upcomingEventText),U.push(_.jI(A,Number(H.upcomingEventData.startTime))));return U};
_.X.calculateBylineText=function(H){return H.shortBylineText?H.shortBylineText:H.bylineText?H.bylineText:null};
_.X.calculateIsDisabled=function(H){return!!H.isDisabled};
_.X.computeHrefWithDefault=function(H){return this.ytComponentBehavior.computeHref_(H)||_.pIc(QIw)};
_.X.onDetailsTap=function(H){var U=this.data&&this.data.navigationEndpoint;U&&!_.ny(_.Lf(H)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.S("kevlar_grid_video_renderer_killswitch")?_.cg(this.hostElement,"yt-navigate",{endpoint:U}):this.ytComponentBehavior.resolveCommand(U))};
_.X.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15351_inlinePreviewHoverListener=iA({mediaRenderer:this,lockupElement:_.c4(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.c4(this.hostElement).querySelector("ytd-thumbnail")})};
_.X.clearInlinePreviewHoverListeners=function(){var H;(H=this.JSC$15351_inlinePreviewHoverListener)==null||Ri(H)};
_.X.computeThumbnailWidth=function(H,U){return U&&U>0?U:H?360:210};
_.X.computeNumBadgesInRow=function(H){var U;return((U=H.badges)==null?void 0:U.length)||0};
_.X.computeShowChannelThumbnail=function(H,U){var A;return U&&!!(H==null?0:(A=H.channelThumbnailSupportedRenderers)==null?0:A.channelThumbnailWithLinkRenderer)};
_.D5.Object.defineProperties(Kj.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.JSC$15351_inlinePreviewHoverListener)==null?0:J6(H))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
Kj.prototype.dataChanged=Kj.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Kj.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],Kj.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.g(_.PA),_.q("design:type",Object)],Kj.prototype,"ytdLockupBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Kj.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Kj.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],Kj.prototype,"noEndpoints",void 0);_.G([_.y({computed:"calculateBylineText(data)"}),_.q("design:type",Object)],Kj.prototype,"bylineText",void 0);
_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Kj.prototype,"isSearch",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Kj.prototype,"isDownloading",void 0);_.G([_.y({reflectToAttribute:!0,value:0}),_.q("design:type",Number)],Kj.prototype,"width",void 0);_.G([_.y({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.q("design:type",Object)],Kj.prototype,"isDisabled",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Kj.prototype,"dataChanged",null);_.G([_.a("lockupIsHovered"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Kj.prototype,"isHovered",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Kj.prototype,"hasAttributedBylineText",null);
_.G([_.a("bylineText","hasAttributedBylineText"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Kj.prototype,"showBylineText",null);_.G([_.dX({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Kj);
_.e(Kj,"ytd-grid-video-renderer",function(){if(Lxp!==void 0)return Lxp;var H=document.createElement("template");_.E(H,'\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" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" 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]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" 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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Lxp=H},{mode:2});var Vnp;var oj=function(){var H=_.B.apply(this,arguments)||this;H.roundedContainer=!0;H.skipRoundingTop=!1;H.disableTopPadding=!1;H.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");H.extractOverlay=!1;return H};
_.R(oj,_.B);oj.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
oj.prototype.onClick=function(H){var U,A=(U=this.data)==null?void 0:U.sourceEndpoint;!_.ny(_.Lf(H),this.hostElement,["A".toString()])&&A&&_.cg(this.hostElement,"yt-navigate",{endpoint:A})};
_.D5.Object.defineProperties(oj.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 H;return!((H=this.data)==null||!H.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var H,U;return(U=(H=this.data)==null?void 0:H.paragraphMaxLines)!=null?U:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],oj.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],oj.prototype,"showVerticalDividers",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],oj.prototype,"roundedContainer",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],oj.prototype,"skipRoundingTop",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],oj.prototype,"disableTopPadding",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],oj.prototype,"amsterdamEnabled",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],oj.prototype,"extractOverlay",void 0);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],oj.prototype,"showMetadataAtTop",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],oj.prototype,"showMetadataBelowTitle",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.menu"),_.q("design:type",Object),_.q("design:paramtypes",[])],oj.prototype,"hasMenu",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data.truncateParagraphs"),_.q("design:type",Object),_.q("design:paramtypes",[])],oj.prototype,"truncateParagraphs",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.paragraphMaxLines"),_.q("design:type",Number),_.q("design:paramtypes",[])],oj.prototype,"paragraphMaxLines",null);
_.G([_.y({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.a("data.background"),_.q("design:type",Object),_.q("design:paramtypes",[])],oj.prototype,"background",null);_.G([_.dX({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],oj);
_.e(oj,"ytd-info-panel-content-renderer",function(){if(Vnp!==void 0)return Vnp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Vnp=H},{mode:2});var H0H;var Utg;var A4n;var Maz;var FW=function(){return _.B.apply(this,arguments)||this};
_.R(FW,_.B);FW.prototype.computeStyle=function(H){return H};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],FW.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.q("design:type",String)],FW.prototype,"style_",void 0);_.G([_.b0({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],FW);
_.e(FW,"yt-channel-thumbnail-with-link-renderer",function(){if(Maz===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;A4n===void 0&&(A4n=document.createElement("template"));var M=A4n;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Maz=H}H=Maz;return H},{mode:2});var P6=function(){return _.B.apply(this,arguments)||this};
_.R(P6,_.B);P6.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"}}}};
P6.prototype.computeTitleStyle=function(H){return H||null};
P6.prototype.computeAvatarStyle=function(H){return H||null};
P6.prototype.computeShowNavigationButton=function(H,U){return!(H==null||!H.navigationButton||U)};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],P6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],P6.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.q("design:type",String)],P6.prototype,"titleStyle",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.q("design:type",String)],P6.prototype,"avatarStyle",void 0);_.G([_.y(),_.q("design:type",Boolean)],P6.prototype,"hideNavigationButton",void 0);_.G([_.dX({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],P6);
_.e(P6,"ytd-rich-list-header-renderer",function(){if(Utg!==void 0)return Utg;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Utg=H},{mode:2});var sd=function(){return _.B.apply(this,arguments)||this};
_.R(sd,_.B);sd.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]]"}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],sd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],sd.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],sd.prototype,"isSearch",void 0);_.G([_.dX({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],sd);
_.e(sd,"ytd-preview-card-renderer",function(){if(H0H!==void 0)return H0H;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return H0H=H},{mode:1});var Wsw;var nj=function(){return _.B.apply(this,arguments)||this};
_.R(nj,_.B);nj.prototype.configureRendererStamper=function(){return{"data.menu":T4}};
nj.prototype.dataChanged=function(){var H=this.get("colorExtractionPalette.section1Color",this.data);H=_.wn(H);_.Dt(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":H})};
nj.prototype.computeCardStyle=function(H){return this.get("style.value",H)||null};
nj.prototype.dataChanged=nj.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],nj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],nj.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],nj.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.q("design:type",String)],nj.prototype,"cardStyle",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nj.prototype,"dataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],nj);
_.e(nj,"ytd-compact-channel-recommendation-card-renderer",function(){if(Wsw!==void 0)return Wsw;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Wsw=H},{mode:1});var wkk;var Xk2;var Nd=function(){var H=_.B.apply(this,arguments)||this;H.alignAuto=!1;H.collapsed=!0;H.isToggled=!1;H.alwaysCollapsed=!1;H.canToggle=!0;H.collapsedHeight=80;H.disableToggle=!1;H.alwaysToggleable=!1;H.reversed=!1;H.shouldUseNumberOfLines=!1;H.recomputeOnResize=!1;H.canToggleJobId=0;H.lastReversed=!1;return H};
_.R(Nd,_.B);_.X=Nd.prototype;_.X.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.X.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.X.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var H=_.c4(this.hostElement),U=H.childNodes,A=document.createDocumentFragment(),M=H.childNodes.length-1;M>=0;M--)_.c4(A).appendChild(U[M]);_.S("enable_shadydom_free_scoped_node_methods")?_.yf(this.hostElement).appendChild(A):H.appendChild(A)}};
_.X.ready=function(){var H=this;_.oS(function(){H.initChildrenObserver()},1)};
_.X.attached=function(){var H;(H=this.resizeObserver)==null||H.observe(this.content)};
_.X.detached=function(){this.detachObserver()};
_.X.toggle=function(H,U){this.canToggle&&(this.isToggled=U,_.cg(this.hostElement,"yt-refit"),H&&H.stopPropagation())};
_.X.reset=function(){this.childrenChanged()};
_.X.onIronResize=function(){this.recomputeOnResize&&!_.S("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.X.computeIsMoreVisible=function(H,U){return H&&!U};
_.X.computeShouldUseNumberOfLines=function(H){try{return!!H&&window.CSS.supports("-webkit-line-clamp","1")}catch(U){}return!1};
_.X.computeIsLessVisible=function(H,U){return H&&U};
_.X.observeCollapsedHeightAndMaxLines=function(){var H=this.collapsedHeight,U=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Dt(this.hostElement,{"--ytd-expander-max-lines":""+U,"--ytd-expander-collapsed-height":""}):_.Dt(this.hostElement,{"--ytd-expander-collapsed-height":H+"px","--ytd-expander-max-lines":""})};
_.X.handleMoreTap=function(H){this.disableToggle||(_.cg(this.hostElement,"yt-expander-more-tapped"),this.toggle(H,!0))};
_.X.handleLessTap=function(H){_.cg(this.hostElement,"yt-expander-less-tapped");this.toggle(H,!1)};
_.X.initChildrenObserver=function(){var H=this;this.observer=new MutationObserver(function(){H.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.S("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.B$(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var U;(U=H.resizeThrottle)==null||U.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.X.childrenChanged=function(){var H=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){gA(function(){H.canToggleJobId=0;H.calculateCanCollapse()})}))};
_.X.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};
_.X.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.X.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("collapsed-changed",this.collapsed))};
_.X.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("is-toggled-changed",this.isToggled))};
_.X.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("can-toggle-changed",this.canToggle))};
_.D5.Object.defineProperties(Nd.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Nd.prototype.canToggleChangedForBinding=Nd.prototype.canToggleChangedForBinding;Nd.prototype.isToggledChangedForBinding=Nd.prototype.isToggledChangedForBinding;Nd.prototype.collapsedChangedForBinding=Nd.prototype.collapsedChangedForBinding;Nd.prototype.observeCollapsedHeightAndMaxLines=Nd.prototype.observeCollapsedHeightAndMaxLines;Nd.prototype.onIronResize=Nd.prototype.onIronResize;Nd.prototype.reversedChanged=Nd.prototype.reversedChanged;Nd.prototype.toggledChanged=Nd.prototype.toggledChanged;
Nd.prototype.alwaysToggleableChanged=Nd.prototype.alwaysToggleableChanged;_.G([_.g(_.Qo),_.q("design:type",Object)],Nd.prototype,"ironResizableBehavior",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Nd.prototype,"alignAuto",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Nd.prototype,"collapsed",void 0);_.G([_.y(),_.q("design:type",Object)],Nd.prototype,"isToggled",void 0);_.G([_.y(),_.q("design:type",Object)],Nd.prototype,"alwaysCollapsed",void 0);
_.G([_.y(),_.q("design:type",Object)],Nd.prototype,"canToggle",void 0);_.G([_.y(),_.q("design:type",Object)],Nd.prototype,"collapsedHeight",void 0);_.G([_.y(),_.q("design:type",Object)],Nd.prototype,"disableToggle",void 0);_.G([_.y(),_.q("design:type",Object)],Nd.prototype,"alwaysToggleable",void 0);_.G([_.y(),_.q("design:type",Object)],Nd.prototype,"reversed",void 0);_.G([_.y(),_.q("design:type",Number)],Nd.prototype,"maxNumberOfLines",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.q("design:type",Object)],Nd.prototype,"shouldUseNumberOfLines",void 0);_.G([_.y(),_.q("design:type",Object)],Nd.prototype,"recomputeOnResize",void 0);_.G([_.hG("#content"),_.q("design:type",HTMLDivElement)],Nd.prototype,"content",void 0);_.G([_.jk("alwaysToggleable"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Nd.prototype,"alwaysToggleableChanged",null);
_.G([_.jk("isToggled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Nd.prototype,"toggledChanged",null);_.G([_.a("canToggleJobId"),_.q("design:type",Object),_.q("design:paramtypes",[])],Nd.prototype,"isResetting",null);_.G([_.Ya("reversed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Nd.prototype,"reversedChanged",null);
_.G([_.Gl("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Nd.prototype,"onIronResize",null);_.G([_.Ya("maxNumberOfLines","collapsedHeight"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Nd.prototype,"observeCollapsedHeightAndMaxLines",null);_.G([_.Ya("collapsed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Nd.prototype,"collapsedChangedForBinding",null);
_.G([_.Ya("isToggled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Nd.prototype,"isToggledChangedForBinding",null);_.G([_.Ya("canToggle"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Nd.prototype,"canToggleChangedForBinding",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-expander"})],Nd);
_.e(Nd,"ytd-expander",function(){if(Xk2!==void 0)return Xk2;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Xk2=H},{mode:1});var SL=function(){return _.B.apply(this,arguments)||this};
_.R(SL,_.B);SL.prototype.computeIsCarousel=function(H){return!!H.isCarousel};
SL.prototype.observeLightsourcePalette=function(){var H,U=(H=this.data)==null?void 0:H.vibrantsourceColorPaletteData;U&&_.jr(this.hostElement,U)};
SL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
SL.prototype.observeLightsourcePalette=SL.prototype.observeLightsourcePalette;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],SL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],SL.prototype,"data",void 0);_.G([_.y({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],SL.prototype,"isCarousel",void 0);
_.G([_.Ya("data.vibrantsourceColorPaletteData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],SL.prototype,"observeLightsourcePalette",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],SL);
_.e(SL,"ytd-media-upsell-renderer",function(){if(wkk!==void 0)return wkk;var H=document.createElement("template");_.E(H,'\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="EXPAND" 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="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return wkk=H},{mode:2});var i02;var pj=function(){var H=_.B.apply(this,arguments)||this;H.JSC$15378_playerEvents=new Map;H.listeningToPlayer=!1;H.startX=0;H.active=!1;H.shouldShowButtons=_.S("web_buttons_hidden_killswitch");H.isHighlighted=!1;H.useHighlightStyling=_.S("web_enable_deeper_metadata_highlight_styling");H.enableProblemWalkthrough=_.S("problem_walkthrough_sd");return H};
_.R(pj,_.B);_.X=pj.prototype;
_.X.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}}}}}};
_.X.created=function(){this.JSC$15378_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.X.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.lN(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.lN(this,this.onActiveUpdate))};
_.X.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.lN(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.lN(this,this.onActiveUpdate))};
_.X.onDataChanged=function(){this.removePlayerListeners()};
_.X.onColorPaletteChange=function(){var H={},U;if(_.Kf()==="USER_INTERFACE_THEME_DARK"&&((U=this.data)==null?0:U.darkColorPalette)){var A=this.data.darkColorPalette;H["--ytd-macro-markers-list-item-background-color"]=_.bN(this.get("section2Color",A))}else{var M;_.Kf()==="USER_INTERFACE_THEME_LIGHT"&&((M=this.data)==null?0:M.lightColorPalette)&&(A=this.data.lightColorPalette,H["--ytd-macro-markers-list-item-background-color"]=_.bN(this.get("section3Color",A)))}A?(H["--ytd-macro-markers-list-item-title-color"]=
_.bN(this.get("primaryTitleColor",A)),H["--ytd-macro-markers-list-item-secondary-color"]=_.bN(this.get("secondaryTitleColor",A)),H["--ytd-macro-markers-list-item-timestamp-background-color"]=_.bN(this.get("section1Color",A)),this.customButtonProperties={customColors:{color:_.bN(this.get("primaryTitleColor",A))}},this.useColorSampling=!0):(H["--ytd-macro-markers-list-item-background-color"]="initial",H["--ytd-macro-markers-list-item-title-color"]="initial",H["--ytd-macro-markers-list-item-secondary-color"]=
"initial",H["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Dt(this.hostElement,H)};
_.X.onEndpointMouseDown=function(H){this.startX=H.clientX};
_.X.onEndpointClick=function(H){var U=this,A,M,W;return _.u(function(w){if(w.nextAddress==1){if(U.startX!==H.clientX)return H.preventDefault(),w.return();U.data&&U.ytRendererBehavior.logExplicitClick(U.data);if(!U.seekWithAnimationOnClick)return w.jumpTo(0);if(H.button!==0||H.shiftKey||H.altKey||H.metaKey||H.ctrlKey||_.ny(_.Lf(H),U.hostElement,["BUTTON".toString()]))return w.return();H.stopPropagation();H.preventDefault();return U.data?w.yield(_.RL().getPlayerPromise(),3):w.return()}A=w.yieldResult;
W=(M=_.p(U.data.onTap,_.sH))==null?void 0:M.startTimeSeconds;W!==void 0&&A.seekToTimeWithAnimation(W*1E3,_.Sp(U.data.title));_.DO(w)})};
_.X.computeLayout=function(H){return H};
_.X.computeIsHighlighted=function(H){return!!H};
_.X.computeCarouselType=function(H){return H};
_.X.hideCarousel=function(H){return this.hideThumbnail(H)};
_.X.hideThumbnail=function(H){return this.enableProblemWalkthrough&&H!==null&&H==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.X.onRepeatButtonToggle=function(H){var U=this;H.detail.toggled&&_.RL().getPlayerPromise().then(function(A){U.ytPlayerListenerBehavior.listenToPlayerEvents(A,U.JSC$15378_playerEvents);U.listeningToPlayer=!0})};
_.X.onLoopRangeChange=function(H){var U=_.c4(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(U){var A=U.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",U.polymerController.data);if(A){var M=Number(A.endTimeMs);if(Number(A.startTimeMs)!==(H==null?void 0:H.startTimeMs)||M!==(H==null?void 0:H.endTimeMs))U.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.X.removePlayerListeners=function(){var H=this;this.listeningToPlayer&&_.RL().getPlayerPromise().then(function(U){H.ytPlayerListenerBehavior.unlistenFromPlayerEvents(U,H.JSC$15378_playerEvents);H.listeningToPlayer=!1})};
_.X.onActiveUpdate=function(H){this.active=H.detail.active};
pj.prototype.onColorPaletteChange=pj.prototype.onColorPaletteChange;pj.prototype.onDataChanged=pj.prototype.onDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],pj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.nm.YtPlayerListenerBehavior),_.q("design:type",_.NM)],pj.prototype,"ytPlayerListenerBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],pj.prototype,"data",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],pj.prototype,"useCustomColors",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],pj.prototype,"active",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],pj.prototype,"shouldShowButtons",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.q("design:type",String)],pj.prototype,"layout",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.q("design:type",Object)],pj.prototype,"isHighlighted",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],pj.prototype,"useHighlightStyling",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],pj.prototype,"enableProblemWalkthrough",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.q("design:type",String)],pj.prototype,"carouselType",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],pj.prototype,"useColorSampling",void 0);_.G([_.y(),_.q("design:type",Boolean)],pj.prototype,"seekWithAnimationOnClick",void 0);_.G([_.y(),_.q("design:type",Object)],pj.prototype,"customButtonProperties",void 0);
_.G([_.hG("#repeat-button"),_.q("design:type",HTMLElement)],pj.prototype,"repeatButton",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pj.prototype,"onDataChanged",null);_.G([_.Ya("data.lightColorPalette","data.darkColorPalette"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pj.prototype,"onColorPaletteChange",null);
_.G([_.dX({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],pj);
_.e(pj,"ytd-macro-markers-list-item-renderer",function(){if(i02!==void 0)return i02;var H=document.createElement("template");_.E(H,'\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="[[hideCarousel(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="[[!hideCarousel(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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return i02=H},{mode:1});var b0n;var dt3;var Lj=function(){return _.B.apply(this,arguments)||this};
_.R(Lj,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Lj.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],Lj);
_.e(Lj,"ytd-title-and-button-list-header-renderer",function(){if(dt3!==void 0)return dt3;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return dt3=H},{mode:1});var O0H;var uvg=new _.g3("BUTTON_RENDERER_TOKEN");_.Rj=_.r(function(H){var U=_.lx().resolve(uvg);return _.Z(U,Object.assign({},H,{overrides:H.buttonOverrides}))},"Ya");var Z0z=_.r(function(H){var U=H.data,A=_.RS(H.useSquareAspectRatio,!1);return _.Z("dismissed-mini-game-card-view-model",null,_.Z(_.K,{cond:function(){var M,W;return(M=U().responseText)==null?void 0:(W=M.runs)==null?void 0:W.length},
then:function(){var M={};return _.Z("div",{class:_.CG("yt-mini-game-card-view-model__dismissed-card",(M["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!A()},M["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.S("web_game_card_force_2_by_3")},M["yt-mini-game-card-view-model--dismissed-square-card"]=A,M))},_.Z("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.Z(_.K,{cond:function(){return U().responseText.runs[0].text},
then:function(W){return _.Z("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:W},W)}}),_.Z(_.YY,{data:function(){return U().buttons}},{buttonRenderer:_.Rj,
buttonViewModel:_.yJ})))}}))},"Za");var fFp=_.r(function(H){var U=H.data;return _.Z("br-nz-badge-shape",{class:_.CG(function(){return nWc(U().brNzRatingBadgeType)}),
role:function(){return U().accessibilityText?"img":void 0},
"aria-label":function(){return U().accessibilityText}},function(){var A;
return(A=U())==null?void 0:A.text})},"$a");_.Ed=_.r(function(H){var U=function(){var A=H.data(),M,W,w,d,O;if(A){var f=!((M=H.workaroundShortsIsThumbnailBadge)==null||!M.call(H));M=(W=H.modern)==null?void 0:W.call(H);W=(w=H.numBadgesInRow)==null?void 0:w.call(H);w=(d=H.clipTextOverflow)==null?void 0:d.call(H);d=(O=H.inheritTypography)==null?void 0:O.call(H);var J;a:switch(A.badgeStyle){case "BADGE_OVERLAY":O=!0;break a;default:O=!1}A={type:f?17:NdV(A.badgeStyle),brNzRatingBadgeType:SwE(A.badgeStyle),text:A.badgeText,icon:A.iconName,isOverlay:O,
modern:M||_.S("web_modern_badge_view_model"),accessibilityText:A.accessibilityLabel||((J=_.p(A.rendererContext,_.Tn))==null?void 0:J.label),numBadgesInRow:W,clipTextOverflow:w,shouldInheritTypography:d}}else A=void 0;return A};
return _.Z("yt-badge-view-model",{class:_.CG("ytBadgeViewModelHost",H.class)},_.Z(_.P5,null,_.Z(_.KA,{when:function(){var A;return!((A=U())==null||!A.brNzRatingBadgeType)}},function(){return _.Z(fFp,{data:function(){return U()}})}),_.Z(_.KA,{when:function(){return!!U()&&!U().brNzRatingBadgeType}},function(){return _.Z(_.Kn,{data:function(){return U()}})})))},"ab");
_.Ed.idomCompat=!0;var Ntg=_.r(function(H){H=_.Ec(H,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var U=H.data,A=H.useFullWidth,M=H.isDesktopWeb,W=H.addSearchResultTopMargin,w=function(){return U().layout},d=function(){return U().title},O=function(){return U().metadataText?U().metadataText:U().genre},f=function(){return U().channelName},J=function(){return U().image},F=function(){return U().colorPalette},P=function(){return U().actionButton},n=function(){return U().overflowButton},
N=function(){return U().avatar},L=function(){return U().ageRating},m=function(){var v={};
v=_.CG("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(v["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return M()},v));
return _.Z("div",{class:v},_.Z(J4m,{imageData:J,colorPalette:F}),_.Z(Ks2,{onTap:function(){return U().onTap},
imageData:J,accessibilityText:function(){return U().accessibilityText},
overlayBadgeText:function(){return U().overlayBadgeText},
iconName:function(){return U().iconName},
unplayableInlinePlaybackIconName:function(){return U().unplayableInlinePlaybackIconName},
isDesktopWeb:M}),_.Z(_.K,{cond:function(){return!M()},
then:function(){return _.Z(_.ve,null,_.Z(oq3,{layout:w,colorPalette:F,isDesktopWeb:M,overflowButton:n,avatar:N,onTap:function(){return U().onTap},
genre:O,title:d,channelName:f}),_.Z(FsB,{actionButton:P}))}}))},z=function(){var v={};
v=_.CG((v["yt-mini-game-card-view-model--search-result-desktop"]=function(){return M()},v["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!M()},v["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return W()},v));
return _.Z("div",{class:v},m(),_.Z(Pi3,{description:function(){return U().description},
isDesktopWeb:M,title:d,genre:O,onTap:function(){return U().onTap},
actionButton:P,overflowButton:n,avatar:N,channelName:f}))},c=function(){var v={};
v=_.CG("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(v["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return M()},v["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return M()&&U().width===135},v["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return M()},v["yt-mini-game-card-view-model--big-metadata-font"]=function(){return U().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},v["yt-mini-game-card-view-model--use-full-width"]=
function(){return A()},v["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.S("web_game_card_force_2_by_3")},v));
return _.Z("div",{class:v},_.Z(sKH,{colorPalette:F,isDesktopWeb:M,onTap:function(){return U().onTap},
accessibilityText:function(){return U().accessibilityText},
overlayBadgeText:function(){return U().overlayBadgeText},
iconName:function(){return U().iconName},
unplayableInlinePlaybackIconName:function(){return U().unplayableInlinePlaybackIconName},
actionButton:P,imageData:J}),_.Z(oq3,{layout:w,colorPalette:F,isDesktopWeb:M,overflowButton:n,avatar:N,onTap:function(){return U().onTap},
genre:O,title:d,channelName:f}),_.Z(_.K,{cond:L,then:function(Y){return _.Z(nqg,{ageRating:Y})}}))},C=function(){var v={};
v=_.CG("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(v["yt-mini-game-card-view-model--square-card-desktop"]=function(){return M()},v["yt-mini-game-card-view-model--use-full-width"]=function(){return A()},v));
return _.Z("div",{class:v},_.Z(Ks2,{onTap:function(){return U().onTap},
imageData:J,accessibilityText:function(){return U().accessibilityText},
overlayBadgeText:function(){return U().overlayBadgeText},
iconName:function(){return U().iconName},
unplayableInlinePlaybackIconName:function(){return U().unplayableInlinePlaybackIconName},
isDesktopWeb:M}),_.Z(oq3,{layout:w,colorPalette:F,isDesktopWeb:M,overflowButton:n,avatar:N,onTap:function(){return U().onTap},
genre:O,title:d,channelName:f}),_.Z(_.K,{cond:L,then:function(Y){return _.Z(nqg,{ageRating:Y})}}))};
return _.Z("mini-game-card-view-model",{class:H.className},_.Z(_.P5,null,_.Z(_.KA,{when:function(){return w()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return c()}),_.Z(_.KA,{when:function(){return w()==="MINI_APP_LAYOUT_SQUARE"}},function(){return C()}),_.Z(_.KA,{when:function(){return w()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return z()})))},"bb");
Ntg.idomCompat=!0;var FsB=_.r(function(H){var U=_.RS(H.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.Z(_.YY,{data:H.actionButton},{buttonViewModel:function(A){return _.Z("div",{class:U},_.Z(_.yJ,{data:A.data}))}})},"cb"),Ks2=_.r(function(H){var U=H.onTap;
var A=H.imageData;var M=H.accessibilityText;var W=H.overlayBadgeText;var w=H.iconName;var d=H.unplayableInlinePlaybackIconName;H=H.isDesktopWeb;return _.Z(_.xy,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:U},_.Z(_.nG,{data:A,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(M==null?void 0:M())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.Z(SIr,{overlayBadgeText:W,iconName:w,unplayableInlinePlaybackIconName:d,isDesktopWeb:H}))},"db"),SIr=_.r(function(H){var U=H.overlayBadgeText;
var A=H.iconName;var M=H.unplayableInlinePlaybackIconName;var W=H.isDesktopWeb;return _.Z("div",{class:"yt-mini-game-card-view-model__badge-container"},_.Z(_.K,{cond:A,then:function(w){return _.Z("div",{class:"yt-mini-game-card-view-model__badge"},_.Z("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.Z(_.er,{icon:w,className:"yt-mini-game-card-view-model__icon",size:12}),_.Z("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},U)))}}),_.Z(_.K,{cond:function(){return!A()&&
U()},
then:function(){return _.Z("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},U)}}),_.Z(_.K,{cond:function(){return M()&&W()},
then:function(){return _.Z("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.Z(_.er,{icon:M,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"eb"),J4m=_.r(function(H){var U=H.colorPalette;
var A=H.imageData;var M=function(){return U().vibrantColorPalette?U().vibrantColorPalette.section2Color:U().sectionTwoColor};
return _.Z(_.ve,null,_.Z("div",{class:"yt-mini-game-card-view-model__background-base",style:_.rA({"background-color":function(){return dn(M(),"1")}})}),_.Z("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.rA({"background-image":function(){return"url("+A().sources[0].url+")"}})}),_.Z("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.rA({background:function(){return"linear-gradient(180deg,\n    "+dn(M(),".8")+" 0%,\n    "+dn(M(),".4")+" 25%,\n    "+dn(U().vibrantColorPalette?U().vibrantColorPalette.section4Color:U().sectionFourColor,".8")+" 100%)"}})}))},"fb"),oq3=_.r(function(H){var U=H.layout;
var A=H.colorPalette;var M=H.overflowButton;var W=H.avatar;var w=H.onTap;var d=H.title;var O=H.channelName;var f=H.genre;var J=function(){var F;return U()!=="MINI_APP_LAYOUT_SQUARE"&&((F=A())==null?0:F.textPrimaryColor)?"color: "+dn(A().textPrimaryColor,".7"):""};
return _.Z("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.Z(_.K,{cond:W,then:function(){return _.Z("div",{class:"yt-mini-game-card-view-model__avatar"},_.Z(_.YY,{data:W},{avatarViewModel:_.dU}))}}),_.Z(_.xy,{command:w,
className:"yt-mini-game-card-view-model__metadata-details"},_.Z("h3",{class:"yt-mini-game-card-view-model__title",title:d},d),_.Z(_.K,{cond:W,then:function(){return _.Z("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.Z("span",{class:"yt-mini-game-card-view-model__genre",title:O,style:J},O),_.Z("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:J},f))},
else:function(){return _.Z("span",{class:"yt-mini-game-card-view-model__genre",title:f},f)}})),_.Z("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.Z(_.YY,{data:M},{buttonViewModel:function(F){var P=F.data;
return _.Z(_.yJ,{data:function(){return Object.assign({},P(),{customFontColor:U()==="MINI_APP_LAYOUT_SINGLETON"?P().customFontColor:void 0})}})}})))},"gb"),sKH=_.r(function(H){var U=H.colorPalette;
var A=H.isDesktopWeb;var M=H.onTap;var W=H.accessibilityText;var w=H.overlayBadgeText;var d=H.iconName;var O=H.unplayableInlinePlaybackIconName;var f=H.actionButton;H=H.imageData;return _.Z("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.Z(J4m,{imageData:H,colorPalette:U}),_.Z(Ks2,{onTap:M,imageData:H,accessibilityText:W,overlayBadgeText:w,iconName:d,unplayableInlinePlaybackIconName:O,isDesktopWeb:A}),_.Z(_.K,{cond:function(){return f==null?void 0:f()},
then:function(){return _.Z(FsB,{actionButton:f})}}))},"hb"),Pi3=_.r(function(H){var U=H.description;
var A=H.isDesktopWeb;var M=H.title;var W=H.genre;var w=H.onTap;var d=H.actionButton;var O=H.overflowButton;var f=H.avatar;H=H.channelName;var J={};J=_.CG("yt-mini-game-card-view-model--search-result-metadata-wrapper",(J["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=A,J["yt-mini-game-card-view-model--show-unplayable-on-hover"]=A,J["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!A()},J));
var F={};F=_.CG("yt-mini-game-card-view-model__search-result-info-row",(F["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!A()},F));
return _.Z("div",{class:J},_.Z("div",{class:F},_.Z(_.xy,{command:w,className:"yt-mini-game-card-view-model__metadata-details"},_.Z("h3",{class:"yt-mini-game-card-view-model__title",title:M},M),_.Z("span",{class:"yt-mini-game-card-view-model__genre",title:W},W)),_.Z(FsB,{actionButton:d,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.Z("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.Z(_.YY,{data:O},{buttonViewModel:_.yJ}))),_.Z("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.Z("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.Z("div",{class:"yt-mini-game-card-view-model__avatar"},_.Z(_.YY,{data:f},{avatarViewModel:function(P){var n=P.data;return _.Z(_.dU,{data:function(){return Object.assign({},n(),{avatarImageSize:A()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.Z(_.xy,{command:w,
className:"yt-mini-game-card-view-model__description"},_.Z("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},H)),_.Z(_.xy,{command:w,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.Z("div",null)))),_.Z(_.K,{cond:A,then:function(){return _.Z(_.xy,{command:w,className:"yt-mini-game-card-view-model__description"},U)}}))},"ib"),nqg=_.r(function(H){var U=H.ageRating;
return _.Z("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.Z(_.nG,{data:function(){return{sources:[{url:U().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.Z(_.Ed,{data:function(){return{badgeText:U().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"jb");_.LG(Ntg,"mini-game-card-view-model",{props:{data:_.sY,className:_.sY,useFullWidth:_.sY,isDesktopWeb:_.sY,addSearchResultTopMargin:_.sY}});_.LG(Z0z,"dismissed-mini-game-card-view-model",{props:{data:_.sY,useSquareAspectRatio:_.sY}});var mI=function(){var H=_.B.apply(this,arguments)||this;H.isSearch=!1;H.isRichGrid=!1;return H};
_.R(mI,_.B);_.X=mI.prototype;_.X.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.X.dismissibleItemOnYtServiceRequestSent=function(H,U){U.actions&&this.dismissibleItemProcessActions(H,U.actions)};
_.X.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.X.dataChanged=function(){this.dismissibleItemReset()};
_.X.dismissibleItemProcessActions=function(H,U){for(var A=0;A<U.length;A++){var M=U[A];_.p(M,_.hf)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.p(M,_.hf)),H.stopPropagation())}};
_.X.dismissibleItemHandleReplaceEnclosingAction=function(H){this.dismissedRenderer=H.item;this.isDismissed=!0};
_.D5.Object.defineProperties(mI.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var H;return!!this.data&&!((H=this.dismissedRenderer)==null?0:H.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.dismissedRenderer)==null||!H.notificationMultiActionRenderer)}}});
mI.prototype.dataChanged=mI.prototype.dataChanged;mI.prototype.dismissibleItemOnRequestSent=mI.prototype.dismissibleItemOnRequestSent;mI.prototype.dismissibleItemOnYtServiceRequestSent=mI.prototype.dismissibleItemOnYtServiceRequestSent;_.G([_.y(),_.q("design:type",Object)],mI.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],mI.prototype,"isSearch",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],mI.prototype,"isDismissed",void 0);
_.G([_.y(),_.q("design:type",Object)],mI.prototype,"dismissedRenderer",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],mI.prototype,"isRichGrid",void 0);_.G([_.a("data.layout"),_.q("design:type",Object),_.q("design:paramtypes",[])],mI.prototype,"useSquareAspectRatio",null);_.G([_.a("data","dismissedRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],mI.prototype,"showCard",null);
_.G([_.a("data","dismissedRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],mI.prototype,"showDismissed",null);_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],mI.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.G([_.Gl("yt-service-request-sent-button-renderer"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],mI.prototype,"dismissibleItemOnRequestSent",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mI.prototype,"dataChanged",null);_.G([_.b0({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],mI);
_.e(mI,"ytd-mini-game-card-view-model",function(){if(O0H!==void 0)return O0H;var H=document.createElement("template");_.E(H,'\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<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return O0H=H},{mode:2});var pkB;var LsB;var gU=function(){return _.$A.apply(this,arguments)||this};
_.R(gU,_.$A);gU.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
gU.prototype.getContinuationUrl=function(H){var U={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(U.itct=this.data.clickTrackingParams);return _.kZ(H,U)};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],gU.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],gU.prototype,"data",void 0);_.G([_.b0({is:"yt-reload-continuation",noInjection:!0})],gU);var Riw;var EqB;var aj=function(){var H=_.B.apply(this,arguments)||this;H.notificationData={};return H};
_.R(aj,_.B);_.X=aj.prototype;_.X.isMenuExpanded=function(H){return H&&H.length<=1?"undefined":"false"};
_.X.dataChanged_=function(){this.selected=void 0;var H=this.computeSelectedIndex_(this.data);H>=0&&(this.selected=H);H=this.data&&this.data.length>1;_.B4(this.hostElement,"has-items",H);_.c4(this.hostElement).querySelector("#label").tabIndex=H?0:-1};
_.X.onDropdownOpen=function(){var H=_.XK();if(this.parentTrackingParams&&this.data){var U=_.IS(this.parentTrackingParams);this.data.forEach(function(A){H&&U&&A.trackingParams&&(A=_.IS(A.trackingParams),_.ou(H,U,A),_.sn(H,[A]))})}else this.parentTrackingParams||_.Na(new _.bD("No parent tracking params passed in for yt-dropdown-menu."))};
_.X.hasNotification=function(H){var U;if(H.targetId&&((U=this.notificationData)==null?0:U.targetId)){var A;return H.targetId===((A=this.notificationData)==null?void 0:A.targetId)}};
_.X.computeSelectedIndex_=function(H){if(H)for(var U=0,A=H.length;U<A;U++)if(H[U].selected)return U;return-1};
_.X.computeLabel_=function(H){return this.data&&H!=void 0?this.data[H].title:""};
_.X.computeShowIcon_=function(H,U){return!U&&!!H};
_.X.computeVerticalOffset_=function(H){return H?36:0};
_.X.computeEndpoint_=function(H){return H.endpoint||H.navigationEndpoint};
_.X.onLabelClick_=function(H){this.data&&this.data.length<=1?H.stopPropagation():this.menuExpanded="true"};
_.X.onIronActivate_=function(H){H=H.detail.item;var U=_.c4(this.hostElement).querySelector("#repeat").itemForElement(H);if(U&&U.trackingParams){var A=_.XK(),M=_.IS(U.trackingParams);A&&_.NY(A,M)}if(U&&U.serviceEndpoint)_.S("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(U.serviceEndpoint):_.rs(this.hostElement,[U.serviceEndpoint]),_.cg(this.hostElement,"yt-playlist-reloading");else a:{if((U=H.querySelector("yt-supported-renderers"))&&
(U=U.rendererElement)&&U.is=="yt-reload-continuation"){U.trigger();break a}(H=H.querySelector("yt-reload-continuation"))&&H.trigger()}};
_.X.onTap_=function(H){H.preventDefault()};
_.X.onItemTap_=function(H){this.ytEndpointBehavior.onEndpointTap_(H)};
_.X.onLinkFocus_=function(H){try{var U=H.target}catch(M){}if(U){var A=U.querySelector("tp-yt-paper-item");A&&_.F8(this,"focus",function(){A.focus()})}};
_.X.onMenuClose_=function(){this.menuExpanded="false"};
_.X.isLabelIconActive_=function(H){return H==="true"};
_.X.computeHasSubtitle_=function(H){return!!H};
_.X.computeHrefForItem_=function(H){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(H))};
_.X.updateSelectedFromBinding=function(H){this.selected=H.detail.value};
_.D5.Object.defineProperties(aj.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
aj.prototype.onMenuClose_=aj.prototype.onMenuClose_;aj.prototype.onTap_=aj.prototype.onTap_;aj.prototype.onIronActivate_=aj.prototype.onIronActivate_;aj.prototype.onDropdownOpen=aj.prototype.onDropdownOpen;aj.prototype.dataChanged_=aj.prototype.dataChanged_;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],aj.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.D1.YtEndpointBehavior),_.q("design:type",Object)],aj.prototype,"ytEndpointBehavior",void 0);
_.G([_.y(),_.q("design:type",Array)],aj.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],aj.prototype,"parentTrackingParams",void 0);_.G([_.y(),_.q("design:type",Object)],aj.prototype,"selected",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],aj.prototype,"useLabel",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],aj.prototype,"useComputedAriaLabel",void 0);_.G([_.y(),_.q("design:type",String)],aj.prototype,"icon",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],aj.prototype,"iconLabel",void 0);_.G([_.y(),_.q("design:type",String)],aj.prototype,"ariaLabel",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],aj.prototype,"disabled",void 0);_.G([_.y({computed:"isMenuExpanded(data)"}),_.q("design:type",String)],aj.prototype,"menuExpanded",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],aj.prototype,"closeOnActivate",void 0);
_.G([_.y({reflectToAttribute:!0,value:_.S("web_modern_buttons")}),_.q("design:type",Boolean)],aj.prototype,"modernButtons",void 0);_.G([_.y(),_.q("design:type",Object)],aj.prototype,"notificationData",void 0);_.G([_.a("ariaLabel, selected"),_.y(),_.q("design:type",String),_.q("design:paramtypes",[])],aj.prototype,"computedAriaLabel",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aj.prototype,"dataChanged_",null);
_.G([_.Gl("paper-dropdown-open"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],aj.prototype,"onDropdownOpen",null);_.G([_.Gl("iron-activate"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],aj.prototype,"onIronActivate_",null);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],aj.prototype,"onTap_",null);
_.G([_.Gl("iron-overlay-closed"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],aj.prototype,"onMenuClose_",null);_.G([_.b0({is:"yt-dropdown-menu",disableElementRegistration:!0})],aj);
_.e(aj,"yt-dropdown-menu",function(){if(EqB===void 0){var H=document.createElement("template");_.E(H,'\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$="[[computedAriaLabel]]" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Riw===void 0&&(Riw=document.createElement("template"));var M=Riw;A.call(U,M.content.cloneNode(!0),H.content.firstChild);EqB=H}H=EqB;return H},{mode:2});var xN=function(){var H=_.B.apply(this,arguments)||this;H.hasNotification=!1;return H};
_.R(xN,_.B);xN.prototype.computeId=function(H){return H};
xN.prototype.computeHorizontalAlign=function(H){return H?"right":"left"};
xN.prototype.computeAccessibilityLabel=function(H){var U,A;return((U=H.accessibility)==null?void 0:(A=U.accessibilityData)==null?void 0:A.label)||null};
xN.prototype.notificationDataChanged=function(){var H;this.hasNotification=!!this.notificationData&&!((H=this.data)==null?0:H.icon)};
xN.prototype.notificationDataChanged=xN.prototype.notificationDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.OY.YtLiveChatTooltipTargetingBehavior),_.q("design:type",Object)],xN.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],xN.prototype,"data",void 0);_.G([_.y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.q("design:type",String)],xN.prototype,"id",void 0);
_.G([_.y({value:!1}),_.q("design:type",Boolean)],xN.prototype,"isRightAligned",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],xN.prototype,"disabled",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],xN.prototype,"closeOnActivate",void 0);_.G([_.y(),_.q("design:type",Object)],xN.prototype,"notificationData",void 0);_.G([_.y(),_.q("design:type",Object)],xN.prototype,"hasNotification",void 0);
_.G([_.y({value:!1}),_.q("design:type",Boolean)],xN.prototype,"useComputedAriaLabel",void 0);_.G([_.Ya("notificationData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xN.prototype,"notificationDataChanged",null);_.G([_.b0({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],xN);
_.e(xN,"yt-sort-filter-sub-menu-renderer",function(){if(LsB===void 0){var H=document.createElement("template");_.E(H,'\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-computed-aria-label="[[useComputedAriaLabel]]" 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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;pkB===void 0&&(pkB=document.createElement("template"));var M=pkB;A.call(U,M.content.cloneNode(!0),H.content.firstChild);LsB=H}H=LsB;return H},{mode:2});var mtn=_.r(function(H){var U=H.data;var A=_.c$(function(){var w=U().onTap;(w=_.p(w,_.X1))&&_.lx().resolve(_.YV).resolveCommand(w);return!1}),M=function(){return{sources:[{url:U().thumbnailUrl,
width:120,height:90}]}},W=function(){return U().rating&&U().ratingA11yLabel&&U().reviewsCount&&U().reviewsCountA11yLabel};
return _.Z("place-data-view-model",null,_.Z(_.K,{cond:function(){return U().placeName&&U().placeCategory},
then:function(){return _.Z("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":A},_.Z(_.nG,{data:M,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.Z(_.xy,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return U().onTap}},_.Z("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return U().placeName}},function(){return U().placeName})),_.Z("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.Z(_.K,{cond:W,
then:function(){return _.Z("div",{class:_.CG("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.Z("span",{class:"score",title:function(){return U().ratingA11yLabel}},function(){return U().rating}),_.Z("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.Z(_.er,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.Z("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return U().reviewsCountA11yLabel}},function(){return U().reviewsCount}))},
else:function(){return _.Z("div",{class:_.CG("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.Z("div",{class:_.CG("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.Z("span",{class:"category",
title:function(){return U().placeCategory}},function(){return U().placeCategory}))))}}))},"kb");
mtn.idomCompat=!0;_.LG(mtn,"place-data-view-model",{props:{data:_.sY}});var gqr=new _.g3("INLINE_PLAYBACK_HOOK_TOKEN");var aF2=Ho({sharedUi:MBz});_.fl=U3(aF2)(aF2.sharedUi,{animatedThumbnailEnabledSelector:function(H){return H.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(H){return H.inlinePreviewEnabled},
currentPageTypeSelector:function(H){return H.currentPageType},
currentPageSubTypeSelector:function(H){return H.currentPageSubType},
persistentPanelVisibleSelector:function(H){return H.persistentPanelVisible}});var xtg=function(H){this.setActiveSlideIndex=H;this.jobIds=[];this.isSlideshowPlaying=!1},tay=function(H,U){H.isSlideshowPlaying||(H.isSlideshowPlaying=!0,ziy(H),Ci2(H,U,0))},ziy=function(H){_.av(_.Fl,function(){H.setActiveSlideIndex(0)},1)},Ci2=function(H,U,A){H.jobIds.push(_.av(_.Fl,function(){var M=A<U-1?A+1:0;
H.setActiveSlideIndex(M);Ci2(H,U,M)},1800))};var c4w,Btp;c4w=new _.g3("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.y4K=new _.g3("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");Btp=new _.g3("COMMON_MARK_VIEW_MODEL_TOKEN");var r4K=new _.g3("IMAGE_ON_LOAD_HANDLER_TOKEN");var eik=_.r(function(H){return _.Z("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.Z(_.K,{cond:function(){var U;return(U=H.data())==null?void 0:U.thumbnail},
then:function(U){return _.Z(_.nG,{data:U,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"lb");_.Dty=_.r(function(H){var U=H.data;var A=H.lockupExperiments;H={};return _.Z("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.Z("div",{class:_.CG("ytThumbnailOverlayButtonViewModelButton",(H.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var M;return A&&((M=A())==null?void 0:M.useLegacySizedIconButton)},H))},_.Z(_.YY,{data:function(){return U().overlayButton}},{buttonViewModel:function(M){return _.Z(_.yJ,{data:M.data,
buttonOverrides:function(){var W;return A&&((W=A())==null?0:W.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"mb");
_.Dty.idomCompat=!0;var $tg=_.r(function(H){return _.Z("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.c$(function(U){U.preventDefault();return!1})},_.Z(_.YY,{data:function(){return H.data().buttons}},{toggleButtonViewModel:function(U){return _.Z("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.Z(_.MI,{data:U.data}))}}))},"nb");
$tg.idomCompat=!0;var lFh=_.r(function(H){var U=function(){var A;return((A=_.p(H.data().rendererContext,_.Tn))==null?void 0:A.label)||""};
return _.Z("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.Z(_.K,{cond:function(){return H.data().image},
then:function(){return _.Z("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.Z(_.nG,{data:function(){return H.data().image},
alt:U}))}}),_.Z(_.K,{cond:function(){return H.data().text},
then:function(){return _.Z("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return H.data().text})}}))},"ob");var G5B=_.fl.animatedThumbnailEnabledSelector,zt=_.r(function(H){var U=[],A=function(){var n,N;return _.YVV((n=H.width)==null?void 0:n.call(H),(N=H.height)==null?void 0:N.call(H))},M=_.lx().resolve(_.$V(r4K)),W=_.nA("yt-thumbnail-view-model",function(){U.push("elRef.value set");
var n;(n=H.playbackRef)==null||n.call(H,{thumbnailElRef:W,thumbnail:H.data().image,thumbnailOverlays:H.data().overlays,thumbnailSize:A()})});
_.LA(function(){U.push("onInit");_.m4(function(){U.push("onCleanup")})});
var w=_.Gk(G5B),d=function(){var n,N;return(N=(n=H.aspectRatio)==null?void 0:n.call(H))!=null?N:0},O=function(){return(H.data().image?_.u0h(H.data().image):d())<=1&&d()===0},f=function(){return O()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},J=function(){W.value||_.Na(new _.bD("Thumbnail elRef.value is null",U.join("\n")));
M&&W.value&&M(W.value)},F=function(){var n,N;
return((n=H.hovered)==null?void 0:n.call(H))&&A()!=="large"&&((N=H.data().overlays)==null?void 0:N.some(function(L){return _.p(L,c1y)}))},P={};
return _.Z("yt-thumbnail-view-model",{class:_.CG("ytThumbnailViewModelHost",H.className,function(){return Lxr(d())},function(){var n,N;
a:{var L=A(),m=(n=H.disableRounding)==null?void 0:n.call(H);n=(N=H.isClip)==null?void 0:N.call(H);if(!m&&!n)switch(L){case "large":N="ytThumbnailViewModelLarge";break a;case "small":N="ytThumbnailViewModelSmall";break a;default:N="ytThumbnailViewModelMedium";break a}N=void 0}return N},(P.ytThumbnailViewModelCinematic=O,P)),
style:_.rA({"background-color":function(){var n,N=O()?(n=H.data().backgroundColor)==null?void 0:n.lightTheme:void 0;return N?dn(N,"1"):void 0}}),
el:W},_.Z(_.K,{cond:O,then:function(){return _.Z("div",{class:"ytThumbnailViewModelBlurredImage"},_.Z(_.nG,{data:function(){return H.data().image},
alt:"",contentMode:f,targetWidth:H.width,onload:J}))}}),_.Z("div",{class:"ytThumbnailViewModelImage"},_.Z(_.nG,{data:function(){return H.data().image},
alt:"",contentMode:f,targetWidth:H.width,onload:J}),null),_.Z(_.YY,{data:function(){return F()?void 0:H.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:Ywp,thumbnailOverlayBadgeViewModel:function(n){return _.Z(_.qwk,{data:n.data,thumbnailSize:A,isClip:H.isClip})},
thumbnailBottomOverlayViewModel:function(n){return _.Z(Dmy,{data:n.data,thumbnailSize:A,isClip:H.isClip})},
thumbnailOverlayFullViewModel:lFh,thumbnailOverlayButtonViewModel:function(n){return _.Z(_.Dty,{data:n.data,lockupExperiments:H.lockupExperiments})},
channelDisclosureViewModel:function(n){n=n.data;var N;return _.Z("div",null,(N=_.lx().resolve(_.$V(c4w)))==null?void 0:N({data:n}))}}),_.Z(_.YY,{data:function(){var n;
return((n=H.hovered)==null?0:n.call(H))?H.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(n){return _.Z(bh,{data:n.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:$tg}),_.Z(_.YY,{data:function(){var n;return((n=H.hovered)==null?0:n.call(H))&&w()?H.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:eik}),_.Z(_.K,{cond:H.isClip,then:function(){return _.Z("div",{class:"ytPinkingNsHost"},_.Z("svg",{class:"ytPinkingNsPinkingLeft"},_.Z("defs",null,_.Z("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.Z("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.Z("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.Z("svg",{class:"ytPinkingNsPinkingRight"},_.Z("defs",null,_.Z("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.Z("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.Z("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"pb");
zt.idomCompat={callbacks:{playbackRef:!0}};var YI3=_.r(function(H){var U=_.b(_.iB(-1,void 0,"RW2Ole")),A=U.next().value,M=U.next().value;_.LA(function(){var W=new xtg(M);tay(W,H.data().thumbnails.length);_.m4(function(){if(W.isSlideshowPlaying){W.isSlideshowPlaying=!1;for(var w=W.jobIds,d=0,O=w.length;d<O;d++)_.Fl.cancelJob(w[d]);W.jobIds.length=0}})});
return _.Z("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.Z(_.YY,{data:function(){return H.data().thumbnails}},{thumbnailViewModel:function(W,w){return _.Z("div",{class:function(){var d=!H.data().primaryThumbnail,O=w(),f=A(),J=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
d&&O===0&&J.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");O<=f&&J.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return J.join(" ")}},_.Z(zt,{data:W.data,
disableRounding:H.disableRounding}))}}))},"qb");
YI3.idomCompat=!0;var R9h=new _.g3("DWELL_DETECTOR_REGISTRY_TOKEN");var him=_.r(function(H){var U=EWF(H.triggeringElement),A=function(){return!!H.data().primaryThumbnail},M=function(){var w,d=(w=H.data())==null?void 0:w.maxHeight,O;
w=(O=H.maxHeight)==null?void 0:O.call(H);return d!=null&&w!=null?Math.min(d,w):w!=null?w:d},W=function(){var w=M();
if(w){var d;if(A()&&(d=H.includeStackHeight)!=null&&d.call(H)){var O;d=((O=H.doubleStack)==null?0:O.call(H))?8:4}else d=0;w=w-d-1;if(!(w<0)){O=Math;d=O.ceil;var f,J;var F=GAV((J=(f=H.aspectRatio)==null?void 0:f.call(H))!=null?J:0);return d.call(O,w*F)}}};
return _.Z("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.rA({height:function(){return M()?M()+"px":void 0},
width:function(){return W()?W()+"px":void 0}})},_.Z(qIz,{stackEnabled:A,
thumbnailSize:function(){var w,d;return _.YVV((w=H.width)==null?void 0:w.call(H),(d=H.height)==null?void 0:d.call(H))},
doubleStack:H.doubleStack,stackColor:function(){return H.data().stackColor},
includeStackHeight:H.includeStackHeight},_.Z(_.YY,{data:function(){return H.data().primaryThumbnail}},{thumbnailViewModel:function(w){var d={};
return _.Z(zt,{data:w.data,width:H.width,height:H.height,aspectRatio:H.aspectRatio,disableRounding:H.disableRounding,className:_.CG((d.ytCollectionThumbnailViewModelHostHasStacks=A,d)),hovered:H.hovered,playbackRef:H.playbackRef})}}),_.Z(_.K,{cond:function(){var w;
return U()&&((w=H.data().thumbnails)==null?void 0:w.length)},
then:function(){return _.Z("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.Z(YI3,{data:H.data,disableRounding:function(){return!A()}}))}})))},"rb");
him.idomCompat={callbacks:{playbackRef:!0}};
var qIz=_.r(function(H){var U=H.children;var A=H.stackEnabled;var M=H.thumbnailSize;var W=H.doubleStack;var w=H.stackColor;var d=H.includeStackHeight;var O,f=(O=_.lx().resolve(_.$V(_.qF)))==null?void 0:O();return _.Z(_.K,{cond:A,then:function(){return _.Z(Kxw,{data:function(){var J,F;return{experimentEnabled:!0,thumbnailSize:M(),doubleStack:W==null?void 0:W(),color:f?w==null?void 0:(J=w())==null?void 0:J.darkTheme:w==null?void 0:(F=w())==null?void 0:F.lightTheme,enableResponsiveMode:!1,includeStackHeight:d==
null?void 0:d()}}},U)},
else:function(){return U}})},"sb");var k5r=new _.g3("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");_.vqk=_.r(function(H){var U=H.data;H=_.nA("ad-card-badge-view-model");return _.Z("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:H},_.Z(_.K,{cond:function(){return U().imageBadge},
then:function(A){return _.Z(_.nG,{data:A,alt:""})}}))},"tb");var t6;_.Cj={calledOnce:!0,state:"visible"};t6={calledOnce:!0,state:"hidden"};_.c6=_.r(function(H){var U=_.Ec(H,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});H=Object.assign({},U);var A=U.data;U=U.customCommandResolver;var M=(delete H.data,delete H.customCommandResolver,H);H=_.eD({visibilityCallback:function(O,f){var J,F=(J=A().interaction)==null?void 0:J.onFirstVisible;O&&(F&&_.uj(F),M.setOnErrorHandler()&&mmN(f))},
showOption:_.Cj});U=_.d7(function(){return A().interaction},U,function(){var O;
return(O=M.listenToTapEvent)==null?void 0:O.call(M)});
var W=_.b(_.iB(!1,void 0,"wAC0Lc")),w=W.next().value,d=W.next().value;W=_.c$(function(O){var f;((f=M.setTouchEndHandler)==null?0:f.call(M))&&!w()&&(O.currentTarget.click(),d(!0),setTimeout(function(){d(!1)},100));
return!1});
return _.Z("ad-image-view-model",{class:function(){var O,f=[((O=A().interaction)==null?0:O.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],J;((J=M.isGridViewEnabled)==null?0:J.call(M))&&f.push("ytwAdImageViewModelHostInGridView");return f.join(" ")},
el:_.sB(H,U),"on:touchend":W},_.Z("div",{class:"ytwAdImageViewModelHostImageContainer"},_.Z(_.nG,{data:function(){var O;return{sources:A().imageSources,contentMode:(O=A().imageProperties)==null?void 0:O.contentMode}},
alt:function(){var O,f;return((O=A().interaction)==null?void 0:(f=O.accessibility)==null?void 0:f.label)||""},
targetHeight:M.targetHeight,targetWidth:M.targetWidth,preserveHeight:M.preserveHeight,preserveWidth:M.preserveWidth,useWidth:M.useWidth,style:function(){var O,f;return"vertical-align: bottom;"+(((O=A().background)==null?0:O.color)?"background-color:"+_.wn((f=A().background)==null?void 0:f.color)+";":"")},
className:function(){return M.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var O,f;return(f=(O=M.setDraggable)==null?void 0:O.call(M))!=null?f:void 0}})))},"vb");var TtH=_.r(function(H){var U=H.data;var A=H.customCommandResolver;return _.Z("carousel-ad-card-image-view-model",{class:function(){var M;return((M=U().interaction)==null?0:M.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.sB(_.eD({visibilityCallback:function(M){var W,w=(W=U().interaction)==null?void 0:W.onFirstVisible;M&&w&&_.uj(w)},
showOption:_.Cj}),_.d7(function(){return U().interaction},A)),
"aria-label":function(){var M,W;return(M=U().interaction)==null?void 0:(W=M.accessibility)==null?void 0:W.label}},_.Z(_.YY,{data:function(){return U().adImage}},{adImageViewModel:function(M){return _.Z(_.c6,{data:M.data,
customCommandResolver:A})}}),_.Z("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.Z(_.YY,{data:function(){return U().badge}},{adCardBadgeViewModel:_.vqk})),_.Z(_.zm,{model:{color:4}}))},"wb");var jK3=_.r(function(H){var U=_.b(_.iB(0,void 0,"JJ0QQc")),A=U.next().value;U.next();var M=U.next().value,W=_.b(_.iB(!1,void 0,"f6YICe"));U=W.next().value;var w=W.next().value,d;_.m4(function(){clearTimeout(d)});
W=_.c$(function(){var J;((J=H.animate)==null?0:J.call(H))?(w(!0),d=setTimeout(function(){w(!1);O()},200)):O();
return!1});
var O=function(){M(function(J){return(J+H.numShownItems())%H.data().length})},f={};
return _.Z("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.Z("div",{class:_.CG("ytwHorizontalCarouselCarouselWrapper")},_.Z("div",{class:_.CG("ytwHorizontalCarouselCarouselInnerWrapper",(f.ytwHorizontalCarouselAnimating=U,f))},_.Z(_.FQ,{each:H.data,keyBy:"INDEX"},function(J,F){return _.Z("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.rA({"flex-basis":function(){return"calc((100% - (8px * "+(H.numShownItems()-1)+")) / "+H.numShownItems()+")"},
order:function(){var P=F-A();P<0&&(P+=H.data().length);return P}})},H.children(J,F))}))),_.Z("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":W},H.nextButton()))},"xb");var Van=_.r(function(H){var U=H.data;var A=H.customCommandResolver;var M=H.expansive;var W=H.isLockupAttachment;return _.Z("carousel-ad-card-collection-view-model",{el:_.sB(_.eD({visibilityCallback:function(w){var d,O=(d=U().interaction)==null?void 0:d.onFirstVisible;w&&O&&_.uj(O)},
showOption:_.Cj})),class:"ytwCarouselAdCardCollectionViewModelHost"},_.Z(_.K,{cond:function(){return W==null?void 0:W()},
then:function(){return _.Z(IFz,{data:U,customCommandResolver:A})},
else:function(){return _.Z(QKn,{data:U,customCommandResolver:A,expansive:M})}}))},"yb"),IFz=_.r(function(H){var U=H.data;
var A=H.customCommandResolver;return _.Z("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarousel",tabindex:0},_.Z(_.YY,{data:function(){return U().carouselAdCards||[]}},{carouselAdCardImageViewModel:function(M){return _.Z("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarouselItem"},_.Z(TtH,{data:M.data,
customCommandResolver:A}))}}))},"zb"),QKn=_.r(function(H){var U=H.data;
var A=H.customCommandResolver;var M=H.expansive;return _.Z(jK3,{data:function(){var W;return((W=U())==null?void 0:W.carouselAdCards)||[]},
nextButton:function(){return _.Z(_.YY,{data:function(){return U().nextButton}},{buttonViewModel:function(W){var w=W.data;
return _.Z(_.yJ,{data:function(){return(M==null?0:M())?Object.assign({},w(),{style:"mono"}):w()},
className:_.S("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(W){return _.Z(_.YY,{data:W},{carouselAdCardImageViewModel:function(w){return _.Z(TtH,{data:w.data,customCommandResolver:A})}})})},"Ab");_.y2=_.r(function(H){var U=H.data;var A=H.customCommandResolver;var M=H.className;var W=H.delayedClassName;var w=H.animationEntityKey;var d=H.isCompactWidth;var O=H.isContentWidth;H=_.b(_.iB(!1,void 0,"pC3tUb"));var f=H.next().value,J=H.next().value,F=_.RS(w,""),P=_.$Y(RJ_,F),n=function(){var o_,PF;return(PF=(o_=P())==null?void 0:o_.value)!=null?PF:!1},N=function(){_.Le(_.hs("booleanEntity",F(),{key:F(),
value:!0}));D=void 0};
w=_.b(_.md(n));var L=w.next().value,m=w.next().value;w=_.b(_.md(n));var z=w.next().value,c=w.next().value;w=_.b(_.md(function(){var o_;return n()?(o_=U().styleTransitionConfig)==null?void 0:o_.destinationStyle:void 0}));
var C=w.next().value,v=w.next().value,Y=function(){var o_=Object.assign({},U(),C()&&{style:C()});var PF,BF,kc=o_.label,G8=(PF=o_.interaction)==null?void 0:(BF=PF.accessibility)==null?void 0:BF.label;PF=o_.iconImage?o_.label&&o_.label.content?o_.iconLeading?"leading":"trailing":"icon-only":void 0;o_={formattedButtonText:kc,accessibilityLabel:G8,style:z9E(o_.style),type:CqE(o_.style),state:"active",size:xmc(o_.size),iconPosition:PF,disabled:!1,aTagConfig:ai4(o_,A)};_.S("enable_desktop_vdcbg_components")&&
(o_.focused=f());return o_},D;
w=_.eD({visibilityCallback:function(o_){var PF,BF=(PF=U().interaction)==null?void 0:PF.onFirstVisible;o_&&BF&&_.uj(BF)},
showOption:_.Cj});var h=function(){return Q87(Y(),!!U().iconImage)};
H={};var T={};M=_.CG(function(){return"ytwAdButtonViewModelHost"},function(){return U().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var o_=!!U().delayedAppearanceConfig,PF=L();
return o_?PF?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var o_=!!U().delayedAppearanceConfig,PF=z();
return o_?PF?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!U().delayedAppearanceConfig||L()?W==null?void 0:W():""},(H.ytwAdButtonViewModelHostCompactWidth=function(){return d==null?void 0:d()},H),(T.ytwAdButtonViewModelHostContentWidth=function(){return O==null?void 0:O()},T),M!=null?M:"");
var WF=function(){var o_,PF=(o_=U().delayedAppearanceConfig)==null?void 0:o_.delayedInvisibleSeconds;PF&&(D=_.TB(_.Fl,function(){m(!0);dK()},PF*1E3))},dK=function(){var o_,PF=(o_=U().delayedAppearanceConfig)==null?void 0:o_.delayedVisibleSeconds;
PF&&(D=_.TB(_.Fl,function(){c(!0);SN()},PF*1E3))},SN=function(){var o_,PF=(o_=U().styleTransitionConfig)==null?void 0:o_.styleTransitionSeconds,BF,kc=(BF=U().styleTransitionConfig)==null?void 0:BF.destinationStyle;
PF&&kc?D=_.TB(_.Fl,function(){v(kc);N()},PF*1E3):N()};
_.LA(function(){WF()});
_.m4(function(){D&&_.Fl.cancelJob(D)});
return _.Z("ad-button-view-model",{"on:focusin":_.c$(_.S("enable_desktop_vdcbg_components")?function(){var o_=_.lx().resolve(_.$V(_.af));o_&&J(o_.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.c$(_.S("enable_desktop_vdcbg_components")?function(){J(!1);return!1}:void 0),
class:M,el:_.sB(w),style:_.rA({"transition-duration":"0.3s"})},_.Z(_.K,{cond:Y,then:function(){return _.Z(_.cb,{data:Y,icon:function(){return _.Z(_.K,{cond:function(){return U().iconImage},
then:function(o_){return _.Z(_.nG,{data:o_,alt:"",targetWidth:h,targetHeight:h,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Bb");var HSy=_.r(function(H){var U=H.data;H=function(){return U().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var A=_.eD({visibilityCallback:function(w){var d,O=(d=U().interaction)==null?void 0:d.onFirstVisible;w&&O&&_.uj(O)},
showOption:_.Cj}),M={},W={};return _.Z("ad-button-group-view-model",{class:_.CG("ytwAdButtonGroupViewModelHost",(M.ytwAdButtonGroupViewModelHostCompactWidth=H,M)),el:_.sB(A)},_.Z("div",{class:_.CG("ytwAdButtonGroupViewModelHostSecondaryButton",(W.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=H,W))},_.Z(_.YY,{data:function(){return U().secondaryAdButton}},{adButtonViewModel:function(w){return _.Z(_.y2,{data:w.data})}})),_.Z("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.Z(_.YY,
{data:function(){return U().primaryAdButton}},{adButtonViewModel:function(w){return _.Z(_.y2,{data:w.data})}})))},"Cb");var Uw2=_.r(function(H){var U=function(){var A;return((A=H.data())==null?void 0:A.answers)||[]};
return _.Z("yt-survey-icons",{class:"ytSurveyIconsHost"},_.Z("div",{class:"ytSurveyIconsHeader"},_.Z("div",{class:"ytSurveyIconsTitle"},function(){var A;return(A=H.data())==null?void 0:A.text}),_.Z("div",null,_.Z(_.cb,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var A;(A=H.onDismiss)==null||A.call(H)}}},
iconName:"DISMISSAL"}))),_.Z("div",null,_.Z("div",{class:"ytSurveyIconsAnswers"},_.Z(_.FQ,{each:function(){return U()},
keyBy:"INDEX"},function(A,M){return _.Z("div",null,_.Z(_.cb,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var W;(W=H.onSelect)==null||W.call(H,A(),M)}}},
icon:function(){return _.Z(_.er,{icon:function(){var W,w;return(W=A())==null?void 0:(w=W.icon)==null?void 0:w.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.Z("div",{class:"ytSurveyIconsAnswersText"},_.Z("div",null,function(){return U().length?U()[0].text:""}),_.Z("div",null,function(){return U().length?U()[U().length-1].text:""}))))},"Db");var AXn=_.r(function(H){var U=_.sB(_.Wq(function(){var f;return(f=H.data())==null?void 0:f.rendererContext},void 0,void 0,void 0,!0)),A=_.b(_.iB(!1,void 0,"GW0yjf")),M=A.next().value,W=A.next().value,w=_.$Y(LQc,function(){var f;
return(f=H.data().keys)==null?void 0:f.surveyEntityKey}),d=_.$Y(Rd8,function(){var f;
return(f=H.data().keys)==null?void 0:f.surveyStateEntityKey});
_.C5("ytd-slimline-survey-show-action",function(){W(!1)});
var O=function(){var f,J;var F=(f=d())==null?void 0:(J=f.questionStack)==null?void 0:J[0];if(F!==void 0){var P,n;return(P=w())==null?void 0:(n=P.questions)==null?void 0:n[F]}};
A={};return _.Z("yt-slimline-survey-view-model",{el:U,class:_.CG("ytSlimlineSurveyViewModelHost",(A.ytSlimlineSurveyViewModelCollapsed=function(){return M()},A))},_.Z("div",{class:"ytSlimlineSurveyViewModelContainer"},_.Z(_.K,{cond:function(){var f;
return((f=O())==null?void 0:f.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.Z(Uw2,{data:function(){return O()},
onSelect:function(f,J){var F,P;return _.u(function(n){W(!0);if(P=(F=H.data())==null?void 0:F.onSelectRating)_.uj(P),_.Le(oTh(J));_.DO(n)})},
onDismiss:function(){W(!0);var f;var J=(f=w())==null?void 0:f.dismissalFeedbackToken;f=J?{feedbackEndpoint:{feedbackToken:J}}:void 0;f&&_.bj(f,{form:{element:U.value}})}})}})))},"Eb");var MFn=_.r(function(H){return _.Z("yt-table-view-model",{class:_.CG("ytTableViewModelHost",H.className)},_.Z(_.FQ,{each:function(){return H.data().rows||[]}},function(U){var A={};
return _.Z("div",{class:_.CG("ytTableViewModelRow",(A.ytTableViewModelRowBottomBorder=function(){return H.data().showSeparators},A))},_.Z(_.FQ,{each:function(){return(U==null?void 0:U.cells)||[]}},function(M,W){var w,d={};
return _.Z("span",{class:_.CG((d.ytTableViewModelRowLabel=function(){return W()===0&&H.data().showHorizontalHeaders},d.ytTableViewModelCell=function(){return!H.data().showHorizontalHeaders||W()>0},d))},(w=M.text)==null?void 0:w.content)}))}))},"Fb");var WWm=_.r(function(H){return _.Z("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.Z(_.YY,{data:function(){var U;return(U=H.data())==null?void 0:U.attachments}},{flexibleActionsViewModel:function(U){return _.Z("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Z(_.uf,{data:U.data,
layout:function(){var A;return((A=H.lockupStyle())==null?void 0:A.arrangement)===1?0:1},
justifyContentOverride:function(){var A;return((A=H.lockupStyle())==null?void 0:A.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(U){return _.Z("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Z(AXn,{data:U.data}))},
expandableMetadataViewModel:function(U){U=U.data;var A;return _.Z("div",{class:_.CG("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(A=_.lx().resolve(_.$V(k5r)))==null?void 0:A({data:U}))},
adButtonGroupViewModel:function(U){return _.Z("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Z(HSy,{data:U.data}))},
adButtonViewModel:function(U){return _.Z("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Z(_.y2,{data:U.data,isCompactWidth:!0}))},
tableViewModel:function(U){return _.Z("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Z(MFn,{data:U.data}))},
aiCompanionAttachmentViewModel:function(U){U=U.data;var A;return _.Z("div",{class:"ytLockupAttachmentsViewModelAttachment"},(A=_.lx().resolve(_.$V(_.y4K)))==null?void 0:A({data:U}))},
carouselAdCardCollectionViewModel:function(U){return _.Z("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Z(Van,{data:U.data,isLockupAttachment:!0}))}}))},"Gb");var e9h=_.hr("rich_grid_min_item_width",310),Bdh=_.hr("rich_grid_max_item_width",500);var vWc,kwM;vWc=16/9;kwM=2/3;_.B6=_.r(function(H){var U=H.data;var A=H.className;var M=H.imageSizeConfig;var W=H.notifyOnLoaded;var w=function(){return U().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},d=function(){var n;
return _.MG((n=U())==null?void 0:n.rendererContext)};
H={};H=(H.ytContentPreviewImageViewModelHost=!0,H.ytContentPreviewImageViewModelCircleImage=function(){return w()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},H.ytContentPreviewImageViewModelTappable=function(){return d()},H);
var O=function(){var n,N;return(N=(n=_.p(U().rendererContext,_.Tn))==null?void 0:n.label)!=null?N:""},f=function(){return jI0(U())},J=function(){var n=Td0(w(),U().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",M==null?void 0:M(),Ii8(f()),U().layoutWidth,U().layoutHeight),N=Object.assign({},n);
n.width&&(N.width=Math.round(n.width));n.height&&(N.height=Math.round(n.height));n.maxWidth&&(N.maxWidth=Math.round(n.maxWidth));n.maxHeight&&(N.maxHeight=Math.round(n.maxHeight));return N},F=_.Ja(function(){return J().height},void 0,"CxFlJb"),P=_.Ja(function(){return J().width},void 0,"lb8Jhd");
return _.Z("yt-content-preview-image-view-model",{el:_.sB(_.Wq(function(){var n;return(n=U())==null?void 0:n.rendererContext})),
role:function(){return d()?"link":void 0},
tabindex:function(){return d()?0:void 0},
class:_.CG(A,H,function(){var n=w();var N=M==null?void 0:M();n=n==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||n==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||n==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||n==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(N==null?void 0:N.size)!=null&&N.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(N==null?void 0:N.size)!=null&&N.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return n}),
style:function(){var n=J(),N=[];n.width&&N.push("width: "+n.width+"px");n.height&&N.push("height: "+n.height+"px");n.maxWidth&&N.push("max-width: "+n.maxWidth+"px");n.maxHeight&&N.push("max-height: "+n.maxHeight+"px");n.fullWidth&&N.push("width: 100%");return N.join(";")}},_.Z(_.K,{cond:f,
then:function(n){return _.Z(_.nG,{data:n,alt:O,"data-disabled$":function(){return!O()},
notifyOnLoaded:W,targetWidth:P,targetHeight:F,preserveWidth:function(){return!!P()},
preserveHeight:function(){return!!F()}})}}),_.Z(_.YY,{data:function(){var n;
return(n=U())==null?void 0:n.overlays}},{thumbnailHoverOverlayViewModel:bh,
thumbnailOverlayButtonViewModel:_.Dty}))},"Hb");
_.B6.idomCompat=!0;var rU=_.r(function(H){var U=H.data;var A=H.className;var M=H.useSmallLayout;var W=H.useMediumText;var w=H.useHeavyText;var d=function(){return!(W==null||!W())||!(w==null||!w())};
H={};return _.Z("yt-attribution-view-model",{el:_.sB(_.Wq(function(){var O;return(O=U())==null?void 0:O.rendererContext})),
class:_.CG(A,(H.ytAttributionViewModelHost=!0,H.ytAttributionViewModelMediumText=W,H.ytAttributionViewModelHeavyText=w,H))},_.Z(_.K,{cond:function(){return _.MG(U().rendererContext)},
then:function(){return _.Z("button",{class:"ytAttributionViewModelTappable"},_.Z(wfK,{data:U,useSmallLayout:M,badgesShouldInheritTypography:d}))},
else:function(){return _.Z(wfK,{data:U,useSmallLayout:M,badgesShouldInheritTypography:d})}}))},"Ib"),wfK=_.r(function(H){var U=H.data;
var A=H.useSmallLayout;var M=H.badgesShouldInheritTypography;var W=function(){return{size:(A==null?0:A())?16:24}};
return _.Z(_.ve,null,_.Z(_.YY,{data:function(){return U().contentPreviewImage}},{contentPreviewImageViewModel:function(w){return _.Z(_.B6,{data:w.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:W})}}),_.Z(_.YY,{data:function(){return U().badge}},{badgeViewModel:function(w){return _.Z(_.Ed,{data:w.data,
class:"ytAttributionViewModelBadge",modern:!0,inheritTypography:M})}}),_.Z(_.K,{cond:function(){return U().text},
then:function(){return _.Z(_.Pb,{text:function(){return U().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.Z(_.K,{cond:function(){return U().suffix},
then:function(){return _.Z(_.Pb,{text:function(){return U().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Jb");
rU.idomCompat=!0;var Xfw,iSH,bSw,dwk,OSz;Xfw=_.r(function(H){var U=H.delimiter;var A=H.max;var M=H.index;var W=H.isStandalone;return _.Z(_.K,{cond:function(){return A()-1>M()},
then:function(){var w={};return _.Z("span",{class:_.CG("yt-content-metadata-view-model__delimiter",(w["yt-content-metadata-view-model__delimiter--standalone"]=W,w)),"aria-hidden":!0},U)}})},"Kb");
iSH=_.r(function(H){var U=H.metadataPart;var A=H.maxLines;return _.Z(_.Pb,{text:function(){return U().text},
linkInheritColor:!0,className:function(){return QIV(A())},
userInput:!0})},"Lb");
bSw=_.r(function(H){var U=H.metadataPart;var A=H.maxLines;return _.Z(_.K,{cond:function(){return U().tooltip},
then:function(M){return _.Z("span",{title:M,role:"tooltip"},_.Z(iSH,{metadataPart:U,maxLines:A}))},
else:function(){return _.Z(iSH,{metadataPart:U,maxLines:A})}})},"Mb");
dwk=_.r(function(H){var U=H.metadataPart;var A=H.isOverlay;var M=H.useMediumText;var W=H.hideAvatar;var w=function(){return U().maxLines!==void 0?U().maxLines:1};
return _.Z(_.ve,null,_.Z(_.YY,{data:function(){return U().avatarStack}},{avatarStackViewModel:function(d){return _.Z(_.uh,{data:d.data,
isOverlay:A,useMediumText:M,hideAvatar:W})},
badgeViewModel:_.Ed}),_.Z(_.K,{cond:function(){return U().leadingIcon},
then:function(d){return _.Z(_.er,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return d().name},
size:function(){return d().width}})}}),_.Z(_.K,{cond:function(){return U().text},
then:function(){return _.Z(bSw,{metadataPart:U,maxLines:w})}}),_.Z(_.K,{cond:function(){return U().icon},
then:function(d){return _.Z(_.er,{className:"yt-content-metadata-view-model__icon",icon:function(){return d().name},
size:function(){return d().width}})}}))},"Nb");
OSz=_.r(function(H){var U=H.metadataRow;var A=H.isInline;var M=H.delimiter;var W=H.isOverlay;var w=H.useMediumText;var d=H.extensions;var O=function(){var J,F=d==null?void 0:(J=d())==null?void 0:J.lockupMetadata;J=U();var P,n;return!!((F==null?0:(P=F.byline)==null?0:P.hideAvatar)&&((n=_.p(J,E0B))==null?void 0:n.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},f=function(){return U().metadataParts||[]};
H={};return _.Z("div",{class:_.CG("yt-content-metadata-view-model__metadata-row",(H["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=A,H["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var J,F=d==null?void 0:(J=d())==null?void 0:J.lockupMetadata;J=U();var P,n;return!!((F==null?0:(P=F.byline)==null?0:P.addPadding)&&((n=_.p(J,E0B))==null?void 0:n.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},H["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var J;
return!!(d==null?0:(J=d())==null?0:J.lockupMetadata)&&U().badges&&!U().metadataParts},H))},_.Z(_.YY,{data:function(){return U().badges}},{badgeViewModel:function(J){return _.Z("div",{class:"yt-content-metadata-view-model__badge"},_.Z(_.Ed,{data:J.data,
numBadgesInRow:function(){var F,P;return((F=U())==null?void 0:(P=F.badges)==null?void 0:P.length)||0}}))}}),_.Z(_.FQ,{each:f},function(J,F){return _.Z(_.ve,null,_.Z(dwk,{metadataPart:J,
isOverlay:W,useMediumText:w,hideAvatar:O}),_.Z(Xfw,{delimiter:M,max:function(){return f().length},
index:F,isStandalone:!1}))}),_.Z(_.K,{cond:function(){return U().isSpacerRow&&!A()},
then:function(){return _.Z("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Ob");
_.eL=_.r(function(H){H=_.Ec(H,{layout:0,isOverlay:!1});var U=H.data,A=H.layout,M=H.isOverlay,W=H.useMediumText,w=H.extensions,d=function(){return A()===0},O=function(){var J;
return((J=U().metadataRows)==null?void 0:J.filter(function(F){var P,n=w==null?void 0:(P=w())==null?void 0:P.lockupMetadata,N,L;P=!!((n==null?0:(N=n.description)==null?0:N.hideDescription)&&((L=_.p(F,E0B))==null?void 0:L.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var m,z;return!((n==null?0:(m=n.spacer)==null?0:m.hideSpacer)&&((z=_.p(F,E0B))==null?void 0:z.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||P)}))||[]},f={};
return _.Z("yt-content-metadata-view-model",{class:_.CG(H.className,"yt-content-metadata-view-model",(f["yt-content-metadata-view-model--inline"]=d,f["yt-content-metadata-view-model--tappable"]=function(){return _.MG(U().rendererContext)},f["yt-content-metadata-view-model--medium-text"]=W,f)),
el:_.sB(_.Wq(function(){return U().rendererContext}))},_.Z(_.FQ,{each:O},function(J,F){return _.Z(_.ve,null,_.Z(OSz,{metadataRow:J,
isInline:d,delimiter:function(){return U().delimiter},
isOverlay:M,useMediumText:W,extensions:w}),_.Z(_.K,{cond:function(){return d()&&!J.isSpacerRow},
then:function(){return _.Z(Xfw,{delimiter:function(){return U().delimiter},
max:function(){return O().length},
index:F,isStandalone:!0})}}))}))},"Pb");
_.eL.idomCompat=!0;var urh=_.r(function(H){var U=_.lx().resolve(_.$V(_.qF)),A={};return _.Z("yt-lockup-metadata-view-model",{class:_.CG("yt-lockup-metadata-view-model",function(){a:{var M=H.lockupStyle();if(M==null?0:M.isOverlay)M="yt-lockup-metadata-view-model--overlay";else switch(M==null?void 0:M.arrangement){case 1:M="yt-lockup-metadata-view-model--horizontal";break a;default:M="yt-lockup-metadata-view-model--vertical"}}return M},function(){a:{var M=H.lockupStyle();
switch(M==null?void 0:M.titleMaxLines){case 1:M="yt-lockup-metadata-view-model--title-max-lines-1";break a}M=void 0}return M},function(){a:{var M=H.lockupStyle();
if(M==null?0:M.isTiny)M="yt-lockup-metadata-view-model--tiny";else switch(M==null?void 0:M.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":M="yt-lockup-metadata-view-model--compact";break a;default:M="yt-lockup-metadata-view-model--standard"}}return M},(A["yt-lockup-metadata-view-model--overlay"]=function(){var M;
return(M=H.lockupStyle())==null?void 0:M.isOverlay},A["yt-lockup-metadata-view-model--card"]=function(){var M;
return(M=H.lockupStyle())==null?void 0:M.isCard},A["yt-lockup-metadata-view-model--centered"]=function(){var M;
return(M=H.lockupStyle())==null?void 0:M.isCentered},A["yt-lockup-metadata-view-model--typography-bump"]=function(){var M;
return(M=H.lockupStyle())==null?void 0:M.typographyBump},A["yt-lockup-metadata-view-model--legacy-typography"]=function(){var M;
return(M=H.lockupStyle())==null?void 0:M.useLegacyTypography},A["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var M;
return(M=H.lockupStyle())==null?void 0:M.useRichGridLegacyTypography},A))},_.Z(_.YY,{data:function(){return H.data().image}},{avatarStackViewModel:function(M){return _.Z("div",{class:"yt-lockup-metadata-view-model__avatar"},_.Z(_.uh,{data:M.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(M){return _.Z("div",{class:"yt-lockup-metadata-view-model__avatar"},_.Z(_.dU,{data:M.data}))},
decoratedAvatarViewModel:function(M){return _.Z("div",{class:"yt-lockup-metadata-view-model__avatar"},_.Z(_.Od,{data:M.data}))}}),_.Z("div",{class:"yt-lockup-metadata-view-model__text-container"},_.Z("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var M;return(M=H.data().title)==null?void 0:M.content}},_.Z(_.K,{cond:function(){return H.data().title},
then:function(M){return _.Z(_.xy,{command:H.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.rA({color:function(){var W;a:{var w=H.lockupStyle();var d=(W=H.hovered)==null?void 0:W.call(H);W=!(U==null||!U());var O;if((w==null?0:(O=w.onFocusEffect)==null?0:O.textPrimaryColor)&&d&&(w=W?w.onFocusEffect.textPrimaryColor.darkTheme:w.onFocusEffect.textPrimaryColor.lightTheme)){w=OU(w);break a}w=void 0}return w}}),
ariaLabel:H.lockupAccessibilityLabel},_.Z(_.Pb,{text:M,userInput:!0}))}})),_.Z("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.rA({color:function(){var M;a:{var W=H.lockupStyle();var w=(M=H.hovered)==null?void 0:M.call(H);M=!(U==null||!U());var d;if((W==null?0:(d=W.onFocusEffect)==null?0:d.textSecondaryColor)&&w&&(W=M?W.onFocusEffect.textSecondaryColor.darkTheme:W.onFocusEffect.textSecondaryColor.lightTheme)){W=OU(W);break a}W=void 0}return W}})},_.Z(_.YY,{data:function(){return H.data().metadata}},{contentMetadataViewModel:function(M){return _.Z(_.eL,{data:M.data,
layout:function(){var W,w;return(w=(W=H.layout)==null?void 0:W.call(H))!=null?w:1},
useMediumText:function(){var W,w;return((W=H.lockupStyle())==null?void 0:W.typographyBump)||((w=H.lockupStyle())==null?void 0:w.useRichGridLegacyTypography)},
extensions:function(){var W,w,d,O;return{lockupMetadata:{byline:{hideAvatar:((W=H.lockupStyle())==null?void 0:W.arrangement)===0,addPadding:((w=H.lockupStyle())==null?void 0:w.arrangement)===1},description:{hideDescription:!((d=H.lockupStyle())==null||!d.compactMetadata)},spacer:{hideSpacer:!((O=H.lockupStyle())==null||!O.compactMetadata)}}}}})}})),_.Z(_.YY,{data:function(){return H.data().attribution}},{attributionViewModel:function(M){return _.Z("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.Z(rU,{data:M.data,
useSmallLayout:!0}))}})),_.Z("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.Z(_.YY,{data:function(){return H.data().menuButton}},{buttonViewModel:function(M){return _.Z(_.yJ,{data:M.data,
buttonOverrides:function(){var W;return((W=H.lockupStyle())==null?0:W.isOverlay)?{style:"overlay"}:void 0}})}})))},"Qb");
urh.idomCompat=!0;var ZS2=_.r(function(H){var U=_.nA("notification-multi-action-renderer");_.pA(function(){requestAnimationFrame(function(){_.cW(U.value)})});
var A={},M={},W={};return _.Z("notification-multi-action-renderer",{class:_.CG("ytNotificationMultiActionRendererHost",(A.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var w;return(w=H.useLegacyShelfStyle)==null?void 0:w.call(H)},A)),
el:U},_.Z("span",{"aria-live":"polite",class:_.CG("ytNotificationMultiActionRendererTextContainer",(M.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var w;return(w=H.useLegacyShelfStyle)==null?void 0:w.call(H)},M))},_.Z(_.Pb,{text:function(){return H.data().responseText}})),_.Z("div",{class:_.CG("ytNotificationMultiActionRendererButtonContainer",(W.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var w;
return(w=H.useLegacyShelfStyle)==null?void 0:w.call(H)},W))},_.Z(_.YY,{data:function(){var w;
return(w=H.data().buttons)==null?void 0:w.map(function(d){if(d=d.buttonRenderer){var O,f=Object,J=f.assign,F=(O=d.icon)==null?void 0:O.iconType;O=(O=d.command||d.serviceEndpoint||d.navigationEndpoint)?{innertubeCommand:O}:void 0;d={buttonViewModel:J.call(f,{},{iconName:F,onTap:O,trackingParams:d.trackingParams,titleFormatted:d.text?_.Me(d.text):void 0},H0t(d))}}else d=void 0;return d}).filter(function(d){return!!d})}},{buttonViewModel:function(w,d){return _.Z("div",null,_.Z(_.yJ,{data:w.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var O;return((O=H.useModernStyles)==null?0:O.call(H))?{type:d()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Sb");var fPg=_.r(function(H){var U=_.nA("notification-text-renderer");_.pA(function(){requestAnimationFrame(function(){_.cW(U.value)})});
return _.Z("notification-text-renderer",{el:U,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.Z(_.Pb,{text:function(){return H.data().successResponseText}}))},"Ub");_.D8=_.r(function(H){var U=_.$Y(fyN,function(){var M;return Ut4((M=H.contentId)==null?void 0:M.call(H))}),A=function(){var M;
return _.p((M=U())==null?void 0:M.command,_.hf)};
return _.Z(_.K,{cond:function(){var M;if(!(M=A())){var W;M=_.p((W=U())==null?void 0:W.command,rLz)}return M},
then:function(){return _.Z(_.K,{cond:A,then:function(){var M={};return _.Z("div",{class:_.CG("ytDismissibleItemReplacedContent",function(){var W;return A47((W=H.aspectRatio)==null?void 0:W.call(H))})},_.Z("div",{class:_.CG((M.ytDismissibleItemAspectRatioContainer=function(){var W;
return((W=H.aspectRatio)==null?void 0:W.call(H))!==void 0},M))},_.Z(_.YY,{data:function(){var W;
return(W=A())==null?void 0:W.item}},{notificationMultiActionRenderer:function(W){return _.Z(ZS2,{data:W.data,
useModernStyles:H.useModernStyle,useLegacyShelfStyle:H.useLegacyShelfStyle})},
notificationTextRenderer:fPg})))}})},
else:H.children})},"Vb");_.JXw=_.r(function(H){var U=H.data;var A=H.customCommandResolver;H=_.sB(_.eD({visibilityCallback:function(w){var d,O=(d=U().interaction)==null?void 0:d.onFirstVisible;w&&O&&_.uj(O)},
showOption:_.Cj}));var M=function(){var w;return((w=U().interaction)==null?0:w.onTap)?function(d){var O;gWh(d,(O=U().interaction)==null?void 0:O.onTap,A)}:void 0},W=function(){var w,d=U(),O=M(),f=(w=_.p(U().rendererContext,_.Tn))==null?void 0:w.label;
a:switch(d.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":w=1;break a;default:w=0}return{size:wkh(d.size),type:w,onTap:O,accessibilityText:f}};
return _.Z("ad-avatar-view-model",{class:function(){var w;return((w=U().interaction)==null?0:w.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:H},_.Z(_.K,{cond:function(){return U().image},
then:function(w){return _.Z(Gww,{data:W,image:w})}}))},"Wb");_.$N=_.r(function(H){var U=_.Ec(H,{hasDot:!1,usedInMasthead:!1}),A=Object.assign({},U),M=U.data,W=U.hasDot;H=U.customCommandResolver;var w=U.usedInMasthead,d=(delete A.data,delete A.hasDot,delete A.customCommandResolver,delete A.usedInMasthead,A);U=function(){return M().style};
U!==void 0&&U!==null||_.c5(Error("Jh"));H=_.d7(function(){return M().interaction},H);
return _.Z("ad-badge-view-model",{class:_.CG(function(){var O;return((O=M().interaction)==null?0:O.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var O=d.adRenderingContextType(),f=w();
M();return O!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||f?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.sB(H)},_.Z(_.Kn,{data:function(){var O;M();return{type:2,text:(O=M().label)==null?void 0:O.content,adsIncludeDot:W(),isOverlay:M().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xb");var KWw;_.lh=_.r(function(H){var U=H.data;var A=H.customCommandResolver;var M=H.adRenderingContextType;return _.Z("ad-details-line-view-model",{class:function(){var W;return((W=U().interaction)==null?0:W.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.sB(_.eD({visibilityCallback:function(W){var w,d=(w=U().interaction)==null?void 0:w.onFirstVisible;W&&d&&_.uj(d)},
showOption:_.Cj}),_.d7(function(){return U().interaction},A))},_.Z(_.K,{cond:function(){return U().style},
then:function(W){return _.Z(_.FQ,{each:function(){var w;return((w=U())==null?void 0:w.attributes)||[]},
keyBy:"INDEX"},function(w){return _.Z(KWw,{attribute:w,style:W,adRenderingContextType:function(){return M()}})})}}))},"Yb");
KWw=_.r(function(H){var U=H.attribute;var A=H.style;var M=H.adRenderingContextType;return _.Z(_.K,{cond:function(){return U().text},
then:function(W){return _.Z(_.Pb,{text:W,className:function(){var w=M();A();return w==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Zb");var oHr=_.r(function(H){var U=H.data;var A=H.typographyBump;var M=function(){return U().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},W=function(){return{size:"M"}};
H={};return _.Z(_.ve,null,_.Z("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.Z(_.Pb,{text:function(){return U().headline},
className:_.CG((H.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineLegacy=function(){return!_.S("enable_desktop_vdc_components")},H.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline=function(){return _.S("enable_desktop_vdc_components")},H.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return M==null?void 0:M()},H.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(A==null?void 0:A())&&!(M==null?0:M())},H)),
linkInheritColor:!0}),_.Z(_.K,{cond:function(){return U().description},
then:function(w){var d={};return _.Z(_.Pb,{text:w,className:_.CG("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(d.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return M==null?void 0:M()},d.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(A==null?void 0:A())&&!(M==null?0:M())},d)),
linkInheritColor:!0})}}),_.Z(_.K,{cond:function(){return U().secondaryDescription},
then:function(w){var d={};return _.Z(_.Pb,{text:w,className:_.CG("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(d.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return A==null?void 0:A()},d)),
linkInheritColor:!0})}}),_.Z("div",{class:function(){return M()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.Z(_.K,{cond:function(){return U().adAvatar},
then:function(){return _.Z("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.Z(_.YY,{data:function(){return U().adAvatar}},{adAvatarViewModel:_.JXw}))}}),_.Z(_.YY,{data:function(){return U().adBadge}},{adBadgeViewModel:function(w){return _.Z(_.$N,{data:w.data,
hasDot:function(){return!!U().adDetailsLine},
adRenderingContextType:function(){return U().adRenderingContextType}})}}),_.Z(_.YY,{data:function(){return U().adDetailsLine}},{adDetailsLineViewModel:function(w){return _.Z(_.lh,{data:w.data,
adRenderingContextType:function(){return U().adRenderingContextType}})}}))),_.Z("div",{class:function(){return _.S("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":M()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.Z(_.YY,{data:function(){return U().menu}},{buttonViewModel:function(w){return _.Z(_.yJ,{data:w.data,
buttonOverrides:_.S("enable_desktop_vdc_components")?W:function(){a:switch(U().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var d="S";break a;default:d="M"}return{size:d}}})}})))},"$b"),FWr=_.r(function(H){var U=H.data;
var A=H.noBottomMargin;var M=H.useVideoLockupTopPadding;var W=H.typographyBump;H={};H=_.CG("ytwFeedAdMetadataViewModelHostMetadata",(H.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return A==null?void 0:A()},H.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return M==null?void 0:M()},H));
var w=function(){return U().adBadge};
w!==void 0&&w!==null||_.c5(Error("Kh"));w={};var d={};return _.Z(_.ve,null,_.Z(_.K,{cond:function(){return U().adAvatar},
then:function(){return _.Z("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.Z(_.YY,{data:function(){return U().adAvatar}},{adAvatarViewModel:function(O){return _.Z(_.JXw,{data:O.data})}}))}}),_.Z("div",{class:H},_.Z("div",{class:_.CG("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(w.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return W==null?void 0:W()},w.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(W==
null?void 0:W())&&_.S("web_enable_typography_bump_v2")},w))},_.Z(_.Pb,{text:function(){return U().headline},
linkInheritColor:!0})),_.Z(_.K,{cond:function(){return U().description},
then:function(O){return _.Z(_.Pb,{text:O,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.Z("div",{class:function(){return U().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.S("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.Z(_.YY,{data:function(){return U().adBadge}},
{adBadgeViewModel:function(O){return _.Z(_.$N,{data:O.data,
hasDot:function(){return!!U().adDetailsLine},
adRenderingContextType:function(){return U().adRenderingContextType}})}}),_.Z(_.YY,{data:function(){return U().adDetailsLine}},{adDetailsLineViewModel:function(O){return _.Z(_.lh,{data:O.data,
adRenderingContextType:function(){return U().adRenderingContextType}})}})),_.Z(_.K,{cond:function(){return U().secondaryDescription},
then:function(O){return _.Z(_.Pb,{text:O,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.Z("div",{class:_.CG("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(d.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return M==null?void 0:M()},d))},_.Z(_.YY,{data:function(){return U().menu}},{buttonViewModel:_.yJ})))},"ac"),Gt=_.r(function(H){var U=H.data;
var A=H.noBottomMargin;var M=H.listenToTapEvent;var W=H.setTouchEndHandler;var w=H.useVideoLockupTopPadding;var d=H.typographyBump;H=_.eD({visibilityCallback:function(P){var n,N=(n=U().interaction)==null?void 0:n.onFirstVisible;P&&N&&_.uj(N)},
showOption:_.Cj});var O=_.d7(function(){return U().interaction},void 0,function(){return M==null?void 0:M()}),f=_.b(_.iB(!1,void 0,"KSFskc")),J=f.next().value,F=f.next().value;
f=_.c$(function(P){(W==null?0:W())&&!J()&&(P.currentTarget.click(),F(!0),setTimeout(function(){F(!1)},100));
return!1});
return _.Z("feed-ad-metadata-view-model",{class:function(){var P;return((P=U().interaction)==null?0:P.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.sB(H,O),"on:touchend":f},_.Z(_.P5,null,_.Z(_.KA,{when:function(){return U().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.Z(oHr,{data:U,
typographyBump:d})}),_.Z(_.KA,{when:function(){return U().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.Z(FWr,{data:U,
noBottomMargin:A,useVideoLockupTopPadding:w,typographyBump:d})})))},"bc");var P5n,s7m;P5n=_.fl.inlinePreviewEnabledSelector;_.YN=_.r(function(H){return _.Z("yt-lockup-view-model",{class:_.CG(H.className,"yt-lockup-view-model--wrapper")},_.Z(_.D8,{contentId:function(){return H.data().contentId},
useModernStyle:!0,aspectRatio:function(){var U,A;return((U=H.containerType)==null?void 0:U.call(H))!==3?qwh(H.data().contentType,(A=H.force16By9ThumbnailAspectRatio)==null?void 0:A.call(H)):void 0}},function(){return _.Z(s7m,Object.assign({},H))}))},"cc");
s7m=_.r(function(H){H=_.Ec(H,{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,useOverlayStyling:void 0});var U=H.data,A=H.containerLayoutConfig,M=H.containerType,W=H.sizing,w=H.protectBackground,d=H.typographyBump,O=H.force16By9ThumbnailAspectRatio,f=H.thumbnailFixedWidth,J=H.thumbnailTargetWidth,F=H.lockupExperiments,
P=H.elementsPerRow,n=H.useOverlayStyling,N=_.lx().resolve(_.$V(_.qF));H=_.sB(_.Wq(function(){var G8;return(G8=U())==null?void 0:G8.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var L=_.Gk(P5n),m=_.lx().resolve(_.$V(gqr)),z=m?{}:void 0,c=function(){var G8,Pr,Z3;return(Z3=(Pr=_.p((G8=U())==null?void 0:G8.rendererContext,_.Tn))==null?void 0:Pr.label)!=null?Z3:void 0},C=function(){var G8;
return(G8=_.p(U().metadata,_.mMH))==null?void 0:G8.endorsement},v=function(){var G8=A==null?void 0:A(),Pr;
if(G8==null?0:G8.containerType){var Z3=(Pr=U())==null?void 0:Pr.contentType;Pr=F();var Yc=d(),sz=J(),Ry=w();G8=Object.assign({},h9c($mc(G8),uA(G8.responsiveSize),Yc,Z3,G8.force16By9ThumbnailAspectRatio,sz,Ry,void 0,Pr),{thumbnailFixedWidth:G8.contentPreviewWidth})}else G8=h9c(M(),W(),d(),(Z3=U())==null?void 0:Z3.contentType,O(),J(),w(),n(),F());return G8};
m&&z&&m({enabled:function(){return L()},
itemPlaybackModel:function(){return U().itemPlayback},
thumbnailElRef:function(){return z.thumbnailElRef},
containerElRef:H,options:function(){var G8=z.thumbnailOverlays||[],Pr=C(),Z3;!Pr||((Z3=F())==null?0:Z3.onFocusEffect)||G8.push(Pr);var Yc,sz;return{thumbnail:z.thumbnail,thumbnailOverlays:G8,accessibilityText:c(),thumbnailSize:z.thumbnailSize,enableRounding:v().isCollection,containPlayerWithinThumbnail:v().isCollection,mouseleaveCallback:function(){h(!1)},
trackingParams:(Yc=_.p(U().rendererContext,_.vX))==null?void 0:(sz=Yc.loggingDirectives)==null?void 0:sz.trackingParams}}});
var Y=0;m=_.b(_.iB(!1,void 0,"v0iGab"));var D=m.next().value,h=m.next().value;m=_.b(_.iB(!1,void 0,"PVKcBd"));var T=m.next().value,WF=m.next().value;m=_.c$(function(){T()?(_.Fl.cancelJob(Y),Y=_.Fl.addJob(function(){h(!0)},8,32)):h(!0);
return!0});
var dK=_.c$(function(G8){G8=G8.relatedTarget;var Pr=document.querySelector("ytd-video-preview");G8&&Pr&&Pr.contains(G8)||(Y&&(_.Fl.cancelJob(Y),Y=0),h(!1))});
_.m4(function(){Y&&(_.Fl.cancelJob(Y),Y=0)});
var SN=WsV(function(){WF(!0)}),o_=SN.touchFeedbackEvents,PF=SN.touchFeedbackOnPointerUp,BF=SN.touchFeedbackOnPointerDown;
SN=SN.touchFeedbackOnPointerLeave;var kc={};return _.Z(_.ve,null,_.Z("div",{el:H,class:_.CG("yt-lockup-view-model",function(){a:{var G8=v();if(G8.metadataOnThumbnail)G8="yt-lockup-view-model--metadata-on-thumbnail";else switch(G8.arrangement){case 1:G8="yt-lockup-view-model--horizontal";break a;default:G8="yt-lockup-view-model--vertical"}}return G8},function(){a:{var G8=v();
if(G8.metadataOnThumbnail)G8="yt-lockup-view-model--metadata-on-thumbnail";else{switch(G8.collectionStackNumber){case 1:G8="yt-lockup-view-model--collection-stack-1";break a;case 2:G8="yt-lockup-view-model--collection-stack-2";break a}G8=void 0}}return G8},function(){var G8;
return _.Vnr((G8=U())==null?void 0:G8.contentId)},(kc["yt-lockup-view-model--card"]=function(){return v().isCard},kc["yt-lockup-view-model--compact"]=function(){return v().isTiny||v().sizing!=="STANDARD"},kc["yt-lockup-view-model--protect-background"]=w,kc["yt-lockup-view-model--add-margins"]=function(){return v().addMarginForFullbleed},kc["yt-lockup-view-model--centered"]=function(){return v().isCentered},kc["yt-lockup-view-model--fullbleed"]=function(){return v().fullbleed},kc["yt-lockup-view-model--single-column-grid"]=
function(){return P()===1&&M()===2},kc["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var G8;
return(G8=F())==null?void 0:G8.useRichGridLegacyMargin},kc["yt-lockup-view-model--flex-none"]=function(){return!_.S("lockup_flex_none_killswitch")},kc)),
"on:mousedown":BF,"on:mouseleave":dK,"on:mouseup":PF,"on:mouseover":m,"on:touchstart":BF,"on:touchend":PF,"on:pointerleave":SN},_.Z(_.zm,{model:function(){var G8,Pr,Z3=Object,Yc=Z3.assign,sz=(z==null?void 0:z.thumbnailSize)||"small";a:{var Ry=v();var oy=!!(C()&&((G8=F())==null?0:G8.onFocusEffect));switch((z==null?void 0:z.thumbnailSize)||"small"){case "small":G8=4;break;case "large":G8=12;break;default:G8=8}if(oy)Ry=G8+12;else{switch(Ry.collectionStackNumber){case 1:Ry=G8+8;break a;case 2:Ry=G8+12;
break a}Ry=void 0}}sz={thumbnailSize:sz,triggerEvents:!0,customTopExtend:Ry};var aY;Ry=(Pr=F())==null?void 0:Pr.onFocusEffect;oy=!(N==null||!N());if(Ry){var im,Kh;Pr=oy?(im=Ry.onFocusColor)==null?void 0:im.darkTheme:(Kh=Ry.onFocusColor)==null?void 0:Kh.lightTheme;var rK,FB;im=oy?(rK=Ry.keyLightColor)==null?void 0:rK.darkTheme:(FB=Ry.keyLightColor)==null?void 0:FB.lightTheme;var T2;rK=oy?(aY=Ry.touchResponseColor)==null?void 0:aY.darkTheme:(T2=Ry.touchResponseColor)==null?void 0:T2.lightTheme;aY={background:Pr!==
void 0?OU(Pr):void 0,keyLight:im!==void 0?OU(im):void 0};T2=[];FB=_.b(Ry.lightingTechniques||[]);for(im=FB.next();!im.done;im=FB.next())switch(im.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":T2.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":T2.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":T2.push(3)}aY={hoverEffect:{palette:aY,lightingTechniques:T2},touchEffect:{palette:{background:rK!==void 0?OU(rK):void 0}}}}else aY={};return Yc.call(Z3,{},sz,aY)},
hovered:function(){return D()},
pointerDownEvent:o_.pointerDownEvent,pointerUpEvent:o_.pointerUpEvent,pointerLeaveEvent:o_.pointerLeaveEvent}),_.Z(_.K,{cond:function(){var G8;return C()&&D()&&((G8=F())==null?void 0:G8.onFocusEffect)},
then:function(){return _.Z("div",{class:"yt-lockup-view-model__endorsement"},_.Z(_.YY,{data:function(){return C()}},{attributionViewModel:function(G8){return _.Z(rU,{data:G8.data,
useHeavyText:!0})}}))}}),_.Z(_.xy,{command:function(){var G8;
return _.AF((G8=U())==null?void 0:G8.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(f()||v().thumbnailFixedWidth)&&v().arrangement===1?"width: "+(f()||v().thumbnailFixedWidth):""}},_.Z(_.YY,{data:function(){var G8;
return(G8=U())==null?void 0:G8.contentImage}},{thumbnailViewModel:function(G8){return _.Z(zt,{data:G8.data,
aspectRatio:function(){return v().aspectRatio},
disableRounding:function(){return v().disableRounding},
width:J,hovered:function(){return D()&&!(L()&&U().itemPlayback)},
isClip:function(){var Pr;return((Pr=U())==null?void 0:Pr.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:ppV(z),lockupExperiments:function(){return F()}})},
collectionThumbnailViewModel:function(G8){return _.Z(him,{data:G8.data,aspectRatio:function(){return v().aspectRatio},
disableRounding:function(){return v().disableRounding},
width:J,doubleStack:function(){return v().collectionStackNumber===2},
hovered:function(){return D()&&!(L()&&U().itemPlayback)},
playbackRef:ppV(z)})},
decoratedAvatarViewModel:_.Od})),_.Z("div",{class:"yt-lockup-view-model__metadata"},_.Z(_.YY,{data:function(){var G8;return(G8=U())==null?void 0:G8.metadata}},{lockupMetadataViewModel:function(G8){return _.Z(urh,{data:G8.data,
hovered:D,lockupStyle:v,lockupCommand:function(){var Pr;return _.AF((Pr=U())==null?void 0:Pr.rendererContext)},
lockupAccessibilityLabel:function(){return c()},
layout:function(){var Pr;return((Pr=F())==null?0:Pr.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(G8){return _.Z(Gt,{data:G8.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:d})}}),_.Z(_.YY,{data:function(){var G8;
return(G8=U())==null?void 0:G8.attachmentSlot}},{lockupAttachmentsViewModel:function(G8){return _.Z(WWm,{data:G8.data,
lockupStyle:v})}}))),_.Z(_.YY,{data:function(){var G8;
return(G8=U())==null?void 0:G8.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(G8){return _.Z(WWm,{data:G8.data,
lockupStyle:v})}}))},"dc");
_.YN.idomCompat=!0;_.LG(_.YN,"yt-lockup-view-model",{props:{data:_.sY,containerLayoutConfig:_.sY,containerType:_.sY,sizing:_.sY,protectBackground:_.sY,typographyBump:_.sY,thumbnailFixedWidth:_.sY,thumbnailTargetWidth:_.sY,force16By9ThumbnailAspectRatio:_.sY,className:_.sY,lockupExperiments:_.sY,elementsPerRow:_.sY,useOverlayStyling:_.sY}});var dtc,nHn=_.r(function(H){var U=_.Ec(H,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),A=U.text,M=U.alwaysShowTruncationText;H=U.truncationText;var W=U.onTextClick,w=U.maxLines,d=U.disableTextMask,O=U.textStyle,f=U.accessibilityLabel,J=U.textSize,F=U.alwaysTruncateAtMaxLines,P=U.expandOnClick;U=_.b(_.iB(!1,void 0,"EzA1q"));var n=U.next().value,N=U.next().value;U=_.c$(function(){P()&&N(!n());W==null||W()});
var L=function(){a:switch(J()){case "medium":var T=2;break a;case "large":T=2.2;break a;default:T=1.8}return T},m=Z0M(A,function(){return n()?Infinity:w()},L,d,F,n),z=m.isTruncated;
A=m.displayText;F=m.contentRef;var c=m.hiddenRef,C=m.placeholderTruncationTextRef,v=m.hiddenTruncationTextRef;m=m.truncationTextRef;var Y={},D={},h={};return _.Z("truncated-text",{class:_.CG((Y["yt-truncated-text"]=!0,Y["yt-truncated-text--overlay"]=function(){return O()==="overlay"},Y["yt-truncated-text--medium-text"]=function(){return J()==="medium"},Y["yt-truncated-text--large-text"]=function(){return J()==="large"},Y["yt-truncated-text--primary-text"]=function(){return O()==="primary-text"},Y)),
"on:click":U,style:function(){return"line-height: "+L()+"rem;"}},_.Z("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:F,style:function(){return n()?"":"max-height: "+w()*L()+"rem;"}},_.Z(_.Pb,{text:A}),_.Z("button",{"aria-disabled":!0,
disabled:!0,class:_.CG((D["yt-truncated-text__inline-button"]=!0,D["yt-truncated-text--hidden"]=function(){return!(!n()&&(M!=null&&M()||z()))},D)),
el:C,style:function(){return"line-height: "+L()+"rem;"}},_.Z(_.Pb,{text:H}))),_.Z("truncated-text-content",{class:_.CG("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:c,style:function(){return n()?"":"max-height: "+w()*L()+"rem;"},
"aria-hidden":"true"},_.Z(_.Pb,{text:A}),_.Z("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:v,style:function(){return"line-height: "+L()+"rem;"}},_.Z(_.Pb,{text:H}))),_.Z("button",{"aria-label":f,
class:_.CG((h["yt-truncated-text__absolute-button"]=function(){return!d()},h["yt-truncated-text__bottom-button"]=function(){return d()},h["yt-truncated-text--hidden"]=function(){return!(!n()&&(M!=null&&M()||z()))},h)),
el:m,style:function(){return"line-height: "+L()+"rem;"}},_.Z(_.Pb,{text:H})))},"fc");
nHn.idomCompat={callbacks:{onTextClick:!0}};var pfy=_.r(function(H){var U=H.data;H=H.className;var A=_.Ja(function(){return J4K(U())},void 0,"uDhDke"),M=_.Z(_.ve,null,_.Z(_.K,{cond:function(){return U().heroText||U().image},
then:function(){return _.Z(NR3,{data:U})}}),_.Z(Stg,{data:U,
sizeSmall:function(){return U().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.Z("yt-video-attribute-view-model",{class:H},_.Z("div",{class:function(){var W=U();a:switch(W.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var w="yt-video-attribute-view-model--vertical";break a;default:w="yt-video-attribute-view-model--horizontal"}a:switch(W.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var d="yt-video-attribute-view-model--image-small";break a;default:d="yt-video-attribute-view-model--image-large"}a:switch(W.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var O=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":O="yt-video-attribute-view-model--image-avatar";break a;default:O=""}a:switch(W.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var f="yt-video-attribute-view-model--metadata-header";break a;default:f=""}a:switch(W.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var J="yt-video-attribute-view-model--container-card";break a;default:J=""}return["yt-video-attribute-view-model",w,d,
O,f,J,J4K(W)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.rA({"background-color":function(){var W=U();if(W.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var w="";else{w=W.lightColorPalette;W=W.darkColorPalette;var d,O=((d=_.lx().resolve(_.$V(_.qF)))==null?0:d())&&W?W:w;w=(w=O==null?void 0:O.section2Color)?_.bN(w):""}return w}})},_.Z(_.K,{cond:A,
then:function(){return _.Z(_.xy,{className:"yt-video-attribute-view-model__content-container",command:A,role:"group",ariaLabel:function(){return U().title}},M)},
else:function(){return _.Z("div",{class:"yt-video-attribute-view-model__content-container"},M)}})))},"gc");
pfy.idomCompat=!0;var NR3=_.r(function(H){var U=H.data;var A,M=(A=_.lx().resolve(_.$V(_.qF)))==null?void 0:A(),W=function(){return M&&U().darkThemeImage?U().darkThemeImage:U().image},w=_.Ja(function(){return Ks8(U())},void 0,"UDqj0b");
return _.Z("div",{class:"yt-video-attribute-view-model__hero-section"},_.Z(_.P5,null,_.Z(_.KA,{when:W},function(){return _.Z(_.nG,{data:function(){return W()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.Z(_.KA,{when:function(){return U().heroText}},function(){return _.Z("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.Z("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return U().heroText}))})),_.Z(_.K,{cond:function(){return U().overflowMenuOnTap},
then:function(){return _.Z("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.Z(_.cb,{data:w,iconName:"MORE_VERT"}))}}))},"hc");
NR3.idomCompat=!0;var Stg=_.r(function(H){var U=H.data;H=H.sizeSmall;var A=function(){return U().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},M=_.Ja(function(){return OB(_.dA({innertubeCommand:J4K(U())}))?"link":J4K(U())?"button":"group"},void 0,"e2MmYe"),W={};
return _.Z("div",{class:_.CG("yt-video-attribute-view-model__metadata",(W["yt-video-attribute-view-model--small-font"]=H,W)),role:M},_.Z("h1",{class:"yt-video-attribute-view-model__title"},function(){return U().title}),_.Z(_.K,{cond:function(){return U().subtitle},
then:function(){return _.Z("h4",{class:"yt-video-attribute-view-model__subtitle"},_.Z(_.K,{cond:A,then:function(){return _.Z(nHn,{text:function(){return fFr(U().subtitle)},
truncationText:function(){return fFr(U().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.Z("span",null,function(){return U().subtitle})}}))}}),_.Z(_.K,{cond:function(){return U().secondarySubtitle},
then:function(w){return _.Z("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.Z(_.Pb,{text:function(){var d=w();if(d!=null&&d.attachmentRuns){for(var O=[],f=_.b(d.attachmentRuns),J=f.next();!J.done;J=f.next())J=J.value,J.element&&O.push(Object.assign({},J,{element:Object.assign({},J.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));d=Object.assign({},d,{attachmentRuns:O})}return d}}))}}),_.Z(_.YY,
{data:function(){return U().buttonViewModel}},{buttonViewModel:function(w){return _.Z(_.yJ,{data:w.data,
className:"yt-video-attribute-view-model__button"})}}))},"ic");
Stg.idomCompat=!0;_.LG(pfy,"yt-video-attribute-view-model",{props:{data:_.sY,className:_.sY}});var qd=function(){var H=_.B.apply(this,arguments)||this;H.useHighlightStyling=_.S("web_enable_deeper_metadata_highlight_styling");H.isSearch=!1;H.JSC$15603_lastScrollContainerWidth=NaN;H.pageLoadingFromNavigation=!1;H.currentIndex=0;H.supportComponentResize=!1;return H};
_.R(qd,_.B);_.X=qd.prototype;
_.X.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}}}}}};
_.X.attached=function(){document.addEventListener("yt-page-type-changed",_.lN(this,this.onPageChange))};
_.X.detached=function(){document.removeEventListener("yt-page-type-changed",_.lN(this,this.onPageChange))};
_.X.getItemsPath=function(){return"data.cards"};
_.X.onIronResize=function(){this.updateListStyles()};
_.X.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var H;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(H=this.data)==null?void 0:H.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.S("problem_walkthrough_sd")&&!!this.centerItems};
_.X.computeCardListStyle=function(H){return H||null};
_.X.computeEmpty=function(H){return!this.get("cards.length",H)};
_.X.computeThumbnailStyle=function(H){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",H)||null};
_.X.computeHasSubtitle=function(H){return!!this.get("header.richListHeaderRenderer.subtitle",H)};
_.X.computeInitialCountNumber=function(H){return this.hasSquareMiniApp&&H==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&H==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:H==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:H==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:H==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&H==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.X.computeUseFloorScrolling=function(H){return H==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.X.computeHasGameCard=function(H){return(H=this.get("cards",H))?H.some(function(U){return U.gameCardRenderer}):!1};
_.X.computeCenterHeaderTitle=function(H){return!(H==null||!H.centerHeaderTitle)};
_.X.computeHasPortraitMiniApp=function(H){return(H=H==null?void 0:H.cards)?H.some(function(U){return U.miniGameCardViewModel&&U.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.X.computeHasSquareMiniApp=function(H){return(H=H==null?void 0:H.cards)?H.some(function(U){return U.miniGameCardViewModel&&U.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.X.computeHasSkinnyWidthPortraitMiniApp=function(H){return(H=H==null?void 0:H.cards)?H.some(function(U){return U.miniGameCardViewModel&&U.miniGameCardViewModel.width===135}):!1};
_.X.computeCenterItems=function(H){return!!H};
_.X.computeHasInfoPanel=function(H){var U;return H==null?void 0:(U=H.cards)==null?void 0:U.some(function(A){return A.infoPanelContentRenderer})};
_.X.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.X.getItemByIndex=function(H){var U=this.items.children;return U&&U.length>H?U[H]:void 0};
_.X.onPageChange=function(){var H=this;this.pageLoadingFromNavigation=!0;_.Fl.addJob(function(){H.pageLoadingFromNavigation=!1;_.Bg(H.hostElement,"yt-terminate-video-preview-action")},8)};
_.X.updateListStyles=function(){if(_.S("problem_walkthrough_sd")&&this.JSC$15603_scrollContainer!==void 0){var H=this.JSC$15603_scrollContainer.clientWidth;H!==this.JSC$15603_lastScrollContainerWidth&&(this.JSC$15603_lastScrollContainerWidth=H,_.Dt(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(H*.8,415)+"px"}),_.cg(this.hostElement,"iron-resize"))}};
_.D5.Object.defineProperties(qd.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.S("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return!!((H=this.data)==null?0:(U=H.cards)==null?0:(A=U[0])==null?0:A.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return!!((H=this.data)==null?0:(U=H.cards)==null?0:(A=U[0])==null?0:A.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return _.S("enable_desktop_amsterdam_info_panels")&&!!((H=this.data)==null?0:(U=H.cards)==null?0:(A=U[0])==null?0:A.infoPanelContentRenderer)}}});
qd.prototype.dataChanged=qd.prototype.dataChanged;qd.prototype.onIronResize=qd.prototype.onIronResize;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],qd.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],qd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.x0.YtdHorizontalListBehavior),_.q("design:type",Object)],qd.prototype,"ytdHorizontalListBehavior",void 0);
_.G([_.g(_.uQ),_.q("design:type",Object)],qd.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],qd.prototype,"data",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],qd.prototype,"useCustomColors",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],qd.prototype,"useHighlightStyling",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.q("design:type",Object)],qd.prototype,"cardListStyle",void 0);_.G([_.y({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.q("design:type",Boolean)],qd.prototype,"empty",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.q("design:type",Boolean)],qd.prototype,"hasSubtitle",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.q("design:type",Boolean)],qd.prototype,"thumbnailStyle",void 0);_.G([_.y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.q("design:type",Boolean)],qd.prototype,"hasGameCard",void 0);_.G([_.y({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.q("design:type",Boolean)],qd.prototype,"centerHeaderTitle",void 0);
_.G([_.y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.q("design:type",Boolean)],qd.prototype,"hasPortraitMiniApp",void 0);_.G([_.y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.q("design:type",Boolean)],qd.prototype,"hasSquareMiniApp",void 0);_.G([_.y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.q("design:type",Boolean)],qd.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.G([_.y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.q("design:type",Boolean)],qd.prototype,"hasInfoPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],qd.prototype,"isSearch",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],qd.prototype,"inlineStructuredDescription",void 0);_.G([_.hG("#scroll-container"),_.q("design:type",HTMLDivElement)],qd.prototype,"JSC$15603_scrollContainer",void 0);
_.G([_.y({computed:"computeInitialCountNumber(data.style.type)"}),_.q("design:type",Number)],qd.prototype,"initialCount",void 0);_.G([_.y({computed:"computeUseFloorScrolling(data.style.type)"}),_.q("design:type",Boolean)],qd.prototype,"useFloorScrolling",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.q("design:type",Boolean)],qd.prototype,"centerItems",void 0);_.G([_.y(),_.q("design:type",Object)],qd.prototype,"pageLoadingFromNavigation",void 0);
_.G([_.y(),_.q("design:type",Object)],qd.prototype,"currentIndex",void 0);_.G([_.y(),_.q("design:type",Number)],qd.prototype,"scrollCount",void 0);_.G([_.y(),_.q("design:type",Object)],qd.prototype,"supportComponentResize",void 0);_.G([_.hG("#items"),_.q("design:type",HTMLDivElement)],qd.prototype,"items",void 0);_.G([_.Gl("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qd.prototype,"onIronResize",null);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qd.prototype,"dataChanged",null);_.G([_.y({reflectToAttribute:!0}),_.a("inlineStructuredDescription"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],qd.prototype,"hideNavigationButton",null);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],qd.prototype,"modernChapters",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],qd.prototype,"hasVideoAttributeViewModels",null);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],qd.prototype,"modernInfoPanels",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],qd);
_.e(qd,"ytd-horizontal-card-list-renderer",function(){if(b0n!==void 0)return b0n;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return b0n=H},{mode:2});var LWK=_.r(function(H){var U=H.data;var A={};return _.Z("video-summary-content-view-model",{class:_.CG("videoSummaryContentViewModelHost",H.className,(A.videoSummaryContentViewModelHostIsSearch=H.isSearch,A))},_.Z(_.FQ,{each:function(){var M=[],W=U().paragraphs;if(W==null||!W.length)return[];for(var w=0;w<W.length;w++){var d=_.p(W[w],m5h),O=void 0;w>0&&(O=_.p(W[w-1],m5h));O&&!!O.marker===!!d.marker?M[M.length-1].paragraphs.push(d):M.push({isList:!!d.marker,paragraphs:[d]})}return M},
keyBy:"INDEX"},function(M){return _.Z(_.K,{cond:function(){return M().isList},
then:function(){return _.Z("ul",{class:"videoSummaryContentViewModelList"},_.Z(_.FQ,{each:function(){return M().paragraphs},
keyBy:"INDEX"},function(W){return _.Z("li",{class:"videoSummaryContentViewModelListItem"},_.Z(_.Pb,{text:function(){return W().text}}))}))},
else:function(){return _.Z("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.Z(_.FQ,{each:function(){return M().paragraphs},
keyBy:"INDEX"},function(W){return _.Z("p",{class:"videoSummaryContentViewModelParagraph"},_.Z(_.Pb,{text:function(){return W().text}}))}))}})}),_.Z(_.K,{cond:function(){return!!_.p(U().likeButtonViewModel,_.fx)&&!!_.p(U().dislikeButtonViewModel,_.JI)},
then:function(){return _.Z("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.Z("div",{class:"videoSummaryContentViewModelLikeButton"},_.Z(_.fn,{data:function(){return _.p(U().likeButtonViewModel,_.fx)},
disableIconAnimation:!0})),_.Z(_.Zu,{data:function(){return _.p(U().dislikeButtonViewModel,_.JI)}}))}}))},"jc");
LWK.idomCompat=!0;_.LG(LWK,"video-summary-content-view-model",{props:{data:_.sY,isSearch:_.sY,className:_.sY}});var h6=function(){var H=_.B.apply(this,arguments)||this;var U,A;H.isExpanded=(A=(U=H.data)==null?void 0:U.isExpanded)!=null?A:!1;H.disableExpand=!1;H.showProminentLabel=!1;H.showRightSideLabel=!0;H.toggleExpandableContent=function(M){H.disableExpand||(M.stopPropagation(),_.NF(_.Lf(M),H.hostElement,["info","expanded-subtitle"])||(H.isExpanded=!H.isExpanded,H.ytRendererBehavior.logExplicitClick(H.data),H.JSC$15614_cardList&&!_.S("expandable_metadata_a11y_fix_ks")&&_.rV(H,function(){_.tk(H.hostElement)})))};
H.useSquareThumbnail=!1;H.startX=0;return H};
_.R(h6,_.B);_.X=h6.prototype;_.X.computeUseSquareThumbnail=function(){var H;return(H=this.data)==null?void 0:H.useSquareThumbnail};
_.X.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"}}}}};
_.X.dataChanged=function(){if(this.data){var H,U;this.isExpanded=(U=(H=this.data)==null?void 0:H.isExpanded)!=null?U:!1;var A,M,W,w;if(H=this.isDarkTheme()?(A=this.data)==null?void 0:(M=A.colorData)==null?void 0:M.darkColorPalette:(W=this.data)==null?void 0:(w=W.colorData)==null?void 0:w.lightColorPalette){var d,O;if((d=this.data)==null?0:(O=d.colorData)==null?0:O.vibrantColorPalette)H.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.jr(this.hostElement,H)}}};
_.X.isExpandedChanged=function(){this.isExpanded&&this.JSC$15614_cardList&&_.cg(this.JSC$15614_cardList,"iron-resize")};
_.X.computeIsExpanded=function(H){return!!H.isExpanded};
_.X.computeShowProminentLabel=function(H,U){var A;return!!(H==null?0:(A=H.header)==null?0:A.showLeadingCollapsedLabel)&&!U};
_.X.computeShowRightSideLabel=function(H,U){var A;return!(H==null?0:(A=H.header)==null?0:A.showLeadingCollapsedLabel)&&!U};
_.X.captureContentClick=function(H){if(!this.disableExpand)if(_.S("expandable_metadata_fix_killswitch")){var U=H.target;_.cDz(U,"ytd-macro-markers-list-item-renderer")||H.stopPropagation();(U==null?void 0:U.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.NF(_.Lf(H),this.hostElement,["items"])||_.ny(_.Lf(H),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.X.timestampClick=function(H){H.stopPropagation();var U,A;(H=(U=this.data)==null?void 0:(A=U.header)==null?void 0:A.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(H)};
_.X.onDown=function(H){H.stopPropagation();this.startX=H.detail?H.detail.x:0};
_.X.onUp=function(H){this.skipKeyInteraction(H)&&H.stopPropagation()};
_.X.skipKeyInteraction=function(H){var U=H.target;if((U==null?void 0:U.id)==="scroll-container"||(U==null?void 0:U.id)==="items"||H.detail&&H.detail.x!==this.startX)return!0;H=_.Lf(H);H=_.b(H);for(U=H.next();!U.done;U=H.next()){U=U.value;if(U===this.hostElement)break;if(U.hasAttribute&&U.hasAttribute("skip-key-interaction"))return!0}return!1};
_.X.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.D5.Object.defineProperties(h6.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var H;return!!_.p((H=this.data)==null?void 0:H.expandedContent,E6H)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var H;return!!_.p((H=this.data)==null?void 0:H.expandedContent,g0B)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var H,U;return!((H=this.data)==null||!H.useCustomColors)&&!((U=this.data)==null||!U.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var H,U;return!!((H=this.data)==null?0:(U=H.header)==null?0:U.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var H,U;return!!((H=this.data)==null?0:(U=H.header)==null?0:U.expandedSubtitle)&&this.isExpanded}},
expandedSubtitleTarget:{configurable:!0,enumerable:!0,get:function(){var H,U,A=(H=this.data)==null?void 0:(U=H.header)==null?void 0:U.expandedSubtitleTapCommand;H=A&&_.p(A,_.gu);return _.S("web_open_ai_support_links_external_window")&&(H==null?void 0:H.target)==="TARGET_NEW_WINDOW"?"_blank":null}},
expandedSubtitleRel:{configurable:!0,enumerable:!0,get:function(){var H,U,A=(H=this.data)==null?void 0:(U=H.header)==null?void 0:U.expandedSubtitleTapCommand;H=A&&_.p(A,_.gu);return _.S("web_open_ai_support_links_external_window")&&(H==null?void 0:H.target)==="TARGET_NEW_WINDOW"?"noopener":null}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var H,U;return!!((H=this.data)==null?0:(U=H.header)==null?0:U.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
h6.prototype.onUp=h6.prototype.onUp;h6.prototype.onDown=h6.prototype.onDown;h6.prototype.isExpandedChanged=h6.prototype.isExpandedChanged;h6.prototype.dataChanged=h6.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],h6.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],h6.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],h6.prototype,"isExpanded",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],h6.prototype,"disableExpand",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],h6.prototype,"isSearch",void 0);
_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],h6.prototype,"isWatch",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.q("design:type",Object)],h6.prototype,"showProminentLabel",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.q("design:type",Object)],h6.prototype,"showRightSideLabel",void 0);
_.G([_.y({value:!1,reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],h6.prototype,"hasVideoSummary",null);_.G([_.y({value:!1,reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],h6.prototype,"hasLockupViewModel",null);_.G([_.y({reflectToAttribute:!0}),_.a("data","isWatch"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],h6.prototype,"useCustomColors",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data","isExpanded"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],h6.prototype,"showInfoButton",null);_.G([_.a("data","isExpanded"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],h6.prototype,"showTimestamp",null);_.G([_.a("data","isExpanded"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],h6.prototype,"showExpandedSubtitle",null);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],h6.prototype,"expandedSubtitleTarget",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],h6.prototype,"expandedSubtitleRel",null);_.G([_.a("data","isExpanded"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],h6.prototype,"showThumbnail",null);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],h6.prototype,"useVppShoppingDestinationStyle",null);
_.G([_.y(),_.q("design:type",Object)],h6.prototype,"toggleExpandableContent",void 0);_.G([_.hG("ytd-horizontal-card-list-renderer"),_.q("design:type",Object)],h6.prototype,"JSC$15614_cardList",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.q("design:type",Object)],h6.prototype,"useSquareThumbnail",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],h6.prototype,"dataChanged",null);
_.G([_.Ya("isExpanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],h6.prototype,"isExpandedChanged",null);_.G([_.Gl("down"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],h6.prototype,"onDown",null);_.G([_.Gl("up"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],h6.prototype,"onUp",null);
_.G([_.dX({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],h6);
_.e(h6,"ytd-expandable-metadata-renderer",function(){if(Fx3!==void 0)return Fx3;var H=document.createElement("template");_.E(H,'\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]]" target$="[[expandedSubtitleTarget]]" rel$="[[expandedSubtitleRel]]">\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" hidden="[[!isExpanded]]" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Fx3=H},{mode:1});var Ruk,EHB=function(){if(Ruk!==void 0)return Ruk;var H=document.createElement("template");_.E(H,'\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="[[!shouldShowChannelThumbnail]]" 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      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" hidden="[[hasAttributedBylineText]]" 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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Ruk=H};_.LG(_.uh,"yt-avatar-stack-view-model",{props:{className:_.sY,data:_.sY,overrides:_.sY,isOverlay:_.sY,useMediumText:_.sY,decorations:_.sY,hideAvatar:_.sY}});_.Qm("itemSectionRenderer","videoRenderer","ytd-video-renderer");var kN=function(){var H=_.B.apply(this,arguments)||this;H.disableExpand=!1;H.shouldShowChannelInfo=!1;H.hasAttributedBylineText=!1;H.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return H};
_.R(kN,_.B);_.X=kN.prototype;_.X.computeUseSearchUi=function(){var H,U;return this.isSearch||((H=this.data)==null?void 0:(U=H.style)==null?void 0:U.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.X.computeUseThreeLineTitle=function(){var H;return((H=this.data)==null?void 0:H.maxTitleLines)===3};
_.X.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.S("polymer_video_renderer_defer_menu")&&!Ig3?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]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.X.attached=function(){_.B4(this.hostElement,"blue-links",_.S("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.rn(_.c4(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var H=this.get("data.buttons.buttonRenderer.serviceEndpoint"),U;H&&((U=_.p(H.commandMetadata,_.Im))==null?0:U.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(H);this.updateInlinePreviewHoverListeners()};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15619_inlinePreviewHoverListener=iA({mediaRenderer:this,lockupElement:this.JSC$15619_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.X.clearInlinePreviewHoverListeners=function(){var H;(H=this.JSC$15619_inlinePreviewHoverListener)==null||Ri(H)};
_.X.onTextWrapperClick=function(H){var U,A,M=this.hideTranslation?(U=this.data)==null?void 0:U.untranslatedNavigationEndpoint:(A=this.data)==null?void 0:A.navigationEndpoint;U=_.NF(_.Lf(H),this.hostElement,["expandable-metadata"]);!M||U&&!_.S("expandable_metadata_fix_killswitch")||_.ny(_.Lf(H),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.cg(this.hostElement,"yt-navigate",{endpoint:M})};
_.X.computeThumbnailWidth=function(H,U,A,M,W){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:M?W==="MASSIVE"?600:W==="BIG"?500:W==="MEDIUM"?450:420:A?360:U?128:H?210:246};
_.X.computeUseBiggerThumbs=function(H){return H&&_.S("enable_desktop_search_bigger_thumbs")};
_.X.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.X.computeHasAttributedBylineText=function(){var H;return!((H=this.data)==null||!H.attributedBylineText)};
_.X.computeVideoStyle=function(){if(_.S("enable_video_style")){var H,U;return(H=this.data)==null?void 0:(U=H.style)==null?void 0:U.value}};
_.X.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.X.handleHideItemSectionVideosByIdCommand=function(H){var U;H=(U=_.p(H,Tkz))==null?void 0:U.videoId;this.data&&this.data.videoId===H&&(this.isHidden=!0)};
_.X.getMetadataSnippetContainerClass=function(H){return H?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.X.computeTitleText=function(H,U,A){return H?A:U};
_.X.computeDescriptionSnippet=function(H,U,A){return H?A:U};
_.X.computeSnippetText=function(H,U,A){return H?A:U};
_.X.computeNavigationEndpoint=function(H,U){return H?U==null?void 0:U.untranslatedNavigationEndpoint:U==null?void 0:U.navigationEndpoint};
_.X.hideInlineTitleIcon=function(H,U){return H||!U};
_.D5.Object.defineProperties(kN.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 H;return(H=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?H:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return!!(this==null?0:(H=this.data)==null?0:(U=H.channelThumbnailSupportedRenderers)==null?0:(A=U.channelThumbnailWithLinkRenderer)==null?0:A.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var H;return!!_.p((H=this.data)==null?void 0:H.avatar,aan)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.JSC$15619_inlinePreviewHoverListener)==null?0:J6(H))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.D5.Object.defineProperties(kN,{template:{configurable:!0,enumerable:!0,get:function(){return EHB()}}});
kN.prototype.dataChanged=kN.prototype.dataChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],kN.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],kN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],kN.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.g(_.PA),_.q("design:type",Object)],kN.prototype,"ytdLockupBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],kN.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],kN.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],kN.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],kN.prototype,"isBackstageVideo",void 0);
_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],kN.prototype,"isPostCompactVideo",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],kN.prototype,"isHistory",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],kN.prototype,"isRichGridVideoPost",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],kN.prototype,"isHidden",void 0);
_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],kN.prototype,"isSearch",void 0);_.G([_.y({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.q("design:type",Boolean)],kN.prototype,"useSearchUi",void 0);_.G([_.y({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.q("design:type",Boolean)],kN.prototype,"useThreeLineTitle",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.q("design:type",Boolean)],kN.prototype,"useBiggerThumbs",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.q("design:type",Object)],kN.prototype,"videoStyle",void 0);_.G([_.y({computed:"computeDisableExpand(videoStyle)"}),_.q("design:type",Object)],kN.prototype,"disableExpand",void 0);
_.G([_.y({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.q("design:type",Object)],kN.prototype,"shouldShowChannelInfo",void 0);_.G([_.y({computed:"computeHasAttributedBylineText(data)"}),_.q("design:type",Object)],kN.prototype,"hasAttributedBylineText",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.kV("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],kN.prototype,"biggerThumbsStyle",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.q("design:type",String)],kN.prototype,"inlineTitleIcon",void 0);_.G([_.y({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.q("design:type",Object)],kN.prototype,"computedNavigationEndpoint",void 0);_.G([_.y({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(H,U){return _.rH(H.entities,"searchVideoResultEntity",U)}}),
_.q("design:type",Object)],kN.prototype,"searchVideoResultEntity",void 0);_.G([_.hG("ytd-thumbnail"),_.q("design:type",HTMLElement)],kN.prototype,"thumbnail",void 0);_.G([_.hG("#dismissible"),_.q("design:type",HTMLElement)],kN.prototype,"JSC$15619_dismissibleMedia",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kN.prototype,"dataChanged",null);
_.G([_.a("searchVideoResultEntity"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],kN.prototype,"hideTranslation",null);_.G([_.a("searchVideoResultEntity"),_.q("design:type",Array),_.q("design:paramtypes",[])],kN.prototype,"hiddenBadgeGroups",null);_.G([_.a("data","useAvatar"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],kN.prototype,"shouldShowChannelThumbnail",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],kN.prototype,"useAvatar",null);
_.G([_.a("lockupIsHovered"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],kN.prototype,"isHovered",null);_.G([_.dX({is:"ytd-video-renderer",disableElementRegistration:!0})],kN);_.e(kN,"ytd-video-renderer",function(){return EHB()},{mode:2});var v6=function(){var H=_.B.apply(this,arguments)||this;H.editDialog=null;H.roundedContainer=!0;H.isLoading=!1;H.isRichGrid=!1;H.isRichGridRepost=!1;H.reduceSidePaddings=_.S("reduce_side_paddings_in_shelf");H.JSC$15626_spinnerEl=null;return H};
_.R(v6,_.B);_.X=v6.prototype;
_.X.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"}}}};
_.X.contentTextChanged=function(){this.expander.reset()};
_.X.dataChanged=function(){var H=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var U=0,A=this.data.actions&&this.data.actions.length;U<A;U++)this.openEditDialog(_.p(this.data.actions[U],C6w));if((U=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(U=this.get("buttonRenderer.hint.hintRenderer.hintId",U))&&U.startsWith("share-post-hint")){var M=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(M){_.rI.getInstance();var W=eZ(_.Nh(_.hP("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.Fl.addLowPriorityJob(function(){_.eb(H.hostElement,W,M)})}}}};
_.X.updatePoll=function(H){H>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.X.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15626_spinnerEl||(this.JSC$15626_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.c4(this.hostElement).appendChild(this.JSC$15626_spinnerEl));this.JSC$15626_spinnerEl&&(this.JSC$15626_spinnerEl.active=this.isLoading)};
_.X.onYtNavigate=function(H){var U=this.get("updateCommentDialogEndpoint",H.detail.endpoint);U&&(this.openEditDialog(U),H.stopPropagation())};
_.X.onYtCommentboxDismiss=function(){this.editDialog=null};
_.X.onYtCommentPollRevert=function(H,U){U&&this.updatePoll(U.selectedChoiceIndex)};
_.X.onYtServiceRequestSent=function(H,U){var A;U.endpoint&&(_.p(U.endpoint,Y8K)||_.p(U.endpoint,GO2)&&((A=_.p(U.endpoint,GO2))==null||!A.clientActions))&&(this.isLoading=!0);if(U.actions)for(H=0;H<U.actions.length;H++)A=U.actions[H],_.p(A,TV)&&(A=this.get("updateBackstagePollAction.selectedChoiceIndex",A),A==void 0&&(A=-1),this.updatePoll(A))};
_.X.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.X.openEditDialog=function(H){H&&H.dialog&&(this.editDialog=H.dialog,H=this.editDialogEl.firstElementChild)&&(H.focus(),H.openDialog&&H.openDialog())};
_.X.computeIsPostHidden=function(H,U){return!!H||U};
_.X.computeSurfaceType=function(H){return H?H.toLowerCase().replace(/_/g,"-"):""};
_.X.computeUsesCompactLockup=function(H){return H==="BACKSTAGE_SURFACE_TYPE_HOME"||H==="BACKSTAGE_SURFACE_TYPE_SEARCH"||H==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||H==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||H==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||H==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.X.computeShowWithoutToolbar=function(H){return!H.actionButtons&&!H.actionMenu};
_.X.computePostAttachment=function(H){if(H.backstageAttachment){if(_.p(H.backstageAttachment,N6z))return"poll";if(_.p(H.backstageAttachment,wNK))return"quiz";if(_.p(H.backstageAttachment,_.xIr))return"video";if(_.p(H.backstageAttachment,XNH))return"uploaded-videos";if(_.p(H.backstageAttachment,AMn))return H.contentText?"image":"image-only";if(_.p(H.backstageAttachment,UIr))return"playlist"}return"none"};
_.X.computePostTabIndex=function(H){return H?0:-1};
_.X.computeButtonTooltipPosition=function(H){return this.computeUsesCompactLockup(H)?"top":"bottom"};
_.X.computeHasText=function(H){return!(H==null||!H.contentText)};
_.X.onTap=function(H){var U,A;if(((U=this.data)==null?0:U.navigationEndpoint)&&((A=this.data)==null?void 0:A.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var M;((M=this.data)==null?0:M.navigationEndpoint)&&!_.ny(_.Lf(H)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.cg(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.D5.Object.defineProperties(v6.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.voteCount)||_.Nh("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.p(this.data.backstageAttachment,N6z))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.p(this.data.backstageAttachment,XNH))}}});
v6.prototype.onYtServiceRequestCompleted=v6.prototype.onYtServiceRequestCompleted;v6.prototype.onYtServiceRequestSent=v6.prototype.onYtServiceRequestSent;v6.prototype.onYtCommentPollRevert=v6.prototype.onYtCommentPollRevert;v6.prototype.onYtCommentboxDismiss=v6.prototype.onYtCommentboxDismiss;v6.prototype.onYtNavigate=v6.prototype.onYtNavigate;v6.prototype.isLoadingChanged=v6.prototype.isLoadingChanged;v6.prototype.dataChanged=v6.prototype.dataChanged;v6.prototype.contentTextChanged=v6.prototype.contentTextChanged;
_.G([_.g(_.uQ),_.q("design:type",Object)],v6.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],v6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],v6.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],v6.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Object)],v6.prototype,"editDialog",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],v6.prototype,"roundedContainer",void 0);_.G([_.y(),_.q("design:type",Object)],v6.prototype,"isLoading",void 0);_.G([_.y({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.q("design:type",String)],v6.prototype,"surface",void 0);
_.G([_.y({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.q("design:type",Boolean)],v6.prototype,"usesCompactLockup",void 0);_.G([_.y({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],v6.prototype,"showWithoutToolbar",void 0);_.G([_.y({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.q("design:type",String)],v6.prototype,"attachment",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],v6.prototype,"isRichGrid",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],v6.prototype,"isRichGridRepost",void 0);_.G([_.y({reflectToAttribute:!0,value:_.S("use_better_post_dismissals")}),_.q("design:type",Boolean)],v6.prototype,"useBetterPostDismissals",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],v6.prototype,"reduceSidePaddings",void 0);
_.G([_.y({computed:"computeHasText(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],v6.prototype,"hasText",void 0);_.G([_.hG("#expander"),_.q("design:type",Object)],v6.prototype,"expander",void 0);_.G([_.hG("#action-buttons"),_.q("design:type",Object)],v6.prototype,"actionButtons",void 0);_.G([_.hG("#edit-dialog"),_.q("design:type",HTMLElement)],v6.prototype,"editDialogEl",void 0);
_.G([_.Ya("data.contentText"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],v6.prototype,"contentTextChanged",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],v6.prototype,"dataChanged",null);_.G([_.Ya("isLoading"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],v6.prototype,"isLoadingChanged",null);
_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],v6.prototype,"onYtNavigate",null);_.G([_.Gl("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],v6.prototype,"onYtCommentboxDismiss",null);_.G([_.Gl("yt-comment-poll-revert"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],v6.prototype,"onYtCommentPollRevert",null);
_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],v6.prototype,"onYtServiceRequestSent",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],v6.prototype,"onYtServiceRequestCompleted",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],v6.prototype,"voteCount",null);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],v6.prototype,"commentCount",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],v6.prototype,"hasPoll",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],v6.prototype,"hasUploadedVideo",null);_.G([_.dX({is:"ytd-post-renderer",disableElementRegistration:!0})],v6);
_.e(v6,"ytd-post-renderer",function(){if(edw!==void 0)return edw;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return edw=H},{mode:1});var mwm;var gHk;var Tt=function(){return _.B.apply(this,arguments)||this};
_.R(Tt,_.B);Tt.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Tt.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Tt.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.x0.YtdHorizontalListBehavior),_.q("design:type",Object)],Tt.prototype,"ytdHorizontalListBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Tt.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Tt.prototype,"data",void 0);
_.G([_.y({value:"$.items.children"}),_.q("design:type",String)],Tt.prototype,"itemsPath",void 0);_.G([_.y({value:1}),_.q("design:type",Number)],Tt.prototype,"initialCount",void 0);_.G([_.y({reflectToAttribute:!0,value:_.S("enable_community_page_on_desktop")}),_.q("design:type",Boolean)],Tt.prototype,"useSmallerPostImageAttachments",void 0);_.G([_.y(),_.q("design:type",String)],Tt.prototype,"surface",void 0);_.G([_.dX({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],Tt);
_.e(Tt,"ytd-post-multi-image-renderer",function(){if(gHk!==void 0)return gHk;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return gHk=H},{mode:2});var aPH={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"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"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
jL=function(){var H=_.B.apply(this,arguments)||this;H.hasInlineCommentSection=!1;H.editDialog=null;H.isLoading=!1;H.shouldHideAuthor=!1;H.shouldShowVideoTime=!1;H.isInEngagementPanel=!1;H.hideBorder=!1;H.usesFullLockup=!1;H.shouldShowMenuInCompactView=!1;H.JSC$15641_spinnerEl=null;H.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return H};
_.R(jL,_.B);_.X=jL.prototype;_.X.configureRendererStamper=function(){return aPH};
_.X.computeIsPollHeaderEnabled=function(H){return(H==null?void 0:H.pollMetadataIcon)!=null};
_.X.getPublishTimeStampString=function(H,U){U=new Date((Number(U)-60*((new Date).getTimezoneOffset()-(new Date(Number(U)*1E3)).getTimezoneOffset()))*1E3);U=(new nq(10)).format(U);if(H&&H.runs&&H.runs.length)for(var A=0;A<H.runs.length;A++)H.runs[A].text&&(H.runs[A].text=H.runs[A].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",U));return H};
_.X.created=function(){this.JSC$15641_spinnerEl=null};
_.X.contentTextChanged=function(){this.expander.reset()};
_.X.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var H;if((H=this.data)==null?0:H.actions){H=_.b(this.data.actions);for(var U=H.next();!U.done;U=H.next())this.openEditDialog(_.p(U.value,C6w))}};
_.X.handleSignalActionOpenPostCommentDialogAction=function(){_.c4(this.hostElement).querySelector("#action-buttons").reply()};
_.X.updatePoll=function(H,U){U&&this.set("data.pollMetadataVoteCountText",U);this.hasInlineCommentSection&&(H=H>=0,U=_.c4(this.hostElement).querySelector("#action-buttons"),H?U.reply():U.hideReplyDialog())};
_.X.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15641_spinnerEl||(this.JSC$15641_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.c4(this.hostElement).appendChild(this.JSC$15641_spinnerEl));this.JSC$15641_spinnerEl&&(this.JSC$15641_spinnerEl.active=this.isLoading)};
_.X.onYtNavigate=function(H){var U=this.get("updateCommentDialogEndpoint",H.detail.endpoint);U&&(this.openEditDialog(U),H.stopPropagation())};
_.X.onYtCommentboxDismiss=function(){this.editDialog=null};
_.X.onYtCommentPollRevert=function(H,U){U&&this.updatePoll(U.selectedChoiceIndex,U.totalVotes)};
_.X.onYtServiceRequestSent=function(H,U){H.stopPropagation();H=_.p(U.endpoint,GO2);if(_.p(U.endpoint,Y8K)||H&&!H.clientActions)this.isLoading=!0;if(U.actions)for(H=0;H<U.actions.length;H++){var A=U.actions[H],M=_.p(A,TV);M&&(A=this.get("updateBackstagePollAction.selectedChoiceIndex",A),A===void 0&&(A=-1),this.updatePoll(A,M.totalVotes))}};
_.X.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.X.openEditDialog=function(H){H&&H.dialog&&(this.editDialog=H.dialog,H=this.editDialogElement.firstElementChild)&&(H.focus(),H.openDialog&&H.openDialog())};
_.X.computeIsBodyHidden=function(H,U){return!!H||U};
_.D5.Object.defineProperties(jL.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var H=this.data,U=H.showPostAuthorBackgroundHighlight,A=H.postAuthorBadgeType,M=H.authorEndpoint;if(!U&&A!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&A!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var W,w,d;H=_.Nh(((W=H.authorText)==null?void 0:(w=W.runs)==null?void 0:(d=w[0])==null?void 0:d.text)||"");W=void 0;switch(A){case "POST_AUTHOR_BADGE_TYPE_ARTIST":W={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":W={iconType:U?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:H,authorEndpoint:M,authorCreator:U,icon:W}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var H,U;if((H=this.data)==null?0:(U=H.pollMetadataIcon)==null?0:U.iconType)return _.eq(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.voteCount)||_.Nh("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.p(this.data.backstageAttachment,N6z))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.p(this.data.backstageAttachment,wNK))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.p(this.data.backstageAttachment,XNH))}}});
jL.prototype.onYtServiceRequestCompleted=jL.prototype.onYtServiceRequestCompleted;jL.prototype.onYtServiceRequestSent=jL.prototype.onYtServiceRequestSent;jL.prototype.onYtCommentPollRevert=jL.prototype.onYtCommentPollRevert;jL.prototype.onYtCommentboxDismiss=jL.prototype.onYtCommentboxDismiss;jL.prototype.onYtNavigate=jL.prototype.onYtNavigate;jL.prototype.isLoadingChanged=jL.prototype.isLoadingChanged;jL.prototype.dataChanged=jL.prototype.dataChanged;jL.prototype.contentTextChanged=jL.prototype.contentTextChanged;
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],jL.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],jL.prototype,"rendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],jL.prototype,"rendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],jL.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.hG("#contentTextExpander"),_.q("design:type",Object)],jL.prototype,"expander",void 0);_.G([_.hG("#edit-dialog"),_.q("design:type",Element)],jL.prototype,"editDialogElement",void 0);_.G([_.y(),_.q("design:type",Object)],jL.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],jL.prototype,"hasInlineCommentSection",void 0);_.G([_.y(),_.q("design:type",Object)],jL.prototype,"editDialog",void 0);_.G([_.y(),_.q("design:type",Object)],jL.prototype,"isLoading",void 0);
_.G([_.y({computed:"computeIsPollHeaderEnabled(data)"}),_.q("design:type",Boolean)],jL.prototype,"isPollHeaderEnabled",void 0);_.G([_.y(),_.q("design:type",Object)],jL.prototype,"shouldHideAuthor",void 0);_.G([_.y(),_.q("design:type",Object)],jL.prototype,"shouldShowVideoTime",void 0);_.G([_.y(),_.q("design:type",Object)],jL.prototype,"isInEngagementPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jL.prototype,"hideBorder",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jL.prototype,"usesFullLockup",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jL.prototype,"shouldShowMenuInCompactView",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],jL.prototype,"authorCommentBadge",null);_.G([_.a("isInEngagementPanel"),_.q("design:type",Number),_.q("design:paramtypes",[])],jL.prototype,"postTextMaxLines",null);
_.G([_.a("data.icon.iconType"),_.q("design:type",Object),_.q("design:paramtypes",[])],jL.prototype,"pollIcon",null);_.G([_.Ya("data.contentText"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jL.prototype,"contentTextChanged",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jL.prototype,"dataChanged",null);
_.G([_.Ya("isLoading"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jL.prototype,"isLoadingChanged",null);_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],jL.prototype,"onYtNavigate",null);_.G([_.Gl("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jL.prototype,"onYtCommentboxDismiss",null);
_.G([_.Gl("yt-comment-poll-revert"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],jL.prototype,"onYtCommentPollRevert",null);_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],jL.prototype,"onYtServiceRequestSent",null);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],jL.prototype,"onYtServiceRequestCompleted",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],jL.prototype,"voteCount",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],jL.prototype,"commentCount",null);
_.G([_.a("data.backstageAttachment"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],jL.prototype,"hasPoll",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],jL.prototype,"hasQuiz",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],jL.prototype,"hasUploadedVideo",null);_.G([_.dX({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],jL);
_.e(jL,"ytd-backstage-post-renderer",function(){if(mwm!==void 0)return mwm;var H=document.createElement("template");_.E(H,'\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="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!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="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" 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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return mwm=H},{mode:1});var xwK;var Ij=function(){var H=_.B.apply(this,arguments)||this;H.editDialog=null;H.showExpandButton=!1;H.isRichGrid=!1;H.usesFullLockup=!1;return H};
_.R(Ij,_.B);_.X=Ij.prototype;_.X.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"}}}};
_.X.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.X.computeShowExpandButton=function(H){return this.usesCompactLockup||H&&H.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.X.computeUsesCompactLockup=function(H){return!!H.condensedContent};
_.X.computeShowFullContentText=function(H){return!H};
_.X.onYtNavigate=function(H){H=this.get("updateCommentDialogEndpoint",H.detail.endpoint);this.openEditDialog(H)};
_.X.onYtCommentboxDismiss=function(){this.editDialog=null};
_.X.openEditDialog=function(H){H&&H.dialog&&(this.editDialog=H.dialog,H=this.repostEditDialogEl.firstElementChild)&&(H.focus(),H.openDialog&&H.openDialog())};
_.X.onTap=function(H){if(this.data){var U=null;this.usesCompactLockup&&!_.ny(_.Lf(H)||[],this.hostElement,["YT-IMG-SHADOW"])?U=this.get("navigationEndpoint",this.data):H.target===this.moreButtonEl&&(U=this.get("navigationEndpoint",H.target.data));U&&_.cg(this.hostElement,"yt-navigate",{endpoint:U})}};
Ij.prototype.onYtCommentboxDismiss=Ij.prototype.onYtCommentboxDismiss;Ij.prototype.onYtNavigate=Ij.prototype.onYtNavigate;Ij.prototype.dataChanged=Ij.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Ij.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ij.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Object)],Ij.prototype,"editDialog",void 0);_.G([_.y({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Ij.prototype,"usesCompactLockup",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ij.prototype,"showExpandButton",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ij.prototype,"isRichGrid",void 0);
_.G([_.y({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Ij.prototype,"showFullContentText",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ij.prototype,"usesFullLockup",void 0);_.G([_.hG("#more"),_.q("design:type",Object)],Ij.prototype,"moreButtonEl",void 0);_.G([_.hG("#repost-content-text"),_.q("design:type",HTMLElement)],Ij.prototype,"repostContentTextEl",void 0);
_.G([_.hG("#repost-edit-dialog"),_.q("design:type",HTMLElement)],Ij.prototype,"repostEditDialogEl",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ij.prototype,"dataChanged",null);_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Ij.prototype,"onYtNavigate",null);
_.G([_.Gl("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ij.prototype,"onYtCommentboxDismiss",null);_.G([_.dX({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Ij);
_.e(Ij,"ytd-shared-post-renderer",function(){if(xwK!==void 0)return xwK;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return xwK=H},{mode:1});var zun;var C5m;var Q2=function(){return _.B.apply(this,arguments)||this};
_.R(Q2,_.B);Q2.prototype.attached=function(){var H=this;this.networkStatusManager||(this.networkStatusManager=new _.xB,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){H.onlineHandler()}))};
Q2.prototype.detached=function(){var H=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){H.onlineHandler()}),delete this.networkStatusManager)};
Q2.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Q2.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Q2.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Q2);
_.e(Q2,"ytd-reload-page-button-renderer",function(){if(C5m!==void 0)return C5m;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
return C5m=H},{mode:1});var tFn={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"},V2=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.R(V2,_.B);_.X=V2.prototype;_.X.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.X.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.X.computeHasBodyText=function(H){return!!H.bodyText};
_.X.computeButtons=function(H){var U=[];H.ctaButton&&U.push(H.ctaButton);H.secondaryButton&&U.push(H.secondaryButton);return U};
_.X.computeRendererStyle=function(H){return H.style?H.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():H.icon?"":"no-icon"};
_.X.getIconName=function(H,U){U=U===void 0?!1:U;if(H===void 0)return"";H=this.get("icon.iconType",H);var A;_.S("enable_hlp_client_icon_pick")?A=this.getThemedIcon(H,U):A=H;(U=tFn[A])||(U="yt-icons");return[U,A].join(":")};
_.X.getThemedIcon=function(H,U){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(H)?U?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(H)?U?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":H};
_.X.isThumbnail=function(H){return!!H.thumbnail};
_.X.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.X.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],V2.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],V2.prototype,"data",void 0);
_.G([_.y({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.q("design:type",String)],V2.prototype,"rendererStyle",void 0);_.G([_.y({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.q("design:type",String)],V2.prototype,"iconName",void 0);_.G([_.y({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],V2.prototype,"thumbnail",void 0);_.G([_.y({computed:"computeButtons(data)"}),_.q("design:type",Array)],V2.prototype,"buttons",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],V2.prototype,"isDarkTheme",void 0);_.G([_.y({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],V2.prototype,"hasBodyText",void 0);_.G([_.dX({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],V2);
_.ty()(V2,"ytd-background-promo-renderer",function(){if(zun===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);zun=H}H=zun;return H},{allowedProps:["data"],
mode:1});var cXy;var HB=function(){return _.B.apply(this,arguments)||this};
_.R(HB,_.B);_.D5.Object.defineProperties(HB.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M,W,w;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(H=this.data)==null?void 0:(U=H.thumbnail)==null?void 0:U.sampledThumbnailColor,vibrantColorPalette:(A=this.data)==null?void 0:(M=A.thumbnail)==null?void 0:M.vibrantColorPalette,darkColorPalette:(W=this.data)==null?void 0:(w=W.thumbnail)==null?void 0:w.darkColorPalette,experimentEnabled:!0}}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],HB.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],HB.prototype,"collectionStack",null);_.G([_.dX({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],HB);
_.e(HB,"ytd-compact-station-renderer",function(){if(cXy!==void 0)return cXy;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return cXy=H},{mode:1});var yXg;var Uq=function(){var H=_.B.apply(this,arguments)||this;H.isRichGrid=!1;return H};
_.R(Uq,_.B);Uq.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]]"}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Uq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Uq.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Uq.prototype,"isRichGrid",void 0);_.G([_.dX({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],Uq);
_.e(Uq,"ytd-grid-channel-renderer",function(){if(yXg!==void 0)return yXg;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return yXg=H},{mode:1});var BRp;var A_=function(){return _.B.apply(this,arguments)||this};
_.R(A_,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],A_.prototype,"data",void 0);_.G([_.dX({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],A_);
_.e(A_,"ytd-grid-movie-playlist-renderer",function(){if(BRp!==void 0)return BRp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return BRp=H},{mode:1});var rXy;var Mk=function(){var H=_.B.apply(this,arguments)||this;H.downloadProgress=0;H.transferState="TRANSFER_STATE_UNKNOWN";H.modernButtons=_.S("web_modern_buttons");return H};
_.R(Mk,_.B);Mk.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Mk.prototype.configureRendererStamper=function(){return{"data.menu":T4}};
Mk.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Mk.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.S("woffle_playlist_renderer_killswitch")){var H,U=$xE(this.entityInfo,this.transferState,this.downloadProgress,(H=this.data)==null?void 0:H.playlistId,this.isOnline);H=U.viewPlaylistText;var A=U.badges;U=U.thumbnailOverlays;this.isDownloads=!!H||!!A;this.set("data.viewPlaylistText",H);A&&A.length>0&&this.set("data.badges",A);U&&U.length>0&&this.set("data.thumbnailOverlays",
U)}};
_.D5.Object.defineProperties(Mk.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 H;return!((H=this.data)==null?0:H.menu)}}});
Mk.prototype.transferStateChanged=Mk.prototype.transferStateChanged;Mk.prototype.dataChanged=Mk.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.PA),_.q("design:type",Object)],Mk.prototype,"ytdLockupBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Mk.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Mk.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.y({selector:_.LEK,selectorArgs:["data.playlistId"]}),_.q("design:type",Object)],Mk.prototype,"downloadProgress",void 0);_.G([_.y({selector:_.uE,selectorArgs:["data.playlistId"]}),_.q("design:type",Object)],Mk.prototype,"transferState",void 0);_.G([_.y({selector:pAh,selectorArgs:["data.playlistId"]}),_.q("design:type",Object)],Mk.prototype,"entityInfo",void 0);_.G([_.y({selector:_.d1}),_.q("design:type",Boolean)],Mk.prototype,"isOnline",void 0);
_.G([_.y(),_.q("design:type",Object)],Mk.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Mk.prototype,"downloadRenderData",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Mk.prototype,"modernButtons",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Mk.prototype,"isDownloads",void 0);_.G([_.a("transferState"),_.y({reflectToAttribute:!0}),_.q("design:type",String),_.q("design:paramtypes",[])],Mk.prototype,"downloadState",null);
_.G([_.a("data"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Mk.prototype,"menuHidden",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Mk.prototype,"dataChanged",null);_.G([_.jk("transferState","downloadProgress","isOnline"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Mk.prototype,"transferStateChanged",null);
_.G([_.dX({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Mk);
_.e(Mk,"ytd-grid-playlist-renderer",function(){if(rXy!==void 0)return rXy;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return rXy=H},{mode:1});var euK;var WB=function(){return _.B.apply(this,arguments)||this};
_.R(WB,_.B);WB.prototype.configureRendererStamper=function(){return{"data.menu":T4,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.D5.Object.defineProperties(WB.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M,W,w;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(H=this.data)==null?void 0:(U=H.thumbnail)==null?void 0:U.sampledThumbnailColor,vibrantColorPalette:(A=this.data)==null?void 0:(M=A.thumbnail)==null?void 0:M.vibrantColorPalette,darkColorPalette:(W=this.data)==null?void 0:(w=W.thumbnail)==null?void 0:w.darkColorPalette,experimentEnabled:!0}}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],WB.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.PA),_.q("design:type",Object)],WB.prototype,"ytdLockupBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],WB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],WB.prototype,"data",void 0);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],WB.prototype,"collectionStack",null);_.G([_.dX({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],WB);
_.e(WB,"ytd-grid-radio-renderer",function(){if(euK!==void 0)return euK;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return euK=H},{mode:1});var Dww;var wo=function(){return _.B.apply(this,arguments)||this};
_.R(wo,_.B);wo.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
wo.prototype.computeNavigationEndpoint=function(H){return Fg8(H==null?void 0:H.navigationEndpoint)};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],wo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.PA),_.q("design:type",Object)],wo.prototype,"ytdLockupBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],wo.prototype,"data",void 0);_.G([_.y({computed:"computeNavigationEndpoint(data)"}),_.q("design:type",Object)],wo.prototype,"computedNavigationEndpoint",void 0);
_.G([_.dX({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],wo);
_.e(wo,"ytd-grid-show-renderer",function(){if(Dww!==void 0)return Dww;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Dww=H},{mode:1});var $wh;_.Xu=function(H){this.playerClient=H};
_.lPy=function(H,U,A){A=A===void 0?{}:A;return H.playerClient.setOption("ad",U,A)};
_.Xu.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Xu.prototype.executeCommand=function(H,U){this.getOptions().includes("executeCommand")?_.lPy(this,"executeCommand",{command:H,layoutId:U}):_.Kl("Calling executeCommand when adModule is not loaded")};var ik=function(){return _.B.apply(this,arguments)||this};
_.R(ik,_.B);ik.prototype.getLayoutId=function(){var H=_.tr("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.layoutId:null};
ik.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var H=_.Ly(),U=this.getLayoutId(),A=this.data.clickthroughEndpoint;H&&U&&_.S("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?H.getPlayerPromise().then(function(M){(new _.Xu(M)).executeCommand(A,U)}):_.cg(this.hostElement,"yt-navigate",{endpoint:A})}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ik.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ik.prototype,"data",void 0);_.G([_.dX({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],ik);
_.e(ik,"ytd-shopping-companion-item-renderer",function(){if($wh!==void 0)return $wh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return $wh=H},{mode:1});var GEK;var bk=function(){var H=_.B.apply(this,arguments)||this;H.isExpandableContent=!1;return H};
_.R(bk,_.B);_.D5.Object.defineProperties(bk.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return((H=this.data)==null?void 0:H.price)||((U=this.data)==null?void 0:(A=U.dealsData)==null?void 0:A.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var H,U;if((H=this.data)!=null&&H.dealsData&&((U=this.data)==null||!U.priceReplacementText)){H=this.data.dealsData;var A,M,W;return((A=H.salesData)==null?void 0:A.originalPrice)||((M=H.priceDropData)==null?void 0:M.referencePrice)||((W=H.promotionData)==null?void 0:W.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var H,U;return(H=this.data)==null?void 0:(U=H.dealsData)==null?void 0:U.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],bk.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],bk.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],bk.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],bk.prototype,"isExpandableContent",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],bk.prototype,"showCta",null);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],bk.prototype,"ctaText",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],bk.prototype,"hasPriceTopPosition",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],bk.prototype,"hasPriceBottomPosition",null);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],bk.prototype,"useNewStyle",null);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],bk.prototype,"showPriceReplacementText",null);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],bk.prototype,"priceValue",null);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],bk.prototype,"showDeal",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],bk.prototype,"showAffiliateDisclaimer",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],bk.prototype,"useSaleStyle",null);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],bk.prototype,"useFromBrandCtaStyle",null);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],bk.prototype,"useFromVendorCtaStyle",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],bk.prototype,"useShoppingCollectionCtaStyle",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],bk);
_.e(bk,"ytd-vertical-product-card-renderer",function(){if(GEK!==void 0)return GEK;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return GEK=H},{mode:1});var Ytm;var Oq=function(){return _.B.apply(this,arguments)||this};
_.R(Oq,_.B);Oq.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Oq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.PA),_.q("design:type",Object)],Oq.prototype,"ytdLockupBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Oq.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],Oq);
_.e(Oq,"ytd-grid-movie-renderer",function(){if(Ytm!==void 0)return Ytm;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Ytm=H},{mode:1});var qt2;var uk=function(){var H=_.B.apply(this,arguments)||this;H.roundedFix=_.S("web_enable_merch_item_rounding_fix");H.itemStyle="small-item";return H};
_.R(uk,_.B);uk.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var H,U,A,M,W=(U=_.p((H=this.data)==null?void 0:H.buttonCommand,_.B3n))==null?void 0:(A=U.item)==null?void 0:(M=A.notificationTextRenderer)==null?void 0:M.successResponseText;W&&_.oqc(this.hostElement,W)}};
_.D5.Object.defineProperties(uk.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.data)==null?void 0:H.isProductPlaceholder)!==void 0&&((U=this.data)==null?void 0:U.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.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}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],uk.prototype,"ytRendererBehavior",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],uk.prototype,"roundedFix",void 0);_.G([_.y(),_.q("design:type",Object)],uk.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],uk.prototype,"itemStyle",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],uk.prototype,"hasPrice",null);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],uk.prototype,"hasPriceReplacementText",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],uk.prototype,"hasAdditionalFeesText",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],uk.prototype,"hasAffiliateDisclaimer",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],uk.prototype,"isProductPlaceholder",null);
_.G([_.y(),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],uk.prototype,"hideOpenInNewIcon",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],uk.prototype,"ariaLabel",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],uk);
_.e(uk,"ytd-merch-shelf-item-renderer",function(){if(qt2!==void 0)return qt2;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return qt2=H},{mode:1});_.LG(_.r(function(H){return _.Z("button-card-view-model",{el:_.sB(_.Wq(function(){return H.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return H.data().title},
role:"button"},_.Z(_.zm,{model:{}}),_.Z("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.Z("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.Z(_.K,{cond:function(){return H.data().image},
then:function(U){return _.Z(_.nG,{data:U,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.Z("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return H.data().title})))},"kc"),"button-card-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){H=_.Ec(H,{className:void 0});var U=H.data;H=H.className;var A=_.Ja(function(){return U().onTapCommand},void 0,"SXkP9e");
return _.Z("ytd-shopping-item-card",{class:_.CG("ytdShoppingItemCardHost",H)},_.Z(_.xy,{command:A,className:"ytdShoppingItemCardHostLink"},_.Z("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.Z(_.YY,{data:function(){return U().thumbnailViewModel}},{thumbnailViewModel:function(M){return _.Z(zt,{data:M.data,
aspectRatio:3})}})),_.Z("div",null,_.Z("p",{class:"ytdShoppingItemCardHostItemTitle"},_.Z(_.Pb,{text:function(){return U().itemTitle}})),_.Z("p",{class:"ytdShoppingItemCardHostPrice"},_.Z(_.Pb,{text:function(){return U().priceOrStatus}})))))},"lc"),"ytd-shopping-item-card",{props:{data:_.sY,
className:_.sY}});var huz={isAdsVideo:!0},kEH={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},vH2={showPlayerControls:!1,videoPreviewDurationMs:15E3},TRk={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},j7h={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var Fd=null,FsE={};var nq4="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(" "),ZC={},Nt4=(ZC.FEwhat_to_watch="home",ZC.FEhashtag="hashtag",ZC.FEtrending="trending",ZC.FEhistory="history",ZC.SPunlimited="premium",ZC.FEmemberships_and_purchases="paid_memberships",ZC.SPredeem_code="redeem",ZC.SPverify_location="locate",ZC.SPminor_moment="minor_moment",
ZC.FEmini_app_container="mini_app",ZC.FEnews_destination="news",ZC.SPopen_in_app="open_in_app",ZC.FEexplore="explore",ZC.FEsubscriptions="subscriptions",ZC.FEsfv_audio_pivot="sfv_audio_pivot",ZC.FEplaylist_aggregation="playlist_aggregation",ZC);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");_.DH("init");var IPK,Q7K,Hbw,Adw,VFw;IPK=function(){};
_.U3k=_.r(function(H){var U=H.data;var A=H.inlineMetadata;var M=H.aspectRatio;var W=H.scrimStyle;var w=H.className;var d=H.useDefaultStyle;var O=H.titleStyle;var f=new IPK,J=_.S("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",F=_.Ja(function(){return(d==null?0:d())?J==="SHORTS_LOCKUP_STYLE_SLIM":U().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),P=_.Ja(function(){return _.an(A)||F()||!1},void 0,"SEL6Qd"),n=function(){return(W==null?void 0:
W())!==void 0?W==null?void 0:W():1},N=_.Ja(function(){return U().belowThumbnailMetadata||!P()},void 0,"KAqk1b");
H=_.eD({visibilityCallback:function(WF){var dK=U().onFirstVisible;WF&&dK&&_.uj(dK)},
showOption:{calledOnce:!0,state:"visible"}});var L=_.sB(),m={},z=_.CG(function(){return F(),"shortsLockupViewModelHostThumbnailContainer"},(m.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.an(M)===1},m.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.an(M)===2},m.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.S("web_shorts_2_by_3_lockups_study")&&!_.S("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
m)),c=_.Ja(function(){if(_.an(M)===1)return 1;
_.an(M);return 2},void 0,"Bg5Es"),C,v=function(){if(f){var WF;
(WF=C)==null||Ri(WF);var dK;if(f.hostElement&&((dK=f.data)==null?0:dK.inlinePlayerData)){var SN,o_;WF=((SN=f.data)==null?0:(o_=SN.inlinePlayerData)==null?0:o_.enableAudioControl)?Object.assign({},j7h):Object.assign({},TRk);var PF,BF;((PF=f.data)==null?void 0:(BF=PF.inlinePlayerData)==null?void 0:BF.maxPlaybackLengthSec)!==void 0&&(WF.videoPreviewDurationMs=f.data.inlinePlayerData.maxPlaybackLengthSec*1E3);C=iA({mediaRenderer:f,lockupElement:f.hostElement,thumbnailElement:L.value,videoPreviewOpts:WF})}}};
_.Em(function(){f&&(f.data=U(),v())},"wo9C7e");
var Y=_.Ja(function(){return U().thumbnail},void 0,"haijYd");
m=_.Ja(function(){return U().badge},void 0,"RpDeSe");
var D=_.Ja(function(){return U().onTap},void 0,"hOfuOb"),h={},T={};
return _.Z("ytm-shorts-lockup-view-model",{el:_.sB(function(WF){f&&(f.hostElement=WF)},v,H),
class:_.CG("shortsLockupViewModelHost",w)},_.Z(_.ve,null,_.Z(_.xy,{command:D,className:_.CG("shortsLockupViewModelHostEndpoint",(h.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!N()},h),"reel-item-endpoint",""),
ariaHidden:function(){return!P()},
tabIndex:function(){return P()?0:-1}},_.Z("div",{el:L,
class:_.CG("shortsLockupViewModelHostThumbnailParentContainer",(T.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!F()},T))},_.Z(_.K,{cond:Y,
then:function(){return _.Z("div",{class:z},_.Z(_.nG,{data:function(){var WF;return(WF=Y==null?void 0:Y())!=null?WF:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.Z(_.YY,{data:function(){return U().thumbnailViewModel}},{thumbnailViewModel:function(WF){return _.Z(zt,{data:WF.data,
aspectRatio:function(){return c()},
disableRounding:function(){return F()}})}}),null),_.Z(_.K,{cond:P,
then:function(){return _.Z(Q7K,{data:U,scrimStyle:n,useDefaultStyle:d,titleStyle:O})}}),_.Z(_.YY,{data:m},{badgeViewModel:function(WF){return _.Z(_.Ed,{data:WF.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.Z(_.K,{cond:function(){return P()&&U().menuOnTap},
then:function(){return _.Z(VFw,{data:U,inlineMetadata:!0})}}),_.Z(_.K,{cond:N,
then:function(){return _.Z(Hbw,{data:U,useDefaultStyle:d,inlineMetadata:P})}})))},"nc");
Q7K=_.r(function(H){var U=H.data;var A=H.scrimStyle;var M=H.useDefaultStyle;var W=H.titleStyle;var w=_.S("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",d=M&&_.S("web_hide_primary_text_for_pivot_panel"),O=_.Ja(function(){return(M==null?0:M())?w==="SHORTS_LOCKUP_STYLE_SLIM":U().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
H={};H=_.CG("shortsLockupViewModelHostInlineMetadata",(H.shortsLockupViewModelHostMetadataRounded=function(){return!O()},H.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(A==null?void 0:A())===3&&!_.S("enable_shorts_lockup_new_scrim")},H.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(A==null?void 0:A())===3&&_.S("enable_shorts_lockup_new_scrim")},H.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(A==null?void 0:A())===2||(A==null?void 0:
A())===4},H.shortsLockupViewModelHostShowOverPlayer=function(){return!0},H),"image-overlay-text");
var f={};return _.Z("div",{class:H},_.Z("h3",{class:_.CG("shortsLockupViewModelHostMetadataTitle",(f.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(A==null?void 0:A())===4},f.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return U().belowThumbnailMetadata},f.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(W==null?void 0:W())===1},f.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(W==null?void 0:W())===2},f)),
"aria-label":function(){return U().accessibilityText}},_.Z(_.K,{cond:function(){var J;
return!((J=U().overlayMetadata)==null||!J.primaryText)&&!d},
then:function(){return _.Z(_.Pb,{text:function(){var J;return(J=U().overlayMetadata)==null?void 0:J.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.Z(_.K,{cond:function(){var J;
return(J=U().overlayMetadata)==null?void 0:J.secondaryText},
then:function(){return _.Z(Adw,{data:U,scrimStyle:A,className:void 0})}}))},"oc");
Hbw=_.r(function(H){var U=H.data;var A=H.useDefaultStyle;var M=H.inlineMetadata;var W=_.S("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",w=_.Ja(function(){return(A==null?0:A())?W==="SHORTS_LOCKUP_STYLE_SLIM":U().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),d=_.sB(),O;
H=_.c$(function(N){if(_.Uy(_.Hq(N),d.value,["AVATAR-VIEW-MODEL"]))return!1;var L;(L=O)==null||L.click();return!1});
var f=_.Ja(function(){return U().belowThumbnailMetadata||U().overlayMetadata},void 0,"GwezKf"),J=function(){return U().menuOnTap&&!M()},F=function(){var N;
return(N=f())==null?void 0:N.avatar},P={},n={};
return _.Z("div",{class:_.CG(function(){return w()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(P.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!F()},P.shortsLockupViewModelHostOutsideMetadataHasMenu=J,P)),
"on:click":H,el:d,role:"presentation"},_.Z(_.YY,{data:F},{avatarViewModel:function(N){return _.Z(_.dU,{data:N.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.Z("div",null,_.Z("h3",{class:_.CG("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(n.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var N,L;
return!((N=f())==null?0:(L=N.primaryText)==null?0:L.content)},n.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=M,n)),
role:"presentation"},_.Z(_.xy,{ref:function(N){return void(O=N)},
command:function(){return U().onTap},
className:_.CG("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var N,L;return(N=f())==null?void 0:(L=N.primaryText)==null?void 0:L.content},
"aria-label":function(){return U().accessibilityText}},_.Z(_.K,{cond:function(){var N;
return(N=f())==null?void 0:N.primaryText},
then:function(N){return _.Z(_.Pb,{text:N,noEndpoints:!0,noStyleRuns:!0})}}))),_.Z(_.K,{cond:function(){var N;
return(N=f())==null?void 0:N.secondaryText},
then:function(N){return _.Z("div",{class:_.CG("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.Z(_.Pb,{text:N,noStyleRuns:!0}))}})),_.Z(_.K,{cond:J,
then:function(){return _.Z(VFw,{data:U,inlineMetadata:!1})}}))},"pc");
Adw=_.r(function(H){var U=H.data;var A=H.scrimStyle;H=H.className;var M={};return _.Z("div",{class:_.CG((M.shortsLockupViewModelHostMetadataSubhead=function(){return(A==null?void 0:A())!==4},M.shortsLockupViewModelHostMetadataSubheadNew=_.S("enable_shorts_lockup_new_scrim"),M.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(A==null?void 0:A())===4},M),H),
"aria-hidden":"true"},_.Z(_.Pb,{text:function(){var W;return(W=U().overlayMetadata)==null?void 0:W.secondaryText},
noStyleRuns:!0}))},"qc");
VFw=_.r(function(H){var U=H.data;var A=H.inlineMetadata;H={};H=_.CG((H.shortsLockupViewModelHostInlineMetadataMenu=function(){return A()},H.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!A()},H.shortsLockupViewModelHostShowOverPlayer=function(){return!0},H),"image-overlay-text");
return _.Z("div",{class:H},_.Z(_.cb,{data:function(){return{style:A()?"overlay":"mono",accessibilityLabel:U().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(M){M.preventDefault();M.stopPropagation();var W=_.dA({elementsCommand:U().menuOnTap,forceNewState:!0});if(W==null?0:W.onclick)W.onclick(M)}}},
iconName:"MORE_VERT"}))},"rc");var MSg=_.r(function(H){var U=H.data;var A=H.inlineMetadata;var M=H.aspectRatio;var W=H.scrimStyle;var w=H.className;var d=H.useDefaultStyle;H=_.Ja(function(){var O=U().entityId;return O?O.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.Z("ytm-shorts-lockup-view-model-v2",{class:_.CG("shortsLockupViewModelHost",w)},_.Z(_.D8,{contentId:H,aspectRatio:function(){return(M==null?void 0:M())===1?1:(M==null?void 0:M())===2?2:4}},function(){return _.Z(_.U3k,{data:U,
inlineMetadata:A,aspectRatio:M,scrimStyle:W,className:w,useDefaultStyle:d})}))},"sc");_.LG(MSg,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Ne,inlineMetadata:_.Ne,aspectRatio:_.Ne,scrimStyle:_.Ne,className:_.Ne,useDefaultStyle:_.Ne,titleStyle:_.Ne}});var Wkk=16/9*210,fQ=function(){var H=_.B.apply(this,arguments)||this;H.isExpandableContent=!1;H.hideShelfHeader=!1;H.engagementPanel=!1;H.buttonClasses=["arrow"];H.isSearch=!1;H.disableScrollEventListener=!1;H.containsLockup=!1;H.overrideArrowPositionForProductCard=!1;H.overrideArrowPositionForShoppingItemCard=!1;H.overrideArrowPositionForReelItems=!1;H.overrideArrowPositionForGridMovie=!1;H.overrideArrowPositionToCenter=!1;H.isSearchPostShelf=!1;H.overrideArrowPositionForMixedShelf=!1;H.overrideArrowPositionForMixedShelfShortsOnly=
!1;H.hasBigThumbsReelItems=!1;H.shouldUseMixedListHeight=!1;H.shouldUseShortsListHeight=!1;H.gridVideoWidth=0;H.isSearchVodShelf=!1;H.disableWheelScroll=!1;H.sizing="COMPACT";H.shortsLockupAspectRatio=0;return H};
_.R(fQ,_.B);_.X=fQ.prototype;
_.X.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",
compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",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]]"}}}}};
_.X.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.S("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.X.computeInitialCountNumber=function(H){if(!H)return 6;var U=H.items.some(function(w){return!!w.topicRecommendationsChipRenderer}),A=H.items.some(function(w){return!!w.displayAdRenderer}),M=this.computeShouldListItemsHaveEqualHeight(H),W=H.items.some(function(w){return!!w.gridPlaylistRenderer});
H=H.items.some(function(w){return!!w.shoppingItemCardViewModel});
return U?9:A?8:W||M?10:H?7:6};
_.X.computeContainsPost=function(H){return!!H&&!!H.items&&H.items.some(function(U){return!!U.postRenderer})};
_.X.computeContainsLockup=function(){if(_.S("web_horizontal_list_lockup_arrow_killswitch"))return!1;var H,U;return(H=this.data)==null?void 0:(U=H.items)==null?void 0:U.some(function(A){return!!A.lockupViewModel})};
_.X.maybeUpdateLockupAspectRatio=function(){var H,U;if(this.computeContainsLockup()&&((H=this.data)==null?0:(U=H.items)==null?0:U.length)){var A;H=qwh((A=this.data.items[0].lockupViewModel)==null?void 0:A.contentType,this.data.force16By9ThumbnailAspectRatio);A=qVF(H);A=this.computeLockupWidth()/A;_.Dt(this.hostElement,{"--yt-horizontal-list-content-height":A+"px"})}};
_.X.computeOverrideArrowPositionForProductCard=function(H){if(this.isExpandableContent)return!1;var U;return!!(H==null?0:(U=H.items)==null?0:U.some(function(A){return!!A.verticalProductCardRenderer}))};
_.X.computeOverrideArrowPositionForShoppingItemCard=function(H){var U;return!!(H==null?0:(U=H.items)==null?0:U.some(function(A){return!!A.shoppingItemCardViewModel}))};
_.X.computeOverrideArrowPositionForReelItemRenderer=function(H){return this.containsReelItemRenderer(H)};
_.X.computeHasBigThumbsReelItems=function(H,U){return H&&this.containsReelItemRenderer(U)};
_.X.computeShouldListItemsHaveEqualHeight=function(H){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(H==null?void 0:H.itemSizeConstraint)};
_.X.computeShouldListItemsHaveShortsHeight=function(H){return this.computeShouldListItemsHaveEqualHeight(H)&&!this.containsGridVideoRenderer(H)};
_.X.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.X.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.X.containsReelItemRenderer=function(H){var U;return!!(H==null?0:(U=H.items)==null?0:U.some(function(A){return!(!A.reelItemRenderer&&!A.shortsLockupViewModel)}))};
_.X.containsGridVideoRenderer=function(H){var U;return!!(H==null?0:(U=H.items)==null?0:U.some(function(A){return!!A.gridVideoRenderer||!!A.lockupViewModel}))};
_.X.computeContainsGridMovieRenderer=function(H){var U;return!!(H==null?0:(U=H.items)==null?0:U.some(function(A){return!!A.gridMovieRenderer}))};
_.X.computeOverrideArrowPositionToCenter=function(H){return this.computeIsSearchPostShelf(H)};
_.X.computeIsSearchPostShelf=function(H){var U;return!!(H==null?0:(U=H.items)==null?0:U.some(function(A){var M,W;return((W=(M=A.postRenderer)==null?void 0:M.surface)!=null?W:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.X.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(H){var U;return!!(H==null?0:(U=H.items)==null?0:U.some(function(A){var M,W,w;return((w=(M=A.backgroundPromoRenderer)==null?void 0:(W=M.style)==null?void 0:W.value)!=null?w:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.X.computeIsSearchVodShelf=function(H,U){return H&&this.containsGridVideoRenderer(U)};
_.X.computeDisableWheelScroll=function(H,U){return this.computeIsSearchVodShelf(H,U)};
_.X.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.X.computeShortsLockupAspectRatio=function(){return 1};
_.X.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Dt(this.hostElement,{"--ytd-reel-item-thumbnail-height":Wkk+"px"})};
fQ.prototype.dataChanged=fQ.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],fQ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.x0.YtdHorizontalListBehavior),_.q("design:type",Object)],fQ.prototype,"ytdHorizontalListBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],fQ.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Object)],fQ.prototype,"isExpandableContent",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"hideShelfHeader",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"engagementPanel",void 0);_.G([_.y(),_.q("design:type",Array)],fQ.prototype,"buttonClasses",void 0);_.G([_.y(),_.q("design:type",Object)],fQ.prototype,"isSearch",void 0);
_.G([_.y(),_.q("design:type",Object)],fQ.prototype,"disableScrollEventListener",void 0);_.G([_.y({computed:"computeInitialCountNumber(data)"}),_.q("design:type",Number)],fQ.prototype,"initialCount",void 0);_.G([_.y({computed:"computeContainsPost(data)"}),_.q("design:type",Boolean)],fQ.prototype,"supportComponentResize",void 0);_.G([_.y({computed:"computeContainsPost(data)"}),_.q("design:type",Boolean)],fQ.prototype,"containsPost",void 0);
_.G([_.y({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"containsLockup",void 0);_.G([_.y({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],fQ.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.G([_.y({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"overrideArrowPositionForProductCard",void 0);_.G([_.y({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.G([_.y({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"overrideArrowPositionForReelItems",void 0);_.G([_.y({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"overrideArrowPositionForGridMovie",void 0);
_.G([_.y({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"overrideArrowPositionToCenter",void 0);_.G([_.y({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"isSearchPostShelf",void 0);_.G([_.y({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.G([_.y({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.G([_.y({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"hasBigThumbsReelItems",void 0);
_.G([_.y({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"shouldUseMixedListHeight",void 0);_.G([_.y({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"shouldUseShortsListHeight",void 0);_.G([_.y({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"gridVideoWidth",void 0);
_.G([_.y({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"isSearchVodShelf",void 0);_.G([_.y({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.q("design:type",Object)],fQ.prototype,"disableWheelScroll",void 0);_.G([_.y({computed:"computeSizing(isSearch)"}),_.q("design:type",Object)],fQ.prototype,"sizing",void 0);
_.G([_.y({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.q("design:type",Object)],fQ.prototype,"shortsLockupAspectRatio",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fQ.prototype,"dataChanged",null);
_.e(fQ,"yt-horizontal-list-renderer",function(){if(Qep===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);Qep=H}H=Qep;return H},{mode:1});var wG3=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
wG3.prototype.subscribe=function(H,U){var A=this.subscriptions.get(H);if(!A)return function(){};
A.add(U);return function(){A.delete(U)}};
wG3.prototype.unsubscribe=function(H,U){(H=this.subscriptions.get(H))&&H.delete(U)};
wG3.prototype.publish=function(H,U){U=U===void 0?{}:U;(H=this.subscriptions.get(H))&&H.forEach(function(A){A(U)})};var XGw;var ibw=[10,12,14,16,18,20,24,28,32,36],bbr=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],J_=function(){var H=_.B.apply(this,arguments)||this;H.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";H.hideOverflow=!1;H.useRoboto=!1;H.fontClass="";H.overflown=!1;H.actionMap={"yt-window-resized":"resize"};return H};
_.R(J_,_.B);_.X=J_.prototype;
_.X.attached=function(){var H=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();_.rV(this,function(){H.resize()});
if(!_.Bu){var U,A,M;(U=document)==null||(A=U.fonts)==null||(M=A.ready)==null||M.then(function(){H.resize()})}};
_.X.dataChanged=function(){this.resize()};
_.X.guideIsExpandedChanged=function(){this.resize()};
_.X.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 H=this.getMaxNumLines(),U=this.getMinFont(),A=this.getMaxFont(),M=this.useRoboto?ibw:bbr;for(M=M.filter(function(w){return w<=A&&w>=U});M.length>1;){var W=Math.floor(M.length/2);
this.updateFontSize(M[W]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=H)M=M.slice(W,M.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>H)M=M.slice(0,W);else break}this.updateFontSize(M[M.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(H)}};
_.X.handleOverflow=function(H){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>H&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",H.toString()))};
_.X.updateFontSize=function(H){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+H;this.textNode.classList.add(this.fontClass)};
_.X.getMaxFont=function(){var H=this.useRoboto?ibw:bbr;H=H[H.length-1];return this.maxFontSize&&this.maxFontSize<=H?this.maxFontSize:H};
_.X.getMinFont=function(){var H=(this.useRoboto?ibw:bbr)[0];return this.minFontSize&&this.minFontSize>=H?this.minFontSize:H};
_.X.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.X.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.X.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.Sp(this.text).split("\n").length-1:Infinity};
_.X.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("Lh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
J_.prototype.guideIsExpandedChanged=J_.prototype.guideIsExpandedChanged;J_.prototype.dataChanged=J_.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],J_.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],J_.prototype,"actionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],J_.prototype,"text",void 0);
_.G([_.y(),_.q("design:type",String)],J_.prototype,"fontFamily",void 0);_.G([_.y(),_.q("design:type",Number)],J_.prototype,"maxWidth",void 0);_.G([_.y(),_.q("design:type",Number)],J_.prototype,"maxHeight",void 0);_.G([_.y(),_.q("design:type",Number)],J_.prototype,"maxFontSize",void 0);_.G([_.y(),_.q("design:type",Number)],J_.prototype,"minFontSize",void 0);_.G([_.y(),_.q("design:type",Number)],J_.prototype,"maxLines",void 0);_.G([_.y(),_.q("design:type",Object)],J_.prototype,"hideOverflow",void 0);
_.G([_.y({selector:_.u37}),_.q("design:type",Boolean)],J_.prototype,"guideIsExpanded",void 0);_.G([_.hG("#container"),_.q("design:type",HTMLElement)],J_.prototype,"containerNode",void 0);_.G([_.hG("#text"),_.q("design:type",HTMLElement)],J_.prototype,"textNode",void 0);_.G([_.jk("text"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],J_.prototype,"dataChanged",null);
_.G([_.jk("guideIsExpanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],J_.prototype,"guideIsExpandedChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],J_);
_.e(J_,"yt-dynamic-sizing-formatted-string",function(){if(XGw!==void 0)return XGw;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return XGw=H},{mode:1});var d3h;_.Ob3=function(H){_.HF.call(this,H)};
_.R(_.Ob3,_.HF);var uCw=function(H){_.HF.call(this,H)};
_.R(uCw,_.Ob3);var KQ=function(){return _.B.apply(this,arguments)||this};
_.R(KQ,_.B);KQ.prototype.onTapSuspendedChannel=function(){var H;if((H=this.data)!=null&&H.serviceEndpoint){var U,A;(H=(A=_.p((U=this.data)==null?void 0:U.serviceEndpoint,_.gu))==null?void 0:A.url)?_.ff(H,void 0,void 0,window.top):(U=new uCw("Did not handle suspended account tap. No appealUrl."),_.sD(U))}else U=new uCw("Did not handle suspended account tap. No serviceEndpoint."),_.sD(U)};
KQ.prototype.onTap=function(){var H=this,U=_.k$(),A,M=(A=_.hy(U,{veType:7116}))!=null?A:void 0;_.uZ(U,{visualElement:M});_.uN();this.saveRoleText();var W;if((W=this.data)==null?0:W.youtubeSuspended)this.onTapSuspendedChannel();else{var w=!1,d,O;(U=(O=_.p((d=this.data)==null?void 0:d.serviceEndpoint,_.jJr))==null?void 0:O.supportedTokens)&&U.forEach(function(f){if(f.accountSigninToken)if(w=!0,H.onAccountItemTap)H.onAccountItemTap(f.accountSigninToken.signinUrl);else _.ff(f.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!w){if(d=this.get("serviceEndpoint",this.data))w=!0,this.ytComponentBehavior.resolveCommand(d);w||_.n5(new uCw("Did not handle account switch tap. No token."))}}};
KQ.prototype.saveRoleText=function(){if(this.data){var H=this.data,U=H.channelDelegationRole;if(U){var A,M=(A=_.p(H==null?void 0:H.serviceEndpoint,_.jJr))==null?void 0:A.supportedTokens;if(!M){var W,w,d,O;M=(W=_.p(H==null?void 0:H.serviceEndpoint,_.jQ))==null?void 0:(w=W.popup)==null?void 0:(d=w.confirmDialogRenderer)==null?void 0:(O=d.confirmButton)==null?void 0:O.buttonRenderer;var f;M=(f=_.p(M==null?void 0:M.command,_.$2))==null?void 0:f.commands;if(!M)return;var J;M=(J=_.p(M[1],_.jJr))==null?
void 0:J.supportedTokens}if(M){f=void 0;J=_.b(M);for(M=J.next();!M.done;M=J.next())if(M=M.value,M.datasyncIdToken){f=M.datasyncIdToken.datasyncIdToken;break}if(f){var F;a:{if(_.sZ7()&&(J=_.Jj(f+"::pom"))){J=new T1(J);break a}J=void 0}(F=J)==null||F.set("role_text",U);if((CyF?CyF:window.location).href.indexOf("studio")!==-1&&(F=noK())){J=F.src?(new URL(F.src)).origin:"*";var P;(P=F.contentWindow)==null||P.postMessage({action:"save_pom_role",datasyncId:f,roleText:U},J)}}}}}};
_.D5.Object.defineProperties(KQ.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var H,U,A=(H=this.data)==null?void 0:(U=H.accountPhoto)==null?void 0:U.thumbnails;return A&&A.length>0&&(A[0].height===36||A[0].height===48)?A[0].height:40}}});
KQ.prototype.onTap=KQ.prototype.onTap;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],KQ.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],KQ.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!1}),_.q("design:type",Function)],KQ.prototype,"onAccountItemTap",void 0);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],KQ.prototype,"enableRingForActiveAccount",null);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],KQ.prototype,"thumbnailSize",null);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],KQ.prototype,"onTap",null);_.G([_.dX({is:"ytd-account-item-renderer",disableElementRegistration:!0})],KQ);
_.e(KQ,"ytd-account-item-renderer",function(){if(d3h!==void 0)return d3h;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return d3h=H},{mode:1});var ZbB;var oG=function(){return _.B.apply(this,arguments)||this};
_.R(oG,_.B);oG.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.lx().resolve(_.YV).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],oG.prototype,"data",void 0);_.G([_.dX({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],oG);
_.e(oG,"ytd-identity-chip-renderer",function(){if(ZbB!==void 0)return ZbB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return ZbB=H},{mode:1});var fhr;var Jd2;var KkH;var oMB;var Fu=function(){var H=_.B.apply(this,arguments)||this;H.richItemMinWidth=_.hr("wn_grid_min_item_width",310);H.isShorts=!1;H.isWatchNext=!1;H.isExploreHub=!1;return H};
_.R(Fu,_.B);_.D5.Object.defineProperties(Fu.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var H=[],U=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Dt(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var A;if(((A=this.data)==null?0:A.rows)&&U)for(U*=this.data.rows,A=0;A<U;A++)H.push({});return H}}});
_.G([_.g(_.dF),_.q("design:type",Object)],Fu.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Fu.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.Xz,value:3}),_.q("design:type",Number)],Fu.prototype,"itemsPerRow",void 0);_.G([_.y({selector:_.Omc,value:6}),_.q("design:type",Number)],Fu.prototype,"slimItemsPerRow",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Number)],Fu.prototype,"richItemMinWidth",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.w1}),_.q("design:type",Boolean)],Fu.prototype,"miniMode",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Fu.prototype,"isShorts",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Fu.prototype,"isWatchNext",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Fu.prototype,"isExploreHub",void 0);
_.G([_.a("isExploreHub"),_.y({reflectToAttribute:!0}),_.q("design:type",Object),_.q("design:paramtypes",[])],Fu.prototype,"shimmerAnimation",null);_.G([_.a("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.q("design:type",Array),_.q("design:paramtypes",[])],Fu.prototype,"cardItems",null);_.G([_.dX({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Fu);
_.Fkh=_.ty()(Fu,"ytd-ghost-grid-renderer",function(){if(oMB===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);oMB=H}H=oMB;return H},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.LG(_.r(function(H){var U=_.Ec(H,{numberOfComments:3}).numberOfComments,A=_.Ec(H,{isInitialLoad:!1}).isInitialLoad,M=_.Ec(H,{engagementPanel:!1}).engagementPanel,W=function(){return Math.min(Number(U==null?void 0:U())||20,20)};
return _.Z("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.Z(_.K,{cond:function(){return!(M==null?0:M())&&(A==null?void 0:A())},
then:function(){return _.Z("div",{class:"ytGhostCommentsComments"},_.Z("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.Z("div",{class:_.CG("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.Z("div",{class:_.CG("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.Z("div",{class:"ytGhostCommentsGhostCard"},_.Z("div",{class:"ytGhostCommentsAvatar"},_.Z("div",{class:"ytGhostCommentsCircle"})),_.Z("div",{class:"ytGhostCommentsComments"},_.Z("div",{class:"ytGhostCommentsMeta"},
_.Z("div",{class:_.CG("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.Z("div",{class:_.CG("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.Z("div",{class:"ytGhostCommentsComments"},_.Z(_.FQ,{each:function(){return Array((W==null?void 0:W())||3)}},function(){return _.Z("div",{class:"ytGhostCommentsGhostCard"},_.Z("div",{class:"ytGhostCommentsAvatar"},_.Z("div",{class:"ytGhostCommentsCircle"})),_.Z("div",{class:"ytGhostCommentsHost"},_.Z("div",{class:"ytGhostCommentsMeta"},
_.Z("div",{class:_.CG("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.Z("div",{class:_.CG("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Z("div",{class:_.CG("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Z("div",{class:"ytGhostCommentsGhostLikeDislike"},_.Z("div",{class:_.CG("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Z("div",{class:_.CG("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"tc"),"yt-ghost-comments",{props:{numberOfComments:_.sY,
isInitialLoad:_.sY,engagementPanel:_.sY},unsafeExternallySettableAttributes:new Set(["hidden"])});_.Qm("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var PB=function(){var H=_.B.apply(this,arguments)||this;H.isOverridable=!1;H.spinnerActive=!1;H.showButton=!1;H.isCommentsSection=!1;H.engagementPanel=!0;H.isShortsGrid=!1;H.isShortsPage=!1;H.isWatchPage=!1;H.originalShowButton=!1;H.endOfList=!1;return H};
_.R(PB,_.B);_.X=PB.prototype;_.X.resetIntersectionObserver=function(){var H;(H=this.observer)==null||H.disconnect();this.observer=void 0};
_.X.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var H,U;((H=this.data)==null?void 0:H.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((U=this.data)==null?0:U.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.X.initializeIntersectionObserver=function(){var H=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(U){U=_.b(U);for(var A=U.next();!A.done;A=U.next())A.value.isIntersecting&&(H.triggerContinuation(),H.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.X.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.X.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var H;((H=this.data)==null?0:H.continuationEndpoint)&&(H=_.p(this.data.continuationEndpoint,_.XA))&&this.ytdReduxBehavior.dispatch(_.zQ({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:H}}))};
_.X.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.X.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.X.onServiceRequestCompleted=function(H,U){if(!_.S("kevlar_hide_spinner_on_empty_continuation_killswitch")){var A;(A=U.actions)!=null&&A.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.X.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.X.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.X.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.X.numberOfGhostCommentsChanged=function(){var H=3;if(this.engagementPanel){var U,A,M;H=Math.floor(((((U=this.hostElement)==null?void 0:(A=U.parentElement)==null?void 0:(M=A.parentElement)==null?void 0:M.scrollHeight)||108)-108)/108);H=this.isInitialLoad?Math.max(H,3):3}U=[].concat(_.vI(this.hostElement.querySelectorAll("yt-ghost-comments")));U=_.b(U);for(A=U.next();!A.done;A=U.next())A=A.value,A.numberOfComments=H,A.isInitialLoad=this.isInitialLoad,A.engagementPanel=this.engagementPanel};
_.X.detached=function(){this.resetIntersectionObserver()};
_.D5.Object.defineProperties(PB.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
PB.prototype.numberOfGhostCommentsChanged=PB.prototype.numberOfGhostCommentsChanged;PB.prototype.continuationTriggerOffsetChanged=PB.prototype.continuationTriggerOffsetChanged;PB.prototype.showButtonChanged=PB.prototype.showButtonChanged;PB.prototype.onYtServiceRequestCompletedForButtonRenderer=PB.prototype.onYtServiceRequestCompletedForButtonRenderer;PB.prototype.onServiceRequestCompleted=PB.prototype.onServiceRequestCompleted;PB.prototype.onYtServiceRequestSentForButtonRenderer=PB.prototype.onYtServiceRequestSentForButtonRenderer;
PB.prototype.observeData=PB.prototype.observeData;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],PB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.Jh.YtVisibilityBehavior),_.q("design:type",Object)],PB.prototype,"ytVisibilityBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],PB.prototype,"ytComponentBehavior",void 0);
_.G([_.g(_.dF),_.q("design:type",Object)],PB.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],PB.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],PB.prototype,"isOverridable",void 0);_.G([_.y(),_.q("design:type",Object)],PB.prototype,"spinnerActive",void 0);_.G([_.y(),_.q("design:type",Object)],PB.prototype,"showButton",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],PB.prototype,"isCommentsSection",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],PB.prototype,"engagementPanel",void 0);_.G([_.y(),_.q("design:type",Object)],PB.prototype,"isShortsGrid",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.J1F}),_.q("design:type",Object)],PB.prototype,"isShortsPage",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.fat}),_.q("design:type",Object)],PB.prototype,"isWatchPage",void 0);_.G([_.y(),_.q("design:type",Number)],PB.prototype,"continuationTriggerOffset",void 0);
_.G([_.y(),_.q("design:type",Object)],PB.prototype,"endOfList",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],PB.prototype,"isInitialLoad",void 0);_.G([_.hG("ytd-button-renderer"),_.q("design:type",_.aJ)],PB.prototype,"buttonRenderer",void 0);_.G([_.y(),_.q("design:type",Object)],PB.prototype,"buttonOverrides",void 0);
_.G([_.y(),_.a("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.q("design:type",Object),_.q("design:paramtypes",[])],PB.prototype,"showGhostCardComments",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],PB.prototype,"observeData",null);
_.G([_.Gl("yt-service-request-sent-button-renderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],PB.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],PB.prototype,"onServiceRequestCompleted",null);
_.G([_.Gl("yt-service-request-completed-button-renderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],PB.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.G([_.jk("showButton"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],PB.prototype,"showButtonChanged",null);
_.G([_.jk("continuationTriggerOffset"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],PB.prototype,"continuationTriggerOffsetChanged",null);_.G([_.Ya("isInitialLoad","engagementPanel"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],PB.prototype,"numberOfGhostCommentsChanged",null);_.G([_.dX({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],PB);
_.e(PB,"ytd-continuation-item-renderer",function(){if(KkH!==void 0)return KkH;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return KkH=H},{mode:1});var Pgn;var sq=function(){var H=_.B.apply(this,arguments)||this;H.downloadProgress=0;H.transferState="TRANSFER_STATE_UNKNOWN";H.downloadState="DOWNLOAD_STATE_UNKNOWN";H.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";H.offlineVideoPolicyExpirationTimestamp=0;H.downloadedVideoPlaybackPosition=0;return H};
_.R(sq,_.B);sq.prototype.dataChanged=function(){var H;this.videoData=_.p((H=this.data)==null?void 0:H.renderer,Evy);this.transferStateChanged()};
sq.prototype.downloadProgressChanged=function(){if(this.entityInfo){var H=Object.assign({},this.videoData),U=luc(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),A=U.publishedTimeText,M=U.badges;H.shortViewCountText=U.shortViewCountText;H.publishedTimeText=A;H.badges=M;this.set("videoData",H)}};
sq.prototype.transferStateChanged=function(){if(this.entityInfo){var H=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",U=_.TQ(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!vO(this.entityInfo.policyEntity),A=Object.assign({},this.videoData),M=luc(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),W=M.publishedTimeText,w=M.badges;A.shortViewCountText=
M.shortViewCountText;A.publishedTimeText=W;A.badges=w;A.isDisabled=U;A.isWatched=this.downloadedVideoPlaybackPosition>0;A.navigationEndpoint=U?void 0:Kg7(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var d;H&&((d=this.videoData)==null?0:d.videoId)&&!_.S("dl_resume_click_killswitch")&&(A.isDisabled=!1,A.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});A.thumbnailOverlays=DxV(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",A)}};
sq.prototype.transferStateChanged=sq.prototype.transferStateChanged;sq.prototype.downloadProgressChanged=sq.prototype.downloadProgressChanged;sq.prototype.dataChanged=sq.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],sq.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],sq.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Object)],sq.prototype,"videoData",void 0);_.G([_.y({selector:ZY,selectorArgs:["videoData.videoId"]}),_.q("design:type",Object)],sq.prototype,"downloadProgress",void 0);_.G([_.y(),_.q("design:type",Number)],sq.prototype,"relativeDateReference",void 0);_.G([_.y({selector:_.O_,selectorArgs:["videoData.videoId"]}),_.q("design:type",Object)],sq.prototype,"transferState",void 0);
_.G([_.y({selector:bnc,selectorArgs:["videoData.videoId"]}),_.q("design:type",Object)],sq.prototype,"downloadState",void 0);_.G([_.y({selector:sNF,selectorArgs:["videoData.videoId"]}),_.q("design:type",Object)],sq.prototype,"offlinePolicyAction",void 0);_.G([_.y({selector:n07,selectorArgs:["videoData.videoId"]}),_.q("design:type",Object)],sq.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.G([_.y({selector:fq,selectorArgs:["videoData.videoId"]}),_.q("design:type",Object)],sq.prototype,"downloadedVideoPlaybackPosition",void 0);_.G([_.y({selector:SFc,selectorArgs:["videoData.videoId"]}),_.q("design:type",Object)],sq.prototype,"entityInfo",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],sq.prototype,"isDownloading",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sq.prototype,"dataChanged",null);
_.G([_.jk("downloadProgress"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sq.prototype,"downloadProgressChanged",null);_.G([_.jk("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sq.prototype,"transferStateChanged",null);
_.G([_.dX({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],sq);
_.e(sq,"ytd-downloaded-video-grid-video-renderer",function(){if(Pgn!==void 0)return Pgn;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Pgn=H},{mode:2});var sqw;var nQ=function(){};
nQ.prototype.resolve=function(H,U){var A=this;return _.u(function(M){return M.yield(A.resolveCommand(H,U),0)})};var nMz,Nk;nMz=ptc(function(H){return H.targetId},{shouldPersist:!1});
Nk=nMz.updateData;_.S8=nMz.useUpdatableData;var N2w,SSB;N2w=ptc(function(H){return H.targetId});
SSB=N2w.updateData;_.pG3=N2w.useUpdatableData;var Lky=LsE.bind(null,Nk),RGw=LsE.bind(null,SSB);(function(H,U,A){var M=_.p(A==null?void 0:A.updatedRenderer,_.Abw);return M?H({targetId:U},function(){return M}):!1}).bind(null,Nk);var pQ=function(){};
_.R(pQ,nQ);pQ.prototype.resolveCommand=function(H){var U;return _.u(function(A){U=_.p(H,yCE);if(!U)return A.return();Lky(U.targetId,U);_.DO(A)})};var LQ=function(){var H=_.v4.apply(this,arguments)||this;H.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return H};
_.R(LQ,_.v4);_.X=LQ.prototype;_.X.configureContinuationPathMap=function(){return{}};
_.X.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.X.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.X.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.X.observeData=function(){this.data&&(this.continuationIsReloading=!1,this.reloadUiContent=void 0)};
_.X.handleAppendContinuationItemsAction=function(H){var U=_.p(H,_.vGw);if(this.data&&this.data.targetId&&U&&this.continuationPathMap&&U.targetId===this.data.targetId){var A=pqh(H),M=A&&this.continuationPathMap[A];if(M&&A)if(H=this.get(M,this.data)){a:{for(A=0;A<H.length;A++){var W=H[A],w=void 0,d=!!_.p((w=_.p(W,cOz))==null?void 0:w.content,_.S8p);if(_.p(W,_.Ea)||d)break a}A=H.length}M="data."+M;U.continuationItems?A===H.length-1?(this.pop(M),this.push.apply(this,[M].concat(_.vI(U.continuationItems)))):
A===H.length?this.push.apply(this,[M].concat(_.vI(U.continuationItems))):this.splice.apply(this,[M,A,1].concat(_.vI(U.continuationItems))):this.splice(M,A,1);(_.S("web_enable_voting_animation")||_.S("enable_music_web_cairo_voting_animation"))&&_.cg(this.hostElement,"yt-append-continuation-items-action-finished");_.cg(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Na(new _.bD("append continuation items does not exist",A));else _.Na(new _.bD("append continuation path does not exist",
A))}};
_.X.handleReloadContinuationItemsCommand=function(H){var U=_.p(H,yCE);if(this.data&&U){if(!_.S("web_reload_continuation_items_command_resolver_killswitch")){var A=_.lx().resolve(_.$V(pQ));A&&A.resolveCommand(H)}if(this.data.targetId&&this.continuationPathMap&&U.targetId===this.data.targetId&&(!_.S("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||U.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var M;A=(M=U.slot)==null?void 0:M.replace("RELOAD_CONTINUATION_SLOT_",
"");M=(H=pqh(H)+"-"+(A==null?void 0:A.toLowerCase()))&&this.continuationPathMap[H];if(!M||!H||!A)_.Na(new _.bD("reload continuation path does not exist",H));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(U)){if(U.replaceWithFirstItem){var W;this.set("data."+M,((W=U.continuationItems)==null?0:W.length)?U.continuationItems[0]:{})}else this.set("data."+M,U.continuationItems?U.continuationItems:[]);this.continuationIsReloading=!1;this.reloadUiContent=void 0;
_.cg(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.X.handleShowReloadUiCommand=function(H){H=_.p(H,dyp);var U;((U=this.data)==null?0:U.targetId)&&(H==null?0:H.targetId)&&H.targetId===this.data.targetId&&(this.continuationIsReloading=!0,H.content&&(this.reloadUiContent=H.content))};
LQ.prototype.observeData=LQ.prototype.observeData;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],LQ.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],LQ.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],LQ.prototype,"data",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],LQ.prototype,"continuationIsReloading",void 0);
_.G([_.y(),_.q("design:type",Object)],LQ.prototype,"reloadUiContent",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],LQ.prototype,"observeData",null);_.G([_.Tl()],LQ);_.RG=[_.uK.YtComponentBehavior,_.$y.YtActionHandlerBehavior,LQ.prototype];_.Eq={};_.Eq.YtNextContinuationBehavior=[_.LJ.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",_.lN(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.lN(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(H,U){H.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,U,{}):(H={locationRetrieved:function(A){this.makeNextContinuationRequest_(A,U,{})}.bind(this)},_.cg(this.hostElement,"yt-retrieve-location",H))},
makeNextContinuationRequest_:function(H,U,A){_.dH("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();H=U(H);var M;this.canUseContextualNetworkManager_()&&(M=this.getNetworkManager());M||(M=_.lx().resolve(_.jp));U=_.ZW.instance;if(_.gD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&U){M=_.RE([H.startsWith("/")?H.substr(1):H]);var W,w;A=_.oz(U,{},M,A==null?void 0:(W=A.context)==null?void 0:(w=W.clickTracking)==null?void 0:w.clickTrackingParams).then(function(d){return{response:d}})}else A=
this.nextContinuation.usePost?M.postData(H,A):M.fetchData(H);
A.then(this.updateNextContinuationData_.bind(this,H));this.pendingContinuationRequest_=A;this.startListeningForNavigate_()},
updateNextContinuationData_:function(H,U){var A=this;_.dH("ncl");this.pendingContinuationRequest_=void 0;if(U){var M={};this.nextContinuation&&(M=this.nextContinuation);if(U.response&&U.response.continuationContents&&U.response.continuationContents[M.continuationType]){H=U.response.continuationContents[M.continuationType];var W=M.header||"data.header",w=H[M.responseHeaderKey||"header"];w&&this.set(W,w);W=M.contentsArray||"data.contents";w=this.getContents_(H,M.responseContentsKey||"contents")||[];
this.pathExists_(W)?(w.unshift(W),this.push.apply(this,w)):this.set(W,w);w&&(RiN(_.k$(),U.response,this.hostElement,function(d){_.yr(A.hostElement,"yt-store-grafted-ve-action",[d])}),_.cg(this.hostElement,"yt-next-continuation-data-updated",{continuationData:U,
page:this,contentsArray:W}));this.set(M.continuationsArray||"data.continuations",H[M.responseContinuationsKey||"continuations"]||[])}else U.reload?_.Na(new _.bD("Reloading from continuation is unsupported")):U.responseContext&&U.responseContext.errors||(delete U.xsrf_token,delete U.timing,delete U.endpoint,delete U.csn,U.responseContext&&delete U.responseContext.serviceTrackingParams,W={request:_.ey(H,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(U).sort()},U.response&&(W.responseContentKeys=
Object.keys(U.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(W.continuationType=this.nextContinuation.continuationType.substr(0,256)),U=new _.bD("Malformed continuation",W),H.indexOf("/comment_service_ajax")==0?_.Na(U):_.sD(U)),this.set(M.continuationsArray||"data.continuations",[])}else _.n5(new _.bD("Missing continuation response",H))},
getContents_:function(H,U){U=U.split(".");return _.dG.getValueByKeys(H,U)},
pathExists_:function(H){var U=this;H=H.toString().split(".");for(var A=0;A<H.length;A++)if(U=U[H[A]],U===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var EMg;var m3z;var mh=function(){var H=_.B.apply(this,arguments)||this;H.triggered_=!1;return H};
_.R(mh,_.B);_.X=mh.prototype;_.X.attached=function(){this.maybeTriggerAutoload()};
_.X.detached=function(){this.hasBeenTriggered_=!1};
_.X.onPrescanVisible=function(){this.onShow()};
_.X.onShow=function(){this.showButton||this.trigger()};
_.X.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.cg(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.X.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.X.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.X.computeLabel_=function(H,U){return H===void 0?null:H.label||!U?H.label:this.showMoreText_};
_.X.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.X.getContinuationUrl=function(H){var U={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(U.itct=this.data.clickTrackingParams);return _.kZ(H,U)};
_.X.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
mh.prototype.showButtonChanged_=mh.prototype.showButtonChanged_;mh.prototype.observeData_=mh.prototype.observeData_;_.G([_.g(_.Jh.YtVisibilityBehavior),_.q("design:type",Object)],mh.prototype,"ytVisibilityBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],mh.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],mh.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],mh.prototype,"showButton",void 0);
_.G([_.y({value:!1}),_.q("design:type",Boolean)],mh.prototype,"showIcon",void 0);_.G([_.y({computed:"computeLabel_(data, showButton)"}),_.q("design:type",Object)],mh.prototype,"label",void 0);_.G([_.y({value:_.Nh(_.hP("SHOW_MORE",void 0,"Show More"))}),_.q("design:type",Object)],mh.prototype,"showMoreText_",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],mh.prototype,"spinnerActive_",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],mh.prototype,"hasBeenTriggered_",void 0);
_.G([_.y({value:void 0}),_.q("design:type",String)],mh.prototype,"observeVisibleOption",void 0);_.G([_.y({value:void 0}),_.q("design:type",String)],mh.prototype,"observeHiddenOption",void 0);_.G([_.y({value:"observe_once"}),_.q("design:type",Object)],mh.prototype,"observePrescanOption",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mh.prototype,"observeData_",null);
_.G([_.Ya("showButton"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mh.prototype,"showButtonChanged_",null);_.G([_.b0({is:"yt-next-continuation",disableElementRegistration:!0})],mh);
_.e(mh,"yt-next-continuation",function(){if(m3z===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;EMg===void 0&&(EMg=document.createElement("template"));var M=EMg;A.call(U,M.content.cloneNode(!0),H.content.firstChild);m3z=H}H=m3z;return H},{mode:2});var gMn;var ahK;var go=function(){return _.B.apply(this,arguments)||this};
_.R(go,_.B);go.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],go.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],go.prototype,"data",void 0);_.G([_.b0({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],go);
_.e(go,"yt-music-pass-small-feature-info-renderer",function(){if(ahK===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;gMn===void 0&&(gMn=document.createElement("template"));var M=gMn;A.call(U,M.content.cloneNode(!0),H.content.firstChild);ahK=H}H=ahK;return H},{mode:2});_.Qm("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var aG=function(){var H=_.B.apply(this,arguments)||this;H.isCollapsible=!1;H.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return H};
_.R(aG,_.B);_.X=aG.prototype;_.X.computeIsCollapsible=function(H){return!!(((H==null?0:H.showMoreText)||(H==null?0:H.visibleRowCount))&&(H==null?0:H.isCollapsible))};
_.X.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"}}}};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.X.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.X.onIronResize=function(){var H=this;_.F8(this,"updateGridInitItems",function(){H.maybeUpdateInitialItemsDisplayed()})};
_.X.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var H=this.getVisibleWidth();H!==0&&(H=Math.floor(H/214)*(this.data.visibleRowCount||2),H!==this.initialCount&&(this.initialCount=H,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.X.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.X.computeExpandVisible=function(H,U,A,M){return H&&U&&A&&!!M&&!!M.showMoreText};
_.X.computeShowMoreButton=function(H){return{text:H,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.X.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.X.initCollapsed=function(){var H=this;this.ytLazyListBehavior.canShowMore=!1;var U;(this.collapsed=!((U=this.data)==null||!U.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.rV(this,function(){_.Bg(H.hostElement,"yt-refit-popups-action")})};
_.X.fillRestIfNotCollapsible=function(){var H=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!H||this.ytLazyListBehavior.fillRemainingListItems()};
_.X.computeViewAllHidden=function(H,U){return H||!U.viewAllEndpoint};
aG.prototype.fillRestIfNotCollapsible=aG.prototype.fillRestIfNotCollapsible;aG.prototype.initCollapsed=aG.prototype.initCollapsed;aG.prototype.onIronResize=aG.prototype.onIronResize;aG.prototype.persistentGuideChanged=aG.prototype.persistentGuideChanged;_.G([_.g(_.Qo),_.q("design:type",Object)],aG.prototype,"ironResizableBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],aG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.aN.YtLazyListBehavior),_.q("design:type",Object)],aG.prototype,"ytLazyListBehavior",void 0);_.G([_.g(_.Eq.YtNextContinuationBehavior),_.q("design:type",Object)],aG.prototype,"ytNextContinuationBehavior",void 0);_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],aG.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.g(_.RG),_.q("design:type",Object)],aG.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],aG.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],aG.prototype,"collapsed",void 0);_.G([_.y(),_.q("design:type",Number)],aG.prototype,"initialCount",void 0);_.G([_.y({computed:"computeShowMoreButton(data.showMoreText)"}),_.q("design:type",Object)],aG.prototype,"showMoreButton",void 0);
_.G([_.y({computed:"computeIsCollapsible(data)"}),_.q("design:type",Object)],aG.prototype,"isCollapsible",void 0);_.G([_.hG("#items"),_.q("design:type",HTMLElement)],aG.prototype,"items",void 0);_.G([_.jk("guidePersistentAndVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aG.prototype,"persistentGuideChanged",null);_.G([_.Gl("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aG.prototype,"onIronResize",null);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aG.prototype,"initCollapsed",null);_.G([_.jk("canShowMore"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aG.prototype,"fillRestIfNotCollapsible",null);_.G([_.dX({is:"ytd-grid-renderer",disableElementRegistration:!0})],aG);
_.e(aG,"ytd-grid-renderer",function(){if(sqw!==void 0)return sqw;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return sqw=H},{mode:2});var xx=function(){return _.B.apply(this,arguments)||this};
_.R(xx,_.B);
xx.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"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],xx.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],xx.prototype,"data",void 0);_.G([_.dX({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],xx);
_.e(xx,"ytd-carousel-ad-renderer",function(){if(Jd2!==void 0)return Jd2;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Jd2=H},{mode:1});var x32;var zH=function(){return _.B.apply(this,arguments)||this};
_.R(zH,_.B);_.X=zH.prototype;_.X.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"}}}};
_.X.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,zH.JSC$15825_CLICK_LOCATION_ID_MAP))};
_.X.onSitelinkTap=function(H){H.stopPropagation();var U,A,M=H==null?void 0:(U=H.model)==null?void 0:(A=U.item)==null?void 0:A.onTap;M&&this.ytSparklesClickLocationBehavior.handleClick(M,H,!1)};
_.X.onTap=function(H){var U=this.data&&this.data.content&&this.data.content.navigationEndpoint;U&&this.ytSparklesClickLocationBehavior.handleClick(U,H,!1)};
_.X.sendImpression=function(){if(this.data&&this.data.content)for(var H=_.b(this.data.content.impressionEndpoints||[]),U=H.next();!U.done;U=H.next()){U=_.b(U.value.loggingUrls||[]);for(var A=U.next();!A.done;A=U.next())A=A.value,A.baseUrl&&gB(A.baseUrl,A.attributionSrcMode)}};
zH.prototype.onTap=zH.prototype.onTap;zH.prototype.dataChanged=zH.prototype.dataChanged;zH.JSC$15825_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"]]);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],zH.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gF.YtSparklesClickLocationBehavior),_.q("design:type",Object)],zH.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],zH.prototype,"data",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],zH.prototype,"dataChanged",null);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],zH.prototype,"onTap",null);_.G([_.dX({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],zH);
_.e(zH,"ytd-promoted-sparkles-text-search-renderer",function(){if(x32!==void 0)return x32;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return x32=H},{mode:1});var zGr;var CQ=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-mute-ad-action":"handleMuteAd"};return H};
_.R(CQ,_.B);_.X=CQ.prototype;_.X.created=function(){this.activeView=new cA(this.hostElement)};
_.X.configureRendererStamper=function(){return{"data.menu":{id:_.S("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]]"}}}}}};
_.X.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.X.computeHasAdBadge=function(H){return!(H==null||!H.adBadge)};
_.X.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",CQ.JSC$15834_DEFAULT_AD_BADGE_RENDERER),_.B4(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&y4(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,CQ.JSC$15834_CLICK_LOCATION_ID_MAP))};
_.X.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var H;(((H=this.data)==null?void 0:H.impressionCommands)||[]).forEach(function(U){U=_.b(U.loggingUrls||[]);for(var A=U.next();!A.done;A=U.next())A=A.value,A.baseUrl&&gB(A.baseUrl,A.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.X.onTap=function(H){var U,A=(U=this.data)==null?void 0:U.navigationEndpoint,M;(U=(M=this.data)==null?void 0:M.thumbnailNavigationEndpoint)&&_.NF(_.Lf(H),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(U,H,!1):A&&this.ytSparklesClickLocationBehavior.handleClick(A,H,!1)};
_.X.handleMuteAd=function(){this.collapsed=!0};
_.X.attached=function(){var H=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&BA(H.activeView)})};
_.X.detached=function(){_.S("stop_av_measurement_on_detach")&&BA(this.activeView)};
_.D5.Object.defineProperties(CQ.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var H;return!(((H=this.data)==null?void 0:H.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var H;return!(((H=this.data)==null?void 0:H.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.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}}});
CQ.prototype.dataChanged=CQ.prototype.dataChanged;
CQ.JSC$15834_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"]]);
CQ.JSC$15834_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.hP("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],CQ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],CQ.prototype,"actionHandlerBehavior",void 0);
_.G([_.g(_.gF.YtSparklesClickLocationBehavior),_.q("design:type",Object)],CQ.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],CQ.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],CQ.prototype,"collapsed",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.q("design:type",Boolean)],CQ.prototype,"useBiggerThumbs",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.kV("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],CQ.prototype,"biggerThumbsStyle",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.S("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.q("design:type",Boolean)],CQ.prototype,"fixAlignmentSmallScreens",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs_square")}}),
_.q("design:type",Boolean)],CQ.prototype,"useBiggerThumbsSquare",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data.mediaHoverOverlay"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],CQ.prototype,"hideHoverOverlay",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.promotedSparklesWebStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],CQ.prototype,"webSearchLayout",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],CQ.prototype,"webSearchLayoutLandscape",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],CQ.prototype,"webSearchLayoutSquare",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data.promotedSparklesWebStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],CQ.prototype,"sparklesCtaNoBackground",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.actionButton"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],CQ.prototype,"hideActionButton",null);_.G([_.y({computed:"computeButtonOverride(uiUpdate)"}),_.q("design:type",Object)],CQ.prototype,"buttonOverride",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.q("design:type",Boolean)],CQ.prototype,"hasNewAdBadge",void 0);_.G([_.a("data.promotedSparklesWebStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],CQ.prototype,"useRoundedBadge",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],CQ.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],CQ);
_.e(CQ,"ytd-promoted-sparkles-web-renderer",function(){if(zGr!==void 0)return zGr;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return zGr=H},{mode:1});var Cgk;var t_=function(){var H=_.B.apply(this,arguments)||this;H.isInlinePreviewTriggered=!1;H.enableMonoStyle=_.S("enable_default_mono_cta_migration_web_client");return H};
_.R(t_,_.B);_.X=t_.prototype;_.X.created=function(){this.activeView=new cA(this.hostElement)};
_.X.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]]"}}}}}};
_.X.computeShowCta=function(H){return!(H==null||!H.ctaRenderer)};
_.X.onCtaClick=function(){var H,U,A,M=(H=this.data)==null?void 0:(U=H.ctaRenderer)==null?void 0:(A=U.buttonRenderer)==null?void 0:A.command;M&&this.ytComponentBehavior.resolveCommand(M)};
_.X.onWatchButtonClick=function(){var H,U,A,M=(H=this.data)==null?void 0:(U=H.watchButtonRenderer)==null?void 0:(A=U.buttonRenderer)==null?void 0:A.command;M&&this.ytComponentBehavior.resolveCommand(M)};
_.X.onTap=function(){};
_.X.dataChanged=function(){if(this.data){var H;_.S("enable_inline_muted_playback_on_web_search")&&((H=this.data)==null?0:H.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",t_.JSC$15838_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&y4(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",t_.JSC$15838_DEFAULT_CLICK_LOCATION_BEHAVIOR,t_.JSC$15838_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(H=this.thumbnail.getElementsByTagName("a"),H.length>0&&(H=H.namedItem("thumbnail"))&&H.removeAttribute("href"));var U;if(((U=this.data)==null?0:U.forceImpAutoplay)&&_.S("enable_force_imp_autoplay_on_desktop_search")){var A;(A=this.JSC$15839_inlinePreviewHoverListener)==null||K0K(A)}}};
_.X.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var H=_.b(this.data.impressionUrls),U=H.next();!U.done;U=H.next())U=U.value,de7(U,u1K(U));this.data.impressionsFired=!0}};
_.X.maybeComputeHref=function(){return null};
_.X.computeIsShortDR=function(H){return!(H==null||!H.watchButtonRenderer)&&!(H==null||!H.ctaRenderer)&&!!this.enableShortDR};
_.X.computeIsNewUiOrShortDr=function(H){return!!this.enableUiUpdate||this.computeIsShortDR(H)};
_.X.computeIsNewUiAndNotShortDr=function(H){return!!this.enableUiUpdate&&!this.computeIsShortDR(H)};
_.X.computeHideAvatar=function(H){return!((H==null?0:H.channelThumbnail)&&this.computeIsNewUiOrShortDr(H))};
_.X.onClick=function(H){var U,A=(U=this.data)==null?void 0:U.navigationEndpoint;if(this.enableShortDR&&A&&(_.p(A,_.sH)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(A,H,!!_.p(A,_.sH)),H.stopPropagation();else if(A&&_.p(A,_.sH))this.ytSparklesClickLocationBehavior.handleClick(A,H,!0),H.stopPropagation();else if(A){var M,W;((M=this.data)==null?0:M.navigationEndpoint)&&((W=this.data)==null?0:W.adPlaybackContextParams)&&(U=this.data.navigationEndpoint,H=this.data.adPlaybackContextParams,
U.commandMetadata&&_.p(U.commandMetadata,_.Y2)&&_.p(U.commandMetadata,_.Y2).url&&(U=_.rD(_.p(U.commandMetadata,_.Y2).url).adurl)&&_.ZEc(U)&&_.Sb(_.$Z(U),{encoded_ad_playback_context:H}));this.ytComponentBehavior.resolveCommand(A)}};
_.X.computeButtonOverride=function(H){if(this.computeIsNewUiOrShortDr(H))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.X.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.X.onThumbnailContainerClick=function(H){this.onClick(H)};
_.X.computeThumbnailWidth=function(H,U){return H?U==="MASSIVE"?600:U==="BIG"?500:U==="MEDIUM"?450:420:360};
_.X.attached=function(){var H=this,U;_.S("enable_inline_muted_playback_on_web_search")&&((U=this.data)==null?0:U.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&BA(H.activeView)})};
_.X.detached=function(){var H;_.S("enable_inline_muted_playback_on_web_search")&&((H=this.data)==null?0:H.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.S("stop_av_measurement_on_detach")&&BA(this.activeView)};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15839_inlinePreviewHoverListener=iA({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:huz})};
_.X.clearInlinePreviewHoverListeners=function(){var H;(H=this.JSC$15839_inlinePreviewHoverListener)==null||Ri(H)};
t_.prototype.dataChanged=t_.prototype.dataChanged;t_.prototype.onTap=t_.prototype.onTap;t_.JSC$15838_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.hP("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};t_.JSC$15838_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
t_.JSC$15838_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"}];_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],t_.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],t_.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gF.YtSparklesClickLocationBehavior),_.q("design:type",Object)],t_.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.hG("#main-container"),_.q("design:type",HTMLElement)],t_.prototype,"mainContainer",void 0);
_.G([_.y(),_.q("design:type",Object)],t_.prototype,"isInlinePreviewTriggered",void 0);_.G([_.y(),_.q("design:type",Object)],t_.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.q("design:type",Boolean)],t_.prototype,"useBiggerThumbs",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.S("enable_video_display_compact_button_group_for_desktop_search")}}),
_.q("design:type",Boolean)],t_.prototype,"enableShortDR",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.S("enable_vac_ui_update_for_desktop_search")}}),
_.q("design:type",Boolean)],t_.prototype,"enableUiUpdate",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.kV("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],t_.prototype,"biggerThumbsStyle",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.q("design:type",Boolean)],t_.prototype,"showCta",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.q("design:type",Boolean)],t_.prototype,"isShortDr",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.q("design:type",Boolean)],t_.prototype,"isShortDrOrNewUi",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.q("design:type",Boolean)],t_.prototype,"isNewUiAndNotShortDr",void 0);_.G([_.y({computed:"computeButtonOverride(data)"}),_.q("design:type",Object)],t_.prototype,"buttonOverride",void 0);_.G([_.y({computed:"computeSecondaryButtonOverride(data)"}),_.q("design:type",Object)],t_.prototype,"secondaryButtonOverride",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],t_.prototype,"enableMonoStyle",void 0);
_.G([_.hG("ytd-thumbnail"),_.q("design:type",HTMLElement)],t_.prototype,"thumbnail",void 0);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],t_.prototype,"onTap",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],t_.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],t_);
_.e(t_,"ytd-promoted-video-renderer",function(){if(Cgk!==void 0)return Cgk;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Cgk=H},{mode:1});var tSK;var cB=function(){var H=_.B.apply(this,arguments)||this;H.useRoundedBadge=!0;H.sitelinkIds=[];return H};
_.R(cB,_.B);_.X=cB.prototype;
_.X.configureRendererStamper=function(){return{"data.menu":{id:_.S("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]]"}}}}}};
_.X.dataChanged=function(){var H;(H=this.data)!=null&&H.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,cB.JSC$15844_CLICK_LOCATION_ID_MAP)};
_.X.onTap=function(H){var U,A=(U=this.data)==null?void 0:U.navigationCommand;A&&!_.NF(_.Lf(H),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(A,H,!1)};
_.X.onSitelinkTap=function(H){var U,A,M=H==null?void 0:(U=H.model)==null?void 0:(A=U.item)==null?void 0:A.onTap;M&&this.ytSparklesClickLocationBehavior.handleClick(M,H,!1)};
_.X.configureSitelinkClickTargets=function(){var H=this,U,A,M=(U=this.data)==null?void 0:(A=U.clickLocationTargets)==null?void 0:A.find(function(W){return W.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
M&&_.c4(this.hostElement).querySelectorAll(".sitelink").forEach(function(W){_.B4(W,"yt-simple-endpoint",!0);H.sitelinkIds.push(W.id);var w,d;(w=H.ytSparklesClickLocationBehavior)==null||(d=w.clickTargetMap)==null||d.set(W.id,M)})};
_.X.sendImpression=function(){var H,U,A=((H=this.data)==null?void 0:(U=H.impressionCommand)==null?void 0:U.loggingUrls)||[];H=_.b(A);for(U=H.next();!U.done;U=H.next())U=U.value,U.baseUrl&&gB(U.baseUrl,U.attributionSrcMode)};
_.X.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.D5.Object.defineProperties(cB.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
cB.prototype.onTap=cB.prototype.onTap;cB.prototype.dataChanged=cB.prototype.dataChanged;cB.JSC$15844_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"]]);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],cB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gF.YtSparklesClickLocationBehavior),_.q("design:type",Object)],cB.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],cB.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],cB.prototype,"showFavicon",null);_.G([_.y({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.q("design:type",Boolean)],cB.prototype,"useBiggerThumbs",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.kV("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],cB.prototype,"biggerThumbsStyle",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.S("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.q("design:type",Boolean)],cB.prototype,"enableThumbnailScalingFix",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cB.prototype,"dataChanged",null);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],cB.prototype,"onTap",null);_.G([_.dX({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],cB);
_.e(cB,"ytd-text-image-no-button-layout-renderer",function(){if(tSK!==void 0)return tSK;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return tSK=H},{mode:2});var cdn;var yC=function(){var H=_.B.apply(this,arguments)||this;H.isInlinePlaybackState=!1;H.uiUpdate=_.S("web_modern_buttons");H.hideCta=_.S("hide_cta_for_home_web_video_ads");H.noBottomMargin=!1;H.animateInTimeStamp=_.hr("hide_cta_for_home_web_video_ads_animate_in_time");H.animateInCta=!1;H.isHovered=!1;H.enableMonoStyle=_.S("enable_default_mono_cta_migration_web_client");H.player=null;H.JSC$15851_playerEvents=new Map;H.JSC$15851_preventProgressSaveTimer=null;H.delayedCtaJobId=null;return H};
_.R(yC,_.B);_.X=yC.prototype;_.X.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]]"}}}}}};
_.X.attached=function(){this.JSC$15851_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15851_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.S("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.X.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15851_playerEvents)};
_.X.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",yC.JSC$15850_DEFAULT_CLICK_LOCATION_BEHAVIOR,yC.JSC$15850_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.X.hoverChanged=function(){var H=this;this.delayedCtaJobId&&(_.Fl.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.S("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.TB(_.Fl,function(){H.buttonContainer.classList.add("show-delayed-buttons")},_.hr("delayed_cta_on_web_delay_milliseconds")))};
_.X.setPlayer=function(){var H=this,U;return _.u(function(A){if(A.nextAddress==1)return(U=_.Bg(H.hostElement,"yt-get-inline-preview-player-action"))&&U[0]?A.yield(U[0].getPlayerPromise(),3):A.jumpTo(0);H.player=A.yieldResult;H.ytPlayerListenerBehavior.listenToPlayerEvents(H.player,H.JSC$15851_playerEvents);_.DO(A)})};
_.X.onPlaybackStart=function(){var H=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15851_preventProgressSaveTimer=_.av(_.Fl,function(){H.JSC$15851_preventProgressSaveTimer=null},1E4))};
_.X.onVideoProgress=function(H){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&H>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.X.resetPreventProgressSaveTimer=function(){_.Fl.cancelJob(this.JSC$15851_preventProgressSaveTimer);this.JSC$15851_preventProgressSaveTimer=null};
_.X.getSimpleString=function(H){return _.Sp(H)};
_.X.onClick=function(H){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var U,A=(U=this.data)==null?void 0:U.navigationEndpoint,M;U=(M=this.data)==null?void 0:M.channelEndpoint;var W,w;((w=_.p((W=this.data)==null?void 0:W.adCtaButton,_.f$))==null?0:w.command)&&_.NF(_.Lf(H),this.hostElement,["call-to-action"])||(U&&_.NF(_.Lf(H),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(U,H,!1):!_.NF(_.Lf(H),this.hostElement,
["secondary-button"])&&A&&(_.S("enable_short_dr_for_desktop_launchable")?(M=!!_.p(A,_.sH),this.isInlinePlaybackState&&M&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(A,H,M)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(A,H,!0))))}};
_.X.updateWatchEndpointStartTime=function(){var H,U;this.player&&((H=this.data)==null?0:H.inlinePlaybackEndpoint)&&((U=this.data)==null?0:U.navigationEndpoint)&&!this.JSC$15851_preventProgressSaveTimer&&(H=Math.floor(this.player.getCurrentTime()),_.p(this.data.navigationEndpoint,_.sH).startTimeSeconds=H,_.p(this.data.inlinePlaybackEndpoint,_.sH).startTimeSeconds=H)};
_.X.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.X.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.D5.Object.defineProperties(yC.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.S("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var H,U;return!((H=this.data)==null||!H.watchButton)&&!((U=this.data)==null||!U.adCtaButton)}}});
yC.prototype.hoverChanged=yC.prototype.hoverChanged;yC.prototype.dataChanged=yC.prototype.dataChanged;
yC.JSC$15850_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"]]);
yC.JSC$15850_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"}];
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],yC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],yC.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.gF.YtSparklesClickLocationBehavior),_.q("design:type",Object)],yC.prototype,"ytSparklesClickLocationBehavior",void 0);
_.G([_.g(_.nm.YtPlayerListenerBehavior),_.q("design:type",_.NM)],yC.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],yC.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],yC.prototype,"isInlinePlaybackState",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],yC.prototype,"miniMode",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],yC.prototype,"uiUpdate",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],yC.prototype,"hideCta",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],yC.prototype,"noBottomMargin",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],yC.prototype,"animateInCta",void 0);_.G([_.y({computed:"computeButtonOverride(uiUpdate)"}),_.q("design:type",Object)],yC.prototype,"buttonOverride",void 0);
_.G([_.y({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.q("design:type",Object)],yC.prototype,"secondaryButtonOverride",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],yC.prototype,"isHovered",void 0);_.G([_.hG("#button-container"),_.q("design:type",HTMLElement)],yC.prototype,"buttonContainer",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],yC.prototype,"typographyBump",void 0);
_.G([_.y({reflectToAttribute:!0}),_.a("typographyBump"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],yC.prototype,"typographyBumpV2",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],yC.prototype,"enableMonoStyle",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yC.prototype,"dataChanged",null);
_.G([_.Ya("isHovered"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yC.prototype,"hoverChanged",null);_.G([_.a("data"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],yC.prototype,"isButtonGroup",null);_.G([_.dX({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],yC);
_.e(yC,"ytd-ad-inline-playback-meta-block",function(){if(cdn!==void 0)return cdn;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return cdn=H},{mode:2});var yd2;var BB=function(){var H=_.B.apply(this,arguments)||this;H.noBottomMargin=!1;H.isInlinePreviewTriggered=!1;H.JSC$15856_activeViewMeasurementDataResolver=_.oL();return H};
_.R(BB,_.B);_.X=BB.prototype;_.X.created=function(){this.activeView=new cA(this.hostElement)};
_.X.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.X.attached=function(){var H=this;this.updateInlinePreviewHoverListeners();this.JSC$15856_activeViewMeasurementDataResolver.promise.then(function(U){y4(H.activeView,U)});
_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&BA(H.activeView)})};
_.X.detached=function(){this.clearInlinePreviewHoverListeners();_.S("stop_av_measurement_on_detach")&&BA(this.activeView)};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15856_inlinePreviewHoverListener=iA({mediaRenderer:this,lockupElement:this.JSC$15856_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:huz})};
_.X.clearInlinePreviewHoverListeners=function(){var H;(H=this.JSC$15856_inlinePreviewHoverListener)==null||Ri(H)};
_.X.onDataChanged=function(){var H;((H=this.data)==null?0:H.activeView)&&this.JSC$15856_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",BB.JSC$15855_DEFAULT_CLICK_LOCATION_BEHAVIOR,BB.JSC$15855_CLICK_LOCATION_ID_MAP);this.thumbnail&&(H=this.thumbnail.getElementsByTagName("a"),H.length>0&&(H=H.namedItem("thumbnail"))&&H.removeAttribute("href"));var U;if((U=this.data)==
null?0:U.forceImpAutoplay){var A;(A=this.JSC$15856_inlinePreviewHoverListener)==null||K0K(A)}};
_.X.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.X.onThumbnailContainerClick=function(H){if(this.data&&this.data.navigationEndpoint){var U,A=(U=this.data)==null?void 0:U.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(A,H,!!_.p(A,_.sH));H.stopPropagation()}};
_.X.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.X.impressionLog=function(){var H=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var U,A,M=(A=_.p((U=this.data)==null?void 0:U.onImpression,_.$2))==null?void 0:A.commands;M&&(M.forEach(function(W){W.clickTrackingParams&&delete W.clickTrackingParams;H.ytComponentBehavior.resolveCommand(W)}),this.data.impressionsFired=!0)}};
_.D5.Object.defineProperties(BB.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.JSC$15856_inlinePreviewHoverListener)==null?0:J6(H))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
BB.prototype.onTypographyBumpChanged=BB.prototype.onTypographyBumpChanged;BB.prototype.onDataChanged=BB.prototype.onDataChanged;BB.JSC$15855_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);BB.JSC$15855_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"}];
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],BB.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],BB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],BB.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.PA),_.q("design:type",Object)],BB.prototype,"ytdLockupBehavior",void 0);
_.G([_.g(_.dF),_.q("design:type",Object)],BB.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.gF.YtSparklesClickLocationBehavior),_.q("design:type",Object)],BB.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],BB.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],BB.prototype,"noBottomMargin",void 0);_.G([_.y(),_.q("design:type",Object)],BB.prototype,"isInlinePreviewTriggered",void 0);
_.G([_.y({reflectToAttribute:!0,selector:_.w1}),_.q("design:type",Boolean)],BB.prototype,"miniMode",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],BB.prototype,"typographyBump",void 0);_.G([_.hG("ytd-thumbnail"),_.q("design:type",HTMLElement)],BB.prototype,"thumbnail",void 0);_.G([_.hG("#dismissible"),_.q("design:type",HTMLElement)],BB.prototype,"JSC$15856_dismissibleMedia",void 0);
_.G([_.hG("ytd-ad-inline-playback-meta-block"),_.q("design:type",HTMLElement)],BB.prototype,"adInlinePlaybackMetaBlock",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BB.prototype,"onDataChanged",null);_.G([_.jk("typographyBump"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BB.prototype,"onTypographyBumpChanged",null);
_.G([_.a("lockupIsHovered"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],BB.prototype,"isHovered",null);_.G([_.dX({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],BB);
_.e(BB,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(yd2!==void 0)return yd2;var H=document.createElement("template");_.E(H,'\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]]" typography-bump="[[typographyBump]]" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return yd2=H},{mode:1});var B2h;var ro=function(){var H=_.B.apply(this,arguments)||this;H.isInlinePreviewTriggered=!1;H.JSC$15859_activeViewMeasurementDataResolver=_.oL();return H};
_.R(ro,_.B);_.X=ro.prototype;_.X.created=function(){this.activeView=new cA(this.hostElement)};
_.X.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.X.attached=function(){var H=this;this.updateInlinePreviewHoverListeners();this.JSC$15859_activeViewMeasurementDataResolver.promise.then(function(U){y4(H.activeView,U)})};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15859_inlinePreviewHoverListener=iA({mediaRenderer:this,lockupElement:this.JSC$15859_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:huz})};
_.X.clearInlinePreviewHoverListeners=function(){var H;(H=this.JSC$15859_inlinePreviewHoverListener)==null||Ri(H)};
_.X.onDataChanged=function(){var H;((H=this.data)==null?0:H.activeView)&&this.JSC$15859_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",ro.JSC$15858_DEFAULT_CLICK_LOCATION_BEHAVIOR,ro.JSC$15858_CLICK_LOCATION_ID_MAP);this.thumbnail&&(H=this.thumbnail.getElementsByTagName("a"),H.length>0&&(H=H.namedItem("thumbnail"))&&H.removeAttribute("href"))};
_.X.onThumbnailContainerClick=function(H){if(this.data&&this.data.navigationEndpoint){var U,A=(U=this.data)==null?void 0:U.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(A,H,!0);H.stopPropagation()}};
_.X.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.X.impressionLog=function(){var H=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var U,A,M=(A=_.p((U=this.data)==null?void 0:U.onImpression,_.$2))==null?void 0:A.commands;M&&(M.forEach(function(W){W.clickTrackingParams&&delete W.clickTrackingParams;_.lx().resolve(_.YV).resolveCommand(W,{form:{element:H.hostElement}})}),this.data.impressionsFired=!0)}};
_.D5.Object.defineProperties(ro.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.JSC$15859_inlinePreviewHoverListener)==null?0:J6(H))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ro.prototype.onDataChanged=ro.prototype.onDataChanged;ro.JSC$15858_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);ro.JSC$15858_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"}];_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ro.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],ro.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.PA),_.q("design:type",Object)],ro.prototype,"ytdLockupBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],ro.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.gF.YtSparklesClickLocationBehavior),_.q("design:type",Object)],ro.prototype,"ytSparklesClickLocationBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],ro.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],ro.prototype,"isInlinePreviewTriggered",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.w1}),_.q("design:type",Boolean)],ro.prototype,"miniMode",void 0);_.G([_.hG("ytd-thumbnail"),_.q("design:type",HTMLElement)],ro.prototype,"thumbnail",void 0);_.G([_.hG("#dismissible"),_.q("design:type",HTMLElement)],ro.prototype,"JSC$15859_dismissibleMedia",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ro.prototype,"onDataChanged",null);_.G([_.a("lockupIsHovered"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ro.prototype,"isHovered",null);_.G([_.dX({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],ro);
_.e(ro,"ytd-video-display-full-buttoned-renderer",function(){if(B2h!==void 0)return B2h;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return B2h=H},{mode:1});var RR=function(H,U,A,M){M=M===void 0?!1:M;_.HF.call(this,H);this.adsClientErrorMessage=A;this.aggressivelySample=M;this.args=[];U&&this.args.push(U)};
_.R(RR,_.HF);var pl=function(H,U,A,M){M=M===void 0?!1:M;_.HF.call(this,H);this.adsClientErrorMessage=A;this.aggressivelySample=M;this.args=[];U&&this.args.push(U)};
_.R(pl,_.HF);var rdm=function(H){_.XG.call(this);var U=this;this.initializationFunction=H;this.instance=null;this.addOnDisposeCallback(function(){_.zg(U.instance);U.instance=null})};
_.R(rdm,_.XG);rdm.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.Kl("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var ta_=function(){var H=new Map;[].forEach(function(U){H.set(U.JSC$31526_getType(),U)});
this.getters=H};new Promise(function(){});var gqF=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"]]),EqE=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"}]]),eGn=function(H){this.experimentApiProvider=H;H=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=H<.1};var e8=function(H,U,A,M){_.XG.call(this);this.adsControlFlowEventListeners=U;this.adEventLogger=A;this.experimentApiProvider=M;this.adsControlFlowManagerHelper=H(this,this,this,this,this);_.kl(this,this.adsControlFlowManagerHelper);H=_.b(U);for(U=H.next();!U.done;U=H.next())_.kl(this,U.value)};
_.R(e8,_.XG);var D33=function(H,U,A,M){DC(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",U,A,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,M);H=_.b(H.adsControlFlowEventListeners);for(M=H.next();!M.done;M=H.next())D33(M.value,U,A)};
_.X=e8.prototype;_.X.onOpportunityProcessedExternallyManaged=function(H,U,A,M){DC(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",H,A,U,void 0,void 0,void 0,void 0,void 0,void 0,void 0,M)};
_.X.onSlotReceivedExternallyManaged=function(H,U){$x(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",H,U)};
_.X.onSlotEntered=function(H){if(lk(this.adsControlFlowManagerHelper,H)!=null){$x(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",H);this.adsControlFlowManagerHelper.onSlotEntered(H);for(var U=_.b(this.adsControlFlowEventListeners),A=U.next();!A.done;A=U.next())A.value.onSlotEntered(H);if(lk(this.adsControlFlowManagerHelper,H)!=null&&lk(this.adsControlFlowManagerHelper,H).isOccupyingSlotType()&&GH(this.adsControlFlowManagerHelper,H)&&!$3n(this.adsControlFlowManagerHelper,H)){var M;Yx(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",H,(M=GH(this.adsControlFlowManagerHelper,H))!=null?M:void 0);H=lk(this.adsControlFlowManagerHelper,H);H.slotLifecycleStage!=="entered"&&qk(H.slot,H.slotLifecycleStage,"enterLayoutForSlot");H.slotLifecycleStage="rendering";H.registeredLayoutRenderingAdapter.startRendering(H.layout)}}};
_.X.onSlotExited=function(H){if(lk(this.adsControlFlowManagerHelper,H)!=null){$x(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",H);this.adsControlFlowManagerHelper.onSlotExited(H);for(var U=_.b(this.adsControlFlowEventListeners),A=U.next();!A.done;A=U.next())A.value.onSlotExited(H);lk(this.adsControlFlowManagerHelper,H)!=null&&lk(this.adsControlFlowManagerHelper,H).markedForUnscheduleAfterOutboundAdapterRequests&&lhm(this,H)}};
_.X.onLayoutReceivedExternallyManaged=function(H,U,A){H.managerLayer!=="core"&&Yx(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",H,U,A)};
var GLk=function(H,U,A){if(lk(H.adsControlFlowManagerHelper,U)!=null){Yx(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",U,A);H=_.b(H.adsControlFlowEventListeners);for(var M=H.next();!M.done;M=H.next())GLk(M.value,U,A)}};
e8.prototype.onLayoutExited=function(H,U,A){if(lk(this.adsControlFlowManagerHelper,H)!=null){Yx(this.adEventLogger,mt7(A),H,U);this.adsControlFlowManagerHelper.onLayoutExited(H,U);for(var M=_.b(this.adsControlFlowEventListeners),W=M.next();!W.done;W=M.next())W.value.onLayoutExited(H,U,A);(A=GH(this.adsControlFlowManagerHelper,H))&&U.layoutId===A.layoutId&&YS2(this,H)}};
e8.prototype.disposeInternal=function(){var H=qSz(this.adsControlFlowManagerHelper);H=_.b(H);for(var U=H.next();!U.done;U=H.next())lhm(this,U.value);_.XG.prototype.disposeInternal.call(this)};
var lhm=function(H,U){if(lk(H.adsControlFlowManagerHelper,U)!=null)if(lk(H.adsControlFlowManagerHelper,U).JSC$31556_isSlotExitRequested()||lk(H.adsControlFlowManagerHelper,U).JSC$31556_isLayoutExitRequested())lk(H.adsControlFlowManagerHelper,U).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(lk(H.adsControlFlowManagerHelper,U).isOccupyingSlotType())lk(H.adsControlFlowManagerHelper,U).markedForUnscheduleAfterOutboundAdapterRequests=!0,YS2(H,U);else if(lk(H.adsControlFlowManagerHelper,U).JSC$31556_isSlotFillRequested())lk(H.adsControlFlowManagerHelper,
U).markedForUnscheduleAfterOutboundAdapterRequests=!0,lk(H.adsControlFlowManagerHelper,U)!=null&&($x(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",U),U=lk(H.adsControlFlowManagerHelper,U),U.fulfillmentLifecycleStage="fill_cancel_requested",U.registeredFulfillmentAdapter.cancelSlotFilling());else{var A=GH(H.adsControlFlowManagerHelper,U),M;H.experimentApiProvider.get();(M=_.S("h5_enable_layout_unscheduling_events"))&&(A?hGz(H,U,A):_.Kl(Error("Nh"),U,A,void 0,!1));$x(H.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",U);var W=lk(H.adsControlFlowManagerHelper,U),w=U.slotEntryTrigger,d=W.registeredSlotEntryTriggerAdapters.get(w.triggerId);d&&(d.unregisterTrigger(w),W.registeredSlotEntryTriggerAdapters.delete(w.triggerId));w=_.b(U.slotFulfillmentTriggers);for(d=w.next();!d.done;d=w.next()){d=d.value;var O=W.registeredFulfillmentTriggerAdapters.get(d.triggerId);O&&(O.unregisterTrigger(d),W.registeredFulfillmentTriggerAdapters.delete(d.triggerId))}w=_.b(U.slotExpirationTriggers);
for(d=w.next();!d.done;d=w.next())if(d=d.value,O=W.registeredExpirationTriggerAdapters.get(d.triggerId))O.unregisterTrigger(d),W.registeredExpirationTriggerAdapters.delete(d.triggerId);W.hasLayout()&&(w=W.layout,h_(W,w.layoutExitNormalTriggers),h_(W,w.layoutExitSkipTriggers),h_(W,w.layoutExitMuteTriggers),h_(W,w.layoutExitUserInputSubmittedTriggers),h_(W,w.layoutExitUserCancelledTriggers));W.registeredFulfillmentAdapter=void 0;W.registeredSlotAdapter!=null&&(W.registeredSlotAdapter.release(),W.registeredSlotAdapter=
void 0);W.registeredLayoutRenderingAdapter!=null&&(W.registeredLayoutRenderingAdapter.release(),W.registeredLayoutRenderingAdapter=void 0);W=H.adsControlFlowManagerHelper;lk(W,U)&&(W=kLy(W,U.slotType+"_"+U.slotPhysicalPosition))&&W.delete(U.slotId);$x(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",U);H=_.b(H.adsControlFlowEventListeners);for(W=H.next();!W.done;W=H.next())W=W.value,W.onSlotUnscheduled(U),A&&!M&&hGz(W,U,A)}},hGz=function(H,U,A){Yx(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
U,A);
Yx(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",U,A);H=_.b(H.adsControlFlowEventListeners);for(var M=H.next();!M.done;M=H.next())M=M.value,A&&hGz(M,U,A)},YS2=function(H,U){if(lk(H.adsControlFlowManagerHelper,U)!=null&&lk(H.adsControlFlowManagerHelper,U).isOccupyingSlotType()){var A=GH(H.adsControlFlowManagerHelper,U);
if(A&&$3n(H.adsControlFlowManagerHelper,U)){if(lk(H.adsControlFlowManagerHelper,U)!=null){var M=H.adEventLogger,W;var w=((W=EqE.get("abandoned"))==null?void 0:W.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";Yx(M,w,U,A);H=lk(H.adsControlFlowManagerHelper,U);H.slotLifecycleStage!=="rendering"&&qk(H.slot,H.slotLifecycleStage,"exitLayout");H.slotLifecycleStage="rendering_stop_requested";H.registeredLayoutRenderingAdapter.stopRendering(A,"abandoned")}}else{$x(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
U);try{M=lk(H.adsControlFlowManagerHelper,U);if(!M)throw new pl("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");M.slotLifecycleStage!=="enter_requested"&&M.slotLifecycleStage!=="entered"&&M.slotLifecycleStage!=="rendering"&&qk(M.slot,M.slotLifecycleStage,"exitSlot");M.slotLifecycleStage="exit_requested";if(M.registeredSlotAdapter===void 0)throw M.slotLifecycleStage="scheduled",new pl("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
M.registeredSlotAdapter.exit()}catch(d){d instanceof pl&&d.adsClientErrorMessage?(vMw(H.adEventLogger,d.adsClientErrorMessage,U),_.Kl(d,U,void 0,void 0,d.aggressivelySample)):(vMw(H.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",U),_.Kl(d,U))}}}};var kx=function(H,U,A,M,W,w){_.XG.call(this);this.registry=H;this.experimentApiProvider=w;this.slotMap=new Map};
_.R(kx,_.XG);var kLy=function(H,U){return(H=H.slotMap.get(U))?H:new Map},lk=function(H,U){return kLy(H,U.slotType+"_"+U.slotPhysicalPosition).get(U.slotId)},qSz=function(H){var U=[];
H.slotMap.forEach(function(A){A=_.b(A.values());for(var M=A.next();!M.done;M=A.next())U.push(M.value.slot)});
return U};
kx.prototype.onSlotEntered=function(H){H=lk(this,H);H.slotLifecycleStage!=="enter_requested"&&qk(H.slot,H.slotLifecycleStage,"onSlotEntered");H.slotLifecycleStage="entered"};
var $3n=function(H,U){H=lk(H,U);return H.hasLayout()&&H.isRendering()},GH=function(H,U){(H=lk(H,U))?H.hasLayout()&&!H.layout&&_.Kl("Unexpected empty layout",U):_.Kl("Unexpected undefined slotState",U);
return(H==null?void 0:H.layout)||null};
kx.prototype.onSlotExited=function(H){H=lk(this,H);H.slotLifecycleStage!=="exit_requested"&&qk(H.slot,H.slotLifecycleStage,"onSlotExited");H.slotLifecycleStage="scheduled"};
kx.prototype.onLayoutExited=function(H,U){H=lk(this,H);H.isPrimaryLayout(U)&&(H.slotLifecycleStage!=="rendering_stop_requested"&&qk(H.slot,H.slotLifecycleStage,"onLayoutExited"),H.slotLifecycleStage="entered")};
var h_=function(H,U){U=_.b(U);for(var A=U.next();!A.done;A=U.next()){A=A.value;var M=H.registeredLayoutExitTriggerAdapters.get(A.triggerId);M&&(M.unregisterTrigger(A),H.registeredLayoutExitTriggerAdapters.delete(A.triggerId))}},qk=function(H,U,A){_.Kl("Slot stage was "+U+" when calling method "+A,H)};var jqr=function(H){_.XG.call(this);this.deps=H;this.JSC$15912_adsControlFlowManager=T2m(this)};
_.R(jqr,_.XG);var T2m=function(H){var U=new e8(function(A,M,W,w){return new kx(H.deps.registry,A,M,W,w,H.deps.experimentApiProvider)},new Set(Ci8(H.deps.registry).concat(H.deps.listeners)),H.deps.adEventLogger,H.deps.experimentApiProvider);
_.kl(H,U);return U};var Fb8=function(){};var Ihw=function(H,U){_.XG.call(this);this.experimentApiProvider=H;this.eventLoggingSettingsProvider=U;this.eventCount=0;this.premiumAdSeenEventLogger=Pa7()()};
_.R(Ihw,_.XG);Ihw.prototype.logEvent=function(H){DC(this,H)};
var $x=function(H,U,A,M){DC(H,U,void 0,void 0,void 0,A,void 0,void 0,void 0,A.adSlotLoggingData,void 0,void 0,M)},Yx=function(H,U,A,M,W){DC(H,U,void 0,void 0,void 0,A,M?M:void 0,void 0,void 0,A.adSlotLoggingData,M?M.adLayoutLoggingData:void 0,void 0,W);
A=_.lx().resolve(_.$V(du))==null?void 0:uM();U=A==null?void 0:A.adsSeenHotConfig;A=A==null?void 0:A.adsHotConfig;(U==null?0:U.logOnAdsSeen)&&(A==null?0:A.webEnablePremiumAdsSeenLogging)&&Qqg(H,M?M:void 0,W)},vMw=function(H,U,A){DC(H,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,A,void 0,void 0,void 0,A.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:U})},DC=function(H,U,A,M,W,w,d,O,f,J,F,P,n){n=n===void 0?0:n;
VSB(H.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+U,"slot:",w,"layout:",d,"ping:",O,"Opportunity:",{opportunityType:A,associatedSlotId:M,slotsFromOpportunity:W,triggerBundle:f,adSlotLoggingData:J,adLayoutLoggingData:F});try{var N=function(){H.experimentApiProvider.get();if(U!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){U||_.Kl("Empty PACF event type",w,d);var L=H.eventLoggingSettingsProvider.get();var m;(m=L.alwaysIncludeDebugData)||(L.experimentApiProvider.get(),m=
!1);L=m;m={eventType:U,eventOrder:++H.eventCount};var z={};w&&(z.slotData=xt4(L,w));if(d){var c={type:d.layoutType,controlFlowManagerLayer:gqF.get(d.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};L&&(c.debugData={layoutId:d.layoutId});z.layoutData=c}O&&(z.pingData={pingDispatchStatus:O.dispatchStatus,serializedAdPingMetadata:O.ping.serializedAdPingMetadata,pingIndex:O.index});f&&(z.triggerData=aF8(f.trigger,f.category));A&&(z.opportunityData=zi_(L,A,M,W));m.adClientData=z;J&&(m.serializedSlotAdServingData=
J.serializedSlotAdServingDataEntry);F&&(m.serializedAdServingData=F.serializedAdServingDataEntry);P&&(m.errorInfo=P);_.Fx("adsClientStateChange",{adsClientEvent:m})}};
n&&n>0?_.bM(_.MP(),function(){return N()},n):N()}catch(L){VSB(H.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.bM(_.MP(),function(){_.Kl(L instanceof Error?L:String(L),w,d,{pacf_message:"exception during pacf logging"})})}},Qqg=function(H,U,A){if(U){var M=U.adLayoutLoggingData;
_.bM(_.MP(),function(){H.premiumAdSeenEventLogger!=null&&M&&_.Fx("adsSeenClientLogging",{serializedAdServingDataEntry:M.serializedAdServingDataEntry})},A!=null?A:0)}};var Hiz=function(H,U){Ihw.call(this,H,U)};
_.R(Hiz,Ihw);var UWB=function(){},VSB=function(H,U){return _.S(U)};var Mgg=function(){var H=new AUK;this.JSC$15937_adsControlFlowManager=(new jqr(H)).JSC$15912_adsControlFlowManager},AUK=function(){_.XG.call(this);
var H=this;this.experimentApiProvider=new rdm(function(){return new UWB});
var U=new rdm(function(){return new eGn(H.experimentApiProvider)});
this.adEventLogger=new Hiz(this.experimentApiProvider,U);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.R(AUK,_.XG);var Wjr=function(){},wP3,vB=function(){wP3||(wP3=new Wjr);
return wP3},TH=function(H){if(!H.JSC$15948_externallyManagedSlotAdapterCallback){var U=(new Mgg).JSC$15937_adsControlFlowManager;
H.JSC$15948_externallyManagedSlotAdapterCallback=U}return H.JSC$15948_externallyManagedSlotAdapterCallback},XPH=function(H,U,A){var M=U.opportunityType,W=Error("Oh");
if(M!==void 0){var w=TH(H);D33(w,M,void 0,A)}else _.Kl(W,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});w=[];if(U.adSlotAndLayoutMetadata!==void 0){U=_.b(U.adSlotAndLayoutMetadata);for(var d=U.next();!d.done;d=U.next()){var O=d.value;if(d=O.adSlotMetadata)if(w.push(d),H.onSlotReceivedExternallyManaged(d,A),O.adLayoutMetadata){O=_.b(O.adLayoutMetadata);for(var f=O.next();!f.done;f=O.next())H.onLayoutReceivedExternallyManaged(d,f.value,A)}else A>0&&_.Kl("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
M,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else A>0&&_.Kl("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+M,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else A>0&&_.Kl("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+M,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(M!==void 0)H.onOpportunityProcessedExternallyManaged(M,w,void 0,A);else _.Kl(W,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
Wjr.prototype.onSlotReceivedExternallyManaged=function(H,U){H=Ll(H);if(H instanceof pl)_.Kl(H,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else TH(this).onSlotReceivedExternallyManaged(H,U)};
Wjr.prototype.onLayoutReceivedExternallyManaged=function(H,U,A){H=Ll(H);U=c4N(U);if(H instanceof pl)_.Kl(H,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(U instanceof RR)_.Kl(U,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else TH(this).onLayoutReceivedExternallyManaged(H,U,A)};
Wjr.prototype.onOpportunityProcessedExternallyManaged=function(H,U,A,M){var W=[];U=_.b(U);for(var w=U.next();!w.done;w=U.next())w=Ll(w.value),w instanceof pl?_.Kl(w,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):W.push(w);TH(this).onOpportunityProcessedExternallyManaged(H,W,A,M)};
var iin=function(H,U){U=Ll(U);if(U instanceof pl)_.Kl(U,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var A=TH(H);$x(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",U);A=_.b(A.adsControlFlowEventListeners);for(var M=A.next();!M.done;M=A.next())M=lk(M.value,U),M.slotLifecycleStage!=="not_scheduled"&&qk(M.slot,M.slotLifecycleStage,"onSlotScheduled"),M.slotLifecycleStage="scheduled";H=TH(H);$x(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",U);H=_.b(H.adsControlFlowEventListeners);
for(A=H.next();!A.done;A=H.next())A.value.onSlotEntered(U)}},biw=function(H,U){U=Ll(U);
if(U instanceof pl)_.Kl(U,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var A=TH(H);$x(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",U);A=_.b(A.adsControlFlowEventListeners);for(var M=A.next();!M.done;M=A.next())M.value.onSlotExited(U);H=TH(H);$x(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",U);H=_.b(H.adsControlFlowEventListeners);for(A=H.next();!A.done;A=H.next())A.value.onSlotUnscheduled(U)}},dWg=function(H,U,A){U=Ll(U);
A=c4N(A);if(U instanceof pl)_.Kl(U,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(A instanceof RR)_.Kl(A,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var M=TH(H);Yx(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",U,A);M=_.b(M.adsControlFlowEventListeners);for(var W=M.next();!W.done;W=M.next())W.value.onLayoutScheduled(U,A);H=TH(H);Yx(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",U,A);H=_.b(H.adsControlFlowEventListeners);
for(M=H.next();!M.done;M=H.next())GLk(M.value,U,A)}},j8=function(H,U,A){U=Ll(U);
A=c4N(A);if(U instanceof pl)_.Kl(U,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(A instanceof RR)_.Kl(A,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var M=TH(H);Yx(M.adEventLogger,mt7("normal"),U,A);M=_.b(M.adsControlFlowEventListeners);for(var W=M.next();!W.done;W=M.next())W.value.onLayoutExited(U,A,"normal");H=TH(H);H=_.b(H.adsControlFlowEventListeners);for(M=H.next();!M.done;M=H.next())hGz(M.value,U,A)}};var Oin=_.r(function(H){var U=H.data,A=H.listenToTapEvent,M=function(){};
return _.Z("ad-button-hover-overlay-view-model",{"on:click":_.c$(function(W){if(_.S("enable_web_home_top_landscape_image_layout_legacy_click_command")){var w,d=(w=U().interaction)==null?void 0:w.onTap;d&&_.cg(W.currentTarget,"yt-navigate",{endpoint:_.ij(d)})}}),
class:function(){var W;return((W=U().interaction)==null?0:W.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.sB(_.eD({visibilityCallback:function(W){var w,d=(w=U().interaction)==null?void 0:w.onFirstVisible;W&&d&&_.uj(d)},
showOption:_.Cj}),_.d7(function(){return U().interaction},void 0,function(){return!_.S("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(A==null?void 0:A())}))},function(){return _.S("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.Z(_.YY,{data:function(){return U().button}},{adButtonViewModel:function(W){return _.Z(_.y2,{data:W.data,
customCommandResolver:M})}}):_.Z(_.YY,{data:function(){return U().button}},{adButtonViewModel:_.y2})}())},"uc");var Ey;_.LG(_.r(function(H){var U=H.data;H=_.eD({visibilityCallback:function(O,f){if(O){var J;(O=(J=U().interaction)==null?void 0:J.onFirstVisible)&&_.uj(O);var F;if(J=(F=U().adLayoutData)==null?void 0:F.activeViewData)mL(f,J),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&g7(f)})}else _.S("stop_av_measurement_on_detach")&&g7(f)},
showOption:_.Cj,hideOption:t6});var A=_.d7(function(){return U().interaction},void 0,function(){return!0}),M=_.b(_.iB(!1,void 0,"VNDDT")),W=M.next().value,w=M.next().value;
M=_.c$(function(){w(!0)});
var d=_.c$(function(){w(!1)});
return _.Z("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.sB(H,lF0,A),"on:mouseenter":M,"on:mouseleave":d},_.Z("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.rA({"max-width":function(){return _.S("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.Z("div",{class:function(){var O;
a:{var f;switch((O=_.p(U().thumbnailImage,jCB))==null?void 0:(f=O.imageProperties)==null?void 0:f.renderingAspect){case "RENDERING_ASPECT_SQUARE":O="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":O="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}O=void 0}return O}},_.Z(_.YY,{data:function(){return U().thumbnailImage}},{adImageViewModel:function(O){return _.Z(_.c6,
{data:O.data,
listenToTapEvent:!0,setTouchEndHandler:_.S("enable_top_landscape_image_experiment_dom_id_web")})}})),_.Z("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.Z(_.K,{cond:function(){var O,f,J;
return(O=_.p(U().thumbnailImage,jCB))==null?void 0:(f=O.imageProperties)==null?void 0:(J=f.overlayIcon)==null?void 0:J.iconImage},
then:function(O){return _.Z(_.nG,{data:O,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.Z("div",{class:function(){return W()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.Z(_.YY,{data:function(){return U().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(O){return _.Z(Oin,
{data:O.data,
listenToTapEvent:!0})}}))),_.Z("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.Z(_.YY,{data:function(){return U().feedAdMetadata}},{feedAdMetadataViewModel:function(O){return _.Z(Gt,{data:O.data,
listenToTapEvent:!0,setTouchEndHandler:_.S("enable_top_landscape_image_experiment_dom_id_web")})}})))},"vc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){var U=H.data;H=_.eD({visibilityCallback:function(O,f){if(O){var J;(O=(J=U().interaction)==null?void 0:J.onFirstVisible)&&_.uj(O);var F;if(J=(F=U().adLayoutData)==null?void 0:F.activeViewData)mL(f,J),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&g7(f)})}else _.S("stop_av_measurement_on_detach")&&g7(f)},
showOption:_.Cj,hideOption:t6});var A=_.Gk(_.Wo),M=_.d7(function(){return U().interaction}),W={},w={},d={};
return _.Z("square-image-layout-view-model",{class:_.CG("ytwSquareImageLayoutViewModelHost",(W.ytwSquareImageLayoutViewModelHostColumn=A,W)),el:_.sB(H,G5E,M)},_.Z("div",{class:_.CG("ytwSquareImageLayoutViewModelHostImage",(w.ytwSquareImageLayoutViewModelHostColumnImage=A,w))},function(){return _.Z(_.YY,{data:function(){return U().adImage}},{adImageViewModel:function(O){return _.Z(_.c6,{data:O.data,
isGridViewEnabled:A,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.Z("div",{class:_.CG("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(d.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=A,d))},_.Z(_.YY,{data:function(){return U().feedAdMetadata}},{feedAdMetadataViewModel:Gt}),function(){return _.Z(_.YY,{data:function(){return U().adButton}},{adButtonViewModel:function(O){var f={};
return _.Z(_.y2,{data:O.data,className:_.CG((f.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,f.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=A,f))})}})}()))},"wc"),"square-image-layout-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){var U=H.data;var A=H.noBottomMargin;var M=H.typographyBump;H=_.eD({visibilityCallback:function(P,n){if(P){var N;(P=(N=U().interaction)==null?void 0:N.onFirstVisible)&&_.uj(P);var L;if(N=(L=U().adLayoutData)==null?void 0:L.activeViewData)mL(n,N),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&g7(n)})}else _.S("stop_av_measurement_on_detach")&&g7(n)},
showOption:_.Cj,hideOption:t6});var W=_.d7(function(){return U().interaction},void 0,function(){return _.S("enable_web_home_top_landscape_image_layout_level_click")}),w=function(){return U().interaction};
w!==void 0&&w!==null||_.c5(Error("Ph"));var d=function(){var P,n,N;return(P=_.p(U().thumbnailImage,jCB))==null?void 0:(n=P.background)==null?void 0:(N=n.backgroundImageSource)==null?void 0:N.imageSources};
w=_.b(_.iB(!1,void 0,"NFjwje"));var O=w.next().value,f=w.next().value;w=_.c$(function(){f(!0)});
var J=_.c$(function(){f(!1)}),F=function(){return O()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.Z("top-landscape-image-layout-view-model",{class:function(){var P;return((P=U().interaction)==null?0:P.onTap)&&_.S("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.sB(H,YIc,W),"on:mouseenter":w,"on:mouseleave":J},_.Z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.Z(_.K,{cond:function(){return d()&&d().length>0},
then:function(){return _.Z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.rA({top:"0","background-image":function(){return"url("+String(d()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.Z(_.K,{cond:function(){return!!U().adButtonHoverOverlay},
then:function(){return _.Z("div",{class:F},_.Z(_.YY,{data:function(){return U().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:Oin}))}}),_.Z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.Z(_.YY,{data:function(){return U().thumbnailImage}},{adImageViewModel:function(P){return _.Z(_.c6,{data:P.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.S("enable_web_home_top_landscape_image_layout_level_click")})}})),_.Z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.Z(_.nG,{data:{sources:[{clientResource:{imageName:_.S("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.Z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.Z(_.YY,{data:function(){return U().feedAdMetadata}},{feedAdMetadataViewModel:function(P){return _.Z(Gt,{data:P.data,
noBottomMargin:function(){return A==null?void 0:A()},
listenToTapEvent:function(){return _.S("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return M==null?void 0:M()}})}})))},"xc"),"top-landscape-image-layout-view-model",{props:{data:_.sY,
noBottomMargin:_.sY,typographyBump:_.sY}});var uN2=_.r(function(H){var U=H.data,A=_.eD({visibilityCallback:function(W){var w,d=(w=U().interaction)==null?void 0:w.onFirstVisible;W&&d&&_.uj(d)},
showOption:_.Cj});H=_.d7(function(){return U().interaction},H.customCommandResolver);
var M={};return _.Z("ad-text-image-view-model",{class:_.CG("ytwAdTextImageViewModelHost",(M.ytwAdTextImageViewModelHostDarkBackground=function(){return U().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},M)),
el:_.sB(A,H),"aria-label":function(){var W,w;return(W=U().interaction)==null?void 0:(w=W.accessibility)==null?void 0:w.label}},_.Z("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.Z(_.Pb,{text:function(){return U().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.Z(_.K,{cond:function(){return U().overlayIcon},
then:function(W){return _.Z("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.Z(_.nG,{data:W,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"yc");var Zin=_.r(function(H){var U=H.data;return _.Z("feed-ad-sitelink-view-model",{class:function(){var A;return((A=U().interaction)==null?0:A.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.sB(_.d7(function(){return U().interaction},H.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var A,M;return(A=U().interaction)==null?void 0:(M=A.accessibility)==null?void 0:M.label},
role:"link",tabindex:0},_.Z(_.Pb,{text:function(){return U().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"zc");var fLg=_.r(function(H){var U=H.data;H={};return _.Z("feed-ad-sitelinks-carousel-view-model",{el:_.sB(_.eD({visibilityCallback:function(A){var M,W=(M=U().interaction)==null?void 0:M.onFirstVisible;A&&W&&_.uj(W)},
showOption:_.Cj})),class:_.CG("ytwFeedAdSitelinksCarouselViewModelHost",(H.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return U().style==="FEED_AD_SITELINKS_STYLE_NONE"},H))},_.Z(_.YY,{data:function(){return U().sitelinks}},{feedAdSitelinkViewModel:Zin}))},"Ac");_.LG(_.r(function(H){var U=H.data;H=_.eD({visibilityCallback:function(d,O){if(d){var f;(d=(f=U().interaction)==null?void 0:f.onFirstVisible)&&_.uj(d);var J;(f=(J=U().adLayoutData)==null?void 0:J.activeViewData)&&mL(O,f)}},
showOption:_.Cj});var A=_.b(_.iB(!1,void 0,"BzPhl")),M=A.next().value,W=A.next().value;A=_.c$(function(){W(!0)});
var w=_.c$(function(){W(!1)});
return _.Z("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.sB(H),"on:mouseenter":A,"on:mouseleave":w},_.Z("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.Z("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.Z(_.YY,{data:function(){return U().textImage}},{adTextImageViewModel:uN2})),_.Z("div",{class:function(){return M()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.Z(_.YY,{data:function(){return U().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(d){return _.Z(Oin,{data:d.data,
listenToTapEvent:!0})}}))),_.Z("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.Z(_.YY,{data:function(){return U().feedAdMetadata}},{feedAdMetadataViewModel:function(d){return _.Z(Gt,{data:d.data,
listenToTapEvent:!0})}}),_.Z(_.YY,{data:function(){return U().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:fLg})))},"Bc"),"text-image-no-button-layout-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){var U=H.data;var A=H.typographyBump;return _.Z("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.sB(_.eD({visibilityCallback:function(M,W){if(M){var w;(M=(w=U().interaction)==null?void 0:w.onFirstVisible)&&_.uj(M);var d;(w=(d=U().adLayoutData)==null?void 0:d.activeViewData)&&mL(W,w)}},
showOption:_.Cj,hideOption:t6}))},_.Z("div",null,_.Z(_.YY,{data:function(){return U().videoLockup}},{lockupViewModel:function(M){return _.Z(_.YN,{data:M.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:A})}})))},"Cc"),"video-display-button-group-layout-view-model",{props:{data:_.sY,
noBottomMargin:_.sY,typographyBump:_.sY}});_.LG(_.r(function(H){var U=H.data;var A=H.className;var M=H.typographyBump;return _.Z("video-display-compact-button-group-layout-view-model",{el:_.sB(_.eD({visibilityCallback:function(W,w){if(W){var d;(W=(d=U().interaction)==null?void 0:d.onFirstVisible)&&_.uj(W);var O;(d=(O=U().adLayoutData)==null?void 0:O.activeViewData)&&mL(w,d)}},
showOption:_.Cj})),class:_.CG("videoDisplayCompactButtonGroupLayoutViewModelHost",A)},_.Z(_.YY,{data:function(){return U().videoLockup}},{lockupViewModel:function(W){return _.Z(_.YN,{data:W.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:M})}}))},"Dc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.sY,
className:_.sY,typographyBump:_.sY}});_.LG(_.r(function(H){var U=H.data;var A=H.className;var M=H.typographyBump;return _.Z("video-display-compact-buttoned-layout-view-model",{el:_.sB(_.eD({visibilityCallback:function(W,w){if(W){var d;(W=(d=U().interaction)==null?void 0:d.onFirstVisible)&&_.uj(W);var O;(d=(O=U().adLayoutData)==null?void 0:O.activeViewData)&&mL(w,d)}},
showOption:_.Cj})),class:_.CG("videoDisplayCompactButtonedLayoutViewModelHost",A)},_.Z(_.YY,{data:function(){return U().videoLockup}},{lockupViewModel:function(W){return _.Z(_.YN,{data:W.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:M})}}))},"Ec"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.sY,
className:_.sY,typographyBump:_.sY}});_.LG(_.r(function(H){var U=H.data;var A=H.className;var M=H.typographyBump;var W=function(){return U().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},w=_.Gk(_.Wo);
H=_.eD({visibilityCallback:function(J,F){if(J){var P=U();J=P.adLayoutData;var n;(P=(n=P.interaction)==null?void 0:n.onFirstVisible)&&_.uj(P);(n=J==null?void 0:J.activeViewData)&&mL(F,n)}},
showOption:_.Cj});var d=_.Ja(function(){return{containerType:W()&&w()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:W()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),O=_.Ja(function(){return W()&&w()?"":W()?"168px":"50%"},void 0,"Om6kNe"),f=_.Ja(function(){return W()&&w()?9999:void 0},void 0,"S71lKd");
return _.Z("video-display-compact-layout-view-model",{el:_.sB(H),class:_.CG("videoDisplayCompactLayoutViewModelHost",A)},_.Z(_.YY,{data:function(){return U().videoLockup}},{lockupViewModel:function(J){return _.Z(_.YN,{data:J.data,
containerLayoutConfig:d,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:O,thumbnailTargetWidth:f,typographyBump:M})}}))},"Fc"),"video-display-compact-layout-view-model",{props:{data:_.sY,
className:_.sY,typographyBump:_.sY}});_.LG(_.r(function(H){var U=H.data;var A=H.typographyBump;return _.Z("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.sB(_.eD({visibilityCallback:function(M,W){if(M){var w;(M=(w=U().interaction)==null?void 0:w.onFirstVisible)&&_.uj(M);var d;(w=(d=U().adLayoutData)==null?void 0:d.activeViewData)&&mL(W,w)}},
showOption:_.Cj,hideOption:t6}))},_.Z("div",null,_.Z(_.YY,{data:function(){return U().videoLockup}},{lockupViewModel:function(M){return _.Z(_.YN,{data:M.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:A})}})))},"Gc"),"video-display-full-layout-view-model",{props:{data:_.sY,
noBottomMargin:_.sY,typographyBump:_.sY}});var JUg=_.r(function(H){var U=H.data;var A=H.customCommandResolver;var M=H.className;var W=H.buttonClassName;var w=H.animationEntityKey;var d=H.expansive;return _.Z("carousel-button-view-model",{class:_.CG("ytwCarouselButtonViewModelHost",M)},_.Z(_.YY,{data:function(){return U().carousel}},{carouselAdCardCollectionViewModel:function(O){return _.Z(Van,{data:O.data,
customCommandResolver:A,expansive:d})}}),_.Z(_.YY,{data:function(){return U().button}},{adButtonViewModel:function(O){var f=O.data;
return _.Z(_.y2,{data:function(){return(d==null?0:d())?Object.assign({},f(),{style:"AD_BUTTON_STYLE_TONAL"}):f()},
className:W,customCommandResolver:A,animationEntityKey:w})}}))},"Hc");_.Kjp=_.r(function(H){var U=H.data;H=H.className;var A=_.nA("pivot-button-view-model");_.LA(function(){var M;((M=U())==null?0:M.backgroundColor)&&A.value.setAttribute("data-background-color",String(U().backgroundColor))});
return _.Z("pivot-button-view-model",{el:A,class:_.CG("ytwPivotButtonViewModelHost",H)},_.Z(_.xy,{command:function(){var M=U();M=M.onClickCommand?_.ij(M.onClickCommand):M.contentDescription?_.mH(M.contentDescription):void 0;return M},
ariaLabel:function(){return U().contentDescription}},_.Z(_.K,{cond:function(){return U().thumbnail},
then:function(M){return _.Z(_.nG,{data:M,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.Z(_.K,{cond:function(){return U().icon},
then:function(M){return _.Z(_.er,{icon:function(){return M().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Ic");_.omg=_.r(function(H){var U=H.data;var A=H.buttonShapeOverrideables;H={};return _.Z("reel-action-bar-view-model",{class:_.CG("ytwReelActionBarViewModelHost",(H.ytwReelActionBarViewModelHostDecluttered=function(){return _.S("enable_shorts_declutter_ui")},H))},_.Z(_.YY,{data:function(){return U().buttonViewModels}},{buttonViewModel:function(M){return _.Z(_.yJ,{data:M.data,
buttonOverrides:A})},
likeButtonViewModel:function(M){return _.Z(_.fn,{data:M.data,buttonShapeOverrideables:A})},
dislikeButtonViewModel:function(M){return _.Z(_.Zu,{data:M.data,buttonShapeOverrideables:A})},
toggleButtonViewModel:function(M){return _.Z(_.MI,{data:M.data,buttonShapeOverrides:A})}}))},"Jc");var Fjh=_.r(function(H){var U=H.avatar;var A=H.headline;var M=H.badge;var W=H.description;var w=H.expansive;H={};return _.Z("yt-ad-metadata-shape",{class:_.CG("ytAdMetadataShapeHost",(H.ytAdMetadataShapeHostLarge=w,H))},_.Z("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.Z(_.K,{cond:U,then:function(d){return _.Z(_.JXw,{data:function(){return(w==null?0:w())?Object.assign({},d(),{size:"AD_AVATAR_SIZE_M"}):d()}})}}),_.Z("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.Z(_.Pb,{text:A,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.Z(_.K,{cond:M,then:function(d){return _.Z(_.$N,{data:function(){return(w==null?0:w())?Object.assign({},d(),{style:"AD_BADGE_STYLE_STARK"}):d()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.Z("h2",{class:"ytAdMetadataShapeHostDescription"},_.Z(_.Pb,{text:W,
linkInheritColor:!0,isHeadline:function(){return w==null?void 0:w()}})))},"Kc");var P_H=_.r(function(H){var U=H.data;var A=H.onShow;var M=H.expansive;H=_.d7(function(){return U().interaction});
_.LA(function(){var w,d=(w=U().animatedRenderingConfig)==null?void 0:w.delayedSecondsToVisible;if(d){var O=setTimeout(A,d*1E3);_.m4(function(){clearTimeout(O)})}});
var W={};return _.Z("reels-ad-card-buttoned-view-model",{class:_.CG(function(){var w;return((w=U().interaction)==null?0:w.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(W.ytwReelsAdCardButtonedViewModelHostExpansive=M,W)),
el:_.sB(H)},_.Z(Fjh,{avatar:function(){return _.p(U().avatar,kGB)},
headline:function(){return U().headline},
badge:function(){return _.p(U().adBadge,vng)},
description:function(){return U().description},
expansive:M}),_.Z(_.YY,{data:function(){return U().ctaButton}},{adButtonViewModel:function(w){var d=w.data;
return _.Z(_.y2,{data:function(){return(M==null?0:M())?Object.assign({},d(),{style:"AD_BUTTON_STYLE_FILLED"}):d()}})}}))},"Lc");var sA3=_.r(function(H){var U=H.data;H=H.expansive;var A=_.S("web_ad_metadata_clickable")?_.d7(function(){return U().interaction},void 0,function(){return _.S("web_ad_metadata_clickable")}):void 0,M={};
M=_.QU("ytwReelsAdMetadataViewModelHost",(M.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.S("web_ad_metadata_clickable"),M));return _.Z("reels-ad-metadata-view-model",{class:M,el:_.sB(A)},_.Z(Fjh,{avatar:function(){return _.p(U().avatar,kGB)},
headline:function(){return U().headline},
badge:function(){return _.p(U().adBadge,vng)},
description:function(){return U().description},
expansive:H}))},"Mc");var nmB=_.r(function(){return _.Z("div",{class:"ytwVideoFilteringOverlayHost",style:_.rA({"background-color":function(){return _.bN(_.hr("exp_shorts_ads_mvp_filtering_hex_value_web"))}})})},"Nc");var NQH={iconPosition:"icon-with-label",size:"L"},S1g=_.r(function(H){var U=H.data;var A=H.overlayDensity;var M=H.extractOverlay;var W=H.extractActionBar;H=_.nA("reels-player-overlay-layout-view-model");var w=_.RS(A,0),d=function(){var N;return(N=U().reelsAdCardButtonedEntityKey)!=null?N:""},O=function(){return d()+"/ad_button"},f=_.$Y(RJ_,d),J=function(){var N,L;
return(L=(N=f())==null?void 0:N.value)!=null?L:!1},F=_.Gk(qIM),P=function(){var N,L=Object.assign({},NQH,(F()||!((N=W==null?void 0:W())!=null&&N))&&{style:"overlay-dark"});
return _.S("mweb_shorts_rhs_no_background_protection")?Object.assign({},L,{type:"text",style:"overlay"}):L};
A={};var n={};return _.Z("reels-player-overlay-layout-view-model",{class:_.CG("ytwReelsPlayerOverlayLayoutViewModelHost",(A.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!U().extension},A.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},A.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return w()===1&&!(M==null?0:M())},A.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var N;
return(N=M==null?void 0:M())!=null?N:!1},A.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var N;
return(N=W==null?void 0:W())!=null?N:!1},A)),
"overlay-density":function(){return String(w())},
el:H},_.Z("div",{class:_.CG("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(n.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},n))},_.Z("div",{"aria-hidden":function(){return J()},
class:_.CG("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return J()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.rA({"transition-duration":function(){return Ttt(U())}})},_.Z(_.YY,{data:function(){return U().adMetadata}},{reelsAdMetadataViewModel:function(N){return _.Z(sA3,{data:N.data,
expansive:function(){return w()===1}})}}),_.Z(_.K,{cond:function(){return U().extension},
then:function(N){return _.Z("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.Z(_.YY,{data:N},{adButtonViewModel:function(L){return _.Z(_.y2,{data:L.data,animationEntityKey:O,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(L){return _.Z(JUg,{data:L.data,animationEntityKey:O,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return w()===1}})}}))}})),_.Z("div",{"aria-hidden":function(){return!J()},
class:_.CG("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return J()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.rA({"transition-duration":function(){return Ttt(U())}})},_.Z(_.YY,{data:function(){return U().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(N){return _.Z(P_H,{data:N.data,
onShow:function(){_.Le(_.hs("booleanEntity",d(),{key:d(),value:!0}))},
expansive:function(){var L;return(L=M==null?void 0:M())!=null?L:!1}})}}))),_.Z("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.Z(_.YY,{data:function(){return U().actions}},{reelActionBarViewModel:function(N){return _.Z(_.omg,{data:N.data,
buttonShapeOverrideables:P})}}),_.Z(_.YY,{data:function(){return U().menu}},{buttonViewModel:function(N){return _.Z(_.yJ,{data:N.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},{type:"tonal"},P())}})}}),_.Z(_.YY,{data:function(){return U().pivotButton}},{pivotButtonViewModel:function(N){return _.Z(_.Kjp,{data:N.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})),_.Z(_.K,{cond:function(){return _.S("exp_shorts_ads_mvp_filtering_web")},
then:function(){return _.Z(_.v2_,{root:"ytd-reel-video-renderer[is-active] #video-filtering-overlay-container"},function(){return _.Z(nmB,null)})}}))},"Oc");_.LG(S1g,"reels-player-overlay-layout-view-model",{props:{data:_.sY,overlayDensity:_.sY,extractOverlay:_.sY,extractActionBar:_.sY}});var IG=function(){var H=_.B.apply(this,arguments)||this;H.noBottomMargin=!1;H.overlayDensity=0;H.extractOverlay=!1;H.extractActionBar=!1;return H};
_.R(IG,_.B);_.X=IG.prototype;
_.X.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]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.S("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.X.ready=function(){var H=this;dch(function(){H.isAttached&&NG(H.JSC$15987_storedAdSlotMetadata,H.JSC$15987_storedAdLayoutMetadata,H.adSlotMetadata,H.adLayoutMetadata)&&j8(vB(),H.JSC$15987_storedAdSlotMetadata,H.JSC$15987_storedAdLayoutMetadata)})};
_.X.attached=function(){NG(this.JSC$15987_storedAdSlotMetadata,this.JSC$15987_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&dWg(vB(),this.JSC$15987_storedAdSlotMetadata,this.JSC$15987_storedAdLayoutMetadata)};
_.X.detached=function(){NG(this.JSC$15987_storedAdSlotMetadata,this.JSC$15987_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&j8(vB(),this.JSC$15987_storedAdSlotMetadata,this.JSC$15987_storedAdLayoutMetadata)};
_.X.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.X.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15987_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15987_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15987_storedAdLayoutMetadata!==void 0&&this.JSC$15987_storedAdSlotMetadata!==void 0&&j8(vB(),this.JSC$15987_storedAdSlotMetadata,this.JSC$15987_storedAdLayoutMetadata),dWg(vB(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15987_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15987_storedAdSlotMetadata=this.adSlotMetadata)};
_.D5.Object.defineProperties(IG.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.adLayoutMetadata}}});
IG.prototype.onAdMetadataChanged=IG.prototype.onAdMetadataChanged;IG.prototype.onTypographyBumpChanged=IG.prototype.onTypographyBumpChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],IG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],IG.prototype,"rendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],IG.prototype,"ytComponentBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],IG.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],IG.prototype,"noBottomMargin",void 0);_.G([_.y(),_.q("design:type",Object)],IG.prototype,"overlayDensity",void 0);_.G([_.y(),_.q("design:type",Object)],IG.prototype,"extractOverlay",void 0);_.G([_.y(),_.q("design:type",Object)],IG.prototype,"extractActionBar",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],IG.prototype,"typographyBump",void 0);
_.G([_.a("data.adLayoutMetadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],IG.prototype,"adLayoutMetadata",null);_.G([_.y(),_.q("design:type",Object)],IG.prototype,"adSlotMetadata",void 0);_.G([_.hG("ytd-video-display-full-buttoned-and-button-group-renderer"),_.q("design:type",HTMLElement)],IG.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.G([_.Ya("typographyBump"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IG.prototype,"onTypographyBumpChanged",null);_.G([_.Ya("adLayoutMetadata","adSlotMetadata"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IG.prototype,"onAdMetadataChanged",null);_.G([_.dX({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],IG);
_.e(IG,"ytd-in-feed-ad-layout-renderer",function(){if(fhr!==void 0)return fhr;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return fhr=H},
{mode:2});var pPh;var Ljw;_.LG(_.$N,"ad-badge-view-model",{props:{data:_.sY,hasDot:_.sY,customCommandResolver:_.Ne,adRenderingContextType:_.Ne,usedInMasthead:_.Ne}});_.LG(_.y2,"ad-button-view-model",{props:{data:_.sY,customCommandResolver:_.Ne,className:_.Ne,delayedClassName:_.Ne,animationEntityKey:_.Ne,isCompactWidth:_.Ne,isContentWidth:_.Ne}});var QC=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return H};
_.R(QC,_.B);_.X=QC.prototype;_.X.computeHasLiveDescription=function(H){return!(H==null||!H.liveDescription)};
_.X.computeHasByline=function(H){return!(H==null||!H.byline)};
_.X.computeUsesAdButtonViewModel=function(H){return!!_.p(H==null?void 0:H.cta,T3B)};
_.X.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.X.onYtToggleButton=function(H){var U,A=(U=this.data)==null?void 0:U.videoReminderEntityKey;A&&this.ytdReduxBehavior.dispatch(_.hs("upcomingEventReminderStateEntity",A,{key:A,state:H.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.X.attached=function(){this.updateChannelBanner()};
_.X.dataChanged=function(){this.updateChannelBanner()};
_.X.videoReminderStateChanged=function(){var H;this.videoReminderState&&_.p((H=this.data)==null?void 0:H.cta,_.JA)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.X.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var H=_.Rv(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);H&&(H.startsWith("//")&&(H="https:"+H),this.hostElement.classList.add("channel-banner"),_.Dt(this.hostElement,{"--ytvmh-channel-banner":"url("+H+")"}))}else _.S("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.X.onPlayerReady=function(){this.onIronResize()};
_.X.maybeFlushDebouncer=function(){_.S("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(H){var U;H=(U=H.getElementsByTagName("yt-attributed-string"))==null?void 0:U[0];Igc(H==null?void 0:H.polymerController)})};
_.X.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var H=_.c4(this.hostElement).querySelector("#live-description"),U;H&&((U=this.data)==null?0:U.shortLiveDescription)&&H.clientWidth<H.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
QC.prototype.onIronResize=QC.prototype.onIronResize;QC.prototype.videoReminderStateChanged=QC.prototype.videoReminderStateChanged;QC.prototype.dataChanged=QC.prototype.dataChanged;QC.prototype.onYtToggleButton=QC.prototype.onYtToggleButton;_.G([_.g(_.Qo),_.q("design:type",Object)],QC.prototype,"ironResizableBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],QC.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],QC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],QC.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],QC.prototype,"data",void 0);_.G([_.y({selectorArgs:["data.videoReminderEntityKey"],selector:bVr}),_.q("design:type",Object)],QC.prototype,"videoReminderState",void 0);
_.G([_.y({reflectToAttribute:!0,value:_.S("web_modern_buttons")}),_.q("design:type",Boolean)],QC.prototype,"rounded",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.q("design:type",Boolean)],QC.prototype,"hasLiveDescription",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.q("design:type",Boolean)],QC.prototype,"hasByline",void 0);
_.G([_.y({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.q("design:type",String)],QC.prototype,"adRenderingContextType",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],QC.prototype,"isMasthead",void 0);_.G([_.y({computed:"computeUsesAdButtonViewModel(data)"}),_.q("design:type",Boolean)],QC.prototype,"usesAdButtonViewModel",void 0);
_.G([_.y({reflectToAttribute:!0,value:_.S("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.q("design:type",Boolean)],QC.prototype,"resizableAdBannerSafariFix",void 0);_.G([_.ka("yt-formatted-string"),_.q("design:type",Array)],QC.prototype,"formattedStrings",void 0);_.G([_.hG("#cta-button"),_.q("design:type",HTMLElement)],QC.prototype,"ctaButton",void 0);
_.G([_.Gl("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],QC.prototype,"onYtToggleButton",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],QC.prototype,"dataChanged",null);_.G([_.Ya("videoReminderState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],QC.prototype,"videoReminderStateChanged",null);
_.G([_.Gl("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],QC.prototype,"onIronResize",null);_.G([_.dX({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],QC);
_.e(QC,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(Ljw!==void 0)return Ljw;var H=document.createElement("template");_.E(H,'\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      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\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]]" hidden="[[usesAdButtonViewModel]]" 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]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Ljw=H},{mode:1});var Rwp;var VC=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};H.isLocked=!1;return H};
_.R(VC,_.B);_.X=VC.prototype;_.X.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.X.onExpandedChanged=function(){this.expanded&&_.Bg(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.X.onMouseOver=function(){this.maybeExpand()};
_.X.onTap=function(){this.maybeExpand()};
_.X.onExpandableTileExpanding=function(H){H!==this&&(this.expanded=!1)};
_.X.onExpandableTileLockAndCollapse=function(H){this.isLocked=!0;H!==this&&(this.expanded=!1)};
_.X.onExpandableTileUnlock=function(){this.isLocked=!1};
VC.prototype.onTap=VC.prototype.onTap;VC.prototype.onMouseOver=VC.prototype.onMouseOver;VC.prototype.onExpandedChanged=VC.prototype.onExpandedChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],VC.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],VC.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],VC.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],VC.prototype,"expanded",void 0);_.G([_.jk("expanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],VC.prototype,"onExpandedChanged",null);_.G([_.Gl("mouseover"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],VC.prototype,"onMouseOver",null);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],VC.prototype,"onTap",null);
_.G([_.dX({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],VC);
_.e(VC,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(Rwp!==void 0)return Rwp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Rwp=H},{mode:1});var Emn;var Hh=function(){var H=_.B.apply(this,arguments)||this;H.buttonOverrides={style:"overlay"};H.useYtdPlayer=_.S("use_ytd_player_for_desktop_masthead");H.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};H.playbackFinished=!1;H.JSC$16001_playerManager=null;H.JSC$16001_mastheadCounter=new q4m;return H};
_.R(Hh,_.B);_.X=Hh.prototype;_.X.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"}}}};
_.X.created=function(){this.JSC$16001_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$16001_playerManager=new jZ)};
_.X.ready=function(){var H=this;this.JSC$16001_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var U=_.c4(this.hostElement).querySelector("#player");this.useYtdPlayer?U.style.display="none":(this.ytdPlayer.style.display="none",Ooy(this.JSC$16001_playerManager,U,function(){H.onPlaybackEnded()}),_.c4(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var A;
((A=H.data)==null?0:A.navigationEndpoint)&&_.cg(H.hostElement,"yt-navigate",{endpoint:H.data.navigationEndpoint})}))};
_.X.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$16001_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.X.attached=function(){var H=this;_.oS(function(){H.maybePlayVideo()})};
_.X.maybePlayVideo=function(){var H=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$16001_playerManager.playVideo(),this.getPlayerPromise().then(function(){H.JSC$16001_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.X.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16001_playerManager.stopVideo()};
_.X.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var H,U={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((H=this.data.playbackStartMs)!=null?H:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(U);this.setupYtdPlayer()}else ZoB(this.JSC$16001_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(uor(this.JSC$16001_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.X.getPlayerPromise=function(){return this.JSC$16001_playerManager.getPlayerPromise()};
_.X.onYtToggleButton=function(H){this.useYtdPlayer?this.toggleMute(H.detail.toggled):H.detail.toggled?this.JSC$16001_playerManager.mute():this.JSC$16001_playerManager.unMute()};
_.X.onYtNavigate=function(H){var U=cK4(H.detail.endpoint),A=yK_(this.data.clickthroughReportingData);U&&A&&(H.detail.endpoint.watchEndpoint?H.detail.tempData=A:_.Sb(U,A,30))};
_.X.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.X.onExpandedChanged=function(){this.expanded?(_.Bg(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.X.onMouseOver=function(){this.maybeExpand()};
_.X.onTap=function(){this.maybeExpand()};
_.X.onExpandableTileExpanding=function(H){H!==this&&(this.stopVideo(),this.expanded=!1)};
_.X.onExpandableTileLockAndCollapse=function(H){H!==this&&(this.isLocked=!0,this.expanded=!1)};
_.X.onExpandableTileUnlock=function(){this.isLocked=!1};
_.X.lockAndCollapseExpandableTiles=function(){_.yr(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.X.unlockExpandableTiles=function(){_.yr(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.X.setupYtdPlayer=function(){var H=this,U;return _.u(function(A){if(A.nextAddress==1)return A.yield(H.ytdPlayer.getPlayerPromise(),2);U=A.yieldResult;U.addEventListener("onStateChange",function(M){H.onPlayerStateChange(M)});
U.addEventListener("onCueRangeExit",function(M){H.onCueRangeExit(M)});
_.DO(A)})};
_.X.onPlayerStateChange=function(H){if(H===1&&(H=this.ytdPlayer.getPlayer())){var U=H.getCurrentTime(),A,M,W=U+((M=(A=this.data)==null?void 0:A.playbackDurationMs)!=null?M:0)/1E3;H.addCueRange("playback",U,W);this.JSC$16001_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.X.onCueRangeExit=function(H){H==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.X.toggleMute=function(H){var U=this,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(U.ytdPlayer.getPlayerPromise(),2);A=M.yieldResult;H?A.mute():A.unMute();_.DO(M)})};
Hh.prototype.onTap=Hh.prototype.onTap;Hh.prototype.onMouseOver=Hh.prototype.onMouseOver;Hh.prototype.onExpandedChanged=Hh.prototype.onExpandedChanged;Hh.prototype.onYtNavigate=Hh.prototype.onYtNavigate;Hh.prototype.onYtToggleButton=Hh.prototype.onYtToggleButton;Hh.prototype.dataChanged=Hh.prototype.dataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Hh.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Hh.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Hh.prototype,"expanded",void 0);_.G([_.y(),_.q("design:type",Object)],Hh.prototype,"buttonOverrides",void 0);
_.G([_.y(),_.q("design:type",Object)],Hh.prototype,"useYtdPlayer",void 0);_.G([_.hG("#ytd-player"),_.q("design:type",Object)],Hh.prototype,"ytdPlayer",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Hh.prototype,"dataChanged",null);_.G([_.Gl("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Hh.prototype,"onYtToggleButton",null);
_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Hh.prototype,"onYtNavigate",null);_.G([_.jk("expanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Hh.prototype,"onExpandedChanged",null);_.G([_.Gl("mouseover"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Hh.prototype,"onMouseOver",null);
_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Hh.prototype,"onTap",null);_.G([_.dX({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Hh);
_.e(Hh,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(Emn!==void 0)return Emn;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Emn=H},{mode:1});var mWh;var Us=function(){return _.B.apply(this,arguments)||this};
_.R(Us,_.B);Us.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Us.prototype.onShow=function(){var H=_.c4(this.hostElement).querySelector("#live-description"),U;H&&((U=this.data)==null?0:U.shortLiveDescription)&&H.clientWidth<H.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Us.prototype.onYtToggleButton=function(H){var U,A=(U=this.data)==null?void 0:U.videoReminderEntityKey;A&&this.ytdReduxBehavior.dispatch(_.hs("upcomingEventReminderStateEntity",A,{key:A,state:H.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Us.prototype.videoReminderStateChanged=function(){var H;this.videoReminderState&&_.p((H=this.data)==null?void 0:H.cta,_.JA)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Us.prototype.videoReminderStateChanged=Us.prototype.videoReminderStateChanged;Us.prototype.onYtToggleButton=Us.prototype.onYtToggleButton;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Us.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Us.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Us.prototype,"data",void 0);
_.G([_.y({selectorArgs:["data.videoReminderEntityKey"],selector:bVr}),_.q("design:type",Object)],Us.prototype,"videoReminderState",void 0);_.G([_.Gl("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Us.prototype,"onYtToggleButton",null);_.G([_.Ya("videoReminderState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Us.prototype,"videoReminderStateChanged",null);
_.G([_.dX({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Us);
_.e(Us,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(mWh!==void 0)return mWh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return mWh=H},{mode:2});var gmK;var AK=function(){var H=_.B.apply(this,arguments)||this;H.useYtdPlayer=_.S("use_ytd_player_for_desktop_masthead");H.buttonOverrides={style:"overlay"};H.JSC$16009_playerManager=null;H.JSC$16009_mastheadCounter=new q4m;H.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return H};
_.R(AK,_.B);_.X=AK.prototype;_.X.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"}}}};
_.X.created=function(){this.JSC$16009_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$16009_playerManager=new jZ)};
_.X.ready=function(){var H=this;this.JSC$16009_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var U;(U=this.embeddedPlayer)==null||U.remove()}else{var A;(A=this.ytdPlayer)==null||A.remove();Ooy(this.JSC$16009_playerManager,this.embeddedPlayer,function(){H.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){H.data&&H.data.navigationEndpoint&&_.cg(H.hostElement,"yt-navigate",{endpoint:H.data.navigationEndpoint})})}};
_.X.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$16009_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.X.dataChanged=function(){var H=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var U=!this.data.disableAutoPlayback,A,M={autoplay:U,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.hostElement.classList.add(U?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(M);this.setupYtdPlayer()}else ZoB(this.JSC$16009_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(uor(this.JSC$16009_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$16009_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.yr(H.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");H.JSC$16009_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.X.getPlayerPromise=function(){return this.JSC$16009_playerManager.getPlayerPromise()};
_.X.onYtToggleButton=function(H){this.useYtdPlayer?this.toggleMute(H.detail.toggled):H.detail.toggled?this.JSC$16009_playerManager.mute():this.JSC$16009_playerManager.unMute()};
_.X.onYtNavigate=function(H){var U=cK4(H.detail.endpoint),A=yK_(this.data.clickthroughReportingData);U&&A&&(H.detail.endpoint.watchEndpoint?H.detail.tempData=A:_.Sb(U,A,30))};
_.X.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16009_playerManager.stopVideo()};
_.X.setupYtdPlayer=function(){var H=this,U;return _.u(function(A){if(A.nextAddress==1)return A.yield(H.ytdPlayer.getPlayerPromise(),2);U=A.yieldResult;U.addEventListener("onStateChange",function(M){H.onPlayerStateChange(M)});
U.addEventListener("onCueRangeExit",function(M){H.onCueRangeExit(M)});
_.DO(A)})};
_.X.onPlayerStateChange=function(H){if(H===1&&(H=this.ytdPlayer.getPlayer())){var U=H.getCurrentTime(),A,M,W=U+((M=(A=this.data)==null?void 0:A.playbackDurationMs)!=null?M:0)/1E3;H.addCueRange("playback",U,W);_.yr(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$16009_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.X.onCueRangeExit=function(H){H==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.X.toggleMute=function(H){var U=this,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(U.ytdPlayer.getPlayerPromise(),2);A=M.yieldResult;H?A.mute():A.unMute();_.DO(M)})};
_.D5.Object.defineProperties(AK.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var H,U;if(!((H=this.data)==null?0:(U=H.accessibilityData)==null?0:U.label))return"Ad primary link";var A,M;return _.hP("AD_TITLE",{title:(A=this.data)==null?void 0:(M=A.accessibilityData)==null?void 0:M.label})}}});
AK.prototype.onYtMastheadHidden=AK.prototype.onYtMastheadHidden;AK.prototype.onYtNavigate=AK.prototype.onYtNavigate;AK.prototype.onYtToggleButton=AK.prototype.onYtToggleButton;AK.prototype.dataChanged=AK.prototype.dataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],AK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],AK.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],AK.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],AK.prototype,"useYtdPlayer",void 0);_.G([_.hG("ytd-toggle-button-renderer"),_.q("design:type",Object)],AK.prototype,"muteButton",void 0);_.G([_.y(),_.q("design:type",Object)],AK.prototype,"buttonOverrides",void 0);
_.G([_.a("data.accessibilityData.label"),_.q("design:type",String),_.q("design:paramtypes",[])],AK.prototype,"titleAriaLabel",null);_.G([_.hG("#replay-button"),_.q("design:type",Object)],AK.prototype,"replayButton",void 0);_.G([_.hG("#player-container"),_.q("design:type",Object)],AK.prototype,"playerContainer",void 0);_.G([_.hG("#player"),_.q("design:type",Object)],AK.prototype,"embeddedPlayer",void 0);_.G([_.hG("#ytd-player"),_.q("design:type",Object)],AK.prototype,"ytdPlayer",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],AK.prototype,"dataChanged",null);_.G([_.Gl("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],AK.prototype,"onYtToggleButton",null);_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],AK.prototype,"onYtNavigate",null);
_.G([_.Gl("yt-masthead-hidden"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],AK.prototype,"onYtMastheadHidden",null);_.G([_.dX({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],AK);
_.e(AK,"ytd-video-masthead-ad-primary-video-renderer",function(){if(gmK!==void 0)return gmK;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return gmK=H},{mode:2});var aLw;var ML=function(){var H=_.B.apply(this,arguments)||this;H.collapsed=!1;H.impressionResolver=_.oL();H.JSC$16013_activeViewMeasurementDataResolver=_.oL();H.actionMap={"yt-mute-ad-action":"handleMuteAd"};return H};
_.R(ML,_.B);_.X=ML.prototype;_.X.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"}}}};
_.X.created=function(){this.activeView=new cA(this.hostElement)};
_.X.ready=function(){var H=this;_.c4(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){H.expandAd()});
this.hostElement.addEventListener("yt-action",function(U){if(U.detail.actionName==="yt-service-request"){var A=U.detail.args[1];A.videoMastheadAdMuteCommand&&(H.collapseAd(A.videoMastheadAdMuteCommand.encryptedMastheadId),U.stopPropagation())}})};
_.X.attached=function(){var H=this;_.oS(function(){H.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(U){if(!H.collapsed){U=_.b(U);for(var A=U.next();!A.done;A=U.next())A=A.value,gB(A.baseUrl,A.attributionSrcMode);H.data.impressionCommand=void 0}});
this.JSC$16013_activeViewMeasurementDataResolver.promise.then(function(U){y4(H.activeView,U)});
_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&BA(H.activeView)})};
_.X.dataChanged=function(){var H;((H=this.data.impressionCommand)==null?0:H.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var U;((U=this.data)==null?0:U.activeView)&&this.JSC$16013_activeViewMeasurementDataResolver.resolve(this.data.activeView);(H=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(H.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.X.computeWidescreen=function(H){var U;return!!(H&&((U=_.p(H,lpK))==null?0:U.isWidescreen))};
_.X.computeExpandable=function(H){return!!(H&&H.length>0)};
_.X.onIronResize=function(){if(this.expandable){var H=_.c4(this.hostElement).querySelector("#expandable-tile-container :first-child");H&&!H.expanded&&(H.expanded=!0)}};
_.X.handleMuteAd=function(){this.collapseAd(null)};
_.X.restoreCollapsedState=function(H){this.collapsed=_.TR().get("HIDDEN_MASTHEAD_ID")===H};
_.X.collapseAd=function(H){if(H){var U=_.TR();U.set("HIDDEN_MASTHEAD_ID",H);U.save()}(H=_.c4(this.hostElement).querySelector("#video"))&&_.cg(H,"yt-masthead-hidden");this.collapsed=!0};
_.X.expandAd=function(){var H=_.TR();H.set("HIDDEN_MASTHEAD_ID",!1);H.save();location.reload()};
_.X.detached=function(){_.S("stop_av_measurement_on_detach")&&BA(this.activeView)};
ML.prototype.onIronResize=ML.prototype.onIronResize;ML.prototype.dataChanged=ML.prototype.dataChanged;_.G([_.g(_.Qo),_.q("design:type",Object)],ML.prototype,"ironResizableBehavior",void 0);_.G([_.g(_.fm),_.q("design:type",Object)],ML.prototype,"ytdGridStateAwareBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],ML.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ML.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ML.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ML.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.q("design:type",Boolean)],ML.prototype,"widescreen",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.q("design:type",Boolean)],ML.prototype,"expandable",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],ML.prototype,"collapsed",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ML.prototype,"dataChanged",null);_.G([_.Gl("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ML.prototype,"onIronResize",null);_.G([_.dX({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],ML);
_.e(ML,"ytd-video-masthead-ad-v3-renderer",function(){if(aLw!==void 0)return aLw;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return aLw=H},{mode:2});var Wh=function(){return _.B.apply(this,arguments)||this};
_.R(Wh,_.B);_.X=Wh.prototype;_.X.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.X.ready=function(){var H=this;dch(function(){H.isAttached&&NG(H.JSC$16018_storedAdSlotMetadata,H.JSC$16018_storedAdLayoutMetadata,H.adSlotMetadata,H.adLayoutMetadata)&&j8(vB(),H.JSC$16018_storedAdSlotMetadata,H.JSC$16018_storedAdLayoutMetadata)})};
_.X.attached=function(){NG(this.JSC$16018_storedAdSlotMetadata,this.JSC$16018_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&dWg(vB(),this.JSC$16018_storedAdSlotMetadata,this.JSC$16018_storedAdLayoutMetadata)};
_.X.detached=function(){NG(this.JSC$16018_storedAdSlotMetadata,this.JSC$16018_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&j8(vB(),this.JSC$16018_storedAdSlotMetadata,this.JSC$16018_storedAdLayoutMetadata)};
_.X.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$16018_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$16018_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$16018_storedAdLayoutMetadata!==void 0&&this.JSC$16018_storedAdSlotMetadata!==void 0&&j8(vB(),this.JSC$16018_storedAdSlotMetadata,this.JSC$16018_storedAdLayoutMetadata),dWg(vB(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$16018_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$16018_storedAdSlotMetadata=this.adSlotMetadata)};
_.D5.Object.defineProperties(Wh.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.adLayoutMetadata}}});
Wh.prototype.onAdMetadataChanged=Wh.prototype.onAdMetadataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Wh.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Wh.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Wh.prototype,"data",void 0);_.G([_.a("data.adLayoutMetadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],Wh.prototype,"adLayoutMetadata",null);
_.G([_.y(),_.q("design:type",Object)],Wh.prototype,"adSlotMetadata",void 0);_.G([_.Ya("adLayoutMetadata","adSlotMetadata"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wh.prototype,"onAdMetadataChanged",null);_.G([_.dX({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Wh);
_.e(Wh,"ytd-page-top-ad-layout-renderer",function(){if(pPh!==void 0)return pPh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return pPh=
H},{mode:2});var xWp;var we=function(){var H=_.B.apply(this,arguments)||this;H.noBottomMargin=!1;H.overlayDensity=0;H.typographyBump=!1;H.extractOverlay=!1;H.extractActionBar=!1;return H};
_.R(we,_.B);_.X=we.prototype;
_.X.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.X.ready=function(){var H=this;dch(function(){H.isAttached&&H.adSlotMetadata&&biw(vB(),H.adSlotMetadata)})};
_.X.attached=function(){if(this.adSlotMetadata){var H;if(this.adSlotMetadata===((H=this.data)==null?void 0:H.adSlotMetadata))iin(vB(),this.adSlotMetadata);else{var U;_.Na(Error("Qh`"+this.adSlotMetadata+"`"+((U=this.data)==null?void 0:U.adSlotMetadata)))}}};
_.X.detached=function(){this.adSlotMetadata&&biw(vB(),this.adSlotMetadata)};
_.X.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.X.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&biw(vB(),this.adSlotMetadata),iin(vB(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.D5.Object.defineProperties(we.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var H,U,A=_.p((H=this.data)==null?void 0:(U=H.fulfillmentContent)==null?void 0:U.fulfilledLayout,_.Ypz),M;return(H=(M=_.p(A==null?void 0:A.renderingContent,GGn))==null?void 0:M.layout)?H.toLowerCase().replace(/_/g,"-"):""}}});
we.prototype.onAdSlotMetadataChanged=we.prototype.onAdSlotMetadataChanged;we.prototype.onTypographyBumpChanged=we.prototype.onTypographyBumpChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],we.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],we.prototype,"rendererBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],we.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],we.prototype,"noBottomMargin",void 0);_.G([_.y(),_.q("design:type",Object)],we.prototype,"overlayDensity",void 0);_.G([_.y(),_.q("design:type",Object)],we.prototype,"typographyBump",void 0);_.G([_.y(),_.q("design:type",Object)],we.prototype,"extractOverlay",void 0);_.G([_.y(),_.q("design:type",Object)],we.prototype,"extractActionBar",void 0);
_.G([_.hG("ytd-in-feed-ad-layout-renderer"),_.q("design:type",HTMLElement)],we.prototype,"inFeedAdLayoutRenderer",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",String),_.q("design:paramtypes",[])],we.prototype,"layout",null);_.G([_.Ya("typographyBump"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],we.prototype,"onTypographyBumpChanged",null);
_.G([_.Ya("data.adSlotMetadata"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],we.prototype,"onAdSlotMetadataChanged",null);_.G([_.dX({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],we);
_.e(we,"ytd-ad-slot-renderer",function(){if(xWp!==void 0)return xWp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return xWp=H},{mode:2});var zwg;var XD=function(){return _.B.apply(this,arguments)||this};
_.R(XD,_.B);_.X=XD.prototype;_.X.created=function(){this.activeView=new cA(this.hostElement)};
_.X.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"}}}};
_.X.maybeComputeHref=function(){return null};
_.X.onTap=function(){};
_.X.onThumbnailContainerClick=function(H){this.onClick(H)};
_.X.onClick=function(H){var U,A=(U=this.data)==null?void 0:U.navigationEndpoint;A&&_.p(A,_.sH)&&(this.ytSparklesClickLocationBehavior.handleClick(A,H,!1),H.stopPropagation())};
_.X.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var H=_.b(this.data.impressionUrls),U=H.next();!U.done;U=H.next())U=U.value,de7(U,u1K(U));this.data.activeView&&y4(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",XD.JSC$16026_DEFAULT_CLICK_LOCATION_BEHAVIOR,XD.JSC$16026_CLICK_LOCATION_ID_MAP);this.thumbnail&&(H=this.thumbnail.getElementsByTagName("a"),H.length>0&&(H=H.namedItem("thumbnail"))&&H.removeAttribute("href"))}};
_.X.attached=function(){var H=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&BA(H.activeView)})};
_.X.detached=function(){_.S("stop_av_measurement_on_detach")&&BA(this.activeView)};
_.D5.Object.defineProperties(XD.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
XD.prototype.dataChanged=XD.prototype.dataChanged;XD.prototype.onTap=XD.prototype.onTap;XD.JSC$16026_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
XD.JSC$16026_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"}];_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],XD.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],XD.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],XD.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],XD.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.gF.YtSparklesClickLocationBehavior),_.q("design:type",Object)],XD.prototype,"ytSparklesClickLocationBehavior",void 0);
_.G([_.y({selector:_.Wo}),_.q("design:type",Object)],XD.prototype,"isGridViewEnabled",void 0);_.G([_.a("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],XD.prototype,"watchFeedBigThumbs",null);_.G([_.a("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.q("design:type",String),_.q("design:paramtypes",[])],XD.prototype,"thumbnailWidth",null);_.G([_.y(),_.q("design:type",Object)],XD.prototype,"data",void 0);
_.G([_.hG("ytd-thumbnail"),_.q("design:type",HTMLElement)],XD.prototype,"thumbnail",void 0);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],XD.prototype,"onTap",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],XD.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],XD);
_.e(XD,"ytd-compact-promoted-video-renderer",function(){if(zwg!==void 0)return zwg;var H=document.createElement("template");_.E(H,'\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<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" 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" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" 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</div>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return zwg=H},{mode:1});var C_3;_.Qm("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var iy=function(){return _.B.apply(this,arguments)||this};
_.R(iy,_.B);iy.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],iy.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],iy.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],iy.prototype,"data",void 0);_.G([_.dX({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],iy);
_.e(iy,"ytd-search-pyv-renderer",function(){if(C_3!==void 0)return C_3;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return C_3=H},{mode:1});var tgB;_.Qm("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var by=function(){var H=_.B.apply(this,arguments)||this;H.roundedContainer=!0;H.JSC$16034_handleOpenPostCommentDialogActionAfterStamp=!1;H.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return H};
_.R(by,_.B);_.X=by.prototype;
_.X.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{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.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.X.onStampFinished=function(){this.JSC$16034_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.X.handleSignalActionOpenPostCommentDialogAction=function(){var H=_.c4(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");H?H.openDialog():this.JSC$16034_handleOpenPostCommentDialogActionAfterStamp=!0};
_.X.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.X.computeHideBorder=function(){return this.isInEngagementPanel};
_.X.computeIsCompact=function(){return this.isInEngagementPanel};
_.X.computeUsesCompactLockup=function(H){return H==="BACKSTAGE_SURFACE_TYPE_HOME"||H==="BACKSTAGE_SURFACE_TYPE_SEARCH"||H==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||H==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||H==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||H==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.X.computeUsesFullLockup=function(){var H,U=(H=this.data)==null?void 0:H.post,A;H=(A=_.p(U,Mfp))==null?void 0:A.surface;var M;A=(M=_.p(U,XRw))==null?void 0:M.originalPost;var W;if(M=H||((W=_.p(A,Mfp))==null?void 0:W.surface))return!this.computeUsesCompactLockup(M)&&this.useUpdatedRepostUi;var w;return((w=_.p(U,XRw))==null?void 0:w.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.D5.Object.defineProperties(by.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var H,U;return((U=_.p((H=this.data)==null?void 0:H.post,Mfp))==null?void 0:U.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.useUpdatedRepostUi}}});
by.prototype.onYtCommentModerationPanelEmpty=by.prototype.onYtCommentModerationPanelEmpty;by.prototype.onStampFinished=by.prototype.onStampFinished;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],by.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],by.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],by.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],by.prototype,"roundedContainer",void 0);_.G([_.y({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.q("design:type",Boolean)],by.prototype,"hideBorder",void 0);_.G([_.y({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.q("design:type",Boolean)],by.prototype,"isCompact",void 0);
_.G([_.y({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.q("design:type",Boolean)],by.prototype,"usesFullLockup",void 0);_.G([_.Gl("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],by.prototype,"onStampFinished",null);
_.G([_.Gl("ytd-comment-moderation-panel-empty"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],by.prototype,"onYtCommentModerationPanelEmpty",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],by.prototype,"isInEngagementPanel",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],by.prototype,"useUpdatedRepostUi",null);
_.G([_.dX({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],by);
_.e(by,"ytd-backstage-post-thread-renderer",function(){if(tgB!==void 0)return tgB;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return tgB=H},{mode:1});var cU2;var fX=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.R(fX,_.B);fX.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
fX.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var H=this.data.thumbnail.thumbnails;this.isDarkTheme&&(H=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(H=_.Rv(H,24,void 0,"height"))?H:void 0}};
fX.prototype.onDarkModeToggledAction=function(H){this.isDarkTheme=H};
fX.prototype.computeHasText=function(){var H;return!((H=this.data)==null||!H.text)};
_.D5.Object.defineProperties(fX.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.j3(this.bannerImageUrl))+'");'}}});
fX.prototype.computeHasText=fX.prototype.computeHasText;fX.prototype.computeBannerImageUrl=fX.prototype.computeBannerImageUrl;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],fX.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],fX.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],fX.prototype,"ytRendererBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],fX.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],fX.prototype,"isDarkTheme",void 0);_.G([_.y(),_.q("design:type",String)],fX.prototype,"bannerImageUrl",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.q("design:type",Boolean)],fX.prototype,"hasText",void 0);_.G([_.Ya("data","isDarkTheme"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fX.prototype,"computeBannerImageUrl",null);
_.G([_.Ya("data.text"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fX.prototype,"computeHasText",null);_.G([_.a("bannerImageUrl"),_.q("design:type",Object),_.q("design:paramtypes",[])],fX.prototype,"bannerStyle",null);_.G([_.dX({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],fX);
_.e(fX,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(cU2!==void 0)return cU2;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return cU2=H},{mode:1});var yU2;var JK=function(){return _.B.apply(this,arguments)||this};
_.R(JK,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],JK.prototype,"data",void 0);_.G([_.dX({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],JK);
_.e(JK,"ytd-backstage-zero-state-renderer",function(){if(yU2!==void 0)return yU2;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return yU2=H},{mode:1});var BQz;var KX=function(){return _.B.apply(this,arguments)||this};
_.R(KX,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],KX.prototype,"data",void 0);_.G([_.y({computed:"computeIcon_(data.icon)"}),_.q("design:type",String)],KX.prototype,"icon",void 0);_.G([_.dX({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],KX);
_.e(KX,"ytd-post-filter-zero-state-renderer",function(){if(BQz!==void 0)return BQz;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return BQz=H},{mode:1});var rUn;var ewk={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},oZ=function(){return _.B.apply(this,arguments)||this};
_.R(oZ,_.B);oZ.prototype.configureRendererStamper=function(){return ewk};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],oZ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],oZ.prototype,"rendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],oZ.prototype,"data",void 0);_.G([_.y({computed:"computeIcon_(data.icon)"}),_.q("design:type",String)],oZ.prototype,"icon",void 0);_.G([_.dX({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],oZ);
_.e(oZ,"ytd-post-scheduling-zero-state-renderer",function(){if(rUn!==void 0)return rUn;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return rUn=H},{mode:1});var DW2;var FD=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return H};
_.R(FD,_.B);FD.prototype.onTabsActivate=function(H){this.data&&this.data.tabs&&_.cg(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[H.detail.selected].navigationEndpoint})};
FD.prototype.shouldShowTotalCount=function(H){return H&&H.totalCount!==void 0};
FD.prototype.handleUpdatePostsTotalCountAction=function(H){var U=this.get(["data.tabs",1,"totalCount"]),A=this.get("updatePostsTotalCountAction.updateType",H);H=this.get("updatePostsTotalCountAction.number",H);U!==void 0&&A!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&H&&(A==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(U)+H):A==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(U)-H))};
_.D5.Object.defineProperties(FD.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var H=0,U=this.data.tabs.length;H<U;H++)if(this.data.tabs[H].selected)return H;return 0}}});
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],FD.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],FD.prototype,"rendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],FD.prototype,"data",void 0);_.G([_.a("data.tabs"),_.q("design:type",Number),_.q("design:paramtypes",[])],FD.prototype,"selected",null);_.G([_.dX({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],FD);
_.e(FD,"ytd-post-stream-filter-renderer",function(){if(DW2!==void 0)return DW2;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return DW2=H},{mode:1});var $W3;var Ph=function(){return _.B.apply(this,arguments)||this};
_.R(Ph,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ph.prototype,"kevlarBehaviors",void 0);_.G([_.y(),_.q("design:type",Object)],Ph.prototype,"data",void 0);_.G([_.dX({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],Ph);
_.e(Ph,"ytd-channel-age-gate-renderer",function(){if($W3!==void 0)return $W3;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return $W3=H},{mode:1});var lLB;_.Qm("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var ss=function(){var H=_.B.apply(this,arguments)||this;H.data=null;return H};
_.R(ss,_.B);ss.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.D5.Object.defineProperties(ss.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return((H=this.data)==null?0:(U=H.title)==null?0:(A=U.runs)==null?0:A.length)?147:160}}});
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ss.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ss.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],ss.prototype,"imageSizePx",null);_.G([_.dX({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],ss);
_.e(ss,"ytd-channel-owner-empty-state-renderer",function(){if(lLB!==void 0)return lLB;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return lLB=H},{mode:1});var Gfw;var Y1w;var nX=function(){var H=_.B.apply(this,arguments)||this;H.boundSubmitSearch=function(){H.submitSearch()};
H.boundClearSearch=function(){H.clearSearch()};
return H};
_.R(nX,_.B);_.X=nX.prototype;_.X.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]]"}}}}}};
_.X.toggleClearButton=function(){this.hideClearButton=qzB||!this.input.value};
_.X.submitOnEnterKeyUp=function(H){H.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.X.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.X.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.X.submit=function(){_.cg(this.hostElement,"search-query-changed",this.input.value)};
nX.prototype.toggleClearButton=nX.prototype.toggleClearButton;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],nX.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],nX.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],nX.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],nX.prototype,"hideClearButton",void 0);_.G([_.y(),_.q("design:type",Object)],nX.prototype,"boundSubmitSearch",void 0);_.G([_.y(),_.q("design:type",Object)],nX.prototype,"boundClearSearch",void 0);_.G([_.hG("#input"),_.q("design:type",Object)],nX.prototype,"input",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nX.prototype,"toggleClearButton",null);
_.G([_.dX({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],nX);
_.e(nX,"ytd-channel-switcher-search-box-renderer",function(){if(Y1w!==void 0)return Y1w;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Y1w=H},{mode:1});var q1w;var NL=function(){var H=_.B.apply(this,arguments)||this;H.boundSubmit=function(){H.submit()};
return H};
_.R(NL,_.B);_.X=NL.prototype;_.X.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"}}}}};
_.X.ready=function(){var H=this;this.form.addEventListener("submit",function(U){return H.onSubmit(U)})};
_.X.onSubmit=function(H){H.preventDefault();return!1};
_.X.toggleClearButton=function(){this.hideClearButton=qzB||!this.input.value};
_.X.submitOnEnterKeyUp=function(H){H.keyCode===13&&this.submit()};
_.X.submit=function(){var H=this.data.endpoint,U=(0,_.dG.unsafeClone)(H);_.p(U,_.Gv)?_.p(U,_.Gv).query=this.input.value:_.p(U,_.YO)&&(_.p(U,_.YO).query=this.input.value);var A=_.p(U.commandMetadata,_.Y2);(A==null?0:A.url)?(A.url=_.Ik(A.url,"query",this.input.value),_.cg(this.hostElement,"yt-navigate",{endpoint:U})):_.p(U,yL3)?(_.p(U,yL3).channelSwitcherQuery=this.input.value,_.lx().resolve(_.YV).resolveCommand(U,{form:{element:this.hostElement}})):(H=Error("Rh`"+JSON.stringify(H)),_.sD(H))};
_.X.getUrl=function(H){return this.get("commandMetadata.webCommandMetadata.url",H)};
NL.prototype.toggleClearButton=NL.prototype.toggleClearButton;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],NL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],NL.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],NL.prototype,"hideClearButton",void 0);
_.G([_.y(),_.q("design:type",Object)],NL.prototype,"boundSubmit",void 0);_.G([_.hG("#form"),_.q("design:type",HTMLFormElement)],NL.prototype,"form",void 0);_.G([_.hG("#input"),_.q("design:type",Object)],NL.prototype,"input",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],NL.prototype,"toggleClearButton",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],NL);
_.e(NL,"ytd-search-box-renderer",function(){if(q1w!==void 0)return q1w;var H=document.createElement("template");_.E(H,'\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  </tp-yt-paper-input>\n  <div id="search-button" class="style-scope ytd-search-box-renderer"></div>\n  <div id="clear-button" class="style-scope ytd-search-box-renderer"></div>\n</form>\n');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return q1w=H},{mode:2});var Si=function(){var H=_.B.apply(this,arguments)||this;H.showSearchBox=!0;return H};
_.R(Si,_.B);Si.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Si.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Si.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Si.prototype,"showSearchBox",void 0);_.G([_.dX({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],Si);
_.e(Si,"ytd-channel-switcher-header-renderer",function(){if(Gfw!==void 0)return Gfw;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Gfw=H},{mode:1});var hwz;var kfz;var pX=function(){var H=_.B.apply(this,arguments)||this;H.isDisplayed=!0;return H};
_.R(pX,_.B);_.X=pX.prototype;_.X.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.dataChanged=function(){this.isDisplayed=!0};
_.X.computeType=function(H){return H||"UNKNOWN"};
_.X.onYtServiceRequestCompleted=function(H){H.stopPropagation();this.isDisplayed=!1};
_.X.onClose=function(){this.isDisplayed=!1};
pX.prototype.onYtServiceRequestCompleted=pX.prototype.onYtServiceRequestCompleted;pX.prototype.dataChanged=pX.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],pX.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],pX.prototype,"data",void 0);
_.G([_.y({computed:"computeType(data.type)",reflectToAttribute:!0}),_.q("design:type",String)],pX.prototype,"type",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],pX.prototype,"isDisplayed",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pX.prototype,"dataChanged",null);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],pX.prototype,"onYtServiceRequestCompleted",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],pX);
_.e(pX,"ytd-alert-with-button-renderer",function(){if(kfz!==void 0)return kfz;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return kfz=H},{mode:1});var LX=function(){var H=_.B.apply(this,arguments)||this;H.noResult=!1;H.enableAlertBanner=!1;H.dismissedAlertBanner=!1;H.hideCreateChannelButton=!1;H.boundDismissAlertBanner=function(){H.dismissAlertBanner()};
H.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return H};
_.R(LX,_.B);_.X=LX.prototype;_.X.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.X.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.X.updateChannelSwitcherAction=function(H){var U;H=(U=_.p(H,tcH))==null?void 0:U.page;_.p(H,Cew)!==void 0&&(this.data=_.p(H,Cew))};
_.X.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]]"}}}}}};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.X.searchQueryChanged=function(H,U){if(this.data&&this.data.contents&&this.data.contents.length){H=[];var A=[];this.hideCreateChannelButton=this.noResult=!1;for(var M=document.querySelectorAll("ytd-account-item-renderer"),W=_.b(M),w=W.next();!w.done;w=W.next())w=w.value,A.push(w),w.style.display="block";this.resetRightBorder(A);if(U){this.hideCreateChannelButton=!0;for(A=1;A<this.data.contents.length;A++)if(w=this.data.contents[A],_.p(w,Cww)){var d=void 0,O=void 0;W=(d=_.p(w,Cww))==null?void 0:(O=
d.accountName)==null?void 0:O.simpleText;O=d=void 0;w=(d=_.p(w,Cww))==null?void 0:(O=d.channelHandle)==null?void 0:O.simpleText;(d=M[A-1])&&W&&_.Zc(W,U)?H.push(d):_.S("enable_handle_search_on_channel_switcher")&&d&&w&&_.Zc(w.toString(),U.toString())?H.push(d):d.style.display="none"}H.length===0&&(this.noResult=!0);this.resetRightBorder(H)}}};
_.X.resetRightBorder=function(H){for(var U=0;U<H.length;U++)H[U].style.borderRight=!this.hideCreateChannelButton&&(U+2)%3===0||this.hideCreateChannelButton&&(U+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.X.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.X.setShowSearchBox=function(H){if(H&&H.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var U=0;U<H.contents.length;U++)_.p(H.contents[U],_.Ea)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.X.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.D5.Object.defineProperties(LX.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null?0:H.contents)}}});
LX.prototype.onContinuationItemsUpdated=LX.prototype.onContinuationItemsUpdated;LX.prototype.searchQueryChanged=LX.prototype.searchQueryChanged;LX.prototype.onDataChanged=LX.prototype.onDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],LX.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],LX.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.RG),_.q("design:type",Object)],LX.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],LX.prototype,"data",void 0);_.G([_.hG("ytd-channel-switcher-header-renderer"),_.q("design:type",Object)],LX.prototype,"channelSwitcherHeaderRenderer",void 0);_.G([_.y(),_.q("design:type",Object)],LX.prototype,"noResult",void 0);
_.G([_.y(),_.q("design:type",Object)],LX.prototype,"enableAlertBanner",void 0);_.G([_.y(),_.q("design:type",Object)],LX.prototype,"dismissedAlertBanner",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],LX.prototype,"hideCreateChannelButton",void 0);_.G([_.a("data.contents"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],LX.prototype,"isLoading",null);_.G([_.y(),_.q("design:type",Object)],LX.prototype,"boundDismissAlertBanner",void 0);
_.G([_.y({computed:"computeButtonOverride()"}),_.q("design:type",Object)],LX.prototype,"buttonOverride",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],LX.prototype,"onDataChanged",null);_.G([_.Gl("search-query-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,String]),_.q("design:returntype")],LX.prototype,"searchQueryChanged",null);
_.G([_.Gl("yt-next-continuation-data-updated"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],LX.prototype,"onContinuationItemsUpdated",null);_.G([_.dX({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],LX);
_.e(LX,"ytd-channel-switcher-page-renderer",function(){if(hwz!==void 0)return hwz;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return hwz=H},{mode:1});var vmH;var TQg;var RZ=function(){var H=_.B.apply(this,arguments)||this;H.images=[];H.selectedImageIndex=0;return H};
_.R(RZ,_.B);_.X=RZ.prototype;
_.X.ready=function(){_.Rc(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Rc(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Rc(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Rc(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,!1,this)};
_.X.onThumbnailClick=function(H){if(H=H.event_.detail)this.selectedImageIndex=this.images.indexOf(H)};
_.X.updateImageThumbnails=function(H){H=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:H.event_.detail});this.images.splice(this.selectedImageIndex,1,H);this.images=[].concat(_.vI(this.images))};
_.X.cancelImageRepositions=function(){this.selectedImageIndex=0;_.cg(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.X.saveImageRepositions=function(){this.selectedImageIndex=0;_.cg(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.D5.Object.defineProperties(RZ.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var H=this;return(this.images||[]).map(function(U,A){return{image:U,selected:A===H.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],RZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.hG("ytd-backstage-image-preview-renderer"),_.q("design:type",Object)],RZ.prototype,"imagePreviewContainer",void 0);_.G([_.hG(".thumbnail-images-container"),_.q("design:type",HTMLElement)],RZ.prototype,"thumbnailImagesContainer",void 0);_.G([_.y(),_.q("design:type",Array)],RZ.prototype,"images",void 0);
_.G([_.y(),_.q("design:type",Object)],RZ.prototype,"repositionInstructions",void 0);_.G([_.y(),_.q("design:type",Object)],RZ.prototype,"selectedImageIndex",void 0);_.G([_.a("images","selectedImageIndex"),_.q("design:type",Array),_.q("design:paramtypes",[])],RZ.prototype,"thumbnailRendererDatas",null);_.G([_.a("images","selectedImageIndex"),_.q("design:type",Object),_.q("design:paramtypes",[])],RZ.prototype,"selectedImageData",null);
_.G([_.dX({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],RZ);
_.ty()(RZ,"ytd-backstage-multi-image-reposition-renderer",function(){if(TQg===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);TQg=H}H=TQg;return H},{allowedProps:["images",
"repositionInstructions"],mode:1});var Es=function(H,U){_.LW.call(this);this.uploadUrl=H;this.channelId=U;this.imagesUploadData=[]};
_.R(Es,_.LW);Es.prototype.getAllUploadStatuses=function(){var H=this,U,A,M;return _.u(function(W){if(W.nextAddress==1)return W.yield(jAw(H),2);U=W.yieldResult;A=U.get("succeed");M=U.get("failed");return W.return(A.concat(M))})};
var QAw=function(H){var U,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(jAw(H),2);U=M.yieldResult;A=U.get("failed");A.length>0&&ILp(H,A);return M.return(H.getAllUploadStatuses())})},jAw=function(H){var U,A,M,W,w,d,O;
return _.u(function(f){if(f.nextAddress==1)return U=new Map,f.yield(Promise.allSettled(H.imagesUploadData.map(function(J){return J.uploadPromise})),2);
A=f.yieldResult;M=[];W=_.b(A);for(w=W.next();!w.done;w=W.next())d=w.value,d.status==="fulfilled"&&M.push(d.value);O=H.imagesUploadData.map(function(J){return J.image}).filter(function(J){return M.every(function(F){return F.id!==J.id})});
U.set("succeed",M);U.set("failed",O);return f.return(U)})},ILp=function(H,U){U=_.b(U);
for(var A=U.next();!A.done;A=U.next()){var M=H;A=A.value;Vgp(M,A.id)>=0&&M.cancel(A.id);var W=new Hck(A),w=_.N3y(M.uploadUrl,{"X-YouTube-ChannelId":M.channelId},A.imageBlob);W.transfer=w;W.uploadPromise=U_n(w,A);M.imagesUploadData.push(W);w.run()}};
Es.prototype.cancel=function(H){var U=Vgp(this,H);U!==-1&&((U=this.imagesUploadData[U].transfer)&&U.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(A){return A.image.id!==H}))};
var Vgp=function(H,U){return H.imagesUploadData.findIndex(function(A){return A.image.id===U})},U_n=function(H,U){return new Promise(function(A,M){H.listen("l",function(){var W=H.getResponseText();
W?(W=JSON.parse(W).encryptedBlobId,U.encryptedBlobId=W,A(U)):M("upload failed")});
H.listen("n",function(){M("upload failed")})})},Hck=function(H){this.image=H};var jKc=function(H,U,A,M,W){this.id=H;this.imageBlob=U;this.localImageSrc=A;this.naturalWidth=M;this.naturalHeight=W;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 A2m=[".jpeg",".jpg",".png"],mm=function(){var H=_.B.apply(this,arguments)||this;H.showImagesPreview=!1;H.pollOptions=[];H.errorMessage="";H.optionPlaceholderText="";H.optionDefaultText="";H.JSC$16090_imageId=0;H.maxFileSizeMb=0;H.maxAspectRatio=0;H.invalidFileSizeError="";H.invalidAspectRatioError="";H.invalidFileTypeError="";H.imageSelector=new BY(null,"single_file",A2m);return H};
_.R(mm,_.B);_.X=mm.prototype;_.X.ready=function(){_.Rc(this.imageSelector,"j",this.onImageSelect,!1,this);_.Rc(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Rc(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.X.dataChanged=function(){var H,U,A=_.p((H=this.data)==null?void 0:(U=H.cellTemplate)==null?void 0:U.onEmptyCellTap,Jhm);if(A&&A.uploadUrl&&A.channelId){var M;this.maxFileSizeMb=((M=A.imageValidationInfo)==null?void 0:M.maxFileSizeMb)||0;var W;this.maxAspectRatio=((W=A.imageValidationInfo)==null?void 0:W.allowedMaxAspectRatio)||0;var w;this.invalidFileSizeError=this.getSimpleString((w=this.data)==null?void 0:w.invalidFileSizeError);var d;this.invalidAspectRatioError=this.getSimpleString((d=this.data)==
null?void 0:d.invalidAspectRatioError);var O;this.invalidFileTypeError=this.getSimpleString((O=this.data)==null?void 0:O.invalidFileTypeError);this.uploadManager=new Es(A.uploadUrl,A.channelId)}};
_.X.onEditorInfoChange=function(){this.optionPlaceholderText=_.Sp(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Sp(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.X.observeAddImageError=function(){this.errorMessage!==""&&_.cg(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.X.onPollOptionsChange=function(){for(var H=!1,U=[],A=0;A<this.pollOptions.length;A++){var M=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(A+1);this.pollOptions[A].placeholderText!==M?(H=!0,U.push(Object.assign({},this.pollOptions[A],{placeholderText:M}))):U.push(this.pollOptions[A])}H&&(this.pollOptions=U);this.isValid()?_.cg(this.hostElement,"yt-commentbox-post-enable"):_.cg(this.hostElement,"yt-commentbox-post-disable")};
_.X.createPollOptions=function(H){var U=[],A;H=(A=H==null?void 0:H.minPollOptions)!=null?A:0;for(A=0;A<H;A++)U.push(this.createPollOption());return U};
_.X.onImageSelect=function(H){var U=this,A,M,W,w,d,O;return _.u(function(f){if(f.nextAddress==1){if(U.selectedImageIndex===void 0)return f.jumpTo(0);A=H.files[0];U.errorMessage="";M=U.validateImage(A);if(M!=="")return U.errorMessage=M,f.return();W=new L$(U.maxAspectRatio,!1,!0);return f.yield(W.transform(A),3)}if(f.nextAddress!=4)return w=f.yieldResult,w.transformedData?w.invalidAspectRatio?(U.errorMessage=U.invalidAspectRatioError,f.return()):f.yield(IFM(U.JSC$16090_imageId,H.files[0],w.transformedData),
4):(U.errorMessage=U.invalidFileTypeError,f.return());d=f.yieldResult;U.JSC$16090_imageId++;ILp(U.uploadManager,[d]);O=Object.assign({},U.pollOptions[U.selectedImageIndex],{image:d});U.pollOptions.splice(U.selectedImageIndex,1,O);U.refreshPollOptions();_.cg(U.hostElement,"yt-backstage-poll-image-select");_.DO(f)})};
_.X.validateImage=function(H){return H.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.X.refreshPollOptions=function(){this.pollOptions=[].concat(_.vI(this.pollOptions))};
_.X.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.vI(this.pollOptions),[this.createPollOption()]))};
_.X.onRemovePollOption=function(H){var U=this.pollOptions[H.model.index];U&&U.image&&this.uploadManager.cancel(U.image.id);this.pollOptions.splice(H.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.cg(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.X.onTextInput=function(){this.refreshPollOptions()};
_.X.onImageButtonClick=function(H){this.selectedImageIndex=H.model.index;this.imageSelector.click()};
_.X.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.X.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.X.saveImageRepositions=function(H){H=H.event_.detail;for(var U=0,A=[],M=_.b(this.pollOptions),W=M.next();!W.done;W=M.next())W=W.value,W.image!==void 0?(W=Object.assign({},W,{image:H[U]}),A.push(W),U++):A.push(W);this.showImagesPreview=!1;this.pollOptions=[].concat(_.vI(A))};
_.X.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 H=0,U=_.b(this.pollOptions),A=U.next();!A.done;A=U.next())if(A=A.value,A.optionText.trim()!==""||A.image!==void 0){if(!A.image||this.hasCustomOptionText&&A.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;H++}return H>=Number(this.editorInfo.minPollOptions)};
_.X.getAllUploadStatuses=function(){var H=this,U,A,M,W;return _.u(function(w){if(w.nextAddress==1)return w.yield(H.uploadManager.getAllUploadStatuses(),2);U=w.yieldResult;A=_.b(U);for(M=A.next();!M.done;M=A.next())if(W=M.value,W.encryptedBlobId===void 0)return w.return(QAw(H.uploadManager));return w.return(U)})};
_.X.getPostCreateOptions=function(){for(var H=[],U=_.b(this.pollOptions),A=U.next();!A.done;A=U.next())A=A.value,A.image!==void 0&&H.push({text:this.hasCustomOptionText?A.optionText:A.placeholderText,image:A.image});return H};
_.X.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.X.createButtonRenderer=function(H,U){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:H,accessibilityData:{accessibilityData:{label:this.getSimpleString(H)}},isDisabled:U}};
_.X.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.X.computeThumbnailRendererData=function(H){return H?{image:H,selected:!1}:void 0};
_.X.getSimpleString=function(H){return _.Sp(H)};
_.X.updateOptionTextFromBinding=function(H){if(H.target){var U=Array.from(_.c4(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(H.target);if(U>=0){var A;this.pollOptions[U].optionText=(A=H.detail.value)!=null?A:""}}};
_.D5.Object.defineProperties(mm.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var H,U;return this.pollOptions.length<((U=(H=this.editorInfo)==null?void 0:H.maxPollOptions)!=null?U:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(H){return H.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(H){return H.image}).map(function(H){return H.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(H){return H.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var H,U=(H=this.data)==null?void 0:H.addOptionButtonText;return U?this.createButtonRenderer(U,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var H,U=(H=this.data)==null?void 0:H.repositionImagesButtonLabel;return U?this.createButtonRenderer(U,!this.hasImages):void 0}}});
mm.prototype.onPollOptionsChange=mm.prototype.onPollOptionsChange;mm.prototype.observeAddImageError=mm.prototype.observeAddImageError;mm.prototype.onEditorInfoChange=mm.prototype.onEditorInfoChange;mm.prototype.dataChanged=mm.prototype.dataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],mm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.hG("ytd-backstage-multi-image-reposition-renderer"),_.q("design:type",Object)],mm.prototype,"imageRepositionContainer",void 0);
_.G([_.y(),_.q("design:type",Object)],mm.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],mm.prototype,"editorInfo",void 0);_.G([_.y(),_.q("design:type",Es)],mm.prototype,"uploadManager",void 0);_.G([_.y(),_.q("design:type",Object)],mm.prototype,"showImagesPreview",void 0);_.G([_.y(),_.q("design:type",Array)],mm.prototype,"pollOptions",void 0);_.G([_.y(),_.q("design:type",Object)],mm.prototype,"errorMessage",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mm.prototype,"dataChanged",null);_.G([_.jk("editorInfo"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mm.prototype,"onEditorInfoChange",null);_.G([_.Ya("errorMessage"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mm.prototype,"observeAddImageError",null);
_.G([_.jk("pollOptions"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mm.prototype,"onPollOptionsChange",null);_.G([_.a("pollOptions","editorInfo"),_.q("design:type",Object),_.q("design:paramtypes",[])],mm.prototype,"isAllowedToAddOption",null);_.G([_.a("pollOptions"),_.q("design:type",Object),_.q("design:paramtypes",[])],mm.prototype,"hasImages",null);
_.G([_.a("pollOptions"),_.q("design:type",Object),_.q("design:paramtypes",[])],mm.prototype,"imagesToReposition",null);_.G([_.a("pollOptions"),_.q("design:type",Object),_.q("design:paramtypes",[])],mm.prototype,"hasCustomOptionText",null);_.G([_.a("data","isAllowedToAddOption"),_.q("design:type",Object),_.q("design:paramtypes",[])],mm.prototype,"addOptionButton",null);_.G([_.a("data","hasImages"),_.q("design:type",Object),_.q("design:paramtypes",[])],mm.prototype,"repositionImagesButton",null);
_.G([_.dX({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],mm);
_.e(mm,"ytd-backstage-image-poll-editor-renderer",function(){if(vmH!==void 0)return vmH;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return vmH=H},{mode:2});var M_z={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 Waz;var ge=function(){var H=_.B.apply(this,arguments)||this;H.a11yConfig=M_z;H.imageDisplayOffsetTop=0;H.imageDisplayOffsetLeft=0;H.pickerDisplayOffsetTop=0;H.pickerDisplayOffsetLeft=0;H.showPreviewContainer=!0;H.startPicker=!1;H.repositionOptional=!1;H.editOnlyMode=!1;H.savedImageDisplayOffsetTop=0;H.savedImageDisplayOffsetLeft=0;return H};
_.R(ge,_.B);_.X=ge.prototype;_.X.created=function(){_.dS.requestAvailability()};
_.X.ready=function(){};
_.X.onArrowKeysDown=function(H){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){H.detail.keyboardEvent.preventDefault();var U=0,A=0,M="";switch(H.detail.keyboardEvent.key){case "ArrowUp":QK7(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?M=this.a11yConfig.reachBottomOfImage:U=this.imageHeight*.05*-1;break;case "ArrowDown":QK7(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?M=this.a11yConfig.reachTopOfImage:
U=this.imageHeight*.05;break;case "ArrowLeft":QK7(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?M=this.a11yConfig.reachRightOfImage:A=this.imageWidth*.05*-1;break;case "ArrowRight":QK7(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?M=this.a11yConfig.reachLeftOfImage:A=this.imageWidth*.05}M&&_.hP(M)&&_.cg(this.hostElement,"iron-announce",{text:_.hP(M)});if(A||U)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+U)),H=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),H=_.hP(this.a11yConfig.imageVerticalPosition,{x_percent:""+H,y_percent:""+(100-H)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+A)),H=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),H=_.hP(this.a11yConfig.imageHorizontalPosition,{x_percent:""+H,y_percent:""+(100-H)})),H&&_.cg(this.hostElement,"iron-announce",{text:H})}};
_.X.getPreviewPosition=function(H,U,A,M){return Math.round(100*(H+U*.5-A)/M)};
_.X.calculateDisplayPosition=function(){var H=this.imageData.naturalWidth,U=this.imageData.naturalHeight;this.displayScale=Math.max(200/H,200/U);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var A=H*this.displayScale*this.imageData.previewCoordinates.left,M=U*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=U>H?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-A;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=H>U?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-M;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=H*this.displayScale;this.imageHeight=U*this.displayScale};
_.X.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.X.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.X.getSignedPosition=function(H,U,A){return U==="X"&&_.gD("HTML_DIR")==="rtl"?A==="-"?H+"px":H*-1+"px":A==="-"?H*-1+"px":H+"px"};
_.X.pickerMove=function(H){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var U=this.pickerOffsetX-H.clientX,A=this.pickerOffsetY-H.clientY;this.pickerOffsetX=H.clientX;this.pickerOffsetY=H.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
A)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-U))}};
_.X.pickerMoveStart=function(H){this.startPicker=!0;this.pickerOffsetX=H.clientX;this.pickerOffsetY=H.clientY};
_.X.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var H=this.generateCropPreview();H&&_.cg(this.hostElement,"ytd-backstage-image-preview-coordinates-update",H)};
_.X.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.cg(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.X.deleteImage=function(){_.cg(this.hostElement,"ytd-backstage-image-preview-delete")};
_.X.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.X.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var H=this.generateCropPreview();H&&_.cg(this.hostElement,"ytd-backstage-image-preview-coordinates-save",H)};
_.X.getPreviewOffset=function(H,U,A){return U&&H?(A==="X"&&_.gD("HTML_DIR")==="rtl"?300/U*H:300/U*H*-1)+"px":"0px"};
_.X.getSimpleText=function(H){return H?_.Sp(H):""};
_.X.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}};
_.D5.Object.defineProperties(ge.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var H=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.hP(this.a11yConfig.imageVerticalPosition,{x_percent:""+H,y_percent:""+(100-H)})+"\n"+_.hP(this.a11yConfig.verticalRepositionInstruction)}H=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.hP(this.a11yConfig.imageHorizontalPosition,{x_percent:""+H,y_percent:""+(100-H)})+"\n"+_.hP(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 H,U,A=(H=this.instruction)==null?void 0:(U=H.previewInstruction)==null?void 0:U.editButtonLabel;return A?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:A,accessibilityData:{accessibilityData:{label:this.getSimpleText(A)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M,W=this.editOnlyMode?(H=this.instruction)==null?void 0:(U=H.editInstruction)==null?void 0:U.saveImagesButtonLabel:(A=this.instruction)==null?void 0:(M=A.editInstruction)==null?void 0:M.saveButtonLabel;return W?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:W,accessibilityData:{accessibilityData:{label:this.getSimpleText(W)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var H,U,A=(H=this.instruction)==null?void 0:(U=H.previewInstruction)==null?void 0:U.deleteButtonLabel;return A?{size:"SIZE_SMALL",text:A,accessibilityData:{accessibilityData:{label:this.getSimpleText(A)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var H,U,A=(H=this.instruction)==null?void 0:(U=H.editInstruction)==null?void 0:U.cancelButtonLabel;H=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return A?{style:H,size:"SIZE_SMALL",text:A,accessibilityData:{accessibilityData:{label:this.getSimpleText(A)}}}: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"}}});
ge.prototype.onEditOnlyModeUpdate=ge.prototype.onEditOnlyModeUpdate;ge.prototype.onImageChange=ge.prototype.onImageChange;_.G([_.y(),_.q("design:type",jKc)],ge.prototype,"imageData",void 0);_.G([_.y(),_.q("design:type",Object)],ge.prototype,"instruction",void 0);_.G([_.y(),_.q("design:type",Object)],ge.prototype,"a11yConfig",void 0);_.G([_.y(),_.q("design:type",Number)],ge.prototype,"imageWidth",void 0);_.G([_.y(),_.q("design:type",Number)],ge.prototype,"imageHeight",void 0);
_.G([_.y(),_.q("design:type",Number)],ge.prototype,"displayScale",void 0);_.G([_.y(),_.q("design:type",Object)],ge.prototype,"imageDisplayOffsetTop",void 0);_.G([_.y(),_.q("design:type",Object)],ge.prototype,"imageDisplayOffsetLeft",void 0);_.G([_.y(),_.q("design:type",Object)],ge.prototype,"pickerDisplayOffsetTop",void 0);_.G([_.y(),_.q("design:type",Object)],ge.prototype,"pickerDisplayOffsetLeft",void 0);_.G([_.y(),_.q("design:type",Object)],ge.prototype,"showPreviewContainer",void 0);
_.G([_.y(),_.q("design:type",Object)],ge.prototype,"startPicker",void 0);_.G([_.y(),_.q("design:type",Number)],ge.prototype,"pickerOffsetX",void 0);_.G([_.y(),_.q("design:type",Number)],ge.prototype,"pickerOffsetY",void 0);_.G([_.y(),_.q("design:type",Object)],ge.prototype,"repositionOptional",void 0);_.G([_.y(),_.q("design:type",Object)],ge.prototype,"editOnlyMode",void 0);_.G([_.hG("#picker-container"),_.q("design:type",HTMLElement)],ge.prototype,"JSC$16103_pickerContainer",void 0);
_.G([_.hG("#picker"),_.q("design:type",HTMLElement)],ge.prototype,"picker",void 0);_.G([_.hG("#preview-clipper"),_.q("design:type",HTMLElement)],ge.prototype,"previewClipper",void 0);_.G([_.hG("#image-in-picker-background"),_.q("design:type",HTMLImageElement)],ge.prototype,"JSC$16103_imageInBackground",void 0);_.G([_.hG("#image-in-picker"),_.q("design:type",HTMLImageElement)],ge.prototype,"JSC$16103_imageInPicker",void 0);
_.G([_.hG("#image-in-preview-clipper"),_.q("design:type",HTMLImageElement)],ge.prototype,"JSC$16103_imageInPreviewClipper",void 0);_.G([_.a("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.q("design:type",String),_.q("design:paramtypes",[])],ge.prototype,"altLabelForImage",null);_.G([_.a("imageHeight","imageWidth"),_.q("design:type",Number),_.q("design:paramtypes",[])],ge.prototype,"pickerSize",null);
_.G([_.a("imageHeight","imageWidth"),_.q("design:type",Object),_.q("design:paramtypes",[])],ge.prototype,"imageOrientationStyle",null);_.G([_.a("instruction"),_.q("design:type",Object),_.q("design:paramtypes",[])],ge.prototype,"editButton",null);_.G([_.a("instruction","editOnlyMode"),_.q("design:type",Object),_.q("design:paramtypes",[])],ge.prototype,"saveButton",null);_.G([_.a("instruction"),_.q("design:type",Object),_.q("design:paramtypes",[])],ge.prototype,"deleteButton",null);
_.G([_.a("instruction","editOnlyMode"),_.q("design:type",Object),_.q("design:paramtypes",[])],ge.prototype,"cancelButton",null);_.G([_.a("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.q("design:type",Number),_.q("design:paramtypes",[])],ge.prototype,"cropOffsetTop",null);_.G([_.a("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.q("design:type",Number),_.q("design:paramtypes",[])],ge.prototype,"cropOffsetLeft",null);
_.G([_.a("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.q("design:type",String),_.q("design:paramtypes",[])],ge.prototype,"pickerBackgroundStyle",null);_.G([_.a("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.q("design:type",String),_.q("design:paramtypes",[])],ge.prototype,"pickerDisplayStyle",null);_.G([_.a("cropOffsetLeft","cropOffsetTop"),_.q("design:type",String),_.q("design:paramtypes",[])],ge.prototype,"imageInPickerStyle",null);
_.G([_.a("cropOffsetLeft","cropOffsetTop","pickerSize"),_.q("design:type",String),_.q("design:paramtypes",[])],ge.prototype,"previewClipperStyle",null);_.G([_.jk("imageData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ge.prototype,"onImageChange",null);_.G([_.jk("editOnlyMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ge.prototype,"onEditOnlyModeUpdate",null);
_.G([_.a("showPreviewContainer"),_.q("design:type",String),_.q("design:paramtypes",[])],ge.prototype,"pickerModeStyle",null);_.G([_.dX({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],ge);
_.e(ge,"ytd-backstage-image-preview-renderer",function(){if(Waz!==void 0)return Waz;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Waz=H},{mode:1});var w7m;var X7w={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 icm;var bcw;var aZ=function(){var H=_.B.apply(this,arguments)||this;H.a11yConfig=X7w;H.imageDisplayOffsetTop=0;H.imageDisplayOffsetLeft=0;H.pickerDisplayOffsetTop=0;H.pickerDisplayOffsetLeft=0;H.cropCoordinatesSaved=!1;H.previewSize=0;H.startPicker=!1;H.repositionOptional=!1;return H};
_.R(aZ,_.B);_.X=aZ.prototype;_.X.created=function(){_.dS.requestAvailability()};
_.X.ready=function(){};
_.X.onArrowKeysDown=function(H){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){H.detail.keyboardEvent.preventDefault();var U=0,A=0,M="";switch(H.detail.keyboardEvent.key){case "ArrowUp":Va7(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?M=this.a11yConfig.reachBottomOfImage:U=this.imageHeight*.05*-1;break;case "ArrowDown":Va7(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?M=this.a11yConfig.reachTopOfImage:
U=this.imageHeight*.05;break;case "ArrowLeft":Va7(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?M=this.a11yConfig.reachRightOfImage:A=this.imageWidth*.05*-1;break;case "ArrowRight":Va7(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?M=this.a11yConfig.reachLeftOfImage:A=this.imageWidth*.05}M&&_.hP(M)&&_.cg(this.hostElement,"iron-announce",{text:_.hP(M)});if(A||U)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+U)),H=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),H=_.hP(this.a11yConfig.imageVerticalPosition,{x_percent:""+H,y_percent:""+(100-H)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+A)),H=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),H=_.hP(this.a11yConfig.imageHorizontalPosition,{x_percent:""+H,y_percent:""+(100-H)})),H&&_.cg(this.hostElement,"iron-announce",{text:H})}};
_.X.getPreviewPosition=function(H,U,A,M){return Math.round(100*(H+U*.5-A)/M)};
_.X.displayImage=function(){var H=this.JSC$16114_pickerContainer.getBoundingClientRect().width,U=this.JSC$16114_pickerContainer.getBoundingClientRect().height,A=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),M=this.JSC$16114_imageInBackground.naturalWidth,W=this.JSC$16114_imageInBackground.naturalHeight;this.displayScale=Math.max(A/M,A/W);this.imageWidth=M*this.displayScale;this.imageHeight=W*this.displayScale;this.pickerDisplayOffsetLeft=(H-A)/2;this.pickerDisplayOffsetTop=
(U-A)/2;this.imageDisplayOffsetLeft=W>M?this.pickerDisplayOffsetLeft:(H-this.imageWidth)/2;this.imageDisplayOffsetTop=M>W?this.pickerDisplayOffsetTop:(U-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.X.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$16114_imageInBackground.src=this.imageData.toString(),this.JSC$16114_imageInPicker.src=this.imageData.toString(),this.JSC$16114_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.X.getSignedPosition=function(H,U,A){return U==="X"&&_.gD("HTML_DIR")==="rtl"?A==="-"?H+"px":H*-1+"px":A==="-"?H*-1+"px":H+"px"};
_.X.pickerMove=function(H){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var U=this.pickerOffsetX-H.clientX,A=this.pickerOffsetY-H.clientY;this.pickerOffsetX=H.clientX;this.pickerOffsetY=H.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
A)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-U))}};
_.X.pickerMoveStart=function(H){this.startPicker=!0;this.pickerOffsetX=H.clientX;this.pickerOffsetY=H.clientY};
_.X.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.X.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.cg(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.X.getPreviewOffset=function(H,U,A,M){return U&&H&&A?(M==="X"&&_.gD("HTML_DIR")==="rtl"?A/U*H:A/U*H*-1)+"px":"0px"};
_.X.getSimpleText=function(H){return H?_.Sp(H):""};
_.X.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var H=this.cropOffsetTop/this.imageHeight,U=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,A=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,M=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.c4(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.cg(this.hostElement,"yt-img-crop-coordinates-update",{top:H,right:U,bottom:A,left:M})}};
_.D5.Object.defineProperties(aZ.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var H=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.hP(this.a11yConfig.imageVerticalPosition,{x_percent:""+H,y_percent:""+(100-H)})+"\n"+_.hP(this.a11yConfig.verticalRepositionInstruction)}H=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.hP(this.a11yConfig.imageHorizontalPosition,{x_percent:""+H,y_percent:""+(100-H)})+"\n"+_.hP(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 H,U=(H=this.learnMore.runs[0])==null?void 0:H.navigationEndpoint,A;return((A=_.p(U,_.gu))==null?void 0:A.url)||void 0}}}});
aZ.prototype.onImageDataChange=aZ.prototype.onImageDataChange;_.G([_.y(),_.q("design:type",Object)],aZ.prototype,"imageData",void 0);_.G([_.y(),_.q("design:type",Object)],aZ.prototype,"instruction",void 0);_.G([_.y(),_.q("design:type",Object)],aZ.prototype,"a11yConfig",void 0);_.G([_.y(),_.q("design:type",Number)],aZ.prototype,"imageWidth",void 0);_.G([_.y(),_.q("design:type",Number)],aZ.prototype,"imageHeight",void 0);_.G([_.y(),_.q("design:type",Number)],aZ.prototype,"displayScale",void 0);
_.G([_.y(),_.q("design:type",Object)],aZ.prototype,"imageDisplayOffsetTop",void 0);_.G([_.y(),_.q("design:type",Object)],aZ.prototype,"imageDisplayOffsetLeft",void 0);_.G([_.y(),_.q("design:type",Object)],aZ.prototype,"pickerDisplayOffsetTop",void 0);_.G([_.y(),_.q("design:type",Object)],aZ.prototype,"pickerDisplayOffsetLeft",void 0);_.G([_.y(),_.q("design:type",Object)],aZ.prototype,"cropCoordinatesSaved",void 0);_.G([_.y(),_.q("design:type",Object)],aZ.prototype,"previewSize",void 0);
_.G([_.y(),_.q("design:type",Object)],aZ.prototype,"startPicker",void 0);_.G([_.y(),_.q("design:type",Number)],aZ.prototype,"pickerOffsetX",void 0);_.G([_.y(),_.q("design:type",Number)],aZ.prototype,"pickerOffsetY",void 0);_.G([_.y(),_.q("design:type",Object)],aZ.prototype,"repositionOptional",void 0);_.G([_.hG("#picker-container"),_.q("design:type",HTMLElement)],aZ.prototype,"JSC$16114_pickerContainer",void 0);_.G([_.hG("#picker"),_.q("design:type",HTMLElement)],aZ.prototype,"picker",void 0);
_.G([_.hG("#image-in-picker-background"),_.q("design:type",HTMLImageElement)],aZ.prototype,"JSC$16114_imageInBackground",void 0);_.G([_.hG("#image-in-picker"),_.q("design:type",HTMLImageElement)],aZ.prototype,"JSC$16114_imageInPicker",void 0);_.G([_.hG("#image-in-preview-clipper"),_.q("design:type",HTMLImageElement)],aZ.prototype,"JSC$16114_imageInPreviewClipper",void 0);_.G([_.hG("#full-image-as-preview"),_.q("design:type",HTMLImageElement)],aZ.prototype,"imageAsPreview",void 0);
_.G([_.a("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.q("design:type",String),_.q("design:paramtypes",[])],aZ.prototype,"altLabelForImage",null);_.G([_.a("imageHeight","imageWidth"),_.q("design:type",Number),_.q("design:paramtypes",[])],aZ.prototype,"pickerSize",null);_.G([_.a("imageHeight","imageWidth"),_.q("design:type",Object),_.q("design:paramtypes",[])],aZ.prototype,"imageOrientationStyle",null);
_.G([_.a("instruction.previewInstruction.editButtonLabel"),_.q("design:type",Object),_.q("design:paramtypes",[])],aZ.prototype,"editButton",null);_.G([_.a("instruction.editInstruction.saveButtonLabel"),_.q("design:type",Object),_.q("design:paramtypes",[])],aZ.prototype,"saveButton",null);_.G([_.a("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.q("design:type",Number),_.q("design:paramtypes",[])],aZ.prototype,"cropOffsetTop",null);
_.G([_.a("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.q("design:type",Number),_.q("design:paramtypes",[])],aZ.prototype,"cropOffsetLeft",null);_.G([_.a("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.q("design:type",String),_.q("design:paramtypes",[])],aZ.prototype,"pickerBackgroundStyle",null);_.G([_.a("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.q("design:type",String),_.q("design:paramtypes",[])],aZ.prototype,"pickerDisplayStyle",null);
_.G([_.a("cropOffsetLeft","cropOffsetTop"),_.q("design:type",String),_.q("design:paramtypes",[])],aZ.prototype,"imageInPickerStyle",null);_.G([_.a("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.q("design:type",String),_.q("design:paramtypes",[])],aZ.prototype,"previewClipperStyle",null);_.G([_.Ya("imageData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aZ.prototype,"onImageDataChange",null);
_.G([_.a("cropCoordinatesSaved"),_.q("design:type",String),_.q("design:paramtypes",[])],aZ.prototype,"pickerModeStyle",null);_.G([_.a("instruction.editInstruction.learnMore"),_.q("design:type",Object),_.q("design:paramtypes",[])],aZ.prototype,"learnMore",null);_.G([_.a("learnMore"),_.q("design:type",Object),_.q("design:paramtypes",[])],aZ.prototype,"learnMoreUrl",null);_.G([_.b0({is:"yt-img-crop-picker",disableElementRegistration:!0})],aZ);
_.e(aZ,"yt-img-crop-picker",function(){if(bcw===void 0){var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;icm===void 0&&(icm=document.createElement("template"));var M=icm;A.call(U,M.content.cloneNode(!0),H.content.firstChild);bcw=H}H=bcw;return H},{mode:2});var xo=function(){var H=_.B.apply(this,arguments)||this;H.errorMessage="";H.hasPreview=!1;H.isBackstagePost=!1;H.dismissButtonOverrides={size:"XS"};return H};
_.R(xo,_.B);_.X=xo.prototype;_.X.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"}}}};
_.X.detached=function(){this.removeOverlay()};
_.X.setPreview=function(H){_.c4(this.hostElement).querySelector("#preview-picker").imageData=H;this.hasPreview=!0;_.cg(this.hostElement,"yt-backstage-image-select-preview")};
_.X.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var H=_.c4(this.hostElement).querySelector("#dropzone");H.classList.remove("dragover");H.classList.remove("error");_.cg(this.hostElement,"yt-backstage-image-select-cancel")};
_.X.setupOverlay=function(){var H=this.imageUploadEndpoint;this.removeOverlay();if(H&&H.imageValidationInfo){var U=_.c4(this.hostElement).querySelector("#dropzone"),A=_.c4(this.hostElement).querySelector("#select");this.overlay=new E7(H.uploadUrl,H.channelId,H.imageValidationInfo.maxFileSizeMb,H.imageValidationInfo.allowedMaxAspectRatio,U,A,!0);_.Rc(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Rc(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Rc(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Rc(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Rc(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.X.removeOverlay=function(){this.overlay&&(_.WS(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.WS(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.WS(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.WS(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.WS(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.X.onDragOver=function(H){var U=_.c4(this.hostElement).querySelector("#dropzone");_.B4(U,"dragover",H.value)};
_.X.onPreview=function(H){this.setPreview(H.value)};
_.X.onImageError=function(H){if(H.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var U;H=(U=this.data)==null?void 0:U.fileSizeError}else if(H.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var A;H=(A=this.data)==null?void 0:A.invalidError}else if(H.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var M;H=(M=this.data)==null?void 0:M.invalidAspectRatioError}else return;this.errorMessage=_.Sp(H);_.c4(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.X.onImageAlert=function(H){this.onImageError(H)};
_.X.uploadPromise=function(){var H=this,U=this.overlay&&this.overlay.uploadPromise();if(U)return U.catch(function(){throw Error(H.data?_.Sp(H.data.uploadFailureError):"");})};
_.D5.Object.defineProperties(xo.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var H,U;if((H=this.data)==null?0:(U=H.icon)==null?0:U.iconType)return _.eq(this.data.icon.iconType)}}});
xo.prototype.setupOverlay=xo.prototype.setupOverlay;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],xo.prototype,"rendererStamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],xo.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],xo.prototype,"imageUploadEndpoint",void 0);_.G([_.y(),_.q("design:type",Object)],xo.prototype,"errorMessage",void 0);
_.G([_.y(),_.q("design:type",E7)],xo.prototype,"overlay",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],xo.prototype,"hasPreview",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],xo.prototype,"isBackstagePost",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],xo.prototype,"selectionCancel",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],xo.prototype,"previewCancel",null);
_.G([_.a("data.icon.iconType"),_.q("design:type",Object),_.q("design:paramtypes",[])],xo.prototype,"icon",null);_.G([_.y(),_.q("design:type",Object)],xo.prototype,"dismissButtonOverrides",void 0);_.G([_.Ya("imageUploadEndpoint"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xo.prototype,"setupOverlay",null);_.G([_.dX({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],xo);
_.e(xo,"ytd-backstage-image-select-renderer",function(){if(w7m!==void 0)return w7m;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return w7m=H},{mode:1});var d_g;var Oc2;var zD=function(){var H=_.B.apply(this,arguments)||this;H.selected=!1;return H};
_.R(zD,_.B);_.X=zD.prototype;_.X.computeSelected=function(H){return H==null?void 0:H.selected};
_.X.computeTransform=function(H,U,A){var M,W,w=(W=(M=this.imageContainer)==null?void 0:M.getBoundingClientRect())!=null?W:{width:0,height:0};M=Math.max(w.width/U,w.height/A);A=A*M*H.top;return"translateX("+this.getSignedPosition(U*M*H.left,"X","-")+") translateY("+this.getSignedPosition(A,"Y","-")+")"};
_.X.getSignedPosition=function(H,U,A){return U==="X"&&_.gD("HTML_DIR")==="rtl"?A==="-"?H+"px":H*-1+"px":A==="-"?H*-1+"px":H+"px"};
_.X.onClick=function(){var H;_.cg(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(H=this.data)==null?void 0:H.image)};
_.X.onKeyPress=function(H){if(H.keyCode===13)this.onClick()};
_.D5.Object.defineProperties(zD.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.data)==null?void 0:(U=H.image)==null?void 0:U.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)!=null&&H.image){var U;H=(U=this.data)==null?void 0:U.image;return H.previewCoordinates.top!==0||H.previewCoordinates.left!==0?(U=this.computeTransform(H.previewCoordinates,H.naturalWidth,H.naturalHeight),H.naturalHeight>=H.naturalWidth?"width:inherit;transform:"+U+";":"height:inherit;transform:"+U+";"):H.naturalHeight>=H.naturalWidth?"width:inherit;":"height:inherit;"}}}});
zD.prototype.onKeyPress=zD.prototype.onKeyPress;_.G([_.hG(".image-container"),_.q("design:type",HTMLElement)],zD.prototype,"imageContainer",void 0);_.G([_.y(),_.q("design:type",Object)],zD.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.q("design:type",Object)],zD.prototype,"selected",void 0);_.G([_.a("data.image"),_.q("design:type",Object),_.q("design:paramtypes",[])],zD.prototype,"thumbnailUrl",null);
_.G([_.a("data.image","data.image.previewCoordinates"),_.q("design:type",Object),_.q("design:paramtypes",[])],zD.prototype,"thumbnailStyle",null);_.G([_.Gl("keypress"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],zD.prototype,"onKeyPress",null);_.G([_.dX({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],zD);
_.ty()(zD,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(Oc2===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);Oc2=H}H=Oc2;return H},{allowedProps:["data"],
mode:2});var CX=function(H,U,A){A=A===void 0?!1:A;_.LW.call(this);var M=this;this.dropZoneOverlay=new cY(H);this.selectOverlay=A?new BY(U,"multiple_file",["image/*"]):new BY(U,"single_file",["image/*"]);this.handler=new _.u9(this);_.kl(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(U,"click",function(){M.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.R(CX,_.LW);CX.prototype.onChange=function(H){var U;(U=H.files)!=null&&U.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:H.files}))};var tK=function(){var H=_.B.apply(this,arguments)||this;H.addImageErrorMessage="";H.errorMessage="";H.images=[];H.selectedImageIndex=0;H.modern=_.S("web_modern_buttons");H.maxNumImagesPerPost=_.hr("max_num_images_per_post_web_ui");H.JSC$16129_imageId=0;return H};
_.R(tK,_.B);_.X=tK.prototype;_.X.created=function(){var H=this;this.JSC$16129_ytReorderableController=new _.REH(100,function(U){H.handleDrop(U)})};
_.X.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.cg(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.X.observeDragToReorder=function(){var H=this;if(this.showImagesPreview){var U,A=agK(_.rI.getInstance(),(U=this.data)==null?void 0:U.dragToReorderTooltip);_.Fl.addLowPriorityJob(function(){_.eb(H.hostElement,A,H.thumbnailDragDropArea)})}};
_.X.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}}};
_.X.computeThumbnail=function(H){return(H==null?void 0:H.localImageSrc)||void 0};
_.X.onRendererstamperFinished=function(){_.ELB(this.JSC$16129_ytReorderableController,_.c4(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.c4(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.X.handleDrop=function(H){var U=H.currDragItem;if(U!=null&&U.data){H=this.images[this.selectedImageIndex];var A=U.data.image,M=this.images.indexOf(A)||0;U=_.cF(U.parentNode.children,U);this.images.splice(M,1);this.images.splice(U,0,A);this.images=[].concat(_.vI(this.images));this.selectedImageIndex=this.images.indexOf(H)}};
_.X.setUpImagePicker=function(){var H=this.imageUploadEndpoint;H&&H.imageValidationInfo&&(this.uploadManager=new Es(H.uploadUrl,H.channelId),this.initialPicker||(this.initialPicker=new CX(this.dropzone,this.selectLink,!0),_.Rc(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new CX(this.addImageButtonContainer,this.addImageSelectButton),_.Rc(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Rc(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Rc(this.imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Rc(_.c4(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.X.detached=function(){this.initialPicker&&(_.WS(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.WS(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.k0(this.JSC$16129_ytReorderableController)};
_.X.onInitialSelectImages=function(H){var U=this;return _.u(function(A){return A.yield(U.onSelectImages(H,!1),0)})};
_.X.onAddImage=function(H){var U=this;return _.u(function(A){return A.yield(U.onSelectImages(H,!0),0)})};
_.X.onSelectImages=function(H,U){var A=this,M,W,w,d,O,f,J,F,P,n,N,L,m,z,c,C,v,Y,D,h;return _.u(function(T){switch(T.nextAddress){case 1:U?A.addImageErrorMessage="":(A.images=[],A.errorMessage="");M=H.detail;W=A.validateImages([].concat(_.vI(M)));if(W!=="")return U?A.addImageErrorMessage=W:A.errorMessage=W,T.return();w=[].concat(_.vI(M)).map(function(WF){return(new L$(A.maxAspectRatio,!1,!0)).transform(WF)});
return T.yield(Promise.allSettled(w),2);case 2:d=T.yieldResult,O=_.b(d.entries()),f=O.next();case 3:if(f.done){T.jumpTo(5);break}J=f.value;F=_.b(J);P=F.next().value;n=F.next().value;N=P;L=n;if(L.status!=="fulfilled"){c=z=m=void 0;U?A.addImageErrorMessage=_.Sp((m=A.data)==null?void 0:m.invalidError):A.errorMessage=A.errorMessage===""?_.Sp((z=A.data)==null?void 0:z.invalidError):_.Sp((c=A.data)==null?void 0:c.multiFileError);T.jumpTo(4);break}C=L.value;C.cropped&&_.cg(A.hostElement,"yt-backstage-multi-image-cropped");
if(C.invalidAspectRatio){D=Y=v=void 0;U?A.addImageErrorMessage=_.Sp((v=A.data)==null?void 0:v.invalidAspectRatioError):A.errorMessage=A.errorMessage===""?_.Sp((Y=A.data)==null?void 0:Y.invalidAspectRatioError):_.Sp((D=A.data)==null?void 0:D.multiFileError);T.jumpTo(4);break}return T.yield(IFM(A.JSC$16129_imageId,H.detail[N],C.transformedData),8);case 8:h=T.yieldResult,A.images.push(h),A.JSC$16129_imageId++;case 4:f=O.next();T.jumpTo(3);break;case 5:if(A.errorMessage!==""||A.addImageErrorMessage!==
"")return T.return();U?ILp(A.uploadManager,[A.images[A.images.length-1]]):ILp(A.uploadManager,A.images);A.images=[].concat(_.vI(A.images));A.selectedImageIndex=U?Math.max(A.images.length-1,0):0;_.cg(A.hostElement,"yt-backstage-multi-image-select");_.DO(T)}})};
_.X.onThumbnailClick=function(H){if(H=H.event_.detail)this.selectedImageIndex=this.images.indexOf(H)};
_.X.validateImages=function(H){if(H.length>this.maxNumImagesPerPost){var U;return _.Sp((U=this.data)==null?void 0:U.multiImageExceedMaxImageCountError)}var A=1048576*this.maxFileSizeMb;H=H.filter(function(w){return w.size>A}).length;
if(H===0)return"";var M,W;H=H>1?(M=this.data)==null?void 0:M.multiFileError:(W=this.data)==null?void 0:W.fileSizeError;return _.Sp(H)};
_.X.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.vI(this.images));this.selectedImageIndex=0};
_.X.repositionImage=function(H){this.images[this.selectedImageIndex].previewCoordinates=H.event_.detail;this.images=[].concat(_.vI(this.images))};
_.X.getAllUploadStatuses=function(){var H=this,U,A,M,W;return _.u(function(w){if(w.nextAddress==1)return w.yield(H.uploadManager.getAllUploadStatuses(),2);U=w.yieldResult;A=_.b(U);for(M=A.next();!M.done;M=A.next())if(W=M.value,W.encryptedBlobId===void 0)return w.return(QAw(H.uploadManager));return w.return(U)})};
_.X.hasImages=function(){return this.images.length>0};
_.X.cancel=function(){for(var H=this.uploadManager,U=_.b(H.imagesUploadData),A=U.next();!A.done;A=U.next())H.cancel(A.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.cg(this.hostElement,"yt-backstage-multi-image-cancel")};
_.D5.Object.defineProperties(tK.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.imageUploadEndpoint)==null?void 0:(U=H.imageValidationInfo)==null?void 0:U.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.imageUploadEndpoint)==null?void 0:(U=H.imageValidationInfo)==null?void 0:U.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var H,U;if((H=this.data)==null?0:(U=H.icon)==null?0:U.iconType)return _.eq(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.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>=this.maxNumImagesPerPost}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var H=this;return(this.images||[]).map(function(U,A){return{renderer:{image:U,selected:A===H.selectedImageIndex}}})}}});
tK.prototype.setUpImagePicker=tK.prototype.setUpImagePicker;tK.prototype.onRendererstamperFinished=tK.prototype.onRendererstamperFinished;tK.prototype.observeDragToReorder=tK.prototype.observeDragToReorder;tK.prototype.observeAddImageError=tK.prototype.observeAddImageError;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],tK.prototype,"rendererStamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);
_.G([_.hG("#dropzone"),_.q("design:type",HTMLElement)],tK.prototype,"dropzone",void 0);_.G([_.hG("#select-link"),_.q("design:type",HTMLElement)],tK.prototype,"selectLink",void 0);_.G([_.hG("#thumbnail-drag-drop-area"),_.q("design:type",HTMLElement)],tK.prototype,"thumbnailDragDropArea",void 0);_.G([_.hG("#add-image-button-container"),_.q("design:type",HTMLElement)],tK.prototype,"addImageButtonContainer",void 0);
_.G([_.hG("#add-image-button"),_.q("design:type",HTMLElement)],tK.prototype,"addImageSelectButton",void 0);_.G([_.hG("#image-preview-container"),_.q("design:type",Object)],tK.prototype,"imagePreviewContainer",void 0);_.G([_.y(),_.q("design:type",Object)],tK.prototype,"addImageErrorMessage",void 0);_.G([_.y(),_.q("design:type",Object)],tK.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],tK.prototype,"errorMessage",void 0);
_.G([_.y(),_.q("design:type",Object)],tK.prototype,"imageUploadEndpoint",void 0);_.G([_.y(),_.q("design:type",Array)],tK.prototype,"images",void 0);_.G([_.y(),_.q("design:type",CX)],tK.prototype,"initialPicker",void 0);_.G([_.y(),_.q("design:type",CX)],tK.prototype,"addImagePicker",void 0);_.G([_.y(),_.q("design:type",Es)],tK.prototype,"uploadManager",void 0);_.G([_.y(),_.q("design:type",Object)],tK.prototype,"selectedImageIndex",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],tK.prototype,"modern",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],tK.prototype,"maxNumImagesPerPost",void 0);_.G([_.a("imageUploadEndpoint"),_.q("design:type",Number),_.q("design:paramtypes",[])],tK.prototype,"maxAspectRatio",null);_.G([_.a("imageUploadEndpoint"),_.q("design:type",Number),_.q("design:paramtypes",[])],tK.prototype,"maxFileSizeMb",null);
_.G([_.a("data.icon.iconType"),_.q("design:type",Object),_.q("design:paramtypes",[])],tK.prototype,"dropIcon",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],tK.prototype,"selectionCancel",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],tK.prototype,"previewCancel",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],tK.prototype,"dataForAddImageButton",null);
_.G([_.a("errorMessage"),_.q("design:type",String),_.q("design:paramtypes",[])],tK.prototype,"dropzoneClass",null);_.G([_.a("images"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],tK.prototype,"showImagesPreview",null);_.G([_.a("images"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],tK.prototype,"containMaxImages",null);_.G([_.Ya("addImageErrorMessage"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tK.prototype,"observeAddImageError",null);
_.G([_.Ya("showImagesPreview"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tK.prototype,"observeDragToReorder",null);_.G([_.a("images","selectedImageIndex"),_.q("design:type",Object),_.q("design:paramtypes",[])],tK.prototype,"selectedImageData",null);_.G([_.a("images","selectedImageIndex"),_.q("design:type",Array),_.q("design:paramtypes",[])],tK.prototype,"thumbnailRenderers",null);
_.G([_.Gl("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tK.prototype,"onRendererstamperFinished",null);_.G([_.Ya("imageUploadEndpoint"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tK.prototype,"setUpImagePicker",null);_.G([_.dX({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],tK);
_.e(tK,"ytd-backstage-multi-image-select-renderer",function(){if(d_g!==void 0)return d_g;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return d_g=H},{mode:1});var uZ2;var Zcm;var fqz;var ch=function(){var H=_.B.apply(this,arguments)||this;H.boundCaptureFocus=function(U){H.onCaptureFocus(U)};
return H};
_.R(ch,_.B);_.X=ch.prototype;_.X.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.X.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.X.onCaptureFocus=function(H){_.Lf(H).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.X.getIconType=function(H){return H?"yt-icons:"+H.toLowerCase():null};
_.X.onSelect=function(){var H;if((H=this.data)==null?0:H.onSelectCommand)if(_.S("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var U;((U=_.p(this.data.onSelectCommand.commandMetadata,_.Y2))==null?0:U.url)?_.cg(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.lx().resolve(_.YV).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.D5.Object.defineProperties(ch.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Sp(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}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ch.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ch.prototype,"data",void 0);_.G([_.hG("#item"),_.q("design:type",HTMLElement)],ch.prototype,"item",void 0);_.G([_.a("data.label"),_.q("design:type",String),_.q("design:paramtypes",[])],ch.prototype,"label",null);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],ch.prototype,"value",null);_.G([_.dX({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],ch);
_.e(ch,"ytd-privacy-dropdown-item-renderer",function(){if(fqz!==void 0)return fqz;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return fqz=H},{mode:1});var yv=function(){var H=_.B.apply(this,arguments)||this;H.value="";H.label="";H.disabled=!1;return H};
_.R(yv,_.B);_.X=yv.prototype;_.X.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"}}}};
_.X.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.X.dataChanged=function(){this.reset()};
_.X.valueChanged=function(){var H;if(this.value&&(H=this.data)!=null&&H.entries){H=_.b(this.data.entries);for(var U=H.next();!U.done;U=H.next())if((U=this.getRendererForEntry(U.value))&&this.getItemRendererValue(U)===this.value){this.label=this.ytComponentBehavior.getSimpleString(U.label);break}}};
_.X.setInitialLabel=function(){if(this.data&&this.data.entries)for(var H=_.b(this.data.entries),U=H.next();!U.done;U=H.next())if(U=this.getRendererForEntry(U.value)){if(U.isSelected){this.label=this.ytComponentBehavior.getSimpleString(U.label);break}this.data.label&&(this.label=this.data.label)}};
_.X.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var H=_.b(this.data.entries),U=H.next();!U.done;U=H.next()){U=this.getRendererForEntry(U.value);var A=void 0;if((A=U)==null?0:A.isSelected)return this.getItemRendererValue(U)||-1}return-1};
_.X.getItemRendererValue=function(H){return"stringValue"in H||"int32Value"in H?H.stringValue||H.int32Value||null:null};
_.X.getRendererForEntry=function(H){return H.dropdownItemRenderer||H.privacyDropdownItemRenderer||H.navigationDropdownItemRenderer||null};
_.X.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("value-changed",this.value))};
_.X.updateValueFromBinding=function(H){this.value=H.detail.value};
yv.prototype.valueChangedForBinding=yv.prototype.valueChangedForBinding;yv.prototype.valueChanged=yv.prototype.valueChanged;yv.prototype.dataChanged=yv.prototype.dataChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],yv.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],yv.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],yv.prototype,"value",void 0);_.G([_.y(),_.q("design:type",Object)],yv.prototype,"label",void 0);_.G([_.hG("#entries"),_.q("design:type",Object)],yv.prototype,"entries",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],yv.prototype,"disabled",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yv.prototype,"dataChanged",null);
_.G([_.jk("value"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yv.prototype,"valueChanged",null);_.G([_.Ya("value"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yv.prototype,"valueChangedForBinding",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],yv);
_.e(yv,"ytd-flat-dropdown-renderer",function(){if(Zcm!==void 0)return Zcm;var H=document.createElement("template");_.E(H,'\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="EXPAND" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Zcm=H},{mode:1});var J2z;var Bh=function(){var H=_.B.apply(this,arguments)||this;H.quizOptions=[];H.explanationPlaceholderText="";H.optionPlaceholderText="";H.correctAnswerIndex=-1;H.isMarkAnswerTooltipShown=!1;H.timer=0;return H};
_.R(Bh,_.B);_.X=Bh.prototype;_.X.dataChanged=function(){this.optionPlaceholderText=_.Sp(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Sp(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.X.onMarkCorrectAnswer=function(H){var U,A=((U=this.quizOptions[this.correctAnswerIndex])==null?void 0:U.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[H.model.index]=Object.assign({},this.quizOptions[H.model.index],{explanationText:A,isCorrect:!0});this.correctAnswerIndex=H.model.index;this.quizOptions=[].concat(_.vI(this.quizOptions))};
_.X.updatePlaceholderTexts=function(){for(var H=!1,U=[],A=0;A<this.quizOptions.length;A++){var M=this.optionPlaceholderText+" "+(A+1),W=void 0;((W=this.quizOptions[A])==null?void 0:W.placeholderText)!==M?(H=!0,U.push(Object.assign({},this.quizOptions[A],{placeholderText:M}))):U.push(this.quizOptions[A])}H&&(this.quizOptions=U);this.isValid()?_.cg(this.hostElement,"yt-commentbox-post-enable"):_.cg(this.hostElement,"yt-commentbox-post-disable")};
_.X.getSimpleString=function(H){return _.Sp(H)};
_.X.createQuizOptions=function(H){var U=[],A;H=(A=H==null?void 0:H.minQuizOptions)!=null?A:0;for(A=0;A<H;A++)U.push(this.createQuizOption());return U};
_.X.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.vI(this.quizOptions),[this.createQuizOption()]))};
_.X.onInput=function(){this.quizOptions=[].concat(_.vI(this.quizOptions))};
_.X.onExplanationInput=function(){_.cg(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.X.onRemoveQuizOption=function(H){this.quizOptions.splice(H.model.index,1);H.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:H.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.vI(this.quizOptions));this.quizOptions.length===0&&_.cg(this.hostElement,"yt-quiz-attachment-dismiss")};
_.X.updateHintRenderer=function(){var H=this;clearTimeout(this.timer);this.timer=setTimeout(function(){H.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.X.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var H=0,U=0,A=_.b(this.quizOptions),M=A.next();!M.done;M=A.next()){M=M.value;var W=void 0;if(((W=M.optionText)==null?void 0:W.trim())!==""||M.isCorrect){M.isCorrect&&U++;W=void 0;if(this.hasCustomOptionText&&((W=M.optionText)==null?void 0:W.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;H++}}return H>=
Number(this.editorInfo.minQuizOptions)&&U===1};
_.X.getPostCreateOptions=function(){for(var H=[],U=_.b(this.quizOptions),A=U.next();!A.done;A=U.next()){A=A.value;var M=void 0;((M=A.optionText)==null?void 0:M.trim())!==""&&H.push({pollOption:{text:A.optionText,explanation:A.explanationText},isCorrect:A.isCorrect})}return H};
_.X.getExplanationText=function(){var H;return((H=this.quizOptions[this.correctAnswerIndex])==null?void 0:H.explanationText)||""};
_.X.maybeDisplayMarkAnswerEduToolTip=function(){var H,U,A,M,W,w,d;this.shouldShowMarkAnswerTooltip()&&((H=this.editorInfo)==null?0:(U=H.markAnswerButton)==null?0:(A=U.buttonRenderer)==null?0:(M=A.hint)==null?0:(W=M.hintRenderer)==null?0:(w=W.content)==null?0:(d=w.bubbleHintRenderer)==null?0:d.text)&&(_.rI.getInstance(),H=eZ(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,(H==null?void 0:H.length)>0&&this.optionSelectors&&_.l0(H[0],this.optionSelectors[0]))};
_.X.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var H=0,U=_.b(this.quizOptions),A=U.next();!A.done;A=U.next()){A=A.value;var M=void 0;((M=A.optionText)==null?void 0:M.trim())!==""&&H++;if(A.isCorrect)return!1}return H<2?!1:!0};
_.X.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.X.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.X.updateOptionTextFromBinding=function(H){if(H.target){var U=Array.from(_.c4(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(H.target);if(U>=0){var A;this.quizOptions[U].optionText=(A=H.detail.value)!=null?A:""}}};
_.D5.Object.defineProperties(Bh.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var H,U,A=(H=this.editorInfo)==null?void 0:(U=H.addOptionButton)==null?void 0:U.buttonRenderer;A&&(A.style="STYLE_SUGGESTIVE",A.size="SIZE_SMALL",A.isDisabled=!this.isAllowedToAddOption);return(A==null?0:A.text)?A:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var H,U;return this.quizOptions.length<((U=(H=this.editorInfo)==null?void 0:H.maxQuizOptions)!=null?U:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(H){var U;return(U=H.optionText)==null?void 0:U.trim()})}}});
Bh.prototype.updatePlaceholderTexts=Bh.prototype.updatePlaceholderTexts;Bh.prototype.dataChanged=Bh.prototype.dataChanged;_.G([_.y(),_.q("design:type",Object)],Bh.prototype,"editorInfo",void 0);_.G([_.y(),_.q("design:type",Array)],Bh.prototype,"quizOptions",void 0);_.G([_.y(),_.q("design:type",Object)],Bh.prototype,"explanationPlaceholderText",void 0);_.G([_.ka(".option-selector-button"),_.q("design:type",Array)],Bh.prototype,"optionSelectors",void 0);
_.G([_.jk("editorInfo"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Bh.prototype,"dataChanged",null);_.G([_.a("editorInfo","isAllowedToAddOption","quizOptions"),_.q("design:type",Object),_.q("design:paramtypes",[])],Bh.prototype,"addAnswerButton",null);_.G([_.a("editorInfo","quizOptions"),_.q("design:type",Object),_.q("design:paramtypes",[])],Bh.prototype,"isAllowedToAddOption",null);
_.G([_.jk("quizOptions"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Bh.prototype,"updatePlaceholderTexts",null);_.G([_.a("quizOptions"),_.q("design:type",Object),_.q("design:paramtypes",[])],Bh.prototype,"hasCustomOptionText",null);_.G([_.dX({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],Bh);
_.e(Bh,"ytd-backstage-quiz-editor-renderer",function(){if(J2z!==void 0)return J2z;var H=document.createElement("template");_.E(H,'\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-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return J2z=H},{mode:2});var KaK;var o_B=(e5.FIRSTDAYOFWEEK+1)%7;var Fag;var Ptw=[],sBn=0,n_h=0;sBn=0;n_h=24;if(.25*(n_h-sBn)<0)Fag=[];else{for(var NrB=sBn;NrB<n_h;NrB+=.25)Ptw.push(NrB);Fag=Ptw}var SJr=Fag.map(function(H){H=H*60*60;return{secondsSinceMidnight:H,text:(new nq(7)).format(new Date(0,0,0,0,0,H))}});var p7K;var re=function(){var H=_.B.apply(this,arguments)||this;H.skipNextOpenDialog=!1;H.errorMessage="";H.previousMonthLabel=_.hP("PREVIOUS_MONTH_LABEL");H.nextMonthLabel=_.hP("NEXT_MONTH_LABEL");return H};
_.R(re,_.B);_.X=re.prototype;_.X.attached=function(){var H=this,U=new MutationObserver(function(){H.JSC$16171_calendarMain.scrollHeight>0&&(U.disconnect(),H.calendarConfig&&H.calendarConfig.selectedDate&&H.scrollToDate())});
U.observe(this.JSC$16171_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){U.disconnect()},1E3)};
_.X.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.X.onDateTextChange=function(){if(this.calendarConfig){var H=this.validateDateText();H.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(H.details)):this.textbox.setAttribute("invalid","")}};
_.X.handleDayClick=function(H){H.model.day.date&&(this.commitDate(H.model.day.date),this.dialog.close())};
_.X.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var H=bSV(this.calendarConfig.selectedDate,this.renderData);H!==void 0&&this.JSC$16171_calendarMain.scrollToIndex(H)}};
_.X.scrollToNextMonth=function(){this.JSC$16171_calendarMain.scrollToIndex(this.JSC$16171_calendarMain.firstVisibleIndex+1)};
_.X.scrollToPrevMonth=function(){this.JSC$16171_calendarMain.firstVisibleIndex===0&&this.JSC$16171_calendarMain.scrollTo(0,0);this.JSC$16171_calendarMain.scrollToIndex(this.JSC$16171_calendarMain.firstVisibleIndex-1)};
_.X.onFormSubmit=function(H){H.preventDefault();this.calendarConfig&&(H=this.validateDateText(),H.isValid&&(this.commitDate(H.details),this.dialog.close()))};
_.X.onEscOrClickingOutside=function(H){H=H.detail.path&&!!H.detail.path.length&&H.detail.path[0];if(H.classList.contains("ytd-calendar-date-picker")){H===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var U=0;U<this.dropdownButton.children.length;U++)this.dropdownButton.children[U]===H&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}H=this.textbox.value!==this.dateText;U=this.validateDateText();H&&U.isValid&&this.commitDate(U.details);this.dialog.close();this.textbox.value=
this.dateText};
_.X.commitDate=function(H){this.calendarConfig&&(this.set("calendarConfig.selectedDate",H),_.cg(this.hostElement,"ytd-calendar-date-selected",H))};
_.X.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var H=this.textbox.value;var U=new Date;H=(new mwK(2)).parse(H,U,{validate:!0})===H.length?XfV(U):void 0;if(!H)return this.errorMessage=_.hP("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};U=this.calendarConfig.start;var A=this.calendarConfig.end;if(Uw8(H,U))return this.errorMessage=_.hP("ENTER_DATE_OR_LATER",{allowed_date:wfc(U)}),{isValid:!1,details:void 0};if(Uw8(A,H))return this.errorMessage=
_.hP("ENTER_DATE_OR_EARLIER",{allowed_date:wfc(A)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:H}};
_.D5.Object.defineProperties(re.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?wfc(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var H=this.calendarConfig,U=[],A=0;A<7;A++)U.push(e5.NARROWWEEKDAYS[(A+o_B)%7]);A=[];for(var M=new Date(H.start.year,H.start.month);M.getFullYear()<H.end.year||M.getFullYear()===H.end.year&&M.getMonth()<=H.end.month;){var W=A,w=W.push,d=M.getFullYear(),O=M.getMonth(),f=H,J=void 0,F=[],P=Object.freeze({extraCssClass:"invisible",debugClass:""}),n=new Date(d,O),N=XfV(n);n=n.getDay();for(var L=XfV(new Date);N.month===
O;){n!==o_B&&J||(J=Array.from({length:7}).fill(P),F.push(J));var m={date:{year:d,month:O,day:N.day},extraCssClass:"",debugClass:""};f.selectedDate&&m.date&&HS_(m.date,f.selectedDate)&&(m.extraCssClass+=" selected");if(Uw8(N,f.start)||Uw8(f.end,N))m.extraCssClass+=" disabled";HS_(N,L)&&(m.extraCssClass+=" today");m.extraCssClass=m.extraCssClass.trim();J[(n-o_B+7)%7]=m;N=MF7(N);n=(n+1)%7}w.call(W,{weeks:F,monthLabel:e5.SHORTMONTHS[O]+" "+d,year:d,month:O,monthLabelExtraCssClass:F[0][2]===P?"shift-down-label":
""});M.setMonth(M.getMonth()+1)}return{months:A,daysOfWeekLabel:U}}}}});
re.prototype.onEscOrClickingOutside=re.prototype.onEscOrClickingOutside;re.prototype.scrollToDate=re.prototype.scrollToDate;_.G([_.y(),_.q("design:type",Object)],re.prototype,"calendarConfig",void 0);_.G([_.y(),_.q("design:type",Object)],re.prototype,"skipNextOpenDialog",void 0);_.G([_.y(),_.q("design:type",Object)],re.prototype,"errorMessage",void 0);_.G([_.y(),_.q("design:type",Object)],re.prototype,"previousMonthLabel",void 0);
_.G([_.y(),_.q("design:type",Object)],re.prototype,"nextMonthLabel",void 0);_.G([_.hG("#textbox"),_.q("design:type",HTMLInputElement)],re.prototype,"textbox",void 0);_.G([_.hG("#calendar-dialog"),_.q("design:type",Object)],re.prototype,"dialog",void 0);_.G([_.hG("#calendar-main"),_.q("design:type",Object)],re.prototype,"JSC$16171_calendarMain",void 0);_.G([_.hG("#date-picker"),_.q("design:type",HTMLElement)],re.prototype,"dropdownButton",void 0);
_.G([_.a("calendarConfig.selectedDate"),_.q("design:type",String),_.q("design:paramtypes",[])],re.prototype,"dateText",null);_.G([_.a("calendarConfig","calendarConfig.selectedDate"),_.q("design:type",Object),_.q("design:paramtypes",[])],re.prototype,"renderData",null);_.G([_.Ya("renderData","calendarConfig.selectedDate"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],re.prototype,"scrollToDate",null);
_.G([_.Gl("iron-overlay-canceled"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],re.prototype,"onEscOrClickingOutside",null);_.G([_.b0({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],re);
_.e(re,"ytd-calendar-date-picker",function(){if(p7K!==void 0)return p7K;var H=document.createElement("template");_.E(H,'\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="EXPAND" 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" label="[[previousMonthLabel]]" 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" label="[[nextMonthLabel]]" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return p7K=H},{mode:2});var Lan=_.hP("UTC_OFFSET_FORMAT",{utc_offset:(new nq("Z")).format(new Date)}),R7w=(new Date).getTimezoneOffset()*-60,E_w=new Date,m_H,g_B=s_(E_w.getTimezoneOffset());m_H=iyp(dFh(g_B,E_w));var aqK=_.hP("LOCAL_TIME_GMT_LABEL",{gmt_text:m_H.replace("+0","+").replace("-0","-").replace(":00","")}),ei=function(){var H=_.B.apply(this,arguments)||this;H.selectedTimeIndex=0;H.selectedTimezoneIndex=0;H.timeOfDayOptions=SJr;return H};
_.R(ei,_.B);_.X=ei.prototype;_.X.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var H=WWK();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=H,this.selectedTimeIndex=0;else{var U=iSt(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},H,{selectedDate:U.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(A){return A.secondsSinceMidnight===U.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.X.onDatePicked=function(H){this.selectedDate=H.detail};
_.X.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.cg(this.hostElement,"ytd-date-time-selection-cancelled")};
_.X.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var H=this.selectedDate;H=new Date(H.year,H.month,H.day);_.cg(this.hostElement,"ytd-date-time-selection-update",Math.floor(H.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+H.getTimezoneOffset()*60))}};
_.X.getTimezoneFormat=function(H){return H.localizedDisplayText?H.localizedDisplayText:_.hP("TIMEZONE_FORMAT",{utc_offset_text:""+H.localizedUtcOffset,city_name:""+H.localizedName})};
_.X.updateSelectedTimeIndexFromBinding=function(H){this.selectedTimeIndex=H.detail.value};
_.X.updateSelectedTimezoneIndexFromBinding=function(H){this.selectedTimezoneIndex=H.detail.value};
_.D5.Object.defineProperties(ei.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var H=this.data.timezoneOptions;var U={name:"Etc/Unknown",localizedName:_.hP("LOCAL_TIME_LABEL"),localizedUtcOffset:Lan,utcOffsetSec:""+R7w,localizedDisplayText:aqK};H?H.length&&H[0].name!==U.name&&(H[0].localizedDisplayText||(U.localizedDisplayText=""),H.unshift(U)):H=[U];return H}}},
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]}}});
ei.prototype.onDateTimeTimezoneChange=ei.prototype.onDateTimeTimezoneChange;ei.prototype.onDatePicked=ei.prototype.onDatePicked;ei.prototype.updateDefaultSelectedValue=ei.prototype.updateDefaultSelectedValue;_.G([_.y(),_.q("design:type",Object)],ei.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],ei.prototype,"calendarConfig",void 0);_.G([_.y(),_.q("design:type",Object)],ei.prototype,"selectedDate",void 0);_.G([_.y(),_.q("design:type",Object)],ei.prototype,"selectedTimeIndex",void 0);
_.G([_.y(),_.q("design:type",Object)],ei.prototype,"selectedTimezoneIndex",void 0);_.G([_.hG("#time-listbox"),_.q("design:type",Object)],ei.prototype,"timeListBox",void 0);_.G([_.hG("#timezone-listbox"),_.q("design:type",Object)],ei.prototype,"timezoneListBox",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ei.prototype,"rendererStamperBehavior",void 0);_.G([_.a("data.timezoneOptions"),_.q("design:type",Object),_.q("design:paramtypes",[])],ei.prototype,"timeZones",null);
_.G([_.jk("data","timeZones"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ei.prototype,"updateDefaultSelectedValue",null);_.G([_.a("selectedTimezoneIndex","timeZones"),_.q("design:type",Object),_.q("design:paramtypes",[])],ei.prototype,"selectedTimezone",null);_.G([_.a("selectedTimeIndex"),_.q("design:type",Object),_.q("design:paramtypes",[])],ei.prototype,"selectedTime",null);
_.G([_.Gl("ytd-calendar-date-selected"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ei.prototype,"onDatePicked",null);_.G([_.Ya("selectedTimezone","selectedTime","selectedDate"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ei.prototype,"onDateTimeTimezoneChange",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],ei);
_.e(ei,"ytd-date-time-picker-renderer",function(){if(KaK!==void 0)return KaK;var H=document.createElement("template");_.E(H,'\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="EXPAND" 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="EXPAND" 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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return KaK=H},{mode:1});var x_y;var DG=function(){var H=_.B.apply(this,arguments)||this;H.boundOnTapDismissButton=function(){H.dismissTapHandler()};
H.dismissButtonOverrides={size:"XS"};return H};
_.R(DG,_.B);DG.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}}}}}};
DG.prototype.dismissTapHandler=function(){_.cg(this.hostElement,"yt-backstage-attachment-dismissed")};
DG.prototype.computeAttachmentType=function(H){return H?H.backstageImageRenderer?"image":H.videoRenderer?"video":"none":"none"};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],DG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],DG.prototype,"attachmentPreview",void 0);_.G([_.y(),_.q("design:type",Object)],DG.prototype,"dismissButton",void 0);_.G([_.y(),_.q("design:type",Object)],DG.prototype,"boundOnTapDismissButton",void 0);
_.G([_.y(),_.q("design:type",Object)],DG.prototype,"dismissButtonOverrides",void 0);_.G([_.y({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.q("design:type",String)],DG.prototype,"attachmentType",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],DG);
_.e(DG,"ytd-backstage-dismissable-attachment",function(){if(x_y!==void 0)return x_y;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return x_y=H},{mode:1});var z7w;var $o=function(){var H=_.B.apply(this,arguments)||this;H.selectedVideoId=void 0;H.picker=void 0;H.dismissButtonOverrides={size:"XS"};H.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return H};
_.R($o,_.B);_.X=$o.prototype;_.X.onServiceRequestCompleted=function(H){H.stopPropagation()};
_.X.handleAddVideoPreviewAction=function(H){H=this.get("addVideoPreviewAction",H);this.onGetVideoPreviewSuccess(H)};
_.X.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}}}}}};
_.X.onLaunchVideoPicker=function(H){var U=this,A=_.Sp(this.get("addVideoLinkAction.title",H)),M=this.get("addVideoLinkAction.onePickHostId",H);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",H);M&&(this.picker||(A=_.FFp(_.GHh(M).setTitle(A).addView(f5n()).addView(ZKr()),function(W){U.onPickVideo(W)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",H)||A.addView("youtube"),this.picker=A.build()),this.picker.setVisible(!0))};
_.X.onPickVideo=function(H){if(H)if(H.action==="cancel")_.cg(this.hostElement,"yt-video-link-button-cancel");else if(H.action==="picked"){H=H.docs;if(!H||H.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(H=(H==null?0:H.length)?H[0]:void 0)?H.id:void 0;this.setVideoPreview()}};
_.X.setVideoPreview=function(){var H=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){H.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.X.onGetVideoPreviewSuccess=function(H){if(H&&H.videoPreview&&H.cancelButton)this.videoPreview=H.videoPreview,this.cancelButton=H.cancelButton,_.cg(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.X.onGetVideoPreviewError=function(){this.cancel()};
_.X.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.cg(this.hostElement,"yt-video-link-cancel")};
_.X.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
$o.prototype.onServiceRequestCompleted=$o.prototype.onServiceRequestCompleted;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],$o.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],$o.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],$o.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],$o.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],$o.prototype,"videoPreview",void 0);_.G([_.y(),_.q("design:type",Object)],$o.prototype,"cancelButton",void 0);_.G([_.y(),_.q("design:type",Object)],$o.prototype,"getVideoPreviewCommand",void 0);_.G([_.y(),_.q("design:type",Object)],$o.prototype,"dismissButtonOverrides",void 0);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],$o.prototype,"onServiceRequestCompleted",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],$o);
_.e($o,"ytd-backstage-video-link-attachment",function(){if(z7w!==void 0)return z7w;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return z7w=H},{mode:1});var Cth;var t_B;var c2w;var ly=function(){return _.B.apply(this,arguments)||this};
_.R(ly,_.B);ly.prototype.dataChanged=function(){this.active=!1};
ly.prototype.onTap=function(){_.cg(this.hostElement,"yt-select-emoji-suggestion",this.data)};
ly.prototype.identity=function(H){return H};
_.D5.Object.defineProperties(ly.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M;if((H=this.data)==null?0:(U=H.image)==null?0:(A=U.thumbnails)==null?0:(M=A[0])==null?0:M.url)return H=this.data.image.thumbnails[0].url,H.startsWith("data:image/svg+xml")?Y5(H):_.j3(H)}}});
ly.prototype.dataChanged=ly.prototype.dataChanged;_.G([_.y(),_.q("design:type",Object)],ly.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],ly.prototype,"active",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ly.prototype,"dataChanged",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],ly.prototype,"imageSrc",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],ly);
_.e(ly,"ytd-emoji-suggestion",function(){if(c2w!==void 0)return c2w;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return c2w=H},{mode:1});var y22=/.*([:@#].*?)$/,GD=function(){var H=_.B.apply(this,arguments)||this;H.suggestions=[];H.suggestionIndex=-1;H.JSC$16199_lastSuggestionRange=null;return H};
_.R(GD,_.B);_.X=GD.prototype;_.X.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.X.getSuggestions=function(H){var U=[],A=MJp(this.emojiManager,H.substr(0,3));if(A)for(var M in A)if(M.toLocaleLowerCase().indexOf(H)===0){var W=A[M];if(W&&W.emojiId){W=oJ(this.emojiManager,W.emojiId);var w=void 0,d=void 0,O=void 0,f=void 0,J=((w=W)==null?0:w.isCustomEmoji)?(d=W)==null?void 0:(O=d.shortcuts)==null?void 0:O[0]:(f=W)==null?void 0:f.emojiId;w=void 0;U.push({suggestion:{image:(w=W)==null?void 0:w.image,alt:J,text:M}});if(U.length>=64)break}}return U?U.sort(function(F,P){return P.suggestion.text<
F.suggestion.text?-1:P.suggestion.text===F.suggestion.text?0:1}):null};
_.X.insertSuggestion=function(H){_.cg(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16199_lastSuggestionRange,text:H.alt});this.dropdown.opened=!1};
_.X.updateSuggestionsAtCaret=function(H){this.updateSuggestions(H,this.retrieveTextBeforeRange(H))};
_.X.offsetStartOfRangeBy=function(H,U){H.startOffset>=U&&H.setStart(H.startContainer,H.startOffset-U)};
_.X.updateSuggestions=function(H,U){var A=this;this.JSC$16199_lastSuggestionRange&&(this.JSC$16199_lastSuggestionRange.detach(),this.JSC$16199_lastSuggestionRange=null);if((U=y22.exec(U))&&U.length&&(U=U[U.length-1].toLocaleLowerCase(),U.length>2||U===":_")&&(this.offsetStartOfRangeBy(H,U.length),this.JSC$16199_lastSuggestionRange=H,(H=this.getSuggestions(U))&&H.length)){this.suggestions=H;_.rV(this,function(){A.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(H.length-1);return}this.dropdown.opened=!1};
_.X.onKeyDown=function(H){if(this.dropdown.opened)switch(H.key){case "Escape":this.dropdown.opened=!1;H.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);H.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);H.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),H.preventDefault()}};
_.X.onKeyUp=function(H,U){switch(H.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(U);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(U)}};
_.X.onKeyPress=function(H){H.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),H.preventDefault())};
_.X.changeSuggestionIndex=function(H){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(H+this.suggestions.length)%this.suggestions.length,H=this.dropdownContent.children[this.suggestionIndex],H.active=!0,this.dropdownContent.scrollTop=H.offsetTop)};
_.X.retrieveTextBeforeRange=function(H){var U=H.startContainer;return U&&U.nodeType===Node.TEXT_NODE?U.textContent.substr(0,H.startOffset):""};
GD.prototype.onKeyPress=GD.prototype.onKeyPress;GD.prototype.onKeyUp=GD.prototype.onKeyUp;GD.prototype.onKeyDown=GD.prototype.onKeyDown;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],GD.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Array)],GD.prototype,"suggestions",void 0);_.G([_.y(),_.q("design:type",_.Jb)],GD.prototype,"emojiManager",void 0);_.G([_.y(),_.q("design:type",Number)],GD.prototype,"verticalSuggestionsOffset",void 0);
_.G([_.hG("#dropdown"),_.q("design:type",Object)],GD.prototype,"dropdown",void 0);_.G([_.hG("#dropdown-content"),_.q("design:type",HTMLDivElement)],GD.prototype,"dropdownContent",void 0);_.G([_.Gl("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[KeyboardEvent]),_.q("design:returntype")],GD.prototype,"onKeyDown",null);_.G([_.Gl("keyup"),_.q("design:type",Function),_.q("design:paramtypes",[KeyboardEvent,Range]),_.q("design:returntype")],GD.prototype,"onKeyUp",null);
_.G([_.Gl("keypress"),_.q("design:type",Function),_.q("design:paramtypes",[KeyboardEvent]),_.q("design:returntype")],GD.prototype,"onKeyPress",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-emoji-input"})],GD);
_.e(GD,"ytd-emoji-input",function(){if(t_B!==void 0)return t_B;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return t_B=H},{mode:2});var BrB;var Yo=function(){var H=_.B.apply(this,arguments)||this;H.hasMaxOptions=!1;return H};
_.R(Yo,_.B);_.X=Yo.prototype;_.X.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.X.setPrefilledChoices=function(H){var U=this;this.set("pollOptions",[]);var A;for(A=0;A<Math.min(H.length,this.data.maxPollOptions);A++)this.push("pollOptions",H[A].substring(0,this.data.maxPollOptionChars));for(;A<this.data.minPollOptions;A++)this.push("pollOptions","");this.hasMaxOptions=A>=this.data.maxPollOptions;_.rV(this,function(){for(var M=U.pollOptions,W=_.c4(U.hostElement).querySelectorAll(".poll-option-input"),w=0;w<W.length;w++)W[w].value=M[w]})};
_.X.focusChanged=function(){_.Dt(this.hostElement)};
_.X.onInput=function(){var H=this;_.F8(this,"onInput",function(){H.isValid()?_.cg(H.hostElement,"yt-commentbox-post-enable"):_.cg(H.hostElement,"yt-commentbox-post-disable")},300)};
_.X.setPollOptions=function(){var H=[],U,A=((U=this.data)==null?0:U.minPollOptions)?this.data.minPollOptions:0;for(U=0;U<A;U++)H.push("");return H};
_.X.addPollOption=function(){var H=this;_.cg(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.Fl.addLowPriorityJob(function(){var U;(U=_.c4(H.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||U.focus()})};
_.X.onRemovePollOption=function(H){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.cg(this.hostElement,"yt-poll-attachment-dismiss")):(H=this.repeat.indexForElement(H.target.parentNode),H!==null&&(this.splice("pollOptions",H,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.cg(this.hostElement,"yt-commentbox-post-enable"))))};
_.X.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.X.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var H=0,U=this.pollOptions.length;H<U;H++)if(this.pollOptions[H].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.X.getPollOptions=function(){return this.pollOptions};
_.X.setPollOptionsFromInputs=function(){for(var H=_.c4(this.hostElement).querySelectorAll(".poll-option-input"),U=0;U<H.length;U++)this.pollOptions[U]=H[U].value.trim()};
_.X.clearPollOptions=function(){var H=_.c4(this.hostElement).querySelectorAll(".poll-option-input");H=_.b(H);for(var U=H.next();!U.done;U=H.next())U.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.X.getSimpleString=function(H){return _.Sp(H)};
_.X.updateValueFromBinding=function(H){if(H.target&&this.pollOptions){var U=Array.from(_.c4(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(H.target);if(U>=0){var A;this.pollOptions[U]=(A=H.detail.value)!=null?A:"";this.notifyPath("pollOptions."+U)}}};
Yo.prototype.dataChanged=Yo.prototype.dataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Yo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Yo.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Array)],Yo.prototype,"pollOptions",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Yo.prototype,"hasMaxOptions",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Yo.prototype,"enableCreationBox",void 0);
_.G([_.hG("#repeat"),_.q("design:type",WX)],Yo.prototype,"repeat",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Yo.prototype,"dataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Yo);
_.e(Yo,"ytd-poll-attachment",function(){if(BrB!==void 0)return BrB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return BrB=H},{mode:2});var r2n;var e72;var D_z;var $_g;var qL=function(){return _.B.apply(this,arguments)||this};
_.R(qL,_.B);_.D5.Object.defineProperties(qL.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],qL.prototype,"rendererBehaviors",void 0);_.G([_.y(),_.q("design:type",Object)],qL.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],qL.prototype,"focused",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("focused"),_.q("design:type",Object),_.q("design:paramtypes",[])],qL.prototype,"ariaSelected",null);_.G([_.b0({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],qL);
_.e(qL,"yt-user-mention-suggestion-renderer",function(){if($_g===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;D_z===void 0&&(D_z=document.createElement("template"));var M=D_z;A.call(U,M.content.cloneNode(!0),H.content.firstChild);$_g=H}H=$_g;return H},{mode:2});var lqk;var Gdr;var hK=function(){var H=_.B.apply(this,arguments)||this;H.focusedSuggestionIndex=-1;return H};
_.R(hK,_.B);_.X=hK.prototype;_.X.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.X.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.X.setFocusedSuggestionIndex=function(H){!this.data||!this.data.suggestions||H<0||H>=this.data.suggestions.length||(this.focusedSuggestionIndex=H,H=this.getSuggestionId(H),this._setFocusedSuggestionId(H))};
_.X.advanceSuggestion=function(H){this.focusedSuggestionIndex===-1||H!==-1&&H!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+H),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.X.ensureSuggestionVisible=function(H){H=this.getSuggestionId(H);H=_.c4(this.hostElement).querySelector("[id="+H+"]");H!=null&&(H.offsetTop<this.hostElement.scrollTop?H.scrollIntoView(!0):H.offsetTop+H.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&H.scrollIntoView(!1))};
_.X.getSuggestionId=function(H){return"user-mention-suggestion-"+H};
_.X.onSuggestionTap=function(H){var U=_.p(H.model.item,bmB);this.ytRendererBehavior.logExplicitClick(U);_.cg(this.hostElement,"yt-user-mention-suggestion-selected",{data:U,index:H.model.index})};
_.X.onSuggestionMouseMove=function(H){H.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(H.model.index)};
_.X.isSuggestionFocused=function(H,U){return H===U};
_.X.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.X.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("focused-suggestion-id-changed",this.focusedSuggestionId))};
hK.prototype.focusedSuggestionIdChangedForBinding=hK.prototype.focusedSuggestionIdChangedForBinding;hK.prototype.onDomChange=hK.prototype.onDomChange;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],hK.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],hK.prototype,"focusedSuggestionIndex",void 0);_.G([_.y({readOnly:!0}),_.q("design:type",String)],hK.prototype,"focusedSuggestionId",void 0);
_.G([_.Gl("dom-change"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],hK.prototype,"onDomChange",null);_.G([_.Ya("focusedSuggestionId"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hK.prototype,"focusedSuggestionIdChangedForBinding",null);_.G([_.b0({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],hK);
_.e(hK,"yt-user-mention-suggestions-dropdown",function(){if(Gdr===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;lqk===void 0&&(lqk=document.createElement("template"));var M=lqk;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Gdr=H}H=Gdr;return H},{mode:2});var ko=function(){var H=_.B.apply(this,arguments)||this;H.suggestionsResponse=null;H.activeMention=null;H.selectionChangeListener=H.onSelectionChange.bind(H);H.handlesEnabled=_.S("enable_handles_in_mention_suggest_posts");H.handlesInMentionSuggestionsEnabled=_.S("handles_in_mention_suggest_posts");H.zeroPrefixMentionSuggestionEnabled=_.S("enable_zero_prefix_mention_suggestion_web");H.pendingQuery=null;H.flowNonce=null;return H};
_.R(ko,_.B);_.X=ko.prototype;_.X.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.X.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.X.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.X.hasSuggestions=function(H){return!!(H&&H.suggestions&&H.suggestions.length>0)};
_.X.onInput=function(){var H=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var U=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),A=this.activeMention.JSC$11653_getText().slice(-1)===" ",M=this.activeMention.JSC$11653_getText().slice(-2,-1)===" ",W="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11653_getText().slice(-2,
-1))>=0;W=this.zeroPrefixMentionSuggestionEnabled&&W;if(this.activeMention.isCollapsed()||(U||M||W)&&A)this.cancelActiveMention();else{var w=this.activeMention.JSC$11653_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.F8(this,"requestSuggestions",function(){H.requestSuggestions(w)},100)}}}};
_.X.onServiceRequestSent=function(H){H.stopPropagation()};
_.X.onServiceRequestCompleted=function(H){H.stopPropagation();H=H.detail.data;H.query&&(!this.pendingQuery||this.pendingQuery!==H.query)||!this.zeroPrefixMentionSuggestionEnabled&&H.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=H,this.hasSuggestions(H)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.X.onServiceRequestError=function(H){H.stopPropagation()};
_.X.onUserMentionSuggestionSelected=function(H){this.selectSuggestion(H.detail.data,H.detail.index)};
_.X.onSelectionChange=function(){if(this.activeMention){var H=_.TS(),U=this.activeMention.JSC$11653_containsRange(H);H=H&&this.containsHelper(this.dropdown,H.getContainer());U||H||this.cancelActiveMention()}};
_.X.containsHelper=function(H,U){var A;if(((A=window.ShadyDOM)==null?void 0:A.noPatch)===!0)return H.contains(U);for(;U;){if(U===H)return!0;U=U instanceof ShadowRoot?U.host:U.parentNode}return!1};
_.X.maybeStartSuggest=function(){var H=_.TS();if(H&&H.isCollapsed()){var U=H.JSC$11653_getStartNode(),A=H.JSC$11653_getStartOffset();if(U instanceof Text&&!(A<1)){var M=U.textContent;!(M=M&&M.charAt(A-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(M)<0||(this.activeMention=_.VB(U,A-1,H.JSC$11653_getEndNode(),H.JSC$11653_getEndOffset()),this.flowNonce=MZ(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.X.updateActiveMention=function(){if(this.activeMention){var H=_.TS();H&&H.isCollapsed()&&(this.activeMention=_.VB(this.activeMention.JSC$11653_getStartNode(),this.activeMention.JSC$11653_getStartOffset(),H.JSC$11653_getEndNode(),H.JSC$11653_getEndOffset()))}};
_.X.requestSuggestions=function(H){if(this.activeMention){var U={suggestions_query:H};this.pendingQuery=H;_.rs(this.hostElement,[this.suggestionsEndpoint,U])}};
_.X.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()};
_.X.focusPreviousSuggestion=function(H){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),H.preventDefault())};
_.X.focusNextSuggestion=function(H){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),H.preventDefault())};
_.X.selectFocusedSuggestion=function(H){if(this.hasSuggestions(this.suggestionsResponse)){var U=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.p(U,bmB)&&(this.selectSuggestion(_.p(U,bmB),this.dropdown.focusedSuggestionIndex),H.preventDefault())}};
_.X.selectSuggestion=function(H,U){if(H){var A=this.activeMention;if(A){var M=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&H.handle?_.ox(M,"\u00a0\u2068@"+H.handle+"\u2069\u00a0"):this.handlesEnabled?_.ox(M,"\u00a0"+H.displayName+"\u00a0"):_.ox(M,"\u00a0@"+H.displayName+"\u00a0");HI(M,"/channel/"+H.channelId);M.classList.add("yt-formatted-string","yt-simple-endpoint");M.setAttribute("spellcheck","false");A.isCollapsed()||A.JSC$11653_removeContents();A.insertNode(M,!0);H=document.createTextNode(" ");
M.parentNode.insertBefore(H,M.nextSibling);window.getSelection().collapse(H,1);U={suggestionSelected:{suggestionIndex:U}};if(this.zeroPrefixMentionSuggestionEnabled){var W;U.suggestionSelected.isZeroPrefix=((W=this.suggestionsResponse)==null?void 0:W.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",U);this.cancelActiveMention();_.cg(this.hostElement,"yt-mention-inserted")}}};
_.X.getPositionTarget=function(H){return H&&H.getBrowserRangeObject()};
_.X.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.X.onFocusedSuggestionIdChanged=function(H){var U=_.IE4(this.hostElement)[0];U&&(H.detail.value?U.setAttribute("aria-activedescendant",H.detail.value):U.removeAttribute("aria-activedescendant"))};
_.X.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.X.logGELEvent=function(H,U){H={eventType:H,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};U&&(H=Object.assign(H,U));_.Fx("userMentionAutoCompleteBoxEvent",H)};
ko.prototype.onDomChange=ko.prototype.onDomChange;ko.prototype.onUserMentionSuggestionSelected=ko.prototype.onUserMentionSuggestionSelected;ko.prototype.onServiceRequestError=ko.prototype.onServiceRequestError;ko.prototype.onServiceRequestCompleted=ko.prototype.onServiceRequestCompleted;ko.prototype.onServiceRequestSent=ko.prototype.onServiceRequestSent;ko.prototype.onInput=ko.prototype.onInput;_.G([_.g(_.le),_.q("design:type",Object)],ko.prototype,"ironA11yKeysBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],ko.prototype,"suggestionsEndpoint",void 0);_.G([_.y(),_.q("design:type",Object)],ko.prototype,"suggestionsResponse",void 0);_.G([_.y(),_.q("design:type",Object)],ko.prototype,"activeMention",void 0);_.G([_.hG("#dropdown"),_.q("design:type",Object)],ko.prototype,"dropdown",void 0);_.G([_.hG("#iron-dropdown"),_.q("design:type",Object)],ko.prototype,"ironDropdown",void 0);
_.G([_.Gl("input"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],ko.prototype,"onInput",null);_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ko.prototype,"onServiceRequestSent",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ko.prototype,"onServiceRequestCompleted",null);
_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ko.prototype,"onServiceRequestError",null);_.G([_.Gl("yt-user-mention-suggestion-selected"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ko.prototype,"onUserMentionSuggestionSelected",null);
_.G([_.Gl("dom-change"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ko.prototype,"onDomChange",null);_.G([_.b0({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],ko);
_.e(ko,"yt-user-mention-autosuggest-input",function(){if(e72===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;r2n===void 0&&(r2n=document.createElement("template"));var M=r2n;A.call(U,M.content.cloneNode(!0),H.content.firstChild);e72=H}H=e72;return H},{mode:2});var vh=null;
_.MD({is:"ytd-commentbox",_template:function(){if(Cth!==void 0)return Cth;var H=document.createElement("template");_.E(H,'\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="EXPAND" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Cth=H},
behaviors:[_.gT_.YtHostElementBehavior,_.le,_.$y.YtActionHandlerBehavior,_.uK.YtComponentBehavior,_.gv.YtRendererstamperBehavior,_.SLh.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(H,U){return _.rH(H.entities,"aadcGuidelinesStateEntityPayload",U)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(H,U){return _.rH(H.entities,"commentboxStateEntity",U)},
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 _.Fn}},
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:_.S("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.S("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",_.lN(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(H){this.fire(H?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(H){this.set("submitButtonDisabled",void 0);this.clear();H&&this.computeIsEmojiButtonDisplayed_(H)&&(H=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&H.updateEmojiCategories()},
observePrefilledImage_:function(H,U,A){this.isValidPrefilledImage_(H,U,A)&&(this.prefilledAttachment_="image",this.prefilledImageData_=U,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(H,U){this.isValidPrefilledVideo_(H,U)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(H){H&&H.pollData&&H.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(H.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.$G();this.focus()},
detached:function(){document.removeEventListener("tap",_.lN(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(H){H=H.detail;H=H.isCustomEmoji?H.shortcuts[0]:H.emojiId;var U=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(U,H);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var H=_.TS();if(H){H=H.getBrowserRangeObject();for(var U=H.commonAncestorContainer;U;){if(U===this.getEditableTextArea_())return H;U=U.parentNode}}H=this.getEditableTextArea_();H=_.QB(H,H.childNodes.length);H.select();return H.getBrowserRangeObject()},
insertTextWithEmojis_:function(H,U,A){(U=this.emojiManager.createDocumentFragment(U,!0,!1,A===void 0?!0:A))&&U.childNodes.length!==0&&(H.collapsed||H.deleteContents(),A=U.lastChild,H.insertNode(U),_.xem(A).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var H=_.TS();if(H){var U=H.JSC$11653_getStartNode(),A=H.JSC$11653_getEndNode();if(dwh(U)&&dwh(A)){var M=H.JSC$11653_getStartOffset(),W;if(_.ed&&U.nodeType===Node.ELEMENT_NODE&&(W=_.Zpk(U)))_.QB(W,0).select();else{W=zn(U)?U:_.Kp(U,zn);var w=zn(A)?A:_.Kp(A,zn);if(W||w)if(H.isCollapsed()){if(U.nodeType===Node.TEXT_NODE){H=!0;M===U.length&&(H=!1);if(vh==="end"||vh==="right")H=!1;U=U.parentNode;H=[].concat(_.vI(U.parentNode.childNodes)).indexOf(U)+(H?0:1);_.QB(U.parentNode,
H).select()}}else W?W.previousSibling&&W.previousSibling.length>0?_.VB(A,H.JSC$11653_getEndOffset(),W.previousSibling,W.previousSibling.length-1).select():(U=document.createTextNode("\u200b"),W.parentNode.insertBefore(U,W),_.VB(A,H.JSC$11653_getEndOffset(),U,0).select()):w&&(w.nextSibling&&w.nextSibling.length>0?_.VB(U,H.JSC$11653_getStartOffset(),w.nextSibling,1).select():(A=document.createTextNode("\u200b"),w.parentNode.insertBefore(A,w.nextSibling),_.VB(U,H.JSC$11653_getStartOffset(),A,A.length).select()));
vh=null}}else vh=null}else vh=null},
leftKeyPressed_:function(){vh="left"},
rightKeyPressed_:function(){vh="right"},
endKeyPressed_:function(){vh="end"},
maybeDeleteChip_:function(){var H=KWN(!0);if(H){var U=_.TS(),A=U.JSC$11653_getStartNode();U=U.JSC$11653_getStartOffset();_.I$(A,U,H,H.childNodes.length).select()}},
maybeBackspaceChip_:function(){var H=KWN(!1);if(H){var U=_.TS(),A=U.JSC$11653_getStartNode();U=U.JSC$11653_getStartOffset();_.I$(A,U,H,0).select()}},
maybeBackspaceChipWordMode_:function(H){var U=_.TS();if(U.isCollapsed()){var A=U.JSC$11653_getStartNode();U=U.JSC$11653_getStartOffset();var M=oHF(A,U,!0);M&&(_.I$(A,U,M,0).select(),document.execCommand("delete"),H.preventDefault(),H.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(H){var U=_.TS();if(U.isCollapsed()){var A=U.JSC$11653_getStartNode();U=U.JSC$11653_getStartOffset();var M=oHF(A,U,!1);M&&(_.I$(A,U,M,M.childNodes.length).select(),document.execCommand("delete"),H.preventDefault(),H.stopImmediatePropagation())}},
onTap_:function(H){if(!H.defaultPrevented&&(H.currentTarget.tagName==="YTD-COMMENTBOX"&&zn(H.target)&&H.preventDefault(),this.isEmojiPickerDisplayed)){var U=this.$$("#emojis"),A=this.$$("#emoji-button"),M=this.getEditableTextArea_();if((H=H.path?H.path:H.composedPath&&H.composedPath())&&!H.includes(U)&&!H.includes(M)&&!H.includes(A))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(H,U,A){return H==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&U!==void 0&&U.encryptedBlobId!==null&&U.sourceExternalVideoId!==null&&A!==void 0&&A.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(H,U){return H==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!U&&!!U.videoRenderer&&!!U.videoRenderer.videoId},
isValidPrefilledAttachment_:function(H,U,A){return this.isValidPrefilledImage_(H,U,A)||this.isValidPrefilledVideo_(H,A)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.S("enable_multi_image_post_creation")){var H=this.$$("ytd-backstage-multi-image-select-renderer");H&&H.hasImages()&&H.cancel()}else(H=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&H.cancel();(H=this.$["poll-attachment"])&&this.hasPoll_&&H.clearPollOptions();(H=this.$["image-poll-attachment"])&&this.hasImagePoll_&&H.resetPollOptions();(H=this.$["quiz-attachment"])&&this.hasQuiz_&&H.resetQuizOptions();
(H=this.$["video-link-attachment"])&&this.hasVideo_&&H.cancel();(H=this.$["access-restrictions-selector"].firstElementChild)&&H.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 _.c4(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.c4(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(H,U){H=ur0(H,this.emojiManager,U).cloneNode(!0);for(U=H.firstChild;U;)if(U.nodeType!==1)U=U.nextSibling;else switch(U.tagName){case "BR":var A=_.OR();_.nl3(A,U);U=A.nextSibling;break;case "DIV":(A=U.lastChild)&&U.nextSibling&&_.JJ(_.OR(),A);U.previousSibling&&(U.previousSibling.nodeType===1||U.previousSibling.nodeType===3&&!U.previousSibling.textContent.endsWith("\n"))&&_.ft(_.OR(),U);A&&A.nodeName==="BR"&&_.U5(A);A=U;U.hasChildNodes()?(U=U.firstChild,
_.NGz(A)):(U=U.nextSibling,_.U5(A));break;default:U=U.nextSibling}return FWF(H)},
onAddImageError_:function(H){H.stopPropagation();this.errorMessage_=_.Nh(H.detail)},
setTextAreaValue_:function(H){H||(H="");var U=this.getEditableFormattedString_();U.text="";this.getEditableTextArea_().innerText="";typeof H==="string"&&(H={runs:[{text:H}]});U.text=H},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();vh=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var H=this.getEditableTextArea_();H&&(_.QB(H,H.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.gD("HTML_DIR")==="rtl"){var H=this.getEditableTextArea_(),U=this.getTextAreaValue()!==""?"auto":"rtl";H.setAttribute("dir",U)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var H;return rf7((H=this.$["quiz-attachment"])==null?void 0:H.getExplanationText())||rf7(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var H=null;if(this.isEmojiButtonDisplayed){var U=this.getInputRange_();U&&(H=this.emojiInput.retrieveTextBeforeRange(U))}this.insertText_(H,!0);this.updateCharCount_();this.setSubmitButton_();H=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=H.scrollHeight>H.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var H=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:H})},
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(H){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(H)},
onPasteEmoji_:function(H){H.preventDefault();H.stopImmediatePropagation();H=H.clipboardData.getData("text/plain");this.insertText_(H,!1,!1)},
insertText_:function(H,U,A){U=U===void 0?!1:U;A=A===void 0?!0:A;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&H){var M=this.getInputRange_().cloneRange();this.emojiManager&&M&&(U&&this.emojiInput.offsetStartOfRangeBy(M,H.length),this.insertTextWithEmojis_(M,H,A),OSM(this.getEditableTextArea_().lastChild)||(M=this.getInputRange_().cloneRange()),M&&(this.emojiInput.updateSuggestions(M,H),this.updateSuggestionOffset_(M)))}},
setSubmitButton_:function(){if(this.data){var H=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",U=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(H||U){var A=this.getTextAreaValue().trim();U=A===this.previousText_;A=!A||this.aboveCharLimit_;H&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(A=this.aboveCharLimit_);this.submitButtonDisabled=
U||A||!this.getTextLength();H&&_.S("enable_post_scheduling")&&(this.submitButtonDisabled=U&&!this.scheduledPublishTimeSec_||A)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Sp,computeCreationBoxClass_:function(H){return H?"focused":"not-focused"},
computeFooterMessageClass_:function(H,U){return U?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(H,U){return U?U:H},
computeFooterMessageHidden_:function(H,U){return!U&&!H},
computePlaceholderText_:function(H,U,A){return(A==="video"||A==="image")&&(H==null?0:H.prefilledPlaceholderText)?H==null?void 0:H.prefilledPlaceholderText:U==="poll"||U==="image-poll"?H==null?void 0:H.pollPostPlaceholderText:U==="quiz"?H==null?void 0:H.quizPostPlaceholderText:U==="image"?H==null?void 0:H.imagePostPlaceholderText:H==null?void 0:H.placeholderText},
computeHideAttachmentButtons_:function(H,U,A,M){return H===void 0?!1:M&&this.getSimpleString(M)===this.getSimpleString(H.rateLimitErrorMessage)?!0:U!=="none"||A!=="none"||!H.videoLinkButton&&!H.pollButton&&!H.imagePollButton&&!H.quizButton&&!H.imageButton},
computeHideDismissableAttachment_:function(H){return H!=="image"&&H!=="video"},
computeHasVideo_:function(H){return H==="video"},
computeHasImage_:function(H){return H==="image"},
computeHasPoll_:function(H){return H==="poll"},
computeHasImagePoll_:function(H){return H==="image-poll"},
computeHasQuiz_:function(H){return H==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(H){return H&&H.backstageAttachment?H.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!H.backstageAttachment.quizRenderer&&!H.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(H){if(this.isValidPrefilledAttachment_(H.purpose,H.prefilledImageData,H.backstageAttachment))return H.backstageAttachment},
computeEditAttachment_:function(H){if(this.computePrefilledContent_(H)===void 0)return H.backstageAttachment},
computeAuthorThumbnailDimension_:function(H,U){return H&&!U?24:40},
computeImageUploadEndpoint_:function(H){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",H)},
computeRateLimitErrorCommands_:function(H){var U,A;return H==null?void 0:(U=H.advancedTierFeatures)==null?void 0:(A=U.rateLimit)==null?void 0:A.rateLimitCommands},
computeIsBackstageComment_:function(H){return!(!H||H!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(H){return this.get("submitButton.buttonRenderer.serviceEndpoint",H)||this.get("replyButton.buttonRenderer.serviceEndpoint",H)||this.get("postButton.buttonRenderer.serviceEndpoint",H)},
computeSubmitButtonOverride:function(){if(_.S("web_modern_buttons")){var H,U;return{segmentedPosition:this.dropdownSchedulePanel_||!((H=this.data)==null?0:(U=H.postOptionsMenu)==null?0:U.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.S("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(H,U){H=this.get("submitButton.buttonRenderer",H)||this.get("replyButton.buttonRenderer",H)||this.get("postButton.buttonRenderer",H);U&&(H=U);H&&(H=Object.assign({},H),H.serviceEndpoint=void 0,H.isDisabled=this.submitButtonDisabled);return H},
computeHasExternalLinksAccess_:function(H){if(_.S("enable_rfa_external_links")){var U,A,M;return(M=H==null?void 0:(U=H.advancedTierFeatures)==null?void 0:(A=U.externalLinks)==null?void 0:A.allowExternalLinks)!=null?M:!0}return!0},
computeIsEmojiButtonDisplayed_:function(H){return H.emojiButton&&H.emojiPicker&&H.emojiPicker.emojiPickerRenderer&&H.emojiPicker.emojiPickerRenderer.categories?H.emojiPicker.emojiPickerRenderer.categories.find(function(U){return U.emojiPickerCategoryRenderer?U.emojiPickerCategoryRenderer.emojiIds&&U.emojiPickerCategoryRenderer.emojiIds.length>0:U.emojiPickerUpsellCategoryRenderer?U.emojiPickerUpsellCategoryRenderer.emojis&&U.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(H){return H.charLimit?H.charLimit:null},
computeDropdownSchedulingPanel_:function(H,U){if(H==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&U)return U},
computeInlineSchedulingPanel_:function(H,U){if(H==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&U)return U},
computeHideAuthorThumbnail_:function(H,U){return H||this.computeUseIdentityChip_(U)},
computeHideIdentityChipRenderer_:function(H,U){return H||!this.computeUseIdentityChip_(U)},
computeUseIdentityChip_:function(H){return!!H&&!!H.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(H){var U,A,M,W;(H==null?0:(U=H.detail)==null?0:(A=U.endpoint)==null?0:A.ypcGetOffersEndpoint)||(H==null?0:(M=H.detail)==null?0:(W=M.endpoint)==null?0:W.ypcOffersEndpoint)?(H.stopPropagation(),_.rs(this,[H.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",H)&&(H.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(H){this.addedAttachment="video";this.selectedVideoId_=H.detail.videoId},
commentboxStateEntityChanged_:function(H){var U=this;(H==null?void 0:H.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(H==null?void 0:H.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){U.focus()})},
onYtServiceRequestSent_:function(H,U){if(U.actions)for(H=_.b(U.actions),U=H.next();!U.done;U=H.next())U.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(H){this.isLoading=!1;var U=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",H),A,M,W,w=H==null?void 0:(A=H.detail)==null?void 0:(M=A.data)==null?void 0:(W=M.actionResult)==null?void 0:W.commentboxStateEntityKey;if(U)this.errorMessage_=U;else if(w){var d;this.dismissData_=H==null?void 0:(d=H.detail)==null?void 0:d.data;this.commentboxStateKey_=w}else{this.clear();var O;this.fire("yt-commentbox-dismiss",H==null?void 0:(O=H.detail)==
null?void 0:O.data)}},
onYtServiceRequestError_:function(H){H.stopPropagation();this.isLoading=!1;var U,A;if(((U=this.data)==null?void 0:U.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((A=this.data)==null?void 0:A.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(U=this.get("detail.error.args",H)||[],U.length>1&&U[1].message){this.handlePostsServiceRequestError_(U[1].message);return}(H=this.get("detail.error.message",H))?this.errorMessage_=this.data.errorMessage||_.Nh(H):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(H){if(_.S("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var U=_.b(this.rateLimitErrorCommands),A=U.next();!A.done;A=U.next())if(A=A.value,A.errorLabel===H){_.l0(A.command,this.hostElement);return}this.errorMessage_=_.Nh(H)},
submitIfNotBackstagePost_:function(H){if(!this.isBackstagePost)this.onSubmit_(H)},
onSubmit_:function(H){var U=this,A,M,W,w,d,O,f,J,F,P,n,N,L,m,z;return _.u(function(c){switch(c.nextAddress){case 1:H.stopPropagation();if(!U.serviceEndpoint||!U.isValidInput_())return c.return();if(U.shouldShowPostAadcNotice_())return U.showPostAadcNotice_(),c.return();if(U.shouldShowCommentAadcNotice_())return U.showCommentAadcNotice_(),c.return();if(!(U.$$("ytd-backstage-multi-image-select-renderer")&&U.hasImage_&&_.S("enable_multi_image_post_creation"))){c.jumpTo(2);break}A=U.$$("ytd-backstage-multi-image-select-renderer");
return c.yield(A.getAllUploadStatuses(),3);case 3:M=c.yieldResult;if(!M)return c.return();W=_.b(M);for(w=W.next();!w.done;w=W.next())if(d=w.value,d.encryptedBlobId===void 0)return U.isLoading=!1,f=O=void 0,U.errorMessage_=(f=(O=U.imageUploadEndpoint_)==null?void 0:O.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?f:null,c.return();return c.return(U.submitForm_(void 0,void 0,void 0,void 0,A.images,U.taggedVideoId_));case 2:if(!U.hasImagePoll_||!U.$["image-poll-attachment"]){c.jumpTo(4);
break}return c.yield(U.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:J=c.yieldResult;if(!J)return c.return();F=_.b(J);for(P=F.next();!P.done;P=F.next())if(n=P.value,!n.encryptedBlobId)return U.isLoading=!1,N=void 0,U.errorMessage_=(N=U.data.errorMessage)!=null?N:null,c.return();case 4:m=(L=U.$$("ytd-backstage-image-select-renderer"))&&L.uploadPromise(),z=U.getSharedPostId_(),m?m.then(function(){U.submitForm_.apply(U,_.vI(_.QY.apply(0,arguments)))}).catch(function(C){U.isLoading=!1;
U.errorMessage_=_.Nh(C.message)}):U.selectedVideoId_?U.submitForm_(void 0,U.selectedVideoId_):U.prefilledAttachment_==="image"?U.submitForm_(U.prefilledImageData_.encryptedBlobId,void 0,void 0,U.prefilledImageData_.sourceExternalVideoId,void 0,U.taggedVideoId_):U.prefilledAttachment_==="video"?U.submitForm_(void 0,U.data.backstageAttachment.videoRenderer.videoId):z?U.submitForm_(void 0,void 0,z):U.taggedVideoId_!==void 0?U.submitForm_(void 0,void 0,void 0,void 0,void 0,U.taggedVideoId_):U.submitForm_(),
_.DO(c)}})},
openSchedulingPanel:function(H){H&&H.scheduleButton&&H.scheduleButton.buttonRenderer&&(this.scheduleButton_=H.scheduleButton.buttonRenderer);H&&H.dateTimePicker&&this.set("data.schedulingDateTimePicker",H.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(H){H.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(H){H.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(H){H.stopPropagation();H.detail.alertMessage&&(this.alertMessage_=H.detail.alertMessage)},
onImageSelected_:function(H){H.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(H){H.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(H){H.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(H.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(H){H.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(H){var U=this.$["video-link-attachment"];U&&U.onLaunchVideoPicker(H)},
onAttachmentDismiss_:function(H){H.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"&&_.S("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.S("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 H;if(this.addedAttachment==="image-poll"&&((H=this.$["image-poll-attachment"])==null||!H.isValid()))return!1;var U;if(this.addedAttachment==="quiz"&&((U=this.$["quiz-attachment"])==null||!U.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;H=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(H=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")H=!0;return H||!!this.getTextAreaValue().trim()},
submitForm_:function(H,U,A,M,W,w){var d=this.getTextAreaValue().trim(),O={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&d===this.previousText_&&(d=void 0);d!==void 0&&(O.comment_text=d);this.isLoading=!0;w!=void 0&&(O.tagged_video_id=w);H?(O.image_blob_id=H,this.imagePreviewCoordinates_&&(O.image_preview_coordinates=this.imagePreviewCoordinates_)):U?O.attached_video_id=U:A?O.shared_post_id=A:W&&W.length>0&&(O.images_data=W.map(function(f){return{encryptedBlobId:f.encryptedBlobId,
previewCoordinates:f.previewCoordinates}}));
M&&(O.source_video_id=M);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(O.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(O.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(O.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(O.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.S("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(O.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.rs(this,[this.serviceEndpoint,O])},
onIsInputFocusChanged_:function(H,U){H?this.fire("yt-autonav-pause-focus"):U!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(H){var U=this.getEditableTextArea_();[].concat(_.vI(H.dataTransfer.items)).forEach(function(A){A.kind==="string"&&A.type.match("^text/plain")&&A.getAsString(function(M){U.appendChild(document.createTextNode(M))})});
H.preventDefault()},
preventDefault_:function(H){H.preventDefault()},
onSuggestionInsert_:function(H){this.insertTextWithEmojis_(H.detail.range,H.detail.text)},
onEmojiSuggestionClick_:function(H){this.emojiInput.insertSuggestion(H.detail)},
computeSubmitButtonClass_:function(H,U){return!U||H?"":"with-options"},
updateSuggestionOffset_:function(H){if(this.emojiInput&&_.c4(this.emojiInput).querySelector("#dropdown")){var U=this.getEditableTextArea_().getBoundingClientRect().bottom,A=H.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(U-A)+5;U=this.getEditableTextArea_().getBoundingClientRect().left;H=H.getBoundingClientRect().left-U;_.c4(this.emojiInput).querySelector("#dropdown").style.marginLeft=H+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(H){if(_.S("enable_post_scheduling")&&this.data&&this.data.purpose){H=H.detail;if(Math.floor(Date.now()/1E3)>=H)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var U=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(U)||U!==H?this.scheduledPublishTimeSec_=H:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=H;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var H=["image-button","image-poll-button","poll-button","quiz-button"];_.S("auto_convert_posts_video_tag")||H.push("video-link-button");return H},
getButtonRenderer:function(H,U){if(H)switch(U){case "video-link-button":var A;return((A=H.videoLinkButton)==null?void 0:A.buttonRenderer)||void 0;case "image-button":var M;return((M=H.imageButton)==null?void 0:M.buttonRenderer)||void 0;case "poll-button":var W;return((W=H.pollButton)==null?void 0:W.buttonRenderer)||void 0;case "image-poll-button":var w;return((w=H.imagePollButton)==null?void 0:w.buttonRenderer)||void 0;case "quiz-button":var d;return((d=H.quizButton)==null?void 0:d.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var H;return(H=this.data)==null||!H.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var H,U;return!((H=this.data)==null||!H.openAadcDialog)&&!((U=this.aadcGuidelinesState_)==null||!U.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.gD("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var H;((H=this.data)==null?0:H.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Sx("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(H){H.clickTrackingParams&&_.k$().clickCommand(H);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.yr(this,"yt-close-popup-action")},
onHideIdentityChip:function(H){var U;this.set("data.placeholderText",(U=H.hideIdentityChipAction)==null?void 0:U.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var TD=function(){var H=_.B.apply(this,arguments)||this;H.isOpen=!1;H.modern=_.S("web_modern_buttons");H.roundedContainer=!0;H.dropdownButtonOverride=_.S("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;H.inPopupContainer=!1;H.isCommentboxLoading=!1;var U=["image-button","image-poll-button","poll-button"];_.S("enable_quiz_creation")&&U.push("quiz-button");_.S("auto_convert_posts_video_tag")||U.push("video-link-button");H.attachmentButtonIds=U;H.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 H};
_.R(TD,_.B);_.X=TD.prototype;_.X.computeButtonOverride=function(){var H;return((H=this.data)==null?0:H.postOptionsMenu)&&_.S("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.X.configureRendererStamper=function(){var H={"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:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.S("auto_convert_posts_video_tag")||(H["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return H};
_.X.ready=function(){var H=this,U=_.c4(this.hostElement).querySelector("#placeholder-area"),A=function(M){H.onOpen(M)};
U.addEventListener("tap",A);U.addEventListener("keypress",A)};
_.X.showButtonEduTooltip=function(){var H,U,A,M,W,w,d;if(_.S("enable_quiz_creation")&&((H=this.data)==null?0:(U=H.quizButton)==null?0:(A=U.buttonRenderer)==null?0:(M=A.hint)==null?0:(W=M.hintRenderer)==null?0:(w=W.content)==null?0:(d=w.bubbleHintRenderer)==null?0:d.text)&&(_.rI.getInstance(),H=eZ(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(H==null?void 0:
H.length)>0)){this.ytComponentBehavior.resolveCommand(H[0],{form:{element:this.quizButton}});return}var O;if((O=this.data)==null?0:O.imagePollButtonTooltip)if(_.rI.getInstance(),O=eZ(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(O==null?void 0:O.length)>0){this.ytComponentBehavior.resolveCommand(O[0],{form:{element:this.imagePollButton}});return}var f;_.S("enable_multi_image_post_creation")&&
((f=this.data)==null?0:f.multiImageButtonTooltip)&&(_.rI.getInstance(),f=eZ(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(f==null?void 0:f.length)>0&&this.ytComponentBehavior.resolveCommand(f[0],{form:{element:this.imageButton}}))};
_.X.onCreatePollAction=function(H){_.p(H,xAH)&&(this.JSC$16254_commentbox.addedAttachment="poll",this.openDialog())};
_.X.onAddVideoLinkAction=function(H){if(_.p(H,EGy))this.JSC$16254_commentbox.onAddVideoLink(H)};
_.X.onShowSchedulingPanelCommand=function(H){(H=_.p(H,H3y))&&this.openSchedulingPanel(H)};
_.X.onCreateImagePollCommand=function(H){_.p(H,Mew)&&(this.JSC$16254_commentbox.openImagePollComponent(),this.openDialog())};
_.X.onCreateQuizCommand=function(H){_.p(H,W1H)&&(this.JSC$16254_commentbox.openQuizComponent(),this.openDialog())};
_.X.openSchedulingPanel=function(H){_.S("enable_post_scheduling")&&(this.openDialog(),this.JSC$16254_commentbox.openSchedulingPanel(H))};
_.X.onCreateCommentAction=function(H){this.get("createCommentAction.contents",H)&&(this.JSC$16254_commentbox.clear(),this.closeDialog())};
_.X.onOpen=function(H){H instanceof KeyboardEvent&&H.type==="keypress"&&H.keyCode!==13&&H.keyCode!==32||(this.data.prepareAccountEndpoint?_.cg(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.X.onYtCommentboxDismiss=function(){this.closeDialog()};
_.X.onYtCommentboxLoadingStart=function(H){H.stopPropagation();this.isCommentboxLoading=!0};
_.X.onYtCommentboxLoadingEnd=function(H){H.stopPropagation();this.isCommentboxLoading=!1};
_.X.onYtVideoLinkButtonCancel=function(H){H.stopPropagation();this.onOpen(H)};
_.X.onYtVideoLinkSelected=function(H){H.stopPropagation();this.onOpen(H)};
_.X.onIronSelect=function(H){H.stopPropagation();H.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=H.detail.item.value&&(this.accessRestriction?(this.accessRestriction=H.detail.item.value,this.onOpen(H)):this.accessRestriction=H.detail.item.value)};
_.X.onYtNavigate=function(H){this.get("detail.endpoint.backstageImageUploadEndpoint",H)&&(this.JSC$16254_commentbox.addedAttachment="image",this.JSC$16254_commentbox.submitButtonDisabled=!0,this.onOpen(H))};
_.X.onRequestSent=function(H){for(var U=_.b(H.detail),A=U.next();!A.done;A=U.next())_.p(A.value,Jhm)&&(this.JSC$16254_commentbox.addedAttachment="image",this.JSC$16254_commentbox.submitButtonDisabled=!0,this.onOpen(H))};
_.X.openDialog=function(){var H;(H=this.data)!=null&&H.isIneligibleForCommunityPagePostCreation||(this.JSC$16254_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16254_commentbox.focus())};
_.X.onPopupClosed=function(){_.rI.getInstance()};
_.X.computeCreationDisabled=function(H){return!!H};
_.X.computeIsCreationDialog=function(H){return!!H&&H==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.X.computeDisabledPostButton=function(H){if(!H)return null;H.isDisabled=!0;return H};
_.X.computeIsCreationDialogWithHeader=function(H){return!this.inPopupContainer&&!!H&&!!H.authorText&&H.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.X.computeIsHeaderHidden=function(H,U){return!H||U};
_.X.computeDropdownRendererClasses=function(H){return H?["text-secondary-style"]:[]};
_.X.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var H=_.c4(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;H&&H.reset()};
TD.prototype.onPopupClosed=TD.prototype.onPopupClosed;TD.prototype.onRequestSent=TD.prototype.onRequestSent;TD.prototype.onYtNavigate=TD.prototype.onYtNavigate;TD.prototype.onIronSelect=TD.prototype.onIronSelect;TD.prototype.onYtVideoLinkSelected=TD.prototype.onYtVideoLinkSelected;TD.prototype.onYtVideoLinkButtonCancel=TD.prototype.onYtVideoLinkButtonCancel;TD.prototype.onYtCommentboxLoadingEnd=TD.prototype.onYtCommentboxLoadingEnd;TD.prototype.onYtCommentboxLoadingStart=TD.prototype.onYtCommentboxLoadingStart;
TD.prototype.onYtCommentboxDismiss=TD.prototype.onYtCommentboxDismiss;TD.prototype.showButtonEduTooltip=TD.prototype.showButtonEduTooltip;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],TD.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],TD.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],TD.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],TD.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],TD.prototype,"isOpen",void 0);_.G([_.y({computed:"computeButtonOverride(data)"}),_.q("design:type",Object)],TD.prototype,"buttonOverride",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],TD.prototype,"modern",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],TD.prototype,"roundedContainer",void 0);_.G([_.y(),_.q("design:type",Object)],TD.prototype,"dropdownButtonOverride",void 0);_.G([_.y({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.q("design:type",Boolean)],TD.prototype,"creationDisabled",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],TD.prototype,"enableCreationBox",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.q("design:type",Boolean)],TD.prototype,"isCreationDialog",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],TD.prototype,"inPopupContainer",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.q("design:type",Boolean)],TD.prototype,"isCreationDialogWithHeader",void 0);_.G([_.y(),_.q("design:type",Object)],TD.prototype,"accessRestriction",void 0);
_.G([_.y({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.q("design:type",Array)],TD.prototype,"dropdownRendererClasses",void 0);_.G([_.y(),_.q("design:type",Object)],TD.prototype,"isCommentboxLoading",void 0);_.G([_.y(),_.q("design:type",Array)],TD.prototype,"attachmentButtonIds",void 0);_.G([_.hG("#image-button"),_.q("design:type",HTMLElement)],TD.prototype,"imageButton",void 0);
_.G([_.hG("#image-poll-button"),_.q("design:type",HTMLElement)],TD.prototype,"imagePollButton",void 0);_.G([_.hG("#quiz-button"),_.q("design:type",HTMLElement)],TD.prototype,"quizButton",void 0);_.G([_.hG("#commentbox"),_.q("design:type",Object)],TD.prototype,"JSC$16254_commentbox",void 0);_.G([_.Ya("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TD.prototype,"showButtonEduTooltip",null);
_.G([_.Gl("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],TD.prototype,"onYtCommentboxDismiss",null);_.G([_.Gl("yt-commentbox-loading-start"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],TD.prototype,"onYtCommentboxLoadingStart",null);
_.G([_.Gl("yt-commentbox-loading-end"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],TD.prototype,"onYtCommentboxLoadingEnd",null);_.G([_.Gl("yt-video-link-button-cancel"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],TD.prototype,"onYtVideoLinkButtonCancel",null);
_.G([_.Gl("yt-video-link-selected"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],TD.prototype,"onYtVideoLinkSelected",null);_.G([_.Gl("iron-select"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],TD.prototype,"onIronSelect",null);_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],TD.prototype,"onYtNavigate",null);
_.G([_.Gl("yt-service-request-sent-button-renderer"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],TD.prototype,"onRequestSent",null);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TD.prototype,"onPopupClosed",null);_.G([_.dX({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],TD);
_.e(TD,"ytd-backstage-post-dialog-renderer",function(){if(uZ2!==void 0)return uZ2;var H=document.createElement("template");_.E(H,'\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"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\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>\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]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" 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 class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return uZ2=H},{mode:1});var YJ2;var qJK;var ji=function(){return _.B.apply(this,arguments)||this};
_.R(ji,_.B);_.X=ji.prototype;_.X.computeHeartButtonStyle=function(H){return(H==null?0:H.styleType)?H.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.X.onYtButtonTap=function(){if(this.data.isEnabled){var H=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(H=this.getEndpoint(H))&&_.lx().resolve(_.YV).resolveCommand(H,{form:{element:this.hostElement}})}else(H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(H)};
_.X.toggle=function(H){this.set("data.isHearted",H!==void 0?H:!this.data.isHearted)};
_.X.getEndpoint=function(H){var U,A=(U=this.data)==null?void 0:U.heartEndpoint,M;U=(M=this.data)==null?void 0:M.unheartEndpoint;if(A&&U)return H?U:A};
_.X.computeButtonAccessibility=function(H,U){var A,M,W=H==null?void 0:(A=H.heartedAccessibility)==null?void 0:(M=A.accessibilityData)==null?void 0:M.label,w,d;H=H==null?void 0:(w=H.unheartedAccessibility)==null?void 0:(d=w.accessibilityData)==null?void 0:d.label;return U?W:H};
_.D5.Object.defineProperties(ji.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 H;return _.S("kevlar_system_icons")&&!((H=this.data)==null||!H.isHearted)}}});
ji.prototype.onYtButtonTap=ji.prototype.onYtButtonTap;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.m1),_.q("design:type",Object)],ji.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ji.prototype,"data",void 0);_.G([_.a("data.isHearted"),_.q("design:type",Object),_.q("design:paramtypes",[])],ji.prototype,"heartTooltip",null);
_.G([_.a("data.isHearted"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ji.prototype,"iconFilled",null);_.G([_.y({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.q("design:type",String)],ji.prototype,"buttonAccessibility",void 0);_.G([_.y({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.q("design:type",String)],ji.prototype,"heartButtonStyle",void 0);
_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ji.prototype,"onYtButtonTap",null);_.G([_.dX({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],ji);
_.e(ji,"ytd-creator-heart-renderer",function(){if(qJK!==void 0)return qJK;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return qJK=H},{mode:1});var IZ=function(){var H=_.B.apply(this,arguments)||this;H.hasCreatorReply=!1;H.buttonOverrides={size:"S",iconPosition:"icon-only"};H.replyButtonOverrides={size:"S",type:"text"};H.forceIconButton=!_.S("web_modern_buttons");H.modern=_.S("web_modern_buttons");H.buttonTooltipPosition="bottom";H.systemIcons=_.S("kevlar_system_icons");H.replyDialog=null;return H};
_.R(IZ,_.B);_.X=IZ.prototype;
_.X.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]]"}}}}}};
_.X.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.X.dataChange=function(){this.replyDialog&&_.c4(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var H,U,A;this.isLiked=this.systemIcons&&!!((H=this.data)==null?0:(U=H.likeButton)==null?0:(A=U.toggleButtonRenderer)==null?0:A.isToggled)};
_.X.computeShowVoteCountBeginning=function(H,U){return H===void 0||U===void 0?!0:H.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!U&&this.ytRendererBehavior.getSimpleString(U)!=="0"};
_.X.computeShowVoteCountEnd=function(H,U){return H===void 0||U===void 0?!0:H.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!U&&this.ytRendererBehavior.getSimpleString(U)!=="0"};
_.X.computeShowCommentCount=function(H,U){return H===void 0||U===void 0?!0:H.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!U&&this.ytRendererBehavior.getSimpleString(U)!=="0"};
_.X.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.X.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.X.showReplyDialog=function(H){H&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.c4(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=H,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.X.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.X.onRequestSent=function(H){H=_.b(H.detail);for(var U=H.next();!U.done;U=H.next())(U=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",U.value))&&this.showReplyDialog(U)};
_.X.onYtNavigate=function(H){var U,A;(H=(U=_.p(H.detail.endpoint,_.oyB))==null?void 0:(A=U.dialog)==null?void 0:A.commentReplyDialogRenderer)&&this.showReplyDialog(H)};
_.X.onYtServiceRequestSent=function(H,U){H.stopPropagation();if(U.actions)for(H=0;H<U.actions.length;H++){var A=_.p(U.actions[H],Bgm);A&&this.handleUpdateCommentVoteAction(A)}};
_.X.handleUpdateCommentVoteAction=function(H){this.voteCount=H.voteCount||_.Nh("0");H.voteStatus==="LIKE"?this.JSC$16266_ytdDislikeToggleButtonRenderer.toggle(!1):H.voteStatus==="DISLIKE"?this.JSC$16266_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16266_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16266_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.X.computeReplyButtonHidden=function(H){return H};
_.X.computeReplyButtonBeginning=function(H){return(H==null?0:H.replyButton)&&H.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?H.replyButton:void 0};
_.X.computeReplyButtonEnd=function(H){return(H==null?0:H.replyButton)&&H.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?H.replyButton:void 0};
_.X.computeActionButtonStyle=function(H){return(H==null?0:H.style)?H.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.X.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.X.onYtToggleButton=function(H){var U,A;this.isLiked=this.systemIcons&&!!((U=H.detail)==null?0:(A=U.actions)==null?0:A.like)};
IZ.prototype.onYtToggleButton=IZ.prototype.onYtToggleButton;IZ.prototype.onButtonTooltipPositionChanged=IZ.prototype.onButtonTooltipPositionChanged;IZ.prototype.onYtServiceRequestSent=IZ.prototype.onYtServiceRequestSent;IZ.prototype.onYtNavigate=IZ.prototype.onYtNavigate;IZ.prototype.onRequestSent=IZ.prototype.onRequestSent;IZ.prototype.onYtCommentboxDismiss=IZ.prototype.onYtCommentboxDismiss;IZ.prototype.dataChange=IZ.prototype.dataChange;
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],IZ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],IZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],IZ.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],IZ.prototype,"voteCount",void 0);_.G([_.y(),_.q("design:type",Object)],IZ.prototype,"commentCount",void 0);_.G([_.y(),_.q("design:type",Object)],IZ.prototype,"replyThumbnail",void 0);
_.G([_.y(),_.q("design:type",Object)],IZ.prototype,"hasCreatorReply",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],IZ.prototype,"enableCreationBox",void 0);_.G([_.y({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.q("design:type",String)],IZ.prototype,"actionButtonsStyle",void 0);_.G([_.y({computed:"computeReplyButtonBeginning(data)"}),_.q("design:type",Object)],IZ.prototype,"replyButtonBeginning",void 0);
_.G([_.y({computed:"computeReplyButtonEnd(data)"}),_.q("design:type",Object)],IZ.prototype,"replyButtonEnd",void 0);_.G([_.y(),_.q("design:type",Object)],IZ.prototype,"buttonOverrides",void 0);_.G([_.y(),_.q("design:type",Object)],IZ.prototype,"replyButtonOverrides",void 0);_.G([_.y(),_.q("design:type",Object)],IZ.prototype,"forceIconButton",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],IZ.prototype,"useCommentIcon",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IZ.prototype,"modern",void 0);_.G([_.y(),_.q("design:type",Object)],IZ.prototype,"buttonTooltipPosition",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IZ.prototype,"systemIcons",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],IZ.prototype,"isLiked",void 0);_.G([_.hG("ytd-button-renderer"),_.q("design:type",Object)],IZ.prototype,"ytdReplyButtonRenderer",void 0);
_.G([_.hG("#like-button"),_.q("design:type",Object)],IZ.prototype,"JSC$16266_ytdLikeToggleButtonRenderer",void 0);_.G([_.hG("#dislike-button"),_.q("design:type",Object)],IZ.prototype,"JSC$16266_ytdDislikeToggleButtonRenderer",void 0);_.G([_.hG("#reply-dialog"),_.q("design:type",HTMLElement)],IZ.prototype,"replyDialogElement",void 0);_.G([_.hG("#reply-button"),_.q("design:type",HTMLElement)],IZ.prototype,"replyButtonElement",void 0);
_.G([_.hG("#reply-button-end"),_.q("design:type",HTMLElement)],IZ.prototype,"replyButtonEndElement",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IZ.prototype,"dataChange",null);_.G([_.Gl("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],IZ.prototype,"onYtCommentboxDismiss",null);
_.G([_.Gl("yt-service-request-sent-button-renderer"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],IZ.prototype,"onRequestSent",null);_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],IZ.prototype,"onYtNavigate",null);
_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],IZ.prototype,"onYtServiceRequestSent",null);_.G([_.Ya("buttonTooltipPosition"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IZ.prototype,"onButtonTooltipPositionChanged",null);
_.G([_.Gl("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],IZ.prototype,"onYtToggleButton",null);_.G([_.dX({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],IZ);
_.e(IZ,"ytd-comment-action-buttons-renderer",function(){if(YJ2!==void 0)return YJ2;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return YJ2=H},{mode:1});var h7K;var Qv=function(){return _.B.apply(this,arguments)||this};
_.R(Qv,_.B);Qv.prototype.focus=function(){_.c4(this.hostElement).querySelector("#commentbox").focus()};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Qv.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Qv.prototype,"zeroStepChannelCreationRenderer",void 0);_.G([_.dX({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Qv);
_.e(Qv,"ytd-comment-dialog-renderer",function(){if(h7K!==void 0)return h7K;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return h7K=H},{mode:1});var kdw;var Vv=function(){var H=_.B.apply(this,arguments)||this;H.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.S("enable_web_delhi_icons")};H.replyButtonOverrides={size:"S",type:"text"};return H};
_.R(Vv,_.B);_.X=Vv.prototype;_.X.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.X.detached=function(){this.replyBox&&this.replyBox.remove()};
_.X.showReplyDialog=function(H){if(H){var U=this.replyBox;U||(U=document.createElement("ytd-comment-reply-dialog-renderer"),U.id="replybox",_.c4(this.replyDialogDiv).appendChild(U));U.data=H;this.replyDialogDiv.hidden=!1;U.openDialog()}};
_.X.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.X.handleReplyButtonClick=function(){if(this.isSuperfanOnlyCommentsEligibleUser){var H,U=_.p((H=this.toolbarSurface)==null?void 0:H.superfanOnlySnackbarCommand,_.X1);U&&_.cg(this.hostElement,"yt-show-superfan-only-snackbar",{command:U})}else this.isSubsOnlyCommentsEligibleUser&&(H=_.p((U=this.toolbarSurface)==null?void 0:U.subscribersOnlyDisclaimerSnackbarCommand,_.X1))&&_.cg(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:H})};
_.X.onYtServiceRequestSent=function(H,U){H.stopPropagation();if(U.actions)for(var A=0;A<U.actions.length;A++){var M=_.p(U.actions[A],Bgm);M?this.handleUpdateCommentVoteAction(M):H.target===this.heartButton&&this.toggleHeartState()}};
_.X.handleUpdateCommentVoteAction=function(H){var U;(U=this.toolbarState)!=null&&U.key&&this.ytdReduxBehavior.dispatch(_.Wl("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:H.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":H.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.X.toggleHeartState=function(){var H;(H=this.toolbarState)!=null&&H.key&&this.ytdReduxBehavior.dispatch(_.Wl("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.D5.Object.defineProperties(Vv.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return(((H=this.toolbarState)==null?void 0:H.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(U=this.toolbarData)==null?void 0:U.likeCountLiked:(A=this.toolbarData)==null?void 0:A.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.toolbarSurface)==null?void 0:H.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.toolbarSurface)==null?void 0:H.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.toolbarSurface)==null?void 0:H.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
isSuperfanOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.toolbarSurface)==null?void 0:H.superfanOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.toolbarSurface)==null?void 0:H.prepareAccountCommand)!==void 0&&!_.S("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var H,U=_.p((H=this.toolbarSurface)==null?void 0:H.prepareAccountCommand,_.X1),A,M,W,w,d,O,f,J,F;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((A=this.toolbarSharedData)==null||!A.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((M=this.toolbarState)==null?void 0:M.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:U!=null?U:_.p((W=this.toolbarSurface)==null?void 0:W.likeCommand,_.X1),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:U!=null?U:_.p((w=this.toolbarSurface)==null?void 0:w.unlikeCommand,_.X1),defaultCommand:this.isVisiblyDisabled?_.p((d=this.toolbarSurface)==null?void 0:d.commentDisabledActionCommand,_.X1):void 0,defaultTooltip:(O=this.toolbarData)==null?void 0:O.likeInactiveTooltip,toggledTooltip:(f=this.toolbarData)==null?void 0:f.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(J=this.toolbarData)==null?void 0:J.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(F=this.toolbarSharedData)==null?void 0:F.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var H,U=_.p((H=this.toolbarSurface)==null?void 0:H.prepareAccountCommand,_.X1),A,M,W,w,d,O,f,J,F,P;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((A=this.toolbarSharedData)==null||!A.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((M=this.toolbarState)==null?void 0:M.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:U!=null?U:_.p((W=this.toolbarSurface)==null?void 0:W.dislikeCommand,_.X1),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:U!=null?U:_.p((w=this.toolbarSurface)==null?void 0:w.undislikeCommand,_.X1),defaultCommand:this.isVisiblyDisabled?_.p((d=this.toolbarSurface)==null?void 0:d.commentDisabledActionCommand,_.X1):void 0,defaultTooltip:(O=this.toolbarData)==null?void 0:O.dislikeInactiveTooltip,toggledTooltip:(f=this.toolbarData)==null?void 0:
f.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(J=this.toolbarSharedData)==null?void 0:J.dislikeReplyButtonA11y:(F=this.toolbarSharedData)==null?void 0:F.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(P=this.toolbarSharedData)==null?void 0:P.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var H,U,A;if(((H=this.toolbarState)==null?void 0:H.heartState)!==void 0&&((U=this.toolbarState)==null?void 0:U.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((A=this.toolbarState)==null?void 0:A.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var M,W,w,d,O,f,J,F,P,n,N,L,m,z;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(M=this.toolbarData)==null?void 0:M.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((W=this.toolbarState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((w=this.toolbarState)==null?void 0:w.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((d=this.toolbarState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((O=this.toolbarState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.p((f=this.toolbarSurface)==null?void 0:f.heartCommand,
_.X1),unheartEndpoint:this.isVisiblyDisabled?void 0:_.p((J=this.toolbarSurface)==null?void 0:J.unheartCommand,_.X1),disabledEndpoint:this.isVisiblyDisabled?_.p((F=this.toolbarSurface)==null?void 0:F.commentDisabledActionCommand,_.X1):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(P=this.toolbarData)==null?void 0:P.heartActiveTooltip,unheartedTooltip:(n=this.toolbarData)==null?void 0:n.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((N=
this.toolbarState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(L=this.toolbarSharedData)==null?void 0:L.unheartButtonA11y:(m=this.toolbarSharedData)==null?void 0:m.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(z=this.toolbarSharedData)==null?void 0:z.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.toolbarSurface)==null||!H.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.commentStrings)!=null&&H.replyButtonText){var U,A,M,W;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(U=this.commentStrings)==null?void 0:U.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.p((A=this.toolbarSurface)==null?void 0:A.replyCommand,_.X1),command:this.isVisiblyDisabled?
_.p((M=this.toolbarSurface)==null?void 0:M.commentDisabledActionCommand,_.X1):this.isSubsOnlyCommentsIneligibleUser?_.p((W=this.toolbarSurface)==null?void 0:W.subscribersOnlySnackbarCommand,_.X1):void 0}}}}});
Vv.prototype.onYtServiceRequestSent=Vv.prototype.onYtServiceRequestSent;Vv.prototype.hideReplyDialogDiv=Vv.prototype.hideReplyDialogDiv;_.G([_.y(),_.q("design:type",Object)],Vv.prototype,"commentStrings",void 0);_.G([_.y(),_.q("design:type",Boolean)],Vv.prototype,"isReply",void 0);_.G([_.y(),_.q("design:type",Object)],Vv.prototype,"toolbarData",void 0);_.G([_.y(),_.q("design:type",Object)],Vv.prototype,"toolbarSharedData",void 0);
_.G([_.y(),_.q("design:type",String)],Vv.prototype,"toolbarStateKey",void 0);_.G([_.y(),_.q("design:type",String)],Vv.prototype,"toolbarSurfaceKey",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Vv.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Vv.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Vv.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.m1),_.q("design:type",Object)],Vv.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.hG("#reply-dialog"),_.q("design:type",HTMLElement)],Vv.prototype,"replyDialogDiv",void 0);_.G([_.hG("#replybox"),_.q("design:type",Object)],Vv.prototype,"replyBox",void 0);_.G([_.hG("ytd-creator-heart-renderer"),_.q("design:type",Object)],Vv.prototype,"heartButton",void 0);_.G([_.y({selector:function(H,U){return _.rH(H.entities,"engagementToolbarStateEntityPayload",U)},
selectorArgs:["toolbarStateKey"]}),_.q("design:type",Object)],Vv.prototype,"toolbarState",void 0);_.G([_.y({selector:OV7,selectorArgs:["toolbarSurfaceKey"]}),_.q("design:type",Object)],Vv.prototype,"toolbarSurface",void 0);_.G([_.y(),_.q("design:type",Object)],Vv.prototype,"buttonOverrides",void 0);_.G([_.Gl("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Vv.prototype,"hideReplyDialogDiv",null);
_.G([_.a("toolbarData","toolbarState"),_.q("design:type",String),_.q("design:paramtypes",[])],Vv.prototype,"likeCount",null);_.G([_.a("likeCount"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Vv.prototype,"showLikeCount",null);_.G([_.a("toolbarSurface"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Vv.prototype,"isVisiblyDisabled",null);_.G([_.a("toolbarSurface"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Vv.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.G([_.a("toolbarSurface"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Vv.prototype,"isSubsOnlyCommentsEligibleUser",null);_.G([_.a("toolbarSurface"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Vv.prototype,"isSuperfanOnlyCommentsEligibleUser",null);_.G([_.a("toolbarSurface"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Vv.prototype,"hasPrepareAccountCommand",null);
_.G([_.a("toolbarData","toolbarState","toolbarSurface"),_.q("design:type",Object),_.q("design:paramtypes",[])],Vv.prototype,"likeToggleButtonRenderer",null);_.G([_.a("isReply","toolbarData","toolbarState","toolbarSurface"),_.q("design:type",Object),_.q("design:paramtypes",[])],Vv.prototype,"dislikeToggleButtonRenderer",null);_.G([_.a("toolbarData","toolbarState","toolbarSurface"),_.q("design:type",Object),_.q("design:paramtypes",[])],Vv.prototype,"creatorHeartSupportedRenderer",null);
_.G([_.a("toolbarSurface"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Vv.prototype,"hasReplyCommand",null);_.G([_.a("toolbarSurface","commentStrings","isVisiblyDisabled"),_.q("design:type",Object),_.q("design:paramtypes",[])],Vv.prototype,"replyButtonRenderer",null);_.G([_.y(),_.q("design:type",Object)],Vv.prototype,"replyButtonOverrides",void 0);
_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],Vv.prototype,"onYtServiceRequestSent",null);_.G([_.dX({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Vv);
_.e(Vv,"ytd-comment-engagement-bar",function(){if(kdw!==void 0)return kdw;var H=document.createElement("template");_.E(H,'\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]]" on-click="handleReplyButtonClick" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return kdw=H},{mode:1});var v_3;var HE=function(){return _.B.apply(this,arguments)||this};
_.R(HE,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],HE.prototype,"data",void 0);_.G([_.dX({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],HE);
_.e(HE,"ytd-comment-inline-thumbnail-renderer",function(){if(v_3!==void 0)return v_3;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return v_3=H},{mode:1});var Trz;var UX=function(){return _.B.apply(this,arguments)||this};
_.R(UX,_.B);UX.prototype.onMessageTap=function(){if(this.onTapCommand){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);H&&this.ytdOpenPopupBehavior.openPopup(H)}};
_.D5.Object.defineProperties(UX.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return(H=this.data)==null?void 0:(U=H.button)==null?void 0:(A=U.buttonRenderer)==null?void 0:A.command}}});
_.G([_.g(_.m1),_.q("design:type",Object)],UX.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],UX.prototype,"data",void 0);_.G([_.a("data.button.buttonRenderer.command"),_.q("design:type",Object),_.q("design:paramtypes",[])],UX.prototype,"onTapCommand",null);_.G([_.dX({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],UX);
_.e(UX,"ytd-comment-pause-composer-renderer",function(){if(Trz!==void 0)return Trz;var H=document.createElement("template");_.E(H,'\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" on-click="onMessageTap" 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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Trz=H},{mode:1});var jBH;var Iqh;var AS=function(){var H=_.B.apply(this,arguments)||this;H.isOpen=!1;return H};
_.R(AS,_.B);_.X=AS.prototype;_.X.dataChanged=function(){this.isOpen=!1};
_.X.onTap=function(){this.data&&(this.data.navigationEndpoint?_.cg(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.X.focus=function(){this.JSC$16295_commentbox.focus()};
_.X.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.X.openDialog=function(){this.isOpen=!0;this.JSC$16295_commentbox.focus();this.JSC$16295_commentbox.maybeHeightChanged()};
AS.prototype.onYtCommentboxDismiss=AS.prototype.onYtCommentboxDismiss;AS.prototype.dataChanged=AS.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],AS.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],AS.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],AS.prototype,"isOpen",void 0);_.G([_.hG("#commentbox"),_.q("design:type",Object)],AS.prototype,"JSC$16295_commentbox",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],AS.prototype,"dataChanged",null);_.G([_.Gl("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],AS.prototype,"onYtCommentboxDismiss",null);_.G([_.dX({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],AS);
_.e(AS,"ytd-comment-reply-dialog-renderer",function(){if(Iqh!==void 0)return Iqh;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Iqh=H},{mode:1});var QBm;var MB=function(){return _.B.apply(this,arguments)||this};
_.R(MB,_.B);_.D5.Object.defineProperties(MB.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var H,U,A=(H=this.data)==null?void 0:(U=H.icon)==null?void 0:U.iconType;return A?"yt-icons:"+A.toLowerCase():null}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],MB.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],MB.prototype,"data",void 0);_.G([_.y(),_.a("data.icon"),_.q("design:type",Object),_.q("design:paramtypes",[])],MB.prototype,"icon",null);_.G([_.dX({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],MB);
_.e(MB,"ytd-pinned-comment-badge-renderer",function(){if(QBm!==void 0)return QBm;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return QBm=H},{mode:1});var V_K;var H7h={},U0r={input:!0,meta:!0,br:!0,link:!0,img:!0},WE=null;H7h.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(){WE==null&&(WE=document.createElement("tp-yt-paper-tooltip"),WE.offset=8,WE.fitToVisibleBounds=!0)},
onMouseOver_:function(H){if(H=_.Kp(H.target,function(W){return W==this||W.getAttribute&&W.getAttribute("shared-tooltip-text")}.bind(this),!0)){var U=H.getAttribute("shared-tooltip-text");
if(U){var A=this,M=null;H!=this&&(H.tagName.toLowerCase()in U0r?A=H.parentElement:A=H,H.id&&(M=H.id));this.polymerController.createTooltipIfRequired_();if(WE.parentElement!=A||WE.for!=M)(0,_.ek)(WE).textContent=U,_.c4(A).appendChild(WE),WE.for=M,WE.animationDelay=this.polymerController.sharedTooltipAnimationDelay,WE.position=this.polymerController.sharedTooltipPosition}}}};var wW=function(){return _.B.apply(this,arguments)||this};
_.R(wW,_.B);wW.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]]"}}}}}};
wW.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var H;((H=this.data)==null?0:H.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var U;((U=this.data)==null?0:U.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
wW.prototype.colorChanged=function(){var H,U,A,M=(H=this.data)==null?void 0:(U=H.color)==null?void 0:(A=U.basicColorPaletteData)==null?void 0:A.foregroundBodyColor;M&&(this.rgbBadgeColor=_.wn(M));_.c4(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
wW.prototype.tooltipChanged=function(){var H;((H=this.data)==null?0:H.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
wW.prototype.tooltipChanged=wW.prototype.tooltipChanged;wW.prototype.colorChanged=wW.prototype.colorChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],wW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(H7h.YtSharedTooltipBehavior),_.q("design:type",Object)],wW.prototype,"ytSharedTooltipBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],wW.prototype,"data",void 0);
_.G([_.y({value:"#4285F4"}),_.q("design:type",String)],wW.prototype,"rgbBadgeColor",void 0);_.G([_.Ya("data.color"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wW.prototype,"colorChanged",null);_.G([_.Ya("data.tooltip"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wW.prototype,"tooltipChanged",null);_.G([_.dX({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],wW);
_.e(wW,"ytd-sponsor-comment-badge-renderer",function(){if(V_K!==void 0)return V_K;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return V_K=H},{mode:1});var Aok;var MTn;var Xm=function(){return _.B.apply(this,arguments)||this};
_.R(Xm,_.B);Xm.prototype.computeState=function(H){switch(H==null?void 0:H.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"}};
Xm.prototype.updateStateIdentifier=function(H){if(this.viewModel.triStateKey){var U=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Wl("triStateButtonStateEntityPayload",U,{key:U,stateIdentifier:H}))}};
Xm.prototype.onClick=function(){var H=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(){H.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){H.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.D5.Object.defineProperties(Xm.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 H;return((H=this.data)==null?void 0:H.buttonText)||""}}});
_.G([_.y(),_.q("design:type",Object)],Xm.prototype,"viewModel",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Xm.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Xm.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.G([_.y({selector:u6V,selectorArgs:["viewModel.triStateKey"]}),_.q("design:type",Object)],Xm.prototype,"triStateButtonStateEntity",void 0);
_.G([_.y({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.q("design:type",String)],Xm.prototype,"state",void 0);_.G([_.a("viewModel","state"),_.q("design:type",Object),_.q("design:paramtypes",[])],Xm.prototype,"data",null);_.G([_.a("data"),_.q("design:type",String),_.q("design:paramtypes",[])],Xm.prototype,"buttonText",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],Xm);
_.e(Xm,"ytd-tri-state-button-view-model",function(){if(MTn!==void 0)return MTn;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return MTn=H},{mode:1});var W03;var wmm;var iC=function(){var H=_.B.apply(this,arguments)||this;H.defaultIconToFilled=!_.S("kevlar_fill_comment_chip_icon_killswitch");return H};
_.R(iC,_.B);iC.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
iC.prototype.dataChanged=function(){if(this.data){var H,U;((H=this.data.chipColorPalette)==null?0:H.backgroundColor)&&((U=this.data.chipColorPalette)==null?0:U.foregroundTitleColor)&&_.Dt(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.bN(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.bN(this.data.chipColorPalette.foregroundTitleColor)});var A;((A=this.data)==null?0:A.command)?(_.Dt(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Dt(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}};
iC.prototype.onTap=function(){var H;if(this.data&&(H=this.data)!=null&&H.command){var U;this.ytComponentBehavior.resolveCommand((U=this.data)==null?void 0:U.command)}};
iC.prototype.getIconSize=function(){return _.S("kevlar_fill_comment_chip_icon_killswitch")?24:12};
iC.prototype.onTap=iC.prototype.onTap;iC.prototype.dataChanged=iC.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],iC.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.le),_.q("design:type",Object)],iC.prototype,"ironA11yKeysBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],iC.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Object)],iC.prototype,"basePriceText",void 0);_.G([_.y(),_.q("design:type",Object)],iC.prototype,"chipIcon",void 0);_.G([_.y(),_.q("design:type",Object)],iC.prototype,"defaultIconToFilled",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iC.prototype,"dataChanged",null);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iC.prototype,"onTap",null);
_.G([_.b0({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],iC);
_.e(iC,"yt-pdg-comment-chip-renderer",function(){if(wmm===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;W03===void 0&&(W03=document.createElement("template"));var M=W03;A.call(U,M.content.cloneNode(!0),H.content.firstChild);wmm=H}H=wmm;return H},{mode:2});var bC=function(){var H=_.B.apply(this,arguments)||this;H.useSmallAvatars=_.S("small_avatars_for_comments");H.commentThreadingEnabled=_.S("web_delhi_comment_threads");H.webWatchCompactComments=_.S("web_watch_compact_comments");H.editDialog=null;return H};
_.R(bC,_.B);_.X=bC.prototype;_.X.onShow=function(){_.dH("cmv",void 0,"wn_comments")};
_.X.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"}}}};
_.X.detached=function(){this.editDialog=null;this.expander.reset()};
_.X.updateBackgroundColor=function(){if(this.backgroundColor){var H={"--ytd-comment-paid-background-color":_.bN(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Dt(this.hostElement,H)}else _.Dt(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.X.resetExpander=function(){var H;(H=this.expander)==null||H.reset()};
_.X.openEditDialog=function(H){H.dialog&&(this.editDialog=H.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.X.onYtNavigate=function(H){var U=H.detail.endpoint;if(U=_.p(U,_.Fg2)||_.p(U,_.PKK))H.stopPropagation(),this.openEditDialog(U)};
_.X.onYtCommentboxDismiss=function(){this.editDialog=null;_.Dt(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.X.onAuthorThumbnailClicked=function(){_.S("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.X.onYtCommentboxResize=function(H){var U;(H==null?0:(U=H.detail)==null?0:U.height)&&_.Dt(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":H.detail.height+"px"})};
_.D5.Object.defineProperties(bC.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 H,U=(H=this.commentEntity)==null?void 0:H.author;return U&&(U.isCreator||U.isVerified||U.isArtist)?{renderer:{authorEndpoint:U.channelPageEndpoint?_.p(U.channelPageEndpoint,_.X1):_.p(U.channelCommand,_.X1),authorText:{runs:[{text:U.displayName}]},color:U.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:U.isArtist?{iconType:"AUDIO_BADGE"}:
U.isVerified?{iconType:U.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:U.isArtist||U.isVerified?U.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var H,U=(H=this.commentEntity)==null?void 0:H.author;return U!=null&&U.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:U.sponsorBadgeUrl}]},tooltip:U.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var H;return _.p((H=this.commentSurfaceEntity)==null?void 0:H.pdgCommentChip,_.kmh)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var H;return this.voiceReplyContainerViewModel&&((H=this.voiceReplyContainerViewModel)==null?void 0:H.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var H;return _.p((H=this.commentSurfaceEntity)==null?void 0:H.voiceReplyContainerViewModel,hey)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var H;return this.voiceReplyContainerViewModel&&(H=this.voiceReplyContainerViewModel)!=null&&H.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var H,U;return(U=(H=this.commentSurfaceEntity)==null?void 0:H.commentBackgroundColor)!=null?U:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.S("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var H,U;return(((H=this.commentEntity)==null?void 0:(U=H.properties)==null?void 0:U.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var H,U;if(_.S("enable_profile_cards_on_comments")&&((H=this.commentEntity)==null?0:(U=H.author)==null?0:U.profileCardEndpoint)&&this.viewModel.allowProfileCard){var A,M;return _.p((A=this.commentEntity)==null?void 0:(M=A.author)==null?void 0:M.profileCardEndpoint,_.X1)}var W,w;return _.p((W=this.commentEntity)==null?void 0:(w=W.avatar)==null?void 0:w.endpoint,_.X1)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var H,U;if(_.S("enable_profile_cards_on_comments")&&((H=this.commentEntity)==null?0:(U=H.author)==null?0:U.channelPageEndpoint)){var A,M;return _.p((A=this.commentEntity)==null?void 0:(M=A.author)==null?void 0:M.channelPageEndpoint,_.X1)}var W,w;return _.p((W=this.commentEntity)==null?void 0:(w=W.avatar)==null?void 0:w.endpoint,_.X1)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M,W=(H=this.commentEntity)==null?void 0:(U=H.avatar)==null?void 0:(A=U.image)==null?void 0:(M=A.sources)==null?void 0:M[0];return W?{thumbnails:[{url:W.url,width:W.width,height:W.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.commentEntity)==null?0:(U=H.author)==null?0:U.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.commentEntity)==null?void 0:(U=H.author)==null?void 0:U.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.commentEntity)==null?void 0:(U=H.properties)==null?void 0:U.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var H;return _.p((H=this.commentSurfaceEntity)==null?void 0:H.publishedTimeCommand,_.X1)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var H,U;if(((H=this.commentEntity)==null?0:H.translatedContent)&&((U=this.translateButtonState)==null?void 0:U.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var A;if((A=this.voiceReplyContainerViewModel)==null?0:A.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var M,W;return((M=this.commentEntity)==null?void 0:(W=M.properties)==null?void 0:W.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.commentSharedEntity)==null?void 0:(U=H.strings)==null?void 0:U.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.commentSharedEntity)==null?void 0:(U=H.strings)==null?void 0:U.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.commentEntity)==null||!H.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var H,U,A=(U=_.p((H=this.viewModel)==null?void 0:H.translateButton,q93))!=null?U:{},M,W,w,d,O,f,J,F,P,n,N;return Object.assign({},A,{untoggledStateData:Object.assign({},A.untoggledStateData,{buttonText:(M=this.commentEntity)==null?void 0:(W=M.translateData)==null?void 0:W.text}),togglingStateData:Object.assign({},A.togglingStateData,{buttonText:(w=this.commentSharedEntity)==null?
void 0:(d=w.strings)==null?void 0:d.translatingText}),toggledStateData:Object.assign({},A.toggledStateData,{buttonText:(O=this.commentSharedEntity)==null?void 0:(f=O.strings)==null?void 0:f.seeOriginalText}),transitionCommand:((J=this.commentEntity)==null?0:J.translatedContent)?void 0:_.p((F=this.commentEntity)==null?void 0:(P=F.translateData)==null?void 0:P.translateComment,_.X1),triStateKey:(n=this.commentEntity)==null?void 0:(N=n.properties)==null?void 0:N.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return((U=_.p(_.p((H=this.toolbarSurface)==null?void 0:H.menuCommand,_.X1),sfK))==null?void 0:(A=U.menu)==null?void 0:A.menuRenderer)||null}}});
bC.prototype.onYtCommentboxResize=bC.prototype.onYtCommentboxResize;bC.prototype.onYtCommentboxDismiss=bC.prototype.onYtCommentboxDismiss;bC.prototype.onYtNavigate=bC.prototype.onYtNavigate;bC.prototype.resetExpander=bC.prototype.resetExpander;bC.prototype.updateBackgroundColor=bC.prototype.updateBackgroundColor;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],bC.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],bC.prototype,"ytdReduxBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],bC.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],bC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.hG("#author-thumbnail > button"),_.q("design:type",HTMLElement)],bC.prototype,"authorThumbnailAnchor",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("viewModel"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],bC.prototype,"linked",null);
_.G([_.a("viewModel","linked"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"linkedCommentBadge",null);_.G([_.y({reflectToAttribute:!0}),_.a("viewModel"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],bC.prototype,"pinned",null);_.G([_.a("viewModel","pinned"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"pinnedCommentBadge",null);
_.G([_.a("commentEntity","commentSharedEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"authorCommentBadge",null);_.G([_.y({reflectToAttribute:!0}),_.a("authorCommentBadge"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"hasAuthorBadge",null);_.G([_.a("commentEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"sponsorCommentBadge",null);
_.G([_.y({reflectToAttribute:!0}),_.a("sponsorCommentBadge"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"hasSponsorBadge",null);_.G([_.a("commentSurfaceEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"pdgCommentChipRenderer",null);_.G([_.y({reflectToAttribute:!0}),_.a("voiceReplyContainerViewModel"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"hasVoiceReply",null);
_.G([_.a("commentSurfaceEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"voiceReplyContainerViewModel",null);_.G([_.a("voiceReplyContainerViewModel"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"voiceReplyUnavailableText",null);_.G([_.y(),_.q("design:type",Object)],bC.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"viewModel",null);
_.G([_.y({selector:function(H,U){return _.rH(H.entities,"commentSharedEntityPayload",U)},
selectorArgs:["viewModel.sharedKey"]}),_.q("design:type",Object)],bC.prototype,"commentSharedEntity",void 0);_.G([_.y({selector:dR0,selectorArgs:["viewModel.commentKey"]}),_.q("design:type",Object)],bC.prototype,"commentEntity",void 0);_.G([_.y({selector:function(H,U){return _.rH(H.entities,"commentSurfaceEntityPayload",U)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.q("design:type",Object)],bC.prototype,"commentSurfaceEntity",void 0);_.G([_.y({selector:OV7,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.q("design:type",Object)],bC.prototype,"toolbarSurface",void 0);_.G([_.y({selector:u6V,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.q("design:type",Object)],bC.prototype,"translateButtonState",void 0);
_.G([_.a("commentSurfaceEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"backgroundColor",null);_.G([_.y({reflectToAttribute:!0}),_.a("viewModel"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],bC.prototype,"optimalReadingWidthComments",null);_.G([_.hG("ytd-expander"),_.q("design:type",Object)],bC.prototype,"expander",void 0);
_.G([_.Ya("backgroundColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],bC.prototype,"updateBackgroundColor",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],bC.prototype,"useSmallAvatars",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],bC.prototype,"engagementPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],bC.prototype,"commentThreadingEnabled",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],bC.prototype,"webWatchCompactComments",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("commentEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"isReply",null);_.G([_.a("commentEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"authorThumbnailEndpoint",null);_.G([_.a("commentEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"authorNameEndpoint",null);
_.G([_.a("commentEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"authorThumbnail",null);_.G([_.a("commentEntity"),_.q("design:type",String),_.q("design:paramtypes",[])],bC.prototype,"authorTextClass",null);_.G([_.a("commentEntity"),_.q("design:type",String),_.q("design:paramtypes",[])],bC.prototype,"authorChannelName",null);_.G([_.a("commentEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"publishedTime",null);
_.G([_.a("commentSurfaceEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"publishedTimeCommand",null);_.G([_.a("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"contentText",null);_.G([_.Ya("contentText"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],bC.prototype,"resetExpander",null);
_.G([_.a("commentEntity"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],bC.prototype,"shouldShowReadMoreInitially",null);_.G([_.a("commentSharedEntity"),_.q("design:type",String),_.q("design:paramtypes",[])],bC.prototype,"expandText",null);_.G([_.a("commentSharedEntity"),_.q("design:type",String),_.q("design:paramtypes",[])],bC.prototype,"collapseText",null);_.G([_.a("commentEntity"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],bC.prototype,"shouldShowTranslateButton",null);
_.G([_.a("commentEntity","commentSharedEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"translateButton",null);_.G([_.a("toolbarSurface"),_.q("design:type",Object),_.q("design:paramtypes",[])],bC.prototype,"overflowMenuRenderer",null);_.G([_.y(),_.q("design:type",Object)],bC.prototype,"editDialog",void 0);_.G([_.hG("ytd-comment-dialog-renderer"),_.q("design:type",Object)],bC.prototype,"editCommentDialogContainer",void 0);
_.G([_.hG("ytd-comment-reply-dialog-renderer"),_.q("design:type",Object)],bC.prototype,"editReplyDialogContainer",void 0);_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],bC.prototype,"onYtNavigate",null);_.G([_.Gl("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],bC.prototype,"onYtCommentboxDismiss",null);
_.G([_.Gl("yt-commentbox-resize"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],bC.prototype,"onYtCommentboxResize",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-comment-view-model"})],bC);
_.e(bC,"ytd-comment-view-model",function(){if(Aok!==void 0)return Aok;var H=document.createElement("template");_.E(H,'\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"> </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          \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"> [[authorChannelName]] </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" recompute-on-resize="[[webWatchCompactComments]]" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Aok=H},{mode:_.cX("kevlar_poly_si_batch_j025")?1:2});_.LG(_.r(function(H){var U={},A={};return _.Z("yt-sub-thread",{class:_.CG("ytSubThreadHost",(U.ytSubThreadHasButton=H.isButton,U.ytSubThreadHovered=H.hovered,U.ytSubThreadTopLevelThread=function(){var M,W;return((M=H.topLevelThread)==null?void 0:M.call(H))&&!(_.S("small_avatars_for_comments")&&((W=H.engagementPanel)==null?0:W.call(H)))},U))},_.Z("div",{class:"ytSubThreadThreadline"},_.Z(_.K,{cond:function(){var M;
return!((M=H.isTeaser)==null?0:M.call(H))},
then:function(){return _.Z("div",{class:"ytSubThreadConnection"})}}),_.Z("div",{class:"ytSubThreadContinuation"}),_.Z("div",{class:"ytSubThreadShadow"})),_.Z("div",{class:_.CG("ytSubThreadSubThreadContent",(A.ytSubThreadSubThreadContentEngagementPanel=H.engagementPanel,A))},H.children))},"Pc"),"yt-sub-thread",{props:{isButton:_.sY,
isTeaser:_.sY,hovered:_.sY,topLevelThread:_.sY,engagementPanel:_.sY}});var dW=function(){var H=_.B.apply(this,arguments)||this;H.modern=_.S("web_modern_buttons");H.commentThreadingEnabled=_.S("web_delhi_comment_threads");H.isWatchGrid=_.S("kevlar_watch_grid");H.buttonOverrides=H.commentThreadingEnabled?_.S("web_delhi_comment_threads_call_to_action")?{iconPosition:"trailing",type:"text",style:"call-to-action"}:{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};H.JSC$16341_spinnerEl=null;return H};
_.R(dW,_.B);_.X=dW.prototype;_.X.configureContinuationPathMap=function(){return _.S("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.X.shouldShowLegacyTeasers=function(H,U){return H&&!U};
_.X.shouldShowExpandedThreads=function(H,U){return this.commentThreadingEnabled&&U&&(H==null?void 0:H.length)>0};
_.X.shouldShowCollapsedThreads=function(H,U){return this.commentThreadingEnabled&&!U&&H};
_.X.computeCommentViewModel=function(H){return _.p(H,Y9w)};
_.X.computeThreadRenderer=function(H){return _.p(H,rM3)};
_.X.computeIsContinuationItem=function(H){return!!this.computeContinuationItemRenderer(H)};
_.X.computeButtonRenderer=function(H){return _.p(H,_.f$)};
_.X.computeContinuationItemRenderer=function(H){return _.p(H,_.Ea)};
_.X.computeShowButton=function(H){var U;return!((U=this.computeContinuationItemRenderer(H))==null||!U.button)};
_.X.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.X.attached=function(){this.isShowRepliesVisible=!0};
_.X.dataChanged=function(){var H=this.expanderContents;H&&(H.hidden=!0);this.isLoading=!1};
_.X.endsInContinuation=function(H){return!!H&&H.length>0&&!!this.computeContinuationItemRenderer(H[H.length-1])};
_.X.computeShouldShowHideRepliesButton=function(H,U){return!H&&U};
_.X.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.X.isLoadingChanged=function(){this.isLoading&&!this.JSC$16341_spinnerEl&&(this.JSC$16341_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.c4(this.expanderContents).appendChild(this.JSC$16341_spinnerEl));this.JSC$16341_spinnerEl&&(this.JSC$16341_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var H;(H=this.contents)==null||H.classList.remove("reloading")}};
_.X.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var H=_.p(this.data.viewReplies,_.f$);H&&this.ytRendererBehavior.logExplicitClick(H);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.X.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var H=_.p(this.data.hideReplies,_.f$);H&&this.ytRendererBehavior.logExplicitClick(H);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.X.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var H=_.c4(this.hostElement).querySelector("#expander-contents");H&&(H.hidden=this.isShowRepliesVisible)}};
_.X.computeAlign=function(){if(this.modern){var H;return!((H=this.data)==null?0:H.viewRepliesCreatorThumbnail)}};
_.D5.Object.defineProperties(dW.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var H,U;return this.endsInContinuation((H=this.data)==null?void 0:H.contents)||this.commentThreadingEnabled&&this.endsInContinuation((U=this.data)==null?void 0:U.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var H;return(H=this.data)==null?void 0:H.teaserContents}}});
dW.prototype.isShowMoreChanged=dW.prototype.isShowMoreChanged;dW.prototype.isLoadingChanged=dW.prototype.isLoadingChanged;dW.prototype.triggerFirstContinuation=dW.prototype.triggerFirstContinuation;dW.prototype.dataChanged=dW.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],dW.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.RG),_.q("design:type",Object)],dW.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],dW.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],dW.prototype,"modern",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],dW.prototype,"commentThreadingEnabled",void 0);_.G([_.y(),_.q("design:type",Boolean)],dW.prototype,"expanded",void 0);
_.G([_.y(),_.q("design:type",Function)],dW.prototype,"toggleExpanded",void 0);_.G([_.y(),_.q("design:type",Array)],dW.prototype,"addedReplies",void 0);_.G([_.y(),_.q("design:type",Boolean)],dW.prototype,"hovered",void 0);_.G([_.y(),_.q("design:type",Boolean)],dW.prototype,"topLevelThread",void 0);_.G([_.y(),_.q("design:type",Boolean)],dW.prototype,"isLoading",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],dW.prototype,"isShowRepliesVisible",void 0);
_.G([_.y({value:!1}),_.q("design:type",Boolean)],dW.prototype,"useNewFormatting",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],dW.prototype,"engagementPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],dW.prototype,"isWatchGrid",void 0);_.G([_.y(),_.q("design:type",Object)],dW.prototype,"buttonOverrides",void 0);_.G([_.hG("#expander-contents"),_.q("design:type",HTMLElement)],dW.prototype,"expanderContents",void 0);
_.G([_.hG("ytd-continuation-item-renderer"),_.q("design:type",Object)],dW.prototype,"continuationItemRenderer",void 0);_.G([_.hG("#contents"),_.q("design:type",HTMLElement)],dW.prototype,"contents",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dW.prototype,"dataChanged",null);_.G([_.a("data.contents","data.subThreads.*"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],dW.prototype,"hasContinuation",null);
_.G([_.a("data.teaserContents"),_.q("design:type",Object),_.q("design:paramtypes",[])],dW.prototype,"subThreadTeasers",null);_.G([_.Gl("yt-expander-more-tapped"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dW.prototype,"triggerFirstContinuation",null);_.G([_.Ya("isLoading"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dW.prototype,"isLoadingChanged",null);
_.G([_.Ya("isShowRepliesVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dW.prototype,"isShowMoreChanged",null);_.G([_.dX({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],dW);
_.e(dW,"ytd-comment-replies-renderer",function(){if(jBH!==void 0)return jBH;var H=document.createElement("template");_.E(H,'\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="[[commentThreadingEnabled]]" 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="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" engagement-panel="[[engagementPanel]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="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-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" engagement-panel="[[engagementPanel]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer class="replies-continuation style-scope ytd-comment-replies-renderer" button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return jBH=H},{mode:1});var Xmk;var OX=function(){var H=_.B.apply(this,arguments)||this;H.isOpen=!1;H.commentDialog=null;H.useSmallAvatars=_.S("small_avatars_for_comments");H.useSmallAvatarsEngagementPanelOnly=_.S("small_avatars_for_comments_ep");H.placeholderFocusListener=null;H.hasOpenedDialog=!1;H.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return H};
_.R(OX,_.B);_.X=OX.prototype;_.X.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]]"}}}}}};
_.X.ready=function(){var H=this,U=_.c4(this.hostElement).querySelector("#placeholder-area"),A=_.c4(this.hostElement).querySelector("#simplebox-placeholder"),M=function(W){W.stopPropagation();W instanceof KeyboardEvent&&W.type==="keypress"&&W.keyCode!==13&&W.keyCode!==32||H.openDialog()};
this.placeholderFocusListener=M;A.addEventListener("focus",this.placeholderFocusListener);U.addEventListener("tap",M);U.addEventListener("keypress",M)};
_.X.maybeRemoveFocusEventListener=function(){var H;(H=this.data)!=null&&H.prepareAccountEndpoint&&!_.S("web_comments_simplebox_modal_focus_on_tap_ks")&&(H=_.c4(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(H.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.X.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.X.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.S("web_comment_simplebox_resolve_polymer_command_ks")?_.$$.instance.resolveCommand(this.data.prepareAccountEndpoint):_.l0(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.superfanOnlySnackbarCommand&&!this.hasOpenedDialog){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.superfanOnlySnackbarCommand);H&&this.ytdOpenPopupBehavior.openPopup(H);this.hasOpenedDialog=!0}this.data.subscribersOnlySnackbarCommand&&
!this.hasOpenedDialog&&((H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand))&&this.ytdOpenPopupBehavior.openPopup(H),this.hasOpenedDialog=!0);this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.c4(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.X.onYtCommentboxDismiss=function(H){H.stopPropagation();this.isOpen=!1};
_.X.onCreateCommentAction=function(H){this.get("createCommentAction.contents",H)&&(this.isOpen=!1)};
_.X.computeCommentDialog=function(H){return{placeholderText:H.placeholderText,authorThumbnail:H.authorThumbnail,submitButton:H.submitButton,imageButton:H.imageButton,cancelButton:H.cancelButton,emojiButton:H.emojiButton,emojis:H.emojis,emojiPicker:H.emojiPicker,aadcGuidelinesStateEntityKey:H.aadcGuidelinesStateEntityKey,openAadcDialog:H.openAadcDialog,unicodeEmojisUrl:H.unicodeEmojisUrl}};
_.X.onHideIdentityChip=function(H){_.p(H,zen)&&this.set("data.placeholderText",_.p(H,zen).placeholderText)};
OX.prototype.onYtCommentboxDismiss=OX.prototype.onYtCommentboxDismiss;OX.prototype.dataChanged=OX.prototype.dataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],OX.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.m1),_.q("design:type",Object)],OX.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],OX.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],OX.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],OX.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],OX.prototype,"isOpen",void 0);_.G([_.y(),_.q("design:type",Object)],OX.prototype,"commentDialog",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],OX.prototype,"engagementPanel",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],OX.prototype,"useSmallAvatars",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],OX.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],OX.prototype,"enableCreationBox",void 0);_.G([_.y(),_.q("design:type",Boolean)],OX.prototype,"showCreateDialog",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],OX.prototype,"dataChanged",null);_.G([_.Gl("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],OX.prototype,"onYtCommentboxDismiss",null);_.G([_.dX({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],OX);
_.e(OX,"ytd-comment-simplebox-renderer",function(){if(Xmk!==void 0)return Xmk;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Xmk=H},{mode:1});var i7y;_.Qm("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var uC=function(){var H=_.B.apply(this,arguments)||this;H.addHoverEffect=_.S("swatcheroo_comments_hover_effect");H.useSmallAvatars=_.S("small_avatars_for_comments");H.scrollingEnabled=_.S("web_comment_threading_scroll_on_collapse");H.isSubThread=!1;H.threadHovered=!1;H.expanded=!1;H.removed=!1;H.addedReplies=[];H.actionMap=H.configureActionMap();H.toggleExpanded=function(){H.expanded=!H.expanded;!H.expanded&&H.scrollingEnabled&&_.yr(H.hostElement,"yt-scroll-to-comment-element",[H.commentElement])};
return H};
_.R(uC,_.B);_.X=uC.prototype;_.X.configureActionMap=function(){return _.S("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.X.createCommentReplyAction=function(H){H=_.p(H,a7k);if(H!=null&&H.contents){var U=H.replyToCommentId,A=H.parentCommentId,M,W=(M=this.commentViewModel)==null?void 0:M.commentId;(W===U||W===A&&!U)&&this.maybeAttachReply(H.contents)}};
_.X.maybeAttachReply=function(H){var U,A;(((U=this.commentEntity)==null?void 0:(A=U.properties)==null?void 0:A.replyLevel)||0)>=3?_.cg(this.hostElement,"yt-pushed-create-comment-reply",H):this.attachReply(H)};
_.X.onPushedCreateCommentReply=function(H){var U,A;(((U=this.commentEntity)==null?void 0:(A=U.properties)==null?void 0:A.replyLevel)||0)>=3||(this.attachReply(H.detail),H.stopPropagation())};
_.X.attachReply=function(H){var U;((U=this.data)==null?0:U.replies)?(U=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+U+".continuationItemRenderer")?U===0?this.push("addedReplies",H):this.splice("data.replies.commentRepliesRenderer.subThreads",U,0,H):this.push("data.replies.commentRepliesRenderer.subThreads",H)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[H],viewReplies:{buttonRenderer:{text:_.gH(_.hP("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.X.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.vI(this.addedReplies))),this.set("addedReplies",[]))};
_.X.removeCommentAction=function(H){H=_.p(H,cM3);var U=H==null?void 0:H.commentId,A;U&&((A=this.commentViewModel)==null?void 0:A.commentId)===U&&this.maybeRemoveComment(H.actionResult)};
_.X.banAuthorAction=function(H){H=_.p(H,mAw);var U=H==null?void 0:H.commentId,A;U&&((A=this.commentViewModel)==null?void 0:A.commentId)===U&&this.maybeRemoveComment(H.actionResult)};
_.X.hideReportedCommentAction=function(H){H=_.p(H,ja3);var U=H==null?void 0:H.commentId,A;U&&((A=this.commentViewModel)==null?void 0:A.commentId)===U&&this.maybeRemoveComment(H.actionResult)};
_.X.maybeRemoveComment=function(H){H&&H.status==="STATUS_SUCCEEDED"&&(this.feedbackText=H.feedbackText||_.gH("Reply removed"),this.removed=!0)};
_.X.onTap=function(H){if(this.addHoverEffect&&!this.engagementPanel&&!_.ny(_.Lf(H)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var U;((U=window.getSelection())==null?0:U.toString().length)||_.l0({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.X.attached=function(){var H=this;this.isSubThread&&(this.expanded=!0);var U;(U=this.commentThreadHitbox)==null||U.addEventListener("mouseover",function(){H.threadHovered=!0});
var A;(A=this.commentThreadHitbox)==null||A.addEventListener("mouseout",function(){H.threadHovered=!1});
var M;(M=this.commentThreadHitbox)==null||M.addEventListener("click",function(){H.maybeToggleExpanded()})};
_.X.onDataChanged=function(){var H=_.S("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(H)&&this.set(H,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.X.maybeToggleExpanded=function(){var H,U,A,M=(H=this.data)==null?void 0:(U=H.replies)==null?void 0:(A=U.commentRepliesRenderer)==null?void 0:A.subThreads,W;(M==null?void 0:M.length)===1&&((W=_.p(M[0],_.Ea))==null?0:W.button)&&this.expanded||this.toggleExpanded()};
_.D5.Object.defineProperties(uC.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var H;return _.p((H=this.data)==null?void 0:H.commentViewModel,Y9w)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return _.S("web_delhi_comment_threads")&&!!((H=this.data)==null?0:(U=H.replies)==null?0:(A=U.commentRepliesRenderer)==null?0:A.subThreads)}}});
uC.prototype.onDataChanged=uC.prototype.onDataChanged;uC.prototype.onTap=uC.prototype.onTap;uC.prototype.onAppendContinuationItemsActionFinished=uC.prototype.onAppendContinuationItemsActionFinished;uC.prototype.onPushedCreateCommentReply=uC.prototype.onPushedCreateCommentReply;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],uC.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],uC.prototype,"ytdReduxBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],uC.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],uC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],uC.prototype,"addHoverEffect",void 0);_.G([_.y(),_.q("design:type",Object)],uC.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],uC.prototype,"useSmallAvatars",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],uC.prototype,"scrollingEnabled",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],uC.prototype,"isSubThread",void 0);_.G([_.hG(".thread-hitbox"),_.q("design:type",HTMLElement)],uC.prototype,"commentThreadHitbox",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],uC.prototype,"threadHovered",void 0);_.G([_.hG("#comment"),_.q("design:type",HTMLElement)],uC.prototype,"commentElement",void 0);
_.G([_.y(),_.q("design:type",Object)],uC.prototype,"expanded",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],uC.prototype,"removed",void 0);_.G([_.y(),_.q("design:type",Object)],uC.prototype,"feedbackText",void 0);_.G([_.y(),_.q("design:type",Array)],uC.prototype,"addedReplies",void 0);_.G([_.y({selector:dR0,selectorArgs:["commentViewModel.commentKey"]}),_.q("design:type",Object)],uC.prototype,"commentEntity",void 0);
_.G([_.Gl("yt-pushed-create-comment-reply"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],uC.prototype,"onPushedCreateCommentReply",null);_.G([_.Gl("yt-append-continuation-items-action-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uC.prototype,"onAppendContinuationItemsActionFinished",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],uC.prototype,"commentViewModel",null);
_.G([_.a("data.replies.commentRepliesRenderer.subThreads"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],uC.prototype,"hasSubThreading",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],uC.prototype,"engagementPanel",void 0);_.G([_.Gl("tap"),_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],uC.prototype,"onTap",null);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uC.prototype,"onDataChanged",null);_.G([_.dX({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],uC);
_.e(uC,"ytd-comment-thread-renderer",function(){if(i7y!==void 0)return i7y;var H=document.createElement("template");_.E(H,'\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<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return i7y=H},{mode:2});var b7p;var ZE=function(){var H=_.B.apply(this,arguments)||this;H.compactHeader=_.S("web_watch_compact_comments_header");H.hidePanelButton=!1;H.isPostSchedulingEnabled=_.S("enable_post_scheduling");H.hasFinishedStamping=!1;H.JSC$16364_handleOpenPostCommentDialogActionAfterStamp=!1;H.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return H};
_.R(ZE,_.B);_.X=ZE.prototype;
_.X.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"}}}};
_.X.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.X.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16364_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.X.onYtServiceRequestSent=function(H,U){if(!_.S("kevlar_command_handler")&&U.actions)for(H=0;H<U.actions.length;H++){var A=U.actions[H];_.p(A,H3y)&&_.c4(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.p(A,H3y))}};
_.X.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var H;if(this.getPrefilledBackstagePostDialog((H=this.data)==null?void 0:H.actions)){_.c4(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var U=_.c4(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;U&&_.rV(this,function(){U.focus();U.openDialog&&U.openDialog()})}}else this.hasActionsChange=!0};
_.X.computeIsBackstage=function(H){return H};
_.X.onYtCommentboxDismiss=function(){_.c4(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.X.removePrefilledDialog=function(H){if(H==null?0:H.actions){for(var U=H.actions.length-1;U>=0;U--){var A=void 0;((A=_.p(H.actions[U],Kgn))==null?0:A.dialog)&&delete H.actions[U]}this.set("data",void 0);this.set("data",H)}};
_.X.getPrefilledBackstagePostDialog=function(H){if(H)for(var U=0;U<H.length;U++){var A=H[U],M=void 0;if((M=_.p(A,Kgn))==null?0:M.dialog)return _.p(A,Kgn).dialog}return null};
_.X.computeBackstagePostDialog=function(H){return H&&(this.getPrefilledBackstagePostDialog(H.actions)||H.createRenderer)};
_.X.dataChanged=function(){if(this.data){var H=this.data.customEmojis,U=this.data.unicodeEmojisUrl;_.Fn.clear();U&&_.Q8n(_.Fn,U);H&&_.Fn.load(H)}};
_.X.handleSignalActionOpenPostCommentDialogAction=function(){var H=_.c4(this.hostElement).querySelector("ytd-comment-simplebox-renderer");H?H.openDialog():this.JSC$16364_handleOpenPostCommentDialogActionAfterStamp=!0};
_.X.onPostHeaderTap=function(){var H;((H=this.data)==null?0:H.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.D5.Object.defineProperties(ZE.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.S("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M,W,w,d;return!this.hidePanelButton&&_.S("kevlar_watch_comments_panel_button")&&((d=_.p((H=this.data)==null?void 0:(U=H.sortMenu)==null?void 0:(A=U.sortFilterSubMenuRenderer)==null?void 0:(M=A.subMenuItems)==null?void 0:(W=M[0])==null?void 0:(w=W.serviceEndpoint)==null?void 0:w.commandMetadata,_.Y2))==null?void 0:d.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.hP("MINIPLAYER_EXPAND_LABEL"),text:_.Nh(_.hP("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
ZE.prototype.dataChanged=ZE.prototype.dataChanged;ZE.prototype.onYtCommentboxDismiss=ZE.prototype.onYtCommentboxDismiss;ZE.prototype.observePrefilledBackstagePostDialog=ZE.prototype.observePrefilledBackstagePostDialog;ZE.prototype.onYtServiceRequestSent=ZE.prototype.onYtServiceRequestSent;ZE.prototype.onStampFinished=ZE.prototype.onStampFinished;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ZE.prototype,"ytComponentBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],ZE.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ZE.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ZE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ZE.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],ZE.prototype,"compactHeader",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],ZE.prototype,"engagementPanel",void 0);_.G([_.y(),_.q("design:type",Object)],ZE.prototype,"hidePanelButton",void 0);_.G([_.y({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.q("design:type",Boolean)],ZE.prototype,"isBackstage",void 0);_.G([_.y({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.q("design:type",Object)],ZE.prototype,"backstagePostDialog",void 0);
_.G([_.y(),_.q("design:type",Object)],ZE.prototype,"isPostSchedulingEnabled",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data","showCommentsPanelButton"),_.q("design:type",Object),_.q("design:paramtypes",[])],ZE.prototype,"useSpaceBetween",null);_.G([_.y({reflectToAttribute:!0}),_.a("data","hidePanelButton"),_.q("design:type",Object),_.q("design:paramtypes",[])],ZE.prototype,"showCommentsPanelButton",null);
_.G([_.a("data","showCommentsPanelButton"),_.q("design:type",Object),_.q("design:paramtypes",[])],ZE.prototype,"commentsPanelButtonData",null);_.G([_.Gl("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ZE.prototype,"onStampFinished",null);_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],ZE.prototype,"onYtServiceRequestSent",null);
_.G([_.Ya("data.actions"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ZE.prototype,"observePrefilledBackstagePostDialog",null);_.G([_.Gl("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ZE.prototype,"onYtCommentboxDismiss",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ZE.prototype,"dataChanged",null);
_.G([_.dX({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],ZE);
_.e(ZE,"ytd-comments-header-renderer",function(){if(b7p!==void 0)return b7p;var H=document.createElement("template");_.E(H,'\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" on-click="onPostHeaderTap" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return b7p=H},{mode:1});var d02;var fC=function(){return _.B.apply(this,arguments)||this};
_.R(fC,_.B);_.G([_.y(),_.q("design:type",Object)],fC.prototype,"data",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],fC.prototype,"ytRendererBehavior",void 0);_.G([_.dX({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],fC);
_.e(fC,"ytd-destination-button-renderer",function(){if(d02!==void 0)return d02;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return d02=H},{mode:1});var O73;var JS=function(){var H=_.B.apply(this,arguments)||this;H.isRichGrid=!1;H.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return H};
_.R(JS,_.B);_.X=JS.prototype;_.X.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.X.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.X.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.X.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var H;if((H=this.data)==null||!H.isExpanded){H=this.hostElement.clientWidth;var U;if(H&&(U=this.data)!=null&&U.destinationButtons){U=Math.floor((H+4)/214);H=this.data.destinationButtons.length;var A=Math.ceil(H/U);this.fullyVisibleRows=H%U===1&&A===2?1:Math.min(A,2);this.isShowMoreVisible=this.fullyVisibleRows<A}}}};
_.X.updateRichGridDestinationButtonsVisibility=function(){var H,U;if(this.isRichGrid&&((H=this.data)==null||!H.isExpanded)&&(U=this.data)!=null&&U.destinationButtons){H=this.richGridItemsPerRow+1;U=this.data.destinationButtons.length;var A=Math.ceil(U/H);this.fullyVisibleRows=U%H===1&&A===2?1:Math.min(A,2);this.isShowMoreVisible=this.fullyVisibleRows<A}};
_.X.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
JS.prototype.updateRichGridDestinationButtonsVisibility=JS.prototype.updateRichGridDestinationButtonsVisibility;_.G([_.y(),_.q("design:type",Object)],JS.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Number)],JS.prototype,"fullyVisibleRows",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],JS.prototype,"isShowMoreVisible",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],JS.prototype,"isRichGrid",void 0);
_.G([_.y({selector:_.Xz,value:0}),_.q("design:type",Number)],JS.prototype,"richGridItemsPerRow",void 0);_.G([_.y(),_.q("design:type",Object)],JS.prototype,"gridStateActionMap",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],JS.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],JS.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],JS.prototype,"ytdReduxBehavior",void 0);_.G([_.Ya("data","richGridItemsPerRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],JS.prototype,"updateRichGridDestinationButtonsVisibility",null);_.G([_.dX({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],JS);
_.e(JS,"ytd-destination-shelf-renderer",function(){if(O73!==void 0)return O73;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return O73=H},{mode:1});var utK;var KC=function(){return _.B.apply(this,arguments)||this};
_.R(KC,_.B);KC.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"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],KC.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],KC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],KC.prototype,"data",void 0);_.G([_.dX({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],KC);
_.e(KC,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(utK!==void 0)return utK;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return utK=H},{mode:1});var Z7w;var oX=function(){var H=_.B.apply(this,arguments)||this;H.disableAnimation=!1;H.isSlimlineSurvey=!1;H.isSlimlineSurveyFollowUp=!1;H.isShortsStyle=!1;return H};
_.R(oX,_.B);oX.prototype.onTap=function(H){H.preventDefault();this.data&&_.cg(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.D5.Object.defineProperties(oX.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 H,U,A,M,W;return((H=this.data)==null?0:H.checked)?(U=this.data)==null?void 0:(A=U.onStateIcon)==null?void 0:A.iconType:(M=this.data)==null?void 0:(W=M.defaultStateIcon)==null?void 0:W.iconType}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],oX.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],oX.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],oX.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],oX.prototype,"disableAnimation",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],oX.prototype,"isSlimlineSurvey",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],oX.prototype,"isSlimlineSurveyFollowUp",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],oX.prototype,"isShortsStyle",void 0);_.G([_.a("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],oX.prototype,"isAnimatedIcon",null);
_.G([_.a("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.q("design:type",Number),_.q("design:paramtypes",[])],oX.prototype,"iconSize",null);_.G([_.a("isShortsStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],oX.prototype,"isDarkTheme",null);_.G([_.a("data.checked"),_.q("design:type",Object),_.q("design:paramtypes",[])],oX.prototype,"icon",null);_.G([_.dX({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],oX);
_.e(oX,"ytd-rating-survey-option-renderer",function(){if(Z7w!==void 0)return Z7w;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Z7w=H},{mode:2});var fry;var Fm=function(){var H=_.B.apply(this,arguments)||this;H.firstResponseText=null;H.lastResponseText=null;H.selectedNonStarOption=null;H.hideOptions=!1;H.hideUndoButton=!0;H.disableAnimation=!1;H.showResponseRangeText=!1;H.selectedRatingIndex=-1;H.isSlimlineSurvey=!1;H.isSlimlineSurveyFollowUp=!1;H.isShortsStyle=!1;H.slimlineSurveyRatingSelectedIndex=-1;return H};
_.R(Fm,_.B);_.X=Fm.prototype;_.X.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.X.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.X.onOptionChange=function(H,U){var A=this;H=U.onStateIcon&&U.defaultStateIcon&&U.onStateIcon.iconType===U.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(d,O){d.responseText===U.responseText?A.isSlimlineSurvey?(A.selectedRatingIndex=O,A.ytdReduxBehavior.dispatch(oTh(O))):(A.setSurveyOptionValue(O,!0,"checked"),A.setSurveyOptionValue(O,!0,"selected")):(A.setSurveyOptionValue(O,!1,"checked"),A.setSurveyOptionValue(O,
!1,"selected"))});
else if(H)this.selectedNonStarOption=U,this.hideOptions=!0;else{var M=this.ytRendererBehavior.getSimpleString(U.responseText),W=!0;this.getOptionRenderers().forEach(function(d,O){A.setSurveyOptionValue(O,W,"checked");A.setSurveyOptionValue(O,!1,"selected");A.ytRendererBehavior.getSimpleString(d.responseText)===M&&(W=!1,A.setSurveyOptionValue(O,!0,"selected"))})}H=U.responseEndpoint;
var w;U.followUpCommand&&(w=_.p(U.followUpCommand,XYB));this.isSlimlineSurvey?(this.resetComponent(),_.yr(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.yr(this.hostElement,"ytd-inline-survey-rating-select-action",[H,w])};
_.X.showSelectedOption=function(){var H=this;_.Fl.addJob(function(){var U=H.getOptionRenderers()[H.slimlineSurveyRatingSelectedIndex];H.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),U)},8,100)};
_.X.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(H){var U;return(U=_.p(H,bZz))!=null?U:{}}):[]};
_.X.onUndoClick=function(){this.resetComponent();_.yr(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.X.setSurveyOptionValue=function(H,U,A){this.notifyPath("data.ratings."+H+".ratingSurveyOptionRenderer."+A);this.set("data.ratings."+H+".ratingSurveyOptionRenderer."+A,U)};
_.X.resetComponent=function(){var H=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var U=this.getOptionRenderers(),A,M;this.firstResponseText=(M=(A=U[0])==null?void 0:A.responseText)!=null?M:null;var W,w;this.lastResponseText=(w=(W=U[U.length-1])==null?void 0:W.responseText)!=null?w:null;U.forEach(function(d,O){H.setSurveyOptionValue(O,!1,"checked");H.setSurveyOptionValue(O,!1,"selected")})};
_.D5.Object.defineProperties(Fm.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
Fm.prototype.onOptionChange=Fm.prototype.onOptionChange;Fm.prototype.dataChanged=Fm.prototype.dataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Fm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Fm.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Fm.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Object)],Fm.prototype,"firstResponseText",void 0);_.G([_.y(),_.q("design:type",Object)],Fm.prototype,"lastResponseText",void 0);_.G([_.y(),_.q("design:type",Object)],Fm.prototype,"selectedNonStarOption",void 0);_.G([_.y(),_.q("design:type",Object)],Fm.prototype,"hideOptions",void 0);_.G([_.y(),_.q("design:type",Object)],Fm.prototype,"hideUndoButton",void 0);_.G([_.y(),_.q("design:type",Object)],Fm.prototype,"disableAnimation",void 0);
_.G([_.y(),_.q("design:type",Object)],Fm.prototype,"showResponseRangeText",void 0);_.G([_.y(),_.q("design:type",Object)],Fm.prototype,"selectedRatingIndex",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Fm.prototype,"isSlimlineSurvey",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Fm.prototype,"isSlimlineSurveyFollowUp",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Fm.prototype,"isShortsStyle",void 0);_.G([_.y({selector:function(H){return H.ui.slimlineSurveyRatingSelectedIndex}}),
_.q("design:type",Object)],Fm.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.G([_.a("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Fm.prototype,"isSingleSelect",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Fm.prototype,"dataChanged",null);
_.G([_.Gl("ytd-rating-survey-option-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],Fm.prototype,"onOptionChange",null);_.G([_.dX({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],Fm);
_.e(Fm,"ytd-rating-survey-renderer",function(){if(fry!==void 0)return fry;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return fry=H},{mode:1});var Jo3;var K0m;var owh;var LWc=(e5.FIRSTDAYOFWEEK+1)%7,F0g=function(H,U,A,M){var W="";if(M.selection&&nH7(M.selection))y8(H,M.selection)&&(W+=" selected");else if(M.selection&&NRc(M.selection)){var w=M.selection.selectionState||"START_DATE";y8(H,M.selection.start)&&(W+=" period-start ",w==="START_DATE"&&(W+="selected"));y8(H,M.selection.end)&&(W+=" period-end ",w==="END_DATE"&&(W+="selected"));Bq(H,M.selection.start)||Bq(M.selection.end,H)||(W+=" highlighted")}if(Bq(U,M.start)||Bq(M.end,U))W+=" disabled";M.circleToday&&
y8(U,A)&&(W+=" today");return W};var PE=function(){return _.B.apply(this,arguments)||this};
_.R(PE,_.B);_.X=PE.prototype;_.X.attached=function(){var H=this;_.rV(this,function(){H.JSC$16398_calendarMain.scrollHeight>0&&(H.calendarConfig.selection?H.scrollToDate(St4(H.calendarConfig.selection)):H.scrollToDate(H.calendarConfig.end))})};
_.X.updateSelection=function(H){H=Ruh(Object.assign({},this.calendarConfig,{selection:H}),F0g);this.splice.apply(this,["renderData.months",0,H.length].concat(_.vI(H)))};
_.X.scrollToDate=function(H){this.renderData&&(H=EHE(H,this.renderData),H!==void 0&&this.JSC$16398_calendarMain.scrollToIndex(H))};
_.X.scrollToNextMonth=function(){this.JSC$16398_calendarMain.scrollToIndex(this.JSC$16398_calendarMain.firstVisibleIndex+1)};
_.X.scrollToPrevMonth=function(){this.JSC$16398_calendarMain.firstVisibleIndex===0&&this.JSC$16398_calendarMain.scrollTo(0,0);this.JSC$16398_calendarMain.scrollToIndex(this.JSC$16398_calendarMain.firstVisibleIndex-1)};
_.X.handleDayClick=function(H){_.yr(this.hostElement,"ytd-calendar-date-clicked",[H.model.day.date])};
_.X.handleDayMouseDown=function(H){H.preventDefault();_.yr(this.hostElement,"ytd-calendar-date-mousedown",[H.model.day.date])};
_.X.handleDayMouseUp=function(H){_.yr(this.hostElement,"ytd-calendar-date-mouseup",[H.model.day.date])};
_.X.handleDayMouseEnter=function(H){H.preventDefault();_.yr(this.hostElement,"ytd-calendar-date-mouseenter",[H.model.day.date])};
_.X.handleDayMouseLeave=function(H){_.yr(this.hostElement,"ytd-calendar-date-mouseleave",[H.model.day.date])};
_.D5.Object.defineProperties(PE.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var H=this.calendarConfig,U=F0g;U=U===void 0?F0g:U;for(var A=[],M=0;M<7;M++)A.push(e5.NARROWWEEKDAYS[(M+LWc)%7]);return{months:Ruh(H,U),daysOfWeekLabel:A}}}});
_.G([_.y(),_.q("design:type",Object)],PE.prototype,"calendarConfig",void 0);_.G([_.hG("#calendar-main"),_.q("design:type",Object)],PE.prototype,"JSC$16398_calendarMain",void 0);_.G([_.a("calendarConfig"),_.q("design:type",Object),_.q("design:paramtypes",[])],PE.prototype,"renderData",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],PE);
_.e(PE,"ytd-scrollable-calendar",function(){if(owh!==void 0)return owh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return owh=H},{mode:2});var Pl2;var sFg;var sX=function(){var H=_.B.apply(this,arguments)||this;H.hideCharCounter=!1;H.hideLabel=!1;H.noLabelFloat=!1;H.autoValidate=!0;H.invalid=!1;H.disabled=!1;H.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return H};
_.R(sX,_.B);_.X=sX.prototype;_.X.reset=function(H){this.value=H&&this.data?this.data.value=H:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.X.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.X.focusTextInput=function(){this.input.focus()};
_.X.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()};
_.X.valueChanged=function(){var H,U;if(((H=this.data)==null?0:H.value)||((U=this.data)==null?void 0:U.value)==="")this.value=this.data.value;else{var A;((A=this.data)==null?void 0:A.value)!==void 0||this.value||(this.value="")}};
_.X.computeLabel=function(H,U){return U?"":_.Sp(H)};
_.X.computeAriaLabel=function(H,U){return U?_.Sp(H):""};
_.X.computeErrorMessage=function(H,U,A,M){return!H&&U?A||this.strings.REQUIRED_LABEL:_.bFh(_.Sp(M))};
_.X.computeType=function(H){return H==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.X.onTextValueChanged=function(H){this.value=H.detail.value;var U;(U=this.onValueChanged)==null||U.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.X.handleUpdateTextInputFormFieldRendererCommand=function(H){(H=_.p(H,gik))&&this.data&&this.data.id===H.id&&(H.invalid!==void 0&&(this.invalid=H.invalid),H.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",H.invalidValueErrorMessage))};
_.X.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("value-changed",this.value))};
_.X.updateInvalidFromBinding=function(H){this.invalid=H.detail.value};
_.D5.Object.defineProperties(sX.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var H;return!((H=this.data)==null||!H.isMultiline)}}});
sX.prototype.valueChangedForBinding=sX.prototype.valueChangedForBinding;sX.prototype.valueChanged=sX.prototype.valueChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],sX.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],sX.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],sX.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],sX.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],sX.prototype,"value",void 0);_.G([_.y(),_.q("design:type",String)],sX.prototype,"pattern",void 0);_.G([_.y(),_.q("design:type",String)],sX.prototype,"errorMessage",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],sX.prototype,"componentStyle",void 0);_.G([_.y(),_.q("design:type",Object)],sX.prototype,"hideCharCounter",void 0);
_.G([_.y(),_.q("design:type",Object)],sX.prototype,"hideLabel",void 0);_.G([_.y(),_.q("design:type",Object)],sX.prototype,"noLabelFloat",void 0);_.G([_.y(),_.q("design:type",Function)],sX.prototype,"onValueChanged",void 0);_.G([_.y(),_.q("design:type",Boolean)],sX.prototype,"isMultilineOverride",void 0);_.G([_.y(),_.q("design:type",Object)],sX.prototype,"autoValidate",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],sX.prototype,"invalid",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],sX.prototype,"disabled",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],sX.prototype,"enableOverlayTheme",void 0);_.G([_.y({value:{REQUIRED_LABEL:_.hP("REQUIRED_LABEL",void 0,"Required")}}),_.q("design:type",Object)],sX.prototype,"strings",void 0);_.G([_.hG("#input"),_.q("design:type",Object)],sX.prototype,"input",void 0);
_.G([_.a("data","isMultilineOverride"),_.q("design:type",Object),_.q("design:paramtypes",[])],sX.prototype,"isMultiline",null);_.G([_.jk("data.value"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sX.prototype,"valueChanged",null);_.G([_.Ya("value"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sX.prototype,"valueChangedForBinding",null);_.G([_.b0({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],sX);
_.e(sX,"yt-text-input-form-field-renderer",function(){if(sFg===void 0){var H=document.createElement("template");_.E(H,'\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="" disabled="[[disabled]]" 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]]" disabled="[[disabled]]" 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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;Pl2===void 0&&(Pl2=document.createElement("template"));var M=Pl2;A.call(U,M.content.cloneNode(!0),H.content.firstChild);sFg=H}H=sFg;return H},{mode:2});var nC=function(){var H=_.B.apply(this,arguments)||this;H.data=void 0;H.selectionState="START_DATE";H.isStartDateInvalid=!1;H.isEndDateInvalid=!1;H.autoapply=!1;H.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 H};
_.R(nC,_.B);_.X=nC.prototype;_.X.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"}}}}};
_.X.focus=function(){this.startDateInput.focus()};
_.X.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:r7(this.data.selection.start),end:r7(this.data.selection.end)})};
_.X.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.X.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.U$(this.selectionState)}};
_.X.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.X.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.X.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.X.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var H=this.calendar.calendarConfig,U=H.end;H=gHh({start:H.start,end:this.endDate||U},this.startDateInput.value||"");this.isStartDateInvalid=!H.isValid;H.isValid&&(H=H.value,this.selection=this.endDate?{start:H,end:this.endDate}:H,this.calendar.scrollToDate(H));this.updateInvalidState()}};
_.X.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var H=this.calendar.calendarConfig,U=H.start;H=gHh({start:this.startDate||U,end:H.end},this.endDateInput.value||"");this.isEndDateInvalid=!H.isValid;H.isValid&&(H=H.value,this.selection={start:this.startDate,end:H},this.calendar.scrollToDate(H));this.updateInvalidState()}};
_.X.handleCalendarDateClicked=function(H){var U=this.selection&&St4(this.selection),A=this.selection&&pf_(this.selection);U&&!Bq(H,U)&&this.selectionState==="END_DATE"?(this.selection={start:U,end:H},this.selectionState="START_DATE"):(A&&!Bq(A,H)?this.selection={start:H,end:A}:this.selection=H,this.selectionState="END_DATE")};
_.X.handleCalendarDateMouseDown=function(H){this.selection&&!nH7(this.selection)&&(this.dragPivot=y8(H,this.selection.start)?this.selection.end:y8(H,this.selection.end)?this.selection.start:H)};
_.X.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.X.handleCalendarDateMouseEnter=function(H){this.dragPivot&&(this.selection={start:function(U,A){return Bq(U,A)?U:A}(this.dragPivot,H),
end:function(U,A){return Bq(U,A)?A:U}(this.dragPivot,H)},this.dragPivot||(this.selectionState="START_DATE"))};
_.X.handleCalendarDateMouseLeave=function(){};
_.X.handleCalendarSubmitDateRange=function(){this.selection&&!nH7(this.selection)&&_.yr(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.X.updateInvalidState=function(){var H=function(U,A){A?U.setAttribute("invalid",""):U.removeAttribute("invalid")};
H(this.startDateInput,this.isStartDateInvalid);H(this.endDateInput,this.isEndDateInvalid)};
_.X.updateDateStrings=function(){this.selection&&(nH7(this.selection)?s7K(this.selection):(s7K(this.selection.start),s7K(this.selection.end)))};
_.X.updateCalendarSelection=function(H){this.calendar.updateSelection(Object.assign({},H,{selectionState:this.selectionState}))};
_.X.updateIsStartDateInvalidFromBinding=function(H){this.isStartDateInvalid=H.detail.value};
_.X.updateIsEndDateInvalidFromBinding=function(H){this.isEndDateInvalid=H.detail.value};
_.X.updateStartDateStringFromBinding=function(){};
_.X.updateEndDateStringFromBinding=function(){};
_.D5.Object.defineProperties(nC.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:r7(this.data.dateRangeStart),end:r7(this.data.dateRangeEnd),selection:{start:r7(this.data.selection.start),end:r7(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&St4(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&pf_(this.selection)}}});
nC.prototype.resetTextboxes=nC.prototype.resetTextboxes;nC.prototype.observeSelection=nC.prototype.observeSelection;nC.prototype.dataChanged=nC.prototype.dataChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],nC.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],nC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.hG("#calendar"),_.q("design:type",Object)],nC.prototype,"calendar",void 0);
_.G([_.hG("#start-date"),_.q("design:type",Object)],nC.prototype,"startDateInput",void 0);_.G([_.hG("#end-date"),_.q("design:type",Object)],nC.prototype,"endDateInput",void 0);_.G([_.y(),_.q("design:type",Object)],nC.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],nC.prototype,"selection",void 0);_.G([_.y(),_.q("design:type",String)],nC.prototype,"selectionState",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],nC.prototype,"calendarConfig",null);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],nC.prototype,"errorMessage",null);_.G([_.a("selection"),_.q("design:type",Object),_.q("design:paramtypes",[])],nC.prototype,"startDate",null);_.G([_.a("selection"),_.q("design:type",Object),_.q("design:paramtypes",[])],nC.prototype,"endDate",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nC.prototype,"dataChanged",null);
_.G([_.Ya("selection","selectionState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nC.prototype,"observeSelection",null);_.G([_.Ya("selectionState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nC.prototype,"resetTextboxes",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],nC);
_.e(nC,"ytd-date-period-picker-renderer",function(){if(K0m!==void 0)return K0m;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return K0m=H},{mode:1});var NB=function(){var H=_.B.apply(this,arguments)||this;var U={};H.actionMap=(U["ytd-date-period-picker-apply"]="handleDateRangeUpdated",U);return H};
_.R(NB,_.B);NB.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
NB.prototype.handleDateRangeUpdated=function(){};
_.G([_.y(),_.q("design:type",Object)],NB.prototype,"data",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],NB.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],NB.prototype,"rendererstamperBehavior",void 0);_.G([_.dX({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],NB);
_.e(NB,"ytd-report-history-section-header-renderer",function(){if(Jo3!==void 0)return Jo3;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Jo3=H},{mode:1});var nwm;var Nqy;var SOK;var SY=function(){return _.B.apply(this,arguments)||this};
_.R(SY,_.B);_.D5.Object.defineProperties(SY.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.data)==null?0:(U=H.icon)==null?0:U.iconType)?_.eq(this.data.icon.iconType):""}}});
_.G([_.y(),_.q("design:type",Object)],SY.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",String),_.q("design:paramtypes",[])],SY.prototype,"icon",null);_.G([_.dX({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],SY);
_.e(SY,"ytd-report-history-table-text-cell-renderer",function(){if(SOK!==void 0)return SOK;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return SOK=H},{mode:1});var pC=function(){return _.B.apply(this,arguments)||this};
_.R(pC,_.B);pC.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],pC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],pC.prototype,"data",void 0);_.G([_.dX({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],pC);
_.e(pC,"ytd-report-history-table-reason-cell-renderer",function(){if(Nqy!==void 0)return Nqy;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Nqy=H},{mode:1});var LC=function(){return _.B.apply(this,arguments)||this};
_.R(LC,_.B);LC.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"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],LC.prototype,"rendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],LC.prototype,"data",void 0);_.G([_.dX({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],LC);
_.e(LC,"ytd-report-history-table-cell-renderer",function(){if(nwm!==void 0)return nwm;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
return nwm=H},{mode:1});var pmB;var RX=function(){var H=_.B.apply(this,arguments)||this;H.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 H};
_.R(RX,_.B);RX.prototype.onDataChanged=function(){var H;if((H=this.data)==null?0:H.style)this.componentStyle=this.getStyleName(this.data.style)};
RX.prototype.getCellForColumn=function(H){return this.cells.find(function(U){var A;return((A=_.p(U==null?void 0:U.cell,uaw)||_.p(U==null?void 0:U.cell,OZh))==null?void 0:A.columnId)===H.type})};
RX.prototype.getClassForColumn=function(H){switch(H){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
RX.prototype.getStyleName=function(H){switch(H){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.D5.Object.defineProperties(RX.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var H;return(((H=this.data)==null?void 0:H.cells)||[]).map(function(U){return _.p(U,d$w)})}}});
RX.prototype.onDataChanged=RX.prototype.onDataChanged;_.G([_.y(),_.q("design:type",Object)],RX.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Array)],RX.prototype,"columnRenderData",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],RX.prototype,"componentStyle",void 0);_.G([_.a("data"),_.q("design:type",Array),_.q("design:paramtypes",[])],RX.prototype,"cells",null);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],RX.prototype,"onDataChanged",null);_.G([_.dX({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],RX);
_.e(RX,"ytd-report-history-table-row-renderer",function(){if(pmB!==void 0)return pmB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return pmB=H},{mode:1});var L0H;var RcH;var aPt={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},xwc={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var EX=function(){return _.B.apply(this,arguments)||this};
_.R(EX,_.B);EX.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"}}}}}};
EX.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.D5.Object.defineProperties(EX.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?0:H.columns)?yX4(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return tF7(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var H=this.tableSpec,U=aPt;U=U===void 0?xwc:U;U=cX_(H.columnDimensions,H.columnsToShow||[],U);H=0;U=_.b(U);for(var A=U.next();!A.done;A=U.next())A=A.value,H+=A.minWidth+A.paddingLeft+A.paddingRight;return H}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.G([_.g(_.RG),_.q("design:type",Object)],EX.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],EX.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],EX.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],EX.prototype,"tableSpec",null);_.G([_.a("tableSpec"),_.q("design:type",Array),_.q("design:paramtypes",[])],EX.prototype,"columnRenderData",null);
_.G([_.a("tableSpec"),_.q("design:type",Number),_.q("design:paramtypes",[])],EX.prototype,"totalMinWidth",null);_.G([_.a("totalMinWidth"),_.q("design:type",String),_.q("design:paramtypes",[])],EX.prototype,"tableWidthStyle",null);_.G([_.dX({is:"ytd-table-renderer",disableElementRegistration:!0})],EX);
_.e(EX,"ytd-table-renderer",function(){if(RcH!==void 0)return RcH;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return RcH=H},{mode:1});var m8=function(){return _.B.apply(this,arguments)||this};
_.R(m8,_.B);m8.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}}}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],m8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],m8.prototype,"data",void 0);_.G([_.dX({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],m8);
_.e(m8,"ytd-report-reason-history-modal-renderer",function(){if(L0H!==void 0)return L0H;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return L0H=H},{mode:1});var Ew2;var m0g;var gww;var gW=function(){return _.B.apply(this,arguments)||this};
_.R(gW,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],gW.prototype,"data",void 0);_.G([_.dX({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],gW);
_.e(gW,"ytd-profile-column-stats-entry-renderer",function(){if(gww!==void 0)return gww;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return gww=H},{mode:1});var arn;var aX=function(){return _.B.apply(this,arguments)||this};
_.R(aX,_.B);aX.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],aX.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],aX.prototype,"data",void 0);_.G([_.dX({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],aX);
_.e(aX,"ytd-profile-column-stats-renderer",function(){if(arn!==void 0)return arn;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return arn=H},{mode:1});var x0y;var xu=function(){return _.B.apply(this,arguments)||this};
_.R(xu,_.B);_.D5.Object.defineProperties(xu.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null||!H.useThumbnailSize)return 80;var U,A;H=(U=this.data)==null?void 0:(A=U.thumbnail)==null?void 0:A.thumbnails;var M;return H&&((M=H[0])==null?void 0:M.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null||!H.useThumbnailSize)return 80;var U,A;H=(U=this.data)==null?void 0:(A=U.thumbnail)==null?void 0:A.thumbnails;var M;return H&&((M=H[0])==null?void 0:M.height)||80}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],xu.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],xu.prototype,"componentStyle",void 0);_.G([_.a("data.useThumbnailSize"),_.q("design:type",Object),_.q("design:paramtypes",[])],xu.prototype,"thumbnailWidth",null);
_.G([_.a("data.useThumbnailSize"),_.q("design:type",Object),_.q("design:paramtypes",[])],xu.prototype,"thumbnailHeight",null);_.G([_.dX({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],xu);
_.e(xu,"ytd-profile-column-user-info-renderer",function(){if(x0y!==void 0)return x0y;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return x0y=H},{mode:1});var zM=function(){return _.B.apply(this,arguments)||this};
_.R(zM,_.B);zM.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]]"}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],zM.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],zM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],zM.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],zM.prototype,"componentStyle",void 0);_.G([_.dX({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],zM);
_.e(zM,"ytd-profile-column-renderer",function(){if(m0g!==void 0)return m0g;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return m0g=H},{mode:1});var CC=function(){var H=_.B.apply(this,arguments)||this;H.componentStyle="NON_CENTERED_PROFILE";return H};
_.R(CC,_.B);CC.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
CC.prototype.getIcon=function(H){return H?"settings:"+H.toLowerCase():null};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],CC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],CC.prototype,"data",void 0);_.G([_.dX({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],CC);
_.e(CC,"ytd-page-introduction-renderer",function(){if(Ew2!==void 0)return Ew2;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Ew2=H},{mode:1});var zcg;var tS=function(){return _.B.apply(this,arguments)||this};
_.R(tS,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],tS.prototype,"data",void 0);_.G([_.dX({is:"ytd-report-description-renderer",disableElementRegistration:!0})],tS);
_.e(tS,"ytd-report-description-renderer",function(){if(zcg!==void 0)return zcg;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return zcg=H},{mode:1});var Cl3;var tTz;var cE=function(){return _.B.apply(this,arguments)||this};
_.R(cE,_.B);cE.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],cE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],cE.prototype,"data",void 0);_.G([_.dX({is:"ytd-video-report-renderer",disableElementRegistration:!0})],cE);
_.e(cE,"ytd-video-report-renderer",function(){if(tTz!==void 0)return tTz;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return tTz=H},{mode:1});var cor;_.Qm("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Qm("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var yc=function(){return _.B.apply(this,arguments)||this};
_.R(yc,_.B);yc.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]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
yc.prototype.computeMessageStyle=function(H){return H};
yc.prototype.computeButtonOverride=function(H){var U;if((H==null?0:(U=H.style)==null?0:U.value)&&H.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],yc.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],yc.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],yc.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],yc.prototype,"shelf",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],yc.prototype,"panel",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.q("design:type",Boolean)],yc.prototype,"componentStyle",void 0);_.G([_.y({computed:"computeButtonOverride(data)"}),_.q("design:type",Object)],yc.prototype,"buttonOverride",void 0);_.G([_.dX({is:"ytd-message-renderer",disableElementRegistration:!0})],yc);
_.e(yc,"ytd-message-renderer",function(){if(cor!==void 0)return cor;var H=document.createElement("template");_.E(H,'\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<div id="thumbnail" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return cor=H},{mode:1});var BE=function(){return _.B.apply(this,arguments)||this};
_.R(BE,_.B);BE.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"}}}};
BE.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
BE.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.D5.Object.defineProperties(BE.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var H,U;return!!(((H=this.data)==null?0:H.header)&&((U=this.data)==null?0:U.table))}}});
BE.prototype.onRequestError=BE.prototype.onRequestError;_.G([_.g(_.RG),_.q("design:type",Object)],BE.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],BE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],BE.prototype,"data",void 0);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],BE.prototype,"isUnifiedReportHistory",null);_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BE.prototype,"onRequestError",null);_.G([_.dX({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],BE);
_.e(BE,"ytd-report-history-section-renderer",function(){if(Cl3!==void 0)return Cl3;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Cl3=H},{mode:1});var yok;var rW=function(){var H=_.B.apply(this,arguments)||this;H.answerExpanded=!1;return H};
_.R(rW,_.B);rW.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],rW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],rW.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],rW.prototype,"answerExpanded",void 0);_.G([_.dX({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],rW);
_.e(rW,"ytd-handles-claiming-faq-renderer",function(){if(yok!==void 0)return yok;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return yok=H},{mode:1});var Bqm;var rom=function(){return _.B.apply(this,arguments)||this};
_.R(rom,_.B);_.G([_.y(),_.q("design:type",Object)],rom.prototype,"data",void 0);_.G([_.dX({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],rom);
_.e(rom,"ytd-handles-claiming-faq-section-renderer",function(){if(Bqm!==void 0)return Bqm;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Bqm=H},{mode:1});var ech;var eY=function(){var H=_.B.apply(this,arguments)||this;H.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";H.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";H.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";H.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";H.leftSquiggly=H.leftSquigglyLight;H.rightSquiggly=H.rightSquigglyLight;
H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};H.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return H};
_.R(eY,_.B);_.X=eY.prototype;_.X.updateLeftSquigglyStyle=function(){_.Dt(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.X.updateRightSquigglyStyle=function(){_.Dt(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.X.ready=function(){var H=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(H)};
_.X.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&(this.set("isDarkTheme",H),H?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.X.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
eY.prototype.updateRightSquigglyStyle=eY.prototype.updateRightSquigglyStyle;eY.prototype.updateLeftSquigglyStyle=eY.prototype.updateLeftSquigglyStyle;_.G([_.y(),_.q("design:type",Object)],eY.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],eY.prototype,"isDarkTheme",void 0);_.G([_.y(),_.q("design:type",String)],eY.prototype,"leftSquiggly",void 0);_.G([_.y(),_.q("design:type",String)],eY.prototype,"rightSquiggly",void 0);
_.G([_.Ya("leftSquiggly"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],eY.prototype,"updateLeftSquigglyStyle",null);_.G([_.Ya("rightSquiggly"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],eY.prototype,"updateRightSquigglyStyle",null);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],eY.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],eY.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],eY.prototype,"actionButtonOverride",void 0);_.G([_.dX({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],eY);
_.e(eY,"ytd-handles-claiming-header-renderer",function(){if(ech!==void 0)return ech;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return ech=H},{mode:1});var D0m;var DE=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};H.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";H.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";H.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";H.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
H.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";H.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";H.image0SquigglyBackground=H.image0LightSquigglyBackground;H.image1SquigglyBackground=H.image1LightSquigglyBackground;H.image3SquigglyBackground=H.image3LightSquigglyBackground;return H};
_.R(DE,_.B);_.X=DE.prototype;_.X.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.X.onDataChanged=function(){this.updateTitleAndImages()};
_.X.onThemeChanged=function(){this.updateTitleAndImages()};
_.X.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&(this.isDarkTheme=H)};
_.X.updateImage0SquigglyBackground=function(){_.Dt(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.X.updateImage1SquigglyBackground=function(){_.Dt(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.X.updateImage3SquigglyBackground=function(){_.Dt(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.X.updateTitleAndImages=function(){var H,U;((H=this.data)==null?void 0:(U=H.titleImages)==null?void 0:U.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))};
DE.prototype.updateImage3SquigglyBackground=DE.prototype.updateImage3SquigglyBackground;DE.prototype.updateImage1SquigglyBackground=DE.prototype.updateImage1SquigglyBackground;DE.prototype.updateImage0SquigglyBackground=DE.prototype.updateImage0SquigglyBackground;DE.prototype.onThemeChanged=DE.prototype.onThemeChanged;DE.prototype.onDataChanged=DE.prototype.onDataChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],DE.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],DE.prototype,"isDarkTheme",void 0);_.G([_.y(),_.q("design:type",Object)],DE.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],DE.prototype,"title0",void 0);_.G([_.y(),_.q("design:type",Object)],DE.prototype,"title1",void 0);_.G([_.y(),_.q("design:type",Object)],DE.prototype,"title2",void 0);_.G([_.y(),_.q("design:type",Object)],DE.prototype,"title3",void 0);
_.G([_.y(),_.q("design:type",Object)],DE.prototype,"title4",void 0);_.G([_.y(),_.q("design:type",Object)],DE.prototype,"image0",void 0);_.G([_.y(),_.q("design:type",Object)],DE.prototype,"image1",void 0);_.G([_.y(),_.q("design:type",Object)],DE.prototype,"image2",void 0);_.G([_.y(),_.q("design:type",Object)],DE.prototype,"image3",void 0);_.G([_.y(),_.q("design:type",Object)],DE.prototype,"image4",void 0);_.G([_.y(),_.q("design:type",String)],DE.prototype,"image0SquigglyBackground",void 0);
_.G([_.y(),_.q("design:type",String)],DE.prototype,"image1SquigglyBackground",void 0);_.G([_.y(),_.q("design:type",String)],DE.prototype,"image3SquigglyBackground",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],DE.prototype,"onDataChanged",null);_.G([_.Ya("isDarkTheme"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],DE.prototype,"onThemeChanged",null);
_.G([_.Ya("image0SquigglyBackground"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],DE.prototype,"updateImage0SquigglyBackground",null);_.G([_.Ya("image1SquigglyBackground"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],DE.prototype,"updateImage1SquigglyBackground",null);
_.G([_.Ya("image3SquigglyBackground"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],DE.prototype,"updateImage3SquigglyBackground",null);_.G([_.dX({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],DE);
_.e(DE,"ytd-handles-claiming-title-images-section-renderer",function(){if(D0m!==void 0)return D0m;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return D0m=H},{mode:1});var $02;var $u=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.R($u,_.B);$u.prototype.ready=function(){var H=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(H)};
$u.prototype.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&this.set("isDarkTheme",H)};
$u.prototype.onCopyButtonClick=function(){var H=this,U,A,M;return _.u(function(W){return(U=H.data)!=null&&U.primaryChannelUrl?W.yield(navigator.clipboard.writeText(((A=H.data)==null?0:A.encodedChannelUrl)?H.data.encodedChannelUrl:"https://"+_.Sp((M=H.data)==null?void 0:M.primaryChannelUrl)),0):W.jumpTo(0)})};
_.G([_.y(),_.q("design:type",Object)],$u.prototype,"data",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],$u.prototype,"ytComponentBehavior",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],$u.prototype,"isDarkTheme",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],$u.prototype,"ytActionHandlerBehavior",void 0);_.G([_.dX({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],$u);
_.e($u,"ytd-handles-claiming-update-social-renderer",function(){if($02!==void 0)return $02;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return $02=H},{mode:1});var lrK;var lC=function(){var H=_.B.apply(this,arguments)||this;H.JSC$16492_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";H.JSC$16492_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};H.squigglyBackground=H.JSC$16492_squigglyBackgroundLight;return H};
_.R(lC,_.B);lC.prototype.updateSquigglyBackgroundStyle=function(){_.Dt(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
lC.prototype.ready=function(){var H=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",H);this.squigglyBackground=H?this.JSC$16492_squigglyBackgroundDark:this.JSC$16492_squigglyBackgroundLight};
lC.prototype.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&(this.set("isDarkTheme",H),this.squigglyBackground=H?this.JSC$16492_squigglyBackgroundDark:this.JSC$16492_squigglyBackgroundLight)};
lC.prototype.updateSquigglyBackgroundStyle=lC.prototype.updateSquigglyBackgroundStyle;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],lC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],lC.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],lC.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],lC.prototype,"isDarkTheme",void 0);_.G([_.y(),_.q("design:type",String)],lC.prototype,"squigglyBackground",void 0);_.G([_.Ya("squigglyBackground"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lC.prototype,"updateSquigglyBackgroundStyle",null);_.G([_.dX({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],lC);
_.e(lC,"ytd-handles-claiming-vanity-info-renderer",function(){if(lrK!==void 0)return lrK;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return lrK=H},{mode:1});var GW2;var GM=function(){var H=_.B.apply(this,arguments)||this;H.JSC$16495_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";H.JSC$16495_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";H.squigglyBackground=H.JSC$16495_squigglyBackgroundLight;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.R(GM,_.B);_.X=GM.prototype;_.X.ready=function(){var H=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(H)};
_.X.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&(this.set("isDarkTheme",H),this.squigglyBackground=H?this.JSC$16495_squigglyBackgroundDark:this.JSC$16495_squigglyBackgroundLight)};
_.X.updateSquigglyBackgroundStyle=function(){_.Dt(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.X.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.X.detached=function(){this.stop()};
_.X.stop=function(){this.playerElement.stop()};
_.X.setupVideoPlayer=function(){var H=this,U,A;return _.u(function(M){U=H.data.videoId;A="http://i1.ytimg.com/vi/"+U+"/maxresdefault.jpg";H.playerElement.loadVideoWithPlayerVars({video_id:U,iurlhq:A});_.DO(M)})};
GM.prototype.onDataChanged=GM.prototype.onDataChanged;GM.prototype.updateSquigglyBackgroundStyle=GM.prototype.updateSquigglyBackgroundStyle;_.G([_.y({value:!1}),_.q("design:type",Boolean)],GM.prototype,"isDarkTheme",void 0);_.G([_.y(),_.q("design:type",String)],GM.prototype,"squigglyBackground",void 0);_.G([_.hG("#player"),_.q("design:type",Object)],GM.prototype,"playerElement",void 0);_.G([_.y(),_.q("design:type",Object)],GM.prototype,"data",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],GM.prototype,"ytActionHandlerBehavior",void 0);_.G([_.Ya("squigglyBackground"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GM.prototype,"updateSquigglyBackgroundStyle",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GM.prototype,"onDataChanged",null);
_.G([_.dX({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],GM);
_.e(GM,"ytd-handles-claiming-video-item-renderer",function(){if(GW2!==void 0)return GW2;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return GW2=H},{mode:1});var YOn;var qB=function(){var H=_.v4.apply(this,arguments)||this;H.dragging=!1;H.dragMouseStart=0;H.dragOffsetStart=0;H.containerWidthDiff=0;H.boundPrevClick=function(){H.set("offset",Yu(H,H.offset-(H.scrollDistance||320)))};
H.boundNextClick=function(){H.set("offset",Yu(H,H.offset+(H.scrollDistance||320)))};
H.boundScrollContainerMouseDown=function(U){H.dragMouseStart=U.clientX;H.dragOffsetStart=H.offset;H.dragging=!0};
H.boundScrollContainerDrag=function(U){H.dragging&&H.set("offset",Yu(H,H.dragOffsetStart-(U.clientX-H.dragMouseStart)))};
H.boundMouseUp=function(){H.onMouseUp()};
H.boundWheelScroll=function(U){var A=0;Math.abs(U.deltaX)>=Math.abs(U.deltaY)?A=U.deltaX:U.shiftKey&&(A=U.deltaY);A!==0&&(H.offset+=A,U.stopPropagation(),U.preventDefault())};
H.boundChipCloudChipScrollIntoView=function(U){(U=U.detail)&&H.scrollChipIntoView(U)};
return H};
_.R(qB,_.v4);qB.prototype.attached=function(){var H=_.c4(this.hostElement).querySelector("#scroll-container");H.addEventListener("wheel",this.boundWheelScroll);H.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);H.style.touchAction="pan-y";H.addEventListener("pointerdown",this.boundScrollContainerMouseDown);H.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
qB.prototype.detached=function(){var H=_.c4(this.hostElement).querySelector("#scroll-container");H.removeEventListener("wheel",this.boundWheelScroll);H.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);H.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);H.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
qB.prototype.reset=function(){this.set("offset",0);_.rV(this,this.setContainerWidthDiff);_.rV(this,this.setButtonsState)};
var Yu=function(H,U){return Math.min(Math.max(U,0),H.containerWidthDiff)};
_.X=qB.prototype;_.X.onMouseUp=function(){this.dragging=!1};
_.X.transformContainer=function(){this.offset=Yu(this,this.offset);var H=_.gD("HTML_DIR")==="rtl"?"":"-";_.c4(this.hostElement).querySelector("#chips").style.transform="translateX("+H+this.offset+"px)";_.rV(this,this.setButtonsState)};
_.X.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=Yu(this,this.offset));this.atStart=this.offset<=0};
_.X.setContainerWidthDiff=function(){var H=_.c4(this.hostElement).querySelector("#scroll-container"),U=_.c4(this.hostElement).querySelector("#chips");H&&U&&(this.containerWidthDiff=U.clientWidth-H.clientWidth)};
_.X.scrollChipIntoView=function(H){var U=_.c4(this.hostElement).querySelector("#scroll-container");if(U){var A=this.atStart?0:106,M=this.atEnd?0:106;H.offsetLeft<this.offset+A?this.offset=Yu(this,H.offsetLeft-A):H.offsetLeft+H.clientWidth>this.offset+U.clientWidth-M&&(this.offset=Yu(this,H.offsetLeft+H.clientWidth+M-U.clientWidth))}};
qB.prototype.transformContainer=qB.prototype.transformContainer;_.G([_.y({value:0}),_.q("design:type",Number)],qB.prototype,"offset",void 0);_.G([_.y({value:!0,reflectToAttribute:!0}),_.q("design:type",Boolean)],qB.prototype,"atStart",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],qB.prototype,"atEnd",void 0);_.G([_.y(),_.q("design:type",Number)],qB.prototype,"scrollDistance",void 0);
_.G([_.Ya("offset"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qB.prototype,"transformContainer",null);_.G([_.Tl()],qB);var qOp;var hc2;_.hS=_.r(function(H){var U=H.data;H=_.b(_.iB(!1,void 0,"bob3J"));var A=H.next().value,M=H.next().value;H=function(w){if((U==null?void 0:U().state)!==1){var d,O;(O=(d=U()).onTap)==null||O.call(d,w)}};
var W={};return _.Z("chip-shape",{class:"ytChipShapeHost","on:focusin":_.c$(function(){var w=_.lx().resolve(_.$V(_.af));if(w){M(w.isKeyBoardInUse());var d,O;(O=(d=U()).onFocusIn)==null||O.call(d)}return!1}),
"on:focusout":_.c$(function(){M(!1);return!1})},_.Z(kW3,{shouldWrapInButton:function(){return U().type!==2},
selected:function(){return U().state===0},
onClick:H,isDropdown:function(){return U().type===1},
accessibilityLabel:function(){return U().type===1?void 0:U().accessibilityLabel}},_.Z("div",{class:_.CG("ytChipShapeChip",function(){a:switch(U==null?void 0:U().state){case 0:var w="ytChipShapeActive";
break a;case 1:w="ytChipShapeDisabled";break a;default:w="ytChipShapeInactive"}return w},function(){var w=U().type===1||U().type===2,d=U();
return w||d!=null&&d.startIcon?d==null||!d.startIcon||d!=null&&d.text?w?"ytChipShapeEndIconPadding":(d==null?0:d.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var w=U();
if((w==null?void 0:w.style)===0&&(w==null?void 0:w.state)===0){var d;w=((d=_.lx().resolve(_.$V(_.qF)))==null?0:d())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else w="";return w},(W.ytChipShapeFocused=function(){var w;
return A()&&((w=U())==null?void 0:w.state)!==1},W))},_.Z(_.K,{cond:function(){return U().startIcon},
then:function(){return _.Z(_.er,{icon:function(){var w;return(w=U())==null?void 0:w.startIcon},
className:_.CG(function(){return U().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var w=U(),d,O=(d=_.lx().resolve(_.$V(_.qF)))==null?void 0:d();
return(w==null?void 0:w.style)===0&&(w==null?void 0:w.state)===0&&O?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return U().text},_.Z(vwg,{shape:U,
onClick:H}),_.Z(_.zm,{model:{borderRadius:"8px"}}))))},"Qc");
_.hS.idomCompat=!0;var kW3=_.r(function(H){var U=_.c$(function(A){H.onClick(A);return!1});
return _.Z(_.K,{cond:H.shouldWrapInButton,then:function(){return _.Z("button",{class:"ytChipShapeButtonReset","on:click":U,role:function(){return H.isDropdown()?"combobox":"tab"},
"aria-label":H.accessibilityLabel,"aria-selected":H.selected},H.children)},
else:function(){return H.children}})},"Rc"),vwg=_.r(function(H){var U=H.shape;
var A=H.onClick;var M=_.c$(function(W){A(W);return!1});
return _.Z(_.P5,null,_.Z(_.KA,{when:function(){return U().type===1}},function(){return _.Z(_.er,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.Z(_.KA,{when:function(){return U().type===2}},function(){return _.Z("button",{class:"ytChipShapeButtonReset",
"on:click":M},_.Z(_.er,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.Z(_.KA,{when:function(){return U().type===0}},function(){return _.Z(_.ve,null)}))},"Sc");_.LG(_.hS,"chip-shape",{props:{data:_.sY}});var ku=function(){var H=_.B.apply(this,arguments)||this;H.disableDeselectEvent=!1;H.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return H};
_.R(ku,_.B);_.X=ku.prototype;_.X.onSelectChipCommand=function(H){if(!this.selected&&this.data&&(H=_.p(H,Peg),H.targetId&&H.targetId===this.data.targetId))this.onTap()};
_.X.onFilterChipTransformCommand=function(H){if(!this.selected&&this.data){var U;(H=(U=_.p(H,O3g))==null?void 0:U.chipUniqueId)&&H===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.X.dataChanged=function(){var H=this;_.rV(this,function(){H.data&&H.data.isSelected&&!H.selected&&(H.scrollChipIntoView(),H.onTap())})};
_.X.computeChipStyle=function(H){return H!=null?H:"STYLE_DEFAULT"};
_.X.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint?_.yr(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.yr(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.X.onFocus=function(){var H=_.lx().resolve(_.$V(_.af));H&&H.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.X.scrollChipIntoView=function(){_.cg(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.D5.Object.defineProperties(ku.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.icon)}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return GEc({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
ku.prototype.onFocus=ku.prototype.onFocus;ku.prototype.onTap=ku.prototype.onTap;ku.prototype.dataChanged=ku.prototype.dataChanged;_.G([_.g(_.qy),_.q("design:type",Object)],ku.prototype,"ironButtonState",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ku.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],ku.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ku.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.le),_.q("design:type",Object)],ku.prototype,"ironA11yKeysBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ku.prototype,"disableDeselectEvent",void 0);_.G([_.y(),_.q("design:type",Object)],ku.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data.icon"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ku.prototype,"hasIcon",null);
_.G([_.y({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.q("design:type",String)],ku.prototype,"chipStyle",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],ku.prototype,"selected",void 0);_.G([_.a("data","selected"),_.q("design:type",Object),_.q("design:paramtypes",[])],ku.prototype,"chipShapeData",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ku.prototype,"dataChanged",null);
_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ku.prototype,"onTap",null);_.G([_.Gl("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ku.prototype,"onFocus",null);_.G([_.b0({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],ku);
_.e(ku,"yt-chip-cloud-chip-renderer",function(){if(hc2===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;qOp===void 0&&(qOp=document.createElement("template"));var M=qOp;A.call(U,M.content.cloneNode(!0),H.content.firstChild);hc2=H}H=hc2;return H},{mode:2});var huM=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Tqr=_.r(function(H){function U(){if(huM.has(H.data().displayType)){var J=!M(),F;if((F=H.disableDeselection)==null||!F.call(H)||J){H.data().selected=J;F=Object.assign({},d(),{selected:J});O(F);var P;(P=H.callback)==null||P.call(H,F,J)}}}
var A=_.nA("chip-view-model",function(J){var F=H.data().tooltipTargetId,P=_.q5();F&&_.Y6(P,F,J);return function(){G1(P,J)}}),M=function(){var J,F;
return!!(((J=H.selected)==null?void 0:J.call(H))!==void 0?(F=H.selected)==null?0:F.call(H):d().selected)},W=_.b(_.md(H.data)),w=W.next().value;
W=W.next().value;var d=w,O=W,f=_.$Y(qt8,function(){return H.data().chipEntityKey||""});
return _.Z("chip-view-model",{class:"ytChipViewModelHost",el:A},_.Z(_.hS,{data:function(){var J,F=Object.assign({},d(),{selected:M()}),P=f(),n=(J=H.disableDeselection)==null?void 0:J.call(H);a:switch(F.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":J=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":J=3;break a;default:J=0}return{text:(P==null?void 0:P.text)||F.text,state:F.disabled?1:F.selected?0:2,type:J,onTap:kEt(F,A,U,
n),accessibilityLabel:F.accessibilityLabel||F.text}}}))},"Tc");
_.Tqr.idomCompat={callbacks:{callback:!0}};_.vE=_.r(function(H){H=_.Ec(H,{nextButtonStyle:0});var U=H.data,A=H.callback,M=H.selectionBehavior,W=H.disableChipsScrollAnimation,w=H.nextButtonStyle,d=_.NU("div");H=_.b(_.iB(!0,void 0,"VwW6Jc"));var O=H.next().value,f=H.next().value;H=_.b(_.iB(!1,void 0,"OIoagd"));var J=H.next().value,F=H.next().value,P=!1,n=0,N=function(){switch(w()){case 0:return"ytChipsShelfViewModelGradientButton";case 1:return"ytChipsShelfViewModelFloatingButton";default:return"ytChipsShelfViewModelGradientButton"}};
_.pA(function(){f(z());F(c())});
H=_.b(_.md(function(){var dK={};return U().autoselectedChipIndex!=null?(dK[U().autoselectedChipIndex]=!0,dK):{}}));
var L=H.next().value,m=H.next().value,z=function(){var dK=d.value;return dK==null||dK.scrollLeft-1<=0},c=function(){var dK=d.value;
return dK==null?!1:dK.scrollLeft+1>=(dK==null?NaN:dK.scrollWidth)-(dK==null?NaN:dK.clientWidth)},C=function(){return U().isHorizontallyScrollable},v=function(dK){d.value!=null&&(_.gD("HTML_DIR")==="rtl"&&(dK=-dK),d.value.scrollBy({left:dK,
behavior:(W==null?0:W())?"instant":"smooth"}))},Y=function(){v(-320)},D=function(){v(320)},h=_.c$(function(dK){P=!0;
n=dK.clientX}),T=_.c$(function(dK){if(P){dK=dK.clientX;
var SN=dK-n;n=dK;var o_;(o_=d.value)==null||o_.scrollBy({left:-SN})}}),WF=_.c$(function(){var dK=z(),SN=c();
dK!==O()&&f(dK);SN!==J()&&F(SN)});
_.B1("pointerup",function(){P&&(P=!1)});
return _.Z("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.Z(_.D8,{contentId:function(){return U().contentId},
useModernStyle:!0},function(){var dK={},SN={};return _.Z("div",null,_.Z(_.K,{cond:function(){return U().title},
then:function(){return _.Z("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.Z("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return U().title}),_.Z(_.YY,{data:function(){return U().overflowButton}},{buttonViewModel:_.yJ}))}}),_.Z("div",{class:_.CG("ytChipsShelfViewModelChipsShelfContent",N)},_.Z(_.K,{cond:function(){return U().previousButton},
then:function(){var o_={};return _.Z("div",{class:_.CG("ytChipsShelfViewModelLeftArrowContainer",(o_.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return O()},o_))},_.Z(_.YY,{data:function(){return U().previousButton}},{buttonViewModel:function(PF){return _.Z(_.yJ,{data:PF.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:Y})}}))}}),_.Z("div",{el:d,
"on:pointerdown":h,"on:pointermove":T,"on:scroll":WF,class:_.CG("ytChipsShelfViewModelChipsScrollContainer",(dK.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=C,dK))},_.Z("div",{class:_.CG("ytChipsShelfViewModelChipsContainer",(SN.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=C,SN.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,SN)),role:"tablist"},_.Z(_.YY,{data:function(){return U().contents}},{chipViewModel:function(o_,PF){return _.Z("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.Z(_.Tqr,{data:o_.data,
callback:function(BF,kc){var G8=PF(),Pr,Z3=(Pr=M==null?void 0:M())!=null?Pr:0;Z3===1||Z3===2?(Pr={},m((Pr[G8]=kc,Pr))):Z3===0&&(Pr={},m(Object.assign({},L(),(Pr[G8]=kc,Pr))));A==null||A(BF,kc,G8)},
disableDeselection:function(){return(M==null?void 0:M())===1},
selected:function(){return!!L()[PF()]}}))}}))),_.Z(_.K,{cond:function(){return U().nextButton},
then:function(){var o_={};return _.Z("div",{class:_.CG("ytChipsShelfViewModelRightArrowContainer",(o_.ytChipsShelfViewModelRightArrowContainerIsHidden=J,o_))},_.Z(_.YY,{data:function(){return U().nextButton}},{buttonViewModel:function(PF){return _.Z(_.yJ,{data:PF.data,
className:"ytChipsShelfViewModelRightArrow",onClick:D})}}))}})))}))},"Vc");
_.vE.idomCompat={callbacks:{callback:!0}};var jFg=_.r(function(H){var U=H.data;var A=H.showChips;var M=H.isUpdateInProgress;var W=H.chipClickCallback;H=_.b(_.iB(!1,void 0,"uth3se"));var w=H.next().value,d=H.next().value;H=_.b(_.iB(!1,void 0,"qED0bb"));var O=H.next().value,f=H.next().value,J=function(){var P,n;return!((P=U())==null?0:P.responseMessage)&&!((n=U())==null||!n.chipsShelf)},F=void 0;
_.Em(function(){f(!0);var P=(A()||J())&&!M();requestAnimationFrame(function(){d(P)});
F&&clearTimeout(F);F=setTimeout(function(){f(!1)},300)},"OBQBmf");
_.m4(function(){F&&clearTimeout(F)});
H={};return _.Z("ytd-ai-response-box-view-model",{class:_.CG("ytdAiResponseBoxViewModelHost")},_.Z("div",{class:_.CG("ytdAiResponseBoxViewModelResponseMessageContainer",(H.ytdAiResponseBoxViewModelResponseMessageContainerHidden=w,H.ytdAiResponseBoxViewModelNotShown=function(){return w()&&!O()},H))},_.Z(_.K,{cond:M,
then:function(){return _.Z("div",null,_.Z(_.Pb,{text:function(){return U().responsePendingMessage}}))},
else:function(){return _.Z(_.ve,null,_.Z(_.K,{cond:function(){var P;return(P=U().responseMessageIcon)==null?void 0:P.iconType},
then:function(P){return _.Z("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.Z(_.er,{icon:P}))}}),_.Z("div",null,_.Z(_.Pb,{text:function(){return U().responseMessage}})))}})),_.Z(_.YY,{data:function(){return U().chipsShelf}},{chipsShelfViewModel:function(P){P=P.data;
var n={};return _.Z("div",{class:_.CG("ytdAiResponseBoxViewModelChipsShelfContainer",(n.ytdAiResponseBoxViewModelChipsShelfContainerShown=w,n.ytdAiResponseBoxViewModelNotShown=function(){return!w()&&!O()},n))},_.Z(_.vE,{data:P,
selectionBehavior:3,nextButtonStyle:1,callback:W}))}}))},"Xc");var Ir2;Ir2=Object.assign({},{continuation:wvB,download:QXw,canvas:k4c,reportChannelAbuse:uOK,ui:Txh,share:Zuk,talkToRecs:KlH,watch:u1,ypc:NLk,radioButtonGroup:qNF,collabInviteLink:G4V},Wlk,{voiceSearch:QpN,shorts:OC});_.QFz=Ho(Ir2);_.VTy=U3(_.QFz);_.H2m=(0,_.VTy)(_.QFz.talkToRecs,{talkToRecsStateSelector:function(H){return H}});var A3h=_.r(function(H){var U=_.b((0,_.S8)(H.data)).next().value,A=_.Ja(function(){var rK;a:{if(rK=U().onUpdateText)if(rK=_.p(rK,_.X1)){var FB;rK=(FB=_.p(rK,f7n))==null?void 0:FB.stepId;break a}rK=void 0}return rK},void 0,"olO2Rd");
H=_.b(_.iB(!1,void 0,"QCzl5d"));var M=H.next().value,W=H.next().value;H=_.b(_.iB(!1,void 0,"cQ7jrd"));var w=H.next().value,d=H.next().value;H=_.b(YtK());var O=H.next().value;H=H.next().value;var f=_.Gk(_.H2m.talkToRecsStateSelector),J=_.b(_.iB("",void 0,"ry2Eac")),F=J.next().value,P=J.next().value;J=_.b(_.iB(!1,void 0,"EwWXmb"));var n=J.next().value,N=J.next().value,L=_.b(_.iB(!1,void 0,"hORmtb"));J=L.next().value;var m=L.next().value;L=_.b(_.iB(!1,void 0,"fBzwv"));var z=L.next().value,c=L.next().value;
L=_.b(_.iB(!1,void 0,"BCC4Zc"));var C=L.next().value,v=L.next().value,Y=_.nA("div");L=_.b(_.iB(void 0,void 0,"Xvb7gd"));var D=L.next().value,h=L.next().value,T=void 0,WF=function(rK){rK!==M()&&(d(!0),W(rK),T&&clearTimeout(T),T=setTimeout(function(){d(!1)},300))},dK=function(){if(D()!==void 0){var rK=D();
WF(window.scrollY>rK)}},SN=function(){var rK;
h((rK=Y.value)==null?void 0:rK.offsetHeight);O("yt-feed-filter-chip-bar-resize")},o_="";
_.Em(function(){o_=F()},"UJeAbb");
_.LA(function(){var rK,FB,T2,xK=(T2=(FB=vH8(A(),f()))!=null?FB:(rK=U().textInputValue)==null?void 0:rK.content)!=null?T2:"";P(xK);BF(xK);N(!!U().welcomeBannerTitle&&!xK);SN();document.addEventListener("scroll",dK);_.m4(function(){document.removeEventListener("scroll",dK);T&&clearTimeout(T)})});
_.Em(function(){n();SN()},"AySmPb");
L=_.c$(function(){c(!0);m(!0)});
var PF=_.c$(function(){m(!1)});
_.Em(function(){var rK=U();c(!1);v(!1);var FB,T2;((T2=_.p((FB=rK.contents)==null?void 0:FB[0],yq3))==null?0:T2.responseMessageIcon)?P(Uiz.cachedUserQuery):Uiz.cachedUserQuery=o_},"k7MS8d");
var BF=function(rK){var FB=U().onUpdateText;FB&&_.uj(FB,{form:{userQuery:rK}})},kc=_.Mb(function(rK){BF(rK)},150),G8=_.c$(function(rK){rK=rK.target.value;
P(rK);kc(rK);return!1});
_.Em(function(){var rK=vH8(A(),f());rK!==void 0&&rK!==o_&&P(rK)},"RLNF0b");
var Pr=function(){v(!0);N(!1)},Z3=function(){var rK=_.p(U().submitButton,_.ot);
if(rK==null?0:rK.trackingParams){var FB=_.IS(rK.trackingParams),T2=_.XK();T2&&FB&&_.S9(T2,FB,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}if(rK=rK==null?void 0:rK.onTap)_.uj(rK),Pr()},Yc=_.c$(function(rK){rK.key==="Enter"&&(BF(rK.target.value.trim()),Z3());
return!1}),sz=function(){Z3()},Ry=_.c$(function(){O("yt-feed-customization-scroll-up")}),oy={},aY={},im={},Kh={};
return _.Z("ytd-feed-customization-form-view-model",{class:_.CG("ytdFeedCustomizationFormViewModelHost",(oy.ytdFeedCustomizationFormViewModelHostCollapsed=M,oy)),el:_.sB(H)},_.Z("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer",el:Y},_.Z("div",{class:_.CG("ytdFeedCustomizationFormViewModelExpandedContent",(aY.ytdFeedCustomizationFormViewModelNotShown=function(){return M()&&!w()},aY))},_.Z(_.K,{cond:function(){return U().disclaimer},
then:function(){return _.Z("div",{class:"ytdFeedCustomizationFormViewModelDisclaimer"},_.Z(_.Pb,{text:function(){return U().disclaimer}}))}}),_.Z(_.K,{cond:n,
then:function(){return _.Z("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerContainer"},_.Z("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerTitle"},_.Z(_.Pb,{text:function(){return U().welcomeBannerTitle}})),_.Z("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle"},_.Z(_.Pb,{text:function(){return U().welcomeBannerSubtitle}})))}}),_.Z("div",{class:_.CG("ytdFeedCustomizationFormViewModelInputContainer",(im.ytdFeedCustomizationFormViewModelInputContainerHighlighted=
J,im))},_.Z("input",{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var rK;return(rK=U().textInputPlaceholder)==null?void 0:rK.content},
"prop:value":F,"on:focus":L,"on:blur":PF,"on:input":G8,"on:keyup":Yc,maxlength:300,disabled:C}),_.Z(_.K,{cond:function(){return!!F()&&!C()},
then:function(){return _.Z(_.YY,{data:function(){return U().clearButton}},{buttonViewModel:function(rK){return _.Z("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.Z(_.yJ,{data:rK.data}))}})}}),_.Z(_.K,{cond:function(){return C()},
then:function(){return _.Z(_.YY,{data:function(){return U().inProgressButton}},{buttonViewModel:function(rK){return _.Z("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.Z(_.yJ,{data:rK.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.Z(_.YY,{data:function(){return U().submitButton}},{buttonViewModel:function(rK){return _.Z("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.Z(_.yJ,{data:rK.data,
onClick:Pr}))}})}}),_.Z(_.YY,{data:function(){return U().menuButton}},{buttonViewModel:function(rK){return _.Z("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.Z(_.yJ,{data:rK.data,
buttonOverrides:function(){return{disabled:C()}}}))}})),_.Z(_.YY,{data:function(){return U().contents}},{aiResponseBoxViewModel:function(rK){return _.Z("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.Z(jFg,{data:rK.data,
showChips:z,isUpdateInProgress:C,chipClickCallback:sz}))}})),_.Z("div",{class:_.CG("ytdFeedCustomizationFormViewModelCollapsedContent",(Kh.ytdFeedCustomizationFormViewModelNotShown=function(){return!M()&&!w()},Kh)),
"on:click":Ry},_.Z("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var rK;return F()||((rK=U().textInputPlaceholder)==null?void 0:rK.content)}))))},"bd"),MWz=function(){this.cachedUserQuery=""};
MWz.prototype.reset=function(){this.cachedUserQuery=""};
var Uiz=new MWz;_.LG(A3h,"ytd-feed-customization-form-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){var U=_.b((0,_.S8)(H.data)).next().value;return _.Z("yt-chip-content-loader-view-model",{class:"ytChipContentLoaderViewModelHost"},_.Z(_.YY,{data:function(){return U().content}},{feedCustomizationFormViewModel:function(A){return _.Z(A3h,{data:A.data})}}))},"cd"),"yt-chip-content-loader-view-model",{props:{data:_.sY}});var WNw=_.fl.persistentPanelVisibleSelector,TM=function(){var H=_.B.apply(this,arguments)||this;H.isDarkTheme=!1;H.notSticky=!1;H.transparentBackground=!1;H.shouldHide=!1;H.disableSticky=!1;H.fluidWidth=!1;H.isClipList=!1;H.defaultChipIndex=0;H.hasSelectedChipContent=!1;H.isPlaylist=!1;H.playlistVotingAnimationEnabled=_.S("web_enable_voting_animation");H.toolbarHeight=0;H.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.R(TM,_.B);_.X=TM.prototype;
_.X.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}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model"},chipContentLoaderViewModel:{component:"yt-chip-content-loader-view-model"}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.X.attached=function(){var H=this;document.addEventListener("scroll",_.lN(this,this.updateChipBarWidthAndTop));document.addEventListener("yt-feed-filter-chip-bar-resize",_.lN(this,this.onFeedFilterChipBarResize));this.isDarkTheme=document.documentElement.hasAttribute("dark");var U;this.toolbarHeight=((U=document.querySelector("ytd-masthead"))==null?void 0:U.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(A){H.handleIntersect(A)},{rootMargin:"-"+
(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){H.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.X.detached=function(){var H;(H=this.intersectionObserver)==null||H.disconnect();var U;(U=this.resizeObserver)==null||U.disconnect();document.removeEventListener("scroll",_.lN(this,this.updateChipBarWidthAndTop));document.removeEventListener("yt-feed-filter-chip-bar-resize",_.lN(this,this.onFeedFilterChipBarResize))};
_.X.dataChanged=function(){var H=this,U,A,M=(U=this.data)==null?void 0:(A=U.contents)==null?void 0:A.findIndex(function(w){var d;return!((d=_.p(w,L12))==null?0:d.navigationEndpoint)});
M&&(this.defaultChipIndex=M);this.updating=!0;var W=this.findSelectedChipIndex();this.selectedIndex!==W&&(this.selectedIndex=-1);_.rV(this,function(){H.selectedIndex=W;H.updateSelectedChipContent(H.selectedIndex);H.updating=!1;H.ytScrollableChipCloudBehavior.reset()})};
_.X.findSelectedChipIndex=function(){var H;if((H=this.data)==null||!H.contents)return 0;H=this.data.contents;for(var U=0;U<H.length;U++){var A=void 0;if((A=_.p(H[U],L12))==null?0:A.isSelected)return U}return 0};
_.X.computeStyle=function(H){return H};
_.X.handleChipCloudChipSelectAction=function(H){H=this.JSC$16542_chipsSelector.indexOf(H);H>-1&&(this.JSC$16542_chipsSelector.selectIndex(H),this.updateSelectedChipContent(H))};
_.X.updateSelectedChipContent=function(H){var U;if((U=this.data)==null||!U.contents||H<0||H>=this.data.contents.length)this.selectedChipContent=void 0;else{var A;this.selectedChipContent=(A=_.p(this.data.contents[H],L12))==null?void 0:A.content}};
_.X.handleChipCloudChipDeselectAction=function(){if(_.S("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var H,U,A,M=(A=_.p((H=this.data)==null?void 0:(U=H.contents)==null?void 0:U[this.defaultChipIndex],L12))==null?void 0:A.navigationEndpoint;M&&_.yr(this.hostElement,"yt-browse-section-list-reload-endpoint",[M]);this.JSC$16542_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.X.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.X.onFeedFilterChipBarResize=function(){this.updateDynamicHeight()};
_.X.updateDynamicHeight=function(){var H=this;this.hasSelectedChipContent&&!this.notSticky?_.rV(this,function(){var U=_.c4(H.hostElement).querySelector("#chips-wrapper");U&&_.Dt(H.hostElement,{"--ytd-chips-bar-dynamic-height":U.clientHeight+"px"})}):_.Dt(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.X.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.X.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.X.onResize=function(){this.updateLayout()};
_.X.updateLayout=function(){var H=this.ytScrollableChipCloudBehavior;_.rV(H,H.setContainerWidthDiff);H=this.ytScrollableChipCloudBehavior;_.rV(H,H.setButtonsState)};
_.X.onDarkModeToggledAction=function(H){this.isDarkTheme=H};
_.X.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.X.handleIntersect=function(H){this.notSticky=this.isChannelPageGrid||this.disableSticky||H[0].intersectionRatio===1};
_.X.updateDimensions=function(){var H=this.ytRendererBehavior.parentComponent;if(H){var U,A=(U=H.headerElement)!=null?U:H;_.Dt(this.hostElement,{"--ytd-rich-grid-chips-bar-width":A.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.X.updateSelectedIndexFromBinding=function(H){this.selectedIndex=H.detail.value};
_.X.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var H;(H=this.sortFilterHeaderRendererElement)==null||H.setAttribute("is-playlist-page-with-filters","")}};
_.X.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(sVr(!this.notSticky))};
_.D5.Object.defineProperties(TM.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 H,U,A=(H=this.data)==null?void 0:(U=H.contents)==null?void 0:U.find(function(M){return _.p(M,a_h)});
return{sortFilterHeaderRenderer:_.p(A,a_h)}}}});
TM.prototype.dispatchChipBarIsSticky=TM.prototype.dispatchChipBarIsSticky;TM.prototype.isPlaylistPageChanged=TM.prototype.isPlaylistPageChanged;TM.prototype.updateChipBarWidthAndTop=TM.prototype.updateChipBarWidthAndTop;TM.prototype.onResize=TM.prototype.onResize;TM.prototype.onPersistentPanelVisibleChanged=TM.prototype.onPersistentPanelVisibleChanged;TM.prototype.onGuideIsExpandedChanged=TM.prototype.onGuideIsExpandedChanged;TM.prototype.updateDynamicHeight=TM.prototype.updateDynamicHeight;
TM.prototype.onSelectedChipContentChanged=TM.prototype.onSelectedChipContentChanged;TM.prototype.dataChanged=TM.prototype.dataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],TM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],TM.prototype,"actionHandlerBehavior",void 0);
_.G([_.g(_.Qo),_.q("design:type",Object)],TM.prototype,"ironResizableBehavior",void 0);_.G([_.g(),_.q("design:type",qB)],TM.prototype,"ytScrollableChipCloudBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],TM.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],TM.prototype,"data",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],TM.prototype,"selectedIndex",void 0);_.G([_.y({value:320}),_.q("design:type",Number)],TM.prototype,"scrollDistance",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],TM.prototype,"isDarkTheme",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],TM.prototype,"notSticky",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],TM.prototype,"transparentBackground",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.q("design:type",String)],TM.prototype,"componentStyle",void 0);
_.G([_.y({selector:_.u37}),_.q("design:type",Boolean)],TM.prototype,"guideIsExpanded",void 0);_.G([_.y({selector:WNw}),_.q("design:type",Boolean)],TM.prototype,"persistentPanelVisible",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],TM.prototype,"shouldHide",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],TM.prototype,"disableSticky",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],TM.prototype,"fluidWidth",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],TM.prototype,"isClipList",void 0);_.G([_.y(),_.q("design:type",Object)],TM.prototype,"defaultChipIndex",void 0);_.G([_.y(),_.q("design:type",Object)],TM.prototype,"selectedChipContent",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],TM.prototype,"hasSelectedChipContent",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],TM.prototype,"isPlaylist",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],TM.prototype,"playlistVotingAnimationEnabled",void 0);_.G([_.hG("#chips"),_.q("design:type",Object)],TM.prototype,"JSC$16542_chipsSelector",void 0);_.G([_.hG("ytd-sort-filter-header-renderer"),_.q("design:type",HTMLElement)],TM.prototype,"sortFilterHeaderRendererElement",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],TM.prototype,"updating",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TM.prototype,"dataChanged",null);_.G([_.Ya("selectedChipContent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TM.prototype,"onSelectedChipContentChanged",null);_.G([_.Ya("hasSelectedChipContent","notSticky"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TM.prototype,"updateDynamicHeight",null);
_.G([_.Ya("guideIsExpanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TM.prototype,"onGuideIsExpandedChanged",null);_.G([_.Ya("persistentPanelVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TM.prototype,"onPersistentPanelVisibleChanged",null);_.G([_.Gl("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TM.prototype,"onResize",null);
_.G([_.jk("isChannelPageGrid","disableSticky","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TM.prototype,"updateChipBarWidthAndTop",null);_.G([_.a("componentStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],TM.prototype,"isChannelPageGrid",null);_.G([_.a("componentStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],TM.prototype,"isHashtagLandingPage",null);
_.G([_.Ya("isPlaylistPage"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TM.prototype,"isPlaylistPageChanged",null);_.G([_.a("componentStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],TM.prototype,"isPlaylistPage",null);_.G([_.a("componentStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],TM.prototype,"isDisableDeselectEvent",null);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],TM.prototype,"sortFilterHeaderRendererData",null);_.G([_.y({reflectToAttribute:!0,selector:_.PQK}),_.q("design:type",String)],TM.prototype,"frostedGlassMode",void 0);_.G([_.Ya("notSticky"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TM.prototype,"dispatchChipBarIsSticky",null);_.G([_.dX({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],TM);
_.e(TM,"ytd-feed-filter-chip-bar-renderer",function(){if(YOn!==void 0)return YOn;var H=document.createElement("template");_.E(H,'\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 id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return YOn=H},{mode:1});var wMw;var XMH=_.r(function(H){var U=H.data;var A=H.buttonIndex;var M=H.selectedIndex;var W=H.onSelect;var w=function(){return A()===M()},d=function(){var O,f;
return(f=(O=U().text)==null?void 0:O.content)!=null?f:""};
H=_.VU();return _.Z("yt-toggleable-image-button-view-model",{class:function(){var O={};O=(O.toggleableImageButtonViewModelHost=!0,O[""]=!0,O.toggleableImageButtonViewModelSemiTransparent=M()!==-1&&!w(),O);return _.QU(O)},
tabindex:0,"aria-label":d,"aria-pressed":w,role:"button","on:keydown":H,"on:click":_.c$(function(){W(U().onSubmitCommand);return!1})},_.Z(_.K,{cond:function(){return U().logo},
then:function(O){return _.Z(_.nG,{data:O,className:function(){var f={};f=(f.toggleableImageButtonViewModelImage=!0,f.toggleableImageButtonViewModelCircularRadius=!(!U().backgroundColor||!U().backgroundColorDarkMode),f.toggleableImageButtonViewModelGradientRing=!!(w()&&U().backgroundColor&&U().backgroundColorDarkMode),f);return _.QU(f)},
alt:d,useWidth:!1,style:function(){if(w()&&U().backgroundColor&&U().backgroundColorDarkMode){var f=dn(Number(U().backgroundColorDarkMode),"1");var J=dn(Number(U().backgroundColor),"1");f="background: linear-gradient(180deg,"+f+","+J+") border-box;"}else f="";return f}})}}),_.Z(_.zm,{model:{borderRadius:"16px"}}),_.Z("p",{class:function(){var O={};
O=(O.toggleableImageButtonViewModelLabel=!0,O.toggleableImageButtonViewModelBoldText=w(),O);return _.QU(O)}},_.Z(_.Pb,{text:function(){return U().text}})))},"dd");
XMH.idomCompat=!0;var b2H=_.r(function(H){var U=H.data;H=_.b(_.iB({index:-1,command:{}},void 0,"GM3umb"));var A=H.next().value,M=H.next().value;return _.Z("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.Z("div",{class:"nudgeFormViewModelFormOptions"},_.Z(_.YY,{data:function(){return U().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(W,w){return _.Z(XMH,{data:W.data,buttonIndex:w,selectedIndex:function(){return A().index},
onSelect:function(d){M({index:w(),command:d})}})}})),_.Z(_.Pb,{text:function(){return U().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.Z("div",{class:"nudgeFormViewModelSubmit"},_.Z(_.YY,{data:function(){return U().submitButton}},{buttonViewModel:function(W){return _.Z(i2B,{data:W.data,
isDisabled:function(){return A().index===-1},
onClick:function(){_.uj(A().command)}})}})))},"ed");
b2H.idomCompat=!0;var i2B=_.r(function(H){var U=_.Ja(function(){return Object.assign({},H.data(),{state:H.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.Z(_.yJ,{data:U,onClick:H.onClick})},"fd");_.LG(b2H,"yt-nudge-form-view-model",{props:{data:_.sY}});var jY=function(){var H=_.B.apply(this,arguments)||this;H.roundedContainer=!0;H.buttonUpdate=_.S("web_modern_buttons");H.isDarkMode=!1;H.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return H};
_.R(jY,_.B);_.X=jY.prototype;_.X.computeNudgeStyle=function(H){return H?"modernized-nudge":""};
_.X.handleDarkModeToggledAction=function(H){this.isDarkMode=H};
_.X.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.X.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"}}}};
_.X.computeIsHorizontalButtons=function(H){return H?!!H.applyModernizedStyle&&!!H.enableHorizontalButtons&&!!H.secondaryButton:!1};
_.D5.Object.defineProperties(jY.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var H,U;return(U=(H=this.data)==null?void 0:H.backgroundStyle)!=null?U:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var H,U;return(U=(H=this.data)==null?void 0:H.contentsLocation)!=null?U:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null?0:H.lightIconImage)}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],jY.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],jY.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],jY.prototype,"actionHandlerBehavior",void 0);
_.G([_.y({reflectToAttribute:!0}),_.a("isHideEnclosingAction"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],jY.prototype,"isHidden",null);_.G([_.y(),_.q("design:type",Object)],jY.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jY.prototype,"roundedContainer",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jY.prototype,"buttonUpdate",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.q("design:type",String)],jY.prototype,"nudgeStyle",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data.trimStyle"),_.q("design:type",String),_.q("design:paramtypes",[])],jY.prototype,"trimStyle",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.backgroundStyle"),_.q("design:type",String),_.q("design:paramtypes",[])],jY.prototype,"backgroundStyle",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data.contentsLocation"),_.q("design:type",String),_.q("design:paramtypes",[])],jY.prototype,"contentsLocation",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.disableDropShadow"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],jY.prototype,"noShadow",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.lightIconImage"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],jY.prototype,"noIcon",null);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.q("design:type",Boolean)],jY.prototype,"isHorizontalButtons",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Object)],jY.prototype,"isDarkMode",void 0);_.G([_.dX({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],jY);
_.e(jY,"ytd-feed-nudge-renderer",function(){if(wMw!==void 0)return wMw;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return wMw=H},{mode:2});var diw;var O2k;var IX=function(){var H=_.B.apply(this,arguments)||this;H.collapsed=!1;H.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return H};
_.R(IX,_.B);IX.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"}}}};
IX.prototype.handleRatingSelect=function(){var H;((H=this.data)==null?0:H.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
IX.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],IX.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],IX.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],IX.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.uQ),_.q("design:type",Object)],IX.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],IX.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IX.prototype,"collapsed",void 0);_.G([_.dX({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],IX);
_.e(IX,"ytd-slimline-survey-renderer",function(){if(O2k!==void 0)return O2k;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return O2k=H},{mode:1});var uqk;var Qc=function(){return _.B.apply(this,arguments)||this};
_.R(Qc,_.B);Qc.prototype.maybeGetBackgroundColor=function(H){return this.isDarkMode?H.section2Color:H.section3Color};
Qc.prototype.colorPaletteChanged=function(){var H=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;H&&(H==null?0:H.secondaryTitleColor)&&this.maybeGetBackgroundColor(H)?(this.hostElement.style.backgroundColor=_.wn(this.maybeGetBackgroundColor(H)),this.hostElement.style.color=_.wn(H.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Qc.prototype.colorPaletteChanged=Qc.prototype.colorPaletteChanged;_.G([_.g(_.dF),_.q("design:type",Object)],Qc.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Qc.prototype,"data",void 0);_.G([_.y({selector:function(H){return H.ui.darkModeIsEnabled}}),
_.q("design:type",Boolean)],Qc.prototype,"isDarkMode",void 0);_.G([_.y(),_.q("design:type",Object)],Qc.prototype,"lightColorPalette",void 0);_.G([_.y(),_.q("design:type",Object)],Qc.prototype,"darkColorPalette",void 0);_.G([_.Ya("darkColorPalette","lightColorPalette","data","isDarkMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Qc.prototype,"colorPaletteChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Qc);
_.e(Qc,"ytd-endorsement-header-renderer",function(){if(uqk!==void 0)return uqk;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return uqk=H},{mode:1});_.LG(_.Od,"yt-decorated-avatar-view-model",{props:{data:_.sY,className:_.sY}});_.Vc=new _.g3("VIEW_TRANSITION_MANAGER_TOKEN");var Hv=function(){var H=_.B.apply(this,arguments)||this;H.fullHeight=_.S("web_rich_grid_media_full_height");H.showChannelAvatar=!0;H.hasPlaylistThumbnail=!1;H.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};H.registerThumbnailForPageTransition=function(){_.S("web_thumbnail_to_watch_transition")&&_.Z2z(_.lx().resolve(_.Vc),H.thumbnail)};
return H};
_.R(Hv,_.B);_.X=Hv.prototype;
_.X.configureRendererStamper=function(){return{lazyLoadMenu:T4,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:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.X.attached=function(){this.updateInlinePreviewHoverListeners()};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.shouldLazyLoadMenu=function(){var H=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.S("kevlar_modern_downloads_page")||!H};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16566_inlinePreviewHoverListener=iA({mediaRenderer:this,lockupElement:this.JSC$16566_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.X.getVideoPreviewOpts=function(){var H={},U;if((U=this.data)==null?0:U.multipleInlinePlaybackEndpoint)H=vH2;this.isRadio&&(H=kEH);return H};
_.X.clearInlinePreviewHoverListeners=function(){var H;(H=this.JSC$16566_inlinePreviewHoverListener)==null||Ri(H)};
_.X.getOwner=function(){var H,U,A;return((H=this.data)==null?void 0:(U=H.channelThumbnailSupportedRenderers)==null?void 0:U.channelThumbnailWithLinkRenderer)||_.p((A=this.data)==null?void 0:A.showProviderChannelThumbnail,Ngz)};
_.X.updateLockupSize=function(){var H;((H=this.getOwner())==null?0:H.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.X.getFeedbackEndpoint=function(H){if(_.p(H,_.i$))return H;var U,A;H=(A=(U=_.p(H,_.$2))==null?void 0:U.commands)!=null?A:[];U=_.b(H);for(A=U.next();!A.done;A=U.next())if(A=this.getFeedbackEndpoint(A.value))return A;return null};
_.X.computeNavigationEndpoint=function(H){return Fg8(H==null?void 0:H.navigationEndpoint)};
_.X.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var H=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(H)!==JSON.stringify(this.data)&&this.set("data",H)}};
_.X.onDataChanged=function(){var H=this,U=this.getOwner();if(U){this.set("data.owner",U);var A,M,W,w,d,O=((A=this.data)==null?void 0:(M=A.shortBylineText)==null?void 0:(W=M.runs)==null?void 0:(w=W[0])==null?void 0:w.text)||((d=U.name)==null?void 0:d.simpleText);this.set("data.owner.title",O)}var f,J,F,P,n,N;U=((f=this.data)==null?void 0:(J=f.thumbnailRenderer)==null?void 0:J.playlistVideoThumbnailRenderer)||((F=this.data)==null?void 0:(P=F.thumbnailRenderer)==null?void 0:P.playlistCustomThumbnailRenderer)||
((n=this.data)==null?void 0:(N=n.thumbnailRenderer)==null?void 0:N.showCustomThumbnailRenderer);var L;((L=this.data)==null?0:L.thumbnail)||!U||this.set("data.thumbnail",U.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){H.updateLockupSize()});
var m;if(f=((m=this.data)==null?void 0:m.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(f);var z;((z=this.dismissActionToReplayEntity)==null?0:z.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.X.onHiddenChanged=function(){this.updateLockupSize()};
_.X.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.yr(this.hostElement,"yt-terminate-video-preview-action");else{var H;(H=this.videoTitleLink)==null||H.focus()}};
_.X.metadataColorChanged=function(){var H;if(this.metadataColor&&((H=this.videoTitle)==null?0:H.style))this.videoTitle.style.color=_.wn(this.metadataColor);else{var U,A;!this.metadataColor&&((U=this.videoTitle)==null?0:(A=U.style)==null?0:A.color)&&(this.videoTitle.style.color="")}};
_.X.onDetailsClick=function(H){var U=this.computedNavigationEndpoint;U&&(_.ny(_.Lf(H),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.cg(this.hostElement,"yt-navigate",{endpoint:U}))};
_.X.onRendererTap=function(){this.registerThumbnailForPageTransition();var H,U,A=((H=this.data)==null?void 0:H.serviceEndpoint)||this.getFeedbackEndpoint((U=this.data)==null?void 0:U.navigationEndpoint);A&&_.p(A,_.i$)&&this.ytComponentBehavior.resolveCommand(A)};
_.X.onMouseDown=function(H){var U=H.target,A=this.computedNavigationEndpoint,M;H=U.href||((M=_.p(A==null?void 0:A.commandMetadata,_.Y2))==null?void 0:M.url);M=U.data||A;H&&M&&CO0(H,M)};
_.X.computeVideoTitleText=function(){var H;if((H=this.data)==null?0:H.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.X.computeHasPlaylistThumbnail=function(H){var U,A,M,W,w;if((((U=H.thumbnailRenderer)==null?0:U.playlistVideoThumbnailRenderer)||((A=H.thumbnailRenderer)==null?0:A.playlistCustomThumbnailRenderer)||((M=H.thumbnailRenderer)==null?0:M.showCustomThumbnailRenderer)||((W=H.thumbnailRenderer)==null?0:W.playlistVideoThumbnailRenderer)||((w=H.thumbnailRenderer)==null?0:w.playlistCustomThumbnailRenderer))&&H.thumbnailOverlays)for(U=0;U<H.thumbnailOverlays.length;U++)if(A=void 0,(A=H.thumbnailOverlays[U])==
null?0:A.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.D5.Object.defineProperties(Hv.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.S("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var H;return(H=this.data)==null?void 0:H.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var H;return(H=this.data)==null?void 0:H.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.JSC$16566_inlinePreviewHoverListener)==null?0:J6(H))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Boh(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.data)==null?void 0:H.videoId)||((U=this.data)==null?void 0:U.playlistId)||""}}});
Hv.prototype.onMouseDown=Hv.prototype.onMouseDown;Hv.prototype.metadataColorChanged=Hv.prototype.metadataColorChanged;Hv.prototype.onIsDismissedChanged=Hv.prototype.onIsDismissedChanged;Hv.prototype.onHiddenChanged=Hv.prototype.onHiddenChanged;Hv.prototype.onDataChanged=Hv.prototype.onDataChanged;Hv.prototype.handleReloadDownloadsInfo=Hv.prototype.handleReloadDownloadsInfo;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Hv.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Hv.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],Hv.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.PA),_.q("design:type",Object)],Hv.prototype,"ytdLockupBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Hv.prototype,"ytdReduxBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],Hv.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],Hv.prototype,"entitySelectorType",void 0);_.G([_.y(),_.q("design:type",Boolean)],Hv.prototype,"noEndpoints",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Hv.prototype,"isRadio",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.w1}),_.q("design:type",Boolean)],Hv.prototype,"miniMode",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Hv.prototype,"fullHeight",void 0);
_.G([_.y(),_.q("design:type",Boolean)],Hv.prototype,"showDarkVideoMetadata",void 0);_.G([_.y(),_.q("design:type",Boolean)],Hv.prototype,"showLightVideoMetadata",void 0);_.G([_.y(),_.q("design:type",Number)],Hv.prototype,"metadataColor",void 0);_.G([_.y(),_.q("design:type",Object)],Hv.prototype,"showChannelAvatar",void 0);_.G([_.y(),_.q("design:type",Boolean)],Hv.prototype,"hidden",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],Hv.prototype,"showYtInteraction",void 0);
_.G([_.y(),_.q("design:type",String)],Hv.prototype,"dismissedContentId",void 0);_.G([_.y({selectorArgs:["dismissedContentId"],selector:fyN}),_.q("design:type",Object)],Hv.prototype,"dismissActionToReplayEntity",void 0);
_.G([_.y({selectorArgs:["entitySelectorType","mediaId"],selector:function(H,U,A){if(_.S("kevlar_modern_downloads_page")&&A&&U&&U!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(U){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var M=SFc(H,A);if(M){U=_.O_(H,A);var W=ZY(H,A),w=bnc(H,A);H=fq(H,A);var d=luc(M,U,W,w);W=d.shortViewCountText;var O=d.publishedTimeText;d=d.badges;var f=H>0;w=DxV(M,U,w,H);M=_.TQ(U)||U==="TRANSFER_STATE_FAILED"||U==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!vO(M.policyEntity)?
void 0:Kg7(A,H,M.videoEntity.lengthSeconds);U==="TRANSFER_STATE_PAUSED_BY_USER"&&A&&!_.S("dl_resume_click_killswitch")&&(M={offlineVideoEndpoint:{videoId:A,action:"ACTION_RESUME"}});A={shortViewCountText:W,publishedTimeText:O,badges:d,isWatched:f,navigationEndpoint:M,thumbnailOverlays:w}}else A=void 0;return A;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(U=pAh(H,A))if(M=_.uE(H,A),w=_.LEK(H,A),M!=="TRANSFER_STATE_UNKNOWN"){A=$xE(U,M,w,A,_.d1(H));break a}A=void 0}return A;default:_.Na(new _.bD("Error: entitySelectorType defined but not matched in selector.",
H,U))}}}),
_.q("design:type",Object)],Hv.prototype,"entityDrivenState",void 0);_.G([_.y({computed:"computeVideoTitleText(data)"}),_.q("design:type",Object)],Hv.prototype,"videoTitleText",void 0);_.G([_.y({computed:"computeHasPlaylistThumbnail(data)"}),_.q("design:type",Object)],Hv.prototype,"hasPlaylistThumbnail",void 0);_.G([_.y({computed:"computeNavigationEndpoint(data)"}),_.q("design:type",Object)],Hv.prototype,"computedNavigationEndpoint",void 0);
_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Hv.prototype,"typographyBump",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("typographyBump"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Hv.prototype,"typographyBumpV2",null);_.G([_.hG("#video-title"),_.q("design:type",HTMLElement)],Hv.prototype,"videoTitle",void 0);_.G([_.hG("#video-title-link"),_.q("design:type",HTMLElement)],Hv.prototype,"videoTitleLink",void 0);
_.G([_.hG("#thumbnail"),_.q("design:type",HTMLElement)],Hv.prototype,"thumbnail",void 0);_.G([_.hG("#dismissible"),_.q("design:type",HTMLElement)],Hv.prototype,"JSC$16566_dismissibleMedia",void 0);_.G([_.a("data.menu"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hv.prototype,"lazyLoadMenu",null);_.G([_.a("data.menu"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hv.prototype,"immediateLoadMenu",null);
_.G([_.jk("entityDrivenState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Hv.prototype,"handleReloadDownloadsInfo",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Hv.prototype,"onDataChanged",null);_.G([_.jk("hidden"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Hv.prototype,"onHiddenChanged",null);
_.G([_.Ya("isDismissed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Hv.prototype,"onIsDismissedChanged",null);_.G([_.Ya("metadataColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Hv.prototype,"metadataColorChanged",null);_.G([_.Gl("mousedown"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Hv.prototype,"onMouseDown",null);
_.G([_.a("lockupIsHovered"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Hv.prototype,"isHovered",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Hv.prototype,"useAvatar",null);_.G([_.a("data","entitySelectorType"),_.q("design:type",String),_.q("design:paramtypes",[])],Hv.prototype,"mediaId",null);_.G([_.dX({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Hv);
var fIk=_.ty()(Hv,"ytd-rich-grid-media",function(){if(diw!==void 0)return diw;var H=document.createElement("template");_.E(H,'\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-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="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="" typography-bump="[[typographyBump]]"></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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return diw=H},{mode:2});var J3H;var UG=function(){var H=_.B.apply(this,arguments)||this;H.removeMaxWidth=!0;H.insetMetadata=!1;return H};
_.R(UG,_.B);_.X=UG.prototype;_.X.configureRendererStamper=function(){return{innerMenu:T4,outerMenu:Object.assign({},T4,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.X.onDataChanged=function(){var H,U=((H=this.data)==null?void 0:H.trackingParams)||"";U&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(U));var A;((A=this.dismissActionToReplayEntity)==null?0:A.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.X.attached=function(){this.updateInlinePreviewHoverListeners()};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16571_inlinePreviewHoverListener=iA({mediaRenderer:this,lockupElement:this.JSC$16571_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:TRk})};
_.X.clearInlinePreviewHoverListeners=function(){var H;(H=this.JSC$16571_inlinePreviewHoverListener)==null||Ri(H)};
_.X.onRendererTap=function(){var H,U,A=(H=this.data)==null?void 0:(U=H.serviceEndpoints)==null?void 0:U[0];_.p(A,_.i$)&&this.componentBehavior.resolveCommand(A)};
_.X.onDetailsClick=function(H){var U,A=(U=this.data)==null?void 0:U.navigationEndpoint;A&&(_.ny(_.Lf(H),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(A))};
_.X.onShow=function(){var H=this.data;H.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(H.onFirstVisibleCommand),delete H.onFirstVisibleCommand)};
_.D5.Object.defineProperties(UG.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var H;return this.insetMetadata?void 0:(H=this.data)==null?void 0:H.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var H;return this.insetMetadata?(H=this.data)==null?void 0:H.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var H=this.data;if(H!=null&&H.badge&&(H=_.p(H.badge,F1z))){var U,A,M;return[{metadataBadgeRenderer:{label:((U=H.label)==null?void 0:(A=U.runs)==null?void 0:A[0].text)||((M=H.label)==null?void 0:M.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var H=this.data;return Object.assign({},H.headline,{accessibility:H.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return this.isSlimShort?(H=this.computedTitle)==null?void 0:(U=H.accessibility)==null?void 0:(A=U.accessibilityData)==null?void 0:A.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.S("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.JSC$16571_inlinePreviewHoverListener)==null?0:J6(H))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
UG.prototype.onDataChanged=UG.prototype.onDataChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],UG.prototype,"componentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.PA),_.q("design:type",Object)],UG.prototype,"ytdLockupBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],UG.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.uQ),_.q("design:type",Object)],UG.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],UG.prototype,"ytdReduxBehavior",void 0);_.G([_.hG("ytd-thumbnail"),_.q("design:type",HTMLElement)],UG.prototype,"thumbnail",void 0);_.G([_.hG("#dismissible"),_.q("design:type",HTMLElement)],UG.prototype,"JSC$16571_dismissibleMedia",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],UG.prototype,"removeMaxWidth",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],UG.prototype,"insetMetadata",void 0);_.G([_.y(),_.q("design:type",String)],UG.prototype,"dismissedContentId",void 0);_.G([_.y({selectorArgs:["dismissedContentId"],selector:fyN}),_.q("design:type",Object)],UG.prototype,"dismissActionToReplayEntity",void 0);_.G([_.a("insetMetadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],UG.prototype,"thumbnailObjectFit",null);
_.G([_.a("data","insetMetadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],UG.prototype,"innerMenu",null);_.G([_.a("data","insetMetadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],UG.prototype,"outerMenu",null);_.G([_.y(),_.q("design:type",Object)],UG.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.w1}),_.q("design:type",Boolean)],UG.prototype,"miniMode",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],UG.prototype,"onDataChanged",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],UG.prototype,"shortsBadges",null);_.G([_.a("data"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],UG.prototype,"isShort",null);
_.G([_.a("data"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],UG.prototype,"isSlimShort",null);_.G([_.a("data","isShort"),_.q("design:type",Object),_.q("design:paramtypes",[])],UG.prototype,"computedTitle",null);_.G([_.a("isSlimShort","computedTitle"),_.q("design:type",Object),_.q("design:paramtypes",[])],UG.prototype,"computedAccessibilityLabel",null);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],UG.prototype,"shouldForce2By3",null);_.G([_.a("lockupIsHovered"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],UG.prototype,"isHovered",null);_.G([_.dX({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],UG);
_.e(UG,"ytd-rich-grid-slim-media",function(){if(J3H!==void 0)return J3H;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return J3H=H},{mode:2});var KNk;var orm;var A7=function(){return _.B.apply(this,arguments)||this};
_.R(A7,_.B);A7.prototype.computeIcon=function(H){return H&&H.iconType?"yt-sys-icons:"+H.iconType.toLowerCase():""};
A7.prototype.onMouseEnter=function(){this.isHovered=!0};
A7.prototype.onMouseLeave=function(){this.isHovered=!1};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],A7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],A7.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],A7.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],A7.prototype,"isHovered",void 0);
_.G([_.dX({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],A7);
_.e(A7,"ytd-expand-on-hover-card-renderer",function(){if(orm!==void 0)return orm;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return orm=H},{mode:1});var FNn,P4g=function(){if(FNn!==void 0)return FNn;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return FNn=H};_.Qm("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var MN=function(){var H=_.B.apply(this,arguments)||this;H.compactStyle=!1;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.R(MN,_.B);_.X=MN.prototype;_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.X.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"}}}};
_.X.computeHideDot=function(H){return!(H&&H.subscriberCountText&&H.videoCountText)||this.compactStyle};
_.X.hasDualButtons=function(H){return H&&H.purchaseButton&&H.subscribeButton};
_.X.backgroundColorChanged=function(){if(this.data!==void 0){var H=this.data.backgroundColor;this.isDarkTheme&&(H=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=H!=null?_.wn(H):"transparent"}};
_.X.onDarkModeToggledAction=function(H){this.isDarkTheme=H};
_.X.onTap=function(H){var U,A,M=((U=this.data)==null?void 0:U.navigationEndpoint)||((A=this.data)==null?void 0:A.serviceEndpoint);_.p(M,_.sy)&&(M&&_.lx().resolve(_.YV).resolveCommand(M,{form:{element:this.hostElement}}),H.preventDefault())};
_.X.computeChannelEndpoint=function(H){return _.p(H,_.sy)?null:H};
_.X.computeHrefEndpoint=function(H){return _.p(H,_.sy)?null:this.componentBehavior.computeHref_(H)};
_.X.computeChannelRendererStyle=function(H){return H};
_.X.computeIconSize=function(H){return H?108:136};
_.D5.Object.defineProperties(MN,{template:{configurable:!0,enumerable:!0,get:function(){return P4g()}}});
MN.prototype.backgroundColorChanged=MN.prototype.backgroundColorChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],MN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.m1),_.q("design:type",Object)],MN.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],MN.prototype,"componentBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],MN.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],MN.prototype,"isDarkTheme",void 0);_.G([_.y({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.q("design:type",String)],MN.prototype,"channelRendererStyle",void 0);_.G([_.y({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],MN.prototype,"dualButtons",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.q("design:type",Boolean)],MN.prototype,"useBiggerThumbs",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.kV("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],MN.prototype,"biggerThumbStyle",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],MN.prototype,"compactStyle",void 0);_.G([_.Ya("data","isDarkTheme"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],MN.prototype,"backgroundColorChanged",null);_.G([_.dX({is:"ytd-channel-renderer",disableElementRegistration:!0})],MN);_.e(MN,"ytd-channel-renderer",function(){return P4g()},{mode:1});var sW2;var nry;_.Qm("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Wv=function(){var H=_.B.apply(this,arguments)||this;H.displayItemCount=2;H.hasPlaylistThumbnail=!1;H.stackThumbnailSize="large";return H};
_.R(Wv,_.B);_.X=Wv.prototype;_.X.attached=function(){this.updateInlinePreviewHoverListeners()};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.X.computeFirstVideos=function(H,U){return H&&U?H.slice(0,U):[]};
_.X.computeThumbnailWidth=function(H,U){return H?U==="BIG"?500:U==="MASSIVE"?600:U==="MEDIUM"?450:420:360};
_.X.computeThumbnailHeight=function(H,U){return H?U==="BIG"?280:U==="MASSIVE"?337:234:202};
_.X.clearInlinePreviewHoverListeners=function(){var H;(H=this.JSC$16584_inlinePreviewHoverListener)==null||Ri(H)};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16584_inlinePreviewHoverListener=iA({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:vH2,thumbnailElement:this.thumbnail})};
_.X.computeHasPlaylistThumbnail=function(H){var U,A;if((((U=H.thumbnailRenderer)==null?0:U.playlistVideoThumbnailRenderer)||((A=H.thumbnailRenderer)==null?0:A.playlistCustomThumbnailRenderer))&&H.thumbnailOverlays)for(U=0;U<H.thumbnailOverlays.length;U++)if(A=void 0,(A=H.thumbnailOverlays[U])==null?0:A.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.D5.Object.defineProperties(Wv.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.JSC$16584_inlinePreviewHoverListener)==null?0:J6(H))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Wv.prototype.dataChanged=Wv.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Wv.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.PA),_.q("design:type",Object)],Wv.prototype,"ytdLockupBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Wv.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Wv.prototype,"displayItemCount",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.q("design:type",Boolean)],Wv.prototype,"useBiggerThumbs",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.kV("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],Wv.prototype,"biggerThumbsStyle",void 0);_.G([_.y({computed:"computeHasPlaylistThumbnail(data)"}),_.q("design:type",Object)],Wv.prototype,"hasPlaylistThumbnail",void 0);_.G([_.y(),_.q("design:type",String)],Wv.prototype,"stackThumbnailSize",void 0);_.G([_.hG("ytd-thumbnail"),_.q("design:type",HTMLElement)],Wv.prototype,"thumbnail",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wv.prototype,"dataChanged",null);
_.G([_.a("lockupIsHovered"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Wv.prototype,"isHovered",null);_.G([_.dX({is:"ytd-radio-renderer",disableElementRegistration:!0})],Wv);
_.e(Wv,"ytd-radio-renderer",function(){if(nry!==void 0)return nry;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return nry=H},{mode:2});var NfH;_.Qm("itemSectionRenderer","showRenderer","ytd-show-renderer");var wL=function(){return _.B.apply(this,arguments)||this};
_.R(wL,_.B);wL.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
wL.prototype.computeThumbnailWidth=function(H){return H?360:246};
wL.prototype.computeUseProminentThumbs=function(H){return H};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],wL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],wL.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],wL.prototype,"isSearch",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.q("design:type",Boolean)],wL.prototype,"useProminentThumbs",void 0);_.G([_.dX({is:"ytd-show-renderer",disableElementRegistration:!0})],wL);
_.e(wL,"ytd-show-renderer",function(){if(NfH!==void 0)return NfH;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return NfH=H},{mode:1});_.Qm("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var XO=function(){var H=_.B.apply(this,arguments)||this;H.isRichGrid=!1;return H};
_.R(XO,_.B);XO.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"}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],XO.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],XO.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],XO.prototype,"isRichGrid",void 0);_.G([_.dX({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],XO);
_.e(XO,"ytd-feed-entry-renderer",function(){if(sW2!==void 0)return sW2;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return sW2=H},{mode:1});var SiB;var ir=function(){return _.B.apply(this,arguments)||this};
_.R(ir,_.B);ir.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.G([_.g(_.dF),_.q("design:type",Object)],ir.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ir.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ir.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ir.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.Xz,value:3}),_.q("design:type",Number)],ir.prototype,"itemsPerRow",void 0);
_.G([_.dX({is:"ytd-link-card-renderer",disableElementRegistration:!0})],ir);
_.e(ir,"ytd-link-card-renderer",function(){if(SiB!==void 0)return SiB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return SiB=H},{mode:1});var pMn;var br=function(){return _.B.apply(this,arguments)||this};
_.R(br,_.B);_.X=br.prototype;_.X.configureRendererStamper=function(){return{"data.menu":T4,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.X.onRendererTap=function(H){if(!this.ytdDismissibleItemBehavior.isDismissed){var U,A=(U=this.data)==null?void 0:U.navigationEndpoint;A&&!_.ny(_.Lf(H),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(A)?_.ny(_.Lf(H),this.hostElement,["A"])||_.cg(this.hostElement,"yt-navigate",{endpoint:A}):this.ytComponentBehavior.resolveCommand(A,{}))}};
_.X.maybeComputeHref=function(H){return this.ytComponentBehavior.computeHref_(H,!0)};
_.X.getNavigationCommand=function(H){return this.isNavigationCommand(H)?H:null};
_.X.isNavigationCommand=function(H){return H?_.p(H,_.Gv)||_.p(H,_.sH)||_.p(H,_.gu)?!0:!1:!1};
br.prototype.onRendererTap=br.prototype.onRendererTap;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],br.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],br.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],br.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],br.prototype,"ytComponentBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],br.prototype,"data",void 0);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],br.prototype,"onRendererTap",null);_.G([_.dX({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],br);
_.e(br,"ytd-lumiere-promo-item-image-renderer",function(){if(pMn!==void 0)return pMn;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return pMn=H},{mode:1});var LNy;var dL=function(){return _.B.apply(this,arguments)||this};
_.R(dL,_.B);dL.prototype.computeLandscapeThumbnail=function(){var H;return((H=this.data)==null?void 0:H.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],dL.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],dL.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.w1}),_.q("design:type",Boolean)],dL.prototype,"miniMode",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.Xz}),_.q("design:type",Number)],dL.prototype,"itemsPerRow",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.q("design:type",Boolean)],dL.prototype,"landscapeThumbnail",void 0);_.G([_.dX({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],dL);
_.e(dL,"ytd-lumiere-shelf-details-renderer",function(){if(LNy!==void 0)return LNy;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return LNy=H},{mode:2});var Rpw;var OG=function(){return _.B.apply(this,arguments)||this};
_.R(OG,_.B);OG.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],OG.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],OG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],OG.prototype,"data",void 0);_.G([_.dX({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],OG);
_.e(OG,"ytd-primetime-promo-details-renderer",function(){if(Rpw!==void 0)return Rpw;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Rpw=H},{mode:1});var ErH;var ur=function(){return _.B.apply(this,arguments)||this};
_.R(ur,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ur.prototype,"data",void 0);_.G([_.dX({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],ur);
_.e(ur,"ytd-panel-show-style-metadata-renderer",function(){if(ErH!==void 0)return ErH;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return ErH=H},{mode:1});var mi3;var Zo=function(){return _.B.apply(this,arguments)||this};
_.R(Zo,_.B);_.X=Zo.prototype;_.X.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.X.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.X.computeThumbnail=function(H){if(H)return H.smallFormFactorBackgroundThumbnail||H.largeFormFactorBackgroundThumbnail};
_.X.maybeComputeHref=function(H){return this.ytComponentBehavior.computeHref_(H,!0)};
_.X.isNavigationCommand=function(H){return H?_.p(H,_.Gv)||_.p(H,_.sH)||_.p(H,_.gu)?!0:!1:!1};
_.X.getNavigationCommand=function(H){return this.isNavigationCommand(H)?H:null};
Zo.prototype.onPanelTap=Zo.prototype.onPanelTap;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Zo.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Zo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Zo.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],Zo.prototype,"roundedContainer",void 0);_.G([_.y({reflectToAttribute:!0,value:_.S("web_modern_buttons")}),_.q("design:type",Boolean)],Zo.prototype,"modernButtons",void 0);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Zo.prototype,"onPanelTap",null);_.G([_.dX({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Zo);
_.e(Zo,"ytd-primetime-promo-panel-renderer",function(){if(mi3!==void 0)return mi3;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return mi3=H},{mode:1});_.LG(_.r(function(H){H=_.Ec(H,{data:{},useFullWidth:!1});var U=H.data,A=H.useFullWidth;H={};return _.Z("teaser-card-view-model",{class:_.CG("ytTeaserCardViewModelHost",(H.ytTeaserCardViewModelUseFullWidth=function(){return A()},H))},_.Z(_.K,{cond:function(){return U().onTap},
then:function(M){return _.Z(_.xy,{className:"ytTeaserCardViewModelLink",command:M},_.Z("div",{class:"ytTeaserCardViewModelImageContainer"},_.Z(_.K,{cond:function(){return U().image},
then:function(W){return _.Z(_.nG,{data:W,className:"ytTeaserCardViewModelImage",alt:""})}})),_.Z("p",{class:"ytTeaserCardViewModelCaption"},function(){return U().caption}))}}))},"gd"),"teaser-card-view-model",{props:{data:_.sY,
useFullWidth:_.sY}});_.LG(_.r(function(H){var U=H.data;var A=function(){var M;return _.Zf((M=U())==null?void 0:M.iconThemedImage)};
return _.Z("yt-edu-card-view-model",null,_.Z(_.D8,{contentId:function(){return U().nudgeId}},function(){return _.Z("div",{class:_.CG("ytEduCardViewModelHost",function(){return U().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.Z("div",{class:"ytEduCardViewModelTopCornerButton"},_.Z(_.YY,{data:function(){return U().dismissButton}},{buttonViewModel:_.yJ})),_.Z("div",{class:"ytEduCardViewModelContentWrapper"},_.Z("div",{class:"ytEduCardViewModelHeaderImage"},_.Z(_.K,
{cond:A,
then:function(M){return _.Z(_.nG,{data:M,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.Z("div",{class:"ytEduCardViewModelTextContainer"},_.Z("div",{class:"ytEduCardViewModelTitle"},_.Z(_.Pb,{text:function(){return U().title}})),_.Z("div",{class:"ytEduCardViewModelSubtitle"},_.Z(_.Pb,{text:function(){return U().subtitle}}))),_.Z("div",{class:"ytEduCardViewModelContent"},_.Z(_.YY,{data:function(){return U().form}},{nudgeFormViewModel:b2H}))),_.Z("div",{class:_.CG("ytEduCardViewModelButtonWrapper",
function(){return U().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.Z(_.YY,{data:function(){return U().primaryButton}},{buttonViewModel:function(M){return _.Z("div",{class:"ytEduCardViewModelPrimaryButton"},_.Z(_.yJ,{data:M.data}))}}),_.Z(_.YY,{data:function(){return U().secondaryButton}},{buttonViewModel:function(M){return _.Z("div",{class:"ytEduCardViewModelSecondaryButton"},_.Z(_.yJ,{data:M.data}))}})))}))},"hd"),"yt-edu-card-view-model",{props:{data:_.sY}});var gry=new _.g3("RICH_GRID_VIDEO_RENDERER_TOKEN");_.LG(_.r(function(H){var U=H.data;var A=H.showYtInteractionInContent;var M=function(){return!!U().selectableFeedback};
H=_.b(_.iB(!1,void 0,"qxtgaf"));var W=H.next().value,w=H.next().value;_.LA(function(){var n=_.p(U().primaryButton,_.Pc);(n==null?0:n.isToggled)&&w(n.isToggled)});
H=_.c$(function(n){if(!M())return!1;if(W()){var N;var L=(N=U().selectableFeedback)==null?void 0:N.onDeselect}else{var m;L=(m=U().selectableFeedback)==null?void 0:m.onSelect}L&&_.uj(L,{form:{element:n.target}});w(!W());if(n=_.p(U().primaryButton,_.Pc))n.isToggled=W();return!1});
var d=function(){if(!M()){var n,N=(n=U().loggingDirectives)==null?void 0:n.trackingParams;N&&_.Yg(_.lx().resolve(_.U8),N)}},O=_.qkK(),f=function(){var n;
return M()?(n=U().selectableFeedback)==null?void 0:n.a11yLabel:void 0},J=function(){return M()?{toggled:W()}:{}},F=_.lx().resolve(_.$V(gry)),P={};
return _.Z("yt-feedback-item-renderer",{class:_.CG("ytFeedbackItemRendererHost",(P.ytFeedbackItemRendererSelectableFeedback=M,P)),"on:click":H,"on:keydown":O,title:f,"aria-label":f,"aria-pressed":function(){return M()?W():void 0},
tabindex:function(){return M()?0:void 0},
role:function(){return M()?"button":void 0}},_.Z("div",{class:"ytFeedbackItemRendererContentContainer"},_.Z(_.YY,{data:function(){return U().content}},{videoRenderer:function(n){return _.Z(F,{data:n.data,
showYtInteraction:A})},
lockupViewModel:function(n){return _.Z(_.YN,{data:n.data,containerType:2})}})),_.Z("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.Z(_.YY,{data:function(){return U().primaryButton}},{toggleButtonViewModel:function(n){return _.Z(_.MI,{data:n.data,
buttonShapeOverrides:J,disableExplicitClickLogging:!0,onToggle:d})}})))},"id"),"yt-feedback-item-renderer",{props:{data:_.sY,
showYtInteractionInContent:_.sY}});var fu=function(){var H=_.B.apply(this,arguments)||this;H.isShortsGrid=!1;H.isCompactGrid=!1;H.isShortsPanelGrid=!1;H.renderedFromRichGrid=!1;H.isInFirstColumn=!1;H.noGutterMargins=!1;H.noBottomMargin=!1;H.halfBottomMargin=!1;H.isInlineGroupItem=!1;H.insetMetadata=!1;H.noBottomMarginInAds=!0;H.force16By9ThumbnailAspectRatio=!1;H.useCompactList=!1;H.containerType=2;H.thumbnailTargetWidth=9999;H.isResponsiveGrid=!1;H.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};H.hoverListener=
H.hover.bind(H);H.leaveListener=H.leave.bind(H);H.highlighted=!1;H.JSC$16620_unsubscribeFromInlinePreviewIsActive=function(){};
return H};
_.R(fu,_.B);_.X=fu.prototype;_.X.computeContainerType=function(){return this.useCompactList?3:2};
_.X.itemWidthChanged=function(){var H;this.thumbnailTargetWidth=(H=this.itemWidth)!=null?H:9999};
_.X.updateIsInFirstColumn=function(){var H;this.isInFirstColumn=((H=this.data)==null?void 0:H.colIndex)===0};
_.X.observerContainerType=function(){if(this.lockup){var H=this.lockup;H.containerType=this.containerType;H.sizing=this.sizing;H.typographyBump=this.typographyBump;H.itemWidth=this.itemWidth}this.richGridMedia&&_.S("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.S("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.X.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:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",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]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",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]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.X.leave=function(H){H=H.relatedTarget;var U=document.querySelector("ytd-video-preview");H&&U&&_.yf(U).contains(H)||this.removeAndCleanupHighlight()};
_.X.hover=function(){var H;!this.highlighted&&(H=this.data)!=null&&H.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(H=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:H,boxShadow:"0 0 0 10px "+H})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.X.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};
_.X.registerHoverHighlightListeners=function(){var H=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16620_unsubscribeFromInlinePreviewIsActive=_.It(_.Lq(),_.KEE,function(U){H.highlighted&&!U&&H.removeAndCleanupHighlight()})};
_.X.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16620_unsubscribeFromInlinePreviewIsActive()};
_.X.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.X.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.X.getBackgroundColor=function(){var H,U,A=(H=this.data)==null?void 0:(U=H.onFocusEffect)==null?void 0:U.onFocusColor;if(A){if(document.documentElement.hasAttribute("dark")&&(A==null?0:A.darkTheme))return OU(A==null?void 0:A.darkTheme);if(A==null?0:A.lightTheme)return OU(A==null?void 0:A.lightTheme)}};
_.X.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var H=_.XK(),U,A,M;H&&((U=this.data)==null?0:U.trackingParams)&&((A=this.data)==null?void 0:A.colIndex)!=null&&((M=this.data)==null?void 0:M.rowIndex)!=null&&_.pE(H,_.IS(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.X.isSlimMediaRenderer=function(H){return!!_.p(H==null?void 0:H.content,_.qCm)||!!_.p(H==null?void 0:H.content,YCz)||!!_.p(H==null?void 0:H.content,_.uY)||!!_.p(H==null?void 0:H.content,Jbn)};
_.X.isPostRenderer=function(){var H,U;return!!_.p((H=this.data)==null?void 0:H.content,wRg)||!!_.p((U=this.data)==null?void 0:U.content,XRw)};
_.X.computeIsGameCardShelf=function(){var H;return!!_.p((H=this.data)==null?void 0:H.content,NSg)};
_.X.computeIsMiniGameCardShelf=function(){var H,U;return!!_.p((H=this.data)==null?void 0:H.content,yfk)||!!_.p((U=this.data)==null?void 0:U.content,BS3)};
_.X.computeIsTeaserCard=function(){var H;return!!_.p((H=this.data)==null?void 0:H.content,BS3)};
_.X.computeIsSelectableFeedbackItem=function(){var H,U;return!((U=_.p((H=this.data)==null?void 0:H.content,eZk))==null||!U.selectableFeedback)};
_.X.computeContainsLumierePosters=function(){var H,U;return((U=_.p((H=this.data)==null?void 0:H.content,oGz))==null?void 0:U.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.X.computeIsExpandOnHoverCardShelf=function(){var H;return!!_.p((H=this.data)==null?void 0:H.content,KMz)};
_.X.computeIsLinkCardShelf=function(){var H;return!!_.p((H=this.data)==null?void 0:H.content,gNm)};
_.X.computeIsReelItemStyleAvatarCircle=function(H){var U;return((U=_.p(H==null?void 0:H.content,_.uY))==null?void 0:U.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.X.computeIsLinkCardFullWidth=function(H,U){var A;return((A=_.p(H==null?void 0:H.content,gNm))==null?void 0:A.useFullWidth)||U<=2};
_.D5.Object.defineProperties(fu.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var H;return _.S("web_hover_effect_refactor")&&_.p((H=this.data)==null?void 0:H.content,g0B)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.S("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var H;if(_.S("web_hover_effect_refactor")&&_.p((H=this.data)==null?void 0:H.content,g0B))return!1;var U;return!((U=this.data)==null||!U.onFocusEffect)||_.S("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var H;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.S("web_hover_effect_refactor")?(H=this.data)==null?void 0:H.onFocusEffect:void 0}}}});
fu.prototype.richGridHoverHighlightChanged=fu.prototype.richGridHoverHighlightChanged;fu.prototype.observerContainerType=fu.prototype.observerContainerType;fu.prototype.updateIsInFirstColumn=fu.prototype.updateIsInFirstColumn;fu.prototype.itemWidthChanged=fu.prototype.itemWidthChanged;_.G([_.g(_.dF),_.q("design:type",Object)],fu.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],fu.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],fu.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.PA),_.q("design:type",Object)],fu.prototype,"ytdLockupBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],fu.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.q("design:type",Boolean)],fu.prototype,"isPost",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.q("design:type",Boolean)],fu.prototype,"containsLumierePosters",void 0);_.G([_.y({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.q("design:type",Boolean)],fu.prototype,"isSlimMedia",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.q("design:type",Boolean)],fu.prototype,"isGameCardShelf",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.q("design:type",Boolean)],fu.prototype,"isMiniGameCardShelf",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.q("design:type",Boolean)],fu.prototype,"isTeaserCard",void 0);_.G([_.y({computed:"computeIsSelectableFeedbackItem(data)"}),_.q("design:type",Boolean)],fu.prototype,"isSelectableFeedbackItem",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fu.prototype,"isShortsGrid",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],fu.prototype,"isSlimGrid",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fu.prototype,"isCompactGrid",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fu.prototype,"isShortsPanelGrid",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.q("design:type",Boolean)],fu.prototype,"isExpandOnHoverCardShelf",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.q("design:type",Boolean)],fu.prototype,"isLinkCardShelf",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.Xz,value:3}),_.q("design:type",Number)],fu.prototype,"itemsPerRow",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fu.prototype,"renderedFromRichGrid",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fu.prototype,"isInFirstColumn",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fu.prototype,"noGutterMargins",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fu.prototype,"noBottomMargin",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fu.prototype,"halfBottomMargin",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fu.prototype,"isInlineGroupItem",void 0);_.G([_.y(),_.q("design:type",Object)],fu.prototype,"insetMetadata",void 0);_.G([_.y(),_.q("design:type",Object)],fu.prototype,"noBottomMarginInAds",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],fu.prototype,"isShelfItem",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.q("design:type",Boolean)],fu.prototype,"isReelItemStyleAvatarCircle",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.q("design:type",Boolean)],fu.prototype,"isLinkCardFullWidth",void 0);_.G([_.y(),_.q("design:type",Object)],fu.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fu.prototype,"useCompactList",void 0);_.G([_.y(),_.q("design:type",String)],fu.prototype,"sizing",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],fu.prototype,"typographyBump",void 0);_.G([_.y(),_.q("design:type",Number)],fu.prototype,"itemWidth",void 0);_.G([_.y(),_.q("design:type",Boolean)],fu.prototype,"isHomeShelf",void 0);_.G([_.y(),_.q("design:type",Boolean)],fu.prototype,"isHomeGrid",void 0);
_.G([_.hG("yt-lockup-view-model"),_.q("design:type",HTMLElement)],fu.prototype,"lockup",void 0);_.G([_.hG("ytd-rich-grid-media"),_.q("design:type",HTMLElement)],fu.prototype,"richGridMedia",void 0);_.G([_.hG("ytd-ad-slot-renderer"),_.q("design:type",HTMLElement)],fu.prototype,"adSlotRenderer",void 0);_.G([_.y({computed:"computeContainerType(useCompactList)"}),_.q("design:type",Object)],fu.prototype,"containerType",void 0);_.G([_.y(),_.q("design:type",Object)],fu.prototype,"thumbnailTargetWidth",void 0);
_.G([_.a("showYtInteractionOnRichItem"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],fu.prototype,"showYtInteractionOnRichGridMedia",null);_.G([_.a("isSelectableFeedbackItem","richGridHoverHighlight"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],fu.prototype,"showYtInteractionOnRichItem",null);_.G([_.a("typographyBump","isHomeGrid"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],fu.prototype,"richTypographyBump",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data","isShortsGrid","isCompactGrid"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],fu.prototype,"richGridHoverHighlight",null);_.G([_.a("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.q("design:type",Number),_.q("design:paramtypes",[])],fu.prototype,"shortsLockupViewModelAspectRatio",null);_.G([_.a("isInlineGroupItem"),_.q("design:type",Number),_.q("design:paramtypes",[])],fu.prototype,"shortsLockupViewModelScrimStyle",null);
_.G([_.Ya("itemWidth"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fu.prototype,"itemWidthChanged",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fu.prototype,"updateIsInFirstColumn",null);_.G([_.Ya("containerType","sizing","typographyBump"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fu.prototype,"observerContainerType",null);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fu.prototype,"isResponsiveGrid",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],fu.prototype,"lockupExperiments",null);_.G([_.Ya("richGridHoverHighlight"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fu.prototype,"richGridHoverHighlightChanged",null);_.G([_.dX({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],fu);
_.aIr=_.ty()(fu,"ytd-rich-item-renderer",function(){if(KNk===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);KNk=H}H=KNk;return H},{mode:2});var AdN={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var Kkt=_.Nh(_.hP("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Wkh={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},XGN={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},ibN={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var xig;var J7=function(){var H=_.B.apply(this,arguments)||this;H.useResponsiveGrid=!1;H.hidden=!1;H.isShowMoreHidden=!1;H.isShowLessHidden=!0;H.hasExpansionButton=!1;H.isInnerShelf=!1;H.allVideosCount=0;H.allPlaylistCount=0;H.haveSmartDownloadsCompleted=!1;H.restrictContentsOverflow=!1;H.firstShownIndex=0;H.horizontalOffset=0;H.atEnd=!0;H.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
H.disableServiceRequestPropagation=function(U){U.stopPropagation()};
H.nextClick=function(){var U;(U=H.data)!=null&&U.contents&&(H.firstShownIndex+=H.currentElementsPerRow,H.updateHorizontalOffset(),H.updateHorizontalItemVisibility())};
H.previousClick=function(){var U;(U=H.data)!=null&&U.contents&&(H.firstShownIndex-=H.currentElementsPerRow,H.updateHorizontalOffset(),H.updateHorizontalItemVisibility())};
return H};
_.R(J7,_.B);_.X=J7.prototype;
_.X.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.gD("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.X.attached=function(){this.requestElementsPerRow();_.S("disable_service_request_rich_shelf_killswitch")||this.contents.addEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.X.detached=function(){_.S("disable_service_request_rich_shelf_killswitch")||this.contents.removeEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.X.refreshGridLayoutNew=function(){var H;if((H=this.data)!=null&&H.contents&&this.containerWidth){var U;((U=this.data.responsiveContainerConfiguration)==null?0:U.responsiveSize)?(H=_.Fk0(this.data.responsiveContainerConfiguration,this.containerWidth,2),H=_.Oy(Object.assign({},H,{standardUnitMinWidth:this.standardUnitMinWidth}))):H=_.Oy({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=H.typographyBump;if(this.elementsPerRow!==
H.numItems||this.gutter!==H.gutter)this.elementsPerRow=H.numItems,this.gutter=H.gutter,this.itemWidth=H.itemWidth,_.Dt(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":H.gutter+"px"})}};
_.X.computeSizing=function(){if(!this.isLumiere){var H=_.Dm_(this.data);return H?H:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.X.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.X.computeButton=function(H){var U=_.p(H,_.f$);H=Object.assign({},_.p(H,_.f$));return U?(H.text||(H.text={simpleText:H.tooltip}),H.style="STYLE_MONO_OUTLINE",H.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",H):U};
_.X.onRowIndexChange=function(){var H=_.XK(),U,A;((U=this.data)==null?0:U.trackingParams)&&((A=this.data)==null?void 0:A.rowIndex)!=null&&H&&_.pE(H,_.IS(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.X.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var H,U=((H=this.getRichItemRenderers()[0])==null?void 0:H.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*U;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.X.requestElementsPerRow=function(){_.cg(this.hostElement,"yt-request-elements-per-row")};
_.X.onUpdateElementsPerRowAction=function(H,U,A,M,W,w){if(this.containerWidth!==w&&(this.containerWidth=w,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&H&&U&&A&&M&&W&&(this.elementsPerRow!==H||this.postsPerRow!==U||this.slimItemsPerRow!==A||this.gameCardsPerRow!==M||this.miniGameCardsPerRow!==W)&&(this.elementsPerRow=H,this.postsPerRow=U,this.slimItemsPerRow=A,this.gameCardsPerRow=M,this.miniGameCardsPerRow=W,this.updateItemVisibility())};
_.X.isExpandedChanged=function(){var H=this.getRichItemRenderers(),U=this.isExpanded;H.forEach(function(A){A.halfBottomMargin=U})};
_.X.isCollapsedChanged=function(){var H=this.getRichItemRenderers(),U=this.isCollapsed;H.forEach(function(A){A.noBottomMargin=U})};
_.X.getRichItemRenderers=function(){return _.c4(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.X.updateItemVisibility=function(){var H=this;if(this.data&&this.data.contents){var U=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(M,W){var w;((w=H.data)==null?0:w.isExpanded)?(M.hidden=W>U-1,M.ytRendererBehavior.markDirty()):M.hidden=W>H.currentElementsPerRow-1||W>U-1});
var A=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||A||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||A||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.X.setHeightToSingleRow=function(){var H=this.getRichItemRenderers(),U=Number.parseInt(getComputedStyle(H[0]).marginBottom,10)||0;H=H.slice(0,this.currentElementsPerRow).reduce(function(A,M){return Math.max(A,M.getBoundingClientRect().height+U)},0);
this.contents.style.height=H+"px"};
_.X.focusNextExpandedItem=function(){var H;((H=this.data)==null?0:H.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.X.focusItem=function(H,U){var A=this.getRichItemRenderers();if(A[H]&&(H=A[H].querySelector(".focus-on-expand"))){if(U){var M;(M=A[this.currentElementsPerRow])==null||M.scrollIntoView({behavior:"smooth",block:"center"})}H.focus({preventScroll:!0})}};
_.X.onDataChange=function(){var H=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var U;if((U=this.data)==null?0:U.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.rV(this,function(){H.updateItemVisibility()});
var A;if((A=this.data)==null?0:A.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Dt(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),U=0;U<this.data.contents.length;U++)A=_.p(this.data.contents[U],_.Qt)||{},A.colIndex=U,A.rowIndex=this.data.rowIndex};
_.X.handleRerenderDownloadsData=function(){_.S("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.X.blockInlinePreview=function(H){var U=this,A;return _.u(function(M){(A=U.inlinePreviewIsEnabled)&&U.ytdReduxBehavior.dispatch(_.PrH(!1));return M.return(new Promise(function(W){H(function(){A&&U.ytdReduxBehavior.dispatch(_.PrH(!0));W()})}))})};
_.X.expandShelf=function(){var H=this;if(this.data){var U,A=(U=_.p(this.data.showMoreButton,_.f$))==null?void 0:U.trackingParams;A&&_.Yg(_.k$(),A);this.set("data.isExpanded",!0);this.blockInlinePreview(function(M){H.setHeightToSingleRow();H.updateItemVisibility();H.contents.style.height=H.contents.scrollHeight+"px";_.Fl.addJob(function(){H.contents.style.height="auto";H.focusNextExpandedItem();M()},2,200)})}};
_.X.collapseShelf=function(){var H=this;return _.u(function(U){if(U.nextAddress==1){if(!H.data)return U.return();H.set("data.isExpanded",!1);return U.yield(H.blockInlinePreview(function(A){H.contents.style.height=H.contents.scrollHeight+"px";H.setHeightToSingleRow();_.Fl.addJob(function(){H.updateItemVisibility();H.contents.style.height="auto";A()},2,200)}),2)}_.cg(H.hostElement,"yt-rich-shelf-renderer-collapse",H.data.trackingParams);
H.focusItem(0,!1);_.DO(U)})};
_.X.updateArrowButtonStatus=function(){this.getRichItemRenderers();var H,U;var A=((H=this.data)==null?void 0:(U=H.contents)==null?void 0:U.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=A};
_.X.onChildElementFocus=function(H){this.hasChevronButtons&&(H=H.target.closest("#contents > *"),this.contents.contains(H)&&(H.offsetLeft<this.horizontalOffset?this.previousClick():H.offsetLeft+H.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.X.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.gD("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.X.updateHorizontalOffset=function(){var H=this.getRichItemRenderers(),U,A;var M=((U=this.data)==null?void 0:(A=U.contents)==null?void 0:A.length)||0;var W;H=((W=H[0])==null?void 0:W.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>M?this.firstShownIndex=M-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*H};
_.X.isSlimMediaShelfRenderer=function(){var H,U,A,M=(A=_.p((H=this.data)==null?void 0:(U=H.contents)==null?void 0:U[0],_.Qt))==null?void 0:A.content;return!!(_.p(M,_.qCm)||_.p(M,YCz)||_.p(M,_.uY)||_.p(M,Jbn))};
_.X.isGameCardShelf=function(){var H,U,A,M=(A=_.p((H=this.data)==null?void 0:(U=H.contents)==null?void 0:U[0],_.Qt))==null?void 0:A.content;return!!_.p(M,NSg)};
_.X.isMiniGameCardShelf=function(){var H,U,A,M=(A=_.p((H=this.data)==null?void 0:(U=H.contents)==null?void 0:U[0],_.Qt))==null?void 0:A.content;return!!_.p(M,yfk)||!!_.p(M,BS3)};
_.X.hasGameBoxArtAvatarStyle=function(){var H;return((H=this.data)==null?void 0:H.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.X.hasRoundedGameBoxArtAvatarStyle=function(){var H;return((H=this.data)==null?void 0:H.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.X.isShortsShelf=function(){var H,U,A,M=(A=_.p((H=this.data)==null?void 0:(U=H.contents)==null?void 0:U[0],_.Qt))==null?void 0:A.content;return!!_.p(M,_.uY)||!!_.p(M,Jbn)};
_.X.isPostShelfRenderer=function(){var H,U,A,M=(A=_.p((H=this.data)==null?void 0:(U=H.contents)==null?void 0:U[0],_.Qt))==null?void 0:A.content;return!(!_.p(M,wRg)&&!_.p(M,XRw))};
_.X.isLumiereShelf=function(){var H,U,A=_.p((H=this.data)==null?void 0:(U=H.contents)==null?void 0:U[0],_.Qt);return!!_.p(A==null?void 0:A.content,oGz)};
_.X.isLumiereShelfWithPosters=function(){var H,U,A=_.p((H=this.data)==null?void 0:(U=H.contents)==null?void 0:U[0],_.Qt),M;return((M=_.p(A==null?void 0:A.content,oGz))==null?void 0:M.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.X.isExpandOnHoverCardShelf=function(){var H,U,A,M=(A=_.p((H=this.data)==null?void 0:(U=H.contents)==null?void 0:U[0],_.Qt))==null?void 0:A.content;return!!_.p(M,KMz)};
_.X.computeHasFeaturedBadge=function(){var H,U,A=_.p((H=this.data)==null?void 0:(U=H.badges)==null?void 0:U[0],_.B$n);return A?A.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.X.computeHasPaygatedFeaturedBadge=function(){var H,U,A=_.p((H=this.data)==null?void 0:(U=H.badges)==null?void 0:U[0],_.B$n);return A?(A==null?void 0:A.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.X.computeHeaderHidden=function(){var H,U,A,M,W,w;return!((H=this.data)==null?0:H.icon)&&!((U=this.data)==null?0:U.title)&&!((A=this.data)==null?0:A.subtitle)&&!((M=this.data)==null?0:M.thumbnail)&&!((W=this.data)==null?0:W.badges)&&!((w=this.data)==null?0:w.menu)};
_.X.showCtaButton=function(){var H;return!((H=this.data)==null||!H.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.X.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.X.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.X.computeForce16By9ThumbnailAspectRatio=function(){var H,U;return((H=this.data)==null?void 0:(U=H.responsiveContainerConfiguration)==null?void 0:U.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.X.onSectionReactiveDismissal=function(H,U,A){var M,W;var w=(M=this.data)==null?void 0:(W=M.targetingContext)==null?void 0:W.targetGroupId;this&&w&&U.targetGroupId&&w.includes(U.targetGroupId)?(M=this.rowIndex,H=M===void 0?!1:!(U.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&M<=H)):H=!1;H&&(this.hidden=A)};
_.D5.Object.defineProperties(J7.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null?0:H.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var H=this.elementsPerRow;this.isPostShelfRenderer()?H=this.postsPerRow:this.isSlimMediaShelfRenderer()?H=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?H=this.slimItemsPerRow-1:this.isGameCardShelf()?H=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(H=this.miniGameCardsPerRow);return H}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null?0:H.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var H,U;return!((H=this.data)==null||!H.previousButton)&&!((U=this.data)==null||!U.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 H;return((H=_.lx().resolve(_.SI).getCurrentPage())==null?void 0:H.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M;return!((H=this.data)==null?0:(U=H.thumbnail)==null?0:(A=U.accessibility)==null?0:(M=A.accessibilityData)==null?0:M.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
J7.prototype.onChildElementFocus=J7.prototype.onChildElementFocus;J7.prototype.handleRerenderDownloadsData=J7.prototype.handleRerenderDownloadsData;J7.prototype.onDataChange=J7.prototype.onDataChange;J7.prototype.isCollapsedChanged=J7.prototype.isCollapsedChanged;J7.prototype.isExpandedChanged=J7.prototype.isExpandedChanged;J7.prototype.onRowIndexChange=J7.prototype.onRowIndexChange;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],J7.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],J7.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],J7.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],J7.prototype,"ytdReduxBehavior",void 0);
_.G([_.y({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.q("design:type",Object)],J7.prototype,"useResponsiveGrid",void 0);_.G([_.y(),_.q("design:type",Object)],J7.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Number)],J7.prototype,"standardUnitMinWidth",void 0);_.G([_.y({reflectToAttribute:!0,value:3}),_.q("design:type",Number)],J7.prototype,"elementsPerRow",void 0);_.G([_.y({value:3}),_.q("design:type",Number)],J7.prototype,"postsPerRow",void 0);
_.G([_.y({value:6}),_.q("design:type",Number)],J7.prototype,"slimItemsPerRow",void 0);_.G([_.y({value:6}),_.q("design:type",Number)],J7.prototype,"gameCardsPerRow",void 0);_.G([_.y({value:6}),_.q("design:type",Number)],J7.prototype,"miniGameCardsPerRow",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],J7.prototype,"hidden",void 0);_.G([_.y(),_.q("design:type",Object)],J7.prototype,"isShowMoreHidden",void 0);
_.G([_.y(),_.q("design:type",Object)],J7.prototype,"isShowLessHidden",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],J7.prototype,"hasExpansionButton",void 0);_.G([_.a("data.isExpanded"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],J7.prototype,"isExpanded",null);_.G([_.a("data.isExpanded"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],J7.prototype,"isCollapsed",null);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],J7.prototype,"isInnerShelf",void 0);_.G([_.y({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.q("design:type",Boolean)],J7.prototype,"isShorts",void 0);_.G([_.y({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.q("design:type",Boolean)],J7.prototype,"isLumiere",void 0);_.G([_.y({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.q("design:type",Boolean)],J7.prototype,"hasBoxArtThumbnailStyle",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.q("design:type",Boolean)],J7.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.q("design:type",Boolean)],J7.prototype,"hasFeaturedBadge",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.q("design:type",Boolean)],J7.prototype,"hasPaygatedFeaturedBadge",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.q("design:type",Boolean)],J7.prototype,"isHeaderHidden",void 0);_.G([_.y({selector:_.NFN}),_.q("design:type",Object)],J7.prototype,"allVideosCount",void 0);_.G([_.y({selector:oME}),_.q("design:type",Object)],J7.prototype,"allPlaylistCount",void 0);_.G([_.y({selector:wic}),_.q("design:type",Object)],J7.prototype,"haveSmartDownloadsCompleted",void 0);
_.G([_.y({selectorArgs:["entitySelectorType"],selector:function(H,U){if(_.S("kevlar_modern_downloads_page")&&U&&U!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var A=H.entities;switch(U){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":U=_.Ac(A);H=$C(U);var M=_.j9(U);A=_.WC(A);A=_.gH(d30(M,A,U.length));return{contents:H,subtitle:A};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return A=_.Ac(A),{contents:$C(A)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return A=
_.Mh(A),{contents:$C(A)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return A=_.QJM(A),{contents:$C(A)};default:_.Na(new _.bD("Error: entitySelectorType defined but not matched in selector.",H,U))}}}}),
_.q("design:type",Object)],J7.prototype,"entityDrivenRichShelfData",void 0);_.G([_.y({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.q("design:type",Boolean)],J7.prototype,"hasTopCtaButton",void 0);_.G([_.y({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.q("design:type",Boolean)],J7.prototype,"hasBottomCtaButton",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.q("design:type",Boolean)],J7.prototype,"force16By9ThumbnailAspectRatio",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],J7.prototype,"restrictContentsOverflow",void 0);_.G([_.y({selector:_.o0t}),_.q("design:type",Boolean)],J7.prototype,"inlinePreviewIsEnabled",void 0);_.G([_.y({computed:"computeSizing(data)"}),_.q("design:type",String)],J7.prototype,"sizing",void 0);
_.G([_.y(),_.q("design:type",Boolean)],J7.prototype,"typographyBump",void 0);_.G([_.y(),_.q("design:type",Number)],J7.prototype,"itemWidth",void 0);_.G([_.y(),_.q("design:type",Object)],J7.prototype,"firstShownIndex",void 0);_.G([_.y(),_.q("design:type",Object)],J7.prototype,"horizontalOffset",void 0);_.G([_.y(),_.q("design:type",Object)],J7.prototype,"atEnd",void 0);_.G([_.hG("#contents"),_.q("design:type",HTMLElement)],J7.prototype,"contents",void 0);
_.G([_.Ya("data.rowIndex"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],J7.prototype,"onRowIndexChange",null);_.G([_.Ya("isExpanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],J7.prototype,"isExpandedChanged",null);_.G([_.Ya("isCollapsed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],J7.prototype,"isCollapsedChanged",null);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],J7.prototype,"onDataChange",null);_.G([_.Ya("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],J7.prototype,"handleRerenderDownloadsData",null);_.G([_.Gl("focusin"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],J7.prototype,"onChildElementFocus",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data","isHomePage"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],J7.prototype,"isTruncated",null);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],J7.prototype,"showBottomDivider",null);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],J7.prototype,"hasChevronButtons",null);
_.G([_.a("firstShownIndex"),_.q("design:type",Object),_.q("design:paramtypes",[])],J7.prototype,"previousButtonOverride",null);_.G([_.a("atEnd"),_.q("design:type",Object),_.q("design:paramtypes",[])],J7.prototype,"nextButtonOverride",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],J7.prototype,"isHomePage",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],J7.prototype,"thumbnailAriaHidden",null);
_.G([_.a("data"),_.q("design:type",String),_.q("design:paramtypes",[])],J7.prototype,"entitySelectorType",null);_.G([_.dX({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],J7);
_.zpH=_.ty()(J7,"ytd-rich-shelf-renderer",function(){if(xig===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);xig=H}H=xig;return H},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:2});var C4z;_.LG(zt,"yt-thumbnail-view-model",{props:{data:_.sY,aspectRatio:_.sY,width:_.sY,height:_.sY,disableRounding:_.sY,isClip:_.sY,className:_.sY,hovered:_.sY,playbackRef:_.sY,lockupExperiments:_.sY}});_.LG(_.Ed,"yt-badge-view-model",{props:{data:_.sY,class:_.sY,workaroundShortsIsThumbnailBadge:_.sY,modern:_.sY,numBadgesInRow:_.sY,clipTextOverflow:_.sY,inheritTypography:_.sY}});_.LG(AXn,"yt-slimline-survey-view-model",{props:{data:_.sY}});var Ku=function(){var H=_.B.apply(this,arguments)||this;H.tileLottieAnimationRef={};H.backgroundLottieAnimationRef={};H.isOnHoverBehaviorForLottieEnabled=!0;H.useBiggerShowcaseImage=_.S("enable_desktop_search_bigger_thumbs");H.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return H};
_.R(Ku,_.B);_.X=Ku.prototype;_.X.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.X.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",toggleButtonViewModel:"yt-toggle-button-view-model",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},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"}},tileImageViewModel:{id:"tile-image-view-model",mapping:{thumbnailViewModel:{component:"yt-thumbnail-view-model"}}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"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.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.X.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var H=this.hasStaticTile(this.data)||this.hasTileLottie(this.data)||this.hasThumbnailViewModel(this.data);H!==this.hasTile&&this.set("hasTile",H);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.set("tileImageViewModel",this.getCurrentTileImageViewModel(this.data,this.isDarkTheme));this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.X.hoveredChanged=function(){var H=this.thumbnail;H&&(H.hovered=this.hovered)};
_.X.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.X.currentColorChanged=function(){this.updateButtonPalette()};
_.X.computeBackgroundStyle=function(H){if(H&&this.data){var U=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var A=_.EB((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);A&&U.push('background-image: url("'+A+'");')}var M;((M=H.basicColorData)==null?void 0:M.backgroundColor)!==void 0&&U.push("background-color: "+_.bN(H.basicColorData.backgroundColor)+";");return U.join("")}};
_.X.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&this.set("isDarkTheme",H)};
_.X.getCurrentLogo=function(H,U){if(H)return U?H.darkLogoImage:H.lightLogoImage};
_.X.getCurrentTileImageViewModel=function(H,U){if(H)return H.darkTileImageViewModel?U?H.darkTileImageViewModel:H.tileImageViewModel:H.tileImageViewModel};
_.X.getCurrentStaticTileImage=function(H,U){if(this.hasStaticTile(H))return H.darkTileImage?U?H.darkTileImage:H.tileImage:H.tileImage};
_.X.computeTitleStyle=function(H){if(this.data&&this.data.title&&H&&H.basicColorData&&H.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.wn(H.basicColorData.foregroundTitleColor)+";"};
_.X.computeSubtitleStyle=function(H){if(this.data&&this.data.subtitle&&H&&H.basicColorData&&H.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.wn(H.basicColorData.foregroundBodyColor)+";"};
_.X.computeSupplementalStyle=function(H){if(this.data&&this.data.supplementalText&&H&&H.supplementalTextColor!==void 0)return H=_.wn(H.supplementalTextColor),"color:"+H+";--yt-endpoint-color:"+H+";--yt-endpoint-hover-color:"+H+";--yt-endpoint-visited-color:"+H+";--yt-formatted-string-bold-font-weight:700;"};
_.X.computeDismissIconStyle=function(H){var U,A;if((H==null?0:(U=H.dismissButtonColorData)==null?0:U.foregroundTitleColor)&&(H==null?0:(A=H.dismissButtonColorData)==null?0:A.backgroundColor))return"--yt-button-color:"+_.bN(H.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.bN(H.dismissButtonColorData.backgroundColor)+";"};
_.X.computeOverflowIconStyle=function(H){var U,A;if((H==null?0:(U=H.dismissButtonColorData)==null?0:U.foregroundTitleColor)&&(H==null?0:(A=H.dismissButtonColorData)==null?0:A.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.bN(H.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.bN(H.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.bN(H.dismissButtonColorData.foregroundTitleColor)+";"};
_.X.computeBannerStyle=function(H){return H?H.toLowerCase().replace(/_/g,"-"):""};
_.X.computeLocation=function(H){switch(H==null?void 0:H.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.X.shouldShowTileSection=function(H,U,A){return!this.shouldExpandLogo(H,U,A)&&U};
_.X.shouldShowExpandedLogoSection=function(H,U,A){return this.shouldExpandLogo(H,U,A)&&H!==void 0&&this.hasLogo(H)};
_.X.shouldExpandLogo=function(H,U,A){return H&&U?!1:A>=2};
_.X.hasStaticTile=function(H){return!(H==null||!H.tileImage)};
_.X.hasThumbnailViewModel=function(H){return!(H==null||!H.tileImageViewModel)};
_.X.hasTileLottie=function(H){var U;return!!(H==null?0:(U=H.tileLottie)==null?0:U.url)};
_.X.hasLogo=function(H){return this.getCurrentLogo(H,this.isDarkTheme)!==void 0};
_.X.getLogoHeight=function(H){return this.logoWithPadding(H)?"26":"20"};
_.X.getExpandedLogoHeight=function(H){return this.logoWithPadding(H)?"31":"24"};
_.X.getLogoImageId=function(H){return this.logoWithPadding(H)?"logo-image-with-padding":"logo-image"};
_.X.getMaxTitleFontSize=function(H){return H.overrideTitleMaxFontSize?String(H.overrideTitleMaxFontSize):"36"};
_.X.hasBackgroundLottie=function(H){var U;return!!(H==null?0:(U=H.backgroundLottie)==null?0:U.url)};
_.X.onMouseOver=function(){if(this.isOnHoverBehaviorForLottieEnabled){var H,U;(H=this.tileLottieAnimationRef)==null||(U=H.lottieEl)==null||U.play();var A,M;(A=this.backgroundLottieAnimationRef)==null||(M=A.lottieEl)==null||M.play()}this.hovered=!0};
_.X.onMouseLeave=function(){if(this.isOnHoverBehaviorForLottieEnabled){var H,U;(H=this.tileLottieAnimationRef)==null||(U=H.lottieEl)==null||U.pause();var A,M;(A=this.backgroundLottieAnimationRef)==null||(M=A.lottieEl)==null||M.pause()}this.hovered=!1};
_.X.pauseLottie=function(){var H,U;(H=this.tileLottieAnimationRef)==null||(U=H.lottieEl)==null||U.pause();var A,M;(A=this.backgroundLottieAnimationRef)==null||(M=A.lottieEl)==null||M.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.X.performPrimaryButtonAction=function(){var H,U,A;((H=this.data)==null?0:(U=H.primaryButton)==null?0:(A=U.buttonRenderer)==null?0:A.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.X.requestElementsPerRow=function(){_.cg(this.hostElement,"yt-request-elements-per-row")};
_.X.updateButtonPalette=function(){if(this.data&&this.currentColorData){var H;((H=this.data.dismissButton)==null?0:H.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 U;if((U=this.data.primaryButton)==null?0:U.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 A;if((A=this.data.secondaryButton)==
null?0:A.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 M;((M=this.data.primaryButton)==null?0:M.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var W;((W=this.data.primaryButton)==null?0:W.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var w;((w=this.data.secondaryButton)==null?0:w.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var d;((d=this.data.primaryButton)==null?0:d.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.X.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var H=this.getTileLottieDataBasedOnTheme(),U,A;if(H.url!==((U=this.tileLottiePlayerProps)==null?void 0:(A=U.animationConfig)==null?void 0:A.path)){var M,W;(M=this.tileLottieAnimationRef)==null||(W=M.lottieEl)==null||W.destroy();var w;this.isOnHoverBehaviorForLottieEnabled=!((w=H.settings)==null?0:w.autoplay);var d,O;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(O=(d=H.settings)==null?void 0:d.autoplay)!=null?O:!1,loop:this.getLottieLoopValue(H.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof H.url==="string"?this.tileLottiePlayerProps.animationConfig.path=H.url:this.tileLottiePlayerProps.animationConfig.animationData=H.url}}};
_.X.getOverflowButton=function(H){return _.p(H.overflowButton,sJB)};
_.X.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var H=this.getBackgroundLottieDataBasedOnTheme(),U,A;if(H.url!==((U=this.backgroundLottiePlayerProps)==null?void 0:(A=U.animationConfig)==null?void 0:A.path)){var M,W;(M=this.backgroundLottieAnimationRef)==null||(W=M.lottieEl)==null||W.destroy();var w;this.isOnHoverBehaviorForLottieEnabled=!((w=H.settings)==null?0:w.autoplay);var d,O;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(O=(d=H.settings)==null?void 0:d.autoplay)!=null?O:!1,loop:this.getLottieLoopValue(H.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof H.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=H.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
H.url}}};
_.X.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var H;((H=this.tileLottieAnimationRef)==null?void 0:H.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var U;((U=this.backgroundLottieAnimationRef)==null?void 0:U.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.X.getTileLottieDataBasedOnTheme=function(){var H;if(this.isDarkTheme&&((H=this.data)==null?0:H.darkThemeTileLottie))return this.data.darkThemeTileLottie;var U;return((U=this.data)==null?0:U.tileLottie)?this.data.tileLottie:{}};
_.X.getBackgroundLottieDataBasedOnTheme=function(){var H;if(this.isDarkTheme&&((H=this.data)==null?0:H.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var U;return((U=this.data)==null?0:U.backgroundLottie)?this.data.backgroundLottie:{}};
_.X.onUpdateElementsPerRowAction=function(H){H&&this.elementsPerRow!==H&&(this.elementsPerRow=H)};
_.X.getLottieLoopValue=function(H){return H?H.loop!==void 0?H.loop:H.loopCount?H.loopCount-1:!0:!0};
_.X.logoWithPadding=function(H){var U,A,M;return(H=(U=this.getCurrentLogo(H,this.isDarkTheme))==null?void 0:(A=U.thumbnails)==null?void 0:(M=A[0])==null?void 0:M.height)&&H%31===0?!0:!1};
Ku.prototype.currentColorChanged=Ku.prototype.currentColorChanged;Ku.prototype.themeChanged=Ku.prototype.themeChanged;Ku.prototype.hoveredChanged=Ku.prototype.hoveredChanged;Ku.prototype.dataChanged=Ku.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Ku.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.uQ),_.q("design:type",Object)],Ku.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Ku.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Ku.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ku.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Ku.prototype,"primaryButton",void 0);
_.G([_.y(),_.q("design:type",Object)],Ku.prototype,"tileImageViewModel",void 0);_.G([_.y(),_.q("design:type",Object)],Ku.prototype,"secondaryButton",void 0);_.G([_.y({reflectToAttribute:!0,value:3}),_.q("design:type",Number)],Ku.prototype,"elementsPerRow",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Ku.prototype,"isDarkTheme",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Ku.prototype,"hasTile",void 0);
_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Ku.prototype,"hasMetadata",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Ku.prototype,"showLogoImage",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Ku.prototype,"hovered",void 0);_.G([_.y(),_.q("design:type",Object)],Ku.prototype,"currentColorData",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.q("design:type",String)],Ku.prototype,"bannerStyle",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.q("design:type",String)],Ku.prototype,"location",void 0);_.G([_.y(),_.q("design:type",Object)],Ku.prototype,"tileLottiePlayerProps",void 0);_.G([_.y(),_.q("design:type",Object)],Ku.prototype,"tileLottieAnimationRef",void 0);
_.G([_.y(),_.q("design:type",Object)],Ku.prototype,"backgroundLottiePlayerProps",void 0);_.G([_.y(),_.q("design:type",Object)],Ku.prototype,"backgroundLottieAnimationRef",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ku.prototype,"useBiggerShowcaseImage",void 0);_.G([_.hG("yt-thumbnail-view-model"),_.q("design:type",HTMLElement)],Ku.prototype,"thumbnail",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Ku.prototype,"isHideEnclosingAction",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ku.prototype,"dataChanged",null);_.G([_.Ya("hovered"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ku.prototype,"hoveredChanged",null);_.G([_.jk("isDarkTheme"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ku.prototype,"themeChanged",null);
_.G([_.jk("currentColorData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ku.prototype,"currentColorChanged",null);_.G([_.dX({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Ku);
_.e(Ku,"ytd-statement-banner-renderer",function(){if(C4z!==void 0)return C4z;var H=document.createElement("template");_.E(H,'\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="onMouseLeave" on-mouseover="onMouseOver" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" 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          <div id="tile-image-view-model" hidden="[[!hasThumbnailViewModel(data)]]" class="style-scope ytd-statement-banner-renderer"></div>\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="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="[[getMaxTitleFontSize(data)]]" 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="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\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="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return C4z=H},{mode:1});var tWz;var oV=function(){var H=_.B.apply(this,arguments)||this;H.isSearch=!1;H.hideShelfHeader=!1;H.engagementPanel=!1;H.disableMouseScroll=!0;H.useFloorScrolling=!0;return H};
_.R(oV,_.B);oV.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.hP("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.hP("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
oV.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
oV.prototype.onDataChanged=oV.prototype.onDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],oV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],oV.prototype,"isSearch",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],oV.prototype,"hideShelfHeader",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],oV.prototype,"engagementPanel",void 0);_.G([_.y(),_.q("design:type",Object)],oV.prototype,"disableMouseScroll",void 0);_.G([_.y(),_.q("design:type",Object)],oV.prototype,"useFloorScrolling",void 0);_.G([_.y(),_.q("design:type",Object)],oV.prototype,"data",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],oV.prototype,"onDataChanged",null);
_.G([_.dX({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],oV);
_.e(oV,"ytd-reel-shelf-renderer",function(){if(tWz!==void 0)return tWz;var H=document.createElement("template");_.E(H,'\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="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-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-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return tWz=H},{mode:_.cX("kevlar_poly_si_batch_j028")?1:2});var c3B;var y3m;y3m=_.NP(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.BfK=_.LF(y3m);var r3r=_.r(function(H){var U=H.data;H=H.useSmallFont;var A={},M={};return _.Z("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.Z(_.K,{cond:function(){return U().favicon},
then:function(W){return _.Z(_.nG,{data:W,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.Z("div",{class:"ytChannelExternalLinkViewModelContainer"},_.Z(_.Pb,{text:function(){return U().title},
className:_.CG("ytChannelExternalLinkViewModelTitle",(A.ytChannelExternalLinkViewModelTitleSmallFont=H,A)),ellipsisTruncate:!0,userInput:!0}),_.Z(_.Pb,{text:function(){return U().link},
className:_.CG("ytChannelExternalLinkViewModelLink",(M.ytChannelExternalLinkViewModelLinkSmallFont=H,M)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"jd");
r3r.idomCompat=!0;_.LG(r3r,"yt-channel-external-link-view-model",{props:{data:_.sY,useSmallFont:_.sY}});_.Qm("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var FO=function(){var H=_.B.apply(this,arguments)||this;H.revealButtonClass="button";H.businessEmailDisplayState="HIDE_SECTION";return H};
_.R(FO,_.B);_.X=FO.prototype;_.X.refit=function(){var H=this;_.oS(function(){_.Bg(H.hostElement,"yt-refit-popups-action")});
_.rV(this,function(){_.Bg(H.hostElement,"yt-refit-popups-action")})};
_.X.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.f1(_.BfK),this.businessEmailDisplayState="CAPTCHA")};
_.X.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"};
_.X.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.X.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"}}}};
_.X.computeEmailHref=function(H){return"mailto:"+H};
_.X.computeSafeUrl=function(H){if(H)return _.j3(H)};
_.X.linkEndpoint=function(H){return _.p(H.onTap,_.X1)};
_.X.linkEndpointToHref=function(H){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(H))};
_.X.onYtServiceRequestCompleted=function(H){var U;if((U=H.detail.data)==null?0:U.businessEmail)this.businessEmail=H.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var A;if((A=H.detail.data)==null?0:A.errorMessage)this.businessEmailErrorMessage=H.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.X.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var H=this.JSC$16735_captchaTextarea.value;if(H){H={recaptcha_response_token:H,channel_id:this.metadata.channelId};var U=_.p(this.metadata.onBusinessEmailRevealClickCommand,_.X1);U&&this.ytComponentBehavior.resolveCommand(U,{form:H})}}};
_.X.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.D5.Object.defineProperties(FO.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var H;return _.p((H=this.data)==null?void 0:H.metadata,nGw)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.p(this.metadata.businessEmailRevealButton,_.ot)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var H=new URL(this.metadata.canonicalChannelUrl);return H.host+H.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 _.p(this.metadata.learnMoreOnTap,_.X1)}}});
FO.prototype.onYtServiceRequestCompleted=FO.prototype.onYtServiceRequestCompleted;FO.prototype.businessEmailMetadataChanged=FO.prototype.businessEmailMetadataChanged;FO.prototype.refit=FO.prototype.refit;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],FO.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],FO.prototype,"ytRendererstamperBehavior",void 0);_.G([_.hG("#g-recaptcha-response"),_.q("design:type",HTMLTextAreaElement)],FO.prototype,"JSC$16735_captchaTextarea",void 0);_.G([_.y(),_.q("design:type",Object)],FO.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],FO.prototype,"revealButtonClass",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],FO.prototype,"metadata",null);
_.G([_.a("metadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],FO.prototype,"revealButton",null);_.G([_.a("metadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],FO.prototype,"channelDisplayUrl",null);_.G([_.jk("metadata"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],FO.prototype,"refit",null);_.G([_.a("metadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],FO.prototype,"formattedDescription",null);
_.G([_.a("metadata","learnMoreCommand"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],FO.prototype,"shouldRendereVerifiedPhoneStatus",null);_.G([_.a("metadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],FO.prototype,"learnMoreCommand",null);_.G([_.y(),_.q("design:type",String)],FO.prototype,"businessEmailDisplayState",void 0);_.G([_.y(),_.q("design:type",String)],FO.prototype,"businessEmail",void 0);
_.G([_.y(),_.q("design:type",String)],FO.prototype,"businessEmailErrorMessage",void 0);_.G([_.jk("metadata"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],FO.prototype,"businessEmailMetadataChanged",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],FO.prototype,"onYtServiceRequestCompleted",null);
_.G([_.dX({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],FO);
_.e(FO,"ytd-about-channel-renderer",function(){if(c3B!==void 0)return c3B;var H=document.createElement("template");_.E(H,'\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" aria-label$="[[metadata.learnMoreA11yLabel]]">\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return c3B=H},{mode:1});var epr;var Pv=function(){return _.B.apply(this,arguments)||this};
_.R(Pv,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Pv.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Pv.prototype,"data",void 0);_.G([_.dX({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Pv);
_.e(Pv,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(epr!==void 0)return epr;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return epr=H},{mode:1});var Din;var sG=function(){return _.B.apply(this,arguments)||this};
_.R(sG,_.B);sG.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],sG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],sG.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],sG.prototype,"aligment",void 0);_.G([_.dX({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],sG);
_.e(sG,"ytd-channel-list-sub-menu-renderer",function(){if(Din!==void 0)return Din;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Din=
H},{mode:1});var $in;var nu=function(){return _.B.apply(this,arguments)||this};
_.R(nu,_.B);nu.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}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],nu.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],nu.prototype,"data",void 0);_.G([_.dX({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],nu);
_.e(nu,"ytd-channel-sub-menu-renderer",function(){if($in!==void 0)return $in;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return $in=H},{mode:1});var lI2;var GKk;var NN=function(){var H=_.B.apply(this,arguments)||this;H.isCompact=!1;return H};
_.R(NN,_.B);_.D5.Object.defineProperties(NN.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var H,U;return((U=_.p((H=this.data)==null?void 0:H.endpoint,_.gu))==null?void 0:U.target)==="TARGET_NEW_WINDOW"}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],NN.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],NN.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],NN.prototype,"isCompact",void 0);_.G([_.a("isCompact"),_.q("design:type",Number),_.q("design:paramtypes",[])],NN.prototype,"thumbnailWidth",null);
_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],NN.prototype,"openNewWindow",null);_.G([_.dX({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],NN);
_.e(NN,"ytd-media-lockup-renderer",function(){if(GKk!==void 0)return GKk;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return GKk=H},{mode:1});var Yih;var SB=function(){return _.B.apply(this,arguments)||this};
_.R(SB,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],SB.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],SB.prototype,"data",void 0);_.G([_.dX({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],SB);
_.e(SB,"ytd-structured-description-channel-lockup-renderer",function(){if(Yih!==void 0)return Yih;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Yih=H},{mode:1});var qin;var pu=function(){var H=_.B.apply(this,arguments)||this;H.isCompact=!1;H.collectionsStackColor=_.S("modernize_structured_description_playlist_lockups_v2");return H};
_.R(pu,_.B);pu.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:_.S("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.D5.Object.defineProperties(pu.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M,W,w;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(H=this.data)==null?void 0:(U=H.thumbnail)==null?void 0:U.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(A=this.data)==null?void 0:(M=A.thumbnail)==null?void 0:M.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(W=this.data)==null?void 0:(w=W.thumbnail)==null?
void 0:w.vibrantColorPalette:void 0}}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],pu.prototype,"componentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],pu.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],pu.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],pu.prototype,"showSidePanelThumbnailOverlay",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],pu.prototype,"isCompact",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],pu.prototype,"collectionsStackColor",void 0);_.G([_.a("data"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],pu.prototype,"twoLineTitle",null);_.G([_.a("data","collectionsStackColor"),_.q("design:type",Object),_.q("design:paramtypes",[])],pu.prototype,"collectionStack",null);
_.G([_.dX({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],pu);
_.e(pu,"ytd-structured-description-playlist-lockup-renderer",function(){if(qin!==void 0)return qin;var H=document.createElement("template");_.E(H,'\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)]]" aria-label$="[[getSimpleString(data.title)]]">\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return qin=H},{mode:1});var hpw;var Lu=function(){return _.B.apply(this,arguments)||this};
_.R(Lu,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Lu.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Lu.prototype,"data",void 0);_.G([_.dX({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Lu);
_.e(Lu,"ytd-structured-description-video-lockup-renderer",function(){if(hpw!==void 0)return hpw;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return hpw=H},{mode:2});var RV=function(){return _.B.apply(this,arguments)||this};
_.R(RV,_.B);
RV.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}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],RV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],RV.prototype,"data",void 0);_.G([_.dX({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],RV);
_.e(RV,"ytd-compact-infocard-renderer",function(){if(lI2!==void 0)return lI2;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return lI2=H},{mode:1});var kKn;var EG=function(){return _.B.apply(this,arguments)||this};
_.R(EG,_.B);EG.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.D5.Object.defineProperties(EG.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],EG.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],EG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],EG.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],EG.prototype,"ytdReduxBehavior",void 0);_.G([_.y({selector:_.Wo}),_.q("design:type",Object)],EG.prototype,"isGridViewEnabled",void 0);
_.G([_.a("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],EG.prototype,"watchFeedBigThumbs",null);_.G([_.a("isGridViewEnabled","data"),_.y({reflectToAttribute:!0,value:"168"}),_.q("design:type",String),_.q("design:paramtypes",[])],EG.prototype,"thumbnailWidth",null);_.G([_.a("isGridViewEnabled","data"),_.y({reflectToAttribute:!0,value:"94"}),_.q("design:type",String),_.q("design:paramtypes",[])],EG.prototype,"customThumbnailSize",null);
_.G([_.y(),_.q("design:type",Object)],EG.prototype,"data",void 0);_.G([_.dX({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],EG);
_.e(EG,"ytd-compact-playlist-renderer",function(){if(kKn!==void 0)return kKn;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return kKn=H},{mode:1});var vrw;var ml=function(){var H=_.B.apply(this,arguments)||this;H.roundedContainer=!0;H.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return H};
_.R(ml,_.B);_.X=ml.prototype;_.X.attached=function(){this.requestElementsPerRow()};
_.X.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"}}}};
_.X.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.X.computeViewStyle=function(H){return H.style?H.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.X.onUpdateElementsPerRowAction=function(H){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&H===1};
_.X.requestElementsPerRow=function(){_.cg(this.hostElement,"yt-request-elements-per-row")};
ml.prototype.dataChanged=ml.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ml.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ml.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],ml.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],ml.prototype,"actionHandlerBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],ml.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],ml.prototype,"hideThumbnail",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.q("design:type",String)],ml.prototype,"viewStyle",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],ml.prototype,"roundedContainer",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ml.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],ml);
_.e(ml,"ytd-compact-promoted-item-renderer",function(){if(vrw!==void 0)return vrw;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return vrw=H},{mode:1});var Tfy;var gL=function(){return _.B.apply(this,arguments)||this};
_.R(gL,_.B);gL.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
gL.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
gL.prototype.onYtNavigate=function(H,U){var A=this;if(U.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",U)){var M=this.get("watchEndpoint.videoId",U.endpoint),W=_.Bg(this.hostElement,"yt-get-current-video-id-action")[0];_.S("kevlar_mix_handle_first_endpoint_different")&&M&&W&&M!==W||(H.stopPropagation(),_.RL().getPlayerPromise().then(function(w){if(w.getPlayerState()===0&&A.data.secondaryNavigationEndpoint)var d=A.data.secondaryNavigationEndpoint;else{d=
Object.assign({},U.endpoint);var O=_.p(d.commandMetadata,_.Y2);O&&(w=Math.floor(w.getCurrentTime()),O.url=_.kZ(O.url,{t:w}),!_.S("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(O=_.p(d,_.sH)))&&(O.startTimeSeconds=w)}_.cg(A.hostElement,"yt-navigate",{endpoint:d})}))}};
_.D5.Object.defineProperties(gL.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M,W,w;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(H=this.data)==null?void 0:(U=H.thumbnail)==null?void 0:U.sampledThumbnailColor,vibrantColorPalette:(A=this.data)==null?void 0:(M=A.thumbnail)==null?void 0:M.vibrantColorPalette,darkColorPalette:(W=this.data)==null?void 0:(w=W.thumbnail)==null?void 0:w.darkColorPalette,experimentEnabled:!0}}}});
gL.prototype.onYtNavigate=gL.prototype.onYtNavigate;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],gL.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.D1.YtEndpointBehavior),_.q("design:type",Object)],gL.prototype,"ytEndpointBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],gL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],gL.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.g(_.PA),_.q("design:type",Object)],gL.prototype,"ytdLockupBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],gL.prototype,"ytdReduxBehavior",void 0);_.G([_.y({selector:_.Wo}),_.q("design:type",Object)],gL.prototype,"isGridViewEnabled",void 0);_.G([_.a("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],gL.prototype,"watchFeedBigThumbs",null);
_.G([_.a("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.q("design:type",String),_.q("design:paramtypes",[])],gL.prototype,"thumbnailWidth",null);_.G([_.y(),_.q("design:type",Object)],gL.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],gL.prototype,"collectionStack",null);_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],gL.prototype,"onYtNavigate",null);
_.G([_.dX({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],gL);
_.e(gL,"ytd-compact-radio-renderer",function(){if(Tfy!==void 0)return Tfy;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Tfy=H},{mode:1});var jWw;var aV=function(){return _.B.apply(this,arguments)||this};
_.R(aV,_.B);aV.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
aV.prototype.computeRendererStyle=function(H){return H.style?H.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.G([_.y(),_.q("design:type",Object)],aV.prototype,"data",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],aV.prototype,"rendererBehavior",void 0);_.G([_.y({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.q("design:type",String)],aV.prototype,"rendererStyle",void 0);_.G([_.dX({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],aV);
_.e(aV,"ytd-compact-text-promo-renderer",function(){if(jWw!==void 0)return jWw;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return jWw=H},{mode:1});var II2;var xT=function(){var H=_.B.apply(this,arguments)||this;H.isShortsStyle=!1;return H};
_.R(xT,_.B);_.X=xT.prototype;_.X.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"}}}};
_.X.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.cg(this.hostElement,"yt-disable-lockup-interaction"):_.cg(this.hostElement,"yt-enable-lockup-interaction"))};
_.X.isMetaBlockEmpty=function(H){return!H||!H.longBylineText&&!H.shortBylineText&&!H.shortViewCountText&&!H.viewCountText};
_.X.computeHasOneLineTitle=function(H){return this.forceOneLineTitle||!(H==null||!H.buttons)};
_.X.computeDisableInteraction=function(){var H;return!((H=this.data)==null?0:H.navigationEndpoint)};
_.X.hasSingularTopStandaloneBadge=function(){var H;return!((H=this.data)==null||!H.topStandaloneBadge)};
_.D5.Object.defineProperties(xT.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("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 H;return this.hasSingularTopStandaloneBadge()?[(H=this.data)==null?void 0:H.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var H;return this.shouldShowTopBadges?((H=this.data)==null?void 0:H.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
xT.prototype.disableInteractionChanged=xT.prototype.disableInteractionChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],xT.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],xT.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],xT.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.PA),_.q("design:type",Object)],xT.prototype,"ytdLockupBehavior",void 0);
_.G([_.g(_.dF),_.q("design:type",Object)],xT.prototype,"ytdReduxBehavior",void 0);_.G([_.y({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.q("design:type",Boolean)],xT.prototype,"metaBlockEmpty",void 0);_.G([_.y({selector:_.Wo}),_.q("design:type",Object)],xT.prototype,"isGridViewEnabled",void 0);_.G([_.a("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],xT.prototype,"watchFeedBigThumbs",null);
_.G([_.a("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.q("design:type",String),_.q("design:paramtypes",[])],xT.prototype,"thumbnailWidth",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],xT.prototype,"isShortsStyle",void 0);_.G([_.y(),_.q("design:type",Object)],xT.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.q("design:type",Boolean)],xT.prototype,"hasOneLineTitle",void 0);
_.G([_.y(),_.q("design:type",Boolean)],xT.prototype,"hideThumbnail",void 0);_.G([_.y(),_.q("design:type",Boolean)],xT.prototype,"forceOneLineTitle",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.q("design:type",Boolean)],xT.prototype,"disableInteraction",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],xT.prototype,"musicMetadataVideoLockup",void 0);
_.G([_.Ya("disableInteraction"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xT.prototype,"disableInteractionChanged",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],xT.prototype,"shouldShowTopBadges",null);_.G([_.a("data"),_.q("design:type",Array),_.q("design:paramtypes",[])],xT.prototype,"topBadges",null);
_.G([_.a("shouldShowTopBadges","data"),_.q("design:type",Array),_.q("design:paramtypes",[])],xT.prototype,"inlineMetadataBadges",null);_.G([_.a("shouldShowTopBadges"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],xT.prototype,"shouldShowBadgesBelowMetadata",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],xT.prototype,"compactTitleClass",null);_.G([_.dX({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],xT);
_.e(xT,"ytd-compact-video-renderer",function(){if(II2!==void 0)return II2;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return II2=H},{mode:2});var QWg;_.Qm("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var z6=function(){return _.B.apply(this,arguments)||this};
_.R(z6,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],z6.prototype,"data",void 0);_.G([_.dX({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],z6);
_.e(z6,"ytd-counterfactual-renderer",function(){if(QWg!==void 0)return QWg;var H=document.createElement("template");_.E(H,"\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");H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return QWg=H},{mode:1});var VWn;var Cu=function(){var H=_.B.apply(this,arguments)||this;H.hidden=!1;return H};
_.R(Cu,_.B);Cu.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.lx().resolve(_.YV).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Cu.prototype.computeHidden=function(H){return!!H};
_.D5.Object.defineProperties(Cu.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}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Cu.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Cu.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.q("design:type",Object)],Cu.prototype,"hidden",void 0);_.G([_.a("data.label"),_.q("design:type",String),_.q("design:paramtypes",[])],Cu.prototype,"label",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Cu.prototype,"value",null);
_.G([_.dX({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Cu);
_.e(Cu,"ytd-dropdown-item-renderer",function(){if(VWn!==void 0)return VWn;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return VWn=H},{mode:1});var HDB;var Uly;var t7=function(){return _.B.apply(this,arguments)||this};
_.R(t7,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],t7.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],t7.prototype,"data",void 0);_.G([_.y({computed:"getSimpleString(data.label)"}),_.q("design:type",String)],t7.prototype,"label",void 0);_.G([_.dX({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],t7);
_.e(t7,"ytd-navigation-dropdown-item-renderer",function(){if(Uly!==void 0)return Uly;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Uly=H},{mode:1});var cv=function(){var H=_.B.apply(this,arguments)||this;H.disabled=!1;H.value="";H.noLabelFloat=!1;H.noUnderline=!1;H.usePrimaryColor=!1;H.hasBackground=!1;H.verticalAlign="top";H.autosize=!1;H.minAutosizeWidth=100;H.autosizeFont="14px Roboto";return H};
_.R(cv,_.B);_.X=cv.prototype;_.X.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"}}}};
_.X.open=function(){this.inputEl.open()};
_.X.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.X.dataChanged=function(){this.reset()};
_.X.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("value-changed",this.value))};
_.X.stopPropagation=function(H){H.stopPropagation()};
_.X.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var H=this.canvas.getContext("2d");H&&(H.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(H.measureText(this.inputEl.value).width)+24)+"px")}};
_.X.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var H=0,U=this.data.entries.length;H<U;H++){var A=this.data.entries[H],M;for(M in A)if(A.hasOwnProperty(M)){var W=A[M];if("isSelected"in W&&W.isSelected)return"stringValue"in W?W.stringValue||"":"int32Value"in W?W.int32Value||0:0}}return null};
_.X.updateValueFromBinding=function(H){this.value=H.detail.value};
_.D5.Object.defineProperties(cv.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 H=0,U=this.data.entries.length;H<U;H++){var A=this.data.entries[H],M;for(M in A)if(A.hasOwnProperty(M)){var W=A[M];if("isSelected"in W&&W.isSelected&&"label"in W)return this.ytRendererBehavior.getSimpleString(W.label)}}return null}}});
cv.prototype.autoSizeLabel=cv.prototype.autoSizeLabel;cv.prototype.stopPropagation=cv.prototype.stopPropagation;cv.prototype.valueChangedForBinding=cv.prototype.valueChangedForBinding;cv.prototype.dataChanged=cv.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],cv.prototype,"ytRendererStamperBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],cv.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],cv.prototype,"disabled",void 0);_.G([_.y(),_.q("design:type",Object)],cv.prototype,"value",void 0);_.G([_.y(),_.q("design:type",Object)],cv.prototype,"noLabelFloat",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],cv.prototype,"noUnderline",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],cv.prototype,"theme",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],cv.prototype,"usePrimaryColor",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],cv.prototype,"hasBackground",void 0);_.G([_.y(),_.q("design:type",Object)],cv.prototype,"verticalAlign",void 0);_.G([_.y(),_.q("design:type",Object)],cv.prototype,"autosize",void 0);_.G([_.y(),_.q("design:type",Object)],cv.prototype,"minAutosizeWidth",void 0);_.G([_.y(),_.q("design:type",Object)],cv.prototype,"autosizeFont",void 0);
_.G([_.hG("#entries"),_.q("design:type",Object)],cv.prototype,"entries",void 0);_.G([_.hG("#input"),_.q("design:type",Object)],cv.prototype,"inputEl",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cv.prototype,"dataChanged",null);_.G([_.jk("value"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cv.prototype,"valueChangedForBinding",null);
_.G([_.Gl("iron-overlay-opened"),_.Gl("iron-overlay-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],cv.prototype,"stopPropagation",null);_.G([_.Gl("iron-select"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cv.prototype,"autoSizeLabel",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],cv.prototype,"label",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],cv);
_.e(cv,"ytd-dropdown-renderer",function(){if(HDB!==void 0)return HDB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return HDB=H},{mode:1});var Amk;var yL=function(){var H=_.B.apply(this,arguments)||this;H.isConstrainedList=!1;return H};
_.R(yL,_.B);yL.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"}}}};
yL.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
yL.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
yL.prototype.computeViewAllHidden=function(H,U){return H||!U.viewAllEndpoint};
yL.prototype.fillRestIfNoShowMore=yL.prototype.fillRestIfNoShowMore;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],yL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.aN.YtLazyListBehavior),_.q("design:type",Object)],yL.prototype,"ytLazyListBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],yL.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],yL.prototype,"isConstrainedList",void 0);_.G([_.jk("data","canShowMore"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yL.prototype,"fillRestIfNoShowMore",null);_.G([_.dX({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],yL);
_.e(yL,"ytd-expanded-shelf-contents-renderer",function(){if(Amk!==void 0)return Amk;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Amk=H},{mode:2});var Mjr;var Bv=function(){return _.B.apply(this,arguments)||this};
_.R(Bv,_.B);Bv.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}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Bv.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Bv.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Bv.prototype,"data",void 0);_.G([_.dX({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Bv);
_.e(Bv,"ytd-feed-channel-filter-header-renderer",function(){if(Mjr!==void 0)return Mjr;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Mjr=H},{mode:1});var WrB;var wHy;var XHz;var rL=function(){return _.B.apply(this,arguments)||this};
_.R(rL,_.B);_.X=rL.prototype;_.X.onClick=function(H){var U,A=(U=this.data)==null?void 0:U.sectionEndpoint;!_.ny(_.Lf(H),this.hostElement,["A".toString()])&&A&&_.cg(this.hostElement,"yt-navigate",{endpoint:A})};
_.X.computeHasSectionEndpoint=function(H){return(H==null?void 0:H.sectionEndpoint)!==void 0};
_.X.computeShowHeaderAsLink=function(H){return(H==null?void 0:H.header)!==void 0&&(H==null?void 0:H.sectionEndpoint)!==void 0};
_.X.computeShowSubheaderAsLink=function(H){return(H==null?void 0:H.subheader)!==void 0&&(H==null?void 0:H.sectionEndpoint)!==void 0&&(H==null?void 0:H.header)===void 0};
_.X.getHeaderAsLinkClass=function(H){var U=[],A;(H==null?0:(A=H.headerIcon)==null?0:A.iconType)&&U.push("header-link-active");return U.join(" ")};
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],rL.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],rL.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],rL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],rL.prototype,"data",void 0);
_.G([_.y({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],rL.prototype,"hasSectionEndpoint",void 0);_.G([_.y({computed:"computeShowHeaderAsLink(data)"}),_.q("design:type",Boolean)],rL.prototype,"showHeaderAsLink",void 0);_.G([_.y({computed:"computeShowSubheaderAsLink(data)"}),_.q("design:type",Boolean)],rL.prototype,"showSubheaderAsLink",void 0);_.G([_.dX({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],rL);
_.e(rL,"ytd-medical-panel-section-renderer",function(){if(XHz!==void 0)return XHz;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return XHz=H},{mode:1});var eB=function(){var H=_.B.apply(this,arguments)||this;H.isExpanded=!1;H.roundedContainer=!0;H.skipRoundingTop=!1;H.toggleExpandableSection=function(){H.isExpanded=!H.isExpanded};
return H};
_.R(eB,_.B);
eB.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]]"}}}}}};
eB.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
eB.prototype.dataChanged=eB.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],eB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],eB.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],eB.prototype,"isExpanded",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],eB.prototype,"roundedContainer",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],eB.prototype,"skipRoundingTop",void 0);_.G([_.y(),_.q("design:type",Object)],eB.prototype,"toggleExpandableSection",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],eB.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],eB);
_.e(eB,"ytd-medical-panel-content-renderer",function(){if(wHy!==void 0)return wHy;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return wHy=H},{mode:1});_.Qm("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Do=function(){var H=_.B.apply(this,arguments)||this;H.roundedContainer=!0;H.extractOverlay=!1;H.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");H.hasTitle=!1;H.linkIcon="OPEN_IN_NEW";H.isDismissed=!1;return H};
_.R(Do,_.B);Do.prototype.onOverlayConditionsChange=function(){var H=_.c4(this.hostElement).querySelector("ytd-info-panel-content-renderer");H&&(H.set("extractOverlay",this.extractOverlay),H.set("roundedContainer",this.roundedContainer))};
Do.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]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
Do.prototype.computeHasTitle=function(H){return!(H==null||!H.title)};
Do.prototype.onClick=function(H){var U,A=(U=this.data)==null?void 0:U.headerEndpoint;!_.ny(_.Lf(H),this.hostElement,["BUTTON".toString()])&&A&&this.ytComponentBehavior.resolveCommand(A)};
_.D5.Object.defineProperties(Do.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 H;return((H=this.data)==null?void 0:H.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.data)==null?void 0:H.disableBottomDivider)||!((U=this.data)==null?0:U.title)}}});
Do.prototype.onOverlayConditionsChange=Do.prototype.onOverlayConditionsChange;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Do.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Do.prototype,"ytdReduxBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],Do.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Do.prototype,"roundedContainer",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Do.prototype,"extractOverlay",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Do.prototype,"amsterdamEnabled",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.q("design:type",Object)],Do.prototype,"hasTitle",void 0);
_.G([_.y({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.a("data.background"),_.q("design:type",Object),_.q("design:paramtypes",[])],Do.prototype,"background",null);_.G([_.y({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.a("data.titleStyle"),_.q("design:type",Object),_.q("design:paramtypes",[])],Do.prototype,"titleStyle",null);
_.G([_.y({type:_.S("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.a("data.titleStyle"),_.q("design:type",Object),_.q("design:paramtypes",[])],Do.prototype,"showLinkIcon",null);_.G([_.y(),_.q("design:type",String)],Do.prototype,"linkIcon",void 0);_.G([_.y({type:_.S("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Do.prototype,"hideDivider",null);
_.G([_.y({selectorArgs:["data.dismissStateEntityKey"],selector:function(H,U){H=_.rH(H.entities,"dismissState",U);return(H==null?void 0:H.isDismissed)||(H==null?void 0:H.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(H==null?void 0:H.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.q("design:type",Object)],Do.prototype,"isDismissed",void 0);_.G([_.Ya("roundedContainer","extractOverlay"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Do.prototype,"onOverlayConditionsChange",null);_.G([_.dX({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Do);
_.e(Do,"ytd-info-panel-container-renderer",function(){if(WrB!==void 0)return WrB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return WrB=H},{mode:1});var iDw;_.Qm("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var $T=function(){return _.B.apply(this,arguments)||this};
_.R($T,_.B);$T.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
$T.prototype.computeStyle=function(H){return H?H:""};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],$T.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],$T.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.q("design:type",String)],$T.prototype,"titleStyle",void 0);
_.G([_.dX({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],$T);
_.ty()($T,"ytd-item-section-header-renderer",function(){if(iDw===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);iDw=H}H=iDw;return H},{allowedProps:["data"],
mode:1});var bDy;var dlr,ODn=function(){return dlr!==void 0?dlr:dlr=document.createElement("template")};
document.head.appendChild(ODn().content);var ucy;_.lr=new _.g3("VOTING_ANIMATION_CONTROLLER_TOKEN");var fRK=_.r(function(H){var U=H.data;var A=_.nA("div"),M=_.nA("div");H=_.b(_.iB("VOTE_STATUS_NONE",void 0,"YPH5mf"));var W=H.next().value,w=H.next().value,d=_.$Y(Pg7,function(){var n;return(n=U())==null?void 0:n.entityKey}),O=_.S("web_enable_voting_animation")||_.S("enable_music_web_cairo_voting_animation");
_.LA(function(){var n;((n=U().initialState)==null?0:n.status)&&w(U().initialState.status)});
var f=function(){var n,N,L=(N=(n=U().initialState)==null?void 0:n.votes)!=null?N:0,m;n=(m=U().initialState)==null?void 0:m.status;return n==="VOTE_STATUS_UPVOTED"?L-1:n==="VOTE_STATUS_DOWNVOTED"?L+1:L},J=function(){return W()==="VOTE_STATUS_UPVOTED"?f()+1:W()==="VOTE_STATUS_DOWNVOTED"?f()-1:f()},F=function(n){var N=n?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
w(N);var L=J(),m=_.lx().resolve(_.$V(_.lr)),z=d();z&&(n&&(z==null?0:z.upvoteDefaultButtonOnTap)?_.uj(z.upvoteDefaultButtonOnTap,{form:{element:A.value},disableClickTracking:!0}):(z==null?0:z.upvoteToggledButtonOnTap)&&_.uj(z.upvoteToggledButtonOnTap,{form:{element:A.value},disableClickTracking:!0}));var c;n=(c=z==null?void 0:z.enableOptimisticReordering)!=null?c:U().enableOptimisticReordering;O&&m&&U().itemId&&n&&ZDg(m,U().itemId,L,N)},P=function(n){var N=n?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
w(N);var L=J(),m=_.lx().resolve(_.$V(_.lr)),z=d();z&&(n&&(z==null?0:z.downvoteDefaultButtonOnTap)?_.uj(z.downvoteDefaultButtonOnTap,{form:{element:M.value},disableClickTracking:!0}):(z==null?0:z.downvoteToggledButtonOnTap)&&_.uj(z.downvoteToggledButtonOnTap,{form:{element:M.value},disableClickTracking:!0}));var c;n=(c=z==null?void 0:z.enableOptimisticReordering)!=null?c:U().enableOptimisticReordering;O&&m&&U().itemId&&n&&ZDg(m,U().itemId,L,N)};
H={};H=_.CG("ytVotingViewModelVoteCount",(H.ytVotingViewModelVoteCountDisabled=function(){return U().isDisabled},H));
return _.Z("voting-view-model",{class:"ytVotingViewModelHost"},_.Z("div",{el:A},_.Z(_.YY,{data:function(){var n=_.p(U().upvoteButton,_.Pc);return{toggleButtonViewModel:Object.assign({},n,{isToggled:W()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(n){return _.Z(_.MI,{data:n.data,
onToggle:F})}})),_.Z("div",{class:H},function(){var n,N,L;
return W()==="VOTE_STATUS_UPVOTED"?(n=U().initialState)==null?void 0:n.compactVotesUpvoted:W()==="VOTE_STATUS_DOWNVOTED"?(N=U().initialState)==null?void 0:N.compactVotesDownvoted:(L=U().initialState)==null?void 0:L.compactVotes}),_.Z("div",{el:M},_.Z(_.YY,{data:function(){var n=_.p(U().downvoteButton,_.Pc);
return{toggleButtonViewModel:Object.assign({},n,{isToggled:W()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(n){return _.Z(_.MI,{data:n.data,
onToggle:P})}})))},"kd");_.LG(_.r(function(H){var U=H.data;return _.Z("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.Z("div",{class:_.CG("ytEngagementBarViewModelEngagementBarWrapper",H.className)},_.Z(_.YY,{data:function(){return U().actions}},{votingViewModel:fRK})))},"ld"),"engagement-bar-view-model",{props:{data:_.sY,
className:_.sY}});var G6=function(){var H=_.B.apply(this,arguments)||this;H.playlistVotingAnimationEnabled=_.S("web_enable_voting_animation");H.downloadProgress=0;H.transferState="TRANSFER_STATE_UNKNOWN";H.downloadState="DOWNLOAD_STATE_UNKNOWN";H.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";H.offlineVideoPolicyExpirationTimestamp=0;return H};
_.R(G6,_.B);_.X=G6.prototype;_.X.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"}}}};
_.X.canReorderChanged=function(){this.persistentDragHandle=_.S("kevlar_playlist_drag_handles")&&this.canReorder};
_.X.onDrag=function(){if(this.thumbnail){var H=_.c4(this.thumbnail).querySelector("yt-image");H&&(H.shouldRenderLazy=!1)}};
_.X.onMenuOverlayChanged=function(H,U){this.menuOpened=U};
_.X.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.X.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.X.onContentsTap=function(H){var U,A=(U=this.data)==null?void 0:U.serviceEndpoints;if(A&&A.length===1&&_.p(A[0],SIF)&&!_.ny(_.Lf(H),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(A[0]);else{var M;(U=(M=this.data)==null?void 0:M.navigationEndpoint)&&_.S("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?Jmn(_.lx().resolve(_.ZB),U):(_.vc().playlistSuggestionsShelfActivation=
!0,_.Kr2(_.lx().resolve(_.ZB),U)):U&&!_.ny(_.Lf(H),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.S("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.cg(this.hostElement,"yt-navigate",{endpoint:U}):this.ytComponentBehavior.resolveCommand(U))}};
_.X.computeStyle=function(H){return H?H.toLowerCase().replace(/_/g,"-"):""};
_.X.computeThumbnailWidth=function(H){return H==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.X.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=luc(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))}};
_.X.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.X.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.X.dataChanged=function(){if(this.data){var H,U,A,M=((H=this.downloadRenderData)==null?void 0:H.badges)&&((U=this.downloadRenderData)==null?void 0:U.badges)!==((A=this.data)==null?void 0:A.badges),W,w,d;H=((W=this.downloadRenderData)==null?void 0:W.thumbnailOverlays)&&((w=this.downloadRenderData)==null?void 0:w.thumbnailOverlays)!==((d=this.data)==null?void 0:d.thumbnailOverlays);(!this.downloadRenderData||M||H)&&this.downloadStateChanged()}};
_.X.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var H,U,A=(H=this.data.menu)==null?void 0:(U=H.menuRenderer)==null?void 0:U.items;if(A)for(H=_.b(A),U=H.next();!U.done;U=H.next())if(U=U.value,A=void 0,_.p((A=U.menuServiceItemRenderer)==null?void 0:A.serviceEndpoint,_.dk)){var M=A=void 0,W=void 0;U=(A=U)==null?void 0:(M=A.menuServiceItemRenderer)==null?void 0:(W=M.serviceEndpoint)==null?void 0:W.playlistEditEndpoint;W=M=void 0;if(A=(M=U)==null?void 0:(W=M.actions)==null?void 0:
W[0])M=void 0,A.setVideoId=(M=this.data)==null?void 0:M.setVideoId;W=M=A=void 0;if(U=(A=U)==null?void 0:(M=A.clientActions)==null?void 0:(W=M[0])==null?void 0:W.playlistRemoveVideosAction)A=void 0,U.setVideoIds=[(A=this.data)==null?void 0:A.setVideoId]}}};
_.D5.Object.defineProperties(G6.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
G6.prototype.setVideoIdChanged=G6.prototype.setVideoIdChanged;G6.prototype.dataChanged=G6.prototype.dataChanged;G6.prototype.downloadStateChanged=G6.prototype.downloadStateChanged;G6.prototype.onMenuOverlayChanged=G6.prototype.onMenuOverlayChanged;G6.prototype.canReorderChanged=G6.prototype.canReorderChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],G6.prototype,"ytdReduxBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],G6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.PA),_.q("design:type",Object)],G6.prototype,"ytdLockupBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],G6.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],G6.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],G6.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],G6.prototype,"canReorder",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],G6.prototype,"menuOpened",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],G6.prototype,"handleIsHovered",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],G6.prototype,"persistentDragHandle",void 0);_.G([_.y(),_.q("design:type",Object)],G6.prototype,"downloadRenderData",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.q("design:type",String)],G6.prototype,"styleType",void 0);_.G([_.y({computed:"computeThumbnailWidth(data.style)"}),_.q("design:type",Number)],G6.prototype,"thumbnailWidth",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],G6.prototype,"isDownloads",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],G6.prototype,"playlistVotingAnimationEnabled",void 0);
_.G([_.y({selector:ZY,selectorArgs:["data.videoId"]}),_.q("design:type",Object)],G6.prototype,"downloadProgress",void 0);_.G([_.y(),_.q("design:type",Number)],G6.prototype,"relativeDateReference",void 0);_.G([_.y({selector:_.O_,selectorArgs:["data.videoId"]}),_.q("design:type",Object)],G6.prototype,"transferState",void 0);_.G([_.y({selector:bnc,selectorArgs:["data.videoId"]}),_.q("design:type",Object)],G6.prototype,"downloadState",void 0);
_.G([_.y({selector:sNF,selectorArgs:["data.videoId"]}),_.q("design:type",Object)],G6.prototype,"offlinePolicyAction",void 0);_.G([_.y({selector:n07,selectorArgs:["data.videoId"]}),_.q("design:type",Object)],G6.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.G([_.y({selector:SFc,selectorArgs:["data.videoId"]}),_.q("design:type",Object)],G6.prototype,"entityInfo",void 0);_.G([_.y({selector:_.iE}),_.q("design:type",Boolean)],G6.prototype,"miniplayerIsActive",void 0);
_.G([_.a("data"),_.q("design:type",String),_.q("design:paramtypes",[])],G6.prototype,"playlistVideoId",null);_.G([_.hG("#thumbnail"),_.q("design:type",Object)],G6.prototype,"thumbnail",void 0);_.G([_.jk("canReorder"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],G6.prototype,"canReorderChanged",null);
_.G([_.Gl("yt-menu-overlay-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Boolean]),_.q("design:returntype")],G6.prototype,"onMenuOverlayChanged",null);_.G([_.jk("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],G6.prototype,"downloadStateChanged",null);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],G6.prototype,"dataChanged",null);_.G([_.jk("data.setVideoId"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],G6.prototype,"setVideoIdChanged",null);_.G([_.dX({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],G6);
_.e(G6,"ytd-playlist-video-renderer",function(){if(ucy!==void 0)return ucy;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);H.content.insertBefore(ODn().content.cloneNode(!0),H.content.firstChild);return ucy=H},{mode:1});var oQK;var qN=function(){return _.B.apply(this,arguments)||this};
_.R(qN,_.B);_.G([_.y(),_.q("design:type",Object)],qN.prototype,"data",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],qN.prototype,"rendererBehavior",void 0);_.G([_.dX({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],qN);
_.e(qN,"ytd-premium-browse-footer-renderer",function(){if(oQK!==void 0)return oQK;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return oQK=H},{mode:1});var Frg;var h7=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return H};
_.R(h7,_.B);_.X=h7.prototype;_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.X.handleDarkModeToggledAction=function(H){this.isDarkTheme=H};
_.X.computeHeaderLogoThumbnail=function(H,U){if(H)return U?H.darkLogo:H.lightLogo};
_.X.computeHeaderLogoHeight=function(H,U){var A,M,W;return(H=(A=this.computeHeaderLogoThumbnail(H,U))==null?void 0:(M=A.thumbnails)==null?void 0:(W=M[0])==null?void 0:W.height)&&H%31===0?"31":"24"};
_.X.computeHeaderLogoMarginBottom=function(H,U){return this.computeHeaderLogoHeight(H,U)==="24"?"0":"-7"};
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],h7.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],h7.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],h7.prototype,"isDarkTheme",void 0);_.G([_.y({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.q("design:type",Object)],h7.prototype,"themeLogo",void 0);
_.G([_.y({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.q("design:type",String)],h7.prototype,"logoHeight",void 0);_.G([_.y({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.q("design:type",String)],h7.prototype,"logoMarginBottom",void 0);_.G([_.dX({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],h7);
_.e(h7,"ytd-primetime-promo-header-renderer",function(){if(Frg!==void 0)return Frg;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Frg=H},{mode:1});var P33;_.kT=_.r(function(H){var U=H.className;var A=H.data;var M=H.isOverlay;var W=H.maxLinesOverride;var w=H.useMediumText;var d=function(){return A().alwaysShowTruncationText},O=function(){return A().truncationText},f=function(){return w!==void 0&&w()?"medium":"small"},J=function(){return M!==void 0&&M()?"overlay":"default"},F=function(){var L,m;
return(m=(L=_.p(A().rendererContext,_.Tn))==null?void 0:L.label)!=null?m:""};
H=_.b(_.iB(!1,void 0,"llBUm"));var P=H.next().value,n=H.next().value;H=_.c$(function(){A().expandOnTap&&n(!P());return!1});
var N={};return _.Z("yt-description-preview-view-model",{el:_.sB(_.Wq(function(){return A().rendererContext})),
class:_.CG("ytDescriptionPreviewViewModelHost",U,(N.ytDescriptionPreviewViewModelClickable=function(){var L;return!((L=_.p(A().rendererContext,_.w7))==null||!L.onTap)},N.ytDescriptionPreviewViewModelIsOverlay=M,N)),
"on:click":H},_.Z(_.K,{cond:function(){return A().description},
then:function(L){return _.Z(_.K,{cond:P,then:function(){var m={};return _.Z("div",{class:_.CG("ytDescriptionPreviewViewModelDescription",(m.ytDescriptionPreviewViewModelDescriptionMediumText=w,m))},_.Z(_.Pb,{text:L}))},
else:function(){return _.Z(nHn,{text:L,alwaysShowTruncationText:d,truncationText:O,maxLines:function(){var m;return(m=W==null?void 0:W())!=null?m:A().maxLines},
textStyle:J,accessibilityLabel:F,textSize:f})}})}}))},"md");
_.kT.idomCompat=!0;var nQz=_.r(function(H){var U=_.c$(function(W){var w;(w=H.onClick)==null||w.call(H,W)}),A={},M={};
return _.Z("yt-shelf-header-layout",{class:_.CG("yt-shelf-header-layout",(A["yt-shelf-header-layout--disable-horizontal-padding"]=H.disableHorizontalPadding,A["yt-shelf-header-layout--disable-vertical-padding"]=H.disableVerticalPadding,A["yt-shelf-header-layout--responsive"]=H.useResponsiveLayout,A["yt-shelf-header-layout--narrow"]=function(){var W,w;return((W=H.useResponsiveLayout)==null?void 0:W.call(H))&&((w=H.forceSmallLayout)==null?void 0:w.call(H))},A["yt-shelf-header-layout--is-overlay"]=H.isOverlay,
A["yt-shelf-header-layout--tappable"]=H.isInteractive,A["yt-shelf-header-layout--optional-medium-layout-padding"]=H.useUpdatedPadding,A)),
"on:click":U,tabindex:function(){var W;return((W=H.isInteractive)==null?0:W.call(H))?0:void 0}},_.Z("div",{class:"yt-shelf-header-layout__header-row"},_.Z(_.K,{cond:H.leadingIcon,
then:function(W){return _.Z("div",{class:"yt-shelf-header-layout__leading-icon"},_.Z(_.er,{icon:W}))},
else:function(){return _.Z(_.K,{cond:H.hasLeadingImage,then:function(){var W,w={};return _.Z("div",{class:_.CG("yt-shelf-header-layout__leading-image",(w["yt-shelf-header-layout__leading-image--circular-image"]=H.circularImage,w))},(W=H.leadingImage)==null?void 0:W.call(H))}})}}),_.Z("div",{class:"yt-shelf-header-layout__label-container"},_.Z(_.K,{cond:H.hasSuperlabel,
then:function(){var W;return _.Z("div",{class:"yt-shelf-header-layout__superlabel"},(W=H.superlabel)==null?void 0:W.call(H))}}),_.Z("div",{class:"yt-shelf-header-layout__title-row"},_.Z(sMK,{text:H.title,
className:_.CG("yt-shelf-header-layout__title",(M["yt-shelf-header-layout__title--small-title"]=H.forceSmallLayout,M)),tagLevel:H.tagLevel}),_.Z(_.K,{cond:H.hasDetail,then:function(){var W;return _.Z("div",{class:"yt-shelf-header-layout__detail"},(W=H.detail)==null?void 0:W.call(H))}})),_.Z(_.K,{cond:H.hasSublabel,
then:function(){var W;return _.Z("div",{class:"yt-shelf-header-layout__sublabel"},(W=H.sublabel)==null?void 0:W.call(H))}})),_.Z(_.K,{cond:H.hasTrailingActions,
then:function(){var W;return _.Z("div",{class:"yt-shelf-header-layout__trailing-actions"},(W=H.trailingActions)==null?void 0:W.call(H))}})),_.Z(_.K,{cond:H.hasBottomAccessory,
then:function(){var W;return _.Z("div",{class:"yt-shelf-header-layout__bottom-accessory"},(W=H.bottomAccessory)==null?void 0:W.call(H))}}))},"nd");
nQz.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var sMK=_.r(function(H){var U=H.text;var A=H.className;var M=H.tagLevel;return _.Z(_.P5,null,_.Z(_.KA,{when:function(){return(M==null?void 0:M())===0}},function(){return _.Z("h2",{class:A},U())}),_.Z(_.KA,{when:function(){return(M==null?void 0:M())===1}},function(){return _.Z("h3",{class:A},U())}),_.Z(_.KA,{when:function(){return(M==null?void 0:M())===2}},function(){return _.Z("h4",{class:A},U())}),_.Z(_.oh,null,function(){return _.Z("h2",{class:A},U())}))},"od");var pHm,NZH,Svr;_.vv=_.r(function(H){var U=H.className;var A=H.data;var M=H.disableHorizontalPadding;var W=H.disableVerticalPadding;var w=H.forceSmallLayout;var d=H.useResponsiveLayout;var O=H.isOverlay;H=H.useUpdatedPadding;return _.Z("yt-section-header-view-model",{class:_.CG("ytSectionHeaderViewModelHost",U),style:_.rA({"background-color":function(){return lA(A().backgroundColor)?_.bN(lA(A().backgroundColor)):void 0}})},_.Z(nQz,{hasDetail:!1,
title:function(){return _.Z(_.Pb,{text:function(){return A().headline}})},
hasTitle:!0,sublabel:function(){return _.Z(NZH,{data:A})},
hasSublabel:function(){return!!A().sublabel||!!A().bottomBadge},
superlabel:function(){return _.Z(Svr,{data:A})},
hasSuperlabel:function(){return!!A().superlabel||!!A().topBadge},
leadingImage:function(){return _.Z(pHm,{leadingAccessory:function(){return A().leadingAccessory}})},
hasLeadingImage:function(){return!!A().leadingAccessory},
trailingActions:function(){return _.Z(_.YY,{data:function(){return A().trailingActions}},{flexibleActionsViewModel:_.uf})},
hasTrailingActions:function(){return!!A().trailingActions},
disableHorizontalPadding:function(){return(M==null?void 0:M())||A().disableHorizontalPadding},
disableVerticalPadding:W,forceSmallLayout:w,useResponsiveLayout:d,isOverlay:O,isInteractive:function(){return!!_.AF(A().rendererContext)},
onClick:function(f){if(_.MG(A().rendererContext)){var J=_.AF(A().rendererContext);J&&_.bj(J,{form:{element:f.target,event:f}})}},
bottomAccessory:function(){return _.Z(_.YY,{data:function(){return A().bottomAccessory}},{descriptionPreviewViewModel:function(f){return _.Z(_.kT,{data:f.data,
useMediumText:!0})},
commonMarkViewModel:function(f){f=f.data;var J;return _.Z(_.ve,null,(J=_.lx().resolve(_.$V(Btp)))==null?void 0:J({data:f}))}})},
hasBottomAccessory:function(){return!!A().bottomAccessory},
useUpdatedPadding:H}))},"pd");
pHm=_.r(function(H){var U=H.leadingAccessory;return _.Z(_.ve,null,_.Z(_.K,{cond:function(){var A;return(A=U().image)!=null?A:_.Zf(U().themedImage)},
then:function(A){return _.Z(_.nG,{data:A,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.Z(_.K,{cond:function(){return _.p(U().avatar,_.Xd)},
then:function(A){return _.Z(_.dU,{data:A})}}))},"qd");
NZH=_.r(function(H){var U=H.data;return _.Z(_.ve,null,_.Z(_.K,{cond:function(){return _.p(U().bottomBadge,SF3)},
then:function(A){var M={};return _.Z(_.Ed,{data:A,class:_.CG((M.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!A()&&!!U().sublabel},M))})}}),_.Z(_.K,{cond:function(){return U().sublabel},
then:function(A){return _.Z(_.Pb,{text:A})}}))},"rd");
Svr=_.r(function(H){var U=H.data;return _.Z(_.ve,null,_.Z(_.K,{cond:function(){return _.p(U().topBadge,SF3)},
then:function(A){var M={};return _.Z(_.Ed,{data:A,class:_.CG((M.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!A()&&!!U().superlabel},M))})}}),_.Z(_.K,{cond:function(){return U().superlabel},
then:function(A){return _.Z(_.Pb,{text:A})}}))},"sd");_.LG(_.vv,"yt-section-header-view-model",{props:{data:_.sY,className:_.sY,disableHorizontalPadding:_.sY,disableVerticalPadding:_.sY,forceSmallLayout:_.sY,useResponsiveLayout:_.sY,isOverlay:_.sY,useUpdatedPadding:_.sY}});_.Qm("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var T6=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return H};
_.R(T6,_.B);_.X=T6.prototype;_.X.attached=function(){this.requestElementsPerRow()};
_.X.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"}}}};
_.X.onDataChange=function(){var H=this;_.rV(this,function(){H.updateItemVisibility()})};
_.X.onUpdateElementsPerRowAction=function(H){H&&this.elementsPerRow!==H&&(this.elementsPerRow=H,this.updateItemVisibility())};
_.X.updateItemVisibility=function(){var H=this;this.data&&this.data.panels&&_.c4(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(U,A){U.hidden=A>H.elementsPerRow-1})};
_.X.requestElementsPerRow=function(){_.cg(this.hostElement,"yt-request-elements-per-row")};
T6.prototype.onDataChange=T6.prototype.onDataChange;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],T6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],T6.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],T6.prototype,"actionHandlerBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],T6.prototype,"data",void 0);_.G([_.y({value:3}),_.q("design:type",Number)],T6.prototype,"elementsPerRow",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],T6.prototype,"onDataChange",null);_.G([_.dX({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],T6);
_.e(T6,"ytd-primetime-promo-renderer",function(){if(P33!==void 0)return P33;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return P33=H},{mode:1});var Lr3;var jB=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return H};
_.R(jB,_.B);jB.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
jB.prototype.handleButtonRefreshAction=function(H){if(H=_.p(H,ejz))this.set("data.button",H.membershipButton),this.notifyPath("data.button")};
_.D5.Object.defineProperties(jB.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.data)==null?void 0:(U=H.avatars)==null?void 0:U.slice(0,8))||[]}}});
_.G([_.y(),_.q("design:type",Object)],jB.prototype,"data",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],jB.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],jB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],jB.prototype,"rendererBehavior",void 0);_.G([_.a("data"),_.q("design:type",Array),_.q("design:paramtypes",[])],jB.prototype,"avatars",null);
_.G([_.dX({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],jB);
_.e(jB,"ytd-recognition-shelf-renderer",function(){if(Lr3!==void 0)return Lr3;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Lr3=H},{mode:1});var RHH;var EQg;var IV=function(){var H=_.B.apply(this,arguments)||this;H.modernButtons=_.S("web_modern_buttons");return H};
_.R(IV,_.B);_.X=IV.prototype;
_.X.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]]",lockupExperiments:"[[lockupExperiments]]"}},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]]"}}}}}};
_.X.dataChanged=function(){this.collapsed=!0};
_.X.computeVisibleItems=function(H,U){return H!==void 0&&H.items?U?H.items.slice(0,this.data.collapsedItemCount):H.items:[]};
_.X.computeHideShowMore=function(H,U,A){return H>=U||!A};
_.X.computeHideShowAll=function(H,U,A){return!(H&&U)||A};
_.X.onMoreClick=function(){this.collapsed=!1};
_.D5.Object.defineProperties(IV.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.S("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.kV("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.S("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
IV.prototype.dataChanged=IV.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],IV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],IV.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],IV.prototype,"isSearch",void 0);
_.G([_.y({computed:"computeVisibleItems(data,collapsed)"}),_.q("design:type",Array)],IV.prototype,"visibleItems",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],IV.prototype,"collapsed",void 0);_.G([_.y({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.q("design:type",Boolean)],IV.prototype,"hideShowMore",void 0);
_.G([_.y({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.q("design:type",Boolean)],IV.prototype,"hideShowAll",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],IV.prototype,"modernButtons",void 0);_.G([_.a("isSearch"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],IV.prototype,"typographyBump",null);
_.G([_.a("isSearch"),_.q("design:type",Object),_.q("design:paramtypes",[])],IV.prototype,"lockupExperiments",null);_.G([_.a("isSearch"),_.q("design:type",String),_.q("design:paramtypes",[])],IV.prototype,"thumbnailWidth",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IV.prototype,"dataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],IV);
_.e(IV,"ytd-vertical-list-renderer",function(){if(EQg!==void 0)return EQg;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return EQg=H},{mode:1});var mlp=_.NP(["#"]);_.Qm("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var QL=function(){var H=_.B.apply(this,arguments)||this;H.isConstrainedList=!1;return H};
_.R(QL,_.B);_.X=QL.prototype;
_.X.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"}}}};
_.X.computeThumbnailStyle=function(H){return H||""};
_.X.computePlaceAnnotationUnderTitle=function(){var H;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((H=this.data)==null?void 0:H.thumbnailStyle)||"")};
_.X.computeHrefWithDefault=function(H){return this.ytComponentBehavior.computeHref_(H)||_.pIc(mlp)};
_.X.computeIsPromoShelf=function(H){var U;return(H=H==null?void 0:(U=H[0])==null?void 0:U.metadataBadgeRenderer)?H.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.X.computePlaceBadgeBesideTitle=function(H){var U;return(H==null?0:(U=H[0])==null?0:U.metadataBadgeRenderer)?!this.computeIsPromoShelf(H):!1};
_.X.computeMenuIcon=function(H){return this.computeIsPromoShelf(H)?"yt-icons:more_vert":"yt-icons:more"};
_.X.onDataChange=function(){var H,U;((H=this.data)==null?0:(U=H.content)==null?0:U.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.X.onLockupRequested=function(H){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&H.detail&&H.detail.videoIds){for(var U=this.data.content.gridRenderer.items,A=new Set,M=_.b(H.detail.videoIds),W=M.next();!W.done;W=M.next())A.add(W.value);H.detail.returnValue=U.filter(function(w){return w.gridVideoRenderer&&w.gridVideoRenderer.videoId&&A.has(w.gridVideoRenderer.videoId)}).map(function(w){return w.gridVideoRenderer})}};
_.X.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
QL.prototype.onLockupRequested=QL.prototype.onLockupRequested;QL.prototype.onDataChange=QL.prototype.onDataChange;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],QL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],QL.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],QL.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.Qo),_.q("design:type",Object)],QL.prototype,"ironResizableBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],QL.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],QL.prototype,"isSearch",void 0);_.G([_.y(),_.q("design:type",Object)],QL.prototype,"isConstrainedList",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.S("kevlar_fluid_dismiss")}}),
_.q("design:type",Boolean)],QL.prototype,"enableFluidDismiss",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.q("design:type",String)],QL.prototype,"thumbnailStyle",void 0);_.G([_.y({computed:"computeMenuIcon(data.badges)"}),_.q("design:type",String)],QL.prototype,"menuIcon",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.q("design:type",Boolean)],QL.prototype,"featuredPromo",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],QL.prototype,"onDataChange",null);_.G([_.Gl("yt-lockup-requested"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],QL.prototype,"onLockupRequested",null);_.G([_.dX({is:"ytd-shelf-renderer",disableElementRegistration:!0})],QL);
_.e(QL,"ytd-shelf-renderer",function(){if(RHH!==void 0)return RHH;var H=document.createElement("template");_.E(H,'\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          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\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          </div>\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return RHH=H},{mode:1});var gQz;var VL=function(){return _.B.apply(this,arguments)||this};
_.R(VL,_.B);VL.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.D5.Object.defineProperties(VL.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],VL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],VL.prototype,"data",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],VL.prototype,"isPlaylist",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],VL.prototype,"isClipList",void 0);
_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],VL.prototype,"isPlaylistPageWithFilters",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],VL.prototype,"hasTitle",null);_.G([_.y(),_.a("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.q("design:type",Object),_.q("design:paramtypes",[])],VL.prototype,"isRightAligned",null);
_.G([_.dX({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],VL);
_.e(VL,"ytd-sort-filter-header-renderer",function(){if(gQz!==void 0)return gQz;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return gQz=H},{mode:1});var aRw;var H3=function(){var H=_.B.apply(this,arguments)||this;H.enableRightArrowHidden=_.S("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return H};
_.R(H3,_.B);H3.prototype.attached=function(){var H=this;this.enableRightArrowHidden&&(this.JSC$16864_throttledOnResize=new _.B$(function(){var U;(U=H.ytdHorizontalListBehavior)==null||U.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var U;
(U=H.JSC$16864_throttledOnResize)==null||U.fire()}),this.resizeObserver.observe(this.hostElement))};
H3.prototype.detached=function(){if(this.enableRightArrowHidden){var H;(H=this.resizeObserver)==null||H.disconnect();var U;(U=this.JSC$16864_throttledOnResize)==null||U.dispose()}};
H3.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]]"}}}}}};
H3.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.D5.Object.defineProperties(H3.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.S("enable_creator_details_shelf_m2")){var H=[],U;((U=this.data)==null?0:U.creatorVideosButton)&&H.push(this.data.creatorVideosButton);var A;((A=this.data)==null?0:A.creatorAboutButton)&&H.push(this.data.creatorAboutButton);U=_.b(this.data.creatorCustomUrlButtons||[]);for(A=U.next();!A.done;A=U.next())H.push(A.value);return H}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.S("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],H3.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],H3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.x0.YtdHorizontalListBehavior),_.q("design:type",Object)],H3.prototype,"ytdHorizontalListBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],H3.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],H3.prototype,"engagementPanel",void 0);
_.G([_.y(),_.q("design:type",Object)],H3.prototype,"enableRightArrowHidden",void 0);_.G([_.a("enableRightArrowHidden","atEnd"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],H3.prototype,"hideRightArrow",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],H3.prototype,"creatorCustomUrlButtons",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data","creatorCustomUrlButtons"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],H3.prototype,"showCreatorCustomUrlButtons",null);_.G([_.a("showCreatorCustomUrlButtons"),_.q("design:type",Number),_.q("design:paramtypes",[])],H3.prototype,"channelAvatarSize",null);_.G([_.dX({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],H3);
_.e(H3,"ytd-video-description-infocards-section-renderer",function(){if(aRw!==void 0)return aRw;var H=document.createElement("template");_.E(H,'\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_" hidden="[[hideRightArrow]]">\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return aRw=H},{mode:2});var xlg;var UE=function(){return _.B.apply(this,arguments)||this};
_.R(UE,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],UE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],UE.prototype,"data",void 0);_.G([_.y({computed:"computeIcon_(data.infoIcon)"}),_.q("design:type",Object)],UE.prototype,"infoIcon",void 0);_.G([_.dX({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],UE);
_.e(UE,"ytd-eom-settings-disclaimer-renderer",function(){if(xlg!==void 0)return xlg;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return xlg=H},{mode:1});var zHH;var AQ=function(){return _.B.apply(this,arguments)||this};
_.R(AQ,_.B);_.D5.Object.defineProperties(AQ.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.suppressPaddingDisclaimer)}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],AQ.prototype,"componentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],AQ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],AQ.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],AQ.prototype,"suppressPaddingDisclaimer",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],AQ);
_.e(AQ,"ytd-product-list-header-renderer",function(){if(zHH!==void 0)return zHH;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return zHH=H},{mode:1});var C3m;var MH=function(){return _.B.apply(this,arguments)||this};
_.R(MH,_.B);MH.prototype.computeThumbnailStyle=function(H){if(H&&(H=_.wn(H)))return"background-color:"+H+";"};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],MH.prototype,"rendererBehaviors",void 0);_.G([_.y(),_.q("design:type",Object)],MH.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],MH);
_.e(MH,"ytd-hashtag-tile-renderer",function(){if(C3m!==void 0)return C3m;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return C3m=H},{mode:1});var tjw;var W3=function(){return _.B.apply(this,arguments)||this};
_.R(W3,_.B);W3.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}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],W3.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],W3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],W3.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],W3);
_.e(W3,"ytd-sponsorships-alert-renderer",function(){if(tjw!==void 0)return tjw;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return tjw=H},{mode:1});var cm2;var w_=function(){return _.B.apply(this,arguments)||this};
_.R(w_,_.B);w_.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.D5.Object.defineProperties(w_.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.G([_.g(_.uQ),_.q("design:type",Object)],w_.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.g(_.PA),_.q("design:type",Object)],w_.prototype,"ytdLockupBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.G([_.y({selector:_.Wo}),_.q("design:type",Object)],w_.prototype,"isGridViewEnabled",void 0);
_.G([_.a("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],w_.prototype,"watchFeedBigThumbs",null);_.G([_.a("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.q("design:type",String),_.q("design:paramtypes",[])],w_.prototype,"thumbnailWidth",null);_.G([_.y(),_.q("design:type",Object)],w_.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],w_);
_.e(w_,"ytd-compact-movie-renderer",function(){if(cm2!==void 0)return cm2;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return cm2=H},{mode:1});var ymp;var BZB;var rmg=_.gD("HTML_DIR")==="rtl",X5=function(){var H=_.B.apply(this,arguments)||this;H.engagementPanel=!1;H.maxLines=2;H.expandButtonOffset=0;H.showExpandButton=!1;H.isTruncated=!1;H.isExpanded=!1;H.currentSnippetType=2;H.alwaysShowExpandButton=!1;H.JSC$16881_lastWidth=NaN;H.observer=null;H.left=0;H.right=0;H.mid=0;H.longestSnippetLength=0;H.isFinalSnippet=!1;H.isFirstMutation=!1;H.isResetMutation=!1;H.OVERFLOW_THRESHOLD=5;return H};
_.R(X5,_.B);_.X=X5.prototype;_.X.onClick=function(H){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.ny(_.Lf(H)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var U;if((U=window.getSelection())==null||!U.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.X.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.X.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.X.updateTextOnSnippetTypeChange=function(){_.S("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.X.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.X.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Na(new _.bD("AttributedSnippet is empty when the description is not empty",this.text))};
_.X.mutationCallback=function(){if(this.observer!=null){var H=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var U=Math.floor(H*this.maxLines/8);this.setSnippetText(this.text,U);U!==0||this.attributedTextIsEmpty()||_.Na(new _.bD("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;H=H*this.maxLines/8;this.left=0;var A;this.right=Math.min(H*2,(A=(U=this.simpleText)==null?void 0:U.length)!=null?A: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)}}};
_.X.mutationObserve=function(H){var U=this;this.observer||(this.observer=new MutationObserver(function(){U.mutationCallback()}));
this.observer.observe(H,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.X.attached=function(){var H=this;_.rV(this,function(){H.resize()})};
_.X.isExpandedChanged=function(){_.cg(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.X.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)};
_.X.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var H="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((rmg?"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",H);this.snippetContainer.style.setProperty("mask-image",
H)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(rmg?"right":"left",this.expandButtonOffset+"px")};
_.X.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.X.setSnippetText=function(H,U){H||(H={});if(_.ov(H)){var A=KG(H,U);A.attachmentRuns||A.commandRuns||A.decorationRuns||A.styleRuns||A.alignment||A.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:KG(H,U),headerRuns:UQr(U,this.headerRuns)},this.currentSnippetType=0):_.Na(new _.bD("Tried to set snippet text when HTML element was null",H)):(this.plainSnippetText.textContent=fG(H.content||"",U),this.currentSnippetType=2)}else{a:{A=sqN(H,U);if(A.runs){A=_.b(A.runs);for(var M=
A.next();!M.done;M=A.next())if(M=M.value,M.bold||M.deemphasize||M.italics||M.strikethrough||M.textColor||M.navigationEndpoint||_.p(M,W$)){A=!0;break a}}A=!1}A?this.formattedSnippetText?(this.formattedSnippetText.text=sqN(H,U),this.currentSnippetType=1):_.Na(new _.bD("Tried to set snippet text when HTML element was null",H)):(this.plainSnippetText.textContent=fG(_.Sp(H),U),this.currentSnippetType=2)}};
_.X.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.X.attributedTextIsEmpty=function(){var H=this.text;if(!_.ov(H))return!0;var U;return((U=H.content)==null?void 0:U.length)===0?!0:!1};
_.X.resize=function(H){if(this.snippetText){if(H===void 0?0:H)this.JSC$16881_lastWidth=NaN;var U=this.hostElement.offsetWidth;if(U!==this.JSC$16881_lastWidth&&!this.isExpanded)if(this.JSC$16881_lastWidth=U,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;H=0;var A,M;U=Math.min(U*this.maxLines/8*2,(M=(A=this.simpleText)==null?void 0:A.length)!=null?M:0)-1;for(A=0;H<=U;)M=Math.floor(H+(U-H)/2),this.setSnippetText(this.text,M),this.isOverflowing()?U=M-1:(H=M+1,A=M);this.setSnippetText(this.text,A);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.X.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.X.onExpandClick=function(){var H=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.S("inline_expander_reset_focus_killswitch")||_.rV(this,function(){var U;((U=_.lx().resolve(_.$V(_.af)))==null?0:U.isKeyBoardInUse())&&_.tk(H.hostElement)});
_.cg(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.X.onCollapseClick=function(){this.collapse();_.cg(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.X.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.X.computeExpandButtonOffset=function(){var H=this.expandSizer;return H?rmg?H.offsetParent?H.offsetParent.offsetWidth-H.offsetWidth-H.offsetLeft:0:H.offsetLeft:0};
_.D5.Object.defineProperties(X5.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.ov(this.text)?this.text.content||"":_.Sp(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 _.ov(this.text)?!0:this.text&&_.S("web_replace_formatted_with_attributed_string")&&m4F(this.text)?(this.text=_.Me(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}}});
X5.prototype.onTextChanged=X5.prototype.onTextChanged;X5.prototype.updateMaskAndExpandButtonOffset=X5.prototype.updateMaskAndExpandButtonOffset;X5.prototype.updateSnippetContainerMaxHeight=X5.prototype.updateSnippetContainerMaxHeight;X5.prototype.isExpandedChanged=X5.prototype.isExpandedChanged;X5.prototype.updateTextOnSnippetTypeChange=X5.prototype.updateTextOnSnippetTypeChange;X5.prototype.updateIsFormattedExpanded=X5.prototype.updateIsFormattedExpanded;X5.prototype.updateIsAttributedExpanded=X5.prototype.updateIsAttributedExpanded;
X5.prototype.onClick=X5.prototype.onClick;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],X5.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],X5.prototype,"text",void 0);_.G([_.y(),_.q("design:type",Array)],X5.prototype,"headerRuns",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],X5.prototype,"engagementPanel",void 0);_.G([_.y(),_.q("design:type",Object)],X5.prototype,"maxLines",void 0);
_.G([_.y(),_.q("design:type",String)],X5.prototype,"expandLabel",void 0);_.G([_.y(),_.q("design:type",String)],X5.prototype,"collapseLabel",void 0);_.G([_.y(),_.q("design:type",Object)],X5.prototype,"expandCommand",void 0);_.G([_.y(),_.q("design:type",Object)],X5.prototype,"expandButtonOffset",void 0);_.G([_.a("text"),_.q("design:type",String),_.q("design:paramtypes",[])],X5.prototype,"simpleText",null);
_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],X5.prototype,"onClick",null);_.G([_.a("text","isExpanded"),_.q("design:type",Object),_.q("design:paramtypes",[])],X5.prototype,"expandedText",null);_.G([_.a("headerRuns","isExpanded"),_.q("design:type",Object),_.q("design:paramtypes",[])],X5.prototype,"expandedHeaderRuns",null);
_.G([_.a("text"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],X5.prototype,"hasAttributedStringText",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],X5.prototype,"showExpandButton",void 0);_.G([_.a("collapseLabel","isExpanded"),_.q("design:type",Object),_.q("design:paramtypes",[])],X5.prototype,"showCollapseButton",null);_.G([_.y(),_.q("design:type",Object)],X5.prototype,"isTruncated",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],X5.prototype,"isExpanded",void 0);_.G([_.y(),_.q("design:type",Boolean)],X5.prototype,"isAttributedExpanded",void 0);_.G([_.Ya("isExpanded","hasAttributedStringText"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],X5.prototype,"updateIsAttributedExpanded",null);_.G([_.y(),_.q("design:type",Boolean)],X5.prototype,"isFormattedExpanded",void 0);
_.G([_.Ya("isExpanded","hasAttributedStringText"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],X5.prototype,"updateIsFormattedExpanded",null);_.G([_.y(),_.q("design:type",Number)],X5.prototype,"currentSnippetType",void 0);_.G([_.a("currentSnippetType"),_.q("design:type",Object),_.q("design:paramtypes",[])],X5.prototype,"useAttributedSnippet",null);
_.G([_.a("currentSnippetType"),_.q("design:type",Object),_.q("design:paramtypes",[])],X5.prototype,"useFormattedSnippet",null);_.G([_.a("currentSnippetType"),_.q("design:type",Object),_.q("design:paramtypes",[])],X5.prototype,"usePlainSnippet",null);_.G([_.y(),_.q("design:type",Object)],X5.prototype,"alwaysShowExpandButton",void 0);_.G([_.Ya("currentSnippetType"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],X5.prototype,"updateTextOnSnippetTypeChange",null);
_.G([_.y(),_.q("design:type",Object)],X5.prototype,"attributedSnippetText",void 0);_.G([_.hG("#snippet"),_.q("design:type",HTMLElement)],X5.prototype,"snippetContainer",void 0);_.G([_.hG("#snippet-text"),_.q("design:type",HTMLElement)],X5.prototype,"snippetText",void 0);_.G([_.hG("#plain-snippet-text"),_.q("design:type",HTMLElement)],X5.prototype,"plainSnippetText",void 0);_.G([_.hG("#formatted-snippet-text"),_.q("design:type",Object)],X5.prototype,"formattedSnippetText",void 0);
_.G([_.hG("#attributed-snippet-text"),_.q("design:type",HTMLElement)],X5.prototype,"attributedSnippetTextEl",void 0);_.G([_.hG("#expand"),_.q("design:type",HTMLElement)],X5.prototype,"expandButton",void 0);_.G([_.hG("#expand-sizer"),_.q("design:type",HTMLElement)],X5.prototype,"expandSizer",void 0);_.G([_.jk("isExpanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],X5.prototype,"isExpandedChanged",null);
_.G([_.Ya("isExpanded","maxLines"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],X5.prototype,"updateSnippetContainerMaxHeight",null);_.G([_.Ya("isTruncated","showExpandButton","expandButtonOffset"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],X5.prototype,"updateMaskAndExpandButtonOffset",null);
_.G([_.jk("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],X5.prototype,"onTextChanged",null);_.G([_.dX({is:"ytd-text-inline-expander",disableElementRegistration:!0})],X5);
_.e(X5,"ytd-text-inline-expander",function(){if(BZB===void 0){var H=document.createElement("template");_.E(H,'\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<div id="expanded" class="style-scope ytd-text-inline-expander"><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><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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);BZB=H}H=BZB;return H},{mode:2});var iP=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return H};
_.R(iP,_.B);iP.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
iP.prototype.handleUpdateDescriptionAction=function(H){if(H=_.p(H,_.jNh))if(H.attributedDescription)this.set("data.attributedDescriptionBodyText",H.attributedDescription);else if(H.description){var U;((U=this.data)==null?0:U.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Me(H.description)):this.set("data.descriptionBodyText",H.description)}};
_.D5.Object.defineProperties(iP.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var H,U;return!((H=this.data)==null||!H.attributedDescriptionBodyText)||!((U=this.data)==null||!U.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null?0:H.collapsedLineCount){var U;return(U=this.data)==null?void 0:U.collapsedLineCount}H=_.hr("web_watch_description_collapsed_default_lines",12);if(_.S("ww_desc_line_page_size_ks"))return H;U=Math.round(_.hc().height*_.hr("web_watch_description_screen_height_percentage",.5)/20);return Math.max(U,H)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return(A=(H=this.data)==null?void 0:H.descriptionBodyText)!=null?A:(U=this.data)==null?void 0:U.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.sourceAttributions}}});
iP.prototype.panelContentVisibleChanged=iP.prototype.panelContentVisibleChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],iP.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],iP.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],iP.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Boolean)],iP.prototype,"panelContentVisible",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],iP.prototype,"engagementPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],iP.prototype,"shortsPanel",void 0);_.G([_.hG("#inline-expander"),_.q("design:type",Object)],iP.prototype,"inlineExpander",void 0);
_.G([_.Ya("panelContentVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iP.prototype,"panelContentVisibleChanged",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],iP.prototype,"hasDescriptionText",null);_.G([_.a("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],iP.prototype,"collapsedLines",null);
_.G([_.a("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.q("design:type",Object),_.q("design:paramtypes",[])],iP.prototype,"descriptionText",null);_.G([_.a("data","data.headerRuns"),_.q("design:type",Object),_.q("design:paramtypes",[])],iP.prototype,"headerRuns",null);_.G([_.a("data","data.sourceAttributions"),_.q("design:type",Object),_.q("design:paramtypes",[])],iP.prototype,"sourceAttributions",null);
_.G([_.dX({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],iP);
_.e(iP,"ytd-expandable-video-description-body-renderer",function(){if(ymp!==void 0)return ymp;var H=document.createElement("template");_.E(H,'\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]]" hidden="[[!hasDescriptionText]]" 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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return ymp=H},{mode:2});var eHB;var Dlw=_.r(function(H){var U=H.data;return _.Z("factoid-renderer",{class:"ytwFactoidRendererHost"},_.Z("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return U().accessibilityText}},_.Z("span",{class:"ytwFactoidRendererValue"},_.Z(_.Pb,{text:function(){return U().value}})),_.Z("span",{class:"ytwFactoidRendererLabel"},_.Z(_.Pb,{text:function(){return U().label}}))))},"td");_.LG(Dlw,"factoid-renderer",{props:{data:_.sY}});_.LG(_.r(function(H){var U=H.data;return _.Z("upload-time-factoid-renderer",null,_.Z(_.YY,{data:function(){return U().factoid}},{factoidRenderer:Dlw}))},"ud"),"upload-time-factoid-renderer",{props:{data:_.Ne}});_.LG(_.r(function(H){var U=H.data;return _.Z("view-count-factoid-renderer",null,_.Z(_.YY,{data:function(){return U().factoid}},{factoidRenderer:Dlw}))},"vd"),"view-count-factoid-renderer",{props:{data:_.Ne}});var bP=function(){var H=_.B.apply(this,arguments)||this;H.shortsPanel=!1;H.engagementPanel=!1;H.watchWhileSdp=_.S("shorts_desktop_watch_while_sdp");return H};
_.R(bP,_.B);bP.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"}}}}};
_.D5.Object.defineProperties(bP.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var H;return(H=this.data)==null?void 0:H.channel}}});
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],bP.prototype,"componentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],bP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],bP.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],bP.prototype,"shortsPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],bP.prototype,"engagementPanel",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],bP.prototype,"watchWhileSdp",void 0);_.G([_.a("shortsPanel","engagementPanel","data.channel"),_.q("design:type",Object),_.q("design:paramtypes",[])],bP.prototype,"showChannelInfo",null);_.G([_.dX({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],bP);
_.e(bP,"ytd-video-description-header-renderer",function(){if(eHB!==void 0)return eHB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return eHB=H},{mode:1});var $lh;var d_=function(){return _.B.apply(this,arguments)||this};
_.R(d_,_.B);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],d_.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],d_.prototype,"noPadding",void 0);_.G([_.y(),_.q("design:type",Object)],d_.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],d_);
_.e(d_,"ytd-list-item-view-model",function(){if($lh!==void 0)return $lh;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return $lh=H},{mode:1});var lRy;var Gcy;var Yvk;var qvy;var OE=function(){var H=_.B.apply(this,arguments)||this;H.adaptiveFullWidth=!1;H.modernButtons=_.S("web_modern_buttons");H.buttonOverrides={style:"call-to-action",type:"filled"};H.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return H};
_.R(OE,_.B);OE.prototype.handleSetTimestamp_=function(H){this.data&&this.data.shortUrl&&(_.c4(this.hostElement).querySelector("#share-url").value=H.isSet?_.vL(this.data.shortUrl,"t",H.timestamp):this.data.shortUrl)};
OE.prototype.handleSignalActionCopyShareUrl_=function(H,U){(_.S("killswitch_copy_link_target_check")||_.c4(this.hostElement).querySelector("#copy-button")===U)&&this.copyUrlToClipboard()};
OE.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.c4(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
OE.prototype.computeStyle_=function(H){return H?H.toLowerCase().replace(/_/g,"-"):""};
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],OE.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],OE.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.q("design:type",String)],OE.prototype,"rendererStyle",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],OE.prototype,"adaptiveFullWidth",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],OE.prototype,"modernButtons",void 0);_.G([_.y(),_.q("design:type",Object)],OE.prototype,"buttonOverrides",void 0);_.G([_.b0({is:"yt-copy-link-renderer",disableElementRegistration:!0})],OE);
_.e(OE,"yt-copy-link-renderer",function(){if(qvy===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Yvk===void 0&&(Yvk=document.createElement("template"));var M=Yvk;A.call(U,M.content.cloneNode(!0),H.content.firstChild);qvy=H}H=qvy;return H},{mode:2});_.Qm("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var uP=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return H};
_.R(uP,_.B);_.X=uP.prototype;_.X.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.X.attached=function(){this.keyboardFocused=!1};
_.X.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var H=_.lx().resolve(_.$V(_.af));H&&(this.keyboardFocused=H.isKeyBoardInUse())}};
_.X.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.X.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}};
_.X.onChange_=function(){if(this.data){var H=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;H&&this.ytComponentBehavior.resolveCommand(H);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.X.handleUpdateToggleAction_=function(H){(H=_.p(H,fAk))&&this.data&&H.targetId==this.data.targetId&&this.set("data.toggled",H.toggled)};
_.X.toBoolean_=function(H){return!!H};
_.X.reset=function(){};
_.X.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("data-changed",this.data))};
_.X.updateDataToggledFromBinding=function(H){this.set("data.toggled",H.detail.value)};
uP.prototype.dataChangedForBinding=uP.prototype.dataChangedForBinding;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],uP.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],uP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],uP.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],uP.prototype,"data",void 0);_.G([_.y({computed:"computeDescription_(data.*)"}),_.q("design:type",Object)],uP.prototype,"description_",void 0);_.G([_.y({value:function(){return!!_.lx().resolve(_.$V(_.af))&&_.S("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.q("design:type",Boolean)],uP.prototype,"useKeyboardFocused",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],uP.prototype,"keyboardFocused",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uP.prototype,"dataChangedForBinding",null);_.G([_.b0({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],uP);
_.e(uP,"yt-toggle-form-field-renderer",function(){if(Gcy===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;lRy===void 0&&(lRy=document.createElement("template"));var M=lRy;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Gcy=H}H=Gcy;return H},{mode:2});var hHw;var kcB;var Zg=function(){var H=_.B.apply(this,arguments)||this;H.isDarkTheme=!1;H.isSearch=!1;H.noTopMargin=_.S("kevlar_watch_no_top_margin");H.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 H};
_.R(Zg,_.B);_.X=Zg.prototype;_.X.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}}}}}};
_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.X.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.X.dataChanged=function(){var H=this.getSelectedIndex();if(H>0)this.selected=H;else{this.selected=0;var U,A;(U=this.ytScrollableChipCloudBehavior)==null||(A=U.reset)==null||A.call(U)}};
_.X.getSelectedIndex=function(){var H;if((H=this.data)==null||!H.chips)return-1;H=-1;for(var U,A=0;A<((U=this.data)==null?void 0:U.chips.length);A++){var M=void 0,W=void 0;if((M=this.data)==null?0:(W=M.chips[A].chipCloudChipRenderer)==null?0:W.isSelected){H=A;break}}return H};
_.X.onResize=function(){var H=this.ytScrollableChipCloudBehavior;_.rV(H,H.setContainerWidthDiff);H=this.ytScrollableChipCloudBehavior;_.rV(H,H.setButtonsState)};
_.X.onDarkModeToggledAction=function(H){this.isDarkTheme=H};
_.X.handleRelatedChipCommand=function(H,U){H=this.JSC$16907_chipsSelector.indexOf(U);H!==-1&&this.JSC$16907_chipsSelector.selectIndex(H)};
_.X.handleChipCloudChipSelectAction=function(H){H=this.JSC$16907_chipsSelector.indexOf(H);H>-1&&this.JSC$16907_chipsSelector.selectIndex(H)};
_.X.handleChipCloudChipDeselectAction=function(){var H=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16907_chipsSelector&&((H==null?0:H.continuationCommand)?_.rs(this.hostElement,[H]):(H==null?0:H.searchEndpoint)?this.ytComponentBehavior.resolveCommand(H):H&&_.eb(this.hostElement,[H],this.hostElement),this.JSC$16907_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.X.updateSelectedFromBinding=function(H){this.selected=H.detail.value};
Zg.prototype.onResize=Zg.prototype.onResize;Zg.prototype.dataChanged=Zg.prototype.dataChanged;Zg.prototype.isSearchChanged=Zg.prototype.isSearchChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Zg.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Zg.prototype,"actionHandlerBehavior",void 0);
_.G([_.g(_.Qo),_.q("design:type",Object)],Zg.prototype,"ironResizableBehavior",void 0);_.G([_.g(),_.q("design:type",qB)],Zg.prototype,"ytScrollableChipCloudBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Zg.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Zg.prototype,"data",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],Zg.prototype,"selected",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Zg.prototype,"isDarkTheme",void 0);_.G([_.y({value:160}),_.q("design:type",Number)],Zg.prototype,"scrollDistance",void 0);_.G([_.y(),_.q("design:type",Object)],Zg.prototype,"isSearch",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Zg.prototype,"noTopMargin",void 0);_.G([_.hG("#chips"),_.q("design:type",Object)],Zg.prototype,"JSC$16907_chipsSelector",void 0);
_.G([_.Ya("isSearch"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Zg.prototype,"isSearchChanged",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Zg.prototype,"dataChanged",null);_.G([_.Gl("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Zg.prototype,"onResize",null);_.G([_.b0({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Zg);
_.e(Zg,"yt-chip-cloud-renderer",function(){if(kcB===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;hHw===void 0&&(hHw=document.createElement("template"));var M=hHw;A.call(U,M.content.cloneNode(!0),H.content.firstChild);kcB=H}H=kcB;return H},{mode:2});var vQy,TZh=function(){return vQy!==void 0?vQy:vQy=document.createElement("template")};
document.head.appendChild(TZh().content);var jMB;var IR3=document.head,QMw=IR3.appendChild,Vjk;if(jMB===void 0){var HMk=document.createElement("template");_.E(HMk,"");HMk.content.insertBefore(TZh().content.cloneNode(!0),HMk.content.firstChild);jMB=HMk}Vjk=jMB;QMw.call(IR3,Vjk.content);var U9w=_.r(function(H){var U=H.data;return _.Z("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.Z("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.Z("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.Z(_.K,{cond:function(){return _.Zf(U().image)},
then:function(A){return _.Z("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.Z(_.nG,{data:A,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.Z("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.Z(_.Pb,{text:function(){return U().title}})),_.Z("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.Z(_.Pb,{text:function(){return U().subtitle}})))),_.Z(_.K,{cond:function(){var A;
return(A=U())==null?void 0:A.hasBottomDivider},
then:function(){return _.Z("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"wd");var AV2=_.r(function(H){var U=H.data;return _.Z("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.Z("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.Z(_.YY,{data:function(){var A;return(A=U().offerPlanDetailsItem)!=null?A:[]}},{offerPlanDetailsItemViewModel:function(A){return _.Z("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.Z(U9w,{data:A.data}))}})),_.Z("div",null,_.Z(_.K,{cond:function(){return U().hasBottomDivider},
then:function(){return _.Z("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.Z("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.Z("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.Z("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.Z("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"xd");var M12=_.r(function(H){var U=H.data;H=_.b(_.iB(!1,void 0,"MrXxy"));var A=H.next().value,M=H.next().value,W=_.c$(function(){M(!A());return!1}),w=function(){var d;
return(d=U().offerPlanDetailsContainer)!=null?d:[]};
return _.Z("lp-complex-offer-card-details-view-model",null,_.Z("div",null,_.Z(_.K,{cond:function(){return A()},
then:function(){return _.Z("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.Z("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":W,"aria-expanded":A},_.Z(_.Pb,{text:function(){return U().expandedTitle}})),_.Z("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.Z(_.YY,{data:w},{offerPlanDetailsContainerViewModel:function(d){return _.Z("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.Z(AV2,{data:d.data}))}})),_.Z("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.Z(_.Pb,{text:function(){return U().legalText}})))},
else:function(){return _.Z("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":W,"aria-expanded":A},_.Z(_.Pb,{text:function(){return U().collapsedTitle}}),_.Z("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.Z(_.er,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"yd");var WZg=_.r(function(H){var U=H.data;return _.Z("lp-complex-offer-card-option-view-model",null,_.Z("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.Z(_.K,{cond:function(){return U().topDividerText},
then:function(){return _.Z("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.Z("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.Z("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.Z("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.Z(_.Pb,{text:function(){return U().topDividerText}}))))}}),_.Z(_.K,{cond:function(){return U().description},
then:function(){return _.Z("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.Z(_.Pb,{text:function(){return U().description}}))}}),_.Z(_.K,{cond:function(){return U().planPricingPrimary},
then:function(){return _.Z("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.Z(_.Pb,{text:function(){return U().planPricingPrimary}}))}}),_.Z(_.K,{cond:function(){return U().planPricingSecondary},
then:function(){return _.Z("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.Z(_.Pb,{text:function(){return U().planPricingSecondary}}))}}),_.Z(_.K,{cond:function(){return U().primaryButton},
then:function(){return _.Z("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.Z(_.YY,{data:function(){return U().primaryButton}},{buttonViewModel:function(A){return _.Z(_.yJ,{data:A.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"zd");var w_g=_.r(function(H){var U=H.data;var A=function(){var w;return((w=U())==null?void 0:w.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
H={};var M={},W={};return _.Z("ytm-lp-complex-offer-card-view-model",null,_.Z("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.Z("div",{class:_.CG((H.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=A,H),"ytmLpComplexOfferCardViewModelCardContainer")},_.Z(_.K,{cond:function(){var w;return(w=U())==null?void 0:w.bannerText},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.Z("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.Z(_.Pb,{text:function(){return U().bannerText}})))}}),_.Z(_.K,{cond:function(){return _.Zf(U().logo)},
then:function(w){var d={};return _.Z("div",{class:_.CG((d.ytmLpComplexOfferCardViewModelLogoAlignLeft=A,d),"ytmLpComplexOfferCardViewModelLogo")},_.Z(_.nG,{data:w,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.Z("div",{class:_.CG((M.ytmLpComplexOfferCardViewModelTitleAlignLeft=A,M),"ytmLpComplexOfferCardViewModelTitle")},_.Z(_.Pb,{text:function(){return U().title}})),_.Z(_.K,{cond:function(){var w;
return(w=U())==null?void 0:w.subtitle},
then:function(){var w={};return _.Z("div",{class:_.CG((w.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=A,w),"ytmLpComplexOfferCardViewModelSubtitle")},_.Z(_.Pb,{text:function(){return U().subtitle}}))}}),_.Z(_.K,{cond:function(){return U().planPricingPrimary},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.Z(_.Pb,{text:function(){return U().planPricingPrimary}}))}}),_.Z(_.K,{cond:function(){return U().planPricingSecondary},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.Z(_.Pb,{text:function(){return U().planPricingSecondary}}))}}),_.Z(_.K,{cond:function(){return U().purchaseButton},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.Z(_.YY,{data:function(){return U().purchaseButton}},{buttonViewModel:function(w){return _.Z(_.yJ,{data:w.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.Z(_.K,{cond:function(){var w;
return(w=U())==null?void 0:w.offerOptions},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.Z(_.YY,{data:function(){return U().offerOptions}},{lpComplexOfferCardOptionViewModel:WZg}))}}),_.Z("div",{class:_.CG((W.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=A,W),"ytmLpComplexOfferCardViewModelLegalText")},_.Z(_.Pb,{text:function(){return U().legalText}})),_.Z(_.K,{cond:function(){var w;
return(w=U())==null?void 0:w.offerCardDetails},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.Z(_.YY,{data:function(){return U().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:M12}))}}))))},"Ad");var X_w=_.r(function(H){var U=H.data;var A=function(){var d;return((d=U())==null?void 0:d.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
H={};var M={},W={},w={};return _.Z("ytm-lp-complex-offer-card-section-view-model",null,_.Z("div",{class:_.CG("ytmLpComplexOfferCardSectionViewModelHost")},_.Z("div",{class:_.CG((H.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=A,H),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.Z("div",{class:_.CG((M.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=A,M),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.Z("h2",{class:_.CG((W.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
A,W),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.Z(_.Pb,{text:function(){return U().title}}))),_.Z(_.K,{cond:function(){var d;
return(d=U())==null?void 0:d.subtitle},
then:function(){var d={},O={};return _.Z("div",{class:_.CG((d.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=A,d),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.Z("div",{class:_.CG((O.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=A,O),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.Z(_.Pb,{text:function(){return U().subtitle}})))}}),_.Z("div",{class:_.CG((w.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=A,w),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.Z(_.YY,{data:function(){var d;
return(d=U().offerPlans)!=null?d:[]}},{lpComplexOfferCardViewModel:function(d){return _.Z("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.Z(w_g,{data:d.data}))}})))))},"Bd");var iMn=_.r(function(H){return _.Z("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.Z("div",{class:"ytLpCouponBannerViewModelIcon"},_.Z(_.er,{icon:function(){return"price_tag"}})),_.Z("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.Z("div",{class:"ytLpCouponBannerViewModelContent"},_.Z("div",{class:"ytLpCouponBannerViewModelHeading"},_.Z(_.Pb,{text:function(){var U;
return(U=H.data())==null?void 0:U.title}})),_.Z("div",{class:"ytLpCouponBannerViewModelBody"},_.Z(_.Pb,{text:function(){var U;
return(U=H.data())==null?void 0:U.subtitle}})))))},"Cd");
iMn.idomCompat=!0;_.fP=Xxk.getInstance();var bMm;bMm=_.r(function(H){return _.Z("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":H.shouldAriaHideContent},_.Z("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:H.questionId},_.Z(_.Pb,{text:H.question})))},"Dd");
_.d9k=_.r(function(H){var U=H.data;var A=H.themeOverride;H=_.b(_.iB(!1,void 0,"pNli2b"));var M=H.next().value,W=H.next().value;H=_.c$(function(){W(!M());return!1});
var w=function(){return M()?"EXPAND_LESS":"EXPAND_MORE"},d=("faq-container"+_.Op(_.fP)).toString(),O="faq-question-and-answers-section-question"+_.Op(_.fP),f={},J={};
return _.Z("faq-entry-view-model",null,_.Z("div",{class:_.CG("ytLpFaqEntryViewModelHost",(f.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return A==null?void 0:A().useDarkTheme},f))},_.Z("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":H,role:"button","aria-expanded":M,"aria-labelledby":O.toString(),"tab-index":"0"},_.Z(bMm,{question:function(){return U().question},
questionId:O,shouldAriaHideContent:!0}),_.Z(_.K,{cond:function(){return M()!==void 0},
then:function(){return _.Z("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.Z(_.er,{icon:w,ariaHidden:!0}),_.Z("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.Z("div",{class:_.CG("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(J.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!M()},J))},_.Z("div",{id:d},_.Z(_.FQ,{each:function(){return U().answers||[]}},function(F){return _.Z("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.Z(_.Pb,
{text:F}))})))))},"Ed");
_.d9k.idomCompat=!0;var OMh=_.r(function(H){var U=H.data;var A=H.themeOverride;H={};return _.Z("lp-faq-section-view-model",null,_.Z("div",{class:_.CG("yt-lp-faq-section-view-model",(H["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return U().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},H["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(A==null||!A().useDarkTheme)},H))},_.Z("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.Z(_.K,{cond:function(){return U().header},
then:function(M){return _.Z("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.Z(_.Pb,{text:M}))}}),_.Z("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.Z(_.YY,{data:function(){return U().faqs}},{faqEntryViewModel:function(M){return _.Z(_.d9k,{data:M.data,
themeOverride:A})}})),_.Z("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.Z(_.FQ,{each:function(){return U().footers||[]}},function(M){return _.Z(_.Pb,{text:M})})),_.Z(_.K,{cond:function(){return U().legal},
then:function(M){return _.Z("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.Z(_.Pb,{text:M}))}}))))},"Fd");
OMh.idomCompat=!0;var uHg=_.r(function(H){var U=H.data;var A=H.themeOverride;_.LA(function(){var d=U().gtmId;d&&_.VN(d,_.gD("GL",""))});
var M={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var d,O,f;return(f=(d=U().logo)==null?void 0:(O=d.accessibilityData)==null?void 0:O.label)!=null?f:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},W=_.lx().resolve(_.$V(_.qF)),w=function(){return W&&W()||(A==null?void 0:A().useDarkTheme)};
return _.Z("lp-header-section-view-model",null,_.Z("div",{class:function(){var d=U().layoutType,O=U().marginType==="LP_SECTION_MARGIN_TYPE_TOP",f=A==null?void 0:A().useDarkTheme,J=["lp-header-section-view-model"];switch(d){case "LP_MODULE_LAYOUT_TYPE_PTC":J.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":J.push("lp-header-section-view-model--narrow-header-layout-type")}O&&J.push("lp-header-section-view-model__lp-header-section-margin");f&&J.push("lp-header-section-view-model--premium-force-dark-mode");
return J.join(" ")}},_.Z(_.K,{cond:function(){return U().logo},
then:function(){return _.Z("div",null,_.Z(_.K,{cond:w,then:function(){return _.Z(_.K,{cond:function(){var d;return(d=U().logo)==null?void 0:d.imageDark},
then:function(d){return _.Z(_.nG,Object.assign({},{data:d},M))}})},
else:function(){return _.Z(_.K,{cond:function(){var d;return(d=U().logo)==null?void 0:d.imageLight},
then:function(d){return _.Z(_.nG,Object.assign({},{data:d},M))}})}}))}}),_.Z(_.K,{cond:function(){return U().title},
then:function(d){return _.Z("div",{class:"lp-header-section-view-model__lp-header-title"},_.Z(_.Pb,{text:d}))}}),_.Z("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.Z(_.K,{cond:function(){return U().subtitles},
then:function(d){return _.Z(_.FQ,{each:d},function(O){return _.Z("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.Z(_.Pb,{text:O}))})}})),_.Z(_.K,{cond:function(){return U().additionalInfo},
then:function(d){return _.Z("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.Z(_.Pb,{text:d}))}}),_.Z("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.Z(_.K,{cond:function(){return U().primaryButton},
then:function(d){return _.Z("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.Z(_.YY,{data:d},{buttonViewModel:_.yJ}))}}),_.Z(_.K,{cond:function(){return U().secondaryButton},
then:function(d){return _.Z("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.Z(_.YY,{data:d},{buttonViewModel:_.yJ}))}})),_.Z(_.K,{cond:function(){return U().otherOffersInfo},
then:function(d){return _.Z("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.Z(_.Pb,{text:d}))}}),_.Z("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.Z(_.K,{cond:function(){return U().billingInfo},
then:function(d){return _.Z(_.FQ,{each:d},function(O){return _.Z("div",null,_.Z(_.Pb,{text:O}))})}}))))},"Gd");
uHg.idomCompat=!0;var ZMh=_.r(function(H){return _.Z("lp-header-upsell-banner-view-model",{class:_.CG("lpHeaderUpsellBannerViewModelHost",H.className,{})},_.Z("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.Z(_.er,{icon:function(){return"CAMPAIGN"}})),_.Z("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.Z("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.Z("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.Z("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.Z(_.Pb,{text:function(){var U;
return(U=H.data())==null?void 0:U.description}})))),_.Z(_.YY,{data:function(){var U;
return(U=H.data())==null?void 0:U.purchaseButton}},{buttonViewModel:function(U){return _.Z(_.yJ,{data:U.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"Hd");var fS3=_.r(function(H){var U=H.data;var A=_.RS(H.themeOverride,{useDarkTheme:!1});H={};H=_.CG("ytmLpHeadlineSectionViewModelHost",(H.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return A().useDarkTheme},H));
return _.Z("lp-headline-section-view-model",null,_.Z("div",{class:H},_.Z(_.K,{cond:function(){return U().title},
then:function(M){return _.Z("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.Z(_.Pb,{text:M}))}}),_.Z(_.K,{cond:function(){return U().subtitle},
then:function(M){return _.Z("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.Z(_.Pb,{text:M}))}})))},"Id");var JVz=_.r(function(H){var U=H.data;var A=H.themeOverride;var M=_.lx().resolve(_.$V(_.qF)),W=function(){return M&&M()||(A==null?void 0:A().useDarkTheme)},w=function(){var J,F;
var P=W()?(J=U().textBackgroundImage)==null?void 0:J.imageDark:(F=U().textBackgroundImage)==null?void 0:F.imageLight;return Or7((P==null?void 0:P.sources)||[])},d=function(){var J,F;
return W()?(J=U().featureImage)==null?void 0:J.imageDark:(F=U().featureImage)==null?void 0:F.imageLight},O=function(){return U().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},f=function(){var J,F;
return W()?(J=U().logo)==null?void 0:J.imageDark:(F=U().logo)==null?void 0:F.imageLight};
return _.Z("ytm-lp-large-feature-section-view-model",null,_.Z("div",{class:function(){var J=U().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",F=U().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",P=(U().index||0)%2===1,n=A==null?void 0:A().useDarkTheme,N=["yt-lp-large-feature-section-view-model"];J?N.push("yt-lp-large-feature-section-view-model--music-feature-type"):F?N.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):P||N.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
n&&N.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return N.join(" ")}},_.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.Z(_.K,{cond:d,
then:function(){return _.Z(_.nG,{data:function(){return d()},
alt:function(){var J,F,P;return(P=(J=U().featureImage)==null?void 0:(F=J.accessibilityData)==null?void 0:F.label)!=null?P:""},
contentMode:O})}})),_.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var J;return((J=w())==null?0:J.url)?"background-image: url("+_.j3(w().url)+");":""}},_.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.Z(_.K,{cond:f,
then:function(){return _.Z(_.nG,{data:function(){return f()},
alt:function(){var J,F,P;return(P=(J=U().logo)==null?void 0:(F=J.accessibilityData)==null?void 0:F.label)!=null?P:""},
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"})}}),_.Z(_.K,{cond:function(){return U().eyebrowText},
then:function(){return _.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.Z(_.Pb,{text:function(){return U().eyebrowText}}))}}),_.Z(_.K,{cond:function(){return U().title},
then:function(){return _.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.Z(_.Pb,{text:function(){return U().title}}))}}),_.Z(_.K,{cond:function(){return U().subtitles},
then:function(){return _.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.Z(_.FQ,{each:function(){return U().subtitles||[]}},function(J){return _.Z(_.Pb,{text:J})}))}})))))},"Jd");
JVz.idomCompat=!0;var KZz=_.r(function(H){return _.Z("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.Z("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.Z(_.er,{icon:function(){var U;return(U=H.data())==null?void 0:U.iconType},
className:function(){var U;switch((U=H.data())==null?void 0:U.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var U;return((U=H.data())==null?void 0:U.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.Z("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.Z(_.Pb,{text:function(){var U;
return(U=H.data())==null?void 0:U.text},
className:function(){var U;return((U=H.data())==null?void 0:U.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Kd");var oIn=_.r(function(H){H=_.Ec(H,{config:void 0,themeOverride:void 0});var U=H.data,A=H.config,M=H.themeOverride;H={};H=_.CG("ytmLpOfferCardOptionViewModelHost",(H.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var O;return(O=M())==null?void 0:O.useDarkTheme},H));
var W=_.c$(function(){var O,f;(O=A())==null||(f=O.handleRadioButtonClick)==null||f.call(O,U());return!1}),w=function(){var O;
return(O=A())==null?void 0:O.shouldDisplayRadioButton},d=function(){var O;
return(O=U().featureListItems)!=null?O:[]};
return _.Z("ytm-lp-offer-card-option-view-model",null,_.Z("div",{class:H,"on:click":_.c$(function(){if(w()){var O,f;(O=A())==null||(f=O.handleRadioButtonClick)==null||f.call(O,U())}return!1})},_.Z(_.K,{cond:w,
then:function(){return _.Z("div",null,_.Z("input",{type:"radio","on:click":W,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var O;return!((O=A())==null||!O.isOptionSelected)}}))}}),_.Z("div",null,_.Z("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.Z(_.Pb,{text:function(){return U().eyebrowText}})),_.Z("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.Z(_.Pb,{text:function(){return U().title}})),_.Z("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.Z(_.Pb,
{text:function(){return U().subtitle}})),_.Z(_.K,{cond:function(){return d().length>0},
then:function(){return _.Z("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.Z(_.YY,{data:d},{lpFeatureListItemViewModel:KZz}))}}),_.Z("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.Z(_.Pb,{text:function(){return U().description}})))))},"Ld");
oIn.idomCompat=!0;var FZ3=_.r(function(H){var U=H.data;var A=H.themeOverride;H=_.b(_.md(function(){var w,d=(w=U().offerOptions)==null?void 0:w[0];return _.p(d,baw)||{}}));
var M=H.next().value,W=H.next().value;H={};return _.Z("ytm-lp-offer-card-view-model",null,_.Z("div",{class:_.CG("ytmLpOfferCardViewModelHost",(H.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(A==null||!A().useDarkTheme)},H))},_.Z("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.Z(_.K,{cond:function(){return U().titleIconType},
then:function(){return _.Z("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.Z(_.er,{icon:function(){var w;return((w=U().titleIconType)==null?void 0:w.toString())||""}}))}}),_.Z("div",{class:"ytmLpOfferCardViewModelTitleText"},_.Z(_.Pb,{text:function(){return U().title}})),_.Z(_.YY,{data:function(){return U().titleBadge}},{badgeViewModel:function(w){return _.Z("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.Z(_.Ed,{data:w.data}))}})),_.Z("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.Z(_.YY,{data:function(){return U().offerOptions}},{lpOfferCardOptionViewModel:function(w){var d=w.data;
return _.Z(_.ve,null,_.Z("div",{class:"ytmLpOfferCardViewModelDivider"}),_.Z(oIn,{data:d,config:function(){var O;return{shouldDisplayRadioButton:(U().offerOptions||[]).length>1,isOptionSelected:d().id===((O=M())==null?void 0:O.id),handleRadioButtonClick:function(f){return void W(f)}}},
themeOverride:A}))}})),_.Z("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.Z(_.YY,{data:function(){var w;
return(w=M())==null?void 0:w.purchaseButtonOverride}},{buttonViewModel:_.yJ}))))},"Md");
FZ3.idomCompat=!0;var PJg=_.r(function(H){var U=H.data;var A=H.themeOverride;H={};H=_.CG("ytmLpOfferCardSectionViewModelHost",(H.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var M;return A==null?void 0:(M=A())==null?void 0:M.useDarkTheme},H));
return _.Z("ytm-lp-offer-card-section-view-model",null,_.Z("div",{class:H},_.Z(_.K,{cond:function(){return U().title!==void 0},
then:function(){return _.Z("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.Z("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.Z(_.Pb,{text:function(){return U().title}})),_.Z(_.K,{cond:function(){return U().subtitle},
then:function(){return _.Z("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.Z(_.Pb,{text:function(){return U().subtitle}}))}}))}}),_.Z("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.Z(_.YY,{data:function(){return U().offerCards}},{lpOfferCardViewModel:function(M){return _.Z("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.Z(FZ3,{data:M.data,
themeOverride:A}))}})),_.Z(_.K,{cond:function(){return U().footer},
then:function(){return _.Z("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.Z(_.Pb,{text:function(){return U().footer}}))}})))},"Nd");var so2=_.r(function(H){var U=H.data;return _.Z("lp-offer-table-cell-content-view-model",null,_.Z("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.Z(_.P5,null,_.Z(_.KA,{when:function(){return U().title}},function(){return _.Z(_.Pb,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return U().title}})}),_.Z(_.KA,{when:function(){return U().subTitle}},function(){return _.Z(_.Pb,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return U().subTitle}})}),_.Z(_.KA,{when:function(){return U().featureDescription}},function(){return _.Z(_.Pb,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return U().featureDescription}})}),_.Z(_.KA,{when:function(){return U().description}},function(){return _.Z(_.Pb,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return U().description}})}),_.Z(_.KA,{when:function(){return U().iconType}},function(){return _.Z("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.Z(_.er,{icon:function(){return U().iconType.toString()}}))}),_.Z(_.KA,{when:function(){return U().purchaseButton}},function(){return _.Z(_.YY,{data:function(){return U().purchaseButton}},{buttonViewModel:function(A){return _.Z("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.Z(_.yJ,
{data:A.data}))}})}),_.Z(_.KA,{when:function(){return U().note}},function(){return _.Z(_.Pb,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return U().note}})}),_.Z(_.KA,{when:function(){return U().featureDetail}},function(){return _.Z(_.Pb,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return U().featureDetail}})}),_.Z(_.KA,{when:function(){return U().badge}},function(){return _.Z(_.YY,{data:function(){return U().badge}},{badgeViewModel:_.Ed})}))))},"Od");
so2.idomCompat=!0;var nIw=_.r(function(H){var U=H.data;return _.Z("lp-offer-table-cell-view-model",null,_.Z("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(U().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;"}}},_.Z(_.YY,{data:function(){return U().contents}},{lpOfferTableCellContentViewModel:so2})))},
"Pd");
nIw.idomCompat=!0;var N9y=_.r(function(H){var U=H.data;var A=H.lpTableIsFirstRow;var M=H.lpTableIsLastRow;var W=function(){return(A==null?0:A())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},w=function(){return(A==null?0:A())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(M==null?0:M())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.Z("ytm-lp-offer-table-row-view-model",null,_.Z("div",{class:"ytLpOfferTableRowViewModelHost"},_.Z(_.YY,{data:function(){return U().rowHeaderCell}},{lpOfferTableCellViewModel:function(d){return _.Z("div",{class:W},_.Z(nIw,{data:d.data}))}}),_.Z(_.YY,{data:function(){return U().contentCells}},{lpOfferTableCellViewModel:function(d){return _.Z("div",{class:w},_.Z(nIw,{data:d.data}))}})))},"Qd");
N9y.idomCompat=!0;var SQg=_.r(function(H){var U=H.data;var A=H.themeOverride;var M=_.lx().resolve(_.$V(_.qF)),W=function(){return _.p(U().logo,xdB)||{}};
H={};return _.Z("ytm-lp-offer-table-section-view-model",null,_.Z("div",{class:"ytLpOfferTableViewModelHost"},_.Z(_.K,{cond:function(){var w,d;return M&&M()||(A==null?0:A().useDarkTheme)?(w=W())==null?void 0:w.imageDark:(d=W())==null?void 0:d.imageLight},
then:function(w){return _.Z(_.nG,{data:w,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var d,O,f;return(f=(d=W())==null?void 0:(O=d.accessibilityData)==null?void 0:O.label)!=null?f:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.Z("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.Z(_.Pb,{text:function(){return U().title}})),_.Z("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.Z(_.Pb,{text:function(){return U().subtitle}})),_.Z(_.K,{cond:function(){return U().disclaimers},
then:function(w){return _.Z("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.Z(_.FQ,{each:w},function(d){return _.Z("div",null,_.Z(_.Pb,{text:d}))}))}}),_.Z("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.Z(_.YY,{data:function(){return U().rows}},{lpOfferTableRowViewModel:function(w,d){return _.Z(N9y,{data:w.data,
lpTableIsFirstRow:function(){return d()===0},
lpTableIsLastRow:function(){return d()===U().rows.length-1}})}})),_.Z("div",{class:_.CG((H.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return U().hasFooterBackground},H))},_.Z(_.K,{cond:function(){return U().footer},
then:function(){return _.Z("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.Z(_.Pb,{text:function(){return U().footer}}))}}),_.Z(_.K,{cond:function(){return U().footerTitle},
then:function(){return _.Z("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.Z(_.Pb,{text:function(){return U().footerTitle}}))}}),_.Z(_.K,{cond:function(){return U().footerDescription},
then:function(){return _.Z("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.Z(_.Pb,{text:function(){return U().footerDescription}}))}}),_.Z(_.K,{cond:function(){return U().footerDescriptions},
then:function(w){return _.Z("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.Z(_.FQ,{each:w},function(d){return _.Z("div",null,_.Z(_.Pb,{text:d}))}))}}))))},"Rd");
SQg.idomCompat=!0;var p_m=_.r(function(H){var U=H.data;var A=H.themeOverride;var M=_.lx().resolve(_.$V(_.qF)),W=function(){var O;return A==null?void 0:(O=A())==null?void 0:O.useDarkTheme},w=function(){var O,f;
return M&&M()||W()?(O=U().image)==null?void 0:O.imageDark:(f=U().image)==null?void 0:f.imageLight};
H={};H=_.CG("ytmLpSmallFeatureSectionViewModelHost",(H.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=W,H));var d=function(){var O,f,J;return(J=(O=U().image)==null?void 0:(f=O.accessibilityData)==null?void 0:f.label)!=null?J:""};
return _.Z("ytm-lp-small-feature-section-view-model",{class:H},_.Z(_.K,{cond:function(){return w()&&!b07},
then:function(){return _.Z("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.Z(_.nG,{data:function(){return w()},
alt:d,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.Z("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.Z("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.Z(_.K,{cond:function(){return U().title},
then:function(O){return _.Z(_.Pb,{text:O})}})),_.Z("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.Z(_.Pb,{text:function(){return U().description}}))))},"Sd");
p_m.idomCompat=!0;var LZ2=_.r(function(H){var U=H.data;var A=H.themeOverride;H={};return _.Z("ytm-lp-small-feature-section-group-view-model",null,_.Z("div",{class:_.CG("ytmLpSmallFeatureSectionGroupViewModelHost",(H.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(A==null||!A().useDarkTheme)},H))},_.Z("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.Z(_.YY,{data:function(){return U().smallFeatures}},{lpSmallFeatureSectionViewModel:function(M){return _.Z("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.Z(p_m,{data:M.data,
themeOverride:A}))}}))))},"Td");
LZ2.idomCompat=!0;_.LG(_.r(function(H){var U=H.data;var A=function(){return U().forcedTheme==="USER_INTERFACE_THEME_DARK"},M=function(){return U().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},W=function(){var d="",O,f;
var J=_.lx().resolve(_.$V(_.qF));J=A()||(J==null?0:J())?(O=U().themedImageViewModel)==null?void 0:O.imageDark:(f=U().themedImageViewModel)==null?void 0:f.imageLight;(O=Or7((J==null?void 0:J.sources)||[]))&&O.url&&(d=M()?"background-image: linear-gradient(to bottom, transparent, "+(U().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.j3(O.url)+");":"background-image: url("+_.j3(O.url)+");");return d},w=function(){return{useDarkTheme:A()}};
H={};return _.Z("yt-section-group-view-model",null,_.Z("div",{class:_.CG("yt-lp-section-group-view-model",(H["yt-lp-section-group-view-model--premium-force-dark-mode"]=A,H["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return U().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},H))},_.Z(_.K,{cond:function(){return W().length},
then:function(){var d={};return _.Z("div",{class:_.CG("yt-lp-section-group-view-model__bg-image",(d["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=M,d)),style:W})}}),_.Z("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.Z(_.YY,{data:function(){return U().sections}},{lpHeaderUpsellBannerViewModel:function(d){return _.Z(ZMh,{data:d.data})},
lpFaqSectionViewModel:function(d){return _.Z(OMh,{data:d.data,themeOverride:w})},
lpHeaderSectionViewModel:function(d){return _.Z(uHg,{data:d.data,themeOverride:w})},
lpHeadlineSectionViewModel:function(d){return _.Z(fS3,{data:d.data,themeOverride:w})},
lpLargeFeatureSectionViewModel:function(d){return _.Z(JVz,{data:d.data,themeOverride:w})},
lpOfferCardSectionViewModel:function(d){return _.Z(PJg,{data:d.data,themeOverride:w})},
lpComplexOfferCardSectionViewModel:function(d){return _.Z(X_w,{data:d.data})},
lpOfferTableSectionViewModel:function(d){return _.Z(SQg,{data:d.data,themeOverride:w})},
lpSmallFeatureSectionGroupViewModel:function(d){return _.Z(LZ2,{data:d.data,themeOverride:w})},
lpCouponBannerViewModel:function(d){return _.Z(iMn,{data:d.data})}}))))},"Ud"),"yt-section-group-view-model",{props:{data:_.sY}});_.R32=_.r(function(H){var U=_.$Y(nMM,function(){var d;return(d=H.data())==null?void 0:d.chipBarStateEntityKey}),A=function(){return H.data().disableDeselection},M=_.b(_.md(function(){var d;
if(((d=U())==null?void 0:d.selectedIndex)!=void 0)return U().selectedIndex;var O,f;d=_.b(((O=H.data())==null?void 0:(f=O.chips)==null?void 0:f.entries())||[]);for(O=d.next();!O.done;O=d.next()){O=_.b(O.value);f=O.next().value;O=O.next().value;var J=void 0;if((J=_.p(O,_.Fj))==null?0:J.selected)return f}return-1})),W=M.next().value,w=M.next().value;
return _.Z("chip-bar-view-model",{class:_.CG("ytChipBarViewModelHost",H.className),role:"tablist"},_.Z(_.YY,{data:function(){return H.data().chips}},{chipViewModel:function(d,O){return _.Z("div",{class:"ytChipBarViewModelChipWrapper"},_.Z(_.Tqr,{data:d.data,
selected:function(){return O()===W()},
callback:function(f,J){f=!!J;J=O();w(f?J:-1);var F,P=(F=H.data())==null?void 0:F.chipBarStateEntityKey;P&&f&&_.Le(_.hs("chipBarStateEntity",P,{key:P,selectedIndex:J}))},
disableDeselection:H.disableDeselection||A}))}}))},"Vd");_.LG(_.R32,"chip-bar-view-model",{props:{data:_.Ne,className:_.Ne,disableDeselection:_.Ne}});_.EIz=_.r(function(H){var U=H.data;H={};return _.Z("divider-view-model",{class:_.CG("dividerViewModelHost",(H.dividerViewModelInsetThinPadding=function(){return U().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},H))},_.Z("div",{class:_.CG("dividerViewModelBaseDivider",function(){return N2V(U().dividerStyle)})}))},"Wd");
_.EIz.idomCompat=!0;_.LG(_.EIz,"divider-view-model",{props:{data:_.sY}});var Gn=new Map,hF=new Map,Lk_=0,kC;var x38=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],tSc={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var m9n,gIK;m9n=function(H){return function(U){return function(){return(U==null?void 0:U())!==void 0?String(U())+H:void 0}}};
_.JQ=m9n("px");gIK=m9n("s");var aSg=ptc(function(H){return H.targetGroupId}).useUpdatableData;_.KP=_.r(function(H){function U(WF){return function(){var dK=z().numItemsPerGridRow,SN=WF()*dK;dK=SN+dK;var o_,PF;return(PF=(o_=M().contents)==null?void 0:o_.slice(SN,dK))!=null?PF:[]}}
var A=_.Ec(H,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),M=A.data,W=A.layoutContainerWidth,w=A.shouldUseOwnContainerSize,d=A.marginSettings,O=A.useUpdatedMargin,f=isF(),J=_.b(aSg(function(){var WF,dK;return{targetGroupId:(WF=M().targetingContext)==null?void 0:(dK=WF.targetGroupId)==null?void 0:dK[0]}})).next().value;
A=_.b(_.iB(!0,void 0,"CC9Rdb"));var F=A.next().value,P=A.next().value,n=function(){var WF,dK=(WF=_.p(M().showMoreButton,_.ot))==null?void 0:WF.trackingParams;dK&&_.Yg(_.k$(),dK);P(!1)},N=function(){var WF,dK=(WF=_.p(M().showLessButton,_.ot))==null?void 0:WF.trackingParams;
dK&&_.Yg(_.k$(),dK);P(!0)};
A=_.b(_.vq({canHaveZeroSize:!1}));var L=A.next().value;A=A.next().value;var m=function(){var WF;return(WF=M().contentAspectRatio)!=null?WF:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},z=_.Ja(function(){var WF=w()&&L.width()>0?L.width()||W():W(),dK,SN=(dK=H.data())==null?void 0:dK.responsiveContainerConfiguration;
WF=_.Oy({containerWidth:WF,sizing:SN?uA(SN==null?void 0:SN.responsiveSize):"EXTRA_COMPACT",marginSettings:d(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:WF.maxContainerWidth,numItemsPerGridRow:WF.numItems,contentPadding:w()?WF.margin:WF.contentMargin,itemWidth:WF.itemWidth,itemMargin:WF.gutter/2}},void 0,"YIvnde"),c=function(){if(M().enableVerticalExpansion){if(F())return C();
var WF,dK,SN=(dK=(WF=M().contents)==null?void 0:WF.length)!=null?dK:0;return Math.ceil(SN/z().numItemsPerGridRow)}return z().numItemsPerGridRow<=2?2:1},C=function(){var WF;
return Math.ceil(((WF=M().minCollapsedItemCount)!=null?WF:1)/z().numItemsPerGridRow)},v=function(){return M().enableVerticalExpansion&&M().showLessButton&&!F()&&c()>C()},Y=function(){var WF,dK;
return M().enableVerticalExpansion&&M().showMoreButton&&F()&&((dK=(WF=M().contents)==null?void 0:WF.length)!=null?dK:0)>z().numItemsPerGridRow*C()},D=function(){return!v()},h=function(){return!Y()},T={};
return _.Z("grid-shelf-view-model",{class:_.CG("ytGridShelfViewModelHost",H.className,(T.ytGridShelfViewModelHostHasBottomButton=function(){return v()||Y()},T.ytGridShelfViewModelHostIsDismissed=function(){var WF,dK=(WF=J())!=null?WF:{};
WF=dK.behavior;var SN=dK.isDismissed,o_=dK.stamperContextTargetId;dK=dK.stamperIndex;if(!(_.S("mweb_see_fewer_shorts_group_dismissal")&&SN&&WF&&o_))return!1;var PF;SN=f;for(var BF,kc,G8=((BF=SN)==null?0:BF.targetId)?_.an((kc=SN)==null?void 0:kc.targetId):void 0;((PF=SN)==null?0:PF.parent)&&G8!==o_;)SN=SN.parent,kc=BF=void 0,G8=((BF=SN)==null?0:BF.targetId)?_.an((kc=SN)==null?void 0:kc.targetId):void 0;PF=G8===o_?SN:void 0;if(!PF)return!1;var Pr;o_=PF==null?void 0:(Pr=PF.stamperIndex)==null?void 0:
Pr.call(PF);return WF==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||WF==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&o_!=null&&dK!=null&&o_>dK},T.ytGridShelfViewModelHostOptionalMediumLayoutMargin=O,T)),
el:_.sB(A),style:_.rA({"margin-left":(0,_.JQ)(function(){return z().contentPadding}),
"margin-right":(0,_.JQ)(function(){return z().contentPadding})})},_.Z(_.K,{cond:function(){return _.p(M().header,BFk)},
then:function(WF){return _.Z(_.vv,{data:WF,useUpdatedPadding:O,disableHorizontalPadding:!0})}}),_.Z("div",null,_.Z(_.FQ,{each:function(){return Array(c())}},function(WF,dK){return _.Z(x9h,{className:H.className,
items:U(dK),responsiveGridShelfLayout:z,contentAspectRatio:m})})),_.Z("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.Z(_.YY,{data:function(){return M().showMoreButton}},{buttonViewModel:function(WF){return _.Z("div",{hidden:h},_.Z(_.yJ,{data:WF.data,
onClick:n}))}}),_.Z(_.YY,{data:function(){return M().showLessButton}},{buttonViewModel:function(WF){return _.Z("div",{hidden:D},_.Z(_.yJ,{data:WF.data,
onClick:N}))}})))},"Yd");
_.KP.idomCompat=!0;var x9h=_.r(function(H){var U=H.items;var A=H.responsiveGridShelfLayout;var M=H.contentAspectRatio;H=H.className;var W=(0,_.JQ)(function(){return-A().itemMargin});
return _.Z("div",{el:_.sB(pGc(function(w){a:{for(var d=U(),O=[],f=0;f<d.length;f++){var J=_.p(d[f],Jbn);if(!J||J==null||!J.inlinePlayerData){w=null;break a}var F=w.children.item(f);if(!F){w=null;break a}O.push({thumbnailElement:F,videoData:J})}w={gridVideoPreviewData:{gridItems:O}}}return w})),
class:_.CG("ytGridShelfViewModelGridShelfRow",H),style:_.rA({"margin-left":W,"margin-right":W})},_.Z(_.YY,{data:U,replacementWrapper:function(w){return _.Z(z3k,{responsiveGridShelfLayout:A},w)}},{shortsLockupViewModel:function(w){return _.Z(z3k,{responsiveGridShelfLayout:A},_.Z(MSg,{data:w.data,
aspectRatio:function(){return M()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.S("mweb_enable_one_line_title_on_shorts")?1:_.S("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(w){return _.Z(z3k,{responsiveGridShelfLayout:A},_.Z(_.YN,{data:w.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Zd"),z3k=_.r(function(H){return _.Z("div",{style:_.rA({width:(0,_.JQ)(function(){return H.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+H.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},H.children)},"$d");
_.KP.idomCompat=!0;_.LG(_.KP,"grid-shelf-view-model",{props:{data:_.sY,layoutContainerWidth:_.sY,shouldUseOwnContainerSize:_.sY,marginSettings:_.sY,useUpdatedMargin:_.sY,className:_.sY}});_.CJH=_.r(function(H){var U=_.b(_.iB(!1,void 0,"FVl30c")),A=U.next().value,M=U.next().value;U={};return _.Z("yt-alert-banner-view-model",{class:_.CG("ytAlertBannerViewModelHost",H.className,function(){var W;a:switch((W=H.data())==null?void 0:W.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":W="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":W="ytAlertBannerViewModelWarning";break a;default:W="ytAlertBannerViewModelInformational"}return W},(U.ytAlertBannerViewModelDismissed=
A,U.ytAlertBannerViewModelFullbleed=H.fullbleed,U.ytAlertBannerViewModelNarrow=H.narrow,U.ytAlertBannerViewModelIsInRichGrid=H.isInRichGrid,U))},_.Z(_.K,{cond:function(){var W;
return!((W=H.data())==null?0:W.hideIcon)},
then:function(){return _.Z("div",{class:"ytAlertBannerViewModelIcon"},_.Z(_.er,{icon:function(){return"info_circle"}}))}}),_.Z("div",{class:"ytAlertBannerViewModelOuterContainer"},_.Z("div",{class:"ytAlertBannerViewModelContainer"},_.Z("div",{class:"ytAlertBannerViewModelContent"},_.Z("div",{class:"ytAlertBannerViewModelHeading"},_.Z(_.Pb,{text:function(){var W;
return(W=H.data())==null?void 0:W.heading}})),_.Z("div",{class:"ytAlertBannerViewModelBody"},_.Z(_.Pb,{text:function(){var W;
return(W=H.data())==null?void 0:W.body}})))),_.Z(_.YY,{data:function(){var W;
return(W=H.data())==null?void 0:W.actionButton}},{buttonViewModel:function(W){return _.Z(_.yJ,{data:W.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.Z(_.YY,{data:function(){var W;
return(W=H.data())==null?void 0:W.dismissButton}},{buttonViewModel:function(W){return _.Z(_.yJ,{data:W.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var w;((w=H.data())==null?0:w.disableLocalDismissBehavior)||M(!0)}})}}))},"ae");_.LG(_.CJH,"yt-alert-banner-view-model",{props:{data:_.sY,fullbleed:_.sY,narrow:_.sY,isInRichGrid:_.sY,className:_.sY}});var t1w;_.o6=_.r(function(H){return _.Z("basic-content-view-model",{class:_.CG("ytBasicContentViewModelHost",_.RS(H.className))},_.Z(_.K,{cond:function(){return H.data().headline},
then:function(U){return _.Z("div",{class:"ytBasicContentViewModelHeadline"},_.Z(_.Pb,{text:U}))}}),_.Z(_.FQ,{each:function(){return H.data().paragraphs||[]},
keyBy:"INDEX"},function(U){return _.Z("div",{class:"ytBasicContentViewModelParagraph"},_.Z(_.K,{cond:function(){var A=U();return!!(A.header||A.customHeader||A.headline)},
then:function(){return _.Z(t1w,{paragraph:U})}}),_.Z(_.K,{cond:function(){return U().asset||U().text},
then:function(){return _.Z("div",{class:"ytBasicContentViewModelParagraphContent"},_.Z(_.K,{cond:function(){return U().asset},
then:function(A){return _.Z("div",{class:"ytBasicContentViewModelParagraphAsset"},_.Z(_.YY,{data:A},{contentPreviewImageViewModel:_.B6}))}}),_.Z(_.K,{cond:function(){return U().text},
then:function(A){return _.Z("div",{class:"ytBasicContentViewModelParagraphText"},_.Z(_.Pb,{text:A}))}}))}}))}))},"be");
t1w=_.r(function(H){var U=H.paragraph;return _.Z(_.ve,null,_.Z(_.K,{cond:function(){return U().headline},
then:function(A){return _.Z(_.Pb,{text:A,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.Z(_.YY,{data:function(){return U().header||U().customHeader}},{sectionHeaderViewModel:function(A){return _.Z(_.vv,{data:A.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"ce");_.cVm=_.r(function(H){function U(){var N,L;f((L=(N=W)==null?void 0:N.isKeyBoardInUse())!=null?L:!1)}
function A(){f(!1)}
function M(){var N;return O()?(N=H.focusedClassName)==null?void 0:N.call(H):""}
var W=_.lx().resolve(_.$V(_.af)),w=_.b(_.iB(!1,void 0,"SgkTXc")),d=w.next().value;w=w.next().value;var O=d,f=w,J=function(){var N,L;return((N=H.toggleable)==null?0:N.call(H))?(L=H.toggled)==null?void 0:L.call(H):void 0},F=_.c$(function(N){var L,m=(L=H.command)==null?void 0:L.call(H);
m&&_.lx().resolve(_.YV).resolveCommand(m);var z;(z=H.onClick)==null||z.call(H,N)}),P=_.c$(U),n=_.c$(A);
return _.Z(_.K,{cond:function(){var N;if(N=H.command){N=H.command();N=yut(N);var L=N.href;N=!(!N.navigatingCommand||!L)}return N},
then:function(){return _.Z(_.xy,Object.assign({},{command:H.command,style:H.style,ariaDescribedby:H.ariaDescribedby,ariaHidden:H.ariaHidden,ariaLabel:H.ariaLabel,ariaLabelledby:H.ariaLabelledby,ariaSelected:H.ariaSelected,disabled:H.disabled,dir:H.dir,tabIndex:H.tabIndex,target:H.target,title:H.title,onClick:H.onClick},{className:_.CG("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",H.className,function(){return M()}),
onFocusin:U,onFocusout:A,ariaCurrent:function(){var N,L;return(L=(N=H.ariaCurrent)==null?void 0:N.call(H))!=null?L:J()}}),H.children)},
else:function(){return _.Z("button",{"on:click":F,"on:focusin":P,"on:focusout":n,class:_.CG("ytButtonOrAnchorHost","ytButtonOrAnchorButton",H.className,function(){return M()}),
style:H.style,"aria-describedby":H.ariaDescribedby,"aria-hidden":H.ariaHidden,"aria-label":H.ariaLabel,"aria-labelledby":H.ariaLabelledby,"aria-pressed":J,dir:H.dir,disabled:H.disabled,tabindex:H.tabIndex,title:H.title},H.children)}})},"de");var yVk=_.r(function(H){H=_.Ec(H,{disabled:!1});var U=H.active,A=H.disabled;H={};H=_.CG("ytSwitchShapeTrack",(H.ytSwitchShapeTrackActive=function(){return U()},H.ytSwitchShapeTrackDisabled=function(){return A()},H));
var M={};M=_.CG("ytSwitchShapeKnob",(M.ytSwitchShapeKnobActive=function(){return U()},M));
return _.Z("switch-shape",{class:"ytSwitchShapeHost"},_.Z("div",{class:H}),_.Z("div",{class:M}))},"ee");var B92=_.r(function(H){var U=_.Ec(H,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),A=U.data;H=U.className;var M=U.handleOnTapEventInParent,W=U.parentActive,w=U.onTap;U=_.b(_.md(function(){var n;return(n=W())!=null?n:A().switchedOnByDefault||!1}));
var d=U.next().value,O=U.next().value,f=function(){return A().isDisabled},J=_.nA("button");
U=_.c$(function(n){return n.key==="Enter"?(n.preventDefault(),J.value.click(),!1):!0});
var F=_.c$(function(n){if(A().handleOnTapEventInParent||M())return!0;if(f())return!1;if(w)return w(n),!0;B20(A(),d(),n);O(!d());return!1}),P={};
P=_.CG("ytSwitchButtonViewModelButton",(P.ytSwitchButtonViewModelTappable=function(){return!f()},P));
return _.Z("switch-button-view-model",{class:_.CG("ytSwitchButtonViewModelHost",H)},_.Z("button",{el:J,class:P,"on:click":F,"on:keydown":U,"aria-label":function(){return d()?A().a11yLabelSwitchedOn:A().a11yLabelSwitchedOff},
"aria-checked":d,"aria-disabled":f,role:"switch"},_.Z(yVk,{active:d,disabled:f})))},"fe");var rVz=_.r(function(H){var U=H.data;var A=H.isLeading;var M=H.hideSelectionTextChevron;var W=H.isToggled;var w=H.shouldNotFillIcon;var d=function(){if(A())var P=U().leadingImage;else{var n;P=(n=U().trailingImage)!=null?n:_.Zf(U().themedTrailingImage)}return P},O=function(){a:switch(U().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var P="expand_more";
break a;default:P="chevron_right"}return P};
H={};var f=_.CG("yt-list-item-view-model__image-container",(H["yt-list-item-view-model__leading"]=A,H["yt-list-item-view-model__trailing"]=function(){return!A()},H)),J=_.CG("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
H={};var F=_.CG("yt-list-item-view-model__accessory",(H["yt-list-item-view-model__leading"]=A,H["yt-list-item-view-model__trailing"]=function(){return!A()},H));
return _.Z(_.K,{cond:function(){var P=U(),n=A();return!!(n&&(P.leadingImage||P.leadingAccessory)||!n&&(P.trailingImage||P.trailingButton||P.trailingButtons||P.selectionText||P.themedTrailingImage||P.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.Z(_.ve,null,_.Z(_.K,{cond:d,then:function(P){return _.Z("div",{class:f,"aria-hidden":"true"},_.Z(_.nG,{data:P,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var n=(A()?U().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":U().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?A()?D3c(U().leadingIconAccessorySize):D3c(U().trailingIconAccessorySize):void 0;return n},
className:J,isToggled:function(){return!(w==null?0:w())&&(W==null?void 0:W())}}))}}),_.Z(_.K,{cond:function(){return A()&&U().leadingAccessory},
then:function(){return _.Z("div",{class:f},_.Z(_.YY,{data:function(){return U().leadingAccessory}},{avatarViewModel:function(P){return _.Z(_.dU,{data:P.data,
avatarButtonCustomClassName:J})},
collectionThumbnailViewModel:function(P){return _.Z(him,{data:P.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.Z(_.K,{cond:function(){return!A()&&U().trailingButton},
then:function(){return _.Z("div",{class:"yt-list-item-view-model__button-container"},_.Z(_.YY,{data:function(){return U().trailingButton}},{buttonViewModel:function(P){return _.Z(_.yJ,{data:P.data,
className:F})}}))}}),_.Z(_.K,{cond:function(){var P;
return!A()&&((P=U().trailingButtons)==null?void 0:P.buttons)},
then:function(){return _.Z("div",{class:"yt-list-item-view-model__button-container"},_.Z(_.YY,{data:function(){var P;return(P=U().trailingButtons)==null?void 0:P.buttons}},{buttonViewModel:function(P){return _.Z(_.yJ,{data:P.data,
className:F})},
accountLinkButtonViewModel:function(P){return _.Z(Czr,{data:P.data,className:F})},
switchButtonViewModel:function(P){return _.Z(B92,{data:P.data,className:F})},
subscribeButtonViewModel:function(P){return _.Z(_.dx,{data:P.data,isOverlay:!1,animateWidth:!1,className:F})},
toggleButtonViewModel:function(P){return _.Z(_.MI,{data:P.data,className:F})}}))}}),_.Z(_.K,{cond:function(){return!A()&&!!U().selectionText},
then:function(){return _.Z(_.ve,null,_.Z(_.Pb,{text:function(){return U().selectionText},
className:_.CG("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.Z(_.K,{cond:function(){return!(M==null?0:M())},
then:function(){return _.Z(_.er,{icon:O,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.Z(_.K,{cond:function(){return!A()&&U().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.Z("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"ge");var e3m=_.r(function(H){var U=H.data;return _.Z(_.K,{cond:function(){return U().title||U().subtitle},
then:function(){return _.Z("div",{class:"yt-list-item-view-model__text-wrapper"},_.Z(_.K,{cond:function(){return U().title},
then:function(A){return _.Z("div",{class:"yt-list-item-view-model__title-wrapper"},_.Z(_.Pb,{text:A,className:"yt-list-item-view-model__title"}))}}),_.Z(_.K,{cond:function(){return U().subtitle},
then:function(A){return _.Z(_.Pb,{text:A,className:"yt-list-item-view-model__subtitle"})}}))}})},"he");var D9z=_.r(function(H){var U=H.data;var A=H.hideSelectionTextChevron;var M=H.TrailingAccessory;var W=H.isToggled;var w=H.disabled;var d=H.isSelectItem;var O=H.isCompact;var f=H.inPopup;var J=H.disableHorizontalPadding;var F=H.isTappableWithoutSelect;var P=H.useButtonOrAnchor;var n=H.onTap;var N=H.shouldNotFillIcon;var L=function(){return _.Z(e3m,{data:U,onTap:n,useButtonOrAnchor:P,isTappableWithoutSelect:F,isToggled:W})};
H={};return _.Z("div",{class:_.CG("yt-list-item-view-model__label",(H["yt-list-item-view-model__container"]=function(){return!(d==null?0:d())},H["yt-list-item-view-model__container--disabled"]=function(){return!!U().isDisabled||!(w==null||!w())},H["yt-list-item-view-model__container--has-subtitle"]=function(){return!!U().subtitle},H["yt-list-item-view-model__container--compact"]=O,H["yt-list-item-view-model__container--tappable"]=F,H["yt-list-item-view-model__container--in-popup"]=f,H["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(J==null?void 0:J())&&!(d==null?0:d())},H))},_.Z(rVz,{data:U,
isLeading:!0,hideSelectionTextChevron:A,isToggled:W,shouldNotFillIcon:N}),_.Z(_.K,{cond:function(){return(P==null?void 0:P())&&(F==null?void 0:F())},
then:function(){return _.Z(_.cVm,{command:function(){return _.AF(U().rendererContext)},
onClick:n,className:"yt-list-item-view-model__button-or-anchor",toggleable:W!==void 0,toggled:W},_.Z(L,null))},
else:function(){return _.Z(L,null)}}),_.Z(_.K,{cond:function(){return!!M},
then:function(){return _.Z("div",{class:"yt-list-item-view-model__trailing"},M&&_.Z(M,null))},
else:function(){return _.Z(rVz,{data:U,isLeading:!1,hideSelectionTextChevron:A,isToggled:W,shouldNotFillIcon:N})}}))},"ie");var lSH=_.r(function(H){var U=_.Ec(H,{checked:!1,disabled:!1});H=U.name;var A=U.onChange,M=U.onClick,W=U.checked,w=U.labelRenderable,d=U.hasLeadingLabel,O=U.labelClass,f=U.isCompact,J=U.selectElementClass,F=U.disableHorizontalPadding;U=U.disabled;var P="checkbox"+_.Op(_.fP),n=_.c$(function(m){M==null||M(m);return!1}),N=_.c$(function(m){A==null||A(m);
return!1}),L={};
return _.Z("checkbox-shape",null,_.Z("label",{class:_.CG("ytCheckboxShapeHost",O,(L.ytCheckboxShapeHostCompact=f,L.ytCheckboxShapeDisableHorizontalPadding=F,L))},_.Z("input",{class:"ytCheckboxShapeInput",id:P,checked:W,name:H,type:"checkbox",disabled:U,"prop:checked":W,"on:change":N,"on:click":n}),_.Z(_.K,{cond:function(){return!(d==null?0:d())},
then:function(){return _.Z($9h,{isLeading:!0,selectElementClass:J})}}),_.Z(_.K,{cond:function(){return!!w},
then:function(){return _.Z("div",{class:"ytCheckboxShapeLabel"},w==null?void 0:w())}}),_.Z(_.K,{cond:d,
then:function(){return _.Z($9h,{isLeading:!1,selectElementClass:J})}})))},"je");
lSH.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var $9h=_.r(function(H){var U=H.selectElementClass;H={};return _.Z("div",{class:_.CG("ytCheckboxShapeCheckbox",U,(H.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(U==null?0:U())},H)),
"aria-hidden":"true"},_.Z(_.er,{icon:_.S("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.Z(_.er,{icon:_.S("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"ke");_.F5=_.r(function(H){var U=H.name;var A=H.onChange;var M=H.onClick;var W=H.checked;var w=H.labelRenderable;var d=H.useCheckIcon;var O=H.hasLeadingLabel;var f=H.labelClass;var J=H.isCompact;var F=H.selectElementClass;var P=H.ariaLabel;var n=H.className;H=H.disabled;var N="radio"+_.Op(_.fP),L=_.nA("input"),m=_.S("enable_ios_webview_radio_button_responsiveness"),z=_.c$(function(T){L.value.checked=!(W==null||!W());A==null||A(T);return!1}),c=_.c$(function(T){M==null||M(T);
return!1}),C=_.b(_.iB(!1,void 0,"Ucg5gd")),v=C.next().value,Y=C.next().value;
C=_.c$(function(){var T;((T=_.lx().resolve(_.$V(_.af)))==null?0:T.isKeyBoardInUse())&&Y(!0)});
var D=_.c$(function(){Y(!1)}),h={};
return _.Z("radio-shape",{class:_.CG("yt-radio-shape",n)},_.Z("input",{el:L,class:"yt-radio-shape__input",id:N,"prop:checked":W,name:U,type:"radio",disabled:H,"on:change":z,"on:click":c,"aria-label":P,"on:focusin":C,"on:focusout":D}),_.Z("label",{class:_.CG("yt-radio-shape__label-container",f,(h["yt-radio-shape--compact"]=J,h["yt-radio-shape__label-container--keyboard-focused"]=v,h)),for:N},_.Z(_.K,{cond:function(){return!(O==null?0:O())},
then:function(){return _.Z(G7w,{checked:W,useCheckIcon:d,isLeading:!0,selectElementClass:F,usePassthrough:m})}}),_.Z(_.K,{cond:function(){return!!w},
then:function(){var T={};return _.Z("div",{class:_.CG("yt-radio-shape__label",(T["yt-radio-shape--event-passthrough"]=m,T)),"aria-hidden":function(){return(P==null?0:P())?"true":"false"}},w==null?void 0:w())}}),_.Z(_.K,{cond:O,
then:function(){return _.Z(G7w,{checked:W,useCheckIcon:d,isLeading:!1,selectElementClass:F,usePassthrough:m})}})))},"le");
_.F5.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};
var G7w=_.r(function(H){var U=H.useCheckIcon;var A=H.selectElementClass;H=H.usePassthrough;var M=_.S("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE",W=_.S("enable_web_delhi_icons")?"CIRCLE_FULL":M,w={};return _.Z("div",{class:_.CG("yt-radio-shape__radio",A,(w["yt-radio-shape__radio--check-icon"]=U,w["yt-radio-shape__radio--radio-default-style"]=function(){return!(A==null?0:A())},w["yt-radio-shape--event-passthrough"]=H,w)),
"aria-hidden":"true"},_.Z(_.er,{icon:function(){return(U==null?0:U())?"CHECK":M}}),_.Z(_.er,{icon:function(){return(U==null?0:U())?"CHECK":W},
active:function(){return!(U==null?0:U())}}))},"me");_.P3=_.r(function(H){var U=H.data;var A=H.isMenuItem;var M=H.isCompact;var W=H.onTap;var w=H.trailingAccessory;var d=H.hideSelectionTextChevron;var O=H.disabled;var f=H.inPopup;var J=H.disableHorizontalPadding;var F=H.isOverlay;var P=H.isToggled;var n=H.ariaLabel;var N=H.ariaPressed;var L=H.shouldNotFillIcon;var m=!_.S("web_enable_killswitch_for_selectable_list_item_on_tap_fix");H=!_.S("web_enable_killswitch_for_skip_child_tags");var z=_.Gk(function(Z3){return $37(U(),Z3)}),c=function(){return(J==
null?void 0:J())||U().disableHorizontalPadding},C=function(){var Z3;
return!((Z3=U())==null||!Z3.entitySelectorType)},v=function(){return C()?Object.assign({},U(),z().data):U()},Y=function(){return!!v().isDisabled||!(O==null||!O())},D=_.GLh(function(){return v().rendererContext}),h=function(){return!(v().isSelected===void 0||!v().selectionStyle||v().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},T=function(){return(_.MG(v().rendererContext)||W)&&!h()},WF={},dK=_.CG("yt-list-item-view-model__container",(WF["yt-list-item-view-model__container--tappable"]=
function(){return _.MG(v().rendererContext)||h()},WF["yt-list-item-view-model__container--compact"]=M,WF["yt-list-item-view-model__container--in-popup"]=f,WF["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(c==null?void 0:c())&&h()},WF)),SN=function(){return v().leadingImage||v().leadingAccessory},o_=_.CG("yt-list-item-view-model__image-container",function(){return SN()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
WF=_.VU();var PF=_.b(_.iB(!1,void 0,"ef0FO")),BF=PF.next().value,kc=PF.next().value,G8=function(){return _.Z(D9z,{data:v,hideSelectionTextChevron:d,TrailingAccessory:w,isToggled:P,disabled:O,isSelectItem:h,isCompact:M,inPopup:f,disableHorizontalPadding:c,isTappableWithoutSelect:T,useButtonOrAnchor:Pr,onTap:W,shouldNotFillIcon:L})},Pr=_.S("web_button_or_anchor_list_item");
PF={};return _.Z("yt-list-item-view-model",{el:_.sB(_.Wq(function(){return Y()?void 0:v().rendererContext},void 0,void 0,Pr?["A".toString(),
"BUTTON".toString()]:[]),lhK(function(Z3){if(!Y()){var Yc;if(Yc=m)Yc=v().selectionStyle,Yc=Yc==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||Yc==="LIST_ITEM_SELECTION_STYLE_RADIO"||Yc==="LIST_ITEM_SELECTION_STYLE_DEFAULT";Yc||W==null||W(Z3)}},H?["A".toString(),
"BUTTON".toString()]:[]),Um7(function(){return T==null?void 0:T()},{focusin:function(){var Z3;
((Z3=_.lx().resolve(_.$V(_.af)))==null?0:Z3.isKeyBoardInUse())&&kc(!0)},
focusout:function(){kc(!1)}})),
class:_.CG("yt-list-item-view-model",(PF["yt-list-item-view-model--is-overlay"]=F,PF["yt-list-item-view-model--keyboard-focused"]=BF,PF["yt-list-item-view-model--hidden"]=function(){return C()?z().isHidden:!1},PF)),
role:function(){return(A==null?0:A())?"menuitem":"listitem"},
tabindex:function(){var Z3=T();var Yc=Pr;h();Z3=Yc?void 0:_.S("web_enable_killswitch_tabindex_fix")?W||Z3?0:void 0:Z3?0:void 0;return Z3},
"on:keydown":WF,"aria-label":function(){var Z3;return(n==null?void 0:n())||((Z3=D())==null?void 0:Z3.label)},
"aria-pressed":N},_.Z(_.K,{cond:h,then:function(){return _.Z(_.P5,null,_.Z(_.KA,{when:function(){return v().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.Z(lSH,{labelRenderable:G8,
isCompact:M,checked:function(){return v().isSelected},
hasLeadingLabel:function(){return!!SN()},
labelClass:dK,selectElementClass:o_,disableHorizontalPadding:c,onClick:m?W:void 0,disabled:Y})}),_.Z(_.KA,{when:function(){return v().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.Z(_.F5,{labelRenderable:G8,
isCompact:M,checked:function(){return v().isSelected},
hasLeadingLabel:function(){return!!SN()},
labelClass:dK,selectElementClass:o_,onClick:m?W:void 0,disabled:Y})}),_.Z(_.KA,{when:function(){return v().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.Z(_.F5,{labelRenderable:G8,
isCompact:M,checked:function(){return v().isSelected},
hasLeadingLabel:function(){return!!SN()},
labelClass:dK,selectElementClass:o_,useCheckIcon:!0,onClick:m?W:void 0,disabled:Y})}),_.Z(_.oh,null,G8))},
else:G8}))},"ne");
_.P3.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.sE=_.r(function(H){var U=_.b(_.vq({canHaveZeroSize:!1})),A=U.next().value;U=U.next().value;var M=function(){return UWE(A.width(),H.data().responsiveContainerConfiguration)||jqF(A.width(),H.data().linearLayoutContainerConfiguration)};
return _.Z("yt-linear-layout-view-model",{el:_.sB(U),class:"ytLinearLayoutViewModelHost"},_.Z("div",{class:_.CG("ytLinearLayoutViewModelContainer",function(){a:switch(H.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var W="ytLinearLayoutViewModelHorizontal";break a;default:W="ytLinearLayoutViewModelVertical"}return W},function(){var W=H.data().linearLayoutContainerConfiguration;
return W?[kL_(W.flexDirection),vMV(W.justifyContent),T2K(W.alignItems)].join(" "):""}),
style:function(){var W;var w=((W=M())==null?void 0:W.containerStyles)||{};return _.rA(w)()}},_.Z(_.YY,{data:function(){return H.data().items},
wrapper:function(W,w,d){return _.Z("div",{style:function(){var O=d(),f;if((f=M())==null)O=void 0;else{var J=f.itemStyles,F,P;var n=(P=(F=H.data().items)==null?void 0:F.length)!=null?P:0;O=J.call(f,O===0,O===n-1)}return _.rA(O||{})()}},W())}},{lockupViewModel:function(W){return _.Z(_.YN,{data:W.data,
containerLayoutConfig:function(){var w;return(w=M())==null?void 0:w.containerLayoutConfig}})},
basicContentViewModel:_.o6,buttonViewModel:_.yJ,linearLayoutViewModel:_.sE,thumbnailViewModel:zt,descriptionPreviewViewModel:_.kT,listItemViewModel:_.P3,sectionHeaderViewModel:_.vv})))},"oe");_.LG(_.sE,"yt-linear-layout-view-model",{props:{data:_.sY}});_.LG(_.vE,"chips-shelf-view-model",{props:{data:_.sY,callback:_.Ne,selectionBehavior:_.sY,disableChipsScrollAnimation:_.sY,nextButtonStyle:_.sY}});_.LG(_.r(function(H){return _.Z("yt-comment-filter-context-view-model",{class:_.CG("ytCommentFilterContextHost",H.className)},_.Z(_.Pb,{text:function(){return H.data().text}}))},"pe"),"yt-comment-filter-context-view-model",{props:{data:_.sY,
className:_.Ne}});_.YQh=_.r(function(H){var U=H.data;var A=H.onTap;var M=H.onSwitch;var W=H.overrideDisabled;H=H.disableHorizontalPadding;var w=_.b(_.md(function(){var n;return((n=eG7(F()))==null?void 0:n.switchedOnByDefault)||!1})),d=w.next().value,O=w.next().value;
w=_.b(_.iB(!1,void 0,"V0hCrd"));var f=w.next().value,J=w.next().value,F=function(){var n;if(!(n=U().switchButton)){var N=U();n=W==null?void 0:W();N={switchOnCommand:N.switchOnCommand,switchOffCommand:N.switchOffCommand,switchedOnByDefault:N.switchedOnByDefault,isDisabled:N.isDisabled,a11yLabelSwitchedOn:N.a11yLabelSwitchedOn,a11yLabelSwitchedOff:N.a11yLabelSwitchedOff};n!==void 0&&(N.isDisabled=n);n={switchButtonViewModel:N}}return n},P=function(n){var N=eG7(F());
!N||N.isDisabled||U().ignoreTapUntilCommandCompletes&&f()||(A==null||A(n),B20(N,d(),n,U().ignoreTapUntilCommandCompletes,J),O(!d()),M==null||M(d()))};
return _.Z("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.Z(_.P3,{data:function(){return{title:U().title,subtitle:U().attributedSubtitle,leadingImage:U().leadingImage,leadingAccessory:U().leadingAccessory,isDisabled:U().isDisabled}},
onTap:P,isToggled:d,shouldNotFillIcon:!0,trailingAccessory:function(){return _.Z(_.YY,{data:F},{switchButtonViewModel:function(n){return _.Z(B92,{data:n.data,parentActive:d,onTap:P})}})},
disableHorizontalPadding:H}))},"qe");var qQh=_.r(function(H){var U=H.data;H=H.className;var A=function(){var O;return((O=M())==null?void 0:O.isToggled)!==void 0},M=_.Gk(function(O){a:{var f=U().entityKey,J=U().entitySelectorType;
if(J)switch(J){case "TOGGLEABLE_LIST_ITEM_ENTITY_SELECTOR_TYPE_TOGGLE_MENU_SERVICE_ITEM_ENTITY":if(!f)break;var F,P;O={isToggled:(P=(F=_.Ab.toggleMenuServiceItemEntitySelector(O,f))==null?void 0:F.isToggled)!=null?P:!1};break a;default:_.Na(new _.bD("Error: entitySelectorType defined but not matched in selector.",O,J))}O=void 0}return O}),W=_.b(_.md(function(){var O,f,J;
return A()?(O=M())==null?void 0:O.isToggled:(f=U())==null?void 0:(J=f.initialState)==null?void 0:J.isToggled})),w=W.next().value,d=W.next().value;
return _.Z("toggleable-list-item-view-model",{el:_.sB(_.Wq(function(){return U().rendererContext},{onTap:function(O,f){f();
A()||d(!w())}})),
class:_.CG("toggleableListItemViewModelHost",H)},_.Z(_.K,{cond:function(){if(w()){var O=U().toggledListItem;O=_.p(O,_.vo)}else O=U().defaultListItem,O=_.p(O,_.vo);return O},
then:function(O){return _.Z(_.P3,{data:O,isToggled:w,ariaLabel:function(){var f=w()?U().toggledListItem:U().defaultListItem,J;f=(J=_.p(f,_.vo))==null?void 0:J.rendererContext;var F;return(F=_.p(f,_.Tn))==null?void 0:F.label},
ariaPressed:function(){return w()}})}}))},"re");var h3h=_.hP("DOWNLOAD",{},"Download"),k7m=_.hP("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),vI2=_.hP("RETRY",{},"Retry"),T9z=_.hP("PAUSE_DOWNLOADING",{},"Pause downloading"),joH=_.hP("RESUME_DOWNLOAD",{},"Resume download"),AUc={text:h3h,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},j5={text:k7m,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},wPc={text:vI2,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
Mg4={text:T9z,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},WjF={text:joH,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var ISK=_.r(function(H){var U=function(){var O=H.data();O=_.AF(O.rendererContext);var f;return(f=_.p(O,_.eI))==null?void 0:f.videoId},A=_.Gk(function(O){var f=U(),J=biN(H.data());
return f?_.O_(O,f):J?_.uE(O,J):"TRANSFER_STATE_UNKNOWN"}),M=_.$Y(_.inM,U),W=_.Gk(function(O){return _.E0E(O,U(),biN(H.data()))}),w=function(){return ii7(A(),M(),_.AF(H.data().rendererContext),!!biN(H.data()))},d=function(){return W()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.Z("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:d},_.Z(_.K,{cond:function(){return!d()},
then:function(){return _.Z(_.K,{cond:w,then:function(O){return _.Z(_.FQ,{each:O},function(f){return _.Z(_.P3,{data:f,isCompact:H.isCompact,isMenuItem:H.isMenuItem,inPopup:H.inPopup,disableHorizontalPadding:H.disableHorizontalPadding})})}})}}))},"se");
ISK.idomCompat=!0;_.Qog=_.r(function(H){var U=H.data;var A=H.isCompact;var M=H.hideSelectionTextChevron;var W=H.inPopup;var w=H.isOverlay;var d=H.disableHorizontalPadding;var O=function(){return dW4(U())&&(W==null?void 0:W())},f=_.S("web_list_view_model_listbox_killswitch")?"menu":"listbox";
H=_.c$(function(F){if(W!=null&&W()&&_.S("web_enable_arrow_key_navigation_in_dropdown")){var P=_.ih_(F.currentTarget);if(P.length!==0){var n=Array.prototype.indexOf.call(P,document.activeElement);switch(F.key){case "ArrowDown":F.preventDefault();Oi7(P,n);break;case "ArrowUp":F.preventDefault();uN8(P,n);break;case "Tab":F.preventDefault(),F.shiftKey?uN8(P,n):Oi7(P,n)}}}});
var J={};return _.Z("yt-list-view-model",{class:_.CG("ytListViewModelHost",(J.ytListViewModelHostKaiosSpatNav=b07&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",J)),role:function(){return O()?f:"list"},
style:_.rA({"max-height":function(){var F,P=(F=U())==null?void 0:F.visibleElementCount;if(P)return(P+.5)*40+"px"}}),
"on:keydown":H},_.Z(_.YY,{data:function(){return U().listItems}},{listItemViewModel:function(F){return _.Z(_.P3,{data:F.data,
isMenuItem:O,isCompact:A,hideSelectionTextChevron:M,inPopup:W,isOverlay:w,disableHorizontalPadding:d})},
toggleableListItemViewModel:function(F){return _.Z(qQh,{data:F.data})},
downloadListItemViewModel:function(F){return _.Z(ISK,{data:F.data,isMenuItem:O,isCompact:A,inPopup:W,disableHorizontalPadding:d})},
switchListItemViewModel:function(F){return _.Z(_.YQh,{data:F.data,disableHorizontalPadding:d})}}))},"te");
_.Qog.idomCompat=!0;var V1w=_.r(function(H){var U=H.data;var A=H.isOverlay;H={};return _.Z("yt-course-perks-view-model",{class:_.CG("ytwCoursePerksViewModelHost",(H.ytwCoursePerksViewModelHostOverlay=A,H))},_.Z("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.Z(_.Pb,{text:function(){return U().title}})),_.Z("div",null,_.Z(_.K,{cond:function(){return U().perks},
then:function(M){return _.Z(_.Qog,{data:function(){return{listItems:M()}},
isCompact:!0,isOverlay:A})}})))},"ue");_.LG(V1w,"yt-course-perks-view-model",{props:{data:_.Ne,isOverlay:_.Ne}});_.LG(_.r(function(H){var U=H.data;return _.Z("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.Z("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.Z(_.Pb,{text:function(){return U().title}})),_.Z("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.Z(_.Pb,{text:function(){return U().progressSummary}})),_.Z("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.Z("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.rA({width:function(){return U().progressPercentage*100+"%"}})})))},"ve"),"yt-course-progress-view-model",{props:{data:_.sY}});var Hh$=_.r(function(H){var U={};return _.Z("yt-progress-view-model",{class:_.CG("ytwProgressViewModelHost",(U.ytwProgressViewModelHostOverlay=_.RS(H.isOverlay,!1),U))},_.Z(_.K,{cond:function(){return H.data().progressSummary},
then:function(A){return _.Z("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.Z(_.Pb,{text:A}))}}),_.Z("div",{class:"ytwProgressViewModelHostProgressContainer"},_.Z(_.K,{cond:function(){return H.data().leadingLabel},
then:function(A){return _.Z("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.Z(_.Pb,{text:A}))}}),_.Z("div",{class:"ytwProgressViewModelHostProgressBar"},_.Z("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(H.data().progressPercentage||0)*100+"%"}}))))},"we");var nP=_.r(function(H){var U=H.starNumber;var A=H.data;var M=function(){var W;return((W=A())==null?void 0:W.rating)||0};
return _.Z(_.K,{cond:function(){return U()},
then:function(W){return _.Z(_.P5,null,_.Z(_.KA,{when:function(){return M()>=W()-.25}},function(){return _.Z("div",{class:"ytStarRatingViewModelHostStar"},_.Z(_.er,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.Z(_.KA,{when:function(){return M()>=W()-.75}},function(){return _.Z("div",{class:"ytStarRatingViewModelHostStar"},_.Z(_.er,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.Z(_.oh,null,function(){return _.Z("div",{class:"ytStarRatingViewModelHostStar"},_.Z(_.er,{icon:"STAR",
size:function(){return 24}}))}))}})},"xe"),Ur$=_.r(function(H){H=H.data;
return _.Z("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.Z(nP,{starNumber:1,data:H}),_.Z(nP,{starNumber:2,data:H}),_.Z(nP,{starNumber:3,data:H}),_.Z(nP,{starNumber:4,data:H}),_.Z(nP,{starNumber:5,data:H}))},"ye");_.LG(_.r(function(H){var U=_.Ec(H,{}).data;return _.Z("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.Z("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.Z(_.Pb,{text:function(){var A;return(A=U())==null?void 0:A.title}})),_.Z("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.Z(_.K,{cond:function(){return U().starProgressViewModels},
then:function(A){return _.Z("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.Z(_.YY,{data:A},{progressViewModel:Hh$}))}}),_.Z("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.Z("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.Z(_.Pb,{text:function(){var A;
return(A=U())==null?void 0:A.averageRatingLabel}})),_.Z(_.K,{cond:function(){return U().zeroStateText},
then:function(A){return _.Z("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.Z(_.Pb,{text:A}))}}),_.Z(_.K,{cond:function(){return U().starRatingViewModel},
then:function(A){return _.Z("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.Z(_.YY,{data:A},{starRatingViewModel:Ur$}))}}),_.Z("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.Z(_.Pb,{text:function(){var A;
return(A=U())==null?void 0:A.totalRatingsCountLabel}})))))},"ze"),"yt-course-ratings-view-model",{props:{data:_.Ne}});var At5;At5={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.MNX=_.r(function(H){var U=_.nA("yt-learning-journey-loader-view-model"),A=_.Bo();_.pA(function(){requestAnimationFrame(function(){var W;(W=A.lottieEl)==null||W.addEventListener("DOMLoaded",function(){var w;(w=H.onLottieLoaded)==null||w.call(H)})});
var M=H.data().browseEndpoint;M&&_.uj(M)});
return _.Z("yt-learning-journey-loader-view-model",{class:_.CG("learningJourneyLoaderViewModelHost",H.className),"data-target-id":function(){return H.data().targetId||""},
el:U},_.Z(_.lK,{className:_.CG("learningJourneyLoaderViewModelLoader",H.className),animationName:function(){return At5.animationConfig.name},
data:At5,animationRef:A}))},"Be");_.LG(_.MNX,"yt-learning-journey-loader-view-model",{props:{data:_.sY,className:_.Ne,onLottieLoaded:_.Ne}});var WVh=_.r(function(H){var U=function(){return H.data()},A=function(){return!!_.V8(_.IR(U())).optionColor},M=_.b(_.iB(-1,void 0,"gXOYR")),W=M.next().value,w=M.next().value,d=function(P){return W()===P},O=function(P){return U().correctAnswerIndex===P},f=function(){return W()!==-1};
M=_.b(_.iB("",void 0,"BFwDQb"));var J=M.next().value,F=M.next().value;return _.Z("learning-journey-quiz-view-model",{class:_.CG("learningQuizComponentHost","learningJourneyQuizYoututorHost",H.className),style:_.rA({background:function(){return _.V8(_.IR(U())).backgroundColor}})},_.Z("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},J),_.Z("div",{class:"learningQuizComponentQuizContainer"},_.Z("div",{class:"learningQuizComponentQuiz"},_.Z("div",{class:"learningQuizComponentQuizContent"},_.Z(_.K,{cond:function(){return!!U().aiGeneratedQuizLabel},
then:function(){return _.Z("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.Z(_.Pb,{text:function(){return U().aiGeneratedQuizLabel}}))}}),_.Z("div",{class:"learningQuizComponentQuizHeader",
style:_.rA({"align-items":function(){return U().overflowMenu?"start":"center"}})},_.Z("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.rA({"min-height":function(){return U().overflowMenu?"48px":"26px"}})},_.Z("div",{class:"learningJourneyQuizYoututorText",
style:_.rA({color:function(){return _.V8(_.IR(U())).primaryTextColor}})},_.Z(_.Pb,{text:function(){return U().questionHeaderText}})))),_.Z("div",{class:"learningQuizComponentQuizSubheader",
style:_.rA({color:function(){return _.V8(_.IR(U())).secondaryTextColor}})},_.Z(_.Pb,{text:function(){var P=U();
return f()?P.explanationText:P.questionSubheaderText}}))),_.Z("div",{role:"group",
class:_.CG("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.Z(_.FQ,{each:function(){return U().optionsData||[]}},function(P,n){var N={};
return _.Z("button",{class:_.CG("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(N.learningQuizComponentQuizHover=function(){return!f()},N.learningQuizComponentQuizOptionWithCustomColor=A,N.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return f()&&O(n())},N.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return W()!==U().correctAnswerIndex&&d(n())},N.learningQuizComponentQuizIncorrectShake=
function(){return W()!==U().correctAnswerIndex&&d(n())},N)),
"on:click":_.c$(function(){_.uZ(_.k$(),{data:P});if(f())return!1;w(n());var L,m;F(O(n())?((L=U().successTitle)==null?void 0:L.content)||"":((m=U().failureTitle)==null?void 0:m.content)||"");return!1}),
style:_.rA({background:"transparent"}),"aria-description":function(){var L,m;return f()?O(n())?(L=U().successTitle)==null?void 0:L.content:(m=U().failureTitle)==null?void 0:m.content:""},
"aria-disabled":f},_.Z("div",{class:"learningQuizComponentQuizOptionContainer"},_.Z(_.Pb,{text:P.optionText}),_.Z(_.K,{cond:function(){var L=n();return f()&&(d(L)||O(L))},
then:function(){var L={};return _.Z(_.er,{className:_.CG("learningJourneyQuizYoututorOptionIcon",(L.learningQuizComponentQuizPulse=function(){return W()===U().correctAnswerIndex&&O(n())},L)),
size:24,icon:function(){return O(n())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.Z(_.K,{cond:f,
then:function(){return _.Z("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.Z("div",{class:"learningJourneyQuizYoututorExplanationText"},_.Z(_.Pb,{text:function(){return U().explanationHeaderText}})),_.Z(_.Pb,{text:function(){return U().optionsData[W()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"Ce");
WVh.idomCompat=!0;Object.freeze&&Object.freeze(Object.create(null));var Kjr=function(){},wFj;
(wFj=window.requestIdleCallback)==null||wFj.bind(window);var fL4=new Set,Zi7=null;var XF8;_.ihY=_.r(function(H){var U=null,A=null,M=null,W=function(){return H.data()},w=function(){return _.V8(_.IR(W()))},d=function(){return!!w().optionColor},O=_.b(_.iB(-1,void 0,"H2gnQb")),f=O.next().value,J=O.next().value,F=function(Y){return f()===Y},P=function(Y){return W().correctAnswerIndex===Y},n=function(){return f()!==-1},N=function(){return f()===W().correctAnswerIndex},L=function(){var Y=W(),D=n(),h=N();
return D?h?Y.successTitle:Y.failureTitle:Y.questionHeaderText},m=function(){var Y=n(),D=N();
return Y?D?264685:264684:264683},z=function(){var Y=W();
return n()?Y.explanationText:Y.questionSubheaderText},c=function(){return!!W().video},C=function(Y){return N()&&P(Y)},v=_.c$(function(){J(-1);
return!1});
return _.Z(_.K,{cond:function(){return W().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.Z(WVh,{data:function(){return W()}})},
else:function(){return _.Z("learning-journey-quiz-view-model",{class:_.CG("learningQuizComponentHost",H.className),style:_.rA({background:function(){return w().backgroundColor}})},_.Z(_.K,{cond:c,
then:function(){return _.Z("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.rA({background:function(){return w().videoBackgroundColor}})},_.Z(_.YY,{data:function(){return W().video}},{lockupViewModel:function(Y){return _.Z(_.YN,{data:Y.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.Z("div",{class:"learningQuizComponentQuizContainer"},_.Z("div",{class:"learningQuizComponentQuiz"},_.Z("div",{class:"learningQuizComponentQuizContent"},_.Z(_.K,{cond:function(){return!!W().aiGeneratedQuizLabel},
then:function(){return _.Z("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.Z(_.Pb,{text:function(){return W().aiGeneratedQuizLabel}}))}}),_.Z("div",{class:"learningQuizComponentQuizHeader",
style:_.rA({"align-items":function(){return W().overflowMenu?"start":"center"}})},_.Z("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.rA({"min-height":function(){return W().overflowMenu?"48px":"26px"}})},_.Z("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.sB(function(Y){_.Hl(m(),Y,U,function(D){U=D})}),
style:_.rA({color:function(){return w().primaryTextColor}}),
"client-ve-type":m},_.Z(_.Pb,{text:L}))),_.Z("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.Z(_.K,{cond:n,then:function(){return _.Z("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.sB(function(Y){_.Hl(264687,Y,A,function(D){A=D})}),
"on:click":v,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.Z("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.rA({fill:function(){return w().primaryTextColor}})},_.Z("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"})))}}),
_.Z(_.YY,{data:function(){return W().overflowMenu}},{buttonViewModel:function(Y){return _.Z(_.yJ,{data:Y.data})}}))),_.Z("div",{class:"learningQuizComponentQuizSubheader",
el:_.sB(function(Y){_.Hl(264688,Y,M,function(D){M=D})}),
style:_.rA({color:function(){return w().secondaryTextColor}}),
"client-ve-type":264688},_.Z(_.Pb,{text:z}))),_.Z("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.Z(_.FQ,{each:function(){return W().optionsData||[]}},function(Y,D){var h={};
return _.Z("button",{class:_.CG("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(h.learningQuizComponentQuizHover=function(){return!n()},h.learningQuizComponentQuizOptionWithCustomColor=d,h.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return C(D())},h.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!N()&&F(D())},h.learningQuizComponentQuizIncorrectShake=function(){return!N()&&
F(D())},h.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return n()&&!F(D())},h)),
"on:click":_.c$(function(){_.uZ(_.k$(),{data:Y});if(n())return!1;J(D());return!1}),
style:_.rA({background:function(){var T=D();return n()&&F(T)?"":d()?w().optionColor:"transparent"}}),
"aria-disabled":n},_.Z("div",{class:"learningQuizComponentQuizOptionContainer"},_.Z(_.K,{cond:n,then:function(){return _.Z(XF8,{isOptionCorrect:P,optionIndex:D,isOptionSelectedAndCorrect:C,colors:w})}}),_.Z(_.Pb,{text:Y.optionText})))})))))}})},"De");
XF8=_.r(function(H){var U={};return _.Z("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var A=H.optionIndex();return H.isOptionCorrect(A)?"0 0 24 24":"0 -960 960 960"},
class:_.CG("learningJourneyQuizViewModelQuizOptionIconLeading",(U.learningQuizComponentQuizPulse=function(){return H.isOptionSelectedAndCorrect(H.optionIndex())},U)),
style:_.rA({fill:function(){return H.colors().primaryTextColor}})},_.Z("path",{d:function(){var A=H.optionIndex();
return H.isOptionCorrect(A)?"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"}}))},"Ee");
_.ihY.idomCompat=!0;_.LG(_.ihY,"learning-journey-quiz-view-model",{props:{data:_.sY,className:_.sY}});var bhk=_.r(function(H){var U=_.b((0,_.S8)(function(){var d;return{targetId:(d=H.data().config)==null?void 0:d.suspenseKey,contents:[H.data()]}})).next().value,A=_.lx().resolve(_.YV),M=function(){var d=U().contents.length>0?U().contents[0]:void 0;
return d==null?void 0:d.config},W=function(){var d;
return(d=M())==null?void 0:d.entityTriggerConfig},w=_.$Y(Z60,function(){var d,O;
return(O=(d=W())==null?void 0:d.entityKey)!=null?O:""});
_.Em(function(){var d,O,f,J=(f=Number((d=W())==null?void 0:(O=d.invalidationTimestamp)==null?void 0:O.seconds))!=null?f:0,F,P,n;if(((n=Number((F=w())==null?void 0:(P=F.lastUpdated)==null?void 0:P.seconds))!=null?n:0)>J){var N;(d=(N=M())==null?void 0:N.continuationCommand)&&A.resolveCommand(d)}},"tC8nKe");
return _.Z("yt-suspense-view-model",{class:_.CG("ytSuspenseViewModelHost")},_.Z(_.YY,{data:function(){var d;return(d=M())==null?void 0:d.contents}},{lockupViewModel:_.YN}))},"Ge");var dr5=_.r(function(H){var U=_.Ec(H,{palette:void 0,isLastItem:!1}),A=U.palette,M=U.isLastItem,W=function(){return H.data().isHighlighted},w=function(){var f;
return om4((f=A())==null?void 0:f.iconDisabledColor)},d=function(){var f;
return om4((f=A())==null?void 0:f.primaryTitleColor)},O=function(){var f;
return om4((f=A())==null?void 0:f.secondaryTitleColor)};
U={};return _.Z("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.sB(_.Wq(function(){return H.data().rendererContext}))},_.Z(_.YY,{data:function(){return H.data().thumbnail}},{thumbnailViewModel:zt}),_.Z("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.Z("div",{class:_.CG("ytMacroMarkerListItemViewModelTimeDescription",(U.ytMacroMarkerListItemViewModelHighlighted=W,U)),
style:_.rA({"background-color":function(){return W()?d():w()},
color:function(){return W()?"":O()}})},_.Z(_.Pb,{text:function(){return H.data().timestamp}})),_.Z("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.rA({"background-color":function(){return M()?"transparent":w()}})}),_.Z("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(W()?d():O())}},_.Z(_.Pb,{text:function(){return H.data().title}}))))},"He");_.NH=_.r(function(H){function U(rK){C("transform:translateX("+(_.gD("HTML_DIR")==="rtl"?"":"-")+rK+"px)")}
function A(rK){return Math.min(Math.max(rK,0),c()-T())}
function M(rK){var FB=D()+o_();if(!W())return 0;rK===void 0&&(rK=Math.round(T()/FB)||1);return rK*FB}
var W=function(){return H.data().items||[]},w=function(){return H.data().previousButton},d=function(){return H.data().nextButton},O=function(){var rK,FB;
return(FB=(rK=H.disableArrows)==null?void 0:rK.call(H))!=null?FB:!1},f=function(){var rK;
return!((rK=H.forceNarrowLayout)==null||!rK.call(H))},J=_.Ja(function(){var rK;
return!((rK=H.centerAlignItems)==null||!rK.call(H))&&c()<=T()},void 0,"iGOqxd"),F=_.nA("horizontal-shelf-view-model"),P=_.nA("div"),n=_.b(_.iB(0,void 0,"tieKmf")),N=n.next().value,L=n.next().value;
n=_.b(_.iB(0,void 0,"W2lvv"));var m=n.next().value,z=n.next().value,c=m;m=_.b(_.iB("",void 0,"PEePkc"));n=m.next().value;var C=m.next().value;m=_.b(_.iB(0,void 0,"c7a4W"));var v=m.next().value,Y=m.next().value,D=v;m=_.b(_.iB(0,void 0,"KGhRJf"));v=m.next().value;var h=m.next().value,T=v;m=_.b(_.iB(!1,void 0,"fgWgyc"));var WF=m.next().value,dK=m.next().value;m=_.b(_.iB(0,void 0,"pe79rc"));v=m.next().value;var SN=m.next().value,o_=v;m=_.b(_.iB(0,void 0,"CTqisc"));var PF=m.next().value,BF=m.next().value;
m=_.b(_.iB(0,void 0,"S2Yf1b"));var kc=m.next().value,G8=m.next().value;m=_.b(_.iB("50%",void 0,"kjP5ke"));var Pr=m.next().value,Z3=m.next().value,Yc=function(){var rK,FB=(rK=H.data())==null?void 0:rK.responsiveContainerConfiguration,T2,xK;return FB?uA(FB==null?void 0:FB.responsiveSize):(xK=(T2=H.sizing)==null?void 0:T2.call(H))!=null?xK:"STANDARD"},sz=function(){var rK,FB=(rK=H.data())==null?void 0:rK.responsiveContainerConfiguration;
return FB?FB.enableContentSpecificAspectRatio===!1:!1};
m=_.Ja(function(){return!O()&&N()>0},void 0,"jT8Bud");
v=_.Ja(function(){return!O()&&N()<c()-T()},void 0,"mt4gsb");
var Ry=function(){F.value!==null&&aY()},oy;
_.LA(function(){aY();window.ResizeObserver?(oy=new ResizeObserver(_.Mb(Ry,0)),oy.observe(F.value)):window.addEventListener("resize",Ry)});
_.m4(function(){if(window.ResizeObserver){var rK;(rK=oy)==null||rK.disconnect()}else window.removeEventListener("resize",Ry)});
var aY=function(){var rK=F.value.clientWidth,FB=H.includeMargin!==void 0?H.includeMargin():!1,T2;var xK=H.hasPeek!==void 0?H.hasPeek():!((T2=H.data())==null||!T2.hasPeek);rK=_.Oy({containerWidth:rK,hasPeek:xK,sizing:Yc(),marginSettings:FB?f()?4:1:0});SN(rK.gutter);BF(rK.margin);Y(rK.itemWidth);dK(rK.maxContainerWidth<528||f());h(rK.maxContainerWidth);W()&&z((rK.itemWidth+rK.gutter)*W().length-rK.gutter);if(W()){var Hj;if(((Hj=H.thumbnailAspectRatio)==null?void 0:Hj.call(H))!==void 0){var CU;Z3(D()/
GAV((CU=H.thumbnailAspectRatio)==null?void 0:CU.call(H))/2+"px")}else Z3("50%")}},im={},Kh={};
return _.Z("horizontal-shelf-view-model",{class:_.CG("ytwHorizontalShelfViewModelHost",H.className),el:F},_.Z(_.K,{cond:function(){var rK;return H.data().header&&!((rK=H.horizontalShelfExperiments)==null?0:rK.call(H).hideHeader)},
then:function(){return _.Z("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.rA({width:function(){return T()+"px"},
padding:function(){return"0 "+PF()+"px"}})},_.Z(_.YY,{data:function(){return H.data().header}},{sectionHeaderViewModel:function(rK){return _.Z(_.vv,{data:rK.data,
disableHorizontalPadding:!0,forceSmallLayout:WF,useResponsiveLayout:!0})}}))}}),_.Z("div",{class:_.CG("ytwHorizontalShelfViewModelOuterContainer",(im.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return J()},im)),
style:_.rA({"margin-top":function(){var rK,FB=H.data().header&&!((rK=H.horizontalShelfExperiments)==null?0:rK.call(H).hideHeader),T2;return(((T2=H.ensureMarginTop)==null?0:T2.call(H))&&!FB?12:0)+"px"}})},_.Z("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.rA({width:function(){return T()+"px"},
padding:function(){return"0 "+PF()+"px"},
overflow:function(){return O()?"auto":"hidden"}})},_.Z("div",{class:_.CG("ytwHorizontalShelfViewModelItems",(Kh.ytwHorizontalShelfViewModelCenterAlignItems=function(){return J()},Kh)),
el:P,style:n},_.Z(_.YY,{data:W},{macroMarkerListItemViewModel:function(rK,FB){return _.Z("div",{style:_.rA({width:function(){return D()+"px"},
"margin-right":function(){return(FB()===W().length-1?0:o_())+"px"}})},_.Z(dr5,{data:rK.data,
palette:_.RS(H.palette),isLastItem:function(){return FB()===W().length-1}}))},
lockupViewModel:function(rK,FB){var T2=rK.data;return _.Z("div",{"on:focusin":_.c$(function(){var xK=FB();xK!==kc()&&(xK<kc()?L(A(N()-M(1))):L(A(N()+M(1))),U(N()),G8(xK));return!0}),
style:_.rA({width:function(){return D()+"px"},
"margin-right":function(){return(FB()===W().length-1?0:o_())+"px"}})},_.Z(_.YN,{data:T2,
containerType:4,sizing:Yc,protectBackground:H.protectBackground,thumbnailFixedWidth:function(){return Fj0(T2())+"px"},
thumbnailTargetWidth:function(){return Fj0(T2())},
force16By9ThumbnailAspectRatio:sz}))},
suspenseViewModel:function(rK,FB){return _.Z("div",{style:_.rA({width:function(){return D()+"px"},
"margin-right":function(){return(FB()===W().length-1?0:o_())+"px"}})},_.Z(bhk,{data:rK.data}))}}))),_.Z(_.K,{cond:m,
then:function(){return _.Z("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.rA({top:function(){return Pr()}})},_.Z(_.YY,{data:w},{buttonViewModel:function(rK){return _.Z(_.yJ,{data:rK.data,
onClick:function(){L(A(N()-M(void 0)));U(N())}})}}))}}),_.Z(_.K,{cond:v,
then:function(){return _.Z("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.rA({top:function(){return Pr()}})},_.Z(_.YY,{data:d},{buttonViewModel:function(rK){return _.Z(_.yJ,{data:rK.data,
onClick:function(){L(A(N()+M(void 0)));U(N())}})}}))}})))},"Ie");
_.NH.idomCompat=!0;var Ohh=_.r(function(H){var U=function(){return H.data().targetId||""},A=function(){var m;
return((m=H.data())==null?void 0:m.expansionEntityKey)||""},M=_.$Y(_.u2F,A),W=!0,w=function(){var m;
return((m=M())==null?void 0:m.value)===U()},d=function(m){_.Le(_.hs("stringEntity",A(),{key:A(),
value:m?U():""}))};
_.pA(function(){W=!1;H.data().isExpanded&&d(!0)});
var O=function(){if(w()){var m=!0;H.onCollapse!==void 0&&(m=H.onCollapse());m&&d(!1)}else d(!0)},f=_.c$(O),J=function(){var m;
return(((m=H.accordionStyle)==null?void 0:m.call(H))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},F=_.nA("div"),P=function(){var m,z;
return(z=(m=_.p(H.data().rendererContext,_.Tn))==null?void 0:m.label)!=null?z:""},n=function(){var m,z;
return{disabled:(m=H.hideIfNotExpanded)==null?void 0:m.call(H),ariaHidden:(z=H.hideIfNotExpanded)==null?void 0:z.call(H)}},N={},L={};
return _.Z("yt-accordion-item-view-model",{class:_.CG("ytAccordionItemViewModelHost",H.className,(N.ytAccordionItemViewModelExpanded=function(){return w()},N.ytAccordionItemViewModelHidden=function(){var m;
return(m=H.hideIfNotExpanded)==null?void 0:m.call(H)},N.ytAccordionItemViewModelMini=J,N)),
"data-target-id":U},_.Z("div",{class:"ytAccordionItemViewModelContainer"},_.Z("div",{class:"ytAccordionItemViewModelLeftSection","on:click":f,title:P,"aria-hidden":function(){var m;return(m=H.hideIfNotExpanded)==null?void 0:m.call(H)}},_.Z(_.Pb,{text:function(){return H.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:P})),_.Z("div",{class:"ytAccordionItemViewModelRightSection"},_.Z(_.YY,{data:function(){return w()?H.data().expandButton:H.data().collapseButton}},{buttonViewModel:function(m){return _.Z(_.yJ,{data:m.data,
className:"ytAccordionItemViewModelToggleButton",onClick:O,buttonOverrides:n})}}))),_.Z("div",{class:"ytAccordionItemViewModelContainer"},_.Z("div",{class:_.CG("ytAccordionItemViewModelContent",(L.ytAccordionItemViewModelExpandedSubtitle=function(){return w()},L)),
el:F,style:_.rA({"max-height":function(){return W?"auto":w()?F.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!w()}},_.Z(_.K,{cond:function(){return!J()},
then:function(){return _.Z(_.Pb,{text:function(){return H.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.Z(_.YY,{data:function(){return H.data().content}},{horizontalShelfViewModel:function(m){return _.Z(_.NH,{data:m.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Ke");_.uE$=_.r(function(H){var U=_.b((0,_.S8)(H.data)).next().value,A=function(){return H.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},M=function(){return A()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},W=_.b(_.iB(!0,void 0,"VFpYAb")),w=W.next().value,d=W.next().value,O=function(){return M()&&w()},f=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){d(!w())}}},J=_.c$(function(){U().onTitleTap&&_.uj(U().onTitleTap||{})});
W={};return _.Z("yt-accordion-view-model",{class:_.CG("ytAccordionViewModelHost",(W.ytAccordionViewModelMinimized=function(){return O()},W)),
"data-target-id":function(){return H.data().targetId||""}},_.Z(_.K,{cond:function(){return M()||!!U().title},
then:function(){return _.Z("div",{class:"ytAccordionViewModelHeader"},_.Z("div",{class:"ytAccordionViewModelTitleSection"},_.Z("div",{class:"ytAccordionViewModelTitleWrapper"},_.Z(_.K,{cond:function(){return!!H.data().headerIcon},
then:function(){return _.Z(_.er,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var F;return(F=H.data().headerIcon)==null?void 0:F.iconType}})}}),_.Z("div",{class:"ytAccordionViewModelTitle",
"on:click":J},_.Z(_.Pb,{className:"ytAccordionViewModelTitleText",text:function(){return U().title}})))),_.Z("div",{class:"ytAccordionViewModelButtonSection"},_.Z(_.K,{cond:M,
then:function(){return _.Z(_.cb,{data:f,iconName:function(){return O()?"chevron_down":"chevron_collapse"}})}})))}}),_.Z("div",{class:"ytAccordionViewModelContent"},_.Z(_.YY,{data:function(){return U().contents}},{accordionItemViewModel:function(F){return _.Z(Ohh,{data:F.data,
className:"ytAccordionViewModelRow",accordionStyle:A,hideIfNotExpanded:O,onCollapse:function(){return M()?(d(!0),!1):!0}})}})),_.Z("div",null,_.Z(_.K,{cond:function(){return!M()&&(!!U().disclaimerFooter||!!U().footer)},
then:function(){return _.Z("div",{class:"ytAccordionViewModelFooter"},_.Z(_.Pb,{text:function(){return U().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.Z(_.YY,{data:function(){return H.data().footer}},{flexibleActionsViewModel:function(F){return _.Z(_.uf,{data:F.data,
layout:0})}}))}})))},"Le");_.LG(_.uE$,"yt-accordion-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){var U=null,A=null,M,W=(M=_.lx().resolve(_.$V(_.qF)))==null?void 0:M(),w=_.b(_.iB(!1,void 0,"CmEVtc"));M=w.next().value;var d=w.next().value;w=_.b(_.iB(!0,void 0,"yo9dR"));var O=w.next().value,f=w.next().value,J=_.nA("textarea",function(z){_.Hl(264503,z,U,function(c){U=c})}),F=function(z){d(!0);
z={learningJourneyFormData:{query:z}};_.uj(H.data().searchEndpoint||{},{form:{formData:z}});return!1},P=_.c$(function(z){z.target.closest("button-view-model")&&d(!0)});
w=_.c$(function(){f(J.value.value.length===0)});
var n=_.c$(function(z){if(z.key==="Enter"&&!z.shiftKey&&!O()){var c=z.target;z.preventDefault();F(c.value)}}),N={},L={},m={};
return _.Z("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.Z("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.Z(_.nG,{data:function(){return H.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.Z("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.Z("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.Z("div",{class:_.CG("ytLearningJourneyZeroStateSearchBar",(N.ytLearningJourneyZeroStateSearchBarDark=W,N))},_.Z("textarea",{class:_.CG("ytLearningJourneyZeroStateTextInput",(L.ytLearningJourneyZeroStateTextInputDark=W,L)),el:J,"on:keyup":w,"on:keydown":n,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.Z("div",{class:_.CG("ytLearningJourneyZeroStateSearchButtonContainer",(m.ytLearningJourneyZeroStateSearchButtonContainerDark=W,m))},_.Z(_.yJ,{data:function(){return _.p(H.data().searchButton,_.ot)},
className:"search-button",onClick:function(){return F(J.value.value)},
buttonOverrides:function(){return{disabled:O(),style:W?"mono-inverse":"mono",size:"XL"}}}))),_.Z(_.K,{cond:function(){return!!H.data().errorBanner},
then:function(){return _.Z("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.sB(function(z){_.Hl(264617,z,A,function(c){A=c})})},_.Z(_.YY,{data:function(){return H.data().errorBanner}},{alertBannerViewModel:function(z){return _.Z(_.CJH,{data:z.data,
"client-ve-type":264617})}}))}})),_.Z(_.K,{cond:M,
then:function(){return _.Z("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.Z(_.YY,{data:function(){return H.data().loader}},{learningJourneyLoaderViewModel:function(z){return _.Z(_.MNX,{data:z.data})}}))},
else:function(){return _.Z("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.Z(_.K,{cond:function(){return!!H.data().learningJourneyShelf},
then:function(){return _.Z("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.Z("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return H.data().learningJourneySectionTitle}),_.Z(_.YY,{data:function(){return H.data().learningJourneyShelf}},{horizontalShelfViewModel:function(z){return _.Z(_.NH,{data:z.data,
centerAlignItems:!0})}}))}}),_.Z("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.Z("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return H.data().suggestedJourneySectionTitle}),_.Z("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":P},_.Z(_.YY,{data:function(){return H.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(z){return _.Z(_.uf,{data:z.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Me"),"yt-learning-journey-zero-state",{props:{data:_.sY}});var Zh8=_.r(function(H){var U=H.data;return _.Z("ytvl-live-leaderboard-item-action-content-view-model",{class:_.CG("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.Z(_.Pb,{text:function(){var A;return(A=U())==null?void 0:A.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.Z(_.YY,{data:function(){return U().actionButton}},{buttonViewModel:function(A){return _.Z(_.yJ,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:A.data})}}))},"Ne");var fc8=_.r(function(H){var U=H.data;return _.Z("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.CG("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.Z(_.Pb,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var A;return(A=U())==null?void 0:A.displayName},
ellipsisTruncate:!0}),_.Z(_.YY,{data:function(){return U().badge}},{buttonViewModel:function(A){return _.Z(_.yJ,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:A.data})}}))},"Oe");_.LG(_.r(function(H){var U=H.data;return _.Z("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.Z("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.Z(_.Pb,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var A;return(A=U())==null?void 0:A.rank}})),_.Z("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.Z(_.YY,{data:function(){return U().avatar}},{avatarViewModel:_.dU})),_.Z("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.Z(_.YY,{data:function(){return U().content}},{liveLeaderboardItemChannelContentViewModel:fc8,
liveLeaderboardItemActionContentViewModel:Zh8})),_.Z(_.Pb,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var A;return(A=U())==null?void 0:A.points}}))},"Pe"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){var U=H.data;return _.Z("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.Z(_.Pb,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var A,M;return(A=U())==null?void 0:(M=A.ranking)==null?void 0:M.rank}}),_.Z("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.Z(_.YY,{data:function(){return U().avatar}},{avatarViewModel:_.dU})),_.Z(_.Pb,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var A,M;return(A=U())==null?void 0:(M=A.channelContent)==null?void 0:M.channelName}}),_.Z(_.Pb,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var A;return(A=U())==null?void 0:A.points}}))},"Qe"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.sY}});var Jtp=_.r(function(H){H=_.Ec(H,{wrapper:!1}).wrapper;return _.Z(_.K,{cond:H,then:function(){return _.Z("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.Z("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.Z("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Re");
Jtp.idomCompat=!0;var KVp=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],oc7=_.r(function(H){var U=H.data;var A=_.sB(),M=_.Ja(function(){return U().command},void 0,"fyYsT");
_.Em(function(){M()&&_.bj(M(),{form:{element:A.value}})},"B0nxdb");
return _.Z("div",{el:A,class:"YtQrCodeRendererHostContainer"},_.Z(_.K,{cond:function(){return U().qrCodeImage},
then:function(W){return _.Z(_.nG,{data:W,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.Z(_.K,{cond:function(){return U().spinner},
then:function(){return _.Z(Jtp,null)}})}}),_.Z(_.K,{cond:function(){return U().label},
then:function(W){return _.Z(_.Pb,{text:W,className:"YtQrCodeRendererHostLabel"})}}),_.Z(_.K,{cond:function(){return U().labels},
then:function(W){return _.Z("div",{class:"YtQrCodeRendererHostLabels"},_.Z(_.FQ,{each:W},function(w){return _.Z(_.Pb,{text:w})}))}}))},"Ue");_.LG(_.r(function(H){var U=H.data;var A=_.Ja(function(){return U().qrEntityKey},void 0,"LmZ2xf"),M=_.Ja(function(){return U().deleteEntityOnDismiss},void 0,"my0Tzb"),W=_.Ja(function(){return U().command},void 0,"hzECIb"),w=_.$Y(EEF,A);
H=_.Ja(function(){return U().qrCodeImage},void 0,"AnD9rc");
var d=_.Ja(function(){return U().style&&KVp.includes(U().style)},void 0,"f5fZv"),O=_.eD({visibilityCallback:function(f){f&&W()&&_.bj(W())},
showOption:{calledOnce:!0,state:"visible"}});_.LA(function(){_.m4(function(){M()&&A()&&_.Sq().dispatch(_.hs("qrCodeEntity",A()))})});
return _.Z("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.sB(O)},_.Z(_.K,{cond:d,then:function(){return _.Z(_.K,{cond:w,then:function(f){return _.Z(oc7,{data:f})}})}}),_.Z(_.K,{cond:H,
then:function(f){return _.Z(_.nG,{data:f,alt:""})}}))},"Se"),"yt-qr-code-renderer",{props:{data:_.sY}});var P7$=_.r(function(H){var U=function(){return _.bN(1728053247&(H.barColor!==void 0?lA(H.barColor()):4278190080))};
return _.Z("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.Z("div",{class:"ytVideoOverviewGhostCardDetails"},_.Z(FV7,{animationDelay:0,percentWidth:100,barColor:function(){return U()}}),_.Z(FV7,{animationDelay:600,
percentWidth:60,barColor:function(){return U()}})))},"Ve"),FV7=_.r(function(H){return _.Z("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+H.percentWidth()+"%"}},_.Z("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var U=H.animationDelay(),A=H.barColor();return"animation-delay:"+U+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+A+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"We");var s_f,ncp;s_f=_.fl.inlinePreviewEnabledSelector;_.NKm=_.r(function(H){function U(c){d(c)}
var A=H.data;var M=_.NU("yt-video-overview-view-model"),W=_.sB();H=_.b(_.iB(-1,void 0,"kc60qe"));var w=H.next().value,d=H.next().value;H=_.b(_.iB(0,void 0,"YSTbVe"));var O=H.next().value,f=H.next().value,J={},F=_.$Y(P_t,function(){return A().asyncDataEntityKey}),P=_.Gk(s_f);
H=_.lx().resolve(_.$V(gqr));var n=function(){var c;if((c=F())==null?0:c.videoOverviewViewModel){var C;return _.p((C=F())==null?void 0:C.videoOverviewViewModel,ybz)}return A()};
H&&M&&H({enabled:function(){return P()},
itemPlaybackModel:function(){var c;return(c=n())==null?void 0:c.itemPlayback},
thumbnailElRef:function(){return J.thumbnailElRef},
containerElRef:M,options:function(){return{thumbnail:J.thumbnail,thumbnailOverlays:J.thumbnailOverlays||[],thumbnailSize:J.thumbnailSize,mouseleaveCallback:function(){}}}});
_.LA(function(){var c,C=M==null?void 0:(c=M.value)==null?void 0:c.clientWidth;C&&f(Math.min((C-24)/4-8,72))});
var N=function(){var c;return((c=n())==null?void 0:c.headerSubtext)!==void 0?!0:!1},L=function(){var c,C=lA((c=n())==null?void 0:c.titleColor);
return C?"color: "+_.bN(C)+";":void 0},m=function(){var c,C=lA((c=n())==null?void 0:c.subtextColor);
return C?"color: "+_.bN(C)+";":void 0},z=function(){return _.Z("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.Z("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return L()}},_.Z(_.Pb,{text:function(){var c;
return(c=n())==null?void 0:c.headerText}})),_.Z(_.K,{cond:N,
then:function(){return _.Z("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.Z("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return m()}},_.Z(_.er,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.Z("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return m()}},_.Z(_.Pb,{text:function(){var c;
return(c=n())==null?void 0:c.headerSubtext}})))}}))};
H={};return _.Z("yt-video-overview-view-model",{class:_.CG("ytGenAiVideoOverviewViewModelHost",(H.ytGenAiVideoOverviewViewModelMweb=!1,H.ytGenAiVideoOverviewViewModelDesktop=!0,H)),el:M,style:function(){var c,C=lA((c=n())==null?void 0:c.backgroundColor);return C?"background-color: "+_.bN(C)+";":void 0}},_.Z(_.K,{cond:function(){var c;
return(c=n())==null?void 0:c.isLoading},
then:function(){return _.Z(P7$,{barColor:function(){var c;return(c=n())==null?void 0:c.titleColor}})},
else:function(){return _.Z(_.ve,null,null,_.Z("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.Z(_.YY,{data:function(){var c;return(c=n())==null?void 0:c.thumbnail}},{thumbnailViewModel:function(c){return _.Z(zt,{data:c.data,
aspectRatio:0,playbackRef:ppV(J),width:9999})}})),_.Z("div",{class:"ytGenAiVideoOverviewViewModelDetails"},z(),_.Z(_.K,{cond:function(){var c,C,v,Y;
return((c=n())==null?void 0:(C=c.listItems)==null?void 0:C.length)!==void 0&&((v=n())==null?void 0:(Y=v.listItems)==null?void 0:Y.length)>0?!0:!1},
then:function(){return _.Z("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:W},_.Z(_.FQ,{each:function(){var c;return(c=n())==null?void 0:c.listItems}},function(c,C){return _.Z(ncp,{image:c.image,
index:C,isSelected:function(){return C()===w()},
onClick:U,itemWidth:O})}))}}),_.Z("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.Z("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return L()}},_.Z(_.Pb,{text:function(){var c,C,v,Y,D,h,T;
return(T=(c=n())==null?void 0:(C=c.listItems)==null?void 0:(v=C[w()])==null?void 0:v.headline)!=null?T:(Y=n())==null?void 0:(D=Y.listItems)==null?void 0:(h=D[0])==null?void 0:h.headline}})),_.Z("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return m()}},_.Z(_.Pb,{text:function(){var c,C,v,Y,D,h,T;
return(T=(c=n())==null?void 0:(C=c.listItems)==null?void 0:(v=C[w()])==null?void 0:v.subtext)!=null?T:(Y=n())==null?void 0:(D=Y.listItems)==null?void 0:(h=D[0])==null?void 0:h.subtext}})))))}}))},"Xe");
ncp=_.r(function(H){var U=H.image;var A=H.itemWidth;var M=H.index;var W=H.isSelected;var w=H.onClick;H=_.c$(function(){M!==void 0&&w!==void 0&&w(M());return!1});
var d={};return _.Z("div",{class:_.CG("ytGenAiVideoOverviewViewModelCarouselItem",(d.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return W==null?void 0:W()},d)),
style:function(){return"width: "+A()+"px;"},
"on:click":H},_.Z(_.nG,{data:U,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.Z(_.K,{cond:function(){return W==null?void 0:W()},
then:function(){return _.Z("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.Z("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ye");
_.NKm.idomCompat=!0;_.LG(_.NKm,"yt-video-overview-view-model",{props:{data:_.sY}});_.SM5=_.r(function(H){var U=H.data;var A=H.topbarOffset;var M,W=((M=_.lx().resolve(_.$V(_.qF)))==null?void 0:M())||!1;return _.Z("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var w=U();var d,O,f=W?(d=w.config)==null?void 0:d.darkThemeBackgroundColor:(O=w.config)==null?void 0:O.lightThemeBackgroundColor;w=f?_.wn(f):void 0;w="background-color: "+w+";";A!==void 0&&(w+="top: -"+A()+"px;");return w},
"aria-hidden":!0},_.Z(_.K,{cond:function(){var w,d,O;return!!((w=U().backgroundImageConfig)==null?0:(d=w.image)==null?0:(O=d.sources)==null?0:O.length)},
then:function(){return _.Z(_.nG,{data:function(){var w;return(w=U().backgroundImageConfig)==null?void 0:w.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.Z("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+sAc(W,U().gradientColorConfig)+";"}}))},"Ze");
_.SM5.idomCompat=!0;var pFB=_.r(function(H){var U=H.data;var A=H.isOverlay;return _.Z("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.Z("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.Z(_.YY,{data:function(){return U().header}},{sectionHeaderViewModel:function(M){return _.Z(_.vv,{data:M.data,
isOverlay:A})}})),_.Z("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.Z(_.YY,{data:function(){return U().channelInfoButtons}},{flexibleActionsViewModel:_.uf})),_.Z("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.Z(_.YY,{data:function(){return U().description}},{descriptionPreviewViewModel:function(M){return _.Z(_.kT,{data:M.data,
isOverlay:A})}})))},"$e");
pFB.idomCompat=!0;var LVh=_.r(function(H){var U=H.data;var A={};return _.Z("factoid-view-model",{class:_.CG("ytwFactoidViewModelHost",(A.ytwFactoidViewModelHostOverlay=H.isOverlay,A))},_.Z(_.Pb,{text:function(){return U().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.Z(_.Pb,{text:function(){return U().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"af");
LVh.idomCompat=!0;var R4X=_.r(function(H){var U=H.data;var A=H.isOverlay;return _.Z("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.Z(_.YY,{data:function(){return U().factoids}},{factoidViewModel:function(M){return _.Z(LVh,{data:M.data,
isOverlay:A})}}))},"bf");
R4X.idomCompat=!0;_.Ec5=_.r(function(H){var U=H.data;var A=H.isOverlay;return _.Z("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.Z(_.YY,{data:function(){return U().items}},{channelInfoViewModel:function(M){return _.Z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Z(pFB,{data:M.data,
isOverlay:A}))},
coursePerksViewModel:function(M){return _.Z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Z(V1w,{data:M.data,isOverlay:A}))},
descriptionPreviewViewModel:function(M){return _.Z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Z(_.kT,{data:M.data,isOverlay:A}))},
factoidsRowViewModel:function(M){return _.Z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Z(R4X,{data:M.data,isOverlay:A}))},
progressViewModel:function(M){return _.Z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Z(Hh$,{data:M.data,isOverlay:A}))}}))},"cf");var mrp=_.r(function(H){return _.Z("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.Z(_.YY,{data:function(){return H.data().content}},{courseMetadataViewModel:function(U){return _.Z(_.Ec5,{data:U.data,
isOverlay:H.isOverlay})},
progressViewModel:function(U){return _.Z(Hh$,{data:U.data})}}))},"df");var gc8=_.r(function(H){var U=H.data;H=H.className;var A=function(){var W;return _.MG((W=U())==null?void 0:W.rendererContext)},M={};
M=(M.dynamicTextViewModelHost=!0,M.dynamicTextViewModelHostTappable=function(){return A()},M);
return _.Z("yt-dynamic-text-view-model",{el:_.sB(_.Wq(function(){var W;return(W=U())==null?void 0:W.rendererContext})),
role:function(){return A()?"link":void 0},
tabindex:function(){return A()?0:void 0},
class:_.CG(H,M)},_.Z("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var W,w,d;return(d=(w=_.p((W=U())==null?void 0:W.rendererContext,_.Tn))==null?void 0:w.label)!=null?d:""}},_.Z(_.Pb,{text:function(){return U().text},
userInput:!0})))},"ef");
gc8.idomCompat=!0;_.SP=_.r(function(H){var U=H.data;var A=H.isPositionRelative;var M=_.NQt("(max-width: 527.9px)"),W=function(){var w,d;return(d=(w=U())==null?void 0:w.style)!=null?d:"IMAGE_BANNER_STYLE_FULL_BLEED"};
H={};return _.Z("yt-image-banner-view-model",{el:_.sB(_.Wq(function(){var w;return(w=U())==null?void 0:w.rendererContext})),
class:_.CG((H.ytImageBannerViewModelHost=!0,H.ytImageBannerViewModelInset=function(){return S14(W())},H.ytImageBannerViewModelPositionAbsolute=function(){return _.an(!0)&&!(A==null?0:A())},H.ytImageBannerViewModelSmallInset=function(){return S14(W())&&M()},H.ytImageBannerViewModelTappable=function(){var w;
return _.MG((w=U())==null?void 0:w.rendererContext)},H))},_.Z(_.K,{cond:function(){var w;
return(w=U())==null?void 0:w.image},
then:function(){return _.Z(_.nG,{data:function(){return U().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.Z(_.YY,{data:function(){var w;
return(w=U())==null?void 0:w.overlays}},{thumbnailHoverOverlayViewModel:bh}))},"ff");
_.SP.idomCompat=!0;var acY;acY=_.r(function(H){var U=H.condition;var A=H.content;return _.Z(_.K,{cond:U,then:function(){return _.Z("div",{class:"yt-page-header-view-model__scroll-container"},A())},
else:function(){return A()}})},"gf");
_.xr8=_.r(function(H){var U=H.data;var A=H.noPadding;var M=H.enableBanner;var W=H.cinematicContainerTopbarOffset;var w=H.allowCinematicContainerOverflow;var d=H.displayAsSidebar;var O=H.displayAsPanel;var f=H.alwaysUseMediumTextDescription;var J=pP0(),F=function(){return!!U().image||!!U().animatedImage},P=function(){return!!U().background},n=function(){return(d==null?0:d())||(O==null?0:O())?1:J()},N=function(){return n()===1},L=function(){return N()||n()===2},m=function(){return n()===4},z=function(){var PF=
U();
var BF=!!U().heroImage;var kc=n(),G8=LjN(U()),Pr=d==null?void 0:d(),Z3=!PF.metadata,Yc;if(Yc=BF?_.p(PF.heroImage,pAk):_.p(PF.animatedImage||PF.image,pAk)){PF=Yc.style;var sz=Yc.layoutMode;if(sz!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(Yc=Ii8(jI0(Yc)),BF)BF=nmE(kc,PF,sz,Yc,Pr);else b:if(Z3)BF=kc===1?{size:48}:{size:72};else switch(kc){case 1:BF={size:72};break b;case 2:BF={size:120};break b;default:BF=G8<4?{size:120}:{size:160}}else BF=void 0}else BF={size:0};return BF};
H={};H=_.CG((H["yt-page-header-view-model"]=!0,H["yt-page-header-view-model--no-padding"]=function(){return!(A==null||!A())},H["yt-page-header-view-model--small-top-padding"]=function(){return N()&&!U().actions&&!(O==null?0:O())||n()===2&&!(F()||U().heroImage)},H["yt-page-header-view-model--small-bottom-padding"]=function(){return L()&&!U().actions&&!(O==null?0:O())},H["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(w==null?0:w())},H["yt-page-header-view-model--display-as-sidebar"]=
d,H));
var c={},C=_.CG((c["yt-page-header-view-model__page-header-headline"]=!0,c["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var PF;return(PF=z())==null?void 0:PF.allowFullWidth},c)),v=function(){var PF;
return L()&&!((PF=z())==null?0:PF.allowFullWidth)},Y=function(){return N()&&(!!U().heroImage||F())&&LjN(U())>0},D=function(){return Y()&&(O==null?void 0:O())};
c={};var h=_.CG((c["yt-page-header-view-model__page-header-title"]=!0,c["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!Y()},c["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return Y()&&!D()},c["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=D,c["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=P,c));
c={};var T=_.CG((c["yt-page-header-view-model__page-header-headline-image"]=!0,c["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!U().heroImage&&L()},c));
c={};var WF=_.CG((c["yt-page-header-view-model__page-header-banner-container"]=M,c["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var PF;return(M==null?void 0:M())&&((PF=_.p(U().banner,_.RnH))==null?void 0:PF.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},c));
c={};var dK=_.CG((c["yt-page-header-view-model__page-header-content-metadata"]=!0,c["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=P,c));c={};var SN=_.CG((c["yt-page-header-view-model__page-header-flexible-actions"]=!0,c["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!U().metadata||L()},c["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!L()},c));
c={};var o_=_.CG((c["yt-page-header-view-model__page-header-attribution"]=!0,c["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=P,c));return _.Z("yt-page-header-view-model",{class:H},_.Z(_.K,{cond:P,then:function(){return _.Z("div",{class:"yt-page-header-view-model__page-header-background"},_.Z(_.YY,{data:function(){return U().background}},{cinematicContainerViewModel:function(PF){return _.Z(_.SM5,{data:PF.data,
topbarOffset:W})}}))}}),_.Z(acY,{condition:function(){return!(d==null||!d())},
content:function(){return _.Z("div",{class:"yt-page-header-view-model__page-header-content"},_.Z(_.K,{cond:function(){return(M==null?void 0:M())&&U().banner},
then:function(){return _.Z("div",{class:WF},_.Z(_.YY,{data:function(){return U().banner}},{imageBannerViewModel:_.SP}))}}),_.Z("div",{class:C},_.Z(_.K,{cond:F,
then:function(){return _.Z(_.YY,{data:function(){var PF;if(!(PF=U().animatedImage)){PF=U();if(F()){var BF=PF=Object.assign({},PF),kc=n(),G8=LjN(U()),Pr=BF.image,Z3=_.p(Pr,LEm),Yc=Z3==null?void 0:Z3.avatar,sz=_.p(Yc,_.Xd);if(Pr&&Yc&&sz){switch(kc){case 1:sz.avatarImageSize="AVATAR_SIZE_XL";break;case 2:sz.avatarImageSize="AVATAR_SIZE_XXL";break;default:G8<4?sz.avatarImageSize="AVATAR_SIZE_XXL":sz.avatarImageSize="AVATAR_SIZE_XXXL"}_.Ap(Yc,_.Xd,Object.assign({},sz));Z3.avatar=Object.assign({},Yc);_.Ap(Pr,
LEm,Object.assign({},Z3));BF.image=Object.assign({},Pr)}}PF=PF.image}return PF}},{contentPreviewImageViewModel:function(PF){return _.Z(_.B6,{data:PF.data,
className:T,imageSizeConfig:z})},
decoratedAvatarViewModel:function(PF){return _.Z(_.Od,{data:PF.data,className:T})}})}}),_.Z(_.K,{cond:function(){return!!U().heroImage&&!v()},
then:function(){return _.Z(_.YY,{data:function(){return U().heroImage}},{contentPreviewImageViewModel:function(PF){return _.Z(_.B6,{data:PF.data,
className:T,imageSizeConfig:z})}})}}),_.Z("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.Z(_.K,{cond:function(){return!!U().heroImage&&v()},
then:function(){return _.Z("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.Z(_.YY,{data:function(){return U().heroImage}},{contentPreviewImageViewModel:function(PF){return _.Z(_.B6,{data:PF.data,
className:T,imageSizeConfig:z})}}))}}),_.Z(_.YY,{data:function(){return U().title}},{dynamicTextViewModel:function(PF){return _.Z(gc8,{data:PF.data,
className:h})}}),_.Z(_.YY,{data:function(){return U().metadata}},{contentMetadataViewModel:function(PF){return _.Z(_.eL,{data:PF.data,
layout:function(){return N()?1:0},
className:dK,isOverlay:P,useMediumText:m})}}),_.Z(_.K,{cond:function(){return U().description&&!N()},
then:function(){return _.Z(_.YY,{data:function(){return U().description}},{descriptionPreviewViewModel:function(PF){return _.Z(_.kT,{data:PF.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:P,maxLinesOverride:function(){return N()?void 0:1},
useMediumText:function(){return(f==null?void 0:f())||m()}})}})}}),_.Z(_.K,{cond:function(){return U().attribution&&!L()},
then:function(){return _.Z(_.YY,{data:function(){return U().attribution}},{attributionViewModel:function(PF){return _.Z(rU,{data:PF.data,
className:o_,useMediumText:m})}})}}),_.Z(_.K,{cond:function(){return U().actions&&!L()},
then:function(){return _.Z(_.YY,{data:function(){return U().actions}},{flexibleActionsViewModel:function(PF){return _.Z(_.uf,{data:PF.data,
layout:function(){return Rwr(n())},
className:SN})}})}}))),_.Z("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.Z(_.K,{cond:function(){return U().description&&N()},
then:function(){return _.Z(_.YY,{data:function(){return U().description}},{descriptionPreviewViewModel:function(PF){return _.Z(_.kT,{data:PF.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:P,maxLinesOverride:function(){return N()?void 0:1},
useMediumText:function(){return(f==null?void 0:f())||m()}})}})}}),_.Z(_.K,{cond:function(){return U().attribution&&L()},
then:function(){return _.Z(_.YY,{data:function(){return U().attribution}},{attributionViewModel:function(PF){return _.Z(rU,{data:PF.data,
className:o_,useMediumText:m})}})}}),_.Z(_.K,{cond:function(){return U().actions&&L()},
then:function(){return _.Z(_.YY,{data:function(){return U().actions}},{flexibleActionsViewModel:function(PF){return _.Z(_.uf,{data:PF.data,
layout:function(){return Rwr(n())},
className:SN})}})}})),_.Z("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.Z(_.YY,{data:function(){return U().bottomMetadataFlexibleContainer}},{flexibleContainer:function(PF){return _.Z(mrp,{data:PF.data,
isOverlay:P})}})))}}))},"hf");
_.xr8.idomCompat=!0;_.LG(_.r(function(H){var U=_.b(_.iB(!1,void 0,"qvRy4d")),A=U.next().value,M=U.next().value;return _.Z("yt-official-card-view-model",{class:_.CG("ytOfficialCardViewModelHost",H.className),style:_.rA({"background-color":function(){var W,w=lA((W=H.data())==null?void 0:W.backgroundColor);return w?_.bN(w):void 0}})},_.Z(_.YY,{data:function(){return H.data().header}},{pageHeaderViewModel:function(W){return _.Z(_.xr8,{data:W.data,
noPadding:!0})}}),_.Z(_.YY,{data:function(){return H.data().contents}},{horizontalShelfViewModel:function(W){return _.Z(_.NH,{data:W.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.Z(_.K,{cond:A,
then:function(){return _.Z("div",{class:"ytOfficialCardViewModelExpandedContent"},_.Z(_.YY,{data:function(){return H.data().expandedContents}},{horizontalShelfViewModel:function(W){return _.Z(_.NH,{data:W.data,
sizing:"MINI"})}}),_.Z("div",{class:"ytOfficialCardViewModelCollapseButton"},_.Z(_.YY,{data:function(){return H.data().collapseButton}},{buttonViewModel:function(W){return _.Z(_.yJ,{data:W.data,
onClick:function(){M(!A())}})}})))},
else:function(){return _.Z("div",{class:"ytOfficialCardViewModelExpandButton"},_.Z(_.YY,{data:function(){return H.data().expandButton}},{buttonViewModel:function(W){return _.Z(_.yJ,{data:W.data,
onClick:function(){M(!A())}})}}))}}))},"jf"),"yt-official-card-view-model",{props:{data:_.sY,
className:_.sY}});var z4$=_.r(function(H){var U,A=(U=_.lx().resolve(_.$V(_.qF)))==null?void 0:U();return _.Z("ytw-search-friction-view-model",{class:_.CG("ytwSearchFrictionViewModelHost",H.className)},_.Z("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.Z("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.Z(_.K,{cond:function(){return A&&H.data().darkThemeImage?H.data().darkThemeImage:H.data().image},
then:function(M){return _.Z(_.nG,{data:M,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.Z(_.YY,{data:function(){return H.data().overflowMenuButton}},{buttonViewModel:function(M){return _.Z(_.yJ,{data:M.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.Z(_.Pb,{text:function(){return H.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.Z(_.FQ,{each:function(){return H.data().bodyText||[]}},function(M){return _.Z(_.Pb,{text:M,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.Z(_.YY,{data:function(){return H.data().actions}},{buttonViewModel:function(M){return _.Z(_.yJ,{data:M.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.Z(_.Pb,{text:function(){return H.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.Z(_.Pb,{text:function(){return H.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"kf");
z4$.idomCompat=!0;_.LG(z4$,"ytw-search-friction-view-model",{props:{data:_.sY,className:_.sY}});_.pP=_.r(function(H){var U=_.nA("markdown-div"),A,M=(A=_.lx().resolve(_.$V(_.qF)))==null?void 0:A();_.Em(function(){var W=U.value;var w=new MlB,d=new Map(w.JSC$9601_sanitizerTable.globalAttributePolicies);d.set("style",{policyAction:4});w.JSC$9601_sanitizerTable=new WQ(w.JSC$9601_sanitizerTable.allowedElements,w.JSC$9601_sanitizerTable.elementPolicies,w.JSC$9601_sanitizerTable.allowedGlobalAttributes,d,w.JSC$9601_sanitizerTable.globallyAllowedAttributePrefixes);var O=["data-time"];if(O===void 0)d=
new Set(w.JSC$9601_sanitizerTable.globallyAllowedAttributePrefixes),d.add("data-"),w.JSC$9601_sanitizerTable=new WQ(w.JSC$9601_sanitizerTable.allowedElements,w.JSC$9601_sanitizerTable.elementPolicies,w.JSC$9601_sanitizerTable.allowedGlobalAttributes,w.JSC$9601_sanitizerTable.globalAttributePolicies,d);else{d=new Set(w.JSC$9601_sanitizerTable.allowedGlobalAttributes);O=_.b(O);for(var f=O.next();!f.done;f=O.next()){f=f.value;if(f.indexOf("data-")!==0)throw Error("la`"+f);d.add(f)}w.JSC$9601_sanitizerTable=
new WQ(w.JSC$9601_sanitizerTable.allowedElements,w.JSC$9601_sanitizerTable.elementPolicies,d,w.JSC$9601_sanitizerTable.globalAttributePolicies,w.JSC$9601_sanitizerTable.globallyAllowedAttributePrefixes)}d=new Set(w.JSC$9601_sanitizerTable.allowedGlobalAttributes);d.add("class");w.JSC$9601_sanitizerTable=new WQ(w.JSC$9601_sanitizerTable.allowedElements,w.JSC$9601_sanitizerTable.elementPolicies,d,w.JSC$9601_sanitizerTable.globalAttributePolicies,w.JSC$9601_sanitizerTable.globallyAllowedAttributePrefixes);
_.KU(W,_.Qk2(w.build(),mW0(H.text())));gmc(U.value)},"CUInJc");
A={};return _.Z("div",null,_.Z("markdown-div",{class:_.CG("ytwMarkdownDivHost",H.className,(A.ytwMarkdownDivDark=M,A.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var W;return((W=H.isSmallText)==null?void 0:W.call(H))||!1},A.ytwMarkdownDivHostWrapCodeBlocks=function(){var W;
return((W=H.wrapCodeBlocks)==null?void 0:W.call(H))||!1},A.ytwMarkdownDivHostEnableDefaultStyling=function(){var W;
return!((W=H.disableDefaultStyling)==null?0:W.call(H))},A)),
el:U}))},"mf");
_.pP.idomCompat=!0;var C75=_.r(function(H){var U=H.imageData;var A=_.RS(H.isInList,!1),M=function(){return A()?{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 _.Z("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.Z(_.K,{cond:function(){return U().image},
then:function(W){return _.Z(_.nG,{data:W,alt:function(){return M().alt},
contentMode:function(){return M().contentMode},
targetWidth:function(){return M().targetWidth},
targetHeight:function(){return M().targetHeight},
className:function(){return M().className}})}}),_.Z("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.Z("div",{class:_.CG("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.Z(_.Pb,{text:function(){return U().title}})),_.Z(_.FQ,{each:function(){var W;
return(W=U().description)!=null?W:[]}},function(W){return _.Z("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.Z(LP,{content:W}))})))},"nf"),tNp=_.r(function(H){var U=H.list;
var A=function(){var M;return(M=U().items)!=null?M:[]};
return _.Z("div",{class:"ytwGenAiRichTextViewModelListContent"},_.Z(_.K,{cond:function(){return U().title},
then:function(M){return _.Z("div",{class:_.CG("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.Z(_.Pb,{text:M}))}}),_.Z(_.K,{cond:function(){return U().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.Z("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.Z(_.FQ,{each:A},function(M){return _.Z("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.Z(LP,{content:M,isInList:!0}))}))}}),_.Z(_.K,{cond:function(){return U().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.Z("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.Z(_.FQ,{each:A},function(M){return _.Z("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.Z(LP,{content:M,isInList:!0}))}))}}),_.Z(_.K,{cond:function(){return U().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.Z("div",{class:"ytwGenAiRichTextViewModelImageList"},_.Z(_.FQ,{each:A},function(M){return _.Z("div",{class:"ytwGenAiRichTextViewModelListItem"},_.Z(LP,{content:M,isInList:!0}))}))}}))},"of"),ctj=_.r(function(H){var U=H.table;
return _.Z("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.Z("thead",null,_.Z("tr",null,_.Z(_.FQ,{each:function(){var A,M;return(M=(A=U().header)==null?void 0:A.cells)!=null?M:[]}},function(A){return _.Z("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.Z(_.FQ,{each:function(){return A.contents}},function(M){return _.Z(LP,{content:M})}))}))),_.Z("tbody",null,_.Z(_.FQ,{each:function(){var A;
return(A=U().rows)!=null?A:[]}},function(A){return _.Z("tr",null,_.Z(_.FQ,{each:function(){return A.cells}},function(M){return _.Z("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.Z(_.FQ,{each:function(){return M.contents}},function(W){return _.Z(LP,{content:W})}))}))})))},"pf"),LP=_.r(function(H){var U=H.content;
var A=_.RS(H.isInList,!1),M=function(){var W,w;return(w=(W=U().contentBlock)==null?void 0:W.contents)!=null?w:[]};
return _.Z("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.Z(_.K,{cond:function(){return U().text},
then:function(W){return _.Z(_.Pb,{className:"ytwGenAiRichTextViewModelText",text:W})}}),_.Z(_.K,{cond:function(){return U().image},
then:function(W){return _.Z(C75,{imageData:W,isInList:A})}}),_.Z(_.K,{cond:function(){return U().list},
then:function(W){return _.Z(tNp,{list:W})}}),_.Z(_.K,{cond:function(){return U().contentBlock},
then:function(){return _.Z("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.Z(_.FQ,{each:M},function(W){return _.Z(LP,{content:W,isInList:!1})}))}}),_.Z(_.K,{cond:function(){return U().table},
then:function(W){return _.Z(ctj,{table:W})}}))},"qf"),yth=_.r(function(H){var U={};
U=_.QU("ytwGenAiRichTextViewModelHost",(U.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.kV("search_overview_link_style")),U));return _.Z("gen-ai-rich-text-view-model",{class:U},_.Z(LP,{content:function(){return H.data().content}}))},"rf");_.BKY=_.r(function(H){var U=H.data;var A=function(){var m;return((m=U().loadingUi)!=null?m:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},M=function(){return U().isLoading&&(A()==="UNSPECIFIED"||A()==="GHOST_CARD")},W=function(){return!U().isLoading},w=function(){return!!U().content&&!U().contents},d=function(){return!!U().contents},O=function(){return!!U().nextQueryButtons},f=function(){return U().isLoading&&A()==="INVISIBLE"},J=function(){var m,z;
return(z=(m=U().headerIcon)==null?void 0:m.iconType)!=null?z:""},F=function(){var m;
return(m=U().content)!=null?m:""},P=function(){return!!U().sourcesSection},n,N=!((n=_.lx().resolve(_.$V(_.qF)))==null||!n()),L=_.Ja(function(){var m=[],z=U().contents;
if(z)for(var c=0;c<z.length;c++){var C=_.p(z&&z[c],cbr);C&&m.push(C)}return m},void 0,"gcCsZb");
_.LA(function(){U().isLoading||_.ba("so_re",void 0,"search_overview_answer")});
return _.Z("ytd-overview-answer-view-model",{class:function(){var m={};m=(m.ytdOverviewAnswerViewModelHost=!0,m.ytdOverviewAnswerViewModelDarkBackground=N&&!f(),m.ytdOverviewAnswerViewModelLightBackground=!N&&!f(),m);return _.QU(m)}},_.Z(_.K,{cond:function(){return!f()},
then:function(){return _.Z(_.ve,null,_.Z("h2",null,_.Z("div",{class:"ytdOverviewAnswerViewModelHeader"},_.Z(_.K,{cond:J,then:function(m){return _.Z("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.Z(_.er,{icon:m}))}}),_.Z("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.Z("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return U().headerText}),_.Z("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.Z(_.Pb,{text:function(){return U().headerSubtext}}))))),_.Z(_.K,{cond:M,
then:function(){return _.Z(aLV,null)}}),_.Z(_.K,{cond:W,
then:function(){return _.Z(_.ve,null,_.Z(_.K,{cond:w,then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelText"},_.Z(_.pP,{text:F,isSmallText:!0}))}}),_.Z(_.K,{cond:d,
then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelRichText"},_.Z(_.FQ,{each:L},function(m){return _.Z(yth,{data:m})}))}}),_.Z(_.K,{cond:O,
then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.Z(_.YY,{data:function(){return U().nextQueryButtons}},{buttonViewModel:function(m){return _.Z(_.yJ,{data:m.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.NH}))}}),_.Z("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.Z("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.Z(_.K,{cond:function(){return!!_.p(U().likeButtonViewModel,_.fx)&&!!_.p(U().dislikeButtonViewModel,_.JI)},
then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.Z(_.fn,{data:function(){return _.p(U().likeButtonViewModel,_.fx)},
disableIconAnimation:!0}),_.Z(_.Zu,{data:function(){return _.p(U().dislikeButtonViewModel,_.JI)}}))}})),_.Z(_.K,{cond:function(){var m;
return(m=U().sourcesSection)==null?void 0:m.headerText},
then:function(m){return _.Z("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.Z(_.Pb,{text:m}))}})),_.Z(_.K,{cond:P,
then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelSources"},_.Z(_.YY,{data:function(){var m;return(m=U().sourcesSection)==null?void 0:m.sourcesShelf}},{buttonViewModel:_.yJ,
horizontalShelfViewModel:function(m){return _.Z(_.NH,{data:m.data,includeMargin:!0,hasPeek:!0})}}))}}),_.Z(_.K,{cond:function(){return U().disclaimerText},
then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.Z(_.Pb,{text:function(){return U().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"sf");var rt7=_.r(function(H){var U=_.Ec(H,{}).data;return _.Z("yt-shopping-content-line-item-view-model",{class:_.CG("ytShoppingContentLineItemViewModelHost")},_.Z(_.Pb,{text:function(){var A;return(A=U().text)==null?void 0:A.attributedString}}))},"tf");_.R6=_.r(function(H){H=_.Ec(H,{});var U=H.data,A={};return _.Z("yt-shopping-content-line-view-model",{class:_.CG("ytShoppingContentLineViewModelHost",H.className,(A.ytShoppingContentLineViewModelTruncateText=function(){return!U().wrapContent},A)),
style:_.rA({"--shopping-content-line-gap":function(){return U().itemGap?U().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return U().lineHeight?U().lineHeight+"px":void 0}})},_.Z(_.FQ,{each:function(){return(U().items||[]).map(function(M){return _.p(M,G1w)}).filter(function(M){return!!M})}},function(M){return _.Z(rt7,{data:M})}))},"uf");var e4$=_.r(function(H){var U=H.data;var A=function(){var w;return((w=U().image)==null?void 0:w.height)||48},M=function(){var w;
return((w=U().image)==null?void 0:w.width)||48},W=function(){return"width: "+M()+"px; height: "+A()+"px;"};
return _.Z("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var w,d,O,f=((w=_.lx().resolve(_.$V(_.qF)))==null?0:w())?(d=U())==null?void 0:d.darkThemeBackgroundColor:(O=U())==null?void 0:O.lightThemeBackgroundColor;return"background-color: "+(f?_.bN(f):"")+";"},
el:_.sB(_.Wq(function(){var w;return(w=U())==null?void 0:w.rendererContext}))},_.Z(_.K,{cond:function(){var w,d;
return(d=(w=U().image)==null?void 0:w.image)!=null?d:U().thumbnail},
then:function(w){return _.Z("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var d;return"background-color: "+(((d=U().image)==null?0:d.backgroundColor)?_.bN(U().image.backgroundColor):"")+";"+W()}},_.Z(_.nG,{data:w,
height:A,width:M,style:W,alt:""}))}}),_.Z("div",{class:"ytShoppingDescriptionItemViewModelText"},_.Z(_.YY,{data:function(){return U().line1}},{shoppingContentLineViewModel:function(w){return _.Z(_.R6,{data:w.data})}}),_.Z(_.YY,{data:function(){return U().line2}},{shoppingContentLineViewModel:function(w){return _.Z(_.R6,{data:w.data})}}),_.Z(_.YY,{data:function(){return U().line3}},{shoppingContentLineViewModel:function(w){return _.Z(_.R6,{data:w.data})}})))},"vf");var Drj=_.r(function(H){var U=H.data;var A=H.active;var M=_.nA("transcript-segment-view-model");_.Em(function(){var W,w,d,O=((W=_.lx().resolve(_.$V(_.qF)))==null?0:W())?(w=U())==null?void 0:w.darkThemeColorPalette:(d=U())==null?void 0:d.lightThemeColorPalette;O&&(O.additiveBackground&&M.value.style.setProperty("--timestamp-active-background-color",_.bN(O.additiveBackground)),O.textSecondary&&M.value.style.setProperty("--timestamp-active-color",_.wn(O.textSecondary)))},"TnVCnb");
H={};return _.Z("transcript-segment-view-model",{class:_.CG("ytwTranscriptSegmentViewModelHost",(H.ytwTranscriptSegmentViewModelHostActive=A,H.ytwTranscriptSegmentViewModelHostModern=_.S("enable_timeline_view_modern_transcript")||_.S("enable_timeline_view_modern_transcript_fe"),H)),el:M},_.Z(_.K,{cond:function(){var W;return(W=U())==null?void 0:W.timestamp},
then:function(W){var w={};return _.Z(_.ve,null,_.Z("div",{class:_.CG("ytwTranscriptSegmentViewModelTimestamp",(w.ytwTranscriptSegmentViewModelTimestampActive=A,w)),"aria-hidden":!0},W),_.Z("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var d=W().split(":").map(Number),O=_.b(d.reverse());d=O.next().value;var f=O.next().value;O=O.next().value;return _.Jec({hours:O,minutes:f,seconds:d})}))}}),_.Z(_.Pb,{text:function(){var W,w,d;
return(d=(W=U())==null?void 0:W.attributedText)!=null?d:{content:(w=U())==null?void 0:w.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"xf");var $r5=_.r(function(H){var U=H.data;return _.Z("div",{class:"videoAttributesSectionViewModelHeader"},_.Z("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.Z("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return U().headerTitle}),_.Z(_.K,{cond:function(){return U().headerInfoButton},
then:function(){return _.Z(_.YY,{data:function(){return U().headerInfoButton}},{buttonViewModel:function(A){return _.Z(_.yJ,{data:A.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.Z(_.K,{cond:function(){return U().headerSubtitle},
then:function(){return _.Z("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return U().headerSubtitle})}}))},"yf"),lch=_.r(function(H){function U(m){return Math.max(Math.min(m,0),J()-O())}
var A=H.data;var M;H=_.nA("div",function(m){var z=function(){F(m.clientWidth)};
z();window.ResizeObserver&&(M=new ResizeObserver(z),M.observe(m))});
var W=_.nA("div",function(m){f(m.scrollWidth)}),w=_.b(_.iB(0,void 0,"C3XQAe")),d=w.next().value;
w=w.next().value;var O=d,f=w;w=_.b(_.iB(0,void 0,"db7y3"));d=w.next().value;w=w.next().value;var J=d,F=w;d=_.b(_.iB(0,void 0,"RchC7"));var P=d.next().value,n=d.next().value;_.m4(function(){var m;(m=M)==null||m.disconnect()});
var N=function(){n(U(P()+J()))},L=function(){n(U(P()-J()))};
return _.Z("yt-video-attributes-section-view-model",null,_.Z("div",{class:"videoAttributesSectionViewModelHost"},_.Z(_.K,{cond:function(){return A().headerTitle},
then:function(){return _.Z($r5,{data:A})}}),_.Z("div",{class:_.CG("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:H},_.Z("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.rA({transform:function(){var m=P();_.gD("HTML_DIR")==="rtl"&&(m*=-1);return"translateX("+m+"px)"}}),
el:W},_.Z(_.YY,{data:function(){return A().videoAttributeViewModels}},{videoAttributeViewModel:pfy}))),_.Z(_.YY,{data:function(){return A().footerButton}},{buttonViewModel:function(m){return _.Z(_.yJ,{data:m.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.Z(_.K,{cond:function(){return P()<0&&A().previousButton},
then:function(){return _.Z("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.Z(_.YY,{data:function(){return A().previousButton}},{buttonViewModel:function(m){return _.Z(_.yJ,{data:m.data,
onClick:N})}}))}}),_.Z(_.K,{cond:function(){return P()>J()-O()&&A().nextButton},
then:function(){return _.Z("div",{class:"videoAttributesSectionViewModelRightArrow"},_.Z(_.YY,{data:function(){return A().nextButton}},{buttonViewModel:function(m){return _.Z(_.yJ,{data:m.data,
onClick:L})}}))}})))},"zf");
lch.idomCompat=!0;var G8h=_.r(function(H){var U=H.data;var A=H.active;var M={},W={};return _.Z("timeline-item-view-model",{class:_.CG("ytwTimelineItemViewModelHost",(M.ytwTimelineItemViewModelHostChapterChild=H.chapterChild,M.ytwTimelineItemViewModelModern=_.S("enable_timeline_view_modern_transcript")||_.S("enable_timeline_view_modern_transcript_fe"),M))},_.Z("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.Z("div",{class:_.CG("ytwTimelineItemViewModelTimestamp",(W.ytwTimelineItemViewModelTimestampActive=
A,W))},function(){return U().timestamp})),_.Z("div",{class:"ytwTimelineItemViewModelContentItems"},_.Z(_.YY,{data:function(){return U().contentItems}},{transcriptSegmentViewModel:function(w){return _.Z(Drj,{data:w.data,
active:A})},
videoAttributesSectionViewModel:lch})))},"Af");var YMm=_.r(function(H){var U=H.data;H={};return _.Z("timeline-chapter-view-model",{class:_.CG("ytwTimelineChapterViewModelHost")},_.Z("div",{class:_.CG("ytwTimelineChapterViewModelTitle",(H.ytwTimelineChapterViewModelModern=_.S("enable_timeline_view_modern_transcript")||_.S("enable_timeline_view_modern_transcript_fe"),H))},function(){return U().title}),_.Z(_.YY,{data:function(){return U().contents}},{timelineItemViewModel:function(A){return _.Z(G8h,{data:A.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(A){return _.Z(lch,{data:A.data})}}))},"Bf");var qM5=_.r(function(H){var U=H.data;var A=_.nA("macro-markers-panel-item-view-model"),M=_.$Y(_.Nyc,function(){var w;return(w=U().markersEngagementPanelSyncEntityKey)!=null?w:""}),W=function(){var w;
return((w=M())==null?void 0:w.activeItemIndex)===U().index};
H=_.c$(function(w){var d,O,f,J,F;return _.u(function(P){if(P.nextAddress==1)return w.stopPropagation(),_.Uy(_.Hq(w),A.value,["A".toString(),"BUTTON".toString()])?P.return():(d=_.ij(U().onTap))?P.yield(_.co(),2):P.return();O=P.yieldResult;J=(f=_.p(d,_.sH))==null?void 0:f.startTimeSeconds;J===void 0||(F=O)!=null&&F.seekTo(J,!0);_.DO(P)})});
return _.Z("macro-markers-panel-item-view-model",{class:_.CG("ytwMacroMarkersPanelItemViewModelHost",{"is-active":W}),el:A,"on:click":H,tabindex:0,role:"button"},_.Z(_.YY,{data:function(){var w;return(w=U())==null?void 0:w.item}},{timelineChapterViewModel:function(w){return _.Z(YMm,{data:w.data,
active:W})},
timelineItemViewModel:function(w){return _.Z(G8h,{data:w.data,active:W})},
videoAttributeViewModel:pfy,shoppingDescriptionItemViewModel:e4$}))},"Cf");
qM5.idomCompat=!0;_.LG(qM5,"macro-markers-panel-item-view-model",{props:{data:_.sY}});_.LG(lch,"yt-video-attributes-section-view-model",{props:{data:_.sY}});var h4p=_.r(function(H){var U=function(){var A,M,W;return(W=(A=H.data().leadingLogoAccessibility)==null?void 0:(M=A.accessibilityData)==null?void 0:M.label)!=null?W:""};
return _.Z("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.Z(_.K,{cond:function(){return H.data().leadingLogo},
then:function(A){return _.Z(_.nG,{className:"ytwFantasySectionHeaderViewModelLogo",data:A,alt:U})}}),_.Z("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.Z(_.Pb,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return H.data().title}}),_.Z(_.Pb,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return H.data().subtitle}})),_.Z(_.YY,{data:function(){return H.data().trailingButton}},{buttonViewModel:function(A){return _.Z(_.yJ,{data:A.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Df");var k8X=_.r(function(H){var U={};U=_.CG("ytwFantasyTeamViewModelHost",(U.ytwFantasyTeamViewModelCompact=function(){var W;return!((W=H.compact)==null||!W.call(H))},U.ytwFantasyTeamViewModelUser=function(){return H.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},U.ytwFantasyTeamViewModelOpponent=function(){return H.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},U));
var A=function(){var W,w,d;return(d=(W=H.data().teamLogoAccessibility)==null?void 0:(w=W.accessibilityData)==null?void 0:w.label)!=null?d:""},M=_.$Y(pw_,function(){return H.data().teamEntityKey});
return _.Z("ytw-fantasy-team-view-model",{class:U},_.Z(_.K,{cond:function(){return H.data().teamLogo},
then:function(W){return _.Z(_.nG,{className:"ytwFantasyTeamViewModelLogo",data:W,alt:A})}}),_.Z("div",{class:"ytwFantasyTeamViewModelMetadata"},_.Z("div",{class:"ytwFantasyTeamViewModelHeader"},_.Z(_.Pb,{className:"ytwFantasyTeamViewModelScore",
text:function(){var W;return(W=M())==null?void 0:W.score}}),_.Z(_.er,{icon:function(){var W;
return(W=M())==null?void 0:W.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.Z(_.Pb,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var W;return(W=M())==null?void 0:W.projectedScore}})),_.Z(_.Pb,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return H.data().primaryText}}),_.Z(_.Pb,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return H.data().secondaryText}}),_.Z(_.Pb,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return H.data().tertiaryText}})),_.Z(_.Pb,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var W;return(W=M())==null?void 0:W.score}}))},"Ef");_.LG(_.r(function(H){return _.Z("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.Z("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.Z(_.YY,{data:function(){return H.data().summaryHeader}},{fantasySectionHeaderViewModel:h4p})),_.Z(_.YY,{data:function(){return H.data().userTeam}},{fantasyTeamViewModel:k8X}),_.Z(_.YY,{data:function(){return H.data().opponentTeam}},{fantasyTeamViewModel:k8X}))},"Ff"),"fantasy-league-summary-view-model",{props:{data:_.sY}});var vc5=_.r(function(H){var U=_.Ec(H,{shape:{},useCustomTabRenderable:!1}),A=U.shape;U=U.useCustomTabRenderable;var M=H.customTabRenderable,W=function(){return A().disabled},w=function(){return A().selected},d=function(){return A().title},O=function(){return A().icon},f=_.nA("yt-tab-shape");
H=_.c$(function(P){var n;if(!W()&&((n=A().aTagConfig)==null?0:n.onclick))A().aTagConfig.onclick(P);return!1});
var J=_.c$(function(P){if(P.key==="Enter"||P.key==="ArrowUp"||P.key==="ArrowDown")P.preventDefault(),f.value.click();return!1}),F={};
return _.Z("yt-tab-shape",{class:_.CG("yt-tab-shape",function(){return A().className},(F["yt-tab-shape__tab--last-tab"]=function(){return A().isLastTab},F["yt-tab-shape--host-disabled"]=W,F["yt-tab-shape--host-clickable"]=!M,F)),
role:M?void 0:"tab","aria-selected":w!=null?w:!1,"aria-disabled":W,tabindex:M?void 0:0,"on:click":H,"on:keydown":J,el:f,"tab-identifier":function(){return A().identifier},
"tab-title":d},_.Z(_.K,{cond:U,then:function(){return M()},
else:function(){var P={},n={};return _.Z(_.ve,null,_.Z("div",{class:_.CG("yt-tab-shape__tab",(P["yt-tab-shape__tab--tab-selected"]=w,P))},_.Z(_.K,{cond:O,then:function(N){return _.Z(_.er,{className:"yt-tab-shape__tab-icon",icon:function(){return N().iconType}})}}),d),_.Z("div",{class:_.CG("yt-tab-shape__tab-bar",(n["yt-tab-shape__tab-bar--tab-bar-selected"]=w,n))}))}}))},"Gf");
vc5.idomCompat={callbacks:{customTabRenderable:!0}};_.j_7=_.r(function(H){var U=H.shape;H=_.b(_.iB(48,void 0,"nDAx4"));var A=H.next().value,M=H.next().value;H=_.b(_.iB(0,void 0,"GCgjqb"));var W=H.next().value,w=H.next().value,d=function(){return U().tabs},O=_.nA("yt-tab-group-shape"),f=function(){var n,N;
return(N=(n=d())==null?void 0:n.findIndex(function(L){return L.selected}))!=null?N:-1};
H=_.b(_.iB(!1,void 0,"SU01tf"));var J=H.next().value,F=H.next().value,P=function(){J()||_.Fl.addJob(function(){F(!0)},0)};
_.Em(function(){var n=f(),N=_.Fl.addJob(function(){var L,m=((L=O.value)==null?void 0:L.querySelectorAll("yt-tab-shape"))||[],z;M(((z=n>-1?m[n]:void 0)==null?void 0:z.getBoundingClientRect().width)||0);for(z=L=0;z<n;z++)L+=m[z].offsetWidth+24;_.gD("HTML_DIR")==="rtl"&&(L=-L);w(L);P()},8,0);
_.m4(function(){_.Fl.cancelJob(N)})},"PMwgb");
H={};return _.Z("yt-tab-group-shape",{class:_.CG("tabGroupShapeHost",(H.tabGroupShapeOverflowHidden=function(){return U().isOverflowHidden},H)),
el:O},_.Z(_.K,{cond:d,then:function(n){return _.Z(_.ve,null,_.Z("div",{class:"tabGroupShapeTabs",role:"tablist"},_.Z(_.FQ,{each:n},function(N,L){return _.Z(vc5,{shape:function(){return Object.assign({},N,{isLastTab:L()===n().length-1})},
customTabRenderable:N.customTabRenderable,useCustomTabRenderable:!!N.customTabRenderable})})),_.Z(TK$,{width:A,
sliderOffset:W,enableTransition:J}))}}))},"If");
_.j_7.idomCompat=!0;var TK$=_.r(function(H){var U=_.RS(H.sliderOffset,0),A=H.width,M=H.enableTransition;H={};return _.Z("div",{class:_.CG("tabGroupShapeSlider",(H.tabGroupShapeSliderTransition=function(){return M()},H)),
style:_.rA({width:function(){return A()+"px"},
transform:function(){return"translateX("+U()+"px)"}})})},"Jf");var IcB=_.r(function(H){var U=function(){var w,d,O;return(O=(w=H.data().playerLogoAccessibility)==null?void 0:(d=w.accessibilityData)==null?void 0:d.label)!=null?O:""},A=_.$Y(LCM,function(){return H.data().playerEntityKey}),M={};
M=_.CG("ytwFantasyPlayerViewModelHost",(M.ytwFantasyPlayerViewModelPlaying=function(){var w;return!((w=A())==null||!w.isPlayerPlaying)},M.ytwFantasyPlayerViewModelOnField=function(){var w;
return((w=A())==null?void 0:w.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},M.ytwFantasyPlayerViewModelRedZone=function(){var w;
return((w=A())==null?void 0:w.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},M));
var W=function(){var w,d,O,f=((w=_.lx().resolve(_.$V(_.qF)))==null?0:w())?(d=H.data().playerLogoBackgroundColor)==null?void 0:d.darkTheme:(O=H.data().playerLogoBackgroundColor)==null?void 0:O.lightTheme;return f===void 0?"":_.bN(f)};
return _.Z("ytw-fantasy-player-view-model",{class:M},_.Z(_.K,{cond:function(){return H.data().playerLogo},
then:function(w){return _.Z("div",{class:"ytwFantasyPlayerViewModelLogo"},_.Z("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.Z(_.nG,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.rA({"background-color":W}),data:w,alt:U})),_.Z("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.Z(_.er,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.Z("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.Z("div",{class:"ytwFantasyPlayerViewModelHeader"},_.Z(_.Pb,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var w;return(w=H.data())==null?void 0:w.playerNameText}}),_.Z(_.Pb,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var w;return(w=H.data())==null?void 0:w.playerDescriptionText}})),_.Z("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.Z(_.Pb,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var w;return(w=A())==null?void 0:w.gamePeriodText}}),_.Z(_.Pb,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var w;return(w=H.data())==null?void 0:w.opponentTeamText}}),_.Z(_.Pb,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var w;return(w=A())==null?void 0:w.gameStatusText}}),_.Z(_.Pb,{className:_.CG("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var w;return(w=A())==null?void 0:w.playerStatusText}})),_.Z("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.Z(_.Pb,{text:function(){var w;
return(w=A())==null?void 0:w.playerStatsText}}))),_.Z(_.Pb,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var w;return(w=A())==null?void 0:w.fantasyScore}}))},"Kf");var Q_k=_.r(function(H){return _.Z("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.Z(_.K,{cond:function(){return H.data().players},
then:function(U){return _.Z(_.YY,{data:U},{fantasyPlayerViewModel:IcB})}}))},"Lf");var VNj=_.r(function(H){var U=_.b(_.md(function(){var W;return(W=H.data().selectedTabIdentifierKey)!=null?W:""})),A=U.next().value,M=U.next().value;
_.pA(function(){var W;(W=H.setSelectedTabSignal)==null||W.call(H,A)});
return _.Z("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.Z("div",{class:"ytTabbedViewModelTabGroup"},_.Z(_.j_7,{shape:function(){var W=H.data(),w=[],d={tabs:w};if(!W.tabs)return d;W=_.b(W.tabs);for(var O=W.next(),f={};!O.done;f={tabViewModel:void 0},O=W.next())if(f.tabViewModel=_.p(O.value,k0h),f.tabViewModel){var J=O=void 0;w.push({aTagConfig:{onclick:function(F){return function(){var P;M((P=F.tabViewModel.tabIdentifier)!=null?P:"")}}(f)},
identifier:f.tabViewModel.tabIdentifier,selected:A()===f.tabViewModel.tabIdentifier,title:(J=(O=f.tabViewModel.title)==null?void 0:O.content)!=null?J:""})}return d}})),_.Z(_.YY,{data:function(){var W,w=_.b((W=H.data().tabs)!=null?W:[]);
for(W=w.next();!W.done;W=w.next())if((W=_.p(W.value,k0h))&&W.tabIdentifier===A())return W.content}},{fantasyRosterViewModel:Q_k}))},"Nf");_.LG(_.r(function(H){var U=_.b(xWr()),A=U.next().value,M=U.next().value;return _.Z("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.Z(_.Pb,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return H.data().title}}),_.Z(_.K,{cond:function(){return H.data().tabbedViewModel},
then:function(W){return _.Z(_.YY,{data:W},{tabbedViewModel:function(w){return _.Z(VNj,{data:w.data,setSelectedTabSignal:M})}})}}),_.Z(_.K,{cond:function(){var W,w=(W=_.p(H.data().tabbedViewModel,v03))==null?void 0:W.tabs;
W=_.p(w==null?void 0:w[0],k0h);w=_.p(w==null?void 0:w[1],k0h);var d=W==null?void 0:W.tabIdentifier;if(A()===d){var O,f;if(!((O=_.p(W==null?void 0:W.content,wYr))==null?0:(f=O.players)==null?0:f.length))return H.data().noUserTeamPlayersText}else{var J,F;if(!((J=_.p(w==null?void 0:w.content,wYr))==null?0:(F=J.players)==null?0:F.length))return H.data().noOpponentTeamPlayersText}},
then:function(W){return _.Z(_.Pb,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:W})}}))},"Of"),"ytw-fantasy-matchup-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){return _.Z("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.Z(_.Pb,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return H.data().title}}),_.Z(_.K,{cond:function(){return H.data().matchupTeamPairs},
then:function(U){return _.Z(_.FQ,{each:U,keyBy:"INDEX"},function(A){return _.Z("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.Z(_.YY,{data:function(){return[A().firstTeam,A().secondTeam]}},{fantasyTeamViewModel:function(M){return _.Z(k8X,{data:M.data,
compact:!0})}}))})}}))},"Pf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){var U=function(){var W,w,d;return(d=(W=H.data().userLogoAccessibility)==null?void 0:(w=W.accessibilityData)==null?void 0:w.label)!=null?d:""},A=function(){var W,w,d;
return(d=(W=H.data().opponentLogoAccessibility)==null?void 0:(w=W.accessibilityData)==null?void 0:w.label)!=null?d:""},M=_.$Y(SVc,function(){return H.data().entityKey});
return _.Z("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.Z("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.Z(_.K,{cond:function(){return H.data().userLogo},
then:function(W){return _.Z(_.nG,{className:"ytwFantasyWinProbabilityViewModelLogo",data:W,alt:U})}}),_.Z("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.Z(_.Pb,{text:function(){return H.data().title}})),_.Z(_.K,{cond:function(){return H.data().opponentLogo},
then:function(W){return _.Z(_.nG,{className:"ytwFantasyWinProbabilityViewModelLogo",data:W,alt:A})}})),_.Z("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.Z("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.Z(_.Pb,{text:function(){var W;
return(W=M())==null?void 0:W.userWinNumberLabel}})),_.Z("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.Z("div",{class:_.CG("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.rA({flex:function(){var W,w;return(w=(W=M())==null?void 0:W.userWinNumber)!=null?w:50}})}),_.Z("div",{class:_.CG("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.rA({flex:function(){var W,w;return(w=(W=M())==null?void 0:W.opponentWinNumber)!=null?w:50}})})),_.Z("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.Z(_.Pb,{text:function(){var W;
return(W=M())==null?void 0:W.opponentWinNumberLabel}}))))},"Qf"),"fantasy-win-probability-view-model",{props:{data:_.sY}});var HkY={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},Upj=_.r(function(H){return _.Z(_.YY,{data:H.button},{buttonViewModel:function(U){return _.Z(_.yJ,{data:U.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Rf"),AH5=_.r(function(H){return _.Z("ytd-backstage-locked-post-view-model",{class:_.CG("ytdBackstageLockedPostViewModelHost",H.className)},_.Z("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.Z("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.Z(_.YY,
{data:function(){return H.data().authorAvatar}},{decoratedAvatarViewModel:_.Od})),_.Z("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.Z("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.Z(_.Pb,{text:function(){return H.data().authorText}})),_.Z("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.Z(_.Pb,{text:function(){return H.data().publishedTimeText}}),_.Z(_.YY,{data:function(){return H.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(U){return _.Z(j0n,
{data:U.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.Z("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.Z(_.Pb,{text:function(){return H.data().contentText}})),_.Z(_.P5,null,_.Z(_.KA,{when:function(){return H.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.Z("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.Z(_.nG,{data:HkY,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.Z(_.Pb,{text:function(){return H.data().lockedText}}))}),_.Z(_.KA,{when:function(){return H.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.Z("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.Z("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.Z(_.nG,{data:HkY,
alt:""})),_.Z(_.Pb,{text:function(){return H.data().lockedText}}))})),_.Z("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.Z(Upj,{button:function(){return H.data().likeButton}}),_.Z("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return H.data().voteCountA11y}},_.Z(_.Pb,{text:function(){return H.data().voteCount}})),_.Z(Upj,{button:function(){return H.data().dislikeButton}}),_.Z(Upj,{button:function(){return H.data().commentButton}}),_.Z("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return H.data().commentCountA11y}},_.Z(_.Pb,{text:function(){return H.data().commentCount}}))))},"Sf");
AH5.idomCompat=!0;_.LG(AH5,"ytd-backstage-locked-post-view-model",{props:{data:_.sY,className:_.sY}});_.Qm("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var EE=function(){var H=_.B.apply(this,arguments)||this;H.darkerPanels=_.S("web_watch_darker_panels");H.commentsHidePanelButton=!1;H.isWatchGrid=!1;H.continuationShowButton=!1;H.isSearch=!1;H.isConstrainedList=!1;H.isWatch=!1;H.eligibleToSwitchToGrid=!1;H.useBigThumbs=!1;H.epRestyle=!1;H.isCarouselInFeed=!0;H.topSpacingZero=!1;H.continuationIsInitialLoad=!0;H.enableSqueezebackPanels=_.S("web_shorts_enable_squeezeback_panels");H.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");H.notSticky=
!0;H.mastheadHeight=0;H.isStickyChipBarSetup=!1;H.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};H.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return H};
_.R(EE,_.B);_.X=EE.prototype;_.X.updateLockupContainerTypes=function(H){if(this.eligibleToSwitchToGrid){var U;(U=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||U.forEach(function(A){A.containerType=H})}};
_.X.getItemsPath=function(){return"data.contents"};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.X.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]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",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",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",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:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},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]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},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",
eduCardViewModel:"yt-edu-card-view-model",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",linearLayoutViewModel:"yt-linear-layout-view-model",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:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
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]]",engagementPanel:"[[engagementPanel]]"}},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",videoOverviewViewModel:"yt-video-overview-view-model",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"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.S("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.S("kevlar_low_priority_continuation")}}};
_.X.created=function(){};
_.X.updateStickySetup=function(){_.S("web_fix_sticky_playlist_header_v2")&&this.pageSubtype==="playlist"?this.setupStickyChipBar():this.teardownStickyChipBar()};
_.X.dispatchChipBarIsSticky=function(){this.isStickyChipBarSetup&&this.ytdReduxBehavior.dispatch(sVr(!this.notSticky))};
_.X.setupStickyChipBar=function(){var H=this;if(!this.isStickyChipBarSetup&&_.S("web_fix_sticky_playlist_header_v2")){this.isStickyChipBarSetup=!0;document.addEventListener("scroll",_.lN(this,this.updateHeaderState));var U;this.mastheadHeight=((U=document.querySelector("ytd-masthead"))==null?void 0:U.clientHeight)||0;this.updateHeaderCssVariables();window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(A){H.handleIntersect(A)},{rootMargin:"-"+(this.mastheadHeight+
1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){H.updateHeaderState();H.updateHeaderCssVariables()}),this.resizeObserver.observe(this.hostElement))}};
_.X.teardownStickyChipBar=function(){if(this.isStickyChipBarSetup){this.isStickyChipBarSetup=!1;document.removeEventListener("scroll",_.lN(this,this.updateHeaderState));var H;(H=this.intersectionObserver)==null||H.disconnect();var U;(U=this.resizeObserver)==null||U.disconnect()}};
_.X.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.X.handleIntersect=function(H){this.notSticky=H[0].intersectionRatio===1};
_.X.updateHeaderCssVariables=function(){this.hostElement.style.setProperty("--ytd-item-section-header-width",this.hostElement.clientWidth+"px");this.hostElement.style.setProperty("--ytd-item-section-header-top",this.mastheadHeight+"px")};
_.X.detached=function(){this.teardownStickyChipBar()};
_.X.updated=function(H){H.has("data")&&this.isStickyChipBarSetup&&(this.updateHeaderState(),this.updateHeaderCssVariables())};
_.X.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var H=_.c4(this.hostElement).querySelector("ytd-comments-header-renderer");H&&(H.hidePanelButton=this.commentsHidePanelButton)}};
_.X.onRetrieveLocation=function(H,U){this.containsComments()&&(this.firstCommentsLoaded=U.hasComments=!0)};
_.X.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.X.onLoadReloadContinuation=function(H,U){var A=this;H.stopPropagation();this.isReloading=!0;_.cg(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(M){var W=_.lx().resolve(_.jp);M=U(M);W.postData(M).then(function(w){A.onReloadContinuationData(w)})}})};
_.X.onReloadContinuationData=function(H){if(H=this.get("response.continuationContents.itemSectionContinuation",H)||this.get("response.contents.itemSectionRenderer",H)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",H)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",H))this.set("data.contents",H.contents||H.results),H.header&&this.set("data.header",H.header),this.set("data.continuations",
H.continuations||[]);this.isReloading=!1};
_.X.computeContentsClass=function(H){return H?"reloading":""};
_.X.computeSectionIdentifier=function(H){return H==null?void 0:H.sectionIdentifier};
_.X.computeFitContainer=function(H){return(H==null?void 0:H.sectionIdentifier)==="youchat-item-section"};
_.X.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.S("kevlar_disable_comments_auto_load")};
_.X.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.X.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.X.computeHasDestinationShelfRenderer=function(H){var U,A;return!!(H==null?0:(U=H.contents)==null?0:(A=U[0])==null?0:A.destinationShelfRenderer)};
_.X.computeHasSectionGroupViewModel=function(H){var U,A;return!!(H==null?0:(U=H.contents)==null?0:(A=U[0])==null?0:A.sectionGroupViewModel)};
_.X.computeHasQrCodeRenderer=function(H){var U,A;return!!(H==null?0:(U=H.contents)==null?0:(A=U[0])==null?0:A.qrCodeRenderer)};
_.X.computeStaticCommentsHeader=function(H){return H&&this.containsComments()};
_.X.computeEpRestyle=function(H){return _.S("web_ep_restyling")&&H&&this.containsComments()};
_.X.computeIsContinuationCommentSection=function(H){return(H==null?void 0:H.targetId)==="shorts-engagement-panel-comments-section"||(H==null?void 0:H.targetId)==="comments-section"||(H==null?void 0:H.targetId)==="engagement-panel-comments-section"};
_.X.computeSuppressPaddingDisclaimer=function(){var H,U,A,M;return!!((H=this.data)==null?0:(U=H.contents)==null?0:(A=U[0])==null?0:(M=A.productListHeaderRenderer)==null?0:M.suppressPaddingDisclaimer)};
_.X.computeHeaderStyle=function(H){switch(H==null?void 0:H.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.X.dataChanged=function(){this.firstCommentsLoaded=!1};
_.X.observeDataContentsLength=function(){var H,U;((H=this.data)==null?0:(U=H.contents)==null?0:U.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.X.onYtDismissibleItemDismissedChange=function(H){this._setItemDismissed(H.type==="yt-dismissible-item-dismissed")};
_.X.triggerContinuations=function(){for(var H=_.c4(this.hostElement).querySelector("#continuations").children,U=0;U<H.length;U++)H[U].trigger()};
_.X.triggerInitialContinuations=function(){for(var H=_.c4(this.hostElement).querySelector("#continuations").children,U=0;U<H.length;U++)H[U].triggerIfNotPreviouslyTriggered()};
_.X.handleYtItemSectionContinuation=function(H,U){var A;U&&((A=this.data)==null?void 0:A.sectionIdentifier)!==U||(this.set("data.continuations",[H]),this.triggerContinuations())};
_.X.handleYtItemSectionReplace=function(H,U){var A;U&&((A=this.data)==null?void 0:A.sectionIdentifier)!==U||(this.set("data.contents",H),this.set("data.continuations",[]))};
_.X.computeUseHeightHack=function(H){return H&&!_.S("kevlar_disable_height_hack")};
_.X.computeTopSpacingZero=function(H){return H};
_.X.continuationShowButtonChanged=function(){var H=_.c4(this.hostElement).querySelector("ytd-continuation-item-renderer");H&&(H.showButton=this.continuationShowButton)};
_.X.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("data-changed",this.data))};
_.D5.Object.defineProperties(EE.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.S("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return!!((H=this.data)==null?0:(U=H.contents)==null?0:(A=U[0])==null?0:A.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M,W,w,d;return!!((H=this.data)==null?0:(U=H.contents)==null?0:(A=U[0])==null?0:(M=A.shelfRenderer)==null?0:(W=M.content)==null?0:(w=W.gridRenderer)==null?0:(d=w.targetId)==null?0:d.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return!!((H=this.data)==null?0:(U=H.contents)==null?0:(A=U[0])==null?0:A.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return!!((H=this.data)==null?0:(U=H.contents)==null?0:(A=U[0])==null?0:A.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.kV("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.S("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs&&_.S("web_watch_next_big_thumbs_compact_layout"),useRichGridLegacyMargin:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.S("use_modern_typography_on_search")}},
useChipBarViewModelHeader:{configurable:!0,enumerable:!0,get:function(){var H,U;return!!((H=this.data)==null?0:(U=H.header)==null?0:U.chipBarViewModel)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.S("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.S("web_fix_sticky_playlist_header_v2")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
EE.prototype.dataChangedForBinding=EE.prototype.dataChangedForBinding;EE.prototype.continuationShowButtonChanged=EE.prototype.continuationShowButtonChanged;EE.prototype.onYtDismissibleItemDismissedChange=EE.prototype.onYtDismissibleItemDismissedChange;EE.prototype.observeDataContentsLength=EE.prototype.observeDataContentsLength;EE.prototype.dataChanged=EE.prototype.dataChanged;EE.prototype.onServiceRequestCompleted=EE.prototype.onServiceRequestCompleted;EE.prototype.onLoadReloadContinuation=EE.prototype.onLoadReloadContinuation;
EE.prototype.onRetrieveLocation=EE.prototype.onRetrieveLocation;EE.prototype.commentsHidePanelButtonChanged=EE.prototype.commentsHidePanelButtonChanged;EE.prototype.dispatchChipBarIsSticky=EE.prototype.dispatchChipBarIsSticky;EE.prototype.updateStickySetup=EE.prototype.updateStickySetup;EE.prototype.updateLockupContainerTypes=EE.prototype.updateLockupContainerTypes;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],EE.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],EE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.aN.YtLazyListBehavior),_.q("design:type",Object)],EE.prototype,"ytLazyListBehavior",void 0);_.G([_.g(_.Eq.YtNextContinuationBehavior),_.q("design:type",Object)],EE.prototype,"ytNextContinuationBehavior",void 0);
_.G([_.g(_.RG),_.q("design:type",Object)],EE.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],EE.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],EE.prototype,"ytdReduxBehavior",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],EE.prototype,"darkerPanels",void 0);_.G([_.y(),_.q("design:type",Object)],EE.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Boolean)],EE.prototype,"engagementPanel",void 0);_.G([_.y(),_.q("design:type",Object)],EE.prototype,"commentsHidePanelButton",void 0);_.G([_.y(),_.q("design:type",Object)],EE.prototype,"isWatchGrid",void 0);_.G([_.y(),_.q("design:type",Object)],EE.prototype,"continuationShowButton",void 0);_.G([_.y({computed:"computeIsContinuationCommentSection(data)"}),_.q("design:type",Boolean)],EE.prototype,"continuationIsCommentsSection",void 0);
_.G([_.y({value:!0}),_.q("design:type",Boolean)],EE.prototype,"autoFill",void 0);_.G([_.y(),_.q("design:type",Boolean)],EE.prototype,"continuationDisablePrescanVisibility",void 0);_.G([_.y(),_.q("design:type",Boolean)],EE.prototype,"isReloading",void 0);_.G([_.y(),_.q("design:type",Object)],EE.prototype,"isSearch",void 0);_.G([_.y(),_.q("design:type",Object)],EE.prototype,"isConstrainedList",void 0);_.G([_.y(),_.q("design:type",Object)],EE.prototype,"isWatch",void 0);
_.G([_.y(),_.q("design:type",Object)],EE.prototype,"eligibleToSwitchToGrid",void 0);_.G([_.y(),_.q("design:type",Object)],EE.prototype,"useBigThumbs",void 0);_.G([_.y({selector:_.Wo,reflectToAttribute:!0}),_.q("design:type",Object)],EE.prototype,"isGridViewEnabled",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.q("design:type",Object)],EE.prototype,"epRestyle",void 0);
_.G([_.a("isWatch"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],EE.prototype,"hideShortsShelfHeader",null);_.G([_.a("isSearch","isWatch"),_.q("design:type",String),_.q("design:paramtypes",[])],EE.prototype,"thumbnailWidth",null);_.G([_.a("isSearch","containerWidth"),_.q("design:type",Object),_.q("design:paramtypes",[])],EE.prototype,"thumbnailTargetWidth",null);
_.G([_.a("isSearch","isWatch","useBigThumbs"),_.q("design:type",String),_.q("design:paramtypes",[])],EE.prototype,"sizing",null);_.G([_.a("isWatch","isGridViewEnabled","useBigThumbs","data"),_.y({reflectToAttribute:!0}),_.q("design:type",Number),_.q("design:paramtypes",[])],EE.prototype,"lockupContainerType",null);_.G([_.Ya("lockupContainerType","data"),_.q("design:type",Function),_.q("design:paramtypes",[Number]),_.q("design:returntype")],EE.prototype,"updateLockupContainerTypes",null);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],EE.prototype,"pageSubtype",void 0);_.G([_.y(),_.q("design:type",Number)],EE.prototype,"containerWidth",void 0);_.G([_.y(),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],EE.prototype,"isPlaylist",null);_.G([_.y(),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],EE.prototype,"isClipList",null);_.G([_.y(),_.q("design:type",Object)],EE.prototype,"isCarouselInFeed",void 0);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],EE.prototype,"isPlaylistVideoContainer",null);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],EE.prototype,"isSearchFrictionPage",null);_.G([_.y({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.q("design:type",Boolean)],EE.prototype,"useHeightHack",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.q("design:type",Object)],EE.prototype,"topSpacingZero",void 0);_.G([_.y({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.q("design:type",Boolean)],EE.prototype,"showButton",void 0);_.G([_.y(),_.q("design:type",Boolean)],EE.prototype,"firstCommentsLoaded",void 0);_.G([_.y(),_.q("design:type",Object)],EE.prototype,"continuationIsInitialLoad",void 0);
_.G([_.y({reflectToAttribute:!0,readOnly:!0}),_.q("design:type",Boolean)],EE.prototype,"itemDismissed",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.q("design:type",String)],EE.prototype,"sectionIdentifier",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.q("design:type",String)],EE.prototype,"fitContainer",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.q("design:type",Boolean)],EE.prototype,"hasDestinationShelfRenderer",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.q("design:type",Boolean)],EE.prototype,"staticCommentsHeader",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],EE.prototype,"enableSqueezebackPanels",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],EE.prototype,"enableAnchoredPanel",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.q("design:type",Boolean)],EE.prototype,"hasSectionGroupViewModel",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.q("design:type",Boolean)],EE.prototype,"hasQrCodeRenderer",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.q("design:type",Boolean)],EE.prototype,"suppressDisclaimerSeparator",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.q("design:type",String)],EE.prototype,"headerStyle",void 0);_.G([_.a("isSearch","isWatch","useBigThumbs"),_.q("design:type",Object),_.q("design:paramtypes",[])],EE.prototype,"lockupExperiments",null);
_.G([_.a("isSearch"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],EE.prototype,"typographyBump",null);_.G([_.hG("#header"),_.q("design:type",HTMLElement)],EE.prototype,"header",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],EE.prototype,"notSticky",void 0);_.G([_.a("data"),_.y({reflectToAttribute:!0}),_.q("design:type",Object),_.q("design:paramtypes",[])],EE.prototype,"useChipBarViewModelHeader",null);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],EE.prototype,"expFixPlaylistHeader",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],EE.prototype,"expFixPlaylistHeaderV2",null);_.G([_.Ya("pageSubtype"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],EE.prototype,"updateStickySetup",null);
_.G([_.Ya("notSticky"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],EE.prototype,"dispatchChipBarIsSticky",null);_.G([_.Ya("commentsHidePanelButton"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],EE.prototype,"commentsHidePanelButtonChanged",null);_.G([_.Gl("yt-retrieve-location"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],EE.prototype,"onRetrieveLocation",null);
_.G([_.Gl("yt-load-reload-continuation"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Function]),_.q("design:returntype")],EE.prototype,"onLoadReloadContinuation",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],EE.prototype,"onServiceRequestCompleted",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],EE.prototype,"dataChanged",null);
_.G([_.jk("data.contents.length"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],EE.prototype,"observeDataContentsLength",null);_.G([_.Gl("yt-dismissible-item-dismissed"),_.Gl("yt-dismissible-item-undismissed"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],EE.prototype,"onYtDismissibleItemDismissedChange",null);
_.G([_.Ya("continuationShowButton"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],EE.prototype,"continuationShowButtonChanged",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],EE.prototype,"dataChangedForBinding",null);_.G([_.dX({is:"ytd-item-section-renderer",disableElementRegistration:!0})],EE);
_.e(EE,"ytd-item-section-renderer",function(){if(bDy!==void 0)return bDy;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return bDy=H},{mode:1});var Mwh;var tgE=_.Nh(_.hP("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Wwk={},C_c=(Wwk[0]={title:_.gH(_.hP("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.gH(_.hP("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.En("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},Wwk[1]={title:_.gH(_.hP("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.En("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},Wwk);_.Qm("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var m_=function(){var H=_.B.apply(this,arguments)||this;H.allVideosCount=0;H.allPlaylistCount=0;H.isOnline=!1;H.shouldRenderDownloadsBanner=!1;H.shouldRenderDownloadsBannerUpsell=!1;H.hasOptedIntoSmartDownloads=!1;H.areAllSmartDownloadsDeleted=!1;H.smartDownloadsCompleted=!1;return H};
_.R(m_,_.B);m_.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
m_.prototype.attached=function(){this.downloadsToRenderChanged()};
m_.prototype.detached=function(){this.set("renderableData",{})};
m_.prototype.downloadsToRenderChanged=function(){var H=_.Lq().getState().entities,U=_.Ac(H),A=_.S("kevlar_playlist_dl_page_killswitch")?bmE(H):_.Mh(H),M=_.UMM(H),W=_.wAr(H),w=_.j9(U);H=_.WC(H);this.set("renderableData",yU8(A,U,M,W,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,w,H))};
m_.prototype.downloadsToRenderChanged=m_.prototype.downloadsToRenderChanged;_.G([_.g(_.dF),_.q("design:type",Object)],m_.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],m_.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],m_.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],m_.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],m_.prototype,"renderableData",void 0);_.G([_.y({selector:_.NFN}),_.q("design:type",Object)],m_.prototype,"allVideosCount",void 0);_.G([_.y({selector:oME}),_.q("design:type",Object)],m_.prototype,"allPlaylistCount",void 0);_.G([_.y({selector:_.d1}),_.q("design:type",Object)],m_.prototype,"isOnline",void 0);_.G([_.y({selector:_.Aeh}),_.q("design:type",Object)],m_.prototype,"shouldRenderDownloadsBanner",void 0);
_.G([_.y({selector:_.Xit}),_.q("design:type",Object)],m_.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.G([_.y({selector:_.Mo4}),_.q("design:type",Object)],m_.prototype,"hasOptedIntoSmartDownloads",void 0);_.G([_.y({selector:_.W$0}),_.q("design:type",Object)],m_.prototype,"areAllSmartDownloadsDeleted",void 0);_.G([_.y({selector:wic}),_.q("design:type",Object)],m_.prototype,"smartDownloadsCompleted",void 0);
_.G([_.jk("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],m_.prototype,"downloadsToRenderChanged",null);_.G([_.dX({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],m_);
_.e(m_,"ytd-offline-item-section-renderer",function(){if(Mwh!==void 0)return Mwh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Mwh=H},
{mode:1});var wr5;var XrY;var g_=function(){return _.B.apply(this,arguments)||this};
_.R(g_,_.B);
g_.prototype.onDataChanged=function(){if(this.JSC$17175_lastData){var H=this.getFilterClass(this.JSC$17175_lastData.status);H&&this.hostElement.classList.remove(H)}var U;(H=this.getFilterClass((U=this.data)==null?void 0:U.status))&&this.hostElement.classList.add(H);H==="selected"?_.c4(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.c4(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");H==="disabled"?_.c4(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.c4(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17175_lastData=this.data};
g_.prototype.getFilterClass=function(H){switch(H){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
g_.prototype.onDataChanged=g_.prototype.onDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],g_.prototype,"data",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],g_.prototype,"onDataChanged",null);_.G([_.dX({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],g_);
_.e(g_,"ytd-search-filter-renderer",function(){if(XrY!==void 0)return XrY;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return XrY=H},{mode:2});var a6=function(){return _.B.apply(this,arguments)||this};
_.R(a6,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],a6.prototype,"data",void 0);_.G([_.dX({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],a6);
_.e(a6,"ytd-search-filter-group-renderer",function(){if(wr5!==void 0)return wr5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return wr5=H},{mode:2});var ikj;var xJ=function(){return _.B.apply(this,arguments)||this};
_.R(xJ,_.B);xJ.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.$G());this.isCollapsed=!this.isCollapsed};
xJ.prototype.navigateToAboutTheseResultsPage=function(){var H=_.vy("https://www.youtube.com/howyoutubeworks/product-features/search/");H?_.iL(window,H,"_blank"):_.za(Error("Wh"))};
xJ.prototype.dataChanged=function(){this.isCollapsed=!0};
xJ.prototype.computeShowBottomBorder=function(){var H,U,A;return!!((H=this.data)==null?0:(U=H.button)==null?0:U.toggleButtonRenderer)||!((A=this.data)==null||!A.aboutTheseResultsButton)};
xJ.prototype.dataChanged=xJ.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],xJ.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.q("design:type",Boolean)],xJ.prototype,"showBottomBorder",void 0);_.G([_.y(),_.q("design:type",Boolean)],xJ.prototype,"renderCollapsibleMenu",void 0);
_.G([_.y(),_.q("design:type",Boolean)],xJ.prototype,"isCollapsed",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xJ.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],xJ);
_.e(xJ,"ytd-search-sub-menu-renderer",function(){if(ikj!==void 0)return ikj;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return ikj=H},{mode:1});var bkB;var dpp=new _.g3("SECTION_LIST_RENDERER_TOKEN");var Ok7;var zX=function(){return _.B.apply(this,arguments)||this};
_.R(zX,_.B);zX.prototype.computeStyle=function(H){return H?H.toLowerCase().replace(/_/g,"-"):""};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],zX.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.q("design:type",String)],zX.prototype,"headerStyle",void 0);_.G([_.dX({is:"ytd-text-header-renderer",disableElementRegistration:!0})],zX);
_.e(zX,"ytd-text-header-renderer",function(){if(Ok7!==void 0)return Ok7;var H=document.createElement("template");_.E(H,"\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");H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Ok7=H},{mode:1});var uBB;var CP=function(){return _.B.apply(this,arguments)||this};
_.R(CP,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],CP.prototype,"data",void 0);_.G([_.dX({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],CP);
_.e(CP,"ytd-minor-moment-header-renderer",function(){if(uBB!==void 0)return uBB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return uBB=H},{mode:1});var Zky;var tQ=function(){return _.B.apply(this,arguments)||this};
_.R(tQ,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],tQ.prototype,"data",void 0);_.G([_.dX({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],tQ);
_.e(tQ,"ytd-minor-moment-setting-alert-renderer",function(){if(Zky!==void 0)return Zky;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Zky=H},{mode:1});var f3$;var JHh;var c3=function(){var H=_.B.apply(this,arguments)||this;H.booleanSettingById=!1;H.smartDownloadsEnabledVE=_.ts(128287);H.smartDownloadsDisabledVE=_.ts(128286);H.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return H};
_.R(c3,_.B);_.X=c3.prototype;_.X.attachSmartDownloadsSettingVes=function(){var H;this.activeVeForLogging||((H=this.data)==null?void 0:H.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.$g(_.k$(),this.smartDownloadsEnabledVE),_.$g(_.k$(),this.smartDownloadsDisabledVE))};
_.X.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.cg(this.hostElement,"yt-settings-switch-ready")};
_.X.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.X.onSwitchChange=function(H){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(H=_.Rr(H).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.S("kevlar_settings_switch_resolve_command_killswitch")?_.lx().resolve(_.YV).resolveCommand(H,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(H)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.X.handleUpdateSettingsSwitch=function(H){(H=_.p(H,RB2))&&this.data&&this.data.id===H.id&&this.set("data.enabled",!!H.enabled)};
_.X.onToggleSettingsSwitch=function(H,U){this.data&&this.data.id===H&&this.set("data.enabled",U!=null?U:!this.data.enabled)};
_.X.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.at.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.X.maybeLogSmartDownloadsSettingVisibility=function(){var H=_.XK(),U;H&&((U=this.data)==null?void 0:U.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.sn(H,[this.smartDownloadsEnabledVE]),_.nE(H,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.sn(H,[this.smartDownloadsDisabledVE]),_.nE(H,[this.smartDownloadsEnabledVE])))};
_.X.maybeLogSmartDownloadsSettingClick=function(){var H;((H=this.data)==null?void 0:H.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.GJ(_.k$(),this.activeVeForLogging)};
_.X.updateDataEnabledFromBinding=function(H){this.set("data.enabled",H.detail.value)};
_.D5.Object.defineProperties(c3.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var H=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!H&&(H=this.ytRendererBehavior.getSimpleString(this.data.title));return H}}});
c3.prototype.dataChanged=c3.prototype.dataChanged;_.G([_.g(_.dF),_.q("design:type",Object)],c3.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],c3.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],c3.prototype,"ytComponentBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],c3.prototype,"data",void 0);_.G([_.y({selector:function(H,U){if(Object.keys(H==null?void 0:H.entities).length)switch(U){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return dMh(H.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.q("design:type",Object)],c3.prototype,"booleanSettingById",void 0);_.G([_.y(),_.q("design:type",_.Wg)],c3.prototype,"activeVeForLogging",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],c3.prototype,"toggleAriaLabel",null);_.G([_.jk("data"),_.jk("booleanSettingById"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],c3.prototype,"dataChanged",null);
_.G([_.dX({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],c3);
_.e(c3,"ytd-settings-switch-renderer",function(){if(JHh!==void 0)return JHh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return JHh=H},{mode:1});var y5=function(){return _.B.apply(this,arguments)||this};
_.R(y5,_.B);y5.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}}}}};
_.D5.Object.defineProperties(y5.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var H=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(H+=" remove-left-margin");this.data.extraBottomSpace&&(H+=" extra-bottom-space");return H}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],y5.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],y5.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],y5.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],y5.prototype,"contentsClassName",null);_.G([_.dX({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],y5);
_.e(y5,"ytd-minor-moment-setting-section-renderer",function(){if(f3$!==void 0)return f3$;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return f3$=H},{mode:1});var Kw$;var B3=function(){return _.B.apply(this,arguments)||this};
_.R(B3,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],B3.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],B3.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],B3);
_.e(B3,"ytd-empty-product-details-renderer",function(){if(Kw$!==void 0)return Kw$;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Kw$=H},{mode:1});var oKX;var Fw7;var r_=function(){var H=_.B.apply(this,arguments)||this;H.expanded=!0;return H};
_.R(r_,_.B);r_.prototype.getBadgeRowClass=function(H,U,A){for(var M=_.b(this.hostElement.querySelectorAll("yt-img-shadow")),W=M.next();!W.done;W=M.next())W.value.onShow();H=H.selected;return A?H!==-1?H===U?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(H!==void 0?H:0)===U?"badge-line":"badge-hidden"};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],r_.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],r_.prototype,"expanded",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],r_);
_.e(r_,"ytd-sponsorships-loyalty-badges-renderer",function(){if(Fw7!==void 0)return Fw7;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Fw7=H},{mode:1});var Pnk;var eP=function(){var H=_.B.apply(this,arguments)||this;H.expanded=!0;return H};
_.R(eP,_.B);eP.prototype.getContainerClasses=function(H,U){H=H?"expanded":"collapsed";U&&(H+=" item");return H};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],eP.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],eP.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],eP.prototype,"expanded",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],eP);
_.e(eP,"ytd-sponsorships-perk-renderer",function(){if(Pnk!==void 0)return Pnk;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Pnk=H},{mode:1});var syh;var Dg=function(){var H=_.B.apply(this,arguments)||this;H.expanded=!0;return H};
_.R(Dg,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Dg.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Dg.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Dg.prototype,"expanded",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Dg);
_.e(Dg,"ytd-sponsorships-perks-renderer",function(){if(syh!==void 0)return syh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return syh=H},{mode:1});var $J=function(){var H=_.B.apply(this,arguments)||this;H.isCollapsed=!1;return H};
_.R($J,_.B);$J.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
$J.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
$J.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var H;this.expandCollapseButton=_.p((H=this.data)==null?void 0:H.expandButton,_.f$)}else{var U;this.expandCollapseButton=_.p((U=this.data)==null?void 0:U.collapseButton,_.f$)}};
$J.prototype.updateExpandCollapseButton=$J.prototype.updateExpandCollapseButton;$J.prototype.onDataChanged=$J.prototype.onDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],$J.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],$J.prototype,"isCollapsed",void 0);_.G([_.y(),_.q("design:type",Object)],$J.prototype,"expandCollapseButton",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$J.prototype,"onDataChanged",null);_.G([_.jk("data","isCollapsed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$J.prototype,"updateExpandCollapseButton",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],$J);
_.e($J,"ytd-sponsorships-expandable-perks-renderer",function(){if(oKX!==void 0)return oKX;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return oKX=H},{mode:1});var nKX;var lP=function(){return _.B.apply(this,arguments)||this};
_.R(lP,_.B);lP.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],lP.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],lP.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],lP);
_.e(lP,"ytd-sponsorships-actionable-message-renderer",function(){if(nKX!==void 0)return nKX;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return nKX=H},{mode:1});var Nm8;var GX=function(){return _.B.apply(this,arguments)||this};
_.R(GX,_.B);_.X=GX.prototype;_.X.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.X.getExpansionIcon=function(H){return H?"COLLAPSE":"EXPAND"};
_.X.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.X.computeMessageContainerStyle=function(H){var U=H.expandableItems?" style-clickable":"";return H.messageContainerStyle?H.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+U:"style-unspecified"+U};
_.X.isSinglePerk=function(H){return!!H.messageContainerStyle&&(H.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||H.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.X.onExpandedChanged=function(){var H=this;if(this.expanded)for(var U=_.b(this.hostElement.querySelectorAll("yt-img-shadow")),A=U.next();!A.done;A=U.next())A.value.onShow();_.rV(this,function(){_.cg(H.hostElement,"yt-refit")})};
_.X.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
GX.prototype.onDataChanged=GX.prototype.onDataChanged;GX.prototype.onExpandedChanged=GX.prototype.onExpandedChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],GX.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],GX.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],GX.prototype,"expanded",void 0);
_.G([_.Ya("expanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GX.prototype,"onExpandedChanged",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GX.prototype,"onDataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],GX);
_.e(GX,"ytd-sponsorships-expandable-message-renderer",function(){if(Nm8!==void 0)return Nm8;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Nm8=H},{mode:2});var Sz5;var YJ=function(){return _.B.apply(this,arguments)||this};
_.R(YJ,_.B);YJ.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"}}}}};
YJ.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.p(this.data.endButton,_.f$).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
YJ.prototype.onDataChanged=YJ.prototype.onDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],YJ.prototype,"data",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],YJ.prototype,"onDataChanged",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],YJ);
_.e(YJ,"ytd-sponsorships-heading-renderer",function(){if(Sz5!==void 0)return Sz5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Sz5=H},{mode:1});var pr7;var qH=function(){return _.B.apply(this,arguments)||this};
_.R(qH,_.B);_.G([_.y(),_.q("design:type",Object)],qH.prototype,"data",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],qH.prototype,"ytRendererBehavior",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],qH);
_.e(qH,"ytd-sponsorships-links-renderer",function(){if(pr7!==void 0)return pr7;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return pr7=H},{mode:1});var Lwj;var hQ=function(){return _.B.apply(this,arguments)||this};
_.R(hQ,_.B);_.X=hQ.prototype;_.X.onDataChanged=function(){if(this.data&&this.data.expandableItems){var H;(H=_.c4(this.hostElement).querySelector("tp-yt-paper-button"))==null||H.setAttribute("role","button")}else{var U;(U=_.c4(this.hostElement).querySelector("tp-yt-paper-button"))==null||U.removeAttribute("role")}};
_.X.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.X.getExpansionIcon=function(H){return H?"COLLAPSE":"EXPAND"};
_.X.getTileClasses=function(H){return H?"tile expandable-tile":"tile"};
_.X.getButtonDisabled=function(H){return H?void 0:""};
hQ.prototype.onDataChanged=hQ.prototype.onDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],hQ.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],hQ.prototype,"expanded",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hQ.prototype,"onDataChanged",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],hQ);
_.e(hQ,"ytd-sponsorships-list-tile-renderer",function(){if(Lwj!==void 0)return Lwj;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Lwj=H},{mode:1});var Rg7;var EKY;var kJ=function(){return _.B.apply(this,arguments)||this};
_.R(kJ,_.B);kJ.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],kJ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],kJ.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],kJ);
_.e(kJ,"ytd-sponsorships-promotion-renderer",function(){if(EKY!==void 0)return EKY;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return EKY=H},{mode:1});var mpp;var v3=function(){return _.B.apply(this,arguments)||this};
_.R(v3,_.B);v3.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],v3.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],v3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],v3.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],v3);
_.e(v3,"ytd-sponsorships-purchase-option-renderer",function(){if(mpp!==void 0)return mpp;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return mpp=H},{mode:1});var gK8;var a3$;var xp$=function(){return _.B.apply(this,arguments)||this};
_.R(xp$,_.B);_.G([_.y(),_.q("design:type",Object)],xp$.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],xp$);
_.e(xp$,"ytd-ypc-offer-promo-renderer",function(){if(a3$!==void 0)return a3$;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return a3$=H},{mode:1});var TX=function(){return _.B.apply(this,arguments)||this};
_.R(TX,_.B);_.X=TX.prototype;
_.X.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"}}}}};
_.X.expansionCTA=function(H,U){return H&&(U?H.collapseCallToAction:H.expansionCallToAction)};
_.X.getExpansionIcon=function(H){return H?"COLLAPSE":"EXPAND"};
_.X.expansionCallToActionTap=function(){var H=this;this.expanded=!this.expanded;_.rV(this,function(){_.cg(H.hostElement,"yt-refit")})};
_.X.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var H,U=(H=this.data)==null?void 0:H.onVisible;U&&this.ytComponentBehavior.resolveCommand(U)};
_.X.computeDisplayTitle=function(H){return!(!H||this.titledisplaystatus!=="show")};
_.X.computeDisplaySeparator=function(){return!1};
_.X.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
TX.prototype.onDataChanged=TX.prototype.onDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],TX.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],TX.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],TX.prototype,"data",void 0);
_.G([_.y({value:!1}),_.q("design:type",Boolean)],TX.prototype,"expanded",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],TX.prototype,"purchaseButtonClicked",void 0);_.G([_.y({reflectToAttribute:!0,value:"show"}),_.q("design:type",String)],TX.prototype,"titledisplaystatus",void 0);_.G([_.y({computed:"computeDisplayTitle(data.title)"}),_.q("design:type",Boolean)],TX.prototype,"displayTitle",void 0);
_.G([_.y({computed:"computeDisplaySeparator(data)"}),_.q("design:type",Boolean)],TX.prototype,"displaySeparator",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TX.prototype,"onDataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],TX);
_.e(TX,"ytd-sponsorships-tier-renderer",function(){if(gK8!==void 0)return gK8;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return gK8=H},{mode:2});var jP=function(){return _.B.apply(this,arguments)||this};
_.R(jP,_.B);
jP.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"}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],jP.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],jP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],jP.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],jP);
_.e(jP,"ytd-sponsorships-management-renderer",function(){if(Rg7!==void 0)return Rg7;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Rg7=H},{mode:1});var zgf;var I6=function(){return _.B.apply(this,arguments)||this};
_.R(I6,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],I6.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],I6);
_.e(I6,"ytd-open-in-native-app-view-model",function(){if(zgf!==void 0)return zgf;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return zgf=H},{mode:2});var CnX;var tw5;var cHp=_.NP(["top-"]),yHh=_.NP(["bottom-"]),Bmp=_.NP(["left-"]),rHB=_.NP(["right-"]),egk={},Dpy=function(H,U,A){H.removeAttribute("top-"+A);H.removeAttribute("bottom-"+A);H.removeAttribute("left-"+A);H.removeAttribute("right-"+A);U&&(U.top&&_.oD([_.N2(cHp)],H,"top-"+A,U.top),U.bottom&&_.oD([_.N2(yHh)],H,"bottom-"+A,U.bottom),U.left&&_.oD([_.N2(Bmp)],H,"left-"+A,U.left),U.right&&_.oD([_.N2(rHB)],H,"right-"+A,U.right))};
egk.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(H){var U,A=_.c4((U=this.hostElement)!=null?U:this),M;U=this.cardItemBoxBehaviorMarginTargetId&&A?A.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(M=this.hostElement)!=null?M:this;Dpy(U,H,"margin")},
cardItemContainerPaddingChanged_:function(H){var U,A=_.c4((U=this.hostElement)!=null?U:this),M;U=this.cardItemBoxBehaviorPaddingTargetId&&A?A.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(M=this.hostElement)!=null?M:this;Dpy(U,H,"padding")}}];var Q5={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-text-primary)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-text-primary)",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 $pm;var l3f;var V5=function(){return _.B.apply(this,arguments)||this};
_.R(V5,_.B);V5.prototype.textColorChanged_=function(){this.hostElement.style.color=Q5[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
V5.prototype.textColorChanged_=V5.prototype.textColorChanged_;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],V5.prototype,"ytRendererBehavior",void 0);_.G([_.g(egk.YtCardItemBoxBehavior),_.q("design:type",Object)],V5.prototype,"ytCardItemBoxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],V5.prototype,"data",void 0);_.G([_.Ya("data.textColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],V5.prototype,"textColorChanged_",null);
_.G([_.b0({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],V5);
_.e(V5,"yt-card-item-text-renderer",function(){if(l3f===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;$pm===void 0&&($pm=document.createElement("template"));var M=$pm;A.call(U,M.content.cloneNode(!0),H.content.firstChild);l3f=H}H=l3f;return H},{mode:2});var G2k;var YzX;var HV=function(){return _.B.apply(this,arguments)||this};
_.R(HV,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],HV.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],HV.prototype,"data",void 0);_.G([_.b0({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],HV);
_.e(HV,"yt-card-item-badge-renderer",function(){if(YzX===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;G2k===void 0&&(G2k=document.createElement("template"));var M=G2k;A.call(U,M.content.cloneNode(!0),H.content.firstChild);YzX=H}H=YzX;return H},{mode:2});var qzh;var hg5;var Ub=function(){return _.B.apply(this,arguments)||this};
_.R(Ub,_.B);Ub.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ub.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Ub.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ub.prototype,"data",void 0);_.G([_.b0({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Ub);
_.e(Ub,"yt-card-item-text-collection-renderer",function(){if(hg5===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;qzh===void 0&&(qzh=document.createElement("template"));var M=qzh;A.call(U,M.content.cloneNode(!0),H.content.firstChild);hg5=H}H=hg5;return H},{mode:2});var k2$;var vKy;var AE=function(){return _.B.apply(this,arguments)||this};
_.R(AE,_.B);AE.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]]"}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],AE.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],AE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],AE.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Number)],AE.prototype,"iconSize",void 0);_.G([_.b0({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],AE);
_.e(AE,"yt-card-item-text-with-button-renderer",function(){if(vKy===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;k2$===void 0&&(k2$=document.createElement("template"));var M=k2$;A.call(U,M.content.cloneNode(!0),H.content.firstChild);vKy=H}H=vKy;return H},{mode:2});var MV=function(){return _.B.apply(this,arguments)||this};
_.R(MV,_.B);MV.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"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],MV.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],MV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],MV.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],MV);
_.e(MV,"ytd-commerce-cart-summary-line-item-renderer",function(){if(tw5!==void 0)return tw5;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return tw5=H},{mode:1});_.Qm("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var WV=function(){var H=_.B.apply(this,arguments)||this;H.hidden=!1;return H};
_.R(WV,_.B);_.X=WV.prototype;_.X.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"}}}}};
_.X.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.X.updateSummary=function(){var H=this.commerceCartCheckoutButtonEntity,U;if(((U=this.data)==null?0:U.cartButton)&&H.checkoutSummaryText){var A,M=AN((A=this.data)==null?void 0:A.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+M+".cardItemTextRenderer.text",MT(H.checkoutSummaryText));if(H.checkoutDetailText){var W;A=AN((W=this.data)==null?void 0:W.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+A+".cardItemTextRenderer.text",MT(H.checkoutDetailText))}if(H.checkoutAdditionalMetadataText){var w;
W=AN((w=this.data)==null?void 0:w.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+W+".cardItemTextRenderer.text",MT(H.checkoutAdditionalMetadataText))}}else H.estimatedTotalPrice&&(w=AN((M=this.data)==null?void 0:M.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+w+".cardItemTextRenderer.text",MT(H.estimatedTotalPrice)))};
_.X.updateIsHidden=function(){var H,U=(H=this.commerceCartCheckoutButtonEntity)==null?void 0:H.isHidden;U!==void 0&&(this.hidden=U)};
_.X.updateCheckoutButton=function(){var H,U=(H=this.commerceCartCheckoutButtonEntity)==null?void 0:H.isDisabled;U!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",U);var A;H=(A=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:A.innertubeCommand;H!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",H);var M;A=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.checkoutButtonText;A!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:A})};
WV.prototype.entityChanged=WV.prototype.entityChanged;_.G([_.g(_.dF),_.q("design:type",Object)],WV.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],WV.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],WV.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],WV.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],WV.prototype,"fullWidth",void 0);_.G([_.y(),_.q("design:type",Object)],WV.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],WV.prototype,"compact",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],WV.prototype,"hidden",void 0);
_.G([_.y({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:ZVt}),_.q("design:type",Object)],WV.prototype,"commerceCartCheckoutButtonEntity",void 0);_.G([_.Ya("commerceCartCheckoutButtonEntity","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],WV.prototype,"entityChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],WV);
_.e(WV,"ytd-commerce-cart-checkout-button-renderer",function(){if(CnX!==void 0)return CnX;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return CnX=H},{mode:2});var Tmh;_.jyy={};
_.jyy.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",_.lN(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.lN(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(H){!this.tappableItemBehaviorTapEnabled||H.keyCode!==13&&H.keyCode!==32||H.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var H=this.data.onTap;H.ypcGetCartEndpoint?(_.rs(this.hostElement,[H]),this.tappableItemBehaviorTapEnabled=!1):H.ypcOffersEndpoint?_.rs(this.hostElement,[H]):_.eb(this.hostElement,[H],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(H){this.tappableItemBehaviorTapEnabled=!!H},
tappableItemBehaviorOnTapEnabledChanged_:function(){var H=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(H.setAttribute("tabIndex",0),H.setAttribute("role","button")):(H.removeAttribute("tabIndex"),H.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(H){H.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var I3h;var Qy7;var wb=function(){return _.B.apply(this,arguments)||this};
_.R(wb,_.B);wb.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Vm("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Vm("sharingToggleButtonAndDefaultButton")}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],wb.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],wb.prototype,"data",void 0);_.G([_.b0({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],wb);
_.e(wb,"yt-card-item-actions-renderer",function(){if(Qy7===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;I3h===void 0&&(I3h=document.createElement("template"));var M=I3h;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Qy7=H}H=Qy7;return H},{mode:2});var Vw5;var H8h;var UXj;var ABy;var M78;var W5k;var Xo=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return H};
_.R(Xo,_.B);Xo.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
Xo.prototype.handleDarkModeToggledAction_=function(H){this.isDarkTheme_=H};
Xo.prototype.computeThemeImage_=function(H,U){if(!H||!H.imageLight)return!1;this.isCircular_=H.isCircular;H.imageWidth&&(this.hostElement.style.width=H.imageWidth+"px");H.imageHeight&&(this.hostElement.style.height=H.imageHeight+"px");H.borderWidth&&(this.image.style.borderWidth=H.borderWidth+"px",this.image.style.borderStyle="solid");H.borderColor&&(this.image.style.borderColor=_.bN(H.borderColor));return U&&H.imageDark?H.imageDark:H.imageLight};
Xo.prototype.computeThemeIcon_=function(H){var U,A;if(!(H==null?0:(U=H.themedIcon)==null?0:(A=U.icon)==null?0:A.iconType))return!1;this.icon.style.color=Q5[H.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(H.imageWidth||18)+"px";this.icon.style.height=(H.imageHeight||18)+"px";return _.eq(H.themedIcon.icon.iconType)};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Xo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(egk.YtCardItemBoxBehavior),_.q("design:type",Object)],Xo.prototype,"ytCardItemBoxBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Xo.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Xo.prototype,"data",void 0);
_.G([_.y({value:!1}),_.q("design:type",Boolean)],Xo.prototype,"fit",void 0);_.G([_.y(),_.q("design:type",Boolean)],Xo.prototype,"isDarkTheme_",void 0);_.G([_.y({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.q("design:type",Object)],Xo.prototype,"themeImage_",void 0);_.G([_.y({computed:"computeThemeIcon_(data)"}),_.q("design:type",Object)],Xo.prototype,"themeIcon_",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Object)],Xo.prototype,"isCircular_",void 0);
_.G([_.hG("#image"),_.q("design:type",Object)],Xo.prototype,"image",void 0);_.G([_.hG("#icon"),_.q("design:type",Object)],Xo.prototype,"icon",void 0);_.G([_.b0({is:"yt-themed-image-renderer",disableElementRegistration:!0})],Xo);
_.e(Xo,"yt-themed-image-renderer",function(){if(W5k===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;M78===void 0&&(M78=document.createElement("template"));var M=M78;A.call(U,M.content.cloneNode(!0),H.content.firstChild);W5k=H}H=W5k;return H},{mode:2});var iW=function(){return _.B.apply(this,arguments)||this};
_.R(iW,_.B);iW.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"}}}}};
iW.prototype.computeImagePlacement_=function(H){return H||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],iW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],iW.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],iW.prototype,"data",void 0);_.G([_.y({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.q("design:type",String)],iW.prototype,"imagePlacement",void 0);
_.G([_.b0({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],iW);
_.e(iW,"yt-card-item-text-with-image-renderer",function(){if(ABy===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;UXj===void 0&&(UXj=document.createElement("template"));var M=UXj;A.call(U,M.content.cloneNode(!0),H.content.firstChild);ABy=H}H=ABy;return H},{mode:2});var bW=function(){return _.B.apply(this,arguments)||this};
_.R(bW,_.B);bW.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"}}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],bW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],bW.prototype,"data",void 0);_.G([_.b0({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],bW);
_.e(bW,"yt-card-item-error-renderer",function(){if(H8h===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Vw5===void 0&&(Vw5=document.createElement("template"));var M=Vw5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);H8h=H}H=H8h;return H},{mode:2});var wj5;var Xjm;_.Qm("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var db=function(){return _.B.apply(this,arguments)||this};
_.R(db,_.B);_.X=db.prototype;
_.X.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"}}}}};
_.X.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.X.backgroundColorChanged_=function(){var H,U=(H=this.data)==null?void 0:H.backgroundColor;H=Q5[U||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.c4(this.hostElement).querySelector("#main-content").style.backgroundColor=H};
_.X.headerPromoBackgroundColorChanged_=function(){var H,U=(H=this.data)==null?void 0:H.headerPromoBackgroundColor;H=Q5[U||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.c4(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=H};
_.X.errorRendererVisibilityChanged_=function(){var H=this.isExpanded_,U;this.isErrorRendererVisible_=!((U=this.data)==null||!U.errorRenderer)&&!H};
_.X.onYtToggleButton_=function(H,U){this.isExpanded_=U.toggled};
db.prototype.onYtToggleButton_=db.prototype.onYtToggleButton_;db.prototype.errorRendererVisibilityChanged_=db.prototype.errorRendererVisibilityChanged_;db.prototype.headerPromoBackgroundColorChanged_=db.prototype.headerPromoBackgroundColorChanged_;db.prototype.backgroundColorChanged_=db.prototype.backgroundColorChanged_;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],db.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(egk.YtCardItemBoxBehavior),_.q("design:type",Object)],db.prototype,"ytCardItemBoxBehavior",void 0);_.G([_.g(_.jyy.YtTappableItemBehavior),_.q("design:type",Object)],db.prototype,"ytTappableItemBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],db.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],db.prototype,"isExpanded_",void 0);
_.G([_.y({value:!1}),_.q("design:type",Boolean)],db.prototype,"isErrorRendererVisible_",void 0);_.G([_.Ya("data.backgroundColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],db.prototype,"backgroundColorChanged_",null);_.G([_.Ya("data.headerPromoBackgroundColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],db.prototype,"headerPromoBackgroundColorChanged_",null);
_.G([_.Ya("data.errorRenderer","isExpanded_"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],db.prototype,"errorRendererVisibilityChanged_",null);_.G([_.Gl("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[Event,Object]),_.q("design:returntype")],db.prototype,"onYtToggleButton_",null);_.G([_.b0({is:"yt-card-item-renderer",disableElementRegistration:!0})],db);
_.e(db,"yt-card-item-renderer",function(){if(Xjm===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;wj5===void 0&&(wj5=document.createElement("template"));var M=wj5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Xjm=H}H=Xjm;return H},{mode:2});_.Qm("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Ob=function(){var H=_.B.apply(this,arguments)||this;H.hidden=!1;return H};
_.R(Ob,_.B);_.X=Ob.prototype;_.X.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.X.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.X.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var H,U=(H=this.commerceCartHeaderEntity)==null?void 0:H.isHidden;U!==void 0&&(this.hidden=U)}};
_.X.updateTitle=function(){var H=this.commerceCartHeaderEntity.isDisabled,U,A,M=(A=_.p((U=this.data)==null?void 0:U.item,RLk))==null?void 0:A.headingRenderer;M&&(U=AN(M,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+U+".0.cardItemTextRenderer.textColor",H?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.X.updateSummaryText=function(){var H=this.commerceCartHeaderEntity;if(this.compact){var U,A,M=(A=_.p((U=this.data)==null?void 0:U.item,RLk))==null?void 0:A.headingRenderer;M&&(U=AN(M,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+U+".1.cardItemTextRenderer.text",H.shortHeaderSummaryText?MT(H.shortHeaderSummaryText):H.headerSummaryText?MT(H.headerSummaryText):""))}else{var W;if(U=(W=_.p((M=this.data)==null?void 0:M.item,RLk))==null?void 0:W.additionalInfoRenderer)U=AN(U,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+U+".text",H.headerSummaryText?MT(H.headerSummaryText):"")}};
_.X.updateCheckoutButton=function(){var H=this.commerceCartHeaderEntity,U,A,M=(A=_.p((U=this.data)==null?void 0:U.item,RLk))==null?void 0:A.additionalInfoRenderer;U=AN(M,"buttonRenderer");var W;A=(W=this.commerceCartHeaderEntity)==null?void 0:W.isButtonDisabled;var w;W=(w=this.commerceCartHeaderEntity)==null?void 0:w.isButtonHidden;A!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+U+".buttonRenderer.isDisabled",A);W!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
W);var d;H=(d=H.checkoutButtonCommand)==null?void 0:d.innertubeCommand;H!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+U+".buttonRenderer.command",H)};
Ob.prototype.entityChanged=Ob.prototype.entityChanged;_.G([_.g(_.dF),_.q("design:type",Object)],Ob.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ob.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Ob.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ob.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Ob.prototype,"compact",void 0);_.G([_.y({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(H,U){return _.rH(H.entities,"commerceCartHeaderEntity",U)}}),
_.q("design:type",Object)],Ob.prototype,"commerceCartHeaderEntity",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ob.prototype,"hidden",void 0);_.G([_.Ya("commerceCartHeaderEntity","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ob.prototype,"entityChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Ob);
_.e(Ob,"ytd-commerce-cart-header-renderer",function(){if(Tmh!==void 0)return Tmh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Tmh=H},{mode:1});var i87;var b8y=_.Mb(function(H,U){var A;return(A=H.onChangeCallback)==null?void 0:A.call(H,U)},1E3),dX5=_.r(function(H){var U=H.data;
var A=H.iconMinus;H=H.iconPlus;var M=function(){return!!U().disabled},W=_.b(_.iB(0,void 0,"mKh0af")),w=W.next().value,d=W.next().value;
W=_.c$(function(){if(w()===1){var P,n;(n=(P=U()).onRemoveCommand)==null||n.call(P)}P=w()>U().maxValue?U().maxValue:w()-1;d(P);b8y(U(),P);return!1});
var O=_.c$(function(){if(w()===U().maxValue)return!1;var P=w()+1;d(P);b8y(U(),P);return!1});
_.pA(function(){d(U().value)});
var f={},J={},F={};return _.Z("quantity-incrementer-shape",null,_.Z("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.Z("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return w()===(U().onRemoveCommand?0:1)||M()},
"aria-label":function(){return w()!==1?U().minusLabel:U().minimumReachedLabel},
"on:click":W},_.Z(_.zm,{model:{circular:!0}}),_.Z("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.Z("div",{class:_.CG("ytSpecQuantityIncrementerShapeIcon",(f.ytSpecQuantityIncrementerShapeIconDisabled=function(){return M()||w()===(U().onRemoveCommand?0:1)},f))},A()))),_.Z("div",{class:_.CG("ytSpecQuantityIncrementerShapeText",(J.ytSpecQuantityIncrementerShapeTextInvalid=function(){return w()>U().maxValue},J.ytSpecQuantityIncrementerShapeTextDisabled=M,J))},w),_.Z("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return w()>=U().maxValue||M()},
"aria-label":function(){return w()!==U().maxValue?U().plusLabel:U().maximumReachedLabel},
"on:click":O},_.Z(_.zm,{model:{circular:!0}}),_.Z("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.Z("div",{class:_.CG("ytSpecQuantityIncrementerShapeIcon",(F.ytSpecQuantityIncrementerShapeIconDisabled=function(){return w()>=U().maxValue||M()},F))},H())))))},"Uf");_.LG(_.r(function(H){function U(){A().onRemoveCommand&&_.uj(A().onRemoveCommand)}
var A=H.data;var M=_.$Y(EP_,function(){return A().quantityIncrementerEntityKey});
return _.Z("yt-quantity-incrementer-view-model",null,_.Z(dX5,{data:function(){var W=A(),w;var d=M()?!((w=M())==null||!w.disabled):!1;var O;w=M()?(O=M())==null?void 0:O.quantity:A().quantity;return ewh(W,d,U,w)},
iconMinus:function(){return _.Z(_.er,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.Z(_.er,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Vf"),"yt-quantity-incrementer-view-model",{props:{data:_.sY}});var uW=function(){var H=_.B.apply(this,arguments)||this;H.compact=!1;H.hasQuantityIncrementer=!1;return H};
_.R(uW,_.B);uW.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"}}}};
uW.prototype.computeHasQuantityIncrementer=function(){var H;return!!_.p((H=this.data)==null?void 0:H.picker,a8K)};
uW.prototype.onLabelClick=function(){var H;(H=this.dropdownEl)==null||H.open()};
_.G([_.hG("ytd-dropdown-renderer"),_.q("design:type",Object)],uW.prototype,"dropdownEl",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],uW.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],uW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],uW.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],uW.prototype,"quantityColor",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],uW.prototype,"compact",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.q("design:type",Object)],uW.prototype,"hasQuantityIncrementer",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],uW);
_.e(uW,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(i87!==void 0)return i87;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return i87=H},{mode:1});var O85;var uhh;var Zx=function(){return _.B.apply(this,arguments)||this};
_.R(Zx,_.B);Zx.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Zx.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Zx.prototype.updateTitle=function(){var H=this.disabledCartItemEntity;H.disableActionName&&this.set("data.title",MT(H.disableActionName))};
Zx.prototype.updateButton=function(){var H,U=(H=this.disabledCartItemEntity.undoCommand)==null?void 0:H.innertubeCommand;U!==void 0&&(this.set("data.actionButton.buttonRenderer.command",U),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
Zx.prototype.entityChanged=Zx.prototype.entityChanged;_.G([_.g(_.dF),_.q("design:type",Object)],Zx.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Zx.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Zx.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(H,U){return _.rH(H.entities,"disabledCartItemEntity",U)}}),
_.q("design:type",Object)],Zx.prototype,"disabledCartItemEntity",void 0);_.G([_.y(),_.q("design:type",Object)],Zx.prototype,"data",void 0);_.G([_.Ya("disabledCartItemEntity","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Zx.prototype,"entityChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],Zx);
_.e(Zx,"ytd-disabled-cart-item-renderer",function(){if(uhh!==void 0)return uhh;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return uhh=H},{mode:1});_.Qm("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var fo=function(){var H=_.B.apply(this,arguments)||this;H.compact=!1;H.hidden=!1;H.errorHidden=!1;H.noOnTap=!1;return H};
_.R(fo,_.B);_.X=fo.prototype;
_.X.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"}}}};
_.X.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.X.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var H=this.firstButtonElement;H.alignByText=!0;H.iconAlignByText=!0}};
_.X.computeNoOnTap=function(H){return!H};
_.X.updateQuantityColor=function(){if(this.pickerElement){var H,U=(H=this.commerceCartItemEntity)==null?void 0:H.quantityColor;this.pickerElement.quantityColor=U}};
_.X.updateTotalPriceColor=function(){var H,U=(H=this.commerceCartItemEntity)==null?void 0:H.totalPriceColor;if(U){var A;H=_.p((A=this.data)==null?void 0:A.quantityPicker,mdz);if(A=_.p(H==null?void 0:H.price,ENn))A.textColor=U}};
_.X.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var H,U=(H=this.commerceCartItemEntity)==null?void 0:H.isHidden;U!==void 0&&(this.hidden=U)}};
_.X.updateHideErrorMessage=function(){var H,U=(H=this.commerceCartItemEntity)==null?void 0:H.hideErrorMessage;U!==void 0&&(this.errorHidden=U)};
_.X.updateQuantity=function(){var H=this,U,A=(U=this.commerceCartItemEntity)==null?void 0:U.quantity,M;U=(M=this.commerceCartItemEntity)==null?void 0:M.totalPrice;if(A){this.updateTotalPriceColor();this.updateQuantityColor();var W;M=_.p((W=this.data)==null?void 0:W.quantityPicker,mdz);if(W=_.p(M==null?void 0:M.price,ENn))W.text=U?{simpleText:U.content}:void 0;if(U=_.p(M==null?void 0:M.picker,a8K))U.quantity=A;var w;if(W=(w=_.p(M==null?void 0:M.picker,Rxh))==null?void 0:w.entries){w=!1;U=void 0;W=
_.b(W);for(M=W.next();!M.done;M=W.next())M=M.value,M.dropdownItemRenderer&&(U||(U=M.dropdownItemRenderer),M.dropdownItemRenderer.isSelected=!1,A===M.dropdownItemRenderer.int32Value&&(w=!0,M.dropdownItemRenderer.isSelected=!0));!w&&U&&(U.isSelected=!0)}_.rV(this,function(){var d;H.set("data.quantityPicker",_.dG.unsafeClone((d=H.data)==null?void 0:d.quantityPicker))})}};
fo.prototype.onYtRendererstamperFinished=fo.prototype.onYtRendererstamperFinished;fo.prototype.entityChanged=fo.prototype.entityChanged;_.G([_.y(),_.q("design:type",Object)],fo.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fo.prototype,"compact",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],fo.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],fo.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],fo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(H,U){return _.rH(H.entities,"commerceCartItemEntity",U)}}),
_.q("design:type",Object)],fo.prototype,"commerceCartItemEntity",void 0);_.G([_.y(),_.q("design:type",Object)],fo.prototype,"quantityPicker",void 0);_.G([_.y(),_.q("design:type",Object)],fo.prototype,"compactQuantityPicker",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fo.prototype,"hidden",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fo.prototype,"errorHidden",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.q("design:type",Object)],fo.prototype,"noOnTap",void 0);_.G([_.hG("ytd-commerce-cart-item-quantity-picker-renderer"),_.q("design:type",Object)],fo.prototype,"pickerElement",void 0);_.G([_.hG("yt-button-renderer"),_.q("design:type",Element)],fo.prototype,"firstButtonElement",void 0);
_.G([_.Ya("commerceCartItemEntity","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fo.prototype,"entityChanged",null);_.G([_.Gl("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fo.prototype,"onYtRendererstamperFinished",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],fo);
_.e(fo,"ytd-commerce-cart-item-renderer",function(){if(O85!==void 0)return O85;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return O85=H},{mode:2});var Z8k;var fk$;var JE=function(){return _.B.apply(this,arguments)||this};
_.R(JE,_.B);JE.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}}}}}};
JE.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
JE.prototype.updateCheckoutLineItems=function(){var H,U=(H=this.commerceCartCheckoutButtonEntity)==null?void 0:H.checkoutLineItems;U&&(H=U.map(function(A){a:{var M=A.price,W=A.description;switch(A.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":A={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:MT(W),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"}}},price:{cardItemTextRenderer:{text:MT(M),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"}}}}};break a;default:A={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:MT(W),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"}}},price:{cardItemTextRenderer:{text:MT(M),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"}}}}}}}return A}),this.set("data.summaryLineItems",H))};
JE.prototype.updateIsHidden=function(){var H,U=(H=this.commerceCartCheckoutButtonEntity)==null?void 0:H.isHidden;U!==void 0&&(this.hostElement.hidden=U)};
JE.prototype.entityChanged=JE.prototype.entityChanged;_.G([_.g(_.dF),_.q("design:type",Object)],JE.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],JE.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],JE.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],JE.prototype,"data",void 0);_.G([_.y({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:ZVt}),_.q("design:type",Object)],JE.prototype,"commerceCartCheckoutButtonEntity",void 0);_.G([_.Ya("commerceCartCheckoutButtonEntity","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],JE.prototype,"entityChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],JE);
_.e(JE,"ytd-commerce-cart-summary-renderer",function(){if(fk$!==void 0)return fk$;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return fk$=H},{mode:1});var JB8={};JB8.InjectBehavior=[RAV.InjectBehavior];var K57;var of5;var Ko=function(){return _.B.apply(this,arguments)||this};
_.R(Ko,_.B);
Ko.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:_.Vm("menuRenderer")}}};
Ko.prototype.onMenuTap=function(H){H.stopPropagation()};
_.D5.Object.defineProperties(Ko.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 H,U;return!(((H=this.data)==null||!H.sectionHeading)&&((U=this.data)==null?void 0:U.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var H,U;return!(((H=this.data)==null||!H.image)&&((U=this.data)==null?void 0:U.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var H,U;return!(((H=this.data)==null||!H.menu)&&((U=this.data)==null?void 0:U.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Ko.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.jyy.YtTappableItemBehavior),_.q("design:type",Object)],Ko.prototype,"ytTappableItemBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ko.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.a("data.accessibilityData"),_.q("design:type",String),_.q("design:paramtypes",[])],Ko.prototype,"ariaLabel",null);_.G([_.a("data.sectionHeading","data.layout"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Ko.prototype,"sectionHeadingVisible",null);_.G([_.a("data.image","data.layout"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Ko.prototype,"imageVisible",null);
_.G([_.a("data.menu","data.layout"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Ko.prototype,"menuVisible",null);_.G([_.b0({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Ko);
_.e(Ko,"yt-activity-item-renderer",function(){if(of5===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;K57===void 0&&(K57=document.createElement("template"));var M=K57;A.call(U,M.content.cloneNode(!0),H.content.firstChild);of5=H}H=of5;return H},{mode:2});var F5B;var Pm7;var sY7;var nfm;var o9=function(){return _.B.apply(this,arguments)||this};
_.R(o9,_.B);
o9.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"}}}}};
o9.prototype.backgroundColorChanged_=function(){var H,U=(H=this.data)==null?void 0:H.backgroundColor;this.hostElement.style.backgroundColor=Q5[U||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
o9.prototype.backgroundColorChanged_=o9.prototype.backgroundColorChanged_;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],o9.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],o9.prototype,"data",void 0);
_.G([_.Ya("data.backgroundColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],o9.prototype,"backgroundColorChanged_",null);_.G([_.b0({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],o9);
_.e(o9,"yt-offer-item-upsell-renderer",function(){if(nfm===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;sY7===void 0&&(sY7=document.createElement("template"));var M=sY7;A.call(U,M.content.cloneNode(!0),H.content.firstChild);nfm=H}H=nfm;return H},{mode:2});_.Qm("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Fo=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};H.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return H};
_.R(Fo,_.B);_.X=Fo.prototype;
_.X.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:_.Vm("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.X.computeContainerStyle_=function(H){return H};
_.X.computeContainerIsHidden_=function(H){return H&&!!H.isHidden};
_.X.computeShowSpinner_=function(H,U){return H&&U==="in-progress"};
_.X.computeShowMoreContentsButton_=function(H,U,A,M,W){return!(!(M&&M.length||W&&W.length&&A)||!H||U)};
_.X.onToggleButton_=function(H){var U=this;H.stopPropagation();this.isExpanded_=H.detail&&H.detail.toggled;var A,M;this.isExpanded_&&!this.data.continuationSection.length&&((A=this.data)==null?0:(M=A.continuation)==null?0:M.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.cg(this.hostElement,"yt-load-next-continuation",function(W){return U.getContinuationUrl_(U.data.continuation.onClickContinuationData,W)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.rs(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.X.onShowMoreContentsButtonClicked_=function(H){var U=this;H.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.cg(this.hostElement,"yt-load-next-continuation",function(A){return U.getContinuationUrl_(U.data.continuations[0].nextContinuationData,A)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.rs(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.X.getContinuationUrl_=function(H,U){var A=H.continuation;H=H.clickTrackingParams;var M=_.XK();H&&M&&_.NY(M,_.IS(H));return _.kZ(U,{continuation:A})};
_.X.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var H=_.c4(this.hostElement).querySelector("#continuation-section");H&&(H=H.querySelectorAll("ytmusic-item-section-renderer"))&&H.forEach(function(U){return U.classList.add("memberships-and-purchases")})};
_.X.dataChanged_=function(){var H;this.isExpanded_=!((H=this.data)==null||!H.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.X.updateCardOnClickCommand_=function(H){H=_.p(H,K$h);var U,A;this.data&&((U=this.data)==null?0:U.targetId)&&H&&H.targetId===((A=this.data)==null?void 0:A.targetId)&&H.onClickCommand&&(this.data.onClickCommand=H.onClickCommand,this.isOnClickCommand_=!0)};
_.X.backgroundColorChanged_=function(){var H,U=(H=this.data)==null?void 0:H.backgroundColor;this.hostElement.style.backgroundColor=Q5[U||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Fo.prototype.backgroundColorChanged_=Fo.prototype.backgroundColorChanged_;Fo.prototype.dataChanged_=Fo.prototype.dataChanged_;Fo.prototype.nextContinuationDataUpdated_=Fo.prototype.nextContinuationDataUpdated_;Fo.prototype.onToggleButton_=Fo.prototype.onToggleButton_;_.G([_.g(_.RG),_.q("design:type",Object)],Fo.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Fo.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Fo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.Eq.YtNextContinuationBehavior),_.q("design:type",Object)],Fo.prototype,"ytNextContinuationBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.G([_.g(JB8.InjectBehavior),_.q("design:type",Object)],Fo.prototype,"injectBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Fo.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Fo.prototype,"compact",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Fo.prototype,"isExpanded_",void 0);_.G([_.y({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.q("design:type",String)],Fo.prototype,"containerStyle_",void 0);_.G([_.y({value:"not-started"}),_.q("design:type",String)],Fo.prototype,"continuationStatus_",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.q("design:type",Boolean)],Fo.prototype,"showSpinner_",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Fo.prototype,"isOnClickCommand_",void 0);_.G([_.y({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.q("design:type",Boolean)],Fo.prototype,"showMoreContentsButton_",void 0);
_.G([_.y({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(H,U){return!U||H.entities?null:_.rH(H.entities,"cardItemContainerEntity",U)}}),
_.q("design:type",Object)],Fo.prototype,"cardItemContainerEntity_",void 0);_.G([_.Gl("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Fo.prototype,"onToggleButton_",null);_.G([_.Gl("yt-next-continuation-data-updated"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Fo.prototype,"nextContinuationDataUpdated_",null);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Fo.prototype,"dataChanged_",null);_.G([_.Ya("data.backgroundColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Fo.prototype,"backgroundColorChanged_",null);_.G([_.b0({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Fo);
_.e(Fo,"yt-card-item-container-renderer",function(){if(Pm7===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;F5B===void 0&&(F5B=document.createElement("template"));var M=F5B;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Pm7=H}H=Pm7;return H},{mode:2});var PV=function(){return _.B.apply(this,arguments)||this};
_.R(PV,_.B);PV.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"}}}};
PV.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
PV.prototype.computeLoadingHidden=function(){var H;return!((H=this.commerceCartPageStateEntity)==null?0:H.cartActionInProgress)};
PV.prototype.updateNotification=function(){var H,U=(H=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:H.summaryText;U&&this.set("data.cartNotification",MT(U))};
PV.prototype.notificationEntityChanged=PV.prototype.notificationEntityChanged;_.G([_.g(_.dF),_.q("design:type",Object)],PV.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],PV.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],PV.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],PV.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],PV.prototype,"data",void 0);_.G([_.y({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(H,U){return _.rH(H.entities,"commerceCartExpandableNotificationEntity",U)}}),
_.q("design:type",Object)],PV.prototype,"commerceCartExpandableNotificationEntity",void 0);_.G([_.y({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(H,U){return _.rH(H.entities,"commerceCartPageStateEntity",U)}}),
_.q("design:type",Object)],PV.prototype,"commerceCartPageStateEntity",void 0);_.G([_.hG("#spinner"),_.q("design:type",HTMLElement)],PV.prototype,"spinner",void 0);_.G([_.Ya("commerceCartExpandableNotificationEntity","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],PV.prototype,"notificationEntityChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],PV);
_.e(PV,"ytd-commerce-cart-renderer",function(){if(Z8k!==void 0)return Z8k;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Z8k=H},{mode:1});var Nhk;var sb=function(){var H=_.B.apply(this,arguments)||this;H.bigImage=!1;return H};
_.R(sb,_.B);_.D5.Object.defineProperties(sb.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.placeholderImageUrl}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],sb.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],sb.prototype,"bigImage",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],sb.prototype,"placeholderImageUrl",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],sb);
_.e(sb,"ytd-empty-product-shelf-renderer",function(){if(Nhk!==void 0)return Nhk;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Nhk=H},{mode:1});var S$h;var no=function(){var H=_.B.apply(this,arguments)||this;H.itemStyle="link-item";H.watchMetadataRefresh=!1;H.skinnyMode=!1;H.metaPanel=!1;H.inStructuredDescription=!1;H.detailedDescriptionOverride=!1;H.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};H.updateOnResizeDebouncer=null;return H};
_.R(no,_.B);_.X=no.prototype;_.X.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.X.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"}}}}};
_.X.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.X.attachVEs=function(H){H.trackingParams&&_.k$().graftServerVe(H.trackingParams)};
_.X.handleUpdateMerchShelfAction=function(H){var U=this,A=_.p(H.updateMerchandiseShelfAction.merchandiseShelf,_.l4h);A&&(A.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){U.attachVEs(A);U.data=A},Number(A.renderDelayMs))):(this.attachVEs(A),this.data=A))};
_.X.updateOnResize=function(){if(this.JSC$17343_scrollContainer!==void 0&&this.JSC$17343_scrollContainer.clientWidth!==0&&this.items!==void 0){var H=this.JSC$17343_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-H));this.ytdHorizontalListBehavior.reposition_();var U;switch((U=this.data)==null?void 0:U.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var A,
M;((A=this.data)==null?void 0:(M=A.items)==null?void 0:M.length)===1?this.itemStyle="cta-item":this.itemStyle=H>=740?"large-item":"small-item"}}};
_.X.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.yF(this.updateOnResizeDebouncer,_.p3.after(100),this.updateOnResize)};
no.prototype.debouncedUpdateOnResize=no.prototype.debouncedUpdateOnResize;no.prototype.dataChanged=no.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],no.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.x0.YtdHorizontalListBehavior),_.q("design:type",Object)],no.prototype,"ytdHorizontalListBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],no.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],no.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],no.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],no.prototype,"itemStyle",void 0);_.G([_.y({value:6}),_.q("design:type",Number)],no.prototype,"initialCount",void 0);
_.G([_.y({value:"data.items"}),_.q("design:type",String)],no.prototype,"itemsPath",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],no.prototype,"watchMetadataRefresh",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],no.prototype,"skinnyMode",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],no.prototype,"metaPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],no.prototype,"inStructuredDescription",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],no.prototype,"detailedDescriptionOverride",void 0);_.G([_.hG("#items"),_.q("design:type",HTMLDivElement)],no.prototype,"items",void 0);_.G([_.hG("#scroll-container"),_.q("design:type",HTMLDivElement)],no.prototype,"JSC$17343_scrollContainer",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],no.prototype,"dataChanged",null);
_.G([_.Gl("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],no.prototype,"debouncedUpdateOnResize",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],no);
_.e(no,"ytd-merch-shelf-renderer",function(){if(S$h!==void 0)return S$h;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return S$h=H},{mode:2});var pjj;var NV=function(){var H=_.B.apply(this,arguments)||this;H.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 H};
_.R(NV,_.B);_.X=NV.prototype;
_.X.addBackstagePostAction=function(H){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(H=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",H))&&(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:H}):this.set("data.contents",[{backstagePostThreadRenderer:H}]))};
_.X.addBackstageCommentAction=function(H){var U=this.get("addBackstageCommentAction.parentId",H);H=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",H);if(U&&H){U=this.postIdToIndices(U);for(var A=0;A<U.length;A++){var M=U[A];if(M<0)break;M="data.contents."+M+".backstagePostThreadRenderer.comments";this.get(M)&&(this.get(M+".backstageCommentsRenderer.contents")&&this.push(M+".backstageCommentsRenderer.contents",{commentThreadRenderer:H}),this.get(M+".backstageCommentsRenderer.teaserContents")?
this.push(M+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:H}):this.set(M+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:H}]))}}};
_.X.addBackstageReplyAction=function(H){var U=this.get("addBackstageReplyAction.parentId",H);H=this.get("addBackstageReplyAction.renderer.commentRenderer",H);U&&H&&this.setCreatorReply(U,H)};
_.X.banAuthorAction=function(H){var U=this.get("banAuthorAction.commentId",H);U&&(H=this.get("banAuthorAction.parentCommentId",H)||this.getParentPostId(U),this.removeFromStream(U,H))};
_.X.hideReportedCommentAction=function(H){var U=this.get("hideReportedCommentAction.commentId",H);U&&((H=this.get("hideReportedCommentAction.parentCommentId",H))||(H=this.getParentPostId(U)),this.removeFromStream(U,H))};
_.X.replaceBackstageCommentAction=function(H){var U=this.get("replaceBackstageCommentAction.commentId",H),A=this.get("replaceBackstageCommentAction.parentId",H);H=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",H);if(U&&A&&H){A=this.postIdToIndices(A);for(var M=0;M<A.length;M++){var W=A[M];if(W<0)break;var w=this.commentIdToIndex(U,W,!1);if(w>=0){var d=this.get("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+w+".commentThreadRenderer.replies.commentRepliesRenderer");
d&&(H.replies={commentRepliesRenderer:d});this.splice("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",w,1,{commentThreadRenderer:H})}w=this.commentIdToIndex(U,W,!0);if(w>=0){if(d=this.get("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(w+".commentThreadRenderer.replies.commentRepliesRenderer")))H.replies={commentRepliesRenderer:d};this.splice("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
w,1,{commentThreadRenderer:H})}}}};
_.X.replaceBackstagePostAction=function(H){var U=this.get("replaceBackstagePostAction.itemId",H);if(U){U=this.postIdToIndices(U);for(var A=0;A<U.length;A++){var M=U[A];if(M<0)break;var W=this.getPostRendererType(M),w=this.get("replaceBackstagePostAction.renderer."+W,H);if(!w&&W!=="sharedPostRenderer")break;var d=!1;w||(d=!0,w=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",H));if(!w)break;var O={};d?(_.Ap(O,Mfp,w),this.set("data.contents."+M+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
O)):(_.Ap(O,new _.me(W),w),this.set("data.contents."+M+".backstagePostThreadRenderer.post",O))}}};
_.X.replaceBackstageReplyAction=function(H){var U=this.get("replaceBackstageReplyAction.replyId",H),A=this.get("replaceBackstageReplyAction.parentId",H);H=this.get("replaceBackstageReplyAction.renderer.commentRenderer",H);U&&H&&A&&this.setCreatorReply(A,H)};
_.X.removeCommentAction=function(H){var U=this.get("removeCommentAction.commentId",H);if(U){var A=this.get("removeCommentAction.parentCommentId",H);A&&this.get("removeCommentAction.isCreatorReply",H)?this.setCreatorReply(A,void 0):(A||(A=this.getParentPostId(U)),this.removeFromStream(U,A))}};
_.X.setCreatorReply=function(H,U){var A=this.getParentPostId(H);if(A){A=this.postIdToIndices(A);for(var M=0;M<A.length;M++){var W=A[M];if(W<0)break;var w=this.commentIdToIndex(H,W,!1);if(w>=0){var d="data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+w;w=d+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";d+=".commentThreadRenderer.replies";U==void 0?(this.set(d,{}),this.set(w,!1)):(this.set(d,{commentRepliesRenderer:{teaserContents:[{commentRenderer:U}]}}),
this.set(d+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(w,!0))}w=this.commentIdToIndex(H,W,!0);w>=0&&(w="data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+w,W=w+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",w+=".commentThreadRenderer.replies",U==void 0?(this.set(w,{}),this.set(W,!1)):(this.set(w,{commentRepliesRenderer:{teaserContents:[{commentRenderer:U}]}}),this.set(W,!0)))}}};
_.X.removeFromStream=function(H,U){if(U){U=this.postIdToIndices(U);for(var A=0;A<U.length;A++){var M=U[A];if(M<0)break;var W=this.commentIdToIndex(H,M,!1);W>=0&&this.splice("data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",W,1);W=this.commentIdToIndex(H,M,!0);W>=0&&this.splice("data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",W,1);M="data.contents."+M+".backstagePostThreadRenderer.post.backstagePostRenderer";
W=M+".backstageAttachment.pollRenderer.votedCommentId";this.get(W)===H&&(this.set(W,null),this.set(M+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(U=this.postIdToIndices(H).reverse(),A=0;A<U.length;A++){M=U[A];if(M<0)break;W=this.getPostRendererType(M);var w=this.get("backstagePostThreadRenderer.post."+W,this.data.contents[M]);w.postId===H?this.splice("data.contents",M,1):W==="sharedPostRenderer"&&this.set("data.contents."+M+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);w.scheduledPublishTimeSec&&_.yr(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.X.postIdToIndices=function(H){for(var U=[],A=0;A<this.data.contents.length;A++){var M=this.getPostRendererType(A);this.get("backstagePostThreadRenderer.post."+M+".postId",this.data.contents[A])===H&&U.push(A);if(M==="sharedPostRenderer"){var W=this.get("backstagePostThreadRenderer.post."+M+".originalPost.backstagePostRenderer.postId",this.data.contents[A]);M=this.get("backstagePostThreadRenderer.post."+M+".originalPost.postRenderer.postId",this.data.contents[A]);W!==H&&M!==H||U.push(A)}}return U};
_.X.commentIdToIndex=function(H,U,A){if(U<0)return-1;var M,W,w,d,O=_.p((M=this.data)==null?void 0:(W=M.contents)==null?void 0:(w=W[U])==null?void 0:(d=w.backstagePostThreadRenderer)==null?void 0:d.comments,UAB);return(U=A?O==null?void 0:O.teaserContents:O==null?void 0:O.contents)&&U.length?U.findIndex(function(f){return _.p(f,rM3).comment.commentRenderer.commentId===H}):-1};
_.X.getParentPostId=function(H){H=H.split(".");if(H[1])return H[0]};
_.X.getPostRendererType=function(H){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[H])?"sharedPostRenderer":"backstagePostRenderer"};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],NV.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],NV.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,value:_.S("enable_community_page_on_desktop")}),_.q("design:type",Boolean)],NV.prototype,"useSmallerPostContainer",void 0);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-backstage-items"})],NV);
_.e(NV,"ytd-backstage-items",function(){if(pjj!==void 0)return pjj;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return pjj=
H},{mode:1});var L55;var R5p={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},S6=function(){var H=_.B.apply(this,arguments)||this;H.disablePrescanVisibility=!0;H.canScheduleJobs=!0;H.engagementPanel=!1;H.hidePanelButton=!1;H.isWatchGrid=
!1;H.hasShownSubscribersOnlyDisclaimer=!1;H.hasShownSuperfanOnlyDisclaimer=!1;H.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","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_"};H.TEST_ONLY=void 0;return H};
_.R(S6,_.B);_.X=S6.prototype;_.X.created=function(){this.initCommentsCsi_();_.S("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.S("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.X.contentsChanged_=function(){var H;(H=this.data)!=null&&H.contents&&this.tickForCommentsTimer_("cml")};
_.X.headerChanged_=function(){var H;(H=this.data)!=null&&H.header&&this.tickForCommentsTimer_("cmhl")};
_.X.initCommentsCsi_=function(){_.ia("wn_comments");var H=_.XK();H&&_.wH({clientScreenNonce:H},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.X.createCommentAction_=function(H){H=_.dG.unsafeClone(H);var U,A;if(H=(U=_.p(H,gGm))==null?void 0:(A=U.contents)==null?void 0:A.commentThreadRenderer){var M,W,w,d,O,f;!this.isBackstage&&((M=this.data)==null?0:(W=M.header)==null?0:(w=W.commentsHeaderRenderer)==null?0:(d=w.createRenderer)==null?0:(O=d.commentSimpleboxRenderer)==null?0:(f=O.zeroStep)==null?0:f.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var J,
F,P;this.isBackstage&&_.p((J=this.data)==null?void 0:(F=J.header)==null?void 0:(P=F.commentsHeaderRenderer)==null?void 0:P.zeroStateMessage,WMr)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(H)}};
_.X.doReplyInsert_=function(H,U,A,M){M?this.splice(H,M,0,U):this.push(H,U)};
_.X.getRepliesPath_=function(H){return"data.contents."+H+".commentThreadRenderer.replies"};
_.X.getRepliesContentsPath_=function(H,U){H=this.getRepliesPath_(H);return U?H+".commentRepliesRenderer.teaserContents":H+".commentRepliesRenderer.contents"};
_.X.showSubscribersOnlyDisclaimer_=function(H){(H=H.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(H))&&(_.yr(this.hostElement,"yt-open-popup-action",[H,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.X.showSuperfanOnlyDisclaimer_=function(H){(H=H.detail.command)&&!this.hasShownSuperfanOnlyDisclaimer&&(H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(H))&&(_.yr(this.hostElement,"yt-open-popup-action",[H,this]),this.hasShownSuperfanOnlyDisclaimer=!0)};
_.X.createCommentReplyAction_=function(H){H=_.dG.unsafeClone(H);var U=_.p(H,a7k);if(H=U==null?void 0:U.contents){var A=this.commentIdToIndex_(U==null?void 0:U.parentCommentId);if(!(A<0)){var M=this.getRepliesPath_(A);if(this.get(M)){U=U.replyToCommentId;M=this.getRepliesContentsPath_(A,!1);if(this.get(M)){var W=this.get(M).length,w=M+"."+(W-1)+".continuationItemRenderer";this.get(w+".button")?(w=this.replyIdToIndex_(U,A,!1),this.doReplyInsert_(M,H,w,W-1)):this.get(w)||(W=this.replyIdToIndex_(U,A,
!1),this.doReplyInsert_(M,H,W,null))}M=this.getRepliesContentsPath_(A,!0);this.get(M)?(A=this.replyIdToIndex_(U,A,!0),(!U||A>=0)&&this.doReplyInsert_(M,H,A,null)):this.set(M,[H])}else this.set(M,{commentRepliesRenderer:{teaserContents:[H]}})}}};
_.X.hideReportedCommentAction_=function(H){var U=_.p(H,ja3);if(H=U==null?void 0:U.commentId)(U=this.get("parentCommentId",U))||(U=this.getParentCommentId_(H)),this.remove_(H,U)};
_.X.getParentCommentId_=function(H){H=H.split(".");if(H[1])return H[0]};
_.X.removeCommentAction_=function(H){var U=_.p(H,cM3);if(H=U==null?void 0:U.commentId)U=(U==null?void 0:U.parentCommentId)||this.getParentCommentId_(H),this.remove_(H,U)};
_.X.pinCommentAction_=function(H){H=_.dG.unsafeClone(H);var U=_.p(H,tfp);U!=null&&U.commentId&&(H=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",H))&&(this.remove_(U.commentId),this.insert_(H,!0))};
_.X.unpinCommentAction_=function(H){H=_.dG.unsafeClone(H);H=_.p(H,yMw);if(H!=null&&H.commentId){var U,A,M=(U=H.actionResult)==null?void 0:(A=U.update)==null?void 0:A.commentThreadRenderer;M&&(this.remove_(H.commentId),this.insert_(M))}};
_.X.banAuthorAction_=function(H){var U=_.p(H,mAw);U!=null&&U.commentId&&(H=U.commentId,U=U.parentCommentId||this.getParentCommentId_(H),this.remove_(H,U))};
_.X.handleScrollToCommentElement_=function(H){this.hostElement.contains(H)&&(this.nearestScrollParent||(this.nearestScrollParent=DW8(H)),this.isCommentVisibleInScrollParent(H)||H.scrollIntoView({behavior:"smooth",block:"nearest"}))};
_.X.isCommentVisibleInScrollParent=function(H){if(!this.nearestScrollParent)return!1;H=H.getBoundingClientRect();var U=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return H.top>=U.top&&H.bottom<=U.bottom};
_.X.commentIdToIndex_=function(H){var U;return H&&(U=this.data)!=null&&U.contents?this.data.contents.findIndex(function(A){A=A.commentThreadRenderer;var M;return H===((A==null?void 0:A.commentViewModel)&&((M=_.p(A.commentViewModel,Y9w))==null?void 0:M.commentId))}):-1};
_.X.insert_=function(H,U){U=U===void 0?!1:U;var A,M;if((A=this.data)==null?0:(M=A.contents)==null?0:M.some(function(w){return!!w.commentThreadRenderer}))for(A=0,M=this.data.contents.length;A<M;A++){var W=this.data.contents[A].commentThreadRenderer;
if(R5p[H.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=R5p[W.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){U&&R5p[H.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===R5p[W.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",A,1,{commentThreadRenderer:H}):this.splice("data.contents",A,0,{commentThreadRenderer:H});break}}else this.set("data.contents",[{commentThreadRenderer:H}])};
_.X.doReplyRemove_=function(H,U,A){H=this.replyIdToIndex_(H,U,A);H<0||(U=this.getRepliesContentsPath_(U,A),this.splice(U,H,1))};
_.X.remove_=function(H,U){U=this.commentIdToIndex_(U);U<0?(U=this.commentIdToIndex_(H),U<0||this.splice("data.contents",U,1)):_.S("web_delhi_comment_threads")||(this.doReplyRemove_(H,U,!1),this.doReplyRemove_(H,U,!0))};
_.X.replyIdToIndex_=function(H,U,A){if(U<0)return-1;U=this.getRepliesContentsPath_(U,A);U=this.get(U);if(!U||!U.length)return-1;A=0;for(var M=U.length;A<M;A++){var W=void 0,w=void 0;if(((W=U[A])==null?void 0:(w=W.commentViewModel)==null?void 0:w.commentId)===H)return A}return-1};
_.X.tickForCommentsTimer_=function(H){_.dH(H,void 0,"wn_comments")};
_.X.reloadComments_=function(H){H=_.p(H,l7m);_.p(H==null?void 0:H.command,_.XA)&&_.rs(this.hostElement,[H==null?void 0:H.command])};
_.D5.Object.defineProperties(S6.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return!!((H=this.data)==null?0:(U=H.header)==null?0:(A=U.commentsHeaderRenderer)==null?0:A.isBackstageContent)}}});
_.D5.Object.defineProperties(S6,{template:{configurable:!0,enumerable:!0,get:function(){if(L55===void 0){var H=document.createElement("template");_.E(H,'\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<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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);L55=H}H=L55;return H}}});
S6.prototype.showSuperfanOnlyDisclaimer_=S6.prototype.showSuperfanOnlyDisclaimer_;S6.prototype.showSubscribersOnlyDisclaimer_=S6.prototype.showSubscribersOnlyDisclaimer_;S6.prototype.headerChanged_=S6.prototype.headerChanged_;S6.prototype.contentsChanged_=S6.prototype.contentsChanged_;_.G([_.g(_.m1),_.q("design:type",Object)],S6.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.g(_.nm.YtPlayerListenerBehavior),_.q("design:type",Function)],S6.prototype,"ytPlayerListenerBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],S6.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],S6.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data.header.commentsHeaderRenderer.isBackstageContent"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],S6.prototype,"isBackstage",null);
_.G([_.y(),_.q("design:type",Object)],S6.prototype,"disablePrescanVisibility",void 0);_.G([_.y(),_.q("design:type",Object)],S6.prototype,"canScheduleJobs",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],S6.prototype,"engagementPanel",void 0);_.G([_.y(),_.q("design:type",Object)],S6.prototype,"hidePanelButton",void 0);_.G([_.y(),_.q("design:type",Object)],S6.prototype,"isWatchGrid",void 0);_.G([_.y(),_.q("design:type",Object)],S6.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.G([_.y(),_.q("design:type",Object)],S6.prototype,"hasShownSuperfanOnlyDisclaimer",void 0);_.G([_.Ya("data.contents"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],S6.prototype,"contentsChanged_",null);_.G([_.Ya("data.header"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],S6.prototype,"headerChanged_",null);
_.G([_.Gl("yt-show-subscribers-only-disclaimer"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],S6.prototype,"showSubscribersOnlyDisclaimer_",null);_.G([_.Gl("yt-show-superfan-only-snackbar"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],S6.prototype,"showSuperfanOnlyDisclaimer_",null);_.G([_.dX({is:"ytd-comments"})],S6);var po=function(){return _.v4.apply(this,arguments)||this};
_.R(po,_.v4);_.X=po.prototype;_.X.bindIf=function(H,U,A){return H?U:A};
_.X.bindIfDefined=function(H,U){return H!==void 0?H:U};
_.X.booleanString=function(H){return(!!H).toString()};
_.X.equals=function(){for(var H=_.QY.apply(0,arguments),U=H[0],A=1;A<H.length;A++)if(U!=H[A])return!1;return!0};
_.X.isGreaterThan=function(H,U){return H>U};
_.X.isLessThan=function(H,U){return H<U};
_.X.logicalAND=function(){for(var H=_.QY.apply(0,arguments),U=!!H[0],A=1;A<H.length;A++)U=U&&!!H[A];return U};
_.X.logicalOR=function(){for(var H=_.QY.apply(0,arguments),U=!!H[0],A=1;A<H.length;A++)U=U||!!H[A];return U};
_.X.toBool=function(H){return!!H};
po.prototype.toBool=po.prototype.toBool;po.prototype.logicalOR=po.prototype.logicalOR;po.prototype.logicalAND=po.prototype.logicalAND;po.prototype.isLessThan=po.prototype.isLessThan;po.prototype.isGreaterThan=po.prototype.isGreaterThan;po.prototype.equals=po.prototype.equals;po.prototype.booleanString=po.prototype.booleanString;po.prototype.bindIfDefined=po.prototype.bindIfDefined;po.prototype.bindIf=po.prototype.bindIf;_.G([_.Tl()],po);_.Ef$=[po.prototype];var mXy;var gfj;var Lo=function(){return _.B.apply(this,arguments)||this};
_.R(Lo,_.B);Lo.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Lo.prototype.onBackIconTap_=function(){window.history.back()};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Lo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Lo.prototype,"data",void 0);_.G([_.b0({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Lo);
_.e(Lo,"yt-header-with-back-renderer",function(){if(gfj===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;mXy===void 0&&(mXy=document.createElement("template"));var M=mXy;A.call(U,M.content.cloneNode(!0),H.content.firstChild);gfj=H}H=gfj;return H},{mode:2});var akh;var xXY;var R9=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.R(R9,_.B);_.X=R9.prototype;_.X.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.X.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&(this.isDarkTheme=H,this.setUrl())};
_.X.dataChanged=function(){var H=this;if(this.data){var U=this.setUrl();U&&_.Bn({destination:window,iframe:this.iframe,origin:_.TGE(U.toString()),channelName:"yt-iframe",onMessage:function(A){(A=H.getCommunicationCommand(A.data))&&H.ytComponentBehavior.resolveCommand(A)},
onEstablished:function(){}})}};
_.X.setUrl=function(){if(this.data&&this.data.iframeUrl){var H=_.PW(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(H)return _.wY(this.iframe,H),H}};
_.X.getCommunicationCommand=function(H){var U;if((U=this.data)!=null&&U.onCommunicationCommandsMap){U=this.data.onCommunicationCommandsMap.find(function(W){return W.key===H});
if(U==null?0:U.value)return U==null?void 0:U.value;try{var A=XiH(_.Q0(H)),M=this.data.onCommunicationCommandsMap.find(function(W){return W.key===(A==null?void 0:A.getMethodName())});
if(M==null?0:M.value)return M==null?void 0:M.value}catch(W){}}};
R9.prototype.dataChanged=R9.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],R9.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],R9.prototype,"actionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],R9.prototype,"data",void 0);
_.G([_.y({value:!1}),_.q("design:type",Boolean)],R9.prototype,"isDarkTheme",void 0);_.G([_.hG("#iframe"),_.q("design:type",HTMLIFrameElement)],R9.prototype,"iframe",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],R9.prototype,"dataChanged",null);_.G([_.b0({is:"yt-iframe-renderer",disableElementRegistration:!0})],R9);
_.e(R9,"yt-iframe-renderer",function(){if(xXY===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;akh===void 0&&(akh=document.createElement("template"));var M=akh;A.call(U,M.content.cloneNode(!0),H.content.firstChild);xXY=H}H=xXY;return H},{mode:2});_.Eb=function(H){_.XG.call(this);this.callback=H;this.bezier=new jxV(0,0,.4,0,.2,1,1,1);this.delay=new _.GS(this.next,window,this);this.JSC$17383_animating=!1;_.kl(this,this.delay)};
_.R(_.Eb,_.XG);_.Eb.prototype.isAnimating=function(){return this.JSC$17383_animating};
_.Eb.prototype.start=function(H,U,A){this.config={from:H,to:U,duration:A,startTime:(0,_.lD)()};this.JSC$17383_animating=!0;this.next()};
_.Eb.prototype.stop=function(){this.delay.stop();this.JSC$17383_animating=!1;this.config=void 0};
_.Eb.prototype.next=function(){if(this.config){var H=this.config,U=H.from,A=H.to,M=H.duration;H=H.startTime;var W=(0,_.lD)()-H;H=this.bezier;M=sRw(H,W/M);if(M==0)H=H.y0;else if(M==1)H=H.y3;else{W=wp(H.y0,H.y1,M);var w=wp(H.y1,H.y2,M);H=wp(H.y2,H.y3,M);W=wp(W,w,M);w=wp(w,H,M);H=wp(W,w,M)}H=_.b$(H,0,1);this.callback(U+(A-U)*H);H<1?this.delay.start():this.JSC$17383_animating=!1}};_.mG=new _.g3("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var z5f={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},t75=function(H,U,A,M){_.XG.call(this);this.JSC$17394_miniAppId=H;this.localReleaseId=U;this.derivedDeviceInterface=A;this.isForeground=M;this.JSC$17394_playNonceResolver=new _.r1;this.playPingTimerId=NaN;this.playPingIntervalMs=_.hr("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.hr("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.S("enable_displaying_ppn");this.JSC$17394_miniAppClientDataProvider=_.lx().resolve(_.mG);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;CmX(this);var W=setTimeout(function(){_.Na(new _.bD("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17394_playNonceResolver.promise.then(function(){clearTimeout(W)})};
_.R(t75,_.XG);var yBp=function(H,U){H.JSC$17394_playNonceResolver.resolve(U!=null?U:MZ(8));H.enableDisplayingPpn&&cBX(H).then(function(A){H.JSC$17394_miniAppClientDataProvider.clientData.set("post_play_nonce",A)})},cBX=function(H){return _.u(function(U){return U.nextAddress==1?U.yield(H.JSC$17394_playNonceResolver.promise,2):U.return(U.yieldResult)})},CmX=function(H){var U,A;
_.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$17394_playNonceResolver.promise,2);U=M.yieldResult;A={miniAppInfo:{externalPostId:H.JSC$17394_miniAppId,localReleaseId:H.localReleaseId,postPlayNonce:U,derivedDeviceInterface:H.derivedDeviceInterface}};_.wH(A);_.DO(M)})},rBh=function(H){H.state!==0?_.Na(new _.bD("[MiniAppPlayLogger] recordPlayStart failed with state "+z5f[H.state])):(H.state=1,gb(H,"ma_cl"),a9(H,"PLAY_EVENT_TYPE_PLAY_START"),Bhh(H))},e5Y=function(H){H.isForeground=!1;
a9(H,"PLAY_EVENT_TYPE_PLAY_PAUSE")},DXf=function(H){H.state!==1&&H.state!==2?_.Na(new _.bD("[MiniAppPlayLogger] recordPlayEnd failed with state "+z5f[H.state])):(H.state=3,window.clearInterval(H.playPingTimerId),H.playPingTimerId=NaN,rqF(),a9(H,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},$Xk=function(H,U){H.state===2&&H.gameReady&&(H.firstClickRecorded?Date.now()-H.clickRecordedMs<H.playClickIntervalMs||(H.clickRecordedMs=Date.now(),a9(H,"PLAY_EVENT_TYPE_PLAY_CLICK")):U&&(gb(H,"ma_fua"),a9(H,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),H.firstClickRecorded=!0,H.clickRecordedMs=Date.now()))};
t75.prototype.logError=function(H){var U=this,A;_.u(function(M){if(M.nextAddress==1)return H.metadata.externalPostId=U.JSC$17394_miniAppId,A=H.metadata,M.yield(Promise.race([U.JSC$17394_playNonceResolver.promise,new Promise(function(W){setTimeout(function(){W("")},3E4)})]),2);
A.postPlayNonce=M.yieldResult;H.metadata.localReleaseId=U.localReleaseId;H.loggingError.level="WARNING";_.sD(H.loggingError,H.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:H.metadata});_.DO(M)})};
var lkf=function(H,U,A,M){var W,w,d,O,f,J;_.u(function(F){if(F.nextAddress==1)return F.yield(H.JSC$17394_playNonceResolver.promise,2);W=F.yieldResult;w={externalPostId:H.JSC$17394_miniAppId,localReleaseId:H.localReleaseId,postPlayNonce:W,sdkVersion:A,api:U};M!==void 0&&(w.networkRequestsMeasurement={networkRequests:_.B8(M,1),cachedRequests:_.B8(M,2),transferredBytes:_.B8(M,3)},(d=M)==null?0:_.hI(d,nZ,6))&&(w.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((O=_.qK(M,
nZ,6))==null?void 0:w4(O,1))||"0",cacheHits:((f=_.qK(M,nZ,6))==null?void 0:w4(f,2))||"0",cachedBytes:((J=_.qK(M,nZ,6))==null?void 0:w4(J,3))||"0"});_.Fx("miniAppSdkUsage",w);_.DO(F)})},Y$Y=function(H,U,A){var M,W,w,d,O,f,J,F,P,n,N,L,m,z,c,C;
_.u(function(v){if(v.nextAddress==1)return v.yield(H.JSC$17394_playNonceResolver.promise,2);M=v.yieldResult;W={externalPostId:H.JSC$17394_miniAppId,localReleaseId:H.localReleaseId,postPlayNonce:M,sdkVersion:A,measurementWindow:{startTimestampMs:String(Uh(U,1)),endTimestampMs:String(Uh(U,2))},frameRate:{averageFrameTimeDeltaMs:Ag(U,3),averageFrameIdleTimeMs:Ag(U,4)}};_.hI(U,N$,5)&&(W.networkRequests={networkRequests:(w=gS(U))==null?void 0:_.B8(w,1),cachedRequests:(d=gS(U))==null?void 0:_.B8(d,2),transferredBytes:(O=
gS(U))==null?void 0:_.B8(O,3),sameOriginStatusCodeToCounts:Gy8((f=gS(U))==null?void 0:_.q$c(f,4,void 0,Vw4,Vw4)),crossOriginStatusCodeToCounts:Gy8((J=gS(U))==null?void 0:_.q$c(J,5,void 0,Vw4,Vw4))},(F=gS(U))==null?0:_.hI(F,nZ,6))&&(W.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((P=gS(U))==null?void 0:(n=_.qK(P,nZ,6))==null?void 0:w4(n,1))||"0",cacheHits:((N=gS(U))==null?void 0:(L=_.qK(N,nZ,6))==null?void 0:w4(L,2))||"0",cachedBytes:((m=gS(U))==null?void 0:(z=_.qK(m,nZ,6))==
null?void 0:w4(z,3))||"0"});_.hI(U,Tan,7)&&(W.gameCapture={averageFrameTimeDeltaMs:(c=_.qK(U,Tan,7))==null?void 0:Ag(c,1),averageFrameIdleTimeMs:(C=_.qK(U,Tan,7))==null?void 0:Ag(C,2)});_.Fx("miniAppPerformanceMetrics",W);_.DO(v)})},q$f=function(H,U){var A,M;
return _.u(function(W){if(W.nextAddress==1)return W.yield(H.JSC$17394_playNonceResolver.promise,2);A=W.yieldResult;M={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:H.JSC$17394_miniAppId,postPlayNonce:A,miniAppReleaseId:H.localReleaseId},derivedDeviceInterface:H.derivedDeviceInterface,adTriggerType:U,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.Fx("miniAppAdEvent",M);_.DO(W)})};
t75.prototype.disposeInternal=function(){_.XG.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var a9=function(H,U,A,M){A=A===void 0?{}:A;M=M===void 0?!1:M;var W,w,d,O;_.u(function(f){if(f.nextAddress==1)return W=H.isForeground,w=H.beforeReady,f.yield(H.JSC$17394_playNonceResolver.promise,2);d=f.yieldResult;O={externalPostId:H.JSC$17394_miniAppId,localReleaseId:H.localReleaseId,derivedDeviceInterface:H.derivedDeviceInterface,postPlayNonce:d,type:U};A.sequenceGroup=d;O.playState=w?"PLAY_STATE_NOT_READY":W?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Fx("miniAppPlayEvent",O,
A);M&&_.P1();_.DO(f)})},gb=function(H,U){var A;
_.u(function(M){if(M.nextAddress==1)return A=(0,_.lD)(),M.yield(H.JSC$17394_playNonceResolver.promise,2);_.ba(U,A);_.DO(M)})},Bhh=function(H){isNaN(H.playPingTimerId)&&(H.playPingTimerId=_.Ih(function(){H.state!==1&&H.state!==2?_.Na(new _.bD("[MiniAppPlayLogger] reportPlayPing failed with state "+z5f[H.state])):a9(H,"PLAY_EVENT_TYPE_PLAY_PING")},H.playPingIntervalMs))},Gy8=function(H){return Array.from(H.entries()).map(function(U){var A=_.b(U);
U=A.next().value;A=A.next().value;return{key:U,value:A}})};var h5p=function(){},ky7=function(H,U){H.showMiniAppAdCommand=U.showMiniAppAdCommand;
H.isEmbeddedInWebview=U.isEmbeddedInWebview;H.playLogger=U.playLogger},ThB=function(H){return _.u(function(U){return U.return(vf8(H,1))})},jYk=function(H){return _.u(function(U){return U.return(vf8(H,2))})},QY5=function(H,U){return _.u(function(A){return U?A.return(vf8(H,3,U)):A.return(Ikf(H,3))})},vf8=function(H,U,A){var M;
return _.u(function(W){if(W.nextAddress==1){if(!H.showMiniAppAdCommand||!H.isEmbeddedInWebview)return W.return(Ikf(H,U));H.adResolver=new _.r1;var w=new U7;w=_.hj(w,3,U);M=_.Mu(w,5,A);iX(H.showMiniAppAdCommand,tQH(M));return W.yield(H.adResolver.promise,2)}return W.return(W.yieldResult)})};
h5p.prototype.onAdFinished=function(H){H=RXm(H);var U;(U=this.adResolver)==null||U.resolve(H)};
var Ikf=function(H,U){var A;return _.u(function(M){if(M.nextAddress==1)M=M.yield((A=H.playLogger)==null?void 0:q$f(A,vmt(U)),2);else{var W=M.return;var w=new LRK;w=_.hj(w,1,2);M=W.call(M,w)}return M})};var V75=new _.g3("INNERTUBE_MANAGER_TOKEN");var HNj=function(){this.callbacks={}};
HNj.prototype.initialize=function(H){var U=this;this.callbacks=H;window.youtubewebview?window.youtubewebview.onmessage=function(A){USh(U,A)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(A){USh(U,A)})};
var USh=function(H,U){if(U.data)try{var A=XiH(U.data);if(_.m5(_.qP(A,1))!=null){var M=m$w(_.Mn(A,2));switch(A.getMethodName()){case "yt-mini-app-load-audio-state":var W,w;(w=(W=H.callbacks).onAudioStateLoaded)==null||w.call(W,_.Hn(M,W1(M,Hc,1)));break;case "yt-mute-mini-app":var d,O;(O=(d=H.callbacks).onMuteMiniApp)==null||O.call(d);break;case "yt-unmute-mini-app":var f,J;(J=(f=H.callbacks).onUnmuteMiniApp)==null||J.call(f);break;case "yt-playable-exit":var F,P;(P=(F=H.callbacks).onExit)==null||P.call(F);
break;case "yt-post-play-nonce":var n,N;(N=(n=H.callbacks).onPostPlayNonceReceived)==null||N.call(n,XV(M,2,Hc));break;case "yt-confirm-exit-mini-app":var L,m;(m=(L=H.callbacks).confirmExitMiniApp)==null||m.call(L);break;case "yt-confirm-exit-mini-app-edu":var z,c;(c=(z=H.callbacks).confirmExitMiniAppEdu)==null||c.call(z);break;case "yt-benchmarking-response":var C,v;(v=(C=H.callbacks).onNativeBenchmarkingMessageReceived)==null||v.call(C,XV(M,2,Hc));break;case "yt-mini-app-load-3p-consent-state":var Y,
D;(D=(Y=H.callbacks).multiplayer3pAckStateLoaded)==null||D.call(Y,_.Hn(M,W1(M,Hc,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var h,T;(T=(h=H.callbacks).exitMiniAppSeenStateLoaded)==null||T.call(h,_.Hn(M,W1(M,Hc,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var WF,dK;(dK=(WF=H.callbacks).onNavigateToNewMiniApp)==null||dK.call(WF);break;case "yt-game-data-available":var SN,o_;(o_=(SN=H.callbacks).onGameDataAvailable)==null||o_.call(SN,XV(M,2,Hc));break;case "yt-pause-mini-app":var PF,
BF;(BF=(PF=H.callbacks).onPauseMiniApp)==null||BF.call(PF);break;case "yt-resume-mini-app":var kc,G8;(G8=(kc=H.callbacks).onResumeMiniApp)==null||G8.call(kc);break;case "yt-pause-playable-dialog":var Pr,Z3;(Z3=(Pr=H.callbacks).onPausePlayableDialog)==null||Z3.call(Pr);break;case "yt-resume-playable-dialog":var Yc,sz;(sz=(Yc=H.callbacks).onResumePlayableDialog)==null||sz.call(Yc);break;case "yt-playable-ad-finished":var Ry,oy;(oy=(Ry=H.callbacks).onAdFinished)==null||oy.call(Ry,XV(M,2,Hc))}}else _.Na(Error("Xh"))}catch(aY){_.sD(Error("Yh"))}else _.Na(Error("Zh"))};var jAV=function(H){this.rpcErrorCode=H};var xS=function(H,U,A){this.intervalMs=H;this.apiFunc=U;this.type=A;this.schedulerReady=!0};
xS.prototype.call=function(H){var U=this,A;return _.u(function(M){if(M.nextAddress==1){if(U.type!==1&&H===U.cachedValue)return M.return();U.pendingApiRequestResolver||(U.pendingApiRequestResolver=new _.r1);A=U.pendingApiRequestResolver.promise;U.cachedValue=H;return M.yield(AR5(U),2)}return M.return(A)})};
xS.prototype.flush=function(H){H=H===void 0?!1:H;var U=this;return _.u(function(A){return U.cachedValue===void 0?A.return():A.yield(U.apiFunc(U.cachedValue,H),0)})};
var AR5=function(H){var U,A,M;return _.u(function(W){switch(W.nextAddress){case 1:if(!H.schedulerReady||!H.pendingApiRequestResolver)return W.return();H.schedulerReady=!1;U=H.pendingApiRequestResolver;H.pendingApiRequestResolver=void 0;_.zj(W,2);if(H.cachedValue===void 0){W.jumpTo(4);break}return W.yield(H.apiFunc(H.cachedValue),5);case 5:A=W.yieldResult,U.resolve(A);case 4:_.xD(W,3);break;case 2:M=_.eG(W),U.reject(M);case 3:setTimeout(function(){return _.u(function(w){H.schedulerReady=!0;return w.yield(AR5(H),
0)})},H.intervalMs),_.DO(W)}})};var Vgr=window.location.origin+"/miniapp_cloudsaves",ILr=[400,401],M3m=_.hr("cloud_save_game_data_rate_limit_ms",3E3),wyh=function(H){var U=this;this.JSC$17438_miniAppId=H;this.loadAttempts=0;this.cloudSaveIntervalMs=M3m;this.initialDownloadDataSucceeded=!1;this.JSC$17438_playNonceResolver=new _.r1;this.scottyUploadRateLimiter=new xS(this.cloudSaveIntervalMs,function(A,M){return U.uploadData(A,M)},2);
this.downloadDataPromise=WO5(this);this.downloadDataPromise.then(function(){U.initialDownloadDataSucceeded=!0}).catch(function(){})},Xy7=function(H,U){U.then(function(A){return H.JSC$17438_playNonceResolver.resolve(A)})},iNm=function(H){return _.u(function(U){return H.cachedData===void 0?U.return(H.downloadDataPromise):U.return(H.cachedData)})},bN7=function(H,U){return _.u(function(A){H.cachedData=U;
if(!H.initialDownloadDataSucceeded)throw Error("$h");return A.yield(H.scottyUploadRateLimiter.call(U),0)})},dS8=function(){return new Promise(function(H){setTimeout(H,1E3,"")})},ON7=function(H,U){var A,M;
return _.u(function(W){if(W.nextAddress==1)return A=H.JSC$17438_miniAppId,W.yield(Promise.race([H.JSC$17438_playNonceResolver.promise,dS8()]),2);M={"X-YouTube-MiniAppId":A,"X-YouTube-PostPlayNonce":W.yieldResult};"DELEGATED_SESSION_ID"in _.EW&&zMc(U,M);return W.return(M)})};
wyh.prototype.uploadData=function(H,U){U=U===void 0?!1:U;var A=this;return _.u(function(M){return TQ4()?_.S("enable_cloud_save_error_popup_after_retry")?M.return(new Promise(function(W,w){var d,O,f,J,F;return _.u(function(P){switch(P.nextAddress){case 1:d=0,O=!0,J=f=null;case 2:if(!(O&&d++<2)){P.jumpTo(4);break}_.zj(P,5);return P.yield(uLf(A,H,U),7);case 7:f=P.yieldResult;O=f.ok?!1:!ILr.includes(f.status);_.xD(P,2);break;case 5:J=F=_.eG(P);O=QAN(J);P.jumpTo(2);break;case 4:f?f.ok?(zT(A,M3m),W()):
(zT(A,A.cloudSaveIntervalMs*2),w(Error("ai`"+String(f.status),{cause:{rpcErrorCode:f.status}}))):(zT(A,A.cloudSaveIntervalMs*2),w(J||Error("bi"))),_.DO(P)}})})):M.return(new Promise(function(W,w){var d,O;
return _.u(function(f){if(f.nextAddress==1){if(A.JSC$17438_miniAppId==="")return w(Error("ci")),f.return();_.zj(f,2);return f.yield(uLf(A,H,U),4)}if(f.nextAddress!=2)return d=f.yieldResult,d.ok?(zT(A,M3m),W()):(zT(A,A.cloudSaveIntervalMs*2),w(Error("ai`"+String(d.status),{cause:{rpcErrorCode:d.status}}))),_.xD(f,0);O=_.eG(f);zT(A,A.cloudSaveIntervalMs*2);w(O);_.DO(f)})})):M.return()})};
var uLf=function(H,U,A){A=A===void 0?!1:A;var M,W,w;return _.u(function(d){if(d.nextAddress==1)return M=_.I_((new TextEncoder).encode(U)),W=Hch(),d.yield(ON7(H,W),2);w=d.yieldResult;return d.return(fetch(W,{method:"POST",body:new Blob([M]),headers:w,keepalive:A}))})},WO5=function(H){var U,A;
return _.u(function(M){if(M.nextAddress==1){if(!TQ4())return M.return("");if(H.JSC$17438_miniAppId==="")throw Error("ci");if(H.loadAttempts>2)return M.return(H.downloadDataPromise);_.zj(M,2);return M.yield(ZN7(H),4)}if(M.nextAddress!=2)return U=M.yieldResult,M.return(U);A=_.eG(M);if(QAN(A)&&++H.loadAttempts<2)return M.return(WO5(H));throw A;})},ZN7=function(H){var U,A,M,W,w;
return _.u(function(d){switch(d.nextAddress){case 1:return _.zj(d,2),U=Hch(),d.yield(ON7(H,U),4);case 4:return A=d.yieldResult,d.yield(fetch(U,{method:"GET",headers:A}),5);case 5:return M=d.yieldResult,M.ok?d.yield(M.text(),6):d.return(Promise.reject(Error("di`"+String(M.status),{cause:new jAV(M.status)})));case 6:return W=d.yieldResult,d.return((new TextDecoder).decode(_.Q0(W)));case 2:return w=_.eG(d),d.return(Promise.reject(w))}})},zT=function(H,U){H.cloudSaveIntervalMs=U;
H.scottyUploadRateLimiter.intervalMs=H.cloudSaveIntervalMs};
wyh.prototype.flush=function(){var H=this;return _.u(function(U){return H.initialDownloadDataSucceeded?U.yield(H.scottyUploadRateLimiter.flush(!0),0):U.return()})};var fey=Ex(Rm(1),pZ(1)),Co=Ex(Rm(1),pZ(3)),tE=function(H){this.callbacks=H};
_.X=tE.prototype;_.X.onAudioToggled=function(H,U){(U===void 0||U)&&_.V3("yt-mini-app-is-audio-enabled",H,2592E3)};
_.X.onPause=function(){this.onAudioToggled(!1,!1)};
_.X.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.X.returnNativeBenchmarkingMessage=function(){};
_.X.sendGameData=function(){};
_.X.sendStartGameFrameCapture=function(){};
var U_7=function(H,U,A){this.callbacks=H;var M=this;this.sdkVersion=new _.r1;this.channel=new fOK(_.Bn({destination:window,iframe:U,origin:(new URL(A.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var W=cV;var w=Rm(5);var d=new cnK;d=_.bo(d,1,1E4);w=_.tR(w,4,GzB,d);W(M,w);M.onAudioToggled(M.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){M.sdkVersion.resolve("")},1E4)};
_.R(U_7,tE);_.X=U_7.prototype;_.X.onAudioToggled=function(H,U){tE.prototype.onAudioToggled.call(this,H,U===void 0?!0:U);U=cV;var A=Rm(2),M=new CRH;H=_.Gg(M,1,H);H=_.tR(A,3,GzB,H);U(this,H)};
_.X.onPause=function(){tE.prototype.onPause.call(this);cV(this,Rm(3))};
_.X.onResume=function(){tE.prototype.onResume.call(this);cV(this,Rm(4))};
_.X.returnNativeBenchmarkingMessage=function(H){var U=cV,A=Rm(6);var M=pZ(_.hI(H,ER,1)?1:2);H=_.hI(H,ER,1)?H:null;M=_.tR(M,5,LZ,H);U(this,Ex(A,M))};
_.X.sendGameData=function(H){var U=cV,A=Rm(7);H=_.tR(A,5,GzB,H);U(this,H)};
_.X.sendStartGameFrameCapture=function(){cV(this,Rm(9))};
var yM=function(H,U,A){var M,W,w;return _.u(function(d){if(d.nextAddress==1)return M=H.callbacks,W=M.onSdkCalled,w=U,d.yield(H.sdkVersion.promise,2);W.call(M,w,d.yieldResult,A);_.DO(d)})};
U_7.prototype.onMessage=function(){var H=this;return osH(am,function(U){var A,M,W,w,d,O,f,J,F,P,n,N,L,m,z,c,C,v,Y,D,h,T,WF,dK,SN,o_,PF,BF,kc,G8,Pr,Z3,Yc,sz,Ry,oy,aY,im,Kh,rK,FB,T2,xK,Hj,CU,Qh,oY,qp,kf,Oz,Fh;return _.u(function(Kk){switch(Kk.nextAddress){case 1:if(!Vtp(U.data))return _.Na(Error("ei")),Kk.return();A=_.Wn(U.data,1);_.S("enable_iframe_message_get_type_via_fields")&&(M=U.data,A=W=_.Wn(M,1));switch(A){case 8:if(U.data.hasMetadata()){var kK=H.sdkVersion,ew=kK.resolve;var O$=U.data.getMetadata();
O$=_.Mn(O$,1);ew.call(kK,O$);clearTimeout(H.sdkVersionTimeoutId)}break;case 6:return Kk.jumpTo(2);case 16:if(!_.k4(U.data,hXz,14,xk))return Kk.return();w=_.io(U.data,hXz,14,xk);(O=(d=H.callbacks).onGameFrameReceived)==null||O.call(d,w);return Kk.return();case 17:if(!_.k4(U.data,q02,15,xk))return Kk.return();(J=(f=H.callbacks).onGameAudioReceived)==null||J.call(f,_.io(U.data,q02,15,xk));return Kk.return();case 1:if(kK=_.io(U.data,rnz,2,xk))switch(_.Wn(kK,1)){case 1:H.callbacks.onFirstFrameReady();
if(_.S("enable_network_request_logging_on_game_events")&&_.hI(kK,N$,4)){yM(H,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.qK(kK,N$,4));break}yM(H,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(O$=(ew=H.callbacks).onGameReady)==null||O$.call(ew);if(_.S("enable_network_request_logging_on_game_events")&&_.hI(kK,N$,4)){yM(H,"MINI_APP_SDK_API_GAME_READY",_.qK(kK,N$,4));break}yM(H,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.k4(kK,SQ,3,eXr))H.callbacks.onResourceLoaded(_.io(kK,SQ,3,eXr))}return Kk.return();
case 3:return Kk.jumpTo(3);case 4:return Kk.jumpTo(4);case 2:return Kk.jumpTo(5);case 9:return Kk.jumpTo(6);case 10:return H.callbacks.onClick(),Kk.return();case 5:return Kk.jumpTo(7);case 11:if(!_.k4(U.data,PY,9,xk))return Kk.return();F=_.io(U.data,PY,9,xk);(n=(P=H.callbacks).onBenchmarkingMessageReceived)==null||n.call(P,F);kK=U.reply;ew=Rm(1);O$=pZ(1);var lv=new PY;var G2=new Uint8Array(akm(F,W1(F,m1w,6))|0);lv=QO(lv,5,m1w,_.tH(G2,!1));O$=_.tR(O$,5,LZ,lv);kK.call(U,Ex(ew,O$));return Kk.return();
case 12:return Kk.jumpTo(8);case 13:return Kk.jumpTo(9);case 15:return Kk.jumpTo(10);case 14:return Kk.jumpTo(11);case 18:return Kk.jumpTo(12);default:return Kk.return()}Kk.jumpTo(0);break;case 2:if(!_.k4(U.data,mX,5,xk))return Kk.return();ew=U.data;kK=W1(ew,xk,5);ew=ew.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;N=Tht(ew,ew[_.wm]|0,mX,kK)||mX[jy8]||(mX[jy8]=I3K(mX));kK=_.c8(N,sx,1,_.y9());L=_.b(kK);m=L.next();case 14:if(m.done){Kk.jumpTo(16);break}z=m.value;c=new _.bD;c.level=_.Wn(z,2)===
1?"WARNING":"ERROR";C=M_M(z.getSource());return Kk.yield(H.sdkVersion.promise,17);case 17:v={source:C,sdkVersion:Kk.yieldResult};_.um(_.qP(z,6))!=null?(c.message=z.getMessage(),c.stack=_.Mn(z,5),v.sdkErrorType=WaM(_.Wn(z,6)),_.um(_.qP(z,7))!=null&&(v.sdkApi=w7K(_.Wn(z,7)))):c.stack=void 0;D=Y=void 0;(D=(Y=H.callbacks).onError)==null||D.call(Y,{loggingError:c,metadata:v});m=L.next();Kk.jumpTo(14);break;case 16:return Kk.return();case 3:return _.zj(Kk,18),kK=Kk.yield,ew=H.callbacks,O$=ew.onSave,lv=
_.io(U.data,ttz,4,xk),lv=_.Mn(lv,1),kK.call(Kk,O$.call(ew,lv),20);case 20:U.reply(fey);_.xD(Kk,19);break;case 18:return h=_.eG(Kk),T=bX,WF=h,dK=H.callbacks,SN="MINI_APP_SDK_API_SAVE_DATA",Kk.yield(H.sdkVersion.promise,21);case 21:T(WF,dK,SN,Kk.yieldResult),U.reply(Co);case 19:return Kk.yield(yM(H,"MINI_APP_SDK_API_SAVE_DATA"),22);case 22:return Kk.return();case 4:return _.zj(Kk,23),Kk.yield(H.callbacks.onLoad(),25);case 25:o_=Kk.yieldResult;kK=U.reply;ew=Rm(1);O$=pZ(1);lv=new ttz;lv=_.Mu(lv,1,o_);
O$=_.tR(O$,3,LZ,lv);kK.call(U,Ex(ew,O$));_.xD(Kk,24);break;case 23:return PF=_.eG(Kk),BF=bX,kc=PF,G8=H.callbacks,Pr="MINI_APP_SDK_API_LOAD_DATA",Kk.yield(H.sdkVersion.promise,26);case 26:BF(kc,G8,Pr,Kk.yieldResult),U.reply(Co);case 24:return Kk.yield(yM(H,"MINI_APP_SDK_API_LOAD_DATA"),27);case 27:return Kk.return();case 5:_.zj(Kk,28);H.callbacks.onSendHighScore(Sv(_.io(U.data,Imp,3,xk).getValue()));U.reply(Ex(Rm(1),pZ(1)));_.xD(Kk,29);break;case 28:return Z3=_.eG(Kk),Yc=bX,sz=Z3,Ry=H.callbacks,oy=
"MINI_APP_SDK_API_SEND_SCORE",Kk.yield(H.sdkVersion.promise,30);case 30:Yc(sz,Ry,oy,Kk.yieldResult),U.reply(Co);case 29:return Kk.yield(yM(H,"MINI_APP_SDK_API_SEND_SCORE"),31);case 31:return Kk.return();case 6:if(!_.k4(U.data,Qwp,8,xk)){Kk.jumpTo(32);break}kK=Kk.yield;ew=_.io(U.data,Qwp,8,xk);ew=_.Wn(ew,1);return kK.call(Kk,yM(H,w7K(ew)),32);case 32:return Kk.return();case 7:return kK=U.reply,ew=Rm(1),O$=pZ(1),lv=H.callbacks.getLanguage(),O$=QO(O$,4,LZ,E$(lv)),kK.call(U,Ex(ew,O$)),Kk.yield(yM(H,"MINI_APP_SDK_API_GET_LANGUAGE"),
34);case 34:return Kk.return();case 8:if(!_.k4(U.data,jwh,10,xk))return Kk.return();aY=_.io(U.data,jwh,10,xk);im=H.callbacks;Kh=im.onSdkPerformanceUpdate;return Kk.yield(H.sdkVersion.promise,35);case 35:return Kh.call(im,aY,Kk.yieldResult),Kk.return();case 9:kK=U.data;ew=W1(kK,xk,11);if(_.m5(_.qP(kK,ew))==null)return U.reply(Ex(Rm(1),pZ(2))),Kk.return();rK=XV(U.data,11,xk);H.callbacks.onShareInviteCode(rK);U.reply(fey);return Kk.yield(yM(H,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),36);case 36:return Kk.return();
case 10:if(!_.S("enable_open_yt_content"))return U.reply(Co),Kk.return();if(!_.k4(U.data,Y0w,12,xk))return U.reply(Ex(Rm(1),pZ(2))),Kk.return();kK=_.io(U.data,Y0w,12,xk);FB=_.Mn(kK,1);H.callbacks.onOpenYTContent(FB);U.reply(fey);return Kk.yield(yM(H,"MINI_APP_SDK_API_OPEN_CONTENT"),37);case 37:return Kk.return();case 11:if(_.k4(U.data,zXB,13,xk)){Kk.jumpTo(38);break}return Kk.yield(H.callbacks.onShowMiniAppAd(2),39);case 39:return T2=Kk.yieldResult,U.reply(Ex(Rm(1),$1y(T2))),Kk.yield(yM(H,"MINI_APP_SDK_API_REQUEST_AD"),
40);case 40:return Kk.return();case 38:kK=_.io(U.data,zXB,13,xk);a:switch(_.Wn(kK,1)){case 1:kK={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:kK={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:kK={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}xK=kK;Hj=xK.adType;CU=xK.sdkApi;kK=Kk.yield;ew=H.callbacks;O$=ew.onShowMiniAppAd;lv=_.io(U.data,zXB,13,xk);lv=_.Mn(lv,2);return kK.call(Kk,O$.call(ew,Hj,lv||void 0),41);case 41:return Qh=Kk.yieldResult,
U.reply(Ex(Rm(1),$1y(Qh))),Kk.yield(yM(H,CU),42);case 42:return Kk.return();case 12:_.zj(Kk,43);kK=H.callbacks;ew=kK.onMakeIapPurchase;O$=_.io(U.data,kzH,16,xk);O$=_.Mn(O$,1);ew.call(kK,O$);U.reply(Ex(Rm(1),pZ(1)));_.xD(Kk,44);break;case 43:return oY=_.eG(Kk),qp=bX,kf=oY,Oz=H.callbacks,Fh="MINI_APP_SDK_API_MAKE_IAP_PURCHASE",Kk.yield(H.sdkVersion.promise,45);case 45:qp(kf,Oz,Fh,Kk.yieldResult),U.reply(Co);case 44:return Kk.yield(yM(H,"MINI_APP_SDK_API_MAKE_IAP_PURCHASE"),46);case 46:return Kk.return()}})})};
var cV=function(H,U){_.u(function(A){H.channel.send(U);_.DO(A)})},dz=function(H,U,A){this.callbacks=H;
var M=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;H=J$N(U,(new URL(A.toString())).origin);this.gameSnacks=new aO3(H);this.gameSnacks.page.onReady(function(){M.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){M.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var W,w;(w=(W=M.callbacks).onGameReady)==null||w.call(W)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(W,w){try{M.callbacks.onSendHighScore(w)}catch(d){bX(d,M.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(W,w){var d;return _.u(function(O){if(O.nextAddress==1)return _.zj(O,2),O.yield(M.callbacks.onSave(M.decoder.decode(w)),4);if(O.nextAddress!=2)return _.xD(O,0);d=_.eG(O);bX(d,M.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return O.return()})});
this.gameSnacks.storage.onLoad(function(){var W,w;return _.u(function(d){if(d.nextAddress==1)return _.zj(d,2),d.yield(M.callbacks.onLoad(),4);if(d.nextAddress!=2)return W=d.yieldResult,d.return(M.encoder.encode(W));w=_.eG(d);bX(w,M.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return d.return(M.encoder.encode(""))})});
this.gameSnacks.init()};
_.R(dz,tE);dz.prototype.onAudioToggled=function(H,U){tE.prototype.onAudioToggled.call(this,H,U===void 0?!0:U);var A;(A=this.gameSnacks)==null||A.audio.update(H)};
dz.prototype.onPause=function(){tE.prototype.onPause.call(this);var H;(H=this.gameSnacks)==null||H.game.pause()};
dz.prototype.onResume=function(){tE.prototype.onResume.call(this);var H;(H=this.gameSnacks)==null||H.game.resume()};var JRk=X7V,KOj=_.r(function(H){var U=H.data;var A=H.loadingProgress;var M=H.forPaused;H=_.b(_.iB("",void 0,"LYYTdd"));var W=H.next().value,w=H.next().value;H=_.b(_.iB(!1,void 0,"K0waae"));var d=H.next().value,O=H.next().value,f=[],J=function(){return"transform: scaleX("+(_.an(A)||0)+")"},F=null,P=function(){return U()&&F!==null&&F!==void 0?F:F=U().showAnniversaryAnimation?6:JRk()};
_.Em(function(){var m;if(U().timeOutMessages&&((m=U().timeOutMessages)==null?0:m.length)){F=null;m=_.b(f);for(var z=m.next();!z.done;z=m.next())clearTimeout(z.value);f.length=0;icK(U().timeOutMessages,f,w,O)}},"BNu9j");
var n=function(){return!!U().persistentErrorMessageTitle},N=function(){return A!==void 0},L=function(){return U().title};
return _.Z("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.Z("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.Z("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.Z("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var m,z=(m=U().backgroundImage)==null?void 0:m.sources,c;return(z==null?0:z.length)?"background-image: url("+((c=z[0])==null?void 0:c.url)+")":""}}),_.Z("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.Z(_.K,{cond:function(){return!n()&&!(M==null?0:M())},
then:function(){var m={};return _.Z("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.Z("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.Z(_.lK,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+P()},
data:function(){var z="loading_animation_"+P();return{animationConfig:{name:z,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+z+".json",loop:!0,autoplay:!0}}}})),_.Z("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.Z(_.K,{cond:L,
then:function(){return _.Z("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},L)}}),_.Z("p",{class:_.CG("miniAppSplashScreenViewModelTimeoutMessage",(m.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return d()},m)),
"aria-live":"polite"},W),_.Z(_.K,{cond:N,then:function(){return _.Z("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.Z("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:J}))}})))}}),_.Z(_.K,{cond:n,
then:function(){return _.Z("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.Z("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return U().persistentErrorMessageTitle}),_.Z(_.K,{cond:function(){return!!U().persistentErrorMessageDescription},
then:function(){return _.Z("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return U().persistentErrorMessageDescription})}}))}}),_.Z(_.K,{cond:M,
then:function(){return _.Z("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.Z("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.Z("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},L))}})))},"Xf");var o5$=new _.g3("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var FO8=Gi;Gi=function(H){function U(A){if(A){var M,W;(M=A.__spec)==null||(W=M.didUnmount)==null||W.call(M);for(M=0;M<A.childNodes.length;M++)U(A.childNodes[M])}}
FO8==null||FO8(H);UB(function(){for(var A=0;A<H.length;A++)U(H[A])})};var Pv5=_.r(function(H){var U=H.data;var A=H.score;var M=H.formattedScore;var W=H.onScoreChanged;var w=H.isEmbeddedInWebview;var d=_.NU("yt-mini-app-score-button-view-model"),O=function(){var N;return _.p(U==null?void 0:(N=U())==null?void 0:N.buttonViewModel,_.ot)},f=function(){var N;
return(A==null?void 0:A())||Number(U==null?void 0:(N=U())==null?void 0:N.lastScore)||0},J=function(){var N;
return(M==null?void 0:M())||((N=O())==null?void 0:N.title)||""},F,P=1;
if(H=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))H=Number(H),P=isNaN(H)?1:H/100;_.Em(function(){W==null||W(f());var N;var L=_.ij((N=O())==null?void 0:N.onTap);if(L){N=_.p(L,PQm);var m,z,c;N=_.p(N==null?void 0:(m=N.panelLoadingStrategy)==null?void 0:(z=m.inlineContent)==null?void 0:(c=z.dialogViewModel)==null?void 0:c.customContent,cfy)}else N=void 0;if(m=N)m.score=J()},"Aekez");
H=_.c$(function(){var N,L,m=U==null?void 0:(N=U())==null?void 0:(L=N.loggingDirectives)==null?void 0:L.trackingParams;m&&_.Yg(_.lx().resolve(_.U8),m);return!1});
_.LA(function(){if(d.value){var N=d.value.querySelector("button"),L=O();N&&L&&d_4(N,L);_.B1("yt-share-playable-with-high-score",function(){var m=f().toString(),z=U==null?void 0:U().onShareHighScoreCommand,c=U==null?void 0:U().highScoreShareClientParamIdentifier,C=w==null?void 0:w();z&&(C?(c=new wAp,m=_.Mu(c,2,m),iX(z,m.JSC$12835_serializeBinary())):c&&(_.lx().resolve(o5$).clientParams.set(c,{miniAppClientParams:{highScore:m}}),GfN(z,!1)))})}});
var n=function(){var N=O();N&&(A==null?0:A())&&N.accessibilityText&&(N.accessibilityText=N.accessibilityText.replace(F,J()));F=J();return{numberValue:f(),numberText:J(),heightPx:36,fontSizeMultiplier:P,shouldAnimate:!(A==null||!A())&&!0}};
return _.Z("yt-mini-app-score-button-view-model",{class:function(){var N={};return _.QU("miniAppScoreButtonViewModelHost",(N.miniAppScoreButtonViewModelIsVisible=f()!==0,N))},
el:d,"on:click":H},oBK(!1,function(){return _.Z("span",{style:"display:none;"},f)}),_.Z(_.YY,{data:function(){var N;
return U==null?void 0:(N=U())==null?void 0:N.buttonViewModel}},{buttonViewModel:function(N){return _.Z(_.yJ,{data:N.data,
animatedTextProps:n})}}))},"Zf");var py8=_.r(function(H){var U,A=(U=_.H4("yt-mini-app-is-theater-mode-enabled"))!=null?U:!1,M=_.S("enable_playable_container_save_button"),W=_.S("enable_play_next_destination_page_in_toolbar");U={};return _.Z("ytm-mini-app-top-bar-view-model",null,_.Z("div",{class:_.CG("yt-mini-app-top-bar-view-model",(U["yt-mini-app-top-bar-view-model--mobile"]=!1,U["yt-mini-app-top-bar-view-model--desktop"]=!0,U))},_.Z("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.Z(_.K,{cond:function(){var w;return!!H.data().backButtonEdu&&
!((w=H.isExitMiniAppSeen)==null?0:w.call(H))},
then:function(){return _.Z(_.YY,{data:function(){return H.data().backButtonEdu}},{buttonViewModel:_.yJ})},
else:function(){return _.Z(_.YY,{data:function(){return H.data().backButton}},{buttonViewModel:_.yJ})}}),_.Z(_.K,{cond:function(){return H.data().viewAllButton&&!0},
then:function(){return _.Z(_.YY,{data:function(){return H.data().viewAllButton}},{buttonViewModel:_.yJ})}}),_.Z(_.K,{cond:function(){return H.data().title&&!0},
then:function(){return _.Z("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return H.data().title})}})),_.Z("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.Z(_.K,{cond:function(){var w;
return(w=H.isDesktopPlayPage)==null?void 0:w.call(H)},
then:function(){return _.Z(_.ve,null,_.Z(s57,{highScoreButton:function(){return H.data().highScoreButton},
score:H.score,formattedScore:H.formattedScore,onScoreChanged:H.onScoreChanged,isEmbeddedInWebview:H.isEmbeddedInWebview}),_.Z(n5p,{enableSaveButton:function(){return _.an(M)},
saveButton:function(){return H.data().saveButton},
isSaved:H.isSaved,onSaveToggled:function(){return H.onSaveToggled}}),_.Z(NM7,{menuButton:function(){return H.data().menuButton}}))},
else:function(){return _.Z(_.K,{cond:function(){return!1},
then:function(){return _.Z(_.YY,{data:function(){return H.data().playPageButton}},{buttonViewModel:function(w){return _.Z(_.yJ,{data:w.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.Z(s57,{highScoreButton:function(){return H.data().highScoreButton},
score:H.score,formattedScore:H.formattedScore,onScoreChanged:H.onScoreChanged,isEmbeddedInWebview:H.isEmbeddedInWebview})}})}})),_.Z("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.Z(_.YY,{data:function(){return H.data().muteButton}},{toggleButtonViewModel:function(w){var d=w.data;
return _.Z(_.MI,{data:function(){var O,f;return Object.assign({},d(),{isToggled:(f=(O=H.isAudioEnabled)==null?void 0:O.call(H))!=null?f:!0})},
onToggle:H.onAudioToggled,useOutlinedIcon:!0})}}),_.Z(_.YY,{data:function(){return H.data().theatreModeButton}},{toggleButtonViewModel:function(w){var d=w.data;
return _.Z("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.Z(_.MI,{data:function(){return Object.assign({},d(),{isToggled:A})},
useOutlinedIcon:!0}))}}),_.Z(Sj7,{fullscreenButton:function(){return H.data().fullscreenButton}}),_.Z(_.K,{cond:function(){return _.an(W)&&H.data().viewAllButton&&!1},
then:function(){return _.Z(_.YY,{data:function(){return H.data().viewAllButton}},{buttonViewModel:_.yJ})}}),_.Z(_.K,{cond:function(){var w;
return!((w=H.isDesktopPlayPage)==null?0:w.call(H))},
then:function(){return _.Z(_.ve,null,_.Z(n5p,{enableSaveButton:function(){return _.an(M)},
saveButton:function(){return H.data().saveButton},
isSaved:H.isSaved,onSaveToggled:function(){return H.onSaveToggled}}),_.Z(NM7,{menuButton:function(){return H.data().menuButton}}))}}))))},"$f");
py8.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var NM7=_.r(function(H){return _.Z(_.YY,{data:H.menuButton},{buttonViewModel:_.yJ})},"ag"),n5p=_.r(function(H){var U=H.enableSaveButton;
var A=H.saveButton;var M=H.isSaved;var W=H.onSaveToggled;return _.Z(_.K,{cond:function(){return U()&&!(A==null||!A())},
then:function(){return _.Z(_.YY,{data:function(){var w=_.p(A==null?void 0:A(),_.Pc),d;return{toggleButtonViewModel:Object.assign({},w,{isToggled:(d=M==null?void 0:M())!=null?d:!(w==null||!w.isToggled)})}}},{toggleButtonViewModel:function(w){return _.Z(_.MI,{data:w.data,
onToggle:W})}})}})},"bg"),s57=_.r(function(H){var U=H.highScoreButton;
var A=H.score;var M=H.formattedScore;var W=H.onScoreChanged;var w=H.isEmbeddedInWebview;return _.Z(_.YY,{data:U},{miniAppScoreButtonViewModel:function(d){return _.Z(Pv5,{data:d.data,score:A,formattedScore:M,onScoreChanged:W,isEmbeddedInWebview:w})}})},"cg"),Sj7=_.r(function(H){H=H.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.Z(_.ve,null):_.Z(_.YY,{data:H},{buttonViewModel:_.yJ})},"dg");_.LO7=_.r(function(H){var U=H.data;var A=H.extractOverlay;H={};return _.Z("player-disclosure-view-model",{class:_.CG("ytwPlayerDisclosureViewModelHost",(H.ytwPlayerDisclosureViewModelExtractOverlay=function(){return A==null?void 0:A()},H))},_.Z(_.xy,{command:function(){return U().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.Z(_.K,{cond:function(){return U().iconName},
then:function(M){return _.Z(_.er,{icon:M})}}),_.Z(_.K,{cond:function(){return U().iconName?void 0:U().image},
then:function(M){return _.Z(_.nG,{data:M,alt:function(){return U().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.Z(_.K,{cond:function(){return U().title||U().secondaryText},
then:function(){return _.Z("div",null,_.Z("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return U().title}),_.Z("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return U().text}),_.Z(_.K,{cond:function(){return U().secondaryText},
then:function(M){return _.Z(_.ve,null,_.Z("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.Z("div",{class:"ytwPlayerDisclosureViewModelText"},M))}}))},
else:function(){return _.Z("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return U().text})}}),_.Z(_.K,{cond:function(){return U().showEndChevron},
then:function(){return _.Z(_.er,{icon:"CHEVRON_RIGHT"})}})))},"eg");_.RSY=new _.g3("DESKTOP_CURRENT_PAGE");var zSf=_.r(function(H){var U=H.data;var A=_.S("force_active_time_logging_webview"),M=!1,W=new HNj,w=void 0,d=void 0,O=_.lx().resolve(V75),f=new h5p,J=void 0,F=void 0,P=[],n=void 0,N=void 0,L=!1,m=!1,z=!1,c=!1,C=new _.r1,v=_.lx().resolve(o5$),Y=_.lx().resolve(_.mG),D=_.lx().resolve(_.$V(T0)),h,T=(h=_.lx().resolve(_.$V(_.RSY)))==null?void 0:h.getCurrentPage(),WF=!1,dK=0,SN=function(Hr){Hr.preventDefault();return Hr.returnValue=""},o_,PF=_.b(_.iB(!((o_=_.H4("yt-mini-app-is-audio-enabled"))!=null&&!o_),
void 0,"y7Nkqd")),BF=PF.next().value,kc=PF.next().value,G8,Pr=_.b(_.iB(!((G8=_.H4("exit-mini-app-seen-state"))==null||!G8),void 0,"ZP6Oxc")),Z3=Pr.next().value,Yc=Pr.next().value,sz=_.b(_.iB(!1,void 0,"BCKP1c")),Ry=sz.next().value,oy=sz.next().value,aY=_.b(_.iB(void 0,void 0,"bswUUd")),im=aY.next().value,Kh=aY.next().value,rK=_.b(_.iB(void 0,void 0,"sXcJfc")),FB=rK.next().value,T2=rK.next().value,xK=_.b(_.iB(!0,void 0,"DDj4gb")),Hj=xK.next().value,CU=xK.next().value,Qh=_.b(_.iB(!1,void 0,"qXUljf")),
oY=Qh.next().value,qp=Qh.next().value,kf=_.b(_.iB(!1,void 0,"XqvjOc")),Oz=kf.next().value,Fh=kf.next().value,Kk=_.b(_.iB(void 0,void 0,"S1uX2")),kK=Kk.next().value,ew=Kk.next().value,O$=_.b(_.iB(0,void 0,"CGS0ze")),lv=O$.next().value,G2=O$.next().value,K8=_.nA("mini-app-container-view-model"),Qp=_.b(_.iB(!1,void 0,"AVpgJ")),uv=Qp.next().value,Rl=Qp.next().value,uL=function(){return U().isEmbeddedInWebview},UW=function(){return U().hasPlayNextShelf};
_.pA(function(){var Hr,dh=(Hr=_.p(U().contentDisclosure,Qf3))==null?void 0:Hr.animationParams;if((dh==null?0:dh.shouldHide)&&(dh==null?0:dh.hideDelaySecs)){var gh=setTimeout(function(){Rl(!0)},dh.hideDelaySecs*1E3);
_.m4(function(){clearTimeout(gh)})}});
_.B1("yt-page-type-changed",function(Hr){if(_.S("enable_is_mini_app_page_active_bugfix"))Hr.detail.newPageSubtype==="mini_app"&&Hr.detail.newPageType==="ytd-browse"||!Hj()||mF();else if(Hr=_.nl()==="mini_app",Hr!==Hj())if(CU(Hr),Hr){var dh;Hr=(dh=U().playableId)==null?void 0:dh.toString();Hr!==void 0&&window.location.href.includes(Hr)&&!m&&(c=!0,pW(),LU.value&&YC(LU.value))}else Hr||mF()});
_.B1("yt-action",function(Hr){Hr.detail.actionName==="yt-engagement-panel-visible-changed"&&Hr.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Hr.detail.args[2]==="PAmini_app_panel"&&mF();_.S("enable_is_mini_app_page_active_bugfix")?Hr.detail.actionName==="yt-history-load"&&!Hj()&&(T==null?0:T.active)?(CU(!0),pW(),LU.value&&YC(LU.value)):Hr.detail.actionName==="yt-history-load"&&Hj()&&!U().isEmbeddedInWebview&&Sw():Hj()&&Hr.detail.actionName==="yt-history-load"&&(c?c=!1:U().isEmbeddedInWebview||
Sw())});
_.m4(function(){pU()});
_.Em(function(){pW()},"Jr1tnc");
var pW=function(){var Hr=U().playableId,dh=U().localReleaseId,gh=U().derivedDeviceInterface;if(m)_.Na(new _.bD("[MiniAppContainerViewModel] onEnter was called more than once"));else{m=!0;w=new t75(Hr,dh,gh,document.visibilityState==="visible");rBh(w);d=new wyh(Hr);E57(O,Hr);ky7(f,{showMiniAppAdCommand:U().showMiniAppAdCommand,isEmbeddedInWebview:U().isEmbeddedInWebview,playLogger:w});oO7()&&(N=document.body.style.backgroundColor,_.Fw(document.body,"background-color","black"));qb();p1();C=new _.r1;
if(U().isEmbeddedInWebview){if(Hr=(new URLSearchParams(window.location.search)).get("postPlayNonce"))yBp(w,Hr),WF=!0;W.initialize({onAudioStateLoaded:function(Vp){T8(Vp)},
onMuteMiniApp:function(){T8(!1)},
onUnmuteMiniApp:function(){T8(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Vp){WF||(yBp(w,Vp),WF=!0)},
confirmExitMiniApp:function(){var Vp,XI,UA;return _.u(function(HJ){if(HJ.nextAddress==1)return U().confirmExitMiniAppCommand?HJ.yield(Promise.race([C.promise,Promise.resolve(!1)]),2):HJ.return();(Vp=HJ.yieldResult)?!U().confirmExitMiniAppCommandEdu||(UA=(XI=Z3)==null?void 0:XI())!=null&&UA?OD(U().confirmExitMiniAppCommand):(OD(U().confirmExitMiniAppCommandEdu),_.V3("exit-mini-app-seen-state","true",2592E6)):OD(U().closeMiniAppCommand);_.DO(HJ)})},
onNativeBenchmarkingMessageReceived:function(Vp){Vp=amm(_.G8E(Vp));if(_.k4(Vp,_.wz,3,Eth)){var XI=_.io(Vp,_.wz,3,Eth),UA=Y1N();var HJ=Sv(UA.getSeconds())-Sv(XI.getSeconds());XI=_.B8(UA,2)-_.B8(XI,2);HJ<0&&XI>0?(HJ+=1,XI-=1E9):HJ>0&&XI<0&&(--HJ,XI+=1E9);HJ=(new ER).setSeconds(HJ);HJ=_.Wy(HJ,2,_.Zk(XI),0);_.CN(Vp,1,HJ)}var D$;(D$=F)==null||D$.returnNativeBenchmarkingMessage(Vp)},
multiplayer3pAckStateLoaded:function(Vp){Sw(Vp)},
exitMiniAppSeenStateLoaded:function(Vp){U().confirmExitMiniAppCommandEdu&&Yc(Vp)},
onNavigateToNewMiniApp:function(){OD(U().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Vp){Vp=new URLSearchParams(Vp);var XI=void 0;Vp.has("invite_code")&&(XI=new Bap,Vp=Vp.get("invite_code"),XI=_.Mu(XI,1,Vp));if(Vp=XI){var UA;(UA=F)==null||UA.sendGameData(Vp)}},
onPauseMiniApp:function(){M=!0;gK()},
onResumeMiniApp:function(){M=!0;eN()},
onPausePlayableDialog:function(){z=!0;gK()},
onResumePlayableDialog:function(){z=!1;eN()},
onAdFinished:function(Vp){f.onAdFinished(Vp)}});
U().showMultiplayer3pConsentDialogCommand||C.resolve(!0);OD(U().onContainerReadyCommand)}else yBp(w),C.resolve(!0),U().runAttestationCommand&&cBX(w).then(function(Vp){var XI=_.p($Wc(U().runAttestationCommand),_.mz2);XI&&XI.ids&&(XI.ids.push({postPlayNonce:Vp}),OD(U().runAttestationCommand))});
Xy7(d,cBX(w));cBX(w).then(function(Vp){Vp={miniAppPlayData:{postPlayNonce:Vp}};var XI,UA=(XI=U().loggingDirectives)==null?void 0:XI.trackingParams;UA&&_.k$().stateChanged(UA,Vp)});
Hr=U().showSignInDialogCommand;!TQ4()&&Hr&&(_.V3("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),OD(Hr));U().confirmExitMiniAppCommand&&D&&(Hr=$Wc(U().confirmExitMiniAppCommand))&&(D.customConfirmationCommand=Hr)}},pU=function(){N&&_.Fw(document.body,"background-color",N);
L=!1;n&&n.release();d.flush().catch(function(Hr){_.Na(Hr)});
O.flush().catch(function(Hr){_.Na(Hr)});
DXf(w);hJ();F=void 0;mSX(v)},mF=function(){CU(!1);
pU();oy(!1);ew(void 0);Kh(void 0);T2(void 0);dK=0;G2(0);m=!1},gK=function(){var Hr;
(Hr=F)==null||Hr.onPause();n&&n.release();d.flush().catch(function(dh){_.Na(dh)});
O.flush().catch(function(dh){_.Na(dh)});
e5Y(w);qp(!0)},eN=function(){var Hr;
(Hr=F)==null||Hr.onResume();p1();Hr=w;Hr.isForeground=!0;a9(Hr,"PLAY_EVENT_TYPE_PLAY_RESUME");qp(!1)},T8=function(Hr){var dh;
(dh=F)==null||dh.onAudioToggled(Hr);kc(Hr)},Sw=function(Hr){U().showMultiplayer3pConsentDialogCommand&&(U().isEmbeddedInWebview&&Hr!==void 0&&C.resolve(Hr),!Hr&&_.nl()==="mini_app"&&OD(U().showMultiplayer3pConsentDialogCommand))},RY=function(){var Hr,dh,gh,Vp;
return _.u(function(XI){if(XI.nextAddress==1){!U().isLivestream||U().disableVideoCapture||(Hr=F)!=null&&Hr.sendStartGameFrameCapture();dh=(new URL(window.location.href)).searchParams;if(dh.has("invite_code")){var UA=new Bap,HJ=dh.get("invite_code");gh=_.Mu(UA,1,HJ);(Vp=F)==null||Vp.sendGameData(gh)}Ry()||(oy(!0),UA=w,UA.state!==1?_.Na(new _.bD("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+z5f[UA.state])):(_.v5("mini_app_ids_without_game_ready").includes(UA.JSC$17394_miniAppId)&&(UA.gameReady=
!0),UA.state=2,UA.beforeReady=!1,gb(UA,"ma_ffr"),a9(UA,"PLAY_EVENT_TYPE_PLAY_READY")));return XI.yield(C.promise,2)}OD(U().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();U().isEmbeddedInWebview||Sw();_.DO(XI)})},gM=function(){var Hr=w;
Hr.gameReady=!0;gb(Hr,"ma_gr")},zy=function(Hr){var dh;
return _.u(function(gh){if(gh.nextAddress==1)return _.zj(gh,2),gh.yield(bN7(d,Hr),4);if(gh.nextAddress!=2)return _.xD(gh,0);dh=_.eG(gh);OD(U().showSavingErrorPopupCommand);throw dh;})},mw=function(){var Hr,dh;
return _.u(function(gh){if(gh.nextAddress==1)return _.zj(gh,2),gh.yield(iNm(d),4);if(gh.nextAddress!=2)return Hr=gh.yieldResult,gh.return(Hr);dh=_.eG(gh);OD(U().showLoadingErrorDialogCommand);throw dh;})},Ez=function(Hr){w.logError(Hr)},Gy=function(Hr,dh,gh){lkf(w,Hr,dh,gh)},XL=function(Hr,dh){Y$Y(w,Hr,dh)},nk=function(){!A&&U().isEmbeddedInWebview||_.D6();
$Xk(w,!0);L||(window.addEventListener("beforeunload",SN,{capture:!0}),L=!0)},tz=function(Hr){var dh,gh,Vp,XI,UA,HJ,D$;
return _.u(function(Oh){if(Oh.nextAddress==1)return O&&(!J||J<Hr)&&Hr>0?Oh.yield(g5h(O,Hr),3):Oh.jumpTo(0);dh=Oh.yieldResult;gh=_.b(dh);Vp=gh.next().value;XI=gh.next().value;UA=Vp;HJ=XI;((D$=UA)==null?0:D$.displayString)&&HJ&&(Kh(HJ),T2(UA.displayString));_.DO(Oh)})},V9=function(Hr){var dh=U().onBenchmarkingMessageReceivedCommand;
if(dh){var gh=Y1N();_.tR(Hr,3,Eth,gh);iX(dh,x1w(Hr))}},GC=function(){var Hr=U().iapPurchaseCommand;
Hr&&iX(Hr)},JD=function(Hr){var dh=U().onGameFrameReceivedCommand;
if(dh){var gh=new U7;var Vp=new aln;var XI=Uh(Hr,1);Vp=_.Xx(Vp,1,XI);Hr=_.Mn(Hr,2);Hr=_.Mu(Vp,2,Hr);gh=_.CN(gh,2,Hr);iX(dh,tQH(gh))}},U4=function(Hr){var dh=U().onGameAudioDataReceivedCommand;
if(dh){var gh=new U7;var Vp=new zZh;Hr=_.Mn(Hr,1);Vp=_.Mu(Vp,1,Hr);gh=_.CN(gh,4,Vp);iX(dh,tQH(gh))}},gV=function(){var Hr=new URLSearchParams(window.location.search);
if(U().isEmbeddedInWebview&&Hr&&Hr.get("override_hl")==="true"&&Hr.get("hl"))return Hr.get("hl");Hr=document.documentElement.lang;return Hr!==""?Hr:Jc},DD=function(Hr){var dh=U().onShareInviteCodeCommand;
if(dh)if(U().isEmbeddedInWebview){var gh=new wAp;Hr=_.Mu(gh,1,Hr);iX(dh,imm(Hr))}else gh=U().inviteCodeShareClientParamIdentifier,v.clientParams.set(gh,{miniAppClientParams:{inviteCode:Hr}}),OD(dh)},vC=function(Hr){var dh,gh,Vp;
return _.u(function(XI){if(XI.nextAddress==1)return dh=U().onMiniAppOpenYtContentRequested,O&&_.S("enable_open_yt_content")&&dh?XI.yield(aeh(O,Hr),3):XI.jumpTo(0);gh=XI.yieldResult;if(gh==="OK")if(U().isEmbeddedInWebview){var UA=new RZB;Vp=QO(UA,2,Hc,E$(Hr));iX(dh,gkg(Vp))}else Y.clientData.set("video_id",Hr),OD(dh);_.DO(XI)})},hq=function(Hr){dK+=_.B8(Hr,3);
Hr=Math.min(Math.log(1+dK/15E6*9)/Math.log(10),.99);G2(Hr);nv(Hr)},nv=_.Mb(function(Hr){var dh=U().updateLoadingProgressCommand;
if(dh){var gh=new RZB;Hr=QO(gh,3,Hc,_.AB(Hr));iX(dh,gkg(Hr))}},100),Yh=function(Hr,dh){switch(Hr){case 1:return ThB(f);
case 2:return jYk(f);case 3:return QY5(f,dh);default:return Promise.reject(Error("fi"))}},p1=function(){var Hr,dh;
((Hr=_.RpN())==null?void 0:(dh=Hr.wakeLock)==null?void 0:dh.request)!=null&&_.RpN().wakeLock.request("screen").then(function(gh){n=gh}).catch(function(){})},LU=_.NU("iframe");
_.Em(function(){U().isSupportedCountry&&(TQ4()||_.S("enable_sign_in_promo")||!U().showSignInDialogCommand?LU.value&&YC(LU.value):OD(U().onMiniAppReadyCommand))},"I8Fvz");
var pe=function(){return _.Z("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Ry()?0:-1},
title:function(){return U().title},
el:LU})},YC=function(Hr,dh){dh=dh===void 0?!1:dh;
var gh=qG();if(gh&&(dh||gh.toString()!==Hr.getAttribute("src"))){F=A2K(U().source,{isAudioEnabled:BF,onFirstFrameReady:RY,onGameReady:gM,onSave:zy,onLoad:mw,onError:Ez,onSdkCalled:Gy,onSdkPerformanceUpdate:XL,onClick:nk,onSendHighScore:tz,onBenchmarkingMessageReceived:V9,getLanguage:gV,onShareInviteCode:DD,onResourceLoaded:hq,onOpenYTContent:vC,onShowMiniAppAd:Yh,onGameFrameReceived:JD,onGameAudioReceived:U4,onMakeIapPurchase:GC},Hr,gh);FG(Hr,"load",function(){gb(w,"ma_il");FG(Hr,"load",function(){YC(Hr,
!0)})});
var Vp=_.hr("mini_app_container_iframe_src_update_delay_ms");U().isEmbeddedInWebview&&!dh&&Vp>0?kfM(Hr,gh,Vp):_.wY(Hr,gh)}},qG=function(){var Hr=U().url;
if(Hr&&(Hr=_.PW(Hr),Hr!==null)){if(U().source&&U().source==="MINI_APP_SOURCE_GAMESNACKS")Hr=_.Rk(Hr,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.S("enable_origin_query_parameter_bugfix")){var dh=_.rN(_.kg8(Hr.toString()));dh=new URLSearchParams(dh||"");dh.set("origin",window.location.origin);dh=dh.toString();Hr=_.e3(Hr).toString();Hr=_.rM(WPy.exec(Hr)[0]+(dh.trim()?"#"+dh:""))}return Hr}},k6=function(){var Hr={};
Hr=_.CG("yt-mini-app-container-view-model__loading-screen",(Hr["yt-mini-app-container-view-model__loading-screen--fade-out"]=Ry,Hr));var dh=function(){return Ry()?1:lv()};
return _.Z("div",{class:Hr},_.Z(_.YY,{data:function(){return U().splashScreen}},{miniAppSplashScreenViewModel:function(gh){return _.Z(KOj,{data:gh.data,
loadingProgress:dh})}}))},Go=function(){var Hr={};
return _.Z("div",{class:_.CG("yt-mini-app-container-view-model__pause-interstitial",(Hr["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!oY()},Hr["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=oY,Hr))},_.Z(_.YY,{data:function(){return U().splashScreen}},{miniAppSplashScreenViewModel:function(dh){return _.Z(KOj,{data:dh.data,
forPaused:!0})}}))},qb=function(){P=[];
P.push(_.Rc(window,"visibilitychange",function(){z||M&&uL()||(document.visibilityState==="visible"?eN():gK())}));
P.push(_.Rc(window,"pagehide",function(){pU()}));
P.push(_.Rc(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&K8.value.dispatchEvent(new Event("tap"))},0)}));
P.push(_.Rc(K8.value,"pointerdown",function(){$Xk(w,!1)},!0));
P.push(_.Rc(K8.value,"pause",function(){z=!0;gK()}));
P.push(_.Rc(K8.value,"play",function(){z=!1;eN()}));
P.push(_.Rc(K8.value,"exit",function(){pU()}));
var Hr=navigator.keyboard,dh=Hr&&Hr.lock;P.push(_.Rc(window,CjK,function(){Fh(YRM());YRM()?(U().hasPlayNextShelf&&vb("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),kh("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),dh&&Hr.lock(["Escape"])):(U().hasPlayNextShelf&&kh("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),vb("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),dh&&Hr.unlock())}));
U().showMultiplayer3pConsentDialogCommand&&P.push(_.Rc(window,"yt-playables-ack-3p-data-usage",function(){xS7(O)}));
U().confirmExitMiniAppCommandEdu&&P.push(_.Rc(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.V3("exit-mini-app-seen-state","true",2592E6)}));
U().onGameAudioDataReceivedCommand&&P.push(_.Rc(window,"message",function(gh){gh=gh.event_;var Vp,XI=(Vp=LU.value)==null?void 0:Vp.src;if(XI&&gh.origin===(new URL(XI)).origin&&gh.data&&gh.data.type==="GAME_AUDIO"&&gh.data.audio&&gh.data.audio.length>0)if(_.S("enable_sending_unwrapped_game_audio_as_serialized_metadata"))hwM(U().onGameAudioDataReceivedCommand,gh.data.audio);else{var UA=new FileReader;UA.onload=function(){var HJ=new U7;var D$=new zZh;D$=_.Mu(D$,1,UA.result);HJ=_.CN(HJ,4,D$);iX(U().onGameAudioDataReceivedCommand,
tQH(HJ))};
UA.readAsDataURL(new Blob([gh.data.audio]))}}))},hJ=function(){P.forEach(function(Hr){jq(Hr)});
window.removeEventListener("beforeunload",SN,{capture:!0})},OD=function(Hr){Hr&&GfN(Hr,U().isEmbeddedInWebview||!1)},kh=function(Hr,dh){Hr=_.b(K8.value.getElementsByClassName(Hr));
for(var gh=Hr.next();!gh.done;gh=Hr.next())gh.value.classList.add(dh)},vb=function(Hr,dh){Hr=_.b(K8.value.getElementsByClassName(Hr));
for(var gh=Hr.next();!gh.done;gh=Hr.next())gh.value.classList.remove(dh)};
return function(){var Hr={};Hr=_.CG("yt-mini-app-container-view-model",(Hr["yt-mini-app-container-view-model--desktop"]=!0,Hr["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return U().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Hr["yt-mini-app-container-view-model--ios-web-view"]=oO7(),Hr["yt-mini-app-container-view-model--no-top-bar"]=function(){return!U().topBar},Hr["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return U().hasPlayNextShelf},Hr["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return U().hasPlayNextShelf},Hr["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Oz()&&U().hasPlayNextShelf},Hr));
var dh={};dh=_.CG("yt-mini-app-container-view-model__content",(dh["yt-mini-app-container-view-model__content--desktop-content"]=!0,dh["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return U().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},dh["yt-mini-app-container-view-model--desktop-play-page"]=function(){return U().hasPlayNextShelf},dh));
return _.Z("mini-app-container-view-model",{el:K8},_.Z("div",{class:Hr},_.Z(_.K,{cond:function(){return U().topBar&&!Oz()},
then:function(){return _.Z(_.YY,{data:function(){return U().topBar}},{miniAppTopBarViewModel:function(gh){return _.Z(py8,{data:gh.data,
isAudioEnabled:BF,onAudioToggled:function(Vp){T8(Vp)},
score:im,formattedScore:FB,onScoreChanged:function(Vp){J=Vp},
isEmbeddedInWebview:uL,isSaved:kK,onSaveToggled:function(Vp){ew(Vp)},
isExitMiniAppSeen:Z3,isDesktopPlayPage:UW})}})}}),_.Z("div",{class:dh},_.Z(_.K,{cond:Hj,
then:function(){return pe()}}),_.Z(_.K,{cond:function(){return U().isLivestream},
then:function(){return Go()}}),_.Z(_.K,{cond:function(){return!U().isEmbeddedInWebview},
then:function(){return k6()}}),_.Z(_.YY,{data:function(){return U().contentDisclosure}},{playerDisclosureViewModel:function(gh){gh=gh.data;
var Vp={};return _.Z("div",{class:_.CG("yt-mini-app-container-view-model__content-disclosure-overlay",(Vp["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=uv,Vp))},_.Z(_.LO7,{data:gh}))}}))))}()},"ig");
zSf.idomCompat=!0;_.LG(zSf,"mini-app-container-view-model",{props:{data:_.sY}});var Cvm=_.r(function(H){var U=H.data;return _.Z("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.Z("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.c$(function(){var A=U().onTap;A&&_.uj(A)})},_.Z(_.K,{cond:function(){return U().icon},
then:function(A){return _.Z(_.er,{icon:function(){return A().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.Z("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return U().title})))},"jg");
Cvm.idomCompat=!0;var t3Y=_.r(function(H){var U=_.nA("div"),A=_.b(_.iB(void 0,void 0,"dg3xff")),M=A.next().value,W=A.next().value;A=_.b(_.iB(void 0,void 0,"AgHNfc"));var w=A.next().value,d=A.next().value;A=_.b(_.iB(void 0,void 0,"fuTKCc"));var O=A.next().value,f=A.next().value,J=function(){var c=M();return c!==void 0?Math.abs(c):void 0},F=function(){var c=J();
return c===void 0||c<=3},P=function(){var c=J();
var C=w(),v=O();c=c!==void 0&&C!==void 0&&v!==void 0?C-v-c:void 0;return c===void 0||c<=3},n=function(c){U.value&&U.value.scrollBy({top:0,
left:(_.gD("HTML_DIR")==="rtl"?-1:1)*c*U.value.clientWidth,behavior:"smooth"})},N=function(){var c;
W((c=U.value)==null?void 0:c.scrollLeft);var C;d((C=U.value)==null?void 0:C.scrollWidth);var v;f((v=U.value)==null?void 0:v.clientWidth)},L=function(){n(-.5)},m=function(){n(.5)};
A=_.c$(function(){N()});
_.pA(function(){N();if(U.value&&window.ResizeObserver){var c=new ResizeObserver(N);c.observe(U.value);_.m4(function(){c.disconnect()})}});
var z={};return _.Z("yt-sponsorships-scrollable-shelf",{class:_.CG("ytdSponsorshipsScrollableShelfHost",H.className)},_.Z("div",{class:_.CG("ytdSponsorshipsScrollableShelfContent",(z.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return H.data().previousButton&&H.data().nextButton&&!F()&&!P()},z.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return H.data().previousButton&&!F()&&P()},z.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return H.data().nextButton&&
F()&&!P()},z)),
el:U,"on:scroll":A},H.children),_.Z(_.K,{cond:function(){return!F()},
then:function(){return _.Z(_.YY,{data:function(){return H.data().previousButton}},{buttonViewModel:function(c){return _.Z(_.yJ,{data:c.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:L})}})}}),_.Z(_.K,{cond:function(){return!P()},
then:function(){return _.Z(_.YY,{data:function(){return H.data().nextButton}},{buttonViewModel:function(c){return _.Z(_.yJ,{data:c.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:m})}})}}))},"lg");
t3Y.idomCompat=!0;var yRk=_.r(function(H){var U=H.data;H={};return _.Z("yt-sponsorships-hub",{class:_.CG("ytdSponsorshipsHubHost",(H.ytdSponsorshipsHubHostIndented=function(){return U().indented},H))},_.Z("div",{class:"ytdSponsorshipsHubHeader"},_.Z("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.Z("div",{class:"ytdSponsorshipsHubAvatar"},_.Z(_.YY,{data:function(){return U().avatar}},{avatarViewModel:_.dU})),_.Z(_.K,{cond:function(){return U().badgeImage},
then:function(A){return _.Z("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.Z("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.Z("div",{class:"ytdSponsorshipsHubBadge"},_.Z(_.nG,{data:A,targetWidth:24,targetHeight:24,alt:""}))))}})),_.Z("div",{class:"ytdSponsorshipsHubDetails"},_.Z("div",{class:"ytdSponsorshipsHubTierName"},function(){return U().tierName}),_.Z("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return U().membershipType}),_.Z("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return U().membershipDurationOrExpiry})),_.Z("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.Z(_.YY,{data:function(){return U().manageButton}},{buttonViewModel:function(A){return _.Z(_.yJ,{data:A.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.Z(_.YY,{data:function(){return U().actionMenuButton}},{buttonViewModel:function(A){return _.Z(_.yJ,{data:A.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.Z("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return U().perksTitle}),_.Z(t3Y,{data:function(){return{previousButton:U().previousPerkButton,
nextButton:U().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.Z("div",{class:"ytdSponsorshipsHubPerkCards"},_.Z(_.YY,{data:function(){return U().perkCards}},{sponsorshipsHubPerkCardViewModel:Cvm}),_.Z(_.K,{cond:function(){return U().viewAllPerksButton},
then:function(A){return _.Z(cRy,{data:A})}}))))},"mg");
yRk.idomCompat=!0;var cRy=_.r(function(H){var U=H.data;return _.Z("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.Z(_.YY,{data:function(){return U().button}},{buttonViewModel:_.yJ}),_.Z("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.Z("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return U().title}),_.Z("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return U().subtitle})))},"ng");
cRy.idomCompat=!0;_.LG(yRk,"yt-sponsorships-hub",{props:{data:_.sY}});_.BMj=_.r(function(H){var U=H.data;return _.Z("yt-dual-avatar-view-model",{class:_.CG("ytDualAvatarViewModelHost",H.className),style:_.rA({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var A;return((A=U().badgeCutoutRadius)!=null?A:14)+"px"}})},_.Z("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.Z(_.YY,{data:function(){return U().startAvatar}},{avatarViewModel:_.dU}),_.Z(_.YY,{data:function(){return U().endAvatar}},{avatarViewModel:_.dU})),_.Z(_.YY,{data:function(){return U().badge}},
{contentPreviewImageViewModel:function(A){return _.Z("div",{class:"ytDualAvatarViewModelBadge"},_.Z(_.B6,{data:A.data}))}}))},"og");
_.BMj.idomCompat=!0;var eSp=_.r(function(H){var U=H.data;var A,M=!((A=_.lx().resolve(_.$V(_.qF)))==null||!A());H=_.Ja(function(){var F,P,n=M?(F=U().header)==null?void 0:F.backgroundColorDarkMode:(P=U().header)==null?void 0:P.backgroundColorLightMode;if(n!==void 0)return _.bN(n)},void 0,"TDdh7d");
A=_.Ja(function(){var F,P;return M?(F=U().header)==null?void 0:F.backgroundImagePart1Dark:(P=U().header)==null?void 0:P.backgroundImagePart1Light},void 0,"X0peMe");
var W=_.Ja(function(){var F,P;return M?(F=U().header)==null?void 0:F.backgroundImagePart2Dark:(P=U().header)==null?void 0:P.backgroundImagePart2Light},void 0,"an0Hzd"),w=_.Ja(function(){return _.gD("HTML_DIR")==="rtl"},void 0,"BltEgb"),d=_.nA("yt-sponsorships-perks-list"),O=!1,f=function(){var F=d.value;
if(F&&!O){var P,n=(P=F.parentElement)==null?void 0:P.parentElement;if(n)for(F=F.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),P=0;P<F.length;++P){var N=F[P];if(N instanceof HTMLElement){n.scrollTo({top:N.offsetTop+N.clientHeight/2-n.clientHeight/2,behavior:"smooth"});O=!0;break}}}};
_.LA(function(){var F=d.value;if(F&&window.ResizeObserver){var P=new ResizeObserver(f);P.observe(F);_.m4(function(){P.disconnect()})}});
var J={};return _.Z("yt-sponsorships-perks-list",{el:d,class:_.CG("ytdSponsorshipsPerksListHost",(J.ytdSponsorshipsPerksListHorizontalPadding=function(){return U().horizontalPaddingEnabled},J))},_.Z("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.Z("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.rA({"background-color":H})},_.Z("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.Z(_.K,{cond:A,then:function(F){var P={};return _.Z("div",{class:_.CG((P.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=M,P.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!M,P.ytdSponsorshipsPerksListFlipped=w,P))},_.Z(_.nG,{data:F,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.Z("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.Z(_.K,{cond:W,
then:function(F){var P={};return _.Z("div",{class:_.CG((P.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=M,P.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!M,P.ytdSponsorshipsPerksListFlipped=w,P))},_.Z(_.nG,{data:F,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.Z("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.Z(_.YY,{data:function(){var F;
return(F=U().header)==null?void 0:F.dualAvatar}},{dualAvatarViewModel:_.BMj})))),_.Z("div",{class:"ytdSponsorshipsPerksListBody"},_.Z("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return U().title}),_.Z(_.K,{cond:function(){return U().perks},
then:function(F){return _.Z(_.FQ,{each:F},function(P,n){var N={};return _.Z("div",{class:_.CG("ytdSponsorshipsPerksListPerkContainer",(N.ytdSponsorshipsPerksListSelectedPerk=function(){var L=n(),m=U().selectedPerkIndex;return L===m},N))},_.Z(_.K,{cond:function(){return n()>0},
then:function(){return _.Z("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.Z("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.Z(_.K,{cond:function(){return P.icon},
then:function(L){return _.Z(_.er,{icon:function(){return L().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.Z("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.Z("div",{class:"ytdSponsorshipsPerksListPerkTitle"},P.title),_.Z("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.Z(_.Pb,{text:P.description})),_.Z(_.K,{cond:function(){return P.instructions},
then:function(){var L,m;return _.Z("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.Z("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(L=P.instructions)==null?void 0:L.title),_.Z("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.Z(_.Pb,{text:(m=P.instructions)==null?void 0:m.text})))}}))),_.Z(_.K,{cond:function(){return P.emoji},
then:function(L){return _.Z("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.Z(_.FQ,{each:function(){return L()}},function(m){return _.Z(_.nG,{data:m,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.Z(rRB,{data:P}))})}})))},"pg");
eSp.idomCompat=!0;var rRB=_.r(function(H){var U=H.data;var A=function(d,O){return d===O},M=function(){var d=U();
d=_.p(d==null?void 0:d.badgesShelf,u3n);return d!==void 0&&d!==null?d:{previousButton:{},nextButton:{}}},W=_.NU("div"),w=function(){var d=W.value;
if(d){var O=d.parentElement;if(O){d=d.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var f=0;f<d.length;++f){var J=d[f];if(J instanceof HTMLElement){O.scrollTo({left:J.offsetLeft+J.clientWidth/2-O.clientWidth/2,behavior:"instant"});break}}}}};
_.LA(function(){var d=W.value;if(d){var O=new ResizeObserver(w);O.observe(d);_.m4(function(){O.disconnect()})}});
return _.Z("div",null,_.Z(_.K,{cond:function(){return U().badges},
then:function(d){return _.Z(t3Y,{data:M},_.Z("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:W},_.Z(_.FQ,{each:function(){return d()}},function(O,f){var J={},F={},P={};
return _.Z("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.Z(_.K,{cond:function(){return f()>0},
then:function(){return _.Z("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.Z("div",{class:_.CG("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(J.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return A(f(),U().currentBadgeIndex)},J.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!A(f(),U().currentBadgeIndex)},J))},_.Z("div",{class:_.CG("ytdSponsorshipsPerksListLoyaltyBadge",(F.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return A(f(),
U().currentBadgeIndex)},F.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!A(f(),U().currentBadgeIndex)},F))},_.Z(_.K,{cond:function(){return O.image},
then:function(n){var N={};return _.Z("div",{class:_.CG((N.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return A(f(),U().currentBadgeIndex)},N.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!A(f(),U().currentBadgeIndex)},N))},_.Z(_.nG,{data:n,
alt:""}))}})),_.Z("div",{class:_.CG("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(P.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return A(f(),U().currentBadgeIndex)},P))},O.title)))})))}}))},"qg");
rRB.idomCompat=!0;_.LG(eSp,"yt-sponsorships-perks-list",{props:{data:_.sY}});_.LG(_.r(function(H){return _.Z("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.Z(_.K,{cond:function(){return H.data().image},
then:function(U){return _.Z(_.nG,{className:"ytwFantasyEmptyStateViewModelImage",data:U,ariaHidden:!0,alt:""})}}),_.Z(_.Pb,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return H.data().title}}),_.Z(_.Pb,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return H.data().subtitle}}),_.Z(_.YY,{data:function(){return H.data().primaryButton}},{buttonViewModel:function(U){return _.Z(_.yJ,{data:U.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"rg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.sY}});var DSX;var $SY=_.r(function(H){var U=H.data;var A=H.uniqueId;var M=H.overrides;H=_.Ja(function(){var W,w=((W=U().timedAnimationData)==null?void 0:W.animationTiming)||[];return{uniqueId:A(),timings:w,experimentEnabled:w.length>0,enabled:w.length>0}},void 0,"hiuXI");
return _.Z("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.Z(fyw,{settings:H},_.Z(_.YY,{data:function(){return U().buttonRenderer}},{buttonRenderer:function(W){return _.Z(_.Rj,{data:W.data,
buttonOverrides:M})}})))},"sg");
$SY.idomCompat=!0;_.LG($SY,"timed-animation-button-renderer",{props:{data:_.sY,uniqueId:_.sY,overrides:_.sY}});var BV=function(){var H=_.B.apply(this,arguments)||this;H.hideJoinButtonBeforeSubscribed=_.S("hide_join_button_before_subscribed");H.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return H};
_.R(BV,_.B);_.X=BV.prototype;_.X.hasShowDialogCommand=function(H){return!!_.p(H,PQm)};
_.X.configureRendererStamper=function(){return{"data.avatarStack":{id:"avatar-stack",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model"}}},"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"}}}};
_.X.updateJoinButtonOverrides=function(){var H,U;(H=_.c4(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(U=H.polymerController)==null||U.set("overrides",this.joinButtonOverrides);if(H=_.c4(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))H.overrides=this.joinButtonOverrides};
_.X.handleButtonRefreshAction=function(H){if(H=_.p(H,ejz))this.set("data.membershipButton",H.membershipButton),this.notifyPath("data.membershipButton")};
_.X.onYtServiceRequestError=function(H){_.oR(this.hostElement,H.detail.error.message)};
_.X.onKeydown=function(H){if(H.key==="Enter"){var U;(U=this.data)!=null&&U.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.X.handleUnsubscribeAction=function(){var H,U,A;((H=this.data)==null?void 0:(U=H.membershipButton)==null?void 0:(A=U.buttonRenderer)==null?void 0:A.style)==="STYLE_PRIMARY"&&_.c4(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.D5.Object.defineProperties(BV.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.subscriptionStateEntity)==null||!H.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var H,U=(H=this.data)==null?void 0:H.membershipButton,A;H=(U==null?void 0:U.buttonRenderer)||_.p(U==null?void 0:(A=U.timedAnimationButtonRenderer)==null?void 0:A.buttonRenderer,_.f$);return(H==null?void 0:H.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(H==null?void 0:H.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(H==null?void 0:H.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var H;if(this.hasShowDialogCommand((H=this.data)==null?void 0:H.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var H;if(this.hasShowDialogCommand((H=this.data)==null?void 0:H.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.attributedTitle)}}});
BV.prototype.onYtServiceRequestError=BV.prototype.onYtServiceRequestError;BV.prototype.updateJoinButtonOverrides=BV.prototype.updateJoinButtonOverrides;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],BV.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],BV.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],BV.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.dF),_.q("design:type",Object)],BV.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],BV.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.HY),_.q("design:type",Object)],BV.prototype,"ironButtonState",void 0);_.G([_.y(),_.q("design:type",Object)],BV.prototype,"data",void 0);_.G([_.a("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.q("design:type",Object),_.q("design:paramtypes",[])],BV.prototype,"hideJoin",null);
_.G([_.y(),_.q("design:type",String)],BV.prototype,"subscribeKey",void 0);_.G([_.y({selectorArgs:["subscribeKey"],selector:XZ7}),_.q("design:type",Object)],BV.prototype,"subscriptionStateEntity",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],BV.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.G([_.a("subscriptionStateEntity"),_.y({reflectToAttribute:!0}),_.q("design:type",Object),_.q("design:paramtypes",[])],BV.prototype,"subscribed",null);
_.G([_.a("subscribed","data.membershipButton"),_.q("design:type",Object),_.q("design:paramtypes",[])],BV.prototype,"joinButtonOverrides",null);_.G([_.a("data.navigationEndpoint"),_.q("design:type",Object),_.q("design:paramtypes",[])],BV.prototype,"channelNameTabIndex",null);_.G([_.a("data.navigationEndpoint"),_.q("design:type",Object),_.q("design:paramtypes",[])],BV.prototype,"channelNameRole",null);
_.G([_.a("data.attributedTitle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],BV.prototype,"hasAttributedTitle",null);_.G([_.Ya("joinButtonOverrides"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BV.prototype,"updateJoinButtonOverrides",null);_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],BV.prototype,"onYtServiceRequestError",null);
_.G([_.dX({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],BV);
var le5=_.ty()(BV,"ytd-video-owner-renderer",function(){if(DSX===void 0){var H=document.createElement("template");_.E(H,'\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"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow></template><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" 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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);DSX=H}H=DSX;return H},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.LG(_.r(function(H){var U=H.data;var A;H=_.b(_.iB(!((A=_.H4("yt-mini-app-is-theater-mode-enabled"))==null||!A),void 0,"i2pjVd"));var M=H.next().value,W=H.next().value;A=_.b(_.iB(!1,void 0,"ga7V5c"));var w=A.next().value,d=A.next().value;_.LA(function(){var J=_.Rc(window,CjK,function(){d(YRM())});
_.m4(function(){jq(J)})});
var O;A=(O=_.lx().resolve(_.$V(dpp)))!=null?O:function(){return _.Z("div",null)};
_.C5("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){W(!0);_.V3("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.C5("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){W(!1);_.V3("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
O={};H={};var f={};return _.Z("mini-app-play-page-renderer",{class:_.CG("miniAppPlayPageRendererHost",(O.miniAppPlayPageRendererHostDetailsView=function(){return!M()},O))},_.Z("div",{class:_.CG("miniAppPlayPageRendererGameContainer",(H.miniAppPlayPageRendererGameContainerDetailsView=function(){return!M()},H))},_.Z(_.YY,{data:function(){return U().containerViewModel}},{miniAppContainerViewModel:zSf}),_.Z(_.K,{cond:function(){return U().channel&&U().subscribeButton},
then:function(){var J={};return _.Z("div",{class:_.CG("miniAppPlayPageRendererChannelContainer",(J.miniAppPlayPageRendererHideVisibility=function(){return w()},J))},_.Z(_.YY,{data:function(){return U().channel}},{videoOwnerRenderer:function(F){return _.Z(le5,{data:F.data})}}),_.Z(_.YY,{data:function(){return U().subscribeButton}},{subscribeButtonViewModel:function(F){return _.Z(_.dx,{data:F.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.Z(_.K,{cond:function(){return!M()&&U().description},
then:function(){var J={};return _.Z("div",{class:_.CG("miniAppPlayPageRendererMiniAppDescriptionWrapper",(J.miniAppPlayPageRendererHideVisibility=function(){return w()},J))},_.Z("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return U().description}))}})),_.Z("div",{class:_.CG("miniAppPlayPageRendererPlayNextContainer",(f.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!M()},f.miniAppPlayPageRendererHideVisibility=function(){return w()},f))},_.Z(_.YY,{data:function(){return U().sectionList}},
{sectionListRenderer:A})))},"tg"),"mini-app-play-page-renderer",{props:{data:_.sY}});var rb=function(){var H=_.B.apply(this,arguments)||this;H.isSearch=!1;H.isConstrainedList=!1;H.hasChipsBar=!1;H.inReplyPanel=!1;H.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"}};H.monitorScroll=!0;H.SCROLL_ANIMATION_DURATION_MS=300;H.nextContinuation={continuationType:"sectionListContinuation"};return H};
_.R(rb,_.B);_.X=rb.prototype;
_.X.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(H){switch(H.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{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},flowRootRenderer:{component:"ytd-flow-root-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:_.S("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.S("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.X.created=function(){var H=this;this.JSC$17537_scrollAnimation=new _.Eb(function(U){H.hostElement.scrollTop=U})};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.X.getItemsPath=function(){return"data.contents"};
_.X.replacePrimaryContent=function(H){this.set("data.contents",H)};
_.X.computeHasSortFilter=function(H){return!!H&&!!H.sortFilterSubMenuRenderer};
_.X.computeShouldScrollInPanel=function(H){var U;return!!(H==null?0:(U=H.scrollPaneStyle)==null?0:U.scrollable)};
_.X.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.B4(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.X.scrollToTop=function(){this.hostElement.scrollTop=0};
_.X.scrollToItemSection=function(H){if(H=this.getItemByIdentifier(H))H=this.getScrollPositionForItem(H),this.hostElement.scrollTop!==H&&this.JSC$17537_scrollAnimation.start(this.hostElement.scrollTop,H,this.SCROLL_ANIMATION_DURATION_MS)};
_.X.getItemByIdentifier=function(H){var U=this.contents.querySelectorAll("ytd-item-section-renderer");if(U&&U.length!==0){var A=Array.from(U).findIndex(function(M){return M.sectionIdentifier===H});
return U[A===-1?0:A]}};
_.X.getScrollPositionForItem=function(H){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===H)return 0;H=_.fp(H).y+this.hostElement.scrollTop-_.fp(this.hostElement).y;return Math.min(H,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.D5.Object.defineProperties(rb.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.targetId)==="browse-feedFEclips"}}});
rb.prototype.onScroll=rb.prototype.onScroll;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],rb.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.aN.YtLazyListBehavior),_.q("design:type",Object)],rb.prototype,"ytLazyListBehavior",void 0);_.G([_.g(_.Eq.YtNextContinuationBehavior),_.q("design:type",Object)],rb.prototype,"ytNextContinuationBehavior",void 0);
_.G([_.g(_.Ef$),_.q("design:type",Object)],rb.prototype,"ytBooleanLogicBehavior",void 0);_.G([_.g(_.RG),_.q("design:type",Object)],rb.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],rb.prototype,"data",void 0);_.G([_.y({value:2}),_.q("design:type",Number)],rb.prototype,"initialCount",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],rb.prototype,"autoFill",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.q("design:type",Boolean)],rb.prototype,"hasSortFilter",void 0);_.G([_.y({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.q("design:type",Boolean)],rb.prototype,"hideBottomSeparator",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.q("design:type",Boolean)],rb.prototype,"shouldScrollInPanel",void 0);
_.G([_.y(),_.q("design:type",Object)],rb.prototype,"isSearch",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],rb.prototype,"isConstrainedList",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],rb.prototype,"responsiveSizing",void 0);_.G([_.y(),_.q("design:type",Object)],rb.prototype,"hasChipsBar",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],rb.prototype,"pageSubtype",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],rb.prototype,"engagementPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],rb.prototype,"liveChatEngagementPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],rb.prototype,"inReplyPanel",void 0);_.G([_.hG("#action-button"),_.q("design:type",HTMLElement)],rb.prototype,"actionButton",void 0);_.G([_.y(),_.q("design:type",Object)],rb.prototype,"scrollUpButtonData",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],rb.prototype,"engagementPanelDropdown",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],rb.prototype,"engagementPanelDialog",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],rb.prototype,"isClipList",null);_.G([_.hG("#contents"),_.q("design:type",HTMLElement)],rb.prototype,"monitorScrollElement",void 0);_.G([_.hG("#contents"),_.q("design:type",HTMLElement)],rb.prototype,"contents",void 0);
_.G([_.Gl("scroll"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rb.prototype,"onScroll",null);_.G([_.dX({is:"ytd-section-list-renderer",disableElementRegistration:!0})],rb);
var GCf=_.ty()(rb,"ytd-section-list-renderer",function(){if(bkB===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);bkB=H}H=bkB;return H},{mode:1});var Yjj;var qjh;var hSk;var kCm;var e6=function(){return _.B.apply(this,arguments)||this};
_.R(e6,_.B);e6.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
e6.prototype.onLikeButtonClick=function(H){H.stopPropagation();H.preventDefault()};
_.D5.Object.defineProperties(e6.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)!=null&&H.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)})}}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],e6.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],e6.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],e6.prototype,"ytRendererStamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],e6.prototype,"data",void 0);
_.G([_.y({selectorArgs:["data.likeStatusEntityKey"],selector:_.wT}),_.q("design:type",Object)],e6.prototype,"likeStatusEntity",void 0);_.G([_.a("data","likeStatusEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],e6.prototype,"likeButtonRenderer",null);_.G([_.dX({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],e6);
_.e(e6,"ytd-slim-metadata-toggle-button-renderer",function(){if(kCm!==void 0)return kCm;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
return kCm=H},{mode:1});var Dx=function(){var H=_.B.apply(this,arguments)||this;H.showEqualizer=_.S("web_enable_playlist_video_lockup_equalizer");H.watchColorUpdate=_.S("kevlar_watch_color_update");H.actionMap={};return H};
_.R(Dx,_.B);_.X=Dx.prototype;_.X.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"},properties:{minimizePipBreakages:"[[minimizePipBreakages]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.X.computeEditableClass=function(H){return H&&H.menu?"editable":""};
_.X.computeSelected=function(H){return!(H==null||!H.selected)};
_.X.computeUseColorPalette=function(H){return!!((H==null?0:H.lightColorPalette)&&(H==null?0:H.darkColorPalette))};
_.X.computeLargerPlaylistThumbs=function(H,U){return _.S("web_enable_playlist_bigger_thumbnails")&&!U};
_.X.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.X.onYtServiceRequestSent=function(H,U){U.endpoint&&this.isHideEnclosingAction(U.endpoint)&&!this.selected&&jV3(_.SZ(),this.data.videoId)};
_.X.isHideEnclosingAction=function(H){var U=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",H);H=this.get("likeEndpoint.status",H)==="INDIFFERENT";return U||H};
_.X.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.X.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.D5.Object.defineProperties(Dx.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.S("web_pip_minimize_breakages")&&!!this.withinMiniplayer}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var H;return!!(this.withinMiniplayer&&((H=this.data)==null?0:H.actionButtons))}}});
Dx.prototype.onYtServiceRequestSent=Dx.prototype.onYtServiceRequestSent;Dx.prototype.canReorderChanged=Dx.prototype.canReorderChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Dx.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Dx.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Dx.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.PA),_.q("design:type",Object)],Dx.prototype,"ytdLockupBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Dx.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Dx.prototype,"withinMiniplayer",void 0);_.G([_.y({computed:"computeSelected(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Dx.prototype,"selected",void 0);
_.G([_.y({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Dx.prototype,"useColorPalette",void 0);_.G([_.y({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Dx.prototype,"largerPlaylistThumbs",void 0);_.G([_.y(),_.q("design:type",Object)],Dx.prototype,"showEqualizer",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Dx.prototype,"canReorder",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Dx.prototype,"touchPersistentDragHandle",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Dx.prototype,"handleIsHovered",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Dx.prototype,"watchColorUpdate",void 0);_.G([_.y(),_.q("design:type",String),_.q("design:paramtypes",[])],Dx.prototype,"reorderIcon",null);
_.G([_.y(),_.q("design:type",String),_.q("design:paramtypes",[])],Dx.prototype,"playIcon",null);_.G([_.y({reflectToAttribute:!0}),_.a("withinMiniplayer"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Dx.prototype,"minimizePipBreakages",null);_.G([_.a("largerPlaylistThumbs"),_.q("design:type",Number),_.q("design:paramtypes",[])],Dx.prototype,"thumbnailWidth",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Dx.prototype,"showActionButtons",null);_.G([_.jk("canReorder"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Dx.prototype,"canReorderChanged",null);_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],Dx.prototype,"onYtServiceRequestSent",null);
_.G([_.dX({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],Dx);
_.e(Dx,"ytd-playlist-panel-video-renderer",function(){if(hSk!==void 0)return hSk;var H=document.createElement("template");_.E(H,'\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="[[reorderIcon]]" 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      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\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="" minimize-pip-breakages="[[minimizePipBreakages]]" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return hSk=H},{mode:2});var $S=function(){return _.B.apply(this,arguments)||this};
_.R($S,_.B);$S.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],$S.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],$S.prototype,"data",void 0);_.G([_.dX({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],$S);
_.e($S,"ytd-playlist-panel-supported-items",function(){if(qjh!==void 0)return qjh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return qjh=
H},{mode:1});ysn=!0;Jgz("\\P{N}");var uZ8;var v5X=_.hP("END_OF_PLAYLIST",void 0,"End of playlist"),TMY=_.hP("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),lW=function(){var H=_.B.apply(this,arguments)||this;H.minimizePipBreakages=_.S("web_pip_minimize_breakages");H.hideHeaderText=!1;H.useColorPalette=!1;H.collapsed=!1;H.collapsedPreServerOverride="not_tracked";H.isHovered=!1;H.expandLabel=_.hP("MINIPLAYER_EXPAND_LABEL");H.collapseLabel=_.hP("MINIPLAYER_COLLAPSE_LABEL");H.isFloating=!1;H.metaPanel=
!1;H.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};H.currentIndex=void 0;return H};
_.R(lW,_.B);_.X=lW.prototype;
_.X.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"}}}};
_.X.created=function(){var H=this;this.scrollThrottle=new _.B$(this.onThrottledScroll,1E3,this);this.JSC$17559_ytReorderableController=new _.REH(56,function(U){H.handleDrop(U)})};
_.X.onMouseEnter=function(){this.isHovered=!0};
_.X.onMouseLeave=function(){this.isHovered=!1};
_.X.computeOverflowMenuData=function(H){return H&&H.menu?H.menu:null};
_.X.computeCollapsible=function(H){return!H};
_.X.computeHasPlaylistButtons=function(H){return!(!H||!H.playlistButtons)};
_.X.computeHasSeparateSaveButton=function(H){return!(!H||!H.saveButton)};
_.X.computeHasToolbarButton=function(H,U){return!(!H||!(U||H.saveButton||H.menu))};
_.X.computePlaylistType=function(H){if(H&&H.playlistId)return H.playlistId.substring(0,4)};
_.X.computeCanReorder=function(H){return H?H.playlistId&&H.playlistId.startsWith("TLPQ")?!0:!!H.isEditable&&!H.isInfinite:!1};
_.X.attached=function(){var H=this;try{_.lx().resolve(_.FX).setPlaylistComponent(this.hostElement)}catch(U){if(_.S("kevlar_park_on_playlist_token_killswitch"))throw U;_.sC().parkOrScheduleJob(function(){_.lx().resolve(_.FX).setPlaylistComponent(H.hostElement)},2,"ci")}_.EH(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.X.detached=function(){_.mJ(this.hostElement);_.k0(this.JSC$17559_ytReorderableController)};
_.X.computeTrailingIcon=function(H,U,A){return A?U?"yt-icons:collapse":"yt-icons:close":U?"yt-icons:expand":_.S("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.X.computeIndexMessage=function(H,U){return J2M(H+1)+" / "+J2M(U)};
_.X.onRenderStamperFinished=function(){if(this.scrollForStampDom){var H=!0;this.isHovered&&(H=!1);if(this.collapsed||this.hidden)H=!1;H&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.X.collapseChanged=function(){var H=this;this.collapsed||(_.qT(this.ytTaskEmitterBehavior.getTaskManager(),function(){H.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.X.hiddenChanged=function(){var H=this;this.hidden||_.qT(this.ytTaskEmitterBehavior.getTaskManager(),function(){H.scrollToCurrentVideo()})};
_.X.setupReordering=function(){var H=_.c4(this.hostElement).querySelector("#items");Ig3?_.ELB(this.JSC$17559_ytReorderableController,H,H,"playlist-drag-handle"):_.ELB(this.JSC$17559_ytReorderableController,H,H)};
_.X.scrollToCurrentVideo=function(){var H=this;_.Fl.addJob(function(){var U=_.c4(H.hostElement).querySelector("#items");if(U){U.style.setProperty("padding-bottom","");var A=_.c4(H.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(A){U=A.parentElement||_.bd(document);var M=U||_.bd(document);var W=_.fp(A),w=_.fp(M),d=_.hFh(M);if(M==_.bd(document)){var O=W.x-M.scrollLeft;W=W.y-M.scrollTop}else O=W.x-w.x-d.left,W=W.y-w.y-d.top;A=lDn(A);w=M.clientHeight-
A.height;d=M.scrollLeft;var f=M.scrollTop;d+=O-(M.clientWidth-A.width)/2;M=new _.E6(d,f+(W-w/2));U.scrollLeft=M.x;U.scrollTop=M.y}}},8)};
_.X.dataChanged=function(){var H=this;_.k0(this.JSC$17559_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.rV(this,function(){_.bM(H.ytTaskEmitterBehavior.getTaskManager(),function(){H.ytRendererBehavior.markDirty();H.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.X.onFullBleedPlayerChanged=function(){_.S("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.X.onFullscreenChanged=function(){_.S("web_watch_imax_theater_mode")||_.S("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.X.updateNowPlayingOverlay=function(){_.S("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.X.onPlaylistLockupNowPlaying=function(H,U){U&&(this.activeNowPlayingRenderer=U);this.updateNowPlayingOverlay()};
_.X.onScroll=function(){this.scrollThrottle.fire()};
_.X.onThrottledScroll=function(){var H=this;_.bM(this.ytTaskEmitterBehavior.getTaskManager(),function(){H.ytRendererBehavior.markDirty()})};
_.X.onToggleExpanded=function(H){!this.collapsible||H&&(_.Rr(H).tagName==="A"||_.ny(_.Lf(H),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.X.setCollapsed=function(H){this.collapsible&&(this.collapsed=H,_.Bg(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.X.handleCollapsedFromData=function(H){if(H){var U=H.playlistPanelCollapseState;U==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||U==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),U=U==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==U&&this.setCollapsed(U)):this.currentPlaylistId!==H.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(U=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==U&&this.setCollapsed(U),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=H.playlistId}};
_.X.handleDrop=function(H){var U=H.currDragItem;H=U.data.playlistSetVideoId;var A=_.cF(U.parentNode.childNodes,U),M=void 0;A>0&&(M=U.parentNode.childNodes[A-1].data.playlistSetVideoId);U=_.SZ();if(U.responsePlaylistData&&U.responsePlaylistData.contents){var W=xdE(H,U.responsePlaylistData);U.responsePlaylistData=(0,_.dG.unsafeClone)(U.responsePlaylistData);rtN(U.responsePlaylistData.contents,W,A);U.queueProxy?RAw(U.queueProxy,W,A,H,M):U.playlistProxy&&RAw(U.playlistProxy,W,A,H,M);_.p9(U,_.L9(U,U.response?
U.response.autoplayRenderer:void 0))}};
_.X.handleDarkModeChange=function(H){H!==this.isDarkTheme&&(this.isDarkTheme=H)};
_.X.colorPaletteChanged=function(){var H,U=((H=this.data)==null?void 0:H.contents)||[],A;H=_.b(U);for(U=H.next();!U.done;U=H.next()){U=U.value;var M=void 0;if((M=U.playlistPanelVideoRenderer)==null?0:M.selected){H=U.playlistPanelVideoRenderer;M=U=void 0;(A=this.isDarkTheme?(U=H)==null?void 0:U.darkColorPalette:(M=H)==null?void 0:M.lightColorPalette)&&_.jr(this.hostElement,A);break}}this.useColorPalette=!!A};
_.D5.Object.defineProperties(lW.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.moveThreeDotsMenuToMainHeader)&&_.S("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var H=_.lx().resolve(_.$V(_.FX)),U;if(((U=this.data)==null?0:U.contents)&&(H==null?0:H.hasAutoplayData())){var A;if(((A=this.playlistLoopStateEntity)==null?void 0:A.state)==="PLAYLIST_LOOP_STATE_ONE"){if(H=this.data.currentIndex,H!==void 0){var M,W;var w=(M=this.data.contents[H])==null?void 0:(W=M.playlistPanelVideoRenderer)==null?void 0:W.title}}else{var d,O=(d=_.p(H.getAutoplayEndpoint(),_.sH))==null?void 0:d.videoId,f,J;w=(f=this.data.contents.find(function(F){var P;
return((P=F.playlistPanelVideoRenderer)==null?void 0:P.videoId)===O}))==null?void 0:(J=f.playlistPanelVideoRenderer)==null?void 0:J.title}return w}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)!=null&&H.nextVideoLabel?this.nextVideoTitle?_.Sp(this.data.nextVideoLabel)+":":v5X:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var H;if(((H=this.data)==null?0:H.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.S("web_mix_long_byline_from_data"))return _.Nh(TMY);var U;return(U=this.data)==null?void 0:U.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M=(H=this.data)==null?void 0:(U=H.playlistButtons)==null?void 0:(A=U.menuRenderer)==null?void 0:A.topLevelButtons;if(M)for(H=_.b(M),U=H.next();!U.done;U=H.next())if(U=U.value,U.playlistLoopButtonRenderer)return U.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var H;return!!(this.collapsed&&((H=this.data)==null?0:H.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.S("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
lW.prototype.colorPaletteChanged=lW.prototype.colorPaletteChanged;lW.prototype.onPlaylistLockupNowPlaying=lW.prototype.onPlaylistLockupNowPlaying;lW.prototype.updateNowPlayingOverlay=lW.prototype.updateNowPlayingOverlay;lW.prototype.onFullscreenChanged=lW.prototype.onFullscreenChanged;lW.prototype.onFullBleedPlayerChanged=lW.prototype.onFullBleedPlayerChanged;lW.prototype.dataChanged=lW.prototype.dataChanged;lW.prototype.hiddenChanged=lW.prototype.hiddenChanged;lW.prototype.collapseChanged=lW.prototype.collapseChanged;
lW.prototype.onRenderStamperFinished=lW.prototype.onRenderStamperFinished;lW.prototype.onMouseLeave=lW.prototype.onMouseLeave;lW.prototype.onMouseEnter=lW.prototype.onMouseEnter;_.G([_.g(_.Qo),_.q("design:type",Object)],lW.prototype,"ironResizableBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(Q33.YtPlaylistPanelBehavior),_.q("design:type",Object)],lW.prototype,"ytPlaylistPanelBehavior",void 0);_.G([_.g(_.LJ.YtTaskEmitterBehavior),_.q("design:type",Object)],lW.prototype,"ytTaskEmitterBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],lW.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],lW.prototype,"ytdReduxBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],lW.prototype,"actionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],lW.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],lW.prototype,"autoplayData",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],lW.prototype,"withinMiniplayer",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],lW.prototype,"minimizePipBreakages",void 0);
_.G([_.y({computed:"setMenuData_(data)"}),_.q("design:type",Object)],lW.prototype,"menuRendererData",void 0);_.G([_.y({computed:"computeOverflowMenuData(data)"}),_.q("design:type",Object)],lW.prototype,"overflowMenuDataTopRow",void 0);_.G([_.y({computed:"computeOverflowMenuData(data)"}),_.q("design:type",Object)],lW.prototype,"overflowMenuData",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],lW.prototype,"hideHeaderText",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],lW.prototype,"useColorPalette",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.q("design:type",Boolean)],lW.prototype,"collapsible",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],lW.prototype,"collapsed",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],lW.prototype,"hidden",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.q("design:type",Boolean)],lW.prototype,"hasPlaylistButtons",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.q("design:type",Boolean)],lW.prototype,"hasSeparateSaveButton",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.q("design:type",Boolean)],lW.prototype,"hasToolbar",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.q("design:type",String)],lW.prototype,"playlistType",void 0);_.G([_.y(),_.q("design:type",Object)],lW.prototype,"isHovered",void 0);_.G([_.y({selectorArgs:["playlistLoopStateEntityKey"],selector:_.Ab.playlistLoopStateEntitySelector}),_.q("design:type",Object)],lW.prototype,"playlistLoopStateEntity",void 0);_.G([_.y({computed:"computeCanReorder(data)"}),_.q("design:type",Boolean)],lW.prototype,"canReorder",void 0);
_.G([_.y(),_.q("design:type",Object)],lW.prototype,"expandLabel",void 0);_.G([_.y(),_.q("design:type",Object)],lW.prototype,"collapseLabel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],lW.prototype,"isFloating",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],lW.prototype,"metaPanel",void 0);_.G([_.y({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.q("design:type",String)],lW.prototype,"trailingIcon",void 0);
_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],lW.prototype,"isDarkTheme",void 0);_.G([_.y({selector:_.iE}),_.q("design:type",Boolean)],lW.prototype,"miniplayerIsActive",void 0);_.G([_.y({selector:function(H){return H.watch.playerState}}),
_.q("design:type",Number)],lW.prototype,"playerState",void 0);_.G([_.y({selector:_.MF}),_.q("design:type",Boolean)],lW.prototype,"isFullscreen",void 0);_.G([_.y({selector:_.As}),_.q("design:type",Boolean)],lW.prototype,"isTheaterMode",void 0);_.G([_.y(),_.q("design:type",Object)],lW.prototype,"activeNowPlayingRenderer",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],lW.prototype,"moveThreeDotMenuToTopRow",null);
_.G([_.a("data","autoplayData","playlistLoopStateEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],lW.prototype,"nextVideoTitle",null);_.G([_.a("data","nextVideoTitle"),_.q("design:type",String),_.q("design:paramtypes",[])],lW.prototype,"nextVideoLabel",null);_.G([_.a("collapsed"),_.q("design:type",String),_.q("design:paramtypes",[])],lW.prototype,"buttonAriaLabel",null);
_.G([_.a("data","playlistId","longBylineText"),_.q("design:type",Object),_.q("design:paramtypes",[])],lW.prototype,"mixLongByLine",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],lW.prototype,"playlistLoopStateEntityKey",null);_.G([_.Gl("mouseenter"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lW.prototype,"onMouseEnter",null);
_.G([_.Gl("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lW.prototype,"onMouseLeave",null);_.G([_.y({reflectToAttribute:!0}),_.a("data","collapsed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],lW.prototype,"showNextVideoHeader",null);_.G([_.Gl("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lW.prototype,"onRenderStamperFinished",null);
_.G([_.Ya("collapsed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lW.prototype,"collapseChanged",null);_.G([_.Ya("hidden"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lW.prototype,"hiddenChanged",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lW.prototype,"dataChanged",null);
_.G([_.a("isTheaterMode","isFullscreen"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],lW.prototype,"isFullBleedPlayer",null);_.G([_.Ya("isTheaterMode","isFullscreen"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lW.prototype,"onFullBleedPlayerChanged",null);_.G([_.Ya("isFullscreen"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lW.prototype,"onFullscreenChanged",null);
_.G([_.Ya("playerState","miniplayerIsActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lW.prototype,"updateNowPlayingOverlay",null);_.G([_.Gl("yt-playlist-lockup-now-playing-active"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],lW.prototype,"onPlaylistLockupNowPlaying",null);
_.G([_.Ya("data","isDarkTheme"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lW.prototype,"colorPaletteChanged",null);_.G([_.dX({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],lW);
_.j5X=_.ty()(lW,"ytd-playlist-panel-renderer",function(){if(Yjj===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);Yjj=H}H=Yjj;return H},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});_.Ie$={};
_.Ie$.YtConditionalRendererBehavior=[_.I.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(H,U){var A=this,M,W;return _.u(function(w){switch(w.nextAddress){case 1:if(!U)return A.hidden=!0,A.showSpinner=!1,w.return();if((M=H)==null?0:(W=M.visibilityCondition)==null?0:W.mode)switch(H.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return w.jumpTo(5);default:return w.jumpTo(6)}A.showSpinner=
!1;A.hidden=!0;return w.yield(A.shouldShow_(H),4);case 4:A.hidden=!w.yieldResult;w.jumpTo(0);break;case 5:return w.yield(A.shouldShow_(H),8);case 8:A.showSpinner=w.yieldResult;A.hidden=!1;w.jumpTo(0);break;case 6:return A.showSpinner=!1,w.yield(A.shouldShow_(H),9);case 9:A.hidden=!w.yieldResult,_.DO(w)}})},
shouldShow_:function(H){return H&&H.supportedDatas&&H.supportedDatas.rendererVisibilityConditionData&&H.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(H.supportedDatas.rendererVisibilityConditionData.showIf):H&&H.visibilityCondition&&H.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(H.visibilityCondition.showIf):H&&H.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(H.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(H){switch(H){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(H){switch(H){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var H=_.yr(this.hostElement,"yt-get-mdx-status");return H.length==1&&H[0].connected},
isLocationPermissionGranted_:function(){var H;return _.u(function(U){return U.nextAddress==1?navigator.permissions?U.yield(navigator.permissions.query({name:"geolocation"}),3):U.jumpTo(2):U.nextAddress!=2?(H=U.yieldResult,U.return(Promise.resolve(H.state==="granted"))):U.return(Promise.resolve(!1))})}}];var Q5h=odF("yt-icon",{callbackProps:["onKeydown"]}),V3p=_.S("kevlar_use_wil_icons")?_.r(function(H){var U=H.icon;var A=H.active;var M=H.className;var W=H.style;var w=H.title;var d=H.size;var O=H.dataSelected;var f=H.dataDisabled;var J=H.role;var F=H.themeOverride;var P=H.animateIcon;var n=H.ariaHidden;var N=H.ariaExpanded;var L=H.ariaLabel;var m=H.tabindex;var z=H.id;var c=H.iconFilter;var C=H.gradientColor;var v=H.onKeydown;var Y=function(){var T=U==null?void 0:U(),WF=null,dK=void 0;T&&(T=EzH(T),
T=Gxh(T),T.length&&(WF=T[1],dK=T[0]));return{iconName:WF,iconSetName:dK}},D=function(){return mQw(Y().iconName,A==null?void 0:A(),void 0,d==null?void 0:d(),Y().iconSetName,_.lx().resolve(_.Dd))},h=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:c==null?void 0:c(),iconColor:C==null?void 0:C()}};
return _.Z(_.K,{cond:P,then:function(){return _.Z(Q5h,{icon:U,active:A,className:M,style:W,title:w,dataSelected:O,dataDisabled:f,role:J,themeOverride:F,ariaHidden:n,ariaExpanded:N,ariaLabel:L,tabindex:m,id:z,iconFilter:c,gradientColor:C,onKeydown:v})},
else:function(){return _.Z(_.K,{cond:D,then:function(T){return _.Z("span",{class:_.CG("ytIconWrapperHost",M),role:J,"aria-label":L,"aria-hidden":n,tabindex:function(){return isNaN(Number(m==null?void 0:m()))?void 0:Number(m==null?void 0:m())},
id:z,style:W,title:w,"on:keydown":_.c$(function(WF){return void(v==null?void 0:v(WF))})},_.Z(_.Tk,{data:T,
options:h}))}})}})},"ug"):Q5h;var HUB=function(H){var U=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];rph();_.eC("ytglobal.ytUtilActivityCallback_",function(){_.Bg(H,"yt-user-activity")});
new ex(function(){return U.JSC$17576_onMouseMove});
document.addEventListener("scroll",function(){return U.onScroll});
window.addEventListener("resize",function(){return U.onResize})},UoX=function(H,U,A){U in H.eventJobIds||(A=_.MP().addLowPriorityJob(function(){_.D6();
delete H.eventJobIds[U]},A),H.eventJobIds[U]=A)};
HUB.prototype.onScroll=function(H){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):H.target===document&&UoX(this,"scroll",200)};
HUB.prototype.onResize=function(){UoX(this,"resize",200)};
HUB.prototype.JSC$17576_onMouseMove=function(){UoX(this,"mousemove",100)};
_.mE=function(H){H.scrollEventsToIgnore+=1;H.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){H.scrollEventsToIgnore--},500))};var A$X=function(H){this.element=H;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
A$X.prototype.showFeedbackDialog=function(H,U,A,M){var W=MG5();if(!W)return!1;var w=R7N();w.productId=W;U&&(w.flow="submit",w.report={description:U});A&&(MG5()==="59"?w.callback=_.CA(function(){_.Fx("userFeedbackEvent",{});A()}):w.callback=_.CA(A));
w.bucket=M||_.gD("GOOGLE_FEEDBACK_BUCKET","Other");Wf5(w);H=wIk(this,"GFEEDBACK",H);try{_.EnK(w,H)}catch(d){return _.za(d),!1}return!0};
A$X.prototype.showHelpDialog=function(H,U,A){var M=this,W=MG5();if(!W)return!1;var w={helpCenterPath:"/youtube",productData:wIk(this,"GUIDED_HELP",A)};Wf5(w);var d=R7N();d.context=H||w.productData.context||"default";d.defaultHelpArticleId=U;d.enableSendFeedback=!0;(_.tr("gapi.load")||function(O,f){return f()})("client",function(){try{var O=i_2(W,w);
if(_.S("web_always_load_chat_support")&&!M.chatSupportLoaded)try{O.JSC$10278_loadChatSupport(d),M.chatSupportLoaded=!0}catch(f){}O.startHelp(d)}catch(f){_.za(f)}})};
var MG5=function(){var H=_.gD("GOOGLE_FEEDBACK_PRODUCT_ID");H||_.za(Error("ji"));return H},Wf5=function(H){H&&(H.locale=_.S("kevlar_help_use_locale")?_.gD("INNERTUBE_CONTEXT_HL","en"):_.gD("HTML_LANG","en"))},wIk=function(H,U,A){var M=H.productData;
delete M.origin;M.device=_.FE();var W;a:{if(W=document.createElement("canvas")){var w=W.getContext("experimental-webgl",{stencil:!0});if(w){var d=w.getExtension("WEBGL_debug_renderer_info");if(d){W=w.getParameter(d.UNMASKED_RENDERER_WEBGL);break a}}if(w=W.getContext("webgl")){W=w.getParameter(w.RENDERER);break a}}W=null}M.gpu=W;M.isSDC=!!_.gD("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(W=_.gD("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.dG.extend(M,W);_.p7c(U,M);_.La7(M);(H=_.Bg(H.element,"yt-get-autonav-pause-debug-state"))&&
H.length&&(M.autonav_pause_state=H[0]);H=_.VT();M.browser_resolution=H.width+"\u00d7"+H.height+"@"+(window.devicePixelRatio||1)+"x";A&&_.dG.extend(M,A);return M};
A$X.prototype.resetProductData=function(){this.productData={}};var XIj=function(H){this.feedbackManager=new A$X(H)};
XIj.prototype.showFeedbackDialog=function(H,U,A,M){return this.feedbackManager.showFeedbackDialog(H,U,A,M)};
XIj.prototype.showHelpDialog=function(H,U,A){return this.feedbackManager.showHelpDialog(H,U,A)};var iU8=function(){this.baseUrl="";this.aTag=document.createElement("a")},wDp=function(H,U,A){A=A===void 0?{}:A;
A.pbj||(A.pbj=1);A=_.sRN(U,A);H.baseUrl&&A&&!_.BL(A)[1]&&!_.es(A)&&(U=H.baseUrl,i7(U,"/")&&(U=U.slice(0,-1)),_.XE(A,"/")&&(A=A.slice(1)),A=U+"/"+A);HI(H.aTag,_.vy(A||""));return H.aTag.href};
iU8.prototype.fetchData=function(H){return _.Fa4(H)};
iU8.prototype.postData=function(H,U){var A={method:"POST"};if(U){for(var M=_.b(Object.keys(U)),W=M.next();!W.done;W=M.next()){W=W.value;var w=U[W];_.ht(w)&&(U[W]=JSON.stringify(w))}A.postParams=U}return _.Fa4(H,A)};
_.XDp=function(H,U,A,M,W){H=wDp(H,U,A);if(!H)throw M=Error("ki"),Object.assign(M,{params:U}),M;return _.Fa4(H,W,M)};
iU8.prototype.requestDataForServiceEndpoint=function(H,U){if(_.p(H,_.geE))return this.fetchData("/getAccountSwitcherEndpoint");U=U||{};var A=_.p(H,DI3);A?U.se=A.base64EncodedServiceEndpoint:U.sej=JSON.stringify(H);(A=_.XK())&&_.S("enable_service_ajax_csn")&&(U.csn=A);U.theme=_.Kf();_.p(H,Eet)&&_.gD("DELEGATION_CONTEXT")&&(U.delegation_context=JSON.stringify(_.gD("DELEGATION_CONTEXT")));A=null;for(var M in H)if(i7(M,"Endpoint")||i7(M,"Command")){A=M;break}if(!A){var W=Error("li");Object.assign(W,{params:H});
_.oCc(W,"WARNING");return new _.IQ(function(d,O){O(W)})}M={name:A};
var w;(A=(w=_.p(H,_.GR))==null?void 0:w.signal)&&(M.signal=A);(w=_.rD(window.location.href))&&w.internalcountrycode&&(M.internalcountrycode=w.internalcountrycode);w="/service_ajax";_.S("debug_forward_web_query_parameters")&&(w=_.ywV(w,window.location.search));w=_.kZ(w,M);H.clickTrackingParams&&_.Sb(w,{itct:H.clickTrackingParams});return this.postData(w,U)};_.bU7=new _.g3("GFEEDBACK_TOKEN");var doy;var OUh;var uPh;var ZUh;var GT=function(){var H=_.B.apply(this,arguments)||this;H.compact=!1;H.dismissButtonDisabled=!1;H.shouldRenderReasonAsFormattedString=!_.S("web_player_error_message_reason_as_formatted_string_killswitch");return H};
_.R(GT,_.B);GT.prototype.computeHasIcon_=function(H){return!!H};
GT.prototype.isSignInIcon_=function(H){return H=="yt-icons:prompted_sign_in"};
GT.prototype.onDismissButtonClick=function(){var H=this,U=this.data.disableOnClick,A,M=(A=this.data.dismissButton)==null?void 0:A.buttonRenderer;U&&!this.dismissButtonDisabled&&M&&setTimeout(function(){H.dismissButtonDisabled=!0},0)};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.Ie$.YtConditionalRendererBehavior),_.q("design:type",Object)],GT.prototype,"ytConditionalRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],GT.prototype,"data",void 0);_.G([_.y({computed:"computeIcon_(data.icon)"}),_.q("design:type",Object)],GT.prototype,"icon_",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.q("design:type",Boolean)],GT.prototype,"hasIcon_",void 0);_.G([_.y({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.q("design:type",Boolean)],GT.prototype,"signInIcon_",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],GT.prototype,"compact",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],GT.prototype,"dismissButtonDisabled",void 0);
_.G([_.y({type:Boolean}),_.q("design:type",Object)],GT.prototype,"shouldRenderReasonAsFormattedString",void 0);_.G([_.b0({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],GT);
_.e(GT,"yt-player-error-message-renderer",function(){if(ZUh===void 0){var H=document.createElement("template");_.E(H,'\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\n<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    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" 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    </template>\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      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;uPh===void 0&&(uPh=document.createElement("template"));var M=uPh;A.call(U,M.content.cloneNode(!0),H.content.firstChild);ZUh=H}H=ZUh;return H},{mode:2});var fOf;var J$7;var YS=function(){return _.B.apply(this,arguments)||this};
_.R(YS,_.B);YS.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
YS.prototype.computeIcon_=function(H){return H?"yt-icons:"+H.iconType.toLowerCase():"error_outline"};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],YS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],YS.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],YS.prototype,"data",void 0);_.G([_.y({computed:"computeIcon_(data.icon)"}),_.q("design:type",Object)],YS.prototype,"icon_",void 0);_.G([_.b0({is:"yt-player-kav-renderer",disableElementRegistration:!0})],YS);
_.e(YS,"yt-player-kav-renderer",function(){if(J$7===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;fOf===void 0&&(fOf=document.createElement("template"));var M=fOf;A.call(U,M.content.cloneNode(!0),H.content.firstChild);J$7=H}H=J$7;return H},{mode:2});var g_E=_.NP(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.LG(_.r(function(H){var U=_.nA("div"),A=_.b(_.iB(0,void 0,"jxh75d")),M=A.next().value,W=A.next().value;A=_.b(_.iB(null,void 0,"F5Zm8"));var w=A.next().value,d=A.next().value;_.LA(function(){aqc(U.value,W,d);U.value.scrollIntoView()});
A=x__.bind(null,H.data,M);_.B1("resize",function(){var O=w();if(M()===1&&O!==null){var f;(f=window.grecaptcha)==null||f.reset(O)}});
return _.Z("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.Z("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.Z("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var O,f;return(O=H.data().accessibility)==null?void 0:(f=O.accessibilityData)==null?void 0:f.label}),_.Z(_.Pb,{text:A,
className:_.CG("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.Z("div",{el:U,class:"ytwPlayerCaptchaViewModelGridItem"})))},"vg"),"yt-player-captcha-view-model",{props:{data:_.Ne}});var z7N=!1;_.Kf5=_.r(function(H){var U=H.data;return _.Z("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.Z(_.K,{cond:function(){return U().icon},
then:function(A){return _.Z("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.Z(_.nG,{data:A,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.Z(_.K,{cond:function(){return U().title},
then:function(A){return _.Z("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.Z(_.Pb,{text:A}))}}),_.Z(_.K,{cond:function(){return U().description},
then:function(A){return _.Z("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.Z(_.Pb,{text:A}))}}),_.Z(_.YY,{data:function(){return U().primaryButton}},{buttonViewModel:function(A){return _.Z(_.yJ,{data:A.data,
className:"interstitialViewModelFlexItem"})}}),_.Z(_.YY,{data:function(){return U().secondaryButton}},{buttonViewModel:function(A){return _.Z(_.yJ,{data:A.data,
className:"interstitialViewModelFlexItem"})}}))},"wg");
_.Kf5.idomCompat=!0;var osB=_.r(function(H){var U=H.data;_.oi();return _.Z("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.Z("div",{class:"playerInterstitialRendererScrim"},_.Z(_.YY,{data:function(){return U().content}},{interstitialViewModel:_.Kf5})))},"xg");
osB.idomCompat=!0;_.LG(osB,"yt-player-interstitial-renderer",{props:{data:_.sY}});var qV=function(){var H=_.B.apply(this,arguments)||this;H.noBackground=!1;H.compact=!1;H.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return H};
_.R(qV,_.B);qV.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"}}}};
qV.prototype.onUpdatePlayerErrorMessageCommand_=function(H){if(_.p(H,I1H)){var U;if(H=(U=_.p(H,I1H))==null?void 0:U.newPlayerErrorMessageRenderer)this.data=H}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],qV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],qV.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],qV.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],qV.prototype,"status",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],qV.prototype,"noBackground",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],qV.prototype,"compact",void 0);_.G([_.b0({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],qV);
var FfY=_.ty()(qV,"yt-playability-error-supported-renderers",function(){if(OUh===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;doy===void 0&&(doy=document.createElement("template"));var M=doy;A.call(U,M.content.cloneNode(!0),H.content.firstChild);OUh=H}H=OUh;return H},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var PLh=odF("ytd-button-renderer");var Ct0=void 0,c2N=void 0;var r27=new hbh;var CY=new _.g3("ENTITY_STATE_TOKEN"),hE=new _.g3("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var sDB=function(H){this.store=H;this.idG=new _.TiK},LVB=function(H,U,A){var M,W;
if(!(W=((M=U.playabilityStatus)==null?void 0:M.status)!=="OK")){H=H.store;var w;W=U.offlineState&&((w=U.videoDetails)==null?0:w.videoId)?_.S("enable_pl_r_c_cd")?Rx0(H.getState().entities,U.videoDetails.videoId):!!VeM(H.getState().entities,U.videoDetails.videoId):!1}if(W)return!0;W=lqh(U);if(W===1){if(_.S("ab_v_vid_sig")){var d,O=(d=U.videoDetails)==null?void 0:d.videoId;if(!O||!A||O!==A){var f;U=new _.bD("282054944_vid",{mzk:A,i5M:(f=U.videoDetails)==null?void 0:f.videoId});_.sD(U)}}return!0}ZQh=
0;var J,F;f=(O=U.auxiliaryUi)==null?void 0:(J=O.messageRenderers)==null?void 0:(F=J.bkaEnforcementMessageViewModel)==null?void 0:F.displayType;if(W!==3&&(f==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||f==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;f={reason:_.gH(_.hP("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.S("ks_something_wrong_learn_more")?Q7c("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.gH(_.hP("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:_.gH("282054944")};nsy(U,{playerErrorMessageRenderer:f});return!1},R4p=function(H,U){if(aC0(U)){_.$O(1,!0);
var A=(A=aC0(U))&&_.t_E()?A:void 0;A?(nsy(U,{enforcementMessageViewModel:A}),H.idG.increment("IN_PLAYER"),_.$O(5)):(H.idG.increment("SKIP_DISPLAY"),_.$O(2))}},nsy=function(H,U){H.playabilityStatus=Object.assign({},H.playabilityStatus,{status:"ERROR",
errorScreen:U});H.videoDetails=void 0};
sDB.prototype.handleResponse=function(H,U){if(H.playabilityStatus){var A,M,W,w=(U==null?void 0:(A=U.innerTubeRequest)==null?void 0:A.videoId)||(U==null?void 0:(M=U.innerTubeRequest)==null?void 0:(W=M.playerRequest)==null?void 0:W.videoId);LVB(this,H,w)&&R4p(this,H)}};
sDB[Ga]=[CY];var SMw=new _.g3("ADBLOCK_DETECTION_SERVICE_TOKEN");var NT=function(H){this.xLK=H};
NT.prototype.bindInnertubeChallengeFetcher=function(H){this.xLK.bicf(H)};
NT.prototype.registerChallengeFetchedCallback=function(H){this.xLK.bcr(H)};
NT.prototype.getLatestChallengeResponse=function(){return this.xLK.blc()};var NYf;NYf=_.NP(["https://static.doubleclick.net/instream/ad_status.js"]);_.Sr5=_.LF(NYf);var Esj;_.kS=function(H,U,A){var M=this;this.network=H;this.options=U;this.networkStatusManager=A;this.fR=null;if(U.useBotguardEverywhere){var W=new _.r1;this.fR=W.promise;_.Mr.ytAtRC&&_.TB(_.Fl,function(){var w,d;return _.u(function(O){if(O.nextAddress==1){if(!_.Mr.ytAtRC)return O.return();w=pIf(null);return O.yield(M.hLj(w),2)}d=O.yieldResult;_.Mr.ytAtRC&&_.Mr.ytAtRC(JSON.stringify(d));_.DO(O)})});
v_c().then(function(w){var d,O,f,J;return _.u(function(F){if(F.nextAddress==1)return w.bindInnertubeChallengeFetcher(function(P){return M.hLj(pIf(P))}),F.yield(SWE(),2);
d=F.yieldResult;O=w.getLatestChallengeResponse();f=O.challenge;if(!f)throw Error("ni");J={challenge:f,fC:sa(f),vm:d,bgChallenge:new Fk};W.resolve(J);w.registerChallengeFetchedCallback(function(P){P=P.challenge;if(!P)throw Error("oi");P={challenge:P,fC:sa(P),vm:d,bgChallenge:new Fk};M.fR=Promise.resolve(P)});
_.DO(F)})})}else U.preload&&Lfm(this,new Promise(function(w){_.bM(_.Fl,function(){w(RK$(M))},0)}))};
Esj=function(H){var U={preload:!0,useBotguardEverywhere:!0},A=!1;if(typeof U==="boolean")var M={preload:U};else typeof U==="undefined"?M={preload:!0}:(M=U,A=!!U.jl8);U=A?void 0:new _.xB;_.kS.instance=new _.kS(H,M,U);return _.kS.instance};
_.kS.prototype.jJV=function(){var H=this;return _.u(function(U){return U.nextAddress==1?U.yield(Promise.race([H.fR,null]),2):U.return(!!U.yieldResult)})};
_.kS.prototype.qzc=function(H,U,A){var M=this,W,w,d;return _.u(function(O){M.fR===null&&Lfm(M,RK$(M));W=!1;w={};d=function(){var f,J,F,P,n;return _.u(function(N){switch(N.nextAddress){case 1:if(!M.options.dY1||!M.options.useBotguardEverywhere){N.jumpTo(2);break}return N.yield(kdN(),3);case 3:return f=N.yieldResult,N.yield((J=f)==null?void 0:J.checkForRefresh(),2);case 2:return N.yield(M.fR,5);case 5:F=N.yieldResult;w.challenge=F.challenge;if(!F.vm){"c1a"in F.fC&&(w.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");
N.jumpTo(6);break}P=Object.assign({},{c:F.challenge,e:H},U);_.zj(N,7);W=!0;return N.yield(F.vm.snapshot({f2:P}),9);case 9:(n=N.yieldResult)?w.webResponse=n:w.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.xD(N,6);break;case 7:_.eG(N),w.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(H==="ENGAGEMENT_TYPE_PLAYBACK"){var L=F.fC,m={};if(L.c6a){var z=Number(_.gD("DCLKSTAT",0));m.reportingStatus=String(Number(L.c)^(isNaN(z)?0:z))}L.c6b&&(m.broadSpectrumDetectionResult=String(Number(L.c)^Number(_.gD("CATSTAT",
0))));w.adblockReporting=m}return N.return(w)}})};
return O.return(Promise.race([d(),moY(A,function(){var f=Object.assign({},w);W&&(f.error="ATTESTATION_ERROR_VM_TIMEOUT");return f})]))})};
var pIf=function(H){var U={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};H&&(U.interpreterHash=H);return U},RK$=function(H,U){U=U===void 0?0:U;
var A,M,W,w,d,O,f,J,F,P,n,N;return _.u(function(L){switch(L.nextAddress){case 1:A=pIf(vVK().fQI);if(_.S("att_fet_ks"))return _.zj(L,7),L.yield(H.hLj(A),9);_.zj(L,4);return L.yield(gs5(H,A),6);case 6:d=L.yieldResult;W=d.duf;w=d.ysf;M=d;_.xD(L,3);break;case 4:return _.eG(L),_.Na(Error("pi`"+U)),aOk(H,864E5),L.return({challenge:"",fC:{},vm:void 0,bgChallenge:void 0});case 9:M=L.yieldResult;if(!M)throw Error("qi");if(!M.challenge)throw Error("ri");W=M.challenge;w=sa(W);if("c1a"in w&&(!M.bgChallenge||
!M.bgChallenge.program))throw Error("si");_.xD(L,3);break;case 7:O=_.eG(L);_.Na(O);U++;if(U>=5)return _.Na(Error("pi`"+U)),aOk(H,864E5),L.return({challenge:"",fC:{},vm:void 0,bgChallenge:void 0});f=1E3*Math.pow(2,U-1)+Math.random()*1E3;return L.return(new Promise(function(m){_.bM(_.Fl,function(){m(RK$(H,U))},f)}));
case 3:J=h7c(w);aOk(H,J*1E3);F=void 0;if(!("c1a"in w&&M.bgChallenge)){L.jumpTo(10);break}P=qJc(M.bgChallenge);_.zj(L,11);return L.yield(jhg(vVK(),P),13);case 13:_.xD(L,12);break;case 11:return n=_.eG(L),_.Na(n),L.return({challenge:W,fC:w,vm:F,bgChallenge:P});case 12:return _.zj(L,14),F=new _.ow({challenge:P,fkX:{am:"aGIf"}}),L.yield(F.nCX,16);case 16:_.xD(L,10);break;case 14:N=_.eG(L),_.Na(N),F=void 0;case 10:return L.return({challenge:W,fC:w,vm:F,bgChallenge:P})}})},xo5=function(H,U){var A;
return _.u(function(M){if(M.nextAddress==1)return nY(2),_.zj(M,2),M.yield(H.network.hLj(U),4);if(M.nextAddress!=2)return(A=M.yieldResult)?A.challenge&&!A.bgChallenge?nY(1):nY(4):nY(3),M.return(A);_.eG(M);nY(3);return M.return(void 0)})};
_.kS.prototype.hLj=function(H){var U=this,A;return _.u(function(M){A=U.networkStatusManager;if(!A||A.isNetworkAvailable())return M.return(xo5(U,H));_.On("att_pna",void 0,"attestation_challenge_fetch");return M.return(new Promise(function(W){A.listenOnce("publicytnetworkstatus-online",function(){xo5(U,H).then(W)})}))})};
var zKy=function(H){if(!H)throw Error("qi");if(!H.challenge)throw Error("ri");var U=H.challenge,A=sa(U);if("c1a"in A&&(!H.bgChallenge||!H.bgChallenge.program))throw Error("si");return Object.assign({},H,{duf:U,ysf:A})},gs5=function(H,U){var A,M,W,w,d;
return _.u(function(O){switch(O.nextAddress){case 1:A=void 0,M=0,W={};case 2:if(!(M<5)){O.jumpTo(4);break}if(!(M>0)){O.jumpTo(5);break}W.tp3=1E3*Math.pow(2,M-1)+Math.random()*1E3;return O.yield(new Promise(function(f){return function(J){_.bM(_.Fl,function(){J(void 0)},f.tp3)}}(W)),5);
case 5:return _.zj(O,7),O.yield(H.hLj(U),9);case 9:return w=O.yieldResult,O.return(zKy(w));case 7:A=d=_.eG(O),d instanceof Error&&_.Na(d);case 8:M++;W={tp3:void 0};O.jumpTo(2);break;case 4:throw A;}})},Lfm=function(H,U){H.fR=U},CLX=function(H){var U,A,M;
return _.u(function(W){if(W.nextAddress==1)return W.yield(Promise.race([H.fR,null]),2);U=W.yieldResult;var w=RK$(H);H.fR=w;(A=U)==null||(M=A.vm)==null||M.dispose();_.DO(W)})},aOk=function(H,U){var A=Date.now()+U,M=function(){var W;
return _.u(function(w){W=A-Date.now();return W<1E3?w.yield(CLX(H),0):(_.bM(_.Fl,M,Math.min(W,6E4)),w.jumpTo(0))})};
M()},moY=function(H,U){return new Promise(function(A){_.bM(_.Fl,function(){A(U())},H)})};var tG8=function(){};
tG8.prototype.processContext=function(H){var U=_.kS.instance;if(!U)return _.p$();var A=H70(H);return A?new SR(U.qzc(A,Iq0(H),500).then(function(M){var W;(H==null?0:(W=H.innerTubeRequest)==null?0:W.context)||(H.innerTubeRequest.context={});W=H.innerTubeRequest.context;W.request||(W.request={});W.request.attestationResponseData=M})):_.p$()};var c$8=function(H){this.innertubeTransportService=H};
c$8.prototype.hLj=function(H){_.On("att_fsr",void 0,"attestation_challenge_fetch");return _.oz(this.innertubeTransportService,H,_.RE(_.XBz)).then(function(U){_.On("att_frr",void 0,"attestation_challenge_fetch");return U})};_.y$p=function(H){this.innertubeTransportService=H};var BYX=new _.g3("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var r$m=function(){},Dof=function(H,U,A,M,W){var w=_.gD("YPC_MB_URL");
_.D0K(w).then(function(){eK5(w,H,U,A,M,W)})},eK5=function(H,U,A,M,W,w){try{var d=_.mu.payments.business.integration,O=_.mu.payments.business.integration.Style.create().withMaterialDesignStyle(),f=d.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.S("enable_window_constrained_buy_flow_dialog")&&(f=f.usingPopupStyle("windowConstrained"));w&&(f=f.usingCloseCallback(w));var J=A?A:_.gD("YPC_GB_LANGUAGE"),F=_.gD("SESSION_INDEX");d.bootstrap.fromPaymentsUrl(H);d.bootstrap.asMashupMode(f).usingGaiaIndex(F).usingLocale(J).usingStyle(O).usingDefaultActivityStatusChangeHandler().inStandaloneContext(d.standaloneContextAuthId.forGaia()).purchaseManager(U,function(P){M&&M(P)}).load(void 0,W)}catch(P){throw W&&W(P),_.sD(P),P;
}};var $o8=new _.g3("PURCHASE_MANAGER_TOKEN");var lO5=function(){var H=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return H.videos},
getContinuationsPresent:function(){return H.continuationsPresent},
setVideos:function(U){H.videos=U},
getRecommendedVideos:function(){return H.recommendedVideos},
setRecommendedVideos:function(U){H.recommendedVideos=U}}};
lO5.prototype.addVideos=function(H){H&&(this.videos=H.filter(function(U){return!!_.Aoh(U)}).map(function(U){var A=_.Aoh(U);
a:{var M;if(U.playlistVideoRenderer&&((M=U.playlistVideoRenderer)==null?0:M.voteSortTiebreaker))var W=U.playlistVideoRenderer.voteSortTiebreaker;else{if(_.p(U,pY)){var w;if(M=(W=_.p(U,pY))==null?void 0:(w=W.playlistItemData)==null?void 0:w.voteSortTiebreaker){W=M;break a}}W=""}}return{itemId:A,videoId:_.wmK(U),voteCount:_.Xmh(U),voteSortTiebreaker:W}}),this.continuationsPresent=!!_.p(H[H.length-1],_.Ea))};
var Gjk=function(H,U){return H.videos.findIndex(function(A){return A.itemId===U})},Yrh=function(H,U){return H.recommendedVideos.findIndex(function(A){return A.itemId===U})},qr$=function(H){H={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:H}}}}};_.lx().resolve(_.YV).resolveCommand(H)};var hKh=function(){lO5.apply(this,arguments)};
_.R(hKh,lO5);
var ZDg=function(H,U,A,M){if(!H.parentElem)throw Error("xi");var W=Gjk(H,U);W===-1&&(W=Yrh(H,U),W=W!==-1?W+H.videos.length:-1);if(W===-1)throw Error("yi");var w=W>=H.videos.length?H.recommendedVideos[W-H.videos.length]:H.videos[W];w.voteCount=A;w.voteSortTiebreaker=Date.now().toString();W>=H.videos.length?H.recommendedVideos.splice(W-H.videos.length,1):H.videos.splice(W,1);var d=H.videos;for(var O=0,f=d.length-1;O<=f;){var J=Math.floor((O+f)/2);if(d[J].voteCount<w.voteCount)f=J-1;else if(d[J].voteCount>w.voteCount)O=
J+1;else{a:{var F=w.voteSortTiebreaker;var P=d[J].voteSortTiebreaker;if(F.length!==P.length)F=F.length>P.length;else{for(var n=0;n<F.length;n++){var N=F.charCodeAt(n),L=P.charCodeAt(n);if(N>L){F=!0;break a}if(N<L)break}F=!1}}F?f=J-1:O=J+1}}d=O;if(d===-1)throw Error("zi");H.videos.splice(d,0,w);W!==d&&kj5(H,W,d,U,A,M)},kj5=function(H,U,A,M,W,w){var d,O=(d=H.parentElem)==null?void 0:d.children,f=Math.min(U,A),J=Math.max(U,A);
if(O)for(d=f;d<=J;d++)O[d].style.viewTransitionName="item-"+String(d);document.startViewTransition(function(){if(H.parentElem){var F=H.parentElem.children;if(!(!F||U<0||U>=F.length||A<0||A>=F.length)){var P=F[U];if(P){P.remove();H.showRefreshPill=A>=H.videos.length-1&&H.continuationsPresent;if(!H.showRefreshPill){F=F[A]||null;var n;(n=H.parentElem)==null||n.insertBefore(P,F)}_.cg(H.parentElem,"yt-update-video-data-voting-animation",{toIdx:A,itemId:M,newVoteCount:W,voteStatus:w,hideItem:H.showRefreshPill})}}}}).finished.then(function(){if(O)for(var F=
f;F<=J;F++)O[F].style.viewTransitionName="";
if(H.showRefreshPill)qr$(_.hP("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var P;if(P=F=(P=H.parentElem)==null?void 0:P.children[A])P=F.getBoundingClientRect(),F=P.bottom,P=!(P.top>=0&&F<=H.clientHeight);P&&(P=_.k2(U>A?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(U-A)),qr$(P))}})};var jDf=function(H,U){var A=this;H?this.innertubeTransportServicePromise=Promise.resolve(H):U&&(this.innertubeTransportServicePromise=U(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new xS(3E3,function(M){return vsp(A,M)},0);
this.validateMiniAppVideoIdRateLimiter=new xS(3E3,function(M){return TYB(A,M)},1)},E57=function(H,U){H.JSC$17692_miniAppId=U;
H.reportMiniAppValueRateLimiter=new xS(3E3,function(A){return vsp(H,A)},0);
H.validateMiniAppVideoIdRateLimiter=new xS(3E3,function(A){return TYB(H,A)},1)},g5h=function(H,U){var A;
return _.u(function(M){if(M.nextAddress==1)return M.yield(H.reportMiniAppValueRateLimiter.call(U),2);A=M.yieldResult;return M.return([A,U])})},vsp=function(H,U){var A,M,W,w,d,O,f;
return _.u(function(J){switch(J.nextAddress){case 1:return J.yield(H.innertubeTransportServicePromise,2);case 2:return A=J.yieldResult,M=_.RE(ZXB),W=Date.now(),w={externalPostId:H.JSC$17692_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(W/1E3),nanos:Math.round(W%1E3*1E6)},intValue:""+U}},_.zj(J,3),J.yield(_.oz(A,w,M),5);case 5:d=J.yieldResult;_.xD(J,4);break;case 3:throw O=_.eG(J),O;case 4:if(d){if("error"in d&&d.error)throw d.error;if(d.errorMetadata)throw Error("Ai`"+
d.errorMetadata.status);if(f=d.userStatResult)return J.return(f);throw Error("Bi");}throw Error("Ci");}})},xS7=function(H){var U,A,M,W,w;
_.u(function(d){switch(d.nextAddress){case 1:return d.yield(H.innertubeTransportServicePromise,2);case 2:return U=d.yieldResult,A=_.RE(ZXB),M={externalPostId:H.JSC$17692_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.zj(d,3),d.yield(_.oz(U,M,A),5);case 5:W=d.yieldResult;_.xD(d,4);break;case 3:throw w=_.eG(d),w;case 4:if(W==null)throw Error("Ci");if("error"in W&&W.error)throw W.error;if(W.errorMetadata)throw Error("Ai`"+W.errorMetadata.status);_.DO(d)}})};
jDf.prototype.flush=function(){var H=this;return _.u(function(U){return U.nextAddress==1?U.yield(H.reportMiniAppValueRateLimiter.flush(),2):U.yield(H.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var aeh=function(H,U){return _.u(function(A){return A.nextAddress==1?A.yield(H.validateMiniAppVideoIdRateLimiter.call(U),2):A.return(A.yieldResult)})},TYB=function(H,U){var A,M,W,w,d,O;
return _.u(function(f){switch(f.nextAddress){case 1:return f.yield(H.innertubeTransportServicePromise,2);case 2:return A=f.yieldResult,M=_.RE(Wmw),W={videoId:U},_.zj(f,3),f.yield(_.oz(A,W,M),5);case 5:w=f.yieldResult;_.xD(f,4);break;case 3:throw d=_.eG(f),d;case 4:if(w){if("error"in w&&w.error)throw w.error;if(w.errorMetadata)throw Error("Ai`"+w.errorMetadata.status);if(O=w.playabilityStatus)return f.return(O.status);throw Error("Di");}throw Error("Ci");}})};
jDf[Ga]=[_.$V(_.IE),_.$V($Nh)];var IO$=function(){this.clientData=new Map};
IO$.prototype.getData=function(H){return this.clientData.get(H)};var QD5=function(H){this.store=H};
QD5.prototype.handleResponse=function(H){(H=_.p(H.frameworkUpdates,FA))&&_.qY(H,this.store)};
QD5[Ga]=[_.bK];var VGh=new _.g3("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var HFj,U2X,Az5;_.vV=new _.g3("FLOW_STATE_MANAGER_TOKEN");HFj=function(){this.flowStates=new Map};
U2X=function(H,U){H=_.b(H.flowStates.values());for(var A=H.next();!A.done;A=H.next())if(A=A.value,A.flowRenderer.targetId===U)return A};
Az5=function(H,U){var A,M=((A=H.flowRenderer.steps)!=null?A:[]).filter(function(W){return!U.includes(_.p(W,_.Vt).stepId)});
H.flowRenderer.steps=M};var MsY=function(H){this.JSC$17716_flowStateManager=H};
_.R(MsY,nQ);MsY.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d,O;return _.u(function(f){A=_.p(H,flh);W=(M=A)==null?void 0:M.stepIds;d=(w=A)==null?void 0:w.targetId;if(!W||!d)return f.return();O=U2X(U.JSC$17716_flowStateManager,d);if(!O)return f.return();Az5(O,W);_.DO(f)})};
var TT=function(){MsY.apply(this,arguments)};
_.R(TT,MsY);TT[Ga]=[_.vV];var WSY=function(H,U){this.JSC$17722_reduxStore=H;this.JSC$17722_flowStateManager=U};
_.R(WSY,nQ);
WSY.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d,O,f,J,F,P,n,N,L;return _.u(function(m){A=_.p(H,_.Jf2);M=A.stepId;W=A.targetId;w=U2X(U.JSC$17722_flowStateManager,W);O=(d=w)==null?void 0:d.flowRenderer;f=O.flowStateEntityKey;J=_.LY(U.JSC$17722_reduxStore.getState(),f);if(!J)return m.return();F=J.currentStepId;N=(n=(P=J)==null?void 0:P.stepIdStack)!=null?n:[];L=F===N[N.length-1]?M:F;U.JSC$17722_reduxStore.dispatch(_.Wl("flowStateEntity",f,{currentStepId:M,stepIdStack:[L]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.DO(m)})};
var j6=function(){WSY.apply(this,arguments)};
_.R(j6,WSY);j6[Ga]=[_.bK,_.vV];var wL7=function(H,U,A){this.JSC$17729_reduxStore=H;this.JSC$17729_flowStateManager=U;this.JSC$17729_commandHandler=A};
_.R(wL7,nQ);
wL7.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O,f,J,F,P,n,N,L,m;return _.u(function(z){M=_.p(H,_.KXr);W=M.targetId;w=U2X(A.JSC$17729_flowStateManager,W);O=(d=w)==null?void 0:d.flowRenderer;f=O.flowStateEntityKey;J=_.LY(A.JSC$17729_reduxStore.getState(),f);n=[].concat(_.vI((P=(F=J)==null?void 0:F.stepIdStack)!=null?P:[]));N=n.pop();((L=J)==null?void 0:L.currentStepId)===N&&(N=n[n.length-1]);if(!N)return(m=M.onFirstStepCommand)&&A.JSC$17729_commandHandler.resolveCommand(m,U),z.return();
A.JSC$17729_reduxStore.dispatch(_.Wl("flowStateEntity",f,{currentStepId:N,stepIdStack:n}));_.DO(z)})};
var I9=function(){wL7.apply(this,arguments)};
_.R(I9,wL7);I9[Ga]=[_.bK,_.vV,_.YV];var XL5=function(H,U){this.innertubeTransportService=H;this.JSC$17734_commandHandler=U};
_.R(XL5,nQ);XL5.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O;return _.u(function(f){if(f.nextAddress==1){M=_.p(H,okK);if(!M)return f.return();_.zj(f,2);return f.yield(_.Js(A.innertubeTransportService,H),4)}if(f.nextAddress!=2){W=f.yieldResult;if(!W)return f.return();(w=W.updateFlowCommand)&&A.JSC$17734_commandHandler.resolveCommand(w,U);return _.xD(f,0)}_.eG(f);(O=(d=M)==null?void 0:d.onFailureCommand)&&A.JSC$17734_commandHandler.resolveCommand(O,U);_.DO(f)})};
var QM=function(){XL5.apply(this,arguments)};
_.R(QM,XL5);QM[Ga]=[_.IE,_.YV];var iF7=function(H,U){this.JSC$17740_flowStateManager=H;this.JSC$17740_commandHandler=U};
_.R(iF7,nQ);
iF7.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d;return _.u(function(O){M=_.p(H,_.PIy);W=M.targetId;w=U2X(A.JSC$17740_flowStateManager,W);if(!w)return O.return(Promise.resolve());var f=w,J=(d=M.steps)!=null?d:[],F,P=(F=f.flowRenderer.steps)!=null?F:[];J=[].concat(_.vI(P),_.vI(J));f.flowRenderer.steps=J;M.flowContinuationCommand&&(w.flowRenderer.flowContinuationCommand=M.flowContinuationCommand);M.entityUpdateCommand&&A.JSC$17740_commandHandler.resolveCommand(M.entityUpdateCommand,U);
return O.return(Promise.resolve())})};
var VM=function(){iF7.apply(this,arguments)};
_.R(VM,iF7);VM[Ga]=[_.vV,_.YV];var bFp={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]],android_messenger:[[0,1,192]],"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]],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_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[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,2,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_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]],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 d2h=new _.g3("ICON_SET_TOKEN"),OFY=new _.g3("ICON_URL_PROVIDER_TOKEN"),uIh=new _.g3("PREFETCH_ICONS_TOKEN"),ZF8=new _.g3("ICON_MAP_FN_TOKEN");var H9={},fUy=(H9.ACCESS_TIME="clock",H9.ACCOUNT_BOX=_.gD("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",H9.ACCOUNT_BOX_CAIRO="person_account_cairo",H9.ACCOUNT_CIRCLE="person_circle",H9.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",H9.ACCOUNT_LINKED="account_link_success",H9.ACCOUNT_UNLINKED="account_link",H9.ADD_FRIEND="people",H9.ADD_MODERATOR="shield_add",H9.ADD_TO_LIBRARY="bookmark",H9.ADD_TO_PLAYLIST="add",H9.ADD_TO_QUEUE_TAIL="list_queue",H9.ADD_TO_REMOTE_QUEUE="list_music",
H9.ADD_TO_WATCH_LATER="clock",H9.ADD_VIDEO_LINK="film_strip_add",H9.ALERT_WARN_RED="alert_triangle",H9.ARROW_BACK="arrow_left",H9.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",H9.ARROW_DROP_DOWN="chevron_down",H9.ARROW_DROP_UP="chevron_up",H9.ARROW_FORWARD="arrow_right",H9.ARTIST="person_music",H9.AUDIOTRACK="audio",H9.AUTO_AWESOME="sparkle",H9.AVATAR_ANONYMOUS="person_circle",H9.AVATAR_LOGGED_OUT="person_circle",H9.BACK="arrow_left",H9.BAR_CHART="bar_graph",H9.BLOCK="slash_circle_left",
H9.BLOCK_USER="slash_circle_left",H9.BOOKMARK_BORDER="bookmark",H9.BREAKING_NEWS_ALT_1="article_alert",H9.BROADCAST_CAIRO="podcast_cairo",H9.BUG_REPORT="bug",H9.CAMERA_ALT="camera",H9.CAMPAIGN="megaphone",H9.CANCEL="x_circle",H9.CAPTIONS="closed_caption",H9.CAST_OUTLINE="chromecast",H9.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",H9.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",H9.CHAT="message_bubble_left",H9.CHAT_BUBBLE="message_bubble_empty",H9.CHAT_SPARK="spark_message_bubble_left",H9.CHECK_BOX_OUTLINE_BLANK=
"box_empty",H9.CHECK_CIRCLE_OUTLINE="check_circle",H9.CHECK_CIRCLE_THICK="check_circle",H9.CLARIFY="article_clarify",H9.CLOSED_CAPTION_SELECTED="closed_caption",H9.CLOSE="x_mark",H9.CLOUD_UPLOAD="cloud_arrow_up",H9.COLLAPSE="chevron_up",H9.COLLAPSE_CAIRO="chevron_up_cairo",H9.COLLECTION="layers",H9.COLOR_LENS="palette",H9.COMMENT="message_bubble_right",H9.CONSENT_SHIELD="person_shield",H9.CONTENT_CUT="scissors",H9.CONTENT_CUT_CAIRO="scissors_cairo",H9.COURSE=_.S("web_enable_course_icon_update")?"creator_academy":
"lightbulb",H9.COURSE_CAIRO=_.S("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",H9.CREATION_LIVE="radar_live",H9.CREATION_POST="box_pencil",H9.CREATION_UPLOAD="my_videos",H9.CREATION_UPLOAD_RED="upload",H9.CREATOR_METADATA_MONETIZATION="dollar_sign",H9.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",H9.CREATOR_STUDIO="youtube_studio",H9.DASHBOARD="grid_asymmetrical",H9.DELETE="trash_can",H9.DELETE_SWEEP="trash_can",H9.DESKTOP="laptop",H9.DISLIKE="thumb_down",H9.DISLIKE_SELECTED=
"thumb_down",H9.DISMISSAL="x_mark",H9.DISMISS_QUEUE="list_remove",H9.DONE_ALL="check_double",H9.DOWN_ARROW="arrow_down",H9.DO_NOT_DISTURB="slash_circle_left",H9.DRAFT="paper_corner_folded",H9.DRAG_HANDLE="bars_2",H9.EDIT="pencil",H9.EMOJI="face_very_happy",H9.EMOJI_FLAGS="flag",H9.EMOJI_OBJECTS="lightbulb",H9.EMOJI_PEOPLE="face_very_happy",H9.EMOJI_RECENT="clock",H9.EMPTY_HEART="heart",H9.EMPTY_LIKE="thumb_up",H9.ERROR_BLACK="alert_circle",H9.ERROR_OUTLINE="alert_circle",H9.EXIT_APP="arrow_in",H9.EXIT_TO_APP=
"arrow_in",H9.EXPAND="chevron_down",H9.EXPAND_ALL="chevron_expand",H9.EXPAND_CAIRO="chevron_down_cairo",H9.EXPAND_LESS="chevron_up",H9.EXPAND_MORE="chevron_down",H9.EXPLORE="compass",H9.EXPLORE_DESTINATION="compass",H9.EXTERNAL_LINK="open_new",H9.FAB_UPLOAD="upload",H9.FACE_HAPPY_OUTLINE="face_happy",H9.FACT_CHECK="article_check",H9.FASHION_LOGO="fashion",H9.FASHION_LOGO_CAIRO="fashion_cairo",H9.FAVORITE="heart",H9.FEEDBACK="message_bubble_alert",H9.FEEDBACK_CAIRO="message_bubble_alert_cairo",H9.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",H9.FILL_ARROW_SOLID_UP_16="arrow_solid_up",H9.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",H9.FILTER="menu_filter",H9.FIRST_PAGE="chevron_first",H9.FLAG="flag",H9.FULL_HEART="heart",H9.GAME_CONSOLE_DPAD="game_console_dpad",H9.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",H9.GAMING_LOGO="gaming",H9.GAMING_LOGO_CAIRO="gaming_cairo",H9.GO_TO_PAGE="arrow_right",H9.GROUPS="people_group",H9.HAPPY="face_happy",H9.HEALTH_AND_SAFETY="shield_plus",H9.HELP="question_circle",H9.HELP_CAIRO=
"question_circle_cairo",H9.HELP_OUTLINE="question_circle",H9.HIDE="slash_circle_left",H9.IMAGE="image",H9.INFINITY_ICON="infinity",H9.INFO="info_circle",H9.INFO_OUTLINE="info_circle",H9.INSERT_CHART="bar_graph_box_vertical",H9.INSERT_CHART_OUTLINED="bar_graph_box_vertical",H9.INSERT_PHOTO="image",H9.KEEP="pin",H9.KEEP_OFF="pin_off",H9.KEYBOARD="keyboard",H9.KEYBOARD_ARROW_DOWN="chevron_down",H9.KEYBOARD_ARROW_UP="chevron_up",H9.KIDS_BLOCK="slash_circle_left",H9.LANGUAGE="globe",H9.LAST_PAGE="chevron_last",
H9.LAUNCH="open_new",H9.LEARNING="lightbulb",H9.LEARNING_CAIRO="lightbulb_cairo",H9.LIBRARY_ADD=O7c("library_add"),H9.LIBRARY_OUTLINE="library",H9.LIBRARY_REMOVE=O7c(),H9.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",H9.LIKES_PLAYLIST="thumb_up",H9.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",H9.LIKE="thumb_up",H9.LIKE_SELECTED="thumb_up",H9.LIVE="radar_live",H9.LIVE_CAIRO="radar_live_cairo",H9.LIVE_UNLISTED="link",H9.LOCATION_ON="location_point",H9.LOCATION_PIN="location_point",H9.LOOP="arrow_repeat",H9.LOOP_ACTIVE=
"arrow_repeat",H9.LOOP_ONE="arrow_repeat_1",H9.LOOP_ONE_ACTIVE="arrow_repeat_1",H9.MEH="face_meh",H9.MEMBERS_ONLY_MODE_OFF="message_bubble_left",H9.MESSAGE="message_bubble_left",H9.MICROPHONE_ON="mic",H9.MIX="youtube_mix",H9.MONETIZATION_ON="dollar_sign_circle",H9.MONEY_FILL="dollar_sign_container",H9.MONEY_FILL_JPY="yen_sign_container",H9.MONEY_HEART="dollar_sign_heart",H9.MORE_HORIZ="overflow_horizontal",H9.MORE_VERT="overflow_vertical",H9.MUSIC="audio",H9.MUSIC_CAIRO="audio_cairo",H9.MUSIC_NOTE_SYMBOL=
"music",H9.MUSIC_SHUFFLE="arrow_shuffle",H9.MY_CHANNEL="person_circle",H9.MY_LOCATION="location_point",H9.NEWS_STORY="news",H9.NEXT="chevron_right",H9.NOTIFICATIONS="bell",H9.NOTIFICATIONS_ACTIVE="bell_on",H9.NOTIFICATIONS_CAIRO="bell_cairo",H9.NOTIFICATIONS_DONE_CHECKMARK="check",H9.NOTIFICATIONS_INBOX="bell",H9.NOTIFICATIONS_NONE="bell",H9.NOTIFICATIONS_OFF="bell_off",H9.NOT_INTERESTED="slash_circle_left",H9.OFFICIAL_ARTIST_BADGE="audio",H9.OFFLINE_CLOUD="cloud_off",H9.OFFLINE_DOWNLOAD="download",
H9.OFFLINE_DOWNLOAD_CAIRO="download_cairo",H9.OFFLINE_PAUSE="pause",H9.OPEN_IN_NEW="open_new",H9.OUTLINE_ADJUST="adjust",H9.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",H9.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",H9.OUTLINE_BAG="bag",H9.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",H9.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",H9.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",H9.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",H9.PAID="dollar_sign",H9.PAUSE_OUTLINED="pause",H9.PAYMENT=
"credit_card",H9.PERSON_RADAR_FILLED="person_radar",H9.PHONE_DOWNLOAD="mobile_download",H9.PLAYABLES_LOGO="tic_tac_toe",H9.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",H9.PLAYLISTS="list_play_arrow",H9.PLAYLISTS_CAIRO="list_play_arrow_cairo",H9.PLAYLIST_ADD=O7c("list_add"),H9.PLAYLIST_ADD_CHECK=O7c("list_check"),H9.PLAYLIST_PLAY="list_play_arrow",H9.PLAY_ALL="play_arrow",H9.PLAY_CIRCLE="play_arrow_circle",H9.PLAY_OUTLINED="play_arrow_circle",H9.PRIVACY_INFO="shield",H9.PRIVACY_PRIVATE="lock",H9.PRIVACY_PUBLIC=
"earth",H9.PRIVACY_UNLISTED="link",H9.PROMOTE="megaphone",H9.PURCHASES="price_tag",H9.PURCHASE_SUPER_CHAT="super_chat",H9.PURCHASE_SUPER_STICKER="super_sticker",H9.QUESTION_ANSWER="message_bubble_question",H9.QUEUE_PLAY_LAST="list_queue_last",H9.QUEUE_PLAY_NEXT="list_play_arrow",H9.REMIX_FILLED="youtube_shorts_remix",H9.REMOVE="bar_circle",H9.REMOVE_CIRCLE="bar_circle",H9.REMOVE_CIRCLE_OUTLINE="bar_circle",H9.REMOVE_DONE="check_double_off",H9.REMOVE_FROM_HISTORY="bar_circle",H9.REMOVE_FROM_PLAYLIST=
"bar_circle",H9.REMOVE_MODERATOR="shield_off",H9.REPLAY="arrow_circle",H9.REPLAY_10="skip_back_10",H9.REPORT_PROBLEM="alert_triangle",H9.SAD="face_sad",H9.SAVE_PLAYLIST="bookmark",H9.SCHEDULE="clock",H9.SCHOOL="creator_academy",H9.SCREEN_FULLSCREEN="screen_full",H9.SEARCH_HISTORY="arrow_time",H9.SELL="price_tag",H9.SETTINGS="gear",H9.SETTINGS_CAIRO="gear_cairo",H9.SETTINGS_LIGHT="gear",H9.SETTINGS_MATERIAL="gear",H9.SHARE_ARROW="share",H9.SHIELD_WITH_AVATAR="person_shield",H9.SHOPPING_BAG="bag",H9.SHOPPING_BAG_CAIRO=
"bag_cairo",H9.SHOPPING_CART="cart",H9.SHORTS_COMMENT="youtube_shorts_message_bubble_right",H9.SHORTS_DISLIKE="youtube_shorts_thumb_down",H9.SHORTS_LIKE="youtube_shorts_thumb_up",H9.SHORTS_SHARE="youtube_shorts_share",H9.SHUFFLE="arrow_shuffle",H9.SLOW_MODE_OFF="message_bubble_left",H9.SOCIAL="people",H9.SORT="menu_sort",H9.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",H9.SPEED_1X="1x",H9.SPEED_1_POINT_2X="1_point_2x",H9.SPEED_1_POINT_5X="1_point_5x",H9.SPEED_1_POINT_8X="1_point_8x",H9.SPEED_2X="2x",
H9.SPEED_POINT_2X="point_2x",H9.SPEED_POINT_8X="point_8x",H9.SPONSORSHIP_STAR="star_circle",H9.STAFF_PICK="spotlight",H9.START_DVR="add",H9.STAR_BORDER="star",H9.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",H9.STICKER_EMOTICON="face_happy",H9.STOP_DVR="stop",H9.SUBSCRIBE="youtube_logo_icon",H9.SUBSCRIBE_PLUS="add_cairo",H9.SUBSCRIPTION_MANAGER="gear",H9.SUPERVISOR_ACCOUNT="people",H9.SUPER_CHAT_FOR_GOOD="hands_heart",H9.SWAP_HORIZ="arrow_swap_horizontal",H9.SWITCH_ACCOUNTS="person_account",H9.TAB_ACCOUNT=
"person",H9.TAB_ACTIVITY="bell",H9.TAB_BOOKMARK="bookmark",H9.TAB_EXPLORE="compass",H9.TAB_HOME="home",H9.TAB_HOME_CAIRO="home_cairo",H9.TAB_INBOX="mail",H9.TAB_LIKED="thumb_up",H9.TAB_MUSIC_PREMIUM="youtube_music",H9.TAB_SHORTS="youtube_shorts",H9.TAB_SHORTS_CAIRO="youtube_shorts_cairo",H9.TAB_SUBSCRIPTIONS="subscriptions",H9.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",H9.TAB_TRENDING="fire",H9.TIMER="stopwatch",H9.TRAILER="youtube_originals",H9.TRENDING="fire",H9.TRENDING_CAIRO="fire_cairo",H9.TRENDING_DOWN=
"rating_down",H9.TRENDING_UP="rating_up",H9.TROPHY="trophy",H9.TROPHY_CELEBRATIONS="fireworks",H9.TUNE="adjust",H9.UNBLOCK_USER="bar_circle",H9.UNLIMITED="youtube_logo_icon",H9.UNPLUGGED_LIVE_GUIDE="radar_live",H9.UNPLUGGED_SPORTS="eye_off",H9.UPLOADS="library",H9.UP_ARROW="arrow_up",H9.VERTICAL_ALIGN_BOTTOM="download",H9.VERY_HAPPY="face_very_happy",H9.VERY_SAD="face_very_sad",H9.VIDEOGAME_ASSET="gaming",H9.VIDEOS="play_arrow_circle",H9.VIDEO_CALL="video_camera_add",H9.VIDEO_LIBRARY_WHITE="library",
H9.VIDEO_YOUTUBE="youtube_logo_icon",H9.VIEW_LIST="list_view",H9.VIEW_LIST_CAIRO="list_view_cairo",H9.VISIBILITY="eye",H9.VISIBILITY_OFF="eye_off",H9.VOLUME_MUTE="volume_off",H9.VOLUME_UP="volume_on",H9.WALLPAPER="image",H9.WARNING="alert_triangle",H9.WATCH_HISTORY="arrow_time",H9.WATCH_HISTORY_CAIRO="arrow_time_cairo",H9.WATCH_LATER="clock",H9.WATCH_LATER_CAIRO="clock_cairo",H9.WATCH_RELATED_MIX="youtube_mix",H9.WHAT_TO_WATCH="home",H9.YOUTUBE_MUSIC_MONOCHROME="youtube_music",H9.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",H9.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",H9.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",H9.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",H9.YT_OUTLINE_MUSIC_24="music",H9);var UZ={},JzY=(UZ.ACCESS_TIME="clock",UZ.ACCOUNT_BOX="person_square",UZ.ACCOUNT_BOX_CAIRO="person_square",UZ.ACCOUNT_CIRCLE="person_circle",UZ.ACCOUNT_CIRCLE_CAIRO="person_circle",UZ.ACCOUNT_LINKED="account_link",UZ.ACCOUNT_UNLINKED="account_link",UZ.ADD_CIRCLE="add_circle",UZ.ADD_CIRCLE_OUTLINE="add_circle",UZ.ADD_FRIEND="person_child",UZ.ADD_MODERATOR="shield_add",UZ.ADD_TO_LIBRARY="bookmark",UZ.ADD_TO_PLAYLIST="add",UZ.ADD_TO_QUEUE_TAIL="queue",UZ.ADD_TO_REMOTE_QUEUE="playlist_audio",UZ.ADD_TO_WATCH_LATER=
"clock",UZ.ADD_VIDEO_LINK="film_strip_add",UZ.ADMIN_PANEL_SETTINGS="person_gear",UZ.ALERT_WARN_RED="alert_triangle",UZ.ALIGN_LEFT="text_align_left",UZ.ARROWS_ALERT="arrow_split_alert",UZ.ARROW_BACK="arrow_left",UZ.ARROW_CIRCLE="arrow_counterclockwise",UZ.ARROW_CIRCLE_PLAY="replay",UZ.ARROW_CIRCLE_RIGHT="arrow_clockwise",UZ.ARROW_DIAGONAL="arrow_up_left",UZ.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",UZ.ARROW_DROP_DOWN="triangle_down",UZ.ARROW_DROP_UP="triangle_up",UZ.ARROW_FORWARD="arrow_right",UZ.ARROW_PAUSE=
"pause_history",UZ.ARROW_UNDO="undo",UZ.ARTICLE="text_page",UZ.ARTICLE_ALERT="text_page_alert",UZ.ARTICLE_CHECK="text_page_check",UZ.ARTICLE_CLARIFY="text_page_info",UZ.ARTIST="person_audio",UZ.AUDIOTRACK="audio",UZ.AUDIO_BADGE="audio_badge",UZ.AUDIO_SURROUND="surround_sound",UZ.AUTO_AWESOME="sparkles",UZ.AVATAR_ANONYMOUS="person_circle",UZ.AVATAR_LOGGED_OUT="person_circle",UZ.BACK="arrow_left",UZ.BAR_CHART="chart_bar",UZ.BAR_CIRCLE="minus_circle",UZ.BAR_HORIZONTAL="minus",UZ.BLOCK="circle_slash",
UZ.BLOCK_USER="circle_slash",UZ.BOOKMARK_BORDER="bookmark",UZ.BOX_OPEN_CHECK="quiz",UZ.BOX_PENCIL="square_pencil",UZ.BOX_STACK_3="square3_stack",UZ.BREAKING_NEWS_ALT_1="text_page_alert",UZ.BROADCAST="podcast",UZ.BROADCAST_CAIRO="podcast",UZ.BUG_REPORT="bug",UZ.CAMERA_ALT="camera",UZ.CAMPAIGN="megaphone",UZ.CANCEL="x_circle",UZ.CAPTIONS="closed_captions",UZ.CAST_ICON="chromecast",UZ.CAST_OUTLINE="chromecast",UZ.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",UZ.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
UZ.CHAT="text_bubble",UZ.CHAT_BUBBLE="bubble",UZ.CHECK_BOX="check_square",UZ.CHECK_BOX_OUTLINE_BLANK="square",UZ.CHECK_CIRCLE_FILLED="check_circle",UZ.CHECK_CIRCLE_OUTLINE="check_circle",UZ.CHECK_CIRCLE_THICK="check_circle",UZ.CHECK_DOUBLE="check_done",UZ.CHECK_DOUBLE_OFF="check_done_slash",UZ.CHEVRON_LEFT="chevron_left",UZ.CHEVRON_RIGHT="chevron_right",UZ.CHEVRON_RIGHT_CAIRO="chevron_right",UZ.CIRCLES_OVERLAP="account_link",UZ.CLAPPERBOARD_CAIRO="clapperboard",UZ.CLARIFY="text_page_info",UZ.CLOCK_ARROWS=
"clock_split",UZ.CLOCK_ARROWS_ALERT="clock_split_alert",UZ.CLOSED_CAPTION="closed_captions",UZ.CLOSED_CAPTION_SELECTED="closed_captions",UZ.CLOSE="x",UZ.CLOUD_UPLOAD="cloud_arrow_up",UZ.COLLAPSE="chevron_up",UZ.COLLAPSE_CAIRO="chevron_up",UZ.COLLECTION="square3d_stack",UZ.COLOR_LENS="paint_palette",UZ.COMMENT="text_bubble",UZ.CONSENT_SHIELD="person_shield",UZ.CONTENT_CUT="scissors",UZ.CONTENT_CUT_CAIRO="scissors",UZ.COURSE="graduation_cap",UZ.COURSE_CAIRO="graduation_cap",UZ.CREATION_LIVE="live",
UZ.CREATION_POST="square_pencil",UZ.CREATION_UPLOAD="video",UZ.CREATION_UPLOAD_RED="upload",UZ.CREATOR_ACADEMY="graduation_cap",UZ.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",UZ.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",UZ.CREATOR_STUDIO="youtube_studio",UZ.DARK_THEME="theme",UZ.DELETE="trash_can",UZ.DELETE_SWEEP="trash_can",UZ.DESKTOP="laptop",UZ.DISLIKE="thumb_down",UZ.DISLIKE_SELECTED="thumb_down",UZ.DISMISSAL="x",UZ.DISMISS_QUEUE="playlist_x",UZ.DOGFOOD="pawprint",UZ.DOLLAR_SIGN=
"dollar_sign_circle",UZ.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",UZ.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",UZ.DOWN_ARROW="arrow_down",UZ.DO_NOT_DISTURB="circle_slash",UZ.DRAFT="document",UZ.DRAG_HANDLE="equal",UZ.EARTH="globe",UZ.EDIT="pencil",UZ.EMOJI="face_very_happy",UZ.EMOJI_FLAGS="flag",UZ.EMOJI_OBJECTS="lightbulb",UZ.EMOJI_PEOPLE="face_very_happy",UZ.EMOJI_RECENT="clock",UZ.EMPTY_HEART="heart",UZ.EMPTY_LIKE="thumb_up",UZ.ERROR_BLACK="alert_circle",UZ.ERROR_OUTLINE="alert_circle",UZ.ERROR_WHITE=
"alert_circle",UZ.EXIT_APP="arrow_in",UZ.EXIT_TO_APP="arrow_in",UZ.EXPAND="chevron_down",UZ.EXPAND_ALL="chevron_expand",UZ.EXPAND_CAIRO="chevron_down",UZ.EXPAND_LESS="chevron_up",UZ.EXPAND_MORE="chevron_down",UZ.EXPLORE="compass",UZ.EXPLORE_DESTINATION="compass",UZ.EXTERNAL_LINK="arrow_up_right",UZ.EYE_OFF="eye_slash",UZ.FAB_UPLOAD="upload",UZ.FACE_HAPPY_OUTLINE="face_happy",UZ.FACE_MEH="face_neutral",UZ.FACT_CHECK="text_page_check",UZ.FASHION_LOGO="fashion",UZ.FASHION_LOGO_CAIRO="fashion",UZ.FAVORITE=
"thumb_up",UZ.FEEDBACK="alert_bubble",UZ.FEEDBACK_CAIRO="alert_bubble",UZ.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",UZ.FILL_ARROW_SOLID_UP_16="arrow_solid_up",UZ.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",UZ.FIRST_PAGE="chevron_left_end",UZ.FLAG_CAIRO="flag",UZ.FLASH_OFF="flash_slash",UZ.FLASH_ON="flash",UZ.FULL_HEART="heart",UZ.GAMING_LOGO="gaming",UZ.GAMING_LOGO_CAIRO="gaming",UZ.GO_TO_PAGE="arrow_right",UZ.GRID_ASYMMETRICAL="dashboard",UZ.GROUPS="person3",UZ.HAND_SWIPE_LEFT="gesture_swipe_left",
UZ.HAND_SWIPE_RIGHT="gesture_swipe_right",UZ.HAPPY="face_happy",UZ.HEALTH_AND_SAFETY="shield_health",UZ.HEART_BOX="heart_cube",UZ.HELP="help_circle",UZ.HELP_CAIRO="help_circle",UZ.HELP_OUTLINE="help_circle",UZ.HIDE="circle_slash",UZ.INCOGNITO_CAIRO="incognito",UZ.INFINITY_ICON="infinity",UZ.INFO="info_circle",UZ.INFO_OUTLINE="info_circle",UZ.INSERT_CHART="chart_bar_square",UZ.INSERT_CHART_OUTLINED="chart_bar_square",UZ.INSERT_PHOTO="image",UZ.KEEP="pin",UZ.KEEP_OFF="pin_slash",UZ.KEYBOARD="keyboard",
UZ.KEYBOARD_ARROW_DOWN="chevron_down",UZ.KEYBOARD_ARROW_UP="chevron_up",UZ.KIDS_BLOCK="circle_slash",UZ.LANGUAGE="globe",UZ.LAST_PAGE="chevron_right_end",UZ.LAUNCH="arrow_up_right",UZ.LEARNING="lightbulb",UZ.LEARNING_CAIRO="lightbulb",UZ.LIBRARY_ADD="bookmark",UZ.LIBRARY_IMAGE="image_stack",UZ.LIBRARY_MUSIC="audio_square_stack",UZ.LIBRARY_OUTLINE="play_square_stack",UZ.LIBRARY_REMOVE="bookmark",UZ.LIBRARY_SAVED="check_square_stack",UZ.LIKES_PLAYLIST="thumb_up",UZ.LIKES_PLAYLIST_CAIRO="thumb_up",UZ.LIKE=
"thumb_up",UZ.LIKE_SELECTED="thumb_up",UZ.LIST_QUEUE="queue",UZ.LIVE_CAIRO="live",UZ.LIVE_UNLISTED="link",UZ.LOCATION_ON="location_pin",UZ.LOCATION_PIN="location_pin",UZ.LOCATION_POINT="location_pin",UZ.LOOP="repeat",UZ.LOOP_ACTIVE="repeat",UZ.LOOP_ONE="repeat1",UZ.LOOP_ONE_ACTIVE="repeat1",UZ.MEET="google_meet",UZ.MEH="face_neutral",UZ.MEMBERSHIPS="memberships",UZ.MEMBERS_ONLY_MODE_OFF="text_bubble",UZ.MENU_FILTER="filter",UZ.MESSAGE="text_bubble",UZ.MESSAGE_BUBBLE_GEAR="bubble_gear",UZ.MESSAGE_BUBBLE_LEFT=
"text_bubble",UZ.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",UZ.MESSAGE_BUBBLE_OVERLAP="bubble_stack",UZ.MESSAGE_BUBBLE_QUESTION="help_bubble",UZ.MICROPHONE_ON="mic",UZ.MONETIZATION_ON="dollar_sign_circle",UZ.MONEY_FILL="dollar_sign_rectangle",UZ.MONEY_FILL_JPY="yen_sign_rectangle",UZ.MONEY_HAND="dollar_sign_circle_hand",UZ.MONEY_HEART="dollar_sign_heart",UZ.MOON_Z="sleep_timer",UZ.MORE_HORIZ="overflow_horizontal",UZ.MORE_VERT="overflow_vertical",UZ.MUSIC="audio",UZ.MUSIC_CAIRO="audio",UZ.MUSIC_EXPLICIT_BADGE=
"explicit",UZ.MUSIC_NEW_RELEASE="audio_badge",UZ.MUSIC_NOTE_SYMBOL="audio",UZ.MUSIC_SCISSORS="audio_scissors",UZ.MUSIC_SHUFFLE="shuffle",UZ.MY_CHANNEL="person_circle",UZ.MY_LOCATION="location_pin",UZ.MY_VIDEOS="video",UZ.MY_VIDEOS_CAIRO="video",UZ.NEWS_CAIRO="news",UZ.NEWS_STORY="news",UZ.NEXT="chevron_right",UZ.NOTE_ADD="bubble_pencil",UZ.NOTIFICATIONS="bell",UZ.NOTIFICATIONS_ACTIVE="bell_waves",UZ.NOTIFICATIONS_CAIRO="bell",UZ.NOTIFICATIONS_DONE_CHECKMARK="check",UZ.NOTIFICATIONS_INBOX="bell",UZ.NOTIFICATIONS_NONE=
"bell",UZ.NOTIFICATIONS_OFF="bell_slash",UZ.NOT_INTERESTED="circle_slash",UZ.OFFICIAL_ARTIST_BADGE="audio",UZ.OFFLINE_CLOUD="cloud_slash",UZ.OFFLINE_DOWNLOAD="download",UZ.OFFLINE_DOWNLOAD_CAIRO="download",UZ.OFFLINE_PAUSE="pause",UZ.OPEN_IN_NEW="arrow_up_right",UZ.OUTLINE_ADJUST="adjust",UZ.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",UZ.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",UZ.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",UZ.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",UZ.OUTLINE_BAG="bag",UZ.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",UZ.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",UZ.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",UZ.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",UZ.PAID="dollar_sign_circle",UZ.PAUSE_OUTLINED="pause",UZ.PAYMENT="credit_card",UZ.PEOPLE="person_child",UZ.PEOPLE_2="person2_rectangle",UZ.PEOPLE_GROUP="person3",UZ.PEOPLE_NOTE="bubble_asterisk",UZ.PERSON_2="person2",UZ.PERSON_ACCOUNT="person_square_stack",UZ.PERSON_MINUS="person_x",UZ.PERSON_MUSIC="person_audio",UZ.PERSON_RADAR="person_waves",
UZ.PERSON_RADAR_FILLED="person_waves",UZ.PERSON_SETTING="person_gear",UZ.PHONE="phone",UZ.PHONE_DOWNLOAD="mobile_arrow_down",UZ.PICTURE_IN_PICTURE="picture_in_picture",UZ.PLAYABLES_LOGO="playables",UZ.PLAYABLES_LOGO_CAIRO="playables",UZ.PLAYLISTS="playlist",UZ.PLAYLISTS_CAIRO="playlist",UZ.PLAYLIST_ADD_CHECK="bookmark",UZ.PLAY_ALL="play",UZ.PLAY_ARROW="play",UZ.PLAY_ARROW_CIRCLE="play_circle",UZ.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",UZ.PLAY_CIRCLE="play_circle",UZ.PLAY_OUTLINED="play_circle",
UZ.PODCAST_ADD="podcast_add",UZ.PODCAST_CHECK="podcast_check",UZ.PRIVACY_INFO="shield_x",UZ.PRIVACY_PRIVATE="lock",UZ.PRIVACY_PUBLIC="globe",UZ.PRIVACY_UNLISTED="link",UZ.PROMOTE="megaphone",UZ.PURCHASES="price_tag",UZ.PURCHASE_SUPER_CHAT="super_chat",UZ.PURCHASE_SUPER_STICKER="super_sticker",UZ.QUESTION_ANSWER="help_bubble",UZ.QUESTION_CIRCLE="help_circle",UZ.QUEUE_PLAY_LAST="queue_last",UZ.QUEUE_PLAY_NEXT="queue_next",UZ.QUOTATION_MARK="quote",UZ.RADAR_LIVE="live",UZ.REMOVE="minus_circle",UZ.REMOVE_CIRCLE=
"minus_circle",UZ.REMOVE_CIRCLE_OUTLINE="minus_circle",UZ.REMOVE_FROM_HISTORY="minus_circle",UZ.REMOVE_FROM_PLAYLIST="minus_circle",UZ.REMOVE_MODERATOR="shield_slash",UZ.REPLAY="arrow_counterclockwise",UZ.REPLAY_10="skip10_back",UZ.REPLAY_ARROW="replay",UZ.REPORT_PROBLEM="alert_triangle",UZ.RSS_OFF="rss_slash",UZ.SAD="face_sad",UZ.SAVE_PLAYLIST="bookmark",UZ.SCHEDULE="clock",UZ.SCHOOL="graduation_cap",UZ.SCREEN_DEFAULT="player_default",UZ.SCREEN_FULLSCREEN="player_full_enter",UZ.SCREEN_LIGHT="ambient_mode",
UZ.SCREEN_ROTATION="rotate_portrait",UZ.SCREEN_SWITCH="player_switch",UZ.SCREEN_THEATRE="player_theater",UZ.SEARCH_CAIRO="search",UZ.SEARCH_HISTORY="history",UZ.SELL="price_tag",UZ.SETTINGS="gear",UZ.SETTINGS_CAIRO="gear",UZ.SETTINGS_LIGHT="gear",UZ.SETTINGS_MATERIAL="gear",UZ.SETTINGS_REMOTE="remote_waves",UZ.SHARE="share",UZ.SHARE_ARROW="share",UZ.SHARE_CAIRO="share",UZ.SHIELD="shield_x",UZ.SHIELD_EMPTY="shield",UZ.SHIELD_OFF="shield_slash",UZ.SHIELD_WITH_AVATAR="person_shield",UZ.SHOPPING_BAG=
"bag",UZ.SHOPPING_BAG_CAIRO="bag",UZ.SHOPPING_CART="cart",UZ.SHORTS_COMMENT="text_bubble",UZ.SHORTS_DISLIKE="thumb_down",UZ.SHORTS_LIKE="thumb_up",UZ.SHORTS_SHARE="share",UZ.SKIP_FORWARD_30="skip30_forward",UZ.SLASH_CIRCLE_LEFT="circle_slash",UZ.SLASH_CIRCLE_RIGHT="circle_slash",UZ.SLOW_MODE="bubble_slow",UZ.SLOW_MODE_OFF="text_bubble",UZ.SOCIAL="person_child",UZ.SPARKLE="sparkles",UZ.SPARK_IMAGE="image_spark",UZ.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",UZ.SPARK_PENCIL="pencil_spark",UZ.SPARK_RADAR=
"spark_waves",UZ.SPARK_VIDEO="video_spark",UZ.SPEAKER_GROUP="speaker_stack",UZ.SPEAKER_OFF="speaker_slash",UZ.SPEED_1X="n1x",UZ.SPEED_1_POINT_2X="n1point2x",UZ.SPEED_1_POINT_5X="n1point5x",UZ.SPEED_1_POINT_8X="n1point8x",UZ.SPEED_2X="n2x",UZ.SPONSORSHIP_STAR="star_circle",UZ.SPORTS="basketball",UZ.SPOTLIGHT="spotlight",UZ.STAFF_PICK="spotlight",UZ.START_DVR="add",UZ.STAR_BORDER="star",UZ.STAR_CIRCLE_RIBBON="memberships_gift",UZ.STAR_HALF="star_full_half",UZ.STAR_SHOOTING="hype",UZ.STICKER="sticker",
UZ.STICKER_EMOTICON="face_happy",UZ.STOP_DVR="stop",UZ.SUBSCRIBE="youtube",UZ.SUBSCRIBE_PLUS="add",UZ.SUBSCRIPTION_MANAGER="gear",UZ.SUPERSTAR="super_star",UZ.SUPERVISOR_ACCOUNT="person_child",UZ.SUPER_CHAT_FOR_GOOD="hands_heart",UZ.SWAP_HORIZ="arrow_swap_horizontal",UZ.SWITCH_ACCOUNTS="person_square_stack",UZ.TAB_ACCOUNT="person",UZ.TAB_ACTIVITY="bell",UZ.TAB_BOOKMARK="bookmark",UZ.TAB_EXPLORE="compass",UZ.TAB_HOME="home",UZ.TAB_HOME_CAIRO="home",UZ.TAB_INBOX="mail",UZ.TAB_LIKED="thumb_up",UZ.TAB_MUSIC_PREMIUM=
"youtube_music",UZ.TAB_SHORTS="shorts",UZ.TAB_SHORTS_CAIRO="shorts",UZ.TAB_SUBSCRIPTIONS="subscriptions",UZ.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",UZ.TAB_TRENDING="trending",UZ.TARGET="target",UZ.TARGET_ADD="target_add",UZ.TEMPLATE_ADD="template_add",UZ.TEXT="font",UZ.TICKET_STAR="star_ticket",UZ.TIMER="stopwatch",UZ.TRENDING_CAIRO="trending",UZ.TRENDING_DOWN="arrow_trend_down",UZ.TRENDING_UP="arrow_trend_up",UZ.TROPHY_CAIRO="trophy",UZ.TROPHY_CELEBRATIONS="fireworks",UZ.TROPHY_STAR="star_trophy",
UZ.TUNE="adjust",UZ.TV_OFF="tv_slash",UZ.UNBLOCK_USER="minus_circle",UZ.UNFAVORITE="thumb_down",UZ.UNLIMITED="youtube",UZ.UNPLUGGED_LIVE_GUIDE="live",UZ.UNPLUGGED_SPORTS="eye_slash",UZ.UPLOADS="play_square_stack",UZ.UP_ARROW="arrow_up",UZ.VERTICAL_ALIGN_BOTTOM="chevron_down_end",UZ.VERTICAL_ALIGN_TOP="chevron_up_end",UZ.VERY_HAPPY="face_very_happy",UZ.VERY_SAD="face_very_sad",UZ.VIDEOS="play_circle",UZ.VIDEO_CALL="video_camera_add",UZ.VIDEO_LIBRARY_WHITE="play_square_stack",UZ.VIDEO_QUALITY_4K="n4k",
UZ.VIDEO_QUALITY_8K="n8k",UZ.VIDEO_YOUTUBE="youtube",UZ.VIEW_LIST_CAIRO="view_list",UZ.VIEW_MODULE="view_column3_row2",UZ.VISIBILITY="eye",UZ.VISIBILITY_OFF="eye_slash",UZ.VOLUME_DOWN="volume_min",UZ.VOLUME_MUTE="volume_mute",UZ.VOLUME_OFF="volume_mute",UZ.VOLUME_STABLE="stable_volume",UZ.VOLUME_UP="volume_max",UZ.WALLPAPER="image",UZ.WARNING="alert_triangle",UZ.WATCH_HISTORY="history",UZ.WATCH_HISTORY_CAIRO="history",UZ.WATCH_LATER="clock",UZ.WATCH_LATER_CAIRO="clock",UZ.WATCH_RELATED_MIX="mix",
UZ.WHAT_TO_WATCH="home",UZ.YOUTUBE_LINKED_TV="tv_mobile",UZ.YOUTUBE_MUSIC_MONOCHROME="youtube_music",UZ.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",UZ.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",UZ.YOUTUBE_SHORTS_ARROW_UP="arrow_up",UZ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",UZ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",UZ.YOUTUBE_SHORTS_OUTLINE_24="shorts",UZ.YT_OUTLINE_MUSIC_24="audio",UZ);var KSk={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,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,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,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,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,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,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,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,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,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,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,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,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,2,24]],bell:[[0,10,24],[1,10,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,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,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]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,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,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,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,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,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,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,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,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,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,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,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,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,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,2,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,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,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,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,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,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,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,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,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_left_off:[[1,1,16],[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,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,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,2,24]],move:[[1,2,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,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,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,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,
2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,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,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,
9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,3,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[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,2,24]],remix:[[1,
2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,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]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,5,24,!0],
[1,5,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[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,2,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,5,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,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[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_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,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,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,5,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],
[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,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,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,4,24],[1,4,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]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,
24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,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,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,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,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,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,7,24],[1,7,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,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var oZh={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cart_spark:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,
24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,3,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,
3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,
1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,2,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,
2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cube_spark:[[1,1,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],
document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,
24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,
10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],
flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_spark:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],
font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],globe_image:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],
google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,
2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,
9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,
1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],
magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],
mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,3,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,
1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,2,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,
2,24]],pause_history:[[1,1,24]],pawprint:[[0,2,24],[1,2,24]],pdf:[[1,2,24]],pencil:[[0,10,24],[1,10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,
2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],
[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_pause:[[0,1,24],[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,
24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,
2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,3,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,
1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],
sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,7,18,!0],[0,7,24,!0],[1,7,18,!0],[1,7,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,
1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_add:[[1,1,18],[1,1,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],
skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],slip:[[1,1,18],[1,1,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,11,12],[0,11,24],[1,11,24]],spark_bubble_chat:[[1,1,24]],spark_lightbulb:[[0,3,24],[1,3,24]],spark_waves:[[0,
2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,3,24],[1,3,18],[1,3,24]],stable_volume:[[0,
2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,6,24],[0,6,36],[1,6,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,
4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],
[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,
1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,
4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column2:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],
volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wifi_tethering:[[1,1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,
24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var FSf={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},AZ=function(H){this.iconUrlProvider=H};
AZ.prototype.resolveIcon=function(H,U){var A=FSf[H.iconName.toUpperCase()];A&&(H.iconName=A);var M=H.iconName;M=M.replace(/-/g,"_");H=Object.assign({},H,{iconName:this.mapIconTypeToStandardName(M,!!A)||M.toLowerCase()});if(_.S("enable_web_delhi_icons")||A){var W;return b7r(oZh,H,((W=this.iconUrlProvider)==null?void 0:W.getYtStandardUrl)||Z7N,U)}var w;return b7r(KSk,H,((w=this.iconUrlProvider)==null?void 0:w.getYtStandardUrl)||utc,U)};
AZ.prototype.mapIconTypeToStandardName=function(H,U){return _.S("enable_web_delhi_icons")||U?JzY[H.toUpperCase()]:fUy[H.toUpperCase()]};
AZ[Ga]=[_.$V(OFY)];var PFh=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),sk$=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),nZh=function(H){this.urlProvider=this.iconUrlProvider=H};
_.R(nZh,AZ);
nZh.prototype.resolveIcon=function(H,U){H.iconName==="youtube_logo"&&(H.iconName="yt-logo-updated");if(H.iconName==="youtube_premium_logo"||H.iconName==="youtube_red_logo")H.iconName="yt-logo-red-updated";var A=Object.assign({},H);H.iconName==="menu"&&(_.S("enable_web_delhi_icons")||(A.iconName="bars_3"),A.iconStyle="youtube_outline");H.iconSetName==="socialNetworksRound"&&(H.iconName==="mail"&&(A.iconName="email"),H.iconName==="embed"&&(A.iconSize=60));H.iconName==="more"&&(A.iconName="overflow_horizontal");
H.iconName==="fullscreen"&&(A.iconName="screen_full");H.iconName==="premium_standalone"&&(A.iconName="premium_standalone_cairo");_.S("enable_connect_icon_update_web")&&H.iconName==="account_linked"&&(A.iconName="circles_overlap_check",A.iconStyle="youtube_fill");_.S("enable_connect_icon_update_web")&&H.iconName==="account_unlinked"&&(A.iconName="circles_overlap",A.iconStyle="youtube_outline");PFh.has(H.iconName)&&(A.iconStyle="youtube_fill");if(_.S("enable_web_delhi_icons")){H.iconName==="playlist_add"&&
(A.iconName="bookmark");H.iconName==="offline_pin"&&(A.iconName="arrow_down_circle",A.iconStyle="youtube_fill");if(H.iconName==="circles_overlap_check"||A.iconName==="circles_overlap_check")A.iconName="account_link",A.iconStyle="youtube_fill";sk$.has(H.iconName)&&(A.iconName+="_updated")}H=Object.assign({},A,{iconName:(AZ.prototype.mapIconTypeToStandardName.call(this,A.iconName)||A.iconName).toLowerCase()});var M;return(H=b7r(bFp,H,((M=this.urlProvider)==null?void 0:M.getUrl)||fr_,U))?H:AZ.prototype.resolveIcon.call(this,
A,U)};
nZh[Ga]=[_.$V(OFY)];_.NN$=1;var M6=function(H,U){this.JSC$17762_commandHandler=H;this.innertubeTransportService=U};
_.R(M6,nQ);M6.prototype.resolveCommand=function(H,U){var A=this,M,W,w;return _.u(function(d){return(M=_.p(H,xzm))?d.return(S67(A,M,(W=U)==null?void 0:(w=W.form)==null?void 0:w.element)):d.return()})};
var S67=function(H,U,A){U={profileCardContext:U.profileCardContext,profileOwnerExternalChannelId:U.profileOwnerExternalChannelId};var M=_.RE(lCw);return _.oz(H.innertubeTransportService,U,M).then(function(W){if(!W)throw new _.bD("GetProfileCard failed");if(W=W.popupCommand){H.JSC$17762_commandHandler.resolveCommand(W,{form:{element:A}});_.DJ(_.k$(),66557);W=W==null?void 0:W.clickTrackingParams;var w=_.ws();W&&w&&_.k$().graftServerVe(W,w)}})};
M6[Ga]=[_.YV,_.IE];var W9=function(){};
_.R(W9,nQ);W9.prototype.resolveCommand=function(H){var U,A;return _.u(function(M){U=_.p(H,Dz3);if(!U)return M.return();A=Number(U.enableDelayedPacfLoggingTvMs);if(isNaN(A)){var W=vB();XPH(W,U,0)}else XPH(vB(),U,A);_.DO(M)})};_.wc=function(){};
_.R(_.wc,nQ);
_.wc.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O,f,J;return _.u(function(F){M=_.p(H,$zK);w=(W=U.form)==null?void 0:W.element;O=(d=w)==null?void 0:d.closest("ytd-enforcement-message-view-model");if(!M||!O)return F.return();A.allowAdsAction||(f=M.fundingChoiceInstructionPageUrl,A.allowAdsAction=new WUr(window,_.PW(f)));var P=A.allowAdsAction;P.wallElement=O;P.allowAdsPopup.style.setProperty("display","flex","important");var n=P.scrollManager;n.isScrollingEnabled&&(n.originalBodyOverflow=n.JSC$10303_domHelper.JSC$9629_document_.body.style.overflow,
n.JSC$10303_domHelper.JSC$9629_document_.body.style.overflow="hidden",n.isScrollingEnabled=!1);P.wallElement.style.setProperty("display","none","important");Slg(P.accessibilityManager,P.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((J=A.allowAdsAction.allowAdsPopup)&&J instanceof HTMLElement)for(P=_.b(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),n=P.next();!n.done;n=P.next()){var N=_.b(n.value);n=N.next().value;N=N.next().value;
J.style.setProperty(n,N)}_.DO(F)})};
_.wc.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Xy=function(){};
_.R(Xy,nQ);Xy.prototype.resolveCommand=function(H){var U;return _.u(function(A){U=_.p(H,T63);if(!U)return A.return();q2_(H);_.DO(A)})};_.iT=new _.g3("AI_CHAT_CONTROLLER_TOKEN");var bT=function(H,U,A,M){this.JSC$17777_commandHandler=H;this.store=U;this.getPlayerCb=A;this.aiChatController=M};
_.R(bT,nQ);bT.prototype.pageContext=function(){var H=_.fl.currentPageSubTypeSelector(this.store.getState()),U;return(U=this.aiChatController)==null?void 0:_.pLp(U,H)};
bT.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d;return _.u(function(O){A=_.p(H,QCp);W=(M=A)==null?void 0:M.command;if(!W)return O.return();switch((d=A)==null?void 0:d.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var f="youchat-"+Date.now(),J;var F=String(Math.floor(((J=U.getPlayerCb())==null?void 0:J.getCurrentTime())||0)*1E3);w={inputComposerFormData:{clientMessageId:f,playerOffsetMs:F,pageContext:U.pageContext()}}}if(!w)return O.return();U.JSC$17777_commandHandler.resolveCommand(W,
{form:{formData:w}});_.DO(O)})};
bT[Ga]=[_.YV,_.bK,Dcc,_.$V(_.iT)];var LSk=new _.g3("SESSION_STORAGE");var dc=function(H){this.sessionStorage=H("conversations")};
_.R(dc,nQ);dc.prototype.resolveCommand=function(H){var U=this,A;return _.u(function(M){A=_.p(H,V2n);if(!A)return M.return();A.conversationId?U.sessionStorage.set("conversation_id",A.conversationId):U.sessionStorage.remove("conversation_id");_.DO(M)})};
dc[Ga]=[LSk];var OZ=function(H){this.JSC$17789_commandHandler=H};
_.R(OZ,nQ);
OZ.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d,O,f,J;return _.u(function(F){if(F.nextAddress==1){A=_.p(H,Nv3);if((M=A)==null||!M.text||!navigator.clipboard)return F.return();_.zj(F,2);return F.yield(navigator.clipboard.writeText(A.text),4)}if(F.nextAddress!=2){if(!A.successActions||A.successActions.length===0)return F.return();W=_.b(A.successActions);for(w=W.next();!w.done;w=W.next())d=w.value,U.JSC$17789_commandHandler.resolveCommand(d);return _.xD(F,0)}_.eG(F);if(!A.failureActions||A.failureActions.length===
0)return F.return();O=_.b(A.failureActions);for(f=O.next();!f.done;f=O.next())J=f.value,U.JSC$17789_commandHandler.resolveCommand(J);_.DO(F)})};
OZ[Ga]=[_.YV];var uT=function(H){this.JSC$17793_commandHandler=H};
_.R(uT,nQ);
uT.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O,f,J,F,P,n;return _.u(function(N){switch(N.nextAddress){case 1:M=_.p(H,A13);if(!M)return N.return();_.zj(N,2);if(!M.imageBytes&&!M.imageUrl)throw Error("Ei");if(!M.imageUrl){if(M.imageBytes){w=M.imageBytes;d=w.replace(/-/g,"+").replace(/_/g,"/");var L=F04(d);W=_.I5(L)}N.jumpTo(4);break}return N.yield(fetch(M.imageUrl),5);case 5:return O=N.yieldResult,N.yield(O.blob(),6);case 6:f=N.yieldResult,W=_.I5(f);case 4:P=(J=U)==null?void 0:(F=J.form)==
null?void 0:F.element;n=document.createElement("a");HI(n,W);P.appendChild(n);n.download="";n.click();P.removeChild(n);URL.revokeObjectURL(_.hR(W));M.successCommand&&A.JSC$17793_commandHandler.resolveCommand(M.successCommand);_.xD(N,0);break;case 2:_.eG(N),M.errorCommand&&A.JSC$17793_commandHandler.resolveCommand(M.errorCommand),_.DO(N)}})};
uT[Ga]=[_.YV];var Zw=function(H){this.store=H};
_.R(Zw,nQ);Zw.prototype.resolveCommand=function(H){var U=this,A,M,W;return _.u(function(w){M=(A=_.p(H,_.QUr))==null?void 0:A.entityBatchUpdate;if(!M)return w.jumpTo(0);W=Object.assign({},M,{mutations:[].concat(_.vI(M.mutations||[]))});return w.yield(_.qY(W,U.store),0)})};
Zw[Ga]=[CY];var RNy=function(H){this.JSC$17800_commandHandler=H;this.feedbackDialogMap=new Map};
RNy.prototype.openDialog=function(H,U){(H=this.feedbackDialogMap.get(H))&&this.JSC$17800_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:H}},U)};
RNy[Ga]=[_.YV];var EZp=new _.g3("FEEDBACK_CONTROLLER_TOKEN");var fw=function(H,U,A,M){this.dispatch=H;this.controller=U;this.JSC$17803_commandHandler=A;this.innertubeTransportService=M};
_.R(fw,nQ);
fw.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O,f,J,F,P,n,N,L,m,z,c,C,v,Y,D,h,T,WF,dK,SN,o_;return _.u(function(PF){switch(PF.nextAddress){case 1:M=_.p(H,_.i$);if(w=(W=M)==null?void 0:W.contentId)for(O=_.b(((d=M)==null?void 0:d.actions)||[]),f=O.next();!f.done;f=O.next())J=f.value,m2X(A,J,w);n=(F=U)==null?void 0:(P=F.form)==null?void 0:P.element;return _.S("wug_feedback_endpoint_use_its")?(m=new _.O3,m.endpoint=H,c=_.Js(A.innertubeTransportService,H,(z=U)==null?void 0:z.form),m.ajaxPromise=
c,_.cg(n,"yt-service-request-sent",m),PF.yield(c,5)):PF.yield(_.rs(n,[H,{impression:(L=U)==null?void 0:L.disableClickTracking}]).catch(function(){}),4);
case 4:N=PF.yieldResult;PF.jumpTo(3);break;case 5:N=PF.yieldResult,_.cg(n,"yt-service-request-completed",{data:N});case 3:D=((C=N)==null?void 0:(v=C.data)==null?void 0:v.feedbackResponses)||((Y=N)==null?void 0:Y.feedbackResponses);if((h=D)==null?0:h.length)(WF=(T=D[0])==null?void 0:T.followUpDialog)&&w&&(dK=A.controller)!=null&&dK.feedbackDialogMap.set(w,WF),(o_=(SN=D[0])==null?void 0:SN.isThumbnailReporting)&&A.JSC$17803_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.DO(PF)}})};
var m2X=function(H,U,A){var M=_.p(U,_.$2);if(M){M=_.b(M.commands||[]);for(var W=M.next();!W.done;W=M.next())m2X(H,W.value,A)}_.p(U,_.hf)&&H.dispatch(_.hs("commandEntity",Ut4(A),{key:A,command:U}));_.p(U,rLz)&&H.dispatch(_.hs("commandEntity",Ut4(A),{key:A,command:U}))};
fw[Ga]=[ndg,EZp,_.YV,_.IE];var JZ=function(H){this.controller=H};
_.R(JZ,nQ);JZ.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d;return _.u(function(O){M=_.p(H,_.ED);w=(W=M)==null?void 0:W.targetId;if(((d=M)==null?void 0:d.signal)!=="TELL_US_WHY"||!w)return O.return();A.controller.openDialog(w,U);_.DO(O)})};
JZ[Ga]=[EZp];var Kw=new _.g3("APP_STORE_TOKEN");var o4=function(H){this.store=H};
_.R(o4,nQ);o4.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O,f,J;return _.u(function(F){M=_.p(H,KZM);w=(W=M)==null?void 0:W.contentId;f=(d=U)==null?void 0:(O=d.form)==null?void 0:O.element;J=_.rs(f,[H]);w&&A.undo(w);return F.yield(J,0)})};
o4.prototype.undo=function(H){this.store.dispatch(_.hs("commandEntity",Ut4(H),{key:H,command:void 0}))};
o4[Ga]=[Kw];var Fy=function(H){this.JSC$17815_commandHandler=H};
_.R(Fy,nQ);Fy.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d,O,f,J;return _.u(function(F){A=_.p(H,FXK);M=A.flowStateKey;W=A.validationFailureCommand;w=A.submitValidFormCommand;d=gSM(_.LY,[M||""]);O=_.p(d,nkm);((f=O)==null?0:f.isValid)&&w&&U.JSC$17815_commandHandler.resolveCommand(w);((J=O)==null?0:J.isValid)||!W||U.JSC$17815_commandHandler.resolveCommand(W);_.DO(F)})};
Fy[Ga]=[_.YV];var P9=function(H){this.innertubeTransportService=H};
_.R(P9,nQ);P9.prototype.resolveCommand=function(H,U){var A=this,M;return _.u(function(W){return W.yield(_.Js(A.innertubeTransportService,H,(M=U)==null?void 0:M.form).then(function(w){var d,O;U==null||(d=U.commandController)==null||(O=d.onSuccess)==null||O.call(d,H,w)},function(w){var d,O;
U==null||(d=U.commandController)==null||(O=d.onServerError)==null||O.call(d,H,w)}),0)})};
P9[Ga]=[_.IE];var sZ=function(){};
_.R(sZ,nQ);sZ.prototype.resolveCommand=function(H){var U,A,M,W;return _.u(function(w){if(U=_.p(H,_.Je3)){if(A=U.gtmId)M=_.gD("GL",""),_.VN(A,M);(W=U.gtmData)&&_.Hb(W)}_.DO(w)})};var nw=function(H,U,A){this.innertubeTransportService=H;this.JSC$17826_actionRouter=U;this.JSC$17826_screenManager=A};
_.R(nw,nQ);nw.prototype.resolveCommand=function(H){var U=this,A,M;return _.u(function(W){A=_.p(H,uFK);if(!A)return W.return();M=A.command;if(!M)return W.return();U.JSC$17826_actionRouter.triggerAction("yt-insert-rich-section-action",A);return W.yield(_.Js(U.innertubeTransportService,M,{disableCache:!0}).then(function(w){H.clickTrackingParams&&(w==null?0:w.trackingParams)&&U.JSC$17826_screenManager.graftServerVe(w.trackingParams,_.IS(H.clickTrackingParams))}),0)})};
nw[Ga]=[_.IE,gk,_.U8];sF4.bind(null,Nk);var gZh=sF4.bind(null,SSB);Nq_.bind(null,Nk);var aU5=Nq_.bind(null,SSB);pmE.bind(null,Nk);var x2$=pmE.bind(null,SSB);var N6=function(){};
_.R(N6,nQ);
N6.prototype.resolveCommand=function(H){var U,A,M,W,w,d,O,f,J,F;return _.u(function(P){U=_.p(H,I7K);if(!U)return P.return();M=((A=U.operations)==null?void 0:A.operations)||[];W=_.b(M);for(w=W.next();!w.done;w=W.next())if(d=w.value,d.insertItemSectionContent){var n=d.insertItemSectionContent,N=n.contents||[];n.insertByPositionInSection?gZh(n.insertByPositionInSection.sectionTargetId,N,n.insertByPositionInSection.position):n.insertByRelativePositionInSection&&n.insertByRelativePositionInSection.sectionTargetId&&n.insertByRelativePositionInSection.itemTargetId&&
aU5(n.insertByRelativePositionInSection.sectionTargetId,n.insertByRelativePositionInSection.itemTargetId,N,n.insertByRelativePositionInSection.relativePosition)}else d.replaceSection?(n=d.replaceSection,N={},n.replaceByTargetId?N=n.replaceByTargetId:n.replaceByGroupId&&(N={targetId:n.replaceByGroupId.groupId,newContent:n.replaceByGroupId.newContent,undoKey:""}),N.newContent&&RGw(N.targetId,{continuationItems:[N.newContent]})):d.removeItem?(n=d.removeItem,n.removeByTargetId&&n.sectionTargetId&&x2$(n.sectionTargetId,
n.removeByTargetId.targetIds||[])):d.removeSection&&(d.removeSection.removeByTargetId?(O=void 0,zNy(((O=d.removeSection)==null?void 0:O.removeByTargetId.targetIds)||[])):d.removeSection.removeByGroupId&&(f=void 0,zNy(((f=d.removeSection)==null?void 0:f.removeByGroupId.groupIds)||[])));F=((J=U.operations)==null?void 0:J.scrollConfig)||{};CFj(F);_.DO(P)})};
var zNy=function(H){H=_.b(H);for(var U=H.next();!U.done;U=H.next())RGw(U.value,{continuationItems:[]})},CFj=function(H){if(H.scrollToItem){var U=H.scrollToItem.item||{},A=U.itemTargetId;
U=U.sectionTargetId;if(A&&U){var M=document.querySelector("[data-target-id="+U+"]"),W=M==null?void 0:M.querySelector("[data-target-id="+A+"]");M&&W&&setTimeout(function(){var w=W.offsetTop-M.offsetTop,d;if(((d=H.scrollToItem)==null?void 0:d.scrollPosition)==="SCROLL_POSITION_CENTER")w-=M.offsetHeight/2,w+=W.offsetHeight/2;else{var O;((O=H.scrollToItem)==null?void 0:O.scrollPosition)==="SCROLL_POSITION_END"&&(w-=M.offsetHeight,w+=W.offsetHeight)}var f;M.scroll({top:w,behavior:(H==null?void 0:(f=H.animationConfig)==
null?void 0:f.enableAnimation)===!1?"instant":"smooth"})},100)}}};var Sz=new _.g3("CLIENT_NAME_TOKEN");var ts5=new _.g3("DEFAULT_STORE_EXPIRATION_TOKEN");var pFH=new _.g3("CLIENT_LOCATION_SERVICE_TOKEN");var pw=function(H,U,A){this.clientName=H||_.gD("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=U||_.P4.getInstance();this.JSC$17855_commandHandler=A||_.$$.instance};
_.R(pw,nQ);pw.prototype.resolveCommand=function(H){var U=this,A,M;return _.u(function(W){M=(A=_.p(H,CYH))==null?void 0:A.onComplete;U.clientLocationService.clearLocationPlayabilityToken(U.clientName);M&&U.JSC$17855_commandHandler.resolveCommand(M);_.DO(W)})};
pw[Ga]=[Sz,pFH,_.YV];var Lw=function(H){this.innertubeTransportService=H};
_.R(Lw,nQ);Lw.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d;return _.u(function(O){w=(M=U)==null?void 0:(W=M.form)==null?void 0:W.element;return O.yield(_.Js(A.innertubeTransportService,H,(d=U)==null?void 0:d.form).then(function(f){pD0(w,new CustomEvent("yt-service-request-completed"),{data:f},_.gD("openPopupConfig"))}),0)})};
Lw[Ga]=[_.IE];var R4=function(){};
_.R(R4,nQ);R4.prototype.resolveCommand=function(H){var U,A;return _.u(function(M){U=_.p(H,LXm);A=document.querySelector("mini-app-container-view-model");if(!U||!A)return M.return();U.isPlaying?A.dispatchEvent(new Event("play")):A.dispatchEvent(new Event("pause"));_.DO(M)})};var EZ=function(){};
_.R(EZ,nQ);EZ.prototype.resolveCommand=function(H){var U,A,M,W,w,d,O;return _.u(function(f){U=_.p(H,bnK);if((A=U)==null||!A.paramKeys)return f.return();M=U.paramKeys;W=_.yX(window.location.href);w=_.b(M);for(d=w.next();!d.done;d=w.next())O=d.value,W.JSC$10335_queryData_.remove(O);window.history.replaceState(window.history.state,document.title,W.toString());_.DO(f)})};var czm=function(){this.dropdownMap=new Map};_.yzy=new _.g3("DROPDOWN_CONTROLLER_TOKEN");var mn=function(H){this.controller=H};
_.R(mn,nQ);mn.prototype.resolveCommand=function(H){var U=this,A,M,W,w;return _.u(function(d){A=_.p(H,r1m);if(!A)return d.return();M=A;W=M.dropdownId;w=M.selectedOptionIndex;if(W===void 0||w===void 0)return d.return();var O=U.controller.dropdownMap.get(W);O&&O(w);_.DO(d)})};
mn[Ga]=[_.yzy];var a4=function(H){this.controller=H};
_.R(a4,nQ);a4.prototype.resolveCommand=function(H){var U=this,A;return _.u(function(M){return(A=_.p(H,kJp))?M.yield(U.controller.closeDialog(),0):M.return()})};
a4[Ga]=[_.wx];var xd=function(H){this.controller=H};
_.R(xd,nQ);xd.prototype.resolveCommand=function(H){var U=this,A,M;return _.u(function(W){A=_.p(H,a4h);if(!A)return W.return();var w,d=A.panelIdentifier||((w=A.identifier)==null?void 0:w.tag);if(!d)throw Error("Fi");return(M=d)?W.yield(U.controller.hidePanel({identifier:M}),0):W.jumpTo(0)})};
xd[Ga]=[_.Mx];var zx=function(H){this.controller=H};
_.R(zx,nQ);zx.prototype.resolveCommand=function(H){var U=this,A;return _.u(function(M){return(A=_.p(H,o0H))?M.yield(U.controller.closeSheet(),0):M.return()})};
zx[Ga]=[_.Wi];var Cw=function(H,U){this.innertubeTransportService=H;this.controller=U};
_.R(Cw,nQ);Cw.prototype.resolveCommand=function(H){var U=this,A,M,W,w;return _.u(function(d){if(d.nextAddress==1)return A=_.p(H,x5m),(M=A)!=null&&M.panelId?d.yield(U.controller.getReloadContinuation(A.panelId),2):d.return();if(d.nextAddress!=3)return(W=d.yieldResult)?d.yield(_.Js(U.innertubeTransportService,H,{continuation:W}),3):d.return();w=d.yieldResult;return d.yield(U.controller.updatePanel({identifier:A.panelId,panelContents:w.content,shouldFocus:!1}),0)})};
Cw[Ga]=[_.IE,_.Mx];var tZ=function(H,U,A){this.innertubeTransportService=H;this.JSC$17896_screenManager=U;this.JSC$17896_commandHandler=A};
_.R(tZ,nQ);
tZ.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d,O;return _.u(function(f){if(f.nextAddress==1){A=_.p(H,_.Lgz);if(!A)return f.return();if(A.commands)for(M=_.b(A.commands),W=M.next();!W.done;W=M.next())w=W.value,U.JSC$17896_commandHandler.resolveCommand(w,{disableClickTracking:!0});d=_.IS(H.clickTrackingParams);_.DJ(U.JSC$17896_screenManager,21760,d,{layer:7,parentLayer:0});return f.yield(_.Js(U.innertubeTransportService,H),2)}O=f.yieldResult;if(!O)return f.return();U.JSC$17896_screenManager.graftServerVe(O.trackingParams,d,
7);_.DO(f)})};
tZ[Ga]=[_.IE,_.U8,_.YV];var c9=new _.g3("PANEL_LOADING_STRATEGY_TOKEN");var yi=function(H,U){this.controller=H;this.panelLoadingStrategy=U};
_.R(yi,nQ);
yi.prototype.resolveCommand=function(H,U){var A=this,M,W,w;return _.u(function(d){M=_.p(H,PQm);if((W=M)==null||!W.panelLoadingStrategy)return d.return();w=function(O){var f,J,F,P,n,N,L,m,z,c;return _.u(function(C){J=_.p((f=O.dialogViewModel)==null?void 0:f.header,enH);F={viewModel:O.dialogViewModel};P={};if(L=_.S("web_enable_dialog_header_label")?(n=J)==null?void 0:(N=n.headline)==null?void 0:N.content:void 0)P.ariaLabel=L;M.dismissOnBackgroundTap===!1&&(P.isModal=!0);return O.dialogViewModel?C.yield(A.controller.openDialog(F,
(c=(m=U)==null?void 0:(z=m.form)==null?void 0:z.element)!=null?c:document.body,P),0):C.return()})};
return d.yield(A.panelLoadingStrategy.execute({command:H,data:M.panelLoadingStrategy,renderFn:w,createScreenConfig:{layer:4}}),0)})};
yi[Ga]=[_.wx,c9];var B9=function(H,U,A){this.innertubeTransportService=H;this.controller=U;this.JSC$17916_screenManager=A};
_.R(B9,nQ);
B9.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O,f,J,F,P,n,N,L,m,z,c;return _.u(function(C){switch(C.nextAddress){case 1:M=_.p(H,_.XY);if(!M)return C.return();var v,Y=M.panelIdentifier||((v=M.identifier)==null?void 0:v.tag);if(!Y)throw Error("Fi");W=Y;return C.yield(A.controller.isVisible(W,!0),2);case 2:if((w=C.yieldResult)&&M.blockIfPanelOpen)return C.return();f=(O=(d=A.controller).getPanelContent)==null?void 0:O.call(d,W);if(!(v=f))if(M){var D;v=((D=M.globalConfiguration)==null?void 0:
D.initialState)||M.engagementPanel;if(D=!v)D=!!(M==null?0:(Y=M.engagementPanelPresentationConfigs)==null?0:Y.engagementPanelPopupPresentationConfig);D&&(v=_.L0t(M.panelIdentifier,M.identifier))}else v=void 0;J=v;F=M.engagementPanelPresentationConfigs;P=M.engagementPanelExtras;return C.yield(A.controller.showPanel({identifier:W,panelContents:J,config:F,extras:P,target:(n=U)==null?void 0:(N=n.form)==null?void 0:N.element}),3);case 3:if(!M.globalConfiguration){C.jumpTo(0);break}if(M.globalConfiguration.reuseModelAndState&&
_.S("enable_ai_companion")&&(z=(m=(L=A.controller).getPanelContent)==null?void 0:m.call(L,W)))return C.return();_.DJ(A.JSC$17916_screenManager,32633);return C.yield(_.Js(A.innertubeTransportService,H),5);case 5:return c=C.yieldResult,A.JSC$17916_screenManager.graftServerVe(c.trackingParams),C.yield(A.controller.updatePanel({identifier:W,panelContents:c.content,shouldFocus:!0,extras:P,updatePanelContinuationData:c.updatePanelContinuationData}),0)}})};
B9[Ga]=[_.IE,_.Mx,_.U8];var rc=function(H,U){this.controller=H;this.panelLoadingStrategy=U};
_.R(rc,nQ);
rc.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O,f,J,F,P,n,N,L;return _.u(function(m){M=_.p(H,_.kY);if((W=M)==null||!W.panelLoadingStrategy)return m.return();O=BNy(A.controller,(w=U)==null?void 0:(d=w.form)==null?void 0:d.element);J=(f=M.contextualSheetPresentationConfig)==null?void 0:f.position;P=(F=M.contextualSheetPresentationConfig)==null?void 0:F.hoverConfig;N=(n=M.contextualSheetPresentationConfig)==null?void 0:n.expandToFullWidth;L=function(z){var c,C;return _.u(function(v){if(!z.sheetViewModel)return v.return();if(P){var Y=
A.controller;Y.shouldPreventClosingWhileHovered=!!P.preventCloseWhileHovered;var D;Y.hideDelayMs=(D=P.hideDelayMs)!=null?D:0}return v.yield(A.controller.openSheet({viewModel:z.sheetViewModel,sheetPosition:J,expandToFullWidth:N},O,(c=U)==null?void 0:(C=c.form)==null?void 0:C.element),0)})};
return m.yield(A.panelLoadingStrategy.execute({command:H,data:M.panelLoadingStrategy,renderFn:L,createScreenConfig:{layer:0}}),0)})};
rc[Ga]=[_.Wi,c9];var ez=function(H,U){this.controller=H;this.JSC$17927_commandHandler=U};
_.R(ez,nQ);ez.prototype.resolveCommand=function(H,U){var A=this,M,W,w;return _.u(function(d){if(d.nextAddress==1){M=_.p(H,cqn);var O=_.p(M.showCommand,_.XY),f,J,F=(J=O==null?void 0:O.panelIdentifier)!=null?J:O==null?void 0:(f=O.identifier)==null?void 0:f.tag;if(!F)throw Error("Gi");W=F;return d.yield(A.controller.isVisible(W),2)}return(w=d.yieldResult)?d.yield(A.controller.hidePanel({identifier:W}),0):d.yield(A.JSC$17927_commandHandler.resolveCommand(M.showCommand,U),0)})};
ez[Ga]=[_.Mx,_.YV];var Dw=function(H,U,A){this.innertubeTransportService=H;this.controller=U;this.JSC$17930_screenManager=A};
_.R(Dw,nQ);
Dw.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d,O,f,J,F,P,n,N,L,m,z,c,C,v,Y,D,h,T;return _.u(function(WF){switch(WF.nextAddress){case 1:return M=A=_.p(H,DEn),W=M.targetPanelIdentifier,w=M.contentSourcePanelIdentifier,d=M.globalConfiguration,((O=W)==null?0:O.tag)&&((f=w)==null?0:f.tag)?d?WF.yield(U.controller.showPanel({identifier:W.tag,panelContents:_.L0t(W.tag,W)}),5):WF.yield((n=(P=U.controller).getPanel)==null?void 0:n.call(P,w.tag),4):WF.return();case 4:N=WF.yieldResult;J=(L=N)==
null?void 0:(z=(m=L).getPanelContent)==null?void 0:z.call(m);WF.jumpTo(3);break;case 5:return WF.yield(_.Js(U.innertubeTransportService,H),6);case 6:c=WF.yieldResult,((C=c)==null?0:C.trackingParams)&&U.JSC$17930_screenManager.graftServerVe(c.trackingParams),J=(v=c)==null?void 0:v.content,F=(Y=c)==null?void 0:Y.updatePanelContinuationData;case 3:if(h=(D=J)==null?void 0:D.engagementPanelSectionListRenderer)return WF.yield(U.controller.showPanel({identifier:W.tag,panelUpdatableFields:{content:h.content,
secondaryHeaderContent:(T=h.header)!=null?T:{},targetId:h.targetId,loggingDirectives:h.loggingDirectives},updatePanelContinuationData:F}),0);WF.jumpTo(0)}})};
Dw[Ga]=[_.IE,_.Mx,_.U8];var $d=function(){};
_.R($d,nQ);$d.prototype.resolveCommand=function(H){var U,A,M;return _.u(function(W){if(W.nextAddress==1)return(U=_.p(H,GJp))?W.yield(_.co(),2):W.return();A=W.yieldResult;if(!A)return W.return();var w=A,d=(M=U)==null?void 0:M.languageCode,O;(w==null?0:(O=w.isReady)==null?0:O.call(w))&&(d=Rct(w,d))&&w.setAudioTrack(d);_.DO(W)})};var lT=function(){};
_.R(lT,u8);_.X=lT.prototype;_.X.getApiPaths=function(){return yKy};
_.X.getExtension=function(H){return _.p(H,_.sH)};
_.X.isNavigationCommand=function(){return!0};
_.X.JSC$14485_getStoreKey=function(H){if((H=this.getExtension(H))&&H.videoId){var U={videoId:H.videoId};H.playlistId&&(U.playlistId=H.playlistId);H.index&&(U.index=H.index);H.params&&(U.params=H.params);return _.Pg("next",U)}};
_.X.JSC$14478_getClientScreen=function(H){var U;return((U=H.contentPlaybackContext)==null?void 0:U.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.X.JSC$14478_buildRequest=function(H,U,A){U.videoId&&(H.videoId=U.videoId);U.playlistId&&(H.playlistId=U.playlistId);U.params&&(H.params=U.params);U.index!==void 0&&(H.playlistIndex=U.index);H.racyCheckOk=!(!A.racyCheckOk&&!U.racyCheckOk);H.contentCheckOk=!!U.contentCheckOk;A.contentPlaybackContext&&(H.autonavState=A.contentPlaybackContext.autonavState,H.playbackContext={vis:A.contentPlaybackContext.vis,lactMilliseconds:A.contentPlaybackContext.lactMilliseconds});A.prefetchPlaybackContext&&(H.context.request||
(H.context.request={}),H.context.request.isPrefetch=!0);_.S("captions_hats_killswitch")||(U=_.TR().getFlag(65),U=U!=null?!U:!1,A=!!_.H4("yt-player-sticky-caption"),H.captionsRequested=U&&A)};
_.X.getRequestConfig=function(H){H=this.JSC$14485_getStoreKey(H);var U;H&&(U={storeStrategy:{storeKey:H}});_.S("web_log_player_watch_next_ticks")&&(U=U||{},U.requestTick="wn_s",U.responseTick="wn_r");return U};
var Gx=function(){};
_.R(Gx,u8);Gx.prototype.getApiPaths=function(){return yKy};
Gx.prototype.getExtension=function(H){return _.p(H,_.XA)};
Gx.prototype.JSC$14478_buildRequest=function(H,U){U.token&&(H.continuation=U.token)};var Yd=function(){this.innerTubeTransport=_.lx().resolve(_.IE);this.miniplayerService=_.lx().resolve(_.ZB)};
_.R(Yd,nQ);var rz$=function(H){var U;return _.u(function(A){U=_.gD("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;H.JSC$17955_mainAppPlayer=new SA(U);document.addEventListener("yt-navigate-start",H.JSC$17955_pauseOnNavigation.bind(H));_.DO(A)})},eN8=function(H,U){var A,M,W,w;
return _.u(function(d){if(d.nextAddress==1){A=new lT;M=A.JSC$14478_getRequest(U);if(!M)return d.return(void 0);W=M.innerTubeRequest;return d.yield(_.oz(H.innerTubeTransport,W,"/youtubei/v1/next"),2)}w=d.yieldResult;var O;var f,J,F=(O=w.contents)==null?void 0:(f=O.twoColumnWatchNextResults)==null?void 0:(J=f.playlist)==null?void 0:J.playlist,P;O=(F==null?0:(P=F.contents)==null?0:P.length)?F:void 0;return d.return(O)})},D2j=function(H,U){var A,M,W,w,d;
return _.u(function(O){if(O.nextAddress==1)return A=H.JSC$17955_mainAppPlayer,O.yield(A.api,2);if(O.nextAddress!=3)return M=O.yieldResult,U.watchCommand?O.yield(eN8(H,U.watchCommand),3):O.return();W=O.yieldResult;if((w=W)==null||!w.contents)return O.return();d=W.contents.map(function(f){var J;return(J=f.playlistPanelVideoRenderer)==null?void 0:J.videoId}).filter(function(f){return!!f}).map(function(f){return{encrypted_id:f}});
M.updatePlaylist({video:d});_.DO(O)})},$2B=function(H,U){var A,M,W;
return _.u(function(w){return w.nextAddress==1?(A=H.JSC$17955_mainAppPlayer,W=(M=U.playerParams)!=null?M:"",U.externalVideoId?w.yield(A.loadVideoWithPlayerVars({videoId:U.externalVideoId,audio_only:"1",player_params:W}),2):w.jumpTo(2)):U.watchCommand?w.yield(D2j(H,U),0):w.jumpTo(0)})};
Yd.prototype.JSC$17955_pauseOnNavigation=function(){var H=this,U,A;return _.u(function(M){if(M.nextAddress==1)return U=H.JSC$17955_mainAppPlayer,M.yield(U.api,2);A=M.yieldResult;A.pauseVideo();_.DO(M)})};
Yd.prototype.pauseVideo=function(){var H=this,U,A;return _.u(function(M){if(M.nextAddress==1)return U=H.JSC$17955_mainAppPlayer,M.yield(U.api,2);A=M.yieldResult;A.pauseVideo();_.DO(M)})};
Yd.prototype.playVideo=function(){var H=this,U,A;return _.u(function(M){if(M.nextAddress==1)return U=H.JSC$17955_mainAppPlayer,M.yield(U.api,2);A=M.yieldResult;A.playVideo();_.DO(M)})};
var lUh=function(H){var U,A;return _.u(function(M){if(M.nextAddress==1)return U=H.JSC$17955_mainAppPlayer,M.yield(U.api,2);A=M.yieldResult;A.mute();_.DO(M)})},GZm=function(H){var U,A;
return _.u(function(M){if(M.nextAddress==1)return U=H.JSC$17955_mainAppPlayer,M.yield(U.api,2);A=M.yieldResult;A.unMute();_.DO(M)})};
Yd.prototype.stopVideo=function(){var H=this,U,A;return _.u(function(M){if(M.nextAddress==1)return U=H.JSC$17955_mainAppPlayer,M.yield(U.api,2);A=M.yieldResult;A.stopVideo();_.DO(M)})};
var Y6f=function(H,U){return _.u(function(A){switch(A.nextAddress){case 1:switch(U){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return A.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return A.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return A.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return A.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return A.jumpTo(6)}A.jumpTo(0);break;case 2:return A.yield(H.playVideo(),8);case 8:A.jumpTo(0);break;case 3:return A.yield(H.pauseVideo(),
9);case 9:A.jumpTo(0);break;case 4:return A.yield(H.stopVideo(),10);case 10:A.jumpTo(0);break;case 5:return A.yield(lUh(H),11);case 11:A.jumpTo(0);break;case 6:return A.yield(GZm(H),12);case 12:A.jumpTo(0)}})};
Yd.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d,O;return _.u(function(f){return f.nextAddress==1?(A=_.p(H,Kih),((M=A)==null?0:M.newPlaybackParams)||((W=A)==null?0:W.controlAction)?U.JSC$17955_mainAppPlayer?f.jumpTo(2):f.yield(rz$(U),2):f.return()):((w=A)==null?0:w.newPlaybackParams)?(U.miniplayerService.isMiniplayerActive()&&((d=U.miniplayerService.getPlayerElement())==null||d.pause()),O=A.newPlaybackParams,O.externalVideoId||O.externalPlaylistId?f.yield($2B(U,O),0):f.return()):f.yield(Y6f(U,
A.controlAction),0)})};var q6=function(H){this.JSC$17961_commandHandler=H};
_.R(q6,nQ);
q6.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d,O;return _.u(function(f){if(f.nextAddress==1)return(A=_.p(H,Y7p))?f.yield(_.co(),2):f.return();M=f.yieldResult;if(!M)return f.return();var J=M,F=(W=A)==null?void 0:W.languageCode,P=(w=A)==null?void 0:w.isAutoTranslated;J.getVideoData&&_.m04(J).length&&((F=ar7(J,F,P))?J.setOption("captions","track",F):(J.setOption("captions","stickyLoading",{}),J.setOption("captions","track",{})));d=M.isSubtitlesOn()?_.hP("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.hP("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");O=_.mH(d,5E3);U.JSC$17961_commandHandler.resolveCommand(O);_.DO(f)})};
q6[Ga]=[_.YV];var hZ=function(H,U){this.shortsPlayerPromise=H;this.JSC$17965_commandHandler=U};
_.R(hZ,nQ);
hZ.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d,O,f,J;return _.u(function(F){if(F.nextAddress==1)return(A=_.p(H,ZJp))?F.yield(U.shortsPlayerPromise,2):F.return();M=F.yieldResult;var P=x0_(M);P!=null&&P.length||(M.loadModule("captions"),P=x0_(M));W=P;if((w=W)==null||!w.length)return d=_.hP("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),O=_.mH(d),U.JSC$17965_commandHandler.resolveCommand(O),F.return();M.toggleSubtitles();f=M.isSubtitlesOn()?_.hP("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.hP("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");J=_.mH(f);U.JSC$17965_commandHandler.resolveCommand(J);_.DO(F)})};
hZ[Ga]=[_.Oum,_.YV];var kd=function(H){this.JSC$17968_actionRouter=H;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(U,A){U.triggerAction("yt-dismiss-shopping-timely-shelf-action",A);(U=_.lx().resolve(_.$V(_.LAr)))&&U.dismissFeaturedProductOverlay()}]])};
_.R(kd,nQ);kd.prototype.resolveCommand=function(H){var U=this,A,M,W;return _.u(function(w){A=_.p(H,vgz);if((M=A)==null||!M.overlayId)return w.return();W=U.dismissPlayerOverlayActions.get(A.overlayId);if(!W)throw Error("Hi`"+A.overlayId);W(U.JSC$17968_actionRouter,A);_.DO(w)})};
kd[Ga]=[gk];var v9=function(H){this.JSC$17972_playerPromise=H};
_.R(v9,nQ);v9.prototype.resolveCommand=function(H){var U=this,A,M,W,w;return _.u(function(d){if(d.nextAddress==1)return(A=_.p(H,C1r))?d.yield(U.JSC$17972_playerPromise,2):d.return();M=d.yieldResult;W=M.getVideoData().video_id;A.videoId===W&&(w=Number(A.offsetFromVideoStartMilliseconds),w>=0&&M.seekTo(w/1E3));_.DO(d)})};
v9[Ga]=[_.aL];var q6m=_.BO("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),Tx=function(H){this.store=H};
_.R(Tx,nQ);
var hN8=function(H){var U,A,M,W;return _.u(function(w){if(w.nextAddress==1)return U=_.gD("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,A=_.gD("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,M=U||A,H.JSC$17976_mainAppPlayer=new SA(M),w.yield(H.JSC$17976_mainAppPlayer.api,2);W=w.yieldResult;W.addEventListener("onStateChange",H.JSC$17976_playerStateChangeListener.bind(H));document.addEventListener("yt-page-data-updated",H.JSC$17976_pauseOnNavigation.bind(H));window.addEventListener("state-navigatestart",
H.JSC$17976_pauseOnNavigation.bind(H));_.DO(w)})};
Tx.prototype.JSC$17976_playerStateChangeListener=function(H){switch(H){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"}kZp(this)};
var kZp=function(H){H.store.dispatch(_.hs("sfvAudioItemCurrentlyPlayingEntity",q6m,{key:q6m,externalVideoId:H.externalVideoId,sfvAudioItemPlaybackState:H.playbackState,nowPlayingEntityValue:H.nowPlayingEntityValue}))};
Tx.prototype.JSC$17976_pauseOnNavigation=function(){var H=this,U,A,M,W;return _.u(function(w){if(w.nextAddress==1){if(!H.JSC$17976_mainAppPlayer){var d=new _.bD("Error: mainAppPlayer is unavailable",H.JSC$17976_mainAppPlayer);_.sD(d);return w.return()}return w.yield(H.JSC$17976_mainAppPlayer.api,2)}U=w.yieldResult;M=(A=U)==null?void 0:A.getPlayerState();M!==1||(W=U)!=null&&W.pauseVideo();_.DO(w)})};
Tx.prototype.playVideo=function(H,U,A){var M=this,W,w;return _.u(function(d){if(d.nextAddress==1)return d.yield((W=M.JSC$17976_mainAppPlayer)==null?void 0:W.api,2);w=d.yieldResult;if(!M.JSC$17976_mainAppPlayer||!w){var O=new _.bD("Error: mainAppPlayer is unavailable",M.JSC$17976_mainAppPlayer);_.sD(O);return d.return()}return d.yield(M.JSC$17976_mainAppPlayer.loadVideoWithPlayerVars({videoId:M.externalVideoId,audio_only:"1",start:H/1E3,end:H/1E3+U,player_params:A}),0)})};
Tx.prototype.pauseVideo=function(){var H=this,U,A;return _.u(function(M){if(M.nextAddress==1){if(!H.JSC$17976_mainAppPlayer){var W=new _.bD("Error: mainAppPlayer is unavailable",H.JSC$17976_mainAppPlayer);_.sD(W);return M.return()}return M.yield(H.JSC$17976_mainAppPlayer.api,2)}U=M.yieldResult;(A=U)==null||A.pauseVideo();_.DO(M)})};
Tx.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d,O,f,J,F,P,n,N,L,m,z,c,C,v,Y;return _.u(function(D){if(D.nextAddress==1)return A=_.p(H,dIn),W=(M=A)==null?void 0:M.nowPlayingEntityValue,d=(w=A)==null?void 0:w.externalVideoId,P=Number((F=(O=A)==null?void 0:(f=O.defaultStartPoints)==null?void 0:(J=f[0])==null?void 0:J.offsetMs)!=null?F:"0"),c=Number((z=(n=A)==null?void 0:(N=n.defaultStartPoints)==null?void 0:(L=N[0])==null?void 0:(m=L.duration)==null?void 0:m.seconds)!=null?z:"15"),Y=(v=
(C=A)==null?void 0:C.playerParams)!=null?v:"",W&&d?U.JSC$17976_mainAppPlayer?D.jumpTo(2):D.yield(hN8(U),2):D.return();if(D.nextAddress!=6){if(U.nowPlayingEntityValue&&W===U.nowPlayingEntityValue)return U.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?D.yield(U.pauseVideo(),0):D.yield(U.playVideo(P,c,Y),0);U.externalVideoId=d;U.nowPlayingEntityValue=W;U.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return D.yield(U.playVideo(P,c,Y),6)}kZp(U);return D.jumpTo(0)})};
Tx[Ga]=[CY];var jz=function(H){this.JSC$17994_commandHandler=H};
_.R(jz,nQ);jz.prototype.resolveCommand=function(H,U){var A=this,M,W,w;return _.u(function(d){if(d.nextAddress==1)return(M=_.p(H,q72))?d.yield(_.co(),2):d.return();W=d.yieldResult;if(!W)return d.return();(w=zc4(W))&&A.JSC$17994_commandHandler.resolveCommand(w,U);_.DO(d)})};
jz[Ga]=[_.YV];var I4=function(H){this.JSC$18000_commandHandler=H};
_.R(I4,nQ);I4.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O;return _.u(function(f){if(f.nextAddress==1)return(M=_.p(H,hUp))?f.yield(_.co(),2):f.return();W=f.yieldResult;if(!W)return f.return();(w=BqK(W))?A.JSC$18000_commandHandler.resolveCommand(w,U):(d=_.hP("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),O=_.mH(d),A.JSC$18000_commandHandler.resolveCommand(O));_.DO(f)})};
I4[Ga]=[_.YV];var Qi=function(H){this.JSC$18003_playerPromise=H};
_.R(Qi,nQ);Qi.prototype.resolveCommand=function(H){var U=this,A,M;return _.u(function(W){if(W.nextAddress==1)return(A=_.p(H,QNy))?W.yield(U.JSC$18003_playerPromise,2):W.return();M=W.yieldResult;M.isFullscreen()&&M.wakeUpControls();_.DO(W)})};
Qi[Ga]=[_.aL];var Vi=function(H){this.JSC$18006_playerPromise=H};
_.R(Vi,nQ);Vi.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d;return _.u(function(O){if(O.nextAddress==1){A=_.p(H,tZg);if(!A)return O.return();M=A.overlayRenderer;return M?(W=_.p(M,Mog))?O.yield(U.JSC$18006_playerPromise,3):O.jumpTo(0):O.return()}w=O.yieldResult;w.renderChapterSeekingAnimation(1,_.Sp(W.text),(d=W.icon)==null?void 0:d.iconType);_.DO(O)})};
Vi[Ga]=[_.aL];var Hs=function(H){this.store=H};
_.R(Hs,nQ);
Hs.prototype.resolveCommand=function(H){var U=this,A,M,W;return _.u(function(w){if(w.nextAddress==1){A=_.p(H,oin);if(!A)return w.return();M="";(W=U.store.getState().collabInviteLink)&&A.id===W.playlistId?M=W.inviteLinkURL:A.shortUrl&&(M=A.shortUrl);return M?w.yield(navigator.clipboard.writeText(M),3):w.jumpTo(0)}var d={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.hP("COPY_LINK_SUCCESS_TOAST")}}}}};_.lx().resolve(_.YV).resolveCommand(d);_.DO(w)})};
Hs[Ga]=[Kw];var U2=function(H,U){this.innertubeTransportService=H;this.JSC$18016_commandHandler=U};
_.R(U2,nQ);U2.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O,f,J,F,P,n;return _.u(function(N){if(N.nextAddress==1)return(M=_.p(H,_.K$))?N.yield(_.Js(A.innertubeTransportService,H,(W=U)==null?void 0:W.form),2):N.return();(w=N.yieldResult)&&w.errorMetadata&&(d=w,O=_.mH(d.error.message),A.JSC$18016_commandHandler.resolveCommand(O));f=w;if((J=f)==null?0:J.actions)for(F=_.b(f.actions),P=F.next();!P.done;P=F.next())n=P.value,A.JSC$18016_commandHandler.resolveCommand(n);_.DO(N)})};
U2[Ga]=[_.IE,_.YV];var Au=function(){};
_.R(Au,nQ);Au.prototype.resolveCommand=function(H){var U;return _.u(function(A){U=_.p(H,X0k);if(!U)return A.return();(new B_y(U)).show();_.DO(A)})};_.M4=new _.g3("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Ws=function(H,U,A,M){this.store=H;this.innertubeTransportService=U;this.controller=A;this.JSC$18024_commandHandler=M};
_.R(Ws,nQ);
Ws.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O,f,J,F,P,n,N,L,m,z,c,C,v,Y,D,h,T,WF,dK,SN,o_,PF;return _.u(function(BF){if(BF.nextAddress==1){M=_.p(H,_.dk);if(!M)return BF.return();if(M.clientActions){W=_.b(M.clientActions);for(w=W.next();!w.done;w=W.next())d=w.value,A.JSC$18024_commandHandler.resolveCommand(d,U);var kc,G8=U==null?void 0:(kc=U.form)==null?void 0:kc.element;G8&&_.cg(G8,"yt-dismissible-item-action",M.clientActions)}return BF.yield(_.Js(A.innertubeTransportService,H,(O=
U)==null?void 0:O.form),2)}if(f=BF.yieldResult)f.errorMetadata?(J=f,F=_.mH(J.error.message),A.JSC$18024_commandHandler.resolveCommand(F),"error"in f&&((P=U)==null?0:(n=P.commandController)==null?0:n.onServerError)&&((N=U)==null||(L=N.commandController)==null||L.onServerError(H,f))):(m=U)==null||(z=m.commandController)==null||(C=(c=z).onSuccess)==null||C.call(c,H,f);v=f;((Y=v)==null?0:Y.collaborationInviteLink)&&M.playlistId&&(_.S("web_enable_invite_collaborators_link")||_.S("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
A.store.dispatch(_.zQ({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:M.playlistId,inviteLinkUrl:v.collaborationInviteLink}}));((D=v)==null?0:D.redirectEndpoint)&&A.JSC$18024_commandHandler.resolveCommand(v.redirectEndpoint);((h=v)==null?0:(T=h.newHeader)==null?0:T.playlistHeaderRenderer)?vZ5(A.controller,v.newHeader.playlistHeaderRenderer):((WF=v)==null?0:(dK=WF.newHeader)==null?0:dK.musicEditablePlaylistDetailHeaderRenderer)&&vZ5(A.controller,v.newHeader.musicEditablePlaylistDetailHeaderRenderer);
A.controller.playlistVideoListElement&&((SN=v)==null?0:(o_=SN.playlistEditResults)==null?0:(PF=o_[0])==null?0:PF.playlistEditVideoAddedResultData)&&((G8=A.controller.playlistVideoListElement)==null||G8.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:v.playlistEditResults[0].playlistEditVideoAddedResultData})));_.DO(BF)})};
Ws[Ga]=[_.bK,_.IE,_.M4,_.YV];var wE=function(H,U){this.controller=H;this.JSC$18034_commandHandler=U};
_.R(wE,nQ);wE.prototype.resolveCommand=function(H,U){var A=this,M,W,w;return _.u(function(d){M=_.p(H,Fih);A.controller.showRefreshPill&&((W=M)==null?0:W.command)&&(A.JSC$18034_commandHandler.resolveCommand((w=M)==null?void 0:w.command,U),A.controller.showRefreshPill=!1);_.DO(d)})};
wE[Ga]=[_.lr,_.YV];var Xs=function(H,U){this.store=H;this.JSC$18038_commandHandler=U||_.$$.instance};
_.R(Xs,nQ);Xs.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O,f,J,F,P,n;return _.u(function(N){M=_.p(H,zBk);W=A.store.getState().radioButtonGroup;if((w=M)==null?0:w.command)A.JSC$18038_commandHandler.resolveCommand((d=M)==null?void 0:d.command,U);else if(W&&((O=M)==null?void 0:O.formId)===W.currentFormId)for(f=Object.values(W.commandsMap),J=_.b(f),F=J.next();!F.done;F=J.next())P=F.value,(n=_.ij(P))&&A.JSC$18038_commandHandler.resolveCommand(n,U);_.DO(N)})};
Xs[Ga]=[_.bK];var ib=new _.g3("USER_PREFS");var bb=function(H){this.JSC$18043_prefCookie=H};
_.R(bb,nQ);bb.prototype.resolveCommand=function(H){var U=this,A;return _.u(function(M){(A=_.p(H,Qan))&&typeof A.useListView==="boolean"&&(_.jb(0,155,A.useListView),U.JSC$18043_prefCookie.save());_.DO(M)})};
bb[Ga]=[ib];var dE=function(H){this.JSC$18047_prefCookie=H};
_.R(dE,nQ);dE.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d;return _.u(function(O){A=_.p(H,bHH);if((M=A)==null||!M.gl)return O.return();W=A.gl;w={persist_gl:"1",gl:W};U.JSC$18047_prefCookie.set("gl",W);U.JSC$18047_prefCookie.save();d=WKM(w);_.ff(d);_.DO(O)})};
dE[Ga]=[ib];var O2=function(H){this.JSC$18051_prefCookie=H};
_.R(O2,nQ);O2.prototype.resolveCommand=function(H){var U=this,A,M;return _.u(function(W){A=_.p(H,sUw);if(!A)return W.return();M=!1;A.flagNum&&typeof A.value==="boolean"?(_.jb(0,A.flagNum,A.value),M=!0):A.key&&typeof A.stringValue==="string"&&(U.JSC$18051_prefCookie.set(A.key,A.stringValue),M=!0);M&&U.JSC$18051_prefCookie.save();_.DO(W)})};
O2[Ga]=[ib];var ub=new _.g3("PREF_STORAGE_PROMISE_TOKEN");var Zb=function(H){this.JSC$18055_prefStoragePromise=H};
_.R(Zb,nQ);Zb.prototype.resolveCommand=function(H){var U=this,A,M;return _.u(function(W){if(W.nextAddress==1)return(A=_.p(H,N$z))?W.yield(U.JSC$18055_prefStoragePromise,2):W.return();M=W.yieldResult;return M===void 0||A.key===void 0||A.value===void 0?W.return():W.yield(M.set(A.key,A.value),0)})};
Zb[Ga]=[ub];var fI=function(H){this.innertubeTransportService=H};
_.R(fI,nQ);fI.prototype.resolveCommand=function(H,U){var A=this,M,W;return _.u(function(w){(M=_.p(H,_.ter))&&M&&M.isFirstRequest&&(_.ia("search_overview_answer"),_.ba("so_rq",void 0,"search_overview_answer"));return w.yield(_.Js(A.innertubeTransportService,H,(W=U)==null?void 0:W.form),0)})};
fI[Ga]=[_.IE];var TNY=function(){};
_.R(TNY,nQ);
TNY.prototype.resolveCommand=function(H){var U,A,M,W,w,d,O,f,J;return _.u(function(F){U=_.p(H,zfH);if((A=U)==null?0:A.sectionIdentifier){if(U.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(W=(M=document.getElementsByTagName(U.sectionIdentifier))==null?void 0:M.item(0))W.scrollIntoView({behavior:"smooth"}),(w=g3N(W))&&w.focus({preventScroll:!0});return F.return()}d=document.querySelector("[section-identifier="+U.sectionIdentifier+"]");O=document.querySelector("[section-identifier="+U.referenceSectionIdentifier+
"]");if(!d)return F.return();f=U.verticalScrollOffsetDp?U.verticalScrollOffsetDp:0;O&&(f-=O.offsetTop);window.scrollTo({top:d.offsetTop+f,behavior:"smooth"});(J=g3N(d))&&J.focus({preventScroll:!0})}_.DO(F)})};var Ju=function(H){this.JSC$18067_commandHandler=H};
_.R(Ju,nQ);
Ju.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d,O,f;return _.u(function(J){if(J.nextAddress==1){A=_.p(H,MAg);if(!A||!A.imageBytes||!navigator.clipboard)return J.return();if(A.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.sD(Error("Ji")),J.return();_.zj(J,2);W=(M=A)==null?void 0:M.imageBytes;w=W.replace(/-/g,"+").replace(/_/g,"/");d=F04(w);O={};f=[new ClipboardItem((O[d.type]=d,O))];return J.yield(navigator.clipboard.write(f),4)}if(J.nextAddress!=2)return A.successCommand&&
U.JSC$18067_commandHandler.resolveCommand(A.successCommand),_.xD(J,0);_.eG(J);A.errorCommand&&U.JSC$18067_commandHandler.resolveCommand(A.errorCommand);_.DO(J)})};
Ju[Ga]=[_.YV];var KI=function(H,U){this.innertubeTransportService=H;this.JSC$18071_commandHandler=U};
_.R(KI,nQ);KI.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O;return _.u(function(f){if(f.nextAddress==1)return(M=_.p(H,WEp))?f.yield(_.Js(A.innertubeTransportService,H,(W=U)==null?void 0:W.form),2):f.return();(w=f.yieldResult)&&w.errorMetadata&&M.onFailureCommand&&A.JSC$18071_commandHandler.resolveCommand(M.onFailureCommand);d=w;((O=d)==null?0:O.shareCommand)&&A.JSC$18071_commandHandler.resolveCommand(d.shareCommand,U);_.DO(f)})};
KI[Ga]=[_.IE,_.YV];var oP=function(){};
_.R(oP,nQ);oP.prototype.resolveCommand=function(H){var U,A;return _.u(function(M){U=_.p(H,JOz);if(!U||!navigator.share)return M.return();A={url:U.url};try{return M.return(navigator.share(A))}catch(W){}_.DO(M)})};var Fs=function(){};
_.R(Fs,nQ);Fs.prototype.resolveCommand=function(){return _.u(function(H){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.DO(H)})};var Ps=function(H){this.JSC$18081_navigationConfirmationService=H};
_.R(Ps,nQ);Ps.prototype.resolveCommand=function(){var H=this;return _.u(function(U){H.JSC$18081_navigationConfirmationService.cancelPendingNavigation();_.DO(U)})};
Ps[Ga]=[T0];var s2=function(H){this.JSC$18084_screenManager=H};
_.R(s2,nQ);s2.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O,f,J;return _.u(function(F){W=(M=U.form)==null?void 0:M.event;d=(w=U.form)==null?void 0:w.element;if(!W)throw new _.bD("Event not passed in when resolving command");O=_.b(W.composedPath());for(f=O.next();!f.done;f=O.next())if(J=f.value,J.tagName==="YT-COPY-LINK-RENDERER")return J.copyUrlToClipboard(),d&&_.uZ(A.JSC$18084_screenManager,d),F.return();_.DO(F)})};
s2[Ga]=[_.U8];var nI=function(){this.JSC$18088_miniAppClientDataProvider=_.lx().resolve(_.mG)};
_.R(nI,nQ);nI.prototype.resolveCommand=function(){var H=this,U,A;return _.u(function(M){if(H.JSC$18088_miniAppClientDataProvider.clientData.has("video_id")){var W=H.JSC$18088_miniAppClientDataProvider,w=W.clientData.get("video_id");w&&W.clientData.delete("video_id");U="https://youtube.com/watch?v="+w;A=_.vy(U);if(A===void 0)throw Error("Ki`"+U);_.iL(window,A)}_.DO(M)})};var N4=function(){};
_.R(N4,nQ);N4.prototype.resolveCommand=function(){return _.u(function(H){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.DO(H)})};var SO=function(){};
_.R(SO,nQ);SO.prototype.resolveCommand=function(){var H;return _.u(function(U){if(U.nextAddress==1)return U.yield(_.BkM(window.document.documentElement),2);(H=document.querySelector("mini-app-container-view-model iframe"))&&H.focus();_.DO(U)})};var pI=function(H){this.JSC$18095_navigationConfirmationService=H};
_.R(pI,nQ);
pI.prototype.resolveCommand=function(){var H=this;return _.u(function(U){var A=H.JSC$18095_navigationConfirmationService,M=_.lx().resolve(_.l1),W;if(((W=A.navigateParams)==null?void 0:W.data)!==void 0){var w;_.T8B(M,A.navigateParams.endpoint,A.navigateParams.data,(w=A.navigateParams.navigationType)!=null?w:1,A.navigateParams.tempData,A.navigateParams.isMiniplayer,void 0,!0);A.navigateParams=void 0;A.customConfirmationCommand=void 0}else A.navigateParams&&(M.navigate(A.navigateParams.endpoint,A.navigateParams.reload,
A.navigateParams.params,A.navigateParams.tempData,A.navigateParams.requestType,A.navigateParams.createScreenConfig,!0),A.navigateParams=void 0,A.customConfirmationCommand=void 0);_.DO(U)})};
pI[Ga]=[T0];var LI=function(){};
_.R(LI,nQ);LI.prototype.resolveCommand=function(){return _.u(function(H){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.DO(H)})};var RP=function(H){this.JSC$18100_prefStorage=H};
_.R(RP,nQ);RP.prototype.resolveCommand=function(){var H=this,U,A;return _.u(function(M){switch(M.nextAddress){case 1:return M.yield(H.JSC$18100_prefStorage,2);case 2:return(U=M.yieldResult)?M.yield(U.set("sfvle",!1),3):M.return();case 3:return M.yield(U.set("sfvles",!0),4);case 4:A=_.TR(),_.jb(0,203,!1),_.jb(0,204,!0),A.save(),_.DO(M)}})};
RP[Ga]=[ub];var E2=function(H){this.JSC$18103_prefStorage=H};
_.R(E2,nQ);E2.prototype.resolveCommand=function(){var H=this,U,A;return _.u(function(M){switch(M.nextAddress){case 1:return M.yield(H.JSC$18103_prefStorage,2);case 2:return(U=M.yieldResult)?M.yield(U.set("sfvle",!0),3):M.return();case 3:return M.yield(U.set("sfvles",!0),4);case 4:A=_.TR(),_.jb(0,203,!0),_.jb(0,204,!0),A.save(),_.DO(M)}})};
E2[Ga]=[ub];_.jkh=new _.g3("SNACKBAR_CONTROLLER_TOKEN");_.IU$=new _.g3("SHOULD_SHOW_PIVOT_BAR_TOKEN");var mv=function(H){this.controller=H};
_.R(mv,nQ);mv.prototype.resolveCommand=function(H){var U=this,A;return _.u(function(M){A=_.p(H,FEr);if(!A)return M.return();var W=U.controller;W.closeSnackbarFn&&W.closeSnackbarFn();_.DO(M)})};
mv[Ga]=[_.jkh];var gE=function(H,U){this.controller=H;this.JSC$18110_sheetController=U};
_.R(gE,nQ);gE.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O,f;return _.u(function(J){M=_.p(H,sNr);if(!M)return J.return();d=BNy(A.JSC$18110_sheetController,(W=U)==null?void 0:(w=W.form)==null?void 0:w.element);O=_.p(M.content,tAy);if(!O)return J.return();var F=A.controller,P=O,n=(f=M.animationStyle)!=null?f:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(F.showSnackbarFn)F.showSnackbarFn({snackbarViewModel:P,animationStyle:n,durationMs:M.durationSeconds*1E3,target:d});else throw Error("Dj");_.DO(J)})};
gE[Ga]=[_.jkh,_.Wi];var aP=function(){};
_.R(aP,nQ);aP.prototype.resolveCommand=function(H){var U;return _.u(function(A){U=_.p(H,nik);if(!U||typeof U.key!=="string"||typeof U.value!=="string")return A.return();window.localStorage.setItem(U.key,U.value);_.DO(A)})};var x9=function(H){this.store=H};
_.R(x9,nQ);x9.prototype.resolveCommand=function(H){var U=this,A;return _.u(function(M){A=_.p(H,JVM);if(!A||!A.stepId||!A.token)return M.return();U.store.dispatch(foH({stepId:A.stepId,token:A.token,isSelected:!1}));_.DO(M)})};
x9[Ga]=[Kw];var zp=function(H,U,A){this.innertubeTransportService=H;this.store=U;this.JSC$18122_screenManager=A};
_.R(zp,nQ);
zp.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d,O,f,J,F,P,n,N,L,m,z,c,C,v,Y,D,h,T,WF,dK,SN,o_,PF,BF;return _.u(function(kc){A=_.p(H,Z3H);if(!A||(M=A.stepIds)==null||!M.length)return kc.return();W=U.store.getState().talkToRecs;w=[];d=[];O=_.b(A.stepIds);for(f=O.next();!f.done;f=O.next())for(J=f.value,F=void 0,(P=(F=W.stepStates[J])==null?void 0:F.userQuery)&&d.push({userQuery:A.submitEmptyUserQuery?"":P.userQuery,userQueryToken:P.token}),N=n=void 0,L=(N=(n=W.stepStates[J])==null?void 0:
n.selectionStates)!=null?N:{},m=_.b(Object.entries(L)),z=m.next();!z.done;z=m.next())c=z.value,C=_.b(c),v=C.next().value,Y=C.next().value,D=v,h=Y,h.isSelected&&w.push(D);T={selectedChipTokens:w,userQueries:d,submittedStepIds:A.stepIds};WF={browseTalk2recsFormData:T};A.browseEndpoint?(dK=H,_.Ap(dK,_.Gv,A.browseEndpoint)):A.command&&(dK=A.command);if(!dK)return kc.return();SN=_.p(dK,_.XA);if((o_=SN)==null?0:o_.command)if(PF=_.p(SN.command,dyp))BF=_.$$.instance,BF.resolveCommand(SN.command);return kc.yield(_.Js(U.innertubeTransportService,
dK,{formData:WF,disableCache:!0}).then(function(G8){(G8==null?0:G8.trackingParams)&&U.JSC$18122_screenManager.graftServerVe(G8==null?void 0:G8.trackingParams)}),0)})};
zp[Ga]=[_.IE,Kw,_.U8];var CI=function(H){this.store=H};
_.R(CI,nQ);
CI.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d,O,f,J;return _.u(function(F){A=_.p(H,fSc);if(!A||!A.stepId)return F.return();if(A.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY")d=(w=(M=U.store.getState().talkToRecs.stepStates[A.stepId])==null?void 0:(W=M.userQuery)==null?void 0:W.userQuery)!=null?w:"",O=d.length>0?". ":"",f=d+O+A.selectedText,U.store.dispatch(J7p({stepId:A.stepId,userQueryToken:"",userQuery:f}));else if(A.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY")U.store.dispatch(J7p({stepId:A.stepId,userQueryToken:"",
userQuery:(J=A.selectedText)!=null?J:""}));else{if(!A.token)return F.return();U.store.dispatch(foH({stepId:A.stepId,token:A.token,isSelected:!0}))}_.DO(F)})};
CI[Ga]=[Kw];var tu=function(H){this.store=H};
_.R(tu,nQ);tu.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O,f;return _.u(function(J){M=_.p(H,f7n);if(!M||!M.stepId)return J.return();O=(d=(W=U)==null?void 0:(w=W.form)==null?void 0:w.userQuery)!=null?d:"";A.store.dispatch(J7p({stepId:M.stepId,userQuery:O,userQueryToken:(f=M.userQueryToken)!=null?f:""}));_.DO(J)})};
tu[Ga]=[Kw];_.Qky=new _.g3("TIMELY_ACTIONS_CONTROLLER_TOKEN");var cs=function(H){this.controller=H};
_.R(cs,nQ);cs.prototype.resolveCommand=function(H){var U=this,A,M,W,w;return _.u(function(d){A=_.p(H,g6w);if(!A)return d.return();M=A;W=M.id;w=M.isVisible;if(W===void 0||w===void 0)return d.return();var O;(O=U.controller.timelyActionsMap.get(W))==null||O(W,w);_.DO(d)})};
cs[Ga]=[_.Qky];var VsY=function(){this.timelyActionsMap=new Map};var yl=function(H){this.JSC$18148_commandHandler=H};
_.R(yl,nQ);yl.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d;return _.u(function(O){A=_.p(H,_.B3n);if(!A)return O.return();w=(M=A.item)==null?void 0:(W=M.notificationTextRenderer)==null?void 0:W.successResponseText;if(!w)return O.return();d=_.E_(w);U.JSC$18148_commandHandler.resolveCommand(d);_.DO(O)})};
yl[Ga]=[_.YV];var Bs=function(H,U){this.innertubeTransportService=H;this.JSC$18153_playerApiPromise=U};
_.R(Bs,nQ);
Bs.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d,O,f,J,F;return _.u(function(P){if(P.nextAddress==1)return P.yield(U.JSC$18153_playerApiPromise,2);A=P.yieldResult;M=A.getOption("captions","track");W=Object.assign({},_.p(H,_.GFy));(d=(w=A.getVideoData())==null?void 0:w.video_id)?W.externalVideoId=d:_.c5(Error("Li"));if((O=M)==null?0:O.languageCode)W.languageCode=M.languageCode;if((f=M)==null?0:f.kind)W.kind=M.kind;if((J=M)==null?0:J.name)W.name=M.name;F=Object.assign({},H,{getTranscriptEndpoint:W});return P.yield(_.Js(U.innertubeTransportService,
F),0)})};
Bs[Ga]=[_.IE,_.aL];var rE=function(){};
_.R(rE,nQ);rE.prototype.resolveCommand=function(H){var U,A,M,W,w,d,O,f;return _.u(function(J){U=_.p(H,xyy);if((A=U)==null||!A.paramKeyValuePairs)return J.return();M=window.location.href;W=_.b(U.paramKeyValuePairs);for(w=W.next();!w.done;w=W.next())d=w.value,d.key&&d.value&&(O={},M=_.ey(M,(O[d.key]=d.value,O)));f=_.lx().resolve(_.qM);_.Y0(f,M);_.DO(J)})};_.eO=new _.g3("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var Db=function(H,U,A,M){this.controller=H;this.JSC$18160_playerApiPromise=U;this.innertubeTransportService=A;this.JSC$18160_commandHandler=M};
_.R(Db,nQ);
Db.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d,O,f,J,F,P,n,N,L,m,z,c,C,v;return _.u(function(Y){if(Y.nextAddress==1){A=_.p(H,VAw);if((M=A)==null||!M.watchEndpoint)return Y.return();W=new lT;w=W.JSC$14478_getRequest(A.watchEndpoint);if(!w)return Y.return();d=A.watchEndpoint.clickTrackingParams;return Y.yield(_.oz(U.innertubeTransportService,w.innerTubeRequest,w.input,d,w.config),2)}if(Y.nextAddress!=3)return O=Y.yieldResult,Y.yield(U.JSC$18160_playerApiPromise,3);f=Y.yieldResult;f.updateVideoData({raw_watch_next_response:O});
if(L=(J=O)==null?void 0:(F=J.contents)==null?void 0:(P=F.twoColumnWatchNextResults)==null?void 0:(n=P.results)==null?void 0:(N=n.results)==null?void 0:N.contents)z=(m=L.find(function(D){return D.videoPrimaryInfoRenderer}))==null?void 0:m.videoPrimaryInfoRenderer,((c=z)==null?0:c.subtitle)&&HpB(U.controller,z.subtitle);
(v=(C=O)==null?void 0:C.onUiReady)&&U.JSC$18160_commandHandler.resolveCommand(v);_.DO(Y)})};
Db[Ga]=[_.eO,_.aL,_.IE,_.YV];var Uuh=function(){this.subtitleChangeCallbackMap=new Map},HpB=function(H,U){H=_.b(H.subtitleChangeCallbackMap.values());
for(var A=H.next();!A.done;A=H.next())A=A.value,A(U)};var $9=function(H,U){this.JSC$18170_commandHandler=H;this.innertubeTransportService=U};
_.R($9,nQ);
$9.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O,f,J,F,P,n,N,L,m,z,c,C,v;return _.u(function(Y){switch(Y.nextAddress){case 1:return(w=(M=U)==null?void 0:(W=M.form)==null?void 0:W.element)&&_.JN(w),d=_.TR().get("hl"),O="",_.zj(Y,2),Y.yield($08(d),4);case 4:O=Y.yieldResult;_.xD(Y,3);break;case 2:return _.eG(Y),w&&_.KY(w),_.sD(Error("Ni"),"ERROR"),Y.return();case 3:f=_.p(H,uih);if(!f)return w&&_.KY(w),Y.return();(P=(J=f.commerceActionConfig)==null?void 0:(F=J.commandLifeCycleConfig)==null?
void 0:F.onStartCommand)&&A.JSC$18170_commandHandler.resolveCommand(P);return Y.yield(_.Js(A.innertubeTransportService,H,{client_data:{paymentsClientToken:{token:O}}}),5);case 5:(n=Y.yieldResult)?(w&&_.KY(w),((z=n)==null?0:z.command)&&A.JSC$18170_commandHandler.resolveCommand(n.command),(v=(c=f.commerceActionConfig)==null?void 0:(C=c.commandLifeCycleConfig)==null?void 0:C.onSuccessCommand)&&A.JSC$18170_commandHandler.resolveCommand(v)):(w&&_.KY(w),_.sD(Error("Oi")),(m=(N=f.commerceActionConfig)==
null?void 0:(L=N.commandLifeCycleConfig)==null?void 0:L.onFailureCommand)&&A.JSC$18170_commandHandler.resolveCommand(m)),_.DO(Y)}})};
$9[Ga]=[_.YV,_.IE];var lb=function(H,U,A){this.store=H;this.JSC$18186_commandHandler=U;this.innertubeTransportService=A};
_.R(lb,nQ);
lb.prototype.resolveCommand=function(H,U){var A=this,M,W,w,d,O,f,J,F,P;return _.u(function(n){M=_.p(H,Znp);W=M.googlePaymentPayload;M.onStartCommand&&A.JSC$18186_commandHandler.resolveCommand(M.onStartCommand);w=W.encryptedPurchaseParams;d=W.ypcLogWalletAnalyticDataEndpoint;O=M.serializedTransactionFlowLoggingParams;f=W.serializedPaymentsClientParams;J=M.ypcCujContext;P=YO7(A.innertubeTransportService,(F=U)==null?void 0:F.form,w,d,O,f,J);return n.return(P.then(function(N){lrc(U==null?void 0:U.form,
!1);var L=A.store,m=A.JSC$18186_commandHandler,z=N.integratorData;z==null||z===""||N.error!=null?(String(N.error)==="-1"&&M.onDismissCommand?m.resolveCommand(M.onDismissCommand):String(N.error)!=="-1"&&M.onFailureCommand&&m.resolveCommand(M.onFailureCommand),String(N.error)!=="-1"&&String(N.error)!=="132"&&_.sD(Error("Pi"),"ERROR")):(M.googlePaymentEntityKey&&L.dispatch(_.hs("commerceAcquisitionClientPayloadEntity",M.googlePaymentEntityKey,{key:M.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:z,
fundsGuaranteeCallbackClientData:N.integratorClientCallbackData}}})),M.onSuccessCommand&&m.resolveCommand(M.onSuccessCommand));_.DH()},function(N){lrc(U==null?void 0:U.form,!1);
_.sD(N,"ERROR");M.onFailureCommand&&A.JSC$18186_commandHandler.resolveCommand(M.onFailureCommand)}))})};
lb[Ga]=[CY,_.YV,_.IE];var Gp=function(H,U){this.JSC$18190_commandHandler=H;this.purchaseManager=U};
_.R(Gp,nQ);
Gp.prototype.resolveCommand=function(H){var U=this,A,M,W,w,d,O,f,J,F;return _.u(function(P){A=_.p(H,fuK);((M=A)==null?0:(W=M.commandLifeCycleConfig)==null?0:W.onStartCommand)&&U.JSC$18190_commandHandler.resolveCommand(A.commandLifeCycleConfig.onStartCommand);if(!((w=A)==null?0:(d=w.googlePaymentPurchaseManagerPayload)==null?0:d.securePayloadBytes))return _.sD(Error("Qi"),"ERROR"),P.return();O=Jpw(_.Q0(A.googlePaymentPurchaseManagerPayload.securePayloadBytes));f=_.TR().get("hl");J=_.oL();Dof(O.serialize(),
f,function(n){J.resolve(n)},function(n){J.reject(n)},J.resolve);
F=J.promise;return P.return(F.then(function(n){if(n)if(n==null?0:n.errorCode){_.sD(Error("Ri`"+n.errorCode),"ERROR");var N,L;((N=A)==null?0:(L=N.commandLifeCycleConfig)==null?0:L.onFailureCommand)&&U.JSC$18190_commandHandler.resolveCommand(A.commandLifeCycleConfig.onFailureCommand)}else if(n==null?0:n.isCancelled){var m,z;((m=A)==null?0:(z=m.commandLifeCycleConfig)==null?0:z.onCancelCommand)&&U.JSC$18190_commandHandler.resolveCommand(A.commandLifeCycleConfig.onCancelCommand)}else{var c,C;((c=A)==
null?0:(C=c.commandLifeCycleConfig)==null?0:C.onSuccessCommand)&&U.JSC$18190_commandHandler.resolveCommand(A.commandLifeCycleConfig.onSuccessCommand)}},function(n){_.sD(n,"ERROR");
var N,L;((N=A)==null?0:(L=N.commandLifeCycleConfig)==null?0:L.onFailureCommand)&&U.JSC$18190_commandHandler.resolveCommand(A.commandLifeCycleConfig.onFailureCommand)}))})};
Gp[Ga]=[_.YV,$o8];var ADY=function(H,U){this.JSC$18198_commandHandler=H;this.commandAllowlistOverride=U;var A;this.commandAllowlist=(A=this.commandAllowlistOverride)!=null?A:tHE};
ADY.prototype.handleResponse=function(H,U,A){var M,W=U==null?void 0:(M=U.config)==null?void 0:M.command;if(!W||this.commandAllowlist.some(function(w){return!!_.p(W,w)})){U=void 0;
A!==void 0&&(U={form:{element:A}});H.onResponseReceivedCommand&&this.JSC$18198_commandHandler.resolveCommand(H.onResponseReceivedCommand,U);H.onResponseReceivedAction&&this.JSC$18198_commandHandler.resolveCommand(H.onResponseReceivedAction,U);H.onResponseReceivedEndpoint&&this.JSC$18198_commandHandler.resolveCommand(H.onResponseReceivedEndpoint,U);H.command&&this.JSC$18198_commandHandler.resolveCommand(H.command,U);if(H.onResponseReceivedCommands)for(A=_.b(H.onResponseReceivedCommands),M=A.next();!M.done;M=
A.next())this.JSC$18198_commandHandler.resolveCommand(M.value,U);if(H.onResponseReceivedActions)for(A=_.b(H.onResponseReceivedActions),M=A.next();!M.done;M=A.next())this.JSC$18198_commandHandler.resolveCommand(M.value,U);if(H.onResponseReceivedEndpoints)for(A=_.b(H.onResponseReceivedEndpoints),M=A.next();!M.done;M=A.next())this.JSC$18198_commandHandler.resolveCommand(M.value,U);if(H.actions)for(H=_.b(H.actions),A=H.next();!A.done;A=H.next())this.JSC$18198_commandHandler.resolveCommand(A.value,U)}};
ADY[Ga]=[_.YV,_.$V(CG8)];var Mlh=new _.g3("INNERTUBE_TOKEN_SERVICE");var WPY=new _.g3("SCHEDULER_TOKEN");var w8Y=function(H){this.scheduler=H;H={};this.tokenMap=(H.app={},H.user={},H)};
w8Y.prototype.handleResponse=function(H,U){if(!U)throw Error("Si");var A;if(H=(A=H.responseContext)==null?void 0:A.innertubeTokenJar){if(H.appTokens){var M,W,w;A=(M=U.innerTubeRequest.context)==null?void 0:(W=M.request)==null?void 0:(w=W.innertubeTokenJar)==null?void 0:w.appTokens;X8f(this,H.appTokens,this.tokenMap.app,A)}if(H.userTokens){var d,O,f;U=(d=U.innerTubeRequest.context)==null?void 0:(O=d.request)==null?void 0:(f=O.innertubeTokenJar)==null?void 0:f.userTokens;X8f(this,H.userTokens,this.tokenMap.user,
U)}}};
w8Y.prototype.processContext=function(H){H.request||(H.request={});var U=Object.keys(this.tokenMap.app).length,A=Object.keys(this.tokenMap.user).length;if(U||A)H.request.innertubeTokenJar={},U&&(H.request.innertubeTokenJar.appTokens=[].concat(_.vI(Object.values(this.tokenMap.app).flat()))),A&&(H.request.innertubeTokenJar.userTokens=[].concat(_.vI(Object.values(this.tokenMap.user).flat())))};
var X8f=function(H,U,A,M){U=_.b(U);for(var W=U.next(),w={};!W.done;w={token$jscomp$139:void 0},W=U.next()){w.token$jscomp$139=W.value;if(w.token$jscomp$139.type===void 0)throw new _.bD("InnerTube token has no type",w.token$jscomp$139);if(w.token$jscomp$139.clearTokens)A[w.token$jscomp$139.type]=[];else if(w.token$jscomp$139.value!==void 0){A[w.token$jscomp$139.type]||(A[w.token$jscomp$139.type]=[]);if(M!==void 0&&M.length){W=_.b(M);for(var d=W.next(),O={};!d.done;O={requestToken:void 0},d=W.next())O.requestToken=
d.value,d=A[w.token$jscomp$139.type].findIndex(function(f){return function(J){return J===f.requestToken||(0,_.dG.equals)(J,f.requestToken)}}(O)),d>-1&&A[w.token$jscomp$139.type].splice(d,1)}A[w.token$jscomp$139.type].push(w.token$jscomp$139);
w.token$jscomp$139.maxAgeSeconds&&Number(w.token$jscomp$139.maxAgeSeconds)>0&&H.scheduler.addLowPriorityJob(function(f){return function(){var J=A[f.token$jscomp$139.type].indexOf(f.token$jscomp$139);J>-1&&A[f.token$jscomp$139.type].splice(J,1)}}(w),Number(w.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.bD("InnerTube token has no value",w.token$jscomp$139);
}};
w8Y[Ga]=[WPY];var iph=new _.g3("LOCAL_INNERTUBE_ROUTER_TOKEN"),bp5=new _.g3("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Y9=function(H){this.serviceMap=H};
Y9.prototype.shouldPreferLocalResponse=function(H,U){return(H=dum(this,H))?H.shouldPreferLocalResponse(U):!1};
Y9.prototype.localInnertubeResponse=function(H,U){var A=this,M;return _.u(function(W){return(M=dum(A,H))?W.return(M.localInnertubeResponse(U)):W.return(Promise.reject(Error("Ti")))})};
Y9.prototype.canProvideFallbackResponse=function(H,U){return(H=dum(this,H))?H.canProvideFallbackResponse(U):!1};
Y9.prototype.localFallbackInnertubeResponse=function(H,U){var A=this,M;return _.u(function(W){return(M=dum(A,H))?W.return(M.localFallbackInnertubeResponse(U)):W.return(Promise.reject(Error("Ti")))})};
var dum=function(H,U){U=_.DU(U);return U?(H=H.serviceMap[U])?H:null:null};
Y9[Ga]=[bp5];var VI=function(){};
VI.prototype.shouldPreferLocalResponse=function(){return!1};
VI.prototype.localInnertubeResponse=function(){return _.u(function(H){return H.return(Promise.reject(Error("Ui")))})};
VI.prototype.canProvideFallbackResponse=function(){return!0};
VI.prototype.localFallbackInnertubeResponse=function(){var H,U,A;return _.u(function(M){H=Df("CLOSE_POPUP");U={openPopupAction:hc8()};A={actions:[H,U]};return M.return(A)})};var WZ4=function(H,U){this.JSC$18247_upliftPromise=H;this.store=U};
_.X=WZ4.prototype;_.X.shouldPreferLocalResponse=function(H){var U=H.videoId,A;if(A=U)A=Rx0(this.store.getState().entities,H.videoId);return A&&Ev_(this.store.getState().entities,U)?vw4(this.store.getState().entities,H.playlistId):!1};
_.X.localInnertubeResponse=function(H){var U=this,A;return _.u(function(M){return(A=U.getPlayerResponse(H))?M.return(Promise.resolve(A)):M.return(Promise.reject(Error("Vi")))})};
_.X.canProvideFallbackResponse=function(H){return!!H.videoId};
_.X.localFallbackInnertubeResponse=function(H){var U=this,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(U.JSC$18247_upliftPromise,2);A=U.getPlayerResponse(H);var W;A?W=M.return(Promise.resolve(A)):W=Qy(U.store.getState().entities,H.videoId)?M.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.gH(_.hP("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:VFV()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
M.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.gH(_.hP("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:Q7c()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return W})};
_.X.getPlayerResponse=function(H){return VeM(this.store.getState().entities,H.videoId)};var QI=function(H,U){this.localPlayerService=H;this.localWatchNextService=U};
QI.prototype.shouldPreferLocalResponse=function(H){var U=H.playerRequest;H=H.watchNextRequest;return!!(U&&this.localPlayerService.shouldPreferLocalResponse(U)&&H&&this.localWatchNextService.shouldPreferLocalResponse(H))};
QI.prototype.localInnertubeResponse=function(H){var U=this,A,M,W,w;return _.u(function(d){if(d.nextAddress==1){A=H.playerRequest;M=H.watchNextRequest;if(!A||!M)throw new _.bD("Missing streaming request",H);return d.yield(U.localPlayerService.localInnertubeResponse(A),2)}if(d.nextAddress!=3)return W=d.yieldResult,d.yield(U.localWatchNextService.localInnertubeResponse(M),3);w=d.yieldResult;return d.return({playerResponse:W,watchNextResponse:w})})};
QI.prototype.canProvideFallbackResponse=function(H){var U=H.playerRequest;H=H.watchNextRequest;return!!(U&&this.localPlayerService.canProvideFallbackResponse(U)&&H&&this.localWatchNextService.canProvideFallbackResponse(H))};
QI.prototype.localFallbackInnertubeResponse=function(H){var U=this,A,M,W,w;return _.u(function(d){if(d.nextAddress==1)return A=H.playerRequest,M=H.watchNextRequest,A&&M?d.yield(U.localPlayerService.localFallbackInnertubeResponse(A),2):d.return(Promise.reject(new _.bD("Missing streaming request",H)));if(d.nextAddress!=3)return W=d.yieldResult,d.yield(U.localWatchNextService.localFallbackInnertubeResponse(M),3);w=d.yieldResult;return d.return({playerResponse:W,watchNextResponse:w})})};var Ts=function(H){this.JSC$18257_persistentStorePromiseAccessor=H};
Ts.prototype.shouldPreferLocalResponse=function(){return!1};
Ts.prototype.localInnertubeResponse=function(){return _.u(function(H){return H.return(Promise.reject(Error("Wi")))})};
Ts.prototype.canProvideFallbackResponse=function(){return!0};
Ts.prototype.localFallbackInnertubeResponse=function(){var H=this,U,A;return _.u(function(M){return M.nextAddress==1?M.yield(H.JSC$18257_persistentStorePromiseAccessor(),2):M.nextAddress!=3?(U=M.yieldResult)?M.yield(U.get("service:guide:fallback"),3):M.return(Promise.reject(Error("Xi"))):(A=M.yieldResult)&&_.xj(A)?M.return(TqF(_.xj(A))):M.return(Promise.reject(Error("Yi")))})};var Hu=function(){};
Hu.prototype.shouldPreferLocalResponse=function(){return!1};
Hu.prototype.localInnertubeResponse=function(){return _.u(function(H){return H.return(Promise.reject(Error("Zi")))})};
Hu.prototype.canProvideFallbackResponse=function(){return!0};
Hu.prototype.localFallbackInnertubeResponse=function(){var H,U,A;return _.u(function(M){H=Df("CLOSE_POPUP");U={openPopupAction:hc8()};A={actions:[H,U]};return M.return(A)})};var vl=function(){this.urlMap=OpX;this.fallbackCommand=_.jR};
vl.prototype.shouldPreferLocalResponse=function(H){return(H=H.url)?!!uS8(this,H):!1};
vl.prototype.localInnertubeResponse=function(H){var U=this,A;return _.u(function(M){return(A=H.url)?M.return(Zp8(H,uS8(U,A))):M.return(Promise.reject(Error("$i")))})};
vl.prototype.canProvideFallbackResponse=function(){return!0};
vl.prototype.localFallbackInnertubeResponse=function(H){var U=this,A,M,W,w,d,O,f;return _.u(function(J){A=H.url;if(!A)return J.return(Zp8(H,U.fallbackCommand));if(M=uS8(U,A))return J.return(Zp8(H,M));W=void 0;w=_.DU(A);w==="/watch"&&(d=_.TZ(A,"v"))&&(f=(O=_.TZ(A,"list"))!=null?O:void 0,W=_.mb(d,f));W||(W=U.fallbackCommand);return J.return(Zp8(H,W))})};
var uS8=function(H,U){if(U)return H.urlMap[_.$Z(U)]},Zp8=function(H,U){U&&H.parentTrackingParams&&(U.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:H.parentTrackingParams}},U.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:U})};var jV=function(H,U,A){this.JSC$18268_upliftPromise=H;this.store=U;this.JSC$18268_persistentStorePromiseAccessor=A};
jV.prototype.shouldPreferLocalResponse=function(){return!1};
jV.prototype.localInnertubeResponse=function(){return _.u(function(H){return H.return(Promise.reject(Error("aj")))})};
jV.prototype.canProvideFallbackResponse=function(){return!0};
jV.prototype.localFallbackInnertubeResponse=function(){var H=this;return _.u(function(U){return U.return(fD$(H))})};
var fD$=function(H){var U,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(ai(H.JSC$18268_upliftPromise,H.store),2);U=M.yieldResult;A={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[kWc(U)]}}}};return M.return(JD7(H,A))})},JD7=function(H,U){var A,M;
return _.u(function(W){if(W.nextAddress==1)return W.yield(H.JSC$18268_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3)return A=W.yieldResult,W.yield(zs(A),3);M=W.yieldResult;return W.return({responseContext:{},contents:U,topbar:M})})};var hN=function(H,U,A){this.JSC$18275_upliftPromise=H;this.store=U;this.JSC$18275_persistentStorePromiseAccessor=A};
hN.prototype.shouldPreferLocalResponse=function(H){var U=H.videoId;return U&&Rx0(this.store.getState().entities,U)&&Ev_(this.store.getState().entities,U)?vw4(this.store.getState().entities,H.playlistId):!1};
hN.prototype.localInnertubeResponse=function(H){var U=this,A,M;return _.u(function(W){if(W.nextAddress==1)return(A=H.videoId)?W.yield(U.JSC$18275_upliftPromise,2):W.return(Promise.reject(Error("bj")));if(W.nextAddress!=3)return W.yield(KP$(U,H,A),3);M=W.yieldResult;return W.return(ol$(U,M,A))})};
hN.prototype.canProvideFallbackResponse=function(H){return H.videoId?!0:!1};
hN.prototype.localFallbackInnertubeResponse=function(H){var U=this,A,M,W,w;return _.u(function(d){switch(d.nextAddress){case 1:return(A=H.videoId)?d.yield(U.JSC$18275_upliftPromise,2):d.return(Promise.reject(Error("bj")));case 2:return d.yield(KP$(U,H,A),3);case 3:M=d.yieldResult;if(Qy(U.store.getState().entities,A)){d.jumpTo(4);break}return d.yield(ai(U.JSC$18275_upliftPromise,U.store),5);case 5:return W=d.yieldResult,d.return(FPj(M,W));case 4:return Rx0(U.store.getState().entities,A)&&Ev_(U.store.getState().entities,
A)?d.return(ol$(U,M,A)):(w={title:_.gH(_.hP("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:VFV()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},d.return(FPj(M,w)))}})};
var KP$=function(H,U,A){var M,W,w,d,O;return _.u(function(f){if(f.nextAddress==1)return M=U.playlistId,W=_.mb(A,M),f.yield(H.JSC$18275_persistentStorePromiseAccessor(),2);if(f.nextAddress!=3)return w=f.yieldResult,f.yield(zs(w),3);d=f.yieldResult;O={responseContext:{},currentVideoEndpoint:W,topbar:d};return f.return(O)})},ol$=function(H,U,A){if(H=Qy(H.store.getState().entities,A)){var M;
A=H.videoEntity;var W,w={title:au(A.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.xU((M=A.localizedStrings)==null?void 0:M.viewCount),viewCount:_.xU((W=A.localizedStrings)==null?void 0:W.viewCount)}}};A.publishedTimestampMillis&&(w.dateText=_.xU(nb7(new Date(Number(A.publishedTimestampMillis)))));M={videoPrimaryInfoRenderer:w};W=H.videoEntity;H=H.channelEntity;H={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:au(_.hP("SHOW_MORE",void 0,"Show more")),
showLessText:au(_.hP("SHOW_LESS",void 0,"Show less")),description:W.formattedDescription,owner:{videoOwnerRenderer:{title:au(H.title),thumbnail:H.avatar}}}};U.contents={twoColumnWatchNextResults:{results:{results:{contents:[M,H]}}}}}return U},FPj=function(H,U){H.contents={singleColumnWatchNextResults:{results:{results:{contents:[kWc(U)]}}}};
return H};var Ii=function(H,U,A){this.JSC$18280_upliftPromise=H;this.store=U;this.JSC$18280_persistentStorePromiseAccessor=A};
Ii.prototype.shouldPreferLocalResponse=function(){return!1};
Ii.prototype.localInnertubeResponse=function(){return _.u(function(H){return H.return(Promise.reject(Error("cj")))})};
Ii.prototype.canProvideFallbackResponse=function(){return!0};
Ii.prototype.localFallbackInnertubeResponse=function(){var H=this,U,A,M,W;return _.u(function(w){switch(w.nextAddress){case 1:return w.yield(H.JSC$18280_persistentStorePromiseAccessor(),2);case 2:return U=w.yieldResult,w.yield(zs(U),3);case 3:return A=w.yieldResult,M={responseContext:{},topbar:A},w.yield(H.JSC$18280_upliftPromise,4);case 4:return w.yield(ai(H.JSC$18280_upliftPromise,H.store),5);case 5:return W=w.yieldResult,M.watchStatus={backgroundPromoRenderer:W},w.return(M)}})};var PV$=new _.g3("ENDPOINT_MAP"),slf=new _.g3("WATCH_ENDPOINT_MAP"),nlk=new _.g3("REEL_ENDPOINT_MAP");var UiM=/^[a-zA-Z0-9_\-]{11}$/;var A30=_.AJ(function(){var H,U;return(U=(H=window).matchMedia)==null?void 0:U.call(H,"(prefers-reduced-motion: reduce)").matches});var NG$=_.AJ(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 H=_.tr("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");H||(H=_.Q9("VIDEO"),_.eC("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
H));return!!(H&&H.canPlayType&&H.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var SAk=XMLHttpRequest.prototype.fetch,p8$=SAk&&SAk.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!BK?!0:!1;var q4=function(H){this.JSC$18291_storeWithEntities=H};
_.R(q4,u8);_.X=q4.prototype;_.X.getApiPaths=function(){return Wmw};
_.X.getExtension=function(H){return _.p(H,_.sH)||_.p(H,_.kO)||_.p(H,jfz)};
_.X.isNavigationCommand=function(){return!0};
_.X.JSC$14485_getStoreKey=function(H){if((_.S("kevlar_cache_on_ttl_player")||_.S("mweb_enable_shorts_innertube_player_prefetch")||_.S("mweb_use_new_history_manager")||_.S("web_shorts_prefetch_service_enabled"))&&(H=this.getExtension(H))&&H.videoId){var U={videoId:H.videoId};H.playlistId&&(U.playlistId=H.playlistId);H.playerParams&&(U.params=H.playerParams);return _.Pg("player",U)}};
_.X.JSC$14478_getClientScreen=function(H){var U;return((U=H.contentPlaybackContext)==null?void 0:U.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.X.JSC$14478_buildRequest=function(H,U,A){if(_.S("enable_interstitial_entity_check")){var M=this.JSC$18291_storeWithEntities;if(U.videoId)for(var W=_.b(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),w=W.next();!w.done;w=W.next()){w=w.value;var d;var O=void 0,f=void 0,J=U.videoId,F=w;(d=M)?(J=_.BO(J+F,"interstitialInteractionStateEntity"),d=(O=(f=_.rH(d.getState().entities,"interstitialInteractionStateEntity",J))==null?void 0:f.primaryButtonClicked)!=null?O:!1):d=!1;if(d)switch(w){case "CONTENT_CHECK_REQUIRED":U.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":U.racyCheckOk=!0}}}U.videoId&&(H.videoId=U.videoId);U.playlistId&&(H.playlistId=U.playlistId);U.index!==void 0&&(H.playlistIndex=U.index+1);U.playerParams&&(H.params=U.playerParams);"startTimeSeconds"in U&&U.startTimeSeconds&&(_.S("enable_player_request_builder_start_time_floor")?H.startTimeSecs=Math.floor(U.startTimeSeconds):H.startTimeSecs=U.startTimeSeconds);A.contentPlaybackContext&&(H.playbackContext={contentPlaybackContext:A.contentPlaybackContext});A.prefetchPlaybackContext&&
(H.playbackContext=Object.assign({},H.playbackContext,{prefetchPlaybackContext:A.prefetchPlaybackContext}),H.context.request||(H.context.request={}),H.context.request.isPrefetch=!0);H.playbackContext||(H.playbackContext={});M=NG$();H.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!M,supportXhr:p8$};A.overrideMutedAtStart&&(H.overrideMutedAtStart=A.overrideMutedAtStart);H.racyCheckOk=!!U.racyCheckOk;H.contentCheckOk=!!U.contentCheckOk;!_.S("captions_prefs_killswitch")&&(A=(A=_.H4("yt-player-caption-language-preferences"))?
A:[],A==null?0:A.length)&&(H.captionParams={viewerSelectedCaptionLangs:A})};
_.X.getRequestConfig=function(H){H=this.JSC$14485_getStoreKey(H);var U;H&&(U={storeStrategy:{storeKey:H}});_.S("web_log_player_watch_next_ticks")&&(U=U||{},U.requestTick="ps_s",U.responseTick="ps_r");return U};
q4[Ga]=[CY];var hu=function(H,U){this.playerRequestBuilder=H;this.watchNextRequestBuilder=U};
_.R(hu,u8);hu.prototype.getApiPaths=function(){return kHm};
hu.prototype.getExtension=function(H){return _.p(H,_.sH)};
hu.prototype.isNavigationCommand=function(){return!0};
hu.prototype.JSC$14478_buildRequest=function(H,U,A){H.playerRequest={};this.playerRequestBuilder.JSC$14478_buildRequest(H.playerRequest,U,A);if(_.S("web_streaming_watch")||_.S("mweb_streaming_watch"))H.watchNextRequest={},this.watchNextRequestBuilder.JSC$14478_buildRequest(H.watchNextRequest,U,A)};
hu[Ga]=[q4,lT];var LPj;_.k9=new _.g3("SHORTS_CONTROLLER_TOKEN");LPj=new _.g3("SHORTS_STATE_STORE_TOKEN");var vs=function(H,U){var A=_.QY.apply(2,arguments);H=H===void 0?0:H;_.bD.call(this,U,A);this.errorType=H;Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(vs,_.bD);var RF5,ElB,muY,X_V,Kx,s_K,xuX,aD7,yD8,tlk,CVj;RF5=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(H){return H+"="}).join("|"));
ElB=RegExp(".*\\?.*playnext=1.*");muY=function(H,U,A,M,W,w){this.watchEndpointMap=H;this.reelWatchEndpointMap=U;this.innerTubeTransportService=A;this.fetchPbj=M;this.ephemeralStore=W;this.reloadOnPlayerFailure=w===void 0?!0:w};
_.glh=function(H,U){var A=_.hr("web_pbj_log_warning_rate",0);A=A>0&&Math.random()<A;var M;if((M=_.p(U.commandMetadata,_.Y2))==null||!M.rootVe)return A&&_.Na(Error("hj")),!1;var W;M=(W=_.p(U.commandMetadata,_.Y2))==null?void 0:W.url;if(!M)return A&&_.Na(Error("ij")),!1;if(ElB.test(M))return!0;if(RF5.test(M))return A&&_.Na(Error("jj`"+M)),!1;if(_.p(U,_.sH)){if(!(H.watchEndpointMap.watchNext&&H.watchEndpointMap.player||_.S("kevlar_fetch_initial_data_op_watch_client")))return A&&_.Na(Error("dj")),!1;
H=_.hr("web_pbj_log_warning_rate",0);H=H>0&&Math.random()<H;_.p(U,_.sH)?VT_(U)?U=!0:(H&&_.Na(Error("ej")),U=!1):(H&&_.Na(Error("dj")),U=!1);return U}if(_.p(U,_.kO))return H2K(U);if(_.p(U,_.O7))return!0;H=_.fy(H.innerTubeTransportService,U);!H&&A&&_.sD(Error("kj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(U)});return H};
X_V=function(H,U,A,M,W,w){U={url:U};if(A==null?0:A.itct)U.parentTrackingParams=A.itct;var d=_.RE(fGw);return _.oz(H.innerTubeTransportService,U,d).then(function(O){(O=O.endpoint)||(O=_.jR);(A==null?0:A.itct)&&O&&!O.trackingParams&&(O.trackingParams=A.itct);var f=qh(O);return Kx(H,O,A,M,f,W,w)})};
Kx=function(H,U,A,M,W,w,d,O){O=O===void 0?{}:O;if(H.fetchPbj&&!_.glh(H,U)&&!_.S("force_one_platform")){var f=H.fetchPbj(U),J=_.DH(f.then(function(h){if(!h)throw Error("lj");d(J)||w(U,h);return h}));
return J}var F,P,n={rootVe:(F=_.p(U.commandMetadata,_.Y2))==null?void 0:F.rootVe,url:(P=_.p(U.commandMetadata,_.Y2))==null?void 0:P.url,endpoint:U,page:W};if(_.p(U,_.sH)){var N,L={contentPlaybackContext:_.cl(A,(N=_.p(U.commandMetadata,_.Y2))==null?void 0:N.url,M)},m=_.oL(),z,c=(z=H.watchEndpointMap.player)==null?void 0:z().JSC$14485_getStoreKey(U);z=c!==void 0&&((f=H.ephemeralStore)==null?void 0:f.has(c));(_.S("web_streaming_watch")||_.S("mweb_streaming_watch"))&&window.TextDecoderStream&&!z?(f=YVw(H.innerTubeTransportService,
U,L,function(h){!n.response&&h.content&&(n.response=h.content);!n.playerResponse&&h.player&&(n.playerResponse=h.player);w(U,n)}),c=Eg8(U),c.length&&(n.preconnect=c,w(U,n)),aD7(f,m,n).catch(function(h){h instanceof vs&&h.errorType===2&&_.S("web_streaming_watch_fallback")&&xuX(H,U,L,n,w,d,m)})):xuX(H,U,L,n,w,d,m);
return m.promise}if(_.p(U,_.kO)){var C;if(((C=_.p(U,_.kO))==null?void 0:C.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var v=_.oL();_.zFB(_.lx().resolve(_.k9),U).then(function(h){CVj(H,A,M,W,w,v,h)});
return v.promise}f=_.DH();z={contentPlaybackContext:_.cl(A,(c=_.p(U.commandMetadata,_.Y2))==null?void 0:c.url,M)};(c=H.reelWatchEndpointMap.player)&&(c=c().JSC$14478_getRequest(U,z))&&(f=_.oz(H.innerTubeTransportService,c.innerTubeRequest,c.input,U.clickTrackingParams,c.config));c=_.DH();(O=H.reelWatchEndpointMap.reelItemWatch)&&(O=O().JSC$14478_getRequest(U))&&(c=_.oz(H.innerTubeTransportService,O.innerTubeRequest,O.input,U.clickTrackingParams,O.config));O=_.DH();(F=H.reelWatchEndpointMap.reelWatchSequence)&&
_.p(U,_.kO).sequenceParams&&(z=F().JSC$14478_getRequest(U,z))&&(O=_.oz(H.innerTubeTransportService,z.innerTubeRequest,z.input,U.clickTrackingParams,z.config));z=_.DH(n);F=_.oL();tlk(U,z,f,c,O,w,d,F);return F.promise}var Y;if(_.p(U,ehr)&&((Y=_.p(U.commandMetadata,_.Y2))==null?0:Y.url))return f=$L_(_.yX(uV().location.href),_.yX(_.p(U.commandMetadata,_.Y2).url)).toString(),X_V(H,f,A,M,w,function(){return!1});
if(_.p(U,_.O7))return w(U,n),_.DH(n);if(_.fy(H.innerTubeTransportService,U)){f=Object.assign({},{tempData:A,disableCache:A.disableCache},O);var D=_.Js(H.innerTubeTransportService,U,f).then(function(h){n.response=h;d(D)||w(U,n);return n});
return D}return _.DH(n)};
_.cD$=function(H,U,A,M){if(_.p(U,_.sH)||_.p(U,_.kO)&&(_.S("mweb_enable_shorts_innertube_player_prefetch")||_.S("kevlar_enable_shorts_prefetch_in_sequence"))||_.p(U,jfz)&&_.S("web_enable_prefetching_videos_on_home")){var W,w={contentPlaybackContext:_.cl(A,(W=_.p(U.commandMetadata,_.Y2))==null?void 0:W.url,M),prefetchPlaybackContext:WNN(A)},d,O,f;if(((d=_.p(U,_.sH))==null?void 0:(O=d.watchEndpointSupportedPrefetchConfig)==null?void 0:(f=O.prefetchHintConfig)==null?void 0:f.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(A=
H.watchEndpointMap.watchNext)if(w=A().JSC$14478_getRequest(U,w))return Promise.resolve(_.oz(H.innerTubeTransportService,w.innerTubeRequest,w.input,void 0,w.config).then(function(P){return P}))}else if(A=H.watchEndpointMap.player)if(w=A().JSC$14478_getRequest(U,w))return Promise.resolve(_.oz(H.innerTubeTransportService,w.innerTubeRequest,w.input,void 0,w.config).then(function(P){return P}))}else if(_.fy(H.innerTubeTransportService,U)){var J={tempData:A},F=r5n(H.innerTubeTransportService,U);
return F?new Promise(function(P,n){var N,L;return _.u(function(m){if(m.nextAddress==1)return m.yield(F,2);if(m.nextAddress!=4)return N=m.yieldResult,N.JSC$14485_getStoreKey(U,J)?m.yield(_.Js(H.innerTubeTransportService,U,J),4):(n(new _.bD("Prefetching request builder with no store key.",U)),m.jumpTo(0));L=m.yieldResult;P(L);_.DO(m)})}):Promise.reject(new _.bD("Prefetching unregistered request builder.",U))}return Promise.reject(new _.bD("No request builder available to prefetch endpoint.",U))};
s_K=function(H,U){var A,M,W;if(_.p(U,_.sH)){var w=H.watchEndpointMap.watchNext;w&&(A=w());(H=H.watchEndpointMap.player)&&(M=H())}else if(_.p(U,_.kO))(w=H.reelWatchEndpointMap.reelItemWatch)&&(A=w()),(w=H.reelWatchEndpointMap.player)&&(M=w()),(H=H.reelWatchEndpointMap.reelWatchSequence)&&(W=H());else{a:{H=Kpt(U,H.innerTubeTransportService.endpointMap);if(H!==void 0)if(typeof H.then==="function")_.sD(new _.bD("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",U));else break a;
H=void 0}H&&(A=H)}var d,O,f;return{content:(d=A)==null?void 0:d.JSC$14485_getStoreKey(U),player:(O=M)==null?void 0:O.JSC$14485_getStoreKey(U),reelSequence:(f=W)==null?void 0:f.JSC$14485_getStoreKey(U)}};
xuX=function(H,U,A,M,W,w,d){var O=_.DH(),f=H.watchEndpointMap.player;_.S("web_streaming_player")&&(f=bZ(hu));f&&(f=f().JSC$14478_getRequest(U,A))&&(O=_.oz(H.innerTubeTransportService,f.innerTubeRequest,f.input,U.clickTrackingParams,f.config));f=_.DH();var J=H.watchEndpointMap.watchNext;J&&(A=J().JSC$14478_getRequest(U,A))&&(f=_.oz(H.innerTubeTransportService,A.innerTubeRequest,A.input,U.clickTrackingParams,A.config));M=_.DH(M);yD8(H,U,M,O,f,W,w,d)};
aD7=function(H,U,A){var M;return _.u(function(W){if(W.nextAddress==1)return W.yield(H,2);_.S("web_streaming_watch_delay_200")||_.S("web_streaming_watch_delay_400")?(M=_.S("web_streaming_watch_delay_200")?200:400,setTimeout(function(){U.resolve(A)},M)):U.resolve(A);
_.DO(W)})};
yD8=function(H,U,A,M,W,w,d,O){var f,J,F,P,n;_.u(function(N){switch(N.nextAddress){case 1:return N.yield(A,2);case 2:f=N.yieldResult;if(d(O.promise))return O.resolve(f),N.return();w(U,f);J=Eg8(U);if(!J.length){N.jumpTo(3);break}return N.yield(A,4);case 4:f.preconnect=J,w(U,f);case 3:return _.zj(N,5),N.yield(M,7);case 7:F=N.yieldResult;_.xD(N,6);break;case 5:return P=_.eG(N),O.reject(P),N.return();case 6:if(F===void 0&&H.reloadOnPlayerFailure)return f.reload=!0,w(U,f),O.resolve(f),N.return();if(d(O.promise))return O.resolve(f),
N.return();f.playerResponse=F;w(U,f);(_.S("web_watch_stop_scheduler_on_player_response")||_.S("mweb_watch_stop_scheduler_on_player_response"))&&VbB();_.zj(N,8);return N.yield(W,10);case 10:n=N.yieldResult;_.xD(N,9);break;case 8:_.eG(N);case 9:if(n===void 0)return f.response={responseContext:{}},O.resolve(f),N.return();if(d(O.promise))return O.resolve(f),N.return();f.response=n;w(U,f);O.resolve(f);_.DO(N)}})};
tlk=function(H,U,A,M,W,w,d,O){var f,J,F,P,n,N;_.u(function(L){switch(L.nextAddress){case 1:return L.yield(U,2);case 2:f=L.yieldResult;if(d(O.promise))return O.resolve(f),L.return();w(H,f);J=Eg8(H);if(!J.length){L.jumpTo(3);break}return L.yield(U,4);case 4:f.preconnect=J,w(H,f);case 3:return _.zj(L,5),L.yield(A,7);case 7:F=L.yieldResult;_.xD(L,6);break;case 5:return P=_.eG(L),O.reject(P),L.return();case 6:if(F===void 0)return f.reload=!0,w(H,f),O.resolve(f),L.return();if(d(O.promise))return O.resolve(f),
L.return();f.playerResponse=F;w(H,f);(_.S("web_shorts_stop_scheduler_on_player_response")||_.S("mweb_shorts_stop_scheduler_on_player_response"))&&VbB();_.zj(L,8);return L.yield(M,10);case 10:n=L.yieldResult;_.xD(L,9);break;case 8:_.eG(L);case 9:if(n===void 0)return f.response={responseContext:{}},O.resolve(f),L.return();if(d(O.promise))return O.resolve(f),L.return();f.response=n;w(H,f);_.zj(L,11);return L.yield(W,13);case 13:N=L.yieldResult;_.xD(L,12);break;case 11:_.eG(L);case 12:if(d(O.promise))return O.resolve(f),
L.return();N&&(f.reelWatchSequenceResponse=N);w(H,f);O.resolve(f);_.DO(L)}})};
CVj=function(H,U,A,M,W,w,d){var O,f,J,F,P,n;_.u(function(N){if((O=d)==null||!O.replacementEndpoint)return w.reject(),N.return();f=d.replacementEndpoint;(J=_.p(f,_.kO))?(d.sequenceContinuation&&(J.sequenceParams=d.sequenceContinuation),F=_.lx().resolve(_.k9),P=J.sequenceParams,BG5(F,f)&&delete J.sequenceParams,n=Kx(H,f,U,A,M,W,function(){return!1}),n.then(function(L){return _.u(function(m){if(m.nextAddress==1)return rDj(F,{reelWatchEndpoint:{sequenceParams:P}},L),m.yield(0,2);
w.resolve(L);_.DO(m)})})):w.reject();
_.DO(N)})};
muY[Ga]=[slf,nlk,_.IE,_.$V(tPw),_.$V(_.Da)];var eF7=function(){var H=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return H.sequenceMap}}},qVr=function(H,U,A){var M,W=(M=U.config)==null?void 0:M.sequenceStrategy;
if(!W)return A();H.sequenceMap.has(W.sequenceKey)||H.sequenceMap.set(W.sequenceKey,[]);H=H.sequenceMap.get(W.sequenceKey);switch(W.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return Duh(H,U,A);case "REQUEST_SEQUENCE_TYPE_REPLACE":return $uh(H,U,A);default:throw new _.bD("Request could not be sequenced",U);}},Duh=function(H,U,A){var M,W,w;
return _.u(function(d){H.length>0?(W=H[H.length-1],M=W.responsePromise.then(function(){return A()})):M=A();
w={request:U,responsePromise:M};H.push(w);lDm(H,w);return d.return(w.responsePromise)})},$uh=function(H,U,A){A=A();
if(H.length>0)for(var M=_.b(H),W=M.next();!W.done;W=M.next())W.value.responsePromise=A;var w={request:U,responsePromise:A};H.push(w);lDm(H,w);return Promise.resolve().then(function(){return H.indexOf(w)>0?w.responsePromise.then(function(d){return Object.assign({},d,{sequenceMetaData:{skipProcessing:!0}})}):w.responsePromise})},lDm=function(H,U){U.responsePromise.then(function(){var A=H.indexOf(U);
A>-1&&H.splice(A,1)})};var Gg5=new _.g3("REQUEST_SEQUENCING");var Tp=function(){};
_.R(Tp,u8);Tp.prototype.getApiPaths=function(){return[]};
Tp.prototype.getExtension=function(H){return _.p(H,gnr)};
Tp.prototype.JSC$14478_buildRequest=function(H,U){H.recaptchaToken=U.recaptchaToken};
Tp.prototype.getApiUrl=function(){return"/das_captcha"};var jO=function(){};
_.R(jO,u8);jO.prototype.getApiPaths=function(){return fCz};
jO.prototype.getExtension=function(H){return _.p(H,i3r)};
jO.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;U.createBackstagePostParams&&(H.createBackstagePostParams=U.createBackstagePostParams);A.comment_text&&(H.commentText=A.comment_text);if(A.attached_video_id)H.videoAttachment={videoId:A.attached_video_id};else if(A.image_poll_options)H.pollAttachmentData={options:A.image_poll_options};else if(A.poll_options)H.pollAttachment={choices:A.poll_options};else if(A.quiz_options)H.quizAttachmentData={options:A.quiz_options};else if(A.image_blob_id)H.imageAttachment=
{encryptedBlobId:A.image_blob_id},A.source_video_id&&(H.imageAttachment.sourceExternalVideoId=A.source_video_id),A.image_preview_coordinates&&(H.imageAttachment.previewCoordinates=JSON.parse(A.image_preview_coordinates));else if(A.images_data)H.imagesAttachment={imagesData:A.images_data};else if(A.clip_external_video_id!==void 0||A.clip_offset_ms!==void 0||A.clip_duration_ms!==void 0){var M,W,w,d,O;H.clipAttachment={externalVideoId:(w=A.clip_external_video_id)!=null?w:"",offsetMs:(d=(M=A.clip_offset_ms)==
null?void 0:M.toString())!=null?d:"",durationMs:(O=(W=A.clip_duration_ms)==null?void 0:W.toString())!=null?O:""}}else A.shared_post_id&&(H.sharedPostAttachment={postId:A.shared_post_id});A.tagged_video_id&&(H.postCreationData={taggedVideoId:A.tagged_video_id});A.access_restrictions&&(typeof A.access_restrictions==="number"&&(U=A.access_restrictions,H.accessRestrictions={restriction:U!==1&&U===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof A.access_restrictions==="string"&&
(H.accessRestrictionsParams=A.access_restrictions));A.scheduled_publish_time_sec&&(H.scheduledPublishTimeSec=A.scheduled_publish_time_sec.toString())};var IP=function(){};
_.R(IP,u8);IP.prototype.getApiPaths=function(){return nxp};
IP.prototype.getExtension=function(H){return _.p(H,iam)};
IP.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;U.decorateMessageParams&&(H.params=U.decorateMessageParams);A.text&&(H.text=A.text)};var Ql=function(){};
_.R(Ql,u8);Ql.prototype.getApiPaths=function(){return $k2};
Ql.prototype.getExtension=function(H){return _.p(H,b3g)};
Ql.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;A.video_id&&(H.videoId=A.video_id)};var Vl=function(){};
_.R(Vl,u8);Vl.prototype.getApiPaths=function(){return hh2};
Vl.prototype.getExtension=function(H){return _.p(H,_.GR)};
Vl.prototype.JSC$14478_buildRequest=function(H,U,A){A.suggestions_query&&(H.input=A.suggestions_query)};var H2=function(){};
_.R(H2,u8);H2.prototype.getApiPaths=function(){return RqK};
H2.prototype.getExtension=function(H){return _.p(H,dAB)};
H2.prototype.JSC$14478_buildRequest=function(H,U,A){A.comment_text!==void 0&&(H.commentText=A.comment_text);A.scheduled_publish_time_sec&&(H.scheduledPublishTimeSec=A.scheduled_publish_time_sec.toString());H.updateBackstagePostParams=U.updateBackstagePostParams};var UT=function(){};
_.R(UT,u8);UT.prototype.getApiPaths=function(){return SV};
UT.prototype.getExtension=function(H){return _.p(H,_.XA)};
UT.prototype.JSC$14478_buildRequest=function(H,U,A){A.formData&&(H.formData=A.formData);U.token?H.continuation=U.token:U.continuationTokenKey&&(A=_.Lq().getState(),U=_.rH(A.entities,"continuationTokenEntity",U.continuationTokenKey))&&(H.continuation=String(U.continuationToken))};
var YAk=function(){};
_.R(YAk,u8);_.X=YAk.prototype;_.X.getApiPaths=function(){return SV};
_.X.getExtension=function(H){return _.p(H,_.Gv)};
_.X.isNavigationCommand=function(){return!0};
_.X.JSC$14485_getStoreKey=function(H){if((H=this.getExtension(H))&&H.browseId){var U={browseId:H.browseId};H.browseEndpointContextSupportedConfigs&&(U.browseEndpointContextSupportedConfigs=JSON.stringify(H.browseEndpointContextSupportedConfigs));H.params&&(U.params=H.params);H.query&&(U.query=H.query);return _.Pg("browse",U)}};
_.X.JSC$14478_buildRequest=function(H,U,A){U.browseId&&(H.browseId=U.browseId);U.params&&(H.params=U.params);U.query&&(H.query=U.query);A.formData?H.formData=A.formData:U.formData&&(H.formData=U.formData);U.browseId==="FEsubscriptions"&&_.TR().getFlag(155)&&(H.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");U.browseId==="SPaccount_playback"&&(A=_.TR(),H.formData||(H.formData={}),H.formData.accountSettingsFormData={flagCaptionsDefaultOff:A.getFlag(65),flagAutoCaptionsDefaultOn:A.getFlag(66),
flagDisableInlinePreview:A.getFlag(186),flagAudioDescriptionDefaultOn:A.getFlag(198)});if(U.browseId==="FEwhat_to_watch"){A=_.TR();var M=A.getFlag(196);A.getFlag(197)&&(H.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:M}}})}U.browseId==="FEwhat_to_watch"&&(U=_.TR().getFlag(186),H.inlineSettingStatus=U?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.X.getRequestConfig=function(H,U){U=U===void 0?{}:U;var A={};if(H=this.JSC$14485_getStoreKey(H,U))A.storeStrategy={storeKey:H,disableCache:U.disableCache};_.S("web_log_browse_ticks_ks")||(A.requestTick="br_s",A.responseTick="br_r");return A};var Ai=function(){};
_.R(Ai,u8);Ai.prototype.getApiPaths=function(){return iQK};
Ai.prototype.getExtension=function(H){return _.p(H,DyH)};
Ai.prototype.JSC$14478_buildRequest=function(H,U,A){H.legacyYoutubeChannelUsername=A.legacyYouTubeChannelUsername||"";H.legacyYoutubeChannelPassword=A.legacyYouTubeChannelPassword||""};var MQ=function(){};
_.R(MQ,u8);MQ.prototype.getApiPaths=function(){return JKh};
MQ.prototype.getExtension=function(H){return _.p(H,FMz)};
MQ.prototype.JSC$14478_buildRequest=function(H,U,A){A.recaptcha_response_token&&(H.recaptchaResponseToken=A.recaptcha_response_token);A.channel_id&&(H.channelId=A.channel_id)};var W2=function(){};
_.R(W2,u8);W2.prototype.getApiPaths=function(){return Eop};
W2.prototype.getExtension=function(H){return _.p(H,pRk)};
W2.prototype.JSC$14478_buildRequest=function(H,U,A){U.externalChannelId&&(H.externalChannelId=U.externalChannelId);A.handle&&(H.handleUpdate={handle:A.handle},U.handleEditSource&&(H.handleUpdate.handleEditSource=U.handleEditSource))};var wl=function(){};
_.R(wl,u8);wl.prototype.getApiPaths=function(){return xLk};
wl.prototype.getExtension=function(H){return _.p(H,kIk)};
wl.prototype.JSC$14478_buildRequest=function(H,U,A){U.request&&(H.channelId=U.request.channelId);var M;if(A==null?0:(M=A.uploadDefaults)==null?0:M.emojiReactionSet)H.uploadDefaultsRequest||(H.uploadDefaultsRequest={}),H.uploadDefaultsRequest.emojiReactionSet=A.uploadDefaults.emojiReactionSet};var X0=function(){};
_.R(X0,u8);X0.prototype.getApiPaths=function(){return tiw};
X0.prototype.getExtension=function(H){return _.p(H,P6w)};
X0.prototype.JSC$14478_buildRequest=function(H,U,A){U.externalChannelId&&(H.externalChannelId=U.externalChannelId);U.channelHandleEntityKey&&(H.channelHandleEntityKey=U.channelHandleEntityKey);U.handleEditSource&&(H.handleEditSource=U.handleEditSource);A.handle?H.handle=A.handle:A.name&&(H.name=A.name)};var ic=function(){};
_.R(ic,u8);ic.prototype.getApiPaths=function(){return OQy};
ic.prototype.getExtension=function(H){return _.p(H,GO2)};
ic.prototype.JSC$14478_buildRequest=function(H,U){U.actions?H.actions=U.actions:U.action&&(H.actions=[U.action])};var bc=function(){};
_.R(bc,u8);bc.prototype.getApiPaths=function(){return uu2};
bc.prototype.getExtension=function(H){return _.p(H,_.XA)};
bc.prototype.JSC$14478_buildRequest=function(H,U){U.token&&(H.continuation=U.token)};var dl=function(){};
_.R(dl,u8);dl.prototype.getApiPaths=function(){return ehp};
dl.prototype.getExtension=function(H){return _.p(H,_.XA)};
dl.prototype.JSC$14478_buildRequest=function(H,U){H.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";U.token&&(H.fetchCommentsParams={continuation:U.token})};var OT=function(){};
_.R(OT,u8);OT.prototype.getApiPaths=function(){return oxB};
OT.prototype.getExtension=function(H){return _.p(H,l_r)};
OT.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;U.createReplyParams&&(H.createReplyParams=U.createReplyParams);U.commentText&&(H.commentText=_.Sp(U.commentText));A.comment_text&&(H.commentText=A.comment_text);A.image_blob_id&&(H.imageAttachment={encryptedBlobId:A.image_blob_id});A.botguard_response&&(H.botguardResponse=A.botguard_response)};
_.D5.Object.defineProperties(OT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var uc=function(){};
_.R(uc,u8);uc.prototype.getApiPaths=function(){return Fhp};
uc.prototype.getExtension=function(H){return _.p(H,_.$Ig)};
uc.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;U.createCommentParams&&(H.createCommentParams=U.createCommentParams);U.commentText&&(H.commentText=_.Sp(U.commentText));U.videoPositionMention&&(H.videoPositionMention=U.videoPositionMention);U.sources&&(H.sources=U.sources);A.comment_text&&(H.commentText=A.comment_text);A.attached_video_id?H.videoAttachment={videoId:A.attached_video_id}:A.poll_options?H.pollAttachment={choices:A.poll_options}:A.image_blob_id?H.imageAttachment=
{encryptedBlobId:A.image_blob_id}:A.shared_post_id&&(H.sharedPostAttachment={postId:A.shared_post_id});A.access_restrictions&&typeof A.access_restrictions==="number"&&(U=A.access_restrictions,H.accessRestrictions={restriction:U!==1&&U===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});A.botguard_response&&(H.botguardResponse=A.botguard_response)};
_.D5.Object.defineProperties(uc.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Zv=function(){};
_.R(Zv,u8);Zv.prototype.getApiPaths=function(){return mLK};
Zv.prototype.getExtension=function(H){return _.p(H,q8y)};
Zv.prototype.JSC$14478_buildRequest=function(H,U,A){U.commentText&&(H.replyText=_.Sp(U.commentText));A.comment_text&&(H.replyText=A.comment_text);H.updateReplyParams=U.updateReplyParams};
_.D5.Object.defineProperties(Zv.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fr=function(){};
_.R(fr,u8);fr.prototype.getApiPaths=function(){return goB};
fr.prototype.getExtension=function(H){return _.p(H,Y8K)};
fr.prototype.JSC$14478_buildRequest=function(H,U,A){U.commentText&&(H.commentText=_.Sp(U.commentText));A.comment_text&&(H.commentText=A.comment_text);H.updateCommentParams=U.updateCommentParams};
_.D5.Object.defineProperties(fr.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ji=function(){};
_.R(Ji,u8);Ji.prototype.getApiPaths=function(){return aG3};
Ji.prototype.getExtension=function(H){return _.p(H,GIy)};
Ji.prototype.JSC$14478_buildRequest=function(H,U){U.settings&&(H.settings=U.settings)};var Kr=function(){};
_.R(Kr,u8);Kr.prototype.getApiPaths=function(){return zhH};
Kr.prototype.getExtension=function(H){return _.p(H,saH)};
Kr.prototype.JSC$14478_buildRequest=function(H,U){U.channelCreationToken&&(H.channelCreationToken=U.channelCreationToken);U.source&&(H.source=U.source)};var oO=function(){};
_.R(oO,u8);oO.prototype.getApiPaths=function(){return KhK};
oO.prototype.getExtension=function(H){return _.p(H,S92)};
oO.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;if(A.name&&(A.given_name||A.family_name))H=new _.bD("channel creation cannot set both GAIA and YouTube names",U),_.sD(H);else{if(U.zeroStepChannelCreationParams){if(!A.comment_text){H=new _.bD("zero_step_create_comment_params but no zero_step_texts",U);_.sD(H);return}H.zeroStepChannelCreationParams=U.zeroStepChannelCreationParams;H.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(H.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
A.comment_text,A.botguard_response&&(H.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=A.botguard_response))}H.channelCreationToken=U.channelCreationToken;A.given_name&&(H.givenName=A.given_name);A.family_name&&(H.familyName=A.family_name);U.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(H.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(A.name||A.handle||A.avatar_url||A.encryptedBlobId||A.isNameChanged!==void 0||A.isHandleChanged!==void 0||A.isDefaultProfilePhoto!==
void 0||A.obakeImageSource)H.overrideChannelCreationParams={},A.name&&(H.overrideChannelCreationParams.name=A.name),A.handle&&(H.overrideChannelCreationParams.handle=A.handle),A.avatar_url&&(H.overrideChannelCreationParams.avatarUrl=A.avatar_url),A.encryptedBlobId&&(H.overrideChannelCreationParams.blobEncryptionId=A.encryptedBlobId),A.enableIdentityForAllChannelCreationDialog&&(A.encryptedBlobId?H.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
A.isDefaultProfilePhoto!==void 0&&(H.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=A.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),A.isNameChanged!==void 0&&(H.overrideChannelCreationParams.identityForAllChannelCreationNameTag=A.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),A.isHandleChanged!==
void 0&&(H.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=A.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),A.obakeImageSource&&(H.overrideChannelCreationParams.obakeImageSourceType=A.obakeImageSource))}};var F0=function(){};
_.R(F0,u8);F0.prototype.getApiPaths=function(H){return(H=this.getExtension(H))&&H.status==="DISLIKE"?Lhk:H&&H.status==="INDIFFERENT"?dLH:ICB};
F0.prototype.getExtension=function(H){return _.p(H,_.AA)};
F0.prototype.JSC$14478_buildRequest=function(H,U){U.target&&(H.target=U.target);if(U=this.getParams(U))H.params=U};
F0.prototype.getParams=function(H){switch(H==null?void 0:H.status){case "DISLIKE":return H.dislikeParams;case "INDIFFERENT":return H.removeLikeParams;default:return H==null?void 0:H.likeParams}};var P2=function(){};
_.R(P2,u8);P2.prototype.getApiPaths=function(){return sZn};
P2.prototype.getExtension=function(H){return _.p(H,I_z)};
P2.prototype.JSC$14478_buildRequest=function(H,U){U.settingItemId&&(H.settingItemId=U.settingItemId);U.stringValue!=null&&U.stringValue!==void 0?H.newValue={stringValue:U.stringValue}:U.intValue?H.newValue={intValue:U.intValue}:U.boolValue!==null&&U.boolValue!==void 0?H.newValue={boolValue:U.boolValue}:(H=new _.bD("Unknown value type for SetSettingEndpoint.",U),_.sD(H))};var sT=function(){};
_.R(sT,u8);sT.prototype.getApiPaths=function(){return Ssr};
sT.prototype.getExtension=function(H){return _.p(H,J1r)||void 0};
sT.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;U.channelIds&&(H.channelIds=U.channelIds);U.siloName&&(H.siloName=U.siloName);U.params&&(H.params=U.params);A.botguardResponse&&(H.botguardResponse=A.botguardResponse);A.feature&&(H.clientFeature=A.feature)};
_.D5.Object.defineProperties(sT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nr=function(){};
_.R(nr,u8);nr.prototype.getApiPaths=function(){return Lmg};
nr.prototype.getExtension=function(H){return _.p(H,QJz)||void 0};
nr.prototype.JSC$14478_buildRequest=function(H,U){U.channelIds&&(H.channelIds=U.channelIds);U.siloName&&(H.siloName=U.siloName);U.params&&(H.params=U.params)};
_.D5.Object.defineProperties(nr.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var NQ=function(H){this.shareClientParamsProvider=H};
_.R(NQ,u8);NQ.prototype.getApiPaths=function(){return QBK};
NQ.prototype.getExtension=function(H){return _.p(H,pbg)||_.p(H,_.Lgz)||_.p(H,SYz)};
NQ.prototype.JSC$14478_buildRequest=function(H,U){U.serializedShareEntity&&(H.serializedSharedEntity=U.serializedShareEntity);if(U.clientParamIdentifier){var A;if((A=this.shareClientParamsProvider)==null?0:A.clientParams.has(U.clientParamIdentifier)){A=this.shareClientParamsProvider;U=U.clientParamIdentifier;var M=A.clientParams.get(U);M&&A.clientParams.delete(U);H.clientParams=M}}};
NQ[Ga]=[o5$];var SE=function(){};
_.R(SE,u8);SE.prototype.getApiPaths=function(){return Whr};
SE.prototype.getExtension=function(H){return _.p(H,T$2)};
SE.prototype.JSC$14478_buildRequest=function(H,U){U.params&&(H.params=U.params)};var pr=function(){};
_.R(pr,u8);pr.prototype.getApiPaths=function(){return Rhg};
pr.prototype.getExtension=function(H){return _.p(H,kFz)};
pr.prototype.JSC$14478_buildRequest=function(H,U){U.dismissal&&(H.items=[U.dismissal])};
_.D5.Object.defineProperties(pr.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Lr=function(){};
_.R(Lr,u8);Lr.prototype.getApiPaths=function(){return ToH};
Lr.prototype.getExtension=function(H){return _.p(H,_.i$)||void 0};
Lr.prototype.JSC$14478_buildRequest=function(H,U,A){H.feedbackTokens=[];U.feedbackToken&&H.feedbackTokens.push(U.feedbackToken);if(U=U.cpn||A.cpn)H.feedbackContext={cpn:U};H.isFeedbackTokenUnencrypted=!!A.is_feedback_token_unencrypted;H.shouldMerge=!1;A.extra_feedback_tokens&&(H.shouldMerge=!0,H.feedbackTokens=H.feedbackTokens.concat(A.extra_feedback_tokens))};
_.D5.Object.defineProperties(Lr.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var RO=function(){};
_.R(RO,u8);RO.prototype.getApiPaths=function(){return ToH};
RO.prototype.getExtension=function(H){return _.p(H,_.GR)};
RO.prototype.JSC$14478_buildRequest=function(H,U,A){A.feedback_tokens&&(H.feedbackTokens=A.feedback_tokens,H.shouldMerge=!0)};
_.D5.Object.defineProperties(RO.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ET=function(){};
_.R(ET,u8);ET.prototype.getApiPaths=function(){return ToH};
ET.prototype.getExtension=function(H){return _.p(H,KZM)};
ET.prototype.JSC$14478_buildRequest=function(H,U){U.undoToken&&(H.feedbackTokens=[U.undoToken]);U.isUndoTokenUnencrypted&&(H.isFeedbackTokenUnencrypted=U.isUndoTokenUnencrypted)};
_.D5.Object.defineProperties(ET.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mt=function(){};
_.R(mt,u8);mt.prototype.getApiPaths=function(){return cKg};
mt.prototype.getExtension=function(H){return _.p(H,Ygh)};
mt.prototype.JSC$14478_buildRequest=function(H,U){U.nextEndpoint&&_.p(U.nextEndpoint,_.gu)?H.nextEndpoint={urlEndpoint:_.p(U.nextEndpoint,_.gu)}:U.nextEndpoint&&_.p(U.nextEndpoint,_.sH)&&(H.nextEndpoint={watchEndpoint:_.p(U.nextEndpoint,_.sH)});U.setRacy&&(H.setRacy=U.setRacy);U.setControvercy&&(H.setControvercy=U.setControvercy)};var ya=function(H){this.JSC$18493_storeWithEntities=H};
_.R(ya,u8);ya.prototype.getApiPaths=function(){return mkB};
ya.prototype.getExtension=function(H){return _.p(H,okK)};
ya.prototype.JSC$14478_buildRequest=function(H,U){U.flowId&&(H.flowId=U.flowId);U.targetId&&(H.targetId=U.targetId);U.continuation&&(H.continuation=U.continuation);var A=U.flowStateEntityKey;if(U.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&A&&this.JSC$18493_storeWithEntities){var M;if(U=(M=this.JSC$18493_storeWithEntities.getState())==null?void 0:M.entities)if(M=_.tw(A).entityType,M=_.rH(U,M,A))H.flowState=M,H.flowStateEntityKey=A}};
_.D5.Object.defineProperties(ya.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
ya[Ga]=[CY];var qA8=function(){};
_.R(qA8,u8);_.X=qA8.prototype;_.X.getApiPaths=function(){return vxn};
_.X.JSC$14485_getStoreKey=function(){return _.Pg("guide")};
_.X.getRequestConfig=function(){var H=this.JSC$14485_getStoreKey(),U;H&&(U={storeStrategy:{storeKey:H}});return U};
_.X.isNavigationCommand=function(){return!0};
_.X.getExtension=function(H){return _.p(H,_.GR)};
_.X.JSC$14478_buildRequest=function(H){H.fetchLiveState=!0};var B2=function(){};
_.R(B2,u8);B2.prototype.getApiPaths=function(){return bQp};
B2.prototype.getExtension=function(H){return _.p(H,rbp)};
B2.prototype.JSC$14478_buildRequest=function(){};var rl=function(){};
_.R(rl,u8);rl.prototype.getApiPaths=function(){return dkk};
rl.prototype.getExtension=function(H){return _.p(H,exn)};
rl.prototype.JSC$14478_buildRequest=function(){};var eE=function(){};
_.R(eE,u8);eE.prototype.getApiPaths=function(){return M8z};
eE.prototype.getExtension=function(H){return _.p(H,_.XA)};
eE.prototype.JSC$14478_buildRequest=function(H,U){U.token&&(H.continuation=U.token);var A,M;H==null||(A=H.context)==null||(M=A.user)==null||delete M.onBehalfOfUser};
eE.prototype.getRequestConfig=function(H){var U={},A;if(((A=this.getExtension(H))==null?void 0:A.sessionIndex)!==void 0){var M;U={authStrategy:{sessionIndex:(M=this.getExtension(H))==null?void 0:M.sessionIndex}}}return U};var Dv=function(){};
_.R(Dv,u8);Dv.prototype.JSC$14478_getRequest=function(H){var U=this.getExtension(H),A=H="";if(U==null?0:U.popup)H="true";if(U==null?0:U.disableSignout)A="true";U={};return{input:"/getAccountSwitcherEndpoint",requestShell:FK("/getAccountSwitcherEndpoint","GET",(U["X-YouTube-Delegation-Context"]=_.gD("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),U["X-YouTube-Account-Switcher-Popup"]=H,U["X-YouTube-Account-Switcher-Disable-Signout"]=A,U)),innerTubeRequest:{}}};
Dv.prototype.getApiPaths=function(){return[]};
Dv.prototype.getExtension=function(H){return _.p(H,_.geE)};
Dv.prototype.JSC$14478_buildRequest=function(){};var $z=function(){};
_.R($z,u8);$z.prototype.JSC$14478_getRequest=function(H){var U="/cross_account_channel_transfer";(H=this.getExtension(H))&&(U=OEK(U,{target_session:H.targetSessionIndex,source_rapt:H.sourceRapt,rapt:H.targetRapt}));return{input:U,requestShell:FK(U,"GET"),innerTubeRequest:{}}};
$z.prototype.getApiPaths=function(){return[]};
$z.prototype.getExtension=function(H){return _.p(H,cLp)};
$z.prototype.JSC$14478_buildRequest=function(){};var lc=function(){};
_.R(lc,u8);lc.prototype.getApiPaths=function(){return gxk};
lc.prototype.isNavigationCommand=function(){return!0};
lc.prototype.getExtension=function(H){return _.p(H,_.GR)};
lc.prototype.JSC$14478_buildRequest=function(H){var U=_.TR().get("gsml","");U&&(H.safetyModeLockerObfuscatedGaiaId=U);H.userInterfaceTheme=_.Kf(!0);_.or()?H.deviceTheme="DEVICE_THEME_SELECTED":_.rKK()?H.deviceTheme="DEVICE_THEME_SUPPORTED":H.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var GY=function(){};
_.R(GY,u8);GY.prototype.getApiPaths=function(){return M8z};
GY.prototype.getExtension=function(H){return _.p(H,yL3)};
GY.prototype.JSC$14478_buildRequest=function(H,U){if(U&&U.requestType&&(H.requestType=U.requestType,U.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||U.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var A=U.nextUrl;A&&(_.ZEc(A)||DM(A))&&(H.nextNavendpoint={urlEndpoint:{url:A}})}U&&U.channelSwitcherQuery&&(H.channelSwitcherQuery=U.channelSwitcherQuery);U&&U.triggerChannelCreation&&(H.triggerChannelCreation=U.triggerChannelCreation);var M;if(U==null?0:(M=U.contentOwnerConfig)==
null?0:M.externalContentOwnerId)H.contentOwnerConfig=U.contentOwnerConfig;H.callCircumstance=U&&U.requestType&&U.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var W,w;U=H==null?void 0:(W=H.context)==null?void 0:(w=W.user)==null?void 0:w.onBehalfOfUser;if(U!==void 0){H.obfuscatedSelectedGaiaId=U;var d,O;H==null||(d=H.context)==null||(O=d.user)==null||delete O.onBehalfOfUser}var f,J;if(W=H==null?void 0:(f=H.context)==null?void 0:(J=f.user)==null?
void 0:J.serializedDelegationContext)H.selectedSerializedDelegationContext=W};var Yz=function(){};
_.R(Yz,u8);Yz.prototype.getApiPaths=function(){return wBn};
Yz.prototype.getExtension=function(H){return _.p(H,RQw)};
Yz.prototype.JSC$14478_buildRequest=function(H,U){U.params&&(H.params=U.params)};var qQ=function(){};
_.R(qQ,u8);qQ.prototype.getApiPaths=function(){return J_K};
qQ.prototype.getExtension=function(H){return _.p(H,_.BIh)};
qQ.prototype.JSC$14478_buildRequest=function(H,U){if(U=U.createBroadcastRequest)H.useMasks=U.useMasks,H.broadcastType=U.broadcastType,H.broadcastSource=U.broadcastSource,H.broadcastMetadata=U.broadcastMetadata,H.broadcastMetadataMask=U.broadcastMetadataMask,H.videoMetadata=U.videoMetadata,H.videoMetadataMask=U.videoMetadataMask,H.liveChatSettingsUpdate=U.liveChatSettingsUpdate,H.liveChatSettingsUpdateMask=U.liveChatSettingsUpdateMask,H.cloneVideoId=U.cloneVideoId,H.cloneWithOverrides=U.cloneWithOverrides,
H.targetEntity=U.targetEntity,H.scheduledRedirectMetadata=U.scheduledRedirectMetadata};var hi=function(){};
_.R(hi,u8);hi.prototype.getApiPaths=function(){return Pky};
hi.prototype.getExtension=function(H){return _.p(H,mJ2)};
hi.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;U.params&&(H.params=U.params);A.questionText&&(H.questionText=A.questionText);A.optionText&&A.optionText.length>0&&(H.optionText=A.optionText)};var kz=function(){};
_.R(kz,u8);kz.prototype.getApiPaths=function(){return Noy};
kz.prototype.getExtension=function(H){return _.p(H,RUH)};
kz.prototype.JSC$14478_buildRequest=function(H,U){U.params&&(H.params=U.params)};var v2=function(){};
_.R(v2,u8);v2.prototype.getApiPaths=function(){return t8B};
v2.prototype.getExtension=function(H){return _.p(H,Nkw)};
v2.prototype.JSC$14478_buildRequest=function(H,U){U.params&&(H.params=U.params)};var TY=function(){};
_.R(TY,u8);TY.prototype.getApiPaths=function(){return y_m};
TY.prototype.getExtension=function(H){return _.p(H,S7h)};
TY.prototype.JSC$14478_buildRequest=function(H,U,A){U.params&&(H.params=U.params);U.continuation&&(H.continuation=U.continuation);A.currentPlayerState&&A.currentPlayerState.playerOffsetMs&&(H.currentPlayerState={playerOffsetMs:A.currentPlayerState.playerOffsetMs.toString()})};var jE=function(){};
_.R(jE,u8);jE.prototype.getApiPaths=function(){return Bok};
jE.prototype.getExtension=function(H){return _.p(H,ngB)};
jE.prototype.JSC$14478_buildRequest=function(H,U,A){U.params&&(H.params=U.params);A.continuation&&(H.continuation=A.continuation);"hidden"in A&&(H.webClientInfo={isDocumentHidden:A.hidden});A.isInvalidationTimeoutRequest&&(H.isInvalidationTimeoutRequest=A.isInvalidationTimeoutRequest);A.invalidationPayload&&(U=stn(_.Q0(YZ(A.invalidationPayload))),H.invalidationPayloadLastPublishAtUsec=w4(U,2));A.reloadActionPanel&&(H.reloadActionPanel=A.reloadActionPanel);A.fullReload&&(H.fullReload=A.fullReload);
A.currentPlayerState&&(H.currentPlayerState=A.currentPlayerState)};var IO=function(){};
_.R(IO,u8);IO.prototype.getApiPaths=function(){return QGr};
IO.prototype.getExtension=function(H){return _.p(H,Eg2)};
IO.prototype.JSC$14478_buildRequest=function(H,U){H.params=U.params};var Qa=function(){};
_.R(Qa,u8);Qa.prototype.getApiPaths=function(){return c_r};
Qa.prototype.getExtension=function(H){return _.p(H,l1K)};
Qa.prototype.JSC$14478_buildRequest=function(H,U){U.params&&(H.params=U.params)};var Va=function(){};
_.R(Va,u8);Va.prototype.getApiPaths=function(){return r_h};
Va.prototype.getExtension=function(H){return _.p(H,Gmh)};
Va.prototype.JSC$14478_buildRequest=function(H,U){U.params&&(H.params=U.params)};var Hw=function(){};
_.R(Hw,u8);Hw.prototype.getApiPaths=function(){return V8w};
Hw.prototype.getExtension=function(H){return _.p(H,gg3)};
Hw.prototype.JSC$14478_buildRequest=function(H,U){U.params&&(H.params=U.params)};var UV=function(){};
_.R(UV,u8);UV.prototype.getApiPaths=function(){return ULK};
UV.prototype.getExtension=function(H){return _.p(H,aJz)};
UV.prototype.JSC$14478_buildRequest=function(H,U){U.params&&(H.params=U.params)};var A5=function(){};
_.R(A5,u8);A5.prototype.getApiPaths=function(){return OXK};
A5.prototype.getExtension=function(H){return _.p(H,gy3)};
A5.prototype.JSC$14478_buildRequest=function(H,U){U.params&&(H.params=U.params)};var MO=function(){};
_.R(MO,u8);MO.prototype.getApiPaths=function(){return Fmw};
MO.prototype.getExtension=function(H){return _.p(H,_.xJ2)};
MO.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;U.params&&(H.params=U.params);A.client_message_id&&(H.clientMessageId=A.client_message_id);A.recaptcha_token&&(H.recaptchaToken=A.recaptcha_token);A.rich_message&&A.rich_message.text_segments?(U=A.rich_message.text_segments.map(function(M){var W={};M.text&&(W.text=M.text);M.emoji_id&&(W.emojiId=M.emoji_id);return W}),H.richMessage={textSegments:U}):A.message&&(H.message=A.message);
A.currentPlayerState&&(H.currentPlayerState=A.currentPlayerState)};var Ww=function(){};
_.R(Ww,u8);Ww.prototype.getApiPaths=function(){return Pyy};
Ww.prototype.getExtension=function(H){return _.p(H,zUB)};
Ww.prototype.JSC$14478_buildRequest=function(H,U){U.params&&(H.params=U.params)};var wy=function(){};
_.R(wy,u8);wy.prototype.getApiPaths=function(){return phk};
wy.prototype.getExtension=function(H){return _.p(H,tR2)};
wy.prototype.JSC$14478_buildRequest=function(H,U,A){U.isUserInitiated&&(H.isUserInitiated=U.isUserInitiated);U.initiationSource&&(H.initiationSource=U.initiationSource);A.locationInfo&&(H.context.client.locationInfo=A.locationInfo)};var X9=function(){};
_.R(X9,u8);X9.prototype.getApiPaths=function(){return HXK};
X9.prototype.getExtension=function(H){return _.p(H,rqr)};
X9.prototype.JSC$14478_buildRequest=function(H,U,A){U.metadataUpdateRequest&&(U=U.metadataUpdateRequest,H.encryptedVideoId=U.encryptedVideoId,U.liveChat&&(U=U.liveChat,H.liveChat||(H.liveChat={}),U.performAsExternalChannelId&&(H.liveChat.performAsExternalChannelId=U.performAsExternalChannelId),U.source&&(H.liveChat.source=U.source)));var M;if(A==null?0:(M=A.liveChat)==null?0:M.liveChatSettings)H.liveChat||(H.liveChat={}),A=A.liveChat.liveChatSettings,H.liveChat.newLiveChatSettings=A,H.liveChat.newLiveChatSettingsMask||
(H.liveChat.newLiveChatSettingsMask={}),A.emojiReactionSet&&(H.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var ip=function(){};
_.R(ip,u8);ip.prototype.getApiPaths=function(){return Cyr};
ip.prototype.getExtension=function(H){return _.p(H,_.Vez)};
ip.prototype.JSC$14478_buildRequest=function(H,U,A){A.continuation?H.continuation=A.continuation:U.videoId&&(H.videoId=U.videoId);A.clientParams&&(H.clientParams=A.clientParams)};var bp=function(){};
_.R(bp,u8);bp.prototype.getApiPaths=function(){return ehp};
bp.prototype.getExtension=function(H){return _.p(H,_.bY)};
bp.prototype.JSC$14478_buildRequest=function(H,U){H.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";H.fetchCommentsParams={};U.videoId&&(H.fetchCommentsParams.encryptedVideoId=U.videoId);U.postId&&(H.fetchCommentsParams.postId=U.postId);U.externalChannelId&&(H.fetchCommentsParams.externalChannelId=U.externalChannelId);U.linkedCommentId&&(H.fetchCommentsParams.linkedCommentId=U.linkedCommentId);(0,_.dG.isEmpty)(H.fetchCommentsParams)&&delete H.fetchCommentsParams};var dy=function(){};
_.R(dy,u8);dy.prototype.getApiPaths=function(){return SV};
dy.prototype.JSC$14478_buildRequest=function(H){H.browseId="FEnotifications_inbox"};
dy.prototype.getExtension=function(H){return _.p(H,_.GR)};var OV=function(){};
_.R(OV,u8);OV.prototype.getApiPaths=function(){return ehp};
OV.prototype.JSC$14478_buildRequest=function(H,U){U.signal==="GET_NOTIFICATIONS_MENU"&&(H.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");U.ctoken&&(H.ctoken=U.ctoken)};
var hFp=function(){};
_.R(hFp,OV);hFp.prototype.getExtension=function(H){return _.p(H,_.GR)};
var kgy=function(){};
_.R(kgy,OV);kgy.prototype.getExtension=function(H){return _.p(H,$yw)};var up=function(){};
_.R(up,u8);up.prototype.getApiPaths=function(){return qqr};
up.prototype.getExtension=function(H){return _.p(H,_.GR)};
up.prototype.JSC$14478_buildRequest=function(){};var ZV=function(){};
_.R(ZV,u8);ZV.prototype.getApiPaths=function(){return AKm};
ZV.prototype.getExtension=function(H){return _.p(H,vvH)||void 0};
ZV.prototype.JSC$14478_buildRequest=function(H,U){U.params&&(H.params=U.params);U.secondaryParams&&(H.secondaryParams=U.secondaryParams)};var fg=function(){};
_.R(fg,u8);fg.prototype.getApiPaths=function(){return Mip};
fg.prototype.getExtension=function(H){return _.p(H,EyK)};
fg.prototype.JSC$14478_buildRequest=function(H,U){U.undo&&(H.undo=U.undo);U.serializedOptOut&&(H.serializedOptOut=U.serializedOptOut);U.serializedRecordInteractionsRequest&&(H.serializedRecordInteractionsRequest=U.serializedRecordInteractionsRequest)};var J5=function(){};
_.R(J5,u8);J5.prototype.getApiPaths=function(){return Xhw};
J5.prototype.getExtension=function(H){return _.p(H,mEz)};
J5.prototype.JSC$14478_buildRequest=function(H,U){U.serializedInteractionsRequest&&(H.serializedRecordNotificationInteractionsRequest=U.serializedInteractionsRequest)};var Kg=function(){};
_.R(Kg,u8);Kg.prototype.getApiPaths=function(){return V_c};
Kg.prototype.getExtension=function(H){return _.p(H,_.s3)};
Kg.prototype.JSC$14478_buildRequest=function(H,U,A){U=U===void 0?{}:U;A=A===void 0?{}:A;U.videoId?H.videoId=U.videoId:U.playlistId&&(H.playlistId=U.playlistId);var M;H.crossDeviceDownloadData={isCrossDeviceDownload:(M=U.isCrossDeviceDownload)!=null?M:!1};!A.downloadToMobileEduShown&&U.isCrossDeviceDownload&&(H.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var W;if(M=(W=U.offlineWebClientEligibility)!=null?W:A.offlineWebClientEligibility)H.offlineWebClientEligibility=M;var w;if(W=(w=U.preferredFormatType)!=
null?w:A.preferredFormatType)H.preferredFormatType=W;var d;if(w=(d=U.lastOfflineQualitySettingsSavedMs)!=null?d:A.lastOfflineQualitySettingsSavedMs)H.lastOfflineQualitySettingsSavedMs=w;U.params&&(H.params=U.params)};var o8=function(){};
_.R(o8,u8);o8.prototype.getApiPaths=function(){return mo};
o8.prototype.getExtension=function(H){return _.p(H,_.XA)};
o8.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;U.token&&(H.continuation=U.token);A.formData&&(H.formData=A.formData)};var F9=function(){};
_.R(F9,u8);F9.prototype.getApiPaths=function(){return mo};
F9.prototype.getExtension=function(H){return _.p(H,x5m)};
F9.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;H.continuation=A.continuation};var Pw=function(){};
_.R(Pw,u8);Pw.prototype.getApiPaths=function(){return mo};
Pw.prototype.getExtension=function(H){return _.p(H,_.XY)};
Pw.prototype.JSC$14478_buildRequest=function(H,U){var A,M=U.panelIdentifier||((A=U.identifier)==null?void 0:A.tag);M&&(H.panelId=M);var W;if((W=U.globalConfiguration)==null?0:W.params){var w;H.params=(w=U.globalConfiguration)==null?void 0:w.params}if(_.S("enable_ai_companion")){var d;U=U.engagementPanelExtras;if(U==null?0:(d=U.aiCompanionPanelExtras)==null?0:d.includeClientConversationId){var O,f;d=(f=(O=_.lx().resolve(_.$V(LSk)))==null?void 0:O("conversations"))==null?void 0:f.get("conversation_id")}else d=
void 0;if(O=d)H.formData=Object.assign({},H.formData,{inputComposerFormData:{conversationId:O}})}};
_.D5.Object.defineProperties(Pw.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var sV=function(){};
_.R(sV,u8);sV.prototype.getApiPaths=function(){return mo};
sV.prototype.getExtension=function(H){return _.p(H,PQm)};
sV.prototype.JSC$14478_buildRequest=function(H,U){U.panelLoadingStrategy&&wMV(H,U.panelLoadingStrategy)};var ng=function(){};
_.R(ng,u8);ng.prototype.getApiPaths=function(){return mo};
ng.prototype.getExtension=function(H){return _.p(H,eQh)};
ng.prototype.JSC$14478_buildRequest=function(H,U){U.loadingStrategy&&wMV(H,U.loadingStrategy)};var NO=function(){};
_.R(NO,u8);NO.prototype.getApiPaths=function(){return mo};
NO.prototype.getExtension=function(H){return _.p(H,_.kY)};
NO.prototype.JSC$14478_buildRequest=function(H,U){U.panelLoadingStrategy&&wMV(H,U.panelLoadingStrategy)};var S0=function(){};
_.R(S0,u8);S0.prototype.getApiPaths=function(){return mo};
S0.prototype.getExtension=function(H){return _.p(H,DEn)};
S0.prototype.JSC$14478_buildRequest=function(H,U){var A,M=(A=U.contentSourcePanelIdentifier)==null?void 0:A.tag;M&&(H.panelId=M);var W;if((W=U.globalConfiguration)==null?0:W.params){var w;H.params=(w=U.globalConfiguration)==null?void 0:w.params}};var pg=function(){};
_.R(pg,u8);pg.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
pg.prototype.getExtension=function(H){return _.p(H,$Ek)};
pg.prototype.JSC$14478_buildRequest=function(H,U){U.params&&(H.params=U.params)};var Lg=function(){};
_.R(Lg,u8);Lg.prototype.getApiPaths=function(){return zqz};
Lg.prototype.getExtension=function(H){return _.p(H,YYm)};
Lg.prototype.JSC$14478_buildRequest=function(H,U){U.externalChannelId&&(H.externalChannelId=U.externalChannelId);U.superChatAction&&(H.superChatAction=U.superChatAction);U.superStickersAction&&(H.superStickersAction=U.superStickersAction)};var R8=function(){};
_.R(R8,u8);R8.prototype.getApiPaths=function(){return aCh};
R8.prototype.getExtension=function(H){return _.p(H,B6B)||_.p(H,ezM)};
R8.prototype.JSC$14478_buildRequest=function(H,U){U.videoIds?H.videoIds=U.videoIds:U.videoId&&(H.videoIds=[U.videoId]);U.playlistId&&(H.playlistId=U.playlistId);U.params&&(H.params=U.params);H.excludeWatchLater=!1};var EV=function(){};
_.R(EV,u8);EV.prototype.getApiPaths=function(){return sGH};
EV.prototype.getExtension=function(H){return _.p(H,_.K$)};
EV.prototype.JSC$14478_buildRequest=function(H,U,A){A.create_playlist_title?H.title=A.create_playlist_title:U.title&&(H.title=U.title);if(A.create_playlist_privacy_status&&typeof A.create_playlist_privacy_status==="number"){a:{var M=A.create_playlist_privacy_status;if(M!==0){if(M===1){M="PUBLIC";break a}if(M===2){M="UNLISTED";break a}}M="PRIVATE"}H.privacyStatus=M}else U.privacyStatus&&(H.privacyStatus=U.privacyStatus);A.create_playlist_description&&(H.description=A.create_playlist_description);U.videoIds&&
(H.videoIds=U.videoIds);U.params&&(H.params=U.params);U.sourcePlaylistId&&(H.sourcePlaylistId=U.sourcePlaylistId)};var mC=function(){};
_.R(mC,u8);mC.prototype.getApiPaths=function(){return Sqg};
mC.prototype.getExtension=function(H){return _.p(H,hxz)};
mC.prototype.JSC$14478_buildRequest=function(H,U){H.playlistId=U.playlistId};var gy=function(){};
_.R(gy,u8);gy.prototype.getApiPaths=function(){return Dkr};
gy.prototype.getExtension=function(H){return _.p(H,nyz)};
gy.prototype.JSC$14478_buildRequest=function(H,U){U.playlistId&&(H.playlistId=U.playlistId);U.params&&(H.params=U.params)};var a8=function(){};
_.R(a8,u8);a8.prototype.getApiPaths=function(){return whw};
a8.prototype.getExtension=function(H){return _.p(H,_.dk)||void 0};
a8.prototype.JSC$14478_buildRequest=function(H,U){U.actions&&(H.actions=U.actions);U.params&&(H.params=U.params);U.playlistId&&(H.playlistId=U.playlistId)};var xE=function(){};
_.R(xE,u8);_.X=xE.prototype;_.X.getApiPaths=function(){return iXw};
_.X.getExtension=function(H){return _.p(H,_.kO)};
_.X.JSC$14478_buildRequest=function(H,U){U.videoId&&(H.playerRequest={videoId:U.videoId},U.playerParams&&(H.playerRequest.params=U.playerParams),U.racyCheckOk&&(H.playerRequest.racyCheckOk=!!U.racyCheckOk),U.contentCheckOk&&(H.playerRequest.contentCheckOk=!!U.contentCheckOk));U.params&&(H.params=U.params);U.inputType&&(H.inputType=U.inputType);H.disablePlayerResponse=!0};
_.X.getRequestConfig=function(H){var U;(H=this.JSC$14485_getStoreKey(H))&&(U={storeStrategy:{storeKey:H}});_.S("web_log_reels_ticks")&&(U=U||{},U.requestTick="r_wrs",U.responseTick="r_wrr");return U};
_.X.JSC$14485_getStoreKey=function(H){H=this.getExtension(H);if(H!=null&&H.videoId){var U={videoId:H.videoId};H.params&&(U.params=H.params);return _.Pg("reel_item_watch",U)}};var zA=function(){};
_.R(zA,u8);_.X=zA.prototype;_.X.getApiPaths=function(){return bXk};
_.X.getExtension=function(H){return _.p(H,_.kO)};
_.X.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;H.sequenceParams=U.sequenceParams;var M;((M=A)==null?0:M.contentPlaybackContext)&&_.S("web_shorts_prefetch_service_enabled")&&(H.playbackContext={contentPlaybackContext:A.contentPlaybackContext})};
_.X.JSC$14485_getStoreKey=function(H){if(_.S("shorts_controller_retrieve_seedless_sequence_v2")&&(H=this.getExtension(H),H==null?0:H.sequenceParams))return _.Pg("reel_watch_sequence",{sequenceParams:H.sequenceParams})};
_.X.getRequestConfig=function(H){H=this.JSC$14485_getStoreKey(H);var U;H&&(U={storeStrategy:{storeKey:H}});U=U||{};U.requestTick="r_wsrs";U.responseTick="r_wsrr";U.processorTick="r_wsrp";return U};
var Cg=function(){};
_.R(Cg,u8);Cg.prototype.getApiPaths=function(){return bXk};
Cg.prototype.getExtension=function(H){return _.p(H,_.XA)};
Cg.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;U.token&&(H.continuation=U.token);var M;((M=A)==null?0:M.contentPlaybackContext)&&_.S("web_shorts_prefetch_service_enabled")&&(H.playbackContext={contentPlaybackContext:A.contentPlaybackContext})};
Cg.prototype.getRequestConfig=function(H){H=this.JSC$14485_getStoreKey(H);var U;H&&(U={storeStrategy:{storeKey:H}});U=U||{};U.requestTick="r_wsrs";U.responseTick="r_wsrr";U.processorTick="r_wsrp";return U};var t5=function(){};
_.R(t5,u8);t5.prototype.getApiPaths=function(){return ExH};
t5.prototype.getExtension=function(H){return _.p(H,_.ZZm)};
t5.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;U.flagAction&&(H.action=U.flagAction);U.flagRequestType&&(H.flagRequestType=U.flagRequestType);U.additionalDetailCheckboxChecked&&(H.additionalDetailCheckboxChecked=U.additionalDetailCheckboxChecked);U.legalCheckboxChecked&&(H.legalCheckboxChecked=U.legalCheckboxChecked);U={};A.flag_issue_type!==void 0&&(U.issue=A.flag_issue_type);A.flag_affiliation!==void 0&&(U.affiliation=A.flag_affiliation);A.flag_full_name&&(U.fullName=A.flag_full_name);
Object.keys(U).length&&(H.legalReportDetails=U);if(A.flag_description||A.text)H.userComments=A.flag_description||A.text;U={};A.minutes!==void 0&&A.seconds!==void 0&&(U.minutes=A.minutes,U.seconds=A.seconds);A.vss_id&&(U.vssId=A.vss_id);Object.keys(U).length&&(H.videoReportDetails=U);U={};A.video_ids&&(U.videoIds=A.video_ids);A.impersonated_channel_url&&(U.impersonatedChannelUrl=A.impersonated_channel_url);Object.keys(U).length&&(H.channelAbuseReportDetails=U)};
_.D5.Object.defineProperties(t5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cw=function(){};
_.R(cw,u8);cw.prototype.getApiPaths=function(){return Ckn};
cw.prototype.getExtension=function(H){return _.p(H,llm)};
cw.prototype.JSC$14478_buildRequest=function(H,U){U.blockedForKidsContent&&(H.blockedForKidsContent=U.blockedForKidsContent)};var y$=function(){};
_.R(y$,u8);y$.prototype.getApiPaths=function(){return uDn};
y$.prototype.getExtension=function(H){return _.p(H,rCV)};
y$.prototype.JSC$14478_buildRequest=function(H,U,A){H.params=U.params;A.impersonated_channel_url&&(H.impersonatedChannelUrl=A.impersonated_channel_url)};var Bw=function(){};
_.R(Bw,u8);Bw.prototype.getApiPaths=function(){return jGr};
Bw.prototype.getExtension=function(H){return _.p(H,_.GVp)};
Bw.prototype.JSC$14478_buildRequest=function(H,U){U.items&&(H.items=U.items);U.kidGaiaId&&(H.kidGaiaId=U.kidGaiaId)};var ry=function(){};
_.R(ry,u8);ry.prototype.getApiPaths=function(){return xkk};
ry.prototype.getExtension=function(H){return _.p(H,_.ter)};
ry.prototype.JSC$14478_buildRequest=function(H,U){U.params&&(H.params=U.params);U.targetId&&(H.targetId=U.targetId)};var e0=function(){};
_.R(e0,u8);e0.prototype.getApiPaths=function(){return Km3};
e0.prototype.getExtension=function(H){return _.p(H,lAk)};
e0.prototype.JSC$14478_buildRequest=function(H,U){U.externalVideoId&&(H.externalVideoId=U.externalVideoId);U.query&&(H.query=U.query);U.sourceTimelines&&(H.sourceTimelines=U.sourceTimelines)};var DV=function(){};
_.R(DV,u8);DV.prototype.getApiPaths=function(){return oon};
DV.prototype.getExtension=function(H){return _.p(H,_.XA)||void 0};
DV.prototype.JSC$14478_buildRequest=function(H,U){U.token&&(H.continuation=U.token)};
_.vlh=function(){};
_.R(_.vlh,u8);_.X=_.vlh.prototype;_.X.getApiPaths=function(){return oon};
_.X.getExtension=function(H){return _.p(H,_.YO)||void 0};
_.X.isNavigationCommand=function(){return!0};
_.X.JSC$14485_getStoreKey=function(H,U){U=U===void 0?{}:U;if(!U.disableCache&&(H=this.getExtension(H))&&H.query)return U={query:H.query},H.params&&(U.params=H.params),_.Pg("search",U)};
_.X.JSC$14478_buildRequest=function(H,U,A){U.query&&(H.query=U.query);U.params&&(H.params=U.params);if(!_.S("web_forward_suggest_stats_killswitch")){var M=_.p(U,f1w);M&&(H.suggestStats=M)}var W;!_.S("kevlar_searchbox_stats_killswitch")&&((W=A.tempData)==null?0:W.gs_l)&&!_.p(U,f1w)&&(H.webSearchboxStatsUrl="/search?oq="+(A.tempData.oq||"")+"&gs_l="+A.tempData.gs_l);var w;if((w=A.tempData)==null?0:w.entityMid)U=H.suggestionSearchParams||{},U.entityMid=A.tempData.entityMid,H.suggestionSearchParams=U;
if(_.S("enable_desktop_vdcbg_components")||_.S("enable_inline_muted_playback_on_web_search"))U=_.TR().getFlag(186),H.inlineSettingStatus=U?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";A.isFromShorts&&(H.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.X.getRequestConfig=function(H,U){U=U===void 0?{}:U;H=this.JSC$14485_getStoreKey(H,U);var A;H&&(A={storeStrategy:{storeKey:H}});_.S("web_log_search_ticks_ks")||(A=A||{},A.requestTick="sr_s",A.responseTick="sr_r");return A};var $E=function(){};
_.R($E,u8);$E.prototype.getApiPaths=function(){return GHk};
$E.prototype.getExtension=function(H){return _.p(H,WEp)};
$E.prototype.JSC$14478_buildRequest=function(H,U){U.serializedGetSharingProviderDataParams&&(H.serializedGetSharingProviderDataParams=U.serializedGetSharingProviderDataParams)};var lp=function(){};
_.R(lp,u8);lp.prototype.getApiPaths=function(){return Yqh};
lp.prototype.getExtension=function(H){return _.p(H,iZn)};
lp.prototype.JSC$14478_buildRequest=function(H,U){U.endpoint&&(H.endpoint=U.endpoint);U.action&&(H.action=U.action)};var GA=function(){};
_.R(GA,u8);GA.prototype.getApiPaths=function(){return pBn};
GA.prototype.getExtension=function(H){return _.p(H,kOp)};
GA.prototype.JSC$14478_buildRequest=function(H,U){H.videoId=U.videoId;U.scheduledRedirectMetadataSourceVideoId&&(H.scheduledRedirectMetadata={sourceVideoId:U.scheduledRedirectMetadataSourceVideoId})};var YE=function(){};
_.R(YE,u8);YE.prototype.getApiPaths=function(){return nom};
YE.prototype.getExtension=function(H){return _.p(H,_.qFp)};
YE.prototype.JSC$14478_buildRequest=function(H,U){H.params=U.params;H.correctionText=U.correctionText};var qO=function(){};
_.R(qO,u8);qO.prototype.getApiPaths=function(){return jBt};
qO.prototype.getExtension=function(H){return _.p(H,_.GFy)};
qO.prototype.JSC$14478_buildRequest=function(H,U){U.params&&(H.params=U.params);H.searchQuery=U.searchQuery;H.languageCode=U.languageCode;H.kind=U.kind;H.name=U.name;H.externalVideoId=U.externalVideoId};var h5=function(){};
_.R(h5,u8);h5.prototype.getApiPaths=function(){return Bew};
h5.prototype.getExtension=function(H){return _.p(H,inz)};
h5.prototype.JSC$14478_buildRequest=function(H,U){U.params&&(H.params=U.params)};var kE=function(H){this.JSC$18769_storeWithEntities=H};
_.R(kE,u8);kE.prototype.getApiPaths=function(){return ZQk};
kE.prototype.getExtension=function(H){return _.p(H,dxp)||_.p(H,uih)};
kE.prototype.JSC$14478_buildRequest=function(H,U,A){A.client_data&&(H.clientData=A.client_data);if(U.commerceActionConfig){var M=U.commerceActionConfig;U=M.actionId;M=M.commerceActionParams;U&&(H.actionId=U);M&&(H.commerceActionParams=M)}else{var W=U.actionId,w=U.commerceActionParams;A=U.entityKeys;W&&(H.actionId=W);w&&(H.commerceActionParams=w);var d;U=(M=this.JSC$18769_storeWithEntities)==null?void 0:(d=M.getState())==null?void 0:d.entities;if(A&&U){M=[];d=_.b(A);for(A=d.next();!A.done;A=d.next())if(W=
A.value,A=_.tw(W).entityType,W=_.rH(U,A,W))w={},M.push((w[A]=W,w));H.entityMutationPayloads=M}}};
kE.prototype.getRequestConfig=function(H){var U,A=(U=_.p(H,dxp))==null?void 0:U.requestSequenceType;if(A&&H.clickTrackingParams&&A!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:H.clickTrackingParams,sequenceType:A}}};
kE[Ga]=[CY];var vw=function(){};
_.R(vw,u8);vw.prototype.getApiPaths=function(){return rKm};
vw.prototype.getExtension=function(H){return _.p(H,_.zLr)};
vw.prototype.JSC$14478_buildRequest=function(H,U){U.feedbackData&&(H.feedbackData=U.feedbackData);U.params&&(H.itemParams=U.params)};
_.D5.Object.defineProperties(vw.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var TA=function(){};
_.R(TA,u8);TA.prototype.getApiPaths=function(){return eq3};
TA.prototype.getExtension=function(H){return _.p(H,Ch3)};
TA.prototype.JSC$14478_buildRequest=function(H,U,A){A.payments_payload&&(H.paymentsPayload=A.payments_payload);A.offer_params&&(H.offerParams=A.offer_params);U.transactionParams&&(H.transactionParams=U.transactionParams)};var j0=function(){};
_.R(j0,u8);j0.prototype.getApiPaths=function(){return DL2};
j0.prototype.getExtension=function(H){return _.p(H,_.tLn)};
j0.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;U.buybucketParams&&(H.buybucketData={params:U.buybucketParams},U.stickerParams?H.buybucketData.stickerParams=U.stickerParams:(A.rich_chat_message?H.buybucketData.richChatMessage=A.rich_chat_message:A.chat_message_text&&(H.buybucketData.chatMessageText=A.chat_message_text),A.purchase_price_micros&&(H.buybucketData.purchasePriceMicros=A.purchase_price_micros.toString())));U.donationAmountMicros&&(H.tipAmountMicros=U.donationAmountMicros,
U.tipParams&&(H.tipParams=U.tipParams));U.offerParams&&(H.offerParams=U.offerParams);U.productData&&(H.productData=U.productData);U.transactionParams&&(H.transactionParams=U.transactionParams)};var I8=function(){};
_.R(I8,u8);I8.prototype.getApiPaths=function(){return $Ly};
I8.prototype.getExtension=function(H){return _.p(H,BUm)};
I8.prototype.JSC$14478_buildRequest=function(H,U){U.updateFopParams&&(H.updateFopParams=U.updateFopParams)};var Q$=function(){};
_.R(Q$,u8);Q$.prototype.getApiPaths=function(){return lGz};
Q$.prototype.getExtension=function(H){return _.p(H,_.sy)};
Q$.prototype.JSC$14478_buildRequest=function(H,U){U.couponCode&&(H.couponCode=U.couponCode);U.params&&(H.itemParams=U.params)};var V$=function(){};
_.R(V$,u8);V$.prototype.getApiPaths=function(){return GD2};
V$.prototype.getExtension=function(H){return _.p(H,_.Onk)};
V$.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;U.params&&(H.params=U.params);A.ctk&&(H.clientToken=A.ctk)};var HD=function(H){this.JSC$18804_storeWithEntities=H};
_.R(HD,u8);HD.prototype.getApiPaths=function(){return Ysg};
HD.prototype.getExtension=function(H){return _.p(H,_.s7)};
HD.prototype.JSC$14478_buildRequest=function(H,U,A){A.purchase_price_micros&&(H.productData={pdgData:{purchasePriceMicros:A.purchase_price_micros.toString()}},A.rich_chat_message&&(H.productData.pdgData.richChatMessage=A.rich_chat_message),A.currency_code&&(H.productData.pdgData.currencyCode=A.currency_code));U.transactionParams&&(H.transactionParams=U.transactionParams);U.clientLocationContext&&(H.clientLocationContext=U.clientLocationContext);A.payments_payload&&(H.paymentsPayload=A.payments_payload);
A.funds_guarantee_callback_client_data&&(H.fundsGuaranteeCallbackClientData=A.funds_guarantee_callback_client_data);var M,W;A=(M=this.JSC$18804_storeWithEntities)==null?void 0:(W=M.getState())==null?void 0:W.entities;if(U.entityKeys&&A){M=[];U=_.b(U.entityKeys);for(W=U.next();!W.done;W=U.next()){var w=W.value;W=_.tw(w).entityType;if(w=_.rH(A,W,w)){var d={};M.push((d[W]=w,d))}}H.entityMutationPayloads=M}};
HD[Ga]=[CY];var Uf=function(){};
_.R(Uf,u8);Uf.prototype.getApiPaths=function(){return qsw};
Uf.prototype.getExtension=function(H){return _.p(H,c6r)};
Uf.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;A.backend_analytics&&(H.serializedBackendAnalyticsEvent=A.backend_analytics);U.offerParams&&(H.offerParams=U.offerParams)};var Av=function(){};
_.R(Av,u8);Av.prototype.getApiPaths=function(){return lGz};
Av.prototype.getExtension=function(H){return _.p(H,SIF)};
Av.prototype.JSC$14478_buildRequest=function(H,U){U.params&&(H.itemParams=U.params)};var Mq=function(){};
_.R(Mq,u8);Mq.prototype.getApiPaths=function(){return hqB};
Mq.prototype.getExtension=function(H){return _.p(H,_.Phh)};
Mq.prototype.JSC$14478_buildRequest=function(H,U,A){A.resume_time_ms&&(H.resumeTimeMs=A.resume_time_ms);U.pauseParams&&(H.pauseParams=U.pauseParams)};var WD=function(){};
_.R(WD,u8);WD.prototype.getApiPaths=function(){return kDp};
WD.prototype.getExtension=function(H){return _.p(H,_.y6r)};
WD.prototype.JSC$14478_buildRequest=function(H,U,A){A=A===void 0?{}:A;A.c&&(H.redeemCode=A.c);A.rd&&(H.riskData=A.rd);A.ctk&&(H.clientToken=A.ctk)};var w5=function(){};
_.R(w5,u8);w5.prototype.getApiPaths=function(){return voh};
w5.prototype.getExtension=function(H){return _.p(H,_.sjw)};
w5.prototype.JSC$14478_buildRequest=function(H,U){U.resumeParams&&(H.resumeParams=U.resumeParams)};var XJ=function(H,U){this.clientName=H;this.defaultExpirationDelayMs=U};
XJ.prototype.put=function(H,U){var A=this,M;return _.u(function(W){M=Object.assign({},U.data);M.key=H;M.clientName=A.clientName;M.expireTimestampMs===void 0&&(M.expireTimestampMs=(Math.round((0,_.lD)())+A.defaultExpirationDelayMs).toString());return W.return(A.putInternal(H,M))})};
XJ[Ga]=[Sz,ts5];var TGh=function(){XJ.apply(this,arguments);this.JSC$18834_responseStore=new Map};
_.R(TGh,XJ);_.X=TGh.prototype;_.X.get=function(H){var U=this;return _.u(function(A){return A.return(lQ(U,H))})};
_.X.putInternal=function(H,U){var A=this,M,W,w;return _.u(function(d){M=A.defaultExpirationDelayMs;U.expireTimestampMs&&(M=Number(U.expireTimestampMs)-Math.round((0,_.lD)()),W=_.hr("mweb_override_response_store_expiration_ms"),W>0&&W<M&&(M=W));w=setTimeout(function(){A.remove(H)},M);
A.JSC$18834_responseStore.set(H,{entryData:U,timer:w});_.DO(d)})};
_.X.remove=function(H){var U=this;return _.u(function(A){jl8(U,H);_.DO(A)})};
_.X.removeAll=function(){var H=this;return _.u(function(U){H.JSC$18834_responseStore.forEach(function(A){clearTimeout(A.timer)});
H.JSC$18834_responseStore.clear();_.DO(U)})};
_.X.has=function(H){return!!this.JSC$18834_responseStore.get(H)};
_.X.getKeys=function(){return this.JSC$18834_responseStore.keys()};
var lQ=function(H,U){if(H=H.JSC$18834_responseStore.get(U))return new _.$0(H.entryData)},jl8=function(H,U){var A=H.JSC$18834_responseStore.get(U);
A&&(clearTimeout(A.timer),H.JSC$18834_responseStore.delete(U))};
TGh.prototype.markAsProcessed=function(H){var U=this,A;return _.u(function(M){A=U.JSC$18834_responseStore.get(H);if(!A)return M.jumpTo(0);A.entryData.isProcessed=!0;return M.yield(U.putInternal(H,A.entryData),0)})};var XMt;var b2t=function(H,U,A){XJ.call(this,H,U);this.token=A};
_.R(b2t,XJ);_.X=b2t.prototype;_.X.get=function(H){var U=this,A,M;return _.u(function(W){return W.nextAddress==1?W.yield(yI(U.token),2):W.nextAddress!=3?(A=W.yieldResult,W.yield(A.get("ResponseStore",[H,U.clientName]),3)):(M=W.yieldResult)?W.return(new _.$0(M)):W.return(void 0)})};
_.X.putInternal=function(H,U){var A=this,M;return _.u(function(W){if(W.nextAddress==1)return W.yield(yI(A.token),2);M=W.yieldResult;return W.yield(M.put("ResponseStore",U),0)})};
_.X.remove=function(H){var U=this,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(yI(U.token),2);A=M.yieldResult;return M.return(A.delete("ResponseStore",[H,U.clientName]))})};
_.X.removeAll=function(){var H=this,U;return _.u(function(A){if(A.nextAddress==1)return A.yield(yI(H.token),2);U=A.yieldResult;return A.yield(f$m(U,IDBKeyRange.only(H.clientName)),0)})};
_.X.has=function(){throw Error("mj");};
_.X.markAsProcessed=function(H){var U=this,A,M;return _.u(function(W){if(W.nextAddress==1)return W.yield(yI(U.token),2);if(W.nextAddress!=3)return A=W.yieldResult,W.yield(A.get("ResponseStore",[H,U.clientName]),3);M=W.yieldResult;if(!M)return W.jumpTo(0);M.isProcessed=!0;return W.yield(A.put("ResponseStore",M),0)})};_.iO=new _.g3("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var IDh=function(H){var U;this.stateTagsData=(U=H.responseContext)==null?void 0:U.stateTags},Ql$=function(H){var U;
return((U=H.stateTagsData)==null?void 0:U.stateTagsModified)||[]};var Vl7;Vl7=function(H){this.JSC$18847_responseStore=H};
_.oH=function(H,U,A){if(!_.S("state_tags_killswitch")){var M=new IDh(U);if(Ql$(M).length>0){var W=H.JSC$18847_responseStore.getKeys();W=_.b(W);for(var w=W.next();!w.done;w=W.next()){w=w.value;var d=lQ(H.JSC$18847_responseStore,w);if(d){var O=_.xj(d);a:{var f=void 0;d=Ql$(M);O=((f=(new IDh(O)).stateTagsData)==null?void 0:f.relevantStateTags)||[];f=_.b(O);for(O=f.next();!O.done;O=f.next())if(O=O.value,O.stateTag!=null&&d.includes(O.stateTag)&&O.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){d=
!0;break a}d=!1}d&&jl8(H.JSC$18847_responseStore,w)}}}}var J;M=(J=U.responseContext)==null?void 0:J.maxAgeSeconds;A&&M&&Number(M)>0&&(U=zB(U,M),H.JSC$18847_responseStore.put(A,new _.$0(U)))};
Vl7.prototype.handleResponse=function(H,U){if(!U)throw Error("nj");var A,M;U=(A=U.config)==null?void 0:(M=A.storeStrategy)==null?void 0:M.storeKey;_.oH(this,H,U)};
Vl7[Ga]=[_.Da];_.P7z=new _.g3("STORE_RESPONSE_PROCESSOR_TOKEN");var HW8=function(H){this.JSC$18850_responseStore=H};
HW8.prototype.handleResponse=function(H,U){if(U.input.match(_.RE(bXk))){var A;if(H==null?0:(A=H.entries)==null?0:A.length)for(H=_.b(H.entries),U=H.next();!U.done;U=H.next()){A=U.value.command;var M=void 0;U=(M=_.p(A,_.kO))==null?void 0:M.unserializedPrefetchData;if(!A||!U)break;M=(new xE).JSC$14485_getStoreKey(A);var W=_.p(U,ovk),w=void 0,d=void 0,O=void 0,f=void 0,J=void 0,F=void 0,P=((w=W)==null?0:(d=w.responseContext)==null?0:d.maxAgeSeconds)&&Number((O=W)==null?void 0:(f=O.responseContext)==null?
void 0:f.maxAgeSeconds)>0?Number((J=W)==null?void 0:(F=J.responseContext)==null?void 0:F.maxAgeSeconds):600;M&&P>0&&(W=zB(W,P),this.JSC$18850_responseStore.put(M,new _.$0(W)));A=(new q4).JSC$14485_getStoreKey(A);U=_.p(U,Han);f=O=d=w=W=M=void 0;J=((M=U)==null?0:(W=M.responseContext)==null?0:W.maxAgeSeconds)&&Number((w=U)==null?void 0:(d=w.responseContext)==null?void 0:d.maxAgeSeconds)>0?Number((O=U)==null?void 0:(f=O.responseContext)==null?void 0:f.maxAgeSeconds):600;A&&J>0&&(U=zB(U,J),this.JSC$18850_responseStore.put(A,
new _.$0(U)))}}};
HW8[Ga]=[_.Da];var Ugf=function(H,U){this.innertubeTransportService=H;this.JSC$18853_commandHandler=U};
Ugf.prototype.submitForm=function(H,U,A,M,W){var w=this,d,O,f,J,F,P;return _.u(function(n){if(n.nextAddress==1)return d={submitId:H,formData:U,submitBehavior:A,params:M},O=_.RE(NeK),n.yield(_.oz(w.innertubeTransportService,d,O,W),2);f=n.yieldResult;if(!f)return n.return(Promise.reject(new _.bD("Submit API returned an undefined response. Submit ID: "+H)));J=f;(P=(F=J)==null?void 0:F.onResponseReceived)&&w.JSC$18853_commandHandler.resolveCommand(P);return n.return(J)})};
Ugf[Ga]=[_.IE,_.YV];var bO=function(){this.scheduler=_.MP()},A87;
bO.prototype.pause=function(){throw Error("oj");};
bO.prototype.resume=function(){throw Error("oj");};
bO.prototype.queue=function(H){var U=this,A=_.oL(),M=_.bM(this.scheduler,function(){try{var W;if(_.$$.instance)var w=_.$$.instance;else{var d=new _.bD("Error: Unexpected uninitialized CommandHandler.");_.sD(d);w=void 0}(W=w)==null||W.resolveCommand(H.command);A.resolve()}catch(O){A.reject(O)}});
A.promise.thenCatch(function(W){W instanceof _.Oa&&U.scheduler.cancelJob(M)});
return A.promise};
bO.prototype.queueAll=function(H){var U=new Map;H=_.b(H);for(var A=H.next();!A.done;A=H.next())A=A.value,U.set(A.id,this.queue(A));return U};var WK$=function(H,U){var A=this;this.taskModel=H;this.onTaskCancelledCallback=U;this.resolver=_.oL();H=H.proto.prefetchConfig;if(!H)throw Error("pj");if(!H.prefetchAction)throw Error("qj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(M){M instanceof _.Oa&&(Mv5(A,A.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),A.onTaskCancelledCallback(A.taskModel.id,A.jobId),A.tick("pcc"));
throw M;});
this.timerName=this.taskModel.id;_.ia(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
WK$.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var Mv5=function(H,U){_.wH({prefetchInfo:{cancellationReason:U}},H.timerName)};
WK$.prototype.tick=function(H){_.ba(H,void 0,this.timerName)};var Of=function(){var H=this;this.scheduler=_.MP();this.maxInflightTasks=_.hr("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.hr("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new gCH;this.onTaskCancelled=function(U,A){A&&H.scheduler.cancelJob(A);wJm(H,U);d5(H,3)}},XJB=function(){Of.instance||(Of.instance=new Of);
return Of.instance};
Of.prototype.pause=function(){this.prefetchCoordinatorState=0};
Of.prototype.resume=function(){d5(this,0)};
Of.prototype.queue=function(H){H=iW5(this,H);d5(this,1);return H};
Of.prototype.queueAll=function(H){var U=new Map;H=_.b(H);for(var A=H.next();!A.done;A=H.next())A=A.value,U.set(A.id,iW5(this,A));d5(this,1);return U};
var iW5=function(H,U){var A=H.allPrefetchTasks.get(U.id);if(A)return A.cancellablePromise;try{var M=new WK$(U,H.onTaskCancelled)}catch(w){return _.H$(w)}A=M;A.tick("pcq");var W={prefetchInfo:{taskId:A.taskModel.id,isPrefetch:!0,fetchAction:A.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:A.taskModel.command.clickTrackingParams}};A.taskModel.csn&&(W.clientScreenNonce=A.taskModel.csn);_.wH(W,A.timerName);H.allPrefetchTasks.set(U.id,M);H.drainingHeap.insert(-M.getPriority(),M);return M.cancellablePromise},
d5=function(H,U){H.prefetchCoordinatorState===U&&(H.prefetchCoordinatorState=2,bWj(H))},bWj=function(H){for(var U={};H.prefetchCoordinatorState!==0;U={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(H.inflightPrefetchTasks.size>=H.maxInflightTasks){H.prefetchCoordinatorState=3;break}U.prefetchTask$jscomp$1=H.drainingHeap.remove();if(!U.prefetchTask$jscomp$1){H.prefetchCoordinatorState=1;break}U.taskId$jscomp$3=U.prefetchTask$jscomp$1.taskModel.id;if(H.allPrefetchTasks.has(U.taskId$jscomp$3)){var A=-1;H.coordinatorTimeoutMs>0&&(A=_.bM(H.scheduler,function(M){return function(){uO(H,M.taskId$jscomp$3,Error("rj"))}}(U),H.coordinatorTimeoutMs));
H.inflightPrefetchTasks.set(U.taskId$jscomp$3,A);if(!H.JSC$18870_commandHandler){if(!_.$$.instance){uO(H,U.taskId$jscomp$3,Error("sj"));continue}H.JSC$18870_commandHandler=_.$$.instance}a:switch(U.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":A=1;break a;default:A=0}U.prefetchTask$jscomp$1.jobId=H.scheduler.addJob(function(M){return function(){M.prefetchTask$jscomp$1.tick("pcr");try{H.JSC$18870_commandHandler.resolveCommand(M.prefetchTask$jscomp$1.taskModel.command)||
uO(H,M.taskId$jscomp$3,Error("tj"))}catch(W){uO(H,M.taskId$jscomp$3,W)}}}(U),A,0)}}},dg$=function(H,U){(U=wJm(H,U))!=null&&(U.resolver.resolve(),U.tick("pce"));
d5(H,3)},uO=function(H,U,A){(U=wJm(H,U,A))!=null&&(U.resolver.reject(A),U.tick("pcc"),Mv5(U,"CANCELLATION_REASON_ERROR"),Math.random()<=_.hr("prefetch_coordinator_error_logging_sampling_rate")&&(A=new _.bD("Prefetch Command failed.",U.taskModel.id,A.message),_.sD(A)));
d5(H,3)},wJm=function(H,U,A){var M=H.allPrefetchTasks.get(U);
M?((A=H.inflightPrefetchTasks.get(U))&&A!==-1&&H.scheduler.cancelJob(A),H.inflightPrefetchTasks.delete(U),H.allPrefetchTasks.delete(U)):_.Na(new _.bD("Unexpected missing prefetch task when deleting task.",U,A==null?void 0:A.message));return M};var OW8=function(H,U,A,M,W){this.id=H;this.triggerOn=U;this.cancelOn=A;this.command=M;this.proto=W};
_.D5.Object.defineProperties(OW8.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var uGy=function(){this.JSC$18875_prefetchCoordinator=XJB();A87||(A87=new bO);this.defaultCoordinator=A87},ZW5;
uGy.getInstance=function(){ZW5||(ZW5=new uGy);return ZW5};
uGy.prototype.get=function(H){switch(H){case 0:return this.JSC$18875_prefetchCoordinator;default:return this.defaultCoordinator}};var ZK=function(){this.coordinatorSupplier=uGy.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},KK8=function(H){var U=_.XK()||void 0,A=Object.keys(fT8)[0];
if(A){var M=H.taskIdByTriggerId.get(A);if(M!=null){H.taskIdByTriggerId.delete(A);A=[];M=_.b(M);for(var W=M.next();!W.done;W=M.next())if(W=H.tasks.get(W.value))U!=="UNDEFINED_CSN"&&(W.csn=U),A.push(W);A=uqh(A);U=[];A=_.b(A);for(M=A.next();!M.done;M=A.next()){W=_.b(M.value);M=W.next().value;W=W.next().value;M=H.coordinatorSupplier.get(M).queueAll(W);M=_.b(M);var w=M.next();for(W={};!w.done;W={taskId$jscomp$9:void 0},w=M.next()){var d=_.b(w.value);w=d.next().value;d=d.next().value;W.taskId$jscomp$9=
w;w=d;U.push(W.taskId$jscomp$9);H.queuedPromisesByTask.set(W.taskId$jscomp$9,_.bR(w,function(O){return function(){J8p(H,O.taskId$jscomp$9)}}(W)))}}}}else _.Na(new _.bD("Unexpected malformed TriggerEvent."))};
ZK.prototype.trigger=function(H,U){var A=this,M=this.tasks.get(H);if(!M||this.queuedPromisesByTask.has(H))return!1;oR8(this,H,M.triggerOn);U!=="UNDEFINED_CSN"&&(M.csn=U);U=this.coordinatorSupplier.get(M.taskType).queue(M);this.queuedPromisesByTask.set(H,_.bR(U,function(){J8p(A,H)}));
return!0};
ZK.prototype.cancel=function(H){var U=this.queuedPromisesByTask.get(H);if(U)U.cancel();else return J8p(this,H)};
var J8p=function(H,U){H.queuedPromisesByTask.delete(U);var A=H.tasks.get(U);if(!A)return!1;H.tasks.delete(U);oR8(H,U,A.triggerOn);(A=O2h(A.cancelOn))&&(H=H.taskIdByCancelId.get(A))&&H.delete(U);return!0},oR8=function(H,U,A){(A=Object.keys(A)[0])&&(H=H.taskIdByTriggerId.get(A))&&H.delete(U)};var fT8={taskRegistered:{}},Jv=function(){ZK.instance||(ZK.instance=new ZK);this.JSC$18884_taskManager=ZK.instance};
_.R(Jv,nQ);
Jv.prototype.resolveCommand=function(H){var U=this,A,M;return _.u(function(W){A=_.p(H,KEB);if((M=A)==null||!M.tasks){var w=new _.bD("RegisterTasksCommand is missing tasks.");_.sD(w);return W.return()}w=U.JSC$18884_taskManager;for(var d=_.b(A.tasks),O=d.next();!O.done;O=d.next())if(O=O.value,O=O.id&&O.triggerOn&&O.cancelOn&&O.command?new OW8(O.id,O.triggerOn,O.cancelOn,O.command,O):void 0,O){var f=Object.keys(O.triggerOn)[0];if(f){var J=O2h(O.cancelOn);J?(w.tasks.set(O.id,O),w.taskIdByTriggerId.has(f)||w.taskIdByTriggerId.set(f,
new Set),w.taskIdByTriggerId.get(f).add(O.id),w.taskIdByCancelId.has(J)||w.taskIdByCancelId.set(J,new Set),w.taskIdByCancelId.get(J).add(O.id)):_.Na(new _.bD("Unexpected malformed cancelOn field."))}else _.Na(new _.bD("Unexpected malformed triggerOn field."))}else _.Na(new _.bD("Unexpected malformed Task proto."));KK8(U.JSC$18884_taskManager);_.DO(W)})};var FKY={},P97=(FKY.rendered={priority:_.S("web_adaptive_early_init")?8:0,callback:function(){var H={};H.numCpu=navigator.hardwareConcurrency;var U={};U.ramGb=_.Mr.navigator.deviceMemory;var A={staticContext:{}};U.ramGb&&Nw0(U.ramGb)&&(A.staticContext.memoryTotalKbytes=(U.ramGb*1048576).toString());H.numCpu&&Nw0(H.numCpu)&&(A.staticContext.cpuCores=H.numCpu);if(_.S("web_enable_adaptive_appl_signal")){H={};U=Z9V();U=U.length>0?U[0]:void 0;var M,W=(M=_.ua("rses_dpj"))!=null?M:U==null?void 0:U.tick.rses_dpj,
w;M=(w=_.ua("rsef_dpj"))!=null?w:U==null?void 0:U.tick.rsef_dpj;W&&Number(W)>0&&M&&Number(M)>0&&(w=Math.ceil(Number(M)-Number(W)),w>0&&(H.loadLatency=w));H.loadLatency&&Nw0(H.loadLatency)&&(A.appL=H.loadLatency.toString())}_.Fx("applicationStarted",A);SL0=A;_.S("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",pzE)}},FKY);var scp=new _.g3("WINDOW_ON_ERROR"),nR8=new _.g3("ERROR_WEIGHT_MAPS"),NOf=new _.g3("INIT_ERROR");var S5f={},pJy=(S5f.initialized={priority:10,callback:function(H){H.injector.resolve(NOf)()}},S5f);var LK7=function(){},R8Y=function(){var H=_.tr("meta_logger_impl");
H||(H=new LK7,_.eC("meta_logger_impl",H));return H},ER5=function(){R8Y().csiSubscriptionKey=XXE("meta_logging_csi_event",function(H){var U=H.timerName;
if(H=H.timelineData){_.ia(U,{startTime:H.startTime},U);H.infos&&_.wH(H.infos,U);for(var A=_.b(Object.keys(H.ticks)),M=A.next();!M.done;M=A.next())M=M.value,_.ba(M,H.ticks[M],U)}})};
LK7.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&dD8(this.csiSubscriptionKey)};var mgh={},gRy=(mgh.initialized={priority:10,callback:function(){ER5()}},mgh);var aTf=function(H,U){this.innertubeClientName=H;this.JSC$18895_prefCookie=U};
aTf.prototype.record=function(){if(_.S("web_li_record_binary_eval_tick")){var H=_.ua("rsef_dpj");var U=_.ua("rses_dpj");H=H!==void 0&&U!==void 0?Math.round(H-U):void 0;if(H!==void 0&&H>0){U=_.H4(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var A=this.poolSize;if(!(U.valuesSeen>=1E9)){if(U.valuesSample.length<A)U.valuesSample.push(H);else{var M=Math.floor(Math.random()*(U.valuesSeen+1));M<A&&(U.valuesSample[M]=H)}U.valuesSeen+=1}_.V3(this.storagePrefix+"-"+this.innertubeClientName,
U,2592E3);H=U.valuesSample;U=Z2M(H);H=H.length<this.poolSize?void 0:U<400?1:U<1700?2:3;H!==void 0&&(this.JSC$18895_prefCookie.set(this.cookiePrefix+this.innertubeClientName,H),this.JSC$18895_prefCookie.save())}}else _.UU(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18895_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18895_prefCookie.save()};
aTf[Ga]=[Sz,ib];var xgj=function(){aTf.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.R(xgj,aTf);var z8f=new _.g3("PAGE_LOAD_TIME_TOKEN");var C9m=function(H){this.signal=H;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;H.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.bM(_.Fl,this.disableLoggingAndSendPayload,1E4)};
C9m.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.Fl.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),tvB(this))};
var tvB=function(H){var U=_.ws();if(U){var A={webClientComponentsData:{components:Array.from(H.ids,function(M){return{id:M}})}};
H.ids.clear();_.k$().visualElementStateChanged(U,A)}};var c85=Ho({a11y:Hu2});_.y8$=U3(c85)(c85.a11y,{ephemeralActionSelector:function(H){return H.ephemeralAction||null}});var BOh=Ho({continuation:wvB});var r88=U3(BOh)(BOh.continuation,{continuationCommandSelector:function(H){return H.continuationCommand}});var e8$=new _.g3("CHUNK_REGISTRY_TOKEN");var DgY=function(){this.loadFns=new Map;this.xidToRendererName=new Map},lTp=function(H,U){if(typeof U==="string"){var A=$gY(H,U);
return H.loadFns.get(A)}return function(){var M;return _.u(function(W){return W.nextAddress==1?(M={},W.yield(Promise.all(U.map(function(w){var d,O;return _.u(function(f){if(f.nextAddress==1){d=$gY(H,w);O=H.loadFns.get(d);if(!O)return M[d]=void 0,f.jumpTo(0);_.zj(f,3);return f.yield(O(),5)}if(f.nextAddress!=3)return M[d]=f.yieldResult,_.xD(f,0);_.eG(f);M[d]=void 0;_.DO(f)})})),2)):W.return(M)})}},$gY=function(H,U){var A;
return(A=H.xidToRendererName.get(U))!=null?A:U};var Grk=new _.g3("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Ks=function(H,U){this.JSC$18927_storeWithEntities=H;this.JSC$18927_commandHandler=U;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Ks.prototype.start=function(){this.JSC$18927_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Ks.prototype.observeDownloadingEntities=function(){var H=_.nvc(this.JSC$18927_storeWithEntities.getState().entities).map(function(M){return N6M(M)});
if(H.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var U={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:HbV()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.gH(_.hP("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18927_commandHandler.resolveCommand(U)}this.downloadingEntities=H}else if(this.downloadingEntities.length){var A=sJE(this.JSC$18927_storeWithEntities.getState().entities).map(function(M){return N6M(M)});
this.downloadingEntities.filter(function(M){return A.includes(M)}).length&&(H={openPopupAction:qOr()},this.JSC$18927_commandHandler.resolveCommand(H));
this.downloadingEntities=[]}};
Ks[Ga]=[CY,_.YV];var Y5j;_.FJ=function(H,U,A,M,W,w,d,O){this.JSC$18930_playerApiPromise=H;this.JSC$18930_commandHandler=U;this.JSC$18930_screenManager=A;this.offlineWebClientEligibility=M;this.JSC$18930_prefStorage=W;this.JSC$18930_actionRouter=w;this.entityTypeMap=d;this.JSC$18930_persistentStorePromiseAccessor=O;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
Y5j=function(){var H=_.lx().resolve(_.FJ),U;_.u(function(A){if(A.nextAddress==1)return H.downloadFailureListenerBound?A.return():A.yield(H.JSC$18930_playerApiPromise,2);U=A.yieldResult;U.addEventListener("onOfflineOperationFailure",function(M){if(M.failureReason&&M.entityKey&&M.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(M.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var W=_.tw(M.entityKey).entityId;W&&H.JSC$18930_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
W)}else if(_.S("kevlar_woffle")){W=H.JSC$18930_commandHandler;var w=W.resolveCommand;M=M.failureReason;var d=_.hP("TRANSFER_FAILED",void 0,"Download failed");M==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(d=_.hP("STORAGE_FULL",void 0,"Storage full"));w.call(W,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.gH(d),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
H.downloadFailureListenerBound=!0;_.DO(A)})};
_.FJ.prototype.deleteVideo=function(H,U){var A=this,M,W,w;return _.u(function(d){if(d.nextAddress==1)return d.yield(A.JSC$18930_playerApiPromise,2);M=d.yieldResult;w={offlineLoggingData:{offlineDeleteReason:(W=U)!=null?W:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return d.yield(M.queueOfflineAction(H,A.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",w),0)})};
_.FJ.prototype.pauseVideoDownload=function(H){var U=this,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(U.JSC$18930_playerApiPromise,2);A=M.yieldResult;A.pauseVideoDownload(H);_.DO(M)})};
_.FJ.prototype.resumeVideoDownload=function(H){var U=this,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(U.JSC$18930_playerApiPromise,2);A=M.yieldResult;return M.yield(A.resumeVideoDownload(H),0)})};
_.FJ[Ga]=[_.aL,_.YV,_.U8,Grk,ub,gk,IEg,hE];var q5k=new _.g3("DOWNLOAD_STATE_STORE_TOKEN");var h85=function(H,U){this.JSC$18951_persistentStorePromiseAccessor=H;this.store=U;this.upliftCompletionResolver=new _.r1},TO$=function(){var H=_.lx().resolve(krj),U;
_.u(function(A){switch(A.nextAddress){case 1:if(H.upliftImplPromise)return A.return(H.upliftImplPromise);_.zj(A,2);H.upliftImplPromise=vR$(H);return A.yield(H.upliftImplPromise,4);case 4:H.upliftCompletionResolver.resolve();_.xD(A,3);break;case 2:throw U=_.eG(A),H.upliftCompletionResolver.reject(U),U;case 3:return A.return(H.upliftImplPromise)}})},vR$=function(H){var U,A,M;
return _.u(function(W){switch(W.nextAddress){case 1:return _.xV("LOGGED_IN")?W.yield(H.JSC$18951_persistentStorePromiseAccessor(),2):W.return();case 2:U=W.yieldResult;if(!U)return _.ba("vdeur"),W.return();_.ba("vdeus");_.zj(W,3);return W.yield(jcB(U),5);case 5:A=W.yieldResult;H.store.dispatch(wNc(A));U.observe(function(w){XNt(H.store,w)});
_.xD(W,4);break;case 3:throw M=_.eG(W),_.ba("vdeur"),M;case 4:_.ba("vdeuc"),_.DO(W)}})},jcB=function(H){var U;
return _.u(function(A){if(A.nextAddress==1)return A.yield(P44(H),2);U=A.yieldResult;return A.return(U.reduce(function(M,W){if(!W.data||!W.key||!W.entityType)return M;M[W.entityType]||(M[W.entityType]={});M[W.entityType][W.key]=W.data;return M},{}))})};
h85[Ga]=[hE,_.bK];var krj;krj=new _.g3("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.PD=new _.g3("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var sf=function(H,U){this.JSC$18954_persistentStorePromiseAccessor=H;this.transportService=U};
sf.prototype.refresh=function(){var H=this,U,A,M,W;return _.u(function(w){if(w.nextAddress==1)return _.xV("LOGGED_IN")?w.yield(H.JSC$18954_persistentStorePromiseAccessor(),2):w.return();if(w.nextAddress!=3)return(U=w.yieldResult)?w.yield(Ir8(U),3):w.return();if((A=w.yieldResult)&&!(Number(A.data.refreshTimestampMs||0)<(0,_.lD)()))return w.return();M={browseId:"SPaccount_downloads"};W=_.RE(SV);_.oz(H.transportService,M,W).then(function(d){var O;if(U&&(d==null?void 0:(O=d.responseContext)==null?void 0:
O.maxAgeSeconds)!==0){var f;O=(d==null?void 0:(f=d.responseContext)==null?void 0:f.maxAgeSeconds)||604800;f=String(Math.floor((0,_.lD)())+O*1E3);U.put("service:downloads_settings:fallback",new _.$0({innertubeResponse:d,refreshTimestampMs:f}))}});
_.DO(w)})};
sf[Ga]=[_.iO,_.IE];var ns=function(H,U){this.JSC$18958_playerPromise=H;this.store=U;this.started=!1};
ns.prototype.start=function(){var H=this,U;return _.u(function(A){if(A.nextAddress==1)return H.started?A.return():A.yield(H.JSC$18958_playerPromise,2);U=A.yieldResult;U.addEventListener("onOrchestrationBecameLeader",H.updateIsLeader.bind(H,!0));U.addEventListener("onOrchestrationLostLeader",H.updateIsLeader.bind(H,!1));if(U.isOrchestrationLeader)H.updateIsLeader(U.isOrchestrationLeader());else{var M=new _.bD("Function isOrchestrationLeader is undefined",{"player.isReady":U.isReady(),"player.playVideo":U.playVideo?
"defined":"undefined"});_.sD(M);H.updateIsLeader(!1)}H.started=!0;_.DO(A)})};
ns.prototype.updateIsLeader=function(H){this.store.dispatch(_.zQ({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:H}}))};
ns[Ga]=[_.aL,_.bK];var IT8=function(H,U){this.networkStatusManager=H;this.JSC$18961_prefStoragePromise=U;this.redirectsToPreload=["https://youtube.com"]},Qcy=function(){var H=_.lx().resolve(IT8),U,A,M,W,w,d;
_.u(function(O){switch(O.nextAddress){case 1:return O.yield(H.JSC$18961_prefStoragePromise,2);case 2:U=O.yieldResult;if(!(A=U)){O.jumpTo(3);break}return O.yield(U.get("yt-redirect-prefetch-id"),4);case 4:A=O.yieldResult;case 3:if(A||!H.networkStatusManager.isNetworkAvailable())return O.return();M={cache:"reload",redirect:"manual"};W=_.b(H.redirectsToPreload);w=W.next();case 5:if(w.done){if(!U){O.jumpTo(0);break}return O.yield(U.set("yt-redirect-prefetch-id",!0,86400),0)}d=w.value;_.zj(O,8);return O.yield(_.Mr.fetch(d,
M),10);case 10:_.xD(O,6);break;case 8:_.eG(O);case 6:w=W.next(),O.jumpTo(5)}})};var Vv8=function(H){this.JSC$18967_pageManager=H},Hdm=function(H){var U=[];
SiE(["videoId","contentId"],H.JSC$18967_pageManager.data,new Set,U);return U},Ufj=function(H){return Hdm(H).filter(function(U){return U.contentType==="video"}).map(function(U){return U.contentId}).filter(function(U){return U!==void 0})};
Vv8[Ga]=[_.SI];var Aaf=new _.g3("PAGE_CONTENT_EXTRACTOR_TOKEN");var Nq=function(H){H?(this.container=H,this.containerWasInjected=!0):this.containerWasInjected=!1};
Nq.prototype.openDialog=function(H,U,A){var M=this,W;return _.u(function(w){(W=M.container)==null||W.openDialog(H,U,A);_.DO(w)})};
Nq.prototype.closeDialog=function(){var H=this,U;return _.u(function(A){(U=H.container)==null||U.closeDialog();_.DO(A)})};
Nq.prototype.isDialogOpen=function(){var H=this,U,A;return _.u(function(M){return M.return((A=(U=H.container)==null?void 0:U.isDialogOpen())!=null?A:!1)})};
Nq[Ga]=[_.$V(Pzw)];_.MMh=new _.g3("POPUP_CONTROLLER_TOKEN");var W47=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
W47.prototype.registerPanel=function(H,U){if(H){this.panelMap.set(H,U);var A=this.pendingPanelResolvers.get(H);A&&(A.resolve(U),this.pendingPanelResolvers.delete(H))}};
W47.prototype.getPanel=function(H){var U=this,A;return _.u(function(M){return(A=U.panelMap.get(H))?M.return(A):M.return(we7(U,H))})};
var we7=function(H,U){var A,M;return _.u(function(W){if(A=H.pendingPanelResolvers.get(U))return W.return(A.promise);M=new _.r1;H.pendingPanelResolvers.set(U,M);return W.return(M.promise)})},Xep=function(H,U){W47.call(this);
var A=this;this.popupController=H;this.persistentPanelController=U;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return A.panelMap.size}}};
_.R(Xep,W47);_.X=Xep.prototype;_.X.getReloadContinuation=function(H){var U=this,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(U.getPanel(H),2);A=M.yieldResult;return M.return(A.getReloadContinuation())})};
_.X.showPanel=function(H){var U=this,A,M,W,w,d,O,f,J,F,P,n,N;return _.u(function(L){if(L.nextAddress==1){A=H;M=A.identifier;W=A.panelContents;w=A.config;d=A.extras;O=A.panelUpdatableFields;f=A.updatePanelContinuationData;J=H.target;f&&U.updatePanelContinuationDatas.set(M,f);if((F=w)==null?0:(P=F.engagementPanelPopupPresentationConfig)==null?0:P.popupType)if(n=w.engagementPanelPopupPresentationConfig.popupType,J===void 0&&(J=document.body),n==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!U.persistentPanelController)return _.Na(new _.bD("Persistent panel controller is not available.")),
L.return();var m=U.persistentPanelController;m.persistentPanelIdentifiers.has(M)||(m.persistentPanelWrapper.appendChild(m.engagementPanelElement({panelIdentifier:M},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),m.persistentPanelIdentifiers.add(M));a:switch(_.fl.currentPageSubTypeSelector(m.store.getState())){case "watch":var z="WATCH";break a;default:z="APP"}_.id8(m,z);m.store.dispatch(A7n(!0))}else{if(n==="PANEL_POPUP_TYPE_DIALOG"||n==="PANEL_POPUP_TYPE_DROPDOWN"){m=L.return;z=U.popupController;
var c=z.openPopup;a:switch(n){case "PANEL_POPUP_TYPE_DIALOG":var C="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":C="DROPDOWN";break a;default:throw Error("vj`"+n);}return m.call(L,c.call(z,M,W,C,J))}_.Na(new _.bD("Popup type "+n+" not supported in PanelController."))}return L.yield(U.getPanel(M),2)}N=L.yieldResult;(W||O)&&N.updatePanel(W,!1,d,O);N.showPanel(d);_.DO(L)})};
_.X.hidePanel=function(H){var U=this,A,M,W,w;return _.u(function(d){if(d.nextAddress==1)return A=H,M=A.identifier,d.yield(U.getPanel(M),2);W=d.yieldResult;W.hidePanel();U.popupController.closePopup(M);(w=U.persistentPanelController)!=null&&w.persistentPanelIdentifiers.has(M)&&w.store.dispatch(A7n(!1));_.DO(d)})};
_.X.isVisible=function(H,U){var A=this,M;return _.u(function(W){if(W.nextAddress==1)return U&&!A.panelMap.has(H)?W.return(!1):W.yield(A.getPanel(H),2);M=W.yieldResult;return W.return(M.isVisible())})};
_.X.updatePanel=function(H){var U=this,A,M,W,w,d,O,f,J;return _.u(function(F){if(F.nextAddress==1){A=H;M=A.identifier;W=A.panelContents;w=A.shouldFocus===void 0?!1:A.shouldFocus;d=A.extras;O=A.panelUpdatableFields;f=A.updatePanelContinuationData;if(!W&&!O)return F.return();f&&U.updatePanelContinuationDatas.set(M,f);_.S("enable_ai_companion")&&M==="PAai_companion"&&_.GB.remove("youchat_messages_section");return F.yield(U.getPanel(M),2)}J=F.yieldResult;J.updatePanel(W,w,d,O);W&&_.S("enable_ai_companion")&&
U.registerPanelContent(M,W);_.DO(F)})};
_.X.registerPanelContent=function(H,U){H&&this.panelContentMap.set(H,U)};
_.X.unregisterPanelContent=function(H){this.panelContentMap.delete(H)};
_.X.getPanelContent=function(H){return this.panelContentMap.get(H)};
_.X.getUpdatePanelContinuationData=function(H){return this.updatePanelContinuationDatas.get(H)};
Xep[Ga]=[_.MMh,_.$V(_.Xi)];var SJ=function(H,U){this.innertubeTransportService=H;this.JSC$18986_screenManager=U},bdp=function(H){var U;
return!((U=H.panelLoadingStrategy)==null||!U.requestTemplate)};
SJ.prototype.makeRequest=function(H){var U=this,A,M;return _.u(function(W){switch(W.nextAddress){case 1:if(!bdp(U)){W.jumpTo(2);break}_.zj(W,3);return W.yield(_.Js(U.innertubeTransportService,H),5);case 5:return A=W.yieldResult,A?W.return(A.content):(_.sD(Error("wj")),W.return(void 0));case 3:M=_.eG(W),_.sD(M);case 2:return W.return(void 0)}})};
SJ.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
SJ.prototype.execute=function(H){var U=this,A,M,W,w,d,O,f,J,F,P;return _.u(function(n){if(n.nextAddress==1){A=H;M=A.data;W=A.fallbackVe;w=A.parentVe;d=A.createScreenConfig;O=A.renderFn;f=A.command;U.panelLoadingStrategy=M;var N,L,m=((N=U.panelLoadingStrategy)==null?0:N.screenVe)?(L=U.panelLoadingStrategy)==null?void 0:L.screenVe:W;m&&_.DJ(U.JSC$18986_screenManager,m,w,d);return(J=U.getContent())?n.yield(O(J),2):n.jumpTo(2)}return n.nextAddress!=4?bdp(U)?n.yield(U.makeRequest(f),4):n.return():(P=F=
n.yieldResult)?n.yield(O(P),0):n.return()})};
SJ[Ga]=[_.IE,_.U8];var dff;dff=function(H,U){this.engagementPanelElement=H;this.store=U;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.id8=function(H,U){var A=H.persistentPanelContainerMap.get(U);A?A.contains(H.persistentPanelWrapper)||(H=H.persistentPanelWrapper,_.Sr=!0,_.pG.set(H,!0),A.insertBefore(H,null),_.pG.delete(H),_.Sr=!1):_.Na(new _.bD("Persistent panel container not found for surface "+U+"."))};
dff[Ga]=[s0m,_.bK];var ps=function(){var H=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.onTargetHoverEntered=function(){H.isHovered=!0};
this.onTargetHoverLeft=function(){H.isHovered=!1};
this.onSheetHoverEntered=function(){H.isHovered=!0;var U;(U=H.hoverEnterCallback)==null||U.call(H)};
this.onSheetHoverLeft=function(){H.isHovered=!1;var U;(U=H.hoverLeaveCallback)==null||U.call(H)}};
ps.prototype.getContainer=function(){return _.L1()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
ps.prototype.openSheet=function(H,U,A){A=A===void 0?U:A;var M=this,W,w,d,O,f,J,F;return _.u(function(P){switch(P.nextAddress){case 1:return W={stack:[],error:void 0,hasError:!1},_.zj(P,2,3),w=qg,P.yield(M.isSheetOpen(),5);case 5:d=P.yieldResult;f3z(W,Sl4(w));if(!d){P.jumpTo(6);break}if(!M.shouldPreventClosingWhileHovered){if(!_.S("delay_sheet_open_killswitch")){if(_.S("web_close_sheet_if_same_target_killswitch")&&U&&M.currentTarget===U)return(O=M.getContainer())==null||O.closeSheet(),P.return();M.pendingData=
{data:H,target:BNy(M,U)};return P.return()}P.jumpTo(6);break}if(M.currentTarget===U)return P.return();Odk(M);u$h(M);return P.yield((f=M.getContainer())==null?void 0:f.closeSheet(),6);case 6:if(H.viewModel&&(H={viewModel:H.viewModel,sheetPosition:H.sheetPosition,expandToFullWidth:H.expandToFullWidth}),(J=M.getContainer())==null||J.openSheet(H,U,A),M.currentTarget=U,M.shouldPreventClosingWhileHovered){M.onTargetHoverEntered();var n;(n=M.currentTarget)==null||n.addEventListener("mouseenter",M.onTargetHoverEntered);
var N;(N=M.currentTarget)==null||N.addEventListener("mouseleave",M.onTargetHoverLeft);Zdh(M)}else M.hasRegisteredHoverCallbacks&&Zdh(M);case 3:_.cI(P);JHm(W);_.BI(P,0);break;case 2:F=_.eG(P),W.error=F,W.hasError=!0,P.jumpTo(3)}})};
ps.prototype.closeSheet=function(){var H=this;return _.u(function(U){return H.hideDelayMs?(setTimeout(function(){return _.u(function(A){return A.yield(fjh(H),0)})},H.hideDelayMs),U.return()):U.yield(fjh(H),0)})};
var fjh=function(H){var U;return _.u(function(A){if(A.nextAddress==1){if(H.shouldPreventClosingWhileHovered){if(H.isHovered)return A.return();Odk(H);u$h(H)}else H.hasRegisteredHoverCallbacks&&(u$h(H),H.onSheetHoverLeft());return A.yield((U=H.getContainer())==null?void 0:U.closeSheet(),2)}if(A.nextAddress!=4)return H.resetState(),!H.pendingData||_.S("delay_sheet_open_killswitch")?A.jumpTo(0):A.yield(H.openSheet(H.pendingData.data,H.pendingData.target),4);H.pendingData=void 0;_.DO(A)})};
ps.prototype.isSheetOpen=function(){var H=this,U,A;return _.u(function(M){return M.return((A=(U=H.getContainer())==null?void 0:U.isSheetOpen())!=null?A:!1)})};
ps.prototype.resetState=function(){this.currentTarget=void 0;this.shouldPreventClosingWhileHovered=this.isHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.hoverLeaveCallback=this.hoverEnterCallback=void 0};
var Odk=function(H){var U;(U=H.currentTarget)==null||U.removeEventListener("mouseenter",H.onTargetHoverEntered);var A;(A=H.currentTarget)==null||A.removeEventListener("mouseleave",H.onTargetHoverLeft)},Zdh=function(H){var U,A=(U=H.getContainer())==null?void 0:U.getSheetContainerElement();
A==null||A.addEventListener("mouseenter",H.onSheetHoverEntered);A==null||A.addEventListener("mouseleave",H.onSheetHoverLeft)},u$h=function(H){var U,A=(U=H.getContainer())==null?void 0:U.getSheetContainerElement();
A==null||A.removeEventListener("mouseenter",H.onSheetHoverEntered);A==null||A.removeEventListener("mouseleave",H.onSheetHoverLeft)},BNy=function(H,U){if(!_.S("web_parent_target_for_sheets"))return U;
var A,M;return(M=(A=H.getContainer())==null?void 0:A.getParentTarget(U))!=null?M:U};var Bl=window.documentPictureInPicture;var C4M=_.NP(["dark"]),tWM=_.NP(["system-icons"]),c3E=_.NP(["typography"]),y3K=_.NP(["lang"]),Bfc=_.NP(["style"]),gr_=_.NP(["dir"]),aIF=_.NP(["rounded-container"]),xi4=_.NP(["style"]),epF=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Ls=function(H){this.JSC$19004_clientRoot=H;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Ls.prototype.openWindow=function(H){var U=this,A,M;return _.u(function(W){switch(W.nextAddress){case 1:if(!Bl||!Bl||!mV()||U.currentPipWindow)return W.return(!1);_.zj(W,2);return W.yield((M=Bl?Bl:null)==null?void 0:M.requestWindow(H),4);case 4:A=W.yieldResult;_.xD(W,3);break;case 2:return _.eG(W),W.return(!1);case 3:if(!A)return W.return(!1);A.addEventListener("pagehide",function(){JaB(U)});
A.addEventListener("resize",U.handlePipWindowResize);r3F(A);$i7(A);yp8(A);return W.yield(mic(A),5);case 5:if(!pM7())return W.return(!1);U.currentPipWindow=A;U.JSC$19004_eventForwarder=Di7(A,U.JSC$19004_clientRoot);U.pipWindowResizeDelay=new _.GS(function(){U.currentPipWindow&&_.yr(U.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.QT(U.currentPipWindow.innerWidth,U.currentPipWindow.innerHeight)])},A);
U.pipWindowResizeDelay.start();return W.return(!0)}})};
Ls.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var JaB=function(H){if(H.currentPipWindow){var U,A;(U=Bl?Bl:null)==null||(A=U.window)==null||A.close();H.currentPipWindow.removeEventListener("resize",H.handlePipWindowResize);var M;(M=H.pipWindowResizeDelay)==null||M.dispose();H.pipWindowResizeDelay=void 0;var W;(W=H.JSC$19004_eventForwarder)==null||W.stop();H.JSC$19004_eventForwarder=void 0;U=_.b(H.onCloseCallbacks);for(A=U.next();!A.done;A=U.next())A=A.value,A();H.onCloseCallbacks=[];H.currentPipWindow=null}};
Ls.prototype.getWindow=function(){return this.currentPipWindow};
var K4B=function(H,U){var A;(A=H.onCloseCallbacks)==null||A.push(U)};
Ls.prototype.pictureInPictureSupported=function(){return!(!Bl||!Bl)&&mV()};
_.D5.Object.defineProperties(Ls.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Ls[Ga]=[yY3];var op7=new _.g3("PICTURE_IN_PICTURE_CONTROLLER");var lI8=function(H,U){this.lengthY=this.lengthX=0;this.lengthX=U.x-H.x;this.lengthY=U.y-H.y};var F4y=function(){},vZ5=function(H,U){var A;
(A=H.headerElement)==null||A.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:U}))};var PB5=function(){};
PB5.prototype.openPopup=function(H,U,A,M){var W=this,w;return _.u(function(d){if(!W.container)return d.return();w={openPopupAction:{popup:U,popupType:A,uniqueId:H}};return d.return(W.container.handleOpenPopupAction(w,M))})};
PB5.prototype.closePopup=function(H){this.container&&this.container.closePopup(H)};var snY=function(){this.openTunnels=new Map},mcK=function(H,U,A){if(hpV(A)){var M=_.TZ(A,"gclid");
A={handleEvent:function(O){U&&!U.closed&&typeof U.postMessage==="function"&&O&&O.origin&&O.source===U&&O.data&&O.data.action==="gcl_setup"&&U.postMessage(Object.assign({},{action:"gcl_transfer"},M&&{gclid:M},{gadSource:2}),O.origin)}};
for(var W=_.b(H.openTunnels),w=W.next();!w.done;w=W.next()){var d=_.b(w.value);w=d.next().value;d=d.next().value;if(w.closed)try{window.removeEventListener("message",d),H.openTunnels.delete(w)}catch(O){_.sD(O)}}U&&H.openTunnels.size<15&&(H.openTunnels.set(U,A),window.addEventListener("message",A))}};var npf=function(){this.clientParams=new Map},mSX=function(H){for(var U=_.b(H.clientParams.keys()),A=U.next();!A.done;A=U.next())A=A.value,A.startsWith("yt-mini-app-share")&&H.clientParams.delete(A)};var NPf=function(H,U){_.XG.call(this);var A=this;this.shortsController=H;this.storeWithShorts=U;H=_.It(this.storeWithShorts,_.k5F,function(M){if(M){var W,w=(W=A.shortsController.getRoot())==null?void 0:W.getPlayer(),d;(W=(d=A.shortsController.alternativePlayerContainerElement)==null?void 0:d.getPlayerContainer())&&(w==null||w.appendTo(W))}else{var O;d=(O=A.shortsController.alternativePlayerContainerElement)==null?void 0:O.getPlayerContainer().querySelector("#player");W=A.shortsController.activeIndex;
(O=(w=A.shortsController.getRoot())==null?void 0:w.querySelector('ytd-reel-video-renderer[id="'+W+'"] #player-container'))&&(d==null||d.appendTo(O,void 0,!0))}});
this.addOnDisposeCallback(H)};
_.R(NPf,_.XG);var Rs=function(H,U,A,M){var W=this;this.storeWithShorts=H;this.ephemeralResponseStore=U;this.innertubeTransportService=A;this.innertubeTransportLoader=M;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Gk(_.aR);this.isShortsPipActive=_.Gk(_.xC);this.nextReelVe=_.ts(56921);this.prevReelVe=_.ts(56922);this.backButtonVe=_.ts(22156);this.TEST_ONLY={getActiveModules:function(){return W.activeModules}}},Sm5=function(H){H.unsubscribeFromStore=
_.It(H.storeWithShorts,_.hiK,function(U){H.initOrDisposeActiveModules(U);
!U&&H.storeWithShorts.getState().shorts.isFullscreen&&(_.R2(document.documentElement),H.storeWithShorts.dispatch(_.Xvg(!1)))});
H.initOrDisposeActiveModules(_.hiK(H.storeWithShorts.getState()))},BG5,rDj,pe7;
Rs.prototype.initOrDisposeActiveModules=function(H){H?this.activeModules.push(new NPf(this,this.storeWithShorts)):(_.Cp(this.activeModules),this.activeModules.length=0)};
Rs.prototype.registerRootElement=function(H){this.rootElement=H;Sm5(this)};
Rs.prototype.getRoot=function(){return this.rootElement};
Rs.prototype.setActiveIndex=function(H){this.activeIndex=H};
_.zFB=function(H,U){var A,M,W,w,d,O,f;return _.u(function(J){switch(J.nextAddress){case 1:return A=new xE,(M=A.JSC$14485_getStoreKey(U))&&H.ephemeralResponseStore.has(M)?J.yield(H.ephemeralResponseStore.get(M),7):J.yield(pe7(H,U),4);case 4:W=J.yieldResult;if(!M){J.jumpTo(3);break}w=zB(W,3600);return J.yield(H.ephemeralResponseStore.put(M,new _.$0(w)),3);case 7:W=(d=J.yieldResult)==null?void 0:_.xj(d);case 3:return((O=W)==null?0:O.replacementEndpoint)&&(f=_.p(W.replacementEndpoint,_.kO))&&W.sequenceContinuation&&
(f.sequenceParams=W.sequenceContinuation),J.return(W)}})};
BG5=function(H,U){U=(new zA).JSC$14485_getStoreKey(U);return!!U&&H.ephemeralResponseStore.has(U)};
rDj=function(H,U,A){var M,W,w,d,O;_.u(function(f){if(f.nextAddress==1){M=new zA;W=M.JSC$14485_getStoreKey(U);if(!W)return f.return();if(A.reelWatchSequenceResponse)return w=zB(A.reelWatchSequenceResponse,3600),H.ephemeralResponseStore.put(W,new _.$0(w)),f.jumpTo(0);if(!H.ephemeralResponseStore.has(W))return f.jumpTo(0);O=A;return f.yield(H.ephemeralResponseStore.get(W),4)}O.reelWatchSequenceResponse=(d=f.yieldResult)==null?void 0:_.xj(d);_.DO(f)})};
pe7=function(H,U){var A=A===void 0?{}:A;var M,W,w;return _.u(function(d){switch(d.nextAddress){case 1:if(H.innertubeTransportService){M=H.innertubeTransportService;d.jumpTo(2);break}if(!H.innertubeTransportLoader){_.za(Error("yj"));d.jumpTo(2);break}return d.yield(H.innertubeTransportLoader(),4);case 4:M=d.yieldResult;case 2:return d.yield((W=M)==null?void 0:_.Js(W,U,A),5);case 5:return w=d.yieldResult,d.return(w)}})};
_.D5.Object.defineProperties(Rs.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
Rs[Ga]=[LPj,_.Da,_.$V(_.IE),_.$V($Nh)];_.L4j=new _.g3("STORAGE_MANAGER_TOKEN");var Kr8=["touchmove","scroll"];var Rkj=!1;var QW4=!1;var Jm7={onSpanEnd:function(H){H.parentId==null&&(Rkj||(jWV(),setInterval(jWV,6E5),Rkj=!0),HDE(H,"web_tracing_action"))}};var wH_=URL.createObjectURL;var ZD4,Ep5={traceAllComponents:_.S("web_tracing_all_components"),exportToCsi:_.S("web_tracing_export_to_csi"),enabledSpansArray:_.v5("web_tracing_enabled_spans"),exportToDevTools:_.S("web_tracing_export_to_devtools"),maxBreadcrumbs:_.hr("tel_max_breadcrumbs",0)};ZD4=new WrE(Ep5);var fRc=_.S("web_shorts_enable_tracing");var mf5=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},gp$;
mf5.prototype.enqueue=function(H,U){U===1?this.currentPersistentToast=H:this.queue.push(H);_.aj5(this)};
_.aj5=function(H){var U;(U=H.currentToast)!=null&&U.isOpened()||(H.queue.length?(H.currentToast=H.queue.shift(),H.currentToast.open()):H.currentPersistentToast&&H.currentPersistentToast.open())};_.Ef=new _.g3("TOAST_MANAGER_TOKEN");var xf5=new _.g3("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var zk7=new _.g3("VIEW_TRANSITION_COORDINATOR_TOKEN");var CB5=function(H){this.config=H;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;H=_.b(H.transitionConfigs);for(var U=H.next();!U.done;U=H.next())U=_.b(U.value).next().value,this.transitionTasksMap.set(U,[])};
CB5.prototype.registerElement=function(H,U,A){A=A===void 0?!1:A;for(var M=_.b(Object.keys(U)),W=M.next(),w={};!W.done;w={viewTransitionName:void 0},W=M.next()){W=W.value;w.viewTransitionName=U[W];var d=this.elementTasksMap.get(H),O=void 0;if((O=d)==null?0:O.has(W)){_.n5(new _.bD("Element already registered for transition",H.tagName,W));break}d=d||new Map;d.set(W,{beforeTransition:function(f){return function(){H.style.viewTransitionName=f.viewTransitionName}}(w),
afterTransition:function(){H.style.viewTransitionName&&(H.style.viewTransitionName="")},
runOnce:A});this.elementTasksMap.set(H,d)}};
_.bA=function(H,U){var A=H.elementTasksMap.get(U);A&&(A.clear(),A.size===0&&H.elementTasksMap.delete(U))};
CB5[Ga]=[xf5];var ca8=_.r(function(H){var U=_.nA("yt-expandable-metadata-header-view-model"),A=_.c$(function(M){_.uZ(_.k$(),{data:H.data()});if(!_.Uy(_.Hq(M),U.value,["A".toString(),"BUTTON".toString()])){var W;(W=H.expandedCallback)==null||W.call(H,!1)}});
return _.Z("yt-expandable-metadata-header-view-model",{el:U,class:"ytExpandableMetadataHeaderViewModelHost"},_.Z(_.K,{cond:function(){return H.expanded()},
then:function(){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":A},_.Z("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.Z(_.K,{cond:function(){return H.data().expandedTitleImage},
then:function(M){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.Z(_.nG,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:M}))}}),_.Z("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.Z("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.Z(_.Pb,{text:function(){return H.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.Z(_.Pb,{text:function(){return H.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.Z(_.Pb,{text:function(){return H.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.Z("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.Z(_.YY,{data:function(){return H.data().infoButton}},{buttonViewModel:_.yJ}),_.Z(_.YY,{data:function(){return H.data().collapseButton}},{buttonViewModel:function(M){return _.Z(_.yJ,{data:M.data,
onClick:function(){var W;(W=H.expandedCallback)==null||W.call(H,!1)}})}})))},
else:function(){return _.Z(tMh,Object.assign({},H))}}))},"zg"),yap=_.r(function(H){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.Z(_.K,{cond:function(){return H.data().collapsedLabelImage},
then:function(U){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.Z(_.nG,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:U,alt:""}))}}),_.Z(_.Pb,{text:function(){return H.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Ag"),tMh=_.r(function(H){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.c$(function(){_.uZ(_.k$(),{data:H.data()});var U;(U=H.expandedCallback)==null||U.call(H,!0)})},_.Z("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.Z(_.K,{cond:function(){return H.data().collapsedImage},
then:function(U){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.Z(_.nG,{height:20,preserveHeight:!0,preserveWidth:!0,data:U,alt:""}))}}),_.Z(_.K,{cond:function(){return H.data().showLeadingCollapsedLabel},
then:function(){return _.Z(yap,Object.assign({},H))}}),_.Z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.Z(_.Pb,{text:function(){return H.data().collapsedTitle}}))),_.Z("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.Z(_.K,{cond:function(){return!H.data().showLeadingCollapsedLabel},
then:function(){return _.Z(yap,Object.assign({},H))}}),_.Z(_.YY,{data:function(){return H.data().infoButton}},{buttonViewModel:_.yJ}),_.Z(_.YY,{data:function(){return H.data().expandButton}},{buttonViewModel:function(U){var A=U.data;
return _.Z(_.yJ,{data:A,onClick:function(){_.uZ(_.k$(),{data:A});var M;(M=H.expandedCallback)==null||M.call(H,!0)}})}})))},"Bg");_.BP5=_.r(function(H){var U=_.b(_.md(function(){return H.data().initiallyExpanded})),A=U.next().value,M=U.next().value,W,w=(W=_.lx().resolve(_.$V(_.qF)))==null?void 0:W(),d=function(){var O=H.data().colorData;
if(O)return w?O==null?void 0:O.darkColorPalette:O==null?void 0:O.lightColorPalette};
return _.Z("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.rA({"background-color":function(){var O=d();return(O==null?0:O.section2Color)?_.bN(O.section2Color):""}})},_.Z(_.YY,{data:function(){return H.data().header}},{expandableMetadataHeaderViewModel:function(O){return _.Z(ca8,{data:O.data,
expanded:function(){return!!A()},
expandedCallback:function(f){M(f)}})}}),_.Z(_.K,{cond:function(){return A()},
then:function(){return _.Z("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.Z(_.YY,{data:function(){return H.data().expandedContent}},{horizontalShelfViewModel:function(O){return _.Z(_.NH,{data:O.data,
includeMargin:!0,forceNarrowLayout:!0,palette:d})},
videoSummaryContentViewModel:function(O){return _.Z(LWK,{data:O.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(O){return _.Z(_.YN,{data:O.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(O){return _.Z(_.o6,{data:O.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.Z(_.YY,{data:function(){return H.data().expandedBottomButtons}},{buttonViewModel:function(O){return _.Z("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.Z(_.yJ,{data:O.data}))}}))}}))},"Cg");var ra7=_.r(function(H){var U=H.text;var A=H.marqueeSpacing;var M=H.scrollDelay;var W=H.scrollDuration;var w=H.enableMarqueeScroll;H=H.large;var d=_.b(_.iB(!1,void 0,"WyNYFf")),O=d.next().value,f=d.next().value,J=_.b(_.iB(0,void 0,"OoTdhe"));d=J.next().value;var F=J.next().value,P=_.nA("marquee-scroll");J=_.nA("div");var n=_.nA("span"),N=_.lx().resolve(_.JF);_.Em(function(){if(w()){var z=n.value.getBoundingClientRect().width,c=P.value.getBoundingClientRect().width;if(z>c){var C=(N==="ltr"?-1:1)*(z+
(A?A():16));Promise.resolve().then(function(){f(!0);F(C)})}}},"dv0Anf");
var L={},m={};return _.Z("marquee-scroll",{class:_.CG("ytMarqueeScrollHost",(L.ytMarqueeScrollHostLarge=H,L)),el:P},_.Z("div",{id:"marquee-scroll-inner-container",class:_.CG("ytMarqueeScrollInnerContainer",(m.ytMarqueeScrollAnimationEnabled=function(){return O()},m)),
el:J,style:_.rA({gap:A?(0,_.JQ)(A):"16px","animation-duration":W?gIK(W):"16s","animation-delay":M?gIK(M):"3s","--marquee-translate":(0,_.JQ)(d)})},_.Z("span",{el:n,dir:"auto"},_.Z(_.Pb,{text:U,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.Z(_.K,{cond:O,then:function(){return _.Z("span",{"aria-hidden":"true",dir:"auto"},_.Z(_.Pb,{text:U,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Eg");_.ek8=_.r(function(H){var U=H.data;var A=H.overlayDensity;H=_.c$(function(){U().onTapCommand&&_.uj(U().onTapCommand);return!1});
var M=_.VU(),W=function(){return(A==null?void 0:A())===1?22:16},w={};
return _.Z("reel-sound-metadata-view-model",{class:_.CG("ytReelSoundMetadataViewModelHost",(w.ytReelSoundMetadataViewModelHostLarge=function(){return(A==null?void 0:A())===1},w)),
"on:click":H,tabindex:0,role:"button","on:keydown":M},_.Z("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.Z(_.K,{cond:function(){return U().musicIcon},
then:function(d){return _.Z(_.nG,{data:d,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:W})}}),_.Z("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.Z(ra7,{text:function(){return U().soundMetadata},
enableMarqueeScroll:function(){return!!U().enableMarqueeScroll},
large:function(){return(A==null?void 0:A())===1}}))))},"Fg");var Df5,$fB,mD,qmp,ki$,YmY,jnh,TP7;Df5=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];$fB=_.hr("wil_icon_max_concurrent_fetches",Infinity);
mD=function(H,U,A){var M=this;this.iconSet=H;this.appDirection=U;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Mr.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.S("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.S("wil_icon_network_first");this.renderWhenIdle=_.S("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.S("wil_icon_load_immediately");this.isPurging=!1;H=function(){M.cacheStorageAvailable&&(M.cacheStorageAsync=_.Mr.caches.open("yt-icons").then(function(w){return M.cacheStorageSync=w}).catch(function(){M.cacheStorageAvailable=!1}))};
A=(A==null?void 0:A())||{};A=_.b(Object.entries(A));for(U=A.next();!U.done;U=A.next()){var W=_.b(U.value);U=W.next().value;W=W.next().value;W=dD(W);ljh(W);this.iconCache[U]=W.cloneNode(!0)}this.isPurging=Gi5(this);this.isPurging instanceof Promise?this.isPurging.then(H):H()};
_.Yft=function(H,U){var A=H.resolveIcon(U);return A?H.renderingMode===1?YmY(H,A,H.renderingMode):(U=H.iconCache[A.url])?(U=U.cloneNode(!0),qmp(H,U),YmY(H,A,H.renderingMode,U)):_.hkf(H,A).then(function(M){var W=M?0:1;qmp(H,M);return YmY(H,A,W,M)}):(_.n5(new _.bD("Icon not found",{iconShape:U})),function(){})};
qmp=function(H,U){if(U){H.counter+=1;H="_yt"+H.counter;U=[U].concat(_.vI(U.getElementsByTagName("*")));U=_.b(U);for(var A=U.next();!A.done;A=U.next())if(A=A.value,A.tagName==="style"&&A.textContent)A.textContent=ki$(A.textContent,H,!0);else for(var M=_.b(A.attributes),W=M.next();!W.done;W=M.next()){W=W.value;W.name==="id"&&(W.value+=H);["mask","fill","clip-path"].includes(W.name)&&(W.value=ki$(W.value,H));if(W.name==="style"){var w=A.style;try{w.cssText=ki$(w.cssText,H,!0)}catch(F){var d=void 0,O=
void 0,f=void 0,J=void 0;g5({error:((d=F)==null?void 0:(f=(O=d).toString)==null?void 0:f.call(O))||"",el:A.outerHTML,style:!!w,cssText:(J=w)==null?void 0:J.cssText})}}W.name==="xlink:href"&&(W.value=W.value.replace(/#(.*)/,"#$1"+H))}}};
ki$=function(H,U,A){var M=/url\(["']?#(.*?)["']?\)/;(A===void 0?0:A)&&(M=/url\(["']?#(.*?)["']?\)/g);return H.replace(M,"url(#$1"+U+")")};
YmY=function(H,U,A,M){return function(W,w){var d;var O=Object.assign({},{iconWidth:U.size+"px",iconHeight:U.size+"px",iconDisplay:"block"},w,{iconColor:(d=w==null?void 0:w.iconColor)!=null?d:"currentcolor"});d=_.Q9("DIV");w=O.iconColor;var f=O.iconFilter;O="width: "+O.iconWidth+"; height: "+O.iconHeight+"; display: "+O.iconDisplay+";";f&&(O+=" filter: "+f+";");A===0&&(O+=" fill: "+w+";");A===1&&(f=U.url,O+=" -webkit-mask: url("+f+") no-repeat center / cover; mask: url("+(f+") no-repeat center / cover; background-color: ")+
w);U.allowMirroring&&H.appDirection==="rtl"&&(O+=" transform: scale(-1, 1); transform-origin: center center;");d.setAttribute("style",O);A===0&&M&&d.appendChild(M);W.appendChild(d)}};
_.hkf=function(H,U){var A,M,W;return _.u(function(w){A=function(d){return A$(d)};
M=U.url;if(!vpp(M))throw Error("Bj");W=TP7(H,M);return w.return(W.then(function(d){return d.clone().text()}).then(function(d){var O=A(d);
d=U.size;var f=_.Q9("DIV");_.KU(f,O);O=_.U5(f.firstElementChild!==void 0?f.firstElementChild:_.SA3(f.firstChild,!0));d=ljh(O,d);H.iconCache[M]=d.cloneNode(!0);delete H.responsePromises[M];return d}).catch(function(){}))})};
jnh=function(H){var U,A=(U=H.requestAninmationFrameResolver)==null?void 0:U.promise;A||(H.requestAninmationFrameResolver=new _.r1,A=H.requestAninmationFrameResolver.promise,_.Mr.requestAnimationFrame(function(){var M;(M=H.requestAninmationFrameResolver)==null||M.resolve();H.requestAninmationFrameResolver=null}));
return A};
TP7=function(H,U){var A,M;return _.u(function(W){if(W.nextAddress==1)return H.waitForAnimationFrame?W.yield(jnh(H),2):W.jumpTo(2);A=H.responsePromises[U];A||(M=function(){var w,d,O;return _.u(function(f){switch(f.nextAddress){case 1:if(!H.cacheStorageAvailable){w=void 0;f.jumpTo(2);break}if(d=H.cacheStorageSync){f.jumpTo(3);break}return f.yield(H.cacheStorageAsync,4);case 4:d=f.yieldResult;case 3:w=d;case 2:return O=w,H.isNetworkFirstStrategy?f.return(H.fetchAndUpdateCache(U,O).catch(H.getCacheStorageResponse.bind(H,
U,O))):f.return(H.getCacheStorageResponse(U,O).catch(H.fetchAndUpdateCache.bind(H,U,O)))}})},A=H.renderWhenIdle?new Promise(function(w,d){_.bM(_.Fl,function(){M().then(w).catch(d)},10)}):M(),H.responsePromises[U]=A);
return W.return(A.catch(function(w){delete H.responsePromises[U];g5({error:(w==null?0:w.toString)?w.toString():"",url:U});throw w;}))})};
mD.prototype.fetchAndUpdateCache=function(H,U){var A=this;return _.u(function(M){return M.return(IjB(A,H).then(function(W){Qnh(A,H,W,U);return W}))})};
var IjB=function(H,U){var A;return _.u(function(M){if(H.numFetches<$fB)return H.numFetches+=1,M.return(VMm(H,U).finally(function(){--H.numFetches;if(Object.keys(H.queuedResponseResolvers).length){var W=Object.keys(H.queuedResponseResolvers)[0],w=H.queuedResponseResolvers[W];delete H.queuedResponseResolvers[W];w.resolve(IjB(H,W))}}));
A=new _.r1;H.queuedResponseResolvers[U]=A;return M.return(A.promise)})},VMm=function(H,U,A){A=A===void 0?2:A;
var M;return _.u(function(W){M={credentials:"same-origin",priority:"low"};return W.return(_.Mr.fetch(U,M).then(function(w){return w.ok?w:Promise.reject(Error("Cj`"+w.status+"`"+w.statusText))}).catch(function(w){if(A>0)return VMm(H,U,A-1);
throw w;}))})},Qnh=function(H,U,A,M){_.u(function(W){return M?W.return(new Promise(function(w){_.bM(_.Fl,function(){var d,O;
return _.u(function(f){switch(f.nextAddress){case 1:if(!H.isNetworkFirstStrategy){d=void 0;f.jumpTo(2);break}return f.yield(M.match(U).catch(function(){}),3);
case 3:d=f.yieldResult;case 2:if(O=d){f.jumpTo(4);break}return f.yield(M.put(U,A.clone()).catch(function(J){g5({error:(J==null?0:J.toString)?J.toString():"",url:U})}),4);
case 4:w(),_.DO(f)}})},50)})):W.return()})};
mD.prototype.getCacheStorageResponse=function(H,U){return _.u(function(A){return U?A.return(U.match(H).then(function(M){return M&&M.ok?M:Promise.reject()})):A.return(Promise.reject())})};
var ljh=function(H,U){U===void 0||H.getAttribute("viewBox")||H.setAttribute("viewBox","0 0 "+U+" "+U);H.setAttribute("focusable","false");H.setAttribute("aria-hidden","true");U=_.S("killswitch_remove_icon_fill_color");H.getAttribute("fill")!=="currentcolor"&&H.getAttribute("fill")!=="currentColor"||U||H.removeAttribute("fill");try{H.style.pointerEvents="none",H.style.display="inherit",H.style.width="100%",H.style.height="100%"}catch(W){var A;g5({error:((A=W)==null?0:A.toString)?W.toString():""});
try{H.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(w){var M;g5({error:((M=w)==null?0:M.toString)?w.toString():""})}}return H},vpp=function(H){for(var U=_.b(Df5),A=U.next();!A.done;A=U.next())if(H.startsWith(A.value)&&H.endsWith(".svg"))return!0;
return!1};
mD.prototype.resolveIcon=function(H){return this.iconSet.resolveIcon(H)};
var g5=function(H){_.Na(new _.bD("Error in IconManager",H))},Gi5=function(H){if(_.S("wil_icons_cache_purge_killswitch"))return!1;
try{var U=_.Mr.localStorage}catch(w){return!1}if(!U||!H.cacheStorageAvailable)return!1;var A=function(w){try{var d;(d=U)==null||d.setItem("yt-icons-last-purged",w.toString())}catch(f){var O;g5({error:((O=f)==null?0:O.toString)?f.toString():""})}},M=Number(U.getItem("yt-icons-last-purged"));
if(!M)return M=new Date,M=M.setDate(M.getDate()-Math.floor(Math.random()*90+1)),A(M),!1;if(function(w,d){w=new Date(w);d=new Date(d);return d.getMonth()-w.getMonth()+12*(d.getFullYear()-w.getFullYear())}(M,Date.now())<3)return!1;
try{return _.Mr.caches.delete("yt-icons").then(function(w){w&&A(Date.now());return w}).catch(function(){return!1}).finally(function(){H.isPurging=!1})}catch(w){var W;
g5({error:((W=w)==null?0:W.toString)?w.toString():""});return!1}};
mD[Ga]=[d2h,_.JF,_.$V(ZF8)];_.HA8=function(H,U){this.iconManager=H;this.iconsToFetch=U};
_.HA8[Ga]=[_.Dd,_.$V(uIh)];var UUy=function(){};var Ary=function(H,U,A){this.requestKey=H;this.kEc=U;this.hmo=A;this.z4A=function(){return new XMLHttpRequest};
this.r5H=void 0;this.mzI=[]};
Ary.prototype.getLatestChallengeResponse=function(){return this.hmo};
var OOk=function(H,U,A){var M,W,w,d;return _.u(function(O){if(O.nextAddress==1){_.ia("attestation_challenge_fetch");_.ba("att_fs",void 0,"attestation_challenge_fetch");if(!H.r5H)throw new _.O0(9,"Missing fetcher");return O.yield(H.r5H(U,A),2)}M=O.yieldResult;w=(W=M)==null?void 0:W.bgChallenge;if(!w)throw new _.O0(15,"Missing field");H.hmo=M;H.mzI.forEach(function(f){f(M)});
d=qJc(w);_.ba("att_fc",void 0,"attestation_challenge_fetch");X_("attestation_challenge_fetch");return O.return(d)})},tCB=function(H,U){var A,M,W,w,d;
return _.u(function(O){switch(O.nextAddress){case 1:A=new Yl(100,3E5,.25,2),M=void 0;case 2:if(!(A.currBackoffCount_<10)){O.jumpTo(4);break}_.zj(O,5);if(!(A.currBackoffCount_>0)){O.jumpTo(7);break}return O.yield(Fr4(A.getValue()),7);case 7:return O.yield(Mym(H,U),9);case 9:return W=O.yieldResult,O.return(W);case 5:w=_.eG(O);w instanceof _.O0?M=w:(d=w instanceof Error?w.message:"Unknown",M=new _.O0(9,d));Smg(A);O.jumpTo(2);break;case 4:if(M)throw M;throw new _.O0(9,"Unknown error");}})},Mym=function(H,
U){U=Qhz(Vyw(new IMK,U),H.requestKey);
var A=new _.r1,M=H.z4A();M.open("POST",H.kEc);M.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");M.setRequestHeader("Content-Type","application/json+protobuf");M.onload=function(){if(_.mYM(M)){var W=dsh(M.responseText);A.resolve(W)}else A.reject(new _.O0(_.qWN(_.Ta(M)),M.statusText))};
M.onerror=function(){A.reject(new _.O0(_.qWN(_.Ta(M)),M.statusText))};
M.send(U.serialize());return A.promise};var w55=function(H){this.networkStatusManager=H;this.isDownloaded=QFM===void 0?function(){return!1}:QFM;
this.isReady=!1;this.pb1=WTh(this)},WTh=function(H){var U;
return _.u(function(A){if(A.nextAddress==1)return A.yield(SWE(),2);if(A.nextAddress!=3)return U=A.yieldResult,A.yield(R8y(U),3);H.ey=A.yieldResult;sMc(H.ey).then(function(){H.isReady=!0});
return A.return(H.ey)})},X5h=function(H,U,A){H.ey?(H=H.ey.pL1({f2:A,
w9f:!0,jGV:!0}),U.serviceIntegrityDimensions={poToken:H}):_.sD(Error("Ej"))};
w55.prototype.processContext=function(H){var U=this;if(H.input.match(_.RE(Wmw)))var A=H.innerTubeRequest;else if(H.input.match(_.RE(kHm)))A=H.innerTubeRequest.playerRequest;else return _.p$();var M,W=(M=A)==null?void 0:M.videoId;return!W||this.isDownloaded(A)||this.networkStatusManager&&!this.ey&&!this.networkStatusManager.isNetworkAvailable()||_.S("webpo_exit_on_net_err")&&!this.ey&&(window.bgens===1||window.bgens===3)?_.p$():this.ey?this.isReady?(X5h(this,A,W),_.p$()):new SR(sMc(this.ey).then(function(){X5h(U,
A,W)})):new SR(this.pb1.then(function(w){return _.u(function(d){if(d.nextAddress==1)return d.yield(sMc(w),2);
X5h(U,A,W);_.DO(d)})}))};var iA$=new _.g3("WEB_PO_CONTEXT_PROCESSOR");var bAY=function(H,U){var A=this;this.qgp=0;var M;this.ktT=(M=U==null?void 0:U.ktT)!=null?M:window;this.networkStatusManagerPromise=U==null?void 0:U.networkStatusManagerPromise;var W;this.requestKey=(W=U==null?void 0:U.requestKey)!=null?W:_.kV("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var w;this.iiB=(w=U==null?void 0:U.iiB)!=null?w:function(f){return new Ff(f)};
var d;M=(d=U==null?void 0:U.hoO)!=null?d:function(f,J,F){return new Ary(f,J,F)};
this.bgChallenge=qJc(H.bgChallenge);this.ttlSeconds=h7c(sa(H.challenge||""));this.nQ=M(this.requestKey,_.S("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Mr.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",H);this.pk4=U==null?void 0:U.pk4;P3c(this.nQ);var O;this.aCF=(O=U==null?void 0:U.aCF)!=null?O:function(f){_.Rc(A.ktT.document,"visibilitychange",
function(){A.ktT.document.visibilityState==="visible"&&f()})}},OAp=function(H){if(!H.vm){var U={maxAttempts:5,
xd4:H.ttlSeconds*1E3};nQM(H.ktT);H.vm=H.iiB({nQ:H.nQ,fkX:{disable:_.S("html5_web_po_disable_remote_logging"),am:"aGIf",lyn:NH_("html5_web_po_experiment_ids"),onQ:_.S("wpo_dis_lfdms")?0:1E3,fDX:function(M){var W=iPw.get(M);W||(W=new X3w(M),W=new Tg(W),iPw.set(M,W));return W}},
ic7:U,xAc:H.bgChallenge,mPQ:NZt});H.qgp=Date.now();XKK(H.vm,function(){H.qgp=Date.now()});
H.ktT.bgevmc={p:function(){var M;(M=H.vm)==null||M.pause()},
r:function(){var M;(M=H.vm)==null||M.resume()},
cr:function(){var M,W;return(W=(M=H.vm)==null?void 0:M.checkForRefresh())!=null?W:Promise.resolve()}};
EV8(H.vm,function(){return _.u(function(M){return M.return(dUh(H))})});
var A=H.jE8.bind(H);H.networkStatusManagerPromise&&H.ttlSeconds>0&&H.networkStatusManagerPromise.then(function(M){M.listen("publicytnetworkstatus-online",A)});
H.aCF(A)}};
bAY.prototype.jE8=function(){if(Date.now()>this.qgp+this.ttlSeconds*1E3){var H;(H=this.vm)==null||wKh(H)}};
var dUh=function(H){if(H.k0f)return H.k0f;if(!H.vm)throw Error("Fj");H.k0f=new St({vm:H.vm,nQ:H.nQ,oEh:!0,onError:NZt,ic7:H.pk4});return H.k0f},pHK=function(H,U){H=new bAY(H,U);
OAp(H);(U==null?0:U.yo8)||dUh(H)};var uQh=_.y8$.ephemeralActionSelector,ZAh=function(H,U){this.store=H;this.queue=[];U==null||U.addEventListener("yt-navigate-start",this.reset.bind(this))};
ZAh.prototype.enqueue=function(H){var U=H.command,A=H.durationMs,M=H.elementToFocus;var W=H.label;var w=H.elementToFocus;H.command?W=_.hP("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:W,shortcut:_.hP("SHIFT_PLUS_ENTER")}):w&&(H=W+". "+_.hP("SHIFT_PLUS_ENTER")+" for more information.",W=_.hP("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:W,shortcut:_.hP("SHIFT_PLUS_ENTER")},H));A={announcement:W,durationMs:A!=null?A:8E3};U?A.command=U:M&&(M.classList.add("ephemeral-action-focusable-element"),A.selector=M.tagName+
".ephemeral-action-focusable-element");this.queue.push(A);fMk(this)};
ZAh.prototype.activate=function(H){var U=uQh(this.store.getState());if(U){if(U==null?0:U.command)_.bj(U.command),this.store.dispatch(VYn(null));if(U==null?0:U.selector)U=document.querySelector(U.selector),_.tCE(U);H.preventDefault()}};
var fMk=function(H){if(!uQh(H.store.getState())&&H.queue.length){var U=H.queue.shift();U&&(H.previousAnnouncement===U.announcement&&(U.announcement+="\u00a0"),H.store.dispatch(VYn(U)),H.previousAnnouncement=U.announcement,H.JSC$19126_timeoutId=setTimeout(function(){if(U.selector){var A;(A=document.querySelector(U.selector))==null||A.classList.remove("ephemeral-action-focusable-element")}H.store.dispatch(VYn(null));fMk(H)},U.durationMs))}};
ZAh.prototype.reset=function(){this.JSC$19126_timeoutId&&clearTimeout(this.JSC$19126_timeoutId);this.store.dispatch(VYn(null));this.queue.length=0;this.JSC$19126_timeoutId=void 0};
ZAh[Ga]=[_.bK,_.$V(_.l1)];_.as=new _.g3("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Jr$=new _.g3("AUTH_SERVICE_TOKEN");var EQ4=_.NP(["about:blank"]),RHt;var KTX=new _.g3("API_IFRAME_TOKEN");var Z_y;Z_y=new _.g3("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.oVf=new _.g3("MISC_UI_SHARED_FLAGS_TOKEN");var FT8=function(){};
FT8.prototype.getFlag=function(H){if(H.configType!==2)throw Error("Gj");return Px5(H)};
var Px5=function(H){switch(H.flagType){case "bool":return _.S(H.flagName);case "int":return _.rm(_.hr(H.flagName));case "double":return _.hr(H.flagName);case "string":return _.kV(H.flagName);case "int32_list":return NH_(H.flagName);case "int64_list":return NH_(H.flagName).map(function(U){return _.rm(U)});
case "string_list":return _.v5(H.flagName);default:throw Error("Hj");}};var x7=function(H,U,A){U=U===void 0?{}:U;i6.call(this,A===void 0?"uninitialized":A);this.env=H;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}];U.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=U.shouldWaitOnAsyncImmediate)};
_.R(x7,i6);x7.prototype.init=function(H){var U=this,A;return _.u(function(M){if(M.nextAddress==1)return U.processPluginOptions.shouldWaitOnAsyncImmediate?M.yield(H(U.env),2):(H(U.env),M.jumpTo(2));if(M.nextAddress!=4)return U.jobSet?M.yield(U.jobSet.completedResolver.promise,4):M.jumpTo(4);A=_.sC();A.parkOrScheduleJob(function(){U.transition("rendering")},10,"ci");
_.DO(M)})};
x7.prototype.initialRender=function(H){var U=this,A;return _.u(function(M){if(M.nextAddress==1)return U.processPluginOptions.shouldWaitOnAsyncImmediate?M.yield(H(U.env),2):(H(U.env),M.jumpTo(2));if(M.nextAddress!=4)return U.jobSet?M.yield(U.jobSet.completedResolver.promise,4):M.jumpTo(4);A=_.sC();A.parkOrScheduleJob(function(){U.transition("rendered")},10,"cr");
_.DO(M)})};
x7.prototype.afterRenderImmediate=function(H){var U=this,A;return _.u(function(M){if(M.nextAddress==1)return U.processPluginOptions.shouldWaitOnAsyncImmediate?M.yield(H(U.env),2):(H(U.env),M.jumpTo(2));if(M.nextAddress!=4)return U.jobSet?M.yield(U.jobSet.completedResolver.promise,4):M.jumpTo(4);A=_.sC();A.parkOrScheduleJob(function(){U.transition("after-render-deferred")},10,"carml");
_.DO(M)})};
x7.prototype.afterRenderDeferred=function(H){var U=this;return _.u(function(A){H(U.env);_.DO(A)})};_.mT("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var shj={},nVh=(shj.rendered={priority:0,callback:function(H){t9B(H.injector.resolve(du))}},shj);var Jth=new _.g3("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),ND5=new _.g3("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var SWh=function(H){this.callbackFnMap=H;this.configMap={}};
SWh.prototype.handleResponse=function(H){var U;if(H=(U=H.responseContext)==null?void 0:U.serviceTrackingParams)for(U=_.b(H),H=U.next();!H.done;H=U.next()){H=H.value;var A=H.params,M=H.service;if(A&&M){this.configMap[M]||(this.configMap[M]=new xOH);H=this.configMap[M];var W=void 0,w=(W=this.callbackFnMap)==null?void 0:W[M];A=_.b(A);for(M=A.next();!M.done;M=A.next())W=M.value,M=W.key,W=W.value,M&&W&&(H.set(M,W),w&&w(M,W))}}};
SWh.prototype.getConfig=function(H){return this.configMap[H]||void 0};
SWh[Ga]=[_.$V(ND5)];var p5$=!1,cm8=0,xl4=null,tjN=null;var LTy=new _.g3("NETWORK_SLI_TOKEN");var RY$=function(H){this.networkSli=H};
RY$.prototype.fetch=function(H,U,A){var M=this,W;return _.u(function(w){W=EVy(M,H,U);return w.return(fetch(W).then(function(d){return M.handleResponse(d,A)}).catch(function(d){_.Na(d);
if((A==null?0:A.expectJsonStrict)&&d instanceof vs&&d.errorType===1)return Promise.reject(d)}))})};
var GAw=function(H,U,A,M){var W,w,d,O,f,J,F;return _.u(function(P){switch(P.nextAddress){case 1:return W=EVy(H,U,A),_.zj(P,2),P.yield(fetch(W),4);case 4:w=P.yieldResult;_.xD(P,3);break;case 2:throw _.eG(P),new vs(2,"Failed to parse streaming response",W.url);case 3:if(!w.redirected&&!w.ok)throw(d=H.networkSli)==null||d.failure(),new _.bD("Streaming fetch request not ok",W.url);if(!w.body)throw new _.bD("No response body in streaming response",W.url);O={};if(_.S("web_streaming_fast"))return f=w.body.getReader(),
P.return(mU$(H,f,O,M));J=w.body.pipeThrough(new TextDecoderStream).getReader();F=new _.AT;return P.return(gVh(H,J,F,FpE,O,M))}})},EVy=function(H,U,A){if(H.networkSli){var M=_.DU(_.js(U,"key"))||"/UNKNOWN_PATH";
H.networkSli.start(M)}H=A;_.S("wug_networking_gzip_request")&&(H=C07(A));return new window.Request(U,H)},mU$=function(H,U,A,M){var W,w,d,O,f,J,F,P,n,N,L,m,z,c,C,v,Y,D,h,T,WF,dK,SN,o_,PF,BF,kc,G8,Pr,Z3,Yc;
return _.u(function(sz){switch(sz.nextAddress){case 1:W=new TextDecoder("utf-8"),w=[],O=d=0,_.zj(sz,2,3);case 5:return sz.yield(U.read(),8);case 8:f=sz.yieldResult;J=f.value;if(F=f.done){P=0;if(w.length>d)for(P=w[d].length-O,n=d+1;n<w.length;n++)P+=w[n].length;P>0&&(N=ymr(w,P,d,O),L=N.indexOf(123),m=N.lastIndexOf(125),L!==-1&&m!==-1&&m>L&&(z=N.subarray(L,m+1),c=JSON.parse(W.decode(z)),FpE(A,c),C=void 0,(C=M)==null||C(A,c)));v=void 0;(v=H.networkSli)==null||v.success();return sz.return(A)}w.push(J);
Y=d;for(D=O;Y<w.length;)if(h=w[Y],T=h.indexOf(10,D),T===-1){if(Y===w.length-1)break;Y++;D=0}else{WF=Y;dK=T+1;SN=0;if(d===WF)SN=dK-O;else{SN=w[d].length-O;for(o_=d+1;o_<WF;o_++)SN+=w[o_].length;SN+=dK}PF=ymr(w,SN,d,O,WF,dK);BF=PF.indexOf(123);kc=PF.lastIndexOf(125);if(BF!==-1&&kc!==-1&&kc>BF){G8=PF.subarray(BF,kc+1);try{Pr=JSON.parse(W.decode(G8)),FpE(A,Pr),Z3=void 0,(Z3=M)==null||Z3(A,Pr)}catch(Ry){throw new vs(1,"Failed to parse streaming response object",W.decode(G8));}}d=Y;D=O=T+1;O===h.length&&
(d++,O=0,Y=d,D=0)}sz.jumpTo(5);break;case 3:_.cI(sz);U.releaseLock();_.BI(sz,0);break;case 2:Yc=_.eG(sz);if(Yc instanceof vs)throw Yc;throw new vs(1,"Failed to process streaming response");}})},gVh=function(H,U,A,M,W,w){var d,O,f,J,F,P,n,N,L;
return _.u(function(m){if(m.nextAddress==1)return m.yield(U.read(),2);d=m.yieldResult;O=d.value;if(f=d.done)return(J=H.networkSli)==null||J.success(),m.return(W);try{F=A.parse(O)}catch(z){throw new vs(1,"Failed to parse streaming response",O);}if(F!=null)for(P=_.b(F),n=P.next();!n.done;n=P.next())N=n.value,M(W,N),L=void 0,(L=w)==null||L(W,N);return m.return(gVh(H,U,A,M,W,w))})};
RY$.prototype.handleResponse=function(H,U){var A=H.text().then(function(M){if((U==null?0:U.jspbResponseCtor)&&H.ok)return OUE(U.jspbResponseCtor,M);M=M.replace(")]}'","");if((U==null?0:U.expectJsonStrict)&&M)try{var W=JSON.parse(M)}catch(d){throw new vs(1,"JSON parsing failed after fetch");}var w;return(w=W)!=null?w:JSON.parse(M)});
H.redirected||H.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),A=A.then(function(M){_.Na(new _.bD("Error: API fetch failed",H.status,H.url,M));return Object.assign({},M,{errorMetadata:{status:H.status}})}));
return A};
RY$[Ga]=[_.$V(LTy)];var aM7=new _.g3("NETWORK_MANAGER_TOKEN");var xUp=[1,2,4,8,16,30],Cx5=function(H){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=H.maxTimeMs;this.maxFrameCount=H.maxFrameCount===void 0?Math.ceil(60*H.maxTimeMs/1E3):H.maxFrameCount;H=_.b(xUp);for(var U=H.next();!U.done;U=H.next())this.brokenFrameSummarizers.push(new zYB(U.value/60*1E3))},tyf=function(H){var U=H.frameCountInternal>=H.maxFrameCount;
return H.elapsedTimeMs>=H.maxTimeMs||U};
Cx5.prototype.summarize=function(){for(var H=[],U=_.b(this.brokenFrameSummarizers),A=U.next();!A.done;A=U.next())A=A.value,A=A.brokenFrameCount!==0?{severityMs:Math.round(A.targetFrameTimeMs),eventCount:A.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(A.averageDurationBetweenEventsMs)}:void 0,A&&H.push(A);return{summaries:H,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.D5.Object.defineProperties(Cx5.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 zYB=function(H){this.targetFrameTimeMs=H;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.D5.Object.defineProperties(zYB.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var crh=function(){};
crh.prototype.start=function(H,U){var A=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var M=new Cx5({maxTimeMs:H});this.monitor=M;this.lastSummaryInternal=void 0;this.metadataToLog=U;return new Promise(function(W){var w=function(d){if(d===void 0)A.stop(),W(void 0);else if(A.monitor!==M)d=Object.assign({},M.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),W(d);else{var O=A.monitor;if(!tyf(O)){O.frameCountInternal++;if(O.prevTime===
void 0)O.startTime=d;else for(var f=d-O.prevTime,J=_.b(O.brokenFrameSummarizers),F=J.next();!F.done;F=J.next()){F=F.value;var P=F.currTimeMs;F.currTimeMs+=f;f>F.targetFrameTimeMs+2&&(F.brokenFrameCount++,F.timeOfFirstBrokenFrameMs===void 0&&(F.timeOfFirstBrokenFrameMs=P),F.timeOfLastBrokenFrameMs=P)}O.prevTime=d}tyf(A.monitor)?W(A.stop()):_.Fl.addJob(w,5,0)}};
_.Fl.addJob(w,5,0)})};
crh.prototype.stop=function(H){if(!this.monitor)return this.lastSummaryInternal;var U=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(U.monitoringDurationMs){H=H!=null?H:this.metadataToLog;var A={droppedFramesSummary:U,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};H&&(A[H.type]=H.data);_.Fx("manualSmoothnessMeasurement",A)}this.monitor=void 0;this.lastSummaryInternal=U;this.metadataToLog=void 0;return U};_.yrh=new _.g3("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var BDp;BDp=function(H){this.JSC$19168_expiringStorage=new uD(H)};
_.rrj=function(H){if(_.BZE()&&(H=_.Oq7(_.XU()+"::"+H)))return new BDp(H)};
BDp.prototype.set=function(H,U,A){A=A!==void 0?Date.now()+A:void 0;this.JSC$19168_expiringStorage.set(H,U,A)};
BDp.prototype.get=function(H){return this.JSC$19168_expiringStorage.get(H)};
BDp.prototype.remove=function(H){this.JSC$19168_expiringStorage.remove(H)};_.z3=function(){};
_.z3.getInstance=function(){var H=_.tr("ytglobal.storage_");H||(H=new _.z3,_.eC("ytglobal.storage_",H));return H};
_.z3.prototype.estimate=function(){var H,U,A;return _.u(function(M){H=navigator;return((U=H.storage)==null?0:U.estimate)?M.return(H.storage.estimate()):((A=H.webkitTemporaryStorage)==null?0:A.queryUsageAndQuota)?M.return(rm4()):M.return()})};
_.eC("ytglobal.storageClass_",_.z3);var qv_=0;var QMN=!1;var eYX=_.NP(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),DUB=_.NP(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var OpX={"/":_.jR,"/?feature=ytca":_.jR,"/feed/downloads":_.j70};var $U5=r88.continuationCommandSelector,kj=function(H,U,A){this.JSC$19183_upliftPromise=H;this.store=U;this.JSC$19183_persistentStorePromiseAccessor=A};
kj.prototype.shouldPreferLocalResponse=function(H){return H.browseId==="FEdownloads"||H.browseId==="FEsmart_downloads"&&_.S("kevlar_modern_downloads_page")?!0:!1};
kj.prototype.localInnertubeResponse=function(H){var U=this;return _.u(function(A){return H.browseId==="FEdownloads"?_.S("kevlar_modern_downloads_page")?A.return(lM7(U)):A.return(Ga7(U)):H.browseId==="FEsmart_downloads"&&_.S("kevlar_modern_downloads_page")?A.return(YWY(U)):A.return(Promise.reject(Error("Jj")))})};
kj.prototype.canProvideFallbackResponse=function(){return!0};
kj.prototype.localFallbackInnertubeResponse=function(H){var U=this,A,M,W;return _.u(function(w){switch(w.nextAddress){case 1:return w.yield(U.JSC$19183_persistentStorePromiseAccessor(),2);case 2:A=w.yieldResult;if(H.browseId!=="SPaccount_downloads"||!A){w.jumpTo(3);break}return w.yield(Ir8(A),4);case 4:if(M=w.yieldResult)return w.return(_.xj(M));case 3:return H.browseId==="FEwhat_to_watch"?w.return(qW7(U)):(W=_.S("web_offline_continuation_automatic_retry")||_.S("web_offline_continuation_retry_button"))&&
H.continuation?w.return(hYj(U)):w.return(kaB(U))}})};
var qW7=function(H){var U;return _.u(function(A){if(A.nextAddress==1)return A.yield(H.JSC$19183_upliftPromise,2);U=_.QJM(H.store.getState().entities);return U.length?A.return(vVf(H,U)):A.return(kaB(H))})},Ga7=function(H){var U,A;
return _.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$19183_upliftPromise,2);if(M.nextAddress!=3)return U=TDk([{offlineItemSectionRenderer:{}}]),M.yield(jh5(H,U),3);A=M.yieldResult;A.onResponseReceivedActions=[Df("REFRESH_DOWNLOADS")];return M.return(A)})},lM7=function(H){var U,A,M,W,w,d,O,f,J,F,P,n,N,L,m,z;
return _.u(function(c){if(c.nextAddress==1)return c.yield(H.JSC$19183_upliftPromise,2);if(c.nextAddress!=3)return U=H.store.getState(),A=U.entities,M=_.Ac(A),W=_.Mh(A),w=_.Mo4(U),d=_.Aeh(U),O=_.W$0(U),f=_.UMM(A),J=_.j9(M),F=_.WC(A),P=_.wAr(A),n=_.Xit(U),N=_.d1(U),L={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.uCV(M,W,f,P,w,d,J,F,O,n,N),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},m="",_.S("kevlar_modern_downloads_skip_downloads_title")||
(m=_.hP("DOWNLOADS",void 0,"Downloads")),c.yield(IMf(H,L,m),3);z=c.yieldResult;z.onResponseReceivedActions=[Df("REFRESH_DOWNLOADS")];return c.return(z)})},YWY=function(H){var U,A,M,W,w,d,O,f,J;
return _.u(function(F){if(F.nextAddress==1)return F.yield(H.JSC$19183_upliftPromise,2);if(F.nextAddress!=3)return U=H.store.getState(),A=U.entities,M=_.Ac(A),W=_.j9(M),w=_.WC(A),d={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.fhF(M),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},O=_.hP("SMART_DOWNLOADS",void 0,"Smart downloads"),f=d30(W,w),F.yield(IMf(H,d,O,f),3);J=F.yieldResult;J.onResponseReceivedActions=
[Df("REFRESH_DOWNLOADS")];return F.return(J)})},kaB=function(H){var U,A;
return _.u(function(M){if(M.nextAddress==1)return M.yield(ai(H.JSC$19183_upliftPromise,H.store),2);U=M.yieldResult;A=TDk([kWc(U)]);return M.return(jh5(H,A))})},hYj=function(H){var U,A,M,W;
return _.u(function(w){if(w.nextAddress==1)return U={},A=$U5(H.store.getState()),_.Ap(U,_.XA,A),w.yield(ai(H.JSC$19183_upliftPromise,H.store,U,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);M=w.yieldResult;W={};_.Ap(W,_.vGw,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:M}}}],targetId:"browse-feedFEwhat_to_watch"});return w.return({responseContext:{},onResponseReceivedActions:[W]})})},TDk=function(H){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:H}}}}]}}},vVf=function(H,U){var A,M;
return _.u(function(W){var w={contents:$C(U)};A=w&&w.contents?w:{};_.S("kevlar_modern_downloads_page")&&(A=Object.assign({},_.Jd8(U),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));M={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:A}}}]}};return W.return(jh5(H,M))})},jh5=function(H,U){var A,M;
return _.u(function(W){if(W.nextAddress==1)return W.yield(H.JSC$19183_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3)return A=W.yieldResult,W.yield(zs(A),3);M=W.yieldResult;return W.return({responseContext:{},contents:U,topbar:M})})},IMf=function(H,U,A,M){var W,w;
return _.u(function(d){if(d.nextAddress==1)return d.yield(H.JSC$19183_persistentStorePromiseAccessor(),2);if(d.nextAddress!=3)return W=d.yieldResult,d.yield(zs(W),3);w=d.yieldResult;var O=d.return;var f=A;var J=M;f=f===void 0?"":f;J=J===void 0?"":J;f={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:f}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.hP("SETTINGS",void 0,"Settings"),accessibilityText:_.hP("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:_.En("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:J}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:f};
return O.call(d,{responseContext:{},contents:U,topbar:w,header:{pageHeaderRenderer:f}})})};var Qh$=function(H){this.chunkRegistry=H};
Qh$.prototype.handleResponse=function(H){var U=this,A,M,W,w,d;return _.u(function(O){w=(W=(A=_.p(H.responseContext,ReB))==null?void 0:(M=A.webResponseContextPreloadData)==null?void 0:M.preloadMessageNames)!=null?W:[];d=lTp(U.chunkRegistry,w);return O.yield(d(),0)})};
Qh$[Ga]=[e8$];var gck=new _.g3("MSS_RESPONSE_PROCESSOR_TOKEN");var Vy7={},HOh=(Vy7.rendered={priority:0,callback:function(H){a:{var U=void 0;try{var A;b:{if(_.sZ7()){var M=_.Jj(_.XU()+"::pom");if(M){var W=new T1(M);break b}}W=void 0}var w=(A=W)==null?void 0:A.get("role_text");if(!w)break a;U={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:w}]}}}}}}catch(f){}U&&H.injector.resolve(_.YV).resolveCommand(U)}try{var d=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(d){var O=JSON.parse(d);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
O&&H.injector.resolve(_.YV).resolveCommand(O)}}catch(f){}}},Vy7);var UKm,Aj5={},MCy=(Aj5.initialized={priority:10,callback:function(){UKm=AI()}},Aj5.rendering={callback:function(H){var U;
return _.u(function(A){if(A.nextAddress==1)return A.yield(UKm,2);U=A.yieldResult;if(!U.endpoint)throw Error("Lj`"+_.Mr.location.href);wj(H,U);_.DO(A)})}},Aj5);var W68={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.vI(_.S("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},{messageRegExp:/Unexpected end of JSON input/,weight:0},{messageRegExp:/No parameters in result:/,weight:0}]),callbackWeights:[{callback:function(H){var U=H.stack;if(U.includes("chrome://")||U.includes("chrome-extension://")||H.message.includes("chrome-extension://")||U.includes("moz-extension://")||
U.includes("local.adguard.org")||U.includes("auctioneer3.50million.club")||U.includes("youtubedownloader")||U.includes("youtube_home_page")||U.includes("is_youtube_video_no_longer_available")||U.includes("switchScreenSizeHack")||U.includes("yt_main_big_banner.js")||U.includes("YouTubeCenter.js")||U.includes("/mytube.js")||U.includes("JSON.parseWrapper")||U.includes("/inj_js/common.js")||U.includes("firebug-lite")||U.includes(".repl.co/")||U.includes("linkfix")||U.includes("playAfterAd")||H.message.includes("Access is denied for this document")&&
U.includes("<anonymous>")||H.fileName==="user-script"||H.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&U.includes("<anonymous>"))return!0;if(U.includes("https://www.youtube.com"))return!1;H=U.split("\n");if(!H.length)return!1;if(H.length<=3&&U.includes("s.onloadeddata"))return!0;U=0;for(var A=_.b(H),M=A.next();!M.done;M=A.next())M=M.value,(M.includes("https://")||M.includes("http://"))&&U++;return U/H.length>.95},
weight:0},{callback:function(H){return H.message==="Unknown Error"&&H.name.indexOf("NS_")===0},
weight:100},{callback:function(H){if(!_.Bu)return!1;var U=H.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||H.message.includes("available to complete this operation"),A=H.stack.includes("webcomponents")&&H.message==="Object doesn't support this action";H=H.message.includes("object that does not implement interface Element");return U||A||H},
weight:0},{callback:function(H){return H.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(H){return H.message==="Operation is not supported"&&(H.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(H){return H.stack.includes("eval code (eval (code:1:1)")||H.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(H){return H.message.includes("Permission denied")&&H.stack.includes("this.domHandler")?!0:H.name.includes("TypeError")&&H.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(H){if(!H.stack)return!1;var U=H.stack.trim().split("\n");U.length&&U[0].endsWith("Error: "+H.message)&&U.shift();U.length&&U[U.length-1].includes("at window.onerror (")&&U.pop();if(!U.length)return!0;if(H.message==="Script error.")return U[0].includes("www.youtube.com")||U.length>=2&&U[0].startsWith("at new")&&U[1].startsWith("at window.onerror");if(H.message==="Unexpected token")return!0;H=_.b(U);for(U=H.next();!U.done;U=H.next())if(U=U.value,!(U.includes("<anonymous>")||
U.startsWith("load@")||U.startsWith("global code@")||U.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(H){return H.message==="Cannot read property 'experiments'"&&H.stack.includes("/s/player/")},
weight:500},{callback:function(H){return H.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(H){return H.stack.includes("/embed.js")?(H.params&&H.params&&(H.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.S("use_error_suppression"))var H=_.gD("SUPPRESS_CLIENT_ERRORS",!1);else{if(H=_.DB)H=/Chrome\/(\d+)/.exec(_.FE()),H=(H?parseFloat(H[1]):NaN)>=66;H=!(H||_.ed&&_.rj(65)||_.pO&&_.rj(12.1)||BK&&_.rj(79))}return H},
weight:500}]};var wKp={},XKf=(wKp.initialized={priority:10,callback:function(H){H.injector.addProvider({provide:yY3,useValue:H.root});H.injector.addProvider({provide:scp,useValue:M5r});H.injector.addProvider({provide:nR8,useValue:W68});var U={};H.injector.addProvider((U.provide=NOf,U.useFactory=function(A,M){return function(){KNh(A,M)}},U[Ga]=[scp,
nR8],U));H.injector.addProvider({provide:h1,useClass:h1})}},wKp);var iOk={},bOY=(iOk.initialized={priority:3,callback:function(){var H;if(H=Mp_()){H=H.replace("/",".");var U=_.TR();U.set("tz",H);U.save();H=!0}else H=!1;H||(H=_.TR(),H.set("utco",-Math.floor((new Date).getTimezoneOffset())),H.save())}},iOk);var dKy={},OO8=(dKy.initialized={priority:10,callback:function(H){H.injector.resolve(h1).start();H=_.nf();var U=_.xV("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.xV("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.xV("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.xV("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.lX(_.dJN(),{mainAppWeb:Object.assign({},H,{pageType:U})});_.lX(uj7(),{mainAppWeb:Object.assign({},H,{pageType:U})});
_.lX(Z$t(),{mainAppWeb:H});_.lX(fJN(),{mainAppWeb:H});qH3(function(){_.Gs(Z$t(),"FAILURE");_.Gs(fJN(),"FAILURE")});
uH4();ZM0();OXc()}},dKy);var uUX={},ZOk=(uUX.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.ba("dl"),_.sC().processSignal("pcl");else{var H=function(){_.ba("dl");_.sC().processSignal("pcl");window.removeEventListener("load",H)};
window.addEventListener("load",H)}}},uUX);var f05={},Jjf=(f05.rendering={priority:0,callback:function(){var H=_.sC();H.parkOrScheduleJob(function(){H.processSignal("eocs")},10,"eor",5E3)}},f05);var K6h=function(){};
_.R(K6h,nQ);
K6h.prototype.resolveCommand=function(H,U){var A,M,W,w,d,O,f,J;return _.u(function(F){W=(A=_.p(H,_.oyB))==null?void 0:(M=A.dialog)==null?void 0:M.commentReplyDialogRenderer;if(!W)throw new _.bD("No dialog in createCommentReplyDialogEndpoint");d=(w=U.form)==null?void 0:w.event;if(!d)throw new _.bD("Event not passed in when resolving command");O=_.b(d.composedPath());for(f=O.next();!f.done;f=O.next())if(J=f.value,J.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||J.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return J.showReplyDialog(W),F.return();
_.DO(F)})};var oDy=function(){};
_.R(oDy,nQ);oDy.prototype.resolveCommand=function(){var H;return _.u(function(U){if(H=document.getElementById("creator-chatbots-panel"))H.style.display="none";_.DO(U)})};var F6h=function(){};
_.R(F6h,nQ);F6h.prototype.resolveCommand=function(H){var U,A,M,W,w,d,O;return _.u(function(f){switch(f.nextAddress){case 1:return U=_.p(H,myg),((A=U)==null?void 0:A.surface)==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"?f.yield((0,_.YX)("NSzT5"),6):(M=U)!=null&&M.externalChannelId?f.yield((0,_.YX)("NSzT5"),4):f.return();case 4:return W=_.PDX,d=(w=U.forceInstall)!=null?w:!1,f.yield(W(U.externalChannelId,d,U.surface),0);case 6:return O=_.PDX,f.yield(O("",!1,U.surface),7);case 7:return f.return()}})};var Cs=function(H){this.JSC$19213_pageRequestService=H;this.JSC$19213_prefetchCoordinator=XJB()};
_.R(Cs,nQ);Cs.prototype.resolveCommand=function(H){var U=this,A,M,W,w;return _.u(function(d){if(d.nextAddress==1){A=_.p(H,jfz);if((M=A)==null||!M.taskId)throw Error("Mj");W=A.taskId;_.zj(d,2);return d.yield(_.cD$(U.JSC$19213_pageRequestService,H,{},"").then(function(O){if(!O)throw Error("Nj");},function(O){throw Error("Oj`"+O);
}),4)}if(d.nextAddress!=2)return dg$(U.JSC$19213_prefetchCoordinator,W),_.xD(d,0);
w=_.eG(d);uO(U.JSC$19213_prefetchCoordinator,W,w);_.DO(d)})};
Cs[Ga]=[_.UP];var tv=function(H,U){this.innertubeTransportService=H;this.JSC$19217_commandHandler=U};
_.R(tv,nQ);tv.prototype.resolveCommand=function(H){var U=this,A,M,W;return _.u(function(w){if(w.nextAddress==1){A=_.p(H,I_z);if(A.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||A.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")M=A.boolValue?2:1,_.at.getInstance().setState(M,!0,!0);return w.yield(_.Js(U.innertubeTransportService,H),2)}W=w.yieldResult;sdB(U,W);_.DO(w)})};
var sdB=function(H,U){U.actions&&U.actions.forEach(function(A){H.JSC$19217_commandHandler.resolveCommand(A)})};
tv[Ga]=[_.IE,_.YV];var cD={},yn=(cD.addToPlaylistEndpoint=Ru(Lw),cD.addToToastAction=Ru(yl),cD.adsControlFlowOpportunityReceivedCommand=Ru(W9),cD.audioTrackSelectActionCommand=Ru($d),cD.backgroundAudioPlaybackCommand=Ru(Yd),cD.captionLanguageSelectActionCommand=Ru(q6),cD.captionPickerEndpoint=Ru(hZ),cD.changeMiniAppPlayStateCommand=Ru(R4),cD.changeTimelyActionVisibilityCommand=Ru(cs),cD.channelCreationFormEndpoint=Ru(P9),cD.clearLocationCommand=Ru(pw),cD.clearUrlParamCommand=Ru(EZ),cD.copyLinkCommand=Ru(Hs),cD.copyTextEndpoint=
Ru(OZ),cD.createCommentReplyDialogEndpoint=f1V(K6h),cD.createPlaylistServiceEndpoint=Ru(U2),cD.dismissDialogEndpoint=Ru(a4),cD.dismissPlayerOverlayCommand=Ru(kd),cD.entityUpdateCommand=Ru(Zw),cD.feedbackEndpoint=Ru(fw),cD.getAnswerCommand=Ru(fI),cD.getPaymentsClientTokenCommand=Ru($9),cD.getTranscriptEndpoint=Ru(Bs),cD.googlePaymentBillingCommand=Ru(lb),cD.googlePaymentPurchaseManagerCommand=Ru(Gp),cD.hideCreatorChatbotEngagementPanelCommand=Ru(oDy),cD.hideEngagementPanelEndpoint=Ru(xd),cD.hideSheetCommand=
Ru(zx),cD.hideSnackbarCommand=Ru(mv),cD.insertRichSectionCommand=Ru(nw),cD.listMutationCommand=Ru(N6),cD.logGtmCommand=Ru(sZ),cD.notifyDropdownOptionSelectedCommand=Ru(mn),cD.openAdAllowlistInstructionCommand=Ru(_.wc),cD.openOnePickAddVideoModalCommand=Ru(Au),cD.persistSubscriptionsDisplayPreferencesCommand=Ru(bb),cD.pingingEndpoint=Ru(Xy),cD.playlistEditEndpoint=Ru(Ws),cD.playlistVotingRefreshPopupCommand=Ru(wE),cD.profileCardCommand=Ru(M6),cD.refreshPanelEndpoint=Ru(Cw),cD.saveImageToDeviceEndpoint=
Ru(uT),cD.scrollToSectionEndpoint=f1V(TNY),cD.seekToVideoTimestampCommand=Ru(v9),cD.selectCountryCommand=Ru(dE),cD.setCookieCommand=Ru(O2),cD.setLocalStorageCommand=Ru(aP),cD.setPrefStorageEntryCommand=Ru(Zb),cD.setSettingEndpoint=Ru(tv),cD.sfvAudioItemPlaybackCommand=Ru(Tx),cD.shareImageCommand=Ru(Ju),cD.sharingProviderDataCommand=Ru(KI),cD.showAudioTrackPickerActionCommand=Ru(jz),cD.showCaptionLanguageSelectActionCommand=Ru(I4),cD.showCreatorChatbotEngagementPanelCommand=Ru(F6h),cD.showDialogCommand=
Ru(yi),cD.showEngagementPanelEndpoint=Ru(B9),cD.showFullscreenPlayerControlsCommand=Ru(Qi),cD.showSheetCommand=Ru(rc),cD.showSnackbarCommand=Ru(gE),cD.showTransientPlayerScrimOverlayCommand=Ru(Vi),cD.submitFormWithValidationFlowCommand=Ru(Fy),cD.talkToRecsDeselectCommand=Ru(x9),cD.talkToRecsNextCommand=Ru(zp),cD.talkToRecsSelectCommand=Ru(CI),cD.talkToRecsUpdateTextCommand=Ru(tu),cD.toggleEngagementPanelCommand=Ru(ez),cD.undoFeedbackEndpoint=Ru(o4),cD.updateEngagementPanelContentCommand=Ru(Dw),cD.updateUrlParamCommand=
Ru(rE),cD.updateVideoMetadataCommand=Ru(Db),cD.verifyCommand=Ru(P9),cD.webNativeShareCommand=Ru(oP),cD.webSubmitFormCommand=Ru(Xs),cD.ACK_PLAYABLES_3P_DATA_CONSENT=Ru(Fs),cD.CANCEL_NAVIGATION=Ru(Ps),cD.COPY_SHARE_URL=Ru(s2),cD.MINI_APP_EXIT_DIALOG_SEEN=Ru(N4),cD.MINI_APP_OPEN_URL=Ru(nI),cD.REQUEST_MINI_APP_FULLSCREEN=Ru(SO),cD.RESUME_NAVIGATION=Ru(pI),cD.SHARE_PLAYABLE_WITH_HIGH_SCORE=Ru(LI),cD.TELL_US_WHY=Ru(JZ),cD);
_.S("web_enable_prefetching_videos_on_home")&&(yn.prefetchWatchCommand=Ru(Cs),yn.registerTasksCommand=Ru(Jv));_.S("enable_share_panel_navigation_logging_fix_on_web")&&(yn.shareEntityServiceEndpoint=Ru(tZ));_.S("web_use_flow_state_manager")&&(yn.deleteFlowStepsCommand=Ru(TT),yn.flowNextStepCommand=Ru(j6),yn.flowPrevStepCommand=Ru(I9),yn.getFlowCommand=Ru(QM),yn.updateFlowCommand=Ru(VM));_.S("enable_ai_companion")&&(yn.updateConversationIdCommand=Ru(dc),yn.formDataDecoratorCommand=Ru(bT));
var OCg=Object.assign({},yn);var nDp={},Ni5=(nDp.initialized={priority:10,callback:FZc},nDp);var S4Y={},pKh=(S4Y.initialized={callback:function(H){var U={},A={};bLV().install((U.document_disposed={callback:function(){_.S("finalize_all_timelines")?rqF():WO();zHt("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.LAF();var M=H.injector.resolve(h1);M.intervalId!==void 0&&(M.intervalId&&_.Fl.cancelJob(M.intervalId),M.intervalId=void 0,--M.currentPartitionIndex,M=N8r(M),M>0&&ktw({mainAppWeb:_.nf(),survivalSli:{partitionMinute:M,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));eLB(n$);NJ!=null&&
NJ.flush();Cq&&Cq.snapshotAndFlush();M=_.b(iPw.values());for(var W=M.next();!W.done;W=M.next())W.value.snapshotAndFlush()}},U),(A.flush_logs={callback:function(){_.P1()}},A))}},S4Y);var L65={},Rbm=(L65.rendered={priority:0,callback:function(){var H=new Y4y;H.increment("STARTED");if(_.gD("LOGGED_IN")&&!_.gD("IS_DBSC",!1)&&_.gD("SERVER_VERSION")!=="test"&&_.gD("SERVER_VERSION")!=="dev"&&!Hpt()&&!Vs_()){H.increment("EXECUTING");var U=document.createElement("iframe");U.style.display="none";_.XP(U,2,_.j3("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.gD("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(U);H.increment("DONE")}}},
L65);var EDp={},mK5=(EDp.rendered={callback:function(){XJB().resume()}},EDp);var gDm={acknowledgeChannelTouStrikeCommand:iZ(SE),addToPlaylistServiceEndpoint:iZ(R8),addToPlaylistEndpoint:iZ(R8),addUpcomingEventReminderEndpoint:iZ(Yz),browseEndpoint:iZ(YAk),channelCreationFormEndpoint:iZ(Kr),channelCreationServiceEndpoint:iZ(oO),claimLegacyYoutubeChannelEndpoint:iZ(Ai),clearSearchHistoryEndpoint:iZ(B2),clearWatchHistoryEndpoint:iZ(rl),commerceActionCommand:bZ(kE),createBackstagePostEndpoint:iZ(jO),createBroadcastCommand:iZ(qQ),createCommentEndpoint:iZ(uc),createCommentReplyEndpoint:iZ(OT),
createLiveChatPollEndpoint:iZ(hi),createPlaylistServiceEndpoint:iZ(EV),crossAccountChannelTransferEndpoint:iZ($z),deleteLiveChatMessageCommand:iZ(kz),deletePlaylistEndpoint:iZ(mC),deleteVideoEndpoint:iZ(GA),dismissalEndpoint:iZ(pr),feedbackEndpoint:iZ(Lr),flagEndpoint:iZ(t5),getAccountSwitcherEndpoint:iZ(Dv),verifyCommand:iZ(Tp),getAccountsListInnertubeEndpoint:iZ(GY),getCommentsFromInboxCommand:iZ(bp),getDownloadActionCommand:iZ(Kg),getFlowCommand:bZ(ya),getKidsBlocklistPickerCommand:iZ(cw),getNotificationMenuEndpoint:iZ(kgy),
getPaymentInstrumentsParamsCommand:iZ(V$),getPaymentsClientTokenCommand:bZ(kE),getPdgBuyFlowCommand:iZ(pg),getReportFormEndpoint:iZ(y$),getSearchInVideoCommand:iZ(e0),getAnswerCommand:iZ(ry),getSurveyCommand:iZ(lp),getTranscriptEndpoint:iZ(qO),getPostVideoPreviewEndpoint:iZ(Ql),decorateMessageEndpoint:iZ(IP),likeEndpoint:iZ(F0),liveChatActionEndpoint:iZ(IO),liveChatEndpoint:iZ(jE),liveChatItemContextMenuEndpoint:iZ(v2),liveChatPurchaseMessageEndpoint:iZ(Qa),liveChatReplayEndpoint:iZ(TY),manageLiveChatUserEndpoint:iZ(Hw),
metadataUpdateCommand:iZ(X9),moderateLiveChatEndpoint:iZ(UV),modifyChannelNotificationPreferenceEndpoint:iZ(ZV),notificationOptOutEndpoint:iZ(fg),openSuperStickerBuyFlowCommand:iZ(Va),performCommentActionEndpoint:iZ(ic),playlistEditEndpoint:iZ(a8),playlistEditorEndpoint:iZ(gy),recordNotificationInteractionsEndpoint:iZ(J5),reelWatchEndpoint:iZ(xE),refreshPanelEndpoint:iZ(F9),removeUpcomingEventReminderEndpoint:iZ(A5),resolveLocationCommand:iZ(wy),revealBusinessEmailCommand:iZ(MQ),searchEndpoint:iZ(_.vlh),
sendLiveChatMessageEndpoint:iZ(MO),sendLiveChatVoteEndpoint:iZ(Ww),setSettingEndpoint:iZ(P2),shareEntityServiceEndpoint:bZ(NQ),sharingProviderDataCommand:iZ($E),showEngagementPanelEndpoint:iZ(Pw),showMoreDrawerCommand:iZ(ng),showSheetCommand:iZ(NO),showDialogCommand:iZ(sV),subscribeEndpoint:iZ(sT),transcriptSubmitCaptionCorrectionCommand:iZ(YE),undoFeedbackEndpoint:iZ(ET),unsubscribeEndpoint:iZ(nr),updateBackstagePostEndpoint:iZ(H2),updateCommentEndpoint:iZ(fr),updateCommentReplyEndpoint:iZ(Zv),updateCommentsSettingsEndpoint:iZ(Ji),
updateCreatorChannelInnertubeCommand:iZ(wl),updateKidsBlacklistEndpoint:iZ(Bw),updateEngagementPanelContentCommand:iZ(S0),updatePdgFeatureEnablementCommand:iZ(Lg),updatedMetadataEndpoint:iZ(ip),validateChannelHandleCommand:iZ(X0),updateChannelPageSettingsEndpoint:iZ(W2),verifyAgeEndpoint:iZ(mt),watchEndpoint:bZ(q4),whitelistEditEndpoint:iZ(h5),ypcCancelRecurrenceEndpoint:iZ(vw),ypcCompleteTransactionEndpoint:iZ(TA),ypcFixInstrumentEndpoint:iZ(I8),ypcGetCartEndpoint:iZ(j0),ypcGetOffersEndpoint:iZ(Q$),
ypcHandleTransactionEndpoint:bZ(HD),ypcLogWalletAnalyticDataEndpoint:iZ(Uf),ypcOffersEndpoint:iZ(Av),ypcPauseSubscriptionCommand:iZ(Mq),ypcRedeemCodeEndpoint:iZ(WD),ypcResumeSubscriptionCommand:iZ(w5),ypcUpdateFopEndpoint:iZ(I8)},BD={},a0$=(BD.GET_ACCOUNT_MENU=iZ(lc),BD.GET_NOTIFICATIONS_MENU=iZ(hFp),BD.GET_NOTIFICATIONS_INBOX=iZ(dy),BD.GET_UNSEEN_NOTIFICATION_COUNT=iZ(up),BD.GET_USER_MENTION_SUGGESTIONS=iZ(Vl),BD.LOAD_GUIDE=iZ(qA8),BD.SUBMIT_FEEDBACK=iZ(RO),BD),r5={},xKk=(r5.CONTINUATION_REQUEST_TYPE_BROWSE=
iZ(UT),r5.CONTINUATION_REQUEST_TYPE_SEARCH=iZ(DV),r5.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=iZ(Gx),r5.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=iZ(eE),r5.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=iZ(dl),r5.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=iZ(bc),r5.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=iZ(Cg),r5.CONTINUATION_REQUEST_TYPE_GET_PANEL=iZ(o8),r5),zbh={player:bZ(q4),watchNext:iZ(lT)},CDh={player:bZ(q4),reelItemWatch:iZ(xE),reelWatchSequence:iZ(zA)},tCh={watchEndpoint:bZ(hu)},cjm=
{commandEndpointMap:gDm,signalEndpointMap:a0$,continuationEndpointMap:xKk,watchEndpointMap:zbh,reelWatchEndpointMap:CDh,streamingEndpointMap:tCh};var yjp,Bih,rjp;_.ebh=((Bih=(yjp=window).matchMedia)==null?void 0:(rjp=Bih.call(yjp,"(prefers-reduced-motion: reduce)"))==null?void 0:rjp.matches)||!document.startViewTransition;var DKp={},$Kf={disableAllTransitions:_.ebh,ignoredErrors:(DKp.DOCUMENT_HIDDEN=!0,DKp.WINDOW_SIZE_CHANGED=!0,DKp.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,DKp),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var l0h=_.NP("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),Y4Y=function(H){var U=this;this.viewTransitionCoordinator=
H;this.disableTransitionsForUltraHigh=_.S("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=GUk();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.kV("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.S("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.S("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.S("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.kV("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.S("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.Fl.addJob(function(){U.registerRootElement();if(U.isAnyTransitionEnabled){var A=
_.hr("web_page_transition_exit_ms"),M=_.hr("web_page_transition_wait_ms"),W=_.hr("web_page_transition_enter_fast_ms"),w=_.hr("web_page_transition_watch_exit_ms"),d=_.hr("web_page_transition_watch_wait_ms"),O=_.hr("web_page_transition_watch_enter_ms"),f=_.hr("web_page_transition_watch_next_exit_ms"),J=_.hr("web_page_transition_watch_next_wait_ms"),F=_.hr("web_page_transition_watch_next_enter_fast_ms"),P=_.hr("web_page_transition_enter_ms"),n=_.hr("web_page_transition_watch_next_enter_ms");U.enableFasterTransitions&&
U.isUltraHighBucketDevice&&(P=W,n=F);isNaN(A)&&isNaN(M)&&isNaN(P)&&isNaN(w)&&isNaN(d)&&isNaN(O)&&isNaN(f)&&isNaN(J)&&isNaN(n)||!(A=UuE(l0h,A,M,P,w,d,O,f,J,n))||(M=document.createElement("style"),M.textContent=CLr(A),document.head.appendChild(M))}},8)},GUk=function(){var H=_.Mr.navigator.deviceMemory;
return H>=8||H===void 0?!0:!1};
Y4Y.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var H={};this.viewTransitionCoordinator.registerElement(document.documentElement,(H.slide="root-slide",H["lockup-to-watch"]="root-lockup-to-watch",H["learning-journey"]="root-learning-journey",H))}};
_.Z2z=function(H,U){H.isLockupToWatchTransitionEnabled&&H.isLockupThumbnailRegistrationEnabled&&(H.registeredLockupThumbnail?H.lockupThumbnailRegisteredFromWatchEndpoint?_.Na(new _.bD("Lockup thumbnail registration order is incorrect.")):_.Na(new _.bD("Lockup thumbnail already registered.")):(H.registeredLockupThumbnail=U,_.q4h(H,U)))};
_.q4h=function(H,U){var A={};H.viewTransitionCoordinator.registerElement(U,(A["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",A),!0)};
Y4Y[Ga]=[zk7];var PJ4={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var nIN=["videoPrimaryInfoRenderer","title"],N9_=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var hbp;hbp=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.kUB=_.r(function(H){H=_.Ec(H,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var U=H.data,A=H.playlistData,M=H.expanded,W=H.onExpandClick,w=H.isReadyToResume,d=function(){var F;return!((F=A())==null||!F.contents)},O=function(){var F=A();
return F&&F.totalVideos&&F.currentIndex!==void 0?F.currentIndex+1+" / "+F.totalVideos:""};
H=_.c$(function(){_.eJ(_.lx().resolve(_.ZB));return!1});
var f=_.c$(function(){d()&&W&&W()}),J={};
return _.Z("ytd-miniplayer-info-bar",{class:_.CG("ytdMiniplayerInfoBarHost",(J.ytdMiniplayerInfoBarHasPlaylistData=d,J)),"on:click":f},_.Z("div",{class:"ytdMiniplayerInfoBarContent"},_.Z("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":H},_.Z(_.Pb,{text:function(){var F=U();var P=A();if(P==null?0:P.contents){var n;F=(n=_.tL7(P))==null?void 0:n.title}else F=F==null?void 0:F.miniplayerTitle;return p_K(F)},
noEndpoints:!0,ellipsisTruncate:!0})),_.Z("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.Z(_.K,{cond:w,then:function(){return _.Z(rWw,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:hbp})}}),_.Z("h1",null,_.Z(_.Pb,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var F=U();var P=A();F=w()?{simpleText:_.hP("CONTINUE_WATCHING",void 0,"Continue watching")}:(P==null?0:P.contents)?P.titleText:F==null?void 0:F.miniplayerSubtitle;return p_K(F)},
noEndpoints:!0,ellipsisTruncate:!0})),_.Z(_.K,{cond:function(){return!!O()&&!w()},
then:function(){return _.Z("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.Z("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.Z("span",null,O))}}))),_.Z(_.K,{cond:d,
then:function(){return _.Z("div",{class:"ytdMiniplayerInfoBarExpand"},_.Z(_.cb,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(F){W&&(W(),F.stopPropagation())}}},
iconName:function(){return M()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Hg");var vDk;vDk=_.r(function(H){return _.Z("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.Z(_.cb,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:H.onTap}},
iconName:"yt-icons:close"}))},"Ig");
_.Tif=_.r(function(H){H=_.Ec(H,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var U=H.size,A=H.playabilityStatus,M=H.isDisabled,W=H.isPictureInPicture,w=_.nA("div");H=_.b(_.iB(void 0,void 0,"w4RAU"));var d=H.next().value,O=H.next().value;H=_.Gk(_.xC);var f=!1,J=function(){return U().height<=0};
_.Em(function(){var N=U(),L=J(),m=d();m&&!L&&m.setInternalSize(N.width,N.height)},"BHFc2b");
_.pA(function(){var N,L,m;return _.u(function(z){if(z.nextAddress==1){N=_.lx().resolve(_.ZB);L=N.getPlayerElement();if(!N.isMiniplayerActive()||!L||!w.value)return z.return();L.appendTo(w.value);return z.yield(L.getPlayerPromise(),2)}m=z.yieldResult;W()||m.setSizeStyle(!1,!0);O(m);_.DO(z)})});
_.m4(function(){F()});
_.Em(function(){var N=d();if(N)if(M()){var L=N.getPlayerState();(f=L===-1||L===1||L===3)&&N.pauseVideo()}else F()},"Invykd");
var F=function(){if(f){f=!1;var N;(N=d())==null||N.playVideo()}},P=_.c$(function(){_.eJ(_.lx().resolve(_.ZB))}),n={};
return _.Z("ytd-miniplayer-player-container",{class:_.CG("ytdMiniplayerPlayerContainerHost",(n.ytdMiniplayerPlayerContainerHidden=J,n.ytdMiniplayerPlayerContainerHostShortsPip=H,n)),style:_.rA({width:function(){return U().width+"px"},
height:function(){return U().height+"px"}})},_.Z("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:w}),_.Z(_.K,{cond:function(){return!!A()&&!_.qi7(A())},
then:function(){return _.Z(FfY,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var N;return((N=A())==null?void 0:N.errorScreen)||null},
status:function(){var N;return((N=A())==null?void 0:N.status)||null}})}}),_.Z(_.K,{cond:M,
then:function(){return _.Z("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":P},_.Z(vDk,{onTap:function(){_.lx().resolve(_.ZB).close()}}))}}))},"Mg");var t1N;var B98=null;var I07=_.r(function(H){var U=H.progressState;var A=H.multiMarkersPlayerBarRenderer;var M=H.progressBarWidth;var W=function(){return $90(A())},w=function(){return YQ0(U())},d=function(){return M()*(U().playedTime/U().videoDuration)};
return _.Z("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.Z(_.FQ,{each:W},function(O,f){return _.Z(jdm,{modifiedProps:w,chapters:W,index:f,playedProgressWidth:d,backgroundGradientPosition:function(){var J=w(),F=W(),P=f(),n=d();return(J.playedTime-OP(_.p(F[P],dj)))/J.playedTime*n}})}))},"Ng"),jdm=_.r(function(H){var U=H.modifiedProps;
var A=H.chapters;var M=H.index;var W=H.playedProgressWidth;var w=H.backgroundGradientPosition;H={};H=_.CG("ytChapteredProgressBarChapteredPlayerBarChapter",(H.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return d().isScrubbing},H.ytChapteredProgressBarHoveredMacroMarker=function(){return d().scrubberHovering},H.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return d().videoPosition==="seen"},H));
var d=function(){return qQ0(U(),A(),M())},O=function(){var f=U();
var J=A(),F=M();if(qQ0(f,J,F).videoPosition!=="active")f=0;else{var P=OP(_.p(J[F],dj));f=(f.playedTime-P)/((OP(_.p(J[F+1],dj))||f.videoDuration)-P)}return f};
return _.Z("div",{class:H,style:_.rA({width:function(){var f=U(),J=A(),F=M(),P=_.p(J[F],dj);J=_.p(J[F+1],dj);return(J?OP(J)-OP(P):f.videoDuration-OP(P))/f.videoDuration*100+"%"},
"background-color":function(){a:{var f=d();switch(f.videoPosition){case "pending":f=f.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":f=f.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:f=""}}return f},
"background-size":function(){return(h30(d())?W():"")+"px"},
"background-position-x":function(){return(h30(d())?w():"")+"px"}})},_.Z("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var f=U(),J=A(),F=M();if(qQ0(f,J,F).videoPosition==="seen")var P=0;else P=OP(_.p(J[F],dj)),J=OP(_.p(J[F+1],dj))||f.videoDuration,f=f.videoDuration*f.percentLoaded,P=J<=f?1:P>=f?0:(f-P)/(J-P);return"width: "+P*100+"%"}}),_.Z("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.rA({width:function(){return O()*100+"%"},
"background-size":function(){return(h30(d(),O())?W():"")+"px"},
"background-position-x":function(){return(h30(d(),O())?w():"")+"px"}})}))},"Og");var Qd5=function(H,U){U=U===void 0?ksp:U;var A,M=[],W,w=!1;return function(){var d=_.QY.apply(0,arguments);if(w&&A===this&&U(d,M))return W;W=H.apply(this,d);w=!0;A=this;M=d;return W}}(function(H){var U=H.heatMarkers,A=H.minHeightDp===void 0?0:H.minHeightDp,M=H.maxHeightDp===void 0?60:H.maxHeightDp;
var W=W===void 0?!1:W;var w=1E3/U.length;H=[];H.push({x:0,y:100});for(var d=0;d<U.length;d++){var O=void 0,f=((O=_.p(U[d],Aek))==null?void 0:O.heatMarkerIntensityScoreNormalized)||0;O=(d+.5)*w;f=100-_.b$(f*100,A/321*100,M/321*100);d!==0||W||H.push({x:0,y:f});H.push({x:O,y:f});d===U.length-1&&H.push({x:1E3,y:f})}H.push({x:1E3,y:100});U="";for(A=0;A<H.length;A++)W=H[A],A===0?W="M "+W.x.toFixed(1)+","+W.y.toFixed(1):(M=GKh(H[A-1],H[A-2],W),w=GKh(W,H[A-1],H[A+1],!0),W=" C "+(M.x.toFixed(1)+","+M.y.toFixed(1)+
" "+w.x.toFixed(1)+","+w.y.toFixed(1)+" "+W.x.toFixed(1)+","+W.y.toFixed(1))),U+=W;return U});var VCf=_.r(function(H){var U=H.progressBarProps;var A=H.config;var M={};H=_.CG("ytHeatSeekerHost",(M.ytHeatSeekerHighContrast=H.highContrast,M));var W=function(){return gIc(A().chapterData)};
return _.Z("yt-progress-bar-heatseeker",{class:H,style:function(){var w;return"height: 320px; display: "+(U().isDragging&&((w=W())==null?0:w.heatMarkers)?"block":"none")}},_.Z(_.K,{cond:W,
then:function(w){return _.Z(_.K,{cond:function(){return w().heatMarkers},
then:function(){return _.Z("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.Z("path",{d:function(){return Qd5(w())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Pg");var H_7=_.r(function(H){var U=H.progressBarProps;var A=H.config;H={};H=_.CG("ytProgressBarLineProgressBarLine",(H.ytProgressBarLineProgressBarLineRounded=function(){return A().rounded},H.ytProgressBarLineProgressBarLineBottomInset=function(){return A().position===2},H));
return _.Z("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.Z("div",{class:H},_.Z("div",{class:"ytProgressBarLineProgressBarBackground"}),_.Z("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+U().percentLoaded*100+"%"}}),_.Z("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var M=U();return"width: "+(M.videoDuration?_.b$(M.hoveredTime/M.videoDuration,0,1):0)*100+"%"}}),_.Z("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+R38(U())*100+"%"}})))},"Qg");
H_7.idomCompat=!0;var Us5=_.r(function(H){var U=H.progressBarProps;var A=H.playheadData;var M=H.interpolateDotPosition;var W=H.hidePlayhead;H={};var w=_.CG("ytProgressBarPlayheadProgressBarPlayheadDot",(H.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return U().isDragging},H.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!U().isDragging&&W()},H));
return _.Z("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.rA({"margin-left":function(){return EIM(U())*100+"%"},
transform:function(){return"translateX(-"+(M()?EIM(U())*12:6)+"px)"}})},_.Z(_.K,{cond:function(){var d;
return(d=_.RS(A)())==null?void 0:d.playheadImage},
then:function(d){var O={};return _.Z("div",{class:_.CG("ytProgressBarPlayheadProgressBarPlayheadCustom",(O.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return U().isDragging},O.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!U().isDragging&&W()},O)),
style:_.rA({"transform-origin":function(){return(M()?EIM(U())*20:10)+"px center"}})},_.Z(_.nG,{data:d,
alt:"","aria-hidden":"true"}))},
else:function(){return _.Z("div",{class:w,style:_.rA({"transform-origin":function(){return(M()?EIM(U())*12:6)+"px center"}})})}}))},"Rg");
Us5.idomCompat=!0;var DK=function(H,U,A,M,W,w){this.getProgressBarRect=H;this.updateProgressBarRect=U;this.getFilmstripYPosition=A;this.setFineScrubbingDraggedTime=M;this.updateFilmStripDraggedYDistance=W;this.resetFilmStripYOffset=w;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.B$(this.onThrottledSeek,100,this)},Ak5=function(H,U,A){return function(M){H.handleClick(M,U(),A())}},wWp=function(H,U){return function(A){Mx5(H,
A,Wyp(A),U())}},XWp=function(H,U){return function(A){Mx5(H,A,{x:A.clientX,
y:A.clientY},U())}},b_Y=function(H,U,A){return function(M){var W=U(),w=A();
i_y(H,M,Wyp(M),W,w,!0);if(w.onTouchMove)w.onTouchMove(W)}},O_h=function(H,U,A){return function(M){dsp(H,M,U(),A())}},ulY=function(H,U){return function(){H.handleMouseLeave(U())}},f6h=function(H,U,A){return function(){var M=U(),W=A();
Z_Y(H,M,W);if(W.onTouchEnd)W.onTouchEnd(M)}},JkY=function(H,U,A){return function(){var M=U(),W=A();
Z_Y(H,M,W);if(W.onTouchEnd)W.onTouchEnd(M)}},Kyh=function(H,U,A){return function(){Z_Y(H,U(),A())}},oBh=function(H){return function(U){if(U.keyCode===39||U.keyCode===38){var A,M;
(A=H())==null||(M=A.playerApi)==null||M.seekBy(5,void 0,void 0,72)}else if(U.keyCode===37||U.keyCode===40){var W,w;(W=H())==null||(w=W.playerApi)==null||w.seekBy(-5,void 0,void 0,71)}}},Fyh=function(H,U,A){return function(M){!A().disableScrubbing&&H.startPosition&&dsp(H,M,U(),A())}},PSf=function(H,U,A){return function(){if(!A().disableScrubbing)if(H.startPosition){var M=U(),W=A();
Z_Y(H,U(),A());if(W.onTouchEnd)W.onTouchEnd(M)}else U().setState({isDragging:!1})}},Wyp=function(H){H=H.touches[0];
return{x:H.clientX,y:H.clientY}},dsp=function(H,U,A,M){if(U.buttons!==1){if(U.movementX||U.movementY)U.preventDefault(),U.stopPropagation(),H=sQ5(H,A,U.clientX),A.setState({isHovering:!0,
hoveredTime:H*A.videoDuration})}else nBY(A),i_y(H,U,{x:U.clientX,y:U.clientY},A,M,!1)};
DK.prototype.handleMouseLeave=function(H){nBY(H)};
var nBY=function(H){H.isHovering&&H.setState({isHovering:!1,hoveredTime:0})},Mx5=function(H,U,A,M){H.startPosition||(H.startPosition=A,H.updateProgressBarRect(),H.controlsWereVisibleBeforeDragging=M.controlsVisible,U.stopPropagation(),_.S("medium_progress_bar_modification")||U.preventDefault())},i_y=function(H,U,A,M,W,w){if(H.startPosition)if(w&&W.isInlinePlayback&&H.startPosition&&!H.hasDraggedTheMinimumDistance&&Math.abs(A.y-H.startPosition.y)>Math.abs(A.x-H.startPosition.x))Z_Y(H,M,W);
else if(U.preventDefault(),U.stopPropagation(),M.videoDuration&&(H.startPosition&&!H.hasDraggedTheMinimumDistance&&(H.hasDraggedTheMinimumDistance=Math.abs(A.x-H.startPosition.x)>=1),W.enableFineScrubbing&&(H.startPosition&&(H.isDraggedForFineScrubbing=-(A.y-H.startPosition.y)>=60),!H.startPosition||A.y>=H.startPosition.y||(M.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:k7K(M.draggedTime,M,W.chapterData)}),H.setFineScrubbingDraggedTime(M.draggedTime),H.updateFilmStripDraggedYDistance(H.startPosition.y,
A.y,M))),H.hasDraggedTheMinimumDistance)){U=sQ5(H,M,A.x);if(H.isDraggedForFineScrubbing){var d;(d=M.playerApi)==null||d.pauseVideo();M.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:M.draggedTime,filmStripXDistance:k7K(U*M.videoDuration,M,W.chapterData)})}W.enableFineScrubbing&&(!W.enableFineScrubbing||H.getFilmstripYPosition(M)<68)||M.setState({draggedTime:U*M.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:H.controlsWereVisibleBeforeDragging});var O;(O=
W.cancelAutohideControlsFn)==null||O.call(W)}},Z_Y=function(H,U,A){var M=A.enableFineScrubbing&&U.fineScrubbingActiveState!=="off";
if(U.isDragging||M){M={isDragging:!1,playedTime:U.draggedTime,controlsVisible:H.controlsWereVisibleBeforeDragging};A.enableFineScrubbing&&U.fineScrubbingActiveState!=="on"&&(H.resetFilmStripYOffset(),M.fineScrubbingActiveState="off");var W=W===void 0?B98:W;var w=_.XK(0);if(w&&W){var d=Math.round(U.playedTime*1E3),O=Math.round(U.draggedTime*1E3);d>2147483647||O>2147483647||_.S9(w,W,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(d),endMediaTimeMs:String(O),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}U.setState(M);
H.seekThrottle.fire(U.draggedTime,U,7);_.S("mweb_new_progress_bar_play_on_seek")&&H.resumeVideo(U);A.unmuteOnSeek&&(A=U.playerApi,U.volumeMuted&&(A==null||A.unMute()))}else U.setState({controlsVisible:!U.controlsVisible}),(w=A.triggerAutohideControlsAfterDelayFn)==null||w.call(A);H.startPosition=null;H.hasDraggedTheMinimumDistance=!1;H.isDraggedForFineScrubbing=!1;H.controlsWereVisibleBeforeDragging=!1};
DK.prototype.handleClick=function(H,U,A){this.updateProgressBarRect();H.stopPropagation();H=sQ5(this,U,H.clientX)*U.videoDuration;U.setState({playedTime:H});if(U.playerState!==2){var M;(M=A.triggerAutohideControlsAfterDelayFn)==null||M.call(A)}this.seekThrottle.fire(H,U,7)};
var sQ5=function(H,U,A){H=H.getProgressBarRect(U);return _.b$(0,(A-H.left)/H.width,1)};
DK.prototype.resumeVideo=function(H){if(H.draggedTime<H.videoDuration){var U;(U=H.playerApi)==null||U.playVideo()}};
DK.prototype.onThrottledSeek=function(H,U,A){if(U=U.playerApi){var M;if((M=U.getVideoData())==null?0:M.isLive)M=this.getProgressState(U),H+=(M==null?void 0:M.seekableStart)||0;U.seekTo(H,void 0,void 0,void 0,A)}};
DK.prototype.getProgressState=function(H){var U=H==null?void 0:H.getPresentingPlayerType();return H==null?void 0:H.getProgressState(U)};var pW5,Sl5,LyB,EBY,NBh,msj,gBh,a6$,xsh;pW5=_.r(function(H){var U=H.progressBarProps;var A=H.config;var M=H.progressBarWidthPx;var W=H.chapterData;var w=Qo4(U,function(){return A().isShortsPage}),d=function(){return!U().isHovering&&!A().isShortsPage};
H={};var O=_.CG("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(H.ytPlayerStoryboardHostMwebShorts=function(){return A().isShortsPage&&!1},H));
return _.Z("yt-player-storyboard",null,_.Z(_.K,{cond:function(){return U().isDragging||U().isHovering},
then:function(){return _.Z(_.K,{cond:w,then:function(f){return _.Z(_.K,{cond:d,then:function(){return _.Z("div",{class:O,"aria-hidden":"true"},_.Z(NBh,{props:U,config:A,isBigboard:!0,chapterData:W}))},
else:function(){return _.Z(Sl5,{props:U,frame:f,config:A,progressBarWidthPx:M,chapterData:W})}})}})}}))},"Sg");
_.RrB=_.r(function(H){var U=H.progressBarProps;var A=Qo4(U,H.isShortsPage);return _.Z("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.Z(_.K,{cond:function(){return U().isDragging||U().isHovering},
then:function(){return _.Z(_.K,{cond:A,then:function(M){return _.Z(LyB,{frame:M,props:U,isBigboard:!0})}})}}))},"Tg");
Sl5=_.r(function(H){var U=H.props;var A=H.frame;var M=H.config;var W=H.progressBarWidthPx;H=H.chapterData;var w={};w=_.CG("ytPlayerStoryboardHost",(w.ytPlayerStoryboardHostMwebShorts=function(){return M().isShortsPage&&!1},w.ytPlayerStoryboardHostInlinePlayer=function(){return M().isInlinePlayer},w.ytPlayerStoryboardHostFadeIn=function(){return M().useFadeInAnimation},w));
return _.Z("div",{class:w,"aria-hidden":"true",style:function(){var d=U(),O=vI8(A()),f=W();d=T9M(d)/d.videoDuration;var J=f*d,F=O/2+6;O=f-(O/2+6);return"left: "+(J<=F?F/f*100:J>=O?O/f*100:d*100)+"%"}},_.Z(_.K,{cond:function(){var d=U();
return!(M().isShortsPage&&d.videoDuration<15)},
then:function(){return _.Z(LyB,{frame:A,props:U,isBigboard:!1})}}),_.Z(NBh,{props:U,
config:M,isBigboard:!1,chapterData:H}))},"Ug");
LyB=_.r(function(H){var U=H.frame;var A=H.props;var M=H.isBigboard;var W=function(){var O,f;return(f=(O=A().playerApi)==null?void 0:O.getVideoContentRect())!=null?f:{width:0,height:0}},w=function(){return vI8(U())},d=function(){var O=U();
return O?O.height/O.rows:0};
H={};H=_.CG((H.ytPlayerStoryboardBigboardImageWrapper=M,H.ytPlayerStoryboardStoryboardImageWrapper=function(){return!M()},H));
return _.Z("div",{class:H,style:function(){return"width: "+(M()?W().width:w())+"px; height: "+(M()?W().height:d())+"px;"}},_.Z(EBY,{frame:U,
storyboardWidth:w,storyboardHeight:d,storyboardScale:function(){return(M()?W().width:w())/w()}}))},"Vg");
EBY=_.r(function(H){var U=H.frame;var A=H.storyboardWidth;var M=H.storyboardHeight;var W=H.storyboardScale;var w=function(){var d=U().row,O=U().column,f=A(),J=M(),F=W();return{left:-O*f*F,top:-d*J*F}};
return _.Z("img",{src:function(){return U().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+w().left+"px; top: "+w().top+"px; width: "+U().width*W()+"px; height: "+U().height*W()+"px;"}})},"Wg");
NBh=_.r(function(H){var U=H.props;var A=H.config;var M=H.isBigboard;var W=H.chapterData;H={};H=_.CG("ytPlayerStoryboardMetadata",(H.ytPlayerStoryboardMetadataBigboard=M,H));return _.Z("div",{class:H},_.Z(_.K,{cond:M,then:function(){return _.Z(_.ve,null,_.Z(msj,{props:U,config:A}),_.Z(_.K,{cond:function(){a:{var w=U();var d=A(),O=W(),f;if((d==null?0:d.activeChapter)&&((f=_.p(d==null?void 0:d.activeChapter,dj))==null?0:f.title))w=!0;else{d=_.b(aS4(O));for(d=d.next();!d.done;d=d.next()){w=(d=_.p(d.value,
W$h))&&jot(w,d);break a}w=!1}}return w},
then:function(){return _.Z(gBh,{props:U,config:A,isBigboard:!0,chapterData:W})}}))},
else:function(){return _.Z(_.ve,null,_.Z(gBh,{props:U,config:A,isBigboard:!0,chapterData:W}),_.Z(msj,{props:U,config:A}))}}))},"Xg");
msj=_.r(function(H){var U=H.props;var A=H.config;H={};H=_.CG("ytPlayerStoryboardTimestamp",(H.ytPlayerStoryboardTimestampShorts=function(){return A().isShortsPage},H.ytPlayerStoryboardTimestampIsHovering=function(){return U().isHovering||A().isShortsPage&&!0},H));
return _.Z("div",{class:H},_.Z(_.ve,null,function(){return _.ISc(T9M(U()))}))},"Yg");
gBh=_.r(function(H){var U=H.props;var A=H.config;var M=H.isBigboard;var W=H.chapterData;H={};M=_.CG("ytPlayerStoryboardTitle",(H.ytPlayerStoryboardTitleBigboard=M,H));return _.Z("div",{class:M},_.Z(_.K,{cond:function(){return!A().isShortsPage},
then:function(){return _.Z(a6$,{props:U,activeChapter:function(){return A().activeChapter},
chapterData:W})}}))},"Zg");
a6$=_.r(function(H){var U=H.props;var A=H.activeChapter;var M=H.chapterData;return _.Z(_.ve,null,_.Z(_.FQ,{each:function(){return aS4(M())},
keyBy:"INDEX"},function(W){return _.Z(_.ve,null,_.Z(_.K,{cond:function(){return _.p(W(),W$h)&&jot(U(),_.p(W(),W$h))},
then:function(){return _.Z(xsh,{timedMarker:function(){return _.p(W(),W$h)}})}}))}),_.Z(_.K,{cond:function(){var W;
return A()&&((W=_.p(A(),dj))==null?void 0:W.title)},
then:function(W){return _.Z(_.Pb,{text:W,noPreWrap:!0})}}))},"$g");
xsh=_.r(function(H){var U=H.timedMarker;return _.Z(_.ve,null,_.Z("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.Z(_.er,{icon:function(){return U().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.Z(_.Pb,{text:function(){return U().label},
noPreWrap:!0}))},"ah");_.zrh=_.r(function(H){var U=H.progressBarProps;var A=H.playheadData;var M=H.config;H=_.nA("yt-progress-bar");var W=_.nA("div"),w=_.nA("div"),d=_.b(_.iB({width:0,left:0},void 0,"XjZjde")),O=d.next().value,f=d.next().value,J=function(){w.value&&f(w.value.getBoundingClientRect())},F=function(){O().width<=0&&J();
return O()};
_.B1("resize",J);var P=new DK(F,function(){},function(){return 0},function(){},function(){},function(){}),n=function(){return U()};
d=_.b(_.iB(!1,void 0,"uZlOJc"));var N=d.next().value,L=d.next().value;d=_.c$(function(){L(!0);M().position===2?setTimeout(function(){J()},100):J()});
var m=_.c$(function(){L(!1);ulY(P,n)()}),z=_.c$(function(kc){(M().doSeekOnClick||_.S("mweb_progress_bar_seek_on_mouse_click")&&typeof PointerEvent!=="undefined"&&kc instanceof PointerEvent&&kc.pointerType==="mouse")&&Ak5(P,n,M)(kc);
return!1}),c=_.c$(function(kc){wWp(P,n)(kc);
return!1}),C=_.c$(function(kc){XWp(P,n)(kc);
return!1}),v=_.c$(function(kc){b_Y(P,n,M)(kc);
return!1}),Y=_.c$(function(kc){O_h(P,n,M)(kc);
return!1}),D=_.c$(function(){f6h(P,n,M)();
return!1}),h=_.c$(function(){JkY(P,n,M)();
return!1}),T=_.c$(function(){Kyh(P,n,M)();
return!1}),WF=_.c$(function(kc){oBh(n)(kc);
return!1});
_.B1("mousemove",Fyh(P,n,M));_.B1("mouseup",PSf(P,n,M));_.LA(function(){rVM(W.value);L(!1);J();PSf(P,n,M)()});
var dK={};dK=_.CG("ytPlayerProgressBarHost",function(){return M().className},(dK.ytPlayerProgressBarHostReadOnly=function(){return M().disableScrubbing},dK.ytPlayerProgressBarHostHidden=function(){return M().hideProgressBar&&!N()},dK.ytPlayerProgressBarHostLowerPlayer=function(){return M().position===0},dK.ytPlayerProgressBarHostBottomEdge=function(){return M().position===1},dK.ytPlayerProgressBarHostBottomInset=function(){return M().position===2},dK.ytPlayerProgressBarHostCustom=function(){return M().position===
3},dK));
var SN={},o_=_.CG("ytPlayerProgressBarBackground",(SN.ytPlayerProgressBarBackgroundHide=function(){return M().position===2&&!N()&&!U().isDragging},SN));
SN={};SN=_.CG("ytPlayerProgressBarDragContainer",(SN.ytPlayerProgressBarDragContainerBottomEdge=function(){return M().position===1},SN));
var PF={};PF=_.CG("ytPlayerProgressBarProgressBar",(PF.ytPlayerProgressBarProgressBarInset=function(){return M().position===2},PF.ytPlayerProgressBarProgressBarInsetMinimized=function(){return M().position===2&&!N()&&!U().isDragging},PF));
var BF=function(){return Math.floor(R38(U())*100)};
return _.Z("yt-progress-bar",{el:H,class:dK},_.Z(_.K,{cond:function(){return M().position===2},
then:function(){return _.Z("div",{class:o_})}}),_.Z("div",{el:W,
"on:click":z,"on:touchstart":c,"on:touchmove":v,"on:mouseenter":d,"on:mousedown":C,"on:mouseleave":m,"on:mousemove":Y,"on:mouseup":h,"on:touchend":D,"on:touchcancel":T,"on:keydown":WF,class:SN,role:"slider","aria-valuenow":BF,"aria-valuetext":function(){return BF()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return U().videoDuration},
draggable:_.S("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.hP("SEEK_SLIDER")},_.Z("div",{el:w,class:PF},_.Z(VCf,{progressBarProps:U,config:M,highContrast:function(){return!!M().isInlinePlayback}}),_.Z(_.K,{cond:function(){return M().chapterData&&x90(M().chapterData)},
then:function(){return _.Z(I07,{progressState:U,multiMarkersPlayerBarRenderer:function(){return M().chapterData},
progressBarWidth:function(){return O().width}})},
else:function(){return _.Z(H_7,{progressBarProps:U,config:M})}}),_.Z(Us5,{progressBarProps:U,
playheadData:A,interpolateDotPosition:function(){return M().position!==2},
hidePlayhead:function(){return M().playheadDotBehavior===1&&!N()}}))),_.Z(pW5,{progressBarProps:U,
config:function(){return{activeChapter:G7N(U(),M().chapterData),getProgressBarWidthPx:function(){return F().width},
isShortsPage:!!M().isShortsPage,isInlinePlayer:!!M().isInlinePlayback,useFadeInAnimation:!!M().isInlinePlayback}},
progressBarWidthPx:function(){return O().width},
chapterData:function(){return M().chapterData}}))},"bh");
_.zrh.idomCompat=!0;Object.assign({},_.z3h(),{setState:function(){},
domMeasurements:{},appApi:_.LZ8(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var CSp;
_.txp=_.r(function(){var H,U=(H=_.u$(V1N().playerApi))!=null?H:void 0;H=_.b(_.iB(!1,void 0,"Z9NQ1b"));var A=H.next().value,M=H.next().value;H=_.b(_.iB(!1,void 0,"HoVJXe"));var W=H.next().value,w=H.next().value;H=_.b(_.iB(!1,void 0,"DWCY3"));var d=H.next().value,O=H.next().value;H=_.b(_.iB(!1,void 0,"g4C2Zd"));var f=H.next().value,J=H.next().value;H=_.b(_.iB(0,void 0,"lmVfFb"));var F=H.next().value,P=H.next().value;H=_.b(_.iB(0,void 0,"mFLbzb"));var n=H.next().value,N=H.next().value;H=_.b(_.iB(!1,void 0,
"hQN4Wb"));var L=H.next().value,m=H.next().value;H=_.b(_.iB(0,void 0,"WWU0fb"));var z=H.next().value,c=H.next().value;H=_.b(_.iB(0,void 0,"MJ7LMd"));var C=H.next().value,v=H.next().value;H=_.b(_.iB("",void 0,"hnomOe"));var Y=H.next().value,D=H.next().value;H=_.b(_.iB(-1,void 0,"ARe3pf"));var h=H.next().value,T=H.next().value,WF=_.Ja(function(){var dK={controlsVisible:A(),isOverlayHidden:W(),shouldWaitToHideControls:d(),isDragging:f(),isHovering:L(),videoDuration:z(),playedTime:C(),videoId:Y(),draggedTime:n(),
hoveredTime:F(),playerState:h()};return Object.assign({},_.z3h(),dK,{domMeasurements:{},setState:function(SN){SN.controlsVisible!==void 0&&M(SN.controlsVisible);SN.isOverlayHidden!==void 0&&w(SN.isOverlayHidden);SN.shouldWaitToHideControls!==void 0&&O(SN.shouldWaitToHideControls);SN.isDragging!==void 0&&J(SN.isDragging);SN.isHovering!==void 0&&m(SN.isHovering);SN.draggedTime!==void 0&&N(SN.draggedTime);SN.hoveredTime!==void 0&&P(SN.hoveredTime);SN.videoDuration!==void 0&&c(SN.videoDuration);SN.playedTime!==
void 0&&v(SN.playedTime);SN.videoId!==void 0&&D(SN.videoId);SN.playerState!==void 0&&T(SN.playerState)},
appApi:_.LZ8(),playerApi:U})},void 0,"Au4PIf");
_.pA(function(){U==null||U.addEventListener("onVideoProgress",yVh(WF));U==null||U.addEventListener("onVideoDataChange",cVK(WF));U==null||U.addEventListener("onStateChange",CJt(WF))});
_.m4(function(){if(U==null?0:U.isReady())U==null||U.removeEventListener("onVideoProgress",yVh(WF)),U==null||U.removeEventListener("onVideoDataChange",cVK(WF)),U==null||U.removeEventListener("onStateChange",CJt(WF))});
return _.Z("desktop-shorts-player-controls",null,_.Z(CSp,{playerControlsProps:WF}))},"dh");
CSp=_.r(function(H){var U=H.playerControlsProps;return _.Z("div",{class:"desktopShortsPlayerControlsHost"},_.Z(_.zrh,{progressBarProps:U,config:function(){return{isShortsPage:!0,hideProgressBar:U().videoDuration<30&&U().playerState!==2&&!U().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"eh");_.ckp=_.r(function(H){function U(dK){dK!==0||P()?dK>50&&(P()||!N())?(n(!1),L(!0)):dK<=50&&(P()||N())&&(n(!1),L(!1)):n(!0)}
function A(dK,SN){var o_;return _.u(function(PF){if(PF.nextAddress==1)return PF.yield(_.co(),2);o_=PF.yieldResult;SN&&o_?(o_.unMute(!0),dK&&(Urz(dK,o_.getVolume()),z(o_.getVolume()))):o_&&(o_.mute(!0),dK&&Urz(dK,0));_.DO(PF)})}
function M(dK){var SN,o_;return _.u(function(PF){if(PF.nextAddress==1)return PF.yield(_.co(),2);SN=PF.yieldResult;o_=50;SN&&(o_=SN.getVolume(),SN.isMuted()?Urz(dK,0):Urz(dK,o_));z(o_);_.DO(PF)})}
var W=H.orientation;H=_.nA("volume-controls");var w=_.nA("button"),d=_.NU("input"),O=_.b(_.iB(!1,void 0,"JO5fn")),f=O.next().value,J=O.next().value,F=_.b(_.iB(!1,void 0,"zcMjvb"));O=F.next().value;F=F.next().value;var P=O,n=F;F=_.b(_.iB(!0,void 0,"sF9zj"));O=F.next().value;F=F.next().value;var N=O,L=F;O=_.b(_.iB(50,void 0,"Da2bOd"));var m=O.next().value,z=O.next().value;O=_.Ja(function(){var dK=P();return _.S("web_shorts_keyboard_enable_mute_shortcut")?dK?_.hP("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):
_.hP("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):dK?_.hP("UNMUTE_VOLUME",void 0,"Unmute"):_.hP("MUTE_VOLUME",void 0,"Mute")},void 0,"RUjxdf");
F=_.Ja(function(){var dK=P(),SN=N();return{sources:[{clientResource:{imageName:dK?"VOLUME_OFF_FILLED":SN?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"EZ2qZd");
var c=_.Ja(function(){var dK=m();return P()?dK+"% volume muted":dK+"% volume"},void 0,"ZJcDqc"),C=_.Ja(function(){return W()==="vertical_down"},void 0,"OJU9Hf");
_.LA(function(){function dK(){J(!0)}
function SN(){J(!1)}
d&&d.value&&(d.value.addEventListener("focus",dK),d.value.addEventListener("focusout",SN),M(d.value).then(function(){U(Number(Atg(d.value)))}));
w&&w.value&&(w.value.addEventListener("focus",dK),w.value.addEventListener("focusout",SN));_.m4(function(){var o_;d==null||(o_=d.value)==null||o_.removeEventListener("focus",dK);var PF;d==null||(PF=d.value)==null||PF.removeEventListener("focusout",SN);var BF;w==null||(BF=w.value)==null||BF.removeEventListener("focus",dK);var kc;w==null||(kc=w.value)==null||kc.removeEventListener("focusout",SN)})});
var v=_.c$(function(){if(d&&d.value){var dK=Number(Atg(d.value));Hhz(dK);z(dK);d.value.style.setProperty("--gradient-percent",dK+"%");U(dK)}return!1}),Y=_.c$(function(){J(!0)}),D=_.c$(function(){d&&d.value&&(A(d.value,P()),n(!P()));
return!1}),h={},T={},WF={};
return _.Z("volume-controls",{"on:pointerleave":_.c$(function(){J(!1)}),
class:_.CG("ytdVolumeControlsHost",(h.ytdVolumeControlsHostVertical=C,h.ytdVolumeControlsHostExpanded=function(){return f()},h)),
el:H},_.Z(_.K,{cond:function(){return!C()},
then:function(){var dK={};return _.Z("div",{class:_.CG("ytdVolumeControlsBackgroundScrim",(dK.ytdVolumeControlsBackgroundScrimExpanded=f,dK))})}}),_.Z("div",{class:_.CG((T.ytdVolumeControlsMuteIconButtonContainer=C,T))},_.Z("button",{"aria-label":O,
title:O,el:w,"on:click":D,"on:pointerenter":Y,class:"ytdVolumeControlsMuteIconButton"},F?_.Z(_.nG,{data:F,alt:O,className:"ytdVolumeControlsMuteIcon"}):null)),_.Z("div",{class:_.CG("ytdVolumeControlsSliderContainer",(WF.ytdVolumeControlsSliderContainerExpanded=f,WF.ytdVolumeControlsSliderContainerVertical=C,WF.ytdVolumeControlsSliderContainerVerticalDown=C,WF.ytdVolumeControlsSliderContainerVerticalExpanded=function(){return f()&&C()},WF))},_.Z("input",{"aria-label":_.hP("VOLUME"),
title:_.hP("VOLUME"),el:d,"on:input":v,type:"range",class:"ytdVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":m,"aria-valuetext":c,"aria-valuemin":0,"aria-valuemax":100})))},"fh");var ykh=_.r(function(H){var U=H.data;var A=H.overlayDensity;H={};return _.Z("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.Z(_.YY,{data:function(){return U().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(M){var W=M.data;
return _.Z(_.Od,{data:function(){return(A==null?void 0:A())===1?Object.assign({},W(),{avatar:{avatarViewModel:Object.assign({},_.p(W().avatar,_.Xd),{avatarImageSize:"AVATAR_SIZE_M"})}}):W()}})}}),_.Z(_.YY,{data:function(){return U().avatarStackViewModel}},{avatarStackViewModel:function(M){return _.Z(_.uh,{data:M.data})}}),_.Z(_.Pb,{className:_.CG("ytReelChannelBarViewModelChannelName",(H.ytReelChannelBarViewModelChannelNameLarge=function(){return(A==null?void 0:A())===1},H)),
text:function(){return U().channelName},
linkInheritColor:!0,userInput:!0}),_.Z("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.Z(_.YY,{data:function(){return U().subscribeButtonViewModel}},{subscribeButtonViewModel:function(M){var W=M.data;
return _.Z(_.dx,{data:function(){return(A==null?void 0:A())===1?Object.assign({},W(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},W().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):W()},
isOverlay:!1})},
buttonViewModel:_.yJ})),_.Z("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.Z(_.YY,{data:function(){var M,W;return(W=_.p((M=U())==null?void 0:M.sponsorButtonViewModel,K1w))==null?void 0:W.sponsorButton}},{buttonViewModel:function(M){return _.Z(_.yJ,{data:M.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"gh");var BB8=_.r(function(H){var U=function(){var W;return((W=H.overlayDensity)==null?void 0:W.call(H))===1},A=function(){return U()?22:16},M={};
return _.Z("yt-reel-multi-format-link-view-model",{class:_.CG("ytReelMultiFormatLinkViewModelHost",(M.ytReelMultiFormatLinkViewModelHostTall=!0,M.ytReelMultiFormatLinkViewModelHostLarge=function(){return U()},M))},_.Z(_.xy,{ariaLabel:function(){return H.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return H.data().command}},_.Z("h3",{class:function(){return U()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.Z(_.K,{cond:function(){return H.data().icon},
then:function(W){return _.Z(_.nG,{data:W,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:A})}}),_.Z(_.Pb,{text:function(){return H.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"hh");
BB8.idomCompat=!0;var rkp=_.r(function(H){var U=H.data;var A=H.overlayDensity;var M=H.extractOverlay;var W=_.nA("yt-shorts-suggested-action-view-model");H=_.b(_.iB(!1,void 0,"S60Hzc"));var w=H.next().value,d=H.next().value;H=_.b(_.iB(!1,void 0,"O76chf"));var O=H.next().value,f=H.next().value,J=function(){return U().isMultiLineSa},F=_.$Y(RJ_,function(){var T,WF;
return(WF=(T=U().toggleableContent)==null?void 0:T.entityKey)!=null?WF:""}),P=function(){var T,WF,dK;
return(dK=U().toggleableContent)!=null&&dK.entityKey?(WF=(T=F())==null?void 0:T.value)!=null?WF:!1:!1},n=function(){var T,WF,dK,SN,o_,PF,BF,kc,G8,Pr,Z3;
return U().toggleableContent?P()?(T=U().toggleableContent)==null?void 0:T.toggledData:(WF=U().toggleableContent)==null?void 0:WF.untoggledData:{primaryText:(kc=(dK=U().defaultContent)==null?void 0:dK.primaryText)!=null?kc:U().text,secondaryText:(SN=U().defaultContent)==null?void 0:SN.secondaryText,onTapCommand:(G8=(o_=U().defaultContent)==null?void 0:o_.onTapCommand)!=null?G8:U().onTapCommand,icon:(Pr=(PF=U().defaultContent)==null?void 0:PF.icon)!=null?Pr:U().icon,image:(Z3=(BF=U().defaultContent)==
null?void 0:BF.image)!=null?Z3:U().image}},N=function(){return J()?U().trailingTapTarget:void 0},L=function(T,WF){return function(){return w()?WF:T}},m=function(){return{leadingSection:L("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(A==null?void 0:A())===1?L("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):L("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:L("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:L("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:L("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon"),leadingImage:L("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingImage","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingImage")}};
H={};H=_.CG((H.ytShortsSuggestedActionViewModelStaticHost=function(){return!J()},H.ytShortsSuggestedActionViewModelDynamicHost=J,H.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return J()&&O()},H.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return J()&&!O()},H.ytShortsSuggestedActionViewModelExtractOverlay=function(){return M==null?void 0:M()},H));
_.LA(function(){if(J()){var T=0,WF;if((WF=U().animationParams)==null?0:WF.shouldExpand){var dK,SN;T=((SN=(dK=U().animationParams)==null?void 0:dK.expansionDelaySecs)!=null?SN:0)*1E3}var o_,PF=((o_=U().animationParams)==null?0:o_.shouldExpand)?setTimeout(function(){d(!0)},T):void 0,BF,kc;
T=((BF=U().animationParams)==null?0:BF.visibilityDelaySecs)?((kc=U().animationParams)==null?NaN:kc.visibilityDelaySecs)*1E3:0;var G8=setTimeout(function(){f(!0)},T);
_.m4(function(){PF&&clearTimeout(PF);clearTimeout(G8)})}});
var z=function(T){_.uj(T,Object.assign({},{form:{element:W.value}}))},c=_.c$(function(){var T,WF=(T=n())==null?void 0:T.onTapCommand;
WF&&z(WF)}),C=_.c$(function(){var T,WF;
if(T=(WF=N())==null?void 0:WF.onTapCommand)return z(T),!1}),v=_.rA({"vertical-align":"bottom",
"border-radius":function(){var T;return J()?((T=U().defaultContent)==null?0:T.isCircleImage)?"50%":"4px":"0px"},
width:function(){var T,WF,dK;return J()&&((T=U().defaultContent)==null?0:T.imageSize)?((dK=(WF=U().defaultContent)==null?void 0:WF.imageSize)!=null?dK:24)+"px":null},
height:function(){var T,WF,dK;return J()&&((T=U().defaultContent)==null?0:T.imageSize)?((dK=(WF=U().defaultContent)==null?void 0:WF.imageSize)!=null?dK:24)+"px":null}}),Y=function(){return J()?m().leadingIcon():"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"},D=function(){return J()?m().leadingImage():"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},h={};
return _.Z("yt-shorts-suggested-action-view-model",{class:H,el:W},_.Z("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.Z("button",{class:_.CG(function(){return J()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var T;
return(T=U().useFullRoundedBorder)!=null&&T?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!N()&&J()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":J()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var T;
return(T=U().disableFixedHeight)!=null&&T?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(h.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(A==null?void 0:A())===1},h.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return M==null?void 0:M()},h)),
"on:click":c},_.Z(_.zm,{model:{color:4}}),_.Z("div",{class:_.CG(function(){return J()?m().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.Z(_.K,{cond:function(){var T;
return(T=n())==null?void 0:T.image},
then:function(T){return _.Z(_.nG,{data:T,alt:"",className:D,contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:v})}}),_.Z(_.K,{cond:function(){var T,WF;
return(T=n())==null?void 0:(WF=T.icon)==null?void 0:WF.iconType},
then:function(T){return _.Z(_.er,{icon:T,active:P,className:Y})}})),_.Z("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.Z(_.K,{cond:function(){var T;
return(T=n())==null?void 0:T.primaryText},
then:function(T){var WF={};return _.Z("div",{class:_.CG("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(WF.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(A==null?void 0:A())===1},WF))},_.Z(_.Pb,{text:T}))}}),_.Z(_.K,{cond:function(){var T;
return(T=n())==null?void 0:T.secondaryText},
then:function(T){return _.Z("div",{class:function(){return m().secondaryText()}},_.Z(_.Pb,{text:T}))}}))),_.Z(_.K,{cond:N,
then:function(T){return _.Z("div",{class:_.CG(function(){return m().trailingSection()},function(){var WF,dK;
return(M==null?void 0:M())&&((dK=(WF=m()).trailingSectionExtractOverlay)==null?void 0:dK.call(WF))||""}),
"aria-label":function(){var WF;return(WF=T().a11yLabel)!=null?WF:""},
"on:click":C,role:"button",tabindex:0},_.Z(_.zm,{model:{color:4}}),_.Z(_.er,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"ih");var erk=_.r(function(H){var U=H.data;var A=H.overlayDensity;var M=_.nA("yt-shorts-video-title-view-model");H=_.c$(function(d){if(_.Uy(_.Hq(d),M.value,["A".toString()]))return!1;(d=U().truncatedTextOnTapCommand)&&_.uj(d);return!1});
var W={},w={};return _.Z("yt-shorts-video-title-view-model",{el:M,class:_.CG("ytShortsVideoTitleViewModelHost",(W.ytShortsVideoTitleViewModelHostClickable=function(){return!!U().truncatedTextOnTapCommand},W)),
"on:click":H},_.Z("h2",{class:_.CG("ytShortsVideoTitleViewModelShortsVideoTitle",(w.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(A==null?void 0:A())===1},w.ytShortsVideoTitleViewModelShortsVideoTitleOneLine=function(){return _.S("enable_shorts_declutter_ui")},w.ytShortsVideoTitleViewModelShortsVideoTitleDecluttered=function(){return _.S("enable_desktop_small_title_on_immersive_shorts")},w))},_.Z(_.Pb,{text:function(){return U().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(A==null?void 0:A())===1}})))},"jh");_.Dsp=_.r(function(H){var U=H.data;var A=H.overlayDensity;var M=H.extractOverlay;var W=function(){return(A==null?void 0:A())===1},w=function(){return _.S("enable_shorts_declutter_ui")?"ytReelMetapanelViewModelMetapanelItemDecluttered":"ytReelMetapanelViewModelMetapanelItem"};
return _.Z("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.Z(_.YY,{data:function(){return U().metadataItems}},{badgeViewModel:function(d){d=d.data;
return _.Z("div",{class:_.CG(function(){return W()?"ytReelMetapanelViewModelExpansiveBlock":w()})},_.Z(_.Ed,{data:d}))},
playerDisclosureViewModel:function(d){d=d.data;return _.Z("div",{class:_.CG(function(){return W()?"ytReelMetapanelViewModelExpansiveBlock":w()})},_.Z(_.LO7,{data:d,
extractOverlay:M}))},
shortsSuggestedActionViewModel:function(d){d=d.data;return _.Z("div",{class:_.CG(function(){return W()?"ytReelMetapanelViewModelExpansiveBlock":w()})},_.Z(rkp,{data:d,
overlayDensity:A,extractOverlay:M}))},
reelChannelBarViewModel:function(d){d=d.data;var O={};return _.Z("div",{class:_.CG(w(),(O.ytReelMetapanelViewModelExpansive=function(){return W()},O))},_.Z(ykh,{data:d,
overlayDensity:A}))},
reelMultiFormatLinkViewModel:function(d){d=d.data;var O={};return _.Z("div",{class:_.CG(w(),(O.ytReelMetapanelViewModelExpansive=function(){return W()},O))},_.Z(BB8,{data:d,
overlayDensity:A}))},
shortsVideoTitleViewModel:function(d){d=d.data;var O={};return _.Z("div",{class:_.CG(w(),(O.ytReelMetapanelViewModelExpansive=function(){return W()},O))},_.Z(erk,{data:d,
overlayDensity:A}))},
reelSoundMetadataViewModel:function(d){d=d.data;var O={};return _.Z("div",{class:_.CG(w(),(O.ytReelMetapanelViewModelExpansive=function(){return W()},O))},_.Z(_.ek8,{data:d,
overlayDensity:A}))},
toggleButtonViewModel:function(d){d=d.data;var O={};return _.Z("div",{class:_.CG(w(),(O.ytReelMetapanelViewModelExpansive=function(){return W()},O))},_.Z(_.MI,{data:d}))}}))},"kh");var $sY=_.r(function(H){var U=_.Ec(H,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),A=U.size,M=U.onTap,W=U.disabled,w=U.tooltipText;return _.Z("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.Z(_.cb,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:A(),disabled:W(),tooltipText:w(),onTap:M}},
iconName:H.iconType}))},"lh"),l6Y=_.r(function(H){function U(F){F.stopPropagation();
F.code==="ArrowUp"?(F.preventDefault(),XFk(O.value)):F.code==="ArrowDown"?(F.preventDefault(),ihy(O.value)):F.code==="KeyM"?MNp():(F.code==="KeyK"||F.code==="Space")&&WVm(f())}
var A=_.Ec(H,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});H=A.previousButtonDisabled;var M=A.nextButtonDisabled,W=A.data,w=A.playabilityStatus,d=A.previewThumbnail,O=_.nA("ytd-shorts-miniplayer-overlay"),f=_.Gk(_.FEF),J;_.pA(function(){(J=_.ZD(O.value))&&J.addEventListener("keydown",U)});
_.m4(function(){var F;(F=J)==null||F.removeEventListener("keydown",U)});
A=function(){var F,P;var n=_.p((F=W())==null?void 0:(P=F.reelPlayerOverlayRenderer)==null?void 0:P.buttonBar,unw);if(n){var N;F=Object.assign({},n,{buttonViewModels:(N=n.buttonViewModels)==null?void 0:N.filter(wFr)})}else F=void 0;return F};
return _.Z("ytd-shorts-miniplayer-overlay",{el:O,class:"ytdShortsMiniplayerOverlayHost"},_.Z("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.rA({"background-image":function(){var F=d();return F?'url("'+_.EB(F.thumbnails)+'")':""}})}),_.Z("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.Z("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.Z($sY,{iconType:function(){var F=f();
return F===2||F===-1||F===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){WVm(f())},
tooltipText:function(){var F=f();return F===1||F===3?_.hP("PLAYER_LABEL_PAUSE"):_.hP("PLAYER_LABEL_PLAY")}}),_.Z(_.ckp,{orientation:"horizontal_right"})),_.Z("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.Z($sY,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:H,onTap:function(){XFk(O.value)},
tooltipText:_.hP("PREVIOUS_VIDEO_LABEL")}),_.Z($sY,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:M,onTap:function(){ihy(O.value)},
tooltipText:_.hP("NEXT_VIDEO_LABEL")}),_.S("web_shorts_pip_like_button")?_.Z(_.K,{cond:A,then:function(F){return _.Z("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.Z(_.omg,{data:F,buttonShapeOverrideables:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"}}))}}):null),_.Z("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.Z(_.K,{cond:function(){var F,P;
return _.p((F=W())==null?void 0:(P=F.reelPlayerOverlayRenderer)==null?void 0:P.metapanel,Zam)},
then:function(F){return _.Z("div",{class:_.CG("ytdShortsMiniplayerOverlayInteractive")},_.Z(_.Dsp,{data:F}))}})),_.Z("div",{class:_.CG("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var F;return!((F=W())==null||!F.adsOverlay)||w()&&!Yi0(w())}},_.Z("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.Z(_.txp,null)))),_.Z(_.K,{cond:function(){var F=W(),P,n;
F=_.p(F==null?void 0:(P=F.adsOverlay)==null?void 0:(n=P.fulfillmentContent)==null?void 0:n.fulfilledLayout,qpy);return _.p(F==null?void 0:F.renderingContent,Ipy)},
then:function(F){return _.Z("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.Z(S1g,{data:F}))}}))},"nh");var bh3=_.r(function(){var H=_.b(_.iB(new _.QT(NaN,NaN),void 0,"ejTaF")),U=H.next().value,A=H.next().value;H=_.b(_.iB(!1,void 0,"aTA69e"));var M=H.next().value,W=H.next().value,w=_.b(_.iB(!1,void 0,"OsC2Ib"));H=w.next().value;var d=w.next().value;w=_.lx().resolve(_.ZB).miniplayerPropSignalMap[0];var O=w.data,f=w.shortsData,J=w.nextButtonDisabled,F=w.shortsPreviewThumbnail,P=w.previousButtonDisabled,n=w.externalPlaylistData,N=w.playabilityStatus,L=w.isDisabled,m=w.playerVe,z=w.closeVe;w=_.Gk(_.xC);
_.C5("yt-pip-window-resized",function(Y){A(Y)});
_.C5("yt-activate-pip-miniplayer",function(){return _.u(function(Y){d(!0);_.DO(Y)})});
var c=function(){var Y;return!((Y=n())==null||!Y.contents)&&M()},C=function(){var Y=U(),D=!!O(),h=c();
Y=Y.clone();D&&(Y.height-=76);h&&(Y.height-=285);return Y},v=function(){W(!M())};
_.Em(function(){var Y=m(),D=_.XK(11),h=_.ws(11);D&&h&&Y&&(_.ou(D,h,Y),h=z())&&(_.F_(D,Y,[h]),_.sn(D,[h]))},"h5qKie");
return _.Z("ytd-pip-container",{class:"ytdPipContainerHost"},_.Z(_.K,{cond:H,then:function(){return _.Z(_.Tif,{isDisabled:L,playabilityStatus:N,size:C,isPictureInPicture:!0})}}),_.Z(_.K,{cond:O,
then:function(){return _.Z(_.kUB,{data:O,expanded:M,onExpandClick:v,playlistData:n})}}),_.Z(_.K,{cond:c,
then:function(){return _.Z("div",{class:"ytdPipContainerPlaylistPanel"},_.Z(_.j5X,{data:n,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.Z(_.K,{cond:w,
then:function(){return _.Z(l6Y,{data:f,nextButtonDisabled:J,previousButtonDisabled:P,playabilityStatus:N,previewThumbnail:F})}}))},"ph");var $7=function(H,U,A){var M=this;this.pipController=H;this.JSC$19349_clientRoot=U;this.JSC$19349_pageRequestService=A;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=so8();this.JSC$19349_watchPipEnabled=_.S("web_watch_pip");this.watchPipManualOnlyEnabled=_.S("web_watch_pip_manual");this.shortsPipEnabled=_.S("web_shorts_pip");this.JSC$19349_watchWhileEnabled=_.S("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;_.It(_.Lq(),ZmE,function(W){M.isSingleOptionSurveyActive=W});
this.JSC$19349_onPlayerPlayVideo=this.JSC$19349_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);_.xX(_.a1.getInstance(),this.miniplayerServiceActionMap,this.JSC$19349_clientRoot);H.pictureInPictureSupported()&&_.Fx("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},$8n,QQB,vBf,Vxy,H5m,Jmn,Uah,A95,MDp,jQy;
$7.prototype.handleMediaSessionPipActivation=function(H){var U=this,A,M;return _.u(function(W){_.vc().mediaSessionPipActivation=!0;A=_.lx().resolve(_.SI);if(A.isOnWatch()&&U.JSC$19349_watchPipEnabled){if(U.watchPipManualOnlyEnabled&&((M=H)==null?void 0:M.enterPictureInPictureReason)!=="useraction")return TJ(),W.return();_.vc().watchPipActivation=!0;_.Gq5(U,A.data);return W.jumpTo(0)}return A.isOnShorts()&&U.shortsPipEnabled?(_.vc().shortsPipActivation=!0,_.Yl$(U),W.jumpTo(0)):U.isMiniplayerActive()&&
U.JSC$19349_watchPipEnabled&&!U.watchWhileMode?W.yield(qlh(U),0):W.jumpTo(0)})};
var qlh=function(H){var U,A,M,W;return _.u(function(w){if(w.nextAddress==1)return U=!H.miniplayerToPipMode,A=H.playerElement,M=H.miniplayerData,W=H.watchResponse,w.yield(H.deactivate(),2);if(w.nextAddress!=3)return U?(_.vc().mediaSessionPipActivation=!0,_.vc().watchPipActivation=!0):_.vc().miniplayerButtonActivation=!0,w.yield(H.activate(A,M,W),3);H.miniplayerToPipMode=U;_.DO(w)})};
$7.prototype.onDownloadedVideoDeleted=function(H){var U,A=_.p((U=this.miniplayerData)==null?void 0:U.watchEndpoint,_.sH),M,W;A&&((M=this.watchResponse)==null?void 0:(W=M.playerResponse)==null?void 0:W.offlineState)!==void 0&&(U=A.videoId)&&H&&U===H&&this.close()};
$7.prototype.onShowMiniplayerCommand=function(H){var U=this,A,M,W,w,d,O,f,J,F,P,n;return _.u(function(N){switch(N.nextAddress){case 1:return A=_.p(H,jtp),W=(M=A)==null?void 0:M.miniplayerCommand,w=_.p(W,_.sH),W&&w&&!U.active?N.yield(_.Wd.getInstance(),2):N.return();case 2:return d=N.yieldResult,N.yield((O=d)==null?void 0:O.get("yt-miniplayer-shown-video-id"),3);case 3:f=N.yieldResult;J=w.videoId;if(!J||f===J)return N.return();F=_.lx().resolve(_.SI);if(F.isOnWatch())return _.Na(Error("Xj")),N.return();
P={channelItem:{externalId:btoa(J)}};U.readyToResumeVe=_.ts(121253,void 0,void 0,P);_.vc().showMiniplayerCommandActivation=!0;return N.yield(_.Kr2(U,W,!0),4);case 4:return U.active&&(_.lO(U,{readyToResumeVe:U.readyToResumeVe,isReadyToResume:!0}),U.isReadyToResume=!0),N.yield((n=d)==null?void 0:n.set("yt-miniplayer-shown-video-id",w.videoId),5);case 5:U.readyToResumeVe=void 0,_.DO(N)}})};
$7.prototype.init=function(H){this.miniplayerEl?_.Na(new _.bD("MiniplayerService already initialized.")):this.miniplayerEl=H};
$7.prototype.isInitialized=function(){var H=!!this.miniplayerEl;H||_.Na(new _.bD("MiniplayerService used before initialized."));return H};
_.Gq5=function(H,U){if(H.isInitialized()){var A=_.SQ4(U.response,U.playerResponse),M=_.lx().resolve(_.SI).getPlayerFromWatch();_.vc().currentEndpoint=A.watchEndpoint||null;H.activate(M,A,U)}};
_.Yl$=function(H){if(H.isInitialized()){var U=_.lx().resolve(_.SI).getPlayerFromShorts();H.activate(U)}};
$8n=function(H,U){var A;(A=!H.isInitialized())||(A=_.lx().resolve(_.SI).isOnWatch()&&H.watchPipMode,A=!(H.isMiniplayerActive()&&(_.vc().userActivation||_.vc().lockupActivation||A)));if(A)return!1;hrf(H,U)?_.eJ(H):Jmn(H,U);return H.watchPipMode?!_.lx().resolve(_.SI).isOnWatch():!0};
$7.prototype.isMiniplayerActive=function(){return this.active};
var hrf=function(H,U){var A;U=(A=_.p(U,_.sH))==null?void 0:A.videoId;var M,W;H=(W=_.p((M=H.miniplayerData)==null?void 0:M.watchEndpoint,_.sH))==null?void 0:W.videoId;return U!=null&&U===H};
$7.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.cg(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.yr(this.miniplayerEl,"yt-navigate-home-action"))};
_.Kr2=function(H,U,A,M){A=A===void 0?!1:A;var W,w,d,O;return _.u(function(f){switch(f.nextAddress){case 1:if(H.active){f.jumpTo(2);break}W=_.lx().resolve(_.SI);if(d=(w=H.playerElement)!=null?w:W.getPlayerFromWatch()){f.jumpTo(3);break}return f.yield(_.lx().resolve(_.aL),4);case 4:d=W.getPlayerFromWatch();case 3:if(!d){_.Na(Error("Zj"));f.jumpTo(2);break}return f.yield(H.activate(d,M),2);case 2:return H.active?f.yield(Jmn(H,U,A),7):f.return();case 7:(O=H.getPlayerElement())==null||O.focusOnPlayer(),
_.DO(f)}})};
$7.prototype.activate=function(H,U,A){var M=this,W,w,d,O,f,J,F,P,n;return _.u(function(N){switch(N.nextAddress){case 1:if(!M.isInitialized())return N.return();if(!H)return _.Na(Error("Zj")),N.return();if(_.sXz()||M.isMiniplayerActive())var L=!0;else L=_.vc().watchPipActivation||_.vc().watchWhileActivation,_.lx().resolve(_.SI).isOnWatch()&&!L?(_.Na(new _.bD("miniplayer activated on watch page")),L=!0):L=_.vc().watchWhileActivation?M.userDeactivatedWatchWhile||!!document.pictureInPictureElement||pM7():
!1;if(L)return TJ(),N.return();W=_.vc().mediaSessionPipActivation;w=_.vc().shortsPipActivation;d=_.vc().watchPipActivation;f=(O=_.vc().watchWhileActivation)||d;J=d||w;if(!M.pictureInPictureEnabled()||!J){N.jumpTo(2);break}return N.yield(kq5(M,W),3);case 3:if(!N.yieldResult)return _.Na(Error("Yj")),TJ(),N.return();case 2:return M.setActive(!0),M.watchResponse=A,M.playerElement=H,M.updateMiniplayerData(U),N.yield(vBf(M,H),4);case 4:if(!M.active)return _.Na(new _.bD("miniplayer deactivated during activation")),
M.removePlayerListeners(),N.return();L=_.lx().resolve(_.FX);L.addEventListener("yt-navigate",_.lN(M,M.onPlaylistNavigate));L.addEventListener("yt-playlist-data-updated",_.lN(M,M.JSC$19349_onPlaylistDataUpdated));M.JSC$19349_onPlaylistDataUpdated();TJ();M.JSC$19349_watchWhileEnabled&&_.TBm(M,O);M.pictureInPictureEnabled()&&M.shortsPipEnabled&&(M.shortsPipMode=w,_.Lq().dispatch(iu2(M.shortsPipMode)));M.pictureInPictureEnabled()&&M.JSC$19349_watchPipEnabled&&(M.watchPipMode=d,M.JSC$19349_watchPipEnabled&&
(!M.watchPipManualOnlyEnabled||_.LN_()&&_.SMV("Chromium")>=142)&&_.Ert(M.handleMediaSessionPipActivation));M.player&&(F=M.player.getPlayerState(),P=F===1,_.Lq().dispatch(Fln(F)),_.Bg(M.miniplayerEl,"yt-miniplayer-play-state-changed",[P]),_.vc().isVideoPlaying=P);_.Bg(M.miniplayerEl,"yt-miniplayer-endpoint-changed");jQy(M);_.I6j(M);if(M.shortsPipMode||M.watchPipMode)N=N.yield(_.yr(M.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{L=N.yield;var m=_.yr(M.miniplayerEl,"yt-activate-miniplayer",[f])[0];
N=L.call(N,m,6)}return N;case 6:if(M.watchResponse){L=M.getScreenLayer();m=_.XK(0);var z=TSM(0);m&&z&&(_.bH(m,z,L),L===0&&kVE(void 0,0))}QQB(M);Vxy(M,!0);(n=M.getPlayerElement())==null||n.focusOnPlayer();_.DO(N)}})};
$7.prototype.updateMiniplayerData=function(H){this.miniplayerData=H;_.lO(this,{data:H})};
_.I6j=function(H){var U,A,M=((U=H.miniplayerData)==null?void 0:(A=U.miniplayerRenderer)==null?void 0:A.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";U=H.watchWhileMode||H.watchPipMode?M&&!_.lx().resolve(_.SI).isOnWatch():M;_.lO(H,{isDisabled:U});var W,w;A=_.p((W=H.miniplayerData)==null?void 0:(w=W.miniplayerRenderer)==null?void 0:w.minimizedEndpoint,_.jQ);U&&A&&_.lx().resolve(_.Wi).openSheet({openPopupActionCommand:{openPopupAction:A}},H.miniplayerEl)};
QQB=function(H){if(H.watchResponse&&!H5m(H)){var U,A=(U=H.watchResponse.playerResponse)==null?void 0:U.trackingParams;A&&(_.lO(H,{expandVe:_.ts(35989),closeVe:_.ts(34699),readyToResumeCloseVe:_.ts(131070),repositionVe:_.ts(226204),resizeVe:_.ts(226205)}),_.lO(H,{playerVe:_.IS(A)}))}};
vBf=function(H,U){return _.u(function(A){if(A.nextAddress==1)return U.preparePlayer(),A.yield(U.getPlayerPromise(),2);H.player=A.yieldResult;H.player&&(H.player.addEventListener("onPlayVideo",H.JSC$19349_onPlayerPlayVideo),H.player.addEventListener("onCloseMiniplayer",H.onPlayerCloseMiniplayer),H.player.addEventListener("onExpandMiniplayer",H.onPlayerExpandMiniplayer),H.player.addEventListener("onStateChange",H.onPlayerStateChange));_.DO(A)})};
_.X=$7.prototype;_.X.JSC$19349_onPlayerPlayVideo=function(H){var U=H.sessionData&&"autonav"in H.sessionData,A;H.sessionData&&H.sessionData.itct&&(A=H.sessionData.itct);var M=H.watchEndpoint;U=M&&U?_.hz0(M,A):_.mb(H.videoId,H.listId||void 0,A);H.sessionData&&_.Sb(_.p(U.commandMetadata,_.Y2).url,H.sessionData);Jmn(this,U)};
_.X.onPlayerExpandMiniplayer=function(){_.eJ(this)};
_.X.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.X.onPlayerStateChange=function(){if(this.player){var H=this.player.getPlayerState(),U=H===1;_.Lq().dispatch(Fln(H));_.Lq().dispatch(_.nTz(H));_.Bg(this.miniplayerEl,"yt-miniplayer-play-state-changed",[U]);_.vc().isVideoPlaying=U;if(H===0){U=!_.at.getInstance().isAutoplaySetExplicitly();var A,M,W,w,d,O,f=(A=this.watchResponse.response)==null?void 0:(M=A.contents)==null?void 0:(W=M.twoColumnWatchNextResults)==null?void 0:(w=W.autoplay)==null?void 0:(d=w.autoplay)==null?void 0:(O=d.autoplayExplicitChoiceDialogRenderer)==
null?void 0:O.confirmDialogRenderer;U&&f&&this.player.setAutonavState(1)}H===0&&this.watchWhileMode&&this.deactivate()}};
_.X.onPlaylistNavigate=function(H,U){var A=this,M,W,w,d,O,f,J;return _.u(function(F){if(F.nextAddress==1){if(!_.p(U.endpoint,_.sH))return F.return();_.vc().currentEndpoint=U.endpoint;_.Bg(A.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.lx().resolve(_.SI).isOnWatch()&&(A.watchWhileMode||A.watchPipMode))return F.return();H.stopPropagation();(w=(W=_.p((M=U.endpoint)==null?void 0:M.commandMetadata,_.Y2))==null?void 0:W.url)&&U.tempData&&!_.dG.isEmpty(U.tempData)&&_.Sb(w,U.tempData);d={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};O=new nJH(function(){return A.getPlayerElement()},d,{layer:A.getScreenLayer()});
f=function(P){O.processChunk({endpoint:U.endpoint,data:P})};
Uah(A);A.miniplayerFetchRequest=A95(A,U.endpoint,f);_.zj(F,2);return F.yield(A.miniplayerFetchRequest,4)}if(F.nextAddress!=2)return J=F.yieldResult,MDp(A,J),_.xD(F,0);_.eG(F);_.DO(F)})};
_.X.JSC$19349_onPlaylistDataUpdated=function(){var H=_.lx().resolve(_.FX).getPlaylistData();this.hasPlaylistData=!!H;_.lO(this,{externalPlaylistData:H||{}})};
_.X.close=function(H){if(this.isInitialized())if(H){if(!((this.watchWhileMode||this.watchPipMode)&&_.lx().resolve(_.SI).isOnWatch()||this.shortsPipMode)){var U;(U=this.getPlayerElement())==null||U.stop()}this.deactivate()}else _.SZ().closeMiniplayer(this.miniplayerEl)};
_.X.deactivate=function(H){var U=this,A,M,W,w;return _.u(function(d){if(d.nextAddress==1){if(!U.isInitialized()||!U.active)return d.return();U.setActive(!1);Uah(U);(A=!!H&&hrf(U,H))&&U.isSingleOptionSurveyActive&&_.yr(U.miniplayerEl,"yt-show-watch-page-survey",[U.isSingleOptionSurveyActive]);return d.yield(WUj(U),2)}if(d.nextAddress!=3){Vxy(U,!1);U.isReadyToResume=!1;U.watchResponse=void 0;U.updateMiniplayerData(void 0);U.shortsPipMode&&(U.shortsPipMode=!1,_.Lq().dispatch(iu2(U.shortsPipMode)),JaB(U.pipController),
(M=U.player)==null||M.setInternalSize(NaN,NaN));U.watchPipMode&&(U.watchPipMode=!1,JaB(U.pipController));(W=U.watchWhileMode)&&_.TBm(U,!1);U.removePlayerListeners();var O=_.lx().resolve(_.FX);O.removeEventListener("yt-navigate",_.lN(U,U.onPlaylistNavigate));O.removeEventListener("yt-playlist-data-updated",_.lN(U,U.JSC$19349_onPlaylistDataUpdated));_.vc().currentEndpoint=null;_.Bg(U.miniplayerEl,"yt-miniplayer-endpoint-changed");U.playerElement=null;TJ();if(U.shortsPipMode||U.watchPipMode)d=d.jumpTo(3);
else{O=d.yield;var f=_.yr(U.miniplayerEl,"yt-deactivate-miniplayer",[A,W])[0];d=O.call(d,f,3)}return d}(w=U.player)==null||w.setInternalSize(NaN,NaN);U.player=null;_.DO(d)})};
var WUj=function(H){var U;return _.u(function(A){U=_.lx().resolve(_.SI);return H.shortsPipMode?A.yield(U.movePlayerToShorts(H.playerElement),0):A.yield(U.movePlayerToWatch(H.playerElement),0)})};
$7.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19349_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
$7.prototype.setActive=function(H){this.active=H;this.isSingleOptionSurveyActive?_.yr(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.yr(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Lq().dispatch(_.zQ({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.TBm=function(H,U){H.watchWhileMode=U;_.lO(H,{watchWhile:U})};
Vxy=function(H,U){if(!H5m(H))if(H.shortsPipMode||H.watchPipMode){var A;(A=H.player)==null||A.setDocumentPictureInPicture(U)}else{var M;(M=H.player)==null||M.setMinimized(U)}};
H5m=function(H){return H.watchWhileMode&&_.S("kevlar_watch_while_counterfactual")};
_.eJ=function(H){var U;return _.u(function(A){switch(A.nextAddress){case 1:if(!H.isInitialized())return A.return();_.zj(A,2);return A.yield(H.miniplayerFetchRequest,4);case 4:_.xD(A,3);break;case 2:_.eG(A);case 3:H.watchResponse&&H.miniplayerData&&H.miniplayerData.watchEndpoint?(U={url:H.watchResponse.url,endpoint:H.miniplayerData.watchEndpoint,data:H.watchResponse,miniplayer:!0},_.cg(H.miniplayerEl,"yt-navigate-cache",U)):H.miniplayerData&&H.miniplayerData.watchEndpoint&&_.cg(H.miniplayerEl,"yt-navigate",
{endpoint:H.miniplayerData.watchEndpoint}),_.DO(A)}})};
Jmn=function(H,U,A){var M,W,w,d;return _.u(function(O){if(O.nextAddress==1){if(hrf(H,U))return O.return();_.vc().currentEndpoint=U;_.Bg(H.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Bg(H.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.vc().isVideoPlaying=!1;M={clientParams:{miniplayer:!0,autoSaveToQueue:!A}};W=new nJH(function(){return H.getPlayerElement()},M,{layer:H.getScreenLayer(),
parentLayer:0},void 0,H.readyToResumeVe);w=function(f){var J,F,P=Object.assign({},(J=f.playerResponse)==null?void 0:(F=J.playerConfig)==null?void 0:F.playbackStartConfig,{startPaused:!0}),n;A&&((n=f.playerResponse)==null?0:n.playerConfig)&&(f.playerResponse.playerConfig.playbackStartConfig=P);W.processChunk({endpoint:U,data:f})};
Uah(H);H.miniplayerFetchRequest=A95(H,U,w);_.zj(O,2);return O.yield(H.miniplayerFetchRequest,4)}if(O.nextAddress!=2)return d=O.yieldResult,MDp(H,d),_.xD(O,0);_.eG(O);_.DO(O)})};
$7.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
Uah=function(H){H.miniplayerFetchRequest&&(H.miniplayerFetchRequest.cancel&&H.miniplayerFetchRequest.cancel("Active request obsolete"),H.miniplayerFetchRequest=null)};
A95=function(H,U,A){var M,W=(M=_.p(U.commandMetadata,_.Y2))==null?void 0:M.url,w;M=!W||_.tN("disable_miniplayer_tempdata")?{}:(w=cAN(W))!=null?w:{};return Kx(H.JSC$19349_pageRequestService,U,M,window.location.href,"watch",function(d,O){A(O)},function(d){return d!==H.miniplayerFetchRequest})};
MDp=function(H,U){var A;_.u(function(M){if(!U)return M.return();H.watchResponse=U;QQB(H);jQy(H);A=_.SQ4(U.response,U.playerResponse);if(H.isMiniplayerActive()){U.response&&(H.playerElement.watchNextData=U.response);var W=_.dG.getValueByKeys.apply(_.dG,[U].concat(_.vI(xNk)));_.dG.getValueByKeys.apply(_.dG,[U].concat(_.vI(y7H)))&&W&&_.lx().resolve(_.FX).setAutoplayRenderer(W);if(W)if(_.S("kevlar_is_pupi_enabled")){var w,d,O,f,J,F=((w=U.response)==null?0:(d=w.playerOverlays)==null?0:(O=d.playerOverlayRenderer)==
null?0:(f=O.autonavToggle)==null?0:(J=f.autoplaySwitchButtonRenderer)==null?0:J.enabled)?2:1;_.at.getInstance().setState(F,!1,!1)}else w=MZc()?2:1,(F=H.player)==null||F.setAutonavState(w);H.updateMiniplayerData(A);_.I6j(H)}_.DO(M)})};
jQy=function(H){var U,A,M=(U=H.watchResponse)==null?void 0:(A=U.playerResponse)==null?void 0:A.playabilityStatus,W;U=M==null?void 0:(W=M.miniplayer)==null?void 0:W.miniplayerRenderer;(U==null?void 0:U.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&U.minimizedEndpoint&&_.rs(H.miniplayerEl,[U.minimizedEndpoint]);_.lO(H,{playabilityStatus:M})};
_.lO=function(H,U){(0,H.miniplayerPropSignalMap[1])(U)};
$7.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var H;return this.playerElement?this.playerElement:(H=_.c4(this.miniplayerEl).querySelector("#player-container"))==null?void 0:H.firstElementChild};
$7.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var kq5=function(H,U){U=U===void 0?!1:U;var A,M,W,w,d,O;return _.u(function(f){if(f.nextAddress==1){if(!H.pictureInPictureSupported()||!Ohm()&&!U)return f.return(!1);A=w15(H);M=A.width;W=A.height;return f.yield(H.pipController.openWindow({width:M,height:W}),2)}w=f.yieldResult;d=H.pipController.getWindow();if(!d||!w)return f.return(!1);d.document.body.style.overflow="hidden";O=drg(d);K4B(H.pipController,function(){X1X(H);O()});
return f.return(!0)})},w15=function(H){var U=_.vc().shortsPipActivation,A,M;
H=U?.5625:(M=(A=H.player)==null?void 0:A.getVideoAspectRatio())!=null?M:16/9;A=Math.min(window.innerWidth,window.innerHeight)/2;U=U?0:76;return H>1?new _.QT(A,U+A/H):new _.QT(A*H,U+A)},X1X=function(H){var U;
_.u(function(A){U=_.lx().resolve(_.SI);return U.isOnWatch()&&H.watchPipMode||U.isOnShorts()&&H.shortsPipMode?A.yield(H.deactivate(),0):H.miniplayerToPipMode?A.yield(qlh(H),0):H.watchPipMode?A.yield(_.eJ(H),0):A.jumpTo(0)})};
$7.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.JSC$19349_watchPipEnabled||this.shortsPipEnabled)};
_.D5.Object.defineProperties($7.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
$7[Ga]=[op7,yY3,_.UP];var i5h="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(" "),
b58="add_circle alert_bubble audio bag bell clapperboard clock copy creator_studio_red_logo download download fashion flag gaming gear help_circle history home lightbulb live menu mic news offline_no_content overflow_horizontal overflow_vertical play_square_stack playlist podcast search subscriptions thumb_up trash_can trending trophy unplugged_logo video video_camera_add x youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),da8="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
O58="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var uxY=function(H,U,A){_.XG.call(this);this.store=H;this.panelController=U;this.pageContentExtractor=A;this.isInitialized=!1};
_.R(uxY,_.XG);
uxY.prototype.init=function(H){var U=this;this.isInitialized||(this.isInitialized=!0,this.environment=H!=null?H:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.fl.currentPageSubTypeSelector(this.store.getState()),H=_.It(this.store,_.fl.currentPageSubTypeSelector,function(A){a:if(_.Z5Y(U))switch(A){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var M=!0;break a;default:M=!1}else M=!1;M&&U.panelController.hidePanel({identifier:"PAai_companion"});
U.pageSubtype!==A&&(U.pageSubtype=A)}),this.addOnDisposeCallback(H))};
_.pLp=function(H,U){if(_.Z5Y(H))switch(U){case "watch":var A,M;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(A=_.yU())==null?void 0:(M=A.getVideoData())==null?void 0:M.video_id};case "search":var W,w,d;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(w=(W=H.pageContentExtractor)==null?void 0:Ufj(W))!=null?w:[],entityId:(d=(new URLSearchParams(window.location.search)).get("search_query"))!=null?d:void 0};case "companion-canvas":var O,f;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(f=(O=
H.pageContentExtractor)==null?void 0:Ufj(O))!=null?f:[]};default:var J,F;H={videoIds:(F=(J=H.pageContentExtractor)==null?void 0:Ufj(J))!=null?F:[]};return _.S("enable_ai_companion_default_page_context")?H:void 0}};
_.Z5Y=function(H){return H.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
uxY[Ga]=[_.bK,_.Mx,_.$V(Aaf)];var fzY=_.r(function(H){return _.Z("yt-common-mark-view-model",{class:"ytCommonMarkViewModelHost"},_.Z(_.pP,{className:H.className,text:function(){return H.data().text||""},
wrapCodeBlocks:H.shouldWrapCodeBlock}))},"rh");_.J9y=_.r(function(H){return _.Z("yt-ai-companion-attachment-view-model",{el:_.sB(_.Wq(function(){return H.data().rendererContext})),
class:_.CG("ytAiCompanionAttachmentViewModelHost",H.className)},_.Z("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.Z(_.K,{cond:function(){return H.data().title},
then:function(U){return _.Z("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return U().content}},_.Z(_.Pb,{text:U}))}}),_.Z(_.K,{cond:function(){return _.Zf(H.data().trailingTitleIcon)},
then:function(U){return _.Z("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.Z(_.nG,{data:U,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.Z(_.K,{cond:function(){return H.data().description},
then:function(U){return _.Z("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.Z(_.Pb,{text:U}))}}),_.Z(_.K,{cond:function(){return H.data().bottomItem},
then:function(U){return _.Z("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.Z(_.YY,{data:U},{tableViewModel:MFn}))}}))},"sh");_.KUY=_.r(function(H){return _.Z("yt-channel-attribution-view-model",{class:_.CG("ytChannelAttributionViewModelHost",H.className)},_.Z("div",{class:"ytChannelAttributionViewModelUpper"},_.Z(_.YY,{data:function(){return H.data().avatar}},{decoratedAvatarViewModel:_.Od}),_.Z("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.Z(_.Pb,{text:function(){return H.data().title}}))),_.Z("div",{class:"ytChannelAttributionViewModelBottom"},_.Z(_.Pb,{text:function(){return H.data().subtitle}})))},"th");var oXh=_.r(function(H){var U=_.b(_.iB(!1,void 0,"MFRKRb")),A=U.next().value,M=U.next().value,W=function(){return H.data().activeRenderer},w=function(){return H.data().inactiveRenderer};
return _.Z("yt-channel-disclosure-view-model",{"on:mouseleave":_.c$(function(){M(!1)}),
"on:mouseover":_.c$(function(){M(!0)}),
class:_.CG("ytChannelDisclosureViewModelHost",H.className)},_.Z(_.K,{cond:function(){return A()},
then:function(){return _.Z(_.YY,{data:W},{channelAttributionViewModel:_.KUY})},
else:function(){return _.Z(_.YY,{data:w},{decoratedAvatarViewModel:_.Od})}}))},"uh");var FUp=null;var PMp={},s1h=(PMp.initialized={priority:10,callback:function(H){var U=_.lx();U.addProvider({provide:Z_y,useClass:FT8});U.addProvider({provide:_.oVf,useFactory:function(){return new f6B}});
U.addProvider({provide:Sz,useValue:_.gD("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});U.addProvider({provide:ts5,useValue:5184E6});U.addProvider({provide:WPY,useValue:_.MP()});U.addProvider({provide:z8f,useClass:cun});U.addProvider({provide:pQ,useClass:pQ});U.addProvider({provide:_.aL,useFactory:function(){return buh.promise}});
U.addProvider({provide:_.Oum,useFactory:function(){return _.dNB.promise}});
U.addProvider({provide:Dcc,useValue:function(){var f;return((f=_.Ly())==null?void 0:f.getPlayer())||null}});
var A={};U.addProvider((A.provide=_.iO,A.useFactory=function(f,J){return function(){return diN(f,J)}},A[Ga]=[Sz,
ts5],A));A={};U.addProvider((A.provide=_.Da,A.useClass=TGh,A[Ga]=[Sz,ts5],A));A={};U.addProvider((A.provide=_.P7z,A.useClass=Vl7,A[Ga]=[_.Da],A));U.addProvider({provide:Kw,useFactory:_.Lq});U.addProvider({provide:CY,useFactory:_.Lq});U.addProvider({provide:q5k,useFactory:_.Lq});U.addProvider({provide:_.LAr,useFactory:function(){var f;return((f=_.Ly())==null?void 0:f.getPlayer())||null}});
U.addProvider({provide:LPj,useFactory:_.Lq});U.addProvider({provide:_.bK,useFactory:_.Lq});A={};U.addProvider((A.provide=ndg,A.useFactory=function(f){return f.dispatch.bind(f)},A[Ga]=[_.bK],A));
U.addProvider({provide:hE,useValue:_.GQ});U.addProvider({provide:Jr$,useClass:ftF});U.addProvider({provide:VGh,useClass:QD5});U.addProvider({provide:kE,useClass:kE});U.addProvider({provide:q4,useClass:q4});U.addProvider({provide:lT,useClass:lT});U.addProvider({provide:hu,useClass:hu});U.addProvider({provide:HD,useClass:HD});U.addProvider({provide:ya,useClass:ya});U.addProvider({provide:NQ,useClass:NQ});U.addProvider({provide:PV$,useValue:cjm});A={};U.addProvider((A.provide=slf,A.useFactory=function(f){return f.watchEndpointMap||
{}},A[Ga]=[PV$],A));
A={};U.addProvider((A.provide=nlk,A.useFactory=function(f){return f.reelWatchEndpointMap||{}},A[Ga]=[PV$],A));
U.addProvider({provide:_.U8,useFactory:_.k$});U.addProvider({provide:ib,useFactory:_.TR});A={};U.addProvider((A.provide=bMK,A.useFactory=function(f){return function(J){var F={automatedLogEventSource:5};F=F===void 0?{}:F;var P,n,N=(n=_.p((P=J.endpoint)==null?void 0:P.commandMetadata,_.Y2))==null?void 0:n.rootVe;if(N){var L,m;if(P=J.previousCsn||((m=_.p((L=J.endpoint)==null?void 0:L.commandMetadata,zxw))==null?void 0:m.parentCsn)){var z=z===void 0?{}:z;if(P!==_.XK(z.layer)||N!==TSM(z.layer))H$E(P,z.cttAuthInfo,
z.layer||0),kVE(P,z.layer||0),L=z.layer||0,_.mT(vkM(L===void 0?0:L),N);F.parentCsn=P}J.endpoint&&P?MYg(f,J.endpoint,F):_.DJ(f,N,void 0,F);var c;((c=J.response)==null?0:c.trackingParams)&&f.graftServerVe(J.response.trackingParams);var C;((C=J.playerResponse)==null?0:C.trackingParams)&&f.graftServerVe(J.playerResponse.trackingParams);var v;((v=J.reelWatchSequenceResponse)==null?0:v.trackingParams)&&f.graftServerVe(J.reelWatchSequenceResponse.trackingParams)}}},A[Ga]=[_.U8],A));
A={};U.addProvider((A.provide=krj,A.useClass=h85,A[Ga]=[hE,_.bK],A));A={};U.addProvider((A.provide=ns,A.useClass=ns,A[Ga]=[_.aL,_.bK],A));A={};U.addProvider((A.provide=Ks,A.useClass=Ks,A[Ga]=[CY,_.YV],A));U.addProvider({provide:_.MMh,useClass:PB5});A={};U.addProvider((A.provide=_.Mx,A.useClass=Xep,A[Ga]=[_.MMh,_.$V(_.Xi)],A));U.addProvider({provide:_.eO,useClass:Uuh});A={};U.addProvider((A.provide=Db,A.useClass=Db,A[Ga]=[_.eO,_.aL,_.IE,_.YV],A));U.addProvider({provide:_.Wi,useClass:ps});U.addProvider({provide:_.jkh,
useClass:UUy});U.addProvider({provide:_.wx,useClass:Nq});_.S("enable_ai_companion")&&(U.addProvider({provide:_.Xi,useClass:dff}),U.addProvider({provide:_.thg,useClass:wG3}),U.addProvider({provide:Aaf,useClass:Vv8}),U.addProvider({provide:dc,useClass:dc}),U.addProvider({provide:bT,useClass:bT}),U.addProvider({provide:c4w,useValue:oXh}),U.addProvider({provide:_.y4K,useValue:_.J9y}),U.addProvider({provide:Btp,useValue:fzY}));_.S("enable_ai_chat_controller")&&U.addProvider({provide:_.iT,useClass:uxY});
A={};U.addProvider((A.provide=_.M4,A.useClass=F4y,A[Ga]=[_.M4],A));U.addProvider({provide:_.lr,useClass:hKh});U.addProvider({provide:P9,useClass:P9});U.addProvider({provide:Yd,useClass:Yd});U.addProvider({provide:Lw,useClass:Lw});A={};U.addProvider((A.provide=M6,A.useClass=M6,A[Ga]=[_.YV,_.IE],A));U.addProvider({provide:c9,useClass:SJ});A={};U.addProvider((A.provide=rc,A.useClass=rc,A[Ga]=[_.Wi,c9],A));A={};U.addProvider((A.provide=zx,A.useClass=zx,A[Ga]=[_.Wi],A));U.addProvider({provide:fw,useClass:fw});
U.addProvider({provide:EZp,useClass:RNy});_.S("web_enable_feedback_endpoint_resolver_batch_2")&&(A={},U.addProvider((A.provide=o4,A.useClass=o4,A[Ga]=[Kw],A)),A={},U.addProvider((A.provide=JZ,A.useClass=JZ,A[Ga]=[EZp],A)));A={};U.addProvider((A.provide=yi,A.useClass=yi,A[Ga]=[_.wx,c9],A));A={};U.addProvider((A.provide=a4,A.useClass=a4,A[Ga]=[_.wx],A));A={};U.addProvider((A.provide=B9,A.useClass=B9,A[Ga]=[_.IE,_.Mx],A));A={};U.addProvider((A.provide=tZ,A.useClass=tZ,A[Ga]=[_.IE,_.U8],A));U.addProvider({provide:Ju,
useClass:Ju});A={};U.addProvider((A.provide=Xs,A.useClass=Xs,A[Ga]=[Kw],A));U.addProvider({provide:gE,useClass:gE});U.addProvider({provide:mv,useClass:mv});A={};U.addProvider((A.provide=x9,A.useClass=x9,A[Ga]=[Kw],A));A={};U.addProvider((A.provide=zp,A.useClass=zp,A[Ga]=[_.IE,Kw],A));A={};U.addProvider((A.provide=CI,A.useClass=CI,A[Ga]=[Kw],A));A={};U.addProvider((A.provide=tu,A.useClass=tu,A[Ga]=[Kw],A));A={};U.addProvider((A.provide=xd,A.useClass=xd,A[Ga]=[_.Mx],A));A={};U.addProvider((A.provide=
s2,A.useClass=s2,A[Ga]=[_.U8],A));A={};U.addProvider((A.provide=RP,A.useClass=RP,A[Ga]=[ub],A));A={};U.addProvider((A.provide=E2,A.useClass=E2,A[Ga]=[ub],A));U.addProvider({provide:SO,useClass:SO});U.addProvider({provide:pI,useClass:pI});U.addProvider({provide:Ps,useClass:Ps});A={};U.addProvider((A.provide=ez,A.useClass=ez,A[Ga]=[_.Mx,_.YV],A));U.addProvider({provide:N6,useClass:N6});A={};U.addProvider((A.provide=Cw,A.useClass=Cw,A[Ga]=[_.IE,_.Mx],A));U.addProvider({provide:R4,useClass:R4});A={};
U.addProvider((A.provide=Ws,A.useClass=Ws,A[Ga]=[Kw,_.IE,_.M4],A));A={};U.addProvider((A.provide=U2,A.useClass=U2,A[Ga]=[_.IE,_.YV],A));U.addProvider({provide:gqr,useValue:ow0});U.addProvider({provide:r4K,useValue:A57});U.addProvider({provide:Au,useClass:Au});A={};U.addProvider((A.provide=Hs,A.useClass=Hs,A[Ga]=[Kw],A));A={};U.addProvider((A.provide=wE,A.useClass=wE,A[Ga]=[_.lr,_.YV],A));A={};U.addProvider((A.provide=Fy,A.useClass=Fy,A[Ga]=[_.YV],A));A={};U.addProvider((A.provide=Zw,A.useClass=Zw,
A[Ga]=[CY],A));U.addProvider({provide:pFH,useFactory:_.P4.getInstance});A={};U.addProvider((A.provide=pw,A.useClass=pw,A[Ga]=[Sz,pFH,_.YV],A));U.addProvider({provide:sZ,useClass:sZ});U.addProvider({provide:W9,useClass:W9});U.addProvider({provide:Xy,useClass:Xy});U.addProvider({provide:_.wc,useClass:_.wc});U.addProvider({provide:Bs,useClass:Bs});A={};U.addProvider((A.provide=Tx,A.useClass=Tx,A[Ga]=[CY],A));A={};U.addProvider((A.provide=$d,A.useClass=$d,A[Ga]=[_.YV],A));A={};U.addProvider((A.provide=
jz,A.useClass=jz,A[Ga]=[_.YV],A));A={};U.addProvider((A.provide=I4,A.useClass=I4,A[Ga]=[_.YV],A));_.S("web_enable_prefetching_videos_on_home")&&(U.addProvider({provide:Jv,useClass:Jv}),U.addProvider({provide:Cs,useClass:Cs}));A={};U.addProvider((A.provide=yl,A.useClass=yl,A[Ga]=[_.YV],A));U.addProvider({provide:OZ,useClass:OZ});A={};U.addProvider((A.provide=KI,A.useClass=KI,A[Ga]=[_.IE,_.YV],A));A={};U.addProvider((A.provide=uT,A.useClass=uT,A[Ga]=[_.YV],A));A={};U.addProvider((A.provide=tv,A.useClass=
tv,A[Ga]=[_.IE,_.YV],A));U.addProvider({provide:F6h,useClass:F6h});U.addProvider({provide:oDy,useClass:oDy});U.addProvider({provide:hZ,useClass:hZ});A={};U.addProvider((A.provide=q6,A.useClass=q6,A[Ga]=[CY,_.YV],A));U.addProvider({provide:kd,useClass:kd});A={};U.addProvider((A.provide=lb,A.useClass=lb,A[Ga]=[CY,_.YV,_.IE],A));A={};U.addProvider((A.provide=Gp,A.useClass=Gp,A[Ga]=[_.YV],A));A={};U.addProvider((A.provide=$9,A.useClass=$9,A[Ga]=[_.YV,_.IE],A));A={};U.addProvider((A.provide=fI,A.useClass=
fI,A[Ga]=[_.YV,_.IE],A));A={};U.addProvider((A.provide=Vi,A.useClass=Vi,A[Ga]=[_.aL],A));A={};U.addProvider((A.provide=Qi,A.useClass=Qi,A[Ga]=[_.aL],A));A={};U.addProvider((A.provide=v9,A.useClass=v9,A[Ga]=[_.aL],A));U.addProvider({provide:O2,useClass:O2});U.addProvider({provide:Zb,useClass:Zb});U.addProvider({provide:aP,useClass:aP});U.addProvider({provide:oP,useClass:oP});U.addProvider({provide:dE,useClass:dE});U.addProvider({provide:EZ,useClass:EZ});U.addProvider({provide:bb,useClass:bb});U.addProvider({provide:_.k9,
useClass:Rs});U.addProvider({provide:gk,useFactory:function(){return _.a1.getInstance()}});
U.addProvider({provide:Grk,useFactory:Nft});U.addProvider({provide:ub,useFactory:function(){return _.Wd.getInstance()}});
U.addProvider({provide:IEg,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});A={};U.addProvider((A.provide=_.FJ,A.useClass=_.FJ,A[Ga]=[_.aL,_.YV,_.U8,Grk,ub,gk,IEg,hE],A));U.addProvider({provide:_.qM,useClass:F2r});U.addProvider({provide:_.yzy,useClass:czm});A={};U.addProvider((A.provide=mn,A.useClass=mn,A[Ga]=[_.yzy],A));A={};U.addProvider((A.provide=_.PD,A.useFactory=function(f){return f.upliftCompletionResolver.promise},A[Ga]=[krj],A));
A=_.xV("IS_SHELL_LOAD")?"aa":"eocs";var M=_.xV("IS_SHELL_LOAD")?3:2;_.sC().parkOrScheduleJob(function(){TO$()},M,A);
_.sC().parkOrScheduleJob(function(){_.lx().resolve(ns).start()},2,"eocs");
_.sC().parkOrScheduleJob(function(){Y5j()},2,"eocs");
_.sC().parkOrScheduleJob(function(){_.lx().resolve(Ks).start()},2,"eocs");
_.S("kevlar_debug_data_app_registration_ks")||Jl_();U.addProvider({provide:_.qe,useValue:new HUB(H.root)});U.addProvider({provide:mU,useValue:new gCt});U.addProvider({provide:_.bU7,useValue:new XIj(H.root)});U.addProvider({provide:_.jp,useValue:new iU8});U.addProvider({provide:_.l1,useClass:jA});U.addProvider({provide:op7,useClass:Ls});_.S("kevlar_network_sli_killswitch")||U.addProvider({provide:LTy,useValue:FGn});U.addProvider({provide:KTX,useFactory:mlr});A={};U.addProvider((A.provide=bp5,A.useFactory=
w_4,A[Ga]=[_.PD,Kw,_.iO],A));A={};U.addProvider((A.provide=iph,A.useClass=Y9,A[Ga]=[bp5],A));U.addProvider({provide:Gg5,useClass:eF7});U.addProvider({provide:Mlh,useClass:w8Y});A=[].concat(_.vI(tHE));A.push(_.XA);A.push(dxp);_.S("enable_share_panel_navigation_logging_fix_on_web")&&A.push(_.Lgz);U.addProvider({provide:CG8,useValue:A});U.addProvider({provide:Ecg,useClass:ADY});U.addProvider({provide:aM7,useClass:RY$});A={};U.addProvider((A.provide=SMw,A.useClass=sDB,A[Ga]=[CY],A));_.Fl.addLowPriorityJob(function(){BrE()});
A={};U.addProvider((A.provide=tPw,A.useFactory=function(f){return function(J){var F,P=(F=_.p(J.commandMetadata,_.Y2))==null?void 0:F.url;if(!P)throw new _.bD("No URL for PBJ Command",J);P=OEK(P,{pbj:"1"});F=zMc(P,{})||{};F=Object.assign({},F,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.gD("STS").toString()});J=_.hz({command:JSON.stringify(J),session_token:_.gD("XSRF_TOKEN")});return f.fetch(P,{method:"POST",headers:F,body:J})}},A[Ga]=[aM7],A));
U.addProvider({provide:ND5,useFactory:function(){var f={};return f.CSI=aRV(),f.ECATCHER=gQM(),f}});
U.addProvider({provide:Jth,useClass:SWh});A=[];A.push(U.resolve(Mlh));M={};M=(M.client_location=_.P4.getInstance(),M.consistency=_.lGM(),M.entities=U.resolve(VGh),M.response_received_commands=U.resolve(Ecg),M.store=U.resolve(_.P7z),M.tokens=U.resolve(Mlh),M.service_params=U.resolve(Jth),M);if(_.S("web_shorts_prefetch_service_enabled")){var W=new HW8(U.resolve(_.Da));M.shorts_prefetch=W}M.adblock_detection=U.resolve(SMw);_.S("web_enable_chunk_prediction")&&(U.addProvider({provide:e8$,useClass:DgY}),
U.addProvider({provide:gck,useClass:Qh$}),M.mss=U.resolve(gck),_.Rc(window,"yt-navigate-start",function(f){var J;f=(J=f.detail)==null?void 0:J.endpoint;var F;if(J=(F=_.p(f==null?void 0:f.commandMetadata,_.Y2))==null?void 0:F.rootVe){F=_.gD("VE_TYPE_TO_XIDS",{});var P,n;f=(n=(P=F["0"])==null?void 0:P.xids)!=null?n:[];var N,L;P=(L=(N=F[J])==null?void 0:N.xids)!=null?L:[];N=f.concat(P);if(J in F&&N.length>0){var m;(m=lTp(_.lx().resolve(e8$),N))==null||m()}}}));
U.addProvider({provide:_.xB,useClass:_.xB});W=U.resolve(PV$);var w=[];_.S("PremiumClientSharedConfig__enable_att_context_processor")&&(U.addProvider({provide:BYX,useClass:tG8}),w.push(U.resolve(BYX)));if(_.S("owl_pl_await")){var d={};U.addProvider((d.provide=iA$,d.useFactory=function(f){return new w55(f)},d[Ga]=[_.xB],d));
w.push(U.resolve(iA$))}ByH(W,U.resolve(aM7),U.resolve(Jr$),M,U.resolve(_.Da),A,w,U.resolve(iph),U.resolve(Gg5));U.addProvider({provide:_.IE,useValue:_.ZW.instance});_.S("start_client_gcf")&&U.addProvider({provide:du,useValue:xY2()});U.addProvider({provide:IT8,useFactory:function(){return new IT8(_.lx().resolve(_.xB),_.Wd.getInstance())}});
_.sC().parkOrScheduleJob(function(){Qcy()},1,"eocs");
A={};U.addProvider((A.provide=sf,A.useClass=sf,A[Ga]=[_.iO,_.IE],A));U.addProvider({provide:_.L4j,useFactory:_.z3.getInstance});_.sC().parkOrScheduleJob(function(){_.lx().resolve(sf).refresh()},0,"eocs");
U.addProvider({provide:_.UP,useClass:muY});_.S("kevlar_signal_collection_killswitch")||(A={},U.addProvider((A.provide=xgj,A.useClass=xgj,A[Ga]=[Sz,ib],A)),_.sC().parkOrScheduleJob(function(){_.lx().resolve(xgj).record()},1,"eocs"));
_.S("web_debug_handler_registration_killswitch")||_.sC().parkOrScheduleJob(function(){ZLK("DOWNLOAD_PES",nr_);_.S("offline_client_state_export_ks")||ZLK("OFFLINE_CLIENT_STATE",FN7)},0,"eocs");
_.S("kevlar_prevent_polymer_dynamic_font_load")&&_.sC().parkOrScheduleJob(function(){var f=[_.LF(eYX),_.LF(DUB)];f=_.b(f);for(var J=f.next();!J.done;J=f.next()){J=J.value;var F=document.createElement("link");_.FP(F,J,"stylesheet");document.head.appendChild(F)}},1,"eocs");
A=H.injector.resolve(_.IE);_.y$p.instance=new _.y$p(A);TrM(Esj(new c$8(A)));A={};H.injector.addProvider((A.provide=ru,A.useFactory=function(f){(f=f==null?void 0:f.getCurrentPage())?f=f.visibilityObserver:(FUp||(FUp=kHK()),f=FUp);return f},A[Ga]=[_.$V(_.SI)],A.skipCache=!0,A));
U.addProvider({provide:_.ZB,useClass:$7});U.addProvider({provide:T0,useClass:m8k});H.injector.addProvider({provide:n9z,useValue:V3p});U.addProvider({provide:uvg,useValue:PLh});U.addProvider({provide:s0m,useValue:Oc8});U.addProvider({provide:_.qF,useValue:SJF});H=U.addProvider;gp$||(gp$=new mf5);H.call(U,{provide:_.Ef,useValue:gp$});U.addProvider({provide:_.JF,useValue:_.gD("HTML_DIR")==="rtl"?"rtl":"ltr"});U.addProvider({provide:d2h,useClass:nZh});U.addProvider({provide:_.Dd,useClass:mD});_.lx().addProvider({provide:uIh,
useValue:_.S("enable_web_delhi_icons")?b58.concat(O58):i5h.concat(da8)});U.addProvider({provide:_.HA8,useClass:_.HA8});U.addProvider({provide:_.yrh,useValue:new crh});U.addProvider({provide:V75,useClass:jDf});U.addProvider({provide:Fs,useClass:Fs});U.addProvider({provide:nI,useClass:nI});H={};U.addProvider((H.provide=Dw,H.useClass=Dw,H[Ga]=[_.IE,_.Mx],H));U.addProvider({provide:rE,useClass:rE});U.addProvider({provide:o5$,useClass:npf});U.addProvider({provide:LI,useClass:LI});U.addProvider({provide:gry,
useValue:fIk});U.addProvider({provide:_.mG,useClass:IO$});_.S("enable_payments_purchase_manager")&&U.addProvider({provide:$o8,useClass:r$m});U.addProvider({provide:LSk,useFactory:function(){return function(f){return _.rrj(f)}}});
U.addProvider({provide:_.Qky,useClass:VsY});H={};U.addProvider((H.provide=cs,H.useClass=cs,H[Ga]=[_.Qky],H));U.addProvider({provide:N4,useClass:N4});U.addProvider({provide:dpp,useValue:GCf});U.addProvider({provide:k5r,useValue:_.BP5});U.addProvider({provide:g1c,useClass:snY});U.addProvider({provide:xf5,useValue:$Kf});H={};U.addProvider((H.provide=zk7,H.useClass=CB5,H[Ga]=[xf5],H));H={};U.addProvider((H.provide=_.Vc,H.useClass=Y4Y,H[Ga]=[zk7],H));H={};U.addProvider((H.provide=_.as,H.useClass=ZAh,H[Ga]=
[_.bK,_.l1],H));if(_.S("web_explore_hub_on_hover")||_.S("web_client_explore_hub_on_hover"))H={},U.addProvider((H.provide=nw,H.useClass=nw,H[Ga]=[_.IE,gk],H));if(_.S("web_enable_renderer_logger")){var O=new wl4;TkM(function(){O.abort()});
U.addProvider({provide:eEr,useValue:new C9m(O.signal)})}U.addProvider({provide:STm,useValue:yvV});U.addProvider({provide:sec,useClass:Ugf});_.S("web_use_flow_state_manager")&&(U.addProvider({provide:_.vV,useClass:HFj}),H={},U.addProvider((H.provide=TT,H.useClass=TT,H[Ga]=[_.vV],H)),H={},U.addProvider((H.provide=j6,H.useClass=j6,H[Ga]=[_.bK,_.vV],H)),H={},U.addProvider((H.provide=I9,H.useClass=I9,H[Ga]=[_.bK,_.vV,_.YV],H)),H={},U.addProvider((H.provide=QM,H.useClass=QM,H[Ga]=[_.IE,_.YV],H)),H={},U.addProvider((H.provide=
VM,H.useClass=VM,H[Ga]=[_.vV,_.YV],H)))}},PMp);var nXY={},NuY=(nXY.initialized={priority:10,callback:function(){if(!p5$){rph();zHt("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Ih(_.vg(zHt,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.S("log_heartbeat_with_lifecycles")){var H={};RN.instance||(RN.instance=new RN);RN.instance.install((H.document_visible={callback:C3K,priority:10},H.document_hidden={callback:C3K,priority:10},H))}else _.rB(document,"visibilitychange",C3K);p5$=!0}(H=_.XK())&&H!=="UNDEFINED_CSN"&&qxE(H)}},nXY);var SD5={},p1X=(SD5.initialized={callback:function(H){var U=_.ts(232091),A=H.injector.resolve(_.U8);_.$g(A,U);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?uEz()&&_.GJ(A,U):(H=H.injector.resolve(LSk)("refresh_detector"))&&(H.get("first_tab_load")?_.GJ(A,U):H.set("first_tab_load","1"))}},SD5);var LUh={},RTh=(LUh.initialized={priority:0,callback:function(){var H=new GU3,U="other";_.DB?U="chrome":_.ed?U="firefox":_.pO?U="safari":BK&&(U="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(A){H.increment(_.wi(),A,U)}).catch(function(){H.increment(_.wi(),!1,U)}):H.increment(_.wi(),!1,U)}},LUh);var EXh={},ma7=(EXh.rendering={priority:8,callback:Zhk},EXh);var gX7={},azY=(gX7.rendering={priority:10,callback:acy},gX7.rendered={callback:mrh},gX7),xaB={},zTp=(xaB.rendering={callback:acy},xaB.rendered={callback:mrh},xaB);var CMm=!1,tD5={},c95=(tD5.initialized={priority:10,callback:function(){CMm||(APc({didPatch:function(H){H.el&&Yvh(H.el,H.props)},
didUnmount:function(H){lR_(H.el)}}),CMm=!0)}},tD5);var y98=/^\/shorts\/?$/;_.mT("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:{}}}}}}});_.S("kevlar_use_common_module_manager_ks")?(_.BiK(new xrk),njc()):z4z();
(function(){var H=document.querySelector("ytd-app");if(!H)throw Error("ak");H=new x7({root:H,injector:_.lx()});H.install(NuY);var U={};H.install((U.initialized={priority:10,callback:tiV},U));_.S("wp_lat_b")&&(U={},H.install((U.initialized={priority:10,callback:function(){Lrc()}},U)));
U={};H.install((U.rendered={priority:0,callback:xLh},U));U={};H.install((U.rendered={priority:0,callback:function(){_.Fl.addLowPriorityJob(function(){_.NN$>1&&(phh(),goE())},4E4)}},U));
H.install(ZOk);H.install(p1X);H.install(c95);HMh();H.install(pKh);H.install(XKf);H.install(OO8);H.install(pJy);H.install(gRy);H.install(Ni5);H.install(s1h);H.install(bOY);H.install(RTh);if(!_.xV("IS_SHELL_LOAD")||_.S("kevlar_fetch_initial_data_promise_client")||_.S("sw_nav_preload_pbj")){var A=_.DU(window.location.href);U=A&&A==="/watch";A=A&&A.match(y98);U?H.install(zTp):A?H.install(ma7):H.install(azY)}else H.install(MCy);H.install(Jjf);_.S("web_enable_prefetching_videos_on_home")&&H.install(mK5);
_.S("start_client_gcf")&&H.install(nVh);H.install(P97);(new Y4y).increment("INSTALLED");H.install(Rbm);H.install(HOh);H.transition("initialized");oQc();XHM()})();
_.BC=[[["dGZza2luZCNkdG4wM3dybHg=","dmFsdWUjamJuNXhuNm56Nms2"],"U1RBUlQjaHIwcWFvcWpxa3htQURfUExBQ0VNRU5UX0tJTkRf"]];_.y3=["b2JhbENhbGxiYWNrcyNkMWNvMXJsMmtqeDBnbA==","ZXRlY3RlZCN4c2F3djF3MTY1bXpvbkFibm9ybWFsaXR5RA==","OHRjaTR1cHVmdzhjb25BZFNraXAj","X3Jlc3BvbnNlI29uazN3d3o4OWh0cnJhd19wbGF5ZXI=","cyNnODBvNjB1cWI0bHRhZFNsb3Q="];_.Rz="b2JhbENhbGxiYWNrcyNkMWNvMXJsMmtqeDBnbA== ZXRlY3RlZCN4c2F3djF3MTY1bXpvbkFibm9ybWFsaXR5RA== OHRjaTR1cHVmdzhjb25BZFNraXAj X3Jlc3BvbnNlI29uazN3d3o4OWh0cnJhd19wbGF5ZXI= NTBrY2p3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjcXo0NTd1cA== eW16dXkyNnY0N2h5YWJfc2FfZWYj cyNnODBvNjB1cWI0bHRhZFNsb3Q=".split(" ");
_._ModuleManager_initialize=function(H,U){if(!_.s5){if(!_.nW)return;_.BiK(_.nW())}_.s5.setAllModuleInfoString(H,U)};
_._ModuleManager_initialize('kevlar_base_module/sy1/kevlar_main_module/NSzT5:1',['sy1','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
var G9$;_.G3=function(H){var U=document.createElement("link");_.FP(U,H,"stylesheet");document.head.appendChild(U)};
_.Y7=function(H,U){var A,M;return _.u(function(W){A=document.createElement("div");A.id=H.id;H.className&&(A.className=H.className);M=H.element;if(!M)throw Error("bk");if(H.location==="prepend")M.prepend(A);else if(H.location==="appendChild")M.appendChild(A);else if(H.location==="after")M.after(A);else throw Error("ck");return W.return(_.Sy(A,U,"wh"))})};
_.qq=function(H){var U;return _.u(function(A){(U=document.getElementById(H))&&U.remove();_.DO(A)})};
_.hv=function(H,U){var A=document.querySelector(H);A?U(A):setTimeout(function(){_.hv(H,U)},1E3)};
_.YDj=function(H,U,A){var M;_.u(function(W){if(W.nextAddress==1)return(M=document.getElementById(H))?W.jumpTo(2):W.yield(G9$(H,U,A),2);if(M=document.getElementById(H))M.style.display="block";_.DO(W)})};
G9$=function(H,U,A){return _.u(function(M){return M.return(new Promise(function(W){_.hv("div #panels",function(w){_.Y7({element:w,location:"appendChild",id:H,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+A},U);W()})}))})};_.k7=_.r(function(H){var U=H.text;var A=H.onClick;var M=H.color;var W=H.backgroundColor;var w=H.buttonSize;var d=H.disabled;var O=H.iconName;var f=H.iconSize;var J=H.className;var F=H.iconClassName;H=H.ariaLabel;var P=_.c$(function(N){A(N)}),n={};
return _.Z("button",{class:_.CG("ytpStandardButtonsHost",(n.ytpStandardButtonsLarge=function(){return(w==null?void 0:w())==="large"},n),J),
"on:click":P,style:_.rA({color:M,"background-color":W}),disabled:d,"aria-label":H},_.Z(_.K,{cond:O,then:function(){return _.Z(_.er,{className:_.CG("ytpStandardButtonsIconContainer",F),icon:O,size:f})}}),U)},"vh");_.qD5=_.r(function(H){var U,A,M={};return _.Z("div",{class:_.CG("ytprototypesEngagementPanelComponentHost",(M.ytprototypesEngagementPanelComponentHostMweb=H.isMweb,M),H.className),id:H.id},_.Z("div",{class:_.CG("ytprototypesEngagementPanelComponentEngagementPanelHeader",H.headerClassName)},_.Z("div",null,H.header()),_.Z("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.Z("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(U=H.HeaderButton)==null?void 0:U.call(H)),
_.Z(_.k7,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var W;(W=H.onHide)==null||W.call(H);var w;if((w=H.preventDefault)==null||!w.call(H))if(W=H.id(),W=document.getElementById(W))W.style.display="none"}}))),_.Z("div",{class:_.CG("ytprototypesEngagementPanelComponentEngagementPanelContent",H.contentClassName),
style:function(){var W,w;return"height: "+(((W=H.height)==null?0:W.call(H))||((w=H.isMweb)==null?0:w.call(H))?"100%":"800px")+";"}},H.content()),_.Z("div",null,(A=H.Footer)==null?void 0:A.call(H)))},"xh");
}catch(e){_._DumpException(e)}
try{
_.s5&&_.s5.beforeLoadModuleCode("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 hT5,vD,k9B,vXp,Tuk,j1B,Izy,Q1$,VD5,HKB,UC8,A0p,MX5,T3,WF5,wa5,Xa5,jJ,iK7,bKj,dCY,OK8,u78,ZKj,f5m,J0Y,KFh,oA8,FFX,PuY,s$f,nAm,So5,pa5,Ra5,EAY,gAX,a5h,xCm,Cu$,tX7,c0y,y0h,Is,r0f,ea7,DCh,Qn,$CB,qof,ha$,kSp,vAp,j$m,I5f,Uj$,MUX,Hvk,LFX,Wzy,wxj,Xx8,Vn,HT,ivk,bvp,Ovp,ug5,f2p,JTm,KzY,o8m,Fzh,PUB,sg$,n8f,UK,NJB,pxX,LzX,RWh,E8y,mj8,a2f,xjp,zWk,CUf,yTf,BJ8,Djf,$jj,GP5,YeB,hWy,AC,kPh,TJy,jgh,I2j,VU5,UZY,APf,Mb7,WJ5,wg5,Xgh,i1B,b1y,dZk,O1B,uKB,Z1p,fHy,JP5,KJm,o2p,FJ$,n2$,Nsy,SHX,pgY,LJ5,RRh,E27,mZy,aH7,xZp,
zRf,CHh,tbj,cPy,yPp,Bs8,rPh,wC,eRj,DZY,$Z5,lHh,GRY,YHX,X2,qHk,hRp,kR5,v2Y,Ts8,j2j,IHB,Q2B,Vbh,HEp,UYh,Aw7,M9y,iG,Wb5,wOj,XOy,iEY,bEk,dY5,OEh,u_8,ZEk,f$h,JwX,Kb$,oUp,Fby,Pam,suY,nU$,NHY,pOX,EU5,mY$,gUh,a$X,xYy,zMf,Ca7,t9h,cwj,yw5,BHh,rwY,eMh,dC,OK,$Yp,l$7,GQy,Yn5,qnB,hMX,kQ$,vUk,THk,V9B,bq7,Zq5,fYh,PE8,nO5,FH$,KH5,mh$,xhy,B1f,Jcy,CE5,gOY,sEj,e1Y,lYh,q_f,Gv7,Y_h,h1m,jE8,vOf,IYB,QE$,T1j,kv5,VpY,JC,K6,w4h,ob,X4j,bfm,dvX,Of8,F2,upf,Zf$,ftj,srf,nap,SUY,p4B,LqY,R2$,PT,Ea8,mvp,gaf,sK,n6,xv7,z25,N7,tkk,cG5,
SH,Bnf,p6,L6,Rb,EK,DvB,e2m,$vk,lty,mp,Gl8,gC,ab,ItX,xe,Qrh,Vk$,He7,z_,XXh,Ayj,wX5,ieX,Mq5,dDy,WdB,Ze$,OeX,u8y,fdy,Kdf,JyX,sS$,pXh,yH,BT,NXh,RDp,Sc8,Ldm,eH,$e,lG,G_,v$h,ryY,Idf,QSm,Vq5,HG8,App,C0m,tq8,hC,yym,Ye,q7,BX8,Uep,TX5,cyj,vT,Jp7,o3y,F7X,K7X,OGm,svf,SBf,bGY,X$f,iGp,RyB,dem,Ib,NAf,u1h,n3f,fNf,w$y,ZGj,me7,BA7,rp8,eyp,Dey,$e7,lNm,YBX,Mc,hyB,kk$,TAk,jv5,IN5,QvB,Vr5,Hy7,UFh,As7,MIm,Wz,WYh,woh,Xoy,iyX,byj,KYm,ww,Jsp,Oyj,fW5,Zy5,uA8,dFp,oY5,FYY,PZh,sLy,Xe,nYY,NT8,R$Y,b2,poX,OL,i2,dw,LYf,S3k,EYk,mFh,
gYj,aWh,xFm,z$5,tI8,csh,ysm,BT8,rs$,e$m,DFm,$Ff,lW8,Y3Y,q3j,kBh,jLp,IWk,QLB,HlY,AFj,WLh,wqm,Xqf,ilB,dG8,Ol5,udj,ZlB,ff7,JFj,KLj,FL7,nC$,Syh,LLf,N75,PA5,sR7,gCB,mGj,ROk,af8,ECm,xGp,yFj,cFj,CAy,t5X,u2,B7y,eOh,DG5,$Gk,hO8,knh,vC5,T7y,jRj,If7,QR5,V5h,HYm,UT$,ANY,MVh,Wuj,wl5,Xl$,iYj,bYh,dTm,OYp,ZYY,f9B,JNm,Kup,Fu5,PX$,sih,njk,Nzh,Sa5,plX,Luk,RlB,Ejj,a9h,zlh,tV5,cNy,yN7,BzB,mTY,gjk,DTf,$Ty,l9X,Gs7,Ya7,qa7,hlB,ksX,Tzh,vj$,I9f,Qif,Hxh,UPj,Mdp,Wch,KL,bx5,dPm,uYm,Zxp,JIy,fB7,Fcy,Kch,o45,P$Y,sHh,n48,Nj8,SP5,
pup,Lc8,Ro5,E4y,mPf,g4p,aB5,zo7,xPf,C$$,yIh,Bj7,rIk,o3,eok,DPk,$Ph,lBh,Go5,YP5,qPX,hoy,koh,v4m,TjY,IBX,QHh,Vd8,HTj,MmY,wnf,XnY,bT$,iTm,dn5,OTy,uVh,ZT7,Jg$,K9h,oFj,F97,Poh,sTy,nF5,N4h,Sh7,pnm,L9m,gFk,aXY,EFy,mnh,RPB,xnp,tm5,zP7,CoB,B47,cgh,yg$,rg7,ePX,Dn5,$ny,GbB,YhX,qh5,kb8,vF5,jT5,QTh,Ht7,AJB,W3j,XQm,bt5,OtX,fnp,K37,ohy,F3y,sxh,Pdj,Npp,SR8,pQp,L3m,Pz,R0X,Eh5,mb5,Dbp,ln8,Gef,kem,Nc,vhy,Tpy,jx5,Qx5,InY,V$p,HRh,U1X,Anp,Mtk,ju5,WRm,wS7,XSh,Ub5,iRj,bR$,v8j,d1f,OR7,uf5,ZRm,fmm,Jn5,Ng$,S9y,pR8,LM$,Reh;
hT5=function(){switch(_.E3h()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
vD=function(H){if(!H)return"browse";var U=H.page,A=H.url,M,W,w,d=(M=H.response)==null?void 0:(W=M.responseContext)==null?void 0:(w=W.webResponseContextExtensionData)==null?void 0:w.pageTheme;if(d)U=d.toLowerCase().replace(/_/g,"-");else if(U!=="watch"&&U!=="learning_journey_watch"){var O,f;if((U==="browse"||U==="settings")&&((O=H.response)==null?0:(f=O.sidebar)==null?0:f.settingsSidebarRenderer))U="WEB_PAGE_TYPE_SETTINGS";else{var J,F;U==="browse"&&((J=H.response)==null?0:(F=J.metadata)==null?0:F.channelMetadataRenderer)?
U="channel":A&&(U=_.Boh(A)||U)}}return U};
k9B=function(H){H=H.command;var U=_.p(H,_.kO);return{command:H,reelPlayerOverlayRenderer:_.p(U==null?void 0:U.overlay,_.f_n),thumbnail:U==null?void 0:U.thumbnail,videoId:U.videoId}};
vXp=function(H){H=H.command;var U=_.p(H,_.O7);return{command:H,reelNonVideoContentRenderer:_.p(U==null?void 0:U.renderer,_.ZJ)}};
Tuk=function(H){return H.entries?H.entries.map(function(U){return _.p(U==null?void 0:U.command,_.kO)?k9B(U):vXp(U)}):[]};
j1B=function(H){return H.prevEntries?H.prevEntries.map(function(U){return _.p(U==null?void 0:U.command,_.kO)?k9B(U):vXp(U)}):[]};
Izy=function(){return new Promise(function(H){var U=window;U.attmp!==void 0?H(U.attmp):(U.attmq===void 0&&(U.attmq=[]),U.attmq.push(function(A){H(A)}))})};
Q1$=function(){var H=_.tr("yt.aba.att");return H?H:_.kS.instance!==void 0?_.kS.instance.qzc.bind(_.kS.instance):null};
VD5=function(H,U){var A,M,W;return _.u(function(w){if(w.nextAddress==1){if(!_.S("attmusi")||!_.S("attmusi_ue"))return w.jumpTo(2);A=window;return A.attmp!==void 0?w.return(A.attmp.s(H,U,6E4)):w.yield(Izy(),3)}return w.nextAddress!=2?(M=w.yieldResult,w.return(M.s(H,U,6E4))):(W=Q1$())?w.return(W(H,U,6E4)):w.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
HKB=function(H,U,A,M,W){U=U===void 0?[]:U;W=W?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:W}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.gH(H),dialogMessages:U.map(function(w){return _.gH(w)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.gH(A),serviceEndpoint:W}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.gH(M)}}}}}};
UC8=function(H,U,A,M){A||(H?M&&(M.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||M.WINDOW_SIZE_CHANGED&&(U.width!==window.innerWidth||U.height!==window.innerHeight)||M.SAFARI_ABORTED_BY_NEW_TRANSITION&&H instanceof DOMException&&H.name==="AbortError"&&H.message.includes("Old view transition aborted by new view transition"))||_.sD(H):_.sD(Error("Aj")))};
A0p=function(H,U){U=U===void 0?{}:U;var A,M,W,w,d,O,f,J,F,P,n,N,L;return _.u(function(m){switch(m.nextAddress){case 1:A=U;M=A.shouldWrap===void 0?!0:A.shouldWrap;W=A.skipTransitionTimeoutMs===void 0?300:A.skipTransitionTimeoutMs;w=A.beforeTransition;d=A.afterTransition;if(!M||!document.startViewTransition||document.visibilityState==="hidden")return m.return(H());O={width:window.innerWidth,height:window.innerHeight};f=!1;(J=w)==null||J();_.zj(m,2);F=document.startViewTransition(H);P=setTimeout(function(){F.skipTransition();
f=!0},W);
return m.yield(F.ready,4);case 4:return clearTimeout(P),m.yield(F.finished,5);case 5:clearTimeout(P);(n=d)==null||n();_.xD(m,0);break;case 2:N=_.eG(m),(L=d)==null||L(),UC8(N,O,f,U.ignoredErrors),_.DO(m)}})};
MX5=function(H,U,A){A=A===void 0?!1:A;var M=_.vc(),W=!!_.SZ().queueProxy,w,d,O;H=H==null?void 0:(w=H.response)==null?void 0:(d=w.currentVideoEndpoint)==null?void 0:(O=d.watchEndpoint)==null?void 0:O.playlistId;if((W||H)&&!_.S("web_watch_disable_playlist_auto_miniplayer"))return A&&(M.playlistWatchPageActivation=!0),!0;switch(vD(U)){case "yts-products":return A&&(M.productDetailsPageActivation=!0),!0;case "mini_app":return A&&(M.miniAppPageActivation=!0),!0;case "playables":return A&&(M.playablesDestPageActivation=
!0),!0;case "companion-canvas":return A&&(M.companionCanvasActivation=!0),!0;default:return!1}};
T3=function(H){var U=H.clientMessageId;var A=H.playerOffsetMs;var M=H.pageContext;H=H.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:U},!!A&&{playerOffsetMs:A},!!M&&{pageContext:M},!!H&&{userInputText:H})}};
WF5=function(H){H=_.ih_(H);H.length>0&&H[0].focus()};
wa5=function(H,U,A){for(var M=typeof H==="string"?H.split(""):H,W=H.length-1;W>=0;--W)W in M&&U.call(A,M[W],W,H)};
Xa5=function(H,U,A){for(var M=H.length,W=typeof H==="string"?H.split(""):H,w=0;w<M;w++)if(w in W&&U.call(A,W[w],w,H))return w;return-1};
jJ=function(H,U,A){U=Xa5(H,U,A);return U<0?null:typeof H==="string"?H.charAt(U):H[U]};
iK7=function(H,U){U=Xa5(H,U);U>=0&&_.xrh(H,U)};
bKj=function(H){return Array.prototype.concat.apply([],arguments)};
dCY=function(H){var U=0;U=U===void 0?0:U;if(!_.Xh(H))throw _.Uz("uint64");var A=typeof H;switch(U){case 512:switch(A){case "string":return _.$p7(H);case "bigint":return String((0,_.p8)(64,H));default:return _.egc(H)}case 1024:switch(A){case "string":return _.l3c(H);case "bigint":return _.rm((0,_.p8)(64,H));default:return _.Dp8(H)}case 0:switch(A){case "string":return _.$p7(H);case "bigint":return _.rm((0,_.p8)(64,H));default:return _.rHt(H)}default:return _.U$(U,"Unknown format requested type for int64")}};
OK8=function(H,U,A){if(U)return _.L8(H);var M;return(M=_.m5(H))!=null?M:A?"":void 0};
u78=function(H){H!=null&&(H=H.JSC$9123_value_||"",H=typeof H==="string"?H:new Uint8Array(H));return H};
ZKj=function(H,U){var A=_.RKM(U);A!=="javascript:"&&A!=="data:"&&H.setAttribute("href",U)};
f5m=function(H,U){var A=[];for(U=U||0;U<H.length;U+=2)_.HWh(H[U],H[U+1],A);return A.join("&")};
J0Y=function(H,U){var A=arguments.length==2?f5m(arguments[1],0):f5m(arguments,1);return _.VlN(H,A)};
KFh=function(H,U){if(/-[a-z]/.test(U))return null;if(_.UgK&&H.dataset){if(_.s_c()&&!(U in H.dataset))return null;H=H.dataset[U];return H===void 0?null:H}return H.getAttribute("data-"+_.GP(U))};
oA8=function(H,U,A){U=U===void 0?5:U;if(U!==0){var M=typeof H==="function"?H():document.querySelector(H);M?(A==null?0:A.enableSmartFocus)?_.tCE(M):M.focus():setTimeout(function(){oA8(H,U-1,A)},500)}};
FFX=function(){var H=_.pO&&_.Jt(_.wxr,10)>=0,U;if(U=_.Vwg)U=_.Jt(_.Wz2,10)>=0;var A=_.DB&&_.Jt(_.wxr,85)>=0;return _.va||H||U||A};
PuY=function(H){var U=_.YA3(H);return U&&FFX()?-H.scrollLeft:U&&_.CW(H,"overflowX")!="visible"?H.scrollWidth-H.clientWidth-H.scrollLeft:H.scrollLeft};
s$f=function(H,U){U=Math.max(U,0);_.YA3(H)?FFX()?H.scrollLeft=-U:H.scrollLeft=H.scrollWidth-U-H.clientWidth:H.scrollLeft=U};
nAm=function(H){return String.raw.apply(String,[{raw:H}].concat(_.vI(_.QY.apply(1,arguments).map(function(U){return U instanceof Array?U.join(""):U}))))};
So5=function(H){var U=_.QY.apply(1,arguments),A=U.length;if(!Array.isArray(H)||!Array.isArray(H.raw)||H.length!==H.raw.length||!_.Yrm&&H===H.raw||!(_.Yrm&&!_.qrz||_.De(H))||A+1!==H.length)throw new TypeError("aa");return new NVk(Object.freeze({strings:Object.freeze(H),args:Object.freeze(U)}))};
pa5=function(){var H=window.location.hash;H.charAt(0)==="#"&&(H=H.charAt(1)==="!"?H.substring(2):H.substring(1));return _.B5(H)};
Ra5=function(){var H=LFX;_.tr("yt.ads.biscotti.getId_")||_.eC("yt.ads.biscotti.getId_",H)};
EAY=function(H){_.eC("yt.ads.biscotti.lastId_",H)};
gAX=function(){var H={};for(_.KO=new mCX(H.handleError===void 0?_.n5:H.handleError,H.logEvent===void 0?_.Fx:H.logEvent);_.od.length>0;)switch(H=_.od.shift(),H.type){case "ERROR":_.KO.logError(H.payload);break;case "EVENT":_.KO.logEvent(H.eventType,H.payload)}};
a5h=function(H,U,A){return _.aY7(function(M){return A?M.userIdentifier!==void 0&&!H.includes(M.userIdentifier)&&A.includes(M.publicName):M.userIdentifier!==void 0&&!H.includes(M.userIdentifier)},U)};
xCm=function(H){var U,A;return _.u(function(M){if(M.nextAddress==1)return U=_.XU("YtIdbMeta hasAnyMeta other"),M.yield(_.aY7(function(W){return W.userIdentifier!==void 0&&W.userIdentifier!==U},H),2);
A=M.yieldResult;return M.return(A.length>0)})};
Cu$=function(H,U){zaB||(zaB=_.Fl.addLowPriorityJob(function(){var A,M,W,w,d;return _.u(function(O){switch(O.nextAddress){case 1:return O.yield(_.D0(),2);case 2:A=O.yieldResult;if(!A)return O.return();M=!0;_.zj(O,3);return O.yield(a5h(H,A,U),5);case 5:W=O.yieldResult;if(!W.length){M=!1;O.jumpTo(6);break}w=W[0];return O.yield(_.zU(w.actualName),7);case 7:return O.yield(_.cK(w.actualName,A),6);case 6:_.xD(O,4);break;case 3:d=_.eG(O),_.FU(d),M=!1;case 4:_.Fl.cancelJob(zaB),zaB=0,M&&Cu$(H,U),_.DO(O)}})}))};
tX7=function(){var H;return _.u(function(U){return U.nextAddress==1?U.yield(_.D0(),2):(H=U.yieldResult)?U.return(xCm(H)):U.return(!1)})};
c0y=function(H){var U=100;U=U===void 0?500:U;var A,M,W,w,d,O;return _.u(function(f){return f.nextAddress==1?(A=_.gD("INNERTUBE_CONTEXT_CLIENT_NAME",0),M=[A,(0,_.lD)()-2592E6],W=[A,(0,_.lD)()],w=IDBKeyRange.bound(M,W),f.yield(_.Ue0(H),2)):f.nextAddress!=3?(d=f.yieldResult,O=[],f.yield(_.tj(d,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(J){O.length=0;return _.GU(J.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:w,direction:"prev"},function(F){if(F.getValue()&&O.length<
U)return O.push(F.getValue()),F.delete().then(function(){return F.continue()})})}),3)):f.return(O)})};
y0h=function(){var H;return _.u(function(U){if(U.nextAddress==1)return U.yield(_.D0(),2);H=U.yieldResult;if(!H||!_.iD()&&!_.S("nwl_init_require_datasync_id_killswitch")||!_.n3c())return U.jumpTo(0);_.SBc=!0;_.NAc.isNwlInitialized=_.SBc;return U.yield(_.WHw().awaitInitialization(),0)})};
Is=function(H,U){_.De8[H]=!0;var A=_.lS();A&&A.publish.apply(A,arguments);_.De8[H]=!1};
r0f=function(){if(_.FdF()&&!BV7){var H=function(A){A=A.data;if(A.op==="serializedGelBatch"){var M=_.DF7.get(A.key);M&&(_.lWh(A.serializedBatch,M.client,M.resolve,M.networklessOptions,M.isIsolated,M.useVSSEndpoint,M.dangerousLogToVisitorSession,M.requestsOutstanding),_.DF7.delete(A.key))}},U=_.o$N();
U&&(U.addEventListener("message",H),U.onerror=function(){_.DF7.clear()});
BV7=!0}};
ea7=function(){this.relativeTimeStart_=_.x4()};
DCh=function(H,U){H!=null&&this.append.apply(this,arguments)};
Qn=function(){for(var H=Array(36),U=0,A,M=0;M<36;M++)M==8||M==13||M==18||M==23?H[M]="-":M==14?H[M]="4":(U<=2&&(U=33554432+Math.random()*16777216|0),A=U&15,U>>=4,H[M]=_.gt0[M==19?A&3|8:A]);return H.join("")};
$CB=function(){return _.uH("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
qof=function(){var H=_.dG.clone(l57),U;return(new _.IQ(function(A,M){H.onSuccess=function(W){_.mYM(W)?A(new GS$(W)):M(new YoY("Request failed, status="+_.Ta(W),"net.badstatus",W))};
H.onError=function(W){M(new YoY("Unknown request error","net.unknown",W))};
H.onTimeout=function(W){M(new YoY("Request timed out","net.timeout",W))};
U=_.VW("//googleads.g.doubleclick.net/pagead/id",H)})).thenCatch(function(A){if(A instanceof _.Oa){var M;
(M=U)==null||M.abort()}return _.H$(A)})};
ha$=function(H,U,A){A=A===void 0?!1:A;var M,W,w,d,O;return _.u(function(f){switch(f.nextAddress){case 1:_.WK("SOCS",H,34128E3,"youtube.com",!0);if(_.ed)return W=fetch(U,{method:"POST",mode:_.o2(U),credentials:_.K1(U),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),w=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.o2("/upgrade_visitor_cookie?eom=1"),credentials:_.K1("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),f.yield(Promise.all([W,w]).then(function(J){return J[1]}),5);
fetch(U,{method:"POST",mode:_.o2(U),credentials:_.K1(U),cache:"no-store",headers:{"Content-Type":"text/plain"}});return f.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.o2("/upgrade_visitor_cookie?eom=1"),credentials:_.K1("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:M=f.yieldResult;f.jumpTo(3);break;case 5:M=d=f.yieldResult;case 3:if(!M.ok)throw Error("wf");return f.yield(M.text(),7);case 7:O=f.yieldResult,
!O.includes('"state_switch":true')&&!A||O.includes("skip_reload_for_test")||window.location.reload(),_.DO(f)}})};
kSp=function(H){return _.u(function(U){return U.nextAddress==1?U.yield(ha$(H.socsCookie,H.savePreferenceUrl,!0),2):U.return()})};
vAp=function(H){return _.u(function(U){return U.nextAddress==1?U.yield(ha$(H.socsCookie,H.savePreferenceUrl),2):U.return()})};
j$m=function(H){a:{var U="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(U="EMBEDDED_PLAYER_MODE_PFL");var A=H.raw_embedded_player_response;if(!A&&(H=H.embedded_player_response))try{A=JSON.parse(H)}catch(W){break a}if(A)b:{H=TVh;for(var M in H)if(H[M]==A.embeddedPlayerMode){U=H[M];break b}}}return U==="EMBEDDED_PLAYER_MODE_PFL"};
I5f=function(){if(_.S("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("xf");if(!_.aJM())return Error("yf");var H=_.gD("PLAYER_VARS",{});if(_.dG.get(H,"privembed",!1)=="1")return Error("zf");if(j$m(H))return Error("Af")};
Uj$=function(H){H=H.xhr.responseText;if(!_.XE(H,")]}'"))throw new Q$f;H=JSON.parse(H.substr(4));if((H.type||1)>1)throw new Q$f;H=H.id;EAY(H);VXf=_.p$(H);Hvk(18E5,2);return H};
MUX=function(H,U){U=new ATj(U);EAY("");VXf=_.I8h(U);H>0&&Hvk(12E4,H-1);throw U;};
Hvk=function(H,U){_.jy(function(){qof().then(Uj$,function(A){return MUX(U,A)}).thenCatch(_.UR)},H)};
LFX=function(){var H=I5f();if(H!==void 0)return _.H$(H);VXf||(VXf=qof().then(Uj$).thenCatch(function(U){return MUX(2,U)}));
return VXf};
Wzy=function(){var H=document;return jJ(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(U){return"on"+U.toLowerCase()in H})};
wxj=function(H){H.addEventListener("click",function(U){var A=U.target;A&&A.getAttribute("href")&&(A=A.getAttribute("href"),_.iL(window,A,"_blank"),U.preventDefault(),U.stopImmediatePropagation())})};
Xx8=function(){var H=_.I2();H.info||(H.info={});return H.info};
Vn=function(){return(_.S("csi_use_time_origin")||_.S("csi_use_time_origin_tvhtml5"))&&_.Aw.timeOrigin?Math.floor(_.Aw.timeOrigin):_.Aw.timing.navigationStart};
HT=function(H){return Math.round(Vn()+H)};
ivk=function(){var H;if(_.S("csi_use_performance_navigation_timing")){var U,A,M,W=_.Aw==null?void 0:(H=_.Aw.getEntriesByType)==null?void 0:(U=H.call(_.Aw,"navigation"))==null?void 0:(A=U[0])==null?void 0:(M=A.toJSON)==null?void 0:M.call(A);W?(W.requestStart=HT(W.requestStart),W.responseEnd=HT(W.responseEnd),W.redirectStart=HT(W.redirectStart),W.redirectEnd=HT(W.redirectEnd),W.domainLookupEnd=HT(W.domainLookupEnd),W.connectStart=HT(W.connectStart),W.connectEnd=HT(W.connectEnd),W.responseStart=HT(W.responseStart),
W.secureConnectionStart=HT(W.secureConnectionStart),W.domainLookupStart=HT(W.domainLookupStart),W.isPerformanceNavigationTiming=!0,H=W):H=_.Aw.timing}else H=_.S("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Aw.timing)):_.Aw.timing;return H};
bvp=function(){if(_.Aw.getEntriesByType){var H=_.Aw.getEntriesByType("paint");if(H=jJ(H,function(A){return A.name==="first-paint"}))return HT(H.startTime)}var U;
_.S("csi_use_performance_navigation_timing")?U=_.Aw.getEntriesByType("first-paint")[0].startTime:U=_.Aw.timing.msFirstPaint;return U?Math.max(0,U):0};
Ovp=function(){var H=window.location.protocol,U=_.Aw.getEntriesByType("resource");U=_.cu(U,function(A){return A.name.indexOf(H+"//fonts.gstatic.com/s/")===0});
(U=djh(U,function(A,M){return M.duration>A.duration?M:A}))&&U.startTime>0&&U.responseEnd>0&&(_.HO("wffs",HT(U.startTime)),_.HO("wffe",HT(U.responseEnd)))};
ug5=function(H,U){H=document.querySelector(H);if(!H)return!1;var A="",M=H.nodeName;M==="SCRIPT"?(A=H.src,A||(A=H.getAttribute("data-timing-href"))&&(A=window.location.protocol+A)):M==="LINK"&&(A=H.href);_.bL(document)&&H.setAttribute("nonce",_.bL(document));return A?(H=_.Aw.getEntriesByName(A))&&H[0]&&(H=H[0],A=Vn(),_.HO("rsf_"+U,A+Math.round(H.fetchStart)),_.HO("rse_"+U,A+Math.round(H.responseEnd)),H.transferSize!==void 0&&H.transferSize===0)?!0:!1:!1};
f2p=function(H,U){_.CA(function(){_.Vr("").info.actionType=H;U&&_.mT("TIMING_AFT_KEYS",U);_.mT("TIMING_ACTION",H);var A=_.g6N(_.gD("TIMING_INFO",{}));Object.keys(A).length>0&&_.Un(A);A={isNavigation:!0,actionType:_.o6M(_.gD("TIMING_ACTION"))};var M=_.gD("PREVIOUS_ACTION");M&&(A.previousAction=_.o6M(M));if(M=_.gD("CLIENT_PROTOCOL"))A.httpProtocol=M;if(M=_.gD("CLIENT_TRANSPORT"))A.transportProtocol=M;(M=_.XK())&&M!=="UNDEFINED_CSN"&&(A.clientScreenNonce=M);M=hT5();if(M===1||M===-1)A.isVisible=!0;M=
_.b9c().loadType==="cold";var W=Xx8();M||(M=W.yt_lt==="cold");if(M){A.loadType="cold";M=Xx8();W=ivk();var w=Vn(),d=_.gD("CSI_START_TIMESTAMP_MILLIS",0);d>0&&!_.S("embeds_web_enable_csi_start_override_killswitch")&&(w=d);w&&(_.HO("srt",W.responseStart),M.prerender!==1&&_.NI0(w));M=bvp();M>0&&_.HO("fpt",M);M=ivk();M.isPerformanceNavigationTiming&&_.Un({performanceNavigationTiming:!0},void 0);_.HO("nreqs",M.requestStart,void 0);_.HO("nress",M.responseStart,void 0);_.HO("nrese",M.responseEnd,void 0);
M.redirectEnd-M.redirectStart>0&&(_.HO("nrs",M.redirectStart,void 0),_.HO("nre",M.redirectEnd,void 0));M.domainLookupEnd-M.domainLookupStart>0&&(_.HO("ndnss",M.domainLookupStart,void 0),_.HO("ndnse",M.domainLookupEnd,void 0));M.connectEnd-M.connectStart>0&&(_.HO("ntcps",M.connectStart,void 0),_.HO("ntcpe",M.connectEnd,void 0));M.secureConnectionStart>=Vn()&&M.connectEnd-M.secureConnectionStart>0&&(_.HO("nstcps",M.secureConnectionStart,void 0),_.HO("ntcpe",M.connectEnd,void 0));_.Aw&&"getEntriesByType"in
_.Aw&&Ovp();M=[];if(document.querySelector&&_.Aw&&_.Aw.getEntriesByName)for(var O in Zvh)Zvh.hasOwnProperty(O)&&(W=Zvh[O],ug5(O,W)&&M.push(W));if(M.length>0)for(A.resourceInfo=[],O=_.b(M),M=O.next();!M.done;M=O.next())A.resourceInfo.push({resourceCache:M.value})}_.Un(A);A=_.Qr();A.preLoggedGelInfos||(A.preLoggedGelInfos=[]);O=A.preLoggedGelInfos;A=_.O90();M=void 0;for(W=0;W<O.length;W++)if(w=O[W],w.loadType){M=w.loadType;break}if(_.b9c().loadType==="cold"&&(A.loadType==="cold"||M==="cold")){M=_.d5M();
W=_.Qr();W=W.gelTicks?W.gelTicks:W.gelTicks={};for(var f in M)f in W||typeof M[f]==="number"&&_.HO(f,_.MY(f));f={};M=!1;O=_.b(O);for(W=O.next();!W.done;W=O.next())M=W.value,_.OH(A,M),_.OH(f,M),M=!0;M&&_.Un(f)}_.x5K(!0);f=_.gD("TIMING_ACTION");_.tr("ytglobal.timingready_")&&f&&_.D5N()&&_.a40()&&_.E6t()})()};
JTm=function(H){var U,A,M,W=(M=(A=((U=H.mainDownloadsListEntity)!=null?U:{})[_.A1c])==null?void 0:A.refresh)!=null?M:"",w;H=(w=H.refresh)==null?void 0:w[W];W=H!=null?H:{};return(W==null?0:W.refreshTime)?Number(W==null?void 0:W.refreshTime):0};
KzY=function(H,U){var A=_.HC(H);return U.every(function(M){var W;M=M==null?void 0:(W=M.playbackDataEntity)==null?void 0:W.key;if(!M)return!1;W=_.BO(_.tw(M).entityId,"mainVideoEntity");return!!A[W]})};
o8m=function(H){return H.ui.guideIsVisibleButNotPersistent};
Fzh=function(H){return H.ui.scrollAtTop};
PUB=function(H){return H.ui.tabGesturesIsActive};
sg$=function(H){H=_.Iu(H.entities);return _.ovh(H).length};
n8f=function(H,U){if(U){var A;H=(A=_.rH(H.entities,"downloadQualityPickerEntity",U))!=null?A:void 0}else H=void 0;return H};
UK=function(H,U,A){var M;return _.u(function(W){if(W.nextAddress==1)return W.yield(U(),2);M=W.yieldResult;A(M,H);_.DO(W)})};
NJB=function(){return _.u(function(H){return H.nextAddress==1?H.yield((I5f()!==void 0?_.H$(Error("Bf")):qof()).then(function(){return 1},function(U){if(U.message==="Biscotti id is disabled")return 3;
_.Na("Failed fetching bid");return 0}),2):H.return(H.yieldResult)})};
pxX=function(){var H=_.g1("ZWQtcGxheWVyI3k4NDVnM2NkbG5seXQtaGF2ZW4tZW1i"),U=_.g1("YW1lIzlqZHYxMHN6aDhndmlmcg==");return document.querySelector(U+Sek+H)?0:1};
LzX=function(H){var U=document.getElementsByTagName("ytd-enforcement-message-view-model");U.length===0||getComputedStyle(U[0]).display==="none"?H(0,"p.h_"):H(1,"p.h_")};
RWh=function(){return _.Khc(_.Rz)};
E8y=function(){return _.oxE()===0?0:_.Fhr()};
mj8=function(){return _.Sq4(_.BUK([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
a2f=function(){return _.iQc(g87)};
xjp=function(H){_.u(function(U){switch(U.nextAddress){case 1:return U.yield(UK("b.f_",NJB,H),2);case 2:return U.yield(UK("j.s_",_.wB7,H),3);case 3:return U.yield(UK("r.s_",_.A_K,H),4);case 4:return U.yield(UK("e.h_",a2f,H),5);case 5:if(!_.S("ab_det_sc_inj")){U.jumpTo(6);break}return U.yield(UK("s.i_",_.fCM,H),6);case 6:if(_.S("ab_deg_unex_thr")){U.jumpTo(8);break}return U.yield(UK("a.o_",_.uu8,H),8);case 8:if(_.S("ks_get_o_pp")){U.jumpTo(10);break}return U.yield(UK("g.o_",_.OQ_,H),10);case 10:if(_.S("ks_det_gpbl")){U.jumpTo(12);
break}return U.yield(UK("p.i_",_.dkh,H),12);case 12:return U.yield(UK("f.i_",_.qd_,H),14);case 14:return U.yield(UK("a.b_",_.HQM,H),15);case 15:return U.yield(UK("p.m_",_.vNh,H),16);case 16:if(!_.S("ab_det_el_h_v2")){U.jumpTo(17);break}return U.yield(UK("n.h_",mj8,H),17);case 17:return U.yield(UK("o.p_",RWh,H),19);case 19:return U.yield(UK("e.i_",pxX,H),20);case 20:if(_.S("ab_det_apm"))return U.yield(UK("o.a_",E8y,H),0);U.jumpTo(0)}})};
zWk=function(H){switch(H){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:_.U$(H,"unknown result type")}};
CUf=function(H,U,A){U=_.xkh[U];A={detected:H===0,source:U.c2R,detectionResult:zWk(H),contentCpn:A};_.Fx("biscottiBasedDetection",A);_.ZPh.increment(U.c2R,H);U.aLc!==void 0&&_.mT("CATSTAT",_.gxh(H,U))};
yTf=function(){tUh=0;var H=[_.hc(!0)];cTf&&_.Bg(cTf,"yt-window-resized",H)};
BJ8=function(){tUh||(tUh=_.Fl.addLowPriorityJob(yTf,200))};
Djf=function(){rTp=0;eW$=_.KPz(document);var H=[eW$];cTf&&_.Bg(cTf,"yt-window-scrolled",H)};
$jj=function(){rTp||(rTp=_.Fl.addLowPriorityJob(Djf,200))};
GP5=function(H){H=H===void 0?null:H;l2p.push(_.rB(window,"resize",BJ8));l2p.push(_.rB(window,"scroll",$jj));H&&(cTf=H)};
YeB=function(H){H=H.target.result;H.objectStoreNames.contains("swpushnotificationsstore")&&H.deleteObjectStore("swpushnotificationsstore");H.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
hWy=function(){return qeX?Promise.resolve(qeX):new Promise(function(H,U){var A=self.indexedDB.open("swpushnotificationsdb");A.onerror=U;A.onsuccess=function(){var M=A.result;if(M.objectStoreNames.contains("swpushnotificationsstore"))qeX=M,H(qeX);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),hWy()};
A.onupgradeneeded=YeB})};
AC=function(H){var U=new _.bD("Error accessing DB");return hWy().then(function(A){return new Promise(function(M,W){try{var w=A.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(H);w.onsuccess=function(){var d=w.result;M(d?d.value:null)};
w.onerror=function(){U.params={key:H,source:"onerror"};W(U)}}catch(d){U.params={key:H,
thrownError:String(d)},W(U)}})},function(){return null})};
kPh=function(H,U){var A={};A.key=H;A.value=U;return hWy().then(function(M){return new Promise(function(W,w){try{var d=M.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(A);d.onsuccess=function(){W()};
d.onerror=function(){w()}}catch(O){w(O)}})})};
TJy=function(){var H=_.Q3.getLocalStorage();H&&v8j(H,H.mechanism.__iterator__(!0))};
jgh=function(H){_.u(function(U){if(U.nextAddress==1)return U.yield(H.delete("yt-appshell-assets"),2);_.DO(U)})};
I2j=function(H){return _.CO((0,_.How)(),H)};
VU5=function(){var H;_.u(function(U){return U.nextAddress==1?U.yield(M7.getInstance(),2):(H=U.yieldResult)?U.yield(QgX(H),0):U.jumpTo(0)})};
UZY=function(){var H;_.u(function(U){return U.nextAddress==1?U.yield(WT.getInstance(),2):(H=U.yieldResult)?U.yield(H1Y(H),0):U.jumpTo(0)})};
APf=function(H){jgh(H);VU5();UZY()};
Mb7=function(H){var U,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(_.AKK(H),2);if(U=M.yieldResult){var W;a:{if(U.headers&&(W=U.headers.get("date"))&&(W=Date.parse(W),!isNaN(W))){W=Math.round((0,_.lD)()-W);break a}W=-1}A=W;if(A>-1)return M.return(A)}return M.return(-1)})};
WJ5=function(){var H=_.Mr.caches,U=_.xV("IS_SHELL_LOAD"),A,M;_.u(function(W){if(W.nextAddress==1)return A=-1,U?W.yield(Mb7(H),3):(M=Vn(),A=Math.round((0,_.lD)()-M),W.jumpTo(2));W.nextAddress!=2&&(A=W.yieldResult);A>=0&&A<2147483648&&_.wH({appInstallDataAgeMs:A});_.DO(W)})};
wg5=function(H){var U=_.yX(_.Mr.location.href),A={};"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(M){var W=U.JSC$10335_queryData_.getValues(M);if(W==null?0:W.length)A[M]=W});
return _.Rk(H,new Map(Object.entries(A)))};
Xgh=function(H){return _.Py_(_.FmV(H&16777215))<.5};
i1B=function(H){H=H.match(/(.*)::.*::.*/);if(H!==null)return H[1]};
b1y=function(H){if(_.sZ7()){var U=Object.keys(window.localStorage);U=_.b(U);for(var A=U.next();!A.done;A=U.next()){A=A.value;var M=i1B(A);M===void 0||H.includes(M)||self.localStorage.removeItem(A)}}};
dZk=function(){if(!_.sZ7())return!1;var H=_.XU(),U=Object.keys(window.localStorage);U=_.b(U);for(var A=U.next();!A.done;A=U.next())if(A=i1B(A.value),A!==void 0&&A!==H)return!0;return!1};
O1B=function(H){return kPh("NotificationsDisabled",H)};
uKB=function(){var H=_.kV("service_worker_scope");try{return navigator.serviceWorker.getRegistration(H)}catch(U){return Promise.reject(U)}};
Z1p=function(){return Notification.permission!="granted"?Promise.resolve():uKB().then(function(H){return H?H.pushManager.getSubscription().then(function(U){if(U)return Promise.resolve();U={userVisibleOnly:!0,applicationServerKey:_.Q0("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return H.pushManager.subscribe(U).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
fHy=function(H){return uKB().then(function(U){if(!U||!U.active)return Promise.reject(new _.bD("serviceworker.postMessage",H,U));try{return U.active.postMessage(H),Promise.resolve()}catch(A){return Promise.reject(A)}})};
JP5=function(){fHy({type:"notifications_register",data:_.gD("ID_TOKEN")})};
KJm=function(H){return!(!H||!H.pushManager)};
o2p=function(){return uKB().then(KJm).catch(function(){return!1})};
FJ$=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?o2p():Promise.resolve(!1)};
n2$=function(){var H={isWide:_.MK.get("wide","0")==="1"},U=_.TR();if(U=U.getFlag(165)||U.getFlag(174))H.theme=_.Kf(!0);if(_.rKK()){var A=_.JG()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";H.systemTheme=A}!U&&_.S("parent_tools_enable_app_settings")&&_.rD(window.location.href).theme!==void 0&&(H.theme=_.Kf());if((U=PHp)?!_.dG.equals(U,H):H)U={currentValue:H},s2$&&(U.timeSinceLastSnapshotSecs=Math.round(((0,_.lD)()-s2$)/1E3)),PHp&&(U.previousValue=PHp),_.Fx("appSettingsCaptured",U),PHp=
H,s2$=(0,_.lD)()};
Nsy=function(){if(!_.xV("LOGGED_IN"))return Promise.resolve(!1);var H=_.kV("service_worker_push_force_notification_prompt_tag");return H?AC("PromptTags").then(function(U){if(!U)return!0;var A=[];try{A=JSON.parse(U)}catch(M){return!1}return A&&A.indexOf(H)==-1}):Promise.resolve(!1)};
SHX=function(){var H=_.hr("service_worker_push_prompt_delay_microseconds");return H?AC("PromptTime").then(function(U){return Promise.resolve(Date.now()-H>(U||0))}):Promise.resolve(!0)};
pgY=function(){var H=_.hr("service_worker_push_logged_out_prompt_watches");return H==-1?Promise.resolve(!1):AC("WatchCount").then(function(U){return U>=H})};
LJ5=function(){var H=_.E3(document,"yt-push-prompt-modal-bg");H&&_.U5(H)};
RRh=function(){return _.hr("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):AC("PromptCount").then(function(H){H||(H=0);return Promise.resolve(H<_.hr("service_worker_push_prompt_cap"))})};
E27=function(H){return _.xV("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.xV("LOGGED_IN")&&(H===void 0?0:H)?Nsy().then(function(U){if(U)return!0;U=[RRh(),SHX()];_.xV("LOGGED_IN")||U.push(pgY());return Promise.all(U).then(function(A){return A.every(function(M){return M})})}):Promise.resolve(!1)};
mZy=function(){AC("PromptCount").then(function(H){return kPh("PromptCount",H+1)}).then(function(){return kPh("PromptTime",Date.now())}).then(function(){var H=_.kV("service_worker_push_force_notification_prompt_tag");
if(H)return AC("PromptTags").then(function(U){var A=[];if(U)try{A=JSON.parse(U)}catch(M){return!1}A||(A=[]);A.push(H);return kPh("PromptTags",JSON.stringify(A))})})};
aH7=function(){g2p||LJ5()};
xZp=function(H){H.style.zIndex=2147483648;H.style.pointerEvents="auto";H.style.backgroundColor="rgba(0, 0, 0, 0.6)";H.style.width="100%";H.style.height="100vh";H.style.position="absolute";H.style.top="0";H.style.left="0";H.style.border="none"};
zRf=function(){var H=_.E3(document,"yt-push-prompt-modal-bg");g2p=_.S("service_worker_push_prompt_modal_ignore_click");H?xZp(H):(H=_.dp("div",{id:"yt-push-prompt-modal-bg"}),xZp(H),document.body.appendChild(H),_.cph(document,"click",aH7))};
CHh=function(){var H=arguments;_.S("service_worker_push_prompt_modal_enable")&&zRf();return Notification.requestPermission().then(function(U){LJ5();var A=document.getElementById("ticker");A&&(A.className=A.classList.remove("show"));if(U=="granted")return Z1p().then(function(){O1B(!1);JP5();return Promise.resolve(!0)});
U=="denied"&&JP5();return Promise.resolve(!1)}).catch(function(){LJ5();
return Promise.reject.apply(Promise,_.vI(H))})};
tbj=function(H){H=H===void 0?!1:H;var U=_.sU().client;if(U&&U.browserVersion){var A=U.browserVersion,M=U.browserName=="CHROME"&&_.Jt(A,"50.0.0")<0;U=U.browserName=="OPERA"&&_.Jt(A,"42.0.0")<0;if(M||U)return Promise.resolve()}return FJ$().then(function(W){if(!W)return Promise.resolve();W=Z1p().then(function(){return fHy({type:"notifications_check_registration",data:_.gD("ID_TOKEN")})});
return Notification.permission!="default"?W.catch(function(){}):W.then(function(){return E27(H)}).then(function(w){if(w)return mZy(),CHh().then(function(){})}).catch(function(){})})};
cPy=function(H){return KJm(H)?tbj():Promise.resolve()};
yPp=function(H){var U=H.installing||H.waiting;return H.active||!U?Promise.resolve(H):new Promise(function(A){var M=function(W){W=W.target;if(W.state==="activated"||W.state==="redundant")U.removeEventListener("statechange",M),A(H)};
U.addEventListener("statechange",M)})};
Bs8=function(){var H=new _.b$_("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.lX(H,{mainAppWeb:_.nf()});var U=_.nSm;_.S("service_worker_forward_exp_params")&&(U=wg5(U));try{var A=_.qsN(U).catch(function(){_.Gs(H,"FAILURE");return new Promise(function(){})});
_.S("service_worker_push_enabled")&&A.then(function(M){_.Gs(H,"SUCCESS");return M}).then(yPp).then(cPy)}catch(M){if(_.Gs(H,"FAILURE"),M.name!=="SecurityError")throw M;
}};
rPh=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&Bs8()};
wC=function(H,U,A,M,W){var w={};U&&(w[U]=A);M?w.errorType=M:W&&(w.errorReason=W);_.Fx(H,w);_.P1()};
eRj=function(H,U){var A={};U&&(A.serializedYpcFamilyCreateLoggingParams=U);_.Fx(H,A);_.P1()};
DZY=function(H,U){var A={};A.serializedYpcRefundFlowLoggingParams=U;H&&(A.eventType=H);_.Fx("ypcRefundFlowEvent",A);_.P1()};
$Z5=function(H){H&&_.kDr("transactionFlowSucceeded",H)};
lHh=function(){wC("ypcRedeemFlowStarted")};
GRY=function(H){wC("ypcRedeemFlowFailed",void 0,void 0,void 0,H)};
YHX=function(H){H&&wC("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",H,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
X2=function(H){return function(U,A){var M=H||A.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(U,A,{get:function(){var W;return this.$?this.$[M]:(W=_.qv(this))==null?void 0:W.querySelector("#"+M)},
enumerable:!0,configurable:!0})}};
qHk=function(H){if(H=_.dQF(H)){var U;(U=H.sources)!=null&&U[0]?(U=_.u0h(H),U=U<1?"VERTICAL":U>1?"HORIZONTAL":"SQUARE"):U=void 0;return U}};
hRp=function(H){return(H=_.dQF(H))?_.u0h(H):0};
kR5=function(H){var U,A,M,W,w,d,O;_.u(function(f){if(f.nextAddress==1)return f.yield(_.XwN(),2);if(f.nextAddress!=3){if(!f.yieldResult)return f.return(!1);U=[];return f.yield(_.x3.keys(),3)}A=f.yieldResult;M=_.b(A);for(W=M.next();!W.done;W=M.next())w=W.value,d=_.WCc(w),O=d.datasyncId,!O||H.includes(O)||U.push(_.x3.delete(w));return f.return(Promise.all(U).then(function(J){return J.some(function(F){return F})}))})};
v2Y=function(){var H,U,A,M,W,w,d;return _.u(function(O){if(O.nextAddress==1)return O.yield(_.XwN(),2);if(O.nextAddress!=3){if(!O.yieldResult)return O.return(!1);H=_.XU("cache contains other");return O.yield(_.x3.keys(),3)}U=O.yieldResult;A=_.b(U);for(M=A.next();!M.done;M=A.next())if(W=M.value,w=_.WCc(W),(d=w.datasyncId)&&d!==H)return O.return(!0);return O.return(!1)})};
Ts8=function(H,U){return _.rH(H.entities,"inlineExpansionEntity",U)};
j2j=function(H,U){return _.rH(H.entities,"timedMarkersListSyncEntity",U)};
IHB=function(H,U){return _.rH(H.entities,"liveReactionsDataEntity",U)};
Q2B=function(H,U){H=_.rH(H.entities,"booleanEntity",U);return!(!H||!H.value)};
Vbh=function(H,U){var A=_.XK();A&&H&&_.ou(A,_.IS(H),U)};
HEp=function(H){return H.watch.isWatchActive};
UYh=function(H){return H.watch.isLearningJourneyActive};
Aw7=function(H){return H.watch.watchWindowSize};
M9y=function(H){return!_.b6F(H)};
iG=function(H){return H.watch.watchScrollTop};
Wb5=function(H){return H.watch.isLiveChatCollapsed};
wOj=function(H,U){return _.rH(H.entities,"flowStateEntity",U)};
XOy=function(){var H=_.lx().resolve(_.$V(_.LAr));return H?H.getCurrentTime():0};
iEY=function(H,U){H={videoId:H};U&&(H.playlistId=U);return H};
bEk=function(){var H,U,A,M,W,w,d,O,f,J,F,P,n,N;return _.u(function(L){switch(L.nextAddress){case 1:H={},U=_.OLh(),A=_.b(Object.entries(U)),M=A.next();case 4:if(M.done){L.jumpTo(3);break}W=M.value;w=_.b(W);d=w.next().value;O=w.next().value;f=d;J=O;if(!J){L.jumpTo(5);break}return L.yield(J(),8);case 8:H[f]=L.yieldResult;case 5:M=A.next();L.jumpTo(4);break;case 2:F=_.b(),P=F.next();case 9:if(P.done){L.jumpTo(3);break}n=P.value;N=U[n];if(!N){L.jumpTo(10);break}return L.yield(N(),13);case 13:H[n]=L.yieldResult;
case 10:P=F.next();L.jumpTo(9);break;case 3:return L.return(H)}})};
dY5=function(){var H;_.u(function(U){if(U.nextAddress==1)return U.yield(bEk(),2);H=U.yieldResult;return U.yield(navigator.clipboard.writeText(JSON.stringify(H,null,2)),0)})};
OEh=function(H,U){if(H&&U){var A=_.lZ();A().set(H,U);_.Ps4(A())}};
u_8=function(H,U){if(H&&U){var A=_.lZ();A().set(H,U);_.Ps4(A())}};
ZEk=function(H,U){return _.rH(H.entities,"superThanksSelectedTierEntity",U)};
f$h=function(H,U){return _.rH(H.entities,"contextNoteUserRatingEntityPayload",U)};
JwX=function(){_.S("web_watch_log_theater_mode")&&_.zdN("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
Kb$=function(H,U,A){if(!H.includes("START_TIME_PLACEHOLDER")||!H.includes("END_TIME_PLACEHOLDER"))return H;var M=new Date(0),W=new Date(0);M.setUTCMilliseconds(U);W.setUTCMilliseconds(A);return H.replace("START_TIME_PLACEHOLDER",_.PC(M,7)).replace("END_TIME_PLACEHOLDER",_.PC(W,7))};
oUp=function(H,U,A){var M=A.minimumRowsOfVideosBetweenSections===void 0?1:A.minimumRowsOfVideosBetweenSections;return H<(A.minimumRowsOfVideosAtStart===void 0?2:A.minimumRowsOfVideosAtStart)||U!==null&&H-U<=M?!1:!0};
Fby=function(H,U){var A=0,M=0;H=_.b(H);for(var W=H.next();!W.done;W=H.next()){var w=W.value;if(w.richItemRenderer)w.richItemRenderer.rowIndex=M,w.richItemRenderer.colIndex=A++,A===U&&(A=0,M++);else if(w.richGroupRenderer&&w.richGroupRenderer.numColumns!==void 0)w.richGroupRenderer.rowIndex=M,w.richGroupRenderer.colIndex=A,A+=w.richGroupRenderer.numColumns,A===U&&(A=0,M++);else if(w.richSectionRenderer){var d=W=void 0;if(w=_.p((W=w)==null?void 0:(d=W.richSectionRenderer)==null?void 0:d.content,_.yOr))w.rowIndex=
M++}}};
Pam=function(H,U){var A=U.contentElement;U=U.rendererToTagNameMap;if(A&&U&&U.size!==0){for(var M=new Map,W=_.b(A.children),w=W.next();!w.done;w=W.next()){w=w.value;var d=w.tagName.toLowerCase(),O=M.get(d);O||(O=[],M.set(d,O));O.push(w)}if(M.size!==0)for(W=Math.min(H.length,A.children.length),w=new Map,d=0;d<W;d++){O=Object.keys(H[d])[0];O=U.get(O);if(!O)break;var f=w.get(O);f===void 0&&(f=0,w.set(O,f));var J=M.get(O);if(!J||f>=J.length)break;w.set(O,f+1);O=J[f];f=A.children[d];f!==O&&(_.Sr=!0,_.pG.set(O,
!0),A.insertBefore(O,f),_.pG.delete(O),_.Sr=!1)}}};
suY=function(H,U,A,M,W,w,d){M=M===void 0?{}:M;if(!H||!H.length)return{orderedContent:[]};H=H.slice();var O=[],f=[];W=null;for(var J=0,F=function(v){f.sort(function(h,T){return T.skippedOnRow-h.skippedOnRow});
for(var Y,D=(Y=f.shift())==null?void 0:Y.content;D;)!D.richSectionRenderer&&v||O.push(D),Y=void 0,D=(Y=f.shift())==null?void 0:Y.content},P=void 0,n=void 0,N=new Set;H.length>0||f.length>0;){for(var L=[],m=U;m>0;){var z=void 0,c=void 0,C=(c=f[0]&&f[0].skippedOnRow<J?(z=f.shift())==null?void 0:z.content:void 0)!=null?c:H.shift();
if(!C)break;if(C.richItemRenderer)z=C.richItemRenderer.targetId,c=void 0,z&&((c=d)==null?0:c.has(z))&&(c=d.get(z),!P||c&&c.timestamp>P.timestamp)&&(P=c,n&&N.add(n),n=z),L.push(C),m--;else if(C.richGroupRenderer&&C.richGroupRenderer.numColumns!==void 0)C.richGroupRenderer.numColumns<=m?(L.push(C),m-=C.richGroupRenderer.numColumns):m===U&&C.richGroupRenderer.numColumns>U?(L.push({richGroupRenderer:Object.assign({},C.richGroupRenderer,{numColumns:U})}),m=0):f.push({content:C,skippedOnRow:J});else if(C.richSectionRenderer)if(oUp(J,
W,M)&&m===U){O.push(C);W=J;J++;continue}else f.push({content:C,skippedOnRow:J});else if(C.continuationItemRenderer){F(!0);O.push(C);m=0;break}if(m===0)O.push.apply(O,_.vI(L));else if(!A&&H.length===0){F(!1);O.push.apply(O,_.vI(L));m=0;break}}J++;P&&(O.push(P.content),J++);n=P=void 0}Fby(O,U);w&&Pam(O,w);return{orderedContent:O,pinnedContentNotShownTargetIds:N}};
nU$=function(H){return H.shorts.isSmallScreenSqueezeback};
NHY=function(H){return H.shorts.isPlaybackStarted};
pOX=function(){if(_.S("kevlar_home_skeleton")&&!Snp){var H=document.querySelector("#home-page-skeleton");H&&(_.ba("hgcr"),_.U5(H),Snp=!0)}};
EU5=function(){if(_.aJM()){var H=_.gD("PLAYER_VARS",{});if(_.dG.get(H,"privembed",!1)!="1"&&!j$m(H)){var U=function(){Lb$=!0;"google_ad_status"in window?_.mT("DCLKSTAT",1):_.mT("DCLKSTAT",2)};
try{_.f1(_.Sr5,U)}catch(A){}RMy.push(_.Fl.addLowPriorityJob(function(){if(!(Lb$||"google_ad_status"in window)){try{_.NkV(_.Sr5.toString(),U)}catch(A){}Lb$=!0;_.mT("DCLKSTAT",3)}},5E3))}}};
mY$=function(H){return!!H.getOptions("captions")};
gUh=function(H){return(H=H.getOption("captions","track"))?!!H.displayName:!1};
a$X=function(H){return jJ(H,function(U){return U.languageCode==="en"})};
xYy=function(H){var U=bG;if(gUh(H))H.setOption("captions","stickyLoading",{}),H.setOption("captions","track",{});else{var A=jJ(_.m04(H),function(M){return M.displayName===U});
H.setOption("captions","track",A)}};
zMf=function(H,U){return{popup:{searchSuggestionReportDialog:{searchQuery:H,title:_.hP("SBOX_INAPPROPRIATE_TITLE"),suggestions:U,categoryLabel:_.hP("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.hP("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.hP("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.hP("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.hP("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.hP("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.hP("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.hP("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.hP("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.hP("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
Ca7=function(H){var U=_.TR();if(U.getFlag(202))U=U.getFlag(201);else{var A;U=(H==null?void 0:(A=H.config)==null?void 0:A.settingOnByDefault)!==void 0?H.config.settingOnByDefault:!_.tN("web_shorts_cinematics_disabled_by_default")}return U};
t9h=function(H){var U=_.TR();_.jb(0,201,H);_.jb(0,202,!0);U.save()};
cwj=function(H){var U,A,M,W,w,d,O,f,J,F,P,n,N,L,m,z,c,C,v;return _.u(function(Y){switch(Y.nextAddress){case 1:return Y.yield(_.GQ(),2);case 2:return(U=Y.yieldResult)?Y.yield(_.orK(U),3):Y.return();case 3:A=Y.yieldResult;if(!A)return Y.return();W=((M=A.offlineVideos)==null?void 0:M.length)||0;d=((w=A.offlinePlaylists)==null?void 0:w.length)||0;if(W===0&&d===0)return Y.return();O=0;if(A.offlineVideos)for(f=_.b(A.offlineVideos),J=f.next();!J.done;J=f.next())F=J.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
F.videoState&&(O+=1);H.offline_videos_count=W.toString();_.S("kevlar_log_offline_current_network_type_ks")||(H.offline_current_network_type=(P=_.wCt())!=null?P:"CONN_INVALID");_.S("kevlar_log_updated_time_for_smart_downloads")&&(n=_.Lq().getState().entities,N=_.WC(n),L=JTm(n),H.offline_smart_downloads_last_sync_time_ms=N.toString(),H.offline_smart_downloads_next_sync_time_ms=L.toString());H.offline_videos_playable=O.toString();H.offline_playlists_count=d.toString();A.offlineVideos&&(m=A.offlineVideos.reduce(function(D,
h){h.downloadedBytes&&(D+=Number(h.downloadedBytes));return D},0).toString())&&(H.offline_used_disk_space_bytes=m);
if(!((z=navigator)==null?0:(c=z.storage)==null?0:c.estimate)){Y.jumpTo(4);break}return Y.yield(navigator.storage.estimate(),5);case 5:C=Y.yieldResult,H.offline_free_disk_space_bytes=(((v=C)==null?void 0:v.quota)||0).toString();case 4:H.offline_client_state=JSON.stringify(A),_.DO(Y)}})};
yw5=function(H){H=H.match(/(.*)::.*::.*/);if(H!==null)return H[1]};
BHh=function(H){if(_.BZE()){var U=Object.keys(window.sessionStorage);U=_.b(U);for(var A=U.next();!A.done;A=U.next()){A=A.value;var M=yw5(A);M===void 0||H.includes(M)||self.sessionStorage.removeItem(A)}}};
rwY=function(){if(!_.BZE())return!1;var H=_.XU(),U=Object.keys(window.sessionStorage);U=_.b(U);for(var A=U.next();!A.done;A=U.next())if(A=yw5(A.value),A!==void 0&&A!==H)return!0;return!1};
eMh=function(H){if(!H)return 0;var U=H.getPresentingPlayerType(),A=H.getVideoData();return A&&A.isLive?(H=H.getProgressState(U),H.seekableEnd-H.seekableStart):H.getDuration(U)};
dC=function(H,U){_.Hl(U,H,function(){return DYh[U]},function(A){DYh[U]=A;
if(!_.S("mweb_player_ve_show_ks")){var M=_.XK(0);M&&A&&_.PO(M,A)}})};
OK=function(H){(H=DYh[H])&&_.GJ(_.k$(),H)};
$Yp=function(H,U){for(var A=_.b(Object.keys(H)),M=A.next();!M.done;M=A.next())if(M=M.value,H[M]!==U[M])return!1;return!0};
l$7=function(){return document.getElementById("player-control-overlay")};
GQy=function(H){H!==-1&&!_.S("player_controls_log_creation_killswitch")&&l$7()&&(_.ba("pcu_cs",H),_.ba("pcu_ce"))};
Yn5=function(H){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:H}}]}}}};
qnB=function(H,U,A,M){var W=_.S("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;U=Object.assign({},{text:U,hasGradientBackground:A},M&&{backgroundStyle:M},W&&{itemTargetId:W});W=_.S("web_enable_chat_autoscroll_to_user_turn")&&W?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:W,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:U}],
insertByPositionInSection:{sectionTargetId:H,position:"INSERTION_POSITION_LAST"}}}]},W?{scrollConfig:W}:{})}}};
hMX=function(H){return{continuationCommand:{token:H,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
kQ$=function(H,U){U.stack&&(H.stack+="\n"+U.stack);return H};
vUk=function(){this.isInputValid_=!0;this.JSC$19567_streamPos_=0;this.leftoverInput_=""};
THk=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19570_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
V9B=function(H){var U=ju5(H,"Content-Type");if(!U)return null;U=U.toLowerCase();if(U.startsWith("application/json"))return U.startsWith("application/json+protobuf")?new I$$:new _.AT;if(U.startsWith("application/x-protobuf")){H=ju5(H,"Content-Transfer-Encoding");if(!H)return new THk;if(H.toLowerCase()=="base64")return new Qup}return null};
bq7=function(H,U,A,M){var W=new Hqh(function(O,f){return Uhp.has(f)?O.sentinel==="gal"&&O.event!==void 0:!1},function(O){O.event?(O=Acj(O.event),O=!O||MpY(M,O)?!0:_.k4(H.lastEvent,uG,2,Zs)?!_.k4(O,f6,1,Zs)&&!_.k4(O,uG,2,Zs):!_.k4(O,f6,1,Zs)&&!_.k4(O,uG,3,Zs)):O=!0;
return O});
A=_.Rk(H.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",WH5(A)]]));if(H.nestedOrigins!==void 0)for(var w=_.b(H.nestedOrigins),d=w.next();!d.done;d=w.next())A=_.Rk(A,new Map([["origin",d.value]]));return wCB(W,A,U).then(function(O){O=XC5(O.event);if(_.k4(O,f6,1,Zs)){var f,J=(f=_.io(O,f6,1,Zs))==null?void 0:_.Wn(f,2);J&&M.JSC$19622_logErrorEvent(iq8(J));f=_.io(O,f6,1,Zs);_.Wn(f,2)===4?(O=_.io(O,f6,1,Zs),O={statusCode:11,statusMessage:_.Mn(O,
3)}):(O=_.io(O,f6,1,Zs),O={statusCode:12,statusMessage:_.Mn(O,3)});return O}_.k4(O,uG,3,Zs)?(O=_.io(O,uG,3,Zs),O={statusCode:1,consentLanguageKeys:_.Mn(O,2)}):O={statusCode:1};return O}).catch(function(O){return O.errorCode!==void 0?{statusCode:O.errorCode,
statusMessage:O.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
Zq5=function(H){var U={};if(H===void 0||H===null)return U;H.getToken()!==void 0&&dhj(H.getToken())&&dhj(H.getToken()).length>0&&(U.scopes=new Set(dhj(H.getToken())));H.getToken()!==void 0&&Oqm(H.getToken())&&Oqm(H.getToken()).length>0&&(U.capabilities=new Set(Oqm(H.getToken())));_.Mn(H,3)!==void 0&&(U.consistencyKey=_.Mn(H,3));H.getName()!==void 0&&H.getName()!==""&&(U.linkName=H.getName());_.hI(H,uzm,4)&&(H=_.qK(H,uzm,4),H=Object.assign({},_.Mn(H,1)&&{userId:_.Mn(H,1)},_.Mn(H,2)&&{displayName:_.Mn(H,
2)},_.Mn(H,3)&&{email:_.Mn(H,3)},_.Mn(H,5)&&{username:_.Mn(H,5)},_.Mn(H,4)&&{profilePicture:_.Mn(H,4)}),U.profile=H);return U};
fYh=function(H,U){var A=H.flowParams,M;return{serviceId:A.serviceId,sessionId:A.sessionId,currentFlow:H.currentFlow,googleScopesString:U,linkingSessionSerialized:H.session.serialize(),consentLanguageKeys:A.consentLanguageKeys,callerState:H.callerState,dynamicUrlParameters:A.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(M=A.partnerConfigMinReadTimestamp)==null?void 0:M.serialize()}};
PE8=function(H){var U=H.googleScopes!==void 0?Array.from(H.googleScopes).join(","):"";Jcy(fYh(H,U),H.config.localStorage);U=KH5(H);return U===null?Promise.resolve(oOm):U.start().then(function(A){var M,W=(M=A.link)==null?void 0:M.consistencyKey;return A.statusCode===1&&H.googleScopes!==void 0&&H.googleScopes.size>0&&W!==void 0?(M=H.flowParams,FH$(M.serviceId,M.sessionId,H.googleScopes,W,M.galService,H.config,A)):A})};
nO5=function(H){var U=KH5(H);return U===null?Promise.resolve(sEj({statusCode:7,statusMessage:"Failed to create flow object"},H.callerState)):U.complete().then(function(A){var M,W=(M=A.link)==null?void 0:M.consistencyKey;return A.statusCode===1&&H.googleScopes!==void 0&&H.googleScopes.size>0&&W!==void 0?(M=H.flowParams,FH$(M.serviceId,M.sessionId,H.googleScopes,W,M.galService,H.config,A)):sEj(A,H.callerState)},function(A){return sEj({statusCode:12,
statusMessage:"Failed to complete the flow: "+A.message},H.callerState)})};
FH$=function(H,U,A,M,W,w,d){return N1y(W,{serviceId:H,sessionId:U,googleScopes:A,consistencyKey:M}).then(function(){return d},function(O){return W.deleteLink({serviceId:H,
sessionId:U,accountLinkingEntryPoint:w.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+O.message}},function(f){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+f.message}})})};
KH5=function(H){switch(H.currentFlow){case 1:var U=H.flowParams;H=_.qK(H.session,S_j,1);return pCy.createOAuthFlow(U,H);case 2:case 3:return U=H.flowParams,H=_.qK(H.session,LHh,6),R1j.createStreamlinedFlow(U,H);default:return null}};
mh$=function(H,U){H===2&&(H=3);var A=0;EOh.indexOf(H)!==-1&&(A=EOh.indexOf(H)+1);for(H=A;H<EOh.length;H++)if(U.has(EOh[H]))return EOh[H]};
xhy=function(H){var U=H.serviceId;var A=H.sessionId;var M=H.config;var W=H.galService;var w=H.capabilities;var d=H.scopes;var O=H.loginHint;var f=H.callerState;var J=H.consentLanguageKeys;var F=H.linkName;var P=H.dynamicUrlParameters;var n=H.partnerConfigMinReadTimestamp;H=M.dataUsageNoticeConfig?M.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return W.startLinkingSession({serviceId:U,sessionId:A,capabilities:w,scopes:d,loginHint:O,callerState:f,supportedFlows:gOY(M.supportedFlows),completionUrl:M.completionUrl,
accountLinkingEntryPoint:M.accountLinkingEntryPoint,consentLanguageKeys:J,dataUsageNoticeConfig:H,linkName:F,dynamicUrlParameters:P,partnerConfigMinReadTimestamp:n}).then(function(N){return new aYm(U,A,M,W,N,void 0,f,J,P,n)})};
B1f=function(H,U,A){var M=(new z18(U.localStorage)).getSession(H);if(M===null)return Promise.resolve({statusCode:2});CE5(H,U.localStorage);var W=tpy(M.linkingSessionSerialized),w=M.googleScopesString!==""&&M.googleScopesString!==void 0?new Set(M.googleScopesString.split(",")):void 0,d=M.partnerConfigMinReadTimestampSerialized?ccj(M.partnerConfigMinReadTimestampSerialized):void 0;return ycf(new aYm(H,M.sessionId,U,A,W,w,M.callerState,M.consentLanguageKeys,M.dynamicUrlParameters,d),M.currentFlow,M.consentLanguageKeys)};
Jcy=function(H,U){U=new z18(U);U.storage!==null&&U.storage.set("SAVED_SESSION",H)};
CE5=function(H,U){U=new z18(U);if(U.storage!==null){var A=U.storage.get("SAVED_SESSION");A!==void 0&&A.serviceId===H&&U.storage.remove("SAVED_SESSION")}};
gOY=function(H){var U=new Set;H=_.b(H);for(var A=H.next();!A.done;A=H.next())A=A.value,A!==1&&rcf.has(A)&&U.add(rcf.get(A));return U};
sEj=function(H,U){U!==void 0&&(H.callerState=U);return H};
e1Y=function(H){switch(H){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
lYh=function(H){return new Dhm(H,new $hh(H))};
q_f=function(H,U){U=U===void 0?!1:U;var A=document.createElement("div");H&&(A.style.transform="scaleX(-1)");A.style.backgroundColor=U?"rgba(138,180,248,.24)":"#e8f0fe";A.style.height="4px";A.style.overflow="hidden";A.style.position="absolute";A.style.top="0";A.style.width="100%";A.style.zIndex="1500";A.setAttribute("aria-label","Loading");A.setAttribute("aria-live","polite");H=document.createElement("style");H.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  }";
A.appendChild(H);H=Gv7();H.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";H.style.left="-145.166611%";var M=Y_h(U);M.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";H.appendChild(M);A.appendChild(H);H=Gv7();H.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";H.style.left="-54.888891%";U=Y_h(U);U.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
H.appendChild(U);A.appendChild(H);return A};
Gv7=function(){var H=document.createElement("div");H.style.height="100%";H.style.position="absolute";H.style.transformOrigin="top left";H.style.width="100%";return H};
Y_h=function(H){var U=document.createElement("span");U.style.borderTop=H?"4px solid #669df6":"4px solid #4285f4";U.style.display="inline-block";U.style.position="absolute";U.style.width="100%";return U};
h1m=function(H){return H==null?void 0:_.dgz(H).valueOf()};
jE8=function(H){var U=document.body,A=!1,M=function(){A||(A=!0,kv5(W,w),setTimeout(function(){U.removeChild(w);U.removeChild(W)},150))},W=vOf(H,getComputedStyle(U).direction==="rtl",M),w=T1j(M);
kv5(W,w);U.appendChild(w);U.appendChild(W);window.requestAnimationFrame(function(){w.style.opacity="1";W.style.opacity="1";W.style.transform="translate(-50%, -50%) scale(1)";W.children[0].focus()})};
vOf=function(H,U,A){var M=document.createElement("div");M.style.position="fixed";M.style.alignItems="center";M.style.backgroundColor=H?"rgb(32, 33, 36)":"white";M.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";M.style.display="flex";M.style.flexDirection="column";M.style.justifyContent="center";M.style.left="50%";M.style.top="50%";M.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";M.style.zIndex="2002";document.body.clientWidth>=
660?(M.style.borderRadius="8px",M.style.minHeight="220px",M.style.maxHeight="90%",M.style.maxWidth="90%",M.style.minWidth="540px"):(M.style.height="100%",M.style.width="100%");M.setAttribute("aria-label","Error");M.setAttribute("aria-modal","true");M.setAttribute("role","alertdialog");M.addEventListener("keydown",function(w){w.key==="Escape"&&A()});
U=IYB(H,U,A);M.appendChild(QE$(U));M.appendChild(U);var W=document.createElement("img");W.src=H?"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";W.style.height="72px";W.style.width="72px";W.style.color="#9aa0a6";W.setAttribute("alt","");M.appendChild(W);W=document.createElement("h1");W.textContent="Something went wrong.  Try again.";
W.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";W.style.lineHeight="24px";W.style.fontSize="16px";W.style.textAlign="center";W.style.letterSpacing="0.1px";W.style.color=H?"rgb(232,234,237)":"#3c4043";M.appendChild(W);M.appendChild(QE$(U));return M};
IYB=function(H,U,A){var M=document.createElement("button");M.style.backgroundColor="transparent";M.style.border="none";M.style.borderRadius="50%";M.style.cursor="pointer";M.style.outline="none";M.style.padding="12px";M.setAttribute("aria-label","Close dialog");M.style.position="absolute";M.style.top="0";U?M.style.right="0":M.style.left="0";M.addEventListener("focus",function(){M.style.backgroundColor=H?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
M.addEventListener("blur",function(){M.style.backgroundColor="transparent"});
M.addEventListener("mouseenter",function(){M.style.backgroundColor=H?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
M.addEventListener("mouseleave",function(){M.style.backgroundColor="transparent"});
M.addEventListener("click",A);M.addEventListener("keydown",function(W){W.key!=="Enter"&&W.key!=="Space"||A()});
U=document.createElement("img");U.src=H?"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";U.style.display="block";U.style.height="24px";U.style.width="24px";U.setAttribute("alt","");M.appendChild(U);return M};
QE$=function(H){var U=document.createElement("div");U.setAttribute("tabindex","0");U.setAttribute("aria-hidden","true");U.addEventListener("focus",function(){return void H.focus()});
return U};
T1j=function(H){var U=document.createElement("div");U.style.backgroundColor="rgba(32,33,36,0.6)";U.style.bottom="0";U.style.left="0";U.style.position="fixed";U.style.right="0";U.style.top="0";U.style.transition=" opacity 150 ms linear";U.style.zIndex="2001";U.addEventListener("click",H);return U};
kv5=function(H,U){U.style.opacity="0";H.style.opacity="0";H.style.transform="translate(-50%, -50%) scale(0.8)"};
VpY=function(H,U){H.sandbox&&H.sandbox.add&&(H.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),H.sandbox.add("allow-downloads"));H.src=U};
JC=function(H){this.JSC$19810_value_=void 0;this.childNodes_={};if(H){var U=_.qlB(H);H=_.xt(H);for(var A=0;A<U.length;A++)this.set(U[A],H[A])}};
K6=function(H){Hfm.call(this,H)};
w4h=function(H,U){U=U===void 0?!1:U;this.parsedImageUrl_=null;H instanceof Uvf||(AGh==void 0&&(AGh=new Mk5),H=AGh.parse(H.toString(),U));H=this.parsedImageUrl_=H;H.JSC$19835_parsedOptions_==void 0&&((U=H.getOptions())||(U=""),H.JSC$19835_parsedOptions_=(new Wqm).parse(U));Hfm.call(this,H.JSC$19835_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;H=this.parsedImageUrl_;U=H.uri_.JSC$10335_port_;this.JSC$19837_domain_=H.uri_.JSC$10335_domain_+(U?":"+U:"");this.JSC$19837_query_=
this.parsedImageUrl_.uri_.JSC$10335_queryData_.toString()};
ob=function(H){_.HU.call(this,"upload");this.opts.query=H};
X4j=function(){return _.QY.apply(0,arguments).flat().filter(function(H){return H}).join(";")};
bfm=function(){return So5(ifY,X4j.apply(null,_.vI(_.QY.apply(0,arguments))))};
dvX=function(H){this.mode=4;this.data=H;this.parsedData=[];H=0;for(var U=this.data.length;H<U;H++){var A=[],M=this.data.charCodeAt(H);M>65536?(A[0]=240|(M&1835008)>>>18,A[1]=128|(M&258048)>>>12,A[2]=128|(M&4032)>>>6,A[3]=128|M&63):M>2048?(A[0]=224|(M&61440)>>>12,A[1]=128|(M&4032)>>>6,A[2]=128|M&63):M>128?(A[0]=192|(M&1984)>>>6,A[1]=128|M&63):A[0]=M;this.parsedData.push(A)}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))};
Of8=function(H){this.typeNumber=0;this.errorCorrectLevel=H===void 0?2:H;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
F2=function(H,U){if(H.length==void 0)throw Error("Lk`"+H.length+"`"+U);for(var A=0;A<H.length&&H[A]==0;)A++;this.num=Array(H.length-A+U);for(U=0;U<H.length-A;U++)this.num[U]=H[U+A]};
upf=function(H,U){this.totalCount=H;this.dataCount=U};
Zf$=function(){this.buffer=[];this.length=0};
ftj=function(){var H=!1;if(_.pFt()){H=_.FE();var U="";_.Ec4()?(U=/Windows (?:NT|Phone) ([0-9.]+)/,U=(H=U.exec(H))?H[1]:"0.0"):_.xc()?(U=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,U=(H=U.exec(H))&&H[1].replace(/_/g,".")):_.R4r()?(U=/Mac OS X ([0-9_.]+)/,U=(H=U.exec(H))?H[1].replace(/_/g,"."):"10"):_.Zc(_.FE(),"KaiOS")?(U=/(?:KaiOS)\/(\S+)/i,U=(H=U.exec(H))&&H[1]):_.pFt()?(U=/Android\s+([^\);]+)(\)|;)/,U=(H=U.exec(H))&&H[1]):_.mr0()&&(U=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,U=(H=U.exec(H))&&H[1]);H=
U||""}return H};
srf=function(H,U){this.JSC$19866__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(U)for(var A in U)this.JSC$19866__htOption[A]=U[A];this.JSC$19866__htOption.useSVG&&(JGm=Kqh);this.JSC$19866__android=ftj();this.JSC$19866__el=H;this._oQRCode=null;this._oDrawing=new JGm(this.JSC$19866__el,this.JSC$19866__htOption);this.JSC$19866__htOption.text&&(H=this.JSC$19866__htOption.text,this._oQRCode=new Of8(this.JSC$19866__htOption.correctLevel),oa8(this._oQRCode,
H),U=this._oQRCode,Fq5(U,!1,PN7(U)),this.JSC$19866__el.title=H,this._oDrawing.draw(this._oQRCode),this.makeImage())};
nap=function(H,U,A,M,W){H.save();var w=new Path2D;w.roundRect(U,A,M*7,M*7,M*2);w.roundRect(U+M,A+M,M*5,M*5,M*1.3);w.roundRect(U+2*M,A+2*M,M*3,M*3,M);H.clip(w,"evenodd");H.fillStyle=W;H.fillRect(0,0,H.canvas.width,H.canvas.height);H.restore()};
SUY=function(){return NnB=NnB||new _.LW};
p4B=function(H){_.$R.call(this,"serverreachability",H)};
LqY=function(H){var U=SUY();U.dispatchEvent(new p4B(U,H))};
R2$=function(H,U){_.$R.call(this,"statevent",H);this.stat=U};
PT=function(H){var U=SUY();U.dispatchEvent(new R2$(U,H))};
Ea8=function(H,U,A,M){_.$R.call(this,"timingevent",H);this.size=U;this.rtt=A;this.retries=M};
mvp=function(H,U,A){var M=SUY();M.dispatchEvent(new Ea8(M,H,U,A))};
gaf=function(H,U){if(typeof H!=="function")throw Error("Ok");return _.Mr.setTimeout(function(){H()},U)};
sK=function(){this.redactEnabled_=!0};
n6=function(H,U,A,M,W){this.JSC$19888_channel_=H;this.JSC$19888_channelDebug_=U;this.sid_=A;this.JSC$19888_rid_=M;this.JSC$19888_retryId_=W||1;this.JSC$19888_eventHandler_=new _.u9(this);this.timeout_=45E3;this.JSC$19888_extraHeaders_=null;this.JSC$19888_successful_=!1;this.JSC$19888_postData_=this.JSC$19888_requestUri_=this.JSC$19888_baseUri_=this.JSC$19888_type_=this.JSC$19888_requestStartTime_=this.JSC$19888_watchDogTimeoutTime_=this.JSC$19888_watchDogTimerId_=null;this.JSC$19888_pendingMessages_=
[];this.JSC$19888_xmlHttp_=null;this.JSC$19888_xmlHttpChunkStart_=0;this.JSC$19888_lastError_=this.JSC$19888_verb_=null;this.JSC$19888_lastStatusCode_=-1;this.JSC$19888_cancelled_=!1;this.JSC$19888_readyStateChangeThrottleMs_=0;this.JSC$19888_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new at8};
xv7=function(H,U){var A=new sK;A.debug("TestLoadImage: loading "+H);if(_.Mr.Image){var M=new Image;M.onload=_.vg(N7,A,"TestLoadImage: loaded",!0,U,M);M.onerror=_.vg(N7,A,"TestLoadImage: error",!1,U,M);M.onabort=_.vg(N7,A,"TestLoadImage: abort",!1,U,M);M.ontimeout=_.vg(N7,A,"TestLoadImage: timeout",!1,U,M);_.Mr.setTimeout(function(){if(M.ontimeout)M.ontimeout()},1E4);
M.src=H}else U(!1)};
z25=function(H,U){var A=new sK,M=new AbortController,W=setTimeout(function(){M.abort();N7(A,"TestPingServer: timeout",!1,U)},1E4);
fetch(H,{signal:M.signal}).then(function(w){clearTimeout(W);w.ok?N7(A,"TestPingServer: ok",!0,U):N7(A,"TestPingServer: server error",!1,U)}).catch(function(){clearTimeout(W);
N7(A,"TestPingServer: error",!1,U)})};
N7=function(H,U,A,M,W){try{H.debug(U),W&&(W.onload=null,W.onerror=null,W.onabort=null,W.ontimeout=null),M(A)}catch(w){}};
tkk=function(){this.JSC$19902_parser_=new CNm};
cG5=function(H,U,A){return A&&A.internalChannelParams?A.internalChannelParams[H]||U:U};
SH=function(H){this.serverVersion_=0;this.JSC$19907_outgoingMaps_=[];this.JSC$19907_channelDebug_=new sK;this.JSC$19907_hostPrefix_=this.JSC$19907_backChannelUri_=this.JSC$19907_forwardChannelUri_=this.JSC$19907_path_=this.JSC$19907_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19907_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19907_extraHeaders_=null;this.JSC$19907_nextMapId_=this.JSC$19907_nextRid_=0;this.JSC$19907_failFast_=cG5("failFast",
!1,H);this.enableStreaming_=this.JSC$19907_deadBackChannelTimerId_=this.JSC$19907_backChannelTimerId_=this.JSC$19907_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19907_lastPostResponseArrayId_=this.JSC$19907_lastArrayId_=-1;this.JSC$19907_backChannelAttemptId_=this.JSC$19907_backChannelRetryCount_=this.JSC$19907_forwardChannelRetryCount_=0;this.JSC$19907_baseRetryDelayMs_=cG5("baseRetryDelayMs",5E3,H);this.JSC$19907_retryDelaySeedMs_=
cG5("retryDelaySeedMs",1E4,H);this.JSC$19907_forwardChannelMaxRetries_=cG5("forwardChannelMaxRetries",2,H);this.JSC$19907_forwardChannelRequestTimeoutMs_=cG5("forwardChannelRequestTimeoutMs",2E4,H);this.JSC$19907_xmlHttpFactory_=H&&H.xmlHttpFactory||void 0;this.networkTestUrl_=H&&H.networkTestUrl||void 0;this.usesFetchStreams_=H&&H.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19907_supportsCrossDomainXhrs_=H&&H.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=
new yGY(H&&H.concurrentRequestLimit);this.wireCodec_=new tkk;this.fastHandshake_=H&&H.fastHandshake||!1;this.encodeInitMessageHeaders_=H&&H.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19907_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=H&&H.blockingHandshake||!1;H&&H.disableRedact&&this.JSC$19907_channelDebug_.disableRedact();H&&H.forceLongPolling&&(this.allowStreamingMode_=
!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&H&&H.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;H&&H.longPollingTimeout&&H.longPollingTimeout>0&&(this.longPollingTimeout_=H.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
Bnf=function(){};
p6=function(H,U){if(H instanceof p6)this.array_=H.array_;else{var A;if(A=_.l7(H))a:{for(var M=A=0;M<H.length;M++){if(!_.l7(H[M])||A>0&&H[M].length!=A){A=!1;break a}for(var W=0;W<H[M].length;W++)if(typeof H[M][W]!=="number"){A=!1;break a}A==0&&(A=H[M].length)}A=A!=0}if(A)this.array_=_.$c(H);else if(H instanceof _.QT)this.array_=rGf(H.height,H.width);else if(typeof H==="number"&&typeof U==="number"&&H>0&&U>0)this.array_=rGf(H,U);else throw Error("Sk");}this.size_=new _.QT(this.array_[0].length,this.array_.length)};
L6=function(H,U){if(typeof H!=="function")throw Error("Ok");return _.Mr.setTimeout(function(){H()},U)};
Rb=function(H,U,A,M,W){this.JSC$19934_channel_=H;this.JSC$19934_channelDebug_=U;this.sid_=A;this.JSC$19934_rid_=M;this.JSC$19934_retryId_=W||1;this.timeout_=45E3;this.JSC$19934_eventHandler_=new _.u9(this);this.pollingTimer_=new _.ZT;this.pollingTimer_.setInterval(250)};
EK=function(){};
DvB=function(H,U,A,M,W){(new EK).debug("TestLoadImageWithRetries: "+W);if(M==0)A(!1);else{var w=W||0;M--;e2m(H,U,function(d){d?A(!0):_.Mr.setTimeout(function(){DvB(H,U,A,M,w)},w)})}};
e2m=function(H,U,A){var M=new EK;M.debug("TestLoadImage: loading "+H);var W=new Image;W.onload=function(){try{M.debug("TestLoadImage: loaded"),$vk(W),A(!0)}catch(w){}};
W.onerror=function(){try{M.debug("TestLoadImage: error"),$vk(W),A(!1)}catch(w){}};
W.onabort=function(){try{M.debug("TestLoadImage: abort"),$vk(W),A(!1)}catch(w){}};
W.ontimeout=function(){try{M.debug("TestLoadImage: timeout"),$vk(W),A(!1)}catch(w){}};
_.Mr.setTimeout(function(){if(W.ontimeout)W.ontimeout()},U);
W.src=H};
$vk=function(H){H.onload=null;H.onerror=null;H.onabort=null;H.ontimeout=null};
lty=function(){this.front_=[];this.back_=[]};
mp=function(H){this.JSC$19959_map_=new _.wJ;this.size=0;H&&this.addAll(H)};
Gl8=function(H,U){this.action=H;this.params=U||{}};
gC=function(H,U){_.XG.call(this);this.delay_=new _.b9(this.JSC$20033_onTick_,0,this);_.kl(this,this.delay_);this.JSC$20031_interval_=5E3;this.retryCount=this.nextTickTime_=0;if(typeof H==="function")U&&(H=(0,_.i9)(H,U));else if(H&&typeof H.handleEvent==="function")H=(0,_.i9)(H.handleEvent,H);else throw Error("za");this.JSC$20033_listener_=H};
ab=function(H,U,A,M,W,w,d,O,f,J,F,P,n,N,L,m){var z=this;A=A===void 0?!1:A;M=M===void 0?function(){return""}:M;
W=W===void 0?!1:W;w=w===void 0?!1:w;d=d===void 0?!1:d;O=O===void 0?function(){return _.DH({})}:O;
f=f===void 0?!1:f;F=F===void 0?!1:F;P=P===void 0?!1:P;n=n===void 0?!1:n;N=N===void 0?!1:N;this.JSC$20034_pathPrefix_=H;this.defaultQueryParams_=U;this.pubsub_=new _.HK;this.retryLogger_=m;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!L)?L(function(){z.safeReconnect_()}):new gC(this.safeReconnect_,this);
this.JSC$20034_channel_=null;this.JSC$20034_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20034_pendingMessages_=[];this.enableAsyncTest_=A;this.JSC$20034_getXsrfToken_=M;this.useAsyncBrowserChannelHandler_=w;this.getAuthorizationHeader_=O;this.getAuthorizationHeaderSync_=J;this.enableCachedUpdateAuthorizationHeader_=d;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.DH();this.enableLoungeTokenRefresh_=W;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
f;this.disableMdxAuthForNonPlaybackMessages_=F;this.disableMdxAuthForAdMessages_=P;this.enableMdxAuthForConnectionOnly_=n;this.disableMdxAuthForShortsMessages_=N;this.JSC$20034_channelOpenedCounter=new YUp;this.JSC$20034_channelClosedCounter=new qUm;this.channelMessageSentCounter=new h25;this.JSC$20034_channelMessageReceivedCounter=new kly;this.JSC$20034_channelErrorCounter=new vaf;this.pendingMapsOnClosedCounter=new TnX;this.undeliveredMapsOnClosedCounter=new jrf};
ItX=function(H){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;H=H||document.location.href;var U=Number(_.BL(H)[4]||null)||"";U&&(this.port=":"+U);this.domain=_.es(H)||"";H=_.FE();H.search("MSIE")>=0&&_.Jt(H.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
xe=function(H){H=H||{};this.name=H.name||"";this.id=H.id||H.screenId||"";this.token=H.token||H.loungeToken||"";this.uuid=H.uuid||H.dialId||"";this.idType=H.screenIdType||"normal";this.secret=H.screenIdSecret||""};
Qrh=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(H){var U=Math.random()*16|0;return(H=="x"?U:U&3|8).toString(16)})};
Vk$=function(H){return _.OA(H,function(U){return{key:U.id,name:U.name}})};
He7=function(H,U){return jJ(H,function(A){return A||U?!A!=!U?!1:A.id==U.id:!0})};
z_=function(H,U){return jJ(H,function(A){return UDf(A,U)})};
XXh=function(){var H=Ayj(),U=Mq5();if(WdB()){var A=H,M=_.ytE(A,U);M<0&&_.C74(A,-(M+1),0,U)}H=wX5(H);if(H.length==0)try{_.Uh0("remote_sid")}catch(W){}else try{_.WK("remote_sid",H.join(","),-1)}catch(W){}};
Ayj=function(){var H=_.H4("yt-remote-connected-devices")||[];H.sort(_.ctF);return H};
wX5=function(H){if(H.length==0)return[];var U=H[0].indexOf("#"),A=U==-1?H[0]:H[0].substring(0,U);return _.OA(H,function(M,W){return W==0?M:M.substring(A.length)})};
ieX=function(H){_.V3("yt-remote-connected-devices",H,86400)};
Mq5=function(){if(beh)return beh;var H=_.H4("yt-remote-device-id");H||(H=Qrh(),_.V3("yt-remote-device-id",H,31536E3));for(var U=Ayj(),A=1,M=H;_.y0(U,M);)A++,M=H+"#"+A;return beh=M};
dDy=function(){return _.H4("yt-remote-session-browser-channel")};
WdB=function(){return _.H4("yt-remote-session-screen-id")};
Ze$=function(H){H.length>5&&(H=H.slice(H.length-5));var U=_.OA(OeX(),function(M){return M.loungeToken}),A=_.OA(H,function(M){return M.loungeToken});
_.oo7(A,function(M){return!_.y0(U,M)})&&u8y();
_.V3("yt-remote-local-screens",H,31536E3)};
OeX=function(){return _.H4("yt-remote-local-screens")||[]};
u8y=function(){_.V3("yt-remote-lounge-token-expiration",!0,86400)};
fdy=function(H){H||(_.UU("yt-remote-session-screen-id"),_.UU("yt-remote-session-video-id"));XXh();H=Ayj();_.Dc(H,Mq5());ieX(H)};
Kdf=function(){JyX();return C6?!!C6.get("yt-remote-use-staging-server"):!1};
JyX=function(){if(!C6){var H=_.Jj();H&&(C6=new _.di(H))}};
sS$=function(H,U,A,M,W){A=A===void 0?function(){return""}:A;
var w=function(){return new ab(tC(H,"/bc"),U,!1,A,M)};
return _.S("enable_mdx_web_channel_desktop")?new o$7(function(){return new Fdj(tC(H,"/wc"),U,A)}):new P08(w,W)};
pXh=function(){var H=n$5;NXh();cT.push(H);Sc8()};
yH=function(H,U){NXh();var A=Ldm(H,String(U));cT.length==0?RDp(A):(Sc8(),_.yW(cT,function(M){M(A)}))};
BT=function(H){yH("CP",H)};
NXh=function(){cT||(cT=_.tr("yt.mdx.remote.debug.handlers_")||[],_.eC("yt.mdx.remote.debug.handlers_",cT))};
RDp=function(H){var U=(E$5+1)%50;E$5=U;mDh[U]=H;g$5||(g$5=U==49)};
Sc8=function(){var H=cT;if(mDh[0]){var U=g$5?E$5:-1,A={};do A={record$jscomp$15:void 0},U=(U+1)%50,A.record$jscomp$15=mDh[U],_.yW(H,function(M){return function(W){W(M.record$jscomp$15)}}(A));
while(U!=E$5);mDh=Array(50);E$5=-1;g$5=!1}};
Ldm=function(H,U){var A=(Date.now()-adk)/1E3;A.toFixed&&(A=A.toFixed(3));var M=[];M.push("[",A+"s","] ");M.push("[","yt.mdx.remote","] ");M.push(H+": "+U,"\n");return M.join("")};
eH=function(H){rC.call(this);this.JSC$20063_logName_=H;this.screens=[]};
$e=function(H){eH.call(this,"LocalScreenService");this.JSC$20070_http_=H;this.loungeTokenRefreshTimer_=NaN;Ds(this);this.info("Initializing with "+xDj(this.screens))};
lG=function(H,U){U=U===void 0?!1:U;eH.call(this,"ScreenService");this.JSC$20076_http_=H;this.disableAutomaticScreenCache_=U;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};zDj(this)};
G_=function(H,U,A){rC.call(this);this.JSC$20080_logName_=A;this.JSC$20080_screenService_=H;this.receiver_=U;this.screen_=null};
v$h=function(H,U,A){A.disableCastApi?Ye("Cannot initialize because disabled by Mdx config."):C0m()?tq8(H,A)&&(cyj(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?yym(U):(window.__onGCastApiAvailable=function(M,W){M?yym(U):(q7("Failed to load cast API: "+W),BX8(!1),cyj(!1),_.UU("yt-remote-cast-available"),_.UU("yt-remote-cast-receiver"),ryY(),U(!1))},A.loadCastApiSetupScript?_.f1(eDy):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
DDj()>=60&&$Dk():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?ldy():DDj()>=89?Guj():(Yck(),qc7(hDk.map(kum))))):Ye("Cannot initialize because not running Chrome")};
ryY=function(){Ye("dispose");var H=hC();H&&H.dispose();_.eC("yt.mdx.remote.cloudview.instance_",null);TX5(!1);_.$eN(jSj);jSj.length=0};
Idf=function(){return!!_.H4("yt-remote-cast-installed")};
QSm=function(){var H=_.H4("yt-remote-cast-receiver");return H?H.friendlyName:null};
Vq5=function(){Ye("clearCurrentReceiver");_.UU("yt-remote-cast-receiver")};
HG8=function(){return Idf()?hC()?hC().getCastSession():(q7("getCastSelector: Cast is not initialized."),null):(q7("getCastSelector: Cast API is not installed!"),null)};
App=function(H,U){Uep()?hC().setConnectedScreenStatus(H,U):q7("setConnectedScreenStatus called before ready.")};
C0m=function(){var H=_.FE().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.DB||H};
tq8=function(H,U){var A=!1;hC()||(H=new ke(H,U),H.subscribe("yt-remote-cast2-availability-change",function(M){_.V3("yt-remote-cast-available",M);Is("yt-remote-cast2-availability-change",M)}),H.subscribe("yt-remote-cast2-receiver-selected",function(M){Ye("onReceiverSelected: "+M.friendlyName);
_.V3("yt-remote-cast-receiver",M);Is("yt-remote-cast2-receiver-selected",M)}),H.subscribe("yt-remote-cast2-receiver-resumed",function(M){Ye("onReceiverResumed: "+M.friendlyName);
_.V3("yt-remote-cast-receiver",M);Is("yt-remote-cast2-receiver-resumed",M)}),H.subscribe("yt-remote-cast2-session-change",function(M){Ye("onSessionChange: "+MrX(M));
M||_.UU("yt-remote-cast-receiver");Is("yt-remote-cast2-session-change",M)}),_.eC("yt.mdx.remote.cloudview.instance_",H),A=!0);
Ye("cloudview.createSingleton_: "+A);return A};
hC=function(){return _.tr("yt.mdx.remote.cloudview.instance_")};
yym=function(H){BX8(!0);cyj(!1);hC().init(!1,function(U){U?(TX5(!0),_.lN7("yt-remote-cast2-api-ready")):(q7("Failed to initialize cast API."),BX8(!1),_.UU("yt-remote-cast-available"),_.UU("yt-remote-cast-receiver"),ryY());H(U)})};
Ye=function(H){yH("cloudview",H)};
q7=function(H){yH("cloudview",H)};
BX8=function(H){Ye("setCastInstalled_ "+H);_.V3("yt-remote-cast-installed",H)};
Uep=function(){return!!_.tr("yt.mdx.remote.cloudview.apiReady_")};
TX5=function(H){Ye("setApiReady_ "+H);_.eC("yt.mdx.remote.cloudview.apiReady_",H)};
cyj=function(H){_.eC("yt.mdx.remote.cloudview.initializing_",H)};
vT=function(H){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(H)};
Jp7=function(H){JyX();if(!C6||!C6.get("yt-remote-disable-remote-module-for-dev")){H=_.gD("MDX_CONFIG")||H;TJy();XXh();W77||(W77=new ItX(H?H.loungeApiHost:void 0),Kdf()&&(W77.basePath="/api/loungedev"));T_||(T_=_.tr("yt.mdx.remote.deferredProxies_")||[],_.eC("yt.mdx.remote.deferredProxies_",T_));w$y();var U=X$f();if(!U){var A=new lG(W77,H?H.disableAutomaticScreenCache||!1:!1);_.eC("yt.mdx.remote.screenService_",A);U=X$f();var M={};H&&(M={appId:H.appId,disableDial:H.disableDial,theme:H.theme,loadCastApiSetupScript:H.loadCastApiSetupScript,
disableCastApi:H.disableCastApi,enableDialLoungeToken:H.enableDialLoungeToken,enableCastLoungeToken:H.enableCastLoungeToken,forceMirroring:H.forceMirroring});_.eC("yt.mdx.remote.enableConnectWithInitialState_",H?H.enableConnectWithInitialState||!1:!1);v$h(A,function(w){w?iGp()&&App(iGp(),"YouTube TV"):A.subscribe("onlineScreenChange",function(){Is("yt-remote-receiver-availability-change")})},M)}if(H&&!_.tr("yt.mdx.remote.initialized_")){_.eC("yt.mdx.remote.initialized_",!0);
bGY("Initializing: "+(0,_.uR)(H));jH.push(_.qs("yt-remote-cast2-api-ready",function(){Is("yt-remote-api-ready")}));
jH.push(_.qs("yt-remote-cast2-availability-change",function(){Is("yt-remote-receiver-availability-change")}));
jH.push(_.qs("yt-remote-cast2-receiver-selected",function(){dem();Is("yt-remote-auto-connect","cast-selector-receiver")}));
jH.push(_.qs("yt-remote-cast2-receiver-resumed",function(){Is("yt-remote-receiver-resumed","cast-selector-receiver")}));
jH.push(_.qs("yt-remote-cast2-session-change",OGm));jH.push(_.qs("yt-remote-connection-change",function(w){w?App(iGp(),"YouTube TV"):u1h()||(App(null,null),Vq5())}));
jH.push(_.qs("yt-remote-cast2-session-failed",function(){Is("yt-remote-connection-failed")}));
M=ZGj();H.isAuto&&(M.id+="#dial");var W=H.capabilities||[];W.length>0&&(M.capabilities=W);M.name=H.device;M.app=H.app;(H=H.theme)&&(M.theme=H);bGY(" -- with channel params: "+(0,_.uR)(M));M?(_.V3("yt-remote-session-app",M.app),_.V3("yt-remote-session-name",M.name)):(_.UU("yt-remote-session-app"),_.UU("yt-remote-session-name"));_.eC("yt.mdx.remote.channelParams_",M);U.start();iGp()||fNf()}}};
o3y=function(){var H=X$f().instance_.$_gos();var U=K7X();U&&Ib()&&(He7(H,U)||H.push(U));return Vk$(H)};
F7X=function(){var H=o3y(),U=K7X();U||(U=u1h());return jJ(H,function(A){return U&&UDf(U,A.key)?!0:!1})};
K7X=function(){var H=iGp();if(!H)return null;var U=X$f().getScreens();return z_(U,H)};
OGm=function(H){bGY("remote.onCastSessionChange_: "+MrX(H));if(H){var U=K7X();if(U&&U.id==H.id){if(App(U.id,"YouTube TV"),H.idType=="shortLived"&&(H=H.token))Pj7&&(Pj7.token=H),(U=Ib())&&U.setLoungeToken(H)}else U&&svf(),n3f(H,1)}else Ib()&&svf()};
svf=function(){Uep()?hC().stopSession():q7("stopSession called before API ready.");var H=Ib();H&&(H.disconnect(1),NAf(null))};
SBf=function(){var H=Ib();return H&&H.getProxyState()!=3?new QH(Ib(),void 0):null};
bGY=function(H){yH("remote",H)};
X$f=function(){if(!p$7){var H=_.tr("yt.mdx.remote.screenService_");p$7=H?new L7B(H):null}return p$7};
iGp=function(){return _.tr("yt.mdx.remote.currentScreenId_")};
RyB=function(H){_.eC("yt.mdx.remote.currentScreenId_",H)};
dem=function(){_.eC("yt.mdx.remote.connectData_",null)};
Ib=function(){return _.tr("yt.mdx.remote.connection_")};
NAf=function(H){var U=Ib();dem();H||RyB("");_.eC("yt.mdx.remote.connection_",H);T_&&(_.yW(T_,function(A){A(H)}),T_.length=0);
U&&!H?Is("yt-remote-connection-change",!1):!U&&H&&Is("yt-remote-connection-change",!0)};
u1h=function(){var H=WdB();if(!H)return null;var U=X$f();if(!U)return null;U=U.getScreens();return z_(U,H)};
n3f=function(H,U){E38?Pj7=H:(RyB(H.id),H=new VH(W77,H,ZGj(),_.tr("yt.mdx.remote.enableConnectWithInitialState_")||!1),H.connect(U,_.tr("yt.mdx.remote.connectData_")),H.subscribe("beforeDisconnect",function(A){Is("yt-remote-before-disconnect",A)}),H.subscribe("beforeDispose",function(){Ib()&&NAf(null)}),H.subscribe("browserChannelAuthError",function(){var A=K7X();
A&&A.idType=="shortLived"&&(Uep()?hC().handleBrowserChannelAuthError():q7("refreshLoungeToken called before API ready."))}),NAf(H))};
fNf=function(){var H=u1h();H?(bGY("Resume connection to: "+MrX(H)),n3f(H,0)):(fdy(),Vq5(),bGY("Skipping connecting because no session screen found."))};
w$y=function(){var H=ZGj();if(_.dG.isEmpty(H)){H=Mq5();var U=_.H4("yt-remote-session-name")||"",A=_.H4("yt-remote-session-app")||"";H={device:"REMOTE_CONTROL",id:H,name:U,app:A,mdxVersion:3};H.authuser=String(_.gD("SESSION_INDEX","0"));(U=_.gD("DELEGATED_SESSION_ID"))&&(H.pageId=String(U));_.eC("yt.mdx.remote.channelParams_",H)}};
ZGj=function(){return _.tr("yt.mdx.remote.channelParams_")||{}};
me7=function(){var H,U;return _.u(function(A){if(A.nextAddress==1)return(_.p$N()||_.S("use_new_nwl"))&&_.svc().isNetworkAvailable()?A.yield(_.D0(),2):A.return();if(A.nextAddress!=3)return(H=A.yieldResult)?A.yield(c0y(H),3):A.return();U=A.yieldResult;if(!U.length)return A.return();U.forEach(function(M){var W={timestamp:M.timestamp};M=M.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:M.appShellAssetLoadReport,options:W}:M.clientError?{payloadName:"clientError",payload:M.clientError,
options:W}:void 0;M&&_.Fx(M.payloadName,M.payload,M.options)});
U.length===100&&_.Fl.addLowPriorityJob(me7);_.DO(A)})};
BA7=function(H,U,A){A=A===void 0?!1:A;var M=Math.max(H.width,g37);if(_.S("kevlar_watch_feed_big_thumbs")&&H.width>=1550-Hz()&&H.height>=800)M-=aNj;else if(H.width>=UL){var W=xeh+zyk+Al;_.S("kevlar_watch_feed_big_thumbs")&&(W=Cjf);M-=W}else M-=xeh;M=Math.min(M,trY);W=240;A&&(W=380);U<.5624||(!_.S("kevlar_watch_flexy_disable_small_window_sizing")&&(H.height<630&&H.width>=657||H.height>=630&&H.width>=UL&&H.width<1327)?W=360:!_.S("kevlar_watch_flexy_disable_large_window_sizing")&&H.height>=630&&H.width>=
1327&&(W=480));var w=Math.min(M*U,H.height-(56+cp8+ypy));w=Math.max(w,W);U<1?M=w/U:H.width>=UL&&(M=BA7(H,.5625,A).width);return new _.QT(Math.round(M),Math.round(w))};
rp8=function(H){if(H.playerResponse){if(H=H.playerResponse,H.messages&&H.messages.length>0&&(H=H.messages.find(function(U){return!(!U||!U.mealbarPromoRenderer)}))&&H.mealbarPromoRenderer)return H.mealbarPromoRenderer}else if(H.response&&(H=H.response)&&H.overlay&&H.overlay.mealbarPromoRenderer)return H.overlay.mealbarPromoRenderer};
eyp=function(H){if(H.response){var U=H.response;if(U&&U.overlay&&U.overlay.tooltipRenderer)return U.overlay.tooltipRenderer}if(H.playerResponse&&(H=H.playerResponse,H.messages&&H.messages.length>0&&(H=H.messages.find(function(A){return!(!A||!A.tooltipRenderer)}))&&H.tooltipRenderer))return H.tooltipRenderer};
Dey=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
$e7=function(){var H,U,A;return _.u(function(M){switch(M.nextAddress){case 1:return M.yield(_.Wd.getInstance(),2);case 2:H=M.yieldResult;if(!H){U=void 0;M.jumpTo(3);break}return M.yield(H.get("lmqf"),4);case 4:U=M.yieldResult;case 3:switch((A=U)||(A="SD"),A){case "HD":return M.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return M.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return M.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return M.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return M.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
lNm=function(H){var U,A,M;return _.u(function(W){if(W.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.S("disable_av1_setting")){var w=window.localStorage["yt-player-av1-pref"];w=w==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":w==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else w="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(U=H===w)return W.jumpTo(2);M=A=H;return W.yield($e7(),3)}W.nextAddress!=2&&(U=M===W.yieldResult);return W.return(U)})};
YBX=function(){var H=_.hr("user_engagement_experiments_rate_limit_ms"),U=GkX.get("last-user-engagement-exp-trigger-timestamp");return!U||(0,_.lD)()>=U+H?(GkX.set("last-user-engagement-exp-trigger-timestamp",(0,_.lD)()),!0):!1};
Mc=function(H,U,A,M,W){U=U===void 0?null:U;A=A===void 0?null:A;M=M===void 0?null:M;W=W===void 0?null:W;H={youThereEventType:H};A&&(H.lactThresholdMs=A.lactThresholdMs,H.mediaPosSec=A.promptDelaySec,H.lactServerRequestMs=A.lactServerRequestMs,H.triggerReason=A.triggerReason);W!=null&&(H.renderingMediaPosSec=Math.round(W));U||(U=_.XK());U&&(H.clientScreenNonce=U);M&&(H.clientPlaybackNonce=M);_.Fx("youThere",H)};
hyB=function(H){if(!qBB&&(H=H||_.gD("ZWIEBACK_PING_URLS"))&&H.length){qBB=!0;for(var U=0;U<H.length;U++)_.my(H[U])}};
kk$=function(H){var U=0;H.indexOf("h")!=-1&&(H=H.split("h"),U=H[0]*60*60,H=H[1]);H.indexOf("m")!=-1&&(H=H.split("m"),U=H[0]*60+U,H=H[1]);H.indexOf("s")!=-1?(H=H.split("s"),U=H[0]*1+U):U=H*1+U;return U};
TAk=function(H){if(_.dG.get(_.gD("PLAYER_VARS",{}),"privembed",!1)!="1"){H&&Ra5();try{v3B().then(function(){},function(){}),_.jy(TAk,18E5)}catch(U){_.za(U)}}};
jv5=function(){var H=_.TR(),U=H.getFlag(119),A=window.devicePixelRatio>1;document.body&&_.Rw(document.body,"exp-invert-logo")&&(A&&!_.Rw(document.body,"inverted-hdpi")?_.P$(document.body,"inverted-hdpi"):!A&&_.Rw(document.body,"inverted-hdpi")&&_.F1(document.body,"inverted-hdpi"));U!=A&&(_.jb(0,119,A),H.save())};
IN5=function(){_.hr("service_worker_push_logged_out_prompt_watches")!=-1&&AC("WatchCount").then(function(H){H>=100||kPh("WatchCount",H+1)})};
QvB=function(H){return H.filter(function(U){return"ypcGetCartEndpoint"in U||"ypcFixInstrumentEndpoint"in U})};
Vr5=function(H){return H.filter(function(U){return!_.p(U,_.tLn)})};
Hy7=function(H){switch(H){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}};
UFh=function(H,U,A){var M=_.ij(A);H&&U&&M&&H.getPlayerPromise().then(function(W){_.ylt(M)&&_.P1();(new _.Xu(W)).executeCommand(M,U);_.S("continue_playback_on_desktop_companion_click")||W.pauseVideo()})};
As7=function(H){var U=_.Ly(),A;if(A=_.tr("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var M;A=(M=A())==null?void 0:M.layoutId}else A=null;UFh(U,A,H)};
MIm=function(H){var U=_.Ly(),A;if(A=_.tr("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var M;A=(M=A())==null?void 0:M.layoutId}else A=null;UFh(U,A,H)};
Wz=function(H,U){var A=H<0?"-":"";H=Math.abs(H);var M=Math.floor(H/3600),W=Math.floor(H)%3600,w=Math.floor(W/60);W=Math.floor(W)%60;var d="";(U===void 0?0:U)&&(d="."+Math.round((H-Math.floor(H))*10));return M>0?A+M+":"+(w<10?"0"+w:""+w)+":"+(W<10?"0"+W:""+W)+d:A+w+":"+(W<10?"0"+W:""+W)+d};
WYh=function(H){var U=H.match(/[^0-9:\.]/g);if(U&&U.length>0)return null;H=H.split(":");if(H.length===0||H.length>3)return null;U=1;for(var A=0;H.length>0;){var M=H.pop();if(M===void 0)break;var W=Number(M);if(M===""||isNaN(W))return null;A+=W*U;U*=60}return A};
woh=function(H,U,A,M){H=Math.max(A,H);U=Math.min(U,M-A);H+U>M?(A=M,H=A-U):A=H+U;return{start:H,end:A}};
Xoy=function(H,U,A,M,W,w){H<A?H=A:H+W>M&&(H=M-W);U>M&&(U=M);U=Math.min(H+w,Math.max(H+W,U));return{start:H,end:U}};
iyX=function(H,U,A,M,W,w){U>M?U=M:U-W<A&&(U=A+W);H<A&&(H=A);H=Math.min(U-W,Math.max(U-w,H));return{start:H,end:U}};
byj=function(H,U){if(U)return"ytCardViewModelCardSelected";switch(H){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
KYm=function(H,U){var A=_.RS(H,{}),M=dFp("top",U),W=dFp("bottom",U),w=dFp("left",U),d=dFp("right",U);return _.rA({top:function(){return ww(A().position,M)},
bottom:function(){return ww(A().position,W)},
left:function(){return ww(A().position,w)},
right:function(){return ww(A().position,d)},
position:function(){return ww(A().positionType,Oyj)},
height:function(){return ww(A().height,Xe)},
width:function(){return ww(A().width,Xe)},
"min-width":function(){return ww(A().minWidth,Xe)},
"min-height":function(){return ww(A().minHeight,Xe)},
"max-width":function(){return ww(A().maxWidth,Xe)},
"max-height":function(){return ww(A().maxHeight,Xe)},
"aspect-ratio":function(){return ww(A().aspectRatio,String)},
"margin-top":function(){return ww(A().margin,M)},
"margin-bottom":function(){return ww(A().margin,W)},
"margin-left":function(){return ww(A().margin,w)},
"margin-right":function(){return ww(A().margin,d)},
"padding-top":function(){return ww(A().padding,M)},
"padding-bottom":function(){return ww(A().padding,W)},
"padding-left":function(){return ww(A().padding,w)},
"padding-right":function(){return ww(A().padding,d)},
"flex-direction":function(){return ww(A().flexDirection,uA8)},
"justify-content":function(){return ww(A().justifyContent,Zy5)},
"align-items":function(){return ww(A().alignItems,fW5)},
"flex-grow":function(){return ww(A().flexGrow,String)},
"flex-shrink":function(){return ww(A().flexShrink,String)},
"flex-basis":function(){return ww(A().flexBasis,Xe)},
"align-self":function(){return ww(A().alignSelf,fW5)},
"flex-wrap":function(){return ww(A().flexWrap,Jsp)},
"align-content":function(){return ww(A().alignContent,fW5)}})};
ww=function(H,U){return H!==void 0?U(H):void 0};
Jsp=function(H){switch(H){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
Oyj=function(H){switch(H){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
fW5=function(H){switch(H){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"}};
Zy5=function(H){switch(H){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"}};
uA8=function(H){switch(H){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"}};
dFp=function(H,U){var A=U==="rtl";switch(H){case "top":var M=oY5;break;case "bottom":M=FYY;break;case "left":M=PZh;break;default:M=sLy}return function(W){return ww(M(W,A),Xe)}};
oY5=function(H){var U=H.top;var A=H.vertical;H=H.all;var M;return(M=U!=null?U:A)!=null?M:H};
FYY=function(H){var U=H.bottom;var A=H.vertical;H=H.all;var M;return(M=U!=null?U:A)!=null?M:H};
PZh=function(H,U){var A=H.left;var M=H.end;var W=H.start;var w=H.horizontal;H=H.all;var d,O;return(O=(d=A!=null?A:U?M:W)!=null?d:w)!=null?O:H};
sLy=function(H,U){var A=H.right;var M=H.end;var W=H.start;var w=H.horizontal;H=H.all;var d,O;return(O=(d=A!=null?A:U?W:M)!=null?d:w)!=null?O:H};
Xe=function(H){var U=H.value;switch(H.unit){case "YPC_DIMENSION_UNIT_POINT":return U+"px";case "YPC_DIMENSION_UNIT_FRACTION":return U+"%";default:return""+U}};
nYY=function(H){switch(H){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"}};
NT8=function(H){var U=H!=null?H:{};H=U.fontRole;var A=U.fontSize;U=U.fontWeight;if(H!==null&&A!==null)switch(H){case "YPC_FONT_ROLE_DISPLAY":switch(A){case "YPC_FONT_SIZE_L":return U==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return U==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return U==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return U==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(A){case "YPC_FONT_SIZE_L":return U==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return U==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return U===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return U==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(A){case "YPC_FONT_SIZE_XL":return U==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return U==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return U==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return U==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return U==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
R$Y=function(H,U,A){function M(P){return Object.values(P).map(function(n){var N=n.productId;n=n.pricingOptionIndex;return i2(W(N).pricingOptions,n).pricingOptionId})}
function W(P){return f().get(P)}
function w(P){P=M(P);A(P)}
function d(P,n){return Array.from(b2(P.pricingOptions)).filter(function(N){N=_.b(N);N.next();N=N.next().value;return dw(N.pricingGroupAttributes,n)}).map(function(N){return _.b(N).next().value})}
var O=S3k([H,U],function(P,n){var N=P==null?void 0:P.selectedPricingOptions;P={};var L=!0;if(N&&n.length)for(var m=_.b(n),z=m.next();!z.done;z=m.next()){z=z.value;var c=poX(z.pricingOptions,function(Y){a:{Y=Y.pricingOptionId;for(var D=_.b(N),h=D.next();!h.done;h=D.next())if(h.value===Y){Y=!0;break a}Y=!1}return Y});
if(c>=0){L=!1;var C=i2(z.pricingOptions,c),v=void 0;P[z.groupId]={productId:z.productId,pricingOptionIndex:c,pricingGroupAttributes:(v=C)==null?void 0:v.pricingGroupAttributes}}}L&&n.length&&(L=i2(n[0].pricingOptions,0),P[n[0].groupId]={productId:n[0].productId,pricingOptionIndex:0,pricingGroupAttributes:L==null?void 0:L.pricingGroupAttributes});return P}),f=S3k([U],function(P){return new Map(P.map(function(n){return[n.productId,
n]}))}),J=S3k([U],function(P){var n=new Map;
P=_.b(P);for(var N=P.next();!N.done;N=P.next()){var L=N.value;N=L.groupId;var m=L.productId;L=_.b(b2(L.pricingOptions));for(var z=L.next();!z.done;z=L.next()){var c=_.b(z.value);z=c.next().value;c=c.next().value;n.set(c.pricingOptionId,{groupId:N,productId:m,index:z,pricingOption:c,pricingGroupAttributes:c.pricingGroupAttributes})}}return n}),F=S3k([U],function(P){var n=new Map;
P=_.b(P);for(var N=P.next();!N.done;N=P.next()){var L=N.value;N=L.groupId;var m=L.productId,z=void 0;L=_.b(b2((z=L.pricingGroups)!=null?z:[]));for(z=L.next();!z.done;z=L.next()){var c=_.b(z.value);z=c.next().value;c=c.next().value;n.set(c.pricingGroupId,{groupId:N,productId:m,index:z,pricingGroup:c,pricingGroupAttributes:c.pricingGroupAttributes})}}return n});
return{getProductById:W,isProductSelected:function(P){var n=W(P);if(!n)return!1;var N;return((N=O()[n.groupId])==null?void 0:N.productId)===P},
getSelectedPricingOptions:function(){return Object.values(O()).map(function(P){var n=P.productId;P=P.pricingOptionIndex;return i2(W(n).pricingOptions,P)})},
getSelectedPricingGroupAttributesByGroupId:function(P){var n;return(P=(n=O()[P])==null?void 0:n.pricingGroupAttributes)?Array.from(P):void 0},
getSelectedProductByGroupId:function(P){var n;return(P=(n=O()[P])==null?void 0:n.productId)?W(P):void 0},
onProductSelected:function(P){var n=W(P);if(n){var N=O(),L;if(((L=N[n.groupId])==null?void 0:L.productId)!==P){var m=(L=(m=N[n.groupId])==null?void 0:m.productId)?W(L):void 0;var z;L=(z=N[n.groupId])==null?void 0:z.pricingGroupAttributes;var c;z=(c=N[n.groupId])==null?void 0:c.pricingOptionIndex;if(m&&z!==void 0)if(L){c=d(m,L).indexOf(z);if(c===-1)throw Error("Cl`"+z+"`"+m.productId);z=d(n,L);c=c<z.length?z[c]:z.length>0?z[0]:0}else c=z<OL(n.pricingOptions)?z:0;else c=0;OL(n.pricingOptions)<=c&&(c=
0);z=i2(n.pricingOptions,c);var C;m={};w(Object.assign({},N,(m[n.groupId]={productId:P,pricingOptionIndex:c,pricingGroupAttributes:(C=z==null?void 0:z.pricingGroupAttributes)!=null?C:[]},m)))}}},
onPricingOptionSelected:function(P){var n=J().get(P);if(n){P=n.groupId;var N=n.productId;n=n.index;var L=O(),m,z;if(((m=L[P])==null?void 0:m.productId)!==N||((z=L[P])==null?void 0:z.pricingOptionIndex)!==n){var c,C;m={};w(Object.assign({},L,(m[P]={productId:N,pricingOptionIndex:n,pricingGroupAttributes:(C=(c=L[P])==null?void 0:c.pricingGroupAttributes)!=null?C:[]},m)))}}},
onPricingGroupSelected:function(P){var n=F().get(P);if(n){P=n.groupId;var N=n.productId,L=n.pricingGroup.pricingGroupAttributes,m=W(N);if(m){n=O();var z=n[P].pricingGroupAttributes,c;if(((c=n[P])==null?void 0:c.productId)!==N||!dw(LYf(z,OL(L)),L)){c=Array.from(L);for(L=OL(L);L<OL(z);L++){var C="",v=!1,Y=Array.from(c);Y.push(i2(z,L));for(var D=_.b(m.pricingGroups),h=D.next();!h.done;h=D.next())if(h=h.value,dw(h.pricingGroupAttributes,Y)){c.push(i2(z,L));v=!0;break}else C===""&&OL(h.pricingGroupAttributes)===
Y.length&&dw(LYf(h.pricingGroupAttributes,c.length),c)&&(C=i2(h.pricingGroupAttributes,L));v||c.push(C)}C=n[P].pricingOptionIndex;L=[];v=new Map;Y=0;m=_.b(b2(m.pricingOptions));for(D=m.next();!D.done;D=m.next())h=_.b(D.value),D=h.next().value,h=h.next().value,dw(h.pricingGroupAttributes,c)&&L.push(D),dw(h.pricingGroupAttributes,z)&&v.set(D,Y++);L.length===0?z=0:(z=v.get(C),z=z!==void 0&&z<L.length?L[z]:L[0]);m={};w(Object.assign({},n,(m[P]={productId:N,pricingOptionIndex:z,pricingGroupAttributes:c},
m)))}}}},
onClearGroupSelected:function(P){var n=O();n[P]&&(n=Object.fromEntries(Object.entries(n).filter(function(N){return _.b(N).next().value!==P})),w(n))}}};
b2=function(H){return function A(){var M,W,w,d,O;return _.eV(A,function(f){switch(f.nextAddress){case 1:_.yb(f,2),M=0,W=_.b(H),w=W.next();case 4:if(w.done){f.jumpTo(2);break}d=w.value;O=_.D9;return f.yield([M++,d],7);case 7:O(f.yieldResult);w=W.next();f.jumpTo(4);break;case 2:_.cI(f),_.BI(f,0)}})}()};
poX=function(H,U){H=_.b(b2(H));for(var A=H.next();!A.done;A=H.next()){var M=_.b(A.value);A=M.next().value;M=M.next().value;if(U(M))return A}return-1};
OL=function(H){var U=0;for(H=H[Symbol.iterator]();!H.next().done;)++U;return U};
i2=function(H,U){H=_.b(b2(H));for(var A=H.next();!A.done;A=H.next()){var M=_.b(A.value);A=M.next().value;M=M.next().value;if(A===U)return M}};
dw=function(H,U){if(!H&&!U)return!0;if(!H||!U)return!1;H=Array.from(H);U=Array.from(U);if(H.length!==U.length)return!1;for(var A=0;A<H.length;A++)if(H[A]!==U[A])return!1;return!0};
LYf=function(H,U){U=U===void 0?Infinity:U;var A=[];H=_.b(b2(H));for(var M=H.next();!M.done;M=H.next()){var W=_.b(M.value);M=W.next().value;W=W.next().value;if(M>=U)break;M>=0&&A.push(W)}return A};
S3k=function(H,U){var A,M;return function(){for(var W=H.map(function(d){return d()}),w=0;w<W.length;w++)if(!A||W[w]!==A[w]){A=W;
M=U.apply(null,_.vI(W));break}return M}};
EYk=function(H,U,A){var M=[];H=_.b(H);for(var W=H.next();!W.done;W=H.next()){W=W.value;var w=void 0;((w=U)==null?0:w.length)&&!dw(W.pricingGroupAttributes,U)||M.push({pricingOption:W,isSelected:A.includes(W.pricingOptionId)})}return M};
mFh=function(H,U){return _.rH(H.entities,"pdpStateEntity",U)};
gYj=function(H){var U,A;return!!(H.productId&&H.groupId&&((U=H.pricingOptions)==null?0:U.length)&&H.pricingOptions.every(function(M){return M.pricingOptionId})&&((A=H.pricingGroups)==null||!A.length||Array.isArray(H.pricingGroups)&&H.pricingGroups.every(function(M){return M.pricingGroupId&&M.pricingGroupAttributes&&M.pricingGroupAttributes.length>0})))};
aWh=function(H,U,A){return R$Y(H,S3k([U],function(M){return M.filter(gYj)}),A)};
xFm=function(H,U){return U.length===0?[H]:[H.slice(0,U[0]),H.slice(U[0])].filter(function(A){return A.length>0})};
z$5=function(H){switch(H){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""}};
tI8=function(H,U,A,M){M=Object.assign({},M);_.Ap(M,CZh,{selectedOptionId:H,primaryButtonOverride:A});_.Sq().dispatch(_.hs("flowStateEntity",U,M))};
csh=function(H,U,A){!_.p(A,CZh)&&H.noPreselect&&U!==""&&H.defaultButtonOverride&&tI8("default",U,H.defaultButtonOverride,A)};
ysm=function(H){switch(H){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
BT8=function(H){switch(H){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
rs$=function(H,U){U.includes(H)?U=U.filter(function(A){return A!==H}):U.push(H);
return[].concat(_.vI(U))};
e$m=function(H,U){return _.rH(H.entities,"contextNoteFeedEntityPayload",U)};
DFm=function(H,U){switch(H){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return U==null?void 0:U.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return U==null?void 0:U.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return U==null?void 0:U.ratingNotHelpfulText}};
$Ff=function(H,U,A){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:A||H.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:H.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:H.deleteDialogTitle}]},dialogMessages:[{runs:[{text:H.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:H.deleteActionText}]},command:{performCommentActionEndpoint:{action:U}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:H.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
lW8=function(H,U,A){var M;if(H&&((M=U())==null?0:M.includes(H))){var W;A((W=U())==null?void 0:W.filter(function(w){return w!==H}))}else A([].concat(_.vI(U()||[]),[H]))};
Y3Y=function(H,U){if(H){var A=[];U=_.b((U==null?void 0:U.checkboxes)||[]);for(var M=U.next();!M.done;M=U.next()){M=_.p(M.value,GBy);var W=void 0;((W=M)==null?0:W.value)&&H.includes(M.key||"")&&A.push(M.value)}return A}};
q3j=function(H,U){return H===U?!0:(H==null?void 0:H.formId)===(U==null?void 0:U.formId)&&(H==null?void 0:H.fieldId)===(U==null?void 0:U.fieldId)};
kBh=function(H){var U=h$5.get(H);if(U)return U;U=H.replace(/_([a-zA-Z0-9])/g,function(A,M){return M.toUpperCase()});
h$5.set(H,U);return U};
jLp=function(H){var U=_.Ja(function(){var M;return(M=_.an(H))!=null?M:{}},{equals:q3j},"rjkP8c"),A=_.Ja(function(){var M=U(),W=M.formId;
M=M.fieldId;var w;if(w=W&&M){if(M==="formId")throw Error("Jl`"+"Field id cannot be formId.".replace(/\n\s*/g," "));b:{if(W&&(vYp?vYp():(w=_.b(_.iB(0,void 0,"VxY0fb")),vYp=w.next().value,w.next(),w.next(),vYp()),w=TTh.get(W))){w=w.form;break b}w=void 0}if(w){var d=kBh(M);w=w[d]}else w=void 0}if(w)throw Error("Jl`"+("Field "+M+" in form "+W+" is not a ScalarField.").replace(/\n\s*/g," "));},void 0,"OhSJ8e");
return function(){return A()}};
IWk=function(H){H.style.height="auto";H.style.height=H.scrollHeight+"px"};
QLB=function(H){return[H.syncStep,H.asyncStep].filter(function(U){return U!==void 0})};
HlY=function(H){var U,A,M;if(H=(U=H.structuredContextNoteFormSchema)==null?void 0:(A=U.fieldSchemas)==null?void 0:(M=A.noteBody)==null?void 0:M.validationSchema)for(U=_.b(QLB(H)),A=U.next();!A.done;A=U.next()){A=A.value.rules;if(!A)break;A=_.b(A);for(A=A.next();!A.done;A=A.next())return _.p(A.value,VIp)}};
AFj=function(H){if(H){H=_.b(QLB(H));for(var U=H.next();!U.done;U=H.next()){U=U.value.rules;if(!U)break;U=_.b(U);for(U=U.next();!U.done;U=U.next())return _.p(U.value,UGY)}}};
WLh=function(H){if(H){H=_.b(QLB(H));for(var U=H.next();!U.done;U=H.next()){U=U.value.rules;if(!U)break;U=_.b(U);for(U=U.next();!U.done;U=U.next())return _.p(U.value,M5X)}}};
wqm=function(H){H=/^https?:\/\//.test(H)?H:"http://"+H;try{var U=_.yX(H)}catch(A){return!1}if(U.toString()!==H)return!1;H=U.JSC$10335_domain_.split(".");return H.length>1&&H.every(function(A){return!!A})};
Xqf=function(H,U,A,M){var W;M=(W=M.structuredContextNoteData)==null?void 0:W.createCommentEndpoint;if(W=_.p(M,_.$Ig))return W.commentText=_.Nh(H),W.videoPositionMention=U,W.sources=A,M};
ilB=function(H){return H==null?void 0:H.stringValue};
dG8=function(H,U,A){H=H.map(function(M,W){return{listItemViewModel:{title:M.title,subtitle:M.subtitle,leadingImage:M.leadingImage,trailingImage:W===U?blj:void 0,rendererContext:{commandContext:{onTap:M.onTap}}}}});
return Object.assign({},A&&{header:{panelHeaderViewModel:{title:A}}},{content:{listViewModel:{listItems:H}}})};
Ol5=function(H,U){if(H&&U)switch(U){case "SELECTION_TYPE_BOOL":return H.boolValue;case "SELECTION_TYPE_INT":return H.intValue;case "SELECTION_TYPE_STRING":return H.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return H.privacyStatusValue;case "SELECTION_TYPE_TIME_PICKER_FORMAT":return H.timePickerFormatValue}};
udj=function(H){var U;H=(U=H.options)==null?void 0:U.findIndex(function(A){return A.isSelected});
return H===void 0?-1:H};
ZlB=function(H,U,A){var M=function(){return H().label},W={},w=_.CG("ytDropdownViewModelLabel",(W.ytDropdownViewModelLabelError=U,W));
return _.Z(_.K,{cond:function(){return H().label&&!(A()===-1&&H().label&&!H().placeholderText)},
then:function(){return _.Z("div",{class:w},_.Z(_.Pb,{text:M}))}})};
ff7=function(H,U){var A={};A=_.CG("ytDropdownViewModelTitle",(A.ytDropdownViewModelTitlePlaceholder=function(){return U()===-1},A));
return _.Z("div",{class:A},_.Z(_.Pb,{text:function(){var M=H();var W=U();if(W===-1)M=M.placeholderText?M.placeholderText:M.label;else{var w,d;M=(w=M.options)==null?void 0:(d=w[W])==null?void 0:d.title}return M}}))};
JFj=function(H,U){var A=function(){return H().hint};
return _.Z(_.ve,null,_.Z(_.K,{cond:function(){return A()&&!U()},
then:function(){return _.Z("div",{class:_.CG("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.Z(_.Pb,{text:A,className:"ytDropdownViewModelSupportText"}))}}),_.Z(_.K,{cond:U,
then:function(){return _.Z("div",{id:"dropdown-view-model-error",role:"alert",class:_.CG("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.Z(_.er,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.Z(_.Pb,{text:U,className:"ytDropdownViewModelSupportText"}))}}))};
KLj=function(H,U){var A=_.lx().resolve(_.yzy);_.LA(function(){var M=H().id;M&&A!=null&&A.dropdownMap.set(M,U)})};
FL7=function(H){H=_.p(H.scheduleButton,oCf);H=_.p(H==null?void 0:H.primaryButton,_.ot);H=_.p(H==null?void 0:H.onTap,_.X1);var U,A,M=((A=_.p(H,_.$2))==null?void 0:A.commands)||[H];A=_.b(M);for(H=A.next();!H.done&&!(U=_.p(H.value,_.BIh));H=A.next());var W;U=(W=U)==null?void 0:W.createBroadcastRequest;if(!U)throw Error("Pl");return U};
nC$=function(H,U){if(U){var A=_.Lq().getState().entities.flowStateEntity,M=PA5(H),W=[U];M&&M!==U&&W.push(M);var w=!0,d;if(A&&H.flowStateEntityKey&&((d=A[H.flowStateEntityKey])==null?void 0:d.primaryButtonDisabled)!==void 0){var O;w=!((O=A[H.flowStateEntityKey])==null||!O.primaryButtonDisabled)}sR7(H,M!=null?M:U,W,w)}};
Syh=function(H){return _.It(_.Lq(),function(U){return U.entities.flowStateEntity},function(U,A){if(H.flowStateEntityKey){var M,W=U==null?void 0:(M=U[H.flowStateEntityKey])==null?void 0:M.currentStepId,w;
A=A==null?void 0:(w=A[H.flowStateEntityKey])==null?void 0:w.currentStepId;w=_.Lq().getState().talkToRecs;if(W&&W!==A){var d;U=(U==null?void 0:(d=U[H.flowStateEntityKey])==null?void 0:d.stepIdStack)||Object.keys(w.stepStates);d=!N75(w==null?void 0:w.stepStates[W]);sR7(H,W,U,d)}}})};
LLf=function(H){return _.It(_.Lq(),pq8,function(U){var A=PA5(H);if(A){var M=Object.keys(U.stepStates);U=!N75(U==null?void 0:U.stepStates[A]);sR7(H,A,M,U)}})};
N75=function(H){var U=Object.keys((H==null?void 0:H.selectionStates)||{}).reduce(function(w,d){return w||(H==null?void 0:H.selectionStates[d].isSelected)},!1),A,M,W=!!(H==null?0:(A=H.userQuery)==null?0:(M=A.userQuery)==null?0:M.trim());
return U||W};
PA5=function(H){if(H.flowStateEntityKey){var U,A,M=(U=_.Lq().getState().entities.flowStateEntity)==null?void 0:(A=U[H.flowStateEntityKey])==null?void 0:A.currentStepId;if(M)return M}};
sR7=function(H,U,A,M){_.Lq().dispatch(_.hs("flowStateEntity",H.flowStateEntityKey,{currentStepId:U,stepIdStack:A,key:H.flowStateEntityKey,primaryButtonDisabled:M}))};
gCB=function(H,U,A){A=A===void 0?{}:A;var M,W;return _.u(function(w){if(M=ROk(U))return w.return(M);(W=ECm(H,U,A))&&mGj(U,W);return w.return(W)})};
mGj=function(H,U){var A=af8(H);A&&U.then(function(M){_.lx().resolve(_.Da).put(A,new _.$0({innertubeResponse:M}))})};
ROk=function(H){if(H=af8(H)){var U=_.lx().resolve(_.Da);if(U.has(H))return U.get(H).then(function(A){return A==null?void 0:_.xj(A)})}return null};
af8=function(H){var U=_.p(H.endpoint,_.sH);if(U!=null&&U.videoId)return U={videoId:U.videoId},_.S("web_imp_player_mute_params")&&(U.mutedAtStart=H.startPlaybackInMutedState),_.Pg("inline_playback",U)};
ECm=function(H,U,A){H=_.Js(H,U.endpoint,xGp(U,A)).then(function(M){return M});
return Promise.resolve(H)};
xGp=function(H,U){U=_.S("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!H.startPlaybackInMutedState},U):Object.assign({},{vis:5,autonav:"1"},U);var A;U={contentPlaybackContext:_.cl(U,(A=_.p(H.endpoint.commandMetadata,_.Y2))==null?void 0:A.url,window.location.href)};_.S("web_imp_player_mute_params")&&(U.overrideMutedAtStart=!H.startPlaybackInMutedState);return U};
yFj=function(H,U){var A=window.MutationObserver;A&&(zO$=new A(function(M,W){M=_.b(M);for(var w=M.next();!w.done;w=M.next()){w=w.value;var d;if(d=w.type==="childList"&&w.target)a:{d=H;w=CAy(w.target);d=CAy(d);for(var O=null,f=0;f<w.length;f++)if(d.includes(w[f])){if(f===0){d=!1;break a}O=w[f];break}O?(w=t5X(w,O),d=t5X(d,O),d=w<d):d=!1}if(d){U();W.disconnect();break}}}),(A=cFj())&&zO$.observe(A,{childList:!0,
subtree:!0}))};
cFj=function(){var H=document.getElementsByTagName("ytd-rich-grid-renderer");if(H.length>0)return H[0];H=document.getElementsByTagName("ytd-section-list-renderer");return H.length>0?H[0]:null};
CAy=function(H){for(var U=[];H;)U.push(H),H=H.parentElement;return U};
t5X=function(H,U){var A=Array.from(U.children);U=H.indexOf(U);return U>0?A.indexOf(H[U-1]):-1};
u2=function(H,U,A){A=A===void 0?{}:A;return _.hP(H,A,U)};
B7y=function(H){switch(H){case "MUSIC":return!0;default:return!1}};
eOh=function(H){if(H=H==null?void 0:H.find(function(M){var W,w;return((W=_.p(M,rF8))==null?void 0:(w=W.inlinePlaybackBadgeData)==null?void 0:w.replicateAsTimestamp)===!0}))if(H=_.p(H,rF8),H==null?0:H.icon){var U,A;
if((H=(U=_.ZrV(H.icon))==null?void 0:(A=U.clientResource)==null?void 0:A.imageName)&&B7y(H))return H}};
DG5=function(H){return H==null?void 0:H.filter(function(U){return U.premiereTrailerBadgeRenderer})};
$Gk=function(H){var U,A=H==null?void 0:(U=H.find(function(f){return f.thumbnailOverlayTimeStatusRenderer}))==null?void 0:U.thumbnailOverlayTimeStatusRenderer,M,W;
if((A==null?0:(M=A.icon)==null?0:M.iconType)&&B7y(A==null?void 0:(W=A.icon)==null?void 0:W.iconType)){var w;return{icon:A==null?void 0:(w=A.icon)==null?void 0:w.iconType}}var d;if(U=H==null?void 0:(d=H.find(function(f){return f.thumbnailOverlayBadgeViewModel}))==null?void 0:d.thumbnailOverlayBadgeViewModel)if(d=eOh(U.thumbnailBadges))return{icon:d};
var O;if(H=H==null?void 0:(O=H.find(function(f){return f.thumbnailBottomOverlayViewModel}))==null?void 0:O.thumbnailBottomOverlayViewModel)if(O=eOh(H.badges))return{icon:O};
return{}};
hO8=function(H,U){var A=new lff(function(w){W(w)},U);
U=_.b(_.iB(Gn$(A),void 0,"D2uee"));var M=U.next().value,W=U.next().value;_.Em(function(){Promise.resolve().then(function(){var w,d=(w=H())!=null?w:{};A.playerControlsData=d;A.lastSeenPlayerApi=_.u$(d.playerApi);YyX(A)});
_.m4(function(){qyp(A)})},"xfRk8b");
return M};
knh=function(H){return function(U){var A=H(),M={playerState:U};if(U===1){var W;(W=A.playerApi)==null||W.loadModule("captions")}if(U===0){var w;(w=A.playerApi)==null||w.unloadModule("captions")}U!==-1&&A.setState(M)}};
vC5=function(H){return function(U){H().setState({playbackRate:U})}};
T7y=function(H){return function(U){var A=H(),M=A.playerApi,W=M==null?void 0:M.getVideoData(),w=(W==null?void 0:W.isLive)||!1;W=W==null?void 0:W.video_id;w={videoDuration:eMh(M||void 0),isLive:w,videoId:W};w.videoId!==A.videoId&&(w=Object.assign({},_.z3h(M),w));if(U==null?0:U.playertype)w.playerType=U.playertype;if(M){w.captionsAvailable=mY$(M);U=w;var d;W=(d=M.getStoryboardLevel(M.getNumberOfStoryboardLevels()-1))==null?void 0:d.intervalMs;U.storyboardInterval=W?W/1E3:void 0;w.captionsAvailable&&
(w.captionsEnabled=gUh(M))}w.volumeMuted=!(M==null||!M.isMuted());A.setState(w)}};
jRj=function(H){return function(U){var A=H(),M=A.playerApi;if(M){var W=M.getPresentingPlayerType();U={playedTime:U||0,percentLoaded:M.getVideoLoadedFraction(),playerType:W};A.playerState===0&&(U.playedTime=A.videoDuration);A.isLive&&(W=M.getProgressState(W),U.playedTime-=W.seekableStart,U.videoDuration=eMh(M));if(A.playerType===1)M=!1;else{var w;if((w=A.uxConfig)==null?0:w.showCuedOverlay){var d;M=!((d=A.playerApi)==null?0:d.getPlayerStateObject(A.playerType).isDomPaused)}else M=!0}M&&delete U.playedTime;
A.setState(U)}}};
If7=function(H){return function(){var U=H(),A,M,W,w={volume:(W=(A=U.playerApi)==null?void 0:A.getVolume())!=null?W:0,volumeMuted:!((M=U.playerApi)==null||!M.isMuted())};U.setState(w)}};
QR5=function(H){return function(){var U=H(),A=U.playerApi;if(A){var M={captionsAvailable:mY$(A)};M.captionsAvailable&&(M.captionsEnabled=gUh(A));U.setState(M)}}};
V5h=function(H){return{appApi:Object.assign({},_.LZ8(),{showCaptionsToggleToast:function(U){var A,M;(M=(A=H()).showCaptionsToggleToast)==null||M.call(A,U)},
openInMiniplayer:function(){var U,A;(A=(U=H()).openInMiniplayer)==null||A.call(U)}})}};
HYm=function(H,U){var A,M,W;return!!(H==null?0:(A=H.playerResponse)==null?0:(M=A.playerConfig)==null?0:(W=M.inlinePlaybackConfig)==null?0:W.showScrubbingControls)&&!(U==null?0:U.hideScrubbingControls)};
UT$=function(H){var U=!H.miniplayerIsActive;return[5,2,0].includes(H.miniplayerPlaybackState)||U};
ANY=function(H){return _.S("web_transcript_cue_id_killswitch")?String(H):"ytd-transcript-renderer_"+H};
MVh=function(H){return _.S("web_transcript_cue_id_killswitch")?!0:H.startsWith("ytd-transcript-renderer")};
Wuj=function(H){var U=_.Ly(),A;if(A=_.tr("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var M;A=(M=A())==null?void 0:M.layoutId}else A=null;UFh(U,A,H)};
wl5=function(H,U){if(_.S("web_enable_chat_autoscroll_to_user_turn")&&H&&U)return H-4+"px"};
Xl$=function(H,U){return _.rH(H.entities,"youchatPendingResponseEntity",U)};
iYj=function(H){return function(U){_.Le(_.hs("youchatPendingResponseEntity",H,{entityKey:H,isPendingResponse:U}))}};
bYh=function(H,U){return _.rH(H.entities,"booleanEntity",U)};
dTm=function(){return function(H){_.Le(_.hs("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:H}))}};
OYp=function(H){H==null||H.addEventListener("DOMLoaded",function(){H.goToAndPlay(H.totalFrames-48,!0)})};
ZYY=function(H){H=_.p(H,ukh);if(H==null?0:H.trustedAnimationUrl){var U;return(U=_.PW(H.trustedAnimationUrl))==null?void 0:U.toString()}return H==null?void 0:H.animationUrl};
f9B=function(H){if(H.backgroundStyle)switch(H.backgroundStyle){case "CHAT_USER_TURN_BACKGROUND_STYLE_MONO":return"ytChatUserTurnViewModelMonoContainer";case "CHAT_USER_TURN_BACKGROUND_STYLE_GRADIENT":return"ytChatUserTurnViewModelGradientContainer";default:return"ytChatUserTurnViewModelDefaultContainer"}return H.hasGradientBackground?"ytChatUserTurnViewModelGradientContainer":"ytChatUserTurnViewModelDefaultContainer"};
JNm=function(H){H.style.height="auto";H.style.height=Math.min(H.scrollHeight||20,80)+"px"};
Kup=function(){var H;return String(Math.floor(((H=_.yU())==null?void 0:H.getCurrentTime())||0)*1E3)};
Fu5=function(H){if(H.onWelcomeCommand)return _.ij(H.onWelcomeCommand);H=_.p(H.inputComposerViewModel,oj$);if(H==null?0:H.welcomeFeatureContinuation)return hMX(H.welcomeFeatureContinuation)};
PX$=function(H){var U=_.Ly(),A;A=(A=_.tr("yt.www.ads.eventcache.getLastCompanionData"))?(A=A())&&A.layoutId:null;UFh(U,A,H)};
sih=function(H){var U=_.Ly(),A;A=(A=_.tr("yt.www.ads.eventcache.getLastCompanionData"))?(A=A())&&A.layoutId:null;UFh(U,A,H)};
njk=function(H){return H.filter(function(U){return!_.p(U,_.JI)})};
Nzh=function(H){var U,A,M,W;if(H=H==null?void 0:(U=H.contents)==null?void 0:(A=U.twoColumnWatchNextResults)==null?void 0:(M=A.results)==null?void 0:(W=M.results)==null?void 0:W.contents){var w,d;return(d=(w=H.find(function(O){return!!O.videoPrimaryInfoRenderer}))==null?void 0:w.videoPrimaryInfoRenderer)==null?void 0:d.updatedMetadataEndpoint}};
Sa5=function(H,U){var A;return(A=H.sourceConfigs)==null?void 0:A.find(function(M){return M.videoId===U})};
plX=function(H){return H==="End of video"||H==="End of playlist"};
Luk=function(H){var U,A,M,W;return(U=H.getWatchNextResponse())==null?void 0:(A=U.contents)==null?void 0:(M=A.twoColumnWatchNextResults)==null?void 0:(W=M.playlist)==null?void 0:W.playlist};
RlB=function(H){var U,A,M,W,w,d;return(U=Luk(H))==null?void 0:(A=U.playlistButtons)==null?void 0:(M=A.menuRenderer)==null?void 0:(W=M.topLevelButtons)==null?void 0:(w=W[0])==null?void 0:(d=w.playlistLoopButtonRenderer)==null?void 0:d.playlistLoopStateEntityKey};
Ejj=function(H){var U=_.lx().resolve(_.FX),A;return(U=(A=_.p(U.getAutoplayEndpoint(),_.sH))==null?void 0:A.playlistId)&&U===H};
a9h=function(H,U,A,M,W){function w(){_.Fl.cancelJob(ZQ);var d=mTY(U,A/H.getPlaybackRate()),O=d.hours,f=d.minutes;d=(d.seconds*1E3||6E4)/H.getPlaybackRate();H.setVideoTimeLeft(gjk(O,f));M&&H.getPlayerState()!==0&&H.setSleepTimerTimeLeft(gjk(O,f,!0));(O>0||f>0)&&!W&&(ZQ=_.TB(_.Fl,w,d))}
_.Fl.cancelJob(ZQ);ZQ=_.TB(_.Fl,w)};
zlh=function(H,U,A){function M(){_.Fl.cancelJob(xTh);var W=mTY(U,A),w=W.hours;W=W.minutes;var d=6E4/H.getPlaybackRate();if(w>0||W>0)H.setSleepTimerTimeLeft(gjk(w,W,!0)),xTh=_.TB(_.Fl,M,d)}
_.Fl.cancelJob(xTh);xTh=_.TB(_.Fl,M)};
tV5=function(H,U){var A=H.getVolume()/(U/500),M=function(W){_.Fl.cancelJob(CXh);var w=Math.floor(W-A);H.setVolume(w,!1);w>0&&(CXh=_.TB(_.Fl,function(){M(w)},500))};
_.Fl.cancelJob(CXh);CXh=_.TB(_.Fl,function(){M(H.getVolume())})};
cNy=function(H,U){_.Fl.cancelJob(CXh);U&&H.syncVolume()};
yN7=function(){var H={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.hP("SLEEP_TIMER_DISRUPTED")}}}}};_.lx().resolve(_.YV).resolveCommand(H)};
BzB=function(H){return(H.getDuration()-H.getProgressState().current)*1E3};
mTY=function(H,U){H=H+U-(0,_.lD)();if(H<=0)return{hours:0,minutes:0,seconds:0};var A=new rNm(0,0,0,0,0,0,H);H=A.getHours();U=A.getMinutes();A=A.getSeconds();A!==0&&U++;U!==0&&U%60===0&&(H++,U=0);return{hours:H,minutes:U,seconds:A}};
gjk=function(H,U,A){return H>0&&U>0?A?_.hP("TIME_LEFT_HOURS_MINUTES",{hours:H.toString(),minutes:U.toString()}):_.hP("TIME_HOURS_MINUTES",{hours:H.toString(),minutes:U.toString()}):H>0?A?_.k2("TIME_LEFT_HOURS",H):_.k2("TIME_HOURS",H):A?_.hP("TIME_LEFT_MINUTES",{minutes:U.toString()}):_.hP("TIME_MINUTES",{minutes:U.toString()})};
DTf=function(H,U){if(H.timelyActions)return H.timelyActions.find(function(A){var M;return((M=_.p(A,elp))==null?void 0:M.cueRangeId)===U})};
$Ty=function(H){return _.S("kevlar_watch_cinematics_invisible")||H.fullscreen&&_.S("kevlar_watch_cinematics_invisible_in_fullscreen")||H.theater&&!H.fullscreen&&_.S("kevlar_watch_cinematics_invisible_in_theater")};
l9X=function(){var H=document.createElement("canvas"),U=H.getContext("2d");if(!U)throw Error("Tl");_.Fw(H,{position:"absolute",width:"100%",height:"100%"});return{element:H,context:U}};
Gs7=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.S("kevlar_watch_cinematics_css_blur")};
Ya7=function(H){var U=H.externalVideoId||"";return U?H.isShortsEligible?"https://www.youtube.com/shorts/"+U:"https://www.youtube.com/watch?v="+U:""};
qa7=function(H){var U=[];H.viewCount&&U.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:H.viewCount});H.likeCount&&U.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:H.likeCount});return U};
hlB=function(H){var U,A,M={"@context":"https://schema.org","@type":"VideoObject",description:_.Sp(H.description),duration:"PT"+(H.lengthSeconds||"0")+"S",embedUrl:H.embed?H.embed.iframeUrl:"",name:_.Sp(H.title),thumbnailUrl:((U=H.thumbnail)==null?void 0:(A=U.thumbnails)==null?void 0:A.map(function(F){return F&&F.url||""}))||[],
uploadDate:H.publishDate};_.S("mweb_video_schema_id_killswitch")||(M["@id"]=Ya7(H));U=qa7(H);U.length&&(M.interactionStatistic=U);H.category&&(M.genre=H.category);H.ownerChannelName&&(M.author=H.ownerChannelName);H.liveBroadcastDetails&&(M.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:H.liveBroadcastDetails.startTimestamp,endDate:H.liveBroadcastDetails.endTimestamp}]);if(H.learningResource){H=H.learningResource;M["@type"]=["VideoObject","LearningResource"];var W;if((W=H.learningResourceType)==
null?0:W.length)M.learningResourceType=H.learningResourceType[0];var w;if((w=H.educationalAlignment)==null?0:w.length)M.educationalAlignment={"@type":"AlignmentObject",targetName:H.educationalAlignment[0]};var d;if((d=H.educationalLevel)==null?0:d.length){W=H.educationalLevel[0];var O;if((O=H.educationalLevelCountry)==null?0:O.length)W+=" ("+H.educationalLevelCountry+")";M.educationalLevel=W}var f,J;if(((f=H.learningResourceType)==null?0:f.length)&&H.learningResourceType[0]==="Problem walkthrough"&&
((J=H.problemDescriptions)==null?0:J.length))for(M.hasPart=[],O=_.b(H.problemDescriptions),f=O.next();!f.done;f=O.next())W=f.value,f=W.problemDescriptionText,J=W.startOffset,W=W.url,f&&J!==void 0&&W&&M.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:f,text:f,startOffset:J,url:W})}return M};
ksX=function(H){if((H==null?void 0:H.value)===void 0||H==null||!H.unit)return"initial";a:{switch(H.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var U="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":U="%";break a}U=void 0}return U?""+H.value+U:"initial"};
Tzh=function(H,U){var A,M,W,w,d,O,f;_.u(function(J){switch(J.nextAddress){case 1:A=_.P4.getInstance();M=_.$$.instance;W=_.ZW.instance;if(!W)return vj$(H,M,U),J.return();_.zj(J,2);H.onLoadingCommand&&M.resolveCommand(H.onLoadingCommand);return J.yield(A.getCurrentPositionFromGeolocation(),4);case 4:w=J.yieldResult;if(!H.resolveLocationCommand){J.jumpTo(5);break}d=A.createLocationInfo(w);return J.yield(_.Js(W,H.resolveLocationCommand,{locationInfo:d}),6);case 6:O=J.yieldResult;if(!O||"error"in O&&O.error||
O.errorMetadata)return vj$(H,M,U),J.return();var F;if(O==null?0:(F=O.onResponseReceivedActions)==null?0:F.length){F=_.b(O.onResponseReceivedActions);for(var P=F.next();!P.done;P=F.next())M.resolveCommand(P.value)}(_.p(H.onSuccessCommand,_.sH)||_.p(H.onSuccessCommand,_.Gv))&&_.cg(U.hostElement,"yt-navigate",{endpoint:H.onSuccessCommand,reload:!0});case 5:_.xD(J,0);break;case 2:f=_.eG(J);if(f instanceof GeolocationPositionError&&f.code===GeolocationPositionError.PERMISSION_DENIED)return H.onDeniedCommand&&
M.resolveCommand(H.onDeniedCommand),J.return();vj$(H,M,U);_.DO(J)}})};
vj$=function(H,U,A){H.onFailureCommand&&(U.resolveCommand(H.onFailureCommand),_.yr(A.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
I9f=function(H,U){var A=_.p(H,_.Uy2);if(A&&U){H=A.videoIds||[A.videoId];var M;U=(M=_.cg(U,"yt-lockup-requested",{videoIds:H}).detail)==null?void 0:M.returnValue;var W;A.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?W=U?U:H.map(function(w){return{videoId:w,navigationEndpoint:A.videoCommand}}):U&&(W=U);
W&&(M=W.map(function(w){var d=Object,O=d.assign;var f=w.navigationEndpoint;if(!_.p(f,_.kO)){var J=_.p(f,_.sH);if(J){if(delete J.index,delete J.playlistId,J=_.p(f==null?void 0:f.commandMetadata,_.Y2),J==null?0:J.url){var F=J.url;F=_.js(F,"list");F=_.js(F,"index");J.url=F}}else f=void 0}return O.call(d,{},w,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:f})}),ji7(M,A))}};
Qif=function(H){var U=_.SZ();if(H=_.p(H,_.AOg))H.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&U.clearQueue(),H.closeMiniplayer&&_.lx().resolve(_.ZB).close(!0)};
Hxh=function(H){VVh(_.SZ(),H)};
UPj=function(H){var U;(H=(U=_.p(H,_.VfH))==null?void 0:U.setVideoIds)&&H.forEach(function(A){_.Io2(_.SZ(),A)})};
Mdp=function(H){AI5(_.SZ(),H)};
Wch=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(H){return!1}};
KL=function(H,U,A){(_.S("desktop_keyboard_shortcut_usage_log")||A&&_.S("web_shorts_keyboard_shortcut_usage_log"))&&(U?fL.get(H):Jl.get(H))&&(H=U?wum.get(H):Xup.get(H))&&_.NY(_.XK(),H)};
bx5=function(H){return H.findIndex(function(U){return ixh.indexOf(U.tagName)>-1})>-1};
dPm=function(H,U){return H.findIndex(function(A){return A.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(U.keyCode):!1};
uYm=function(H,U){return _.Z(Oxy,{data:H,onYtNavigate:U})};
Zxp=function(H,U){return _.rH(H.entities,"pageHeaderEntity",U)};
JIy=function(H,U){return H.map(function(A){if(A.tabRenderer)return fB7(A.tabRenderer);if(A.expandableTabRenderer&&U){var M=A.expandableTabRenderer;return{customTabRenderable:function(){return U(M)}}}return{}})};
fB7=function(H){return{identifier:H.tabIdentifier,aTagConfig:_.dA({innertubeCommand:H.endpoint,forceNewState:!0}),title:H.title,selected:H.selected,disabled:H.unselectable,icon:H.icon}};
Fcy=function(H,U,A,M){if(H)return M=M||H.likeStatus,U?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:M==="LIKE",isDisabled:!H.likesAllowed,defaultIcon:{iconType:A},defaultText:M==="LIKE"?H.likeCountWithUnlikeText:H.likeCountText,toggledText:M==="LIKE"?H.likeCountText:H.likeCountWithLikeText,defaultNavigationEndpoint:Kch(H,"LIKE"),defaultServiceEndpoint:o45(H,"LIKE"),toggledServiceEndpoint:o45(H,"INDIFFERENT"),defaultTooltip:_.Sp(H.likeCountTooltipText),toggledTooltip:_.Sp(H.likeCountTooltipText),
targetId:H.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:M==="DISLIKE",isDisabled:!H.likesAllowed,defaultIcon:{iconType:A},defaultText:M==="DISLIKE"?H.dislikeCountWithUndislikeText:H.dislikeCountText,toggledText:M==="DISLIKE"?H.dislikeCountText:H.dislikeCountWithDislikeText,defaultNavigationEndpoint:Kch(H,"DISLIKE"),defaultServiceEndpoint:o45(H,"DISLIKE"),toggledServiceEndpoint:o45(H,"INDIFFERENT"),defaultTooltip:_.Sp(H.dislikeCountTooltipText),
toggledTooltip:_.Sp(H.dislikeCountTooltipText)}};
Kch=function(H,U){if(U==="LIKE")return H.likeCommand;if(U==="DISLIKE")return H.dislikeNavigationEndpoint};
o45=function(H,U){var A;return(A=H.serviceEndpoints)==null?void 0:A.find(function(M){var W;return((W=_.p(M,_.AA))==null?void 0:W.status)===U})};
P$Y=function(H,U,A,M){H=U-H;A=M-A;return Math.sqrt(H*H+A*A)};
sHh=function(H){var U=H>>8&255,A=H&255;return"#"+(H>>16&255).toString(16).padStart(2,"0")+U.toString(16).padStart(2,"0")+A.toString(16).padStart(2,"0")};
n48=function(H,U){H&&_.lx().resolve(_.YV).resolveCommand(H,{forceClickLogging:!0,form:{element:U}})};
Nj8=function(H){if(H.simpleText)return[{text:H.simpleText}];var U;return(U=H.runs)!=null?U:[]};
SP5=function(H){var U=H.startEndTimeTemplate,A=H.startTimeUtcMillis;H=H.endTimeUtcMillis;if(U&&A&&H)return _.Nh(Kb$(_.Sp(U),Number(A),Number(H)))};
pup=function(H,U){var A,M,W=H==null?void 0:(A=H.viewCount)==null?void 0:(M=A.videoViewCountRenderer)==null?void 0:M.shortViewCount;if(!U&&W)return W;var w,d;return H==null?void 0:(w=H.viewCount)==null?void 0:(d=w.videoViewCountRenderer)==null?void 0:d.viewCount};
Lc8=function(H,U){var A=H==null?void 0:H.relativeDateText;return!U&&A?[A,!0]:[H==null?void 0:H.dateText,!1]};
Ro5=function(H,U,A,M,W){M=M===void 0?"":M;W=W===void 0?!1:W;var w=pup(H,U),d=_.b(Lc8(H,U)),O=d.next().value;d=d.next().value;U=U?H==null?void 0:H.sponsorsOnlyFirstTimeLongText:H==null?void 0:H.sponsorsOnlyFirstTimeShortText;var f=[];A&&w&&f.push(w);!A&&d||!O||f.push(O);H=[W?H==null?void 0:H.subtitle:void 0].concat(_.vI(f),[U,H==null?void 0:H.stationName,H==null?void 0:H.rating,H?SP5(H):void 0,H==null?void 0:H.upNextProgramText,H==null?void 0:H.superTitleLink]).filter(function(J){return!!J});
A={runs:[]};for(W=0;W<H.length;W++)A.runs.push.apply(A.runs,_.vI(Nj8(H[W]))),W<H.length-1&&A.runs.push({text:" "+M+" "});return A};
E4y=function(H,U){var A=_.N3y(U,{},H,!0);return new Promise(function(M,W){A.listenOnce("n",function(){W(Error("fm`"+A.JSC$30516_getErrorDescription()))});
A.listenOnce("l",function(){var w=A.getResponseCode();if(w!==200)W(Error("gm`"+U+"`"+H.type+"`"+H.size+"`"+w));else try{M(JSON.parse(A.getResponseText()).encryptedBlobId)}catch(d){W(d)}});
A.run()})};
mPf=function(H){return H.substring(H.indexOf(":")+1,H.indexOf(";"))};
g4p=function(H){return new Promise(function(U,A){var M=new FileReader;M.onloadend=function(){try{var W=new Uint8Array(M.result);W.length<8&&A(void 0);var w=W.subarray(0,8);W="";for(var d=0;d<w.length;d++)W+=("0"+w[d].toString(16)).substr(-2);W.startsWith("ffd8ff")?U("image/jpeg"):W.startsWith("47494638")?U("image/gif"):W.startsWith("89504e470d0a1a0a")?U("image/png"):W.startsWith("424d")?U("image/bmp"):U(void 0)}catch(O){A(O)}};
M.onerror=A;M.readAsArrayBuffer(H)})};
aB5=function(H){return new Promise(function(U,A){var M=new Image;M.crossOrigin="anonymous";M.onload=function(){var W=document.createElement("canvas");W.width=M.naturalWidth;W.height=M.naturalHeight;var w=W.getContext("2d");if(!w)throw Error("hm");w.drawImage(M,0,0);w=mPf(H);W.toBlob(function(d){d?U(d):A()},w)};
M.src=H})};
zo7=function(H,U){var A;if(((A=_.p(H,_.kO))==null?void 0:A.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var M;_.cg((M=U.hostElement)!=null?M:U,"yt-shorts-reset");_.zFB(_.lx().resolve(_.k9),H).then(function(w){xPf(w,U,H)})}else{var W;
_.rs((W=U.hostElement)!=null?W:U,[H]).then(function(w){w&&xPf(w.data,U,H)})}};
xPf=function(H,U,A){if(H){var M=_.p(H.replacementEndpoint,_.kO);if(M){H.sequenceContinuation&&(M.sequenceParams=H.sequenceContinuation);var W;_.cg((W=U.hostElement)!=null?W:U,"yt-navigate",{endpoint:H.replacementEndpoint})}else if((H==null?void 0:H.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(H==null?0:H.watchStatus)&&_.p(H.watchStatus,_.$$K)){var w;_.cg((w=U.hostElement)!=null?w:U,"yt-navigate",{endpoint:A})}}};
C$$=function(H){var U=_.lx().resolve(_.bK),A=_.fl.currentPageTypeSelector(U.getState())||"";U=_.fl.currentPageSubTypeSelector(U.getState())||"";A=A==="ytd-browse"&&U==="home";return _.S("web_guide_entry_enable_cache_for_non_home_pages")?(H=(H==null?void 0:H.navigationEndpoint)&&_.lE(H.navigationEndpoint)==="home",{disableCache:A&&H}):{disableCache:A}};
yIh=function(H,U,A,M){if(H&&H.length){var W={};if(U){var w=void 0;A&&(w={commandContext:{onTap:{innertubeCommand:A||{}}}});W.header={panelHeaderViewModel:{title:_.Me(U),rendererContext:w}}}U=[];H=_.b(H);for(A=H.next();!A.done;A=H.next()){w=A.value;A=_.p(w,tdp);w=_.p(w,cIp);var d=void 0,O=void 0;if((d=w)==null?0:(O=d.expandableItems)==null?0:O.length)for(w=_.b(w.expandableItems),d=w.next();!d.done;d=w.next()){d=d.value.guideEntryRenderer;var f=O=void 0;if(((O=d)==null?void 0:(f=O.icon)==null?void 0:
f.iconType)==="VIEW_LIST_CAIRO"){A=d;break}}O=d=void 0;w=((d=A)==null?0:d.formattedTitle)?_.Me((O=A)==null?void 0:O.formattedTitle):void 0;d=void 0;O=(d=A)==null?void 0:d.isPrimary;if(A&&w&&!O){w={title:w};A.navigationEndpoint&&(w.rendererContext={commandContext:{onTap:{innertubeCommand:A.navigationEndpoint}}});d=[];f=O=void 0;if(((O=A)==null?0:(f=O.thumbnail)==null?0:f.thumbnails)&&A.thumbnail.thumbnails.length>0){O=_.b(A.thumbnail.thumbnails);for(f=O.next();!f.done;f=O.next())d.push({url:f.value.url});
w.leadingAccessory={avatarViewModel:{image:{sources:d},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(O=void 0,(O=A.icon)==null?0:O.iconType)d.push({clientResource:{imageName:A.icon.iconType||""}}),w.leadingImage={sources:d};O=d=void 0;((d=A)==null?0:(O=d.badges)==null?0:O.liveBroadcasting)?(w.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",w.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},w.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):
A.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?w.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":A.count&&(w.trailingLabel={content:A.count.toString()});U.push({listItemViewModel:w})}}U.length!==0?(W.content={listViewModel:{listItems:U}},M===0&&(W.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):W=void 0;if(W)return U=void 0,M===0&&(U={preventCloseWhileHovered:!0,hideDelayMs:3E3}),{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:W}},
contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:U}}}}};
Bj7=function(H,U,A,M){if(U!=null&&U.isPrimary){switch(M){case 1:if(U.serviceEndpoint)break;A=yIh(A,U.formattedTitle,U.navigationEndpoint,M);if(!A)break;U.serviceEndpoint=A;U.navigationEndpoint=void 0;break;case 0:!U.mouseEnterEndpoint&&(A=yIh(A,U.formattedTitle,void 0,M))&&(U.mouseEnterEndpoint=A,U.mouseLeaveEndpoint={hideSheetCommand:{}})}H.push({guideEntryRenderer:U})}};
rIk=function(H){if(!H)return!1;try{if(H.host&&H.host.tagName==="YT-FORMATTED-STRING"&&H.host.id==="contenteditable-textarea"||H.nodeType===Node.ELEMENT_NODE&&H.tagName==="YTD-COMMENT-INPUT")return!0}catch(U){return!1}return rIk(H.parentNode)};
o3=function(H){return H?H.tagName==="A"&&H.href&&H.classList.contains("yt-simple-endpoint"):!1};
eok=function(H){return H?H.tagName==="IMG"&&H.classList.contains("emoji"):!1};
DPk=function(H,U,A){if(!H)return null;var M=o3(H);if(M&&A)return U=H.pathname.substring(H.pathname.indexOf("/channel/")+9),document.createTextNode("@"+U);if(M&&!A)return document.createTextNode("");if(eok(H))return A=H.alt,H=H.dataset.emojiId,!H&&U&&(U=_.Cl(U,A))&&U.isCustomEmoji&&(H=U.emojiId),H?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+H+">"):document.createTextNode(A);M=H.cloneNode(!1);for(var W=0;W<H.childNodes.length;++W){var w=DPk(H.childNodes[W],U,A);w&&M.appendChild(w)}return M};
$Ph=function(H){return H?o3(H)?H:$Ph(H.lastChild):null};
lBh=function(H){return H?o3(H)?H:lBh(H.firstChild):null};
Go5=function(H){if(!H)return null;for(var U=H.previousSibling;U;)if(U.nodeType===Node.ELEMENT_NODE&&U.nodeName==="BR")U=U.previousSibling;else if(U.nodeType===Node.TEXT_NODE&&/\s+/.test(U.textContent))U=U.previousSibling;else break;(U=$Ph(U))?H=U:H=(H=H.parentNode)?$Ph(H.previousElementSibling):null;return H};
YP5=function(H){if(!H)return null;for(var U=H.nextSibling;U;)if(U.nodeType===Node.ELEMENT_NODE&&U.nodeName==="BR")U=U.nextSibling;else if(U.nodeType===Node.TEXT_NODE&&/\s+/.test(U.textContent))U=U.nextSibling;else break;return(U=lBh(U))?U:YP5(H.parentNode)};
qPX=function(H){var U=_.TS(),A=U.JSC$11653_getStartNode();if(!rIk(A.parentNode))return null;U=U.JSC$11653_getStartOffset();if(A.nodeType===Node.TEXT_NODE){var M=_.Kp(A,o3);if(M){if(H&&U===0||!H&&U===A.length)return M}else{if(H&&U===A.length)return!A||A.nodeName==="BR"||A.nextElementSibling&&_.cq(A.nextElementSibling,"display")==="block"?null:lBh(A.nextElementSibling);if(!H&&U===0)return A?$Ph(A.previousElementSibling):null}}if(A.nodeType===Node.ELEMENT_NODE)if(H){if(0<=U&&U<A.childNodes.length)return lBh(A.childNodes[U])}else if(0<
U&&U<=A.childNodes.length)return $Ph(A.childNodes[U-1]);return null};
hoy=function(H,U,A){if(!H)return null;if(H.nodeType===Node.TEXT_NODE)if(A){var M=Go5(H);if(M&&!/^\s+\S/.test(H.wholeText.substr(0,U)))return M}else if((M=YP5(H))&&!/\S\s+/.test(H.wholeText.substr(U,H.wholeText.length)))return M;return H.nodeType===Node.ELEMENT_NODE?A?Go5(H.childNodes[U]):YP5(H.childNodes[U]):hoy(H.parentNode,U,A)};
koh=function(H){if(H.hasChildNodes())switch(H.tagName){case "DIV":case "A":case "SPAN":var U="";for(H=H.firstChild;H;H=H.nextSibling)U+=koh(H);return U;default:return""}else switch(H.nodeType){case 3:return H.textContent;default:return""}};
v4m=function(H){switch(H){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"}};
TjY=function(H){return H.map(function(U){return{settingsRadioOptionRenderer:{title:_.xU(U.name),asideText:_.xU(U.approximateSize),id:v4m(U.format)}}})};
IBX=function(H){if(H&&H.length!==0)return H.filter(jHB()).map(function(U){return{settingsRadioOptionRenderer:{title:U.name,asideText:U.approximateSize,id:v4m(U.formatType)}}})};
QHh=function(H){if(H)return H.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
Vd8=function(H,U){H=new Set(H!=null?H:[]);if(H.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(H.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(H.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(H.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(H.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(U)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
HTj=function(H){var U=H.indexOf("(");return U!==-1?H.substring(U+1,H.length-1):H};
_.AgY=function(H,U,A,M,W){A||(A=Unh);var w;(w=_.p(A.commandMetadata,_.Y2))!=null&&w.url||(A=Error("mm`"+JSON.stringify(A)),_.sD(A),A=Unh);A=_.dG.unsafeClone(A);w=_.Ik(_.p(A.commandMetadata,_.Y2).url,"search_query",H);_.TZ(location.href,"sv")==="1"&&(_.p(A,_.YO).params="EgOAAgE%3D",w=_.Ik(w,"sv","1"));_.p(A,_.YO)&&(_.p(A,_.YO).query=H);w=w.replace(/%20/g,"+");_.p(A.commandMetadata,_.Y2).url=w;W=_.S("desktop_enable_entity_suggest")?{entityMid:W}:{};_.lx().resolve(_.YV).resolveCommand(A,{form:{tempData:Object.assign({},
{gs_l:U,oq:M!=null?M:H},W),isFromShorts:_.nl()==="shorts"}})};
MmY=function(H){switch(H){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
wnf=function(H,U,A,M,W,w){var d=_.dG.clone(W9j);d.locale=_.gD("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;d.report={description:W||"<empty>"};W=_.gD("SBOX_SETTINGS",{});U=U.join(",");var O=Date.now();H={choice_cc:M,choice_id_cc:A,choices_sc:U,gl:W.REQUEST_DOMAIN,hl:W.REQUEST_LANGUAGE,query:H,time:O};w&&(H.choice_additional_comment_cc=w);_.EnK(d,H)};
XnY=function(H){var U=new Map;U.set("authuser",_.gD("SESSION_INDEX","0"));return _.Rk(H,U)};
bT$=function(H){var U;return _.u(function(A){switch(A.nextAddress){case 1:if(!H||!iTm(H))return A.return(null);U=null;switch(_.gD("INNERTUBE_CLIENT_NAME")){case "WEB":return A.jumpTo(2);case "WEB_REMIX":U=H.getPlayer()}A.jumpTo(3);break;case 2:return A.yield(H.getPlayerPromise(),4);case 4:U=A.yieldResult;A.jumpTo(3);break;case 3:return A.return(U)}})};
iTm=function(H){return["ytd-player","ytmusic-player"].includes(String(H.tagName||"").toLowerCase())};
dn5=function(H){H=Math.round(H);return H%2?H-1:H};
OTy=function(H){H=Math.round(H);return H%2===0?H-1:H};
uVh=function(H){var U=["h","m","s"],A=_.$c(U);A.reverse();var M={};H=(H.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(d){var O=(d.match(/[hms]/)||[""])[0];return O?(M[O]=parseInt(d.match(/\d+/)[0],10),!1):!0});
for(H.reverse();H.length&&A.length;){var W=A.shift();W in M||(M[W]=parseInt(H.shift(),10))}if(H.length||M.s>59||M.m>59||M.h>9)return null;var w="";U.forEach(function(d){M[d]&&(w+=""+M[d]+d)});
return w||null};
ZT7=function(H){var U,A,M;if(H=(U=H.createPlaylistDialogFormSchema)==null?void 0:(A=U.fieldSchemas)==null?void 0:(M=A.title)==null?void 0:M.validationSchema)for(U=[H.syncStep,H.asyncStep].filter(function(W){return W!==void 0}),U=_.b(U),A=U.next();!A.done;A=U.next()){A=A.value.rules;
if(!A)break;A=_.b(A);for(A=A.next();!A.done;A=A.next())return _.p(A.value,VIp)}};
Jg$=function(H){var U,A,M;if(H=(U=H.createPlaylistDialogFormSchema)==null?void 0:(A=U.fieldSchemas)==null?void 0:(M=A.visibility)==null?void 0:M.validationSchema)for(U=[H.syncStep,H.asyncStep].filter(function(W){return W!==void 0}),U=_.b(U),A=U.next();!A.done;A=U.next()){A=A.value.rules;
if(!A)break;A=_.b(A);for(M=A.next();!M.done;M=A.next())if(M=_.p(M.value,fXf))return U=void 0,(U=M.translations)==null?void 0:U.visibilityNotValidErrorMessage}};
K9h=function(){var H,U;return(U=(H=_.lx().resolve(_.$V(_.qF)))==null?void 0:H())!=null?U:!1};
oFj=function(H){var U=21;if(!H)return U;U+=H.headerTitle?27:0;U+=H.headerTitle&&H.hasHeaderActionHeader?4:0;return U+=H.headerTitle&&H.headerSubtitle?16:0};
F97=function(H){var U=0;if(!H)return U;U+=H.hasFooterPrimaryButton||H.hasFooterSecondaryButton?48:0;U+=H.footerTrailingLabel||H.footerLeadingLabel?30:0;return U+=H.hasFooterPrimaryButton||H.hasFooterSecondaryButton||!H.footerTrailingLabel&&!H.footerLeadingLabel?0:12};
Poh=function(H){var U=new _.HK,A=H;return{subscribe:function(M){U.subscribe("changed",M)},
dispatch:function(M,W){var w=A;if(M==="Touch Start")A=Object.assign({},w,{isAnimating:!1,initialY:W.event.touches[0].clientY});else if(M==="Touch Move"){M=W.contentScrollable?-1*(w.initialY-24):0;var d,O=(d=W.headerDivHeight)!=null?d:oFj(W.header),f;d=(f=W.footerDivHeight)!=null?f:F97(W.footer);f=Math.min(W.fullContentWrapperHeight,W.heightMap[W.contentWrapperId]+O-d);A=Object.assign({},w,{currentY:Math.max(M,W.event.touches[0].clientY-w.initialY),maxHeightForContentWrapper:Math.min(f,Math.max(0,
(w.isFullScreen?f:W.contentWrapperHeight)-w.currentY))})}else A=M==="Snap To Full Screen"?Object.assign({},w,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:W.maxHeight}):M==="Snap To Neutral Position"?Object.assign({},w,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:W.maxHeight}):M==="Close Sheet"?Object.assign({},w,{isAnimating:!0,currentY:W.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:W.maxHeight}):w;U.publish("changed",A)}}};
sTy=function(){_.lx().resolve(_.Wi).closeSheet()};
nF5=function(H){var U,A,M,W,w,d,O,f,J,F,P;return{headerTitle:(U=H.headerTitle)==null?void 0:U.call(H),headerSubtitle:(A=H.headerSubtitle)==null?void 0:A.call(H),headerActionHeader:H.headerActionHeader,footerPrimaryButton:H.footerPrimaryButton,footerSecondaryButton:H.footerSecondaryButton,footerButtonType:(M=H.footerButtonType)==null?void 0:M.call(H),footerLeadingLabel:(W=H.footerLeadingLabel)==null?void 0:W.call(H),footerTrailingLabel:(w=H.footerTrailingLabel)==null?void 0:w.call(H),shouldShowIcons:(d=
H.shouldShowIcons)==null?void 0:d.call(H),skipContentClick:(O=H.skipContentClick)==null?void 0:O.call(H),additionalClassName:(f=H.additionalClassName)==null?void 0:f.call(H),onClosedCallback:H.onClosedCallback,focusOnClose:(J=H.focusOnClose)==null?void 0:J.call(H),isDisabled:(F=H.isDisabled)==null?void 0:F.call(H),disabledCommand:(P=H.disabledCommand)==null?void 0:P.call(H),headerFn:H.headerFn,contentFn:H.contentFn,footerFn:H.footerFn,hasHeaderFn:H.hasHeaderFn(),hasContentFn:H.hasContentFn(),hasFooterFn:H.hasFooterFn(),
hasFooterPrimaryButton:H.hasFooterPrimaryButton(),hasFooterSecondaryButton:H.hasFooterSecondaryButton(),hasHeaderActionHeader:H.hasHeaderActionHeader()}};
N4h=function(H){switch(H){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""}};
Sh7=function(H){switch(H){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""}};
pnm=function(H){switch(H){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""}};
L9m=function(H,U,A){U.forEach(function(M){_.Yg(_.lx().resolve(_.U8),M)});
_.yr(H,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",A])};
gFk=function(H,U,A,M){var W=_.p(A,_.s7).commandLifeCycleConfig;W&&W.onStartCommand&&_.eb(H,[W.onStartCommand],U);_.JN(U);var w=_.ZW.instance;w&&_.fy(w,A)?_.Js(w,A,M).then(function(d){if(!d||(d==null?0:d.error))return d=_.p(A,_.s7).serializedTransactionFlowLoggingParams,_.KY(U),_.H$(new Fe("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",d));_.KY(U);return{data:d}}).then(function(d){_.KY(U);
RPB(d.data);var O=d.data.command;O&&_.eb(H,[O],U);O=EFy(A,d.data);if(!O){var f=d.data;d=!1;if(f&&f.command&&_.p(f.command,_.$2)){var J;f=((J=_.p(f.command,_.$2))==null?void 0:J.commands)||[];for(J=0;J<f.length;J++)if(_.p(f[J],_.Je3)){d=!0;break}}d||_.Hb('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!O&&W&&W.onSuccessCommand?_.eb(H,[W.onSuccessCommand],U):O&&W&&W.onFailureCommand&&_.eb(H,[W.onFailureCommand],U)},function(){_.KY(U);
W&&W.onFailureCommand&&_.eb(H,[W.onFailureCommand],U);mnh(A)}):_.sD(Error("ym"),"ERROR")};
aXY=function(H,U,A){var M=[U];A&&M.push(A);return _.rs(H,M).then(function(W){var w=_.p(U,_.s7).serializedTransactionFlowLoggingParams,d=W.data,O=EFy(U,d);O?W=_.H$(new Fe(O,w)):RPB(d);return W},function(){var W=_.p(U,_.s7).serializedTransactionFlowLoggingParams;
mnh(U);return _.H$(new Fe("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",W))})};
EFy=function(H,U){H=_.p(H,_.s7).serializedTransactionFlowLoggingParams;var A=null;switch(U.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":A="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":A="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":A="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}A?_.Sk(A,H):$Z5(H);return A};
mnh=function(H){_.Sk("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.p(H,_.s7).serializedTransactionFlowLoggingParams)};
RPB=function(H){if(H.trackingParams){var U=_.XK(),A=_.ws();U&&A&&_.ou(U,A,_.IS(H.trackingParams))}};
xnp=function(H,U,A){var M=_.ZW.instance,W=_.D0K(_.gD("YPC_MB_URL")),w=(new _.roK).init(),d=_.ec0(),O=_.p(A,_.Onk).languageCode;O===void 0?_.sD(Error("Mi"),"ERROR"):_.iR([w,W]).then(function(){var f={ctk:_.mu.payments.business.integration.ClientTokenFactory.createClientToken(O,d)};M&&_.fy(M,A)?_.Js(M,A,f).then(function(J){return{data:J}}).then(function(J){_.cg(U,"yt-service-request-completed",J);
J.code!=="ERROR"&&(J=J.data.command)&&_.eb(H,[J],U)}):_.sD(Error("ym"),"ERROR")})};
tm5=function(H,U,A,M){var W=_.ZW.instance;W&&_.fy(W,A)?_.Js(W,A,M).then(function(w){return{data:w}}).then(function(w){zP7(H,U,A,w)},function(){CoB(A)}):(W=_.lx().resolve(_.$V(_.jp)))&&W.requestDataForServiceEndpoint(A,M).then(function(w){zP7(H,U,A,w)},function(){CoB(A)})};
zP7=function(H,U,A,M){_.cg(U,"yt-service-request-completed",M);if(M.code&&M.code=="ERROR")CoB(A);else{(M=M.data.commands)&&_.eb(H,M,U);var W;(H=(W=_.p(A,_.Phh))==null?void 0:W.serializedYpcPauseFlowLoggingParams)&&H&&wC("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",H)}};
CoB=function(H){var U;(H=(U=_.p(H,_.Phh))==null?void 0:U.serializedYpcPauseFlowLoggingParams)&&H&&wC("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",H,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
B47=function(H,U,A){var M=_.ZW.instance;M&&_.fy(M,A)?_.Js(M,A).then(function(W){return{data:W}}).then(function(W){cgh(H,U,A,W)},function(){yg$(A)}):(M=_.lx().resolve(_.$V(_.jp)))&&M.requestDataForServiceEndpoint(A).then(function(W){cgh(H,U,A,W)},function(){yg$(A)})};
cgh=function(H,U,A,M){_.cg(U,"yt-service-request-completed",M);M.code&&M.code=="ERROR"?yg$(A):((M=M.data.commands)&&_.eb(H,M,U),(H=_.p(A,_.sjw).serializedYpcResumeFlowLoggingParams)&&H&&wC("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",H))};
yg$=function(H){(H=_.p(H,_.sjw).serializedYpcResumeFlowLoggingParams)&&H&&wC("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",H,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
rg7=function(H){H=H===void 0?{}:H;_.lx().resolve(_.bU7).showFeedbackDialog(H.customProductData,H.feedbackContent,H.onFeedbackSubmitted,H.bucket)};
ePX=function(H){H=H===void 0?{}:H;_.lx().resolve(_.bU7).showHelpDialog(H.helpContext,H.articleId,H.productData)};
Dn5=function(){ePX()};
$ny=function(){rg7()};
GbB=function(H,U,A){var M,W,w,d,O,f,J;return _.u(function(F){switch(F.nextAddress){case 1:M=_.p(H,lXh);if((W=M)==null?0:W.productId){f={productId:M.productId,bucket:M.bucket,enableAnonymousFeedback:(O=M.enableAnonymousFeedback)!=null?O:!0,allowNonLoggedInFeedback:!0};J={feedbackChoice:A.feedbackChoice};if(!_.S("web_collect_offline_state")){F.jumpTo(8);break}_.zj(F,9);return F.yield(cwj(J),11)}d={bucket:(w=M)==null?void 0:w.bucket};if(!_.S("web_collect_offline_state")){F.jumpTo(4);break}d.customProductData=
{};_.zj(F,5);return F.yield(cwj(d.customProductData),7);case 7:_.xD(F,4);break;case 5:_.eG(F);case 4:rg7(d);F.jumpTo(0);break;case 11:_.xD(F,8);break;case 9:_.eG(F);case 8:_.La7(J),_.p7c("GFEEDBACK",J),M.productId==="5295751"&&(J.client_attestation=Number(_.gD("CATSTAT",0))),M.productId==="5295751"&&(J.client_time=Date.now()/1E3/3600),M.productId==="5295751"&&(J.original_playback_id=_.bPw||""),_.EnK(f,J),_.DO(F)}})};
YhX=function(H){if(H=_.p(H,_.aKN)){var U={bucket:H.bucketIdentifier};H.additionalDatas&&(U.customProductData={},H.additionalDatas.forEach(function(A){if(A=A.userFeedbackEndpointProductSpecificValueData)U.customProductData[A.key]=A.value}));
rg7(U)}};
qh5=function(H){var U=_.a1.getInstance();var A=_.hP("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var M=_.hP("DELETE",void 0,"Delete"),W=_.hP("CANCEL",void 0,"Cancel");A=HKB(A,void 0,M,W,{signal:"DELETE_ALL_DOWNLOADS"});_.dg(U,[{openPopupAction:A}],H)};
kb8=function(){return _.u(function(H){return H.nextAddress==1?H.yield(_.lx().resolve(_.PD),2):H.yield(hPp(),0)})};
vF5=function(H){var U,A;return _.u(function(M){return M.nextAddress==1?(A=(U=_.p(H,_.ED))==null?void 0:U.targetId)?M.yield(_.lx().resolve(_.PD),3):M.jumpTo(0):M.yield(_.lx().resolve(_.FJ).deleteVideo(A),0)})};
jT5=function(H){var U,A;return _.u(function(M){return M.nextAddress==1?(A=(U=_.p(H,_.ED))==null?void 0:U.targetId)?M.yield(_.lx().resolve(_.PD),3):M.jumpTo(0):M.yield(T4f(_.lx().resolve(_.FJ),A),0)})};
QTh=function(H){var U,A;return _.u(function(M){return(A=(U=_.p(H,_.ED))==null?void 0:U.targetId)?M.yield(IXk(A),0):M.jumpTo(0)})};
Ht7=function(){_.S("kevlar_woffle_refresh_dl_load_killswitch")||Vm8()};
AJB=function(){_.S("kevlar_woffle")&&_.Fp.instance&&Ub5()};
W3j=function(H){var U;if((U=_.p(H,_.eI))==null||!U.videoId)return!1;M$j(_.lx().resolve(_.FJ),_.p(H,_.eI),H.clickTrackingParams);return!0};
XQm=function(H){var U;if((U=_.p(H,_.DW))==null||!U.playlistId)return!1;wQh(_.lx().resolve(_.FJ),_.p(H,_.DW),H.clickTrackingParams);return!0};
bt5=function(H){var U=_.p(H,_.UMz);(U==null?void 0:U.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(U==null?void 0:U.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||itm(_.lx().resolve(_.FJ),_.p(H,_.UMz))};
OtX=function(H){H=_.p(H,_.a1w);var U;(H==null?0:(U=H.actions)==null?0:U.length)&&db5(H)};
fnp=function(H){var U,A;return _.u(function(M){U=_.p(H,uw5);return(A=U)!=null&&A.localWatchHistoryCommandType?M.yield(Ztj(U),0):M.return()})};
K37=function(){return _.u(function(H){return H.yield(JJk(),0)})};
ohy=function(H){setTimeout(function(){requestAnimationFrame(H)},80)};
F3y=function(H){return Object.entries(H).map(function(U){return U.join(":")}).join(";")};
sxh=function(H){var U,A,M;_.u(function(W){if(W.nextAddress==1)return W.yield(Pdj(),2);U=W.yieldResult;A=_.$$.instance;switch(U){case "granted":M=H.getLocationCommand;break;case "denied":M=H.openDeniedDialogAction;break;case "prompt":M=H.openCollectionDialogAction;break;default:M=H.openCollectionDialogAction}M&&A.resolveCommand(M);_.DO(W)})};
Pdj=function(){var H,U;return _.u(function(A){if(A.nextAddress==1)return H="prompt",navigator.permissions?A.yield(navigator.permissions.query({name:"geolocation"}),3):A.jumpTo(2);A.nextAddress!=2&&(U=A.yieldResult,H=U.state);return A.return(H)})};
Npp=function(){_.u(function(H){return H.yield(_.nh7(),0)})};
SR8=function(){var H,U,A;return _.u(function(M){if(M.nextAddress==1)return H=_.lx().resolve(_.IE),H?M.yield(_.Js(H,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Na(Error("Bm")),M.return(void 0));if(U=M.yieldResult){if(U.errorMetadata)return _.Na(Error("Cm`"+U.errorMetadata.status+"`"+U.error)),M.return(void 0);A=U.datasyncIds;_.NN$=A.length;return M.return(A)}_.Na(Error("Dm"));return M.return(void 0)})};
pQp=function(){SR8().then(function(H){H&&(Cu$(H),kR5(H),b1y(H),BHh(H))})};
L3m=function(H){_.Fl.addLowPriorityJob(function(){var U,A,M,W,w;return _.u(function(d){switch(d.nextAddress){case 1:if(_.S("ytidb_clear_optimizations_killswitch")){d.jumpTo(2);break}U=_.XU("clear");if(U.startsWith("V")&&U.endsWith("||")){var O=[U];Cu$(O);kR5(O);b1y(O);BHh(O);return d.return()}A=dZk();M=rwY();return d.yield(v2Y(),3);case 3:return W=d.yieldResult,d.yield(tX7(),4);case 4:if(w=d.yieldResult,!(A||M||W||w))return d.return();case 2:H.isNetworkAvailable()?pQp():H.listenOnce("publicytnetworkstatus-online",
pQp),_.DO(d)}})})};
Pz=function(H){H={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.Nh(H)}}}};_.$$.instance&&_.$$.instance.resolveCommand(H)};
R0X=function(H){if(H){var U=_.k$();_.DJ(U,3854,void 0,{layer:0,parentLayer:4});switch(H){case 1:var A=238708;break;case 2:A=238715;break;case 3:A=238710;break;case 6:A=238709}A&&(H=_.hy(U,{veType:A}))&&_.GJ(U,H)}};
Eh5=function(H){if(H){var U=_.k$();_.DJ(U,3854,void 0,{layer:0,parentLayer:4});switch(H){case 1:var A=238714;break;case 2:A=238711;break;case 8:A=238709;break;case 7:A=238713;break;case 3:case 4:case 5:A=238712}A&&(H=_.hy(U,{veType:A}))&&_.GJ(U,H)}};
mb5=function(H){switch(H.latencyType){case 0:_.ia("consent_primitive_flow");_.ba("cpit",H.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.ba("cpist",H.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.ba("cprtif",H.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.ba("cprtli",H.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.ba("cprt",H.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.ba("cpdt",H.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.ba("cpjct",H.timestampEpochMillis,"consent_primitive_flow")}};
Dbp=function(H,U){var A,M,W,w,d,O,f,J,F,P,n,N,L,m,z,c,C,v,Y,D;return _.u(function(h){switch(h.nextAddress){case 1:_.zj(h,2);(M=(A=_.p(H,ghj))==null?void 0:A.serializedConsentRequest)||(M=(W=_.p(H,anX))==null?void 0:W.serializedConsentRequest);M&&(w=xbp(_.Q0(M)));if(w===void 0)return h.return();d=z0X(w);d.latencyCallback=mb5;U&&Cdp(d,function(){U.then(function(T){T.pauseVideo();(new t$y).increment()})});
return((O=_.p(H,ghj))==null?void 0:O.consentAction)==="CONSENT_ACTION_PREWARM"||((f=_.p(H,anX))==null?void 0:f.consentAction)==="CONSENT_ACTION_PREWARM"?h.yield(cJj(d),5):h.yield(yJ5(d),6);case 6:J=h.yieldResult;F=_.To(J,sL);if(F===1){if(((P=_.io(J,Bp8,1,sL))==null?void 0:_.Wn(P,1))===1||((n=_.io(J,Bp8,1,sL))==null?void 0:_.Wn(n,1))===2||((N=_.io(J,Bp8,1,sL))==null?void 0:_.Wn(N,1))===3)_.p(H,anX)?Pz(_.hP("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Pz(_.hP("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));R0X((L=_.io(J,Bp8,1,sL))==null?void 0:_.Wn(L,1),_.c8(J,rJy,3,_.y9()))}else F===2?(((m=e0Y(J))==null?void 0:_.Wn(m,1))===5?_.p(H,anX)?Pz(_.hP("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Pz(_.hP("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((z=e0Y(J))==null?void 0:_.Wn(z,1))===1||((c=e0Y(J))==null?void 0:_.Wn(c,1))===4?
Pz(_.hP("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((C=e0Y(J))==null?void 0:_.Wn(C,1))===7&&((v=w)==null?void 0:(Y=_.qK(v,nL,4))==null?void 0:_.Wn(Y,4))!==1&&Pz(_.hP("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),Eh5((D=e0Y(J))==null?void 0:_.Wn(D,1))):Pz(_.hP("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));h.jumpTo(5);break;case 5:_.xD(h,0);break;case 2:_.eG(h),Pz(_.hP("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.DO(h)}})};
ln8=function(){if(!$bj.has("Worker")){$bj.set("Worker",!0);var H={api:"BROWSER_API_WEB_WORKER"};H.available="Worker"in window?!0:!1;_.Fx("apiTest",H)}};
Gef=function(H){return typeof H==="undefined"?"-1":String(Math.ceil(H/1048576))};
kem=function(H,U){YR$(new qRh(_.p(U,h0j).addToken,_.p(U,h0j).commonToken)).then(function(){_.cg(H,"yt-invoke-instrument-manager-action-completed")},function(A){_.cg(H,"yt-invoke-instrument-manager-action-error",A)})};
Nc=function(){return _.gD("HTML_DIR")==="rtl"};
vhy=function(){var H,U;return(U=(H=window).matchMedia)==null?void 0:U.call(H,"(prefers-reduced-motion: reduce)").matches};
Tpy=function(H){var U=_.lx().resolve(_.$V(_.Vc));if(U&&U.isAnyTransitionEnabled){var A={};U.viewTransitionCoordinator.registerElement(H,(A.slide="miniplayer-page-transition",A["lockup-to-watch"]="miniplayer-page-transition",A["learning-journey"]="miniplayer-page-transition",A))}};
jx5=function(H,U,A){return{horizontalAlignment:H.x+A.width/2<U.width/2?"west":"east",verticalAlignment:H.y+A.height/2<U.height/2?"north":"south"}};
Qx5=function(H,U,A,M,W){W=W===void 0?new _.E6(0,0):W;H=InY(H,U,A,M,!1);return new _.E6(H.x+W.x,H.y+W.y)};
InY=function(H,U,A,M,W){W=(W===void 0?0:W)?400:0;return new _.E6(H==="west"?16+(Nc()?W:0):A.width-M.width-16-(Nc()?0:W),U==="north"?16:A.height-M.height-16)};
V$p=function(H,U){var A=0;H&&(A+=76);U&&(A+=285);return A};
HRh=function(H){return _.fT(H)};
U1X=function(H){var U=1;H=H.split(":");for(var A=[];U>0&&H.length;)A.push(H.shift()),U--;H.length&&A.push(H.join(":"));return A};
Anp=function(H){var U=new _.vQ;return _.bo(U,11,H)};
Mtk=function(H){var U={};H=H.getAllResponseHeaders().split("\r\n");for(var A=0;A<H.length;A++)if(!_.b7(H[A])){var M=U1X(H[A]),W=M[0];M=M[1];if(typeof M==="string"){M=M.trim();var w=U[W]||[];U[W]=w;w.push(M)}}return _.dG.map(U,function(d){return d.join(", ")})};
ju5=function(H,U){return H.JSC$10099_xhr_?H.JSC$10099_xhr_.getResponseHeader(U):null};
WRm=function(H,U){if(H.isDisposed())throw Error("Fa");H.s5.yB("n");var A=_.KR(H.s5,function(){return H.g7f([U.f2,U.pv2,U.fj4,U.moy])},"n");
H.s5.v52(A.length);H.s5.jo();return A};
wS7=function(H,U,A){Array.isArray(A)||(A=[String(A)]);_.H5n(H.JSC$10335_queryData_,U,A);return H};
XSh=function(H){var U=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.lR(H);H.keyMap_.forEach(function(A,M){_.y0(U,M)||this.remove(M)},H)};
Ub5=function(){var H=_.Fp.instance;_.u(function(U){return H.deferredInstallPrompt?U.yield(H.deferredInstallPrompt.prompt(),0):U.jumpTo(0)})};
iRj=function(H,U,A){if(_.l7(H))_.yW(H,U,A);else for(H=_.M92(H);;){var M=H.next();if(M.done)break;U.call(A,M.value,void 0,H)}};
bR$=function(H,U){var A=[];iRj(U,function(M){try{var W=_.Mj.prototype.getWrapper.call(this,M,!0)}catch(w){if(w=="Storage: Invalid value was encountered")return;throw w;}W===void 0?A.push(M):_.Aww(W)&&A.push(M)},H);
return A};
v8j=function(H,U){bR$(H,U).forEach(function(A){_.Mj.prototype.remove.call(this,A)},H)};
d1f=function(H){var U=_.Zl;U._minimumZ=Math.max(U._minimumZ,H)};
OR7=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];uf5=function(H,U){_.zg(H.vm);H.vm=U};
ZRm=function(H,U,A,M){H.setState(5);var W=!!H.lB7&&OR7.includes(_.es(H.lB7)||"");try{var w=new _.ow({program:U,globalName:A,fkX:{disable:!_.S("att_web_record_metrics")||!_.S("att_skip_metrics_for_cookieless_domains_ks")&&W,am:"aGIf"}});w.nCX.then(function(){H.setState(6);M&&M(U)});
uf5(H,w)}catch(d){H.setState(7),d instanceof Error&&_.Na(d)}};
fmm=function(H,U,A,M,W,w){var d=d===void 0?"trayride":d;A?(H.setState(2),_.f1(_.KW(A),function(){if(window[d])ZRm(H,M,d,W);else{H.setState(3);var O=_.S70(A),f=document.getElementById(O);f&&(_.YBr(O),f.parentNode.removeChild(f));_.Na(new _.bD("BL:ULB",A))}},w)):U?(w=_.Q9("SCRIPT"),U instanceof _.dY?_.fU(w,U):w.textContent=U,w.nonce=_.bL(document),document.head.appendChild(w),document.head.removeChild(w),window[d]?ZRm(H,M,d,W):(H.setState(4),_.Na(new _.bD("BL:ULBJ")))):_.Na(new _.bD("BL:ULV"))};
Jn5=function(){this.state=1;this.vm=null;this.lB7=void 0};
_.X=Jn5.prototype;_.X.initialize=function(H,U,A,M){this.lB7=M;if(H.program){var W;M=(W=H.interpreterUrl)!=null?W:null;if(H.interpreterSafeScript)W=_.ZeM(H.interpreterSafeScript);else{var w;W=(w=H.interpreterScript)!=null?w:null}H.interpreterSafeUrl&&(M=_.PW(H.interpreterSafeUrl).toString());fmm(this,W,M,H.program,U,A)}else _.Na(Error("uf"))};
_.X.isInitialized=function(){return!!this.vm};
_.X.getState=function(){return this.state};
_.X.isLoading=function(){return this.state===2};
_.X.invoke=function(H){H=H===void 0?{}:H;var U;this.vm?U=WRm(this.vm,{f2:H}):U=null;return U};
_.X.dispose=function(){uf5(this,null);this.setState(8)};
_.X.setState=function(H){this.state=H};
var KRY=function(H,U){return H.vm.snapshot(U)},ot8=function(H,U){var A=_.hr("botguard_async_snapshot_timeout_ms",3E3);
U=U===void 0?{}:U;A=A===void 0?3E3:A;return H.vm?new Promise(function(M,W){var w=!1,d=_.Fl.addJob(function(){w=!0;W(Error("vf"))},1,A);
H.vm?KRY(H,{f2:U}).then(function(O){_.Fl.cancelJob(d);w||M(O)}).catch(function(O){_.Fl.cancelJob(d);
w||W(O)}):(_.Fl.cancelJob(d),M(null))}):Promise.resolve(null)},FRX=["att/log"],Unh;
Unh={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var PRy={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},swX=function(H,U){return _.hw(H,{mode:"readwrite",enableRetries:!0},function(A){return _.UIF(A,U,"settingEntity")})},ntf=function(H,U,A){return _.hw(H,{mode:"readonly",
enableRetries:!0},function(M){return _.GMk(M,U,A)})},Nay=function(H){if(!H.storage)return!1;
a:{if(H.storage){try{var U=H.storage.get("TLPQtimestamp")}catch(A){}H=Number(U);if(!isNaN(H))break a}H=void 0}return H?Date.now()-H<864E5:!1},S0$=function(H){if(H.storage){try{var U=H.storage.get("TLPQindex")}catch(A){}H=Number(U);
if(!isNaN(H))return H}},SK=function(H){var U=_.sC();
return _.G6K(U,H,1)},pS5=function(H,U){H.queueProxy&&U.forEach(function(A){if(A.videoId&&A.trackingParams&&H.queueProxy instanceof _.Jq){var M=_.XK();
H.queueProxy.attributionData.set(A.videoId,{enqueueingVe:_.IS(A.trackingParams).getAsJson(),enqueueingCsn:M?M:void 0,clientEnqueueingTimeMs:Math.floor((0,_.lD)()).toString()})}})},LRf=function(H){var U=_.EJg(H);
U!=H.currentSnapState_&&(H.currentSnapState_=U,H.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},pL=function(H){this.JSC$13531_networkManager_=H;
this.partCallbacks_=[]};
pL.prototype.getCacheKeyForEndpoint=function(H){return _.lCN(H,!1)};
pL.prototype.onPartsCallback_=function(H){this.partCallbacks_.forEach(function(U){H&&U(H)})};
var LL=function(H,U,A){pL.call(this,H);this.player_=U;this.autoplayData_=A};
_.R(LL,pL);LL.prototype.getCacheKeyForEndpoint=function(H){return _.lCN(H,!!this.autoplayData_)};
LL.prototype.getTempData=function(H,U){U=U.timeBeforeNextVideo;H={itct:H.clickTrackingParams,lact:_.$B(),pbis:U,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(H.autonav=1);return H};
LL.prototype.getXhrParams=function(H){return Object.assign({pbj:"prefetch"},H)};
LL.prototype.getParams=function(H){H={frags:H.fragmentsRequested.join(",")};_.S("kevlar_droppable_prefetchable_requests")&&(H.prefetch=1);return H};
var RXh=function(H){H.playerEvents_.forEach(function(U){H.player.removeEventListener(U.eventName,U.callback)});
H.playerEvents_.length=0},Etp=function(H,U,A){this.player=H;
this.JSC$13541_taskManager=U;this.prefetchDelay=A;this.completionResolver_=null;this.playerEvents_=[]};
Etp.prototype.start=function(){var H=this;this.completionResolver_=_.oL();_.bR(this.completionResolver_.promise,function(){RXh(H);H.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var m17=function(H,U,A){H.player.addEventListener(U,A);H.playerEvents_.push({eventName:U,callback:A})},gtp={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},amh={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},x17=function(H,U,A){Etp.call(this,H,U,A);this.cueId_="playbackTrigger-"+Math.random()};
_.R(x17,Etp);
x17.prototype.prepareTrigger=function(H){var U=this,A=this.player.getDuration(),M=this.player.getVideoData(),W=M.isLive&&M.hasProgressBarBoundaries;if(W&&M.progressBarEndPositionUtcTimeMillis){var w=M.progressBarEndPositionUtcTimeMillis/1E3;isNaN(w)||(A=w)}var d=0;this.prefetchDelay>=0?W?M.progressBarStartPositionUtcTimeMillis&&(M=M.progressBarStartPositionUtcTimeMillis/1E3,isNaN(M)||(d=M+this.prefetchDelay)):d=this.prefetchDelay:d=A+this.prefetchDelay;W?this.player.addUtcCueRange(this.cueId_,d,A):
this.player.addCueRange(this.cueId_,d,A);_.bR(H.promise,function(){U.player.removeCueRange(U.cueId_)});
m17(this,"onCueRangeEnter",function(O){O==U.cueId_&&H.resolve(A-d)})};
var zXh=function(H,U){H.fragmentConfiguration_[U].requiredKeys.every(function(A){return!!H.prefetchedData_[A]})&&(H.validatedFragments_.push(U),U=H.missingFragments_.indexOf(U),U!==-1&&H.missingFragments_.splice(U,1))},CRB=function(H){H.prefetchedFragments_.forEach(function(U){zXh(H,U)})},tt$=function(H,U,A){this.pageFragments_=H;
this.prefetchedFragments_=U;this.fragmentConfiguration_=amh;this.prefetchedData_=A;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;CRB(this)},cnf=function(){},ynh=function(H){this.JSC$13555_playlistManager_=H};
_.R(ynh,cnf);ynh.prototype.getPrefetchEndpoint=function(){return this.JSC$13555_playlistManager_.getAutoplayEndpoint()};
var BaX=function(H){this.autonavEndpoints_=H};
_.R(BaX,cnf);BaX.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var rn$=function(H,U,A,M,W){this.autonavEndpoints=H;this.foregroundTrigger=U;this.backgroundTrigger=A;this.pageType=M;this.isInPlaylist=W},eXj=function(H,U){if(H.webPrefetchData&&H.webPrefetchData.navigationEndpoints&&H.webPrefetchData.navigationEndpoints.length){H=H.webPrefetchData.navigationEndpoints;
var A=_.p(H[0],_.sH);if(A.watchEndpointSupportedPrefetchConfig&&A.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var M=A.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;A=M.playbackRelativeSecondsPrefetchCondition;A=typeof A==="number"&&Math.abs(A)<U.videoDuration?A:void 0;M=M.countdownUiRelativeSecondsPrefetchCondition;M=typeof M!=="number"||_.S("prefetch_job_config_cleanup_ks")&&U.inPlaylist?void 0:M;if(typeof M==="number")return new rn$(H,U.makeUpNextTrigger(M),U.makePlaybackTrigger(M),
"watch",U.inPlaylist);if(typeof A==="number")return new rn$(H,U.makePlaybackTrigger(A),null,"watch",U.inPlaylist)}}},D18=function(H){return H.prefetchJobConfig_.backgroundTrigger?_.CA(hT5)()==0?H.prefetchJobConfig_.backgroundTrigger:H.prefetchJobConfig_.foregroundTrigger:H.prefetchJobConfig_.foregroundTrigger},$1Y=function(H){_.WS(document,"visibilitychange",H.onVisibilityChange_,!1,H)},R3=function(H){pL.call(this,H)};
_.R(R3,pL);R3.prototype.getCacheKeyForEndpoint=function(H){return pL.prototype.getCacheKeyForEndpoint.call(this,H)};
R3.prototype.getTempData=function(){return{}};
R3.prototype.getXhrParams=function(H){return H};
R3.prototype.getParams=function(){return{}};
var lm7=function(H,U,A){var M=H.prefetchDelay*1E3;if(Math.abs(M)>U)A.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var W=M,w=U-M;M<0&&(W=U+M,w=Math.abs(M));var d=H.JSC$13541_taskManager.addJob(function(){A.resolve(w/1E3)},10,W);
A.promise.thenCatch(function(){H.JSC$13541_taskManager.cancelJob(d)})}},Gzh=function(H,U,A){Etp.call(this,H,U,A)};
_.R(Gzh,Etp);Gzh.prototype.prepareTrigger=function(H){var U=this;m17(this,"onAutonavCoundownStarted",function(A){lm7(U,A,H)})};
var Y07=function(H){H.pendingPrefetchJob_&&(H.pendingPrefetchJob_.cancel(),H.pendingPrefetchJob_=null)},q0y=function(H,U,A){if(!H.triggeredTargets.has(U)){var M=_.qEn(H,U);
M.action=A;_.YEh(H,U,M)}},hX$=function(H){_.BE2();
_.eft("cpt")&&_.Na(Error("nh"));_.Mr.requestAnimationFrame(function(){_.Mr.setTimeout(function(){_.ba("cpt");var U=_.ua("vpl"),A=_.ua("cpt");U&&A&&_.ba("ol",Math.max(U,A))})});
try{_.ba("fr_s"),H()}catch(U){_.sD(U)}_.Mr.requestAnimationFrame(function(){_.ba("bcp")})},kzB={FILLED:"youtube_fill",
OUTLINE:"youtube_outline"},vtY=function(H,U){H.serviceEndpointHandlers.push(U)},Tam=function(H,U){U=H.pendingPages_.indexOf(U);
U>-1&&H.pendingPages_.splice(U,1)},jwp=function(H,U){var A=_.uey.indexOf(U);
A>-1&&_.uey.splice(A,1);H.targetPage_==U?(H.abort(),_.fQB(H)):Tam(H,U)},ImX=function(H,U){H.reloadContinuationItemsCommandMatcher=U},QwX=function(H,U,A){U&&A&&(H.videos.forEach(function(M){M.videoId===U&&(M.itemId=A)}),H.recommendedVideos.forEach(function(M){M.videoId===U&&(M.itemId=A)}))},VtX=function(H){this.onStepChangeCallback=function(){};
this.flowRenderer=H};
VtX.prototype.getCurrentStep=function(){var H=this,U;return((U=this.flowRenderer.steps)!=null?U:[]).map(function(A){return _.p(A,_.Vt)}).find(function(A){return A&&A.stepId===H.currentStepId})};
var HB$=function(H,U){var A=U.flowStateEntityKey,M=H.flowStates.get(A);if(M)return M;U=new VtX(U);H.flowStates.set(A,U);return U},Uzm=function(H,U){for(var A=_.b(H.flowStates.entries()),M=A.next();!M.done;M=A.next()){var W=_.b(M.value);
M=W.next().value;W=W.next().value;if(W.flowRenderer.targetId===U){H.flowStates.delete(M);break}}},ALY=function(H,U){H.onStepChangeCallback=U;
H.onStepChangeCallback(H.getCurrentStep())},M25=function(H,U){var A=H.getCurrentStep();
if(A&&A.stepId===U)return!0;var M;return((M=H.flowRenderer.steps)!=null?M:[]).map(function(W){return _.p(W,_.Vt)}).find(function(W){return W&&W.stepId===U})?(H.currentStepId=U,H.onStepChangeCallback(H.getCurrentStep()),!0):!1},Wek=function(H,U,A,M){U={challenge:U};
A&&(U.webResponse=A);return _.oz(H.innertubeTransportService,U,_.RE(FRX),M)},wU5=function(H,U,A){if(!U.challenge)throw Error("ui");
if(U.botguardData&&U.botguardData.program){var M=new Jn5;M.initialize(U.botguardData,function(){ot8(M,{atr_challenge:U.challenge}).then(function(W){if(!W)throw Error("vi");return Wek(H,U.challenge,W,A)}).catch(function(W){_.Na(W);
return Wek(H,U.challenge,void 0,A)})},void 0)}else Wek(H,U.challenge,void 0,A)},XU5=function(H,U,A){var M={};
U.ids&&(M.ids=[].concat(_.vI(U.ids)));U.engagementType&&(M.engagementType=U.engagementType);return _.oz(H.innertubeTransportService,M,_.RE(_.XBz),A).then(function(W){if(!W)throw new _.bD("GetAttestationChallenge returned falsy");wU5(H,W,A)}).thenCatch(function(W){_.sD(W)})},iB5=function(H,U,A){return new _.IQ(function(M,W){var w;
return _.u(function(d){if(d.nextAddress==1){var O=d.yield,f=U.engagementType,J=U.ids,F={};J=_.b(J!=null?J:[]);for(var P=J.next();!P.done;P=J.next())P=P.value,P.encryptedVideoId?F.encryptedVideoId=P.encryptedVideoId:P.externalChannelId?F.externalChannelId=P.externalChannelId:P.commentId?F.commentId=P.commentId:P.externalOwnerId?F.externalOwnerId=P.externalOwnerId:P.artistId?F.artistId=P.artistId:P.playlistId?F.playlistId=P.playlistId:P.externalPostId?F.externalPostId=P.externalPostId:P.shareId?F.shareId=
P.shareId:P.postPlayNonce&&(F.postPlayNonce=P.postPlayNonce);return O.call(d,VD5(f,F),2)}w=d.yieldResult;if(!w.challenge)return _.Na(Error("wi")),XU5(H,U,A).then(M,W),d.return();O=w;f={challenge:O.challenge};f.webResponse=O.webResponse;f.engagementType=U.engagementType;f.ids=U.ids;_.oz(H.innertubeTransportService,f,_.RE(FRX),A).then(M,W);_.DO(d)})})},AI5=function(H,U){var A,M,W,w;
_.u(function(d){if(d.nextAddress==1){A=_.p(U,_.Wir);if(!(A&&A.listId&&H.response&&H.response.playingVideoId)||H.listId!==A.listId)return d.return();H.index===void 0&&(H.index=0);return d.yield(_.gTy(H.JSC$13394_playlistNetworkManager,A.listId,H.index,H.response.playingVideoId),2)}M=d.yieldResult;if(!M)return d.return();W=M.playlistId;w=M.playlistPanelRenderer;H.setPlaylistData(W,w,M.autoplayRenderer);_.DO(d)})},bBm=function(H,U,A){var M=H.getParams(A),W=_.sRN(U,M),w=H.getTempData(U,A);
w.endpoint=JSON.stringify(U);_.S("enable_unknown_lact_fix_on_html5")&&(_.lx().resolve(_.qe),w.lact=_.$B());var d={headers:{"X-YouTube-STS":_.gD("STS"),"x-youtube-csoc":1}};_.Sb(W,w);return new _.IQ(function(O,f){var J=H.getXhrParams(M),F;_.S("kevlar_cache_on_ttl_player")&&(F=_.lx().resolve(_.UP));F&&_.glh(F,U)?_.cD$(F,U,w,window.location.href).then(function(P){P?O(P):f()},f):_.XDp(H.JSC$13531_networkManager_,U,J,H.onPartsCallback_.bind(H),d).then(function(P){P?O(P):f()},f)})},dzB=function(H,U){H.triggerPromise_=
U.start();
H.triggerPromise_.then(function(A){var M=H.prefetchEndpointProvider_.getPrefetchEndpoint();if(M){var W=gtp[H.prefetchJobConfig_.pageType].prefetchedFragments;H.prefetchRequestPromise_=bBm(H.JSC$13567_networkPrefetchRequest_,M,{fragmentsRequested:W,timeBeforeNextVideo:A});H.prefetchResponseCacheKey_=H.JSC$13567_networkPrefetchRequest_.getCacheKeyForEndpoint(M);$1Y(H);H.prefetchRequestPromise_.then(function(w){H.storePrefetchedDataCallback_(H.prefetchResponseCacheKey_,w);if(_.S("web_prefetch_preload_video")&&
W.length===1&&W[0]==="pl"&&w&&!w.playerAds&&!w.adPlacements){var d=_.p(M,_.kO),O=d!=null,f={raw_player_response:w,watch_endpoint:d};(w=_.lx().resolve(O?_.Oum:_.aL))&&M&&w.then(function(J){O&&_.S("web_queue_preload_video")?(f.prefer_gapless=!0,J.queueNextVideo(f)):J.preloadVideoByPlayerVars(f)})}})}})},EL=function(H,U,A,M){this.prefetchEndpointProvider_=H;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=U;this.prefetchJobConfig_=A;this.JSC$13567_networkPrefetchRequest_=M;this.prefetchResponseCacheKey_=null};
EL.prototype.enqueue=function(){this.triggerPromise_||(dzB(this,D18(this)),_.Rc(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
EL.prototype.resolve=function(){this.cancel()};
EL.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.");$1Y(this)};
EL.prototype.onVisibilityChange_=function(){var H=this;_.CA(hT5)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){H.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||dzB(this,D18(this))};
var OB5=function(H,U,A,M,W){U&&(U==null?0:U.videoId)&&A&&A.entries&&_.S("kevlar_enable_shorts_prefetch_in_sequence")&&(Y07(H),U=A.entries.map(function(w){var d;return(d=_.p(w.command,_.kO))==null?void 0:d.videoId}).indexOf(U.videoId),A=A.entries[U+1],A!=null&&A.command&&!_.p(A==null?void 0:A.command,_.O7)&&(M=new rn$([A.command],new x17(M,_.Fl,1),null,"shorts",!1),H.pendingPrefetchJob_=new EL(new BaX(M.autonavEndpoints),function(){return!1},M,new R3(W)),H.pendingPrefetchJob_.enqueue()))},ubB=function(H,
U,A,M,W,w){var d=_.at.getInstance();
if(!_.S("block_all_player_prefetch_requests")){Y07(H);var O=!!A.getPlaylistId(),f=A.getVideoData().isLive&&A.getVideoData().hasProgressBarBoundaries;if((d.getState()==2||O||f)&&(!A.getVideoData().isLive||f)){d={inPlaylist:O,videoDuration:A.getDuration(),makeUpNextTrigger:function(F){return new Gzh(A,_.Fl,F)},
makePlaybackTrigger:function(F){return new x17(A,_.Fl,F)}};
var J=eXj(U,d);J&&(H.pendingPrefetchJob_=new EL(J.isInPlaylist?new ynh(W):new BaX(J.autonavEndpoints),function(F,P){P=new tt$(gtp[J.pageType].pageFragments,gtp[J.pageType].prefetchedFragments,P);return _.cQB(P)?(H.prefetchCache_.set(F,P),!0):!1},J,new LL(M,A,w,W)),H.pendingPrefetchJob_.enqueue())}}},ZBp=function(){var H=_.SZ();
H.signals.parkOrScheduleJob(function(){var U=H.storage;if(U.storage)if(Nay(U)){var A=U.getPlaylistId();U=S0$(U);A=!!A&&U!==void 0}else U.clear(),A=!1;else A=!1;if(A){A=H.JSC$13394_pageManager.isOnWatch();a:{var M=H.storage;if(M.storage&&Nay(M)&&(U=M.getPlaylistId(),M=S0$(M),U&&M!==void 0)){A={recoverPlaylistCommand:{listId:U,index:M,openMiniplayer:!A,openListPanel:A,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}A=void 0}A&&_.dg(H.JSC$13394_actionRouter,[A],null)}},0,"ma")},fpB=function(H,U,A,
M,W,w){var d=_.ts(7111);
_.$g(H.JSC$18930_screenManager,d,w?_.IS(w):void 0);_.GJ(H.JSC$18930_screenManager,d,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:M,offlineId:U,offlineabilityFormatType:A,isDefaultFormatType:W==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:W}})},JL$=function(H,U,A,M,W){var w,d,O,f,J;
return _.u(function(F){if(F.nextAddress==1)return F.yield(H.JSC$18930_playerApiPromise,2);w=F.yieldResult;fpB(H,U,A,"OFFLINE_OBJECT_TYPE_PLAYLIST",M,W);if(O=_.jXy[H.entityTypeMap.listEntityType])J={},d=(J[O]={maximumDownloadQuality:(f=A)!=null?f:void 0},J);return F.yield(w.queueOfflineAction(U,H.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",d),0)})},KeY=function(H,U){var A,M,W,w;
return _.u(function(d){if(d.nextAddress==1)return d.yield(H.JSC$18930_persistentStorePromiseAccessor(),2);if(d.nextAddress!=3){A=d.yieldResult;if(!A)return _.Na(new _.bD("PES is undefined")),d.return();M=_.BO(U,"downloadStatusEntity");return d.yield(ntf(A,M,"downloadStatusEntity"),3)}W=d.yieldResult;return d.return((w=W)==null?void 0:w.downloadState)})},onh=function(H,U,A,M,W){var w,d,O,f,J,F;
return _.u(function(P){switch(P.nextAddress){case 1:return P.yield(H.JSC$18930_playerApiPromise,2);case 2:w=P.yieldResult;fpB(H,U,A,"OFFLINE_OBJECT_TYPE_VIDEO",M,W);if(O=_.jXy[H.entityTypeMap.singleEntityType])J={},d=(J[O]={maximumDownloadQuality:(f=A)!=null?f:void 0},J);return P.yield(KeY(H,U),3);case 3:F=P.yieldResult;if(F!=="DOWNLOAD_STATE_USER_DELETED"){P.jumpTo(4);break}return P.yield(H.deleteVideo(U),4);case 4:return P.yield(w.queueOfflineAction(U,H.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
d),0)}})},Fem=function(H,U,A,M,W){return _.u(function(w){return w.nextAddress==1?w.yield(H.deleteVideo(U,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):w.yield(onh(H,U,A,M,W),0)})},Pwm=function(H,U,A){var M,W;
return _.u(function(w){if(w.nextAddress==1)return w.yield(H.JSC$18930_playerApiPromise,2);M=w.yieldResult;W=_.BO(U,"mainVideoDownloadStateEntity");return w.yield(M.updateDownloadState(W,A),0)})},IXk=function(H){var U=_.lx().resolve(_.FJ);
return _.u(function(A){if(A.nextAddress==1)return U.previousDownloadStateForVideo[H]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&U.previousDownloadStateForVideo[H]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?A.jumpTo(2):A.yield(U.resumeVideoDownload(H),2);if(A.nextAddress!=4)return A.yield(Pwm(U,H,U.previousDownloadStateForVideo[H]),4);delete U.previousDownloadStateForVideo[H];_.DO(A)})},T4f=function(H,U){var A;
return _.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$18930_playerApiPromise,2);A=M.yieldResult;return M.yield(A.queueOfflineAction(U,H.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},hPp=function(){var H=_.lx().resolve(_.FJ),U,A;
return _.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$18930_playerApiPromise,2);if(M.nextAddress!=3)return U=M.yieldResult,A={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},M.yield(U.queueOfflineAction("!*$_ALL_ENTITIES_!*$",H.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",A),3);var W=H.JSC$18930_commandHandler,w=W.resolveCommand,d=_.hP("DELETING_ALL",void 0,"Downloads are being deleted");w.call(W,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.gH(d)}},
popupType:"TOAST"}});_.DO(M)})},sCh=function(H,U){var A,M,W,w,d,O;
return _.u(function(f){if(f.nextAddress==1)return f.yield(H.JSC$18930_persistentStorePromiseAccessor(),2);if(f.nextAddress!=3)return A=f.yieldResult,A?f.yield(ntf(A,_.U_,"downloadsPageViewConfigurationEntity"),3):(_.Na(new _.bD("PES is undefined")),f.return());W=(M=f.yieldResult)!=null?M:{};O=(d=(w=W)==null?void 0:w.downloadsUpsellBannerVisibility)!=null?d:{};return O.visibleWithConnection?f.yield(U.refreshAllStaleEntities(0),0):f.jumpTo(0)})},nnk=function(H){var U,A;
return _.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$18930_prefStorage,2);U=M.yieldResult;return M.return((A=U)==null?void 0:A.get("sdois"))})},N3Y=function(H){var U,A,M,W,w,d;
return _.u(function(O){if(O.nextAddress==1)return O.yield(H.JSC$18930_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3){U=O.yieldResult;if(!U)return _.Na(new _.bD("PES is undefined")),O.return();A=_.BO("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return O.yield(ntf(U,A,"settingEntity"),3)}M=O.yieldResult;return O.return((d=(W=M)==null?void 0:(w=W.settingOptionValue)==null?void 0:w.boolValue)!=null?d:!1)})},Spp=function(H,U){var A,M,W,w;
return _.u(function(d){switch(d.nextAddress){case 1:return((A=U)==null?void 0:A.formatType)===void 0?d.return():d.yield(H.JSC$18930_prefStorage,2);case 2:M=d.yieldResult;if(M===void 0)return d.return();if(((W=U)==null?void 0:W.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return d.yield(M.set("lmqf",U.formatType),8);if(((w=U)==null?void 0:w.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){d.jumpTo(0);break}return d.yield(M.set("lmqf",U.formatType),6);case 6:return d.yield(M.set("lmqflst",
Math.floor((0,_.lD)())),0);case 8:return d.yield(M.remove("lmqflst"),0)}})},pUp=function(H){var U,A;
return _.u(function(M){switch(M.nextAddress){case 1:return M.yield(H.JSC$18930_prefStorage,2);case 2:U=M.yieldResult;if(!U){M.jumpTo(3);break}return M.yield(U.get("lmqflst"),4);case 4:if(A=M.yieldResult,A!==void 0)return M.return(A);case 3:return M.return(0)}})},Le7=function(H){var U,A,M;
return _.u(function(W){return W.nextAddress==1?W.yield(H.JSC$18930_prefStorage,2):W.nextAddress!=3?(U=W.yieldResult,W.yield((A=U)==null?void 0:A.get("ldtmes"),3)):W.return((M=W.yieldResult)!=null?M:!1)})},JJk=function(){var H=_.lx().resolve(_.FJ),U;
return _.u(function(A){if(A.nextAddress==1)return A.yield(H.JSC$18930_prefStorage,2);U=A.yieldResult;return U===void 0?A.return():A.yield(U.set("ldtmes",!0),0)})},Rj7=function(H){var U,A;
return _.u(function(M){switch(M.nextAddress){case 1:return M.yield(H.JSC$18930_prefStorage,2);case 2:U=M.yieldResult;if(U===void 0){M.jumpTo(3);break}return M.yield(U.get("lmqf"),4);case 4:if(A=M.yieldResult,A!==void 0)return M.return(A);case 3:return M.return("SD")}})},wQh=function(H,U,A){var M,W,w,d,O,f,J,F;
_.u(function(P){switch(P.nextAddress){case 1:return P.yield(Spp(H,(M=U)==null?void 0:M.actionParams),2);case 2:W=U.playlistId;if(!W)return P.return();if(U.action==="ACTION_ADD")return((d=U.actionParams)==null?0:d.formatType)?P.yield(JL$(H,W,U.actionParams.formatType,(F=U.actionParams)==null?void 0:F.settingsAction,A),0):P.yield(H.offlineWebClientEligibility,14);if(U.action==="ACTION_REMOVE_WITH_PROMPT"){var n=H.JSC$18930_commandHandler,N=n.resolveCommand,L=_.gD("INNERTUBE_CLIENT_NAME");var m=L===
"WEB_REMIX"?_.hP("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.hP("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var z=L==="WEB_REMIX"?[_.hP("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];L=L==="WEB_REMIX"?_.hP("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.hP("DELETE",void 0,"Delete");var c=_.hP("CANCEL",void 0,"Cancel");m=HKB(m,z,L,c,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:W});N.call(n,{openPopupAction:m});return P.return()}if(U.action===
"ACTION_REMOVE")return P.yield(T4f(H,W),0);if(U.action!=="ACTION_SYNC"){P.jumpTo(0);break}return P.yield(H.JSC$18930_playerApiPromise,9);case 9:return w=P.yieldResult,P.yield(w.queueOfflineAction(W,H.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return O=P.yieldResult,P.yield(Rj7(H),15);case 15:return f=P.yieldResult,P.yield(pUp(H),16);case 16:J=P.yieldResult,U.onAddCommand&&H.JSC$18930_commandHandler.resolveCommand(U.onAddCommand,{form:{preferredFormatType:f,
offlineWebClientEligibility:O,lastOfflineQualitySettingsSavedMs:J.toString()}}),P.jumpTo(0)}})},M$j=function(H,U,A){var M,W,w,d,O,f,J,F,P,n,N,L,m,z,c,C,v,Y,D,h;
_.u(function(T){switch(T.nextAddress){case 1:return T.yield(Spp(H,(M=U)==null?void 0:M.actionParams),2);case 2:W=U.videoId;if(!W)return T.return();if(U.action==="ACTION_REMOVE_WITH_PROMPT"){var WF=H.JSC$18930_commandHandler,dK=WF.resolveCommand,SN=_.gD("INNERTUBE_CLIENT_NAME");var o_=SN==="WEB_REMIX"?_.hP("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.hP("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var PF=SN==="WEB_REMIX"?[_.hP("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,
"This track won't be available to listen offline.")]:[];SN=SN==="WEB_REMIX"?_.hP("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.hP("DELETE",void 0,"Delete");var BF=_.hP("CANCEL",void 0,"Cancel");o_=HKB(o_,PF,SN,BF,{signal:"DELETE_DOWNLOAD",targetId:W});dK.call(WF,{openPopupAction:o_});return T.return()}if(U.action==="ACTION_ADD")return((C=U.actionParams)==null?0:C.formatType)?T.yield(onh(H,W,U.actionParams.formatType,(h=U.actionParams)==null?void 0:h.settingsAction,A),0):T.yield(H.offlineWebClientEligibility,
28);if(U.action==="ACTION_RETRY")return T.yield(Rj7(H),24);if(U.action==="ACTION_PAUSE")return T.yield(H.pauseVideoDownload(W),0);if(U.action==="ACTION_RESUME")return T.yield(H.resumeVideoDownload(W),0);if(U.action==="ACTION_REMOVE")return T.yield(KeY(H,W),18);if(!U.onAddCommand||!_.p(U.onAddCommand,_.s3)){T.jumpTo(0);break}w=_.p(U.onAddCommand,_.s3);O=(d=w)==null?void 0:d.isCrossDeviceDownload;if(!O){T.jumpTo(0);break}f="HD";return T.yield(pUp(H),16);case 16:return J=T.yieldResult,T.yield(Le7(H),
17);case 17:F=T.yieldResult;H.JSC$18930_commandHandler.resolveCommand(U.onAddCommand,{form:{preferredFormatType:f,lastOfflineQualitySettingsSavedMs:J.toString(),downloadToMobileEduShown:F}});T.jumpTo(0);break;case 18:return P=T.yieldResult,H.previousDownloadStateForVideo[W]=(n=P)!=null?n:"DOWNLOAD_STATE_UNKNOWN",T.yield(Pwm(H,W,"DOWNLOAD_STATE_USER_DELETED"),19);case 19:if(H.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&H.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){T.jumpTo(20);
break}return T.yield(H.pauseVideoDownload(W),20);case 20:WF=_.hP("DELETED_VIDEO",void 0,"Video deleted from downloads.");dK=_.hP("UNDO_ACTION",void 0,"Undo");o_=_.hP("CLOSE",void 0,"Close");N={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.gH(WF),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.gH(dK),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",targetId:W}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},
accessibilityData:{accessibilityData:{label:WF+" "+dK}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:W}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:o_}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};H.JSC$18930_commandHandler.resolveCommand(N);T.jumpTo(0);break;case 24:L=T.yieldResult;
L==="UNKNOWN_FORMAT_TYPE"&&(L="SD");m="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((z=U.actionParams)==null?0:z.formatType)L=U.actionParams.formatType,m=(c=U.actionParams)==null?void 0:c.settingsAction;return T.yield(Fem(H,W,L,m,A),25);case 25:return T.return();case 28:return v=T.yieldResult,T.yield(Rj7(H),29);case 29:return Y=T.yieldResult,T.yield(pUp(H),30);case 30:D=T.yieldResult,U.onAddCommand&&H.JSC$18930_commandHandler.resolveCommand(U.onAddCommand,{form:{preferredFormatType:Y,offlineWebClientEligibility:v,
lastOfflineQualitySettingsSavedMs:D.toString()}}),T.jumpTo(0)}})},Enf=function(H,U){var A,M,W,w,d,O,f;
return _.u(function(J){if(J.nextAddress==1)return J.yield(H.JSC$18930_persistentStorePromiseAccessor(),2);A=J.yieldResult;if(!A)return _.Na(new _.bD("PES is undefined")),J.return();if((M=U)==null||!M.settingItemId)return J.return();W=U;w=W.settingItemId;d=W.boolValue;O=_.BO(w,"settingEntity");f={key:O,settingOptionValue:{boolValue:d}};return J.yield(swX(A,f),0)})},mzy=function(H,U){var A,M,W,w,d,O,f;
return _.u(function(J){switch(J.nextAddress){case 1:return J.yield(H.JSC$18930_prefStorage,2);case 2:return A=J.yieldResult,M=_.TR(),J.yield(H.JSC$18930_persistentStorePromiseAccessor(),3);case 3:return W=J.yieldResult,A?W?J.yield(A.get("sdois"),4):(_.Na(new _.bD("PES is undefined")),J.return()):(_.Na(new _.bD("prefStorage is undefined")),J.return());case 4:w=J.yieldResult;O=(d=U)==null?void 0:d.boolValue;O===void 0||_.S("kevlar_set_sd_enabled_flag_killswitch")||_.jb(0,197,!0);w===void 0&&O===void 0&&
(O=!1);if(O===void 0){J.jumpTo(0);break}return J.yield(A.set("sdois",O),6);case 6:return _.S("kevlar_set_sd_enabled_flag_killswitch")||(_.jb(0,196,O),M.save()),f={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:O},J.yield(Enf(H,f),0)}})},gnj=function(H,U,A){var M,W,w,d,O;
return _.u(function(f){switch(f.nextAddress){case 1:return f.yield(nnk(H),2);case 2:return M=f.yieldResult,f.yield(mzy(H,A),3);case 3:return f.yield(nnk(H),4);case 4:return W=f.yieldResult,w=W!==M,f.yield(N3Y(H),5);case 5:d=f.yieldResult&&!_.S("kevlar_modern_downloads_page");if((O=!W&&!d)||w)return f.yield(U.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);f.jumpTo(0)}})},Vm8=function(){var H=_.lx().resolve(_.FJ),
U;
_.u(function(A){switch(A.nextAddress){case 1:return A.yield(H.JSC$18930_playerApiPromise,2);case 2:U=A.yieldResult;if(!_.S("kevlar_force_refresh_smart_downloads")){A.jumpTo(3);break}return A.yield(U.refreshAllStaleEntities(0),4);case 4:return A.return();case 3:return A.yield(U.refreshAllStaleEntities(),5);case 5:return A.yield(gnj(H,U),6);case 6:if(_.S("enable_download_pep_for_premium_countries_web"))return A.yield(sCh(H,U),0);A.jumpTo(0)}})},itm=function(H,U){var A,M;
_.u(function(W){switch(W.nextAddress){case 1:return W.yield(H.JSC$18930_playerApiPromise,2);case 2:A=W.yieldResult;switch((M=U)==null?void 0:M.settingItemId){case "SMART_DOWNLOADS_ENABLED":return W.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return W.jumpTo(4)}W.jumpTo(0);break;case 3:return W.yield(gnj(H,A,U),6);case 6:W.jumpTo(0);break;case 4:return W.yield(Enf(H,U),7);case 7:W.jumpTo(0)}})},apm=function(H,U){var A,M,W;
return _.u(function(w){if(w.nextAddress==1)return w.yield(H.JSC$18930_persistentStorePromiseAccessor(),2);if(w.nextAddress!=3){A=w.yieldResult;if(!A)return _.Na(new _.bD("PES is undefined")),w.return(!1);if(!U)return w.return(!1);M=_.BO(U,"mainVideoEntity");return w.yield(ntf(A,M,"mainVideoEntity"),3)}W=w.yieldResult;return w.return(W!==void 0)})},db5=function(H){var U=_.lx().resolve(_.FJ),A,M,W,w,d,O,f,J,F,P,n;
_.u(function(N){switch(N.nextAddress){case 1:return N.yield(U.JSC$18930_playerApiPromise,2);case 2:A=N.yieldResult;W=(M=H)==null?void 0:M.actions;if(!W)return N.return();w=_.b(W);d=w.next();case 3:if(d.done){N.jumpTo(0);break}O=d.value;J=f=void 0;if(!(((f=O)==null?0:f.entityKey)&&((J=O)==null?0:J.actionType))){N.jumpTo(4);break}F=_.tw(O.entityKey);P=F.entityId;n=F.entityType;return N.yield(A.queueOfflineAction(P,n,O.actionType),4);case 4:d=w.next(),N.jumpTo(3)}})},xzh=function(H,U){var A,M,W,w,d;
return _.u(function(O){if(O.nextAddress==1)return O.yield(H.JSC$18930_prefStorage,2);if(O.nextAddress!=3)return(A=O.yieldResult)?O.yield(A.get("psi"),3):O.return();M=O.yieldResult;d={isPaused:U,lastSyncTimestamp:(w=(W=M)==null?void 0:W.lastSyncTimestamp)!=null?w:"0"};return O.yield(A.set("psi",d),0)})},Ztj=function(H){var U=_.lx().resolve(_.FJ),A,M,W,w,d,O,f,J;
return _.u(function(F){switch(F.nextAddress){case 1:return F.yield(U.JSC$18930_playerApiPromise,2);case 2:A=F.yieldResult;W=((M=H)==null?void 0:M.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((O=H)==null?void 0:O.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":w="!*$_ALL_ENTITIES_!*$";d="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return F.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return F.jumpTo(4)}F.jumpTo(5);break;case 3:return F.yield(xzh(U,W),6);case 6:F.jumpTo(5);break;case 4:return F.yield(apm(U,(f=H)==null?void 0:f.videoId),7);case 7:F.yieldResult&&(w=(J=H)==null?void 0:J.videoId,d="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");F.jumpTo(5);break;case 5:if(w&&d)return F.yield(A.queueOfflineAction(w,"videoPlaybackPositionEntity",d),0);F.jumpTo(0)}})},zjk=function(H,U){_.lx().resolve(_.Xi).persistentPanelContainerMap.set(U,H)},
Cw7=function(H,U,A){H.hasRegisteredHoverCallbacks=!0;
H.hoverEnterCallback=U!=null?U:void 0;H.hoverLeaveCallback=A!=null?A:void 0},t2h=function(){return _.lx().resolve(_.k9).dismissedIndices},cLX=function(H,U,A){var M,W=(M=_.p(U,_.kO))==null?void 0:M.videoId;
M=!(!W||!H.find(function(d){return d.videoId&&d.videoId===W}));
var w=!!H.find(function(d){var O;return((O=_.p(d.command,_.kO))==null?void 0:O.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
H=!!H.find(function(d){return!!_.p(d.command,_.O7)&&!!_.p(U,_.O7)&&d.command===U});
return A?M||H:M||w||H},yLk=function(H,U,A){var M=[].concat(_.vI(H)),W=0,w=A?Tuk(A):[];
A=A?j1B(A):[];w.length&&!cLX(H,w[0].command,!0)&&M.push.apply(M,_.vI(w));U&&!cLX(M,U.command)&&M.unshift(U);U&&A.length&&!cLX(H,A[0].command)&&(_.S("web_enable_shorts_sequence_refactor_unify")?M.push.apply(M,_.vI(A.reverse())):M.unshift.apply(M,_.vI(A.reverse())),W=A.length);return{newContentList:M,indexChange:W}},B3m=function(){var H=_.lx().resolve(_.k9);
_.meN(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(H.isFullscreenEnabled()?_.R2(document.documentElement):_.BkM(document.documentElement))},rL$=function(H,U){var A;
U!==1||((A=H.currentPersistentToast)==null?0:A.isOpened())?_.aj5(H):H.currentPersistentToast=void 0},ej$=function(H,U){var A;
return(A=H.transitionTasksMap.get(U))!=null?A:[]},Dzk=function(H,U){var A=[];
H.elementTasksMap.forEach(function(M){(M=M.get(U))&&A.push(M)});
return A},$zf=function(H,U,A,M,W){W=W===void 0?{}:W;
var w=U.defaultViewTransitionOptions;return Object.assign({},w,W,{beforeTransition:function(){M.forEach(function(J){J.beforeTransition()});
var d;(d=w.beforeTransition)==null||d.call(w);var O,f;(f=(O=W).beforeTransition)==null||f.call(O);A.forEach(function(J){J.beforeTransition()})},
afterTransition:function(){M.forEach(function(J){J.afterTransition()});
var d;(d=w.afterTransition)==null||d.call(w);var O,f;(f=(O=W).afterTransition)==null||f.call(O);A.forEach(function(J){J.afterTransition()})},
ignoredErrors:H.config.ignoredErrors})},lpf=function(H,U,A){H.transitionTasksMap.has(U)?H.transitionTasksMap.get(U).push(A):(H=new _.bD("Transition task registered for unknown transition type",U),_.sD(H))},GGm=function(H,U,A){if(H.transitionTasksMap.has(U)){var M=H.transitionTasksMap.get(U).filter(function(W){return W!==A});
H.transitionTasksMap.set(U,M)}},Yp$=function(H,U){var A=ej$(H,U);
A=_.b(A);for(var M=A.next();!M.done;M=A.next())M=M.value,M.runOnce&&GGm(H,U,M);H.elementTasksMap.forEach(function(W,w){W.forEach(function(d,O){d.runOnce&&U===O&&(W.delete(O),W.size===0&&H.elementTasksMap.delete(w))})})},qpY=function(H,U,A){var M,W,w,d,O,f,J,F,P;
_.u(function(n){if(n.nextAddress==1){if(H.config.disableAllTransitions)return n.return(U());if((M=A)==null||!M.transitionType)return n.return(A0p(U,Object.assign({},(W=A)==null?void 0:W.viewTransitionOptions,{ignoredErrors:H.config.ignoredErrors})));w=A;d=w.transitionType;O=w.viewTransitionOptions;f=H.config.transitionConfigs.get(d);if(!f)return n.return(U());J=ej$(H,d);F=Dzk(H,d);P=A0p(U,$zf(H,f,J,F,O));return n.yield(P,2)}Yp$(H,d);_.DO(n)})},hj8=function(H,U){var A,M,W,w,d;
_.u(function(O){if(!U.length)return O.return([]);A=[];M=_.b(U);for(W=M.next();!W.done;W=M.next())w=W.value,(d=H.resolveIcon(w))&&!H.iconCache[d.url]&&A.push(_.hkf(H,d).then(function(){}).catch(function(){}));
return O.return(Promise.all(A))})},kGh=function(H,U){var A=[];
U=(new Set(U)).values();U=_.b(U);for(var M=U.next();!M.done;M=U.next()){M=M.value;for(var W=_.b(Object.values(kzB)),w=W.next();!w.done;w=W.next())A.push({iconName:M,iconStyle:w.value})}hj8(H.iconManager,A)},vn5=function(H,U,A){var M=A!=null?A:H.iconsToFetch;
M!=null&&M.length?U!==void 0&&U>=0?_.bM(_.Fl,function(){kGh(H,M)},U):kGh(H,M):Promise.resolve()},T3h=function(){var H,U,A,M;
return _.u(function(W){if(W.nextAddress==1)return H=navigator,(U=H.storage)!=null&&U.persisted?W.yield((A=H.storage)==null?void 0:A.persisted(),2):W.return("PERSISTED_STATE_NOT_SUPPORTED");M=W.yieldResult;return W.return(M?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},jCh=function(){var H,U,A,M;
return _.u(function(W){if(W.nextAddress==1)return H=navigator,(U=H.storage)!=null&&U.persist?W.yield((A=H.storage)==null?void 0:A.persist(),2):W.return("PERSISTED_STATE_NOT_SUPPORTED");M=W.yieldResult;return W.return(M?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},IpY=function(){var H,U;
return _.u(function(A){switch(A.nextAddress){case 1:return H="PERSISTED_STATE_NOT_SUPPORTED",_.zj(A,2),A.yield(T3h(),4);case 4:H=A.yieldResult;if(H!=="PERSISTED_STATE_NOT_GRANTED"){A.jumpTo(5);break}return A.yield(jCh(),6);case 6:H=A.yieldResult;case 5:_.xD(A,3);break;case 2:U=_.eG(A),U instanceof Error&&_.sD(U);case 3:return _.Fx("persistentStorageStateChecked",{persistedState:H}),A.return(H)}})},QCX=function(H,U,A){if(H.isAnyTransitionEnabled){var M={beforeTransition:function(){A(!0);
U.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){U.style.viewTransitionName&&(U.style.viewTransitionName="",A(!1))}};
lpf(H.viewTransitionCoordinator,"slide",M);lpf(H.viewTransitionCoordinator,"lockup-to-watch",M);lpf(H.viewTransitionCoordinator,"watch-next-appears",M);lpf(H.viewTransitionCoordinator,"learning-journey",M)}},V2m=function(H,U,A,M){if(H.isLockupToWatchTransitionEnabled){if(U){var W={};
W=(W["watch-next-appears"]="player-watch-next-loaded",W);W["lockup-to-watch"]=H.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";H.viewTransitionCoordinator.registerElement(U,W)}A&&(U={},H.viewTransitionCoordinator.registerElement(A,(U["lockup-to-watch"]="below-lockup-to-watch",U["watch-next-appears"]="below-watch-next-loaded",U)));M&&(A={},H.viewTransitionCoordinator.registerElement(M,(A["watch-next-appears"]="secondary-watch-next-loaded",
A)))}},H3Y=function(H,U){H.isBrowseTransitionEnabled?qpY(H.viewTransitionCoordinator,U,{transitionType:"slide"}):(U(),Promise.resolve())},UAh=function(H,U){H.isLockupToWatchTransitionEnabled?qpY(H.viewTransitionCoordinator,U,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){H.registeredLockupThumbnail=void 0;H.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(U(),Promise.resolve())},AMm=function(H,U){H.isLockupToWatchTransitionEnabled?qpY(H.viewTransitionCoordinator,U,{transitionType:"watch-next-appears"}):(U(),Promise.resolve())},MfX=function(H,U){H.isLearningJourneyTransitionEnabled?qpY(H.viewTransitionCoordinator,U,{transitionType:"learning-journey"}):(U(),Promise.resolve())},WMj=function(H,U,A){if(H.isInitialized()){var M=
vD(A),W=M==="watch";
M=M==="shorts";var w=vD(U)==="watch";if(W)w||(H.backgroundPageData=U),H.watchPipMode&&w||H.deactivate(A.endpoint);else if(M){if(vD(U)!=="shorts"){var d;(d=H.getPlayerElement())==null||d.pause()}}else w&&!H.watchPipMode&&(MX5(U,A,!0)?(H.watchWhileMode&&_.TBm(H,!1),_.Gq5(H,U)):H.isMiniplayerActive()&&H.watchWhileMode&&H.deactivate());w&&_.I6j(H);H.shortsPipMode&&!M&&(window.focus(),H.deactivate());if(H.pictureInPictureEnabled())if(M&&H.shortsPipEnabled||W&&H.JSC$19349_watchPipEnabled&&(!H.watchPipManualOnlyEnabled||
_.LN_()&&_.SMV("Chromium")>=142))_.Ert(H.handleMediaSessionPipActivation);else if(!H.isMiniplayerActive()&&(H.shortsPipEnabled||H.JSC$19349_watchPipEnabled)&&_.LN_()){H=_.RpN().mediaSession;try{H.setActionHandler("enterpictureinpicture",null)}catch(O){}}}},wR5=function(H,U){var A,M;
_.u(function(W){if(W.nextAddress==1){if(!H||!H.navigationEndpoint)return W.return();_.vc().lockupActivation=!0;var w;U?w=_.Nh(_.hP("QUEUE",void 0,"Queue")):w=H.longBylineText;M=(A=w)&&H.title?{miniplayerTitle:H.title,miniplayerSubtitle:A,playlistData:null}:void 0;return W.yield(_.Kr2(_.lx().resolve(_.ZB),H.navigationEndpoint,!0,M),2)}_.vc().userActivation=!0;_.DO(W)})},VVh=function(H,U){var A,M,W,w,d,O;
_.u(function(f){if(f.nextAddress==1){A=_.p(U,_.Mcy);if(!A||!A.listId)return f.return();H.index=A.index||H.index||0;M=H.response&&H.response.playingVideoId||void 0;return f.yield(_.gTy(H.JSC$13394_playlistNetworkManager,A.listId,H.index,M),2)}W=f.yieldResult;if(!W)return f.return();w=W.playlistId;d=W.playlistPanelRenderer;!H.queueProxy&&w&&d&&w.startsWith("TLPQ")&&(H.queueProxy=new _.Jq(H.JSC$13394_playlistNetworkManager,w,H.setPlaylistData.bind(H),H.clearQueue.bind(H),_.Chc(d),H.storage));if(A.openMiniplayer&&
(O=_.tL7(d))&&!H.JSC$13394_pageManager.isOnWatch()){var J=O,F=A.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";H.isMiniplayerActive()||wR5(J,F)}H.setPlaylistData(w,d,W.autoplayRenderer);_.DO(f)})},ji7=function(H,U){var A=_.SZ();
A.index===void 0&&(A.index=0);A.temporaryItems.push.apply(A.temporaryItems,_.vI(H));if((U.videoId||U.videoIds)&&A.index!==void 0&&U.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!A.queueProxy){var M=[];if(A.response){var W=_.lx().resolve(_.ZB).isMiniplayerActive();if(A.response.playlistPanelRenderer&&A.response.playlistId&&!A.response.playlistId.startsWith("TLPQ")){if(A.JSC$13394_pageManager.isOnWatch()||W)M=_.Chc(A.response.playlistPanelRenderer)}else A.response.playingVideoId&&!U.openMiniplayer?
M.push(A.response.playingVideoId):W&&A.response.playingVideoId&&U.openMiniplayer&&M.push(A.response.playingVideoId)}A.queueProxy=new _.Jq(A.JSC$13394_playlistNetworkManager,"",A.setPlaylistData.bind(A),A.clearQueue.bind(A),M,A.storage);A.queueProxy.JSC$13340_setCurrentIndex(A.index)}A.queueProxy.addVideos(U.videoIds||[U.videoId],U)}pS5(A,H);A.response&&_.p9(A,_.L9(A,A.response.autoplayRenderer));A.JSC$13394_pageManager.isOnWatch()||(H=H[0],U=U.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",A.isMiniplayerActive()||
wR5(H,U))},XR5=function(H,U){var A;
return _.u(function(M){return M.nextAddress==1?U&&H.lastWelcomeContinuationSent!==U?_.Z5Y(H)?M.yield(H.panelController.isVisible("PAai_companion"),3):M.jumpTo(2):M.return(!1):M.nextAddress==2||(A=M.yieldResult,A)?M.return(!0):M.return(!1)})},i3j=function(H){var U,A,M,W,w;
return _.u(function(d){if(d.nextAddress==1){if(!H.welcomeOptions)return d.return();U=H.welcomeOptions;A=U.command;M=U.setPending;if(A){var O;var f=(O=_.p(A,_.XA))==null?void 0:O.token}else f=void 0;W=f;return d.yield(XR5(H,W),2)}if(!d.yieldResult)return d.return();H.lastWelcomeContinuationSent=W;(w=M)==null||w(!0);f="youchat-"+Date.now();O=(O=_.yU())?String(Math.floor(O.getCurrentTime())*1E3):void 0;_.bj(A,{form:{formData:T3({clientMessageId:f,playerOffsetMs:O,pageContext:_.pLp(H,H.pageSubtype)})}});
_.DO(d)})},b35=function(H,U){_.u(function(A){H.welcomeOptions=U;
return A.yield(i3j(H),0)})},dAh=function(H){var U=_.Wj(H);
if(U=="object"||U=="array"){if(typeof H.clone==="function")return H.clone();if(typeof Map!=="undefined"&&H instanceof Map)return new Map(H);if(typeof Set!=="undefined"&&H instanceof Set)return new Set(H);U=U=="array"?[]:{};for(var A in H)U[A]=dAh(H[A]);return U}return H},djh=function(H,U){return Array.prototype.reduce.call(H,U,{duration:0})},mA=function(H,U){return _.mp0(_.qP(H,U,void 0,_.Y4))},gw=function(H,U){return _.f8(_.qP(H,U,void 0,_.Y4))},a3=function(H,U){return _.qP(H,U,void 0,_.Y4,_.MX)},
O35=_.o5(function(H,U,A,M){if(_.tI)return _.MGV(H,U,A,M);
if(H.nextWireType_!==0)return!1;_.R5(U,A,M,_.pN(H.decoder_,_.vr));return!0},_.NS,_.FV),uFf=_.o5(function(H,U,A){if(_.tI)return _.XIF(H,U,A);
if(H.nextWireType_!==1)return!1;var M=H.decoder_;H=_.Jg(M);M=_.Jg(M);H=_.YK(H,M);_.FL(U,A,H);return!0},_.v5r,_.iNn),Z3B=_.o5(function(H,U,A){if(H.nextWireType_!==5)return!1;
_.FL(U,A,_.Jg(H.decoder_));return!0},function(H,U,A){U=_.xpM(U);
U!=null&&(_.Py(H,A,5),_.sj(H.encoder_,U))},_.WOg),f7m=_.o5(function(H,U,A){if(H.nextWireType_!==2)return!1;
H=_.q$K(H);_.FL(U,A,H===_.Ck()?void 0:H);return!0},_.V30,_.ONw),JMf=_.eS0(function(H,U,A){if(H.nextWireType_!==0&&H.nextWireType_!==2)return!1;
U=_.wM(U,U[_.wm]|0,A);H.nextWireType_==2?_.h5h(H,HRh,U):U.push(_.fT(H.decoder_));return!0},function(H,U,A){U=_.rRt(_.f8,U,!0);
if(U!=null&&U.length){A=_.QYg(H,A);for(var M=0;M<U.length;M++)_.qjE(H.encoder_,U[M]);_.V7w(H,A)}},_.uLK),KM$=_.o5(function(H,U,A,M){if(H.nextWireType_!==0)return!1;
_.R5(U,A,M,_.fT(H.decoder_));return!0},_.Uor,_.uLK),oG$=function(H,U,A){return Math.abs(H-U)<=(A||1E-6)},FM$=function(H,U){return H==U?!0:H&&U?H.width==U.width&&H.height==U.height:!1},x1=function(H,U){H.insertBefore(U,H.childNodes[0]||null)},P65=function(H){return H.previousElementSibling!==void 0?H.previousElementSibling:_.SA3(H.previousSibling,!1)},ccj=_.a5(_.wz),saB=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(saB,_.fN);saB.prototype.getTypeName=function(){return _.Mn(this,1).split("/").pop()};
saB.prototype.getValue=function(){var H=_.qP(this,2);if(Array.isArray(H)||H instanceof _.fN)throw Error("X");return _.vu(this,2)};
var nG5=[0,2,_.RT],YUp=function(){var H=_.tc();this.JSC$10220_streamzService=H;H.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.$l("channel_type"))};
YUp.prototype.increment=function(H){this.JSC$10220_streamzService.JSC$10090_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",H)};
var qUm=function(){var H=_.tc();this.JSC$10223_streamzService=H;H.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.$l("channel_type"))};
qUm.prototype.increment=function(H){this.JSC$10223_streamzService.JSC$10090_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",H)};
var kly=function(){var H=_.tc();this.JSC$10226_streamzService=H;H.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.$l("channel_type"))};
kly.prototype.increment=function(H){this.JSC$10226_streamzService.JSC$10090_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",H)};
var h25=function(){var H=_.tc();this.JSC$10229_streamzService=H;H.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
h25.prototype.increment=function(){this.JSC$10229_streamzService.JSC$10090_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var vaf=function(){var H=_.tc();this.JSC$10232_streamzService=H;H.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.$l("channel_type"),_.$l("error_type"))};
vaf.prototype.increment=function(H,U){this.JSC$10232_streamzService.JSC$10090_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",H,U)};
var TnX=function(){var H=_.tc();this.JSC$10235_streamzService=H;H.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
TnX.prototype.increment=function(){this.JSC$10235_streamzService.JSC$10090_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var jrf=function(){var H=_.tc();this.JSC$10238_streamzService=H;H.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
jrf.prototype.increment=function(){this.JSC$10238_streamzService.JSC$10090_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var t$y=function(){var H=_.tc();this.JSC$10244_streamzService=H;H.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
t$y.prototype.increment=function(){this.JSC$10244_streamzService.JSC$10090_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
Ng$=function(H){return H.getCount&&typeof H.getCount=="function"?H.getCount():_.l7(H)||typeof H==="string"?H.length:_.dG.getCount(H)};
S9y=function(H,U){if(typeof H.every=="function")return H.every(U,void 0);if(_.l7(H)||typeof H==="string")return Array.prototype.every.call(H,U,void 0);for(var A=_.qlB(H),M=_.xt(H),W=M.length,w=0;w<W;w++)if(!U.call(void 0,M[w],A&&A[w],H))return!1;return!0};
pR8=function(H,U,A,M){var W=new _.n1(null);H&&_.zz(W,H);U&&_.CR(W,U);A&&_.tn(W,A);M&&_.cS(W,M);return W};
LM$=function(H){if(H>=48&&H<=57||H>=96&&H<=106||H>=65&&H<=90||_.kA&&H==0)return!0;switch(H){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 _.va;default:return!1}};
Reh=function(H){if(H.altKey&&!H.ctrlKey||H.metaKey||H.keyCode>=112&&H.keyCode<=123)return!1;if(LM$(H.keyCode))return!0;switch(H.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!_.va;default:return H.keyCode<166||H.keyCode>183}};
_.qf=function(H){this.__isSoyCss=!0;this.css=nAm.apply(null,[H.strings].concat(_.vI(H.args)))};
_.qf.prototype.toString=function(){return this.css};
var NVk=function(){_.qf.apply(this,arguments)};
_.R(NVk,_.qf);var EGY=[0,_.sh,Z3B,-1],zaB=0,BV7=!1,rNm=function(H,U,A,M,W,w,d){this.date=typeof H==="number"?new Date(H,U||0,A||1,M||0,W||0,w||0,d||0):new Date(H&&H.getTime?H.getTime():_.x4())};
_.zo(rNm,_.QF);_.X=rNm.prototype;_.X.getHours=function(){return this.date.getHours()};
_.X.getMinutes=function(){return this.date.getMinutes()};
_.X.getSeconds=function(){return this.date.getSeconds()};
_.X.getMilliseconds=function(){return this.date.getMilliseconds()};
_.X.getUTCDay=function(){return this.date.getUTCDay()};
_.X.getUTCHours=function(){return this.date.getUTCHours()};
_.X.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.X.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.X.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.X.setHours=function(H){this.date.setHours(H)};
_.X.setMinutes=function(H){this.date.setMinutes(H)};
_.X.setSeconds=function(H){this.date.setSeconds(H)};
_.X.setMilliseconds=function(H){this.date.setMilliseconds(H)};
_.X.setUTCHours=function(H){this.date.setUTCHours(H)};
_.X.setUTCMinutes=function(H){this.date.setUTCMinutes(H)};
_.X.setUTCSeconds=function(H){this.date.setUTCSeconds(H)};
_.X.setUTCMilliseconds=function(H){this.date.setUTCMilliseconds(H)};
_.X.add=function(H){_.QF.prototype.add.call(this,H);H.hours&&this.setUTCHours(this.date.getUTCHours()+H.hours);H.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+H.minutes);H.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+H.seconds)};
_.X.JSC$11636_toIsoString=function(H){var U=_.QF.prototype.JSC$11636_toIsoString.call(this,H);return H?U+"T"+_.DX(this.getHours(),2)+":"+_.DX(this.getMinutes(),2)+":"+_.DX(this.getSeconds(),2):U+"T"+_.DX(this.getHours(),2)+_.DX(this.getMinutes(),2)+_.DX(this.getSeconds(),2)};
_.X.equals=function(H){return this.getTime()==H.getTime()};
_.X.toString=function(){return this.JSC$11636_toIsoString()};
_.X.clone=function(){var H=new rNm(this.date);H.firstDayOfWeek_=this.firstDayOfWeek_;H.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return H};
ea7.prototype.set=function(H){this.relativeTimeStart_=H};
ea7.prototype.reset=function(){this.set(_.x4())};
ea7.prototype.get=function(){return this.relativeTimeStart_};
var mA5=null,gGh=function(){mA5||(mA5=new ea7)},a78=function(){mA5||(mA5=new ea7)};
_.zo(a78,gGh);_.X=DCh.prototype;_.X.JSC$11662_buffer_="";_.X.set=function(H){this.JSC$11662_buffer_=""+H};
_.X.append=function(H,U,A){this.JSC$11662_buffer_+=String(H);if(U!=null)for(var M=1;M<arguments.length;M++)this.JSC$11662_buffer_+=arguments[M];return this};
_.X.clear=function(){this.JSC$11662_buffer_=""};
_.X.getLength=function(){return this.JSC$11662_buffer_.length};
_.X.toString=function(){return this.JSC$11662_buffer_};
var TVh={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"},GS$=function(H){this.xhr=H},YoY=function(H,U,A){_.HF.call(this,H+", errorCode="+U);
this.errorCode=U;this.xhr=A;this.name="PromiseAjaxError"};
_.R(YoY,_.HF);var xAB=!1,ATj=function(H){_.HF.call(this,H.message||H.description||H.name);this.isMissing=H instanceof Q$f;this.isTimeout=H instanceof YoY&&H.errorCode=="net.timeout";this.isCanceled=H instanceof _.Oa};
_.R(ATj,_.HF);ATj.prototype.name="BiscottiError";var Q$f=function(){_.HF.call(this,"Biscotti ID is missing from server")};
_.R(Q$f,_.HF);Q$f.prototype.name="BiscottiMissingError";var l57={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},VXf=null,v3B=function(){try{var H=_.tr("yt.ads.biscotti.getId_");return H?H():LFX()}catch(U){return _.H$(U)}},Zvh={'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"},zem=function(H,U){return _.zQ({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:H,command:U}})},C67=function(H){return _.zQ({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:H}})},tfX=function(H){return _.zQ({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:H}})},cMk=function(H){return _.zQ({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:H}})},yM5=function(){return _.zQ({type:"TALK_TO_RECS_RESET_STEP_STATES",
payload:null})},Bgh=function(H){return _.zQ({type:"SET_GUIDE_IS_EXPANDED",
payload:H})},rMk=function(H){return _.zQ({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",
payload:H})},eeY=function(H){return _.zQ({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:H})},DAk=function(H){return _.zQ({type:"SET_ONLINE_STATUS",
payload:H})},$A8=function(H){return _.zQ({type:"SET_IS_WATCH_ACTIVE",
payload:{isWatchActive:H}})},l7h=function(H){return _.zQ({type:"SET_IS_WATCH_NARROW_WIDTH",
payload:{isWatchNarrowWidth:H}})},GIY=function(H){return _.zQ({type:"SET_IS_LIVE_CHAT_COLLAPSED",
payload:{isLiveChatCollapsed:H}})},Y95=function(H,U){return _.zQ({type:"SET_TRANSCRIPTION_STATE",
payload:{high:H,low:U}})},q9k=function(H){return _.zQ({type:"SET_OVERLAY_STATE",
payload:H})},g87=[[["eSNpaTQ2amlmdnppZzZwcmltYXI=",
null,null],[null,["eWVweXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjZHppeHJydnly","c3dqNzRsc3R5bGUtc2NvcGUjdmhsOTUw"],null],["MnJieW44bWFzdGhlYWQtYWQjdjZ4a2M2",["bmRlcmVyI2ZvZ2VwMnNqdG1sc3l0ZC1yaWNoLWdyaWQtcmU="],null],[null,["bmRlcmVyIzdhdTk5b2lqcWVmMXl0ZC1yaWNoLWdyaWQtcmU=","dWIwOGozc3R5bGUtc2NvcGUjZm9zZjFn"],null],[null,["cmVyI2h5OHlqMmNseGV5cXl0ZC1iYW5uZXItcHJvbW8tcmVuZGU=","YTIweHY4c3R5bGUtc2NvcGUjZGw3cGxx"],null],[null,["cmVuZGVyZXIjdDJ6c2JnZTFqMnQ5eXRkLWFkLXNsb3Qt"],null]],[["bXZjNzlpc2p3NHBsYXllci1hZHMjdA==",
null,null]],[[null,null,"ZXJlciNuZHhrOXljM25rc3F5dGxyLWJhbm5lci1jdGEtcmVuZA=="]]],Sek="#",heY=0,kI8=function(H,U,A){var M=this;this.priority=U;this.delay=A;this.jobId=0;this.completionCallback=_.UR;this.wrappedJob=function(){H();M.completionCallback()};
this.id=++heY};
kI8.prototype.enqueue=function(H){this.completionCallback=H;this.jobId=_.Fl.addJob(this.wrappedJob,this.priority,this.delay)};
var zh=function(){_.zG.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.R(zh,_.zG);zh.prototype.addJob=function(H,U,A){H=new kI8(H,U,A);this.taskIdToTask.set(H.id,H);this.isActive?vG7(this,H):this.suspendedTasks.add(H);return H.id};
var vG7=function(H,U){H.scheduledTasks.add(U);U.enqueue(function(){H.scheduledTasks.delete(U)})};
zh.prototype.cancelJob=function(H){(H=this.taskIdToTask.get(H))&&(this.scheduledTasks.delete(H)?_.Fl.cancelJob(H.jobId):this.suspendedTasks.delete(H))};
zh.prototype.pause=function(){var H=this;this.isActive=!1;this.scheduledTasks.forEach(function(U){_.Fl.cancelJob(U.jobId);H.suspendedTasks.add(U)});
this.scheduledTasks.clear()};
zh.prototype.start=function(){var H=this;this.isActive=!0;this.suspendedTasks.forEach(function(U){vG7(H,U)});
this.suspendedTasks.clear()};
zh.prototype.reset=function(){this.scheduledTasks.forEach(function(H){_.Fl.cancelJob(H.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var TgB=function(H,U){this.JSC$13520_networkService_=H;this.pageRequestPromise=U};
TgB.prototype.fetchData=function(H){jak(this,this.JSC$13520_networkService_.fetchData(H))};
TgB.prototype.postData=function(H,U){jak(this,this.JSC$13520_networkService_.postData(H,U))};
TgB.prototype.requestDataForServiceEndpoint=function(H,U){jak(this,this.JSC$13520_networkService_.requestDataForServiceEndpoint(H,U))};
var jak=function(H,U){U.then(H.pageRequestPromise.onSuccess,H.pageRequestPromise.onFailure,H.pageRequestPromise)};
TgB.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var I7f=function(H){this.buildNetworkRequest_=H;this.pendingRequests_=new Set};
I7f.prototype.reset=function(){this.pendingRequests_.forEach(function(H){H.cancel()});
this.pendingRequests_.clear()};
I7f.prototype.fetchData=function(H){var U=Qam(this);U.fetchData(H);return U.pageRequestPromise};
I7f.prototype.postData=function(H,U){var A=Qam(this);A.postData(H,U);return A.pageRequestPromise};
I7f.prototype.requestDataForServiceEndpoint=function(H,U){var A=Qam(this);A.requestDataForServiceEndpoint(H,U);return A.pageRequestPromise};
var Qam=function(H){var U=H.buildNetworkRequest_();H.pendingRequests_.add(U);var A=function(){H.pendingRequests_.delete(U)};
U.pageRequestPromise.then(A,A);return U},VfB=function(H){var U=new zh;
this.JSC$13527_networkService_=H;this.JSC$13527_taskManager_=U;this.JSC$13527_networkManager_=new I7f(this.networkRequestFactory_.bind(this))};
_.X=VfB.prototype;_.X.networkRequestFactory_=function(){return new TgB(this.JSC$13527_networkService_,new _.D4(this.JSC$13527_taskManager_))};
_.X.reset=function(){this.JSC$13527_taskManager_.reset();this.JSC$13527_networkManager_.reset()};
_.X.start=function(){this.JSC$13527_taskManager_.start()};
_.X.pause=function(){this.JSC$13527_taskManager_.pause()};
_.X.getTaskManager=function(){return this.JSC$13527_taskManager_};
_.X.getNetworkManager=function(){return this.JSC$13527_networkManager_};
var eW$=null,l2p=[],tUh=0,rTp=0,cTf=null,qeX=null,WT=function(H){this.token=H};
WT.getInstance=function(){var H;return _.u(function(U){if(U.nextAddress==1)return U.yield(_.D0(),2);H=U.yieldResult;if(!H)return U.return();WT.instance||(WT.instance=new WT(H));return U.return(WT.instance)})};
var H1Y=function(H){var U;return _.u(function(A){if(A.nextAddress==1)return A.yield(I2j(H.token),2);U=A.yieldResult;return A.return(U.clear("resource-manifest-assets"))})},M7=function(H){this.token=H};
M7.getInstance=function(){var H;return _.u(function(U){if(U.nextAddress==1)return U.yield(_.D0(),2);H=U.yieldResult;if(!H)return U.return();M7.instance||(M7.instance=new M7(H));return U.return(M7.instance)})};
var QgX=function(H){var U;return _.u(function(A){if(A.nextAddress==1)return A.yield(I2j(H.token),2);U=A.yieldResult;return A.yield(U.clear("auth"),0)})},HHy=!1,PHp=null,s2$=void 0,g2p=!1,Uyy=function(H){if(!_.E3(document,"gtm-noscript")){var U=document.createElement("noscript");
U.id="gtm-noscript";U.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+H+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(U)}},AO5=function(H){_.HF.call(this,H)};
_.R(AO5,_.Ob3);
var Snp=!1,RMy=[],Lb$=!1,DYh={},lff=function(H,U){var A=McY,M=this;this.renderFn=H;this.listeners=A;this.context=U;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var W;this.lastSeenPlayerApi=_.u$((W=this.playerControlsData)==null?void 0:W.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.z3h(),void 0);_.S("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){Gn$(M).setState({playerState:-1});M.resetRecentlyNavigatedJobId&&
_.Fl.cancelJob(M.resetRecentlyNavigatedJobId);M.recentlyNavigated=!0;M.resetRecentlyNavigatedJobId=_.Fl.addJob(function(){M.recentlyNavigated=!1},8,1E4)})};
lff.prototype.setState=function(H){if(!_.S("mweb_player_skip_no_op_state_changes")||!$Yp(H,this.state))if(this.state=Object.assign({},this.state,H),!_.S("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)H=-1,_.S("player_controls_log_creation_killswitch")||l$7()||(H=(0,_.lD)()),_.ba("pcu_s"),_.ba("pcu_se"),_.ba("pcu_rs"),this.renderFn(Gn$(this)),_.ba("pcu_re"),GQy(H),_.Fl.addJob(function(){_.ba("pcu_ap")},8)};
var Gn$=function(H){if(H.getPlayerApi)var U=_.u$(H.getPlayerApi());else{var A;U=_.u$((A=H.playerControlsData)==null?void 0:A.playerApi)}return Object.assign({},H.state,{setState:H.boundSetState,domMeasurements:{progressBarLineRect:H.progressBarLineRect},playerApi:U,appApi:H.context.appApi,playerContainer:H.context.playerContainer,playerControlContainer:H.context.playerControlContainer,uxConfig:H.context.uxConfig})},YyX=function(H){H.listeners.forEach(function(U){H.eventListenerCleanupFunctions.push(U.register(function(){return Gn$(H)},
function(){return H.getData()}))})},qyp=function(H){H.eventListenerCleanupFunctions.forEach(function(U){U()});
H.eventListenerCleanupFunctions.length=0};
lff.prototype.getData=function(){return this.playerControlsData};var DDj=function(){var H=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return H?parseInt(H[1],10):0},Wij=function(H){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+H)!=-1||document.currentScript.src.indexOf("&"+H)!=-1)},w0y=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},qc7=function(H){H.length?X08(H.shift(),function(){qc7(H)}):ldy()},kum=function(H){return"chrome-extension://"+H+"/cast_sender.js"},X08=function(H,
U,A){var M=document.createElement("script");
M.onerror=U;A&&(M.onload=A);_.J$(M,_.KW(H));(document.head||document.documentElement).appendChild(M)},iHB=function(){var H=DDj(),U=[];
if(H>1){var A=H-1;U.push("//www.gstatic.com/eureka/clank/"+H+"/cast_sender.js");U.push("//www.gstatic.com/eureka/clank/"+A+"/cast_sender.js")}return U},ldy=function(){var H=w0y();
H&&H(!1,"No cast extension found")},Yck=function(){if(bHB){var H=2,U=w0y(),A=function(){H--;
H==0&&U&&U(!0)};
window.__onGCastApiAvailable=A;X08("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",ldy,A)}},$Dk=function(){Yck();
var H=iHB();H.push("//www.gstatic.com/eureka/clank/cast_sender.js");qc7(H)},Guj=function(){Yck();
var H=iHB();H.push.apply(H,_.vI(hDk.map(kum)));H.push("//www.gstatic.com/eureka/clank/cast_sender.js");qc7(H)},bHB=Wij("loadCastFramework")||Wij("loadCastApplicationFramework"),hDk=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var dyX=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(dyX,_.fN);var OH$=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(OH$,_.fN);var uTB=function(){var H=new OH$;return _.d4(H,1,3)};var CL=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(CL,_.fN);var uzm=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(uzm,_.fN);var ZHy=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(ZHy,_.fN);ZHy.prototype.getToken=function(){return _.Mn(this,1)};
ZHy.prototype.setToken=function(H){return _.Pl(this,1,H)};
var dhj=function(H){return _.IY(H,3,_.m5,_.y9())},Oqm=function(H){return _.IY(H,6,_.m5,_.y9())};var tl=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(tl,_.fN);tl.prototype.getToken=function(){return _.qK(this,ZHy,2)};
tl.prototype.setToken=function(H){return _.CN(this,2,H)};
tl.prototype.getName=function(){return _.Mn(this,6)};
var fA8=_.a5(tl);var JO$=function(H,U,A){this.requestMessage=H;this.methodDescriptor=U;this.metadata=A};
JO$.prototype.getMetadata=function(){return this.metadata};var Kip=function(H,U){U=U===void 0?{}:U;this.responseMessage=H;this.metadata=U;this.status=null};
Kip.prototype.getMetadata=function(){return this.metadata};
Kip.prototype.getStatus=function(){return this.status};var cz=function(H,U,A,M,W){this.name=H;this.methodType="unary";this.requestType=U;this.responseType=A;this.requestSerializeFn=M;this.responseDeserializeFn=W},oim=function(H,U,A){A=A===void 0?{}:A;
return new JO$(U,H,A)};
cz.prototype.getName=function(){return this.name};var y7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(y7,_.fN);y7.prototype.getHeader=function(){return _.qK(this,CL,1)};
y7.prototype.setHeader=function(H){return _.CN(this,1,H)};
y7.prototype.hasHeader=function(){return _.hI(this,CL,1)};var Fip=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Fip,_.fN);var Pe5=new cz("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",y7,Fip,function(H){return H.serialize()},_.a5(Fip));var Bz=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Bz,_.fN);Bz.prototype.getHeader=function(){return _.qK(this,CL,1)};
Bz.prototype.setHeader=function(H){return _.CN(this,1,H)};
Bz.prototype.hasHeader=function(){return _.hI(this,CL,1)};var sU5=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(sU5,_.fN);var ni8=new cz("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Bz,sU5,function(H){return H.serialize()},_.a5(sU5));var rw=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(rw,_.fN);rw.prototype.getHeader=function(){return _.qK(this,CL,1)};
rw.prototype.setHeader=function(H){return _.CN(this,1,H)};
rw.prototype.hasHeader=function(){return _.hI(this,CL,1)};var N$$=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(N$$,_.fN);N$$.prototype.getValues=function(H){return _.z5K(this,1,H)};var Sgf=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Sgf,_.fN);Sgf.prototype.getLink=function(){return _.qK(this,tl,1)};var p0y=new cz("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",rw,Sgf,function(H){return H.serialize()},_.a5(Sgf));var eK=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(eK,_.fN);eK.prototype.getHeader=function(){return _.qK(this,CL,1)};
eK.prototype.setHeader=function(H){return _.CN(this,1,H)};
eK.prototype.hasHeader=function(){return _.hI(this,CL,1)};var Li7=new cz("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",eK,tl,function(H){return H.serialize()},fA8);var RBy=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(RBy,_.fN);var Eij=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Eij,_.fN);Eij.prototype.getUrl=function(){return _.Mn(this,2)};
Eij.prototype.setUrl=function(H){return _.Pl(this,2,H)};var my5=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(my5,_.fN);var gi8=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(gi8,_.fN);var aA$=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(aA$,_.fN);var LHh=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(LHh,_.fN);var S_j=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(S_j,_.fN);var xyY=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(xyY,_.fN);var tpy=_.a5(xyY);var zB8=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(zB8,_.fN);var Ce7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Ce7,_.fN);_.X=Ce7.prototype;_.X.getHeader=function(){return _.qK(this,CL,1)};
_.X.setHeader=function(H){return _.CN(this,1,H)};
_.X.hasHeader=function(){return _.hI(this,CL,1)};
_.X.getCompletionUrl=function(){return _.Mn(this,6)};
_.X.getDeviceId=function(){return _.Mn(this,11)};var tcB=new cz("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Ce7,xyY,function(H){return H.serialize()},tpy);var cO$=new Set(["SAPISIDHASH","APISIDHASH"]);var yOj=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(yOj,_.fN);yOj.prototype.getMessage=function(){return _.Mn(this,2)};
var B$m=_.a5(yOj);var eB8=function(H,U){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=H.nodeReadableStream;this.grpcResponseDeserializeFn=U;this.xhr=H.xhr;this.xhrNodeReadableStream&&rOh(this)},hB5=function(H,U){var A=new DyB;
_.Rc(H.xhr,"complete",function(){if(H.xhr.isSuccess()){var M=H.xhr.getResponseText();var W;if(W=U)W=H.xhr,W.JSC$10099_xhr_&&W.isComplete()?(W=W.JSC$10099_xhr_.getResponseHeader("Content-Type"),W=W===null?void 0:W):W=void 0,W=W==="text/plain";if(W){if(!atob)throw Error("dk");M=atob(M)}try{var w=H.grpcResponseDeserializeFn(M)}catch(O){$y5(H,kQ$(new _.O0(13,"Error when deserializing response data; error: "+O+(", response: "+M)),A));return}M=_.qWN(H.xhr.getStatus());lA8(H,GFY(H));M===0?Ygp(H,w):$y5(H,
kQ$(new _.O0(M,"Xhr succeeded but the status code is not 200"),A))}else{M=H.xhr.getResponseText();w=GFY(H);if(M){var d=qg$(H,M);M=d.code;W=d.details;d=d.metadata}else M=2,W="Rpc failed due to xhr error. uri: "+String(H.xhr.JSC$10099_lastUri_)+", error code: "+(H.xhr.JSC$10099_lastErrorCode_+", error: ")+H.xhr.getLastError(),d=w;lA8(H,w);$y5(H,kQ$(new _.O0(M,W,d),A))}})},rOh=function(H){H.xhrNodeReadableStream.on("data",function(U){if("1"in U){var A=U["1"];
try{var M=H.grpcResponseDeserializeFn(A)}catch(W){$y5(H,new _.O0(13,"Error when deserializing response data; error: "+W+(", response: "+A)))}M&&Ygp(H,M)}if("2"in U)for(U=qg$(H,U["2"]),A=0;A<H.onStatusCallbacks.length;A++)H.onStatusCallbacks[A](U)});
H.xhrNodeReadableStream.on("end",function(){lA8(H,GFY(H));for(var U=0;U<H.onEndCallbacks.length;U++)H.onEndCallbacks[U]()});
H.xhrNodeReadableStream.on("error",function(){if(H.onErrorCallbacks.length!==0){var U=H.xhr.JSC$10099_lastErrorCode_;U!==0||H.xhr.isSuccess()||(U=6);var A=-1;switch(U){case 0:var M=2;break;case 7:M=10;break;case 8:M=4;break;case 6:A=H.xhr.getStatus();M=_.qWN(A);break;default:M=14}lA8(H,GFY(H));U=_.EV2(U)+", error: "+H.xhr.getLastError();A!==-1&&(U+=", http status code: "+A);$y5(H,new _.O0(M,U))}})},GFY=function(H){var U={},A=Mtk(H.xhr);
Object.keys(A).forEach(function(M){U[M]=A[M]});
return U},qg$=function(H,U){var A=2,M={};
try{var W=B$m(U);A=_.B8(W,1);var w=W.getMessage();_.c8(W,saB,3,_.y9()).length&&(M["grpc-web-status-details-bin"]=U)}catch(d){H.xhr&&H.xhr.getStatus()===404?(A=5,w="Not Found: "+String(H.xhr.JSC$10099_lastUri_)):(A=14,w="Unable to parse RpcStatus: "+d)}return{code:A,details:w,metadata:M}};
eB8.prototype.on=function(H,U){H==="data"?this.onDataCallbacks.push(U):H==="metadata"?this.onMetadataCallbacks.push(U):H==="status"?this.onStatusCallbacks.push(U):H==="end"?this.onEndCallbacks.push(U):H==="error"&&this.onErrorCallbacks.push(U);return this};
var kF$=function(H,U){U=H.indexOf(U);U>-1&&H.splice(U,1)};
eB8.prototype.removeListener=function(H,U){H==="data"?kF$(this.onDataCallbacks,U):H==="metadata"?kF$(this.onMetadataCallbacks,U):H==="status"?kF$(this.onStatusCallbacks,U):H==="end"?kF$(this.onEndCallbacks,U):H==="error"&&kF$(this.onErrorCallbacks,U);return this};
eB8.prototype.cancel=function(){this.xhr.abort()};
var Ygp=function(H,U){for(var A=0;A<H.onDataCallbacks.length;A++)H.onDataCallbacks[A](U)},lA8=function(H,U){for(var A=0;A<H.onMetadataCallbacks.length;A++)H.onMetadataCallbacks[A](U)},$y5=function(H,U){for(var A=0;A<H.onErrorCallbacks.length;A++)H.onErrorCallbacks[A](U)},DyB=function(){var H=Error.call(this);
this.message=H.message;"stack"in H&&(this.stack=H.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(DyB,Error);var vih=function(H){this.JSC$19557_worker_=H.worker||null;this.JSC$19557_streamBinaryChunks_=H.streamBinaryChunks||!1;this.JSC$19557_credentialsMode_=void 0};
_.zo(vih,_.kat);vih.prototype.createInstance=function(){var H=new DQ(this.JSC$19557_worker_,this.JSC$19557_streamBinaryChunks_);this.JSC$19557_credentialsMode_&&H.setCredentialsMode(this.JSC$19557_credentialsMode_);return H};
vih.prototype.setCredentialsMode=function(H){this.JSC$19557_credentialsMode_=H};
var DQ=function(H,U){_.LW.call(this);this.JSC$19561_worker_=H;this.JSC$19561_streamBinaryChunks_=U;this.JSC$19561_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19561_responseHeaders_=null;this.JSC$19561_method_="GET";this.JSC$19561_url_="";this.inProgress_=!1;this.JSC$19561_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.zo(DQ,_.LW);DQ.prototype.open=function(H,U){if(this.readyState!=0)throw this.abort(),Error("ek");this.JSC$19561_method_=H;this.JSC$19561_url_=U;this.readyState=1;T$y(this)};
DQ.prototype.send=function(H){if(this.readyState!=1)throw this.abort(),Error("fk");if(this.abortController_.signal.aborted)throw this.abort(),Error("gk");this.inProgress_=!0;var U={headers:this.requestHeaders_,method:this.JSC$19561_method_,credentials:this.JSC$19561_credentialsMode_,cache:void 0,signal:this.abortController_.signal};H&&(U.body=H);(this.JSC$19561_worker_||_.Mr).fetch(new Request(this.JSC$19561_url_,U)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
DQ.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,jU7(this));this.readyState=0};
DQ.prototype.handleResponse_=function(H){if(this.inProgress_&&(this.fetchResponse_=H,this.JSC$19561_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19561_responseHeaders_=H.headers,this.readyState=2,T$y(this)),this.inProgress_&&(this.readyState=3,T$y(this),this.inProgress_)))if(this.responseType==="arraybuffer")H.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Mr.ReadableStream!==
"undefined"&&"body"in H){this.currentReader_=H.body.getReader();if(this.JSC$19561_streamBinaryChunks_){if(this.responseType)throw Error("hk");this.response=[]}else this.response=this.responseText="",this.JSC$19561_textDecoder_=new TextDecoder;IAh(this)}else H.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var IAh=function(H){H.currentReader_.read().then(H.handleDataFromStream_.bind(H)).catch(H.handleSendFailure_.bind(H))};
DQ.prototype.handleDataFromStream_=function(H){if(this.inProgress_){if(this.JSC$19561_streamBinaryChunks_&&H.value)this.response.push(H.value);else if(!this.JSC$19561_streamBinaryChunks_){var U=H.value?H.value:new Uint8Array(0);if(U=this.JSC$19561_textDecoder_.decode(U,{stream:!H.done}))this.response=this.responseText+=U}H.done?jU7(this):T$y(this);this.readyState==3&&IAh(this)}};
DQ.prototype.handleResponseText_=function(H){this.inProgress_&&(this.response=this.responseText=H,jU7(this))};
DQ.prototype.handleResponseArrayBuffer_=function(H){this.inProgress_&&(this.response=H,jU7(this))};
DQ.prototype.handleSendFailure_=function(){this.inProgress_&&jU7(this)};
var jU7=function(H){H.readyState=4;H.fetchResponse_=null;H.currentReader_=null;H.JSC$19561_textDecoder_=null;T$y(H)};
DQ.prototype.setRequestHeader=function(H,U){this.requestHeaders_.append(H,U)};
DQ.prototype.getResponseHeader=function(H){return this.JSC$19561_responseHeaders_?this.JSC$19561_responseHeaders_.get(H.toLowerCase())||"":""};
DQ.prototype.getAllResponseHeaders=function(){if(!this.JSC$19561_responseHeaders_)return"";for(var H=[],U=this.JSC$19561_responseHeaders_.entries(),A=U.next();!A.done;)A=A.value,H.push(A[0]+": "+A[1]),A=U.next();return H.join("\r\n")};
DQ.prototype.setCredentialsMode=function(H){this.JSC$19561_credentialsMode_=H};
var T$y=function(H){H.onreadystatechange&&H.onreadystatechange.call(H)};
Object.defineProperty(DQ.prototype,"withCredentials",{get:function(){return this.JSC$19561_credentialsMode_==="include"},
set:function(H){this.setCredentialsMode(H?"include":"same-origin")}});var QUj=function(H){var U="";_.dG.forEach(H,function(A,M){U+=M;U+=":";U+=A;U+="\r\n"});
return U},Vck=function(H,U,A){if(_.dG.isEmpty(A))return H;
A=QUj(A);if(typeof H==="string")return _.vL(H,_.q2(U),A);_.rO(H,U,A);return H};vUk.prototype.isInputValid=function(){return this.isInputValid_};
vUk.prototype.decode=function(H){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("ik`"+this.JSC$19567_streamPos_+"`stream already broken`"+H);this.leftoverInput_+=H;H=Math.floor(this.leftoverInput_.length/4);if(H==0)return null;try{var U=_.G8E(this.leftoverInput_.slice(0,H*4))}catch(A){throw U=this.leftoverInput_,H=A.message,this.isInputValid_=!1,Error("ik`"+this.JSC$19567_streamPos_+"`"+H+"`"+U);}this.JSC$19567_streamPos_+=H*4;this.leftoverInput_=this.leftoverInput_.slice(H*4);return U};THk.prototype.isInputValid=function(){return this.state_!=3};
var HZh=function(H,U,A,M){H.state_=3;H.errorMessage_="The stream is broken @"+H.JSC$19570_streamPos_+"/"+A+". Error: "+M+". With input:\n"+U;throw Error(H.errorMessage_);};
THk.prototype.acceptsBinaryInput=function(){return!0};
THk.prototype.parse=function(H){function U(f){f&128&&HZh(w,d,O,"invalid tag");(f&7)!=2&&HZh(w,d,O,"invalid wire type");w.tag_=f>>>3;w.tag_!=1&&w.tag_!=2&&w.tag_!=15&&HZh(w,d,O,"unexpected tag");w.state_=1;w.length_=0;w.countLengthBytes_=0}
function A(f){w.countLengthBytes_++;w.countLengthBytes_==5&&f&240&&HZh(w,d,O,"message length too long");w.length_|=(f&127)<<(w.countLengthBytes_-1)*7;f&128||(w.state_=2,w.countMessageBytes_=0,typeof Uint8Array!=="undefined"?w.messageBuffer_=new Uint8Array(w.length_):w.messageBuffer_=Array(w.length_),w.length_==0&&W())}
function M(f){w.messageBuffer_[w.countMessageBytes_++]=f;w.countMessageBytes_==w.length_&&W()}
function W(){if(w.tag_<15){var f={};f[w.tag_]=w.messageBuffer_;w.result_.push(f)}w.state_=0}
for(var w=this,d=H instanceof Array?H:new Uint8Array(H),O=0;O<d.length;){switch(w.state_){case 3:HZh(w,d,O,"stream already broken");break;case 0:U(d[O]);break;case 1:A(d[O]);break;case 2:M(d[O]);break;default:throw Error("jk`"+w.state_);}w.JSC$19570_streamPos_++;O++}H=w.result_;w.result_=[];return H.length>0?H:null};var Qup=function(){this.errorMessage_=null;this.JSC$19573_streamPos_=0;this.base64Decoder_=new vUk;this.pbParser_=new THk};
Qup.prototype.isInputValid=function(){return this.errorMessage_===null};
var U$7=function(H,U,A){H.errorMessage_="The stream is broken @"+H.JSC$19573_streamPos_+". Error: "+A+". With input:\n"+U;throw Error(H.errorMessage_);};
Qup.prototype.acceptsBinaryInput=function(){return!1};
Qup.prototype.parse=function(H){this.errorMessage_!==null&&U$7(this,H,"stream already broken");var U=null;try{var A=this.base64Decoder_.decode(H);U=A===null?null:this.pbParser_.parse(A)}catch(M){U$7(this,H,M.message)}this.JSC$19573_streamPos_+=H.length;return U};var I$$=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19576_streamPos_=0;this.result_=[];this.statusParsed_=!1};
I$$.prototype.isInputValid=function(){return this.errorMessage_===null};
I$$.prototype.acceptsBinaryInput=function(){return!1};
I$$.prototype.parse=function(H){function U(f){w.state_=6;w.errorMessage_="The stream is broken @"+w.JSC$19576_streamPos_+"/"+d+". Error: "+f+". With input:\n";throw Error(w.errorMessage_);}
function A(){w.jsonStreamParser_=new _.AT({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function M(f){if(f)for(var J=0;J<f.length;J++){var F={};F[1]=f[J];w.result_.push(F)}}
function W(f){if(f){(w.statusParsed_||f.length>1)&&U("extra status: "+f);w.statusParsed_=!0;var J={};J[2]=f[0];w.result_.push(J)}}
for(var w=this,d=0;d<H.length;){var O;if(O=w.state_!==2){a:{for(;d<H.length;){if(!_.mi(H[d])){O=!0;break a}d++;w.JSC$19576_streamPos_++}O=!1}O=!O}if(O)return null;switch(w.state_){case 6:U("stream already broken");break;case 0:H[d]==="["?(w.state_=1,d++,w.JSC$19576_streamPos_++):U("unexpected input token");break;case 1:H[d]==="["?(w.state_=2,A()):H[d]===","||H.slice(d,d+5)=="null,"?w.state_=3:H[d]==="]"?(w.state_=5,d++,w.JSC$19576_streamPos_++):U("unexpected input token");break;case 2:O=w.jsonStreamParser_.parse(H.substring(d));
M(O);w.jsonStreamParser_.done()?(w.state_=3,O=w.jsonStreamParser_.JSC$11788_buffer_,w.JSC$19576_streamPos_+=H.length-d-O.length,H=O,d=0):(w.JSC$19576_streamPos_+=H.length-d,d=H.length);break;case 3:H[d]===","||H.slice(d,d+5)=="null,"?(w.state_=4,A(),w.jsonStreamParser_.parse("["),d+=H[d]===","?1:5,w.JSC$19576_streamPos_++):H[d]==="]"&&(w.state_=5,d++,w.JSC$19576_streamPos_++);break;case 4:O=w.jsonStreamParser_.parse(H.substring(d));W(O);w.jsonStreamParser_.done()?(w.state_=5,O=w.jsonStreamParser_.JSC$11788_buffer_,
w.JSC$19576_streamPos_+=H.length-d-O.length,H=O,d=0):(w.JSC$19576_streamPos_+=H.length-d,d=H.length);break;case 5:U("extra input after stream end")}}return w.result_.length>0?(H=w.result_,w.result_=[],H):null};var Af5=function(H){this.JSC$19579_xhr_=H;this.JSC$19579_parser_=null;this.status_=this.JSC$19579_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19579_textDecoder_=null;this.JSC$19579_eventHandler_=new _.u9(this);this.JSC$19579_eventHandler_.listen(this.JSC$19579_xhr_,"readystatechange",this.JSC$19581_readyStateChangeHandler_)},$1=function(H,U){H.status_!=U&&(H.status_=U,H.statusHandler_&&H.statusHandler_())},MQ$=function(H){H.JSC$19579_eventHandler_.removeAll();
if(H.JSC$19579_xhr_){var U=H.JSC$19579_xhr_;H.JSC$19579_xhr_=null;U.abort();U.dispose()}};
Af5.prototype.getStatus=function(){return this.status_};
Af5.prototype.JSC$19581_readyStateChangeHandler_=function(H){H=H.target;try{if(H==this.JSC$19579_xhr_)a:{var U=_.fR(this.JSC$19579_xhr_),A=this.JSC$19579_xhr_.JSC$10099_lastErrorCode_,M=this.JSC$19579_xhr_.getStatus(),W=this.JSC$19579_xhr_.getResponseText();H=[];if(this.JSC$19579_xhr_.getResponse()instanceof Array){var w=this.JSC$19579_xhr_.getResponse();w.length>0&&w[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,H=w)}if(!(U<3||U==3&&!W&&H.length==0))if(M=M==200||M==206,U==4&&(A==8?
$1(this,7):A==7?$1(this,8):M||$1(this,3)),this.JSC$19579_parser_||(this.JSC$19579_parser_=V9B(this.JSC$19579_xhr_),this.JSC$19579_parser_==null&&$1(this,5)),this.status_>2)MQ$(this);else{if(H.length>this.JSC$19579_pos_){var d=H.length;A=[];try{if(this.JSC$19579_parser_.acceptsBinaryInput())for(var O=0;O<d;O++){var f=this.JSC$19579_parser_.parse(Array.from(H[O]));f&&(A=A.concat(f))}else{f="";if(!this.JSC$19579_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("kk");this.JSC$19579_textDecoder_=
new TextDecoder}for(O=0;O<d;O++)f+=this.JSC$19579_textDecoder_.decode(H[O],{stream:U==4&&O==d-1});A=this.JSC$19579_parser_.parse(f)}H.splice(0,d);A&&this.dataHandler_(A)}catch(F){$1(this,5);MQ$(this);break a}}else if(W.length>this.JSC$19579_pos_){O=W.slice(this.JSC$19579_pos_);this.JSC$19579_pos_=W.length;try{var J=this.JSC$19579_parser_.parse(O);J!=null&&this.dataHandler_&&this.dataHandler_(J)}catch(F){$1(this,5);MQ$(this);break a}}U==4?(W.length!=0||this.hasStreamingResponseData_?$1(this,2):$1(this,
4),MQ$(this)):$1(this,1)}}}catch(F){$1(this,6),MQ$(this)}};var WXh=function(H){H=this.xhrReader_=H;var U=(0,_.i9)(this.onData_,this);H.dataHandler_=U;H=this.xhrReader_;U=(0,_.i9)(this.onStatusChange_,this);H.statusHandler_=U;this.JSC$19583_callbackMap_={};this.callbackOnceMap_={}};
_.X=WXh.prototype;_.X.on=function(H,U){var A=this.JSC$19583_callbackMap_[H];A||(A=[],this.JSC$19583_callbackMap_[H]=A);A.push(U);return this};
_.X.addListener=function(H,U){this.on(H,U);return this};
_.X.removeListener=function(H,U){var A=this.JSC$19583_callbackMap_[H];A&&_.Dc(A,U);(H=this.callbackOnceMap_[H])&&_.Dc(H,U);return this};
_.X.once=function(H,U){var A=this.callbackOnceMap_[H];A||(A=[],this.callbackOnceMap_[H]=A);A.push(U);return this};
_.X.onData_=function(H){var U=this.JSC$19583_callbackMap_.data;U&&wYj(H,U);(U=this.callbackOnceMap_.data)&&wYj(H,U);this.callbackOnceMap_.data=[]};
var wYj=function(H,U){for(var A={},M=0;M<H.length;A={message$jscomp$1008:void 0},M++)A.message$jscomp$1008=H[M],U.forEach(function(W){return function(w){try{w(W.message$jscomp$1008)}catch(d){}}}(A))};
WXh.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:XYh(this,"readable");break;case 5:case 6:case 4:case 7:case 3:XYh(this,"error");break;case 8:XYh(this,"close");break;case 2:XYh(this,"end")}};
var XYh=function(H,U){var A=H.JSC$19583_callbackMap_[U];A&&A.forEach(function(M){try{M()}catch(W){}});
(A=H.callbackOnceMap_[U])&&A.forEach(function(M){M()});
H.callbackOnceMap_[U]=[]};var iZm=function(){var H={format:"jspb"};H=H===void 0?{}:H;this.suppressCorsPreflight=H.suppressCorsPreflight||_.tr("suppressCorsPreflight",H)||!1;this.withCredentials=H.withCredentials||_.tr("withCredentials",H)||!1;this.streamInterceptors=H.streamInterceptors||[];this.unaryInterceptors=H.unaryInterceptors||[];this.workerScope=H.workerScope;this.chunkedServerStreaming=H.useFetchDownloadStreams||!1},OZp=function(H,U,A,M,W,w){w=w===void 0?{}:w;
var d=U.substring(0,U.length-W.name.length),O,f=(O=w)==null?void 0:O.signal;return bZ$(function(J){return new Promise(function(F,P){if(f==null?0:f.aborted){var n=new _.O0(1,"Aborted");n.cause=f.reason;P(n)}else{var N={},L=d$5(H,J,d);L.on("error",function(m){return void P(m)});
L.on("metadata",function(m){N=m});
L.on("data",function(m){var z=N;z=z===void 0?{}:z;F(new Kip(m,z))});
f&&f.addEventListener("abort",function(){L.cancel();var m=new _.O0(1,"Aborted");m.cause=f.reason;P(m)})}})},H.unaryInterceptors).call(H,oim(W,A,M)).then(function(J){return J.responseMessage})},ua7=function(H,U,A,M,W,w){w=w===void 0?{}:w;
return OZp(H,U,A,M,W,w)};
iZm.prototype.serverStreaming=function(H,U,A,M){var W=this,w=H.substring(0,H.length-M.name.length);return ZZh(function(d){var O=d.methodDescriptor,f=d.getMetadata(),J=flp(W,!1);f=Jfy(W,f,J,w+O.getName());var F=KXj(J,O.responseDeserializeFn,!0);d=O.requestSerializeFn(d.requestMessage);J.send(f,"POST",d);return F},this.streamInterceptors).call(this,oim(M,U,A))};
var d$5=function(H,U,A){var M=U.methodDescriptor,W=U.getMetadata(),w=flp(H,!0);H=Jfy(H,W,w,A+M.getName());A=KXj(w,M.responseDeserializeFn,!1);hB5(A,W["X-Goog-Encode-Response-If-Executable"]==="base64");U=M.requestSerializeFn(U.requestMessage);w.send(H,"POST",U);return A},flp=function(H,U){U=H.chunkedServerStreaming&&!U;
return H.workerScope||U?new _.Zm(new vih({worker:H.workerScope,streamBinaryChunks:U})):new _.Zm},Jfy=function(H,U,A,M){U["Content-Type"]="application/json+protobuf";
U["X-User-Agent"]="grpc-web-javascript/0.1";var W=U.Authorization;if(W&&cO$.has(W.split(" ")[0])||H.withCredentials)A.JSC$10099_withCredentials_=!0;if(H.suppressCorsPreflight)M=Vck(M,"$httpHeaders",U);else for(H=_.b(Object.keys(U)),W=H.next();!W.done;W=H.next())W=W.value,A.headers.set(W,U[W]);return M},KXj=function(H,U,A){if(A){A=new Af5(H);
var M=new WXh(A)}return new eB8({xhr:H,nodeReadableStream:M},U)},ZZh=function(H,U){return U.reduce(function(A,M){return function(W){return M.intercept(W,A)}},H)},bZ$=function(H,U){return U.reduce(function(A,M){return function(W){return M.intercept(W,A)}},H)};var okf=function(H){this.client_=new iZm;this.hostname_=H==void 0?H:H.replace(/\/+$/,"")};
_.X=okf.prototype;_.X.JSC$19601_depositGoogleCredential=function(H,U,A){return ua7(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",H,U||{},ni8,A)};
_.X.deleteLink=function(H,U,A){return ua7(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",H,U||{},Pe5,A)};
_.X.JSC$19601_finishOAuth=function(H,U,A){return ua7(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",H,U||{},p0y,A)};
_.X.getLink=function(H,U,A){return ua7(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",H,U||{},Li7,A)};
_.X.startLinkingSession=function(H,U,A){return ua7(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",H,U||{},tcB,A)};var FXf=[0,_.LT,1,JMf,[0,_.g4,[0,_.Eh,-1]],[0,f7m],[0,_.tg,-1],[0,f7m]];var PIY=function(){this.storage=new Map},nkh=function(H,U,A,M,W){if(!H.storage.has(U))return null;
H=_.b(H.storage.get(U));for(U=H.next();!U.done;U=H.next())if(U=U.value,!W||U.linkName===W)if(A&&U.scopes&&smm(U.scopes,A)||M&&U.capabilities&&smm(U.capabilities,M))return U;return null},NS5=function(H,U,A){if(!A)H.storage.delete(U);
else if(H.storage.has(U)){var M=H.storage.get(U).filter(function(W){return W.linkName!==A});
M.length>0?H.storage.set(U,M):H.storage.delete(U)}},smm=function(H,U){U=_.b(U);
for(var A=U.next();!A.done;A=U.next())if(!H.has(A.value))return!1;return!0};var SxX=function(){var H=_.gD("LINK_GAL_DOMAIN");this.alsDomain1p=_.gD("LINK_GAL_DOMAIN");this.alsDomain3p=H;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},pYj=function(H,U){H.apiKey=U;
return H};
SxX.prototype.build=function(){var H={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("lk");H.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("mk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("nk");H.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(H.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)H.apiKey=
this.apiKey,H.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("ok");H.oauthToken=this.oauthToken;H.alsDomain=this.alsDomain3p}H.clientXd3=this.clientXd3;H.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(H.authUser=this.authUser);this.bucket!==void 0&&(H.bucket=this.bucket);this.completionUrl!==void 0&&(H.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(H.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(H.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(H.locale=this.locale);this.localStorage!==void 0&&(H.localStorage=this.localStorage);H.loggerType=this.loggerType;H.clientEnvironment=this.clientEnvironment;H.colorScheme=this.colorScheme;H.showCloseOption=this.showCloseOption;return H};var uG=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(uG,_.fN);var LXh=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(LXh,_.fN);var RZh=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(RZh,_.fN);var f6=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(f6,_.fN);var Ek8=function(H){return _.Wn(H,1)};var m$5=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(m$5,_.fN);var XC5=_.a5(m$5),Zs=[1,2,3,4,5];var Acj=function(H){try{return XC5(H)}catch(U){return null}},gk5=function(){},MpY=function(H,U){switch(_.To(U,Zs)){case 4:return(U=_.io(U,RZh,4,Zs))&&H.logStateTransition(_.Wn(U,1)),!0;
case 5:return(U=_.io(U,LXh,5,Zs))&&H.logInternalEvent(_.Wn(U,1)),!0}return!1},iq8=function(H){switch(H){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.U$(H)}};var Hqh=function(H,U){var A=this;this.validator=H;this.messageListener=U;this.dismissCallback=function(){alm(A,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19630_receiveMessage=function(M){M.type==="message"&&(M=M.event_,M!==null&&(new URL(A.iframe.src)).origin===M.origin&&A.validator(M.data,M.origin)&&!A.messageListener(M.data)&&(A.JSC$19630_resolveCb!==void 0&&A.JSC$19630_resolveCb(M.data),x$j(A)))}},wCB=function(H,U,A){H.uiHandler!==void 0&&alm(H,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(M,W){H.JSC$19630_resolveCb=M;H.JSC$19630_rejectCb=W;H.iframe=document.createElement("iframe");_.wY(H.iframe,U);H.uiHandler=A.displayContent(H.iframe,H.dismissCallback);_.Rc(window,"message",H.JSC$19630_receiveMessage,!1,H)})},alm=function(H,U){H.JSC$19630_rejectCb!==void 0&&H.JSC$19630_rejectCb(U);
x$j(H)},x$j=function(H){H.uiHandler!==void 0&&H.uiHandler.hideContent();
_.WS(window,"message",H.JSC$19630_receiveMessage,!1,H);H.JSC$19630_resolveCb=void 0;H.JSC$19630_rejectCb=void 0;H.uiHandler=void 0;H.iframe=void 0};var zZp=function(H){if(H===2){var U;H=((U=window)==null?0:U.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return H},WH5=function(H){H=zZp(H);
switch(H){case 0:return"light";case 1:return"dark";default:_.U$(H)}};var Uhp=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),CIj=function(H,U){this.JSC$19642_linkingSession=H;this.noticeConfig=U;this.displayInfoMap=new Map;var A=new Map;if(_.hI(this.JSC$19642_linkingSession,my5,7))for(H=_.qK(this.JSC$19642_linkingSession,my5,7),H=_.c8(H,Eij,1,_.y9()),H=_.b(H),U=H.next();!U.done;U=H.next())U=U.value,A.set(_.Wn(U,1),_.iOc(_.qK(U,_.YJ8,3)));if(A.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){U=this.noticeConfig.enabledDataUsageNoticeUis;H=U.has(0)?A.get(1):void 0;U=U.has(1)?A.get(2):void 0;A=H!==void 0&&U!==void 0?A.get(3):void 0;var M=this.noticeConfig.nestedOrigins;var W=new m$5;var w=new uG;W=_.tR(W,2,Zs,w);w=new m$5;var d=new uG;w=_.tR(w,3,Zs,d);d=[];H!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:H,lastEvent:W,nestedOrigins:M}]),d.push({trustedUrl:H,lastEvent:W,nestedOrigins:M}));U!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:U,lastEvent:w,nestedOrigins:M}]),d.push({trustedUrl:U,lastEvent:w,nestedOrigins:M}));A!==void 0?this.displayInfoMap.set(3,[{trustedUrl:A,lastEvent:w,nestedOrigins:M}]):this.displayInfoMap.set(3,d)}};var tQB=function(H){var U=new PIY;this.galService=H;this.galCache=U};
tQB.prototype.getLink=function(H){var U=H.serviceId;var A=H.scopes;var M=H.capabilities;var W=H.linkName;var w=this,d;return _.u(function(O){if(M!==void 0&&A!==void 0)throw Error("pk");d=nkh(w.galCache,U,A,M,W);return d!==null?O.return(d):O.return(w.galService.getLink({serviceId:U,sessionId:Math.floor(Math.random()*2147483648),scopes:A,capabilities:M,linkName:W}).then(function(f){f=Zq5(f);var J=w.galCache;J.storage.has(U)?J.storage.get(U).push(f):J.storage.set(U,[f]);return f}))})};
tQB.prototype.deleteLink=function(H,U,A){var M=this;return _.u(function(W){NS5(M.galCache,H,A);return W.return(M.galService.deleteLink({serviceId:H,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:U,linkName:A}).then(function(){return!0}))})};var yf8=function(H,U){var A=this;this.validator=H;this.msgHandler=U;this.closedPopupTimeout=this.JSC$19664_rejectCb=this.JSC$19664_resolveCb=this.popup=null;this.JSC$19664_receiveMessage=function(M){if(M!==null&&(M=M.event_,M.source===A.popup)){var W=M.data;if(A.validator(W,M.origin)){var w;(w=A.msgHandler)!=null&&w.call(A,W)||(A.JSC$19664_resolveCb!==null&&A.JSC$19664_resolveCb(W),cfY(A))}}}};
yf8.prototype.open=function(H,U){var A=this;this.popup!==null&&BSk(this);return new Promise(function(M,W){A.JSC$19664_resolveCb=M;A.JSC$19664_rejectCb=W;A.popup=_.iL(window,H,"",U);_.Rc(window,"message",A.JSC$19664_receiveMessage,!1,A);rfm(A)})};
var BSk=function(H,U){H.JSC$19664_rejectCb!==null&&H.JSC$19664_rejectCb(U);cfY(H)},cfY=function(H){H.closedPopupTimeout&&(H.closedPopupTimeout.cancel(),H.closedPopupTimeout=null);
H.popup&&H.popup.close();_.WS(window,"message",H.JSC$19664_receiveMessage,!1,H);H.popup=null;H.JSC$19664_resolveCb=null;H.JSC$19664_rejectCb=null},rfm=function(H){H.closedPopupTimeout=_.NDw(100).then(function(){H.popup?H.popup.closed?eZ8(H):rfm(H):BSk(H,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},eZ8=function(H){H.closedPopupTimeout=_.NDw(100).then(function(){BSk(H,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var D$h=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),$$f=function(H,U,A,M,W,w,d,O,f,J){var F=this;this.serviceId=H;this.sessionId=U;this.galService=A;this.oauthDetails=M;this.galLogger=W;this.interactionMode=w;this.redirectServiceUrl=d;this.consentLanguageKeys=O;this.dynamicUrlParameters=f;this.partnerConfigMinReadTimestamp=J;this.started=!1;this.JSC$19670_dataValidator=function(P,
n){var N=D$h.has(n);N||F.redirectServiceUrl===void 0||(N=F.redirectServiceUrl===n);return N?P.sentinel==="gdi":!1}};
$$f.prototype.complete=function(){var H=this,U;return _.u(function(A){if(H.interactionMode!==1)return A.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));U=pCy.getRedirectStateFromUri();return U===null?A.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):A.return(llh(H,U))})};
$$f.prototype.start=function(){var H=this,U;return _.u(function(A){if(H.started)return A.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Mn(H.oauthDetails,1))return A.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(H.interactionMode===1)return pCy.setLocation(_.Mn(H.oauthDetails,1)),A.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));H.started=!0;H.galLogger.logStateTransition(5);
U=pCy.getPostMessagePopup(H.JSC$19670_dataValidator);return A.return(U.open(_.Mn(H.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(M){H.started=!1;var W=H.galLogger;if((M==null?void 0:M.error)!==void 0)throw W.logInternalEvent(59),Error("qk");if((M==null?void 0:M.redirect_state)===void 0)throw W.logInternalEvent(131),Error("rk");return llh(H,M.redirect_state)}).catch(function(M){H.started=
!1;
return M.errorCode!==void 0?{statusCode:M.errorCode,statusMessage:M.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var llh=function(H,U){return _.u(function(A){return A.return(GVX(H.galService,{serviceId:H.serviceId,sessionId:H.sessionId,dynamicUrlParameters:H.dynamicUrlParameters,redirectState:U,consentLanguageKeys:H.consentLanguageKeys,partnerConfigMinReadTimestamp:H.partnerConfigMinReadTimestamp}).then(function(M){var W={statusCode:1,link:Zq5(M.getLink())};u78(_.vu(M,3))!==void 0&&(W.callerState=u78(_.vu(M,3)));_.q$c(M,4,N$$,OK8).size>0&&(W.redirectUriParams=new Map(Array.from(_.q$c(M,4,N$$,OK8).entries()).map(function(w){var d=
_.b(w);w=d.next().value;var O=d.next().value;d=[];var f=d.concat;O=_.IY(O,1,_.m5,_.y9());return[w,f.call(d,_.vI(O))]})));
H.galLogger.logInternalEvent(134);return W}))})},pCy={getPostMessagePopup:function(H){return new yf8(H)},
getRedirectStateFromUri:function(){var H=_.yX(pCy.getLocation()).fragment_;return(new _.et(H)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(H){_.tGh(window.location,_.j3(H))},
createOAuthFlow:function(H,U){return new $$f(H.serviceId,H.sessionId,H.galService,U,H.galLogger,H.interactionMode,H.redirectServiceUrl,H.consentLanguageKeys,H.dynamicUrlParameters,H.partnerConfigMinReadTimestamp)}};var Yxh=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Yxh,_.fN);var qxh=_.a5(Yxh);var hZh=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),kVh=function(H,U,A,M,W,w,d,O,f){var J=this;this.serviceId=H;this.sessionId=U;this.galService=A;this.gsiWebFlowDetails=M;this.colorScheme=W;this.showCloseOption=w;this.galLogger=d;this.interactionMode=O;this.redirectServiceUrl=f;this.started=!1;this.JSC$19683_dataValidator=function(F,P){var n=hZh.has(P);n||J.redirectServiceUrl===
void 0||(n=J.redirectServiceUrl===P);return n?F.sentinel==="gal":!1};
this.logEventProcessor=function(F){return F.result?(F=Acj(F.result))?MpY(J.galLogger,F):!1:!1}};
kVh.prototype.complete=function(){var H=this,U,A;return _.u(function(M){if(H.interactionMode!==1)return M.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));U=R1j.getRedirectStateFromUri();if(U===void 0)return H.galLogger.JSC$19622_logErrorEvent(131),M.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return A=vk$(H,U),M.return(TS$(H,A))}catch(W){return M.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
kVh.prototype.start=function(){var H=this,U;return _.u(function(A){if(H.started)return A.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Mn(H.gsiWebFlowDetails,1))return A.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(H.interactionMode===1)return R1j.setLocation(jmh(H,_.Mn(H.gsiWebFlowDetails,1))),A.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
H.started=!0;U=R1j.getPostMessagePopup(H.JSC$19683_dataValidator,H.logEventProcessor);return A.return(U.open(jmh(H,_.Mn(H.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(M){H.started=!1;if((M==null?void 0:M.result)===void 0)throw H.galLogger.JSC$19622_logErrorEvent(131),Error("rk");M=vk$(H,M.result);return TS$(H,M)}).catch(function(M){H.started=!1;
return M.errorCode!==void 0?{statusCode:M.errorCode,statusMessage:M.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var jmh=function(H,U){H=["result_channel",H.interactionMode===1?"2":"1","color_scheme",WH5(H.colorScheme),"show_close_option",H.showCloseOption];return J0Y(U,H)},TS$=function(H,U){if(U!==null&&_.hI(U,f6,2)){var A,M=U==null?void 0:(A=_.qK(U,f6,2))==null?void 0:_.Wn(A,2);
M&&H.galLogger.JSC$19622_logErrorEvent(iq8(M));return Ek8(_.qK(U,f6,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 H.galService.getLink({serviceId:H.serviceId,sessionId:H.sessionId,consistencyKey:_.Mn(U,1)}).then(function(W){W=Zq5(W);H.galLogger.logInternalEvent(134);return{statusCode:1,link:W}})},vk$=function(H,U){U=qxh(U);
if(!_.hI(U,f6,2)&&_.Mn(U,1)==="")throw H.galLogger.JSC$19622_logErrorEvent(5),Error("sk");return U},R1j={getPostMessagePopup:function(H,U){return new yf8(H,U)},
getRedirectStateFromUri:function(){return _.BJ(_.yX(R1j.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(H){_.tGh(window.location,_.j3(H))},
createStreamlinedFlow:function(H,U){return new kVh(H.serviceId,H.sessionId,H.galService,U,H.colorScheme,H.showCloseOption,H.galLogger,H.interactionMode,H.redirectServiceUrl)}};var z18=function(H){this.storage=(H=H?_.Jj("GAL"):_.Oq7("GAL"))?new _.di(H):null};
z18.prototype.getSession=function(H){if(this.storage!==null)try{var U=this.storage.get("SAVED_SESSION");if(U===void 0)return null;if(U.serviceId===H)return U}catch(A){}return null};var Ilp=function(){};
_.R(Ilp,gk5);Ilp.prototype.logStateTransition=function(){};
Ilp.prototype.logInternalEvent=function(){};
Ilp.prototype.JSC$19622_logErrorEvent=function(){};var Qm5=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Qm5,_.fN);Qm5.prototype.getCompletionUrl=function(){return _.Mn(this,15)};var l2=function(H,U,A,M,W,w){this.serviceId=H;this.environment=U;this.sessionId=A;this.colorSchemeSelected=M;this.colorThemeDisplayed=W;this.JSC$19696_transport=w;this.currentState=1};
_.R(l2,gk5);l2.prototype.logStateTransition=function(H){var U=VQj(this);U=_.hj(U,3,this.currentState);U=_.hj(U,1,H);this.currentState=H;H=Anp(1);this.dispatch(U,H)};
l2.prototype.logInternalEvent=function(H){H=Anp(H);this.dispatch(VQj(this),H)};
l2.prototype.JSC$19622_logErrorEvent=function(H){var U=VQj(this);U=_.hj(U,1,10);H=Anp(H);this.dispatch(U,H)};
var VQj=function(H){var U=new Qm5;U=_.hj(U,1,H.currentState);U=_.Mu(U,7,H.serviceId);var A,M;var W=((A=window)==null?0:(M=A.location)==null?0:M.href)?_.yX(window.location.href).JSC$10335_domain_:"NO_PACKAGE_NAME";A=_.Mu(U,8,W);A=_.hj(A,6,H.environment);A=_.Mu(A,5,"100");A=_.hj(A,11,H.colorSchemeSelected);return _.hj(A,12,H.colorThemeDisplayed)};
l2.prototype.dispatch=function(H,U){U===void 0&&(U=new _.vQ);var A=U;H=H.serialize();A=_.Mu(A,8,H);_.Xx(A,12,this.sessionId);this.JSC$19696_transport.dispatch(U)};var H$h=function(H,U){this.loggerType=H;this.sessionIndex=U!=null?U:0},UJX;
H$h.prototype.create=function(H,U,A,M,W){switch(this.loggerType){case 0:return new Ilp;case 1:return UJX||(UJX=(new _.hD(555,this.sessionIndex.toString())).build()),new l2(H,U,A,M,W,UJX);default:_.U$(this.loggerType,"unknown logger type")}};var EOh=[6,2,3,1],rcf=new Map([[4,1],[1,6],[2,2],[3,3]]),oOm={statusCode:7,statusMessage:"Failed to create flow object"},aYm=function(H,U,A,M,W,w,d,O,f,J){this.serviceId=H;this.sessionId=U;this.config=A;this.galService=M;this.JSC$19703_linkingSession=W;this.googleScopes=w;this.callerState=d;this.consentLanguageKeys=O;this.dynamicUrlParameters=f;this.partnerConfigMinReadTimestamp=J;this.currentFlow=0;M=this.JSC$19703_linkingSession;W=new Set;_.hI(M,S_j,1)&&W.add(1);_.hI(M,aA$,2)&&_.hI(M,LHh,6)&&W.add(2);
_.hI(M,gi8,3)&&_.hI(M,LHh,6)&&W.add(3);_.hI(M,RBy,4)&&W.add(6);this.supportedFlows=W;M=A.loggerType;W=A.clientEnvironment;a:{w=A.colorScheme;switch(w){case 0:w=1;break a;case 1:w=2;break a;case 2:w=3;break a;default:_.U$(w)}w=void 0}a:{d=A.colorScheme;d=zZp(d);switch(d){case 0:d=1;break a;case 1:d=2;break a;default:_.U$(d)}d=void 0}this.galLogger=(new H$h(M,A.authUser)).create(H,W,U,w,d)},Woh=function(H){return new Promise(function(U){var A,M,W,w,d,O,f,J,F,P;
return _.u(function(n){switch(n.nextAddress){case 1:A=mh$(H.currentFlow,H.supportedFlows),M=!1,W=new CIj(H.JSC$19703_linkingSession,H.config.dataUsageNoticeConfig);case 2:if(A===void 0){n.jumpTo(4);break}_.zj(n,5);var N=W,L=A,m=void 0;M?L===1&&(m=N.displayInfoMap.get(2)):L===2||L===3?m=N.displayInfoMap.get(1):L===1&&(m=N.displayInfoMap.get(3));w=m?m:[];d=H.consentLanguageKeys;O=_.b(w);f=O.next();case 7:if(f.done)return H.currentFlow=A,n.yield(PE8(AA5(H,d)),11);J=f.value;return n.yield(bq7(J,H.config.dataUsageNoticeConfig.uiAdapter,
H.config.colorScheme,H.galLogger),10);case 10:F=n.yieldResult;if(F.statusCode!==1)return MR8(H),U(sEj({statusCode:F.statusCode,statusMessage:F.statusMessage},H.callerState)),n.return();F.consentLanguageKeys!==void 0&&(d=F.consentLanguageKeys);f=O.next();n.jumpTo(7);break;case 11:P=n.yieldResult;if(P.statusCode!==10)return P.statusCode!==6&&MR8(H),P.statusCode!==1&&H.callerState!==void 0&&(P.callerState=H.callerState),U(P),n.return();_.xD(n,6);break;case 5:_.eG(n);case 6:A=mh$(H.currentFlow,H.supportedFlows);
M=!0;n.jumpTo(2);break;case 4:MR8(H),U(sEj({statusCode:12,statusMessage:"Linking failed"},H.callerState)),_.DO(n)}})})},MR8=function(H){CE5(H.serviceId,H.config.localStorage);
H.currentFlow=0},ycf=function(H,U,A){H.currentFlow=U;
return nO5(AA5(H,A)).then(function(M){return M.statusCode===10&&H.config.interactionMode===1&&mh$(H.currentFlow,H.supportedFlows)!==void 0?Woh(H):M})},AA5=function(H,U){return{flowParams:{serviceId:H.serviceId,
sessionId:H.sessionId,galService:H.galService,galLogger:H.galLogger,interactionMode:H.config.interactionMode,redirectServiceUrl:H.config.redirectServiceUrl,colorScheme:H.config.colorScheme,consentLanguageKeys:U,dynamicUrlParameters:H.dynamicUrlParameters,showCloseOption:H.config.showCloseOption,partnerConfigMinReadTimestamp:H.partnerConfigMinReadTimestamp},currentFlow:H.currentFlow,config:H.config,session:H.JSC$19703_linkingSession,googleScopes:H.googleScopes,callerState:H.callerState}};var Dhm=function(H,U){this.config=H;this.galService=U.getService();this.JSC$19716_galRepository=U.JSC$19734_galRepository};
Dhm.prototype.getLink=function(H,U){return wcY(this,H,U)};
var wcY=function(H,U,A){return H.JSC$19716_galRepository.getLink({serviceId:U,scopes:void 0,capabilities:void 0,linkName:A}).then(function(M){return{statusCode:1,link:M}}).catch(function(M){return{statusCode:e1Y(M.code),
statusMessage:M.message}})};
Dhm.prototype.deleteLink=function(H,U){return this.JSC$19716_galRepository.deleteLink(H,this.config.accountLinkingEntryPoint,U).then(function(){return{statusCode:1}}).catch(function(A){return{statusCode:e1Y(A.code),
statusMessage:A.message}})};
Dhm.prototype.startLinkingSession=function(H){var U=H.serviceId;var A=H.sessionId;return xhy({serviceId:U,sessionId:A!==void 0?A:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:H.loginHint,callerState:H.callerState,consentLanguageKeys:H.consentLanguageKeys,linkName:H.linkName,dynamicUrlParameters:H.dynamicUrlParameters,partnerConfigMinReadTimestamp:H.partnerConfigMinReadTimestamp})};var Gh=function(H,U,A,M,W,w,d){this.apiKey=U;this.authUser=A;this.oauthToken=M;this.bucket=W;this.locale=w;this.galSdkEventHandler=d;if(M===void 0){if(U===void 0)throw Error("tk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new okf(H)};
Gh.prototype.deleteLink=function(H){var U=H.serviceId;var A=H.sessionId;var M=H.accountLinkingEntryPoint;var W=H.linkName;var w=this,d;return _.u(function(O){var f=(new y7).setHeader(w.getHeader(A));var J=Xc5({serviceId:U,linkName:W});f=_.CN(f,2,J);d=_.d4(f,3,M);return O.return(w.makeRequest(w.galServiceClient.deleteLink,d,[1,3],[2,4]))})};
var GVX=function(H,U){var A=U.serviceId;var M=U.sessionId;var W=U.dynamicUrlParameters;var w=U.redirectState;var d=U.consentLanguageKeys;var O=U.partnerConfigMinReadTimestamp;var f;return _.u(function(J){var F=(new rw).setHeader(H.getHeader(M,W));F=_.Pl(F,2,A);f=_.Pl(F,4,w);d!==void 0&&_.Pl(f,5,d);O!==void 0&&_.CN(f,6,O);return J.return(H.makeRequest(H.galServiceClient.JSC$19601_finishOAuth,f,[1,3],[2,4]))})};
Gh.prototype.getLink=function(H){var U=H.serviceId;var A=H.sessionId;var M=H.scopes;var W=H.capabilities;var w=H.consistencyKey;var d=H.linkName;var O=this,f;return _.u(function(J){var F=(new eK).setHeader(O.getHeader(A)),P=Xc5({serviceId:U,scopes:M,capabilities:W,linkName:d});f=_.CN(F,2,P);w!==void 0&&(F=uTB(),F=_.Pl(F,2,w),_.CN(f,3,F));return J.return(O.makeRequest(O.galServiceClient.getLink,f,[1,3],[2,4]))})};
var N1y=function(H,U){var A=U.serviceId;var M=U.sessionId;var W=U.googleScopes;var w=U.consistencyKey;var d;return _.u(function(O){var f=(new Bz).setHeader(H.getHeader(M));f=_.Pl(f,2,A);var J=Array.from(W.values());f=_.MS(f,3,J,_.L8);J=uTB();J=_.Pl(J,2,w);d=_.CN(f,4,J);return O.return(H.makeRequest(H.galServiceClient.JSC$19601_depositGoogleCredential,d,[1,3],[2,4]))})};
Gh.prototype.startLinkingSession=function(H){var U=H.serviceId;var A=H.sessionId;var M=H.scopes;var W=H.capabilities;var w=H.loginHint;var d=H.supportedFlows;var O=H.completionUrl;var f=H.usePingPong;var J=H.twoWayLinking;var F=H.accountLinkingEntryPoint;var P=H.callerState;var n=H.consentLanguageKeys;var N=H.googleScopes;var L=H.dataUsageNoticeConfig;var m=H.linkName;var z=H.dynamicUrlParameters;var c=H.partnerConfigMinReadTimestamp;var C=this,v,Y;return _.u(function(D){if(W!==void 0&&M!==void 0)throw Error("pk");
var h=(new Ce7).setHeader(C.getHeader(A,z));v=_.Pl(h,2,U);m!==void 0&&_.Pl(v,14,m);if(W!==void 0){h=v;var T=Array.from(W.values());_.MS(h,5,T,_.L8)}else M!==void 0&&(h=v,T=Array.from(M.values()),_.MS(h,3,T,_.L8));O!==void 0&&_.Pl(v,6,O);f!==void 0&&_.AP(v,15,f);d!==void 0&&(h=v,T=Array.from(d.values()),_.MS(h,4,T,_.bm));if(J!==void 0){if(J&&(!N||N.size===0))throw Error("uk");_.AP(v,8,J)}F!==void 0&&_.d4(v,9,F);w!==void 0&&_.Pl(v,13,w);P!==void 0&&(h=v,T=(new TextEncoder).encode(P),_.Wy(h,12,_.tH(T,
!1),_.Ck()));n!==void 0&&_.Pl(v,16,n);c!==void 0&&_.CN(v,18,c);if(L!==void 0&&L.size>0||N!==void 0&&N.size>0)Y=new zB8,N!==void 0&&N.size>0&&(h=Y,T=Array.from(N.values()),_.MS(h,1,T,_.L8)),L!==void 0&&(L.has(0)&&_.QY4(Y,2,_.bm,1,_.um),L.has(1)&&_.QY4(Y,2,_.bm,2,_.um)),_.CN(v,17,Y);return D.return(C.makeRequest(C.galServiceClient.startLinkingSession,v,[1],[2]))})};
Gh.prototype.getMetadata=function(){var H=this,U,A;return _.u(function(M){U={};H.useFpa?(U["X-Goog-Api-Key"]=H.apiKey,U["X-Goog-AuthUser"]=H.authUser!==void 0?H.authUser.toString():"0",(A=_.cyF([]))&&(U.Authorization=A)):U.Authorization="Bearer "+H.oauthToken;H.locale&&(U["accept-language"]=H.locale);return M.return(U)})};
Gh.prototype.makeRequest=function(H,U,A,M){var W=this,w;return _.u(function(d){if(d.nextAddress==1)return d.yield(W.getMetadata(),2);w=d.yieldResult;i$5(W,A);return d.return(H.bind(W.galServiceClient)(U,w).finally(function(){i$5(W,M)}))})};
var i$5=function(H,U){H.galSdkEventHandler!==void 0&&U.forEach(function(A){H.galSdkEventHandler.onEvent(A)})};
Gh.prototype.getHeader=function(H,U){var A=new CL;H=_.Wy(A,2,_.Zk(H),0);H=_.d4(H,5,3);U=_.MS(H,8,U,_.L8);this.bucket!==void 0&&_.Pl(U,1,this.bucket);return U};
var Xc5=function(H){var U=H.serviceId;var A=H.scopes;var M=H.capabilities;H=H.linkName;if(M!==void 0&&A!==void 0)throw Error("pk");var W=new dyX;U=_.Pl(W,1,U);M!==void 0?(A=Array.from(M.values()),_.MS(U,5,A,_.L8)):A!==void 0&&(A=Array.from(A.values()),_.MS(U,3,A,_.L8));H!==void 0&&_.Pl(U,6,H);return U};var $hh=function(H){this.galService=new Gh(H.alsDomain,H.apiKey,H.authUser,H.oauthToken,H.bucket,H.locale,H.galSdkEventHandler);this.JSC$19734_galRepository=new tQB(this.galService)};
$hh.prototype.getService=function(){return this.galService};var b$Y=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(b$Y,_.fN);var dJ7=function(H){var U=new b$Y;return _.hj(U,1,H)};
b$Y.prototype.setErrorMessage=function(H){return _.Mu(this,2,H)};var O$X=[0,_.CT,_.RT,_.CT];var Y1=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Y1,_.fN);var ujm=[0,[1,2,3],_.aT,[0,_.Pvg,Z3B,-1],_.aT,[0,uFf,-1],_.m9];var Z$B=[0,_.Sm,1,_.CT,_.RT,-1,1,_.xF,_.sh,_.CT,-1,ujm];var fJ7=[0,_.CT,[0,_.xF,_.sh,[0,_.RT]],_.pT,[0,_.CT,-1]];var nL=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(nL,_.fN);var JA$=[0,_.RT,_.CT,-2,_.Sm,_.CT,_.Sm,_.CT,-2,1,_.pT];var Ko7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Ko7,_.fN);var ogf=[0,_.Sm];var Fom=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Fom,_.fN);var PY7=[0,_.CT,fJ7,ogf,JA$,Z$B];var xbp=_.Ej(Fom,PY7);var stm=[0,FXf];var rJy=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(rJy,_.fN);var ngh=[0,[1,3],KM$,_.CT,KM$];var Bp8=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Bp8,_.fN);var Nk5=[0,_.CT];var S7p=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(S7p,_.fN);var e0Y=function(H){return _.io(H,b$Y,2,sL)},pch=function(H){var U=new S7p;
return _.tR(U,2,sL,H)},sL=[1,
2];var Lo5=[0,sL,_.aT,Nk5,_.aT,O$X,_.g4,ngh,1,_.CT,stm];var RUB=[0,1,[0,[1,2,3],_.aT,[0],_.aT,[0,nG5],_.aT,[0,FXf]]];var Egy=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Egy,_.fN);var ggk=function(H){var U=new Egy;return _.tR(U,3,mJy,H)},mJy=[2,
3];var aJ$=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(aJ$,_.fN);var xJy=function(H,U){return _.CN(H,2,U)},zUh=function(H,U){return _.CN(H,8,U)},CYB=function(H,U){return _.CN(H,3,U)};var tRy=[0,_.CT,Lo5,PY7,_.cQ,[0,[5,6,7],[0,_.CT,-2],[0,_.Sm,_.CT,_.RT],[0,ujm],[0,_.RT,_.CT,-1,_.tJ,_.CT],_.aT,[0,[0,_.Sm],_.CT,-1],_.aT,[0,[3,4],_.CT,-1,_.aT,[0,[0,_.CT,_.pT]],_.aT,[0,[0,[0,[1,2,3],_.aT,[0],_.aT,[0],_.aT,[0]]]]],_.aT,[0,_.CT]],_.cQ,-1,[0,mJy,_.CT,_.aT,Nk5,_.aT,O$X,_.g4,ngh,[0,FXf],RUB]];var cA7=_.Ej(aJ$,tRy),yAk=_.mO(tRy);var Bk$=function(){_.XG.call(this)};
_.R(Bk$,_.XG);Bk$.prototype.init=function(){};
new Bk$;_.x4();var rAy=_.NP(["data-"]),eU7=_.NP(["aria-"]),DJ$=_.NP(["aria-"]),qc=function(H,U){this.isLatencyMeasurementExperiment=H===void 0?!1:H;this.enableDialogA11yFix=U===void 0?!1:U;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.TGE(_.Mr.location.href)},Cdp=function(H,U){H.onConsentPrimitiveShownCallback=U},$JB=function(H,U){return H.overriddenIframeLoadTimeout?H.overriddenIframeLoadTimeout:U!==void 0?U:5E3},cJj=function(H){if(H.prewarmPromise!==void 0)return H.prewarmPromise;
H.prewarmPromise=new Promise(function(U,A){hl(H,1);lJf(H,GJX(H,!0),Y7X(H));H.iframe?H.prewarmChannel||q7y(H,H.iframe,U):A(Error("vk"))});
H.prewarmPromise.finally(function(){H.prewarmPromise=void 0});
return H.prewarmPromise};
qc.prototype.showPrimitive=function(){var H=this;if(this.consentPromise!==void 0)return this.consentPromise;var U=Date.now();hUX(this,U);this.consentPromise=new Promise(function(A,M){hl(H,0,U);var W=H.isDarkTheme();H.isLatencyMeasurementExperiment||H.initialLoadingStrategy===1||H.initialLoadingStrategy===2||(H.loadingBar||(H.loadingBar=q_f(getComputedStyle(document.body).direction==="rtl",W),H.loadingBar.style.position="fixed",H.loadingBar.style.zIndex="15000"),document.body.appendChild(H.loadingBar));
lJf(H,GJX(H),Y7X(H));H.iframe?H.channel||kJX(H,H.iframe,A,M):(vg$(H),M(Error("vk")))});
this.consentPromise.finally(function(){H.consentPromise=void 0});
return this.consentPromise};
var kJX=function(H,U,A,M){var W,w;_.u(function(d){switch(d.nextAddress){case 1:hl(H,3);W=!1;setTimeout(function(){if(!W){vg$(H);Tk$(H);jtX(H);var O=dJ7(7).setErrorMessage("Timeout connecting to iframe");A(zUh(xJy(new aJ$,pch(O)),ggk(O)))}},$JB(H,IJ7(H)));
if(!H.prewarmPromise){d.jumpTo(2);break}_.zj(d,3);return d.yield(H.prewarmPromise,5);case 5:_.xD(d,2);break;case 3:_.eG(d),w=dJ7(4).setErrorMessage("Error while prewarming."),A(zUh(xJy(new aJ$,pch(w)),ggk(w)));case 2:H.prewarmChannel&&H.prewarmChannel.send(yAk(CYB(new aJ$,H.consentPrimitiveRequest))),H.channel=_.Bn({destination:H.win,iframe:U,origin:Qty(H),channelName:"cpw",onEstablished:function(){W=!0;vg$(H);H.isLatencyMeasurementExperiment||(H.JSC$19763_previousBodyOverflow=document.body.style.overflow,
H.JSC$19763_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,H.JSC$19763_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",H.enableDialogA11yFix&&window.addEventListener("blur",H.focusChangeListener));var O=H.iframe;O.style.bottom="0";O.style.position="fixed";O.style.right="0";O.style.border="none";O.style.left="0";O.style.top=
"0";O.style.zIndex="5000";O.style.pointerEvents="";O.style.visibility="";H.initialLoadingStrategy===2||H.initialLoadingStrategy===3?hl(H,4):hl(H,6);var f;(f=H.onConsentPrimitiveShownCallback)==null||f.call(H)},
onMessage:function(O){O=cA7(O.data);switch(_.Wn(O,1)){case 1:Tk$(H);var f=h1m(_.qK(O,_.wz,7));f&&(H.initialLoadingStrategy!==2&&H.initialLoadingStrategy!==3||hl(H,6,f),hl(H,5,f));if(f=h1m(_.qK(O,_.wz,6)))hl(H,7,f),hl(H,8);var J,F;((J=_.qK(O,S7p,2))==null?void 0:_.To(J,sL))!==0&&((F=_.qK(O,Egy,8))==null?void 0:_.To(F,mJy))!==0||M(Error("wk"));A(O);break;case 2:jtX(H)}}}),_.DO(d)}})},q7y=function(H,U,A){H.prewarmChannel=_.Bn({destination:H.win,
iframe:U,origin:Qty(H),channelName:"pwcp",onEstablished:function(){hl(H,2);A()}})},Qty=function(H){var U=_.e3(H.src).toString();
return U&&U.indexOf("://")<0&&U.indexOf("//")!==0?H.origin:_.TGE(U)},GJX=function(H,U){U=U===void 0?!1:U;
var A,M=new Map([["origin",H.origin],["hl",(A=VRp(H))!=null?A:null]]);U&&M.set("pw","1");U=_.b([["cpr",H.consentPrimitiveRequest.serialize()]]);for(A=U.next();!A.done;A=U.next()){var W=_.b(A.value);A=W.next().value;W=W.next().value;M.set(A,W)}H.isDarkTheme()&&M.set("color_scheme","dark");return _.Rk(H.src,M)},vg$=function(H){H.isLatencyMeasurementExperiment||H.loadingBar&&document.body.removeChild(H.loadingBar)};
qc.prototype.getSrc=function(){var H=_.es(this.origin),U;var A=(U=_.qK(this.consentPrimitiveRequest,Ko7,3))==null?void 0:_.B8(U,1);U="consent.google.com";A=A?"/u/"+encodeURIComponent(A.toString()):"";(H==null?0:H.endsWith("youtube.com"))?U="consent.youtube.com":(H=H==null?void 0:H.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(U="consent.google."+((H[1]?"co.":"")+encodeURIComponent(H[2])));return _.rM("https://"+U+"/signedin"+A+"/landing")};
var lJf=function(H,U,A){H.iframe||(H.iframe=document.createElement("iframe"),H.iframe.style.width="100%",H.iframe.style.height="100%",A!==112496729&&(H.iframe.style.colorScheme="auto"),H.isLatencyMeasurementExperiment&&(H.iframe.style.display="none"),_.wY(H.iframe,U),H.iframe.setAttribute("jsname","C5o1O"),H9Y(H.iframe),document.body.appendChild(H.iframe))},H9Y=function(H){H.style.bottom="-200vh";
H.style.position="fixed";H.style.right="-200vw";H.style.border="";H.style.left="";H.style.top="";H.style.zIndex="";H.style.pointerEvents="none";H.style.visibility="hidden"},Tk$=function(H){H.iframe&&(H.isLatencyMeasurementExperiment||(H.JSC$19763_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=H.JSC$19763_previousHtmlOverscroll),H.JSC$19763_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=H.JSC$19763_previousBodyOverscroll),H.JSC$19763_previousBodyOverflow!==
void 0&&(document.body.style.overflow=H.JSC$19763_previousBodyOverflow),H.enableDialogA11yFix&&U5j(H,!1)),H9Y(H.iframe))};
qc.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(U5j(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var U5j=function(H,U){var A,M,W=(A=H.iframe)==null?void 0:(M=A.parentElement)==null?void 0:M.children;if(W)for(A=0;A<W.length;A++)M=W[A],M!==H.iframe&&(U?(M.hasAttribute("aria-hidden")&&_.oD([_.N2(rAy)],M,"data-old-aria-hidden",M.getAttribute("aria-hidden")),_.oD([_.N2(eU7)],M,"aria-hidden","true")):(M.removeAttribute("aria-hidden"),M.hasAttribute("data-old-aria-hidden")&&(_.oD([_.N2(DJ$)],M,"aria-hidden",M.getAttribute("data-old-aria-hidden")),M.removeAttribute("data-old-aria-hidden"))))},hl=function(H,
U,A){var M;
(M=H.latencyCallback)==null||M.call(H,{latencyType:U,timestampEpochMillis:A!=null?A:Date.now()})};var Aqk=function(H,U,A){qc.call(this,U,A===void 0?!1:A);this.consentPrimitiveRequest=H;H=VRp(this);_.ikF(H);this.src=this.getSrc();var M;this.initialLoadingStrategy=(M=_.qK(this.consentPrimitiveRequest,nL,4))==null?void 0:_.Wn(M,4)},MZk;
_.R(Aqk,qc);var z0X=function(H){H={request:H,enableDialogA11yFix:!0};MZk||(MZk=new Aqk(H.request,H.isLatencyMeasurementExperiment||_.Wn(H.request,1)===2,H.enableDialogA11yFix));return MZk},VRp=function(H){var U;
return(U=_.qK(H.consentPrimitiveRequest,nL,4))==null?void 0:_.Mn(U,1)},hUX=function(H,U){if(!_.hI(H.consentPrimitiveRequest,Y1,5)){var A=H.consentPrimitiveRequest,M=new Y1;
_.CN(A,5,M)}var W;if((W=_.qK(H.consentPrimitiveRequest,Y1,5))==null||_.gfr(W,8)==null){var w;(w=_.qK(H.consentPrimitiveRequest,Y1,5))!=null&&_.Xx(w,8,U)}},Y7X=function(H){var U;
return(U=_.qK(H.consentPrimitiveRequest,Y1,5))==null?void 0:_.B8(U,1)};
Aqk.prototype.isDarkTheme=function(){var H;return((H=_.qK(this.consentPrimitiveRequest,nL,4))==null?void 0:_.Wn(H,2))===2};
var IJ7=function(H){var U;return((U=_.qK(H.consentPrimitiveRequest,nL,4))==null?void 0:_.B8(U,5))||void 0},jtX=function(H){H.channel=void 0;
H.prewarmChannel=void 0;H.iframe&&(document.body.contains(H.iframe)&&document.body.removeChild(H.iframe),H.iframe=void 0);MZk=void 0},yJ5=function(H){return qc.prototype.showPrimitive.call(H).then(function(U){return _.qK(U,S7p,2)})};for(var k1={},WBp=(k1[64]="ma",k1[73]="ogb",k1[89]="cr",k1[21]="test",k1[0]="unkn",k1[137]="con",k1[155]="hl",k1[78]="yt",k1[171]="lp",k1[172]="ap",k1[177]="amo",k1[178]="pqe",k1[74]="gg",k1[1]="gm",k1[140]="am",k1[193]="sc",k1),wdk=_.b(Object.keys(WBp)),Xdf=wdk.next();!Xdf.done;Xdf=wdk.next());var i9m=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(i9m,_.fN);var b9f=[0,[2,3,4],_.CT,O35,KM$,_.m9];var d5$=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(d5$,_.fN);var O9p=_.Ej(d5$,[0,_.tg,_.RT,_.CT,_.RT,_.CT,b9f]);var uXy=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(uXy,_.fN);uXy.prototype.getCommand=function(){return _.Wn(this,1)};
var Z95=function(){var H=new uXy;return _.d4(H,1,0)};var f4f=_.mO([0,_.tg,_.RT,[0,_.CT,_.RT,-1]]);var Jqj=new _.HS("s"),KB5=new _.HS("t"),o6$=new _.HS("u"),FB7=new _.HS("v"),P1m=function(H,U,A){_.$R.call(this,Jqj);this.mediaKey=H;this.photoUrl=U;this.photoSource=A};
_.R(P1m,_.$R);var sz5=function(){_.$R.call(this,KB5)};
_.R(sz5,_.$R);var n6h=function(H){H=H===void 0?!1:H;_.$R.call(this,o6$);this.isError=H};
_.R(n6h,_.$R);var NIp=function(){_.$R.call(this,FB7)};
_.R(NIp,_.$R);var SC7=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,E6B=function(H){if(typeof H=="string"){if(H.charAt(0)==".")return pd$(H.substr(1));if(H.charAt(0)=="["){var U=SC7.exec(H);H=H.indexOf("=")==-1?void 0:U[3];return LB7(U[1],H)}return RfY(H)}return H},pd$=function(H){return function(U){return U.getAttribute&&_.Rw(U,H)}},LB7=function(H,U){return function(A){return U!==void 0?A.getAttribute&&A.getAttribute(H)==U:A.hasAttribute&&A.hasAttribute(H)}},RfY=function(H){H=H.toUpperCase();
return function(U){return(U=U.tagName)&&U.toUpperCase()==H}},m5p=function(){return!0};var vz=function(H,U){this.JSC$19791_key_=H;this.JSC$19791_value_=U},g67=function(H){throw Error("xk`"+H.JSC$19791_key_);
},a4p=function(H,U){return new TypeError("yk`"+U+"`"+H.JSC$19791_key_+"`"+H.JSC$19791_value_+"`"+typeof H.JSC$19791_value_)};
vz.prototype.string=function(H){return arguments.length==0?x5h(this):zfB(this,H)};
var zfB=function(H,U){var A;return(A=C1j(H))!=null?A:U},x5h=function(H){var U=C1j(H);
U===null&&g67(H);return U},C1j=function(H){var U=H.JSC$19791_value_;
if(U==null)return null;if(typeof U==="string")return U;throw a4p(H,"string");};
vz.prototype.bool=function(H){if(arguments.length==0){var U=this.optionalBool();U===null&&g67(this)}else{var A;U=(A=this.optionalBool())!=null?A:H}return U};
vz.prototype.optionalBool=function(){var H=this.JSC$19791_value_;if(H==null)return null;if(typeof H==="boolean")return H;if(typeof H==="string"){H=H.toLowerCase();if(H==="true"||H==="1")return!0;if(H==="false"||H==="0")return!1}throw a4p(this,"boolean");};
vz.prototype.number=function(H){if(arguments.length==0){var U=tZ5(this);U===null&&g67(this)}else U=cqm(this,H);return U};
var cqm=function(H,U){var A;return(A=tZ5(H))!=null?A:U},tZ5=function(H){var U=H.JSC$19791_value_;
if(U==null)return null;if(typeof U==="number")return U;if(typeof U==="string"){var A=Number(U);if(!isNaN(A)&&(A!==0||U.trim().length!==0))return A}throw a4p(H,"number");};
vz.prototype.toString=function(){return x5h(this)};
vz.prototype.enum=function(H,U){var A=!0,M=void 0,W;for(W in H){var w=H[W];A&&(A=!1,M=typeof w==="number"?cqm(this,U):zfB(this,U));if(w==M)return M}JSON.stringify(H);return M};
vz.prototype.array=function(H){if(arguments.length==0){var U=yqk(this);U===null&&g67(this);return U}U=yqk(this);return U==null?H:U};
var yqk=function(H){var U=H.JSC$19791_value_;if(U==null)return null;Array.isArray(U)||(typeof U!=="string"?U=[U]:(U=U.trim(),U=U==""?[]:U.split(",").map(function(A){return A.trim()})));
return BIp(H,U)},BIp=function(H,U){var A=H.JSC$19791_key_+"[";
return Array.from(U,function(M,W){return new vz(A+W+"]",M)})};
vz.prototype.object=function(H){var U=this.JSC$19791_value_;if(U==null)return H===void 0&&g67(this),H;if(typeof U==="object"&&U.constructor===Object){H={};var A=this.JSC$19791_key_+".",M;for(M in U)H[M]=new vz(A+M,U[M]);return H}throw a4p(this,"object");};var Th=function(H){this.list_=rqj(H)},rqj=function(H){if(H instanceof Th)H=H.list_;
else if(H[0]instanceof Th){for(var U=new Set,A=0;A<H.length;A++)for(var M=_.b(H[A].list_),W=M.next();!W.done;W=M.next())U.add(W.value);H=U}return[].concat(_.vI(H))};
_.X=Th.prototype;_.X.each=function(H,U,A){((A===void 0?0:A)?wa5:_.yW)(this.list_,H,U);return this};
_.X.size=function(){return this.list_.length};
_.X.isEmpty=function(){return this.list_.length===0};
_.X.get=function(H){return this.list_[H]||null};
_.X.el=function(){return this.list_[0]||null};
_.X.map=function(H,U){return _.OA(this.list_,H,U)};
_.X.equals=function(H){return this===H||_.jN(this.list_,H.list_)};
_.X.first=function(){return this.list_.length==0?null:new jK(this.list_[0])};
_.X.last=function(){return this.list_.length==0?null:new jK(this.list_[this.list_.length-1])};
_.X.find=function(H){var U=[];this.each(function(A){A=A.querySelectorAll(String(H));for(var M=0;M<A.length;M++)U.push(A[M])});
return new Th(U)};
_.X.parent=function(){var H=[];this.each(function(U){(U=U.parentElement||null)&&!_.y0(H,U)&&H.push(U)});
return new Th(H)};
_.X.children=function(){var H=[];this.each(function(U){U=_.Kt(U);for(var A=0;A<U.length;A++)H.push(U[A])});
return new Th(H)};
_.X.filter=function(H){H=_.cu(this.list_,E6B(H));return new Th(H)};
_.X.closest=function(H){var U=[],A=E6B(H),M=function(W){return _.YR(W)&&A(W)};
this.each(function(W){(W=_.Kp(W,M,!0))&&!_.y0(U,W)&&U.push(W)});
return new Th(U)};
_.X.next=function(H){return efB(this,_.p8z,H)};
_.X.prev=function(H){return efB(this,P65,H)};
var efB=function(H,U,A){var M=[];var W=A?E6B(A):m5p;H.each(function(w){(w=U(w))&&W(w)&&M.push(w)});
return new Th(M)};
Th.prototype.setClass=function(H){return this.each(function(U){_.LR(U,H)})};
var D57=function(H,U){return H.each(function(A){_.P$(A,U)})},$5h=function(H,U){return H.each(function(A){_.F1(A,U)})};
Th.prototype.toggleClass=function(H,U){return U===!0?D57(this,H):U===!1?$5h(this,H):this.each(function(A){_.Rw(A,H)?_.F1(A,H):_.P$(A,H)})};
Th.prototype.setText=function(H){return this.each(function(U){_.ox(U,H)})};
var l4p=function(H){H.each(function(U){U.removeAttribute("aria-hidden")})};
Th.prototype.getStyle=function(H){if(this.list_.length>0){var U=this.list_[0],A=U.style[_.Y8(H)];return typeof A!=="undefined"?A:U.style[_.yDk(U,H)]||""}};
Th.prototype.getData=function(H){if(this.list_.length===0)return new vz(H,null);var U=KFh(this.list_[0],H);return new vz(H,U)};
Th.prototype.focus=function(H){try{H?this.el().focus(H):this.el().focus()}catch(U){}return this};
Th.prototype.click=function(){var H=_.ZD(this.el());if(H.createEvent){var U=H.createEvent("MouseEvents");U.initMouseEvent("click",!0,!0,H.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(U)}else H=H.createEventObject(),H.clientX=0,H.clientY=0,H.screenX=0,H.screenY=0,H.altKey=!1,H.ctrlKey=!1,H.shiftKey=!1,H.button=0,this.el().fireEvent("onclick",H)};
var I3=function(H,U,A,M){function W(O,f,J){var F=f;f&&f.parentNode&&(F=f.cloneNode(!0));O(F,J)}
M=M===void 0?!1:M;if(H.list_.length==1){var w=H.list_[0],d=function(O){return U(O,w)};
A instanceof Th?A.each(d,void 0,M):Array.isArray(A)?(M?wa5:_.yW)(A,d):d(A);return H}return H.each(function(O){A instanceof Th?A.each(function(f){W(U,f,O)}):Array.isArray(A)?_.yW(A,function(f){W(U,f,O)}):W(U,A,O)})};
_.X=Th.prototype;_.X.append=function(H){return I3(this,function(U,A){U&&A.appendChild(U)},H)};
_.X.appendTo=function(H){(new Th([H])).append(this);return this};
_.X.remove=function(){return I3(this,function(H,U){_.U5(U)},null)};
_.X.empty=function(){return I3(this,function(H,U){_.Zn(U)},null)};
_.X.after=function(H,U){return I3(this,function(A,M){A&&_.JJ(A,M)},H,!(U===void 0||U))};
_.X.before=function(H){return I3(this,function(U,A){U&&_.ft(U,A)},H)};
_.X.replaceWith=function(H){return I3(this,function(U,A){U&&_.nl3(U,A)},H)};
_.X.toggle=function(H){return this.each(function(U){_.ev(U,H)})};
_.X.show=function(){return this.toggle(!0)};
_.X.hide=function(){return this.toggle(!1)};
_.X.trigger=function(H,U,A,M){return G15(this,H,U,A,M)};
var G15=function(H,U,A,M,W){return H.each(function(w){_.PSc(_.ZD(w)).triggerWizEventInternal(w,U,A,M,W)})},jK=function(H,U){H instanceof Th&&(U=H.list_,H=null);
this.list_=rqj(H!=null?[H]:U)};
_.zo(jK,Th);_.X=jK.prototype;_.X.children=function(){return new Th(Array.prototype.slice.call(_.Kt(this.list_[0])))};
_.X.each=function(H,U){H.call(U,this.list_[0],0);return this};
_.X.size=function(){return 1};
_.X.el=function(){return this.list_[0]};
_.X.first=function(){return this};var Q7=function(H,U){U=U===void 0?window:U;this.hostId=H;this.win=U;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$19802_previousHtmlOverscroll=this.JSC$19802_previousBodyOverscroll=this.JSC$19802_previousBodyOverflow="";this.eventTarget=new _.LW;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},hfY=function(H){var U=
YC$(YC$(YC$(new qCh(78),"po"),"hppp"),"hhc");
U.authUser=Number(_.gD("SESSION_INDEX","0"));U.colorScheme=H;return U};
Q7.prototype.getOrigin=function(){return this.origin?this.origin:_.tn(_.CR(_.zz(new _.n1,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
Q7.prototype.getTargetOrigin=function(){return _.tn(_.CR(_.zz(new _.n1,this.scheme),this.domain),this.port)};
Q7.prototype.preloadIframe=function(H){var U=this;if(this.iframeLoadPromise===void 0){var A=document.createElement("iframe");this.iframe=A;VpY(A,H);this.iframeLoadPromise=new Promise(function(M,W){var w=!1,d=function(O){O.stopPropagation();A.removeEventListener("error",d);A.removeEventListener("securitypolicyviolation",d);W(Error("zk",{cause:O}))};
A.addEventListener("error",d);A.addEventListener("securitypolicyviolation",d);setTimeout(function(){w||W(Error("Ak"))},3E4);
k1B(U,A,function(){w=!0;A.removeEventListener("error",d);A.removeEventListener("securitypolicyviolation",d);M()})});
v65(this);H=this.getTargetOrigin().toString();A.setAttribute("allow","camera "+H+"; display-capture "+H);this.parentElement.appendChild(A)}return this.iframeLoadPromise};
var I45=function(H,U){var A,M;return _.u(function(W){if(W.nextAddress==1)return A=q_f(getComputedStyle(H.parentElement).direction==="rtl"),H.parentElement.appendChild(A),document.activeElement instanceof HTMLElement&&(H.elementToFocusAfterClose=document.activeElement),_.zj(W,2),W.yield(H.preloadIframe(U),4);if(W.nextAddress!=2){H.parentElement.removeChild(A);H.JSC$19802_previousBodyOverflow=H.parentElement.style.overflow;H.JSC$19802_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
H.JSC$19802_previousBodyOverscroll=H.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";H.parentElement.style.overscrollBehavior="contain";H.parentElement.style.overflow="hidden";var w=H.iframe;w.style.bottom="0";w.style.border="none";w.style.height="100%";w.style.left="0";w.style.position=H.iframePosition;w.style.right="0";w.style.top="0";w.style.width="100%";w.style.zIndex="2202";w.setAttribute("aria-hidden","false");w.setAttribute("aria-modal","true");
H.opened=!0;TIh(H);return _.xD(W,0)}M=_.eG(W);H.parentElement.removeChild(A);jE8(H.isDarkTheme());jzj(H,!1);throw Error("Bk",{cause:M});})},jzj=function(H,U){U=U===void 0?!0:U;
H.iframe!==void 0&&(Qzk(H),document.documentElement.style.overscrollBehavior=H.JSC$19802_previousHtmlOverscroll,H.parentElement.style.overscrollBehavior=H.JSC$19802_previousBodyOverscroll,H.parentElement.style.overflow=H.JSC$19802_previousBodyOverflow,H.elementToFocusAfterClose!==void 0&&(H.elementToFocusAfterClose.focus(),H.elementToFocusAfterClose=void 0),U?v65(H):(H.parentElement.removeChild(H.iframe),H.iframe=void 0,H.iframeLoadPromise=void 0,H.mainChannel=void 0),H.opened=!1)},Qzk=function(H){H.backgroundElementsAriaHiddenIsNull&&
(l4p(H.backgroundElementsAriaHiddenIsNull),H.backgroundElementsAriaHiddenIsNull=void 0);
H.backgroundElementsAriaHiddenIsFalse&&(H.backgroundElementsAriaHiddenIsFalse.each(function(U){U.setAttribute("aria-hidden","false")}),H.backgroundElementsAriaHiddenIsFalse=void 0);
H.backgroundElementsWithoutInert&&(H.backgroundElementsWithoutInert.each(function(U){U.removeAttribute("inert")}),H.backgroundElementsWithoutInert=void 0)},TIh=function(H){H.backgroundElementsAriaHiddenIsNull=(new jK(H.iframe.parentElement)).children().filter(function(U){return U.getAttribute("aria-hidden")===null&&U!==H.iframe});
H.backgroundElementsAriaHiddenIsNull.each(function(U){U.setAttribute("aria-hidden","true")});
H.backgroundElementsAriaHiddenIsFalse=(new jK(H.iframe.parentElement)).children().filter(function(U){return U.getAttribute("aria-hidden")==="false"&&U!==H.iframe});
H.backgroundElementsAriaHiddenIsFalse.each(function(U){U.setAttribute("aria-hidden","true")});
H.backgroundElementsWithoutInert=(new jK(H.iframe.parentElement)).children().filter(function(U){return!U.hasAttribute("inert")&&U!==H.iframe});
H.backgroundElementsWithoutInert.each(function(U){U.setAttribute("inert","true")})},v65=function(H){H=H.iframe;
H.style.bottom="-1000px";H.style.position="fixed";H.style.right="-1000px";H.style.border="";H.style.height="";H.style.left="";H.style.top="";H.style.width="";H.style.zIndex="";H.setAttribute("aria-hidden","true");H.setAttribute("aria-modal","false")};
Q7.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var qCh=function(H,U){Q7.call(this,WBp[H],U);this.options=[];this.style=""};
_.R(qCh,Q7);var VZB=function(H){H.style="youtube";return H},HJj=function(H,U){H.eventTarget.listen(o6$,U);
return H},UE$=function(H,U){H.eventTarget.listen(Jqj,U);
return H},YC$=function(H,U){H.options.push(U);
return H},Ahp=function(H){var U=[H.getOrigin()];
H.ancestorOrigins&&U.push.apply(U,_.vI(H.ancestorOrigins));var A=new _.n1(H.win.location.href),M=H.startUrl?H.startUrl:H.options.includes("po")?"profile-picture/art":"profile-picture";U=wS7(_.cS(H.getTargetOrigin(),M),"origin",U);H.startUrl&&_.rO(U,"startPath",H.startUrl);H.authUser>0&&_.rO(U,"authuser",H.authUser);H.pageId!==void 0&&_.rO(U,"pageId",H.pageId);_.rO(U,"hostId",H.hostId);H.jsMode!==void 0&&_.rO(U,"jsmode",H.jsMode);H.rectangleRatio!==void 0&&_.rO(U,"rectangleRatio",H.rectangleRatio);
H.options.length>0&&_.rO(U,"opts",H.options.join(","));try{for(var W=_.b(["utm_source","utm_medium","utm_campaign","utm_content"]),w=W.next();!w.done;w=W.next()){var d=w.value;_.BJ(A,d)&&_.rO(U,d,_.BJ(A,d))}var O,f=(O=H.hl)!=null?O:_.BJ(A,"hl");f!==void 0&&_.rO(U,"hl",f)}catch(J){if(!(J instanceof URIError))throw J;}H.colorScheme&&_.rO(U,"theme",H.colorScheme);H.style&&_.rO(U,"style",H.style);return U},M45=function(H,U){H.mainChannel=_.Bn({destination:H.win,
iframe:U,origin:H.getTargetOrigin().toString(),channelName:"ow",onMessage:function(A){A=O9p(A.data);if(U===H.iframe)switch(_.Wn(A,1)){case 1:H.eventTarget.dispatchEvent(new n6h);jzj(H);break;case 2:H.eventTarget.dispatchEvent(new P1m(_.Mn(A,4),_.Mn(A,2),_.Wn(A,5),_.qK(A,i9m,6)));break;case 0:var M;H.eventTarget.dispatchEvent(new sz5(_.Mn(A,2),(M=_.Wn(A,3))!=null?M:0));break;case 3:H.eventTarget.dispatchEvent(new n6h(!0));jzj(H,!1);break;case 4:H.eventTarget.dispatchEvent(new NIp)}}})},k1B=function(H,
U,A){_.Bn({destination:H.win,
iframe:U,origin:_.tn(_.CR(_.zz(new _.n1,H.scheme),H.domain),H.port).toString(),channelName:"owi",onMessage:function(M){U===H.iframe&&(A!==void 0&&A(),M45(H,U),H.opened&&H.mainChannel.send(f4f(Z95())),M.reply(),k1B(H,U))}})};
qCh.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?Q7.prototype.preloadIframe.call(this,Ahp(this).toString()):this.iframeLoadPromise};
qCh.prototype.openPicker=function(H){var U=this;return _.u(function(A){if(A.nextAddress==1)return U.startUrl=H?H:U.options.includes("po")?"profile-picture/art":"profile-picture",A.yield(I45(U,Ahp(U).toString()),2);if(U.mainChannel){var M=U.mainChannel,W=M.send;var w=Z95();w=_.Mu(w,2,U.startUrl);W.call(M,f4f(w))}_.DO(A)})};var Wgf=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Wgf,_.fN);_.X=Wgf.prototype;_.X.getSize=function(){return gw(this,1)};
_.X.setSize=function(H){return _.bo(this,1,H)};
_.X.getWidth=function(){return gw(this,12)};
_.X.getHeight=function(){return gw(this,13)};
_.X.setCenterCrop=function(H){return _.Gg(this,20,H)};
_.X.getHtml=function(){return _.Hn(this,4)};
_.X.getToken=function(){return _.Il(this,24)};
_.X.setToken=function(H){return _.Mu(this,24,H)};
_.X.getBackgroundColor=function(){return gw(this,87)};
_.X.hasBackgroundColor=function(){return _.f8(_.qP(this,87))!=null};
_.X.getStoryboardLevel=function(){return gw(this,109)};JC.prototype.set=function(H,U){wb5(this,H,U,!1)};
JC.prototype.add=function(H,U){wb5(this,H,U,!0)};
var wb5=function(H,U,A,M){for(var W=0;W<U.length;W++){var w=U.charAt(W);H.childNodes_[w]||(H.childNodes_[w]=new JC);H=H.childNodes_[w]}if(M&&H.JSC$19810_value_!==void 0)throw Error("Ck`"+U);H.JSC$19810_value_=A},Xbh=function(H,U){for(var A=0;A<U.length;A++)if(H=H.childNodes_[U.charAt(A)],!H)return;
return H};
JC.prototype.get=function(H){return(H=Xbh(this,H))?H.JSC$19810_value_:void 0};
JC.prototype.getValues=function(){var H=[];iJY(this,H);return H};
var iJY=function(H,U){H.JSC$19810_value_!==void 0&&U.push(H.JSC$19810_value_);for(var A in H.childNodes_)iJY(H.childNodes_[A],U)};
JC.prototype.getKeys=function(H){var U=[];if(H){for(var A=this,M=0;M<H.length;M++){var W=H.charAt(M);if(!A.childNodes_[W])return[];A=A.childNodes_[W]}bJp(A,H,U)}else bJp(this,"",U);return U};
var bJp=function(H,U,A){H.JSC$19810_value_!==void 0&&A.push(U);for(var M in H.childNodes_)bJp(H.childNodes_[M],U+M,A)};
_.X=JC.prototype;_.X.containsKey=function(H){return this.get(H)!==void 0};
_.X.containsValue=function(H){if(this.JSC$19810_value_===H)return!0;for(var U in this.childNodes_)if(this.childNodes_[U].containsValue(H))return!0;return!1};
_.X.clear=function(){this.childNodes_={};this.JSC$19810_value_=void 0};
_.X.remove=function(H){for(var U=this,A=[],M=0;M<H.length;M++){var W=H.charAt(M);if(!U.childNodes_[W])throw Error("Dk`"+H);A.push([U,W]);U=U.childNodes_[W]}H=U.JSC$19810_value_;for(delete U.JSC$19810_value_;A.length>0;)if(M=A.pop(),U=M[0],M=M[1],U.childNodes_[M].isEmpty())delete U.childNodes_[M];else break;return H};
_.X.clone=function(){return new JC(this)};
_.X.getCount=function(){return Ng$(this.getValues())};
_.X.isEmpty=function(){return this.JSC$19810_value_===void 0&&_.dG.isEmpty(this.childNodes_)};var Wqm=function(){if(!dEf){var H=dEf=new JC,U;for(U in OJf)H.add(U,OJf[U])}},dEf,V7=function(H,U){this.types=H;
this.setters=U},OJf={a:new V7([3,
0],[function(H,U){_.Gg(H,21,U)},
function(H,U){_.bo(H,56,U)}]),
al:new V7([3],[function(H,U){_.Gg(H,74,U)}]),
b:new V7([3,0],[function(H,U){_.Gg(H,23,U)},
function(H,U){_.bo(H,38,U)}]),
ba:new V7([0],[function(H,U){_.bo(H,85,U)}]),
bc:new V7([0],[function(H,U){_.bo(H,87,U)}]),
br:new V7([0],[function(H,U){_.bo(H,86,U)}]),
c:new V7([3,0],[function(H,U){_.Gg(H,2,U)},
function(H,U){_.bo(H,39,U)}]),
cc:new V7([3],[function(H,U){_.Gg(H,51,U)}]),
ci:new V7([3],[function(H,U){_.Gg(H,32,U)}]),
ckm:new V7([3],[function(H,U){_.Gg(H,104,U)}]),
cp:new V7([0],[function(H,U){_.bo(H,92,U)}]),
cr:new V7([3],[function(H,U){_.Gg(H,108,U)}]),
cv:new V7([0],[function(H,U){_.bo(H,94,U)}]),
d:new V7([3],[function(H,U){_.Gg(H,3,U)}]),
dc:new V7([5],[function(H,U){_.Mu(H,99,U)}]),
df:new V7([3],[function(H,U){_.Gg(H,80,U)}]),
dv:new V7([3],[function(H,U){_.Gg(H,90,U)}]),
e:new V7([0],[function(H,U){_.bo(H,15,U)}]),
em:new V7([0],[function(H,U){_.bo(H,107,U)}]),
f:new V7([4],[function(H,U){_.Mu(H,16,U)}]),
fg:new V7([3],[function(H,U){_.Gg(H,34,U)}]),
fh:new V7([3],[function(H,U){_.Gg(H,30,U)}]),
fm:new V7([3],[function(H,U){_.Gg(H,84,U)}]),
fo:new V7([2],[function(H,U){_.kD(H,79,_.AB(U))}]),
ft:new V7([3],[function(H,U){_.Gg(H,50,U)}]),
fv:new V7([3],[function(H,U){_.Gg(H,31,U)}]),
g:new V7([3],[function(H,U){_.Gg(H,14,U)}]),
gce:new V7([4],[function(H,U){_.Mu(H,112,U)}]),
gd:new V7([3],[function(H,U){_.Gg(H,83,U)}]),
gm:new V7([3],[function(H,U){_.Gg(H,105,U)}]),
h:new V7([3,0],[function(H,U){_.Gg(H,4,U)},
function(H,U){_.bo(H,13,U)}]),
i:new V7([3],[function(H,U){_.Gg(H,22,U)}]),
ic:new V7([0],[function(H,U){_.bo(H,71,U)}]),
id:new V7([3],[function(H,U){_.Gg(H,70,U)}]),
il:new V7([3],[function(H,U){_.Gg(H,96,U)}]),
ip:new V7([3],[function(H,U){_.Gg(H,54,U)}]),
iv:new V7([0],[function(H,U){_.Xx(H,75,U)}]),
j:new V7([1],[function(H,U){U=U==null?U:dCY(U);_.kD(H,29,U)}]),
k:new V7([3,0],[function(H,U){_.Gg(H,17,U)},
function(H,U){_.bo(H,42,U)}]),
l:new V7([0],[function(H,U){_.bo(H,44,U)}]),
lf:new V7([3],[function(H,U){_.Gg(H,65,U)}]),
lo:new V7([3],[function(H,U){_.Gg(H,97,U)}]),
m:new V7([0],[function(H,U){_.bo(H,63,U)}]),
md:new V7([3],[function(H,U){_.Gg(H,91,U)}]),
mm:new V7([4],[function(H,U){_.Mu(H,81,U)}]),
mo:new V7([3],[function(H,U){_.Gg(H,73,U)}]),
mp:new V7([0],[function(H,U){_.bo(H,115,U)}]),
mv:new V7([3],[function(H,U){_.Gg(H,66,U)}]),
n:new V7([3],[function(H,U){H.setCenterCrop(U)}]),
nc:new V7([3],[function(H,U){_.Gg(H,55,U)}]),
nd:new V7([3],[function(H,U){_.Gg(H,53,U)}]),
ng:new V7([3],[function(H,U){_.Gg(H,95,U)}]),
ngm:new V7([3],[function(H,U){_.Gg(H,106,U)}]),
no:new V7([3],[function(H,U){_.Gg(H,37,U)}]),
ns:new V7([3],[function(H,U){_.Gg(H,40,U)}]),
nt0:new V7([4],[function(H,U){_.Mu(H,36,U)}]),
ntm:new V7([3],[function(H,U){_.Gg(H,114,U)}]),
nu:new V7([3],[function(H,U){_.Gg(H,46,U)}]),
nw:new V7([3],[function(H,U){_.Gg(H,48,U)}]),
o:new V7([1,3],[function(H,U){U=U==null?U:dCY(U);_.kD(H,7,U)},
function(H,U){_.Gg(H,27,U)}]),
p:new V7([3,0],[function(H,U){_.Gg(H,19,U)},
function(H,U){_.bo(H,43,U)}]),
pa:new V7([3],[function(H,U){_.Gg(H,61,U)}]),
pc:new V7([0],[function(H,U){_.bo(H,88,U)}]),
pd:new V7([3],[function(H,U){_.Gg(H,60,U)}]),
pf:new V7([3],[function(H,U){_.Gg(H,67,U)}]),
pg:new V7([3],[function(H,U){_.Gg(H,72,U)}]),
pi:new V7([2],[function(H,U){_.kD(H,76,_.AB(U))}]),
pp:new V7([3],[function(H,U){_.Gg(H,52,U)}]),
pt:new V7([4],[function(H,U){_.Mu(H,111,U)}]),
q:new V7([4],[function(H,U){_.Mu(H,28,U)}]),
r:new V7([3,0],[function(H,U){_.Gg(H,6,U)},
function(H,U){_.bo(H,26,U)}]),
ra:new V7([3],[function(H,U){_.Gg(H,103,U)}]),
rf:new V7([3],[function(H,U){_.Gg(H,100,U)}]),
rg:new V7([3],[function(H,U){_.Gg(H,59,U)}]),
rh:new V7([3],[function(H,U){_.Gg(H,49,U)}]),
rj:new V7([3],[function(H,U){_.Gg(H,57,U)}]),
ro:new V7([2],[function(H,U){_.kD(H,78,_.AB(U))}]),
rp:new V7([3],[function(H,U){_.Gg(H,58,U)}]),
rw:new V7([3],[function(H,U){_.Gg(H,35,U)}]),
rwa:new V7([3],[function(H,U){_.Gg(H,64,U)}]),
rwu:new V7([3],[function(H,U){_.Gg(H,41,U)}]),
s:new V7([3,0],[function(H,U){_.Gg(H,33,U)},
function(H,U){H.setSize(U)}]),
sb:new V7([0],[function(H,U){_.bo(H,110,U)}]),
sc:new V7([0],[function(H,U){_.bo(H,89,U)}]),
sg:new V7([3],[function(H,U){_.Gg(H,82,U)}]),
sl:new V7([0],[function(H,U){_.bo(H,109,U)}]),
sm:new V7([3],[function(H,U){_.Gg(H,93,U)}]),
t:new V7([4],[function(H,U){H.setToken(U)}]),
tm:new V7([3],[function(H,U){_.Gg(H,113,U)}]),
u:new V7([3],[function(H,U){_.Gg(H,18,U)}]),
ut:new V7([3],[function(H,U){_.Gg(H,45,U)}]),
v:new V7([0],[function(H,U){_.bo(H,62,U)}]),
vb:new V7([0],[function(H,U){_.Xx(H,68,U)}]),
vf:new V7([4],[function(H,U){_.Mu(H,102,U)}]),
vl:new V7([0],[function(H,U){_.Xx(H,69,U)}]),
vm:new V7([3],[function(H,U){_.Gg(H,98,U)}]),
w:new V7([0],[function(H,U){_.bo(H,12,U)}]),
x:new V7([0],[function(H,U){_.bo(H,9,U)}]),
y:new V7([0],[function(H,U){_.bo(H,10,U)}]),
ya:new V7([2],[function(H,U){_.kD(H,77,_.AB(U))}]),
z:new V7([0],[function(H,U){_.bo(H,11,U)}])};
Wqm.prototype.parse=function(H){var U=new Wgf,A=new Wgf;if(H=="")H=!0;else{H=H.split("-");for(var M=!0,W=0;W<H.length;W++){var w=H[W];if(w.length==0)M=!1;else{var d=w,O=!1;var f=d;var J=d.charAt(0);J!=J.toLowerCase()&&(O=!0,f=d.charAt(0).toLowerCase()+d.substring(1));var F=dEf;for(J=1;J<=f.length;++J){var P=F,n=f.substring(0,J);if(n.length==0?P.isEmpty():!Xbh(P,n))break}f=J==1?null:(f=F.get(f.substring(0,J-1)))?{option:d.substring(0,J-1),value:d.substring(J-1),signed:O,attributes:f}:null;if(f){d=
[];O=[];J=!1;for(F=0;F<f.attributes.types.length;F++){P=f.attributes.types[F];var N=f.value;n=W;if(f.signed&&P==1)for(var L=N.length;L<12&&n<H.length-1;)N+="-"+H[n+1],L=N.length,++n;else if(P==2)for(;n<H.length-1&&H[n+1].match(/^[\d\.]/);)N+="-"+H[n+1],++n;L=f.attributes.setters[F];N=u4y(this,P)(f.option,N,U,A,L);if(N===null){J=!0;W=n;break}else d.push(P),O.push(N)}if(!J)for(f=0;f<O.length;f++)F=d[f],N=O[f],ZJX(this,F)(w,N);M=M&&J}else M=!1}}H=M}return new f15(U,A,H)};
var Jhh=function(H,U,A,M,W,w){W(A,U);H=H.charAt(0);w=w(H==H.toUpperCase());W(M,w)};
_.X=Wqm.prototype;_.X.parseAndSetIntOption_=function(H,U,A,M,W){if(U=="")return 0;isFinite(U)&&(U=String(U));U=typeof U==="string"?/^\s*-?0x/i.test(U)?parseInt(U,16):parseInt(U,10):NaN;if(isNaN(U))return 1;Jhh(H,U,A,M,W,Number);return null};
_.X.logIntParseError_=function(){};
_.X.parseAndSetFloatOption_=function(H,U,A,M,W){if(U=="")return 0;var w=Number(U);U=w==0&&_.b7(U)?NaN:w;if(isNaN(U))return 1;Jhh(H,U,A,M,W,Number);return null};
_.X.logFloatParseError_=function(){};
_.X.parseAndSetBoolOption_=function(H,U,A,M,W){if(U!="")return 2;Jhh(H,!0,A,M,W,Boolean);return null};
_.X.logBoolParseError_=function(){};
_.X.parseAndSetStringOption_=function(H,U,A,M,W){if(U=="")return 0;Jhh(H,U,A,M,W,function(w){return w?"1":""});
return null};
_.X.logStringParseError_=function(){};
_.X.parseAndSetUint64Base64Option_=function(H,U,A,M,W){if(U=="")return 0;Jhh(H,U,A,M,W,function(w){return w?1:0});
return null};
var u4y=function(H,U){switch(U){case 0:return(0,_.i9)(H.parseAndSetIntOption_,H);case 2:return(0,_.i9)(H.parseAndSetFloatOption_,H);case 3:return(0,_.i9)(H.parseAndSetBoolOption_,H);case 4:return(0,_.i9)(H.parseAndSetStringOption_,H);case 1:return(0,_.i9)(H.parseAndSetUint64Base64Option_,H);default:return function(){}}},ZJX=function(H,U){switch(U){case 0:return(0,_.i9)(H.logIntParseError_,H);
case 2:return(0,_.i9)(H.logFloatParseError_,H);case 3:return(0,_.i9)(H.logBoolParseError_,H);case 4:case 1:return(0,_.i9)(H.logStringParseError_,H);default:return function(){}}},f15=function(H,U,A){this.valueProto_=H;
this.signatureFlagProto_=U;this.JSC$19822_valid_=A};
f15.prototype.isValid=function(){return this.JSC$19822_valid_};var Hfm=function(H){this.JSC$19823_parser_=null;this.JSC$19823_components_=[];this.JSC$19823_parsedOptions_=null;Kgm(this,H)},oyh=function(H){H.JSC$19823_parser_==null&&(H.JSC$19823_parser_=new Wqm);
return H.JSC$19823_parser_},Kgm=function(H,U){H.JSC$19823_parsedOptions_=U?typeof U==="string"?oyh(H).parse(U):U:oyh(H).parse("")},Ht=function(H,U){return H==U?!1:!0};
_.X=Hfm.prototype;_.X.JSC$19825_setCrop=function(H){H=H||void 0;var U=this.JSC$19823_parsedOptions_,A=U.valueProto_;Ht(H,_.Hn(A,2),_.Hn(U.signatureFlagProto_,2))&&_.Gg(A,2,H);return this};
_.X.JSC$19825_setCircleCrop=function(H){H=H||void 0;var U=this.JSC$19823_parsedOptions_,A=U.valueProto_;Ht(H,mA(A,51),mA(U.signatureFlagProto_,51))&&_.Gg(A,51,H);return this};
_.X.JSC$19825_setImageCrop=function(H){H=H||void 0;var U=this.JSC$19823_parsedOptions_,A=U.valueProto_;Ht(H,mA(A,32),mA(U.signatureFlagProto_,32))&&_.Gg(A,32,H);return this};
_.X.JSC$19825_setHeight=function(H){var U=this.JSC$19823_parsedOptions_,A=U.valueProto_;Ht(H,A.getHeight(),U.signatureFlagProto_.getHeight())&&_.bo(A,13,H);return this};
_.X.setCenterCrop=function(H){H=H||void 0;var U=this.JSC$19823_parsedOptions_,A=U.valueProto_;Ht(H,_.Hn(A,20),_.Hn(U.signatureFlagProto_,20))&&A.setCenterCrop(H);return this};
_.X.JSC$19825_setSmartCrop=function(H){H=H||void 0;var U=this.JSC$19823_parsedOptions_,A=U.valueProto_;Ht(H,_.Hn(A,19),_.Hn(U.signatureFlagProto_,19))&&_.Gg(A,19,H);return this};
_.X.JSC$19825_setPad=function(H){H=H||void 0;var U=this.JSC$19823_parsedOptions_,A=U.valueProto_;Ht(H,mA(A,60),mA(U.signatureFlagProto_,60))&&_.Gg(A,60,H);return this};
_.X.JSC$19825_setSmartCropUseFace=function(H){H=H||void 0;var U=this.JSC$19823_parsedOptions_,A=U.valueProto_;Ht(H,_.Hn(A,67),_.Hn(U.signatureFlagProto_,67))&&_.Gg(A,67,H);return this};
_.X.JSC$19825_setSmartCropNoClip=function(H){H=H||void 0;var U=this.JSC$19823_parsedOptions_,A=U.valueProto_;Ht(H,_.Hn(A,52),_.Hn(U.signatureFlagProto_,52))&&_.Gg(A,52,H);return this};
_.X.setSize=function(H){var U=this.JSC$19823_parsedOptions_,A=U.valueProto_;Ht(H,A.getSize(),U.signatureFlagProto_.getSize())&&A.setSize(H);return this};
_.X.setToken=function(H){H=H||void 0;var U=this.JSC$19823_parsedOptions_,A=U.valueProto_;Ht(H,A.getToken(),U.signatureFlagProto_.getToken())&&A.setToken(H);return this};
_.X.JSC$19825_setWidth=function(H){var U=this.JSC$19823_parsedOptions_,A=U.valueProto_;Ht(H,A.getWidth(),U.signatureFlagProto_.getWidth())&&_.bo(A,12,H);return this};
_.X.clearOptions=function(){Kgm(this,"");return this};
_.X.build=function(){this.JSC$19823_components_.length=0;var H=this.JSC$19823_parsedOptions_,U=H.valueProto_;H=H.signatureFlagProto_;Uu(this,"s",U.getSize(),H.getSize());Uu(this,"w",U.getWidth(),H.getWidth());AY(this,"c",_.Hn(U,2),_.Hn(H,2));AY(this,"d",_.Hn(U,3),_.Hn(H,3));Uu(this,"h",U.getHeight(),H.getHeight());AY(this,"s",mA(U,33),mA(H,33));AY(this,"h",U.getHtml(),H.getHtml());AY(this,"p",_.Hn(U,19),_.Hn(H,19));AY(this,"pp",_.Hn(U,52),_.Hn(H,52));AY(this,"pf",_.Hn(U,67),_.Hn(H,67));AY(this,"n",
_.Hn(U,20),_.Hn(H,20));Uu(this,"r",gw(U,26),gw(H,26));AY(this,"r",_.Hn(U,6),_.Hn(H,6));AY(this,"o",mA(U,27),mA(H,27));var A=_.VE(U,7,_.Y4);M8(this,"o",A,_.VE(H,7,_.Y4));A=_.VE(U,29,_.Y4);M8(this,"j",A,_.VE(H,29,_.Y4));Uu(this,"x",gw(U,9),gw(H,9));Uu(this,"y",gw(U,10),gw(H,10));Uu(this,"z",gw(U,11),gw(H,11));AY(this,"g",_.Hn(U,14),_.Hn(H,14));Uu(this,"e",gw(U,15),gw(H,15));M8(this,"f",_.Il(U,16),_.Il(H,16));AY(this,"k",mA(U,17),mA(H,17));AY(this,"u",mA(U,18),!0);AY(this,"ut",mA(U,45),!0);AY(this,"i",
mA(U,22),!0);AY(this,"a",mA(U,21),mA(H,21));AY(this,"b",_.Hn(U,23),_.Hn(H,23));Uu(this,"b",gw(U,38),gw(H,38));Uu(this,"c",gw(U,39),gw(H,39),16,8);M8(this,"q",_.Il(U,28),_.Il(H,28));AY(this,"fh",mA(U,30),mA(H,30));AY(this,"fv",mA(U,31),mA(H,31));AY(this,"fg",_.Hn(U,34),_.Hn(H,34));AY(this,"ci",mA(U,32),mA(H,32));M8(this,"t",U.getToken(),H.getToken());M8(this,"nt0",_.Il(U,36),_.Il(H,36));AY(this,"rw",_.Hn(U,35),_.Hn(H,35));AY(this,"rwu",_.Hn(U,41),_.Hn(H,41));AY(this,"rwa",_.Hn(U,64),_.Hn(H,64));AY(this,
"nw",_.Hn(U,48),_.Hn(H,48));AY(this,"rh",_.Hn(U,49),_.Hn(H,49));AY(this,"no",_.Hn(U,37),_.Hn(H,37));AY(this,"ns",mA(U,40),mA(H,40));Uu(this,"k",gw(U,42),gw(H,42));Uu(this,"p",gw(U,43),gw(H,43));Uu(this,"l",gw(U,44),gw(H,44));Uu(this,"v",gw(U,62),gw(H,62));AY(this,"nu",mA(U,46),mA(H,46));AY(this,"ft",mA(U,50),mA(H,50));AY(this,"cc",mA(U,51),mA(H,51));AY(this,"nd",mA(U,53),mA(H,53));AY(this,"ip",mA(U,54),mA(H,54));AY(this,"nc",mA(U,55),mA(H,55));Uu(this,"a",gw(U,56),gw(H,56));AY(this,"rj",mA(U,57),
mA(H,57));AY(this,"rp",mA(U,58),mA(H,58));AY(this,"rg",mA(U,59),mA(H,59));AY(this,"pd",mA(U,60),mA(H,60));AY(this,"pa",mA(U,61),mA(H,61));Uu(this,"m",gw(U,63),gw(H,63));Uu(this,"vb",_.QE(U,68,_.Y4),_.QE(H,68,_.Y4));Uu(this,"vl",_.QE(U,69,_.Y4),_.QE(H,69,_.Y4));AY(this,"lf",mA(U,65),mA(H,65));AY(this,"mv",mA(U,66),mA(H,66));AY(this,"id",mA(U,70),mA(H,70));Uu(this,"ic",gw(U,71),!0);AY(this,"pg",_.Hn(U,72),_.Hn(H,72));AY(this,"mo",mA(U,73),mA(H,73));AY(this,"al",mA(U,74),mA(H,74));Uu(this,"iv",_.QE(U,
75,_.Y4),_.QE(H,75,_.Y4));Uu(this,"pi",a3(U,76),a3(H,76));Uu(this,"ya",a3(U,77),a3(H,77));Uu(this,"ro",a3(U,78),a3(H,78));Uu(this,"fo",a3(U,79),a3(H,79));AY(this,"df",mA(U,80),mA(H,80));M8(this,"mm",_.Il(U,81),_.Il(H,81));AY(this,"sg",mA(U,82),mA(H,82));AY(this,"gd",mA(U,83),mA(H,83));AY(this,"fm",mA(U,84),mA(H,84));Uu(this,"ba",gw(U,85),gw(H,85));Uu(this,"br",gw(U,86),gw(H,86));Uu(this,"bc",U.getBackgroundColor(),H.getBackgroundColor(),16,8);Uu(this,"pc",gw(U,88),gw(H,88),16,8);Uu(this,"sc",gw(U,
89),gw(H,89),16,8);AY(this,"dv",mA(U,90),mA(H,90));AY(this,"md",mA(U,91),mA(H,91));Uu(this,"cp",gw(U,92),gw(H,92));AY(this,"sm",mA(U,93),mA(H,93));Uu(this,"cv",gw(U,94),gw(H,94));AY(this,"ng",mA(U,95),mA(H,95));AY(this,"il",mA(U,96),mA(H,96));AY(this,"lo",mA(U,97),mA(H,97));AY(this,"vm",mA(U,98),mA(H,98));M8(this,"dc",_.Il(U,99),_.Il(H,99));AY(this,"rf",mA(U,100),mA(H,100));M8(this,"vf",_.Il(U,102),_.Il(H,102));AY(this,"ra",_.Hn(U,103),_.Hn(H,103));AY(this,"ckm",mA(U,104),mA(H,104));AY(this,"gm",
mA(U,105),mA(H,105));AY(this,"ngm",mA(U,106),mA(H,106));Uu(this,"em",gw(U,107),gw(H,107));AY(this,"cr",mA(U,108),mA(H,108));Uu(this,"sl",U.getStoryboardLevel(),H.getStoryboardLevel());Uu(this,"sb",gw(U,110),gw(H,110));M8(this,"pt",_.Il(U,111),_.Il(H,111));M8(this,"gce",_.Il(U,112),_.Il(H,112));AY(this,"tm",mA(U,113),mA(H,113));AY(this,"ntm",mA(U,114),mA(H,114));Uu(this,"mp",gw(U,115),gw(H,115));return this.JSC$19823_components_.join("-")};
var Uu=function(H,U,A,M,W,w){if(A!=null){var d=W==void 0||W!=10&&W!=16?10:W;A=Number(A).toString(d);W=new DCh;W.append(d==16?"0x":"");d=W.append;w==void 0?w="":(w-=A.length,w=w<=0?"":(0,_.OFy)("0",w));d.call(W,w);W.append(A);Fgy(H,U,W.toString(),!!Number(M))}},AY=function(H,U,A,M){A&&Fgy(H,U,"",!!M)},M8=function(H,U,A,M){A&&Fgy(H,U,String(A),!!Number(M))},Fgy=function(H,U,A,M){M&&(U=U.charAt(0).toUpperCase()+U.substring(1));
H.JSC$19823_components_.push(U+A)};_.zo(K6,Hfm);_.X=K6.prototype;_.X.JSC$19825_setCrop=function(H){H&&Wt(this);return K6.superClass_.JSC$19825_setCrop.call(this,H)};
_.X.JSC$19825_setHeight=function(H){H=H==null||H<0?void 0:H;H!=null&&this.setSize();return K6.superClass_.JSC$19825_setHeight.call(this,H)};
_.X.JSC$19825_setImageCrop=function(H){H&&Wt(this);return K6.superClass_.JSC$19825_setImageCrop.call(this,H)};
_.X.JSC$19825_setCircleCrop=function(H){H&&Wt(this);return K6.superClass_.JSC$19825_setCircleCrop.call(this,H)};
_.X.setSize=function(H){_.ht(H)&&(H=Math.max(H.width,H.height));H=H==null||H<0?void 0:H;H!=null&&(this.JSC$19825_setWidth(),this.JSC$19825_setHeight());return K6.superClass_.setSize.call(this,H)};
_.X.JSC$19825_setSmartCrop=function(H){H&&Wt(this);return K6.superClass_.JSC$19825_setSmartCrop.call(this,H)};
_.X.JSC$19825_setSmartCropNoClip=function(H){H&&Wt(this);return K6.superClass_.JSC$19825_setSmartCropNoClip.call(this,H)};
_.X.JSC$19825_setSmartCropUseFace=function(H){H&&Wt(this);return K6.superClass_.JSC$19825_setSmartCropUseFace.call(this,H)};
_.X.setCenterCrop=function(H){H&&Wt(this);return K6.superClass_.setCenterCrop.call(this,H)};
_.X.JSC$19825_setPad=function(H){H&&Wt(this);return K6.superClass_.JSC$19825_setPad.call(this,H)};
_.X.JSC$19825_setWidth=function(H){H=H==null||H<0?void 0:H;H!=null&&this.setSize();return K6.superClass_.JSC$19825_setWidth.call(this,H)};
var PKf=function(H){H.clearOptions();var U=H.JSC$19823_parsedOptions_,A=U.valueProto_;Ht(!0,_.Hn(A,3),_.Hn(U.signatureFlagProto_,3))&&_.Gg(A,3,!0);return H},Wt=function(H){H.setCenterCrop();
H.JSC$19825_setCircleCrop();H.JSC$19825_setCrop();H.JSC$19825_setImageCrop();H.JSC$19825_setPad();H.JSC$19825_setSmartCrop();H.JSC$19825_setSmartCropNoClip();H.JSC$19825_setSmartCropUseFace()};
K6.prototype.build=function(){var H=this.JSC$19823_parsedOptions_.valueProto_;mA(H,18)||mA(H,45)?H.getSize()||this.setSize(0):(H=this.JSC$19823_parsedOptions_.valueProto_,H.getSize()||H.getWidth()||H.getHeight()||(this.setSize(),this.JSC$19825_setHeight(),this.JSC$19825_setWidth(),Wt(this)));return K6.superClass_.build.call(this)};var sff=/^[^\/]*\/\//,ny$=function(H,U){U=U===void 0?!1:U;this.original_=H;this.originalPrefix_="";(H=this.original_.match(sff))&&H[0]?(this.originalPrefix_=H[0],H=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):H="http://"+this.original_;this.uri_=_.yX(H,!0);this.isFreeformUrl_=U;this.JSC$19829_valid_=!0;this.obfuscated_=!1},Nvk=function(H,U){H.JSC$19831_pathPrefix_=H.JSC$19831_pathPrefix_?H.JSC$19831_pathPrefix_+("/"+U):U},w8=function(H){if(H.JSC$19831_components_==
void 0){var U=H.uri_.getPath().substring(1);
H.JSC$19831_pathPrefix_=null;if(H.isFreeformUrl_){H.JSC$19831_components_=[];if((U.match(/=/g)||[]).length>1)return H.JSC$19829_valid_=!1,H.JSC$19831_components_;var A=U.indexOf("=");A!=-1?(H.JSC$19831_components_.push(U.substr(0,A)),H.JSC$19831_components_.push(U.substr(A+1))):H.JSC$19831_components_.push(U);return H.JSC$19831_components_}H.JSC$19831_components_=U.split("/");U=H.JSC$19831_components_.length;U>2&&H.JSC$19831_components_[0]=="u"&&(Nvk(H,H.JSC$19831_components_[0]+"/"+H.JSC$19831_components_[1]),
H.JSC$19831_components_.shift(),H.JSC$19831_components_.shift(),U-=2);if(U==0||U==4||U>7)return H.JSC$19829_valid_=!1,H.JSC$19831_components_;if(U==2)Nvk(H,H.JSC$19831_components_[0]);else if(H.JSC$19831_components_[0]=="image")Nvk(H,H.JSC$19831_components_[0]);else if(U==7||U==3)return H.JSC$19829_valid_=!1,H.JSC$19831_components_;if(U<=3){H.obfuscated_=!0;U==3&&(Nvk(H,H.JSC$19831_components_[1]),H.JSC$19831_components_.shift(),--U);--U;A=H.JSC$19831_components_[U];var M=A.indexOf("=");M!=-1&&(H.JSC$19831_components_[U]=
A.substr(0,M),H.JSC$19831_components_.push(A.substr(M+1)))}}return H.JSC$19831_components_};
ny$.prototype.isValid=function(){w8(this);return this.JSC$19829_valid_};
ny$.prototype.isObfuscated=function(){w8(this);return this.obfuscated_};
var SY$=function(H){w8(H);return H.isFreeformUrl_},is=function(H){w8(H);
H.JSC$19831_pathPrefix_==void 0&&(H.JSC$19831_pathPrefix_=null);return H.JSC$19831_pathPrefix_},pb5=function(H){switch(w8(H).length){case 7:return!0;
case 6:return is(H)==null;case 5:return!1;case 3:return!0;case 2:return is(H)==null;case 1:return!1;default:return!1}},bs=function(H,U){if(SY$(H))a:{switch(U){case 7:U=0;
break;case 4:if(!pb5(H)){H=null;break a}U=1;break;default:H=null;break a}H=w8(H)[U]}else if(H.isObfuscated())a:{var A=is(H)!=null?1:0;switch(U){case 6:U=A;break;case 4:if(!pb5(H)){H=null;break a}U=1+A;break;default:H=null;break a}H=w8(H)[U]}else a:{A=is(H)!=null?1:0;switch(U){case 0:U=A;break;case 1:U=1+A;break;case 2:U=2+A;break;case 3:U=3+A;break;case 4:if(!pb5(H)){H=null;break a}U=4+A;break;case 5:U=pb5(H)?1:0;U=4+A+U;break;default:H=null;break a}H=w8(H)[U]}return H};
ny$.prototype.getOptions=function(){this.options_==void 0&&(this.options_=bs(this,4));return this.options_};var Mk5=function(){};
Mk5.prototype.parse=function(H,U){return new Uvf(H,U===void 0?!1:U)};
var Uvf=function(H,U){ny$.call(this,H,U===void 0?!1:U)};
_.R(Uvf,ny$);_.zo(w4h,K6);var AGh;w4h.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
w4h.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var H=w4h.superClass_.build.call(this),U=[];is(this.parsedImageUrl_)!=null&&U.push(is(this.parsedImageUrl_));var A=SY$(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var M=this.parsedImageUrl_;M.obfuscatedData_==void 0&&(M.obfuscatedData_=bs(M,6));U.push(M.obfuscatedData_+(H?"="+H:""))}else if(A){M=U.push;var W=this.parsedImageUrl_;W.freeformUrlPath_===void 0&&(W.freeformUrlPath_=
bs(W,7));M.call(U,W.freeformUrlPath_);H&&U.push(H)}else M=U.push,W=this.parsedImageUrl_,W.obfuscatedGaiaId_==void 0&&(W.obfuscatedGaiaId_=bs(W,0)),M.call(U,W.obfuscatedGaiaId_),M=U.push,W=this.parsedImageUrl_,W.photoId_==void 0&&(W.photoId_=bs(W,1)),M.call(U,W.photoId_),M=U.push,W=this.parsedImageUrl_,W.imageVersion_==void 0&&(W.imageVersion_=bs(W,2)),M.call(U,W.imageVersion_),M=U.push,W=this.parsedImageUrl_,W.signature_==void 0&&(W.signature_=bs(W,3)),M.call(U,W.signature_),H&&U.push(H),H=U.push,
M=this.parsedImageUrl_,M.filename_==void 0&&(M.filename_=bs(M,5)),H.call(U,M.filename_);U=A?U.join("="):U.join("/");U=_.yX(this.protocolPrefix_+this.JSC$19837_domain_+"/"+U+(this.JSC$19837_query_?"?"+this.JSC$19837_query_:"")).toString();U.startsWith("%3a//")&&(U=U.replace("%3a//","://"));return U};_.zo(ob,_.HU);ob.prototype.JSC$10377_setLabel=function(H){ob.superClass_.JSC$10377_setLabel.call(this,H);return this};
ob.prototype.addUploadMetadata=function(H,U){ob.superClass_.addUploadMetadata.call(this,H,U);return this};var Lg$=function(H){if(H!=="youtubebanner"&&H!=="youtube-channel-banner")throw Error("Ek");ob.call(this,H)};
_.R(Lg$,ob);Lg$.prototype.JSC$10377_setLabel=function(H){ob.prototype.JSC$10377_setLabel.call(this,H);return this};
Lg$.prototype.addUploadMetadata=function(H,U){ob.prototype.addUploadMetadata.call(this,H,U);return this};var ifY=_.NP(["",""]);var RQ7=[0,_.CT,_.Sm,_.CT,-1,_.Sm,[0,_.pT,_.RT,-1],_.CT,-1];var Eyf=[0,[1,2,3],_.m9,-2];var mE$=[0,_.CT];var gyk=_.NP(["viewBox"]),a17=_.NP(["width"]),xE$=_.NP(["height"]),zQ5=_.NP(["fill"]),CK7=_.NP(["id"]),t45=_.NP(["x"]),chB=_.NP(["y"]);dvX.prototype.getLength=function(){return this.parsedData.length};
dvX.prototype.write=function(H){for(var U=0,A=this.parsedData.length;U<A;U++)H.put(this.parsedData[U],8)};
var oa8=function(H,U){var A=new dvX(U);H.dataList.push(A);A=H.errorCorrectLevel;var M=1,W=encodeURI(U).toString().replace(/%[0-9a-fA-F]{2}/g,"a");U=W.length+(W.length!=U?3:0);W=0;for(var w=d8.length;W<=w;W++){var d=0;switch(A){case 1:d=d8[W][0];break;case 0:d=d8[W][1];break;case 3:d=d8[W][2];break;case 2:d=d8[W][3]}if(U<=d)break;else M++}if(M>d8.length)throw Error("Nk");H.typeNumber=M;H.dataCache=null};
Of8.prototype.isDark=function(H,U){if(H<0||this.moduleCount<=H||U<0||this.moduleCount<=U)throw Error("Fk`"+H+"`"+U);return this.modules[H][U]};
for(var Fq5=function(H,U,A){H.moduleCount=H.typeNumber*4+17;H.modules=Array(H.moduleCount);for(var M=0;M<H.moduleCount;M++){H.modules[M]=Array(H.moduleCount);for(var W=0;W<H.moduleCount;W++)H.modules[M][W]=null}yhB(H,0,0);yhB(H,H.moduleCount-7,0);yhB(H,0,H.moduleCount-7);M=Bv8[H.typeNumber-1];for(W=0;W<M.length;W++)for(var w=0;w<M.length;w++){var d=M[W],O=M[w];if(H.modules[d][O]==null)for(var f=-2;f<=2;f++)for(var J=-2;J<=2;J++)H.modules[d+f][O+J]=f==-2||f==2||J==-2||J==2||f==0&&J==0?!0:!1}for(M=
8;M<H.moduleCount-8;M++)H.modules[M][6]==null&&(H.modules[M][6]=M%2==0);for(M=8;M<H.moduleCount-8;M++)H.modules[6][M]==null&&(H.modules[6][M]=M%2==0);M=H.errorCorrectLevel<<3|A;for(W=M<<10;Ou(W)-Ou(1335)>=0;)W^=1335<<Ou(W)-Ou(1335);M=(M<<10|W)^21522;for(W=0;W<15;W++)w=!U&&(M>>W&1)==1,W<6?H.modules[W][8]=w:W<8?H.modules[W+1][8]=w:H.modules[H.moduleCount-15+W][8]=w;for(W=0;W<15;W++)w=!U&&(M>>W&1)==1,W<8?H.modules[8][H.moduleCount-W-1]=w:W<9?H.modules[8][15-W-1+1]=w:H.modules[8][15-W-1]=w;H.modules[H.moduleCount-
8][8]=!U;if(H.typeNumber>=7){M=H.typeNumber;for(W=M<<12;Ou(W)-Ou(7973)>=0;)W^=7973<<Ou(W)-Ou(7973);M=M<<12|W;for(W=0;W<18;W++)w=!U&&(M>>W&1)==1,H.modules[Math.floor(W/3)][W%3+H.moduleCount-8-3]=w;for(W=0;W<18;W++)w=!U&&(M>>W&1)==1,H.modules[W%3+H.moduleCount-8-3][Math.floor(W/3)]=w}if(H.dataCache==null){W=H.typeNumber;w=H.dataList;U=H.errorCorrectLevel;M=rh5(W,U);if(M==void 0)throw Error("Mk`"+W+"`"+U);d=M.length/3;U=[];for(O=0;O<d;O++){f=M[O*3];J=M[O*3+1];for(var F=M[O*3+2],P=0;P<f;P++)U.push(new upf(J,
F))}M=new Zf$;for(d=0;d<w.length;d++)O=w[d],M.put(O.mode,4),M.put(O.getLength(),eQp(O.mode,W)),O.write(M);for(d=W=0;d<U.length;d++)W+=U[d].dataCount;if(M.length>W*8)throw Error("Gk`"+M.length+"`"+W*8);for(M.length+4<=W*8&&M.put(0,4);M.length%8!=0;)DEm(M,!1);for(;!(M.length>=W*8);){M.put(236,8);if(M.length>=W*8)break;M.put(17,8)}w=W=J=0;d=Array(U.length);O=Array(U.length);for(f=0;f<U.length;f++){P=U[f].dataCount;var n=U[f].totalCount-P;W=Math.max(W,P);w=Math.max(w,n);d[f]=Array(P);for(F=0;F<d[f].length;F++)d[f][F]=
255&M.buffer[F+J];J+=P;F=n;P=new F2([1],0);for(n=0;n<F;n++)P=P.multiply(new F2([1,$E8(n)],0));F=P;P=(new F2(d[f],F.getLength()-1)).mod(F);O[f]=Array(F.getLength()-1);for(F=0;F<O[f].length;F++)n=F+P.getLength()-O[f].length,O[f][F]=n>=0?P.get(n):0}for(F=M=0;F<U.length;F++)M+=U[F].totalCount;M=Array(M);for(F=J=0;F<W;F++)for(f=0;f<U.length;f++)F<d[f].length&&(M[J++]=d[f][F]);for(F=0;F<w;F++)for(f=0;f<U.length;f++)F<O[f].length&&(M[J++]=O[f][F]);H.dataCache=M}U=H.dataCache;M=-1;W=H.moduleCount-1;w=7;d=
0;for(O=H.moduleCount-1;O>0;O-=2)for(O==6&&O--;;){for(f=0;f<2;f++)H.modules[W][O-f]==null&&(J=!1,d<U.length&&(J=(U[d]>>>w&1)==1),l1f(A,W,O-f)&&(J=!J),H.modules[W][O-f]=J,w--,w==-1&&(d++,w=7));W+=M;if(W<0||H.moduleCount<=W){W-=M;M=-M;break}}},yhB=function(H,U,A){for(var M=-1;M<=7;M++)if(!(U+M<=-1||H.moduleCount<=U+M))for(var W=-1;W<=7;W++)A+W<=-1||H.moduleCount<=A+W||(H.modules[U+M][A+W]=0<=M&&M<=6&&(W==0||W==6)||0<=W&&W<=6&&(M==0||M==6)||2<=M&&M<=4&&2<=W&&W<=4?!0:!1)},PN7=function(H){for(var U=0,
A=0,M=0;M<8;M++){Fq5(H,!0,M);
var W=H;for(var w=W.moduleCount,d=0,O=0;O<w;O++)for(var f=0;f<w;f++){for(var J=0,F=W.isDark(O,f),P=-1;P<=1;P++)if(!(O+P<0||w<=O+P))for(var n=-1;n<=1;n++)f+n<0||w<=f+n||(P!=0||n!=0)&&F==W.isDark(O+P,f+n)&&J++;J>5&&(d+=3+J-5)}for(O=0;O<w-1;O++)for(f=0;f<w-1;f++)if(J=0,W.isDark(O,f)&&J++,W.isDark(O+1,f)&&J++,W.isDark(O,f+1)&&J++,W.isDark(O+1,f+1)&&J++,J==0||J==4)d+=3;for(O=0;O<w;O++)for(f=0;f<w-6;f++)W.isDark(O,f)&&!W.isDark(O,f+1)&&W.isDark(O,f+2)&&W.isDark(O,f+3)&&W.isDark(O,f+4)&&!W.isDark(O,f+5)&&
W.isDark(O,f+6)&&(d+=40);for(f=0;f<w;f++)for(O=0;O<w-6;O++)W.isDark(O,f)&&!W.isDark(O+1,f)&&W.isDark(O+2,f)&&W.isDark(O+3,f)&&W.isDark(O+4,f)&&!W.isDark(O+5,f)&&W.isDark(O+6,f)&&(d+=40);for(f=J=0;f<w;f++)for(O=0;O<w;O++)W.isDark(O,f)&&J++;W=d+=Math.abs(100*J/w/w-50)/5*10;if(M==0||U>W)U=W,A=M}return A},Bv8=[[],
[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]],Ou=function(H){for(var U=0;H!=0;)U++,H>>>=1;return U},l1f=function(H,U,A){switch(H){case 0:return(U+A)%2==0;
case 1:return U%2==0;case 2:return A%3==0;case 3:return(U+A)%3==0;case 4:return(Math.floor(U/2)+Math.floor(A/3))%2==0;case 5:return U*A%2+U*A%3==0;case 6:return(U*A%2+U*A%3)%2==0;case 7:return(U*A%3+(U+A)%2)%2==0;default:throw Error("Hk`"+H);}},eQp=function(H,U){if(1<=U&&U<10)switch(H){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Ik`"+H);}else if(U<27)switch(H){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Ik`"+H);}else if(U<41)switch(H){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Ik`"+H);}else throw Error("Jk`"+U);},YYh=function(H){if(H<1)throw Error("Kk`"+H);
return Gmp[H]},$E8=function(H){for(;H<0;)H+=255;
for(;H>=256;)H-=255;return us[H]},us=Array(256),Gmp=Array(256),qY5=0;qY5<8;qY5++)us[qY5]=1<<qY5;
for(var ZZ=8;ZZ<256;ZZ++)us[ZZ]=us[ZZ-4]^us[ZZ-5]^us[ZZ-6]^us[ZZ-8];for(var hQm=0;hQm<255;hQm++)Gmp[us[hQm]]=hQm;F2.prototype.get=function(H){return this.num[H]};
F2.prototype.getLength=function(){return this.num.length};
F2.prototype.multiply=function(H){for(var U=Array(this.getLength()+H.getLength()-1),A=0;A<this.getLength();A++)for(var M=0;M<H.getLength();M++)U[A+M]^=$E8(YYh(this.get(A))+YYh(H.get(M)));return new F2(U,0)};
F2.prototype.mod=function(H){if(this.getLength()-H.getLength()<0)return this;for(var U=YYh(this.get(0))-YYh(H.get(0)),A=Array(this.getLength()),M=0;M<this.getLength();M++)A[M]=this.get(M);for(M=0;M<H.getLength();M++)A[M]^=$E8(YYh(H.get(M))+U);return(new F2(A,0)).mod(H)};
var kmp=[[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]],rh5=function(H,U){switch(U){case 1:return kmp[(H-1)*4];case 0:return kmp[(H-1)*4+1];case 3:return kmp[(H-1)*4+2];case 2:return kmp[(H-1)*4+3]}};
Zf$.prototype.get=function(H){return(this.buffer[Math.floor(H/8)]>>>7-H%8&1)==1};
Zf$.prototype.put=function(H,U){for(var A=0;A<U;A++)DEm(this,(H>>>U-A-1&1)==1)};
var DEm=function(H,U){var A=Math.floor(H.length/8);H.buffer.length<=A&&H.buffer.push(0);U&&(H.buffer[A]|=128>>>H.length%8);H.length++},d8=[[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]],Kqh=function(){var H=function(U,A){this.JSC$19863__el=U;this.JSC$19863__htOption=A};
H.prototype.draw=function(U){function A(F,P){F=document.createElementNS("http://www.w3.org/2000/svg",F);for(var n in P)P.hasOwnProperty(n)&&(n==="href"?ZKj(F,P[n]):_.oD([_.N2(gyk),_.N2(a17),_.N2(xE$),_.N2(zQ5),_.N2(CK7),_.N2(t45),_.N2(chB)],F,n,P[n]));return F}
var M=this.JSC$19863__htOption,W=this.JSC$19863__el,w=U.moduleCount;this.clear();var d=A("svg",{viewBox:"0 0 "+String(w)+" "+String(w),width:"100%",height:"100%",fill:M.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});W.appendChild(d);d.appendChild(A("rect",{fill:M.colorLight,width:"100%",height:"100%"}));d.appendChild(A("rect",{fill:M.colorDark,width:"1",height:"1",id:"template"}));for(var O=0;O<w;O++)for(var f=0;f<w;f++)if(U.isDark(O,f)){var J=A("use",{x:String(O),y:String(f),href:"#template"});
d.appendChild(J)}};
H.prototype.clear=function(){for(;this.JSC$19863__el.hasChildNodes();)this.JSC$19863__el.removeChild(this.JSC$19863__el.lastChild)};
return H}(),JGm=document.documentElement.tagName.toLowerCase()==="svg"?Kqh:typeof CanvasRenderingContext2D!="undefined"?function(){var H=function(U,A){this._bIsPainted=!1;
ftj();this.JSC$19863__htOption=A;this._elCanvas=document.createElement("canvas");this._elCanvas.width=A.width;this._elCanvas.height=A.height;U.appendChild(this._elCanvas);this.JSC$19863__el=U;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$19863__el.appendChild(this._elImage);this._bSupportDataURI=null};
H.prototype._onMakeImage=function(){var U=this._elCanvas.toDataURL("image/png");this._elImage.src=U;this._elImage.style.display="block";this._elCanvas.style.display="none"};
H.prototype._safeSetDataURI=function(U,A){var M=this;M._fFail=A;M._fSuccess=U;M._bSupportDataURI===null?(U=_.Q9("IMG"),A=function(){M._bSupportDataURI=!1;M._fFail&&M._fFail.call(M)},U.onabort=A,U.onerror=A,U.onload=function(){M._bSupportDataURI=!0;
M._fSuccess&&M._fSuccess.call(M)},U.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):M._bSupportDataURI===!0&&M._fSuccess?M._fSuccess.call(M):M._bSupportDataURI===!1&&M._fFail&&M._fFail.call(M)};
H.prototype.draw=function(U){var A=this._oContext,M=this.JSC$19863__htOption,W=U.moduleCount,w=M.width/W,d=M.height/W,O=Math.round(w),f=Math.round(d);this._elImage.style.display="none";this.clear();for(var J=0;J<W;J++)for(var F=0;F<W;F++){var P=U.isDark(J,F),n=F*w,N=J*d;A.strokeStyle=P?M.colorDark:M.colorLight;A.lineWidth=1;A.fillStyle=P?M.colorDark:M.colorLight;A.fillRect(n,N,w,d);A.strokeRect(Math.floor(n)+.5,Math.floor(N)+.5,O,f);A.strokeRect(Math.ceil(n)-.5,Math.ceil(N)-.5,O,f)}this._bIsPainted=
!0};
H.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
H.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
H.prototype.round=function(U){return U?Math.floor(U*1E3)/1E3:U};
return H}():function(){var H=function(U,A){this.JSC$19863__el=U;
this.JSC$19863__htOption=A};
H.prototype.draw=function(U){for(var A=this.JSC$19863__htOption,M=this.JSC$19863__el,W=U.moduleCount,w=Math.floor(A.width/W),d=Math.floor(A.height/W),O=['<table style="border:0;border-collapse:collapse;">'],f=0;f<W;f++){O.push("<tr>");for(var J=0;J<W;J++)O.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+w+"px;height:"+d+"px;background-color:"+(U.isDark(f,J)?A.colorDark:A.colorLight)+';"></td>');O.push("</tr>")}O.push("</table>");U=O.join("");U=_.Qk2(_.HpH,U);_.KU(M,U);
U=M.childNodes[0];W=(A.width-U.offsetWidth)/2;w=(A.height-U.offsetHeight)/2;W>0&&w>0&&(U.style.margin=w+"px "+W+"px")};
H.prototype.clear=function(){this.JSC$19863__el.textContent=""};
return H}();
srf.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19866__android||this.JSC$19866__android>=3)&&this._oDrawing.makeImage()};
srf.prototype.clear=function(){this._oDrawing.clear()};
_.Mr.QRCode=srf;var vy5={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var CNm=function(){};
CNm.prototype.stringify=function(H){return _.Mr.JSON.stringify(H,void 0)};
CNm.prototype.parse=function(H){return _.Mr.JSON.parse(H,void 0)};var Tvm=function(){_.$R.call(this,"z")};
_.zo(Tvm,_.$R);var jf$=function(){_.$R.call(this,"y")};
_.zo(jf$,_.$R);var NnB=null;_.zo(p4B,_.$R);_.zo(R2$,_.$R);_.zo(Ea8,_.$R);sK.prototype.disableRedact=function(){this.redactEnabled_=!1};
var I1B=function(H,U,A,M,W,w){H.info(function(){if(H.redactEnabled_)if(w){var d="";for(var O=w.split("&"),f=0;f<O.length;f++){var J=O[f].split("=");if(J.length>1){var F=J[0];J=J[1];var P=F.split("_");d=P.length>=2&&P[1]=="type"?d+(F+"="+J+"&"):d+(F+"=redacted&")}}}else d=null;else d=w;return"XMLHTTP REQ ("+M+") [attempt "+W+"]: "+U+"\n"+A+"\n"+d})},Qfk=function(H,U,A,M,W,w,d){H.info(function(){return"XMLHTTP RESP ("+M+") [ attempt "+W+"]: "+U+"\n"+A+"\n"+w+" "+d})},f4=function(H,U,A,M){H.info(function(){return"XMLHTTP TEXT ("+
U+"): "+V4X(H,A)+(M?" "+M:"")})},Ham=function(H,U){H.info(function(){return"TIMEOUT: "+U})};
sK.prototype.debug=function(){};
sK.prototype.info=function(){};
sK.prototype.warning=function(){};
var V4X=function(H,U){if(!H.redactEnabled_)return U;if(!U)return null;try{var A=JSON.parse(U);if(A)for(var M=0;M<A.length;M++)if(Array.isArray(A[M])){var W=A[M];if(!(W.length<2)){var w=W[1];if(Array.isArray(w)&&!(w.length<1)){var d=w[0];if(d!="noop"&&d!="stop"&&d!="close")for(var O=1;O<w.length;O++)w[O]=""}}}return(0,_.uR)(A)}catch(f){return H.debug("Exception parsing expected JS array - probably was not JS"),U}};var at8=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},UIj=function(H,U){switch(H){case 0:return"Non-200 return code ("+U+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Ab5={},Me7={};
n6.prototype.setTimeout=function(H){this.timeout_=H};
var wNf=function(H,U,A){H.JSC$19888_type_=1;H.JSC$19888_baseUri_=_.$t(U.clone());H.JSC$19888_postData_=A;H.decodeChunks_=!0;W1B(H,null)},W1B=function(H,U){H.JSC$19888_requestStartTime_=Date.now();
XNB(H);H.JSC$19888_requestUri_=H.JSC$19888_baseUri_.clone();wS7(H.JSC$19888_requestUri_,"t",H.JSC$19888_retryId_);H.JSC$19888_xmlHttpChunkStart_=0;var A=H.JSC$19888_channel_.JSC$19907_supportsCrossDomainXhrs_;H.fetchResponseState_=new at8;H.JSC$19888_xmlHttp_=iah(H.JSC$19888_channel_,A?U:null,!H.JSC$19888_postData_);H.JSC$19888_readyStateChangeThrottleMs_>0&&(H.JSC$19888_readyStateChangeThrottle_=new _.B$((0,_.i9)(H.JSC$19892_xmlHttpHandler_,H,H.JSC$19888_xmlHttp_),H.JSC$19888_readyStateChangeThrottleMs_));
H.JSC$19888_eventHandler_.listen(H.JSC$19888_xmlHttp_,"readystatechange",H.JSC$19892_readyStateChangeHandler_);U=H.JSC$19888_extraHeaders_?_.dG.clone(H.JSC$19888_extraHeaders_):{};H.JSC$19888_postData_?(H.JSC$19888_verb_||(H.JSC$19888_verb_="POST"),U["Content-Type"]="application/x-www-form-urlencoded",H.JSC$19888_xmlHttp_.send(H.JSC$19888_requestUri_,H.JSC$19888_verb_,H.JSC$19888_postData_,U)):(H.JSC$19888_verb_="GET",H.JSC$19888_xmlHttp_.send(H.JSC$19888_requestUri_,H.JSC$19888_verb_,null,U));LqY(1);
I1B(H.JSC$19888_channelDebug_,H.JSC$19888_verb_,H.JSC$19888_requestUri_,H.JSC$19888_rid_,H.JSC$19888_retryId_,H.JSC$19888_postData_)};
n6.prototype.JSC$19892_readyStateChangeHandler_=function(H){H=H.target;var U=this.JSC$19888_readyStateChangeThrottle_;U&&_.fR(H)==3?(this.JSC$19888_channelDebug_.debug("Throttling readystatechange."),U.fire()):this.JSC$19892_xmlHttpHandler_(H)};
n6.prototype.JSC$19892_xmlHttpHandler_=function(H){try{H==this.JSC$19888_xmlHttp_?ba5(this):this.JSC$19888_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(U){this.JSC$19888_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),dIm(this)}finally{}};
var ba5=function(H){var U=_.fR(H.JSC$19888_xmlHttp_),A=H.JSC$19888_xmlHttp_.JSC$10099_lastErrorCode_,M=H.JSC$19888_xmlHttp_.getStatus();if(!(U<3||U==3&&!dIm(H))){H.JSC$19888_cancelled_||U!=4||A==7||(A==8||M<=0?LqY(3):LqY(2));Oa8(H);var W=H.JSC$19888_xmlHttp_.getStatus();H.JSC$19888_lastStatusCode_=W;A=un7(H);dIm(H)||H.JSC$19888_channelDebug_.debug(function(){return"No response text for uri "+H.JSC$19888_requestUri_+" status "+W});
H.JSC$19888_successful_=W==200;Qfk(H.JSC$19888_channelDebug_,H.JSC$19888_verb_,H.JSC$19888_requestUri_,H.JSC$19888_rid_,H.JSC$19888_retryId_,U,W);if(H.JSC$19888_successful_){if(H.decodeInitialResponse_&&!H.initialResponseDecoded_)if(M=Zah(H))f4(H.JSC$19888_channelDebug_,H.JSC$19888_rid_,M,"Initial handshake response via X-HTTP-Initial-Response"),H.initialResponseDecoded_=!0,f_m(H,M);else{H.JSC$19888_successful_=!1;H.JSC$19888_lastError_=3;PT(12);H.JSC$19888_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
H.JSC$19888_rid_+")");JY(H);Jbm(H);return}H.decodeChunks_?K17(H,U,A):(f4(H.JSC$19888_channelDebug_,H.JSC$19888_rid_,A,null),f_m(H,A));U==4&&JY(H);H.JSC$19888_successful_&&!H.JSC$19888_cancelled_&&(U==4?ov8(H.JSC$19888_channel_,H):(H.JSC$19888_successful_=!1,XNB(H)))}else Mtk(H.JSC$19888_xmlHttp_),W==400&&A.indexOf("Unknown SID")>0?(H.JSC$19888_lastError_=3,PT(12),H.JSC$19888_channelDebug_.warning("XMLHTTP Unknown SID ("+H.JSC$19888_rid_+")")):(H.JSC$19888_lastError_=0,PT(13),H.JSC$19888_channelDebug_.warning("XMLHTTP Bad status "+
W+" ("+H.JSC$19888_rid_+")")),JY(H),Jbm(H)}},Zah=function(H){return H.JSC$19888_xmlHttp_&&(H=ju5(H.JSC$19888_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.b7(H)?H:null},un7=function(H){if(!F1$(H))return H.JSC$19888_xmlHttp_.getResponseText();
var U=H.JSC$19888_xmlHttp_.getResponse();if(U==="")return"";var A="",M=U.length,W=_.fR(H.JSC$19888_xmlHttp_)==4;if(!H.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return JY(H),Jbm(H),"";H.fetchResponseState_.textDecoder=new _.Mr.TextDecoder}for(var w=0;w<M;w++)H.fetchResponseState_.responseArrivedForFetch=!0,A+=H.fetchResponseState_.textDecoder.decode(U[w],{stream:!(W&&w==M-1)});U.length=0;H.fetchResponseState_.responseBuffer+=A;H.JSC$19888_xmlHttpChunkStart_=0;return H.fetchResponseState_.responseBuffer},
dIm=function(H){return H.JSC$19888_xmlHttp_?H.fetchResponseState_.responseArrivedForFetch?!0:!(!H.JSC$19888_xmlHttp_.getResponseText()&&!H.JSC$19888_xmlHttp_.getResponse()):!1},F1$=function(H){return H.JSC$19888_xmlHttp_?H.JSC$19888_verb_=="GET"&&H.JSC$19888_type_!=2&&H.JSC$19888_channel_.usesFetchStreams_:!1},K17=function(H,U,A){for(var M=!0,W;!H.JSC$19888_cancelled_&&H.JSC$19888_xmlHttpChunkStart_<A.length;)if(W=P8$(H,A),W==Me7){U==4&&(H.JSC$19888_lastError_=4,PT(14),M=!1);
f4(H.JSC$19888_channelDebug_,H.JSC$19888_rid_,null,"[Incomplete Response]");break}else if(W==Ab5){H.JSC$19888_lastError_=4;PT(15);f4(H.JSC$19888_channelDebug_,H.JSC$19888_rid_,A,"[Invalid Chunk]");M=!1;break}else f4(H.JSC$19888_channelDebug_,H.JSC$19888_rid_,W,null),f_m(H,W);F1$(H)&&H.JSC$19888_xmlHttpChunkStart_!=0&&(H.fetchResponseState_.responseBuffer=H.fetchResponseState_.responseBuffer.slice(H.JSC$19888_xmlHttpChunkStart_),H.JSC$19888_xmlHttpChunkStart_=0);U!=4||A.length!=0||H.fetchResponseState_.responseArrivedForFetch||
(H.JSC$19888_lastError_=1,PT(16),M=!1);H.JSC$19888_successful_=H.JSC$19888_successful_&&M;M?A.length>0&&!H.firstByteReceived_&&(H.firstByteReceived_=!0,U=H.JSC$19888_channel_,U.JSC$19907_backChannelRequest_==H&&U.detectBufferingProxy_&&!U.bpDetectionDone_&&(U.JSC$19907_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+A.length),sJh(U),U.bpDetectionDone_=!0,PT(11))):(f4(H.JSC$19888_channelDebug_,H.JSC$19888_rid_,A,"[Invalid Chunked Response]"),JY(H),Jbm(H))},P8$=function(H,
U){var A=H.JSC$19888_xmlHttpChunkStart_,M=U.indexOf("\n",A);
if(M==-1)return Me7;A=Number(U.substring(A,M));if(isNaN(A))return Ab5;M+=1;if(M+A>U.length)return Me7;U=U.slice(M,M+A);H.JSC$19888_xmlHttpChunkStart_=M+A;return U};
n6.prototype.cancel=function(){this.JSC$19888_cancelled_=!0;JY(this)};
var XNB=function(H){H.JSC$19888_watchDogTimeoutTime_=Date.now()+H.timeout_;nvf(H,H.timeout_)},nvf=function(H,U){if(H.JSC$19888_watchDogTimerId_!=null)throw Error("Pk");
H.JSC$19888_watchDogTimerId_=gaf((0,_.i9)(H.JSC$19892_onWatchDogTimeout_,H),U)},Oa8=function(H){H.JSC$19888_watchDogTimerId_&&(_.Mr.clearTimeout(H.JSC$19888_watchDogTimerId_),H.JSC$19888_watchDogTimerId_=null)};
n6.prototype.JSC$19892_onWatchDogTimeout_=function(){this.JSC$19888_watchDogTimerId_=null;var H=Date.now();H-this.JSC$19888_watchDogTimeoutTime_>=0?(Ham(this.JSC$19888_channelDebug_,this.JSC$19888_requestUri_),this.JSC$19888_type_!=2&&(LqY(3),PT(17)),JY(this),this.JSC$19888_lastError_=2,Jbm(this)):(this.JSC$19888_channelDebug_.warning("WatchDog timer called too early"),nvf(this,this.JSC$19888_watchDogTimeoutTime_-H))};
var Jbm=function(H){H.JSC$19888_channel_.state_==0||H.JSC$19888_cancelled_||ov8(H.JSC$19888_channel_,H)},JY=function(H){Oa8(H);
_.zg(H.JSC$19888_readyStateChangeThrottle_);H.JSC$19888_readyStateChangeThrottle_=null;H.JSC$19888_eventHandler_.removeAll();if(H.JSC$19888_xmlHttp_){var U=H.JSC$19888_xmlHttp_;H.JSC$19888_xmlHttp_=null;U.abort();U.dispose()}};
n6.prototype.getLastError=function(){return this.JSC$19888_lastError_};
var f_m=function(H,U){try{var A=H.JSC$19888_channel_;if(A.state_!=0&&(A.JSC$19907_backChannelRequest_==H||N6$(A.forwardChannelRequestPool_,H)))if(!H.initialResponseDecoded_&&N6$(A.forwardChannelRequestPool_,H)&&A.state_==3){try{var M=A.wireCodec_.JSC$19902_parser_.parse(U)}catch(O){M=null}if(Array.isArray(M)&&M.length==3){U=M;if(U[0]==0)a:if(A.JSC$19907_channelDebug_.debug("Server claims our backchannel is missing."),A.JSC$19907_backChannelTimerId_)A.JSC$19907_channelDebug_.debug("But we are currently starting the request.");
else{if(A.JSC$19907_backChannelRequest_)if(A.JSC$19907_backChannelRequest_.JSC$19888_requestStartTime_+3E3<H.JSC$19888_requestStartTime_)S8X(A),pN8(A);else break a;else A.JSC$19907_channelDebug_.warning("We do not have a BackChannel established");L1y(A);PT(18)}else{A.JSC$19907_lastPostResponseArrayId_=U[1];var W=A.JSC$19907_lastPostResponseArrayId_-A.JSC$19907_lastArrayId_;if(0<W){var w=U[2];A.JSC$19907_channelDebug_.debug(w+" bytes (in "+W+" arrays) are outstanding on the BackChannel");w<37500&&
A.enableStreaming_&&A.JSC$19907_backChannelRetryCount_==0&&!A.JSC$19907_deadBackChannelTimerId_&&(A.JSC$19907_deadBackChannelTimerId_=gaf((0,_.i9)(A.JSC$19909_onBackChannelDead_,A),6E3))}}if(Rxp(A.forwardChannelRequestPool_)<=1&&A.forwardChannelFlushedCallback_){try{A.forwardChannelFlushedCallback_()}catch(O){}A.forwardChannelFlushedCallback_=void 0}}else A.JSC$19907_channelDebug_.debug("Bad POST response data returned"),K4(A,11)}else if((H.initialResponseDecoded_||A.JSC$19907_backChannelRequest_==
H)&&S8X(A),!_.b7(U)){var d=A.wireCodec_.JSC$19902_parser_.parse(U);A.onInput_(d,H)}LqY(4)}catch(O){}};var EvY=function(H,U){this.JSC$19895_mapId=H;this.map=U;this.context=null};var yGY=function(H){this.maxPoolSizeConfigured_=H||10;_.Mr.PerformanceNavigationTiming?(H=_.Mr.performance.getEntriesByType("navigation"),H=H.length>0&&(H[0].nextHopProtocol=="hq"||H[0].nextHopProtocol=="h2")):H=!!(_.Mr.chrome&&_.Mr.chrome.loadTimes&&_.Mr.chrome.loadTimes()&&_.Mr.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19898_maxSize_=H?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19898_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19898_request_=null;this.JSC$19898_pendingMessages_=
[]},mIy=function(H){return H.JSC$19898_request_?!0:H.requestPool_?H.requestPool_.size>=H.JSC$19898_maxSize_:!1},Rxp=function(H){return H.JSC$19898_request_?1:H.requestPool_?H.requestPool_.size:0},N6$=function(H,U){return H.JSC$19898_request_?H.JSC$19898_request_==U:H.requestPool_?H.requestPool_.has(U):!1},gv$=function(H,U){H.requestPool_?H.requestPool_.add(U):H.JSC$19898_request_=U},a_p=function(H,U){H.JSC$19898_request_&&H.JSC$19898_request_==U?H.JSC$19898_request_=null:H.requestPool_&&H.requestPool_.has(U)&&
H.requestPool_.delete(U)};
yGY.prototype.cancel=function(){this.JSC$19898_pendingMessages_=xIj(this);if(this.JSC$19898_request_)this.JSC$19898_request_.cancel(),this.JSC$19898_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var H=_.b(this.requestPool_.values()),U=H.next();!U.done;U=H.next())U.value.cancel();this.requestPool_.clear()}};
var xIj=function(H){if(H.JSC$19898_request_!=null)return H.JSC$19898_pendingMessages_.concat(H.JSC$19898_request_.JSC$19888_pendingMessages_);if(H.requestPool_!=null&&H.requestPool_.size!==0){var U=H.JSC$19898_pendingMessages_;H=_.b(H.requestPool_.values());for(var A=H.next();!A.done;A=H.next())U=U.concat(A.value.JSC$19888_pendingMessages_);return U}return _.$c(H.JSC$19898_pendingMessages_)},zx5=function(H,U){H.JSC$19898_pendingMessages_=H.JSC$19898_pendingMessages_.concat(U)};SH.prototype.JSC$19909_channelVersion_=8;SH.prototype.state_=1;
SH.prototype.connect=function(H,U,A,M){this.JSC$19907_channelDebug_.debug("connect()");PT(0);this.JSC$19907_path_=H;this.JSC$19907_extraParams_=U||{};A&&M!==void 0&&(this.JSC$19907_extraParams_.OSID=A,this.JSC$19907_extraParams_.OAID=M);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19907_channelDebug_.debug("connectChannel_()");H=C8y(this,null,this.JSC$19907_path_);this.JSC$19907_channelDebug_.debug("GetForwardChannelUri: "+H);this.JSC$19907_forwardChannelUri_=H;tej(this)};
SH.prototype.disconnect=function(){this.JSC$19907_channelDebug_.debug("disconnect()");cbj(this);if(this.state_==3){var H=this.JSC$19907_nextRid_++,U=this.JSC$19907_forwardChannelUri_.clone();_.rO(U,"SID",this.sid_);_.rO(U,"RID",H);_.rO(U,"TYPE","terminate");yb$(this,U);H=new n6(this,this.JSC$19907_channelDebug_,this.sid_,H);H.JSC$19888_type_=2;H.JSC$19888_baseUri_=_.$t(U.clone());U=!1;if(_.Mr.navigator&&_.Mr.navigator.sendBeacon)try{U=_.Mr.navigator.sendBeacon(H.JSC$19888_baseUri_.toString(),"")}catch(A){}!U&&
_.Mr.Image&&((new Image).src=H.JSC$19888_baseUri_,U=!0);U||(H.JSC$19888_xmlHttp_=iah(H.JSC$19888_channel_,null),H.JSC$19888_xmlHttp_.send(H.JSC$19888_baseUri_));H.JSC$19888_requestStartTime_=Date.now();XNB(H)}B6h(this)};
var pN8=function(H){H.JSC$19907_backChannelRequest_&&(sJh(H),H.JSC$19907_backChannelRequest_.cancel(),H.JSC$19907_backChannelRequest_=null)},cbj=function(H){pN8(H);
H.JSC$19907_backChannelTimerId_&&(_.Mr.clearTimeout(H.JSC$19907_backChannelTimerId_),H.JSC$19907_backChannelTimerId_=null);S8X(H);H.forwardChannelRequestPool_.cancel();H.JSC$19907_forwardChannelTimerId_&&(typeof H.JSC$19907_forwardChannelTimerId_==="number"&&_.Mr.clearTimeout(H.JSC$19907_forwardChannelTimerId_),H.JSC$19907_forwardChannelTimerId_=null)};
SH.prototype.getState=function(){return this.state_};
var tej=function(H){mIy(H.forwardChannelRequestPool_)||H.JSC$19907_forwardChannelTimerId_||(H.JSC$19907_forwardChannelTimerId_=!0,_.Xf(H.JSC$19909_onStartForwardChannelTimer_,H),H.JSC$19907_forwardChannelRetryCount_=0)},exm=function(H,U){if(Rxp(H.forwardChannelRequestPool_)>=H.forwardChannelRequestPool_.JSC$19898_maxSize_-(H.JSC$19907_forwardChannelTimerId_?1:0))return!1;
if(H.JSC$19907_forwardChannelTimerId_)return H.JSC$19907_channelDebug_.debug("Use the retry request that is already scheduled."),H.JSC$19907_outgoingMaps_=U.JSC$19888_pendingMessages_.concat(H.JSC$19907_outgoingMaps_),!0;if(H.state_==1||H.state_==2||H.JSC$19907_forwardChannelRetryCount_>=(H.JSC$19907_failFast_?0:H.JSC$19907_forwardChannelMaxRetries_))return!1;H.JSC$19907_channelDebug_.debug("Going to retry POST");H.JSC$19907_forwardChannelTimerId_=gaf((0,_.i9)(H.JSC$19909_onStartForwardChannelTimer_,
H,U),rbX(H,H.JSC$19907_forwardChannelRetryCount_));H.JSC$19907_forwardChannelRetryCount_++;return!0};
SH.prototype.JSC$19909_onStartForwardChannelTimer_=function(H){if(this.JSC$19907_forwardChannelTimerId_)if(this.JSC$19907_forwardChannelTimerId_=null,this.JSC$19907_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!H){this.JSC$19907_channelDebug_.debug("open_()");this.JSC$19907_nextRid_=Math.floor(Math.random()*1E5);H=this.JSC$19907_nextRid_++;var U=new n6(this,this.JSC$19907_channelDebug_,"",H),A=this.JSC$19907_extraHeaders_;this.initHeaders_&&(A?(A=_.dG.clone(A),_.dG.extend(A,this.initHeaders_)):
A=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(U.JSC$19888_extraHeaders_=A,A=null);var M;if(this.fastHandshake_)a:{for(var W=M=0;W<this.JSC$19907_outgoingMaps_.length;W++){b:{var w=this.JSC$19907_outgoingMaps_[W];if("__data__"in w.map&&(w=w.map.__data__,typeof w==="string")){w=w.length;break b}w=void 0}if(w===void 0)break;M+=w;if(M>4096){M=W;break a}if(M===4096||W===this.JSC$19907_outgoingMaps_.length-1){M=W+1;break a}}M=1E3}else M=1E3;M=DIk(this,U,M);
W=this.JSC$19907_forwardChannelUri_.clone();_.rO(W,"RID",H);_.rO(W,"CVER",22);this.httpSessionIdParam_&&_.rO(W,"X-HTTP-Session-Id",this.httpSessionIdParam_);yb$(this,W);A&&(this.encodeInitMessageHeaders_?M="headers="+_.q2(QUj(A))+"&"+M:this.httpHeadersOverwriteParam_&&Vck(W,this.httpHeadersOverwriteParam_,A));gv$(this.forwardChannelRequestPool_,U);this.blockingHandshake_&&_.rO(W,"TYPE","init");this.fastHandshake_?(_.rO(W,"$req",M),_.rO(W,"SID","null"),U.decodeInitialResponse_=!0,wNf(U,W,null)):wNf(U,
W,M);this.state_=2}}else this.state_==3&&(H?$I5(this,H):this.JSC$19907_outgoingMaps_.length==0?this.JSC$19907_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):mIy(this.forwardChannelRequestPool_)||($I5(this),this.JSC$19907_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var $I5=function(H,U){var A;U?A=U.JSC$19888_rid_:A=H.JSC$19907_nextRid_++;var M=H.JSC$19907_forwardChannelUri_.clone();_.rO(M,"SID",H.sid_);_.rO(M,"RID",A);_.rO(M,"AID",H.JSC$19907_lastArrayId_);yb$(H,M);H.httpHeadersOverwriteParam_&&H.JSC$19907_extraHeaders_&&Vck(M,H.httpHeadersOverwriteParam_,H.JSC$19907_extraHeaders_);A=new n6(H,H.JSC$19907_channelDebug_,H.sid_,A,H.JSC$19907_forwardChannelRetryCount_+1);H.httpHeadersOverwriteParam_===null&&(A.JSC$19888_extraHeaders_=H.JSC$19907_extraHeaders_);
U&&(H.JSC$19907_outgoingMaps_=U.JSC$19888_pendingMessages_.concat(H.JSC$19907_outgoingMaps_));U=DIk(H,A,1E3);A.setTimeout(Math.round(H.JSC$19907_forwardChannelRequestTimeoutMs_*.5)+Math.round(H.JSC$19907_forwardChannelRequestTimeoutMs_*.5*Math.random()));gv$(H.forwardChannelRequestPool_,A);wNf(A,M,U)},yb$=function(H,U){H.JSC$19907_extraParams_&&_.dG.forEach(H.JSC$19907_extraParams_,function(A,M){_.rO(U,M,A)});
H.handler_&&_.dG.forEach({},function(A,M){_.rO(U,M,A)})},DIk=function(H,U,A){A=Math.min(H.JSC$19907_outgoingMaps_.length,A);
var M=H.handler_?(0,_.i9)(H.handler_.JSC$19913_badMapError,H.handler_,H):null;a:{for(var W=H.JSC$19907_outgoingMaps_,w=-1;;){var d=["count="+A];w==-1?A>0?(w=W[0].JSC$19895_mapId,d.push("ofs="+w)):w=0:d.push("ofs="+w);for(var O=!0,f=0;f<A;f++){var J=W[f].JSC$19895_mapId,F=W[f].map;J-=w;if(J<0)w=Math.max(0,W[f].JSC$19895_mapId-100),O=!1;else try{J="req"+J+"_"||"";try{var P=F instanceof Map?F:Object.entries(F);for(var n=_.b(P),N=n.next();!N.done;N=n.next()){var L=_.b(N.value),m=L.next().value,z=L.next().value,
c=z;_.ht(z)&&(c=(0,_.uR)(z));d.push(J+m+"="+encodeURIComponent(c))}}catch(C){throw d.push(J+"type="+encodeURIComponent("_badmap")),C;}}catch(C){M&&M(F)}}if(O){P=d.join("&");break a}}P=void 0}H=H.JSC$19907_outgoingMaps_.splice(0,A);U.JSC$19888_pendingMessages_=H;return P},l_j=function(H){H.JSC$19907_backChannelRequest_||H.JSC$19907_backChannelTimerId_||(H.JSC$19907_backChannelAttemptId_=1,_.Xf(H.JSC$19909_onStartBackChannelTimer_,H),H.JSC$19907_backChannelRetryCount_=0)},L1y=function(H){if(H.JSC$19907_backChannelRequest_||
H.JSC$19907_backChannelTimerId_||H.JSC$19907_backChannelRetryCount_>=3)return!1;
H.JSC$19907_channelDebug_.debug("Going to retry GET");H.JSC$19907_backChannelAttemptId_++;H.JSC$19907_backChannelTimerId_=gaf((0,_.i9)(H.JSC$19909_onStartBackChannelTimer_,H),rbX(H,H.JSC$19907_backChannelRetryCount_));H.JSC$19907_backChannelRetryCount_++;return!0};
SH.prototype.JSC$19909_onStartBackChannelTimer_=function(){this.JSC$19907_backChannelTimerId_=null;GOy(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19907_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19907_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19907_backChannelRequest_+" "+this.handshakeRttMs_);else{var H=4*this.handshakeRttMs_;this.JSC$19907_channelDebug_.info("BP detection timer enabled: "+H);this.bpDetectionTimerId_=gaf((0,_.i9)(this.onBpDetectionTimer_,
this),H)}};
SH.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19907_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19907_backChannelRequest_.JSC$19888_xmlHttp_!=null){var H=this.JSC$19907_backChannelRequest_.JSC$19888_xmlHttp_.getResponseText();H&&this.JSC$19907_channelDebug_.warning("Timer should have been cancelled : "+H)}this.JSC$19907_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;PT(10);pN8(this);GOy(this)}else this.JSC$19907_channelDebug_.warning("Invalid operation.")};
var sJh=function(H){H.bpDetectionTimerId_!=null&&(H.JSC$19907_channelDebug_.debug("Cancel the BP detection timer."),_.Mr.clearTimeout(H.bpDetectionTimerId_),H.bpDetectionTimerId_=null)},GOy=function(H){H.JSC$19907_channelDebug_.debug("Creating new HttpRequest");
H.JSC$19907_backChannelRequest_=new n6(H,H.JSC$19907_channelDebug_,H.sid_,"rpc",H.JSC$19907_backChannelAttemptId_);H.httpHeadersOverwriteParam_===null&&(H.JSC$19907_backChannelRequest_.JSC$19888_extraHeaders_=H.JSC$19907_extraHeaders_);H.JSC$19907_backChannelRequest_.JSC$19888_readyStateChangeThrottleMs_=0;var U=H.JSC$19907_backChannelUri_.clone();_.rO(U,"RID","rpc");_.rO(U,"SID",H.sid_);_.rO(U,"AID",H.JSC$19907_lastArrayId_);_.rO(U,"CI",H.enableStreaming_?"0":"1");!H.enableStreaming_&&H.longPollingTimeout_&&
_.rO(U,"TO",H.longPollingTimeout_);_.rO(U,"TYPE","xmlhttp");yb$(H,U);H.httpHeadersOverwriteParam_&&H.JSC$19907_extraHeaders_&&Vck(U,H.httpHeadersOverwriteParam_,H.JSC$19907_extraHeaders_);H.backChannelRequestTimeoutMs_&&H.JSC$19907_backChannelRequest_.setTimeout(H.backChannelRequestTimeoutMs_);var A=H.JSC$19907_backChannelRequest_,M=H.JSC$19907_hostPrefix_;A.JSC$19888_type_=1;A.JSC$19888_baseUri_=_.$t(U.clone());A.JSC$19888_postData_=null;A.decodeChunks_=!0;W1B(A,M);H.JSC$19907_channelDebug_.debug("New Request created")};
SH.prototype.JSC$19909_onBackChannelDead_=function(){this.JSC$19907_deadBackChannelTimerId_!=null&&(this.JSC$19907_deadBackChannelTimerId_=null,pN8(this),L1y(this),PT(19))};
var S8X=function(H){H.JSC$19907_deadBackChannelTimerId_!=null&&(_.Mr.clearTimeout(H.JSC$19907_deadBackChannelTimerId_),H.JSC$19907_deadBackChannelTimerId_=null)},ov8=function(H,U){H.JSC$19907_channelDebug_.debug("Request complete");
var A=null;if(H.JSC$19907_backChannelRequest_==U){S8X(H);sJh(H);H.JSC$19907_backChannelRequest_=null;var M=2}else if(N6$(H.forwardChannelRequestPool_,U))A=U.JSC$19888_pendingMessages_,a_p(H.forwardChannelRequestPool_,U),M=1;else return;if(H.state_!=0)if(U.JSC$19888_successful_)M==1?(mvp(U.JSC$19888_postData_?U.JSC$19888_postData_.length:0,Date.now()-U.JSC$19888_requestStartTime_,H.JSC$19907_forwardChannelRetryCount_),tej(H)):l_j(H);else{var W=U.JSC$19888_lastStatusCode_,w=U.getLastError();if(w==3||
w==0&&W>0)H.JSC$19907_channelDebug_.debug("Not retrying due to error type"),W>200&&(H.errorResponseStatusCode_=U.JSC$19888_lastStatusCode_);else{H.JSC$19907_channelDebug_.debug(function(){return"Maybe retrying, last error: "+UIj(w,H.errorResponseStatusCode_)});
if(M==1&&exm(H,U)||M==2&&L1y(H))return;H.JSC$19907_channelDebug_.debug("Exceeded max number of retries")}A&&A.length>0&&zx5(H.forwardChannelRequestPool_,A);H.JSC$19907_channelDebug_.debug("Error: HTTP request failed");switch(w){case 1:K4(H,5);break;case 4:K4(H,10);break;case 3:K4(H,6);break;default:K4(H,2)}}},rbX=function(H,U){var A=H.JSC$19907_baseRetryDelayMs_+Math.floor(Math.random()*H.JSC$19907_retryDelaySeedMs_);
H.isActive()||(H.JSC$19907_channelDebug_.debug("Inactive channel"),A*=2);return A*U};
SH.prototype.onInput_=function(H,U){for(var A=0;A<H.length;A++){var M=H[A],W=M[0];if(W<=this.JSC$19907_lastArrayId_)this.JSC$19907_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+W+", lastArrayId: "+this.JSC$19907_lastArrayId_);else if(W>this.JSC$19907_lastArrayId_+1&&this.JSC$19907_lastArrayId_>-1&&this.JSC$19907_channelDebug_.warning("Received non-consecutive message with arrayId: "+W+", lastArrayId: "+this.JSC$19907_lastArrayId_),this.JSC$19907_lastArrayId_=W,
M=M[1],this.state_==2)if(M[0]=="c"){this.sid_=M[1];this.JSC$19907_hostPrefix_=M[2];W=M[3];W!=null&&(this.JSC$19909_channelVersion_=W,this.JSC$19907_channelDebug_.info("VER="+this.JSC$19909_channelVersion_));W=M[4];W!=null&&(this.serverVersion_=W,this.JSC$19907_channelDebug_.info("SVER="+this.serverVersion_));M=M[5];M!=null&&typeof M==="number"&&M>0&&(this.backChannelRequestTimeoutMs_=M*=1.5,this.JSC$19907_channelDebug_.info("backChannelRequestTimeoutMs_="+M));if(M=U.JSC$19888_xmlHttp_){var w=ju5(M,
"X-Client-Wire-Protocol");w&&(W=this.forwardChannelRequestPool_,!W.requestPool_&&(_.OM(w,"spdy")||_.OM(w,"quic")||_.OM(w,"h2"))&&(W.JSC$19898_maxSize_=W.maxPoolSizeConfigured_,W.requestPool_=new Set,W.JSC$19898_request_&&(gv$(W,W.JSC$19898_request_),W.JSC$19898_request_=null)));this.httpSessionIdParam_&&((M=ju5(M,"X-HTTP-Session-Id"))?(this.httpSessionId_=M,_.rO(this.JSC$19907_forwardChannelUri_,this.httpSessionIdParam_,M)):this.JSC$19907_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19913_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-U.JSC$19888_requestStartTime_,this.JSC$19907_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));M=U;W=C8y(this,this.JSC$19907_supportsCrossDomainXhrs_?this.JSC$19907_hostPrefix_:null,this.JSC$19907_path_);this.JSC$19907_channelDebug_.debug("GetBackChannelUri: "+W);this.JSC$19907_backChannelUri_=W;M.initialResponseDecoded_?(this.JSC$19907_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
a_p(this.forwardChannelRequestPool_,M),W=M,(w=this.backChannelRequestTimeoutMs_)&&W.setTimeout(w),W.JSC$19888_watchDogTimerId_&&(Oa8(W),XNB(W)),this.JSC$19907_backChannelRequest_=M):l_j(this);this.JSC$19907_outgoingMaps_.length>0&&tej(this)}else M[0]!="stop"&&M[0]!="close"||K4(this,7);else this.state_==3&&(M[0]=="stop"||M[0]=="close"?M[0]=="stop"?K4(this,7):this.disconnect():M[0]!="noop"&&this.handler_&&this.handler_.JSC$19913_channelHandleArray(M),this.JSC$19907_backChannelRetryCount_=0)}};
var K4=function(H,U){H.JSC$19907_channelDebug_.info("Error code "+U);if(U==2){var A=(0,_.i9)(H.testNetworkCallback_,H),M=H.networkTestUrl_,W=!M;M=new _.n1(M||"//www.google.com/images/cleardot.gif");_.Mr.location&&_.Mr.location.protocol=="http"||_.zz(M,"https");_.$t(M);W?xv7(M.toString(),A):z25(M.toString(),A)}else PT(2);H.onError_(U)};
SH.prototype.testNetworkCallback_=function(H){H?(this.JSC$19907_channelDebug_.info("Successfully pinged google.com"),PT(2)):(this.JSC$19907_channelDebug_.info("Failed to ping google.com"),PT(1))};
SH.prototype.onError_=function(H){this.JSC$19907_channelDebug_.debug("HttpChannel: error - "+H);this.state_=0;this.handler_&&this.handler_.JSC$19913_channelError(H);B6h(this);cbj(this)};
var B6h=function(H){H.state_=0;H.nonAckedMapsAtChannelClose_=[];if(H.handler_){var U=xIj(H.forwardChannelRequestPool_);if(U.length!=0||H.JSC$19907_outgoingMaps_.length!=0)H.JSC$19907_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+U.length+", outgoing: "+H.JSC$19907_outgoingMaps_.length}),_.qr(H.nonAckedMapsAtChannelClose_,U),_.qr(H.nonAckedMapsAtChannelClose_,H.JSC$19907_outgoingMaps_),H.forwardChannelRequestPool_.JSC$19898_pendingMessages_.length=0,_.$c(H.JSC$19907_outgoingMaps_),
H.JSC$19907_outgoingMaps_.length=0;
H.handler_.JSC$19913_channelClosed()}},Y8f=function(H){if(H.state_==0)return H.nonAckedMapsAtChannelClose_;
var U=[];_.qr(U,xIj(H.forwardChannelRequestPool_));_.qr(U,H.JSC$19907_outgoingMaps_);return U},C8y=function(H,U,A){var M=_.yX(A);
M.JSC$10335_domain_!=""?(U&&_.CR(M,U+"."+M.JSC$10335_domain_),_.tn(M,M.JSC$10335_port_)):(M=_.Mr.location,M=pR8(M.protocol,U?U+"."+M.hostname:M.hostname,+M.port,A));U=H.httpSessionIdParam_;A=H.httpSessionId_;U&&A&&_.rO(M,U,A);_.rO(M,"VER",H.JSC$19909_channelVersion_);yb$(H,M);return M},iah=function(H,U,A){if(U&&!H.JSC$19907_supportsCrossDomainXhrs_)throw Error("Qk");
U=H.usesFetchStreams_&&!H.JSC$19907_xmlHttpFactory_?new _.Zm(new vih({streamBinaryChunks:A})):new _.Zm(H.JSC$19907_xmlHttpFactory_);U.JSC$10099_withCredentials_=H.JSC$19907_supportsCrossDomainXhrs_;return U};
SH.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var q8Y=function(){};
_.X=q8Y.prototype;_.X.JSC$19913_channelOpened=function(){};
_.X.JSC$19913_channelHandleArray=function(){};
_.X.JSC$19913_channelError=function(){};
_.X.JSC$19913_channelClosed=function(){};
_.X.isActive=function(){return!0};
_.X.JSC$19913_badMapError=function(){};var FR=function(H,U){_.LW.call(this);this.JSC$19916_channel_=new SH(U);this.JSC$19916_url_=H;this.messageUrlParams_=U&&U.messageUrlParams||null;H=U&&U.messageHeaders||null;U&&U.clientProtocolHeaderRequired&&(H?_.dG.set(H,"X-Client-Protocol","webchannel"):H=_.dG.create("X-Client-Protocol","webchannel"));this.JSC$19916_channel_.JSC$19907_extraHeaders_=H;H=U&&U.initMessageHeaders||null;U&&U.messageContentType&&(H?_.dG.set(H,"X-WebChannel-Content-Type",U.messageContentType):H=_.dG.create("X-WebChannel-Content-Type",
U.messageContentType));U&&U.clientProfile&&(H?_.dG.set(H,"X-WebChannel-Client-Profile",U.clientProfile):H=_.dG.create("X-WebChannel-Client-Profile",U.clientProfile));this.JSC$19916_channel_.initHeaders_=H;(H=U&&U.httpHeadersOverwriteParam)&&!_.b7(H)&&(this.JSC$19916_channel_.httpHeadersOverwriteParam_=H);this.supportsCrossDomainXhr_=U&&U.supportsCrossDomainXhr||!1;this.sendRawJson_=U&&U.sendRawJson||!1;(U=U&&U.httpSessionIdParam)&&!_.b7(U)&&(this.JSC$19916_channel_.httpSessionIdParam_=U,_.dG.containsKey(this.messageUrlParams_,
U)&&_.dG.remove(this.messageUrlParams_,U));this.channelHandler_=new oe(this)};
_.zo(FR,_.LW);FR.prototype.open=function(){this.JSC$19916_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19916_channel_.JSC$19907_supportsCrossDomainXhrs_=!0);this.JSC$19916_channel_.connect(this.JSC$19916_url_,this.messageUrlParams_||void 0)};
FR.prototype.close=function(){this.JSC$19916_channel_.disconnect()};
FR.prototype.send=function(H){var U=this.JSC$19916_channel_;if(typeof H==="string"){var A={};A.__data__=H;H=A}else this.sendRawJson_&&(A={},A.__data__=(0,_.uR)(H),H=A);U.JSC$19907_outgoingMaps_.push(new EvY(U.JSC$19907_nextMapId_++,H));U.state_==3&&tej(U)};
FR.prototype.disposeInternal=function(){this.JSC$19916_channel_.handler_=null;delete this.channelHandler_;this.JSC$19916_channel_.disconnect();delete this.JSC$19916_channel_;FR.superClass_.disposeInternal.call(this)};
var hx$=function(H){Tvm.call(this);H.__headers__&&(this.headers=H.__headers__,this.statusCode=H.__status__,delete H.__headers__,delete H.__status__);var U=H.__sm__;U?this.data=(this.metadataKey=_.dG.getAnyKey(U))?_.dG.get(U,this.metadataKey):U:this.data=H};
_.zo(hx$,Tvm);var kOX=function(H){jf$.call(this);this.status=1;this.errorCode=H};
_.zo(kOX,jf$);var oe=function(H){this.JSC$19923_channel_=H};
_.zo(oe,q8Y);oe.prototype.JSC$19913_channelOpened=function(){this.JSC$19923_channel_.dispatchEvent("w")};
oe.prototype.JSC$19913_channelHandleArray=function(H){this.JSC$19923_channel_.dispatchEvent(new hx$(H))};
oe.prototype.JSC$19913_channelError=function(H){this.JSC$19923_channel_.dispatchEvent(new kOX(H))};
oe.prototype.JSC$19913_channelClosed=function(){this.JSC$19923_channel_.dispatchEvent("x")};
var vvB=function(H,U){this.transportChannel_=H;this.JSC$19926_channel_=U},T6k=function(H){return Y8f(H.JSC$19926_channel_).map(function(U){var A=H.transportChannel_;
U=U.map;"__data__"in U?(U=U.__data__,A=A.sendRawJson_?(0,_.RYz)(U):U):A=U;return A})};
vvB.prototype.commit=function(H){this.JSC$19926_channel_.forwardChannelFlushedCallback_=H};var jJj=function(H,U,A){for(var M=0;M<H.getSize().height;M++)for(var W=0;W<H.getSize().width;W++)U.call(A,H.array_[M][W],M,W,H)},I_$=function(H,U){var A=new p6(H.getSize());
jJj(H,function(M,W,w){A.array_[W][w]=U.call(void 0,M,W,w,H)});
return A},rGf=function(H,U){for(var A=[],M=0;M<H;M++){A[M]=[];
for(var W=0;W<U;W++)A[M][W]=0}return A};
p6.prototype.add=function(H){if(!FM$(this.size_,H.getSize()))throw Error("Tk");return I_$(this,function(U,A,M){return U+H.array_[A][M]})};
p6.prototype.equals=function(H,U){if(this.size_.width!=H.size_.width||this.size_.height!=H.size_.height)return!1;U=U||0;for(var A=0;A<this.size_.height;A++)for(var M=0;M<this.size_.width;M++)if(!oG$(this.array_[A][M],H.array_[A][M],U))return!1;return!0};
p6.prototype.getSize=function(){return this.size_};
var Pt=function(H,U,A){return U>=0&&U<H.size_.height&&A>=0&&A<H.size_.width?H.array_[U][A]:null};
p6.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var QJ$=function(H,U,A,M){if(!(U>=0&&U<H.size_.height&&A>=0&&A<H.size_.width))throw Error("Uk`"+U+"`"+A+"`"+H.size_.height+"`"+H.size_.width);H.array_[U][A]=M};
p6.prototype.multiply=function(H){if(H instanceof p6){if(this.size_.width!=H.getSize().height)throw Error("Vk");return Ve$(this,H)}if(typeof H==="number")return Hm5(this,H);throw Error("Wk");};
var Ve$=function(H,U){var A=new p6(H.size_.height,U.getSize().width);jJj(A,function(M,W,w){for(var d=M=0;d<this.size_.width;d++)M+=Pt(this,W,d)*Pt(U,d,w);QJ$(A,W,w,M)},H);
return A},Hm5=function(H,U){return I_$(H,function(A){return A*U})};var su=function(H){UM$.dispatchEvent(new A1k(UM$,H))},UM$=new _.LW,A1k=function(H,U){_.$R.call(this,"statevent",H);
this.stat=U};
_.R(A1k,_.$R);_.X=Rb.prototype;_.X.JSC$19936_extraHeaders_=null;_.X.JSC$19936_successful_=!1;_.X.JSC$19936_watchDogTimerId_=null;_.X.JSC$19936_watchDogTimeoutTime_=null;_.X.JSC$19936_requestStartTime_=null;_.X.JSC$19936_type_=null;_.X.JSC$19936_baseUri_=null;_.X.JSC$19936_requestUri_=null;_.X.JSC$19936_postData_=null;_.X.JSC$19936_xmlHttp_=null;_.X.JSC$19936_xmlHttpChunkStart_=0;_.X.trident_=null;_.X.JSC$19936_verb_=null;_.X.JSC$19936_lastError_=null;_.X.JSC$19936_lastStatusCode_=-1;_.X.sendClose_=!0;
_.X.JSC$19936_cancelled_=!1;_.X.JSC$19936_readyStateChangeThrottleMs_=0;_.X.JSC$19936_readyStateChangeThrottle_=null;var MA5=function(H,U){switch(H){case 0:return"Non-200 return code ("+U+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},WEX={},wAX={};
Rb.prototype.setTimeout=function(H){this.timeout_=H};
var imh=function(H,U,A){H.JSC$19936_type_=1;H.JSC$19936_baseUri_=_.$t(U.clone());H.JSC$19936_postData_=A;H.decodeChunks_=!0;XA5(H,null)},bmh=function(H,U,A,M,W){H.JSC$19936_type_=1;
H.JSC$19936_baseUri_=_.$t(U.clone());H.JSC$19936_postData_=null;H.decodeChunks_=A;W&&(H.sendClose_=!1);XA5(H,M)},XA5=function(H,U){H.JSC$19936_requestStartTime_=Date.now();
dM8(H);H.JSC$19936_requestUri_=H.JSC$19936_baseUri_.clone();wS7(H.JSC$19936_requestUri_,"t",H.JSC$19934_retryId_);H.JSC$19936_xmlHttpChunkStart_=0;H.JSC$19936_xmlHttp_=H.JSC$19934_channel_.JSC$19943_createXhrIo(H.JSC$19934_channel_.JSC$19943_shouldUseSecondaryDomains()?U:null);H.JSC$19936_readyStateChangeThrottleMs_>0&&(H.JSC$19936_readyStateChangeThrottle_=new _.B$((0,_.i9)(H.JSC$19936_xmlHttpHandler_,H,H.JSC$19936_xmlHttp_),H.JSC$19936_readyStateChangeThrottleMs_));H.JSC$19934_eventHandler_.listen(H.JSC$19936_xmlHttp_,
"readystatechange",H.JSC$19936_readyStateChangeHandler_);U=H.JSC$19936_extraHeaders_?_.dG.clone(H.JSC$19936_extraHeaders_):{};H.JSC$19936_postData_?(H.JSC$19936_verb_="POST",U["Content-Type"]="application/x-www-form-urlencoded",H.JSC$19936_xmlHttp_.send(H.JSC$19936_requestUri_,H.JSC$19936_verb_,H.JSC$19936_postData_,U)):(H.JSC$19936_verb_="GET",H.sendClose_&&!_.kA&&(U.Connection="close"),H.JSC$19936_xmlHttp_.send(H.JSC$19936_requestUri_,H.JSC$19936_verb_,null,U));H.JSC$19934_channel_.notifyServerReachabilityEvent(1);
U=H.JSC$19934_channelDebug_;var A=H.JSC$19936_postData_;if(A){var M="";A=A.split("&");for(var W=0;W<A.length;W++){var w=A[W].split("=");if(w.length>1){var d=w[0];w=w[1];var O=d.split("_");M=O.length>=2&&O[1]=="type"?M+(d+"="+w+"&"):M+(d+"=redacted&")}}}else M=null;U.info("XMLHTTP REQ ("+H.JSC$19934_rid_+") [attempt "+H.JSC$19934_retryId_+"]: "+H.JSC$19936_verb_+"\n"+H.JSC$19936_requestUri_+"\n"+M)};
Rb.prototype.JSC$19936_readyStateChangeHandler_=function(H){H=H.target;var U=this.JSC$19936_readyStateChangeThrottle_;U&&_.fR(H)==3?(this.JSC$19934_channelDebug_.debug("Throttling readystatechange."),U.fire()):this.JSC$19936_xmlHttpHandler_(H)};
Rb.prototype.JSC$19936_xmlHttpHandler_=function(H){try{if(H==this.JSC$19936_xmlHttp_)a:{var U=_.fR(this.JSC$19936_xmlHttp_),A=this.JSC$19936_xmlHttp_.JSC$10099_lastErrorCode_,M=this.JSC$19936_xmlHttp_.getStatus();if(_.kA&&!_.rj("420+")){if(U<4)break a}else if(U<3||U==3&&!this.JSC$19936_xmlHttp_.getResponseText())break a;this.JSC$19936_cancelled_||U!=4||A==7||(A==8||M<=0?this.JSC$19934_channel_.notifyServerReachabilityEvent(3):this.JSC$19934_channel_.notifyServerReachabilityEvent(2));Omf(this);var W=
this.JSC$19936_xmlHttp_.getStatus();this.JSC$19936_lastStatusCode_=W;var w=this.JSC$19936_xmlHttp_.getResponseText();w||this.JSC$19934_channelDebug_.debug("No response text for uri "+this.JSC$19936_requestUri_+" status "+W);this.JSC$19936_successful_=W==200;this.JSC$19934_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19934_rid_+") [ attempt "+this.JSC$19934_retryId_+"]: "+this.JSC$19936_verb_+"\n"+this.JSC$19936_requestUri_+"\n"+U+" "+W);if(this.JSC$19936_successful_){U==4&&u3m(this);if(this.decodeChunks_){for(H=
!0;!this.JSC$19936_cancelled_&&this.JSC$19936_xmlHttpChunkStart_<w.length;){var d=Zmh(this,w);if(d==wAX){U==4&&(this.JSC$19936_lastError_=4,su(15),H=!1);faB(this.JSC$19934_channelDebug_,this.JSC$19934_rid_,null,"[Incomplete Response]");break}else if(d==WEX){this.JSC$19936_lastError_=4;su(16);faB(this.JSC$19934_channelDebug_,this.JSC$19934_rid_,w,"[Invalid Chunk]");H=!1;break}else faB(this.JSC$19934_channelDebug_,this.JSC$19934_rid_,d,null),J1j(this,d)}U==4&&w.length==0&&(this.JSC$19936_lastError_=
1,su(17),H=!1);this.JSC$19936_successful_=this.JSC$19936_successful_&&H;H||(faB(this.JSC$19934_channelDebug_,this.JSC$19934_rid_,w,"[Invalid Chunked Response]"),u3m(this),KEh(this))}else faB(this.JSC$19934_channelDebug_,this.JSC$19934_rid_,w,null),J1j(this,w);this.JSC$19936_successful_&&!this.JSC$19936_cancelled_&&(U==4?this.JSC$19934_channel_.JSC$19943_onRequestComplete(this):(this.JSC$19936_successful_=!1,dM8(this)))}else W==400&&w.indexOf("Unknown SID")>0?(this.JSC$19936_lastError_=3,su(13),this.JSC$19934_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19934_rid_+")")):(this.JSC$19936_lastError_=0,su(14),this.JSC$19934_channelDebug_.warning("XMLHTTP Bad status "+W+" ("+this.JSC$19934_rid_+")")),u3m(this),KEh(this)}else this.JSC$19934_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(O){this.JSC$19934_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var Zmh=function(H,U){var A=H.JSC$19936_xmlHttpChunkStart_,M=U.indexOf("\n",A);if(M==-1)return wAX;A=Number(U.substring(A,M));if(isNaN(A))return WEX;M+=1;if(M+A>U.length)return wAX;U=U.slice(M,M+A);H.JSC$19936_xmlHttpChunkStart_=M+A;return U};
Rb.prototype.cancel=function(){this.JSC$19936_cancelled_=!0;u3m(this)};
var dM8=function(H){H.JSC$19936_watchDogTimeoutTime_=Date.now()+H.timeout_;o0B(H,H.timeout_)},o0B=function(H,U){if(H.JSC$19936_watchDogTimerId_!=null)throw Error("Pk");
H.JSC$19936_watchDogTimerId_=L6((0,_.i9)(H.JSC$19936_onWatchDogTimeout_,H),U)},Omf=function(H){H.JSC$19936_watchDogTimerId_&&(_.Mr.clearTimeout(H.JSC$19936_watchDogTimerId_),H.JSC$19936_watchDogTimerId_=null)};
Rb.prototype.JSC$19936_onWatchDogTimeout_=function(){this.JSC$19936_watchDogTimerId_=null;var H=Date.now();H-this.JSC$19936_watchDogTimeoutTime_>=0?(this.JSC$19934_channelDebug_.info("TIMEOUT: "+this.JSC$19936_requestUri_),this.JSC$19936_type_!=2&&this.JSC$19934_channel_.notifyServerReachabilityEvent(3),u3m(this),this.JSC$19936_lastError_=2,su(18),KEh(this)):(this.JSC$19934_channelDebug_.warning("WatchDog timer called too early"),o0B(this,this.JSC$19936_watchDogTimeoutTime_-H))};
var KEh=function(H){H.JSC$19934_channel_.JSC$19943_isClosed()||H.JSC$19936_cancelled_||H.JSC$19934_channel_.JSC$19943_onRequestComplete(H)},u3m=function(H){Omf(H);
_.zg(H.JSC$19936_readyStateChangeThrottle_);H.JSC$19936_readyStateChangeThrottle_=null;H.pollingTimer_.stop();H.JSC$19934_eventHandler_.removeAll();if(H.JSC$19936_xmlHttp_){var U=H.JSC$19936_xmlHttp_;H.JSC$19936_xmlHttp_=null;U.abort();U.dispose()}H.trident_&&(H.trident_=null)};
Rb.prototype.getLastError=function(){return this.JSC$19936_lastError_};
var J1j=function(H,U){try{H.JSC$19934_channel_.JSC$19943_onRequestData(H,U),H.JSC$19934_channel_.notifyServerReachabilityEvent(4)}catch(A){}};var faB=function(H,U,A,M){var W=H.info;a:if(A&&A!="y2f%"){try{var w=JSON.parse(A);if(w)for(var d=0;d<w.length;d++)if(Array.isArray(w[d])){var O=w[d];if(!(O.length<2)){var f=O[1];if(Array.isArray(f)&&!(f.length<1)){var J=f[0];if(J!="noop"&&J!="stop")for(var F=1;F<f.length;F++)f[F]=""}}}var P=(0,_.uR)(w);break a}catch(n){H.debug("Exception parsing expected JS array - probably was not JS");P=A;break a}P=void 0}else P=A;W.call(H,"XMLHTTP TEXT ("+U+"): "+P+(M?" "+M:""))};
EK.prototype.debug=function(H){this.info(H)};
EK.prototype.info=function(){};
EK.prototype.warning=function(){};var FEj=function(H,U){this.JSC$19941_channel_=H;this.JSC$19941_channelDebug_=U;this.JSC$19941_parser_=new CNm};
_.X=FEj.prototype;_.X.JSC$19943_extraHeaders_=null;_.X.JSC$19943_request_=null;_.X.receivedIntermediateResult_=!1;_.X.JSC$19943_path_=null;_.X.state_=null;_.X.JSC$19943_lastStatusCode_=-1;_.X.JSC$19943_hostPrefix_=null;_.X.blockedPrefix_=null;
_.X.connect=function(H){this.JSC$19943_path_=H;H=PQh(this.JSC$19941_channel_,this.JSC$19943_path_);su(3);Date.now();var U=this.JSC$19941_channel_.firstTestResults_;U!=null?(this.JSC$19943_hostPrefix_=U[0],(this.blockedPrefix_=U[1])?(this.state_=1,sNj(this)):(this.state_=2,n0m(this))):(wS7(H,"MODE","init"),this.JSC$19943_request_=new Rb(this,this.JSC$19941_channelDebug_),this.JSC$19943_request_.JSC$19936_extraHeaders_=this.JSC$19943_extraHeaders_,bmh(this.JSC$19943_request_,H,!1,null,!0),this.state_=
0)};
var sNj=function(H){var U=NF7(H.JSC$19941_channel_,H.blockedPrefix_,"/mail/images/cleardot.gif");_.$t(U);DvB(U.toString(),5E3,(0,_.i9)(H.checkBlockedCallback_,H),3,2E3);H.notifyServerReachabilityEvent(1)};
FEj.prototype.checkBlockedCallback_=function(H){if(H)this.state_=2,n0m(this);else{su(4);var U=this.JSC$19941_channel_;U.JSC$19944_channelDebug_.debug("Test Connection Blocked");U.JSC$19948_lastStatusCode_=U.connectionTest_.JSC$19943_lastStatusCode_;n4(U,9)}H&&this.notifyServerReachabilityEvent(2)};
var n0m=function(H){H.JSC$19941_channelDebug_.debug("TestConnection: starting stage 2");var U=H.JSC$19941_channel_.secondTestResults_;U!=null?(H.JSC$19941_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+U?"Buffered":"Unbuffered"),su(5),U?(su(11),SFk(H.JSC$19941_channel_,H,!1)):(su(12),SFk(H.JSC$19941_channel_,H,!0))):(H.JSC$19943_request_=new Rb(H,H.JSC$19941_channelDebug_),H.JSC$19943_request_.JSC$19936_extraHeaders_=H.JSC$19943_extraHeaders_,U=pA8(H.JSC$19941_channel_,
H.JSC$19943_hostPrefix_,H.JSC$19943_path_),su(5),wS7(U,"TYPE","xmlhttp"),bmh(H.JSC$19943_request_,U,!1,H.JSC$19943_hostPrefix_,!1))};
_.X=FEj.prototype;_.X.JSC$19943_createXhrIo=function(H){return this.JSC$19941_channel_.JSC$19943_createXhrIo(H)};
_.X.abort=function(){this.JSC$19943_request_&&(this.JSC$19943_request_.cancel(),this.JSC$19943_request_=null);this.JSC$19943_lastStatusCode_=-1};
_.X.JSC$19943_isClosed=function(){return!1};
_.X.JSC$19943_onRequestData=function(H,U){this.JSC$19943_lastStatusCode_=H.JSC$19936_lastStatusCode_;if(this.state_==0)if(this.JSC$19941_channelDebug_.debug("TestConnection: Got data for stage 1"),U){try{var A=this.JSC$19941_parser_.parse(U)}catch(M){LEh(this.JSC$19941_channel_,this);return}this.JSC$19943_hostPrefix_=A[0];this.blockedPrefix_=A[1]}else this.JSC$19941_channelDebug_.debug("TestConnection: Null responseText"),LEh(this.JSC$19941_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(su(7),Date.now()):U=="11111"?(su(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19943_lastStatusCode_=200,this.JSC$19943_request_.cancel(),this.JSC$19941_channelDebug_.debug("Test connection succeeded; using streaming connection"),su(12),SFk(this.JSC$19941_channel_,this,!0)):(su(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.X.JSC$19943_onRequestComplete=function(){this.JSC$19943_lastStatusCode_=this.JSC$19943_request_.JSC$19936_lastStatusCode_;this.JSC$19943_request_.JSC$19936_successful_?this.state_==0?(this.JSC$19941_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,sNj(this)):(this.state_=2,n0m(this))):this.state_==2&&(this.JSC$19941_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19941_channelDebug_.debug("Test connection succeeded; using streaming connection"),
su(12),SFk(this.JSC$19941_channel_,this,!0)):(this.JSC$19941_channelDebug_.debug("Test connection failed; not using streaming"),su(11),SFk(this.JSC$19941_channel_,this,!1))):(this.JSC$19941_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?su(9):this.state_==2&&su(10),LEh(this.JSC$19941_channel_,this,this.JSC$19943_request_.getLastError()))};
_.X.JSC$19943_shouldUseSecondaryDomains=function(){return this.JSC$19941_channel_.JSC$19943_shouldUseSecondaryDomains()};
_.X.isActive=function(){return this.JSC$19941_channel_.isActive()};
_.X.notifyServerReachabilityEvent=function(H){this.JSC$19941_channel_.notifyServerReachabilityEvent(H)};var N8=function(H,U,A){this.state_=1;this.JSC$19944_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19944_channelDebug_=new EK;this.JSC$19944_parser_=new CNm;this.firstTestResults_=H||null;this.secondTestResults_=U!=null?U:null;this.asyncTest_=A||!1},RnB=function(H,U){this.JSC$19946_mapId=H;
this.map=U;this.context=null};
_.X=N8.prototype;_.X.JSC$19948_extraHeaders_=null;_.X.JSC$19948_extraParams_=null;_.X.forwardChannelRequest_=null;_.X.JSC$19948_backChannelRequest_=null;_.X.JSC$19948_path_=null;_.X.JSC$19948_forwardChannelUri_=null;_.X.JSC$19948_backChannelUri_=null;_.X.JSC$19948_hostPrefix_=null;_.X.JSC$19948_nextRid_=0;_.X.JSC$19948_nextMapId_=0;_.X.handler_=null;_.X.JSC$19948_forwardChannelTimerId_=null;_.X.JSC$19948_backChannelTimerId_=null;_.X.JSC$19948_deadBackChannelTimerId_=null;_.X.connectionTest_=null;
_.X.useChunked_=null;_.X.JSC$19948_lastArrayId_=-1;_.X.JSC$19948_lastPostResponseArrayId_=-1;_.X.JSC$19948_lastStatusCode_=-1;_.X.JSC$19948_forwardChannelRetryCount_=0;_.X.JSC$19948_backChannelRetryCount_=0;_.X.JSC$19948_channelVersion_=8;var E0h={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},mMB=function(H,U,A,M){_.$R.call(this,"timingevent",H);this.size=U;this.rtt=A;this.retries=M};
_.zo(mMB,_.$R);var g0h=function(H){_.$R.call(this,"serverreachability",H)};
_.zo(g0h,_.$R);N8.prototype.connect=function(H,U,A,M,W){this.JSC$19944_channelDebug_.debug("connect()");su(0);this.JSC$19948_path_=U;this.JSC$19948_extraParams_=A||{};M&&W!==void 0&&(this.JSC$19948_extraParams_.OSID=M,this.JSC$19948_extraParams_.OAID=W);this.asyncTest_?(L6((0,_.i9)(this.connectTest_,this,H),100),aam(this)):this.connectTest_(H)};
N8.prototype.disconnect=function(){this.JSC$19944_channelDebug_.debug("disconnect()");xM7(this);if(this.state_==3){var H=this.JSC$19948_nextRid_++,U=this.JSC$19948_forwardChannelUri_.clone();_.rO(U,"SID",this.sid_);_.rO(U,"RID",H);_.rO(U,"TYPE","terminate");zn8(this,U);H=new Rb(this,this.JSC$19944_channelDebug_,this.sid_,H);H.JSC$19936_type_=2;H.JSC$19936_baseUri_=_.$t(U.clone());(new Image).src=H.JSC$19936_baseUri_.toString();H.JSC$19936_requestStartTime_=Date.now();dM8(H)}CQY(this)};
N8.prototype.connectTest_=function(H){this.JSC$19944_channelDebug_.debug("connectTest_()");this.connectionTest_=new FEj(this,this.JSC$19944_channelDebug_);this.connectionTest_.JSC$19943_extraHeaders_=this.JSC$19948_extraHeaders_;this.connectionTest_.JSC$19941_parser_=this.JSC$19944_parser_;this.connectionTest_.connect(H)};
var aam=function(H){H.JSC$19944_channelDebug_.debug("connectChannel_()");H.JSC$19948_ensureInState_(1,0);H.JSC$19948_forwardChannelUri_=PQh(H,H.JSC$19948_path_);tAY(H)},xM7=function(H){H.connectionTest_&&(H.connectionTest_.abort(),H.connectionTest_=null);
H.JSC$19948_backChannelRequest_&&(H.JSC$19948_backChannelRequest_.cancel(),H.JSC$19948_backChannelRequest_=null);H.JSC$19948_backChannelTimerId_&&(_.Mr.clearTimeout(H.JSC$19948_backChannelTimerId_),H.JSC$19948_backChannelTimerId_=null);c1Y(H);H.forwardChannelRequest_&&(H.forwardChannelRequest_.cancel(),H.forwardChannelRequest_=null);H.JSC$19948_forwardChannelTimerId_&&(_.Mr.clearTimeout(H.JSC$19948_forwardChannelTimerId_),H.JSC$19948_forwardChannelTimerId_=null)},y1h=function(H,U){if(H.state_==0)throw Error("Xk");
H.JSC$19944_outgoingMaps_.length==1E3&&H.JSC$19944_parser_.stringify(U);H.JSC$19944_outgoingMaps_.push(new RnB(H.JSC$19948_nextMapId_++,U));H.state_!=2&&H.state_!=3||tAY(H)};
N8.prototype.JSC$19943_isClosed=function(){return this.state_==0};
N8.prototype.getState=function(){return this.state_};
var tAY=function(H){H.forwardChannelRequest_||H.JSC$19948_forwardChannelTimerId_||(H.JSC$19948_forwardChannelTimerId_=L6((0,_.i9)(H.JSC$19948_onStartForwardChannelTimer_,H),0),H.JSC$19948_forwardChannelRetryCount_=0)};
N8.prototype.JSC$19948_onStartForwardChannelTimer_=function(H){this.JSC$19948_forwardChannelTimerId_=null;BF8(this,H)};
var BF8=function(H,U){H.JSC$19944_channelDebug_.debug("startForwardChannel_");if(H.state_==1){if(!U){H.JSC$19944_channelDebug_.debug("open_()");H.JSC$19948_nextRid_=Math.floor(Math.random()*1E5);U=H.JSC$19948_nextRid_++;var A=new Rb(H,H.JSC$19944_channelDebug_,"",U);A.JSC$19936_extraHeaders_=H.JSC$19948_extraHeaders_;var M=r1h(H),W=H.JSC$19948_forwardChannelUri_.clone();_.rO(W,"RID",U);_.rO(W,"CVER","1");zn8(H,W);imh(A,W,M);H.forwardChannelRequest_=A;H.state_=2}}else H.state_==3&&(U?enB(H,U):H.JSC$19944_outgoingMaps_.length==
0?H.JSC$19944_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):H.forwardChannelRequest_||(enB(H),H.JSC$19944_channelDebug_.debug("startForwardChannel_ finished, sent request")))},enB=function(H,U){if(U)if(H.JSC$19948_channelVersion_>6){H.JSC$19944_outgoingMaps_=H.pendingMaps_.concat(H.JSC$19944_outgoingMaps_);
H.pendingMaps_.length=0;var A=H.JSC$19948_nextRid_-1;U=r1h(H)}else A=U.JSC$19934_rid_,U=U.JSC$19936_postData_;else A=H.JSC$19948_nextRid_++,U=r1h(H);var M=H.JSC$19948_forwardChannelUri_.clone();_.rO(M,"SID",H.sid_);_.rO(M,"RID",A);_.rO(M,"AID",H.JSC$19948_lastArrayId_);zn8(H,M);A=new Rb(H,H.JSC$19944_channelDebug_,H.sid_,A,H.JSC$19948_forwardChannelRetryCount_+1);A.JSC$19936_extraHeaders_=H.JSC$19948_extraHeaders_;A.setTimeout(1E4+Math.round(1E4*Math.random()));H.forwardChannelRequest_=A;imh(A,M,
U)},zn8=function(H,U){H.handler_&&(H=H.handler_.JSC$19955_getAdditionalParams())&&_.dG.forEach(H,function(A,M){_.rO(U,M,A)})},r1h=function(H){var U=Math.min(H.JSC$19944_outgoingMaps_.length,1E3),A=["count="+U];
if(H.JSC$19948_channelVersion_>6&&U>0){var M=H.JSC$19944_outgoingMaps_[0].JSC$19946_mapId;A.push("ofs="+M)}else M=0;for(var W={},w=0;w<U;W={mapId$jscomp$3:void 0},w++){W.mapId$jscomp$3=H.JSC$19944_outgoingMaps_[w].JSC$19946_mapId;var d=H.JSC$19944_outgoingMaps_[w].map;W.mapId$jscomp$3=H.JSC$19948_channelVersion_<=6?w:W.mapId$jscomp$3-M;try{_.dG.forEach(d,function(O){return function(f,J){A.push("req"+O.mapId$jscomp$3+"_"+J+"="+encodeURIComponent(f))}}(W))}catch(O){A.push("req"+W.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}H.pendingMaps_=H.pendingMaps_.concat(H.JSC$19944_outgoingMaps_.splice(0,U));
return A.join("&")},DMh=function(H){H.JSC$19948_backChannelRequest_||H.JSC$19948_backChannelTimerId_||(H.JSC$19948_backChannelAttemptId_=1,H.JSC$19948_backChannelTimerId_=L6((0,_.i9)(H.JSC$19948_onStartBackChannelTimer_,H),0),H.JSC$19948_backChannelRetryCount_=0)},la5=function(H){if(H.JSC$19948_backChannelRequest_||H.JSC$19948_backChannelTimerId_||H.JSC$19948_backChannelRetryCount_>=3)return!1;
H.JSC$19944_channelDebug_.debug("Going to retry GET");H.JSC$19948_backChannelAttemptId_++;H.JSC$19948_backChannelTimerId_=L6((0,_.i9)(H.JSC$19948_onStartBackChannelTimer_,H),$My(H,H.JSC$19948_backChannelRetryCount_));H.JSC$19948_backChannelRetryCount_++;return!0};
N8.prototype.JSC$19948_onStartBackChannelTimer_=function(){this.JSC$19948_backChannelTimerId_=null;this.JSC$19944_channelDebug_.debug("Creating new HttpRequest");this.JSC$19948_backChannelRequest_=new Rb(this,this.JSC$19944_channelDebug_,this.sid_,"rpc",this.JSC$19948_backChannelAttemptId_);this.JSC$19948_backChannelRequest_.JSC$19936_extraHeaders_=this.JSC$19948_extraHeaders_;this.JSC$19948_backChannelRequest_.JSC$19936_readyStateChangeThrottleMs_=0;var H=this.JSC$19948_backChannelUri_.clone();_.rO(H,
"RID","rpc");_.rO(H,"SID",this.sid_);_.rO(H,"CI",this.useChunked_?"0":"1");_.rO(H,"AID",this.JSC$19948_lastArrayId_);zn8(this,H);_.rO(H,"TYPE","xmlhttp");bmh(this.JSC$19948_backChannelRequest_,H,!0,this.JSC$19948_hostPrefix_,!1);this.JSC$19944_channelDebug_.debug("New Request created")};
var SFk=function(H,U,A){H.JSC$19944_channelDebug_.debug("Test Connection Finished");H.useChunked_=H.secondTestResults_==null?A:!H.secondTestResults_;H.JSC$19948_lastStatusCode_=U.JSC$19943_lastStatusCode_;H.asyncTest_||aam(H)},LEh=function(H,U){H.JSC$19944_channelDebug_.debug("Test Connection Failed");
H.JSC$19948_lastStatusCode_=U.JSC$19943_lastStatusCode_;n4(H,2)};
N8.prototype.JSC$19943_onRequestData=function(H,U){if(this.state_!=0&&(this.JSC$19948_backChannelRequest_==H||this.forwardChannelRequest_==H))if(this.JSC$19948_lastStatusCode_=H.JSC$19936_lastStatusCode_,this.forwardChannelRequest_==H&&this.state_==3)if(this.JSC$19948_channelVersion_>7){try{var A=this.JSC$19944_parser_.parse(U)}catch(M){A=null}if(Array.isArray(A)&&A.length==3)if(U=A,U[0]==0)a:if(this.JSC$19944_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19948_backChannelTimerId_)this.JSC$19944_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19948_backChannelRequest_)if(this.JSC$19948_backChannelRequest_.JSC$19936_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19936_requestStartTime_)c1Y(this),this.JSC$19948_backChannelRequest_.cancel(),this.JSC$19948_backChannelRequest_=null;else break a;else this.JSC$19944_channelDebug_.warning("We do not have a BackChannel established");la5(this);su(19)}else this.JSC$19948_lastPostResponseArrayId_=U[1],H=this.JSC$19948_lastPostResponseArrayId_-this.JSC$19948_lastArrayId_,0<
H&&(U=U[2],this.JSC$19944_channelDebug_.debug(U+" bytes (in "+H+" arrays) are outstanding on the BackChannel"),U<37500&&this.useChunked_&&this.JSC$19948_backChannelRetryCount_==0&&!this.JSC$19948_deadBackChannelTimerId_&&(this.JSC$19948_deadBackChannelTimerId_=L6((0,_.i9)(this.JSC$19948_onBackChannelDead_,this),6E3)));else this.JSC$19944_channelDebug_.debug("Bad POST response data returned"),n4(this,11)}else U!="y2f%"&&(this.JSC$19944_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
n4(this,11));else this.JSC$19948_backChannelRequest_==H&&c1Y(this),_.b7(U)||(H=this.JSC$19944_parser_.parse(U),this.onInput_(H))};
N8.prototype.JSC$19948_onBackChannelDead_=function(){this.JSC$19948_deadBackChannelTimerId_!=null&&(this.JSC$19948_deadBackChannelTimerId_=null,this.JSC$19948_backChannelRequest_.cancel(),this.JSC$19948_backChannelRequest_=null,la5(this),su(20))};
var c1Y=function(H){H.JSC$19948_deadBackChannelTimerId_!=null&&(_.Mr.clearTimeout(H.JSC$19948_deadBackChannelTimerId_),H.JSC$19948_deadBackChannelTimerId_=null)};
N8.prototype.JSC$19943_onRequestComplete=function(H){this.JSC$19944_channelDebug_.debug("Request complete");if(this.JSC$19948_backChannelRequest_==H){c1Y(this);this.JSC$19948_backChannelRequest_=null;var U=2}else if(this.forwardChannelRequest_==H)this.forwardChannelRequest_=null,U=1;else return;this.JSC$19948_lastStatusCode_=H.JSC$19936_lastStatusCode_;if(this.state_!=0)if(H.JSC$19936_successful_)if(U==1){U=H.JSC$19936_postData_?H.JSC$19936_postData_.length:0;H=Date.now()-H.JSC$19936_requestStartTime_;
var A=UM$;A.dispatchEvent(new mMB(A,U,H,this.JSC$19948_forwardChannelRetryCount_));tAY(this);this.handler_&&this.handler_.JSC$19955_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else DMh(this);else{A=H.getLastError();if(A==3||A==7||A==0&&this.JSC$19948_lastStatusCode_>0)this.JSC$19944_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19944_channelDebug_.debug("Maybe retrying, last error: "+MA5(A,this.JSC$19948_lastStatusCode_));var M;if(M=U==1)this.forwardChannelRequest_||
this.JSC$19948_forwardChannelTimerId_||this.state_==1||this.JSC$19948_forwardChannelRetryCount_>=2?M=!1:(this.JSC$19944_channelDebug_.debug("Going to retry POST"),this.JSC$19948_forwardChannelTimerId_=L6((0,_.i9)(this.JSC$19948_onStartForwardChannelTimer_,this,H),$My(this,this.JSC$19948_forwardChannelRetryCount_)),this.JSC$19948_forwardChannelRetryCount_++,M=!0);if(M||U==2&&la5(this))return;this.JSC$19944_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19944_channelDebug_.debug("Error: HTTP request failed");
switch(A){case 1:n4(this,5);break;case 4:n4(this,10);break;case 3:n4(this,6);break;case 7:n4(this,12);break;default:n4(this,2)}}};
var $My=function(H,U){var A=5E3+Math.floor(Math.random()*1E4);H.isActive()||(H.JSC$19944_channelDebug_.debug("Inactive channel"),A*=2);return A*U};
N8.prototype.onInput_=function(H){for(var U=0;U<H.length;U++){var A=H[U];this.JSC$19948_lastArrayId_=A[0];A=A[1];this.state_==2?A[0]=="c"?(this.sid_=A[1],this.JSC$19948_hostPrefix_=A[2],A=A[3],A!=null?this.JSC$19948_channelVersion_=A:this.JSC$19948_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19955_channelOpened(),this.JSC$19948_backChannelUri_=pA8(this,this.JSC$19948_hostPrefix_,this.JSC$19948_path_),DMh(this)):A[0]=="stop"&&n4(this,7):this.state_==3&&(A[0]=="stop"?n4(this,7):
A[0]!="noop"&&this.handler_&&this.handler_.JSC$19955_channelHandleArray(A),this.JSC$19948_backChannelRetryCount_=0)}};
N8.prototype.JSC$19948_ensureInState_=function(H){if(!_.y0(arguments,this.state_))throw Error("Yk`"+this.state_);};
var n4=function(H,U){H.JSC$19944_channelDebug_.info("Error code "+U);if(U==2||U==9){var A=null;H.handler_&&(A=null);var M=(0,_.i9)(H.testGoogleComCallback_,H);A||(A=new _.n1("//www.google.com/images/cleardot.gif"),_.$t(A));e2m(A.toString(),1E4,M)}else su(2);H.onError_(U)};
N8.prototype.testGoogleComCallback_=function(H){H?(this.JSC$19944_channelDebug_.info("Successfully pinged google.com"),su(2)):(this.JSC$19944_channelDebug_.info("Failed to ping google.com"),su(1),this.onError_(8))};
N8.prototype.onError_=function(H){this.JSC$19944_channelDebug_.debug("HttpChannel: error - "+H);this.state_=0;this.handler_&&this.handler_.JSC$19955_channelError(H);CQY(this);xM7(this)};
var CQY=function(H){H.state_=0;H.JSC$19948_lastStatusCode_=-1;if(H.handler_)if(H.pendingMaps_.length==0&&H.JSC$19944_outgoingMaps_.length==0)H.handler_.JSC$19955_channelClosed();else{H.JSC$19944_channelDebug_.debug("Number of undelivered maps, pending: "+H.pendingMaps_.length+", outgoing: "+H.JSC$19944_outgoingMaps_.length);var U=_.$c(H.pendingMaps_),A=_.$c(H.JSC$19944_outgoingMaps_);H.pendingMaps_.length=0;H.JSC$19944_outgoingMaps_.length=0;H.handler_.JSC$19955_channelClosed(U,A)}},PQh=function(H,
U){U=NF7(H,null,U);
H.JSC$19944_channelDebug_.debug("GetForwardChannelUri: "+U);return U},pA8=function(H,U,A){U=NF7(H,H.JSC$19943_shouldUseSecondaryDomains()?U:null,A);
H.JSC$19944_channelDebug_.debug("GetBackChannelUri: "+U);return U},NF7=function(H,U,A){var M=_.yX(A);
if(M.JSC$10335_domain_!="")U&&_.CR(M,U+"."+M.JSC$10335_domain_),_.tn(M,M.JSC$10335_port_);else{var W=window.location;M=pR8(W.protocol,U?U+"."+W.hostname:W.hostname,+W.port,A)}H.JSC$19948_extraParams_&&_.dG.forEach(H.JSC$19948_extraParams_,function(w,d){_.rO(M,d,w)});
_.rO(M,"VER",H.JSC$19948_channelVersion_);zn8(H,M);return M};
N8.prototype.JSC$19943_createXhrIo=function(H){if(H)throw Error("Qk");H=new _.Zm;H.JSC$10099_withCredentials_=!1;return H};
N8.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
N8.prototype.notifyServerReachabilityEvent=function(H){var U=UM$;U.dispatchEvent(new g0h(U,H))};
N8.prototype.JSC$19943_shouldUseSecondaryDomains=function(){return!1};
new a78;var G0p=function(){};
_.X=G0p.prototype;_.X.JSC$19955_channelOpened=function(){};
_.X.JSC$19955_channelHandleArray=function(){};
_.X.JSC$19955_channelSuccess=function(){};
_.X.JSC$19955_channelError=function(){};
_.X.JSC$19955_channelClosed=function(){};
_.X.JSC$19955_getAdditionalParams=function(){return{}};
_.X.isActive=function(){return!0};var YF7=function(H){H.front_.length===0&&(H.front_=H.back_,H.front_.reverse(),H.back_=[])};
_.X=lty.prototype;_.X.enqueue=function(H){this.back_.push(H)};
_.X.peek=function(){YF7(this);return _.z8(this.front_)};
_.X.getCount=function(){return this.front_.length+this.back_.length};
_.X.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.X.clear=function(){this.front_=[];this.back_=[]};
_.X.contains=function(H){return _.y0(this.front_,H)||_.y0(this.back_,H)};
_.X.remove=function(H){var U=this.front_;var A=Array.prototype.lastIndexOf.call(U,H,U.length-1);A>=0?(_.xrh(U,A),U=!0):U=!1;return U||_.Dc(this.back_,H)};
_.X.getValues=function(){for(var H=[],U=this.front_.length-1;U>=0;--U)H.push(this.front_[U]);U=this.back_.length;for(var A=0;A<U;++A)H.push(this.back_[A]);return H};var qFX=function(H){var U=typeof H;return U=="object"&&H||U=="function"?"o"+_.vF(H):U.charAt(0)+H};
_.X=mp.prototype;_.X.getCount=function(){return this.JSC$19959_map_.size};
_.X.add=function(H){this.JSC$19959_map_.set(qFX(H),H);this.size=this.JSC$19959_map_.size};
_.X.addAll=function(H){H=_.xt(H);for(var U=H.length,A=0;A<U;A++)this.add(H[A]);this.size=this.JSC$19959_map_.size};
_.X.removeAll=function(H){H=_.xt(H);for(var U=H.length,A=0;A<U;A++)this.remove(H[A]);this.size=this.JSC$19959_map_.size};
_.X.delete=function(H){H=this.JSC$19959_map_.remove(qFX(H));this.size=this.JSC$19959_map_.size;return H};
_.X.remove=function(H){return this.delete(H)};
_.X.clear=function(){this.JSC$19959_map_.clear();this.size=0};
_.X.isEmpty=function(){return this.JSC$19959_map_.size===0};
_.X.has=function(H){return this.JSC$19959_map_.containsKey(qFX(H))};
_.X.contains=function(H){return this.JSC$19959_map_.containsKey(qFX(H))};
_.X.getValues=function(){return this.JSC$19959_map_.getValues()};
_.X.values=function(){return this.JSC$19959_map_.values()};
_.X.clone=function(){return new mp(this)};
_.X.equals=function(H){return this.getCount()==Ng$(H)&&hn7(this,H)};
var hn7=function(H,U){var A=Ng$(U);if(H.getCount()>A)return!1;!(U instanceof mp)&&A>5&&(U=new mp(U));return S9y(H,function(M){var W=U;return W.contains&&typeof W.contains=="function"?W.contains(M):W.containsValue&&typeof W.containsValue=="function"?W.containsValue(M):_.l7(W)||typeof W==="string"?_.y0(W,M):_.dG.containsValue(W,M)})};
mp.prototype.__iterator__=function(){return this.JSC$19959_map_.__iterator__(!1)};
mp.prototype[Symbol.iterator]=function(){return this.values()};_.MD({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 H=this.query;H&&(this.full||H[0]==="("||(H="("+H+")"),this._mq=window.matchMedia(H),this._add(),this.queryHandler(this._mq))},
queryHandler:function(H){this._setQueryMatches(H.matches)}});var k0p={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(H){return(this._clampValue(H)-this.min)/(this.max-this.min)},
_clampValue:function(H){return Math.min(this.max,Math.max(this.min,this._calcStep(H)))},
_calcStep:function(H){H=parseFloat(H);if(!this.step)return H;H=Math.round((H-this.min)/this.step);return this.step<1?H/(1/this.step)+this.min:H*this.step+this.min},
_validateValue:function(){var H=this._clampValue(this.value);this.value=this.oldValue=isNaN(H)?this.oldValue:H;return this.value!==H},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var v0k=[_.Qo,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(H){_.Ig(H).path[0]!==this&&(this.resetLayout(),H.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var H=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.yF(this._layoutDebouncer,_.VD,H);_.BR(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var H=this;requestAnimationFrame(function(){H.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(H){this.resizerShouldNotify(H)&&this._notifyDescendant(H)},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 TFh=[_.dPn,{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(H,U){var A=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[H];if(!A)throw new ReferenceError(this._getUndefinedMsg(H));H=this._boundEffect(A,U||{});H.setUp();return H},
_effectsChanged:function(H,U,A){this._tearDownEffects();H&&A&&(H.split(" ").forEach(function(M){var W;M!==""&&((W=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[M])?this._effects.push(this._boundEffect(W,U[M])):console.warn(this._getUndefinedMsg(M)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(H,U){U=U||{};var A=parseFloat(U.startsAt||0),M=parseFloat(U.endsAt||1),W=M-A,w=function(){};
M=A===0&&M===1?H.run:function(d,O){H.run.call(this,Math.max(0,(d-A)/W),O)};
return{setUp:H.setUp?H.setUp.bind(this,U):w,run:H.run?M.bind(this):w,tearDown:H.tearDown?H.tearDown.bind(this):w}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(H){H.setUp()!==!1&&this._effectsRunFn.push(H.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(H){H.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(H,U){this._effectsRunFn&&this._effectsRunFn.forEach(function(A){A(H,U)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var H=this._clampedScrollTop;this._updateScrollState(H);this.threshold>0&&this._setThresholdTriggered(H>=this.threshold)}},
_getDOMRef:function(H){console.warn("_getDOMRef","`"+H+"` is undefined")},
_getUndefinedMsg:function(H){return"Scroll effect `"+H+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+H+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Zk`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(H){var U={};H=parseFloat(H.scalar);U.background=this._getDOMRef("background");U.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");U.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");U.deltaBg=U.backgroundFrontLayer.offsetHeight-U.background.offsetHeight;U.deltaBg===0?(isNaN(H)&&(H=.8),U.deltaBg=(this._dHeight||0)*H):(isNaN(H)&&(H=
1),U.deltaBg*=H);this._fxParallaxBackground=U},
run:function(H){var U=this._fxParallaxBackground;this.transform("translate3d(0px, "+U.deltaBg*Math.min(1,H)+"px, 0px)",U.backgroundFrontLayer);U.backgroundRearLayer&&this.transform("translate3d(0px, "+U.deltaBg*Math.min(1,H)+"px, 0px)",U.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var jNp;var Iaf;_.MD({_template:function(){if(Iaf!==void 0)return Iaf;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;jNp===void 0&&(jNp=document.createElement("template"));var M=jNp;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return Iaf=H},
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(){_.rV(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(H){H.keyCode===27&&(H.preventDefault(),this.close())},
_track:function(H){if(!this.persistent&&!this.disableSwipe)switch(H.preventDefault(),H.detail.state){case "start":this._trackStart(H);break;case "track":this._trackMove(H);break;case "end":this._trackEnd(H)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var H=this.$.contentContainer.getBoundingClientRect();this._savedWidth=H.width;this._translateOffset=this.position==="left"?H.left:H.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(H){this._trackDetails&&(this._translateDrawer(H.detail.dx+this._translateOffset),this._trackDetails.push({dx:H.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(H){if(this._trackDetails){var U=H.detail.dx+this._translateOffset,A=this.getWidth();U=this.position==="left"?U>=0||U<=-A:U<=0||U>=A;if(!U){var M=this._trackDetails;this._trackDetails=null;this._flingDrawer(H,M);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}A/=2;H.detail.dx<-A?this.opened=this.position==="right":H.detail.dx>A&&(this.opened=this.position==="left");U?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(H,U){for(var A=Date.now(),M=A-100,W,w=0,d=U.length-1;w<=d;){var O=w+d>>1,f=U[O];f.timeStamp>=M?(W=f,d=O-1):w=O+1}return W?(H.detail.dx-W.dx)/(A-W.timeStamp||1):0},
_flingDrawer:function(H,U){U=this._calculateVelocity(H,U);if(!(Math.abs(U)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;H=H.detail.dx+this._translateOffset;var A=this.getWidth(),M=this.position==="left",W=U>0;W?(U=Math.max(U,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(U=Math.min(U,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");U=this._FLING_INITIAL_SLOPE*(!W&&M?-(H+A):W&&!M?A-H:-H)/U;this._styleTransitionDuration(U);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,U)}},
_styleTransitionDuration:function(H){this.style.transitionDuration=H+"ms";this.$.contentContainer.style.transitionDuration=H+"ms";this.$.scrim.style.transitionDuration=H+"ms"},
_styleTransitionTimingFunction:function(H){this.$.contentContainer.style.transitionTimingFunction=H;this.$.scrim.style.transitionTimingFunction=H},
_translateDrawer:function(H){var U=this.getWidth();this.position==="left"?(H=Math.max(-U,Math.min(H,0)),this.$.scrim.style.opacity=1+H/U):(H=Math.max(0,Math.min(H,U)),this.$.scrim.style.opacity=1-H/U);this.translate3d(H+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var H=this._drawerState;H===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;H!==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=""),H!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var H=_.Ig(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"])');H.length>0?(this._firstTabStop=H[0],this._lastTabStop=H[H.length-1]):
this._lastTabStop=this._firstTabStop=null;(H=this.getAttribute("tabindex"))&&parseInt(H,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(H){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||H.keyCode!==9||(H.shiftKey?this._firstTabStop&&_.Ig(H).localTarget===this._firstTabStop&&(H.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Ig(H).localTarget===this._lastTabStop&&(H.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(H,U){this.toggleClass("visible",H&&!U,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 QNY;var VA5;var Hnh=function(){};
_.X=Hnh.prototype;_.X._scrollTargetChanged=function(){};
_.X.scroll=function(){};
_.X._isValidScrollTarget=function(){};
_.X._toggleScrollListener=function(){};
_.X.toggleScrollListener=function(){};
_.X.createEffect=function(){};
_.X._effectsChanged=function(){};
_.X._layoutIfDirty=function(){};
_.X._boundEffect=function(){};
_.X._setUpEffect=function(){};
_.X._tearDownEffects=function(){};
_.X._runEffects=function(){};
_.X._scrollHandler=function(){};
_.X._scrollStateChanged=function(){};
_.X._getUndefinedMsg=function(){};
_.X.notifyResize=function(){};
_.X.assignParentResizable=function(){};
_.X.stopResizeNotificationsFor=function(){};
_.X._subscribeIronResize=function(){};
_.X._unsubscribeIronResize=function(){};
_.X.resizerShouldNotify=function(){};
_.X._onDescendantIronResize=function(){};
_.X._fireResize=function(){};
_.X._onIronRequestResizeNotifications=function(){};
_.X._parentResizableChanged=function(){};
_.X._notifyDescendant=function(){};
_.X._requestResizeNotifications=function(){};
_.X._findParent=function(){};
_.X._appResetLayoutHandler=function(){};
_.X.resetLayout=function(){};
_.X._notifyLayoutChanged=function(){};
_.X._notifyDescendantResize=function(){};
_.X._setThresholdTriggered=function(){};
Hnh=_.MD({_template:function(){if(VA5!==void 0)return VA5;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;QNY===void 0&&(QNY=document.createElement("template"));var M=QNY;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return VA5=H},
is:"tp-yt-app-header",behaviors:[TFh,v0k],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 H=_.Ig(this.$.slot).getDistributedNodes(),U=0,A;A=H[U];U++)if(A.nodeType===Node.ELEMENT_NODE)if(A.hasAttribute("sticky")){this._stickyElRef=A;break}else this._stickyElRef||(this._stickyElRef=A);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var H=this._clampedScrollTop,U=this._height===0||H===0,A=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;U||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();U?this._updateScrollState(H,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=A}},
_updateScrollState:function(H,U){if(this._height!==0){var A=0,M=this._top;var W=this._maxHeaderTop;var w=H-this._lastScrollTop,d=Math.abs(w),O=H>this._lastScrollTop,f=performance.now();this._mayMove()&&(A=this._clamp(this.reveals?M+w:H,0,W));H>=this._dHeight&&(A=this.condenses&&!this.fixed?Math.max(this._dHeight,A):A,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&d<100){if(f-this._initTimestamp>300||this._wasScrollingDown!==O)this._initScrollTop=H,this._initTimestamp=f;H>=W&&
(Math.abs(this._initScrollTop-H)>30||d>10?(O&&H>=W?A=W:!O&&H>=this._dHeight&&(A=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((A-M)/(w/(f-this._lastTimestamp)),0,300)+"ms"):A=this._top)}W=this._dHeight===0?H>0?1:0:A/this._dHeight;U||(this._lastScrollTop=H,this._top=A,this._wasScrollingDown=O,this._lastTimestamp=f);if(U||W!==this._progress||M!==A||H===0)this._progress=W,this._runEffects(W,A),this._transformHeader(A)}},
_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(H){this.translate3d(0,-H+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&H>=this._stickyElTop?Math.min(H,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(H,U,A){return Math.min(A,Math.max(U,H))},
_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),_.Ig(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(H){switch(H){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Ig(this).querySelector("[main-title]");case "condensedTitle":return _.Ig(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var Uxp;var Ae8;_.MD({_template:function(){if(Ae8!==void 0)return Ae8;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;Uxp===void 0&&(Uxp=document.createElement("template"));var M=Uxp;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return Ae8=H},
is:"tp-yt-app-header-layout",behaviors:[v0k],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0},rafId:{type:Number,value:-1},useRaf:{type:Boolean,value:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Ig(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var H=this.header;if(this.isAttached&&H){this.$.wrapper.classList.remove("initializing");H.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)H.style.left="",H.style.right="";else{var U=this.getBoundingClientRect(),A=document.documentElement.clientWidth-U.right;H.style.left=U.left+"px";H.style.right=A+"px"}U=this.$.contentContainer.style;A=H.offsetHeight;H.fixed&&!H.condenses&&this.hasScrollingRegion?
(U.marginTop=A+"px",U.paddingTop=""):(U.paddingTop=A+"px",U.marginTop="")}}});/*

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 Mo5=_.NP(['<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>']),
W$p=_.Zez(Mo5);W$p.setAttribute("style","display: none;");document.head.appendChild(W$p.content);var wif;var XiB;/*

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
*/
_.MD({_template:function(){if(XiB!==void 0)return XiB;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;wif===void 0&&(wif=document.createElement("template"));var M=wif;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return XiB=H},
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(H,U){var A=this._resolveSrc(H);A!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",H===""||U?this._setLoading(!1):(this._resolvedSrc=A,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 H=this.$.sizedImgDiv.style,U=this.$.placeholder.style;H.backgroundSize=U.backgroundSize=this.sizing;H.backgroundPosition=U.backgroundPosition=this.sizing?this.position:"";H.backgroundRepeat=U.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(H){H=_.h9(H,this.$.baseURIAnchor.href);H.length>=2&&H[0]==="/"&&H[1]!=="/"&&(H=(location.origin||location.protocol+"//"+location.host)+H);return H}});var in$;var bnf;_.MD({_template:function(){if(bnf!==void 0)return bnf;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=
H.content,A=U.insertBefore;in$===void 0&&(in$=document.createElement("template"));var M=in$;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return bnf=H},
is:"tp-yt-iron-pages",behaviors:[_.Qo,_.sc],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});var dxX;var On8;_.MD({_template:function(){if(On8!==void 0)return On8;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;dxX===void 0&&(dxX=document.createElement("template"));var M=dxX;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return On8=H},
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(H){return H?"false":"true"},
_headingChanged:function(H){var U=this.getAttribute("heading"),A=this.getAttribute("aria-label");typeof A==="string"&&A!==U||this.setAttribute("aria-label",H)},
_computeHeadingClass:function(H){return H?" over-image":""},
_computeAnimated:function(H){return H}});var uip;var ZnX;_.MD({_template:function(){if(ZnX!==void 0)return ZnX;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;uip===void 0&&(uip=document.createElement("template"));var M=uip;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return ZnX=H},
is:"tp-yt-paper-checkbox",behaviors:[_.JJ3],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.rV(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var H=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),U="px",A=H.match(/[A-Za-z]+$/);A!==null&&(U=A[0]);H=parseFloat(H);A=8/3*H;U==="px"&&(A=Math.floor(A),A%2!==H%2&&A++);this.updateStyles({"--paper-checkbox-ink-size":A+
U})}})},
_computeCheckboxClass:function(H,U){var A="";H&&(A+="checked ");U&&(A+="invalid");return A},
_computeCheckmarkClass:function(H){return H?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.Ztr._createRipple.call(this)}});var fuf;var Jek;var K$p=_.qy.IronButtonState,obm=(0,_.jf)(HTMLElement);
_.MD({_template:function(){if(Jek!==void 0)return Jek;var H=document.createElement("template");_.E(H,'\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]]" fit-into="[[fitInto]]" 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" aria-hidden="true" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;fuf===void 0&&(fuf=document.createElement("template"));var M=fuf;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return Jek=H},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[K$p,_.GF,_.ki,_.jc],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},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(H){var U=(0,_.X7)(this);U.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:H});U.shadowRoot.appendChild(H);return obm.prototype._attachDom.call(this,H)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var H=this.contentElement;H&&H.selectedItem&&this._setSelectedItem(H.selectedItem)},
get contentElement(){for(var H=_.Ig(this.$.content).getDistributedNodes(),U=0,A=H.length;U<A;U++)if(H[U].nodeType===Node.ELEMENT_NODE)return H[U]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(H){this._setSelectedItem(H.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(H){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H)===this&&this.open()},
_selectedItemChanged:function(H){var U="";H?U=H.label||H.getAttribute("label")||H.textContent.trim():U="";this.value=U;this._setSelectedItemLabel(U)},
_computeMenuVerticalOffset:function(H,U){return U?U:H?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var H=this.opened?"true":"false",U=this.contentElement;U&&U.setAttribute("aria-expanded",H)}});var F$m;var Pff;_.MD({_template:function(){if(Pff!==void 0)return Pff;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
var U=H.content,A=U.insertBefore;F$m===void 0&&(F$m=document.createElement("template"));var M=F$m;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return Pff=H},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var sp7;var nbm;_.MD({_template:function(){if(nbm!==void 0)return nbm;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;sp7===void 0&&(sp7=document.createElement("template"));var M=sp7;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return nbm=H},
is:"tp-yt-paper-progress",behaviors:[k0p],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(H){this.toggleClass("indeterminate",H,this.$.primaryProgress)},
_transformProgress:function(H,U){H.style.transform=H.style.webkitTransform="scaleX("+U/100+")"},
_mainRatioChanged:function(H){this._transformProgress(this.$.primaryProgress,H)},
_progressChanged:function(H,U,A,M,W){H=this._clampValue(H);U=this._clampValue(U);var w=this._calcRatio(H)*100,d=this._calcRatio(U)*100;this._setSecondaryRatio(w);this._transformProgress(this.$.secondaryProgress,w);this._transformProgress(this.$.primaryProgress,d);this.secondaryProgress=H;W?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",U);this.setAttribute("aria-valuemin",A);this.setAttribute("aria-valuemax",M)},
_disabledChanged:function(H){this.setAttribute("aria-disabled",H?"true":"false")},
_hideSecondaryProgress:function(H){return H===0}});var Nxm;var SNm;var pij=function(){};
_.X=pij.prototype;_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X._tapHandler=function(){};
_.X._focusChanged=function(){};
_.X._detectKeyboardFocus=function(){};
_.X._userActivate=function(){};
_.X._upHandler=function(){};
_.X._spaceKeyDownHandler=function(){};
_.X._spaceKeyUpHandler=function(){};
_.X._asyncClick=function(){};
_.X._pressedChanged=function(){};
_.X._ariaActiveAttributeChanged=function(){};
_.X._activeChanged=function(){};
_.X._controlStateChanged=function(){};
_.X._changedButtonState=function(){};
_.X._focusBlurHandler=function(){};
_.X._disabledChanged=function(){};
_.X._changedControlState=function(){};
_.X._downHandler=function(){};
_.X.ensureRipple=function(){};
_.X.getRipple=function(){};
_.X.hasRipple=function(){};
_.X._noinkChanged=function(){};
_.X._focusedChanged=function(){};
_.X._createRipple=function(){};
_.X.registered=function(){};
_.X._invalidChanged=function(){};
_.X.hasValidator=function(){};
_.X.validate=function(){};
_.X._getValidity=function(){};
_.X._requiredChanged=function(){};
_.X._valueChanged=function(){};
_.X._checkedChanged=function(){};
_.X._buttonStateChanged=function(){};
_.X._setPressed=function(){};
_.X._setPointerDown=function(){};
_.X._setReceivedFocusFromKeyboard=function(){};
_.X._setFocused=function(){};
pij=_.MD({is:"tp-yt-paper-radio-button",_template:function(){if(SNm!==void 0)return SNm;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;Nxm===void 0&&(Nxm=document.createElement("template"));var M=Nxm;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return SNm=H},
behaviors:[_.JJ3],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(){_.rV(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var H=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),U=Math.floor(3*H);U%2!==H%2&&U++;this.updateStyles({"--paper-radio-button-ink-size":U+"px"})}})}});var L$f;var Rth;_.MD({_template:function(){if(Rth!==void 0)return Rth;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;L$f===void 0&&(L$f=document.createElement("template"));var M=L$f;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return Rth=H},
is:"tp-yt-paper-radio-group",behaviors:[_.ixm],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(H){var U=this._valueToItem(H);if(!U||!U.hasAttribute("disabled")){if(this.selected){U=this._valueToItem(this.selected);if(this.selected==H)if(this.allowEmptySelection)H="";else{U&&(U.checked=!0);return}U&&
(U.checked=!1)}_.sc.select.apply(this,[H]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(H){this._focusPrevious();H.preventDefault();this._activateFocusedItem()},
_onDownKey:function(H){this._focusNext();H.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(H){_.Xuh._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(H){_.Xuh._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.sc._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.IU._resetTabindices.apply(this,arguments);this.items.forEach(function(H){H.removeAttribute("aria-selected")},this)}});var Ebf;var mxp;var gb7=function(){};
_.X=gb7.prototype;_.X.registered=function(){};
_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X._tapHandler=function(){};
_.X._focusChanged=function(){};
_.X._detectKeyboardFocus=function(){};
_.X._userActivate=function(){};
_.X._upHandler=function(){};
_.X._spaceKeyDownHandler=function(){};
_.X._spaceKeyUpHandler=function(){};
_.X._asyncClick=function(){};
_.X._pressedChanged=function(){};
_.X._ariaActiveAttributeChanged=function(){};
_.X._activeChanged=function(){};
_.X._controlStateChanged=function(){};
_.X._changedButtonState=function(){};
_.X._focusBlurHandler=function(){};
_.X._disabledChanged=function(){};
_.X._changedControlState=function(){};
_.X._buttonStateChanged=function(){};
_.X._downHandler=function(){};
_.X.ensureRipple=function(){};
_.X.getRipple=function(){};
_.X.hasRipple=function(){};
_.X._noinkChanged=function(){};
_.X._calcRatio=function(){};
_.X._clampValue=function(){};
_.X._calcStep=function(){};
_.X._validateValue=function(){};
_.X._update=function(){};
_.X._setImmediateValue=function(){};
_.X._setExpand=function(){};
_.X._setDragging=function(){};
_.X._setTransiting=function(){};
_.X._setMarkers=function(){};
_.X._setPressed=function(){};
_.X._setPointerDown=function(){};
_.X._setReceivedFocusFromKeyboard=function(){};
_.X._setFocused=function(){};
_.X._setRatio=function(){};
gb7=_.MD({_template:function(){if(mxp!==void 0)return mxp;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;Ebf===void 0&&(Ebf=document.createElement("template"));var M=Ebf;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return mxp=H},
is:"tp-yt-paper-slider",behaviors:[_.le,_.ki,_.fnh,k0p],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[]}},
light:{type:Boolean,value:!1,reflectToAttribute:!0}},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&&_.nK(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(H,U,A){this.setAttribute("aria-valuemin",U);this.setAttribute("aria-valuemax",A);this.setAttribute("aria-valuenow",H);this._positionKnob(this._calcRatio(H)*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(H){this._setImmediateValue(this._calcStep(this._calcKnobPosition(H)));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(H){return(this.max-this.min)*H/100+this.min},
_onTrack:function(H){H.stopPropagation();switch(H.detail.state){case "start":this._trackStart(H);break;case "track":this._trackX(H);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(H){this.dragging||this._trackStart(H);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,H.detail.dx*(this._isRTL?-1:1)));H=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(H);H=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(H+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var H=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;H.transform=H.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(H){this._expandKnob();H.preventDefault();this.focus()},
_bartrack:function(H){this._allowBarEvent(H)&&this._onTrack(H)},
_barclick:function(H){this._w=this.$.sliderBar.offsetWidth;var U=this.$.sliderBar.getBoundingClientRect();U=(H.detail.x-U.left)/this._w*100;this._isRTL&&(U=100-U);var A=this.ratio;this._setTransiting(!0);this._positionKnob(U);A===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
H.preventDefault();this.focus()},
_bardown:function(H){this._allowBarEvent(H)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(H))},
_knobTransitionEnd:function(H){H.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(H,U,A,M){M||this._setMarkers([]);U=Math.round((A-U)/this.step);U>H&&(U=H);if(U<0||!isFinite(U))U=0;this._setMarkers(Array(U))},
_mergeClasses:function(H){return Object.keys(H).filter(function(U){return H[U]}).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(H){return!this.ignoreBarTouch||H.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(H){this._isRTL?this._incrementKey(H):this._decrementKey(H)},
_rightKey:function(H){this._isRTL?this._decrementKey(H):this._incrementKey(H)},
_incrementKey:function(H){this.disabled||(H.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),H.preventDefault())},
_decrementKey:function(H){this.disabled||(H.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),H.preventDefault())},
_changeValue:function(H){this.value=H.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(H){H.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.Ztr._createRipple.call(this)},
_focusedChanged:function(H){H&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=H?"":"none",this._ripple.holdDown=H)}});var au7;var xxp;var Sh=null,ztm=function(){};
_.X=ztm.prototype;_.X.fit=function(){};
_.X._discoverInfo=function(){};
_.X.resetFit=function(){};
_.X.refit=function(){};
_.X.position=function(){};
_.X.constrain=function(){};
_.X._sizeDimension=function(){};
_.X.__sizeDimension=function(){};
_.X.center=function(){};
_.X.__getNormalizedRect=function(){};
_.X.__getOffscreenArea=function(){};
_.X.__getPosition=function(){};
_.X.notifyResize=function(){};
_.X.assignParentResizable=function(){};
_.X.stopResizeNotificationsFor=function(){};
_.X._subscribeIronResize=function(){};
_.X._unsubscribeIronResize=function(){};
_.X.resizerShouldNotify=function(){};
_.X._onDescendantIronResize=function(){};
_.X._fireResize=function(){};
_.X._onIronRequestResizeNotifications=function(){};
_.X._parentResizableChanged=function(){};
_.X._notifyDescendant=function(){};
_.X._requestResizeNotifications=function(){};
_.X._findParent=function(){};
_.X.toggle=function(){};
_.X.open=function(){};
_.X.close=function(){};
_.X.cancel=function(){};
_.X.invalidateTabbables=function(){};
_.X._ensureSetup=function(){};
_.X._canceledChanged=function(){};
_.X._withBackdropChanged=function(){};
_.X._prepareRenderOpened=function(){};
_.X._finishRenderOpened=function(){};
_.X._finishRenderClosed=function(){};
_.X._preparePositioning=function(){};
_.X._finishPositioning=function(){};
_.X._applyFocus=function(){};
_.X._onCaptureClick=function(){};
_.X._onCaptureFocus=function(){};
_.X._onCaptureEsc=function(){};
_.X._onCaptureTab=function(){};
_.X._onIronResize=function(){};
_.X._onNodesChange=function(){};
_.X.__ensureFirstLastFocusables=function(){};
_.X.__openedChanged=function(){};
_.X.__deraf=function(){};
_.X.__updateScrollObservers=function(){};
_.X.__addScrollListeners=function(){};
_.X.__removeScrollListeners=function(){};
_.X.__isValidScrollAction=function(){};
_.X.__onCaptureScroll=function(){};
_.X.__saveScrollPosition=function(){};
_.X.__restoreScrollPosition=function(){};
_.X._setCanceled=function(){};
ztm=_.MD({_template:function(){if(xxp!==void 0)return xxp;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;au7===void 0&&(au7=document.createElement("template"));var M=au7;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return xxp=H},
is:"tp-yt-paper-toast",behaviors:[_.Jf],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(){_.Ia._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.dS.requestAvailability()},
show:function(H){typeof H=="string"&&(H={text:H});for(var U in H)U.indexOf("_")===0?_.Ia._warn('The property "'+U+'" is private and was not set.'):U in this?this[U]=H[U]:_.Ia._warn('The property "'+U+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(H){H&&H.target===this&&H.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Sh&&Sh!==this&&Sh.close(),Sh=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Sh===this&&(Sh=null);_.fZ._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(H){this.positionTarget=H},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var Cfk=new _.me("disablePersonalizationAction");var ghj=new _.me("showDmaConsentFlowCommand");var anX=new _.me("showMmgNoticeCommand");var toj=new _.me("saveConsentAction");var cey=new _.me("navigateAction");var yeB=new _.me("replaceFeedContentAction");var Bx7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(Bx7,_.fN);var re5=_.do8(Bx7);var etf=new _.me("imageTileRenderer");var Dx5=new _.me("promotedSparklesWebRenderer");var $xh=new _.me("adGridCardCollectionViewModel");var luk=new _.me("addRendererToItemSectionAction");var G45=new _.me("updateTopbarAvatarAction");var YNj=new _.me("channelHandleValidationResultRenderer");var qNj=new _.me("generateHandleFromNameResultRenderer");var htB=new _.me("channelHandleInputRenderer");var k4f=new _.me("copyLinkRenderer");var vbB=new _.me("carouselTitleViewModel");var Tx8=new _.me("ctaCarouselItemViewModel");var jpB=new _.me("timedCommand");var IuY=new _.me("textFieldViewModel");var Qp7=new _.me("crowdsourcedContextUserRatingFormFlowState");var Vo5=new _.me("noteViewModel");var HjB=new _.me("alertCommand");var UdY=new _.me("clearCookieAction");var A6p=new _.me("engagementPanelHeaderShowNavigationButtonCommand");var MLy=new _.me("getMultiPageMenuAction");var WI5=new _.me("addToGuideSectionAction"),w68=new _.me("removeFromGuideSectionAction");var X65=new _.me("hideEngagementPanelScrimAction");var ijY=new _.me("updateNotificationsUnseenCountAction");var bjh=new _.me("resetChannelUnreadCountCommand");var dd5=new _.me("resetSubscriptionsUnreadDotCommand");var OjB=new _.me("selectLanguageCommand");var lXh=new _.me("sendFeedbackAction");var uWh=new _.me("setActivePanelItemAction");var Zjh=new _.me("showEngagementPanelScrimAction");var f8Y=new _.me("updateEngagementPanelAction");var J6h=new _.me("updateSearchInVideoResultsAction");var KIk=new _.me("uploadImageToScottyCommand");var oNX=new _.me("webWatchNextResponseExtensionData");var FIk=new _.me("manageLabsStateCommand");var Php=new _.me("registerPromoCommand");var sj5=new _.me("setPushNotificationsEnabledCommand");var nNf=new _.me("updateSentimentBarStateCommand");var NU7=new _.me("desktopTopbarRenderer");var Sdh=new _.me("surveyFollowUpRenderer");var p65=new _.me("formRenderer");var LIY=new _.me("inlineFormRenderer");var RL8=new _.me("handlesClaimingRadioOptionRenderer");var ENm=new _.me("hotkeyDialogRenderer");var md$=new _.me("playlistSidebarPrimaryInfoRenderer");var gNh=new _.me("transcriptCueGroupRenderer");var a8f=new _.me("transcriptCueRenderer");var xdh=new _.me("transcriptFooterRenderer");var zLj=new _.me("engagementPanelAdSubtitleRenderer");var Chk=new _.me("videoDescriptionFantasySectionViewModel");var tLm=new _.me("inlineSurveyRenderer");var c6j=new _.me("radioButtonSurveyOptionRenderer"),y6j=new _.me("checkboxSurveyOptionRenderer");var BUh=new _.me("showSurveyCommand");var p4=new _.me("abuseReportFlowState");var r6$=new _.me("modifyReportFormCommand");var nuk=new _.me("feedbackFormFlowState");var NWh=new _.me("inputBoxViewModel");var SX$=new _.me("flowRootRenderer");var VIp=new _.me("lengthValidationRule");var UGY=new _.me("regexValidationRule");var M5X=new _.me("selectedValidationRule");var pEY=new _.me("accountLinkCommand");var L8f=new _.me("accountUnlinkCommand");var RI5=new _.me("deleteClipEngagementPanelCommand");var Eu8=new _.me("logAccountLinkingEventCommand");var mBy=new _.me("loopCommand");var cIp=new _.me("guideCollapsibleEntryRenderer");var guY=new _.me("guideDownloadsEntryRenderer");var tdp=new _.me("guideEntryRenderer");var aE$=[0,_.RT,_.CT,_.cQ];var xBh=[0,_.Sm,-2,EGY];var zIX=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.$f(H)};
_.R(zIX,_.fN);zIX.prototype.getFeature=function(){return _.Mn(this,6)};
zIX.prototype.hasFeature=function(){return _.m5(_.qP(this,6))!=null};var CC5=[0,_.RT];var tYB=_.Ej(zIX,[0,_.Sm,-2,EGY,_.Sm,_.RT,-1,_.Nn,-1,_.RT,-3,_.LOw,_.pT,xBh,_.RT,-1,RQ7,_.Nn,_.RT,aE$,[0,[0,_.RT,-2,2,_.RT,-1,[0,_.RT],[0,_.CT,_.RT],[0,_.CT],[0,_.RT],2,[0,_.CT,2,[0,_.CT,-1],[0,_.g4,Eyf],1,[0,mE$],1,[0,_.RT],1,[0,[2],_.RT,_.aT,[0,_.Sm]]],[0,_.pT],[0,[1,2],_.aT,[0,_.RT],_.aT,[0,_.RT,_.zb,-1]],[0,_.CT],[0,_.RT,[0,[1,2,3,4],_.aT,[0,[0,_.RT],CC5],_.aT,[0,[0,_.RT],CC5],_.aT,[0,CC5],_.aT,[0,[0,_.RT],CC5]]],[0,_.RT],1,[0,_.RT,_.CT],1,[0,_.RT],[0,_.pT],[0,_.RT,_.CT,-1,[0,_.RT,-4]],[0,_.RT],
[0,_.RT,-2],1,[0,_.RT],[0,_.pT],[0,_.pT,_.RT],1,[0,_.pT],[0],[0]],_.RT,_.CT,_.sh,1,_.xF,_.RT,_.CT],_.Sm,_.xF,_.CT,-1,_.Sm]);var cSf=new _.me("interstitialViewModel");var ySh=new _.me("changeCreatorEndscreenVisibilityCommand");var BWp=new _.me("liveChatCallForQuestionsRenderer");var rSh=new _.me("getLocationCommand");var eI8=new _.me("locationCollectionCommand");var DBX=new _.me("chipsShelfViewModel");var L4=new _.me("cinematicContainerRenderer");var Re=new _.me("changeMarkersVisibilityCommand");var $BB=new _.me("updateTimedMarkersSyncObserverCommand");var lEy=new _.me("storiesItemViewModel");var GM8=new _.me("talkToRecsViewModel");var elp=new _.me("timelyActionViewModel");var YX5=new _.me("timelyActionsOverlayViewModel");var qX5=new _.me("addToRemoteQueueAction");var hIm=new _.me("insertInRemoteQueueAction");var kM5=new _.me("removeFromRemoteQueueAction");var vu5=new _.me("productDetailsThumbnailRenderer"),TWf=new _.me("productDetailsVariantRenderer"),jXY=new _.me("productDetailsVariantOptionRenderer"),IE5=new _.me("productDetailsOffersContainerRenderer"),QX5=new _.me("productDetailsOfferRenderer");var VYm=new _.me("shoppingFlaggingRenderer");var Huy=new _.me("notificationActionRenderer");var UNh=new _.me("notificationRenderer");var uw5=new _.me("localWatchHistoryCommand");var A7m=new _.me("pdgBuyFlowHeaderRenderer");var MB$=new _.me("pdgColorSliderRenderer");var Wl8=new _.me("pdgCommentOptionRenderer");var wvh=new _.me("pdgCommentPreviewRenderer");var Xv5=new _.me("superVodSelectableItemButtonRenderer");var iuy=new _.me("creatorGoalSetUpFlowDropdownItemViewModel");var bup=new _.me("creatorGoalSetUpFlowDropdownViewModel");var dNh=new _.me("repeatChapterCommand");var Ouh=new _.me("watchPlayerOverflowMenuCommand");var uOf=new _.me("compositeVideoOverlayRenderer");var Zu8=new _.me("playlistBylineRenderer");var foB=new _.me("reelNavigateCommand");var J7X=new _.me("reelNonVideoContentDismissalCommand");var KlB=new _.me("showReelsCommentsOverlayCommand");var ukh=new _.me("lottieAnimationViewModel");var oTp=new _.me("switchButtonRenderer");var Flm=new _.me("responsiveContainerConfiguration");var PrB=new _.me("sortFilterSubMenuRenderer");var sVj=new _.me("upsellDialogRenderer");var nT$=new _.me("insertChannelTabCommand");var NL8=new _.me("feedbackQuestionRenderer"),SGk=new _.me("feedbackOptionRenderer");var pvX=new _.me("sponsorshipsTierRenderer"),Llf=new _.me("sponsorshipsPromotionChannelRenderer");var RA5=new _.me("simpleSurveyMessageRenderer");var rF8=new _.me("thumbnailBadgeViewModel");var ETp=new _.me("checkboxGroupViewModel");var GBy=new _.me("checkboxItemViewModel");var mNh=new _.me("radioButtonGroupViewModel");var gTY=new _.me("radioButtonItemViewModel");var ao7=new _.me("switchListItemViewModel");var oj$=new _.me("inputComposerViewModel");var oCf=new _.me("panelFooterViewModel");var xN8=new _.me("transcriptEditSegmentCommand");var zAf=new _.me("transcriptUpdateSegmentTextCommand");var Cry=new _.me("transcriptSearchBoxRenderer");var tBh=new _.me("transcriptSegmentListRenderer");var c7h=new _.me("transcriptSegmentRenderer");var y7B=new _.me("videoInteractionPopUpRenderer");var BLj=new _.me("updateDateTextAction");var r7h=new _.me("updateTitleAction");var eAj=new _.me("updateViewershipAction");var DNk=new _.me("relatedChipCommand");var $Np=new _.me("carouselLockupRenderer");var lop=new _.me("engagementPanelSectionListRenderer");var Eu=new _.me("expandableVideoDescriptionBodyRenderer");var G6f=new _.me("videoDescriptionHeaderRenderer");var YGf=new _.me("videoDescriptionYouchatSectionViewModel");var h0j=new _.me("invokeInstrumentManagerAction");var qG7=new _.me("logYpcFlowDismissCommand");var hAX=new _.me("logYpcFlowStartCommand");var k6$=new _.me("ypcCancelRecurrenceCommand");var vTj=new _.me("cancellationFlowState");var CZh=new _.me("premiumPurchaseFlowState");var TL$=new _.me("unlimitedCreateFamilyEndpoint");var jVk=new _.me("surveyAnswerCardRenderer");var Ioy=new _.me("iconBadgeRenderer");var QVh=new _.me("showMoreButtonRenderer");var VBp=new _.me("pollChoiceData");var fXf=new _.me("collaborativePlaylistVisibilityValidationRule");var HPy=function(H){_.$R.call(this,"channelMessage");this.message=H};
_.R(HPy,_.$R);var UH5=function(H){_.$R.call(this,"channelError");this.error=H};
_.R(UH5,_.$R);var AQB={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",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",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},MP$={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},W_Y={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},w3X={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},X35={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var m2=function(H){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 _.wJ;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";this.castUserId=void 0;H&&(this.id=H.id||H.name,this.name=H.name,this.clientName=H.clientName?H.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=H.app,this.type=H.type||"REMOTE_CONTROL",this.username=H.user||"",this.avatar=H.userAvatarUri||"",this.obfuscatedGaiaId=H.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=H.ownerObfuscatedGaiaId||"",this.castUserId=H.castUserId||"",this.theme=H.theme||"u",iP5(this,H.capabilities||""),bP5(this,
H.compatibleSenderThemes||""),dHp(this,H.experiments||""),this.remoteControllerUrl=H.remoteControllerUrl||"",this.localChannelEncryptionKey=H.localChannelEncryptionKey||"",this.deviceContext=H.deviceContext,this.brand=H.brand||"",this.model=H.model||"",this.year=H.year||0,this.os=H.os||"",this.osVersion=H.osVersion||"",this.chipset=H.chipset||"",this.mdxDialServerType=H.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=H.pairingType||"unknown",H=H.deviceInfo)&&(H=JSON.parse(H),this.brand=
H.brand||"",this.model=H.model||"",this.year=H.year||0,this.os=H.os||"",this.osVersion=H.osVersion||"",this.chipset=H.chipset||"",this.clientName=H.clientName?H.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=H.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
m2.prototype.copy=function(){var H={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&&(H.brand=this.brand);
this.model&&(H.model=this.model);this.year&&(H.year=this.year);this.os&&(H.os=this.os);this.osVersion&&(H.osVersion=this.osVersion);this.chipset&&(H.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(H.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(H.mdxDialServerType=this.mdxDialServerType);H=new m2(H);H.connected=this.connected;H.remoteControllerUrl=this.remoteControllerUrl;H.localChannelEncryptionKey=this.localChannelEncryptionKey;H.deviceContext=
this.deviceContext;H.castUserId=this.castUserId;return H};
m2.prototype.equals=function(H){return H?this.id==H.id:!1};
var iP5=function(H,U){H.capabilities.clear();_.cu(U.split(","),_.vg(_.dG.contains,AQB)).forEach(function(A){H.capabilities.add(A)})},bP5=function(H,U){H.compatibleSenderThemes.clear();
_.cu(U.split(","),_.vg(_.dG.contains,MP$)).forEach(function(A){H.compatibleSenderThemes.add(A)})},dHp=function(H,U){H.experiments.clear();
U.split(",").forEach(function(A){H.experiments.add(A)})};_.zo(gC,_.XG);_.X=gC.prototype;_.X.JSC$20033_onTick_=function(){this.retryCount++;this.JSC$20031_interval_=Math.min(3E5,this.JSC$20031_interval_*2);this.JSC$20033_listener_();this.nextTickTime_&&this.start()};
_.X.getRetryCount=function(){return this.retryCount};
_.X.start=function(){var H=this.JSC$20031_interval_+15E3*Math.random(),U=this.delay_;U.isActive()||U.start(H);this.nextTickTime_=Date.now()+H};
_.X.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.X.isActive=function(){return this.delay_.isActive()};
_.X.reset=function(){this.delay_.stop();this.retryCount=0;this.JSC$20031_interval_=5E3};_.zo(ab,G0p);_.X=ab.prototype;_.X.subscribe=function(H,U,A){return this.pubsub_.subscribe(H,U,A)};
_.X.unsubscribe=function(H,U,A){return this.pubsub_.unsubscribe(H,U,A)};
_.X.unsubscribeByKey=function(H){return this.pubsub_.unsubscribeByKey(H)};
_.X.publish=function(H,U){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.X.dispose=function(){this.JSC$20034_disposed_||(this.JSC$20034_disposed_=!0,_.zg(this.pubsub_),this.disconnect(),_.zg(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20034_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.DH({})})};
_.X.isDisposed=function(){return this.JSC$20034_disposed_};
_.X.connect=function(H,U,A){var M=this,W,w,d,O;return _.u(function(f){if(f.nextAddress==1)return _.yb(f,2),M.useAsyncBrowserChannelHandler_?f.yield(M.connectPromise_,2):f.jumpTo(2);_.cI(f);if(M.JSC$20034_disposed_||M.JSC$20034_channel_&&M.JSC$20034_channel_.getState()==2&&!M.isInitialReconnectTimer_)return f.return();M.sCookie_="";M.isInitialReconnectTimer_||M.reconnectTimer_.stop();M.connectionParams_=H||null;M.connectUi_=U||0;W=M.JSC$20034_pathPrefix_+"/test";w=M.JSC$20034_pathPrefix_+"/bind";d=
new N8(A?A.firstTestResults:null,A?A.secondTestResults:null,M.enableAsyncTest_);if(O=M.JSC$20034_channel_)O.handler_=null;d.handler_=M;M.JSC$20034_channel_=d;if(M.useAsyncBrowserChannelHandler_)return M.connectPromise_=OPf(M).then(function(){return u58(M,W,w,O,A)}),f.return(M.connectPromise_.then(function(){M.connectPromise_=_.DH()}));
u58(M,W,w,O,A);return _.BI(f,0)})};
var u58=function(H,U,A,M,W){ZPp(H);if(H.JSC$20034_channel_){var w=_.gD("ID_TOKEN"),d=H.JSC$20034_channel_.JSC$19948_extraHeaders_||{};w?d["x-youtube-identity-token"]=w:delete d["x-youtube-identity-token"];H.JSC$20034_channel_.JSC$19948_extraHeaders_=d}fgj(H);M?(M.getState(),H.JSC$20034_channel_.connect(U,A,H.defaultQueryParams_,M.sid_,M.JSC$19948_lastArrayId_)):W?H.JSC$20034_channel_.connect(U,A,H.defaultQueryParams_,W.sessionId,W.arrayId):H.JSC$20034_channel_.connect(U,A,H.defaultQueryParams_);H.isInitialReconnectTimer_&&
!H.reconnectTimer_.isActive()&&H.reconnectTimer_.start()};
ab.prototype.disconnect=function(H){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.DH())}finally{this.disconnectUi_=H||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),ZPp(this),this.JSC$20034_channel_&&(this.JSC$20034_channel_.getState()==3&&BF8(this.JSC$20034_channel_),this.JSC$20034_channel_.disconnect()),this.disconnectUi_=0}};
ab.prototype.sendMessage=function(H,U){var A=this,M;return _.u(function(W){switch(W.nextAddress){case 1:_.yb(W,2);if(!A.useAsyncBrowserChannelHandler_){W.jumpTo(2);break}return W.yield(A.connectPromise_,2);case 2:_.cI(W);if(A.JSC$20034_disposed_)return W.return();M={_sc:H};U&&_.dG.extend(M,U);if(A.reconnectTimer_.isActive()||(A.JSC$20034_channel_?A.JSC$20034_channel_.getState():0)==2){A.JSC$20034_pendingMessages_.push(M);W.jumpTo(6);break}if(!A.isChannelOpened()){W.jumpTo(6);break}_.yb(W,8);if(!A.useAsyncBrowserChannelHandler_||
JQk(A,H)){W.jumpTo(8);break}return W.yield(OPf(A),8);case 8:_.cI(W,0,0,1);A.isChannelOpened()&&(JQk(A,H)||fgj(A),ZPp(A),y1h(A.JSC$20034_channel_,M));_.BI(W,6,1);break;case 6:_.BI(W,0)}})};
var JQk=function(H,U){return H.enableMdxAuthForConnectionOnly_?!0:H.disableMdxAuthForAdMessages_?Object.values(W_Y).includes(U):H.disableMdxAuthForNonPlaybackMessages_?!Object.values(w3X).includes(U):H.disableMdxAuthForShortsMessages_?Object.values(X35).includes(U):!1};
ab.prototype.JSC$19955_channelOpened=function(){this.retryLogger_&&this.reconnectTimer_&&this.reconnectTimer_.getRetryCount()>0&&this.retryLogger_.logSuccess();this.isInitialReconnectTimer_?(this.reconnectTimer_.stop(),_.zg(this.reconnectTimer_),this.reconnectTimer_=new gC(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20034_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)K_f(this);else{var H=
this.JSC$20034_pendingMessages_;this.JSC$20034_pendingMessages_=[];var U=H.length;fgj(this);oJ7(this,H,U);F_7(this)}else F_7(this)};
var K_f=function(H){var U,A;_.u(function(M){if(M.nextAddress==1)return _.yb(M,2),M.yield(OPf(H),2);_.cI(M);U=H.JSC$20034_pendingMessages_;H.JSC$20034_pendingMessages_=[];A=U.length;oJ7(H,U,A);F_7(H);return _.BI(M,0)})},oJ7=function(H,U,A){for(var M=0;M<A;++M)y1h(H.JSC$20034_channel_,U[M]);
F_7(H)},F_7=function(H){H.publish("handlerOpened");
H.JSC$20034_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.X=ab.prototype;_.X.JSC$19955_channelError=function(H){var U=H==2&&this.JSC$20034_channel_.JSC$19948_lastStatusCode_==401;H==4||U||(this.isInitialReconnectTimer_&&!this.reconnectTimer_.isActive()&&(_.zg(this.reconnectTimer_),this.reconnectTimer_=new gC(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1),this.reconnectTimer_.start());this.publish("handlerError",H,U);U=Object.keys(E0h).find(function(A){return E0h[A]===H});
this.JSC$20034_channelErrorCounter.increment("BROWSER_CHANNEL",U!=null?U:"UNKNOWN")};
_.X.JSC$19955_channelClosed=function(H,U){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(U)for(var A=U.length,M=0;M<A;++M){var W=U[M].map;W&&this.JSC$20034_pendingMessages_.push(W)}this.JSC$20034_channelClosedCounter.increment("BROWSER_CHANNEL");H&&this.pendingMapsOnClosedCounter.JSC$10235_streamzService.JSC$10090_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",H.length);U&&this.undeliveredMapsOnClosedCounter.JSC$10238_streamzService.JSC$10090_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
U.length)};
_.X.JSC$19955_channelSuccess=function(H,U){U!=null&&H!=null&&this.channelMessageSentCounter.increment()};
_.X.JSC$19955_getAdditionalParams=function(){var H={v:2};this.sCookie_&&(H.gsessionid=this.sCookie_);this.connectUi_!=0&&(H.ui=""+this.connectUi_);this.disconnectUi_!=0&&(H.ui=""+this.disconnectUi_);this.connectionParams_&&_.dG.extend(H,this.connectionParams_);return H};
_.X.JSC$19955_channelHandleArray=function(H){H[0]=="S"?this.sCookie_=H[1]:H[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20034_channel_.disconnect()):this.publish("handlerMessage",new Gl8(H[0],H[1]));this.JSC$20034_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.X.isChannelOpened=function(){return!!this.JSC$20034_channel_&&this.JSC$20034_channel_.getState()==3};
var ZPp=function(H){if(H.JSC$20034_channel_){var U=H.JSC$20034_getXsrfToken_(),A=H.JSC$20034_channel_.JSC$19948_extraHeaders_||{};U?A["x-youtube-lounge-xsrf-token"]=U:delete A["x-youtube-lounge-xsrf-token"];H.JSC$20034_channel_.JSC$19948_extraHeaders_=A}},OPf=function(H){if(H.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.DH();
if(!H.enableCachedUpdateAuthorizationHeader_)return PPk(H);H.updateAuthorizationHeaderPromise_===null&&(H.updateAuthorizationHeaderPromise_=PPk(H));return H.updateAuthorizationHeaderPromise_},PPk=function(H){return _.bR(H.getAuthorizationHeader_().then(function(U){s6f(H,U)}).thenCatch(function(){}),function(){H.updateAuthorizationHeaderPromise_=null})},s6f=function(H,U){if(H.JSC$20034_channel_){var A=H.JSC$20034_channel_.JSC$19948_extraHeaders_||{};
U&&Object.keys(U).length>0?A=Object.assign({},A,U):delete A.Authorization;H.JSC$20034_channel_.JSC$19948_extraHeaders_=A}},fgj=function(H){H.getAuthorizationHeaderSync_&&!H.useAsyncBrowserChannelHandler_&&s6f(H,H.getAuthorizationHeaderSync_())};
_.X=ab.prototype;_.X.setLoungeToken=function(H){(this.defaultQueryParams_.loungeIdToken=H)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20034_channel_){var U=this.JSC$20034_channel_.JSC$19948_extraHeaders_||{};H?U["X-YouTube-LoungeId-Token"]=H:delete U["X-YouTube-LoungeId-Token"];this.JSC$20034_channel_.JSC$19948_extraHeaders_=U}};
_.X.getDeviceId=function(){return this.defaultQueryParams_.id};
_.X.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.X.reconnect=function(){var H=this.reconnectTimer_;H.delay_.fire();H.start()};
_.X.safeReconnect_=function(){var H=this.JSC$20034_channel_,U=0;H.JSC$19948_backChannelRequest_&&U++;H.forwardChannelRequest_&&U++;U==0&&this.connect(this.connectionParams_,this.connectUi_)};var tC=function(H,U){var A=H.basePath;H.supportCors&&(A=H.scheme+"://"+H.domain+H.port+H.basePath);return _.kZ(A+U,{})};
ItX.prototype.sendRequest=function(H,U,A,M,W,w,d){H={format:w?"RAW":"JSON",method:H,context:this,timeout:5E3,withCredentials:!!d,onSuccess:_.vg(this.JSC$20041_onSuccess_,M,!w),onError:_.vg(this.onError_,W),onTimeout:_.vg(this.JSC$20041_onTimeout_,W)};A&&(H.postParams=A,H.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.VW(U,H)};
ItX.prototype.JSC$20041_onSuccess_=function(H,U,A,M){U?H(M):H({text:A.responseText})};
ItX.prototype.onError_=function(H,U){H(Error("$k`"+U.status))};
ItX.prototype.JSC$20041_onTimeout_=function(H){H(Error("al"))};var UDf=function(H,U){return!!U&&(H.id==U||H.uuid==U)},nJB=function(H){return{name:H.name,
screenId:H.id,loungeToken:H.token,dialId:H.uuid,screenIdType:H.idType,screenIdSecret:H.secret}},N_h=function(H){return new xe(H)},SE$=function(H){return Array.isArray(H)?_.OA(H,N_h):[]},MrX=function(H){if(!H)return"null";
var U=H.token?".."+H.token.slice(-6):"-",A=H.uuid?".."+H.uuid.slice(-6):"-",M=H.secret?".."+H.secret.slice(-6):"-";return'{name:"'+H.name+'",id:'+H.id.substr(0,6)+"..,token:"+(U+",uuid:"+A+",idType:"+H.idType+",secret:")+(M+"}")},xDj=function(H){return Array.isArray(H)?"["+_.OA(H,MrX).join(",")+"]":"null"};var beh="",C6=null;var P08=function(H,U){_.LW.call(this);var A=this;this.handler=H();this.handler.subscribe("handlerOpened",this.JSC$20048_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(M,W){A.onError(W)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=U};
_.R(P08,_.LW);_.X=P08.prototype;_.X.connect=function(H,U,A){this.handler.connect(H,U,A)};
_.X.disconnect=function(H){this.handler.disconnect(H)};
_.X.reconnect=function(){this.handler.reconnect()};
_.X.getDeviceId=function(){return this.handler.getDeviceId()};
_.X.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.X.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.X.JSC$20048_onOpened=function(){this.dispatchEvent("channelOpened");var H=this.handler,U=this.currentScreenId;_.V3("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!H.JSC$20034_channel_.useChunked_,sessionId:H.JSC$20034_channel_.sid_,arrayId:H.JSC$20034_channel_.JSC$19948_lastArrayId_});_.V3("yt-remote-session-screen-id",U);H=Ayj();U=Mq5();_.y0(H,U)||H.push(U);ieX(H);XXh()};
_.X.onClosed=function(){this.dispatchEvent("channelClosed")};
_.X.onMessage=function(H){this.dispatchEvent(new HPy(H))};
_.X.onError=function(H){this.dispatchEvent(new UH5(H?1:0))};
_.X.sendMessage=function(H,U){this.handler.sendMessage(H,U)};
_.X.setLoungeToken=function(H){this.handler.setLoungeToken(H)};
_.X.dispose=function(){this.handler.dispose()};var Fdj=function(H,U,A){var M=this;A=A===void 0?function(){return""}:A;
var W=W===void 0?new Bnf:W;var w=w===void 0?new _.HK:w;this.pathPrefix=H;this.defaultQueryParams=U;this.getXsrfToken=A;this.JSC$20051_pubsub=w;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new gC(function(){var d;((d=M.channel)==null?void 0:Rxp((new vvB(d,d.JSC$19916_channel_)).JSC$19926_channel_.forwardChannelRequestPool_))===0&&M.connect(M.connectionParams,M.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20051_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20051_channelOpenedCounter=new YUp;this.JSC$20051_channelClosedCounter=new qUm;this.JSC$20051_channelMessageReceivedCounter=new kly;this.JSC$20051_channelErrorCounter=new vaf};
Fdj.prototype.connect=function(H,U){H=H===void 0?{}:H;U=U===void 0?0:U;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=H,this.connectUi=U,p35(this),(H=_.gD("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=H: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 FR(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,L_X(this))};
var L_X=function(H){_.Rc(H.channel,"w",function(){H.channelState=3;H.reconnectTimer.reset();H.connectionParams=null;H.connectUi=0;for(var U=_.b(H.nonAckedMessagesOnChannelClosed),A=U.next();!A.done;A=U.next())A=A.value,H.channel&&H.channel.send(A);H.nonAckedMessagesOnChannelClosed=[];H.publish("webChannelOpened");H.JSC$20051_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Rc(H.channel,"x",function(){H.channelState=0;H.reconnectTimer.isActive()||H.publish("webChannelClosed");var U,A=(U=H.channel)==null?void 0:T6k(new vvB(U,U.JSC$19916_channel_));A&&(H.nonAckedMessagesOnChannelClosed=[].concat(_.vI(A)));H.JSC$20051_channelClosedCounter.increment("WEB_CHANNEL")});
_.Rc(H.channel,"z",function(U){var A=U.data;A[0]==="gracefulReconnect"?(H.reconnectTimer.start(),H.channel&&H.channel.close()):H.publish("webChannelMessage",new Gl8(A[0],A[1]));H.lastStatusCode=U.statusCode;H.JSC$20051_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Rc(H.channel,"y",function(){H.lastStatusCode===401||H.reconnectTimer.start();H.publish("webChannelError");H.JSC$20051_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.X=Fdj.prototype;_.X.disconnect=function(H){this.disconnectUi=H===void 0?0:H;this.reconnectTimer.stop();p35(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.X.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.X.reconnect=function(){var H=this.reconnectTimer;H.delay_.fire();H.start()};
_.X.sendMessage=function(H,U){this.channel&&(p35(this),H=Object.assign({},{_sc:H},U),this.channel.send(H))};
_.X.setLoungeToken=function(H){H||this.reconnectTimer.stop();H?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=H:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var p35=function(H){var U=H.getXsrfToken();U?H.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=U:delete H.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.X=Fdj.prototype;_.X.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.X.publish=function(H){return this.JSC$20051_pubsub.publish.apply(this.JSC$20051_pubsub,[H].concat(_.vI(_.QY.apply(1,arguments))))};
_.X.subscribe=function(H,U,A){return this.JSC$20051_pubsub.subscribe(H,U,A)};
_.X.unsubscribe=function(H,U,A){return this.JSC$20051_pubsub.unsubscribe(H,U,A)};
_.X.unsubscribeByKey=function(H){return this.JSC$20051_pubsub.unsubscribeByKey(H)};
_.X.dispose=function(){this.JSC$20051_disposed||(this.JSC$20051_disposed=!0,_.zg(this.JSC$20051_pubsub),this.disconnect(),_.zg(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.X.isDisposed=function(){return this.JSC$20051_disposed};var o$7=function(H){_.LW.call(this);this.webChannelService=H();this.webChannelService.subscribe("webChannelOpened",this.JSC$20059_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.R(o$7,_.LW);_.X=o$7.prototype;_.X.connect=function(H,U){this.webChannelService.connect(H,U)};
_.X.disconnect=function(H){this.webChannelService.disconnect(H)};
_.X.reconnect=function(){this.webChannelService.reconnect()};
_.X.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.X.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.X.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.X.JSC$20059_onOpened=function(){this.dispatchEvent("channelOpened")};
_.X.onClosed=function(){this.dispatchEvent("channelClosed")};
_.X.onMessage=function(H){this.dispatchEvent(new HPy(H))};
_.X.onError=function(){this.dispatchEvent(new UH5(this.webChannelService.lastStatusCode===401?1:0))};
_.X.sendMessage=function(H,U){this.webChannelService.sendMessage(H,U)};
_.X.setLoungeToken=function(H){this.webChannelService.setLoungeToken(H)};
_.X.dispose=function(){this.webChannelService.dispose()};var adk=Date.now(),cT=null,mDh=Array(50),E$5=-1,g$5=!1;var rC=function(H){H=H===void 0?!1:H;_.XG.call(this);this.pubSub_=new _.HK(H);_.kl(this,this.pubSub_)};
_.zo(rC,_.XG);rC.prototype.subscribe=function(H,U,A){return this.isDisposed()?0:this.pubSub_.subscribe(H,U,A)};
rC.prototype.unsubscribe=function(H,U,A){return this.isDisposed()?!1:this.pubSub_.unsubscribe(H,U,A)};
rC.prototype.unsubscribeByKey=function(H){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(H)};
rC.prototype.publish=function(H,U){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};_.zo(eH,rC);eH.prototype.getScreens=function(){return this.screens};
eH.prototype.contains=function(H){return!!He7(this.screens,H)};
eH.prototype.get=function(H){return H?z_(this.screens,H):null};
var R_5=function(H,U){var A=H.get(U.uuid)||H.get(U.id);if(A)return H=A.name,A.id=U.id||A.id,A.name=U.name,A.token=U.token,A.uuid=U.uuid||A.uuid,A.name!=H;H.screens.push(U);return!0},EJ5=function(H,U){var A=H.screens.length!=U.length;
H.screens=_.cu(H.screens,function(w){return!!He7(U,w)});
for(var M=U.length,W=0;W<M;W++)A=R_5(H,U[W])||A;return A},mHk=function(H,U){var A=H.screens.length;
H.screens=_.cu(H.screens,function(M){return!(M||U?!M!=!U?0:M.id==U.id:1)});
return H.screens.length<A};
eH.prototype.info=function(H){yH(this.JSC$20063_logName_,H)};var gJk=function(H,U,A,M,W){rC.call(this);this.JSC$20066_http_=H;this.pairingCode_=U;this.deviceId_=A;this.friendlyName_=M;this.enableShortLivedLoungeToken_=W;this.pollIndex_=0;this.JSC$20066_xhr_=null;this.JSC$20066_timer_=NaN};
_.R(gJk,rC);_.X=gJk.prototype;_.X.start=function(){!this.JSC$20066_xhr_&&isNaN(this.JSC$20066_timer_)&&this.poll_()};
_.X.stop=function(){this.JSC$20066_xhr_&&(this.JSC$20066_xhr_.abort(),this.JSC$20066_xhr_=null);isNaN(this.JSC$20066_timer_)||(_.QW(this.JSC$20066_timer_),this.JSC$20066_timer_=NaN)};
_.X.disposeInternal=function(){this.stop();rC.prototype.disposeInternal.call(this)};
_.X.poll_=function(){this.JSC$20066_timer_=NaN;this.JSC$20066_xhr_=_.VW(tC(this.JSC$20066_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.i9)(this.JSC$20068_onSuccess_,this),onError:(0,_.i9)(this.onError_,this),onTimeout:(0,_.i9)(this.JSC$20068_onTimeout_,this)})};
_.X.JSC$20068_onSuccess_=function(H,U){this.JSC$20066_xhr_=null;H=U.screen||{};H.dialId=this.deviceId_;H.name=this.friendlyName_;U=-1;this.enableShortLivedLoungeToken_&&H.shortLivedLoungeToken&&H.shortLivedLoungeToken.value&&H.shortLivedLoungeToken.refreshIntervalMs&&(H.screenIdType="shortLived",H.loungeToken=H.shortLivedLoungeToken.value,U=H.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new xe(H),U)};
_.X.onError_=function(H){this.JSC$20066_xhr_=null;H.status&&H.status==404?this.pollIndex_>=agf.length?this.publish("pairingFailed",Error("bl")):(H=agf[this.pollIndex_],this.JSC$20066_timer_=_.jy((0,_.i9)(this.poll_,this),H),this.pollIndex_++):this.publish("pairingFailed",Error("cl`"+H.status))};
_.X.JSC$20068_onTimeout_=function(){this.JSC$20066_xhr_=null;this.publish("pairingFailed",Error("dl"))};
var agf=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.zo($e,eH);_.X=$e.prototype;_.X.start=function(){Ds(this)&&this.publish("screenChange");!_.H4("yt-remote-lounge-token-expiration")&&xH5(this);_.QW(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.jy((0,_.i9)(this.start,this),1E4)};
_.X.add=function(H,U){Ds(this);R_5(this,H);z_8(this,!1);this.publish("screenChange");U(H);H.token||xH5(this)};
_.X.remove=function(H,U){var A=Ds(this);mHk(this,H)&&(z_8(this,!1),A=!0);U(H);A&&this.publish("screenChange")};
_.X.updateName=function(H,U,A,M){var W=Ds(this),w=this.get(H.id);w?(w.name!=U&&(w.name=U,z_8(this,!1),W=!0),A(H)):M(Error("el"));W&&this.publish("screenChange")};
_.X.disposeInternal=function(){_.QW(this.loungeTokenRefreshTimer_);$e.superClass_.disposeInternal.call(this)};
var xH5=function(H){if(H.screens.length){var U=_.OA(H.screens,function(M){return M.id}),A=tC(H.JSC$20070_http_,"/pairing/get_lounge_token_batch");
H.JSC$20070_http_.sendRequest("POST",A,{screen_ids:U.join(",")},(0,_.i9)(H.handleLoungeTokens_,H),(0,_.i9)(H.handleLoungeTokenError_,H))}};
$e.prototype.handleLoungeTokens_=function(H){Ds(this);var U=this.screens.length;H=H&&H.screens||[];for(var A=H.length,M=0;M<A;++M){var W=H[M],w=this.get(W.screenId);w&&(w.token=W.loungeToken,--U)}z_8(this,!U);U&&yH(this.JSC$20063_logName_,"Missed "+U+" lounge tokens.")};
$e.prototype.handleLoungeTokenError_=function(H){yH(this.JSC$20063_logName_,"Requesting lounge tokens failed: "+H)};
var Ds=function(H){if(_.S("deprecate_pair_servlet_enabled"))return EJ5(H,[]);var U=SE$(OeX());U=_.cu(U,function(A){return!A.uuid});
return EJ5(H,U)},z_8=function(H,U){Ze$(_.OA(H.screens,nJB));
U&&u8y()};var g8=function(H,U){rC.call(this);this.getScreensToCheck_=U;U=(U=_.H4("yt-remote-online-screen-ids")||"")?U.split(","):[];for(var A={},M=this.getScreensToCheck_(),W=M.length,w=0;w<W;++w){var d=M[w].id;A[d]=_.y0(U,d)}this.screenIdSet_=A;this.JSC$20073_http_=H;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;CP$("Initialized with "+(0,_.uR)(this.screenIdSet_))};
_.R(g8,rC);g8.prototype.isOnline=function(H){return!!this.screenIdSet_[H]};
g8.prototype.start=function(){var H=parseInt(_.H4("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.x4()-144E5<H?0:H)?tP7(this):(this.fastCheckEndTime_=_.x4()+3E5,_.V3("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
g8.prototype.isEmpty=function(){return _.dG.isEmpty(this.screenIdSet_)};
g8.prototype.update=function(){CP$("Updating availability on schedule.");var H=this.getScreensToCheck_(),U=_.dG.filter(this.screenIdSet_,function(A,M){return A&&!!z_(H,M)},this);
cQh(this,U)};
var yQk=function(H,U,A){var M=tC(H.JSC$20073_http_,"/pairing/get_screen_availability");H.JSC$20073_http_.sendRequest("POST",M,{lounge_token:U.token},(0,_.i9)(function(W){W=W.screens||[];for(var w=W.length,d=0;d<w;++d)if(W[d].loungeToken==U.token){A(W[d].status=="online");return}A(!1)},H),(0,_.i9)(function(){A(!1)},H))};
g8.prototype.disposeInternal=function(){_.QW(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);rC.prototype.disposeInternal.call(this)};
var cQh=function(H,U){a:if(_.dG.getCount(U)!=_.dG.getCount(H.screenIdSet_))var A=!1;else{A=_.dG.getKeys(U);for(var M=A.length,W=0;W<M;++W)if(!H.screenIdSet_[A[W]]){A=!1;break a}A=!0}A||(CP$("Updated online screens: "+(0,_.uR)(H.screenIdSet_)),H.screenIdSet_=U,H.publish("screenChange"));B_Y(H)},tP7=function(H){isNaN(H.refreshTimer_)||_.QW(H.refreshTimer_);
H.refreshTimer_=_.jy((0,_.i9)(H.requestScreenAvailability_,H),H.fastCheckEndTime_>0&&H.fastCheckEndTime_<_.x4()?2E4:1E4)};
g8.prototype.requestScreenAvailability_=function(){_.QW(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var H=rQ7(this);if(_.dG.getCount(H)){var U=tC(this.JSC$20073_http_,"/pairing/get_screen_availability"),A={lounge_token:_.dG.getKeys(H).join(",")};this.currentRequest_=this.JSC$20073_http_.sendRequest("POST",U,A,(0,_.i9)(this.onScreenAvailability_,this,H),(0,_.i9)(this.onScreenAvailabilityError_,this))}else cQh(this,{}),tP7(this)};
g8.prototype.onScreenAvailability_=function(H,U){this.currentRequest_=null;var A=_.dG.getKeys(rQ7(this));if(_.jN(A,_.dG.getKeys(H))){U=U.screens||[];A={};for(var M=U.length,W=0;W<M;++W)A[H[U[W].loungeToken]]=U[W].status=="online";cQh(this,A);tP7(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
g8.prototype.onScreenAvailabilityError_=function(H){this.warn_("Screen availability failed: "+H);this.currentRequest_=null;tP7(this)};
var CP$=function(H){yH("OnlineScreenService",H)};
g8.prototype.warn_=function(H){yH("OnlineScreenService",H)};
var rQ7=function(H){var U={};_.yW(H.getScreensToCheck_(),function(A){A.token?U[A.token]=A.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return U},B_Y=function(H){H=_.dG.getKeys(_.dG.filter(H.screenIdSet_,function(U){return U}));
H.sort(_.ctF);H.length?_.V3("yt-remote-online-screen-ids",H.join(","),60):_.UU("yt-remote-online-screen-ids")};_.zo(lG,eH);_.X=lG.prototype;_.X.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.X.add=function(H,U,A){this.localScreenService_.add(H,U,A)};
_.X.remove=function(H,U,A){this.localScreenService_.remove(H,U,A);this.onlineScreenService_.update()};
_.X.updateName=function(H,U,A,M){this.localScreenService_.contains(H)?this.localScreenService_.updateName(H,U,A,M):(H="Updating name of unknown screen: "+H.name,yH(this.JSC$20063_logName_,H),M(Error(H)))};
_.X.getScreens=function(H){return H?this.screens:bKj(this.screens,_.cu(this.automaticScreens_,function(U){return!this.contains(U)},this))};
_.X.JSC$20078_getOnlineScreens=function(){return _.cu(this.getScreens(!0),function(H){return this.onlineScreenService_.isOnline(H.id)},this)};
var DH8=function(H,U,A,M,W,w){H.info("getAutomaticScreenByIds "+A+" / "+U);A||(A=H.deviceToScreenId_[U]);var d=H.getScreens(),O=A?z_(d,A):null;A&&(H.disableAutomaticScreenCache_||O)||(O=z_(d,U));if(O){O.uuid=U;var f=ae(H,O);yQk(H.onlineScreenService_,f,function(J){W(J?f:null)})}else A?e_$(H,A,(0,_.i9)(function(J){var F=ae(this,new xe({name:M,
screenId:A,loungeToken:J,dialId:U||""}));yQk(this.onlineScreenService_,F,function(P){W(P?F:null)})},H),w):W(null)};
lG.prototype.JSC$20078_getScreenByPollingPairingCode=function(H,U,A,M,W,w){var d=this;this.info("getDialScreenByPairingCode "+H+" / "+U);var O=new gJk(this.JSC$20076_http_,H,U,A,M);O.subscribe("pairingComplete",function(f,J){_.zg(O);W(ae(d,f),J)});
O.subscribe("pairingFailed",function(f){_.zg(O);w(f)});
O.start();return(0,_.i9)(O.stop,O)};
var $H8=function(H,U){for(var A=H.screens.length,M=0;M<A;++M)if(H.screens[M].name==U)return H.screens[M];return null};
lG.prototype.JSC$20078_getScreenByPairingCode=function(H,U,A,M){_.VW(tC(this.JSC$20076_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:H},timeout:5E3,onSuccess:(0,_.i9)(function(W,w){W=new xe(w.screen||{});if(!W.name||$H8(this,W.name)){a:{w=W.name;for(var d=2,O=U(w,d);$H8(this,O);){d++;if(d>20)break a;O=U(w,d)}w=O}W.name=w}A(ae(this,W))},this),
onError:(0,_.i9)(function(W){M(Error("fl`"+W.status))},this),
onTimeout:(0,_.i9)(function(){M(Error("gl"))},this)})};
var lgy=function(H,U,A){yQk(H.onlineScreenService_,U,A)};
lG.prototype.disposeInternal=function(){_.zg(this.localScreenService_);_.zg(this.onlineScreenService_);lG.superClass_.disposeInternal.call(this)};
var e_$=function(H,U,A,M){H.info("requestLoungeToken_ for "+U);var W={postParams:{screen_ids:U},method:"POST",context:H,onSuccess:function(w,d){w=d&&d.screens||[];w[0]&&w[0].screenId==U?A(w[0].loungeToken):M(Error("hl"))},
onError:function(){M(Error("il"))}};
_.VW(tC(H.JSC$20076_http_,"/pairing/get_lounge_token_batch"),W)},GX7=function(H){H.screens=H.localScreenService_.getScreens();
for(var U=_.dG.transpose(H.deviceToScreenId_),A=H.screens.length,M=0;M<A;++M){var W=H.screens[M];W.uuid=U[W.id]||""}H.info("Updated manual screens: "+xDj(H.screens))};
lG.prototype.handleScreenChange_=function(){GX7(this);this.publish("screenChange");this.onlineScreenService_.update()};
var zDj=function(H){YEp(H);H.localScreenService_=new $e(H.JSC$20076_http_);H.localScreenService_.subscribe("screenChange",(0,_.i9)(H.handleScreenChange_,H));GX7(H);H.disableAutomaticScreenCache_||(H.automaticScreens_=SE$(_.H4("yt-remote-automatic-screen-cache")||[]));YEp(H);H.info("Initializing automatic screens: "+xDj(H.automaticScreens_));H.onlineScreenService_=new g8(H.JSC$20076_http_,(0,_.i9)(H.getScreens,H,!0));H.onlineScreenService_.subscribe("screenChange",(0,_.i9)(function(){this.publish("onlineScreenChange")},
H))},ae=function(H,U){var A=H.get(U.id);
A?(A.uuid=U.uuid,U=A):((A=z_(H.automaticScreens_,U.uuid))?(A.id=U.id,A.token=U.token,U=A):H.automaticScreens_.push(U),H.disableAutomaticScreenCache_||qEm(H));YEp(H);H.deviceToScreenId_[U.uuid]=U.id;_.V3("yt-remote-device-id-map",H.deviceToScreenId_,31536E3);return U},qEm=function(H){H=_.cu(H.automaticScreens_,function(U){return U.idType!="shortLived"});
_.V3("yt-remote-automatic-screen-cache",_.OA(H,nJB))},YEp=function(H){H.deviceToScreenId_=_.H4("yt-remote-device-id-map")||{}};
lG.prototype.dispose=lG.prototype.dispose;_.zo(G_,rC);var xL=function(H,U){H.screen_=U;H.publish("sessionScreen",H.screen_)},h_m=function(H,U){H.screen_&&(H.screen_.token=U,ae(H.JSC$20080_screenService_,H.screen_));
H.publish("sessionScreen",H.screen_)};
G_.prototype.onSessionStopped=function(H){this.isDisposed()||(H&&(z$(this,""+H),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
G_.prototype.info=function(H){yH(this.JSC$20080_logName_,H)};
var z$=function(H,U){yH(H.JSC$20080_logName_,U)};
G_.prototype.JSC$20082_getCastSession=function(){return null};
G_.prototype.setDisplayStatus=function(H){var U=this.receiver_;H?(U.displayStatus=new chrome.cast.ReceiverDisplayStatus(H,[]),U.displayStatus.showStop=!0):U.displayStatus=null;chrome.cast.setReceiverDisplayStatus(U,(0,_.i9)(function(){this.info("Updated receiver status for "+U.friendlyName+": "+H)},this),(0,_.i9)(function(){z$(this,"Failed to update receiver status for: "+U.friendlyName)},this))};
G_.prototype.disposeInternal=function(){this.setDisplayStatus("");G_.superClass_.disposeInternal.call(this)};var C4=function(H,U,A){G_.call(this,H,U,"CastSession");var M=this;this.config_=A;this.JSC$20085_session_=null;this.JSC$20085_boundSessionUpdate_=(0,_.i9)(this.JSC$20087_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.i9)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.jy(function(){kXj(M,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20085_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20085_isInitLoungeToken_=!1;this.JSC$20085_lastLoungeTokenRefreshError_="unknown"};
_.R(C4,G_);_.X=C4.prototype;
_.X.setCastSession=function(H){if(this.JSC$20085_session_){if(this.JSC$20085_session_==H)return;z$(this,"Overriding cast session with new session object");vJY(this);this.JSC$20085_isInitLoungeToken_=!1;this.JSC$20085_lastLoungeTokenRefreshError_="unknown";this.JSC$20085_session_.removeUpdateListener(this.JSC$20085_boundSessionUpdate_);this.JSC$20085_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20085_session_=H;this.JSC$20085_session_.addUpdateListener(this.JSC$20085_boundSessionUpdate_);this.JSC$20085_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);T_Y(this,"getMdxSessionStatus")};
_.X.launchWithParams=function(H){this.info("launchWithParams no-op for Cast: "+(0,_.uR)(H))};
_.X.stop=function(){if(this.JSC$20085_session_)this.JSC$20085_session_.stop((0,_.i9)(function(){this.onSessionStopped()},this),(0,_.i9)(function(){this.onSessionStopped(Error("jl"))},this));
else this.onSessionStopped(Error("kl"))};
_.X.setDisplayStatus=function(){};
_.X.disposeInternal=function(){this.info("disposeInternal");vJY(this);this.JSC$20085_session_&&(this.JSC$20085_session_.removeUpdateListener(this.JSC$20085_boundSessionUpdate_),this.JSC$20085_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20085_session_=null;G_.prototype.disposeInternal.call(this)};
var Igk=function(H,U){_.QW(H.getLoungeTokenTimeoutKey_);H.getLoungeTokenTimeoutKey_=0;U==0?j6m(H):H.getLoungeTokenTimeoutKey_=_.jy(function(){j6m(H)},U)},j6m=function(H){T_Y(H,"getLoungeToken");
_.QW(H.onLoungeTokenTimeoutKey_);H.onLoungeTokenTimeoutKey_=_.jy(function(){Q65(H,null)},3E4)},T_Y=function(H,U){H.info("sendYoutubeMessage_: "+U+" "+(0,_.uR)(void 0));
var A={};A.type=U;H.JSC$20085_session_?H.JSC$20085_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",A,function(){},(0,_.i9)(function(){z$(this,"Failed to send message: "+U+".")},H)):z$(H,"Sending yt message without session: "+(0,_.uR)(A))};
C4.prototype.onYoutubeMessage_=function(H,U){if(!this.isDisposed())if(U)if(U=_.UH(U),_.ht(U))switch(H=""+U.type,U=U.data||{},this.info("onYoutubeMessage_: "+H+" "+(0,_.uR)(U)),H){case "mdxSessionStatus":kXj(this,U);break;case "loungeToken":Q65(this,U);break;default:z$(this,"Unknown youtube message: "+H)}else z$(this,"Unable to parse message.");else z$(this,"No data in message.")};
var VP7=function(H,U){if(U)H.info("onConnectedScreenId_: Received screenId: "+U),H.screen_&&H.screen_.id==U||H.getScreen_(U,function(A){xL(H,A)},function(){return H.onSessionStopped()},5);
else H.onSessionStopped(Error("ll"))},UVY=function(H,U,A){H.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(U));
var M=new xe(U);Ho5(H,M,function(W){W?(H.JSC$20085_isInitLoungeToken_=!0,ae(H.JSC$20080_screenService_,M),xL(H,M),H.JSC$20085_lastLoungeTokenRefreshError_="unknown",Igk(H,A)):(_.za(Error("ml`"+JSON.stringify(U))),H.onSessionStopped())},5)},kXj=function(H,U){_.QW(H.sessionStatusTimeoutKey_);
H.sessionStatusTimeoutKey_=0;if(U)H.config_.enableCastLoungeToken&&U.loungeToken?U.deviceId?H.screen_&&H.screen_.uuid==U.deviceId||(U.loungeTokenRefreshIntervalMs?UVY(H,{name:H.receiver_.friendlyName,screenId:U.screenId,loungeToken:U.loungeToken,dialId:U.deviceId,screenIdType:"shortLived"},U.loungeTokenRefreshIntervalMs):(_.za(Error("ol`"+JSON.stringify(U))),VP7(H,U.screenId))):(_.za(Error("nl`"+JSON.stringify(U))),VP7(H,U.screenId)):VP7(H,U.screenId);else H.onSessionStopped(Error("ll"))},Q65=function(H,
U){_.QW(H.onLoungeTokenTimeoutKey_);
H.onLoungeTokenTimeoutKey_=0;var A=null;if(U)if(U.loungeToken){var M;((M=H.screen_)==null?void 0:M.token)==U.loungeToken&&(A="staleLoungeToken")}else A="missingLoungeToken";else A="noLoungeTokenResponse";A?(H.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(U)+", error: "+A)),H.JSC$20085_lastLoungeTokenRefreshError_=A,Igk(H,3E4)):(h_m(H,U.loungeToken),H.JSC$20085_isInitLoungeToken_=!1,H.JSC$20085_lastLoungeTokenRefreshError_="unknown",Igk(H,U.loungeTokenRefreshIntervalMs))};
C4.prototype.getScreen_=function(H,U,A,M){_.QW(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;DH8(this.JSC$20080_screenService_,this.receiver_.label,H,this.receiver_.friendlyName,(0,_.i9)(function(W){W?U(W):M>=0?(z$(this,"Screen "+H+" appears to be offline. "+M+" retries left."),this.getScreenTimeoutKey_=_.jy((0,_.i9)(this.getScreen_,this,H,U,A,M-1),300)):A(Error("pl"))},this),A)};
var Ho5=function(H,U,A,M){_.QW(H.JSC$20085_checkScreenAvailabilityTimeoutKey_);H.JSC$20085_checkScreenAvailabilityTimeoutKey_=0;lgy(H.JSC$20080_screenService_,U,function(W){W||M<0?A(W):H.JSC$20085_checkScreenAvailabilityTimeoutKey_=_.jy(function(){Ho5(H,U,A,M-1)},300)})};
C4.prototype.JSC$20082_getCastSession=function(){return this.JSC$20085_session_};
C4.prototype.JSC$20087_onSessionUpdate_=function(H){this.isDisposed()||H||(z$(this,"Cast session died."),this.onSessionStopped())};
var vJY=function(H){_.QW(H.getScreenTimeoutKey_);H.getScreenTimeoutKey_=0;_.QW(H.JSC$20085_checkScreenAvailabilityTimeoutKey_);H.JSC$20085_checkScreenAvailabilityTimeoutKey_=0;_.QW(H.sessionStatusTimeoutKey_);H.sessionStatusTimeoutKey_=0;_.QW(H.onLoungeTokenTimeoutKey_);H.onLoungeTokenTimeoutKey_=0;_.QW(H.getLoungeTokenTimeoutKey_);H.getLoungeTokenTimeoutKey_=0};var tY=function(H,U,A,M){G_.call(this,H,U,"DialSession");this.config_=M;this.JSC$20089_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20089_theme_=A;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20089_deferredLaunchDeadlineTimer_=NaN;this.JSC$20089_boundSessionUpdate_=(0,_.i9)(this.JSC$20091_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20089_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20089_isInitLoungeToken_=!1;this.JSC$20089_lastLoungeTokenRefreshError_="unknown"};
_.R(tY,G_);tY.prototype.setCastSession=function(H){this.JSC$20089_session_=H;this.JSC$20089_session_.addUpdateListener(this.JSC$20089_boundSessionUpdate_)};
tY.prototype.launchWithParams=function(H){this.connectData_=H;this.deferredLaunch_()};
tY.prototype.stop=function(){AEX(this);if(this.JSC$20089_session_)this.JSC$20089_session_.stop((0,_.i9)(this.onSessionStopped,this,null),(0,_.i9)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
tY.prototype.disposeInternal=function(){AEX(this);this.JSC$20089_session_&&this.JSC$20089_session_.removeUpdateListener(this.JSC$20089_boundSessionUpdate_);this.JSC$20089_session_=null;G_.prototype.disposeInternal.call(this)};
var M67=function(H){var U;return!!(H.config_.enableDialLoungeToken&&((U=H.JSC$20089_session_)==null?0:U.getDialAppInfo))},wVj=function(H){H.cancelPolling_=H.JSC$20080_screenService_.JSC$20078_getScreenByPollingPairingCode(H.reversePairingCode_,H.receiver_.label,H.receiver_.friendlyName,M67(H),function(U,A){H.cancelPolling_=function(){};
H.JSC$20089_isInitLoungeToken_=!0;xL(H,U);U.idType=="shortLived"&&A>0&&WGB(H,A)},function(U){H.cancelPolling_=function(){};
H.onSessionStopped(U)})};
tY.prototype.JSC$20091_onSessionUpdate_=function(H){this.isDisposed()||H||(z$(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var XVk=function(H){var U={};U.pairingCode=H.reversePairingCode_;U.theme=H.JSC$20089_theme_;Kdf()&&(U.env_useStageMdx=1);return _.hz(U)},io5=function(H){return new Promise(function(U){H.reversePairingCode_=Qrh();
if(H.connectData_){var A=new chrome.cast.DialLaunchResponse(!0,XVk(H));U(A);wVj(H)}else H.deferredLaunch_=function(){_.QW(H.JSC$20089_deferredLaunchDeadlineTimer_);H.deferredLaunch_=function(){};
H.JSC$20089_deferredLaunchDeadlineTimer_=NaN;var M=new chrome.cast.DialLaunchResponse(!0,XVk(H));U(M);wVj(H)},H.JSC$20089_deferredLaunchDeadlineTimer_=_.jy(function(){H.deferredLaunch_()},100)})},dV5=function(H,U,A){H.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(U));
var M=new xe(U);return(new Promise(function(W){boh(H,M,function(w){w?(H.JSC$20089_isInitLoungeToken_=!0,ae(H.JSC$20080_screenService_,M),xL(H,M),WGB(H,A)):_.za(Error("rl`"+JSON.stringify(U)));W(w)},5)})).then(function(W){return W?new chrome.cast.DialLaunchResponse(!1):io5(H)})},OoY=function(H,U){var A=H.launchData_.receiver.label,M=H.receiver_.friendlyName;
return(new Promise(function(W){DH8(H.JSC$20080_screenService_,A,U,M,function(w){w&&w.token&&xL(H,w);W(w)},function(w){z$(H,"Failed to get DIAL screen: "+w);
W(null)})})).then(function(W){return W&&W.token?new chrome.cast.DialLaunchResponse(!1):io5(H)})},boh=function(H,U,A,M){_.QW(H.JSC$20089_checkScreenAvailabilityTimeoutKey_);
H.JSC$20089_checkScreenAvailabilityTimeoutKey_=0;lgy(H.JSC$20080_screenService_,U,function(W){W||M<0?A(W):H.JSC$20089_checkScreenAvailabilityTimeoutKey_=_.jy(function(){boh(H,U,A,M-1)},300)})},WGB=function(H,U){H.info("getDialAppInfoWithTimeout_ "+U);
M67(H)&&(_.QW(H.getDialAppInfoTimeoutKey_),H.getDialAppInfoTimeoutKey_=0,U==0?uoj(H):H.getDialAppInfoTimeoutKey_=_.jy(function(){uoj(H)},U))},uoj=function(H){M67(H)&&H.JSC$20089_session_.getDialAppInfo(function(U){H.info("getDialAppInfo dialLaunchData: "+JSON.stringify(U));
U=U.extraData||{};var A=null;if(U.loungeToken){var M;((M=H.screen_)==null?void 0:M.token)==U.loungeToken&&(A="staleLoungeToken")}else A="missingLoungeToken";A?(H.JSC$20089_lastLoungeTokenRefreshError_=A,WGB(H,3E4)):(H.JSC$20089_isInitLoungeToken_=!1,H.JSC$20089_lastLoungeTokenRefreshError_="unknown",h_m(H,U.loungeToken),WGB(H,U.loungeTokenRefreshIntervalMs))},function(U){H.info("getDialAppInfo error: "+U);
H.JSC$20089_lastLoungeTokenRefreshError_="noLoungeTokenResponse";WGB(H,3E4)})},AEX=function(H){_.QW(H.JSC$20089_checkScreenAvailabilityTimeoutKey_);
H.JSC$20089_checkScreenAvailabilityTimeoutKey_=0;_.QW(H.getDialAppInfoTimeoutKey_);H.getDialAppInfoTimeoutKey_=0;H.cancelPolling_();H.cancelPolling_=function(){};
_.QW(H.JSC$20089_deferredLaunchDeadlineTimer_)};var ct=function(H,U){G_.call(this,H,U,"ManualSession");this.JSC$20093_deferredLaunchDeadlineTimer_=_.jy((0,_.i9)(this.launchWithParams,this,null),150)};
_.R(ct,G_);ct.prototype.stop=function(){this.onSessionStopped()};
ct.prototype.setCastSession=function(){};
ct.prototype.launchWithParams=function(){_.QW(this.JSC$20093_deferredLaunchDeadlineTimer_);this.JSC$20093_deferredLaunchDeadlineTimer_=NaN;var H=z_(this.JSC$20080_screenService_.getScreens(),this.receiver_.label);if(H)xL(this,H);else this.onSessionStopped(Error("sl"))};
ct.prototype.disposeInternal=function(){_.QW(this.JSC$20093_deferredLaunchDeadlineTimer_);this.JSC$20093_deferredLaunchDeadlineTimer_=NaN;G_.prototype.disposeInternal.call(this)};var ke=function(H,U){rC.call(this);this.config_=U;this.JSC$20096_screenService_=H;this.JSC$20096_appId_=U.appId||"233637DE";this.JSC$20096_theme_=U.theme||"cl";this.disableDial_=U.disableCastApi||!1;this.forceMirroring_=U.forceMirroring||!1;this.JSC$20096_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.i9)(this.onReceiverAction_,this)};
_.R(ke,rC);
ke.prototype.init=function(H,U){chrome.cast.timeout.requestSession=3E4;var A=new chrome.cast.SessionRequest(this.JSC$20096_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.S("desktop_enable_cast_connect")&&(A.androidReceiverCompatible=!0);this.disableDial_||(A.dialRequest=new chrome.cast.DialRequest("YouTube"));var M=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;H=H||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var W=(0,_.i9)(this.onReceiverUpdated_,this);
A=new chrome.cast.ApiConfig(A,(0,_.i9)(this.onSessionEstablished_,this),W,M,H);A.customDialLaunchCallback=(0,_.i9)(this.onDialLaunchRequested_,this);chrome.cast.initialize(A,(0,_.i9)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),pXh(),this.JSC$20096_screenService_.subscribe("onlineScreenChange",(0,_.i9)(this.JSC$20098_onScreenChange_,this)),this.customReceivers_=Zoh(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.i9)(function(w){this.warn_("Failed to set initial custom receivers: "+
(0,_.uR)(w))},this)),this.publish("yt-remote-cast2-availability-change",fxh(this)),U(!0))},this),(0,_.i9)(function(w){this.warn_("Failed to initialize API: "+(0,_.uR)(w));
U(!1)},this))};
ke.prototype.setConnectedScreenStatus=function(H,U){y_("Setting connected screen ID: "+H+" -> "+U);if(this.JSC$20096_session_){var A=this.JSC$20096_session_.screen_;if(!H||A&&A.id!=H)y_("Unsetting old screen status: "+this.JSC$20096_session_.receiver_.friendlyName),Bt(this,null)}if(H&&U){if(!this.JSC$20096_session_){H=z_(this.JSC$20096_screenService_.getScreens(),H);if(!H){y_("setConnectedScreenStatus: Unknown screen.");return}if(H.idType=="shortLived"){y_("setConnectedScreenStatus: Screen with id type to be short lived.");
return}A=JEy(this,H);A||(y_("setConnectedScreenStatus: Connected receiver not custom..."),A=new chrome.cast.Receiver(H.uuid?H.uuid:H.id,H.name),A.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(A),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.i9)(function(M){this.warn_("Failed to set initial custom receivers: "+(0,_.uR)(M))},this)));
y_("setConnectedScreenStatus: new active receiver: "+A.friendlyName);Bt(this,new ct(this.JSC$20096_screenService_,A),!0)}this.JSC$20096_session_.setDisplayStatus(U)}else y_("setConnectedScreenStatus: no screen.")};
var JEy=function(H,U){return U?jJ(H.customReceivers_,function(A){return UDf(U,A.label)},H):null};
ke.prototype.setLaunchParams=function(H){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20096_session_?this.JSC$20096_session_.launchWithParams(H):this.warn_("Setting connection data without a session")};
ke.prototype.JSC$20098_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20096_session_?(this.JSC$20096_session_.stop(),Bt(this,null)):y_("Stopping non-existing session")};
ke.prototype.requestSession=function(){chrome.cast.requestSession((0,_.i9)(this.onSessionEstablished_,this),(0,_.i9)(this.onSessionRequestFailed_,this))};
ke.prototype.disposeInternal=function(){this.JSC$20096_screenService_.unsubscribe("onlineScreenChange",(0,_.i9)(this.JSC$20098_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Dc(_.tr("yt.mdx.remote.debug.handlers_")||[],n$5);_.zg(this.JSC$20096_session_);rC.prototype.disposeInternal.call(this)};
var y_=function(H){yH("Controller",H)};
ke.prototype.warn_=function(H){yH("Controller",H)};
var n$5=function(H){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(H)},fxh=function(H){return H.hasCastReceiver_||!!H.customReceivers_.length||!!H.JSC$20096_session_},Bt=function(H,U,A){U!=H.JSC$20096_session_&&(_.zg(H.JSC$20096_session_),(H.JSC$20096_session_=U)?(A?H.publish("yt-remote-cast2-receiver-resumed",U.receiver_):H.publish("yt-remote-cast2-receiver-selected",U.receiver_),U.subscribe("sessionScreen",(0,_.i9)(H.onSessionScreen_,H,U)),U.subscribe("sessionFailed",
function(){return KG8(H,U)}),U.screen_?H.publish("yt-remote-cast2-session-change",U.screen_):A&&H.JSC$20096_session_.launchWithParams(null)):H.publish("yt-remote-cast2-session-change",null))},KG8=function(H,U){H.JSC$20096_session_==U&&H.publish("yt-remote-cast2-session-failed")};
_.X=ke.prototype;_.X.onSessionScreen_=function(H,U){this.JSC$20096_session_==H&&(U||Bt(this,null),this.publish("yt-remote-cast2-session-change",U))};
_.X.onReceiverAction_=function(H,U){if(!this.isDisposed())if(H)switch(H.friendlyName=chrome.cast.unescape(H.friendlyName),y_("onReceiverAction_ "+H.label+" / "+H.friendlyName+"-- "+U),U){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20096_session_)if(this.JSC$20096_session_.receiver_.label!=H.label)y_("onReceiverAction_: Stopping active receiver: "+this.JSC$20096_session_.receiver_.friendlyName),this.JSC$20096_session_.stop();else{y_("onReceiverAction_: Casting to active receiver.");this.JSC$20096_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20096_session_.screen_);break}switch(H.receiverType){case chrome.cast.ReceiverType.CUSTOM:Bt(this,new ct(this.JSC$20096_screenService_,H));break;case chrome.cast.ReceiverType.DIAL:Bt(this,new tY(this.JSC$20096_screenService_,H,this.JSC$20096_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:Bt(this,new C4(this.JSC$20096_screenService_,H,this.config_));break;default:this.warn_("Unknown receiver type: "+H.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20096_session_&&
this.JSC$20096_session_.receiver_.label==H.label?this.JSC$20096_session_.stop():this.warn_("Stopping receiver w/o session: "+H.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.X.onDialLaunchRequested_=function(H){if(this.isDisposed())return Promise.reject(Error("tl"));var U=H.receiver;U.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+U.friendlyName),U.receiverType=chrome.cast.ReceiverType.DIAL);var A=this.JSC$20096_session_?this.JSC$20096_session_.receiver_:null;if(!A||A.label!=U.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+U.friendlyName),Promise.reject(Error("ul"));if(A&&A.label==U.label&&A.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20096_session_.screen_)return y_("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20096_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+A.receiverType+'" to "dial" for '+U.friendlyName);Bt(this,new tY(this.JSC$20096_screenService_,U,this.JSC$20096_theme_,this.config_))}U=this.JSC$20096_session_;U.launchData_=H;U.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(H=U.launchData_.extraData||{},A=H.screenId||null,M67(U)&&H.loungeToken?H.loungeTokenRefreshIntervalMs?H=dV5(U,{name:U.receiver_.friendlyName,screenId:H.screenId,loungeToken:H.loungeToken,dialId:U.launchData_.receiver.label,screenIdType:"shortLived"},H.loungeTokenRefreshIntervalMs):(_.za(Error("ql`"+JSON.stringify(H))),H=OoY(U,A)):H=OoY(U,A)):H=io5(U);return H};
_.X.onSessionEstablished_=function(H){var U=this;if(!this.isDisposed()&&!this.forceMirroring_){y_("New cast session ID: "+H.sessionId);var A=H.receiver;if(A.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20096_session_)if(A.receiverType==chrome.cast.ReceiverType.CAST)y_("Got resumed cast session before resumed mdx connection."),A.friendlyName=chrome.cast.unescape(A.friendlyName),Bt(this,new C4(this.JSC$20096_screenService_,A,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var M=this.JSC$20096_session_.receiver_,W=z_(this.JSC$20096_screenService_.getScreens(),M.label);W&&UDf(W,A.label)&&M.receiverType!=chrome.cast.ReceiverType.CAST&&A.receiverType==chrome.cast.ReceiverType.CAST&&(y_("onSessionEstablished_: manual to cast session change "+A.friendlyName),_.zg(this.JSC$20096_session_),this.JSC$20096_session_=new C4(this.JSC$20096_screenService_,A,this.config_),this.JSC$20096_session_.subscribe("sessionScreen",(0,_.i9)(this.onSessionScreen_,this,this.JSC$20096_session_)),
this.JSC$20096_session_.subscribe("sessionFailed",function(){return KG8(U,U.JSC$20096_session_)}),this.JSC$20096_session_.launchWithParams(null));
this.JSC$20096_session_.setCastSession(H)}}};
_.X.JSC$20098_getCastSession=function(){return this.JSC$20096_session_?this.JSC$20096_session_.JSC$20082_getCastSession():null};
_.X.onSessionRequestFailed_=function(H){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.uR)(H)),H.code!=chrome.cast.ErrorCode.CANCEL&&Bt(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.X.onReceiverUpdated_=function(H){y_("Receiver availability updated: "+H);if(!this.isDisposed()){var U=fxh(this);this.hasCastReceiver_=H==chrome.cast.ReceiverAvailability.AVAILABLE;fxh(this)!=U&&this.publish("yt-remote-cast2-availability-change",fxh(this))}};
var Zoh=function(H){var U=H.JSC$20096_screenService_.JSC$20078_getOnlineScreens(),A=H.JSC$20096_session_&&H.JSC$20096_session_.receiver_;H=_.OA(U,function(M){A&&UDf(M,A.label)&&(A=null);var W=M.uuid?M.uuid:M.id,w=JEy(this,M);w?(w.label=W,w.friendlyName=M.name):(w=new chrome.cast.Receiver(W,M.name),w.receiverType=chrome.cast.ReceiverType.CUSTOM);return w},H);
A&&(A.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(A=new chrome.cast.Receiver(A.label,A.friendlyName),A.receiverType=chrome.cast.ReceiverType.CUSTOM),H.push(A));return H};
ke.prototype.JSC$20098_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=Zoh(this),y_("Updating custom receivers: "+(0,_.uR)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.i9)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",fxh(this)))};
ke.prototype.setLaunchParams=ke.prototype.setLaunchParams;ke.prototype.setConnectedScreenStatus=ke.prototype.setConnectedScreenStatus;ke.prototype.stopSession=ke.prototype.JSC$20098_stopSession;ke.prototype.getCastSession=ke.prototype.JSC$20098_getCastSession;ke.prototype.requestSession=ke.prototype.requestSession;ke.prototype.init=ke.prototype.init;ke.prototype.dispose=ke.prototype.dispose;var oSh=_.NP(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),jSj=[],eDy=_.LF(oSh);var FGm=function(H){H.audioTrackId=null;H.trackData=null;H.playerState=-1;H.hasPrevious=!1;H.hasNext=!1;H.playerTime_=0;H.playerTimeAt_=_.x4();H.seekableStart_=0;H.seekableEnd_=0;H.duration_=0;H.loadedTime=0;H.liveIngestionTime_=NaN;H.isLive_=!1};
_.X=vT.prototype;
_.X.reset=function(H){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;H&&(this.index=H.index,this.listId=H.listId,this.videoId=H.videoId,this.playerState=H.playerState,this.volume=H.volume,this.muted=H.muted,this.audioTrackId=H.audioTrackId,this.trackData=H.trackData,this.hasPrevious=H.hasPrevious,this.hasNext=H.hasNext,this.playerTime_=H.playerTime,this.playerTimeAt_=H.playerTimeAt,this.seekableStart_=H.seekableStart,this.seekableEnd_=H.seekableEnd,this.duration_=H.duration,this.loadedTime=
H.loadedTime,this.liveIngestionTime_=H.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.X.stopPlayer=function(){this.index=-1;this.videoId="";FGm(this)};
_.X.isPlaying=function(){return this.playerState==1};
_.X.isBuffering=function(){return this.playerState==3};
_.X.isAdPlaying=function(){return this.playerState==1081};
var r8=function(H,U){H.playerTime_=U;H.playerTimeAt_=_.x4()},PWk=function(H){switch(H.playerState){case 1:case 1081:return(_.x4()-H.playerTimeAt_)/1E3+H.playerTime_;
case -1E3:return 0}return H.playerTime_};
vT.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.x4()-this.playerTimeAt_)/1E3:0):this.duration_};
var s9Y=function(H,U,A){var M=H.videoId;H.videoId=U;H.index=A;U!=M&&FGm(H)},nSh=function(H){var U={};
U.index=H.index;U.listId=H.listId;U.videoId=H.videoId;U.playerState=H.playerState;U.volume=H.volume;U.muted=H.muted;U.audioTrackId=H.audioTrackId;U.trackData=_.dG.unsafeClone(H.trackData);U.hasPrevious=H.hasPrevious;U.hasNext=H.hasNext;U.playerTime=H.playerTime_;U.playerTimeAt=H.playerTimeAt_;U.seekableStart=H.seekableStart_;U.seekableEnd=H.seekableEnd_;U.duration=H.duration_;U.loadedTime=H.loadedTime;U.liveIngestionTime=H.liveIngestionTime_;return U};
vT.prototype.clone=function(){return new vT(nSh(this))};var QH=function(H,U){rC.call(this);var A=this;this.state_=0;this.connection_=H;this.contextSubscriptions_=[];this.actionQueue_=new lty;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.i9)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.i9)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.i9)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.i9)(this.onCloudviewAvailabilityChange_,this);var M=0;H?(M=H.getProxyState(),
M!=3&&(H.subscribe("proxyStateChange",this.setState_,this),Nby(this))):M=3;M!=0&&(U?this.setState_(M):_.jy(function(){A.setState_(M)},0));
(H=HG8())&&Sbk(this,H);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.R(QH,rC);QH.prototype.getState=function(){return this.state_};
QH.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
QH.prototype.reconnect=function(){this.connection_.reconnect()};
var eh=function(H){return new vT(H.connection_.getPlayerContextData())};
_.X=QH.prototype;_.X.play=function(){DZ(this)?(this.castMedia_?this.castMedia_.play(null,_.UR,pV5(this,"play")):$L(this,"play"),LGk(this,1,PWk(eh(this))),this.publish("remotePlayerChange")):ls(this,this.play)};
_.X.pause=function(){DZ(this)?(this.castMedia_?this.castMedia_.pause(null,_.UR,pV5(this,"pause")):$L(this,"pause"),LGk(this,2,PWk(eh(this))),this.publish("remotePlayerChange")):ls(this,this.pause)};
_.X.seekTo=function(H){if(DZ(this)){if(this.castMedia_){var U=eh(this),A=new chrome.cast.media.SeekRequest;A.currentTime=H;U.isPlaying()||U.isBuffering()?A.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:A.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(A,_.UR,pV5(this,"seekTo",{newTime:H}))}else $L(this,"seekTo",{newTime:H});LGk(this,3,H);this.publish("remotePlayerChange")}else ls(this,_.vg(this.seekTo,H))};
_.X.stop=function(){if(DZ(this)){this.castMedia_?this.castMedia_.stop(null,_.UR,pV5(this,"stopVideo")):$L(this,"stopVideo");var H=eh(this);H.stopPlayer();G$(this,H);this.publish("remotePlayerChange")}else ls(this,this.stop)};
_.X.setVolume=function(H,U){if(DZ(this)){var A=eh(this);if(this.castSession_){if(A.volume!=H){var M=Math.round(H)/100;this.castSession_.setReceiverVolumeLevel(M,(0,_.i9)(function(){BT("set receiver volume: "+M)},this),(0,_.i9)(function(){this.warn_("failed to set receiver volume.")},this))}A.muted!=U&&this.castSession_.setReceiverMuted(U,(0,_.i9)(function(){BT("set receiver muted: "+U)},this),(0,_.i9)(function(){this.warn_("failed to set receiver muted.")},this))}else{var W={volume:H,
muted:U};A.volume!=-1&&(W.delta=H-A.volume);$L(this,"setVolume",W)}A.muted=U;A.volume=H;G$(this,A)}else ls(this,_.vg(this.setVolume,H,U))};
_.X.setAudioTrack=function(H,U){DZ(this)?(U=U.getLanguageInfo().getId(),$L(this,"setAudioTrack",{videoId:H,audioTrackId:U}),H=eh(this),H.audioTrackId=U,G$(this,H)):ls(this,_.vg(this.setAudioTrack,H,U))};
_.X.addVideo=function(H){DZ(this)?$L(this,"addVideo",{videoId:H}):ls(this,_.vg(this.addVideo,H))};
_.X.addPlaylist=function(H){DZ(this)?$L(this,"addVideos",{listId:H}):ls(this,_.vg(this.addPlaylist,H))};
_.X.addVideos=function(H){H.length==0?this.warn_("Ignore add videos request due to empty list"):DZ(this)?$L(this,"addVideos",{videoIds:H.join(",")}):ls(this,_.vg(this.addVideos,H))};
_.X.JSC$20108_removeVideo=function(H){DZ(this)?$L(this,"removeVideo",{videoId:H}):ls(this,_.vg(this.JSC$20108_removeVideo,H))};
_.X.JSC$20108_insertVideo=function(H){DZ(this)?$L(this,"insertVideo",{videoId:H}):ls(this,_.vg(this.JSC$20108_insertVideo,H))};
_.X.playVideo=function(H,U,A,M,W,w,d){M=M===void 0?null:M;W=W===void 0?null:W;w=w===void 0?null:w;d=d===void 0?null:d;var O=eh(this),f={videoId:H};A!==void 0&&(f.currentIndex=A);s9Y(O,H,A||0);U!==void 0&&(r8(O,U),f.currentTime=U);M&&(f.listId=M);W&&(f.playerParams=W);w&&(f.clickTrackingParams=w);d&&(f.locationInfo=(0,_.uR)(d));$L(this,"setPlaylist",f);M||G$(this,O)};
_.X.nextVideo=function(H,U){if(DZ(this)){if(H&&U){var A=eh(this);s9Y(A,H,U);G$(this,A)}$L(this,"next")}else ls(this,_.vg(this.nextVideo,H,U))};
_.X.clearPlaylist=function(){if(DZ(this)){$L(this,"clearPlaylist");var H=eh(this);H.reset();G$(this,H);this.publish("remotePlayerChange")}else ls(this,this.clearPlaylist)};
_.X.dispose=function(){if(this.state_!=3){var H=this.state_;this.state_=3;this.publish("proxyStateChange",H,this.state_)}rC.prototype.dispose.call(this)};
_.X.disposeInternal=function(){Rvj(this);this.connection_=null;this.actionQueue_.clear();Sbk(this,null);rC.prototype.disposeInternal.call(this)};
var Nby=function(H){_.yW("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(U){this.contextSubscriptions_.push(this.connection_.subscribe(U,_.vg(this.onProxyEvent_,U),this))},H)},Rvj=function(H){_.yW(H.contextSubscriptions_,function(U){this.connection_.unsubscribeByKey(U)},H);
H.contextSubscriptions_.length=0},DZ=function(H){return H.getState()==1},ls=function(H,U){H.actionQueue_.getCount()<50&&H.actionQueue_.enqueue(U)},LGk=function(H,U,A){var M=eh(H);
r8(M,A);M.playerState!=-1E3&&(M.playerState=U);G$(H,M)},$L=function(H,U,A){H.connection_.sendMessage(U,A)},G$=function(H,U){Rvj(H);
H.connection_.setPlayerContextData(nSh(U));Nby(H)};
QH.prototype.setState_=function(H){if((H!=this.state_||H==2)&&this.state_!=3&&H!=0){var U=this.state_;this.state_=H;this.publish("proxyStateChange",U,H);if(H==1)for(;!this.actionQueue_.isEmpty();)H=this.actionQueue_,YF7(H),H.front_.pop().apply(this);else H==3&&this.dispose()}};
QH.prototype.onProxyEvent_=function(H,U){this.publish(H,U)};
var Sbk=function(H,U){H.castSession_&&(H.castSession_.removeUpdateListener(H.boundCastStatusListener_),H.castSession_.removeMediaListener(H.boundCastMediaListener_),H.onCastMediaChange_(null));H.castSession_=U;if(H.castSession_&&(BT("Setting cast session: "+H.castSession_.sessionId),H.castSession_.addUpdateListener(H.boundCastStatusListener_),H.castSession_.addMediaListener(H.boundCastMediaListener_),H.castSession_.media.length))H.onCastMediaChange_(H.castSession_.media[0])};
QH.prototype.onCastStatusUpdate_=function(H){if(!H)this.onCastMediaChange_(null),Sbk(this,null);else if(this.castSession_.receiver.volume){H=this.castSession_.receiver.volume;var U=eh(this),A=Math.round(100*H.level||0);if(U.volume!=A||U.muted!=H.muted)BT("Cast volume update: "+H.level+(H.muted?" muted":"")),U.volume=A,U.muted=!!H.muted,G$(this,U)}};
QH.prototype.onCastMediaChange_=function(H){BT("Cast media: "+!!H);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=H)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),ESp(this),this.publish("remotePlayerChange")};
var ESp=function(H){var U=H.castMedia_.media,A=H.castMedia_.customData;if(U&&A){var M=eh(H);U.contentId!=M.videoId&&BT("Cast changing video to: "+U.contentId);M.videoId=U.contentId;M.playerState=A.playerState;r8(M,H.castMedia_.getEstimatedTime());G$(H,M)}else BT("No cast media video. Ignoring state update.")};
QH.prototype.onCastMediaUpdate_=function(H){if(H)ESp(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
QH.prototype.onCloudviewAvailabilityChange_=function(){var H=HG8();H&&Sbk(this,H)};
QH.prototype.warn_=function(H){yH("CP",H)};
var pV5=function(H,U,A){return(0,_.i9)(function(M){this.warn_("Failed to "+U+" with cast v2 channel. Error code: "+M.code);M.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+U+" using MDx browser channel."),$L(this,U,A))},H)};var VH=function(H,U,A,M){M=M===void 0?!1:M;rC.call(this);var W=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$20113_http_=H;this.enableConnectWithInitialState_=M;this.listeners_.push(_.rB(window,"beforeunload",function(){W.JSC$20116_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new vT;this.currentScreenId_=U.id;this.currentScreenIdType_=U.idType;this.channelService=sS$(this.JSC$20113_http_,A,this.JSC$20116_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){mV5(W)});
this.channelService.listen("channelClosed",function(){YL("Channel closed");isNaN(W.connectTimerId_)?fdy(!0):fdy();W.dispose()});
this.channelService.listen("channelError",function(w){fdy();isNaN(W.getReconnectTimeout_())?(w==1&&W.currentScreenIdType_=="shortLived"&&W.publish("browserChannelAuthError",w),YL("Channel error: "+w+" without reconnection"),W.dispose()):(W.reconnecting_=!0,YL("Channel error: "+w+" with reconnection in "+W.getReconnectTimeout_()+" ms"),gS$(W,2))});
this.channelService.listen("channelMessage",function(w){axp(W,w)});
this.channelService.setLoungeToken(U.token);this.subscribe("remoteQueueChange",function(){var w=W.playerContext_.videoId;WdB()&&_.V3("yt-remote-session-video-id",w)})};
_.R(VH,rC);
VH.prototype.connect=function(H,U){if(U){var A=U.listId,M=U.videoId,W=U.videoIds,w=U.playerParams,d=U.clickTrackingParams,O=U.index,f={videoId:M},J=U.currentTime,F=U.locationInfo;U=U.loopMode;J!==void 0&&(f.currentTime=J<=5?0:J);w&&(f.playerParams=w);F&&(f.locationInfo=F);d&&(f.clickTrackingParams=d);A&&(f.listId=A);W&&W.length>0&&(f.videoIds=W.join(","));O!==void 0&&(f.currentIndex=O);this.enableConnectWithInitialState_&&(f.loopMode=U||"LOOP_MODE_OFF");A&&(this.playerContext_.listId=A);this.playerContext_.videoId=
M;this.playerContext_.index=O||0;this.playerContext_.state=3;r8(this.playerContext_,J);this.autoplayMode_="UNSUPPORTED";A=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";YL("Connecting with "+A+" and params: "+(0,_.uR)(f));this.channelService.connect({method:A,params:(0,_.uR)(f)},H,dDy())}else YL("Connecting without params"),this.channelService.connect({},H,dDy());xVB(this)};
VH.prototype.setLoungeToken=function(H){this.channelService.setLoungeToken(H)};
VH.prototype.dispose=function(){this.isDisposed()||(_.eC("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),gS$(this,3));rC.prototype.dispose.call(this)};
VH.prototype.disposeInternal=function(){zvf(this);CWB(this);t6Y(this);_.QW(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.QW(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.tr_(this.listeners_);this.listeners_.length=0;this.channelService.dispose();rC.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var cEh=function(H){return jJ(H.connectedDevices_,function(U){return U.type=="LOUNGE_SCREEN"})},YL=function(H){yH("conn",H)},gS$=function(H,U){H.publish("proxyStateChange",U)},xVB=function(H){H.connectTimerId_=_.jy(function(){YL("Connecting timeout");
H.JSC$20116_disconnect_(1)},2E4)},zvf=function(H){_.QW(H.connectTimerId_);
H.connectTimerId_=NaN},t6Y=function(H){_.QW(H.reconnectedCheckScreenTimeout_);
H.reconnectedCheckScreenTimeout_=NaN},Bbh=function(H){CWB(H);
H.playingSyncTimerId_=_.jy(function(){yEf(H,"getNowPlaying")},2E4)},CWB=function(H){_.QW(H.playingSyncTimerId_);
H.playingSyncTimerId_=NaN},mV5=function(H){YL("Channel opened");
H.reconnecting_&&(H.reconnecting_=!1,t6Y(H),H.reconnectedCheckScreenTimeout_=_.jy(function(){YL("Timing out waiting for a screen.");H.JSC$20116_disconnect_(1)},15E3))},ev8=function(H,U){var A=null;
if(U){var M=cEh(H);M&&(A={clientName:M.clientName,deviceMake:M.brand,deviceModel:M.model,osVersion:M.osVersion})}_.eC("yt.mdx.remote.remoteClient_",A);U&&(zvf(H),t6Y(H));A=H.channelService.isChannelOpened()&&isNaN(H.connectTimerId_);U==A?U&&(gS$(H,1),yEf(H,"getSubtitlesTrack")):U?(H.getOtherConnectedRemoteId_()&&H.playerContext_.reset(),gS$(H,1),yEf(H,"getNowPlaying"),rE5(H)):H.JSC$20116_disconnect_(1)},DVX=function(H,U){var A=U.params.videoId;
delete U.params.videoId;A==H.playerContext_.videoId&&(_.dG.isEmpty(U.params)?H.playerContext_.trackData=null:H.playerContext_.trackData=U.params,H.publish("remotePlayerChange"))},$V5=function(H,U,A){var M=U.params.videoId||U.params.video_id,W=parseInt(U.params.currentIndex,10);
H.playerContext_.listId=U.params.listId||H.playerContext_.listId;s9Y(H.playerContext_,M,W);H.publish("remoteQueueChange",A)},lxp=function(H,U){U.params=U.params||{};
$V5(H,U,"NOW_PLAYING_MAY_CHANGE");H.onStateChange_(U);H.publish("autoplayDismissed")};
VH.prototype.onStateChange_=function(H){var U=parseInt(H.params.currentTime||H.params.current_time,10);r8(this.playerContext_,isNaN(U)?0:U);U=parseInt(H.params.state,10);U=isNaN(U)?-1:U;U==-1&&this.playerContext_.playerState==-1E3&&(U=-1E3);this.playerContext_.playerState=U;U=Number(H.params.loadedTime);this.playerContext_.loadedTime=isNaN(U)?0:U;U=Number(H.params.duration);this.playerContext_.duration_=isNaN(U)?0:U;U=this.playerContext_;var A=Number(H.params.liveIngestionTime);U.liveIngestionTime_=
A;U.isLive_=isNaN(A)?!1:!0;U=this.playerContext_;A=Number(H.params.seekableStartTime);H=Number(H.params.seekableEndTime);U.seekableStart_=isNaN(A)?0:A;U.seekableEnd_=isNaN(H)?0:H;this.playerContext_.playerState==1?Bbh(this):CWB(this);this.publish("remotePlayerChange")};
VH.prototype.onAdStateChange_=function(H){if(this.playerContext_.playerState!=-1E3){var U=1085;switch(parseInt(H.params.adState,10)){case 1:U=1081;break;case 2:U=1084;break;case 0:U=1083}this.playerContext_.playerState=U;H=parseInt(H.params.currentTime,10);r8(this.playerContext_,isNaN(H)?0:H);this.publish("remotePlayerChange")}};
var GT5=function(H,U){var A=U.params.muted=="true";H.playerContext_.volume=parseInt(U.params.volume,10);H.playerContext_.muted=A;H.publish("remotePlayerChange")},Ybf=function(H,U){H.autoplayVideoId_=U.params.videoId;
H.publish("nowAutoplaying",parseInt(U.params.timeout,10))},qbY=function(H,U){H.autoplayVideoId_=U.params.videoId||null;
H.publish("autoplayUpNext",H.autoplayVideoId_)},hvh=function(H,U){H.autoplayMode_=U.params.autoplayMode;
H.publish("autoplayModeChange",H.autoplayMode_);H.autoplayMode_=="DISABLED"&&H.publish("autoplayDismissed")},kTy=function(H,U){var A=U.params.hasNext=="true";
H.playerContext_.hasPrevious=U.params.hasPrevious=="true";H.playerContext_.hasNext=A;H.publish("previousNextChange")};
VH.prototype.isCapabilitySupportedOnConnectedDevices_=function(H){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var U=_.b(this.connectedDevices_),A=U.next();!A.done;A=U.next())if(!A.value.capabilities.has(H))return!1;return!0};
var axp=function(H,U){U=U.message;U.params?YL("Received: action="+U.action+", params="+(0,_.uR)(U.params)):YL("Received: action="+U.action+" {}");switch(U.action){case "loungeStatus":U=_.UH(U.params.devices);H.connectedDevices_=_.OA(U,function(M){return new m2(M)});
U=!!jJ(H.connectedDevices_,function(M){return M.type=="LOUNGE_SCREEN"});
ev8(H,U);U=H.isCapabilitySupportedOnConnectedDevices_("mlm");H.publish("multiStateLoopEnabled",U);break;case "loungeScreenDisconnected":iK7(H.connectedDevices_,function(M){return M.type=="LOUNGE_SCREEN"});
ev8(H,!1);break;case "remoteConnected":var A=new m2(_.UH(U.params.device));jJ(H.connectedDevices_,function(M){return M.equals(A)})||_.ac_(H.connectedDevices_,A);
break;case "remoteDisconnected":A=new m2(_.UH(U.params.device));iK7(H.connectedDevices_,function(M){return M.equals(A)});
break;case "gracefulDisconnect":break;case "playlistModified":$V5(H,U,"QUEUE_MODIFIED");break;case "nowPlaying":lxp(H,U);break;case "onStateChange":H.onStateChange_(U);break;case "onAdStateChange":H.onAdStateChange_(U);break;case "onVolumeChanged":GT5(H,U);break;case "onSubtitlesTrackChanged":DVX(H,U);break;case "nowAutoplaying":Ybf(H,U);break;case "autoplayDismissed":H.publish("autoplayDismissed");break;case "autoplayUpNext":qbY(H,U);break;case "onAutoplayModeChanged":hvh(H,U);break;case "onHasPreviousNextChanged":kTy(H,
U);break;case "requestAssistedSignIn":H.publish("assistedSignInRequested",U.params.authCode);break;case "onLoopModeChanged":H.publish("loopModeChange",U.params.loopMode);break;default:YL("Unrecognized action: "+U.action)}};
_.X=VH.prototype;_.X.getProxyState_=function(){var H=3;this.isDisposed()||(H=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(H=1):H=2);return H};
_.X.JSC$20116_disconnect_=function(H){YL("Disconnecting with "+H);_.eC("yt.mdx.remote.remoteClient_",null);zvf(this);this.publish("beforeDisconnect",H);H==1&&fdy();this.channelService.disconnect(H);this.dispose()};
_.X.getPlayerContextData_=function(){var H=this.playerContext_;this.clientVideoId_&&(H=this.playerContext_.clone(),s9Y(H,this.clientVideoId_,H.index));return nSh(H)};
_.X.setPlayerContextData_=function(H){var U=this,A=new vT(H);A.videoId&&A.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=A.videoId,_.QW(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.jy(function(){if(U.clientVideoId_){var W=U.clientVideoId_;U.clientVideoId_=null;U.playerContext_.videoId!=W&&yEf(U,"getNowPlaying")}},5E3));
var M=[];this.playerContext_.listId==A.listId&&this.playerContext_.videoId==A.videoId&&this.playerContext_.index==A.index||M.push("remoteQueueChange");this.playerContext_.playerState==A.playerState&&this.playerContext_.volume==A.volume&&this.playerContext_.muted==A.muted&&PWk(this.playerContext_)==PWk(A)&&(0,_.uR)(this.playerContext_.trackData)==(0,_.uR)(A.trackData)||M.push("remotePlayerChange");this.playerContext_.reset(H);_.yW(M,function(W){this.publish(W)},this)};
_.X.getOtherConnectedRemoteId_=function(){var H=this.channelService.getDeviceId(),U=jJ(this.connectedDevices_,function(A){return A.type=="REMOTE_CONTROL"&&A.id!=H});
return U?U.id:""};
_.X.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.X.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.X.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.X.JSC$20116_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var rE5=function(H){_.QW(H.idleDisconnectTimerId_);H.idleDisconnectTimerId_=_.jy(function(){H.JSC$20116_disconnect_(1)},864E5)},yEf=function(H,U,A){A?YL("Sending: action="+U+", params="+(0,_.uR)(A)):YL("Sending: action="+U);
H.channelService.sendMessage(U,A)};
VH.prototype.sendMessageWithUserAction_=function(H,U){yEf(this,H,U);rE5(this)};
VH.prototype.JSC$20116_getXsrfToken_=function(){var H=_.MK.get("SAPISID","")||_.MK.get("__Secure-1PAPISID",void 0)||"",U=_.MK.get("__Secure-3PAPISID","")||"";if(!H&&!U)return"";H=_.I_(_.wO(H),2);U=_.I_(_.wO(U),2);return _.I_(_.wO(","+H+","+U),2)};
VH.prototype.subscribe=VH.prototype.subscribe;VH.prototype.unsubscribeByKey=VH.prototype.unsubscribeByKey;VH.prototype.getProxyState=VH.prototype.getProxyState_;VH.prototype.disconnect=VH.prototype.JSC$20116_disconnect_;VH.prototype.getPlayerContextData=VH.prototype.getPlayerContextData_;VH.prototype.setPlayerContextData=VH.prototype.setPlayerContextData_;VH.prototype.getOtherConnectedRemoteId=VH.prototype.getOtherConnectedRemoteId_;VH.prototype.getReconnectTimeout=VH.prototype.getReconnectTimeout_;
VH.prototype.getAutoplayMode=VH.prototype.getAutoplayMode_;VH.prototype.getAutoplayVideoId=VH.prototype.getAutoplayVideoId_;VH.prototype.reconnect=VH.prototype.JSC$20116_reconnect_;VH.prototype.sendMessage=VH.prototype.sendMessageWithUserAction_;VH.prototype.getXsrfToken=VH.prototype.JSC$20116_getXsrfToken_;VH.prototype.isCapabilitySupportedOnConnectedDevices=VH.prototype.isCapabilitySupportedOnConnectedDevices_;var L7B=function(H){eH.call(this,"ScreenServiceProxy");this.instance_=H;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.i9)(this.JSC$20119_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.i9)(this.onOnlineScreenChange_,this)))};
_.R(L7B,eH);_.X=L7B.prototype;_.X.getScreens=function(H){return this.instance_.$_gs(H)};
_.X.contains=function(H){return!!this.instance_.$_c(H)};
_.X.get=function(H){return this.instance_.$_g(H)};
_.X.start=function(){this.instance_.$_st()};
_.X.add=function(H,U,A){this.instance_.$_a(H,U,A)};
_.X.remove=function(H,U,A){this.instance_.$_r(H,U,A)};
_.X.updateName=function(H,U,A,M){this.instance_.$_un(H,U,A,M)};
_.X.disposeInternal=function(){for(var H=this.subscriptionKeys_.length,U=0;U<H;++U)this.instance_.$_ubk(this.subscriptionKeys_[U]);this.subscriptionKeys_.length=0;this.instance_=null;eH.prototype.disposeInternal.call(this)};
_.X.JSC$20119_onScreenChange_=function(){this.publish("screenChange")};
_.X.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
lG.prototype.$_st=lG.prototype.start;lG.prototype.$_gspc=lG.prototype.JSC$20078_getScreenByPairingCode;lG.prototype.$_gsppc=lG.prototype.JSC$20078_getScreenByPollingPairingCode;lG.prototype.$_c=lG.prototype.contains;lG.prototype.$_g=lG.prototype.get;lG.prototype.$_a=lG.prototype.add;lG.prototype.$_un=lG.prototype.updateName;lG.prototype.$_r=lG.prototype.remove;lG.prototype.$_gs=lG.prototype.getScreens;lG.prototype.$_gos=lG.prototype.JSC$20078_getOnlineScreens;lG.prototype.$_s=lG.prototype.subscribe;
lG.prototype.$_ubk=lG.prototype.unsubscribeByKey;var Pj7=null,E38=!1,W77=null,T_=null,p$7=null,jH=[];var vS8=new _.Sx("yt-menu"),TbX=function(){},Ixf=function(H,U,A){H=U=="right-click"?A.rightClickMenuPopupHint:A.menuPopupHint;
if(!(j9Y(U)>10))return U=U||"default",vS8.set(U+"-impression",j9Y(U)+1),H},j9Y=function(H){return parseInt(vS8.get((H||"default")+"-impression")||0,10)};
_.aH(TbX);var Q9y=function(){this.contexts_=new WeakMap;this.JSC$20125_networkService_=this.activeContext_=null},V6h=function(H,U,A){var M=H.contexts_.get(U);
M||(M=new VfB(H.JSC$20125_networkService_),H.contexts_.set(U,M));H.activeContext_=M;A&&H.activeContext_.reset();H.activeContext_.start();return H.activeContext_};var Hz=_.ul_(function(H){var U=_.Q9("DIV");H&&(U.className=H);U.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";H=_.Q9("DIV");_.eFw(H,"200px","200px");U.appendChild(H);document.body.appendChild(U);H=U.offsetWidth-U.clientWidth;_.U5(U);return H});var Al=_.hr("kevlar_watch_page_horizontal_margin",24),cp8=_.hr("kevlar_watch_page_columns_top_padding",24),g37=426+Al*2,UL=_.hr("kevlar_watch_two_column_width_threshold",1E3),xeh=Al*2,zyk=_.hr("kevlar_watch_secondary_width",402),trY=_.hr("kevlar_watch_max_player_width",1280),ypy=_.hr("kevlar_watch_flexy_metadata_height",136),Cjf=xeh+310+Al,aNj=xeh+360+Al;var q8=function(){};
q8.prototype.enqueue=function(){var H=this,U;return _.u(function(A){if(H.isCounterfactual())return(U=H.getCounterfactualData())&&H.shouldLogCounterfactualImpression()&&H.sendImpressionEndpoints(U),A.return();H.doEnqueue();_.DO(A)})};
q8.prototype.sendImpressionEndpoints=function(H){_.a1.getInstance().triggerOptionalAction("yt-service-request",{},H[0])};var hY=function(H,U){this.renderer=H;this.page=U};
_.R(hY,q8);hY.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
hY.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
hY.prototype.shouldLogCounterfactualImpression=function(){return!0};
hY.prototype.doEnqueue=function(){var H=_.py(this.page);H&&H.pause();this.renderer.impressionCommand&&_.a1.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.dg(_.a1.getInstance(),[this.renderer.promoCommand],this.page)};var Hwy=function(H,U){this.renderer=H;this.resolver=_.oL();this.JSC$20137_enforcementCounter=new _.TiK;U?this.JSC$20137_playerManager=_.py(U):this.JSC$20137_playerManager=null;_.$O(1,!0)};
_.R(Hwy,q8);_.X=Hwy.prototype;_.X.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var H=[];this.renderer.impressionEndpoints.forEach(function(U){(U=_.ij(U))&&H.push(U)});
return H}};
_.X.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.X.shouldLogCounterfactualImpression=function(){var H=_.t_E();H?(this.JSC$20137_enforcementCounter.increment("POPUP"),_.$O(3)):_.$O(2);return H};
_.X.cancel=function(){this.resolver.promise.cancel()};
_.X.doEnqueue=function(){var H=this;_.t_E()?(this.JSC$20137_enforcementCounter.increment("POPUP"),_.$O(3),U6Y(this)):this.JSC$20137_playerManager?(this.resolver.promise.then(function(){U6Y(H)}),AZj(this.resolver,this.JSC$20137_playerManager)):_.$O(2)};
var AZj=function(H,U){var A=_.oL();U.getPlayerPromise().then(function(M){A.resolve(M)});
A.promise.then(function(M){M.addEventListener("onAbnormalityDetected",H.resolve);_.bR(H.promise,function(){M.removeEventListener("onAbnormalityDetected",H.resolve)})});
H.promise.thenCatch(function(){A.promise.cancel()})},U6Y=function(H){_.$O(3);
var U={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:H.renderer}};U=_.a1.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:U},{});Promise.all(U).then(function(){MzB();H.JSC$20137_playerManager&&H.JSC$20137_playerManager.pause()})},MzB=function(){LzX(function(H,U){CUf(H,U);
H===0?_.$O(7):_.$O(4)})};var Wn$=function(H,U){this.renderer=H;this.page=U;this.resolver=_.oL()};
_.R(Wn$,q8);_.X=Wn$.prototype;_.X.cancel=function(){this.resolver.promise.cancel()};
_.X.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.X.isCounterfactual=function(){return!this.renderer.isVisible};
_.X.shouldLogCounterfactualImpression=function(){return!0};
_.X.doEnqueue=function(){var H=this;this.resolver.promise.then(function(){var A={popup:{mealbarPromoRenderer:H.renderer},popupType:"MEALBAR"};_.a1.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:A},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var U=_.py(this.page);U&&w9p(this.resolver,U)}break;default:this.resolver.resolve()}};
var w9p=function(H,U){var A=_.oL();U.getPlayerPromise().then(function(M){A.resolve(M)});
A.promise.then(function(M){M.addEventListener("onAdEnd",H.resolve);_.bR(H.promise,function(){M.removeEventListener("onAdEnd",H.resolve)})});
H.promise.thenCatch(function(){A.promise.cancel()})};var X97=function(H,U){this.renderer=H;this.page=U};
_.R(X97,q8);_.X=X97.prototype;_.X.cancel=function(){this.JSC$20145_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20145_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20145_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.X.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.X.isCounterfactual=function(){return!this.renderer.isVisible};
_.X.shouldLogCounterfactualImpression=function(){return!0};
_.X.doEnqueue=function(){var H=this,U,A;((U=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(A=U.playbackUpsellDialogTriggerConditionData)==null?void 0:A.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20145_downloadedVideosCountSelectorUnsubscriber=_.It(_.Lq(),sg$,function(M,W){M>W&&(iw5(H),H.cancel())}):iw5(this)};
var iw5=function(H){var U={popup:{upsellDialogRenderer:H.renderer},popupType:"MODAL"};_.a1.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:U},{});(H=_.py(H.page))&&H.pause()};var kL={},bwY=(kL.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",kL.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",kL.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",kL.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",kL.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",kL.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",kL.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",kL),d6h=function(H,U){this.renderer=H;this.targetManager=
U};
_.R(d6h,q8);_.X=d6h.prototype;_.X.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20152_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20152_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20152_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.X.getCounterfactualData=function(){if(this.isCounterfactual()){var H;return(H=this.renderer.promoConfig)==null?void 0:H.impressionEndpoints}};
_.X.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.X.shouldLogCounterfactualImpression=function(){return!0};
_.X.doEnqueue=function(){var H=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20152_downloadedVideosCountSelectorUnsubscriber=_.It(_.Lq(),sg$,function(U,A){H.renderer.targetId&&U>A&&(q0y(H.targetManager,H.renderer.targetId,Owh(H)),H.cancel())});
break;default:q0y(this.targetManager,this.renderer.targetId,Owh(this))}};
var Owh=function(H){var U;if((U=H.renderer.suggestedPosition)==null?0:U.type)var A=bwY[H.renderer.suggestedPosition.type];A||(A="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:H.renderer},popupType:"HINT",position:A}}};var uyX=function(){this.previousPage=null},Zwy;
uyX.prototype.registerPromoCommand=function(H,U){fwp(this,void 0,void 0,_.p(H.roadblock,sVj),void 0,void 0,U)};
var fwp=function(H,U,A,M,W,w,d){H.previousPage!==d&&H.pendingTooltipPromo&&H.pendingTooltipPromo.cancel();H.previousPage=d;W?(H.pendingEnforcementPromo&&H.pendingEnforcementPromo.cancel(),H.pendingEnforcementPromo=new Hwy(W,d),H.pendingEnforcementPromo.enqueue()):w?(H.pendingCommandWrapperPromo=new hY(w,d),H.pendingCommandWrapperPromo.enqueue()):M?(H.pendingRoadblockPromo&&H.pendingRoadblockPromo.cancel(),H.pendingRoadblockPromo=new X97(M,d),H.pendingRoadblockPromo.enqueue()):U?(H.pendingMealbarPromo&&
H.pendingMealbarPromo.cancel(),H.pendingMealbarPromo=new Wn$(U,d),H.pendingMealbarPromo.enqueue()):A&&(H.pendingTooltipPromo&&H.pendingTooltipPromo.cancel(),H.pendingTooltipPromo=new d6h(A,_.q5()),H.pendingTooltipPromo.enqueue())},JZh=function(){Zwy||(Zwy=new uyX);
return Zwy};var Kn8=function(){this.horizontal=!1},odj=function(H,U){H.horizontal=U};
Kn8.prototype.position=function(H,U,A,M){M=M===void 0?1:M;H=this.delta(H)*M+U;M=Math.max(U,A);return H>=Math.min(U,A)&&H<=M?H:A};
Kn8.prototype.axis=function(H){H=this.direction(H);return H==="up"||H==="down"?"Y":"X"};var vt=function(H,U,A){U=U===void 0?_.vd():U;this.target=H;this.manager=U;this.touchAction=A;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
vt.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(_.vI(this.events)));for(var H=_.b(this.events),U=H.next();!U.done;U=H.next())this.listen(U.value)}};
vt.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.vI(this.events)));for(var H=_.b(this.events),U=H.next();!U.done;U=H.next())this.unlisten(U.value)}};
vt.prototype.listen=function(H){this.eventMap[H]&&this.target.addEventListener(H,this.eventMap[H])};
vt.prototype.unlisten=function(H){this.eventMap[H]&&this.target.removeEventListener(H,this.eventMap[H])};var T$=function(){Kn8.apply(this,arguments)};
_.R(T$,Kn8);T$.prototype.direction=function(H){var U=H.detail;H=U.deltaY;U=U.deltaX;return H&&!this.horizontal?H>0?"down":"up":U&&this.horizontal?U>0?"right":"left":"none"};
T$.prototype.distance=function(H){return Math.abs(this.delta(H))};
T$.prototype.delta=function(H){var U=this.direction(H),A=H.detail;H=A.deltaX;A=A.deltaY;return U==="up"||U==="down"?A||0:H||0};
T$.prototype.velocity=function(H){var U=this.direction(H),A=H.detail;H=A.velocityX;A=A.velocityY;return Math.abs(U==="up"||U==="down"?A||0:H||0)};var jh=function(H,U,A,M,W,w){W=W===void 0?new T$:W;w=w===void 0?_.vd():w;vt.call(this,U,w,M);var d=this;this.element=H;this.target=U;this.config=A;this.input=W;this.manager=w;this.events=["panstart","panmove","panend"];this.onPanStart=function(){d.config.draggingClass&&d.element.classList.add(d.config.draggingClass);d.config.startAction&&d.config.startAction()};
this.onPanMove=function(O){var f=Fnj(d,O);if(f){d.move(O,f);f.fade&&d.fade(O,f);var J=d.input.direction(O);f.moveAction&&f.moveAction(PTm(d,O,f),J)}};
this.onPanEnd=function(O){var f,J,F,P,n,N;return _.u(function(L){if(L.nextAddress==1){d.animationRequestId&&cancelAnimationFrame(d.animationRequestId);d.animationRequestId=void 0;f=Fnj(d,O);if(!f)return L.return();J=f;F=J.triggerAction;P=J.fade;n=J.disableFinish;N=J.translateBack;var m=d.input.velocity(O),z=d.input.distance(O),c=d.threshold(f);return m>.3&&z>10||z>c?n?L.jumpTo(6):P?L.yield(s48(d,O),6):L.yield(nd5(d,O,f),6):N?L.yield(d.translateBack(O),3):L.jumpTo(3)}L.nextAddress!=3&&F&&F();d.config.draggingClass&&
d.element.classList.remove(d.config.draggingClass);d.reset();_.DO(L)})};
H=Object.keys(A.triggers);this.directions=new Set(H);odj(this.input,this.directions.has("right")||this.directions.has("left"))};
_.R(jh,vt);jh.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var Fnj=function(H,U){U=H.input.direction(U);return H.config.triggers[U]};
jh.prototype.move=function(H,U){var A=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var M=A.input.axis(H),W=A.input.position(H,A.config.startPosition,U.endPosition,U.moveRatio||1);A.element.style.transform="translate"+M+"("+W+"px)";A.animationRequestId=void 0}))};
var PTm=function(H,U,A){var M=A.moveRatio||1;A=Math.abs(H.config.startPosition-A.endPosition);return Math.min(H.input.distance(U)*M,A)/A};
jh.prototype.fade=function(H,U){var A=U.endOpacity;H=PTm(this,H,U);H>0&&(this.element.style.opacity=""+(((A||0)-1)*H+1))};
jh.prototype.threshold=function(H){return H.threshold?H.threshold:Math.abs(H.endPosition-this.config.startPosition)/3};
var nd5=function(H,U,A){var M,W,w,d,O,f,J;return _.u(function(F){if(F.nextAddress==1)return M=H.input.delta(U)+H.config.startPosition,W=H.input.axis(U),w=A,d=w.endPosition,O=w.transitionEndPosition,J=(f=O)!=null?f:d,F.yield(H.element.animate([{transform:"translate"+W+"("+M+"px)"},{transform:"translate"+W+"("+J+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);H.element.style.transform="translate"+W+"("+J+"px)";_.DO(F)})};
jh.prototype.translateBack=function(H){var U=this,A,M;return _.u(function(W){if(W.nextAddress==1){if(!U.element.style.transform)return W.return();A=U.input.axis(H);M=U.config.startPosition;return W.yield(U.element.animate([{transform:U.element.style.transform},{transform:"translate"+A+"("+M+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}U.element.style.transform="translate"+A+"("+M+"px)";_.DO(W)})};
var s48=function(H,U){var A,M,W,w;return _.u(function(d){if(d.nextAddress==1)return A=H.input.delta(U)+H.config.startPosition,M=H.input.axis(U),W=A+70,w=H.element.style.opacity===""?1:H.element.style.opacity,d.yield(H.element.animate([{transform:"translate"+M+"("+A+"px)",opacity:w},{transform:"translate"+M+"("+W+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);H.element.style.transform="translate"+M+"("+W+"px)";H.element.style.opacity="0";_.DO(d)})};var GkX=new _.Sx("ratelimit");var Nc5=function(H,U){this.playerProvider_=H;this.actionSenderElement_=U;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
Nc5.prototype.reset=function(){SZ$(this);this.isUserPredictedAbsent_=!1};
var SZ$=function(H,U){!H.youThereData_||H.showWarningJob_||U!==void 0&&U||(Mc("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.XK(),H.youThereData_,H.clientPlaybackNonce_),_.P1());_.Fl.cancelJob(H.showWarningJob_);H.showWarningJob_=0;_.Fl.cancelJob(H.showBlockingWarningJob_);H.showBlockingWarningJob_=0;_.Fl.cancelJob(H.pausePlaybackJob_);H.pausePlaybackJob_=0;H.youThereData_=null;H.clientPlaybackNonce_=void 0;H.inYouThereFlow_=!1},LnX=function(H,U){var A,M,W;
_.u(function(w){if(w.nextAddress==1)return H.reset(),w.yield(H.playerProvider_().getPlayerPromise(),2);A=w.yieldResult;H.clientPlaybackNonce_=A.getVideoData().cpn;H.youThereData_=U.configData.youThereData;if(!H.youThereData_)return w.return();if(H.youThereData_.triggerReason&&H.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!YBX())return Mc("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.XK(),H.youThereData_,H.clientPlaybackNonce_),w.return();M=H.youThereData_.promptDelaySec;W=A.getCurrentTime();
H.showWarningJob_=_.Fl.addLowPriorityJob(function(){return _.u(function(d){H.showWarningJob_=0;return d.yield(p9m(H),0)})},Math.max(M-W,0)*1E3);
_.DO(w)})},p9m=function(H){var U,A,M,W,w,d;
return _.u(function(O){if(O.nextAddress==1)return O.yield(H.playerProvider_().getPlayerPromise(),2);if(O.nextAddress!=3)return U=O.yieldResult,A=U.getCurrentTime(),O.yield(Rmp(H),3);M=O.yieldResult;if(!M||!H.youThereData_)return O.return();if(_.S("check_user_lact_at_prompt_shown_time_on_web")&&(W=parseInt(H.youThereData_.lactThresholdMs,10),_.$B()<W))return Mc("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.XK(),H.youThereData_,H.clientPlaybackNonce_),O.return();if(H.youThereData_.playbackPauseDelayMs<=
0)return EdB(H),O.return();!_.S("external_fullscreen")&&(w=_.L1())&&(H.ignoreFullscreenExitUserActivity_=!0,_.Fl.addLowPriorityJob(function(){H.ignoreFullscreenExitUserActivity_=!1},2E3),_.R2(w));
H.youThereData_.showToastWarningPrompt&&(Ie(H,H.youThereData_.showWarningActions),H.inYouThereFlow_=!0,Mc("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.XK(),H.youThereData_,H.clientPlaybackNonce_,A),Mc("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.XK(),H.youThereData_,H.clientPlaybackNonce_,A));d=0;H.youThereData_.blockingPromptDelayMs&&(d=H.youThereData_.blockingPromptDelayMs);H.showBlockingWarningJob_=_.Fl.addLowPriorityJob(function(){return _.u(function(f){H.showBlockingWarningJob_=0;return f.yield(m6$(H),
0)})},d);
_.DO(O)})},m6$=function(H){var U,A,M;
return _.u(function(W){if(W.nextAddress==1)return W.yield(Rmp(H),2);U=W.yieldResult;if(!H.youThereData_)return W.return();U&&(H.youThereData_.showBlockingWarningAction&&(Mc("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.XK(),H.youThereData_,H.clientPlaybackNonce_),(A=_.p(H.youThereData_.showBlockingWarningAction,_.$2))?Ie(H,A.commands):Ie(H,[H.youThereData_.showBlockingWarningAction]),H.inYouThereFlow_=!0),M=H.youThereData_.playbackPauseDelayMs,H.pausePlaybackJob_=_.Fl.addLowPriorityJob(function(){return _.u(function(w){H.pausePlaybackJob_=
0;return w.yield(EdB(H),0)})},M));
_.DO(W)})},EdB=function(H){var U;
return _.u(function(A){if(A.nextAddress==1)return A.yield(Rmp(H),2);U=A.yieldResult;if(!H.youThereData_)return A.return();U&&(Mc("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.XK(),H.youThereData_,H.clientPlaybackNonce_),Ie(H,H.youThereData_.showPausedActions),H.inYouThereFlow_=!0);_.DO(A)})};
Nc5.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var H=_.p(this.youThereData_.userActiveDuringFlowAction,_.$2);H?Ie(this,H.commands):Ie(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(Mc("YOU_THERE_EVENT_TYPE_LACT_RESET",_.XK(),this.youThereData_,this.clientPlaybackNonce_),_.P1());SZ$(this,!0)}gd8(this,!1)};
var aw5=function(H){Mc("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.XK(),H.youThereData_,H.clientPlaybackNonce_)},Rmp=function(H){var U,A;
return _.u(function(M){if(M.nextAddress==1)return M.yield(H.playerProvider_().getPlayerPromise(),2);U=M.yieldResult;A=U.getPlayerState();return M.return(A==-1||A==1||A==3)})},gd8=function(H,U){var A;
_.u(function(M){if(M.nextAddress==1){if(H.isUserPredictedAbsent_==U)return M.jumpTo(0);H.isUserPredictedAbsent_=U;return M.yield(H.playerProvider_().getPlayerPromise(),3)}A=M.yieldResult;A.setUserEngagement(U);U&&Mc("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.XK(),H.youThereData_,H.clientPlaybackNonce_);_.DO(M)})},Ie=function(H,U){if(_.S("handle_service_request_actions")||_.S("kevlar_youthere_service_endpoint_actions_killswitch"))_.eb(H.actionSenderElement_,U,H.actionSenderElement_);
else{U=_.b(U);for(var A=U.next();!A.done;A=U.next())A=A.value,A.commandMetadata&&A.commandMetadata.webCommandMetadata&&A.commandMetadata.webCommandMetadata.sendPost?_.rs(H.actionSenderElement_,[A]):_.eb(H.actionSenderElement_,[A],H.actionSenderElement_)}};var qBB=!1;var x6$={PAUSE_CHAT:18};var qRh=function(H,U){var A=_.gD("SESSION_INDEX");this.actionToken_=H;this.commonToken_=U;this.sessionIndex_=A},YR$=function(H){var U=_.oL(),A=_.tr("payments.business.integration.bootstrap"),M=_.tr("payments.business.integration"),W=M.Style.create().withMaterialDesignStyle(),w=M.mashupMode.popup("instrument-manager");
A.asMashupMode(w).usingUserIndex(H.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(W).inStandaloneContext(M.standaloneContextAuthId.forUserId()).instrumentManager(H.actionToken_,H.commonToken_.length>0?H.commonToken_:void 0,function(d){var O=d.instrumentId;O?U.resolve(O):(O=_.tr("payments.business.integration.scenario.InstrumentManager"),U.reject(d.errorCode&&d.errorCode===O.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(d){_.za(d);
U.reject("instrumentManagerLoadError")});
return U.promise};var Fe=function(H,U,A){this.payloadName="transactionFlowFailed";this.payload={errorType:H,serializedTransactionFlowLoggingParams:U,isUserDismiss:A===void 0?!1:A}};
_.eC("yt.ypc.shared.YpcTransactionFlowError",Fe);var Q_=function(){return _.v4.apply(this,arguments)||this};
_.R(Q_,_.v4);Q_.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Q_.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Q_.prototype.onErrorMessageDismiss=Q_.prototype.onErrorMessageDismiss;_.G([_.y({readOnly:!0,observer:"errorRendererChanged"}),_.q("design:type",Object)],Q_.prototype,"errorRenderer",void 0);_.G([_.Gl("yt-live-chat-error-message-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Q_.prototype,"onErrorMessageDismiss",null);_.G([_.Tl()],Q_);var zmh=[Q_.prototype];var CT$;var tz8,cZ5=function(){if(tz8!==void 0)return tz8;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;CT$===void 0&&(CT$=document.createElement("template"));var M=CT$;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return tz8=H};var V_=function(){var H=_.B.apply(this,arguments)||this;H.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";H.goalDescription="";H.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";H.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";H.startButtonId="start-button";H.exampleButtonId="example-button";return H};
_.R(V_,_.B);_.X=V_.prototype;_.X.getGoalDropdownItems=function(){var H,U;return(U=_.p((H=this.data)==null?void 0:H.purchaseTargetDropdown,bup))==null?void 0:U.dropdownItems};
_.X.getTimerDropdownItems=function(){var H,U;return(U=_.p((H=this.data)==null?void 0:H.timerDropdown,bup))==null?void 0:U.dropdownItems};
_.X.getColorDropdownItems=function(){var H,U;return(U=_.p((H=this.data)==null?void 0:H.colorDropdown,bup))==null?void 0:U.dropdownItems};
_.X.getDropdownItemText=function(H){var U;return(U=_.p(H,iuy))==null?void 0:U.itemLabel};
_.X.getDropdownItemValue=function(H){H=_.p(H,iuy);return(H==null?void 0:H.timeLimit)||(H==null?void 0:H.purchaseTarget)||(H==null?void 0:H.eligiblePurchaseType)};
_.X.updateFlowState=function(H){_.yr(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:H}])};
_.X.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.X.updateGoalValue=function(H){this.goal=H.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.X.onTextValueChanged=function(H){this.goalDescription=H.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.X.updateTimerValue=function(H){this.timer=H.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.X.updateTierValue=function(H){this.tier=H.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.X.getButtonViewModel=function(H){H=(H==null?void 0:H.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var U,A=_.p((U=this.data)==null?void 0:U.startGoalButton,_.ot);return Object.assign({},A,{state:H})};
_.D5.Object.defineProperties(V_,{template:{configurable:!0,enumerable:!0,get:function(){return cZ5()}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],V_.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],V_.prototype,"goal",void 0);_.G([_.y(),_.q("design:type",Object)],V_.prototype,"goalDescription",void 0);_.G([_.y(),_.q("design:type",Object)],V_.prototype,"timer",void 0);_.G([_.y(),_.q("design:type",Object)],V_.prototype,"tier",void 0);
_.G([_.y(),_.q("design:type",Object)],V_.prototype,"startButtonId",void 0);_.G([_.y(),_.q("design:type",Object)],V_.prototype,"exampleButtonId",void 0);_.G([_.b0({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],V_);_.e(V_,"yt-creator-goal-set-up-flow-view-model",function(){return cZ5()},{mode:0});var yZh;var Bck;var HZ=function(){return _.B.apply(this,arguments)||this};
_.R(HZ,_.B);HZ.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
HZ.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var H=_.p(this.data.button,_.ot);H&&(H.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.D5.Object.defineProperties(HZ,{template:{configurable:!0,enumerable:!0,get:function(){if(Bck===void 0){var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;yZh===void 0&&(yZh=document.createElement("template"));var M=yZh;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Bck=H}H=Bck;return H}}});
_.G([_.g(_.dv),_.q("design:type",Object)],HZ.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y({selectorArgs:["data.enabledEntityKey"],selector:Q2B,observer:"onEnabledChange"}),_.q("design:type",Boolean)],HZ.prototype,"enabled",void 0);_.G([_.y(),_.q("design:type",Object)],HZ.prototype,"data",void 0);_.G([_.b0({is:"yt-disableable-button-view-model",noInjection:!0})],HZ);var rZh;var em5;var D6m=["transVert01","transVert02","transVert03"],$6h="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),Uk=function(){var H=_.B.apply(this,arguments)||this;H.emojiManager=_.Fn;H.isDarkTheme=document.documentElement.hasAttribute("dark");H.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};H.reactionBuckets=[];H.noEmojiIdentifier="NO_EMOJI";return H};
_.R(Uk,_.B);_.X=Uk.prototype;_.X.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.X.desktopFountainEmojiSizePxChanged=function(){_.Dt(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.X.createUserReactionAnimation=function(H){this.createEmojiAnimation(H,!0)};
_.X.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var H;((H=this.data)==null?0:H.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.hs("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.vI(this.emojiContainer.children)).forEach(function(U){U.remove()})};
_.X.detached=function(){this.cleanupFountain()};
_.X.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var H;this.reactionBuckets=_.dG.unsafeClone((H=this.emojiFountainData)==null?void 0:H.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.X.processEmojiBucket=function(H){var U=this;if(this.reactionBuckets&&!(H>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var A=this.reactionBuckets[H];this.generateEmojiAnimations(A);if(H<this.reactionBuckets.length-1){var M;if(A==null?0:(M=A.duration)==null?0:M.seconds)this.emojiBucketTimerId=setTimeout(function(){U.processEmojiBucket(H+1)},Number(A.duration.seconds)*1E3)}}};
_.X.generateEmojiAnimations=function(H){var U=this,A=this.getRandomEmojiIdFromBucketWithOverride(H);if(A&&A!==this.noEmojiIdentifier){var M=0;H.targetEps?(M=this.linearInterpolateBounded(1,20,100,12,H.emojiSizeIndex||0),this.createEmojiAnimation(A,!1,H.emojiAnimationMs,M),M=this.getEmojiDelayMsFromTargetEps(H.targetEps)):(this.createEmojiAnimation(A),M=this.getEmojiDelayMsFromDistribution(H.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){U.generateEmojiAnimations(H)},M)}};
_.X.getRandomEmojiIdFromBucketWithOverride=function(H){if(!(H&&H.reactionsData&&H.reactionsData.length&&H.totalReactions))return this.noEmojiIdentifier;for(var U=H.totalReactions,A=1,M=_.b(H.reactionsData),W=M.next();!W.done;W=M.next())W=W.value,(W.reactionWeightOverride||W.reactionWeightOverride===0)&&W.reactionCount&&(U-=W.reactionCount,A-=W.reactionWeightOverride);M=!0;A<0&&(M=!1,U=H.totalReactions,A=1);if(M&&A>0&&U===0)if(A===1){W=0;for(var w=_.b(H.reactionsData),d=w.next();!d.done;d=w.next())d=
d.value,d.reactionCount&&d.reactionCount>0&&W++;W=1/W;w=_.b(H.reactionsData);for(d=w.next();!d.done;d=w.next())d.value.reactionWeightOverride=W}else for(W=1/(1-A),w=_.b(H.reactionsData),d=w.next();!d.done;d=w.next())d=d.value,d.reactionWeightOverride&&(d.reactionWeightOverride*=W);W=Math.random();w=0;d=_.b(H.reactionsData);for(var O=d.next();!O.done;O=d.next())if(O=O.value,O.reactionCount&&(w=(O.reactionWeightOverride||O.reactionWeightOverride===0)&&M?w+O.reactionWeightOverride:w+A*O.reactionCount/
U,w>W&&(O.reactionCount--,H.totalReactions--,O=this.reactionItemToEmojiString(O),O!==this.noEmojiIdentifier)))return O;return this.noEmojiIdentifier};
_.X.reactionItemToEmojiString=function(H){if(H.unicodeEmojiId)return H.unicodeEmojiId;if(H.emoteId)return H.emoteId;if(H.videoReactionType)switch(H.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.X.createEmojiAnimation=function(H,U,A,M){U=U===void 0?!1:U;this.lastEmojiRequestedForTesting=H;var W=H.startsWith("yt-icons:"),w=_.Ka(this.emojiManager,H);if(w||W){var d=document.createElement("emoji");d.classList.add("yt-emoji-fountain-view-model");d.classList.add(D6m[Math.floor(Math.random()*D6m.length)]);var O=document.createElement("div");O.classList.add("yt-emoji-fountain-view-model");O.classList.add("horizontal-container");O.classList.add($6h[Math.floor(Math.random()*$6h.length)]);U?(A=document.createElement("div"),
A.classList.add("user-reaction-bubble"),A.classList.add("yt-emoji-fountain-view-model"),O.appendChild(A)):(A&&(d.style.animationDuration=A+"ms",O.style.animationDuration=A+"ms"),M&&(d.style.width=M+"px",d.style.height=M+"px"));W?(W=document.createElement("yt-icon"),W.polymerController.icon=H,M&&(W.style.width=M+"px",W.style.height=M+"px"),H=W):H=this.emojiManager.createEmoji(w,!1);H.classList.add("yt-emoji-fountain-view-model");O.appendChild(H);d.appendChild(O);this.emojiContainer.appendChild(d);
d.addEventListener("animationend",function(){d.remove()});
var f,J;if((f=this.data)==null?0:(J=f.loggingDirectives)==null?0:J.trackingParams)U=U?_.ts(183501):_.ts(183500),Vbh(this.data.loggingDirectives.trackingParams,U),_.ss_(U);setTimeout(function(){d&&d.remove()},2E3)}};
_.X.getEmojiDelayMsFromDistribution=function(H){return Math.random()*(H||1)*1E3};
_.X.getEmojiDelayMsFromTargetEps=function(H){return Math.random()*2*(1/H)*1E3};
_.X.linearInterpolateBounded=function(H,U,A,M,W){W=Math.min(Math.max(W,H),A);return(U*(A-W)+M*(W-H))/(A-H)};
Uk.prototype.onEmojiFountainDataEntityUpdate=Uk.prototype.onEmojiFountainDataEntityUpdate;Uk.prototype.desktopFountainEmojiSizePxChanged=Uk.prototype.desktopFountainEmojiSizePxChanged;Uk.prototype.isActiveChanged=Uk.prototype.isActiveChanged;_.G([_.y(),_.q("design:type",_.Jb)],Uk.prototype,"emojiManager",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dv),_.q("design:type",Object)],Uk.prototype,"ytLiveChatReduxBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Uk.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Uk.prototype,"data",void 0);_.G([_.y({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(H,U){return _.rH(H.entities,"emojiFountainDataEntity",U)}}),
_.q("design:type",Object)],Uk.prototype,"emojiFountainData",void 0);_.G([_.y(),_.q("design:type",Boolean)],Uk.prototype,"isActive",void 0);_.G([_.Ya("isActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Uk.prototype,"isActiveChanged",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Uk.prototype,"isDarkTheme",void 0);_.G([_.y(),_.q("design:type",String)],Uk.prototype,"lastEmojiRequestedForTesting",void 0);
_.G([_.y({value:function(){return _.hr("desktop_fountain_emoji_size_px",20)}}),
_.q("design:type",Number)],Uk.prototype,"desktopFountainEmojiSizePx",void 0);_.G([_.Ya("desktopFountainEmojiSizePx"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Uk.prototype,"desktopFountainEmojiSizePxChanged",null);_.G([_.hG("#emoji-container"),_.q("design:type",HTMLElement)],Uk.prototype,"emojiContainer",void 0);
_.G([_.Ya("emojiFountainData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Uk.prototype,"onEmojiFountainDataEntityUpdate",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],Uk);
_.e(Uk,"yt-emoji-fountain-view-model",function(){if(em5===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;rZh===void 0&&(rZh=document.createElement("template"));var M=rZh;A.call(U,M.content.cloneNode(!0),H.content.firstChild);em5=H}H=em5;return H},{mode:0});var lwj;var Gx8;var AW=function(){return _.B.apply(this,arguments)||this};
_.R(AW,_.B);AW.prototype.onChoiceChanged=function(){this.data&&_.Dt(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
AW.prototype.onChoiceChanged=AW.prototype.onChoiceChanged;_.G([_.y(),_.q("design:type",Object)],AW.prototype,"data",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],AW.prototype,"onChoiceChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],AW);
_.e(AW,"yt-live-chat-banner-poll-choice",function(){if(Gx8===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;lwj===void 0&&(lwj=document.createElement("template"));var M=lwj;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Gx8=H}H=Gx8;return H},{mode:0});var YZk;var qZ8;var MR=function(){var H=_.B.apply(this,arguments)||this;H.modern=_.S("web_button_rework_with_live");H.small=!1;return H};
_.R(MR,_.B);MR.prototype.computeIsSmall=function(){var H;return((H=this.buttonOverrides)==null?void 0:H.size)==="S"};
MR.prototype.computeId=function(){return this.data&&this.data.targetId};
_.G([_.g(_.OY.YtLiveChatTooltipTargetingBehavior),_.q("design:type",Object)],MR.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.G([_.y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.q("design:type",String)],MR.prototype,"id",void 0);_.G([_.y(),_.q("design:type",Object)],MR.prototype,"buttonOverrides",void 0);_.G([_.y(),_.q("design:type",Object)],MR.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],MR.prototype,"modern",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.q("design:type",Object)],MR.prototype,"small",void 0);_.G([_.dX({disableElementRegistration:!0,is:"yt-live-chat-button"})],MR);
_.e(MR,"yt-live-chat-button",function(){if(qZ8===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;YZk===void 0&&(YZk=document.createElement("template"));var M=YZk;A.call(U,M.content.cloneNode(!0),H.content.firstChild);qZ8=H}H=qZ8;return H},{mode:0});var hm5;var kxh;var WZ=function(){var H=_.B.apply(this,arguments)||this;H.inCollapsedBanner=!1;H.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};H.questionButtonOverrides={style:"mono",type:"filled"};return H};
_.R(WZ,_.B);_.X=WZ.prototype;_.X.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]]"}}}}}};
_.X.onContextMenuButtonClick=function(H){this.ytLiveChatItemBehavior.showContextMenu(H)};
_.X.onYtRendererstamperFinished=function(){this.menuButton=_.c4(this.hostElement).querySelector("#menu-button")};
_.X.dataChanged=function(){var H,U;if((U=_.p((H=this.data)==null?void 0:H.overflowMenuButton,_.f$))==null?0:U.command)this.data.contextMenuEndpoint=_.p(this.data.overflowMenuButton,_.f$).command};
_.X.onButtonClick=function(){var H,U=_.p((H=this.data)==null?void 0:H.askQuestionButton,_.f$);if(U){if(U.trackingParams&&(H=_.IS(U.trackingParams))){var A=_.XK();A&&_.NY(A,H)}_.cg(this.hostElement,"innertube-command",U.command)}};
WZ.prototype.onYtRendererstamperFinished=WZ.prototype.onYtRendererstamperFinished;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],WZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dv),_.q("design:type",Object)],WZ.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.g(_.PN.YtLiveChatItemBehavior),_.q("design:type",_.s8)],WZ.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.y({observer:"dataChanged"}),_.q("design:type",Object)],WZ.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],WZ.prototype,"inCollapsedBanner",void 0);_.G([_.y(),_.q("design:type",Object)],WZ.prototype,"buttonOverrides",void 0);_.G([_.y(),_.q("design:type",Object)],WZ.prototype,"questionButtonOverrides",void 0);_.G([_.Gl("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],WZ.prototype,"onYtRendererstamperFinished",null);
_.G([_.dX({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],WZ);
_.e(WZ,"yt-live-chat-call-for-questions-renderer",function(){if(kxh===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;hm5===void 0&&(hm5=document.createElement("template"));var M=hm5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);kxh=H}H=kxh;return H},{mode:0});var vdy={};vdy.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 H=this;window.requestAnimationFrame(function(){H.restoreFocusNode_||(H.restoreFocusNode_=document.activeElement);var U=_.kbk(H.hostElement);U.length&&U[U.length-1].focus()})},
isAttachedChanged_:function(H,U){H?this.focusChild_():U&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(H){this.hidden||_.Lf(H).indexOf(this.hostElement)!==-1||(H.stopPropagation(),this.focusChild_())}};var TcB;var j4j;var w0=function(){return _.B.apply(this,arguments)||this};
_.R(w0,_.B);w0.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
w0.prototype.onClick=function(H){H.target!==this.confirmButton&&H.target!==this.cancelButton&&(this.hidden=!0)};
_.G([_.hG("#confirm_button"),_.q("design:type",Object)],w0.prototype,"confirmButton",void 0);_.G([_.hG("#cancel_button"),_.q("design:type",Object)],w0.prototype,"cancelButton",void 0);_.G([_.y(),_.q("design:type",Iwm)],w0.prototype,"data",void 0);_.G([_.y({value:!0,reflectToAttribute:!0}),_.q("design:type",Boolean)],w0.prototype,"hidden",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],w0.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(vdy.YtLiveChatDialogBehavior),_.q("design:type",Object)],w0.prototype,"ytLiveChatDialogBehavior",void 0);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],w0);
var Iwm=_.e(w0,"yt-live-chat-dialog-renderer",function(){if(j4j===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;TcB===void 0&&(TcB=document.createElement("template"));var M=TcB;A.call(U,M.content.cloneNode(!0),H.content.firstChild);j4j=H}H=j4j;return H},{mode:0});var Q4h;var Vz5,HI5=function(){if(Vz5!==void 0)return Vz5;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;Q4h===void 0&&(Q4h=document.createElement("template"));var M=Q4h;A.call(U,M.content.cloneNode(!0),H.content.firstChild);return Vz5=H};var U4m;var Au5;var X6=function(){var H=_.B.apply(this,arguments)||this;H.icon=null;return H};
_.R(X6,_.B);X6.prototype.dismiss=function(){_.cg(this.hostElement,"yt-live-chat-error-message-dismiss")};
X6.prototype.computeIcon=function(H){return H&&H.iconType?"yt-icons:"+H.iconType.toLowerCase():"yt-icons:close"};
_.G([_.y(),_.q("design:type",Object)],X6.prototype,"data",void 0);_.G([_.y({computed:"computeIcon(data.icon)"}),_.q("design:type",Object)],X6.prototype,"icon",void 0);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],X6);
_.e(X6,"yt-live-chat-error-message-renderer",function(){if(Au5===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;U4m===void 0&&(U4m=document.createElement("template"));var M=U4m;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Au5=H}H=Au5;return H},{mode:0});var MOX;var Wvh;var iz=function(){var H=_.B.apply(this,arguments)||this;H.tooltip=null;H.data=null;H.id="";H.active=!1;H.icon="";H.disabled=!1;H.showTooltip=!1;H.useToggledActiveState=!0;H.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return H};
_.R(iz,_.B);_.X=iz.prototype;
_.X.dataChanged=function(){var H;((H=this.data)==null?0:H.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,_.ek)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var U;if((U=this.data)==null?0:U.disabled)this.disabled=!0};
_.X.computeId=function(H){return H};
_.X.computeIcon=function(H,U){if(!H)return"";if(this.useToggledActiveState)return"yt-icons:"+H.toLowerCase();var A,M;return U&&((A=this.data)==null?0:(M=A.toggledIcon)==null?0:M.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+H.toLowerCase()};
_.X.logPDGEntryPoint=function(){_.Ck7(_.ep("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")};
_.X.immediatelyShowTooltip=function(){var H=_.c4(this.hostElement).querySelector("#tooltip");H.animationDelay=0;H.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};H.show()};
_.X.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.X.onClick=function(H){var U;((U=this.data)==null?0:U.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(),H.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.cg(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.X.computeShowTooltip=function(H,U){return!!(H&&H.tooltip&&U)};
_.X.maybeUpdateTooltipText=function(){var H=this,U;if((U=this.data)==null?0:U.tooltip){var A=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.ek)(H.tooltip).textContent=A},250)}};
_.X.handleLiveChatActions=function(H){var U=this;H.length&&(this.id!=="creator"&&this.id!=="product-picker"||H.forEach(function(A){(A=U.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",A))&&A.durationSec===A.fullDurationSec&&U.startBubble(U.colorFromDecimal(A.startBackgroundColor))}))};
_.X.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.X.startBubble=function(H){_.Dt(this.hostElement,{"--yt-live-chat-monetization-button-glow":H});this.hostElement.setAttribute("bubble","")};
_.X.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.X.colorFromDecimal=function(H){typeof H==="string"&&(H=Number(H));return"rgba("+[H>>16&255,H>>8&255,H&255,(H>>24&255)/255].join()+")"};
iz.prototype.onAnimationEnd=iz.prototype.onAnimationEnd;iz.prototype.disabledChanged=iz.prototype.disabledChanged;iz.prototype.dataChanged=iz.prototype.dataChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],iz.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.OY.YtLiveChatTooltipTargetingBehavior),_.q("design:type",Object)],iz.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],iz.prototype,"data",void 0);_.G([_.y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.q("design:type",Object)],iz.prototype,"id",void 0);_.G([_.y({notify:!0,reflectToAttribute:!0}),_.q("design:type",Object)],iz.prototype,"active",void 0);
_.G([_.y({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.q("design:type",Object)],iz.prototype,"icon",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],iz.prototype,"disabled",void 0);_.G([_.y({computed:"computeShowTooltip(data, disabled)"}),_.q("design:type",Object)],iz.prototype,"showTooltip",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],iz.prototype,"useToggledActiveState",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iz.prototype,"dataChanged",null);_.G([_.Ya("disabled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iz.prototype,"disabledChanged",null);_.G([_.Gl("animationend"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],iz.prototype,"onAnimationEnd",null);
_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],iz);
_.e(iz,"yt-live-chat-icon-toggle-button-renderer",function(){if(Wvh===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;MOX===void 0&&(MOX=document.createElement("template"));var M=MOX;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Wvh=H}H=Wvh;return H},{mode:0});var wsB;var XsX;var bz=function(){return _.B.apply(this,arguments)||this};
_.R(bz,_.B);bz.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.G([_.y(),_.q("design:type",Object)],bz.prototype,"data",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],bz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.dX({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],bz);
_.e(bz,"yt-live-chat-message-input-prompt-header-renderer",function(){if(XsX===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;wsB===void 0&&(wsB=document.createElement("template"));var M=wsB;A.call(U,M.content.cloneNode(!0),H.content.firstChild);XsX=H}H=XsX;return H},{mode:0});var iI8;var bI7;var d4h;var OIp;var us5;var ZIj;var fb$=function(){return _.B.apply(this,arguments)||this};
_.R(fb$,_.B);_.G([_.y(),_.q("design:type",Object)],fb$.prototype,"data",void 0);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],fb$);
_.e(fb$,"yt-live-chat-message-subtext-renderer",function(){if(ZIj===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;us5===void 0&&(us5=document.createElement("template"));var M=us5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);ZIj=H}H=ZIj;return H},{mode:0});var d0=function(){var H=_.B.apply(this,arguments)||this;H.subtextOnBottom=!1;H.buttonOverrides={style:"mono",type:"tonal"};return H};
_.R(d0,_.B);d0.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"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],d0.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],d0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],d0.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],d0.prototype,"subtextOnBottom",void 0);_.G([_.y(),_.q("design:type",Object)],d0.prototype,"buttonOverrides",void 0);
_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],d0);
_.e(d0,"yt-live-chat-message-renderer",function(){if(OIp===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;d4h===void 0&&(d4h=document.createElement("template"));var M=d4h;A.call(U,M.content.cloneNode(!0),H.content.firstChild);OIp=H}H=OIp;return H},{mode:0});var Jum;var Kvm;var Ok=function(){var H=_.B.apply(this,arguments)||this;H.isRemovable=!1;H.hasPrefilledText=!1;H.isInputDirty=!1;H.overCharacterLimit=!1;H.underCharacterLimit=!1;H.showErrorMessage=!1;return H};
_.R(Ok,_.B);_.X=Ok.prototype;_.X.computeId=function(){return this.data.id};
_.X.computeInputData=function(){return this.data.inputData};
_.X.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.X.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.X.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.X.getLiveChatRichMessageInput=function(){return _.c4(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.X.clearInput=function(){_.c4(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.X.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.X.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.X.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.X.handleTextInputCharCountChanged=function(H){H=H.detail&&H.detail.characterCount;H!==void 0&&(this.characterCount=H,H!==0&&(this.isInputDirty=!0))};
_.X.onInputFocusOut=function(){this.isInputDirty=!0};
_.X.onClickCloseButton=function(){_.cg(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Ok.prototype.handleTextInputCharCountChanged=Ok.prototype.handleTextInputCharCountChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ok.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ok.prototype,"data",void 0);_.G([_.y({computed:"computeId(data.id)"}),_.q("design:type",String)],Ok.prototype,"id",void 0);_.G([_.y({computed:"computeInputData(data.inputData)"}),_.q("design:type",Object)],Ok.prototype,"inputData",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.q("design:type",Object)],Ok.prototype,"isRemovable",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.q("design:type",Object)],Ok.prototype,"hasPrefilledText",void 0);_.G([_.y({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.q("design:type",Number)],Ok.prototype,"charactersRemaining",void 0);
_.G([_.y(),_.q("design:type",Number)],Ok.prototype,"characterCount",void 0);_.G([_.y(),_.q("design:type",Object)],Ok.prototype,"isInputDirty",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.q("design:type",Object)],Ok.prototype,"overCharacterLimit",void 0);_.G([_.y({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.q("design:type",Object)],Ok.prototype,"underCharacterLimit",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.q("design:type",Object)],Ok.prototype,"showErrorMessage",void 0);_.G([_.Gl("yt-live-chat-text-input-field-renderer-character-count-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Ok.prototype,"handleTextInputCharCountChanged",null);
_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Ok);
_.e(Ok,"yt-live-chat-poll-editor-input",function(){if(Kvm===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Jum===void 0&&(Jum=document.createElement("template"));var M=Jum;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Kvm=H}H=Kvm;return H},{mode:0});var o9p;var Fvm;var Pb7={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},uz=function(){var H=_.B.apply(this,arguments)||this;H.modern=_.S("web_button_rework_with_live");H.closeButtonOverrides={iconPosition:"icon-only"};H.startButtonOverrides={style:"mono",type:"filled"};H.addOptionButtonOverrides={style:"mono",type:"text"};return H};
_.R(uz,_.B);_.X=uz.prototype;
_.X.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"}}}}};
_.X.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var H;_.p((H=this.data)==null?void 0:H.startButton,_.f$)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.X.computeId=function(){return this.data&&this.data.id||""};
_.X.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.X.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.X.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.X.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.X.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var H=0;H<this.pollEditorInfoWithDefaults.minPollOptions;H++)this.addPollOptionData()};
_.X.getIsValidPoll=function(){var H=this;if(!this.pollEditorInfoWithDefaults)return!1;var U=this.pollEditorInfoWithDefaults,A=U.minPollOptionChars,M=U.maxPollOptionChars,W=U.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>U.maxPollQuestionChars)return!1;U=_.c4(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(U).every(function(w,d){w=w.characterCount;!w&&W[d]&&(w=H.ytRendererBehavior.getSimpleString(W[d]).length);return w!==void 0&&w>=A&&w<=M})};
_.X.isValidPollChanged=function(){var H;_.p((H=this.data)==null?void 0:H.startButton,_.f$)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.X.addPollOptionData=function(){var H=this.pollEditorInfoWithDefaults,U=H.maxPollOptionChars,A=H.optionPlaceholderText,M=H.customOptionPlaceholderText,W=H.pollOptionData;this.currentNumPollOptions>=H.maxPollOptions||(H={liveChatPollOptionInput:{inputData:{placeholder:M[this.currentNumPollOptions]||A,maxCharacterLimit:U},maxCharacterLimit:U,minCharacterLimit:H.minPollOptionChars,hasPrefilledText:!!M[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=H.minPollOptions}},W.charCountErrorText&&
(H.liveChatPollOptionInput.charCountErrorText=W.charCountErrorText),W.charsRemainingAltLabel&&(H.liveChatPollOptionInput.charsRemainingAltLabel=W.charsRemainingAltLabel),W.removeOptionAltText&&(H.liveChatPollOptionInput.removeOptionAltText=W.removeOptionAltText),this.push("pollOptionsData",H),W=Array.from(_.c4(_.c4(this.hostElement).querySelector("#poll-options")).children),W.forEach(function(w,d){w.polymerController.set("data.id",d)}),_.c4(W[W.length-1]).querySelector("#input").focus())};
_.X.getPollOptionInputValues=function(){var H=this,U=[],A=_.c4(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),M=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(A).forEach(function(W,w){var d=null;W=W.getLiveChatRichMessageInput();var O;(W==null?0:(O=W.textSegments)==null?0:O.length)?d=_.dT(W):M[w]&&(d=H.formattedStringToLiveChatRichMessageInput(M[w]));U.push(d)});
return U};
_.X.requestCreateAndStartPoll=function(H){var U=this.getPollOptionInputValues();if(!U.some(function(M){return!M})){U={optionText:U};
var A=_.c4(_.c4(this.hostElement).querySelector("#poll-question")).firstChild;A&&A.liveChatRichMessageInput&&(U.questionText=_.dT(A.liveChatRichMessageInput));_.rs(this.hostElement,[H,U])}};
_.X.selectedChanged=function(){if(this.selected){var H=_.c4(_.c4(this.hostElement).querySelector("#start-button")).firstElementChild;if(H){var U;(U=_.c4(H).querySelector("#button")||_.yf(H).querySelector("button"))==null||U.focus()}}};
_.X.handleTextInputChanged=function(H){var U;((U=H.target)==null?void 0:U.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=H.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.X.handleStartButtonAction=function(H){H.detail.actionName==="yt-service-request"&&(H.stopPropagation(),(H=H.detail.args[1])&&this.requestCreateAndStartPoll(H))};
_.X.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.X.handleServiceRequestCompleted=function(H){this.createPollRequestInFlight=!1;(H=H.detail&&H.detail.data)&&H.success&&(_.cg(this.hostElement,"picker-cancelled"),_.yr(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.X.onCloseClick=function(){_.cg(this.hostElement,"picker-cancelled");_.yr(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.X.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.X.handlePollEditorInputClosed=function(H){var U=this.pollOptionsData.findIndex(function(A){return A.liveChatPollOptionInput.id===H.detail.id});
this.splice("pollOptionsData",U,1);this.isValidPoll=this.getIsValidPoll()};
_.X.onPickerCancelled=function(){this.reset()};
_.X.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var H=_.c4(_.c4(this.hostElement).querySelector("#poll-question")).firstChild;H&&H.setLiveChatRichMessageInput(null);if(H=_.c4(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){H=_.b(Array.from(H));for(var U=H.next();!U.done;U=H.next())U.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.X.formattedStringToLiveChatRichMessageInput=function(H){return H.simpleText?{text_segments:[H.simpleText]}:{text_segments:H.runs}};
_.D5.Object.defineProperties(uz.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(Pb7,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
uz.prototype.onPickerCancelled=uz.prototype.onPickerCancelled;uz.prototype.handlePollEditorInputClosed=uz.prototype.handlePollEditorInputClosed;uz.prototype.handleServiceRequestCompleted=uz.prototype.handleServiceRequestCompleted;uz.prototype.handleServiceRequestSent=uz.prototype.handleServiceRequestSent;uz.prototype.handleTextInputChanged=uz.prototype.handleTextInputChanged;uz.prototype.selectedChanged=uz.prototype.selectedChanged;uz.prototype.isValidPollChanged=uz.prototype.isValidPollChanged;
uz.prototype.shouldInitializePollChanged=uz.prototype.shouldInitializePollChanged;uz.prototype.dataChanged=uz.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],uz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],uz.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],uz.prototype,"modern",void 0);
_.G([_.y(),_.q("design:type",Object)],uz.prototype,"closeButtonOverrides",void 0);_.G([_.y(),_.q("design:type",Object)],uz.prototype,"startButtonOverrides",void 0);_.G([_.y(),_.q("design:type",Object)],uz.prototype,"addOptionButtonOverrides",void 0);_.G([_.y({computed:"computeId(data.id)",reflectToAttribute:!0}),_.q("design:type",String)],uz.prototype,"id",void 0);_.G([_.y({value:function(){return[]}}),
_.q("design:type",Array)],uz.prototype,"pollOptionsData",void 0);_.G([_.a("pollEditorInfoWithDefaults"),_.q("design:type",Object),_.q("design:paramtypes",[])],uz.prototype,"pollQuestionData",null);_.G([_.y({value:0}),_.q("design:type",Number)],uz.prototype,"pollQuestionCharacterCount",void 0);_.G([_.a("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.q("design:type",Object),_.q("design:paramtypes",[])],uz.prototype,"pollQuestionCharactersRemaining",null);
_.G([_.y({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.q("design:type",Boolean)],uz.prototype,"overQuestionCharacterLimit",void 0);_.G([_.a("data.pollEditorInfo"),_.q("design:type",Object),_.q("design:paramtypes",[])],uz.prototype,"pollEditorInfoWithDefaults",null);_.G([_.y({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.q("design:type",Number)],uz.prototype,"currentNumPollOptions",void 0);
_.G([_.y({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.q("design:type",Boolean)],uz.prototype,"hasMaxNumPollOptions",void 0);_.G([_.a("pollEditorInfoWithDefaults","pollOptionsData"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],uz.prototype,"shouldInitializePoll",null);_.G([_.y(),_.q("design:type",Object)],uz.prototype,"isValidPoll",void 0);
_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],uz.prototype,"createPollRequestInFlight",void 0);_.G([_.y(),_.q("design:type",Object)],uz.prototype,"selected",void 0);_.G([_.y({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.q("design:type",Boolean)],uz.prototype,"showQuestionErrorMessage",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uz.prototype,"dataChanged",null);_.G([_.Ya("shouldInitializePoll"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uz.prototype,"shouldInitializePollChanged",null);_.G([_.Ya("isValidPoll"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uz.prototype,"isValidPollChanged",null);
_.G([_.Ya("selected"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uz.prototype,"selectedChanged",null);_.G([_.Gl("yt-live-chat-text-input-field-renderer-character-count-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],uz.prototype,"handleTextInputChanged",null);
_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uz.prototype,"handleServiceRequestSent",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],uz.prototype,"handleServiceRequestCompleted",null);
_.G([_.Gl("yt-live-chat-poll-editor-input-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],uz.prototype,"handlePollEditorInputClosed",null);_.G([_.Gl("picker-cancelled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uz.prototype,"onPickerCancelled",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],uz);
_.e(uz,"yt-live-chat-poll-editor-panel-renderer",function(){if(Fvm===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;o9p===void 0&&(o9p=document.createElement("template"));var M=o9p;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Fvm=H}H=Fvm;return H},{mode:0});var sPf;var n9$;var Zy=function(){return _.B.apply(this,arguments)||this};
_.R(Zy,_.B);Zy.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Zy.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.D5.Object.defineProperties(Zy.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var H,U;return(H=this.data)==null?void 0:(U=H.title)==null?void 0:U.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var H;return _.ij((H=this.data)==null?void 0:H.onTapCommand)}}});
_.G([_.g(_.D1.YtEndpointBehavior),_.q("design:type",Object)],Zy.prototype,"ytEndpointBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Zy.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Zy.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Zy.prototype,"itemId",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Zy.prototype,"hasPromotion",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Zy.prototype,"innertubeCommand",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Zy);
_.e(Zy,"yt-live-chat-product-picker-panel-item-view-model",function(){if(n9$===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;sPf===void 0&&(sPf=document.createElement("template"));var M=sPf;A.call(U,M.content.cloneNode(!0),H.content.firstChild);n9$=H}H=n9$;return H},{mode:0});var NEh;var S2y;var fV=function(){var H=_.B.apply(this,arguments)||this;H.id="product-picker";H.selected=!1;H.closeButtonId="close-button";H.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return H};
_.R(fV,_.B);_.X=fV.prototype;_.X.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.X.observeSelected=function(){this.selected&&this.hostElement.focus();var H=_.c4(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");H.length&&H[0].focus()};
_.X.onCloseBuyFlow=function(){_.cg(this.hostElement,"picker-cancelled")};
_.X.onCloseClick=function(){_.cg(this.hostElement,"picker-cancelled");var H;((H=this.data)==null?0:H.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.p(this.data.closeButton,_.ot))};
_.X.onCloseEngageWithAudienceEditorPanels=function(){_.cg(this.hostElement,"picker-cancelled")};
fV.prototype.observeSelected=fV.prototype.observeSelected;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],fV.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],fV.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],fV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],fV.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fV.prototype,"id",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],fV.prototype,"selected",void 0);_.G([_.y(),_.q("design:type",Object)],fV.prototype,"closeButtonId",void 0);_.G([_.Ya("selected"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fV.prototype,"observeSelected",null);
_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],fV);
_.e(fV,"yt-live-chat-product-picker-panel-view-model",function(){if(S2y===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;NEh===void 0&&(NEh=document.createElement("template"));var M=NEh;A.call(U,M.content.cloneNode(!0),H.content.firstChild);S2y=H}H=S2y;return H},{mode:0});var psh;var Lv5;var JW=function(){var H=_.B.apply(this,arguments)||this;H.iconId="";H.icon="";H.disabled=!1;H.systemIcons=_.S("kevlar_system_icons");return H};
_.R(JW,_.B);_.X=JW.prototype;_.X.computeIconId=function(H){return H&&H.icon&&H.icon.iconType?H.icon.iconType.toLowerCase():""};
_.X.computeIcon=function(H){return H&&H.icon&&H.icon.iconType?(H=H.icon.iconType.toLowerCase(),(H.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+H):""};
_.X.computeDisabled=function(H){return!!H};
_.X.computeCommand=function(H,U){return U?void 0:H};
_.X.computeTooltip=function(H,U){return U&&H?H:""};
_.X.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.D5.Object.defineProperties(JW.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var H="",U,A,M;if((U=this.data)==null?0:(A=U.text)==null?0:(M=A.runs)==null?0:M.length)H=this.data.text.runs[0].text||"";else{var W,w;if((W=this.data)==null?0:(w=W.text)==null?0:w.simpleText)H=this.data.text.simpleText}var d,O,f;if((d=this.data)==null?0:(O=d.subtext)==null?0:(f=O.runs)==null?0:f.length)H&&(H+=". "),H+=this.data.subtext.runs[0].text||"";else{var J,F;if((J=this.data)==null?0:(F=J.subtext)==
null?0:F.simpleText)H&&(H+=". "),H+=this.data.subtext.simpleText}return H}}});
_.G([_.g(_.D1.YtEndpointBehavior),_.q("design:type",Object)],JW.prototype,"ytEndpointBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],JW.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],JW.prototype,"data",void 0);_.G([_.y({computed:"computeIconId(data)",reflectToAttribute:!0}),_.q("design:type",Object)],JW.prototype,"iconId",void 0);
_.G([_.y({computed:"computeIcon(data)",reflectToAttribute:!0}),_.q("design:type",Object)],JW.prototype,"icon",void 0);_.G([_.y({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.q("design:type",Object)],JW.prototype,"disabled",void 0);_.G([_.y({computed:"computeCommand(data.command, disabled)"}),_.q("design:type",Object)],JW.prototype,"command",void 0);_.G([_.y({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.q("design:type",String)],JW.prototype,"tooltip",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],JW.prototype,"systemIcons",void 0);_.G([_.a("data.text","data.subtext"),_.y(),_.q("design:type",String),_.q("design:paramtypes",[])],JW.prototype,"ariaLabel",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],JW);
_.e(JW,"yt-live-chat-product-button-renderer",function(){if(Lv5===void 0){var H=document.createElement("template");_.E(H,'\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" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;psh===void 0&&(psh=document.createElement("template"));var M=psh;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Lv5=H}H=Lv5;return H},{mode:0});var Rsm;var E9y;var KV=function(){var H=_.B.apply(this,arguments)||this;H.selected=!1;H.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return H};
_.R(KV,_.B);_.X=KV.prototype;_.X.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"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.X.computeId=function(H){return H.id||""};
_.X.onCloseClick=function(){_.cg(this.hostElement,"picker-cancelled")};
_.X.observeSelected=function(){this.selected&&this.hostElement.focus();var H=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");H.length&&H[0].focus()};
_.X.onCloseBuyFlow=function(){_.cg(this.hostElement,"picker-cancelled")};
_.X.onCloseEngageWithAudienceEditorPanels=function(){_.cg(this.hostElement,"picker-cancelled")};
KV.prototype.observeSelected=KV.prototype.observeSelected;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],KV.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],KV.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],KV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],KV.prototype,"data",void 0);
_.G([_.y({computed:"computeId(data)",reflectToAttribute:!0}),_.q("design:type",String)],KV.prototype,"id",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],KV.prototype,"selected",void 0);_.G([_.Ya("selected"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],KV.prototype,"observeSelected",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],KV);
_.e(KV,"yt-live-chat-product-picker-renderer",function(){if(E9y===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;Rsm===void 0&&(Rsm=document.createElement("template"));var M=Rsm;A.call(U,M.content.cloneNode(!0),H.content.firstChild);E9y=H}H=E9y;return H},{mode:0});var m4j;var g9B;var ab5;var x4p;var o0=function(){return _.B.apply(this,arguments)||this};
_.R(o0,_.B);o0.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()};
o0.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
o0.prototype.created=function(){this.ids={background:Qn(),maskOne:Qn(),maskTwo:Qn(),gradient:Qn(),largeBackground:Qn(),largeGradientOne:Qn(),largeGradientTwo:Qn(),largeGradientPath:Qn()}};
o0.prototype.maybeLoadAnimationBackground=o0.prototype.maybeLoadAnimationBackground;_.G([_.y({value:!1}),_.q("design:type",Boolean)],o0.prototype,"useLargeBackground",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],o0.prototype,"useAnimationBackground",void 0);_.G([_.y({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.q("design:type",Boolean)],o0.prototype,"useRegularBackground",void 0);
_.G([_.y(),_.q("design:type",Object)],o0.prototype,"ids",void 0);_.G([_.y(),_.q("design:type",Object)],o0.prototype,"lottieAnimation",void 0);_.G([_.hG("#animation-background"),_.q("design:type",HTMLDivElement)],o0.prototype,"animationBackground",void 0);_.G([_.Ya("useAnimationBackground"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],o0.prototype,"maybeLoadAnimationBackground",null);
_.G([_.b0({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],o0);
_.e(o0,"yt-live-interactivity-component-background",function(){if(x4p===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;ab5===void 0&&(ab5=document.createElement("template"));var M=ab5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);x4p=H}H=x4p;return H},{mode:0});var F6=function(){var H=_.B.apply(this,arguments)||this;H.characterCount=0;H.showInputErrorMessage=!1;H.startQnaRequestInFlight=!1;H.modern=_.S("web_button_rework_with_live");H.buttonOverrides={style:"mono",type:"filled"};H.closeButtonOverrides={iconPosition:"icon-only"};H.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return H};
_.R(F6,_.B);_.X=F6.prototype;
_.X.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]]"}}}}}};
_.X.onCharacterCountChanged=function(H){var U,A,M,W,w=(A=_.p(this==null?void 0:(U=this.data)==null?void 0:U.creatorCallForQuestions,BWp))==null?void 0:(M=A.inputField)==null?void 0:(W=M.liveChatTextInputFieldRenderer)==null?void 0:W.maxCharacterLimit,d,O;w!=null&&(H==null?void 0:(d=H.detail)==null?void 0:d.characterCount)!=null&&_.p(this==null?void 0:(O=this.data)==null?void 0:O.startButton,_.f$)&&(U=H.detail.characterCount>w,this.set("data.startButton.buttonRenderer.isDisabled",H.detail.characterCount===
0||U),this.showInputErrorMessage=U)};
_.X.onCloseClick=function(){_.cg(this.hostElement,"picker-cancelled");_.yr(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.X.onPickerCancelled=function(){var H=_.c4(this.hostElement).querySelector("#qna-creator-text-input-field");H&&H.setLiveChatRichMessageInput(null)};
_.X.handleOpenQnaStartPanel=function(){var H=_.c4(this.hostElement).querySelector("#qna-creator-text-input-field");H&&H.focus()};
_.X.handleStartButtonAction=function(H){var U=this;if(H.detail.actionName==="yt-service-request"&&(H.stopPropagation(),H=H.detail.args[1])){var A=_.c4(this.hostElement).querySelector("#qna-creator-text-input-field"),M;(A==null?0:(M=A.liveChatRichMessageInput)==null?0:M.textSegments)&&A.liveChatRichMessageInput.textSegments.length!==0&&(M={rich_message:_.dT(A.liveChatRichMessageInput)},_.rs(this.hostElement,[H,M]).then(function(){_.cg(U.hostElement,"picker-cancelled")}))}};
_.X.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.X.handleServiceRequestCompleted=function(H){var U;H=H==null?void 0:(U=H.detail)==null?void 0:U.data;(H==null?0:H.actions)&&H.actions.length>0?this.startQnaRequestInFlight=!1:_.yr(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.X.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
F6.prototype.handleServiceRequestError=F6.prototype.handleServiceRequestError;F6.prototype.handleServiceRequestCompleted=F6.prototype.handleServiceRequestCompleted;F6.prototype.handleServiceRequestSent=F6.prototype.handleServiceRequestSent;F6.prototype.onPickerCancelled=F6.prototype.onPickerCancelled;F6.prototype.onCharacterCountChanged=F6.prototype.onCharacterCountChanged;_.G([_.y(),_.q("design:type",Object)],F6.prototype,"characterCount",void 0);
_.G([_.y(),_.q("design:type",Object)],F6.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],F6.prototype,"showInputErrorMessage",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],F6.prototype,"startQnaRequestInFlight",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],F6.prototype,"modern",void 0);_.G([_.y(),_.q("design:type",Object)],F6.prototype,"buttonOverrides",void 0);
_.G([_.y(),_.q("design:type",Object)],F6.prototype,"closeButtonOverrides",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],F6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dv),_.q("design:type",Object)],F6.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.g(_.PN.YtLiveChatItemBehavior),_.q("design:type",_.s8)],F6.prototype,"ytLiveChatItemBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],F6.prototype,"ytActionHandlerBehavior",void 0);_.G([_.Gl("yt-live-chat-text-input-field-renderer-character-count-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],F6.prototype,"onCharacterCountChanged",null);_.G([_.Gl("picker-cancelled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],F6.prototype,"onPickerCancelled",null);
_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],F6.prototype,"handleServiceRequestSent",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],F6.prototype,"handleServiceRequestCompleted",null);
_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],F6.prototype,"handleServiceRequestError",null);_.G([_.dX({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],F6);
_.e(F6,"yt-live-chat-qna-start-panel-renderer",function(){if(g9B===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;m4j===void 0&&(m4j=document.createElement("template"));var M=m4j;A.call(U,M.content.cloneNode(!0),H.content.firstChild);g9B=H}H=g9B;return H},{mode:0});var zsk;var Cb8;var PZ=function(){return _.B.apply(this,arguments)||this};
_.R(PZ,_.B);PZ.prototype.dismiss=function(){_.cg(this.hostElement,"yt-live-chat-error-message-dismiss")};
PZ.prototype.edit=function(){_.cg(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.G([_.y(),_.q("design:type",Object)],PZ.prototype,"data",void 0);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],PZ);
_.e(PZ,"yt-live-chat-text-actions-error-message-renderer",function(){if(Cb8===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;zsk===void 0&&(zsk=document.createElement("template"));var M=zsk;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Cb8=H}H=Cb8;return H},{mode:0});var tOj;var cum;var yuB;var BEy;var sk=function(){var H=_.B.apply(this,arguments)||this;H.isDarkTheme=document.documentElement.hasAttribute("dark");H.newnessDotEligible=!1;return H};
_.R(sk,_.B);sk.prototype.sendReaction=function(){var H,U,A=((H=this.data)==null?void 0:H.emojiId)||((U=this.data)==null?void 0:U.emoteId),M;A&&((M=this.data)==null?0:M.shouldTriggerAnimation)&&_.yr(this.hostElement,"yt-create-user-reaction-animation",[A]);var W;(H=_.ij((W=this.data)==null?void 0:W.onTap))&&_.l0(H,this.hostElement);this.showNewnessDot&&_.yr(this.hostElement,"yt-hide-newness-dot")};
sk.prototype.onClick=function(H){(!H||H.clientX||H.clientY)&&this.sendReaction()};
sk.prototype.onKeyDown=function(H){H.key!=="Enter"&&H.key!==" "||H.repeat||this.sendReaction()};
_.D5.Object.defineProperties(sk.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var H,U;return!!(((H=this.data)==null?0:H.emojiId)||((U=this.data)==null?0:U.emoteId))}}});
_.G([_.y(),_.q("design:type",Object)],sk.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],sk.prototype,"isDarkTheme",void 0);_.G([_.y(),_.q("design:type",Object)],sk.prototype,"newnessDotEligible",void 0);_.G([_.a("data.maybeShowNewnessDot"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],sk.prototype,"showNewnessDot",null);_.G([_.a("data.emojiId","data.emoteId"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],sk.prototype,"useYtImage",null);
_.G([_.b0({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],sk);
_.e(sk,"yt-reaction-control-panel-button-view-model",function(){if(BEy===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;yuB===void 0&&(yuB=document.createElement("template"));var M=yuB;A.call(U,M.content.cloneNode(!0),H.content.firstChild);BEy=H}H=BEy;return H},{mode:0});var ruX;var esp;var nV=function(){var H=_.B.apply(this,arguments)||this;H.reactionControlPanelExpanded=!1;H.isDarkTheme=document.documentElement.hasAttribute("dark");H.newnessDotEligible=!1;return H};
_.R(nV,_.B);_.X=nV.prototype;_.X.expandedButtonsChanged=function(){var H,U;_.Dt(this.hostElement,{"--expanded-buttons-height":((U=(H=this.expandedButtonsData)==null?void 0:H.length)!=null?U:0)*36+"px"})};
_.X.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}}};
_.X.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.X.onMouseLeave=function(){var H=this;this.collapseTimer=setTimeout(function(){H.reactionControlPanelExpanded=!1},500)};
_.X.onFocusIn=function(){this.onMouseEnter()};
_.X.onFocusOut=function(){this.onMouseLeave()};
_.X.onCollapsedButtonFocusIn=function(){var H=this;setTimeout(function(){var U;(U=H.expandedButtons.querySelector("button"))==null||U.focus()},100)};
_.X.onCollapsedButtonFocusOut=function(H){H.stopPropagation()};
_.D5.Object.defineProperties(nV.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var H,U;return _.dG.unsafeClone((H=this.liveReactionsData)==null?void 0:H.emojiButtonData)||((U=this.data)==null?void 0:U.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var H;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((H=this.data)==null||!H.maybeShowNewnessDot)}}});
nV.prototype.expandedButtonsChanged=nV.prototype.expandedButtonsChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],nV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dv),_.q("design:type",Object)],nV.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],nV.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],nV.prototype,"reactionControlPanelExpanded",void 0);_.G([_.y({selectorArgs:["data.liveReactionsDataEntityKey"],selector:IHB}),_.q("design:type",Object)],nV.prototype,"liveReactionsData",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],nV.prototype,"isDarkTheme",void 0);_.G([_.y(),_.q("design:type",Object)],nV.prototype,"newnessDotEligible",void 0);
_.G([_.a("liveReactionsData","data.expandedButtons"),_.q("design:type",Object),_.q("design:paramtypes",[])],nV.prototype,"expandedButtonsData",null);_.G([_.a("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.y({reflectToAttribute:!0}),_.q("design:type",Object),_.q("design:paramtypes",[])],nV.prototype,"showNewnessDot",null);_.G([_.hG("#expanded-buttons"),_.q("design:type",HTMLElement)],nV.prototype,"expandedButtons",void 0);
_.G([_.Ya("expandedButtonsData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nV.prototype,"expandedButtonsChanged",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],nV);
_.e(nV,"yt-reaction-control-panel-view-model",function(){if(esp===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;ruX===void 0&&(ruX=document.createElement("template"));var M=ruX;A.call(U,M.content.cloneNode(!0),H.content.firstChild);esp=H}H=esp;return H},{mode:0});var NR=new _.Sx("yt-live-chat"),D4B=Date.parse("2024-7-24"),Su=function(){var H=_.B.apply(this,arguments)||this;H.emojiManager=_.Fn;H.newnessDotEligible=!1;H.newnessDotImpressionCounted=!1;H.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return H};
_.R(Su,_.B);_.X=Su.prototype;_.X.emojiCustomizationEnabledChanged=function(){var H;((H=this.data)==null?0:H.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((H=NR.getCreationTime("emoji-customization-count"))&&H<D4B&&NR.set("emoji-customization-count","0"),H=Number(NR.get("emoji-customization-count"))||0,H<3&&(this.newnessDotEligible=!0,NR.set("emoji-customization-count",(H+1).toString())),this.newnessDotImpressionCounted=!0)};
_.X.hideNewnessDot=function(){this.newnessDotEligible=!1;NR.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.X.handleReactionsMute=function(H){var U=_.XK(),A=_.ts(206221),M={checkboxData:{state:H?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};U&&_.NY(U,A,M);this.reactionsMuted=H};
_.X.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.X.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}}};
_.D5.Object.defineProperties(Su.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var H;return(!((H=this.liveReactionsData)==null||!H.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Su.prototype.liveReactionsSettingChanged=Su.prototype.liveReactionsSettingChanged;Su.prototype.emojiCustomizationEnabledChanged=Su.prototype.emojiCustomizationEnabledChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Su.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dv),_.q("design:type",Object)],Su.prototype,"ytLiveChatReduxBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Su.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Su.prototype,"data",void 0);_.G([_.y(),_.q("design:type",_.Jb)],Su.prototype,"emojiManager",void 0);_.G([_.y(),_.q("design:type",Object)],Su.prototype,"newnessDotEligible",void 0);_.G([_.y(),_.q("design:type",Object)],Su.prototype,"newnessDotImpressionCounted",void 0);
_.G([_.y({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:Q2B}),_.q("design:type",Boolean)],Su.prototype,"liveReactionsSetting",void 0);_.G([_.y({selectorArgs:["data.liveReactionsDataEntityKey"],selector:IHB}),_.q("design:type",Object)],Su.prototype,"liveReactionsData",void 0);_.G([_.y({value:function(){var H=_.S("enable_lwe_web_mute"),U=NR.get("allow-reactions");return U===void 0?!1:!U&&H}}),
_.q("design:type",Boolean)],Su.prototype,"reactionsMuted",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Su.prototype,"liveReactionsEnabled",null);_.G([_.Ya("data.emojiCustomizationEnabled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Su.prototype,"emojiCustomizationEnabledChanged",null);
_.G([_.Ya("liveReactionsEnabled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Su.prototype,"liveReactionsSettingChanged",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Su);
_.e(Su,"yt-reaction-control-panel-overlay-view-model",function(){if(cum===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;tOj===void 0&&(tOj=document.createElement("template"));var M=tOj;A.call(U,M.content.cloneNode(!0),H.content.firstChild);cum=H}H=cum;return H},{mode:0});var $4X={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(H){var U=this.$.pickers.selected;if(U){_.c4(this.hostElement).removeAttribute(U+"-open");var A="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(A="#picker-buttons",U==="emoji"&&_.c4(this.hostElement).querySelector("#emoji-picker-button")&&(A="#emoji-picker-button"));if(A=_.c4(this.hostElement).querySelector(A).querySelector("#"+U))A.active=!1}A=H;U==H&&(A=null);U!=
H&&_.c4(this.hostElement).setAttribute(H+"-open","");this.$.pickers.selected=A;_.yr(this.hostElement,"yt-live-chat-picker-changed",[A])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var pV=function(){var H=_.B.apply(this,arguments)||this;H.numSentMessages=0;H.timeoutDurationMs=0;H.timeoutMs=0;H.lastTimeoutTimeMs=0;H.pendingMessageId="";H.hasFiredInitialFocusActions=!1;H.isBeforeFocusEnabled=!0;H.id="";H.characterCount=0;H.maxCharacterLimit=0;H.remainingCharacterCount=0;H.inputExpanded=!1;H.buttonOverrides={iconPosition:"icon-only"};H.inReplyPanel=!1;H.countdownRatio=0;H.isTooltipVisible=!1;H.tooltipTimeout=1E4;H.systemIcons=_.S("kevlar_system_icons");H.tallerEmojiPicker=_.S("live_chat_taller_emoji_picker");
H.sendReplyMessageInFlight=!1;H.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"};H.onResize=function(){H.maybeToggleCharacterCount()};
return H};
_.R(pV,_.B);_.X=pV.prototype;
_.X.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"}}}};
_.X.attached=function(){window.addEventListener("resize",this.onResize)};
_.X.detached=function(){window.removeEventListener("resize",this.onResize)};
_.X.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.X.sendMessage=function(){var H=this,U,A,M,W;return _.u(function(w){if(H.sendDisabled)return w.return();H.isTooltipVisible&&_.yr(H.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(H.data.sendButton&&H.data.sendButton.buttonRenderer){H.input.completeEmojis();U=H.data.sendButton.buttonRenderer.serviceEndpoint;if(!U)return w.return();M=((A=_.p(U,_.xJ2))==null?void 0:A.clientIdPrefix)||"";W={client_message_id:M+String(H.numSentMessages++),rich_message:_.dT(H.input.liveChatRichMessageInput)};
H.pendingMessageId=W.client_message_id;H.inReplyPanel&&(H.sendReplyMessageInFlight=!0);_.rs(H.hostElement,[U,W]);H.input.setLiveChatRichMessageInput(null)}_.DO(w)})};
_.X.handleSendButtonAction=function(H){H.detail.actionName==="yt-service-request"&&(H.stopPropagation(),this.sendMessage())};
_.X.onSendCompleted=function(H,U){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(H=this.get("timeoutDurationUsec",U.data))&&this.handleTimeout(Number(H)/1E3);this.errorMessage=this.get("errorMessage",U.data);this.pendingMessageId=""};
_.X.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.yr(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.X.handlePickerButtonToggle=function(H){H=H.detail.targetId;this.ytPickerBehavior.togglePicker_(H);if(H==="emoji")this.input.focus();else if(H==="qna-start-panel"){var U,A;(U=_.c4(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(A=U.querySelector("#qna-creator-text-input-field"))==null||A.focus()}};
_.X.onComponentReplaced=function(H){var U,A;H.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((U=H.replacement.liveChatMessageInputRenderer)==null?0:(A=U.headerRenderer)==null?0:A.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.X.onEmojiSelect=function(H){this.input.focus();this.input.insertEmoji(H.detail)};
_.X.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.X.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.yr(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.yr(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.X.onOpenPopupAction=function(H,U){var A=this;U===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.yr(A.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.X.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.X.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.X.focusChanged=function(){this.maybeToggleCharacterCount()};
_.X.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var H=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",H>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.X.computeId=function(){return this.data&&this.data.targetId||""};
_.X.computeSendDisabled=function(H,U,A,M){H=!!(!H||U&&H>U||M);(U=_.c4(this.hostElement).querySelector("#send-button"))&&U.children.length&&(U.children[0].disabled=H);return H};
_.X.handleTimeout=function(H){this.timeoutDurationMs=this.timeoutMs=H;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.X.updateTimeout=function(H){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(H-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=H,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.X.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.X.onErrorMessageEdit=function(H){this.input.setLiveChatRichMessageInput(H.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.X.errorMessageChanged=function(){var H=this;_.oS(function(){_.yr(H.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.X.computeAuthorNameColor=function(H){var U;if(_.S("live_chat_author_name_color_usernames")&&(H==null?0:(U=H.authorName)==null?0:U.simpleText))return _.$6E(_.lwF(H.authorName.simpleText));if(_.S("live_chat_seed_color_usernames")&&(H==null?0:H.authorSeedColorArgb))return _.$6E(_.BX(H.authorSeedColorArgb));if(_.S("live_chat_colored_usernames"))return"#cc0000";var A;return _.S("live_chat_simple_color_usernames")&&(H==null?0:(A=H.authorName)==null?0:A.simpleText)&&(H==null?0:H.authorUsernameColorLight)&&
(H==null?0:H.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.BX(H.authorUsernameColorDark):_.BX(H.authorUsernameColorLight):""};
_.X.onIsTooltipVisibleChanged=function(){var H=_.c4(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){H.hidden=!1;H.setAttribute("role","alert")},0):(H.hidden=!0,H.removeAttribute("role"))};
_.X.onFocusedChanged=function(H){this.inputFocused=H.detail.value};
_.D5.Object.defineProperties(pV.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 H;return!((H=this.data)==null||!H.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.data)==null?void 0:(U=H.pickers)==null?void 0:U.find(function(A){return A.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var H=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return H?this.ytRendererBehavior.getSimpleString(H):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
pV.prototype.onIsTooltipVisibleChanged=pV.prototype.onIsTooltipVisibleChanged;pV.prototype.errorMessageChanged=pV.prototype.errorMessageChanged;pV.prototype.onErrorMessageEdit=pV.prototype.onErrorMessageEdit;pV.prototype.onErrorMessageDismiss=pV.prototype.onErrorMessageDismiss;pV.prototype.focusChanged=pV.prototype.focusChanged;pV.prototype.characterCountChanged=pV.prototype.characterCountChanged;pV.prototype.onEmojiSelect=pV.prototype.onEmojiSelect;pV.prototype.handlePickerButtonToggle=pV.prototype.handlePickerButtonToggle;
pV.prototype.onSendError=pV.prototype.onSendError;pV.prototype.onSendCompleted=pV.prototype.onSendCompleted;pV.prototype.sendMessage=pV.prototype.sendMessage;pV.prototype.dataChanged=pV.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],pV.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],pV.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.g($4X.YtPickerBehavior),_.q("design:type",Object)],pV.prototype,"ytPickerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],pV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.OY.YtLiveChatTooltipTargetingBehavior),_.q("design:type",Object)],pV.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],pV.prototype,"hasFiredInitialFocusActions",void 0);
_.G([_.y(),_.q("design:type",Object)],pV.prototype,"isBeforeFocusEnabled",void 0);_.G([_.y(),_.q("design:type",Object)],pV.prototype,"data",void 0);_.G([_.y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.q("design:type",Object)],pV.prototype,"id",void 0);_.G([_.y(),_.q("design:type",Object)],pV.prototype,"characterCount",void 0);_.G([_.y(),_.q("design:type",Object)],pV.prototype,"maxCharacterLimit",void 0);
_.G([_.y(),_.q("design:type",Object)],pV.prototype,"remainingCharacterCount",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],pV.prototype,"inputExpanded",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],pV.prototype,"inputFocused",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],pV.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.G([_.y(),_.q("design:type",_.Se)],pV.prototype,"participantsManager",void 0);
_.G([_.y(),_.q("design:type",Object)],pV.prototype,"buttonOverrides",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],pV.prototype,"inReplyPanel",void 0);_.G([_.a("characterCount, maxCharacterLimit, countdownActive"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],pV.prototype,"sendDisabled",null);_.G([_.y(),_.q("design:type",Object)],pV.prototype,"countdownRatio",void 0);
_.G([_.a("countdownRatio"),_.q("design:type",Number),_.q("design:paramtypes",[])],pV.prototype,"countdownStrokeDashOffset",null);_.G([_.a("countdownRatio"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],pV.prototype,"countdownActive",null);_.G([_.a("data.interactionMessage"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],pV.prototype,"hasInteractionMessage",null);
_.G([_.a("data.emojiPickerButton"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],pV.prototype,"hasEmojiPickerButton",null);_.G([_.a("data, characterCount"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],pV.prototype,"showAvatar",null);_.G([_.a("data.pickers"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],pV.prototype,"hasProductPickerPanelViewModel",null);
_.G([_.y(),_.q("design:type",Object)],pV.prototype,"errorMessage",void 0);_.G([_.y(),_.q("design:type",Object)],pV.prototype,"genericErrorMessage",void 0);_.G([_.y(),_.q("design:type",Object)],pV.prototype,"isTooltipVisible",void 0);_.G([_.y(),_.q("design:type",Object)],pV.prototype,"tooltipTimeout",void 0);_.G([_.a("data.onInitialFocusCommand"),_.q("design:type",String),_.q("design:paramtypes",[])],pV.prototype,"tooltipMessage",null);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],pV.prototype,"systemIcons",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],pV.prototype,"tallerEmojiPicker",void 0);_.G([_.a("data"),_.q("design:type",String),_.q("design:paramtypes",[])],pV.prototype,"authorNameColor",null);_.G([_.y(),_.q("design:type",Object)],pV.prototype,"sendReplyMessageInFlight",void 0);_.G([_.hG("#input"),_.q("design:type",_.KD3)],pV.prototype,"input",void 0);
_.G([_.hG("#count"),_.q("design:type",HTMLElement)],pV.prototype,"count",void 0);_.G([_.hG("#input-container"),_.q("design:type",HTMLElement)],pV.prototype,"inputContainer",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pV.prototype,"dataChanged",null);_.G([_.Gl("yt-live-chat-send-message"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],pV.prototype,"sendMessage",null);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[Event,_.Po]),_.q("design:returntype")],pV.prototype,"onSendCompleted",null);_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pV.prototype,"onSendError",null);
_.G([_.Gl("yt-live-chat-icon-toggle-button-renderer-toggle"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],pV.prototype,"handlePickerButtonToggle",null);_.G([_.Gl("yt-emoji-select"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],pV.prototype,"onEmojiSelect",null);
_.G([_.Ya("characterCount"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pV.prototype,"characterCountChanged",null);_.G([_.Ya("inputFocused"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pV.prototype,"focusChanged",null);_.G([_.Gl("yt-live-chat-error-message-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pV.prototype,"onErrorMessageDismiss",null);
_.G([_.Gl("yt-live-chat-error-message-edit"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],pV.prototype,"onErrorMessageEdit",null);_.G([_.Ya("errorMessage"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pV.prototype,"errorMessageChanged",null);_.G([_.Ya("isTooltipVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pV.prototype,"onIsTooltipVisibleChanged",null);
_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],pV);
_.e(pV,"yt-live-chat-message-input-renderer",function(){if(bI7===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;iI8===void 0&&(iI8=document.createElement("template"));var M=iI8;A.call(U,M.content.cloneNode(!0),H.content.firstChild);bI7=H}H=bI7;return H},{mode:0});var lb5;var Gpy;var LV=function(){var H=_.B.apply(this,arguments)||this;H.systemIcons=_.S("kevlar_system_icons");H.firedOnClickCommand=!1;H.inReplyPanel=!1;return H};
_.R(LV,_.B);
LV.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"}}}};
LV.prototype.onButtonToggle=function(H){H.target.disabled||this.ytPickerBehavior.togglePicker_(H.detail.targetId)};
LV.prototype.onClick=function(){var H=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.yr(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return H.firedOnClickCommand=!1},5E3))};
_.D5.Object.defineProperties(LV.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.data)==null?void 0:(U=H.panels)==null?void 0:U.find(function(A){return A.liveChatProductPickerPanelViewModel}))!==void 0}}});
LV.prototype.onButtonToggle=LV.prototype.onButtonToggle;_.G([_.g($4X.YtPickerBehavior),_.q("design:type",Object)],LV.prototype,"ytPickerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],LV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],LV.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],LV.prototype,"systemIcons",void 0);_.G([_.y({reflectToAttribute:!1}),_.q("design:type",Object)],LV.prototype,"firedOnClickCommand",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],LV.prototype,"inReplyPanel",void 0);_.G([_.a("data.pickers"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],LV.prototype,"hasProductPickerPanelViewModel",null);
_.G([_.Gl("yt-live-chat-icon-toggle-button-renderer-toggle"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],LV.prototype,"onButtonToggle",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],LV);
_.e(LV,"yt-live-chat-restricted-participation-renderer",function(){if(Gpy===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;lb5===void 0&&(lb5=document.createElement("template"));var M=lb5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Gpy=H}H=Gpy;return H},{mode:0});var R0=function(){var H=_.B.apply(this,arguments)||this;H.genericErrorMessage=_.Nh("Error, try again.");H.inReplyPanel=!1;H.hideBorder=!1;return H};
_.R(R0,_.B);R0.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}}}}}};
_.D5.Object.defineProperties(R0,{template:{configurable:!0,enumerable:!0,get:function(){return HI5()}}});
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],R0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],R0.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],R0.prototype,"genericErrorMessage",void 0);_.G([_.y(),_.q("design:type",Object)],R0.prototype,"inReplyPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],R0.prototype,"hideBorder",void 0);
_.G([_.b0({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],R0);_.e(R0,"yt-live-chat-engagement-panel-input-renderer",function(){return HI5()},{mode:0});var Y25;var q2Y;var hs$=new _.Sx("yt-live-chat"),kpX=new Map;kpX.set("timestamp_toggle","show-timestamps");kpX.set("reactions_toggle","allow-reactions");var Ek=function(){return _.B.apply(this,arguments)||this};
_.R(Ek,_.B);_.X=Ek.prototype;_.X.menuItemIdentifierChanged=function(){var H;(H=this.data)!=null&&H.menuItemIdentifier&&(H=kpX.get(this.data.menuItemIdentifier))&&(_.S("enable_lwe_web_mute")?(H=hs$.get(H),this.isToggled=!(H===void 0?!this.data.isToggled:!H)):this.isToggled=hs$.get(H))};
_.X.onFocus=function(){this.toggleButton.focus()};
_.X.onTap=function(){var H=this.data.command;H&&this.componentBehavior.resolveCommand(H)};
_.X.computeText=function(H,U,A){return this.componentBehavior.getSimpleString(H?A:U)};
_.X.computeIcon=function(H,U,A){return(H=H?A:U)&&H.iconType?_.eq(H.iconType):""};
Ek.prototype.onTap=Ek.prototype.onTap;Ek.prototype.onFocus=Ek.prototype.onFocus;Ek.prototype.menuItemIdentifierChanged=Ek.prototype.menuItemIdentifierChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Ek.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ek.prototype,"data",void 0);
_.G([_.y({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.q("design:type",String)],Ek.prototype,"icon",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Ek.prototype,"isToggled",void 0);_.G([_.hG("tp-yt-paper-toggle-button"),_.q("design:type",Object)],Ek.prototype,"toggleButton",void 0);_.G([_.Ya("data.menuItemIdentifier"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ek.prototype,"menuItemIdentifierChanged",null);
_.G([_.Gl("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ek.prototype,"onFocus",null);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ek.prototype,"onTap",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Ek);
_.e(Ek,"yt-live-chat-toggle-renderer",function(){if(q2Y===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Y25===void 0&&(Y25=document.createElement("template"));var M=Y25;A.call(U,M.content.cloneNode(!0),H.content.firstChild);q2Y=H}H=q2Y;return H},{mode:0});var v9f=new _.g3("NAVIGATION_PROGRESS_TOKEN");var TEf={},jPY={},Ib8=(jPY[eI8.name]=!0,jPY),mQ=function(){var H=_.v4.apply(this,arguments)||this;H._noAccessors=!0;H.tabGesturesIsActive=!1;H.actionRouterIsRoot=!0;H.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"};H.pageTitle="";H.titleSuffix="YouTube";H.unseenNotificationCount=
0;H.hasNavigated=!1;H.hasSetScrollTopForNavigation=!1;H.pagePreparer=null;H.zwiebackInitJobId=0;H.dataUpdatePromise=null;H.loadDepsPromise=_.DH();H.hasPendingNavigation=!1;H.pendingPlayerOnResponseReceivedActions=[];return H};
_.R(mQ,_.v4);mQ.prototype.attached=function(){QP5(this);document.addEventListener("yt-navigate-cache",_.lN(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var H=g0();H.init();H.dispatchElement=this.hostElement};
var QP5=function(H,U){U=U===void 0?0:U;var A=_.lx().resolve(_.$V(_.l1));if(A)VOh(H,A);else{if(U>=5)throw Error("vl");setTimeout(function(){QP5(H,U+1)},0)}},VOh=function(H,U){U.addEventListener("yt-navigate-start",_.lN(H,H.onYtNavigateStart));
U.addEventListener("yt-navigate-finish",_.lN(H,H.onYtNavigateFinish));U.addEventListener("yt-navigate-error",_.lN(H,H.onYtNavigateError));U.addEventListener("yt-page-data-fetched",_.lN(H,H.onYtPageDataFetched))};
_.X=mQ.prototype;_.X.detached=function(){var H=_.lx().resolve(_.l1);H.removeEventListener("yt-navigate-start",_.lN(this,this.onYtNavigateStart));H.removeEventListener("yt-navigate-finish",_.lN(this,this.onYtNavigateFinish));H.removeEventListener("yt-navigate-error",_.lN(this,this.onYtNavigateError));H.removeEventListener("yt-page-data-fetched",_.lN(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.lN(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.X.setPageOffset=function(H,U){H?_.yr(this.hostElement,"yt-set-page-offset",[H,U]):_.sD(Error("wl"))};
_.X.setPageOffsetForNavigation=function(H,U){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(H,U))};
_.X.onYtNavigateSetPageOffset=function(H,U){this.setPageOffsetForNavigation(U.page,U.offset)};
_.X.getPageOffset=function(){var H=_.c4(this.hostElement).querySelector("#page-manager").getCurrentPage(),U=0;H&&(U=_.yr(this.hostElement,"yt-get-page-offset",[H])[0]);return U};
_.X.onYtHistoryPop=function(H,U){if(_.xV("DISABLE_WARM_LOADS"))H.preventDefault(),window.location.reload();else{var A=_.lx().resolve(_.l1);A.hasPendingNavigation()&&H.preventDefault();A.cancelPendingNavigation();_.Bg(this.hostElement,"yt-pending-navigation-cancelled");U.errorMsg&&(H=U.errorMsg.split(" - "),U=Error(H[0]),H.length==2&&H[1]&&(_.SD(U,H[1]),_.Na(U)),window.location.reload())}};
_.X.onYtHistoryLoad=function(H,U){var A=this;if(_.xV("DISABLE_WARM_LOADS"))window.location.reload();else{(H=U.endpoint)&&Object.keys(H).length||(H=null);var M=U.historyEntry,W=_.lx().resolve(_.l1),w=_.lx().resolve(_.SI),d=null;M&&M.rootData&&(d=M.rootData);var O=d&&Hrp(d);!d||O||d.filler?H?(W.navigate(H,!0),UQX(this,H)):(U.legacyBorder||O||(U.JSC$31213_savedComponentState==null&&d==null?_.Na(new _.bD("Incomplete history entry",U.forward)):_.n5(new _.bD("Malformed history entry",U.JSC$31213_savedComponentState,
U.forward,d))),window.location.reload()):(_.BI0({isHot:!0}),_.wH({webInfo:{navigationReason:"h"}}),_.LAF(),_.ba("srt"),_.ba("pdc"),this.cancelPendingTasks(),Aih(this,U.forward,d),d.player&&(d.player.loaded=!1),UQX(this,H),_.T8B(W,H||{},d,2,{},!1,U).then(function(){A.setPageOffset(w.getCurrentPage(),M.scrollTop||0)}))}};
_.X.initHistoryManager=function(H){if(!this.hasNavigated){this.hasNavigated=!0;var U=_.c4(this.hostElement).querySelector("#page-manager").getCurrentData();H=isNaN(H)?this.getPageOffset():H;var A=_.lx().resolve(_.l1).currentEndpoint;this.replaceState(A,U,H)}};
_.X.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.X.onYtNavigateStart=function(H,U){this.cancelPendingTasks();U.noProgressBar||(H=_.lx().resolve(_.$V(v9f)))&&H.start();H=this.hasPendingNavigation?null:this.data;var A=_.lx().resolve(_.SI),M,W,w;_.S("kevlar_use_vimio_behavior")&&!((M=U.endpoint)==null?0:(W=M.commandMetadata)==null?0:(w=W.webCommandMetadata)==null?0:w.ignoreNavigation)&&(M=A.getCurrentPage())&&M.disconnectVisibilityRoot();A.prepareForNavigation(U.pageType,U.endpoint);_.S("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.EY(1,
"pcl"),_.mg(this.pagePreparer,A.preparePage.bind(A,U.pageType,U.endpoint)));M=this.getPageOffset();this.initHistoryManager(M);U.reload||this.hasPendingNavigation?(U.pageType==="shorts"&&U.reload&&_.cg(this.hostElement,"yt-shorts-reset"),this.replaceState(U.endpoint,H,M)):(H==null?void 0:H.page)==="watch"&&U.pageType==="watch"&&_.S("kevlar_replace_watch_to_watch_history_state")?this.replaceState(U.endpoint,H,M):(H==null?void 0:H.page)!=="shorts"||U.pageType!=="shorts"||U.endpoint.reelWatchEndpoint.sequenceParams||
_.S("short_to_short_back_nav_killswitch")?U.type!="navigate-back"&&U.type!="navigate-forward"&&(U.pageType==="shorts"&&_.cg(this.hostElement,"yt-shorts-reset"),this.saveAndPush(U.url,U.endpoint,H,M)):this.replaceState(U.endpoint,H,0);this.hasPendingNavigation=!0};
var ME$=function(H){H.hasPendingNavigation=!1;(H=_.lx().resolve(_.$V(v9f)))&&H.finish()};
mQ.prototype.onYtNavigateError=function(H,U){ME$(this);H=this.get("endpoint.commandMetadata.webCommandMetadata.url",U);var A=_.rD(window.location.href);H&&!A.pbjreload&&(U=U.navigationErrorReason||"10",_.S("kevlar_parent_on_pbjreload")&&(A={csn:_.XK()},this.get("data.endpoint.clickTrackingParams")&&(A.itct=this.data.endpoint.clickTrackingParams),_.Sb(H,A)),_.ff(_.ey(H,{pbjreload:U})))};
mQ.prototype.onYtNavigateCache=function(H,U){var A=this,M=U.url,W=U.endpoint,w=U.data;H=!!U.miniplayer;U=!!U.skipHistory;if(M&&W&&w){var d=this.getPageOffset(),O=this.data||null;U||this.saveAndPush(M,W,O,d);M=_.T8B(_.lx().resolve(_.l1),W,w,H?4:3,{},H);H&&M.then(function(){A.dataUpdatePromise&&A.dataUpdatePromise.then(function(){var f=_.lx().resolve(_.SI);A.setPageOffset(f.getCurrentPage(),0)})})}};
mQ.prototype.onYtNavigateFinish=function(H,U){var A=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){Wth(A,U.fromHistory)})};
var Wth=function(H,U){ME$(H);if(H.pendingPlayerOnResponseReceivedActions){for(var A=_.b(H.pendingPlayerOnResponseReceivedActions),M=A.next();!M.done;M=A.next())_.l0(M.value,H.hostElement);H.pendingPlayerOnResponseReceivedActions=[]}A=_.lx().resolve(_.SI);U||!H.hasNavigated||_.S("web_disable_scroll_on_navigate_finish")||((U=A.getCurrentPage())?U.is==="ytd-shorts"||H.tabGesturesIsActive||H.setPageOffsetForNavigation(U,0):_.Na(Error("xl")));_.oS(function(){_.oS(function(){_.ba("pda")})})};
mQ.prototype.onYtNavigate=function(H){if(!H.detail.endpoint){var U=new _.bD("Error: Missing yt-navigate endpoint from target:",H.target,H.target.nodeName);_.sD(U)}if(U=_.S("cold_missing_history"))U=g0(),U.init(!1),U=!(U.browserHistory.boundHistoryReplaceState&&U.browserHistory.boundHistoryPushState);if(U){_.mT("DISABLE_WARM_LOADS",!0);U=new _.bD("Failed to initialize history manager",this.getDebugString());var A=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
A?_.Na(U):_.sD(U)}U=H.detail.endpoint;var M,W;_.S("debug_forward_web_query_parameters")&&((M=U.commandMetadata)==null?0:(W=M.webCommandMetadata)==null?0:W.url)&&(U=JSON.parse(JSON.stringify(U)),U.commandMetadata.webCommandMetadata.url=_.ywV(U.commandMetadata.webCommandMetadata.url,window.location.search));H={type:0,command:U,form:{params:H.detail.params,tempData:H.detail.tempData||{},requestType:H.detail.type,createScreenConfig:H.detail.createScreenConfig,reload:H.detail.reload?H.detail.reload:!1,
requestForm:H.detail}};_.S("kevlar_yt_navigate_command_handler")?(M=_.lx().resolve(_.YV),H.form.skipDefaultElement=!0,M.resolveCommand(U,{form:H.form})):this.handleNavigate(H)};
mQ.prototype.handleNavigate=function(H){this.hasSetScrollTopForNavigation=!1;var U=_.lx().resolve(_.l1),A=H.form||{};U.navigate(H.command,A.reload,A.params,A.tempData,A.requestType,A.createScreenConfig,A.ignoreConfirmation,A.requestForm)&&UQX(this,H.command,A.tempData)};
mQ.prototype.onYtPageDataFetched=function(H,U){try{_.BE2().reset();this.data=U.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.lx().resolve(_.SI).updatePageData(this.data);var A=this.get("playerResponse.onResponseReceivedActions",this.data);A&&(A=w2f(this,A));A&&_.eb(this.hostElement,A,this.hostElement);var M=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),W=this.get("response.responseContext.consistencyTokenJar",this.data);if(M||W){var w=_.lGM(),d=(0,_.dG.getValues)(w.tokenJars);M&&w.replace(d,M);W&&w.replace(d,W)}}catch(O){_.sD(O)}};
var UQX=function(H,U,A){try{H.onYtEndpointChangeHandler(U,A)}catch(M){_.sD(M)}};
_.X=mQ.prototype;_.X.onYtEndpointChangeHandler=function(){};
_.X.setPageTitle=function(H){H=(this.pageTitle=H)?H+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+H};
_.X.onYtUpdateTitle=function(H,U){this.setPageTitle(U)};
_.X.setUnseenNotificationCount=function(H){this.unseenNotificationCount=H;this.setPageTitle(this.pageTitle)};
_.X.handleUpdateNotificationsUnseenCountAction=function(H){_.p(H,ijY)&&((H=_.p(H,ijY).unseenCount)?this.setUnseenNotificationCount(H):this.setUnseenNotificationCount(0))};
_.X.handleClearCookieAction=function(H){var U;(H=(U=_.p(H,UdY))==null?void 0:U.cookieName)&&_.Uh0(H)};
_.X.onYtUpdateUnseenNotificationCount=function(H,U){this.setUnseenNotificationCount(U)};
_.X.loadData=function(H){var U=this;this.loadDepsPromise.then(function(){var A=_.lx().resolve(_.$V(_.l1));A||_.sD(Error("yl"));if(H&&H.response){if(!H.endpoint){var M=_.$Z(window.document.location.href)||"/",W="";if(M==="/"||M.startsWith("/?"))W="WEB_PAGE_TYPE_BROWSE";H.endpoint={commandMetadata:{webCommandMetadata:{url:M,webPageType:W,rootVe:3854}}}}_.T8B(A,H.endpoint,H,5,{})}else H.endpoint?A.navigate(H.endpoint):A.navigate(_.jR);_.Fl.cancelJob(U.zwiebackInitJobId);U.zwiebackInitJobId=_.Fl.addLowPriorityJob(hyB)})};
var g0=function(){return _.lx().resolve(_.qM)};
mQ.prototype.getDebugString=function(){return g0().getDebugString()};
mQ.prototype.getThirdPartyManipulationSuspected=function(){return g0().getThirdPartyManipulationSuspected()};
mQ.prototype.replaceState=function(H,U,A){g0().saveAndReplace(H,U,A)};
mQ.prototype.saveAndPush=function(H,U,A,M){g0().saveAndPush(H,U,A,M)};
var Hrp=function(H){return _.p(H.endpoint,_.sH)||_.p(H.endpoint,_.kO)?!0:!H||isNaN(H.expirationTime)?!1:(0,_.lD)()>H.expirationTime},Aih=function(H,U,A){var M=H.get("response.trackingParams",A),W=_.ws(),w=_.XK();
if(M&&W&&w&&(M=H.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",A),!M&&A.rootVe&&(M=A.rootVe),W=U?"forwardButton":"backButton",U=H.get("playerResponse.topbar.desktopTopbarRenderer."+W+".buttonRenderer.command.clickTrackingParams",H.data),H=H.get("response.topbar.desktopTopbarRenderer."+W+".buttonRenderer.command.clickTrackingParams",H.data),U=(H=U||H)?_.IS(H):void 0,H=_.k$(),W=[_.DH(A)],_.DJ(H,M,U,{dataPromises:W,csnToClone:A.csn}),A.graftedVes))for(A=
_.b(A.graftedVes),M=A.next();!M.done;M=A.next())_.$g(H,M.value)};
mQ.prototype.onStoreGraftedVeAction=function(H){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(H)):_.Na(Error("zl"))};
var w2f=function(H,U){return U.filter(function(A){for(var M in A)if(Ib8[M])return H.pendingPlayerOnResponseReceivedActions.push(A),!0;return!1})};
_.D5.Object.defineProperties(mQ.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
mQ.prototype.onStoreGraftedVeAction=mQ.prototype.onStoreGraftedVeAction;mQ.prototype.loadData=mQ.prototype.loadData;mQ.prototype.onYtUpdateUnseenNotificationCount=mQ.prototype.onYtUpdateUnseenNotificationCount;mQ.prototype.handleClearCookieAction=mQ.prototype.handleClearCookieAction;mQ.prototype.handleUpdateNotificationsUnseenCountAction=mQ.prototype.handleUpdateNotificationsUnseenCountAction;mQ.prototype.setUnseenNotificationCount=mQ.prototype.setUnseenNotificationCount;
mQ.prototype.onYtUpdateTitle=mQ.prototype.onYtUpdateTitle;mQ.prototype.setPageTitle=mQ.prototype.setPageTitle;mQ.prototype.onYtEndpointChangeHandler=mQ.prototype.onYtEndpointChangeHandler;mQ.prototype.onYtPageDataFetched=mQ.prototype.onYtPageDataFetched;mQ.prototype.handleNavigate=mQ.prototype.handleNavigate;mQ.prototype.onYtNavigate=mQ.prototype.onYtNavigate;mQ.prototype.onYtNavigateFinish=mQ.prototype.onYtNavigateFinish;mQ.prototype.onYtNavigateCache=mQ.prototype.onYtNavigateCache;
mQ.prototype.onYtNavigateError=mQ.prototype.onYtNavigateError;mQ.prototype.onYtNavigateStart=mQ.prototype.onYtNavigateStart;mQ.prototype.cancelPendingTasks=mQ.prototype.cancelPendingTasks;mQ.prototype.initHistoryManager=mQ.prototype.initHistoryManager;mQ.prototype.onYtHistoryLoad=mQ.prototype.onYtHistoryLoad;mQ.prototype.onYtHistoryPop=mQ.prototype.onYtHistoryPop;mQ.prototype.onYtNavigateSetPageOffset=mQ.prototype.onYtNavigateSetPageOffset;mQ.prototype.setPageOffset=mQ.prototype.setPageOffset;
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],mQ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],mQ.prototype,"data",void 0);_.G([_.Gl("yt-navigate-set-page-offset"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],mQ.prototype,"onYtNavigateSetPageOffset",null);
_.G([_.Gl("yt-history-pop"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],mQ.prototype,"onYtHistoryPop",null);_.G([_.Gl("yt-history-load"),_.q("design:type",Function),_.q("design:paramtypes",[Event,_.uRm]),_.q("design:returntype")],mQ.prototype,"onYtHistoryLoad",null);_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],mQ.prototype,"onYtNavigate",null);
_.G([_.Gl("yt-update-title"),_.q("design:type",Function),_.q("design:paramtypes",[Event,String]),_.q("design:returntype")],mQ.prototype,"onYtUpdateTitle",null);_.G([_.Gl("yt-update-unseen-notification-count"),_.q("design:type",Function),_.q("design:paramtypes",[Event,Number]),_.q("design:returntype")],mQ.prototype,"onYtUpdateUnseenNotificationCount",null);_.G([_.Tl()],mQ);TEf.YtdAppBehavior=[_.$y.YtActionHandlerBehavior,mQ.prototype];var a0=function(){var H=_.v4.apply(this,arguments)||this;H._noAccessors=!0;H.scrollRate=3;H.autoScrollAnimationStart=0;H.autoScrollPaused=!1;H.autoScrollRafId=0;return H};
_.R(a0,_.v4);_.X=a0.prototype;_.X.created=function(){var H=this;this.boundAutoScrollHandler=function(U){H.autoScroll(U)}};
_.X.detached=function(){this.hostElement.removeEventListener("mouseout",_.lN(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.lN(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.lN(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.X.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.lN(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.lN(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.lN(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.lN(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.lN(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.lN(this,this.endAutoScroll)),this.endAutoScroll())};
_.X.autoScroll=function(H){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=H);var U;if(U=!this.autoScrollPaused&&this.scrollTarget)U=this.scrollTarget,U=U.scrollHeight-U.scrollTop!==U.clientHeight;U&&(U=1E3/this.scrollRate,H-=this.autoScrollAnimationStart,H>U&&(this.scrollTarget.scrollTop+=Math.ceil(H/U),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.X.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.X.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
a0.prototype.autoScrollEnabledChanged=a0.prototype.autoScrollEnabledChanged;_.G([_.y(),_.q("design:type",Object)],a0.prototype,"scrollRate",void 0);_.G([_.y(),_.q("design:type",Object)],a0.prototype,"scrollTarget",void 0);_.G([_.y(),_.q("design:type",Boolean)],a0.prototype,"autoScrollEnabled",void 0);_.G([_.Ya("autoScrollEnabled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],a0.prototype,"autoScrollEnabledChanged",null);_.G([_.Tl()],a0);var X2h=[a0.prototype];var xP=function(){var H=_.v4.apply(this,arguments)||this;H._noAccessors=!0;return H};
_.R(xP,_.v4);xP.prototype.ready=function(){var H=this;_.c4(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){H.onChange_()})};
xP.prototype.dataChanged_=function(){_.c4(this.hostElement).querySelector("#checkbox").checked=!1};
xP.prototype.onChange_=function(){var H=_.c4(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.cg(this.hostElement,"yt-dismissal-reason-"+H,this.data.feedbackToken)};
xP.prototype.dataChanged_=xP.prototype.dataChanged_;_.G([_.y(),_.q("design:type",Object)],xP.prototype,"data",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xP.prototype,"dataChanged_",null);_.G([_.Tl()],xP);var ir7=[xP.prototype];var zN=function(){var H=_.v4.apply(this,arguments)||this;H.showInput=!1;return H};
_.R(zN,_.v4);_.X=zN.prototype;_.X.detached=function(){this.showInput&&window.removeEventListener("click",_.lN(this,this.closeOnOutsideClick_))};
_.X.stopPropagation_=function(H){this.showInput&&H.stopPropagation()};
_.X.closeOnOutsideClick_=function(H){this.closeOnOutsideClickCondition(H)&&(this.showInput=!1,window.removeEventListener("click",_.lN(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.X.closeOnOutsideClickCondition=function(){return!0};
_.X.closeOnOutsideClickHandler=function(){};
_.X.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.lN(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.X.openOnClickHandler=function(){};
_.X.showInputChanged=function(){};
_.X.setShowInput=function(H){this.showInput=H};
zN.prototype.setShowInput=zN.prototype.setShowInput;zN.prototype.showInputChanged=zN.prototype.showInputChanged;zN.prototype.openOnClickHandler=zN.prototype.openOnClickHandler;zN.prototype.openOnClick_=zN.prototype.openOnClick_;zN.prototype.closeOnOutsideClickHandler=zN.prototype.closeOnOutsideClickHandler;zN.prototype.closeOnOutsideClickCondition=zN.prototype.closeOnOutsideClickCondition;zN.prototype.closeOnOutsideClick_=zN.prototype.closeOnOutsideClick_;zN.prototype.stopPropagation_=zN.prototype.stopPropagation_;
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],zN.prototype,"showInput",void 0);_.G([_.Gl("click"),_.Gl("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],zN.prototype,"stopPropagation_",null);_.G([_.Ya("showInput"),_.q("design:type",Function),_.q("design:paramtypes",[Boolean]),_.q("design:returntype")],zN.prototype,"showInputChanged",null);_.G([_.Tl()],zN);var br5=[zN.prototype];var CV=function(){var H=_.v4.apply(this,arguments)||this;H.timeoutJobId=0;H.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return H};
_.R(CV,_.v4);CV.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
CV.prototype.startTimeout=function(){var H=this,U=this.data&&this.data.displayDurationSeconds;U&&!this.timeoutJobId&&(this.timeoutJobId=_.bM(_.Fl,function(){_.yr(H.hostElement,"yt-close-popup-action",[H.is]);H.timeoutJobId=0},U*1E3))};
CV.prototype.cancelTimeout=function(){_.Fl.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
CV.prototype.ytdHatsSurveyBehaviorDataChanged=CV.prototype.ytdHatsSurveyBehaviorDataChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],CV.prototype,"ytActionHandlerBehavior",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],CV.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.G([_.Tl()],CV);var dQj=[_.$y.YtActionHandlerBehavior,CV.prototype];var Orm=_.ts(115994),u08=_.ts(115993),Zr5=function(H,U,A){var M=this;var W=A.dragDownAction;this.layer=0;this.JSC$20382_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return M.dragDownAction()}}}};
this.JSC$20382_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return M.dragDownAction()}}}};
this.fullscreen=!1;var w=_.k$();_.lY(w,Orm,this.layer);_.lY(w,u08,this.layer);this.dragDownAction=function(){W();_.uZ(w,{visualElement:M.fullscreen?Orm:u08})};
this.gesture=new jh(H,U,this.getConfig(!1),"pandown");this.attach()};
Zr5.prototype.attach=function(){this.gesture.attach()};
Zr5.prototype.detach=function(){this.gesture.detach()};
Zr5.prototype.update=function(H){this.fullscreen=H;var U=this.gesture;H=this.getConfig(H);U.config=H};
Zr5.prototype.getConfig=function(H){return H?this.JSC$20382_watchFullScreenConfig:this.JSC$20382_watchConfig};var fvB;var Jij;var tW=function(){var H=_.B.apply(this,arguments)||this;H.systemIcons=_.S("kevlar_system_icons");H.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return H};
_.R(tW,_.B);tW.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var H=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(H=this.data.percentIfLiked||0,this.activated=!0):(H=this.data.percentIfIndifferent||0,this.activated=!1);_.c4(this.hostElement).querySelector("#like-bar").style.width=H+"%"}};
tW.prototype.handleUpdateSentimentBarStateCommand=function(H){this.data&&this.set("data.likeStatus",_.p(H,nNf).likeStatus)};
tW.prototype.observeLikeStatus=tW.prototype.observeLikeStatus;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],tW.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],tW.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],tW.prototype,"activated",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],tW.prototype,"systemIcons",void 0);_.G([_.Ya("data.likeStatus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tW.prototype,"observeLikeStatus",null);_.G([_.dX({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],tW);
_.e(tW,"ytd-sentiment-bar-renderer",function(){if(Jij!==void 0)return Jij;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Jij=H},{mode:1});var Ktm;var cZ=function(){var H=_.B.apply(this,arguments)||this;H.small=!0;return H};
_.R(cZ,_.B);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],cZ.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],cZ.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],cZ.prototype,"small",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],cZ);
_.e(cZ,"ytd-video-view-count-renderer",function(){if(Ktm!==void 0)return Ktm;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Ktm=H},{mode:2});var yQ=function(){var H=_.B.apply(this,arguments)||this;H.infoFormattedStrings=[];H.wrapVideoActions=_.S("kevar_watch_wrap_video_actions");H.hideSentimentBar=_.S("kevlar_watch_hide_sentiment_bar");H.actionMap={};return H};
_.R(yQ,_.B);_.X=yQ.prototype;_.X.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.S("web_modern_buttons"),forceIconButton:!_.S("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.X.dataChanged=function(){_.S("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.X.computeInfoFormattedStrings=function(H){if(!H)return[];var U=[];H.dateText&&U.push(H.dateText);H.stationName&&U.push(H.stationName);H.rating&&U.push(H.rating);H.startEndTimeTemplate&&H.startTimeUtcMillis&&H.endTimeUtcMillis&&U.push(_.Nh(Kb$(_.Sp(H.startEndTimeTemplate),Number(H.startTimeUtcMillis),Number(H.endTimeUtcMillis))));H.upNextProgramText&&U.push(H.upNextProgramText);return U};
_.X.scheduleInitialUpdatedMetadataRequest=function(){var H,U=(H=this.data)==null?void 0:H.updatedMetadataEndpoint;if(U){var A;H=Number((A=_.p(U,_.Vez))==null?void 0:A.initialDelayMs);A=isNaN(H)?250:H;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),A)}};
_.X.setSentimentBarWidth=function(){var H=this;_.rV(this,function(){var U=_.c4(H.hostElement).querySelector("ytd-menu-renderer");if(U){U=U.topLevelButtons;for(var A=0,M=0;M<U.length;M++){var W=U[M],w=H.get("toggleButtonSupportedData.toggleButtonIdData.id",W.data);if(w==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||w==="TOGGLE_BUTTON_ID_TYPE_LIKE")A+=W.clientWidth+8;else break}A&&(H.sentiment.style.width=A-8+" px")}})};
_.X.fetchUpdatedMetadata=function(H){var U;H&&(U={continuation:H});var A;(H=(A=this.data)==null?void 0:A.updatedMetadataEndpoint)&&_.lx().resolve(_.YV).resolveCommand(H,{form:Object.assign({},U,{element:this.hostElement})})};
_.X.onYtServiceRequestSent=function(H,U){U.endpoint&&_.p(U.endpoint,_.AA)&&(this.hasUpdateSentimentBarStateCommands()&&!_.S("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.p(U.endpoint,_.AA).status),this.setSentimentBarWidth())};
_.X.hasUpdateSentimentBarStateCommands=function(){var H,U,A,M,W=(M=(H=this.data)==null?void 0:(U=H.videoActions)==null?void 0:(A=U.menuRenderer)==null?void 0:A.topLevelButtons)!=null?M:[];H=_.b(W);for(U=H.next();!U.done;U=H.next()){U=U.value;W=M=A=void 0;var w=(A=U.toggleButtonRenderer)==null?void 0:(M=A.toggleButtonSupportedData)==null?void 0:(W=M.toggleButtonIdData)==null?void 0:W.id;if(w==="TOGGLE_BUTTON_ID_TYPE_LIKE"||w==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){M=A=void 0;U=(M=_.p((A=U.toggleButtonRenderer)==
null?void 0:A.defaultServiceEndpoint,_.$2))==null?void 0:M.commands;if(!U)break;U=_.b(U);for(A=U.next();!A.done;A=U.next())if(_.p(A.value,nNf))return!0}}return!1};
_.X.onYtServiceRequestCompleted=function(H,U){var A;(H=(A=U.data)==null?void 0:A.loggingDirectives)&&_.jME(_.k$(),H);this.get("continuation.timedContinuationData",U.data)&&this.data&&this.data.updatedMetadataEndpoint&&(U=U.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,U.continuation),U.timeoutMs))};
_.X.computeHasDateText=function(H){return!!H&&!!H.dateText};
_.D5.Object.defineProperties(yQ.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M;return!((M=(H=this.data)==null?void 0:(U=H.videoActions)==null?void 0:(A=U.menuRenderer)==null?void 0:A.flexibleItems)==null||!M.length)}}});
yQ.prototype.onYtServiceRequestCompleted=yQ.prototype.onYtServiceRequestCompleted;yQ.prototype.onYtServiceRequestSent=yQ.prototype.onYtServiceRequestSent;yQ.prototype.dataChanged=yQ.prototype.dataChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],yQ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],yQ.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],yQ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.LJ.YtTaskEmitterBehavior),_.q("design:type",Object)],yQ.prototype,"ytTaskEmitterBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],yQ.prototype,"data",void 0);_.G([_.y({computed:"computeInfoFormattedStrings(data)"}),_.q("design:type",Array)],yQ.prototype,"infoFormattedStrings",void 0);
_.G([_.y({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],yQ.prototype,"hasDateText",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],yQ.prototype,"wrapVideoActions",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],yQ.prototype,"hideSentimentBar",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],yQ.prototype,"flexMenuEnabled",null);
_.G([_.hG("#sentiment"),_.q("design:type",Object)],yQ.prototype,"sentiment",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yQ.prototype,"dataChanged",null);_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],yQ.prototype,"onYtServiceRequestSent",null);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],yQ.prototype,"onYtServiceRequestCompleted",null);
_.e(yQ,"ytd-video-primary-info-renderer",function(){if(fvB===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);fvB=H}H=fvB;return H},{mode:1});var oz5;var Fth;var BZ=function(){return _.B.apply(this,arguments)||this};
_.R(BZ,_.B);BZ.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
BZ.prototype.onTap=function(H){var U=this.data&&this.data.endpoint;U&&!_.ny(_.Lf(H),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.cg(this.hostElement,"yt-navigate",{endpoint:U})};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],BZ.prototype,"data",void 0);_.G([_.dX({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],BZ);
_.e(BZ,"ytd-autotagging-metadata-renderer",function(){if(Fth!==void 0)return Fth;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Fth=H},{mode:1});var Pch;var r0=function(){return _.B.apply(this,arguments)||this};
_.R(r0,_.B);r0.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],r0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],r0.prototype,"data",void 0);_.G([_.dX({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],r0);
_.e(r0,"ytd-autotagging-metadata-row-renderer",function(){if(Pch!==void 0)return Pch;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Pch=H},{mode:1});var sO5;var nzy;var eu=function(){var H=_.B.apply(this,arguments)||this;H.engagementPanelContent=!1;return H};
_.R(eu,_.B);eu.prototype.computeHasDividerLine=function(H,U){return H&&!U};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],eu.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.q("design:type",Boolean)],eu.prototype,"hasDividerLine",void 0);_.G([_.y(),_.q("design:type",Object)],eu.prototype,"engagementPanelContent",void 0);
_.G([_.dX({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],eu);
_.e(eu,"ytd-metadata-row-header-renderer",function(){if(nzy!==void 0)return nzy;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return nzy=H},{mode:1});var Nlh;var Dy=function(){return _.B.apply(this,arguments)||this};
_.R(Dy,_.B);Dy.prototype.computeHasDividerLine=function(H){return H};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Dy.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.q("design:type",Boolean)],Dy.prototype,"hasDividerLine",void 0);_.G([_.dX({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Dy);
_.e(Dy,"ytd-metadata-row-renderer",function(){if(Nlh!==void 0)return Nlh;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Nlh=H},{mode:1});var STh;var p2p=function(){return _.B.apply(this,arguments)||this};
_.R(p2p,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],p2p.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],p2p.prototype,"data",void 0);_.G([_.dX({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],p2p);
_.e(p2p,"ytd-metadata-with-image-row-renderer",function(){if(STh!==void 0)return STh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return STh=H},{mode:1});var Lt$;var $P=function(){var H=_.B.apply(this,arguments)||this;H.rounded=!0;H.fixie=!1;H.fullWidth=!1;return H};
_.R($P,_.B);_.X=$P.prototype;_.X.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.onDataChanged=function(){var H=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(U){H.onEndpointLinkKeyPress(U)}))};
_.X.onEndpointLinkKeyPress=function(H){H.target===this.endpointLink&&H.keyCode===13&&_.cg(this.hostElement,"click")};
_.X.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var H;if((H=this.data)==null?0:H.endpoint)_.eb(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.X.onYtNavigate=function(H){this.endpointHref||(H.stopPropagation(),H.preventDefault())};
_.X.onInformationButtonContainerClick=function(H){H.target.id!=="information-button-container"&&(H.stopPropagation(),H.preventDefault())};
_.X.computeStyle=function(H){return H};
_.X.computeIsThumbnailStyle=function(H){return H==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.X.computeThumbnailWidth=function(H){switch(H){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}};
_.X.computeThumbnailObjectFit=function(H){switch(H){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.D5.Object.defineProperties($P.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?0:H.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
$P.prototype.onYtNavigate=$P.prototype.onYtNavigate;$P.prototype.onClick=$P.prototype.onClick;$P.prototype.onDataChanged=$P.prototype.onDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],$P.prototype,"componentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],$P.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.q("design:type",String)],$P.prototype,"componentStyle",void 0);_.G([_.y({computed:"computeIsThumbnailStyle(data.style)"}),_.q("design:type",Boolean)],$P.prototype,"isThumbnailStyle",void 0);_.G([_.y({computed:"computeThumbnailObjectFit(data.style)"}),_.q("design:type",String)],$P.prototype,"thumbnailObjectFit",void 0);
_.G([_.y({computed:"computeThumbnailWidth(data.style)"}),_.q("design:type",Number)],$P.prototype,"thumbnailWidth",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],$P.prototype,"rounded",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],$P.prototype,"fixie",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],$P.prototype,"fullWidth",void 0);_.G([_.hG("#endpoint-link"),_.q("design:type",HTMLAnchorElement)],$P.prototype,"endpointLink",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$P.prototype,"onDataChanged",null);_.G([_.a("data.endpoint"),_.q("design:type",Object),_.q("design:paramtypes",[])],$P.prototype,"endpointHref",null);_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],$P.prototype,"onClick",null);
_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],$P.prototype,"onYtNavigate",null);_.G([_.dX({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],$P);
_.e($P,"ytd-rich-metadata-renderer",function(){if(Lt$!==void 0)return Lt$;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Lt$=H},{mode:2});var RC7;var lz=function(){var H=_.B.apply(this,arguments)||this;H.fixie=!1;H.fullWidth=!1;return H};
_.R(lz,_.B);lz.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
lz.prototype.computeHasDividerLine=function(H){return H};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],lz.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.q("design:type",Boolean)],lz.prototype,"hasDividerLine",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],lz.prototype,"fixie",void 0);_.G([_.y(),_.q("design:type",Object)],lz.prototype,"fullWidth",void 0);
_.G([_.dX({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],lz);
_.e(lz,"ytd-rich-metadata-row-renderer",function(){if(RC7!==void 0)return RC7;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return RC7=H},{mode:1});var GN=function(){var H=_.B.apply(this,arguments)||this;H.engagementPanelContent=!1;H.fixie=!1;H.fullWidth=!1;return H};
_.R(GN,_.B);
GN.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"}}}};
GN.prototype.computeCollapsibleItems=function(H,U,A){return H===void 0||U===void 0||A===void 0||A?[]:H.slice(U)};
GN.prototype.computeAlwaysShownItems=function(H,U){return H&&H.length?H.slice(0,U):[]};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],GN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],GN.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],GN.prototype,"collapsed",void 0);
_.G([_.y({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.q("design:type",Array)],GN.prototype,"alwaysShownItems",void 0);_.G([_.y({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.q("design:type",Array)],GN.prototype,"collapsibleItems",void 0);_.G([_.y(),_.q("design:type",Object)],GN.prototype,"engagementPanelContent",void 0);_.G([_.y(),_.q("design:type",Object)],GN.prototype,"fixie",void 0);
_.G([_.y(),_.q("design:type",Object)],GN.prototype,"fullWidth",void 0);_.G([_.dX({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],GN);
_.e(GN,"ytd-metadata-row-container-renderer",function(){if(sO5!==void 0)return sO5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return sO5=H},{mode:1});var EzB;var YP=function(){return _.B.apply(this,arguments)||this};
_.R(YP,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],YP.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],YP.prototype,"data",void 0);_.G([_.dX({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],YP);
_.e(YP,"ytd-error-corrections-section-item-renderer",function(){if(EzB!==void 0)return EzB;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return EzB=H},{mode:1});var mQ5;var qR=function(){return _.B.apply(this,arguments)||this};
_.R(qR,_.B);qR.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],qR.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],qR.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],qR.prototype,"data",void 0);_.G([_.dX({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],qR);
_.e(qR,"ytd-error-corrections-section-renderer",function(){if(mQ5!==void 0)return mQ5;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return mQ5=H},{mode:1});var gz5;var hW=function(){return _.B.apply(this,arguments)||this};
_.R(hW,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],hW.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],hW.prototype,"data",void 0);_.G([_.dX({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],hW);
_.e(hW,"ytd-topic-link-renderer",function(){if(gz5!==void 0)return gz5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return gz5=H},{mode:1});var avj;var kP=function(){var H=_.B.apply(this,arguments)||this;H.modernLockupV2=_.S("modernize_structured_description_playlist_lockups_v2");return H};
_.R(kP,_.B);kP.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"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],kP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],kP.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],kP.prototype,"modernLockupV2",void 0);_.G([_.dX({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],kP);
_.e(kP,"ytd-video-description-course-section-renderer",function(){if(avj!==void 0)return avj;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return avj=H},{mode:1});var xQ$;var vZ=function(){return _.B.apply(this,arguments)||this};
_.R(vZ,_.B);vZ.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"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],vZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],vZ.prototype,"data",void 0);_.G([_.dX({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],vZ);
_.e(vZ,"ytd-video-description-files-section-renderer",function(){if(xQ$!==void 0)return xQ$;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return xQ$=H},{mode:1});var zC$;var TN=function(){return _.B.apply(this,arguments)||this};
_.R(TN,_.B);TN.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"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],TN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],TN.prototype,"data",void 0);_.G([_.dX({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],TN);
_.e(TN,"ytd-video-description-gaming-section-renderer",function(){if(zC$!==void 0)return zC$;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return zC$=H},{mode:1});var Cch;var ju=function(){var H=_.B.apply(this,arguments)||this;H.isExpanded=!1;return H};
_.R(ju,_.B);ju.prototype.computeHasDefaultMetadataEndpoint=function(H){var U;H=H==null?void 0:(U=H.defaultMetadata)==null?void 0:U.runs;return!(!H||H.length!==1||!H[0].navigationEndpoint)};
ju.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.D5.Object.defineProperties(ju.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ju.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],ju.prototype,"isExpanded",void 0);_.G([_.y({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],ju.prototype,"hasDefaultMetadataEndpoint",void 0);
_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ju.prototype,"isExpandable",null);_.G([_.a("data","isExpandable","isExpanded"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ju.prototype,"showExpandedMetadata",null);_.G([_.dX({is:"ytd-info-row-renderer",disableElementRegistration:!0})],ju);
_.e(ju,"ytd-info-row-renderer",function(){if(Cch!==void 0)return Cch;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Cch=H},{mode:1});var tEm;var I0=function(){var H=_.B.apply(this,arguments)||this;H.currentIndex=0;H.supportComponentResize=!0;H.JSC$20439_lastScrollContainerWidth=NaN;return H};
_.R(I0,_.B);_.X=I0.prototype;
_.X.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"}}}};
_.X.getItemsPath=function(){return"videoLockups"};
_.X.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.X.onIronResize=function(){this.updateVideoLockupStyles()};
_.X.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.X.updateVideoLockupStyles=function(){var H;this.JSC$20439_scrollContainer!==void 0&&(H=this.videoLockups)!=null&&H.length&&(H=this.JSC$20439_scrollContainer.clientWidth,H!==this.JSC$20439_lastScrollContainerWidth&&(this.JSC$20439_lastScrollContainerWidth=H,_.Dt(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(H*.8,415)+"px"}),_.cg(this.hostElement,"iron-resize")))};
_.D5.Object.defineProperties(I0.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var H=[],U;if((U=this.data)==null||!U.carouselLockups)return H;U=_.b(this.data.carouselLockups);for(var A=U.next();!A.done;A=U.next()){A=A.value;var M=void 0;((M=_.p(A,$Np))==null?0:M.videoLockup)&&H.push(_.p(A,$Np).videoLockup)}return H}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.videoLockups)==null||!H.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var H=[],U;if((U=this.data)==null||!U.carouselLockups)return H;var A;return(A=_.p(this.data.carouselLockups[this.scrollCount],$Np))==null?void 0:A.infoRows}}});
I0.prototype.dataChanged=I0.prototype.dataChanged;I0.prototype.onIronResize=I0.prototype.onIronResize;I0.prototype.hiddenChanged=I0.prototype.hiddenChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],I0.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],I0.prototype,"componentBehavior",void 0);_.G([_.g(_.x0.YtdHorizontalListBehavior),_.q("design:type",Object)],I0.prototype,"ytdHorizontalListBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],I0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],I0.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],I0.prototype,"inlineStructuredDescription",void 0);_.G([_.y({value:2}),_.q("design:type",Number)],I0.prototype,"initialCount",void 0);_.G([_.y(),_.q("design:type",Object)],I0.prototype,"currentIndex",void 0);
_.G([_.y(),_.q("design:type",Number)],I0.prototype,"scrollCount",void 0);_.G([_.y(),_.q("design:type",Object)],I0.prototype,"supportComponentResize",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],I0.prototype,"contentHidden",void 0);_.G([_.hG("#scroll-container"),_.q("design:type",HTMLDivElement)],I0.prototype,"JSC$20439_scrollContainer",void 0);
_.G([_.Ya("contentHidden"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],I0.prototype,"hiddenChanged",null);_.G([_.a("data"),_.q("design:type",Array),_.q("design:paramtypes",[])],I0.prototype,"videoLockups",null);_.G([_.a("videoLockups"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],I0.prototype,"hasVideoLockups",null);
_.G([_.Gl("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],I0.prototype,"onIronResize",null);_.G([_.a("data","scrollCount"),_.q("design:type",Object),_.q("design:paramtypes",[])],I0.prototype,"infoRows",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],I0.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],I0);
_.e(I0,"ytd-video-description-music-section-renderer",function(){if(tEm!==void 0)return tEm;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return tEm=H},{mode:2});var ci7;var QQ=function(){return _.B.apply(this,arguments)||this};
_.R(QQ,_.B);QQ.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],QQ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],QQ.prototype,"ytRendererBehavior",void 0);_.G([_.y({}),_.q("design:type",Object)],QQ.prototype,"data",void 0);_.G([_.dX({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],QQ);
_.e(QQ,"ytd-video-description-transcript-section-renderer",function(){if(ci7!==void 0)return ci7;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return ci7=H},{mode:1});var yi8;_.LG(_.r(function(H){var U=_.$Y(_.pZM,function(){return H.data().firstProviderLinkStatusEntityKey}),A=_.$Y(_.pZM,function(){return H.data().secondProviderLinkStatusEntityKey}),M=function(){var W,w;
return((W=U())==null?void 0:W.linked)||((w=A())==null?void 0:w.linked)};
return _.Z("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.Z(_.Pb,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return H.data().sectionTitle}}),_.Z(_.Pb,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return M()?H.data().connectedMessage:H.data().notConnectedMessage}}),_.Z(_.K,{cond:M,
then:function(){return _.Z(_.YY,{data:function(){return H.data().connectedButton}},{buttonViewModel:function(W){return _.Z(_.yJ,{data:W.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.Z(_.K,{cond:function(){return!M()},
then:function(){return _.Z(_.YY,{data:function(){return H.data().notConnectedButton}},{buttonViewModel:function(W){return _.Z(_.yJ,{data:W.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"yh"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){var U=H.data;return _.Z("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.Z("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.Z(_.Pb,{text:function(){return U().sectionTitle}})),_.Z("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.Z(_.Pb,{text:function(){return U().bodyHeader}})),_.Z("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.Z(_.Pb,{text:function(){return U().bodyText}})),_.Z(_.K,{cond:function(){return U().attributionText},
then:function(){return _.Z("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.Z(_.Pb,{text:function(){return U().attributionText}}))}}))},"zh"),"how-this-was-made-section-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){return _.Z("yt-video-description-youchat-section-view-model",{class:_.CG("ytVideoDescriptionYouchatSectionViewModelHost")},_.Z("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.Z(_.Pb,{text:function(){return H.data().sectionTitle}})),_.Z("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.Z(_.Pb,{text:function(){return H.data().subHeaderText}})),_.Z("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.Z(_.yJ,{data:function(){return _.p(H.data().primaryButton,
_.ot)}})))},"Ah"),"yt-video-description-youchat-section-view-model",{props:{data:_.sY}});var VQ=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return H};
_.R(VQ,_.B);_.X=VQ.prototype;
_.X.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}}}}}};
_.X.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.X.dataChanged=function(){var H,U;this.hasDescriptionOnly=!(((H=this.data)==null?void 0:(U=H.items)==null?void 0:U.length)!==1||!_.p(this.data.items[0],Eu))};
_.X.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.X.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.X.autoFocusDescription=function(){var H;((H=_.lx().resolve(_.$V(_.af)))==null?0:H.isKeyBoardInUse())&&this.description&&_.cW(this.description)};
_.X.resize=function(){if(_.S("kevlar_disable_sd_resize"))this.JSC$20446_cardList&&_.cg(this.JSC$20446_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.cg(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.cg(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.X.scrollToSection=function(H){if(H=this.getSectionElement(H))_.yr(this.hostElement,"yt-scroll-to-watch-element",[H]),H.focus()};
_.X.getSectionElement=function(H){switch(H){case "infocards-item-section":var U;return(U=this.infocardsSection)!=null?U:null;case "transcript-item-section":var A;return(A=this.transcriptSection)!=null?A:null;case "how-this-was-made-section-item-section":var M;return(M=this.howThisWasMadeSection)!=null?M:null;case "files-item-section":var W;return(W=this.filesSection)!=null?W:null;default:return null}};
_.X.handleSetActiveItemAction=function(H){var U=_.p(H,uWh),A=U&&(U==null?void 0:U.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20446_cardList;if(U&&A){H=this.currentActiveChapter;var M=this.currentActiveProblem;U=A==null?void 0:A.getItemByIndex(U.itemIndex);var W=A=!0;U&&(U.active=!0,U.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(A=H!==U,W=!1,this.currentActiveChapter=U):(U==null?void 0:U.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(A=!1,W=M!==U,this.currentActiveProblem=U));H&&A&&(H.active=!1);M&&W&&(M.active=!1)}};
_.D5.Object.defineProperties(VQ.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.tN("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
VQ.prototype.onYtExpanderMoreTapped=VQ.prototype.onYtExpanderMoreTapped;VQ.prototype.onHiddenChanged=VQ.prototype.onHiddenChanged;VQ.prototype.dataChanged=VQ.prototype.dataChanged;VQ.prototype.panelContentVisibleChanged=VQ.prototype.panelContentVisibleChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],VQ.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],VQ.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.Qo),_.q("design:type",Object)],VQ.prototype,"ironResizableBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],VQ.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],VQ.prototype,"panelContentVisible",void 0);_.G([_.y(),_.q("design:type",Boolean)],VQ.prototype,"hasDescriptionOnly",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],VQ.prototype,"inlineStructuredDescription",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],VQ.prototype,"hidden",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],VQ.prototype,"shortsPanel",void 0);_.G([_.y(),_.q("design:type",Object)],VQ.prototype,"videoSummary",void 0);_.G([_.y(),_.q("design:type",Object)],VQ.prototype,"merchShelf",void 0);
_.G([_.a("videoSummary"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],VQ.prototype,"showVideoSummary",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],VQ.prototype,"engagementPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],VQ.prototype,"watchWhileSdp",void 0);_.G([_.hG("ytd-expandable-video-description-body-renderer"),_.q("design:type",Object)],VQ.prototype,"description",void 0);
_.G([_.hG("ytd-horizontal-card-list-renderer"),_.q("design:type",Object)],VQ.prototype,"JSC$20446_cardList",void 0);_.G([_.hG("ytd-horizontal-card-list-renderer[center-items]"),_.q("design:type",Object)],VQ.prototype,"problemWalkthroughCardList",void 0);_.G([_.hG("ytd-shelf-renderer"),_.q("design:type",Object)],VQ.prototype,"shelfSection",void 0);_.G([_.hG("ytd-video-description-music-section-renderer"),_.q("design:type",Object)],VQ.prototype,"musicMetadataSection",void 0);
_.G([_.hG("ytd-video-description-infocards-section-renderer"),_.q("design:type",Object)],VQ.prototype,"infocardsSection",void 0);_.G([_.hG("ytd-video-description-transcript-section-renderer"),_.q("design:type",Object)],VQ.prototype,"transcriptSection",void 0);_.G([_.hG("how-this-was-made-section-view-model"),_.q("design:type",Object)],VQ.prototype,"howThisWasMadeSection",void 0);_.G([_.hG("ytd-video-description-files-section-renderer"),_.q("design:type",Object)],VQ.prototype,"filesSection",void 0);
_.G([_.Ya("panelContentVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],VQ.prototype,"panelContentVisibleChanged",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],VQ.prototype,"dataChanged",null);_.G([_.Ya("hidden"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],VQ.prototype,"onHiddenChanged",null);
_.G([_.Gl("yt-expander-more-tapped"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],VQ.prototype,"onYtExpanderMoreTapped",null);_.G([_.dX({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],VQ);
_.e(VQ,"ytd-structured-description-content-renderer",function(){if(yi8!==void 0)return yi8;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return yi8=H},{mode:2});var Hp=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return H};
_.R(Hp,_.B);_.X=Hp.prototype;_.X.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"}}}};
_.X.dataChanged=function(){var H;this.descriptionToggled=!((H=this.data)==null||!H.defaultExpanded);var U;this.collapsed=this.descriptionAlwaysCollapsed||!((U=this.data)==null?0:U.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.ts(110509);this.showLessClientVe=_.ts(110510);H=_.XK();U=_.ws();H&&U&&_.F_(H,U,[this.showMoreClientVe,this.showLessClientVe])};
_.X.onYtExpanderMoreTapped=function(){var H,U=(H=this.data)==null?void 0:H.showMoreCommand;U&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(U);(H=_.XK())&&this.showMoreClientVe&&_.NY(H,this.showMoreClientVe)};
_.X.onYtExpanderLessTapped=function(){var H=_.XK();H&&this.showLessClientVe&&_.NY(H,this.showLessClientVe);var U;(H=(U=this.data)==null?void 0:U.showLessCommand)&&this.componentBehavior.resolveCommand(H)};
_.X.handleUpdateDateTextAction=function(H){this.data&&this.data.dateText&&this.set("data.dateText",_.p(H,BLj).dateText)};
_.X.handleUpdateDescriptionAction=function(H){if(H=_.p(H,_.jNh))H.isEmpty||!H.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Me(H.description)):this.set("data.description",H.description)};
_.X.onYtChangeEngagementPanelVisibilityAction=function(H){if(_.S("web_structured_description_show_more")||_.S("web_engagement_panel_open_description")){var U,A=(U=_.p(H,_.TgH))==null?void 0:U.targetId,M;H=((M=_.p(H,_.TgH))==null?void 0:M.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";A==="engagement-panel-structured-description"&&H&&(this.descriptionToggled=!0)}};
_.X.updateCollapsedFromBinding=function(H){this.collapsed=H.detail.value};
_.X.updateDescriptionToggledFromBinding=function(H){this.descriptionToggled=H.detail.value};
_.X.updateCanCollapseFromBinding=function(H){this.canCollapse=H.detail.value};
_.D5.Object.defineProperties(Hp.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var H,U,A=(H=this.data)==null?void 0:(U=H.metadataRowContainer)==null?void 0:U.metadataRowContainerRenderer;return!!A&&!!A.rows&&A.rows.length>A.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return 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}}});
Hp.prototype.onYtExpanderLessTapped=Hp.prototype.onYtExpanderLessTapped;Hp.prototype.onYtExpanderMoreTapped=Hp.prototype.onYtExpanderMoreTapped;Hp.prototype.dataChanged=Hp.prototype.dataChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Hp.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Hp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Hp.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Hp.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],Hp.prototype,"collapsed",void 0);_.G([_.y(),_.q("design:type",Boolean)],Hp.prototype,"descriptionToggled",void 0);
_.G([_.y(),_.q("design:type",Boolean)],Hp.prototype,"canCollapse",void 0);_.G([_.y(),_.q("design:type",Object)],Hp.prototype,"subscribeButtonData",void 0);_.G([_.y(),_.q("design:type",Number)],Hp.prototype,"descriptionCollapsedHeight",void 0);_.G([_.y(),_.q("design:type",Object)],Hp.prototype,"structuredDescriptionContentRenderer",void 0);_.G([_.y({value:function(){return _.S("web_watch_description_always_collapsed")}}),
_.q("design:type",Boolean)],Hp.prototype,"descriptionAlwaysCollapsed",void 0);_.G([_.hG("#description"),_.q("design:type",HTMLDivElement)],Hp.prototype,"description",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Hp.prototype,"dataChanged",null);_.G([_.Gl("yt-expander-more-tapped"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Hp.prototype,"onYtExpanderMoreTapped",null);
_.G([_.Gl("yt-expander-less-tapped"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Hp.prototype,"onYtExpanderLessTapped",null);_.G([_.a("data.metadataRowContainer"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Hp.prototype,"metadataCollapsible",null);_.G([_.a("data","structuredDescriptionContentRenderer"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Hp.prototype,"hasInlineStructuredDescription",null);
_.G([_.a("data.attributedDescription"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Hp.prototype,"hasAttributedDescription",null);_.G([_.a("hasInlineStructuredDescription","collapsed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Hp.prototype,"loadStructuredDescription",null);_.G([_.a("data","structuredDescriptionContentRenderer","collapsed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Hp.prototype,"showInlineStructuredDescription",null);
_.G([_.a("data","hasInlineStructuredDescription","metadataCollapsible"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Hp.prototype,"descriptionAlwaysCollapsible",null);
_.e(Hp,"ytd-video-secondary-info-renderer",function(){if(oz5===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);oz5=H}H=oz5;return H},{mode:2});var Blk;var Uw=function(){return _.B.apply(this,arguments)||this};
_.R(Uw,_.B);Uw.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Uw.prototype,"rendererBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],Uw.prototype,"dismissibleItemBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Uw.prototype,"rendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Uw.prototype,"data",void 0);_.G([_.dX({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],Uw);
_.e(Uw,"ytd-comment-history-entry-renderer",function(){if(Blk!==void 0)return Blk;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Blk=H},{mode:1});var riy;var Ax=function(){var H=_.B.apply(this,arguments)||this;H.isCollapsed=!1;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return H};
_.R(Ax,_.B);_.X=Ax.prototype;_.X.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.X.onDonateTap=function(){var H=this.get("data.donateButton.buttonRenderer.command");if(H){var U=_.XK(),A=this.get("data.donateButton.buttonRenderer.trackingParams");U&&A&&_.NY(U,_.IS(A));this.ytOpenPopupBehavior.openPopup(H)}};
_.X.onShowMore=function(){this.isCollapsed=!1;var H=_.XK(),U=this.get("data.expandButton.buttonRenderer.trackingParams");H&&U&&_.NY(H,_.IS(U))};
_.X.onShowLess=function(){this.isCollapsed=!0};
_.X.dataChanged=function(){_.Dt(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.X.onDarkModeToggledAction=function(H){this.isDarkTheme=H};
_.X.handleUpdate=function(H){if(H=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",H))this.set("data.startLabel",H.startLabel),this.set("data.endLabel",H.endLabel),this.set("data.progress",H.progress),this.set("data.amountRaisedLabel",H.amountRaisedLabel),this.dataChanged()};
_.X.handleOpenPopupAction=function(H){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",H)&&_.yr(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.X.computeHeaderBackgroundUrl=function(H,U){if(H)return U?H.headerBackgroundDarkUrl:H.headerBackgroundUrl};
_.X.isProgressBarVisible=function(H){return!(!H||H.progress===void 0)};
_.X.headerBackgroundClass=function(){return _.gD("HTML_DIR")==="rtl"?"flip":""};
Ax.prototype.dataChanged=Ax.prototype.dataChanged;_.G([_.g(_.e4.YtOpenPopupBehavior),_.q("design:type",Object)],Ax.prototype,"ytOpenPopupBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Ax.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Ax.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],Ax.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Ax.prototype,"isCollapsed",void 0);_.G([_.y({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.q("design:type",String)],Ax.prototype,"headerBackgroundUrl",void 0);_.G([_.y(),_.q("design:type",Boolean)],Ax.prototype,"isDarkTheme",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ax.prototype,"dataChanged",null);
_.G([_.dX({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Ax);
_.e(Ax,"ytd-donation-shelf-renderer",function(){if(riy!==void 0)return riy;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return riy=H},{mode:1});var eC7;var DQ5=function(){return _.B.apply(this,arguments)||this};
_.R(DQ5,_.B);_.G([_.y(),_.q("design:type",Object)],DQ5.prototype,"data",void 0);_.G([_.dX({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],DQ5);
_.e(DQ5,"ytd-donation-unavailable-renderer",function(){if(eC7!==void 0)return eC7;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return eC7=H},{mode:1});var $Qm;var Mm=function(){var H=_.B.apply(this,arguments)||this;H.playerListenerConfig=null;H.actionMap={"yt-show-watch-page-survey":"openSurvey"};return H};
_.R(Mm,_.B);_.X=Mm.prototype;_.X.dataChanged=function(){var H=this,U=_.Ly();U&&U.getPlayerPromise().then(function(M){H.maybeRemovePlayerListeners(M)});
var A=this.data&&this.data.survey;A&&((A=(A=A.singleOptionSurveyRenderer||A.checkboxSurveyRenderer||A.multiStageSurveyRenderer)&&A.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(U,A):this.openSurvey())};
_.X.triggerWatchPageSurvey=function(H,U){var A=this,M,W,w,d,O,f,J,F,P;return _.u(function(n){if(n.nextAddress==1)return H?n.yield(H.getPlayerPromise(),2):n.return();A.player=n.yieldResult;if(!A.player)return n.return();M={};W=_.b(U);for(w=W.next();!w.done;w=W.next())d=w.value,O=_.b(A.createEventListenerPair(d)),f=O.next().value,J=O.next().value,F=f,P=J,F&&P&&(M[F]=P,A.ytPlayerListenerBehavior.listenToPlayerEvent(A.player,F,P));A.playerListenerConfig=M;_.DO(n)})};
_.X.createEventListenerPair=function(H){var U=H.playbackEventTrigger;return U?this.handlePlaybackTrigger(U):(H=H.watchTimeTrigger)?this.handleWatchTimeTrigger(H):[void 0,void 0]};
_.X.handleWatchTimeTrigger=function(H){var U=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var A=H.videoWatchFraction,M=H.watchTimeSec;return M&&A?["onVideoProgress",function(){U.player&&U.isWatchTimeConditionMet(U.player,A,M)&&U.showSurvey()}]:[void 0,
void 0]};
_.X.isWatchTimeConditionMet=function(H,U,A){var M=H.getProgressState(),W=M.current-this.lastKnownPlaybackPosition;W<5&&(this.accumulatedMediaTime+=W);this.lastKnownPlaybackPosition=M.current;M=Math.round(this.accumulatedMediaTime/M.duration*1E3)/1E3;return H.getPresentingPlayerType&&H.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>A||M>U)};
_.X.handlePlaybackTrigger=function(H){var U=this;H=H.playbackEvent;if(H==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var A="onStateChange";var M=function(W){W===0&&U.showSurvey()}}else H==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(A="onVideoProgress",M=function(W){U.player&&U.player.getPresentingPlayerType&&U.player.getPresentingPlayerType()===1&&W&&U.showSurvey()}):H==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(A="onAdEnd",M=this.showSurvey);
return[A,M]};
_.X.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.X.openSurvey=function(){var H=this,U=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(rMk(!!U));_.Fl.addJob(function(){H.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:U}})},0,0)};
_.X.maybeRemovePlayerListeners=function(H){if(this.playerListenerConfig){for(var U=_.b(Object.keys(this.playerListenerConfig)),A=U.next();!A.done;A=U.next())A=A.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(H,A,this.playerListenerConfig[A]);this.playerListenerConfig=null}};
Mm.prototype.dataChanged=Mm.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.m1),_.q("design:type",Object)],Mm.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.g(_.nm.YtPlayerListenerBehavior),_.q("design:type",_.NM)],Mm.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Mm.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.g(_.dF),_.q("design:type",Object)],Mm.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Mm.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Mm.prototype,"playerListenerConfig",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],Mm.prototype,"lastKnownPlaybackPosition",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],Mm.prototype,"accumulatedMediaTime",void 0);_.G([_.y(),_.q("design:type",Object)],Mm.prototype,"player",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Mm.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Mm);
_.e(Mm,"ytd-survey-trigger-renderer",function(){if($Qm!==void 0)return $Qm;var H=document.createElement("template");_.E(H,"\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");H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return $Qm=H},{mode:1});var lv$;_.Qm("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Wp=function(){var H=_.B.apply(this,arguments)||this;H.role="link";H.tabindex="0";H.actionMap=_.S("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 H};
_.R(Wp,_.B);_.X=Wp.prototype;_.X.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Kf()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.X.getCurrentTheme=function(){return _.or()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Kf()};
_.X.onThemeSelected=function(H,U){var A=H||U?H:_.JG(),M=(A&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!A&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.eqc(_.DU(window.location.href));_.jb(0,165,H);_.jb(0,174,U);this.prefs.save();M&&_.yr(this.hostElement,"yt-dark-mode-toggled-action",[A]);_.yr(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.X.onTap=function(){this.data.serviceEndpoint&&_.rs(this.hostElement,[this.data.serviceEndpoint])};
_.X.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.X.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.X.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
Wp.prototype.onTap=Wp.prototype.onTap;Wp.prototype.dataChanged=Wp.prototype.dataChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Wp.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.Fa),_.q("design:type",Object)],Wp.prototype,"paperItemBehaviors",void 0);_.G([_.y(),_.q("design:type",Object)],Wp.prototype,"data",void 0);_.G([_.y({value:function(){return _.TR()}}),
_.q("design:type",_.xn)],Wp.prototype,"prefs",void 0);_.G([_.y(),_.q("design:type",Object)],Wp.prototype,"label",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Wp.prototype,"role",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Wp.prototype,"tabindex",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wp.prototype,"dataChanged",null);
_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wp.prototype,"onTap",null);_.G([_.dX({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Wp);
_.ty()(Wp,"ytd-toggle-theme-compact-link-renderer",function(){if(lv$===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);lv$=H}H=lv$;return H},{allowedProps:["data"],
mode:1});var GYk;_.Qm("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Qm("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var wd=function(){return _.B.apply(this,arguments)||this};
_.R(wd,_.B);_.X=wd.prototype;_.X.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.onKeyUp=function(H){if(H.keyCode===13)this.onTap()};
_.X.onTap=function(){this.data.recordClickEndpoint&&_.lx().resolve(_.YV).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var H=this.data.navigationEndpoint;H&&_.p(H,_.bY)&&_.lx().resolve(_.YV).resolveCommand(H,{form:{element:this.hostElement}})};
_.X.readChanged=function(){var H;_.B4(this.hostElement,"unread",!((H=this.data)==null?0:H.read))};
_.X.dataChanged=function(){this.data&&_.B4(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.X.computeThumbnailSize=function(){var H;return((H=this.data)==null?0:H.highPriorityNotification)?32:48};
_.X.getEndpointURL=function(H){return H&&!_.p(H,_.bY)?this.componentBehavior.computeHref_(H):null};
_.X.getEndpointData=function(H){return H&&!_.p(H,_.bY)?H:null};
wd.prototype.computeThumbnailSize=wd.prototype.computeThumbnailSize;wd.prototype.dataChanged=wd.prototype.dataChanged;wd.prototype.readChanged=wd.prototype.readChanged;wd.prototype.onKeyUp=wd.prototype.onKeyUp;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],wd.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],wd.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],wd.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],wd.prototype,"data",void 0);_.G([_.y({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.q("design:type",Number)],wd.prototype,"thumbnailSize",void 0);_.G([_.Gl("keyup"),_.q("design:type",Function),_.q("design:paramtypes",[KeyboardEvent]),_.q("design:returntype")],wd.prototype,"onKeyUp",null);
_.G([_.Ya("data.read"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wd.prototype,"readChanged",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wd.prototype,"dataChanged",null);_.G([_.Ya("data.highPriorityNotification"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wd.prototype,"computeThumbnailSize",null);
_.G([_.dX({is:"ytd-notification-renderer",disableElementRegistration:!0})],wd);
_.e(wd,"ytd-notification-renderer",function(){if(GYk!==void 0)return GYk;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return GYk=H},{mode:1});var YT7;var XM=function(){return _.B.apply(this,arguments)||this};
_.R(XM,_.B);XM.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"}}}};
XM.prototype.computeActionButtonClass=function(H){return!H.actionButtons||H.actionButtons.length<=1?"single-button":H.description?"vertical-buttons":"horizontal-buttons"};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],XM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],XM.prototype,"data",void 0);_.G([_.dX({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],XM);
_.e(XM,"ytd-playlist-show-metadata-renderer",function(){if(YT7!==void 0)return YT7;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return YT7=H},{mode:1});var qT5;_.Qm("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var iq=function(){return _.B.apply(this,arguments)||this};
_.R(iq,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],iq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],iq.prototype,"data",void 0);_.G([_.dX({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],iq);
_.e(iq,"ytd-purchase-item-renderer",function(){if(qT5!==void 0)return qT5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return qT5=H},{mode:1});var hCm;var kYp={};kYp.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(H){if(H)return H.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(H){if(H==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.Qm("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var bq=function(){return _.B.apply(this,arguments)||this};
_.R(bq,_.B);bq.prototype.onYtNavigate=function(H){var U=this.openPopupBehavior.getNavigationEndpointPopupAction(H.detail.endpoint);U&&(H.stopPropagation(),this.openPopupBehavior.openPopup(U))};
bq.prototype.onYtNavigate=bq.prototype.onYtNavigate;_.G([_.g(kYp.YtSimpleTextSectionBehavior),_.q("design:type",Object)],bq.prototype,"ytSimpleTextSectionBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.m1),_.q("design:type",Object)],bq.prototype,"openPopupBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],bq.prototype,"data",void 0);
_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],bq.prototype,"onYtNavigate",null);_.G([_.dX({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],bq);
_.e(bq,"ytd-simple-text-section-renderer",function(){if(hCm!==void 0)return hCm;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return hCm=H},{mode:1});var vzm;_.Qm("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var TlB=function(){return _.B.apply(this,arguments)||this};
_.R(TlB,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],TlB.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],TlB.prototype,"data",void 0);_.G([_.dX({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],TlB);
_.e(TlB,"ytd-unlimited-page-feature-info-renderer",function(){if(vzm!==void 0)return vzm;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return vzm=H},{mode:1});var jOB;var Ivh;var dd=function(){return _.B.apply(this,arguments)||this};
_.R(dd,_.B);dd.prototype.dataChanged=function(){if(this.data){var H=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);H&&(H=_.Rv(H,screen.width),this.hostElement.style.backgroundImage="url("+H+")")}};
dd.prototype.dataChanged=dd.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],dd.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],dd.prototype,"data",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dd.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],dd);
_.e(dd,"ytd-post-redemption-section-renderer",function(){if(Ivh!==void 0)return Ivh;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Ivh=H},{mode:1});var QOm;var Ow=function(){return _.B.apply(this,arguments)||this};
_.R(Ow,_.B);Ow.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ow.prototype,"data",void 0);_.G([_.dX({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Ow);
_.e(Ow,"ytd-ypc-post-redemption-renderer",function(){if(QOm!==void 0)return QOm;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return QOm=H},{mode:1});_.Qm("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var uq=function(){var H=_.B.apply(this,arguments)||this;H.MIN_CODE_LENGTH=12;H.MAX_CODE_LENGTH=24;return H};
_.R(uq,_.B);_.X=uq.prototype;_.X.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.X.created=function(){this.riskService=new _.roK;this.loadPaymentThenable=_.D0K(_.gD("YPC_MB_URL"))};
_.X.ready=function(){var H=this;this.code.addEventListener("keypress",function(U){H.onCodeInputKeypress(U)})};
_.X.dataChanged=function(){var H=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(U){U=_.b(U);for(var A=U.next();!A.done;A=U.next())A=A.value,A.type==="attributes"&&A.attributeName==="dark"&&H.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.X.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var H=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+H+")")}};
_.X.computeRedeemButton=function(H){(H=this.get("redeemButton.buttonRenderer",H))&&(H=Object.assign({},H,{serviceEndpoint:void 0}));return H};
_.X.onRedeemButtonTap=function(H){H.stopPropagation();lHh();this.redeemCode()};
_.X.redeemCode=function(){var H=this;this.isLoading=!0;var U=this.riskService.init();_.iR([U,this.loadPaymentThenable]).then(function(){var A=H.data.redeemButton.buttonRenderer.serviceEndpoint,M=_.ec0(),W=_.mu.payments.business.integration.ClientTokenFactory.createClientToken(_.p(A,_.y6r).countryCode,M);M={c:H.code.value.trim(),rd:window.btoa(M),ctk:W};A&&_.lx().resolve(_.YV).resolveCommand(A,{form:Object.assign({},M,{element:H.hostElement})})},function(){H.showGenericError();
GRY("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.za(Error("Al"))})};
_.X.onYtServiceRequestCompleted=function(H){H.stopPropagation();this.isLoading=!1;var U,A;this.errorMessage=(U=H.detail)==null?void 0:(A=U.data)==null?void 0:A.errorMessage;var M,W;this.postRedemptionRenderer=(M=H.detail)==null?void 0:(W=M.data)==null?void 0:W.renderer;var w,d;if(H=(w=H.detail)==null?void 0:(d=w.data)==null?void 0:d.redirectEndpoint)this.isLoading=!0,_.cg(this.hostElement,"yt-navigate",{endpoint:H});this.errorMessage?GRY("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
H)&&wC("ypcRedeemFlowSucceeded")};
_.X.onYtServiceRequestError=function(H){H.stopPropagation();this.isLoading=!1;if(H=this.get("detail.error.message",H))this.errorMessage=_.Nh(H);GRY("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.X.onInvokeInstrumentManagerActionCompleted=function(H){H.stopPropagation();this.redeemCode()};
_.X.onInvokeInstrumentManagerActionError=function(H){H.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",H)){case "instrumentManagerLoadError":this.showGenericError();GRY("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();GRY("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":wC("ypcRedeemFlowCancelled")}};
_.X.onInput=function(){var H=this;_.F8(this,"onInput",function(){var U=H.code.value.trim();H.redeemButtonDisabled=U.length<H.MIN_CODE_LENGTH||U.length>H.MAX_CODE_LENGTH},200)};
_.X.onCodeInputKeypress=function(H){H.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(lHh(),this.redeemCode())};
_.X.computeImageUrl=function(H){return H?_.Rv(H.thumbnails,600):null};
_.X.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
uq.prototype.onInvokeInstrumentManagerActionError=uq.prototype.onInvokeInstrumentManagerActionError;uq.prototype.onInvokeInstrumentManagerActionCompleted=uq.prototype.onInvokeInstrumentManagerActionCompleted;uq.prototype.onYtServiceRequestError=uq.prototype.onYtServiceRequestError;uq.prototype.onYtServiceRequestCompleted=uq.prototype.onYtServiceRequestCompleted;uq.prototype.dataChanged=uq.prototype.dataChanged;
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],uq.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],uq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],uq.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],uq.prototype,"isLoading",void 0);_.G([_.y(),_.q("design:type",Boolean)],uq.prototype,"redeemButtonDisabled",void 0);
_.G([_.y(),_.q("design:type",Object)],uq.prototype,"errorMessage",void 0);_.G([_.y(),_.q("design:type",Object)],uq.prototype,"postRedemptionRenderer",void 0);_.G([_.y(),_.q("design:type",Object)],uq.prototype,"observer",void 0);_.G([_.hG("#code"),_.q("design:type",HTMLInputElement)],uq.prototype,"code",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uq.prototype,"dataChanged",null);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],uq.prototype,"onYtServiceRequestCompleted",null);_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],uq.prototype,"onYtServiceRequestError",null);
_.G([_.Gl("yt-invoke-instrument-manager-action-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],uq.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.G([_.Gl("yt-invoke-instrument-manager-action-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],uq.prototype,"onInvokeInstrumentManagerActionError",null);_.G([_.dX({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],uq);
_.e(uq,"ytd-redeem-code-renderer",function(){if(jOB!==void 0)return jOB;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return jOB=H},{mode:1});var VEf;_.Qm("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Zi=function(){var H=_.B.apply(this,arguments)||this;H.businessEmailDisplayState="HIDE_SECTION";return H};
_.R(Zi,_.B);_.X=Zi.prototype;_.X.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}}}}}};
_.X.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"};
_.X.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.X.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.f1(_.BfK),this.businessEmailDisplayState="CAPTCHA"))};
_.X.onYtServiceRequestCompleted=function(H){var U;if((U=H.detail.data)==null?0:U.businessEmail)this.businessEmail=H.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var A;if((A=H.detail.data)==null?0:A.errorMessage)this.businessEmailErrorMessage=H.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.X.computeEmailHref=function(H){return"mailto:"+H};
_.X.computeSafeUrl=function(H){if(H)return _.j3(H)};
_.X.onBusinessEmailCaptchaSubmit=function(){var H;(H=this.data)!=null&&H.onBusinessEmailRevealClickCommand&&(H=this.JSC$20506_captchaTextarea.value)&&(H={recaptcha_response_token:H,channel_id:this.data.channelId},_.lx().resolve(_.YV).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},H,{element:this.hostElement})}))};
_.X.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.D5.Object.defineProperties(Zi.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 H,U;return!((H=this.data)==null||!H.primaryLinks)&&!((U=this.data)==null?0:U.links)&&this.data.primaryLinks.every(function(A){return A.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var H,U;return!((H=this.data)==null||!H.primaryLinks)&&!((U=this.data)==null?0:U.links)&&!this.shouldShowNewLinks}}});
Zi.prototype.onYtServiceRequestCompleted=Zi.prototype.onYtServiceRequestCompleted;Zi.prototype.dataChanged=Zi.prototype.dataChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Zi.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Zi.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.hG("#g-recaptcha-response"),_.q("design:type",HTMLTextAreaElement)],Zi.prototype,"JSC$20506_captchaTextarea",void 0);_.G([_.y(),_.q("design:type",Object)],Zi.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],Zi.prototype,"businessEmailDisplayState",void 0);_.G([_.y(),_.q("design:type",String)],Zi.prototype,"businessEmail",void 0);_.G([_.y(),_.q("design:type",String)],Zi.prototype,"businessEmailErrorMessage",void 0);
_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Zi.prototype,"hideDetailsSection",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Zi.prototype,"dataChanged",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Zi.prototype,"shouldShowNewLinks",null);_.G([_.a("data","shouldShowLinks"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Zi.prototype,"shouldShowLegacyLinks",null);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Zi.prototype,"onYtServiceRequestCompleted",null);_.G([_.dX({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Zi);
_.e(Zi,"ytd-channel-about-metadata-renderer",function(){if(VEf!==void 0)return VEf;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return VEf=H},{mode:1});var Hgj;_.Qm("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var fz=function(){return _.B.apply(this,arguments)||this};
_.R(fz,_.B);fz.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",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],fz.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Number)],fz.prototype,"lockupContainerType",void 0);_.G([_.y(),_.q("design:type",String)],fz.prototype,"thumbnailFixedWidth",void 0);
_.G([_.dX({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],fz);
_.e(fz,"ytd-channel-featured-content-renderer",function(){if(Hgj!==void 0)return Hgj;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Hgj=H},{mode:1});var UOB;_.Qm("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Jx=function(){var H=_.B.apply(this,arguments)||this;H.roundContainer=!0;H.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return H};
_.R(Jx,_.B);_.X=Jx.prototype;_.X.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.X.dataChanged=function(){this.imageWidth=this.imageHeight=24;var H=this.data;H.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!H.style&&H.image&&H.image.thumbnails.length&&(H=H.image.thumbnails[0],this.imageWidth=H.width||0,this.imageHeight=H.height||0)};
_.X.computeSource=function(H){return H.secondarySource?_.Sp(H.secondarySource):_.Sp(H.source)};
_.X.computeClarifyStyle=function(H){return H?H.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.X.isLargeStyle=function(H){return H==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.X.computeBackgroundStyle=function(H){return H?H.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.X.computeHasActionButton=function(H){return!!H.actionButton};
_.X.computeHasBottomSection=function(H){return!!H.ctaHasBottomSection};
_.X.computeIsSourceMissing=function(H){return H.ctaHasBottomSection===!1?!0:H&&this.computeSource(H)?!1:!0};
_.X.computeSecondaryEndpoint=function(H){return H.secondaryEndpoint||H.endpoint};
Jx.prototype.dataChanged=Jx.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Jx.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Number)],Jx.prototype,"imageWidth",void 0);_.G([_.y(),_.q("design:type",Number)],Jx.prototype,"imageHeight",void 0);
_.G([_.y({computed:"computeSecondaryEndpoint(data)"}),_.q("design:type",Object)],Jx.prototype,"secondaryEndpoint",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.q("design:type",Boolean)],Jx.prototype,"hasActionButton",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.q("design:type",Boolean)],Jx.prototype,"hasBottomSection",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.q("design:type",Boolean)],Jx.prototype,"missingSource",void 0);_.G([_.y({computed:"computeIcon_(data.icon)"}),_.q("design:type",String)],Jx.prototype,"icon",void 0);_.G([_.y({computed:"computeIcon_(data.secondaryIcon)"}),_.q("design:type",String)],Jx.prototype,"secondaryIcon",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.q("design:type",String)],Jx.prototype,"clarifyStyle",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.q("design:type",String)],Jx.prototype,"backgroundStyle",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Jx.prototype,"roundContainer",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Jx.prototype,"amsterdamEnabled",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Jx.prototype,"dataChanged",null);
_.G([_.dX({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Jx);
_.e(Jx,"ytd-clarification-renderer",function(){if(UOB!==void 0)return UOB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return UOB=H},{mode:1});var A5m;_.Qm("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var Kz=function(){return _.B.apply(this,arguments)||this};
_.R(Kz,_.B);_.X=Kz.prototype;_.X.computeHasPrimaryIcon=function(H){return!(!H.icon&&!H.thumbnail)};
_.X.computeHasSecondary=function(H){return!(!H.secondaryIcon&&!H.secondaryNotificationText)};
_.X.computeHideSecondaryString=function(H){return!_.S("disable_hide_empty_secondary_string")&&!H.secondaryNotificationText};
_.X.computeCompactLinkStyle=function(H){return H?H.toLowerCase().replace(/_/g,"-"):""};
_.X.computeHasFitHeight=function(H){return H==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.X.isActiveEndpoint=function(H){return(H=this.get("commandMetadata.webCommandMetadata.url",H))?_.DU(window.location.href)!=="/account_transfer_channel"&&_.DU(window.location.href)!=="/gaia_link"&&_.DU(window.location.href)!=="/channel_switcher"||H!=="/account"?_.DU(window.location.href)===H:!0:!1};
_.X.onTap=function(){var H;((H=this.data)==null?0:H.serviceEndpoint)&&_.rs(this.hostElement,[this.data.serviceEndpoint])};
Kz.prototype.onTap=Kz.prototype.onTap;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Kz.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.q("design:type",Boolean)],Kz.prototype,"active",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.q("design:type",String)],Kz.prototype,"compactLinkStyle",void 0);
_.G([_.y({computed:"computeIcon_(data.icon)"}),_.q("design:type",Object)],Kz.prototype,"icon",void 0);_.G([_.y({computed:"computeIcon_(data.secondaryIcon)"}),_.q("design:type",Object)],Kz.prototype,"secondaryIcon",void 0);_.G([_.y({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Kz.prototype,"hasSecondary",void 0);_.G([_.y({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Kz.prototype,"hideSecondaryString",void 0);
_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Kz.prototype,"onTap",null);_.G([_.dX({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],Kz);
_.e(Kz,"ytd-compact-link-renderer",function(){if(A5m!==void 0)return A5m;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return A5m=H},{mode:1});var M0k;var WCk;var oI=function(){var H=_.B.apply(this,arguments)||this;H.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return H};
_.R(oI,_.B);_.X=oI.prototype;_.X.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.X.computeIcon=function(H){return H?"yt-icons:"+H.toLowerCase():null};
_.X.computeUseContacts=function(H){return!!H.contacts&&H.contacts.length>0};
_.X.computePhoneContact=function(H){var U,A;return(U=H.contacts)==null?void 0:(A=U.find(function(M){var W;return(M==null?void 0:(W=M.icon)==null?void 0:W.iconType)==="PHONE"}))==null?void 0:A.actionText};
_.X.computeSmsContact=function(H){var U,A;return(U=H.contacts)==null?void 0:(A=U.find(function(M){var W;return(M==null?void 0:(W=M.icon)==null?void 0:W.iconType)==="SMS"}))==null?void 0:A.actionText};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],oI.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],oI.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],oI.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],oI.prototype,"amsterdamEnabled",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.q("design:type",Boolean)],oI.prototype,"useContacts",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.q("design:type",String)],oI.prototype,"phoneContact",void 0);_.G([_.dX({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],oI);
_.e(oI,"ytd-single-action-emergency-support-renderer",function(){if(WCk!==void 0)return WCk;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return WCk=H},{mode:1});_.Qm("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var FM=function(){var H=_.B.apply(this,arguments)||this;H.roundedContainer=!0;H.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return H};
_.R(FM,_.B);FM.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"}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],FM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],FM.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],FM.prototype,"roundedContainer",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],FM.prototype,"amsterdamEnabled",void 0);
_.G([_.dX({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],FM);
_.e(FM,"ytd-emergency-onebox-renderer",function(){if(M0k!==void 0)return M0k;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return M0k=H},{mode:1});var ww5;_.Qm("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Pp=function(){return _.B.apply(this,arguments)||this};
_.R(Pp,_.B);Pp.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"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Pp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Pp.prototype,"data",void 0);_.G([_.dX({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Pp);
_.e(Pp,"ytd-exploratory-results-renderer",function(){if(ww5!==void 0)return ww5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return ww5=H},{mode:1});var Xw7;_.Qm("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var sw=function(){var H=_.B.apply(this,arguments)||this;H.messageData=null;return H};
_.R(sw,_.B);_.X=sw.prototype;_.X.onServiceRequestCompleted=function(H,U){H=U.actions||[];U=0;for(var A=H.length;U<A;U++){var M=H[U],W=void 0,w=void 0;if((W=_.p(M,_.hf))==null?0:(w=W.item)==null?0:w.messageRenderer)this.messageData=_.p(M,_.hf).item.messageRenderer}};
_.X.dataChanged=function(){var H=this.data;this.hostElement.hidden=!1;_.B4(this.hostElement,"is-channel",H&&!H.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.X.computeThumbnailWidth=function(H){return H?126:56};
_.X.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.X.onSubmitTap=function(){var H=this.data,U=this.selectedResponseIndex;H!==void 0&&U!==void 0&&(H=H.responses[U],H.responseData&&_.lx().resolve(_.YV).resolveCommand(H.responseData,{form:{element:this.hostElement}}))};
_.X.onDismissTap=function(){this.hostElement.hidden=!0;var H=this.data;H!==void 0&&H.dismissalEndpoint&&_.lx().resolve(_.YV).resolveCommand(H.dismissalEndpoint,{form:{element:this.hostElement}})};
_.X.updateSelectedResponseIndexFromBinding=function(H){this.selectedResponseIndex=H.detail.value};
sw.prototype.onSelectedResponseIndexChange=sw.prototype.onSelectedResponseIndexChange;sw.prototype.dataChanged=sw.prototype.dataChanged;sw.prototype.onServiceRequestCompleted=sw.prototype.onServiceRequestCompleted;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],sw.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],sw.prototype,"messageData",void 0);
_.G([_.y(),_.q("design:type",Number)],sw.prototype,"selectedResponseIndex",void 0);_.G([_.hG("#submit-button"),_.q("design:type",HTMLButtonElement)],sw.prototype,"submitButton",void 0);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],sw.prototype,"onServiceRequestCompleted",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sw.prototype,"dataChanged",null);
_.G([_.Ya("selectedResponseIndex"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sw.prototype,"onSelectedResponseIndexChange",null);_.G([_.dX({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],sw);
_.e(sw,"ytd-feedback-elicitation-single-question-renderer",function(){if(Xw7!==void 0)return Xw7;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Xw7=H},{mode:1});var ig8;var nz=function(){return _.B.apply(this,arguments)||this};
_.R(nz,_.B);nz.prototype.computeIconType=function(H){return H?"yt-icons:"+H.toLowerCase():null};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],nz.prototype,"data",void 0);_.G([_.dX({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],nz);
_.e(nz,"ytd-limited-state-message-renderer",function(){if(ig8!==void 0)return ig8;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return ig8=H},{mode:1});var bgX;var Nm=function(){return _.B.apply(this,arguments)||this};
_.R(Nm,_.B);Nm.prototype.computeThumbnailWidth=function(H){return H?602:428};
Nm.prototype.updateWideFromBinding=function(H){this.wide=H.detail.value};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Nm.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Nm.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],Nm.prototype,"wide",void 0);_.G([_.dX({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Nm);
_.e(Nm,"ytd-newspaper-hero-video-renderer",function(){if(bgX!==void 0)return bgX;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return bgX=H},{mode:1});var dOp;var Ogf=function(){return _.B.apply(this,arguments)||this};
_.R(Ogf,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ogf.prototype,"rendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ogf.prototype,"data",void 0);_.G([_.dX({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],Ogf);
_.e(Ogf,"ytd-newspaper-mini-video-renderer",function(){if(dOp!==void 0)return dOp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return dOp=H},{mode:1});var u97;_.Qm("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Sn=function(){return _.B.apply(this,arguments)||this};
_.R(Sn,_.B);Sn.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"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Sn.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Sn.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Sn.prototype,"data",void 0);_.G([_.dX({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Sn);
_.e(Sn,"ytd-newspaper-renderer",function(){if(u97!==void 0)return u97;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return u97=H},{mode:1});var Zg5;_.Qm("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var pz=function(){var H=_.B.apply(this,arguments)||this;H.isSegment=!1;H.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};H.nextContinuation={continuationType:"playlistVideoListContinuation"};return H};
_.R(pz,_.B);_.X=pz.prototype;_.X.created=function(){var H=this;this.JSC$20545_ytReorderableController=new _.REH(101,function(U){H.handleDrop(U)})};
_.X.attached=function(){_.lx();var H;(H=_.lx().resolve(_.$V(_.M4)))!=null&&(H.playlistVideoListElement=this.hostElement)};
_.X.detached=function(){var H;(H=_.lx().resolve(_.$V(_.M4)))!=null&&(H.playlistVideoListElement=void 0);H=_.lx().resolve(_.$V(_.lr));_.S("web_enable_voting_animation")&&H&&(H.parentElem=void 0,H.videos=[],H.continuationsPresent=!1,H.showRefreshPill=!1);_.k0(this.JSC$20545_ytReorderableController)};
_.X.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"}}}}}};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.X.dataChanged=function(){var H=_.lx().resolve(_.$V(_.lr));if(_.S("web_enable_voting_animation")&&this.data&&H){var U=_.c4(this.hostElement).querySelector("#contents");U&&(H.parentElem=U);H.addVideos(this.data.contents)}_.k0(this.JSC$20545_ytReorderableController)};
_.X.onRendererstamperFinished=function(){this.canReorder&&_.ELB(this.JSC$20545_ytReorderableController,_.c4(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.X.onPlaylistReloading=function(){this.isReloading=!0};
_.X.onUpdateSetVideoId=function(H){if(H.detail&&this.data&&this.data.contents){var U=H.detail;H=this.data.contents.findIndex(function(W){var w;return((w=W.playlistVideoRenderer)==null?void 0:w.videoId)===U.videoId});
if(!(H<0)&&U.setVideoId&&(this.set("data.contents."+H+".playlistVideoRenderer.setVideoId",U.setVideoId),_.S("web_enable_voting_animation"))){var A;if(H=_.p((A=this.data.contents[H].playlistVideoRenderer)==null?void 0:A.engagementBar,_.MT7)){var M;(M=H.actions)==null||M.forEach(function(W){if(W=_.p(W,_.W0c))W.itemId=U.setVideoId})}(A=_.lx().resolve(_.$V(_.lr)))&&QwX(A,U.videoId,U.setVideoId)}}};
_.X.computeContentsClass=function(H){return H?"reloading":""};
_.X.computeIsSortable=function(H,U){return H&&U>0&&!this.isSegment&&!_.S("shorts_in_playlists_web")};
_.X.computeIsEditable=function(H){return H};
_.X.computeCanReorder=function(H){return H};
_.X.handlePlaylistRemoveVideosAction=function(H){if(this.get("playlistRemoveVideosAction.setVideoIds",H)&&this.data&&this.data.contents){H=_.p(H,_.VfH).setVideoIds;for(var U=this.data.contents.length-1;U>=0;){var A=this.data.contents[U].playlistVideoRenderer;A&&A.setVideoId&&H.includes(A.setVideoId)&&this.splice("data.contents",U,1);U--}_.yr(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.X.updateIndices=function(){if(this.data&&this.data.contents)for(var H=0;H<this.data.contents.length;H++)this.set("data.contents."+H+".playlistVideoRenderer.index",_.Nh(String(H+1)))};
_.X.handleDrop=function(H){H=H.currDragItem;var U=_.cF(H.parentNode.childNodes,H),A=this.data.contents.splice(Number(_.Sp(H.data.index))-1,1)[0];this.data.contents.splice(U,0,A);U=U?this.get("contents."+(U-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();H=this.buildReorderServiceEndpoint(H.data.setVideoId,U);this.ytComponentBehavior.resolveCommand(H)};
_.X.buildReorderServiceEndpoint=function(H,U){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",H),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",U),this.data.onReorderEndpoint):null};
_.X.handleUpdatePlaylistAction=function(H){var U;(H=_.p((U=_.p(H,_.HH2))==null?void 0:U.updatedRenderer,_.Abw))&&this.canReorder!==H.canReorder&&this.set("data.canReorder",H.canReorder);H&&H.contents&&(this.set("data.contents",H.contents),this.isReloading=!1);H&&H.continuations&&this.set("data.continuations",H.continuations)};
_.X.handleAddRendererToItemSectionAction=function(H){var U,A=(U=_.p(H,luk))==null?void 0:U.renderer,M;A&&((M=_.p(H,luk))==null?void 0:M.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,A),H=_.lx().resolve(_.$V(_.lr)),_.S("web_enable_voting_animation")&&H&&(A&&(U=_.Aoh(A))&&H.recommendedVideos.push({itemId:U,videoId:_.wmK(A),voteCount:_.Xmh(A),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.X.isVotingEnabledOnPlaylist=function(H){if(!H)return!1;H=_.b(H);for(H=H.next();!H.done;H=H.next()){var U=void 0;return!!_.p((U=H.value.playlistVideoRenderer)==null?void 0:U.engagementBar,_.MT7)}return!1};
_.X.onAppendContinuationItemsActionFinished=function(){var H;this.isVotingEnabledOnPlaylist((H=this.data)==null?void 0:H.contents)&&(this.updateIndices(),H=_.lx().resolve(_.$V(_.lr)),_.S("web_enable_voting_animation")&&H&&this.data&&H.addVideos(this.data.contents))};
_.X.updateVideoData=function(H){if(H.detail&&this.data&&this.data.contents){var U=H.detail;H=U.toIdx;var A=U.itemId,M=U.newVoteCount,W=U.voteStatus;U=U.hideItem;var w,d,O=(w=this.data)==null?void 0:(d=w.contents)==null?void 0:d.findIndex(function(P){return _.Aoh(P)===A});
if(!(O<0)){w=this.data.contents[O];var f;if((f=w.playlistVideoRenderer)==null?0:f.voteCount)w.playlistVideoRenderer.voteCount=M;var J;if(f=_.p((J=w.playlistVideoRenderer)==null?void 0:J.engagementBar,_.MT7)){var F;(F=f.actions)==null||F.forEach(function(P){(P=_.p(P,_.W0c))&&P.initialState&&(P.initialState.votes=M,P.initialState.status=W)})}this.data.contents.splice(O,1);
U||this.data.contents.splice(H,0,w);this.updateIndices()}}};
pz.prototype.updateVideoData=pz.prototype.updateVideoData;pz.prototype.onAppendContinuationItemsActionFinished=pz.prototype.onAppendContinuationItemsActionFinished;pz.prototype.onUpdateSetVideoId=pz.prototype.onUpdateSetVideoId;pz.prototype.onPlaylistReloading=pz.prototype.onPlaylistReloading;pz.prototype.onRendererstamperFinished=pz.prototype.onRendererstamperFinished;pz.prototype.dataChanged=pz.prototype.dataChanged;
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],pz.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.Eq.YtNextContinuationBehavior),_.q("design:type",Object)],pz.prototype,"ytNextContinuationBehavior",void 0);
_.G([_.g(_.RG),_.q("design:type",Object)],pz.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],pz.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],pz.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],pz.prototype,"isReloading",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],pz.prototype,"isSegment",void 0);
_.G([_.y({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.q("design:type",Boolean)],pz.prototype,"isSortable",void 0);_.G([_.y({computed:"computeIsEditable(data.isEditable)"}),_.q("design:type",Boolean)],pz.prototype,"isEditable",void 0);_.G([_.y({computed:"computeCanReorder(data.canReorder)"}),_.q("design:type",Boolean)],pz.prototype,"canReorder",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pz.prototype,"dataChanged",null);_.G([_.Gl("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pz.prototype,"onRendererstamperFinished",null);_.G([_.Gl("yt-playlist-reloading"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pz.prototype,"onPlaylistReloading",null);
_.G([_.Gl("yt-update-set-video-id"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],pz.prototype,"onUpdateSetVideoId",null);_.G([_.Gl("yt-append-continuation-items-action-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pz.prototype,"onAppendContinuationItemsActionFinished",null);
_.G([_.Gl("yt-update-video-data-voting-animation"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],pz.prototype,"updateVideoData",null);_.G([_.dX({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],pz);
_.e(pz,"ytd-playlist-video-list-renderer",function(){if(Zg5!==void 0)return Zg5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Zg5=H},{mode:2});var fV5;var Lz=function(){return _.B.apply(this,arguments)||this};
_.R(Lz,_.B);Lz.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"}}}}};
Lz.prototype.onTextWrapperTap=function(H){var U=this.data&&this.data.navigationEndpoint;U&&!_.ny(_.Lf(H),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.cg(this.hostElement,"yt-navigate",{endpoint:U})};
Lz.prototype.dataChanged=function(){var H=this.get("data.offerButton.buttonRenderer.serviceEndpoint");H&&H.commandMetadata&&_.p(H.commandMetadata,_.Im)&&_.p(H.commandMetadata,_.Im).fireAutomatically&&_.lx().resolve(_.YV).resolveCommand(H,{form:{element:this.hostElement}})};
Lz.prototype.dataChanged=Lz.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.PA),_.q("design:type",Object)],Lz.prototype,"ytdLockupBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Lz.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.q("design:type",Boolean)],Lz.prototype,"useBiggerThumbs",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.kV("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],Lz.prototype,"biggerThumbsStyle",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Lz.prototype,"leftAligned",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Lz.prototype,"dataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Lz);
_.e(Lz,"ytd-movie-renderer",function(){if(fV5!==void 0)return fV5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return fV5=H},{mode:1});var J5y={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(H){if(H&&H.length==1&&Array.isArray(H[0].loggingUrls)){H=_.dG.unsafeClone(H[0]);var U=this.macros||{},A=this.getAdModuleClient_();if(!A)return _.DH();H.loggingUrls.forEach(function(M){if(M.baseUrl){var W=M.baseUrl;var w=U;w=w===void 0?{}:w;W=A.getOptions().includes("replaceUrlMacros")?_.lPy(A,"replaceUrlMacros",{url:W,additionalMapping:w}):W;M.baseUrl=W}},this);
H=[H]}return _.rs(this.hostElement,H)},
getAdModuleClient_:function(){var H=_.Ly(this);return H?(H=H.getPlayer())?new _.Xu(H):null:null}}]};var KCk;var RI=function(){var H=_.B.apply(this,arguments)||this;H.modern=_.S("web_modern_buttons");H.buttonOverrides={style:"call-to-action",type:"filled"};return H};
_.R(RI,_.B);RI.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=_.wn(this.data.backgroundColor)))};
RI.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var H=this.getFormattedStringLoggingDirectives(this.data.headline);H&&this.rendererBehavior.logExplicitClick(H)}};
RI.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var H=this.getFormattedStringLoggingDirectives(this.data.description);H&&this.rendererBehavior.logExplicitClick(H)}};
RI.prototype.getFormattedStringLoggingDirectives=function(H){return H&&H.runs&&H.runs.length>0&&H.runs[0]&&H.runs[0].loggingDirectives?H.runs[0].loggingDirectives:null};
RI.prototype.dataChanged=RI.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],RI.prototype,"rendererBehavior",void 0);_.G([_.g(J5y.YtMacroReplacementBehavior),_.q("design:type",Object)],RI.prototype,"macroReplacementBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],RI.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],RI.prototype,"navigationEndpoint",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],RI.prototype,"enableColors",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],RI.prototype,"modern",void 0);_.G([_.y(),_.q("design:type",Object)],RI.prototype,"buttonOverrides",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],RI.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],RI);
_.e(RI,"ytd-action-basic-immersive-content-renderer",function(){if(KCk!==void 0)return KCk;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return KCk=H},{mode:1});var oEB;var FCX;var Ew=function(){return _.B.apply(this,arguments)||this};
_.R(Ew,_.B);Ew.prototype.dataChanged=function(){var H;((H=this.data)==null?void 0:H.backgroundColor)!==void 0&&_.Dt(this.hostElement,{"--bgu-color":_.wn(this.data.backgroundColor)})};
Ew.prototype.onImageTileClick=function(){var H;((H=this.data)==null?0:H.navigationEndpoint)&&_.cg(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var U;((U=this.data)==null?0:U.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.D5.Object.defineProperties(Ew.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var H;if(((H=this.data)==null?void 0:H.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 H;return((H=this.data)==null?void 0:H.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var H,U,A;if(((H=this.data)==null?void 0:(U=H.detailsLine)==null?void 0:U.texts)!=null&&((A=this.data)==null?void 0:A.detailsLine.texts.length)>0){var M;return(M=this.data)==null?void 0:M.detailsLine.texts.map(function(W){return W.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var H,U,A;if(((H=this.data)==null?void 0:(U=H.optionalDetailsLine)==null?void 0:U.texts)!=null&&((A=this.data)==null?void 0:A.optionalDetailsLine.texts.length)>0){var M;return(M=this.data)==null?void 0:M.optionalDetailsLine.texts.map(function(W){return W.text}).join("")}return null}}});
Ew.prototype.dataChanged=Ew.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ew.prototype,"rendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Ew.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ew.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data.backgroundColor"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Ew.prototype,"hasBackgroundColor",null);
_.G([_.a("data.objectFit"),_.q("design:type",Object),_.q("design:paramtypes",[])],Ew.prototype,"getObjectFit",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.tileRenderingStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Ew.prototype,"hasTileMetadata",null);_.G([_.a("data.detailsLine"),_.q("design:type",Object),_.q("design:paramtypes",[])],Ew.prototype,"getSecondaryDetails",null);
_.G([_.a("data.optionalDetailsLine"),_.q("design:type",Object),_.q("design:paramtypes",[])],Ew.prototype,"getOptionalDetails",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ew.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Ew);
_.e(Ew,"ytd-image-tile-renderer",function(){if(FCX!==void 0)return FCX;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return FCX=H},{mode:1});var Ppk;var mx=function(){return _.B.apply(this,arguments)||this};
_.R(mx,_.B);mx.prototype.getOpenLinkIcon=function(){return _.S("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
mx.prototype.onSitelinkTap=function(){_.cg(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.S("kevlar_command_handler_migration_killswitch"))_.eb(this.hostElement,this.data.clickCommands,this.hostElement);else for(var H=_.b(this.data.clickCommands),U=H.next();!U.done;U=H.next())this.ytComponentBehavior.resolveCommand(U.value)};
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],mx.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],mx.prototype,"rendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],mx.prototype,"data",void 0);_.G([_.dX({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],mx);
_.e(mx,"ytd-sitelink-renderer",function(){if(Ppk!==void 0)return Ppk;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Ppk=H},{mode:1});var gd=function(){var H=_.B.apply(this,arguments)||this;H.paddingFix=_.S("enable_ads_web_ep_buenos_aires_and_padding_fix");return H};
_.R(gd,_.B);gd.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"}}}};
gd.prototype.dataChanged=function(){var H=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(U){U.clickTrackingParams&&delete U.clickTrackingParams;H.ytMacroReplacementBehavior.sendServiceRequestAction([U])})};
gd.prototype.shouldHideFooter=function(H){return!(H&&_.S("use_ads_engagement_panel_desktop_footer_cta"))};
_.D5.Object.defineProperties(gd.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.data)==null?void 0:H.imageTileRenderers)===void 0||((U=this.data)==null?void 0:U.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(A){var M;return(M=_.p(A,etf))==null?void 0:M.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.data)==null?void 0:H.imageTileRenderers)===void 0||((U=this.data)==null?void 0:U.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(A){var M;return((M=_.p(A,etf))==null?void 0:M.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
gd.prototype.dataChanged=gd.prototype.dataChanged;_.G([_.g(J5y.YtMacroReplacementBehavior),_.q("design:type",Object)],gd.prototype,"ytMacroReplacementBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],gd.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],gd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],gd.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],gd.prototype,"paddingFix",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data.imageTileRenderers"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],gd.prototype,"removeBorderFromImageTiles",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.imageTileRenderers"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],gd.prototype,"useFooteredMetadataRenderingStyle",null);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gd.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],gd);
_.e(gd,"ytd-action-engagement-panel-content-renderer",function(){if(oEB!==void 0)return oEB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return oEB=H},{mode:1});var s8h;var nE$=_.r(function(H){var U=H.data;var A=H.customCommandResolver;return _.Z("ad-grid-card-image-full-metadata-view-model",{class:function(){var M;return((M=U().interaction)==null?0:M.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.sB(_.eD({visibilityCallback:function(M){var W,w=(W=U().interaction)==null?void 0:W.onFirstVisible;M&&w&&_.uj(w)},
showOption:_.Cj}),_.d7(function(){return U().interaction},A)),
"aria-label":function(){var M,W;return(M=U().interaction)==null?void 0:(W=M.accessibility)==null?void 0:W.label}},_.Z("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.Z(_.YY,{data:function(){return U().adImage}},{adImageViewModel:function(M){return _.Z(_.c6,{data:M.data,
customCommandResolver:A})}})),_.Z("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.Z(_.K,{cond:function(){return U().headline},
then:function(M){return _.Z(_.Pb,{text:M,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.Z(_.K,{cond:function(){return U().detailsLine},
then:function(M){return _.Z("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.Z(_.YY,{data:M},{adDetailsLineViewModel:function(W){return _.Z(_.lh,{data:W.data,customCommandResolver:A,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.Z(_.K,{cond:function(){return U().secondaryDetailsLine},
then:function(M){return _.Z("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.Z(_.YY,{data:M},{adDetailsLineViewModel:function(W){return _.Z(_.lh,{data:W.data,customCommandResolver:A,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Bh");var Nyk=_.r(function(H){var U=H.data;var A=H.customCommandResolver;return _.Z("ad-grid-card-image-view-model",{class:function(){var M;return((M=U().interaction)==null?0:M.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.sB(_.eD({visibilityCallback:function(M){var W,w=(W=U().interaction)==null?void 0:W.onFirstVisible;M&&w&&_.uj(w)},
showOption:_.Cj}),_.d7(function(){return U().interaction},A)),
"aria-label":function(){var M,W;return(M=U().interaction)==null?void 0:(W=M.accessibility)==null?void 0:W.label}},_.Z(_.YY,{data:function(){return U().adImage}},{adImageViewModel:function(M){return _.Z(_.c6,{data:M.data,
customCommandResolver:A})}}),_.Z("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.Z(_.YY,{data:function(){return U().adCardBadge}},{adCardBadgeViewModel:_.vqk})))},"Ch");var SVk=_.r(function(H){var U=H.data;var A=H.customCommandResolver;return _.Z("ad-grid-card-text-view-model",{class:function(){var M;return((M=U().interaction)==null?0:M.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.sB(_.eD({visibilityCallback:function(M){var W,w=(W=U().interaction)==null?void 0:W.onFirstVisible;M&&w&&_.uj(w)},
showOption:_.Cj}),_.d7(function(){return U().interaction},A)),
"aria-label":function(){var M,W;return(M=U().interaction)==null?void 0:(W=M.accessibility)==null?void 0:W.label}},_.Z("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.Z(_.K,{cond:function(){return U().title},
then:function(M){return _.Z(_.Pb,{text:M,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.Z("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.Z(_.FQ,{each:function(){var M;
return((M=U())==null?void 0:M.descriptions)||[]},
keyBy:"INDEX"},function(M){return _.Z(_.Pb,{text:M,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.Z("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.Z(_.YY,{data:function(){return U().moreInfoButton}},{adButtonViewModel:function(M){return _.Z(_.y2,{data:M.data,
customCommandResolver:A})}})))},"Dh");var pwY=_.r(function(H){var U=H.data;var A=H.customCommandResolver;var M=H.adGridCardCollectionStyle;return _.Z("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.sB(_.eD({visibilityCallback:function(W){var w,d=(w=U().interaction)==null?void 0:w.onFirstVisible;W&&d&&_.uj(d)},
showOption:_.Cj})),style:function(){return"grid-template-columns: repeat("+Hy7(M?M():U().style)+", minmax(0, 1fr));"}},_.Z(_.YY,{data:function(){var W;
return(W=U())==null?void 0:W.gridCards}},{adGridCardImageViewModel:function(W){return _.Z(Nyk,{data:W.data,
customCommandResolver:A})},
adGridCardImageFullMetadataViewModel:function(W){return _.Z(nE$,{data:W.data,customCommandResolver:A})},
adGridCardTextViewModel:function(W){return _.Z(SVk,{data:W.data,customCommandResolver:A})}}))},"Eh");_.LG(_.r(function(H){var U=H.data;return _.Z("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.sB(_.eD({visibilityCallback:function(A){var M,W=(M=U().interaction)==null?void 0:M.onFirstVisible;A&&W&&_.uj(W)},
showOption:_.Cj}),_.d7(function(){return U().interaction},As7))},_.Z("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.Z(_.K,{cond:_.NQt("(min-width: "+(Hz()+UL)+"px)"),
then:function(){return _.Z(_.YY,{data:function(){return U().adGridCardCollection}},{adGridCardCollectionViewModel:function(A){return _.Z(pwY,{data:A.data,
customCommandResolver:As7})}})},
else:function(){return _.Z(_.YY,{data:function(){return U().adGridCardCollection}},{adGridCardCollectionViewModel:function(A){return _.Z(pwY,{data:A.data,
customCommandResolver:As7,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.Z("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.Z(_.YY,{data:function(){return U().adButton}},{adButtonViewModel:function(A){return _.Z(_.y2,{data:A.data,
customCommandResolver:As7})}})))},"Fh"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){var U=H.data;return _.Z("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.sB(_.eD({visibilityCallback:function(A){var M,W=(M=U().interaction)==null?void 0:M.onFirstVisible;A&&W&&_.uj(W)},
showOption:_.Cj}),_.d7(function(){return U().interaction},MIm))},_.Z("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.Z(_.YY,{data:function(){if(_.NQt("(min-width: "+(Hz()+UL)+"px)")())var A=U().adGridCardCollection;
else{A=Object.assign({},_.p(U().adGridCardCollection,$xh));var M;A.gridCards!==void 0&&((M=A.gridCards)==null?void 0:M.length)>1?A.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":A.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";A={adGridCardCollectionViewModel:A}}return A}},{adGridCardCollectionViewModel:function(A){return _.Z(pwY,{data:A.data,
customCommandResolver:MIm})}})),_.Z("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.Z(_.YY,{data:function(){return U().adButton}},{adButtonViewModel:function(A){return _.Z(_.y2,{data:A.data,
customCommandResolver:MIm})}})))},"Gh"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.sY}});var aI=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return H};
_.R(aI,_.B);_.X=aI.prototype;_.X.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"}}}};
_.X.attached=function(){this.getDataFromPlayerAndRender()};
_.X.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.X.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.X.getDataFromPlayerAndRender=function(){var H=this,U=_.Ly(this.hostElement);U&&U.getPlayerPromise().then(function(A){H.getCachedDataAndListen(A)})};
_.X.getCachedDataAndListen=function(H){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(H,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(H,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=H)};
_.X.resolveCachedActions=function(){var H=_.tr("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(H=H&&H())&&!_.dG.isEmpty(H)&&this.sendUpdateEngagementPanelAction(H);(H=(H=_.tr("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&H())&&!_.dG.isEmpty(H)&&this.sendChangeEngagementPanelVisibilityAction(H);(H=(H=_.tr("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&H())&&!_.dG.isEmpty(H)&&this.sendScrollToEngagementPanelCommand(H)};
_.X.sendUpdateEngagementPanelAction=function(H){var U;_.yr(this.hostElement,"yt-update-engagement-panel-action",[(U=_.dG.get(H,"action"))!=null?U:H])};
_.X.sendChangeEngagementPanelVisibilityAction=function(H){_.yr(this.hostElement,"yt-change-engagement-panel-visibility-action",[H])};
_.X.sendScrollToEngagementPanelCommand=function(H){_.yr(this.hostElement,"yt-scroll-to-engagement-panel-command",[H])};
_.X.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.S("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Na(Error("Bl"))};
aI.prototype.dataChanged=aI.prototype.dataChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],aI.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],aI.prototype,"componentBehavior",void 0);_.G([_.g(_.nm.YtPlayerListenerBehavior),_.q("design:type",_.NM)],aI.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],aI.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],aI.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],aI.prototype,"player",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aI.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],aI);
_.e(aI,"ytd-ads-engagement-panel-content-renderer",function(){if(s8h!==void 0)return s8h;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
return s8h=H},{mode:1});var LC$;var xW=function(){var H=_.B.apply(this,arguments)||this;H.player=null;H.JSC$20583_playerEvents=new Map;H.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return H};
_.R(xW,_.B);_.X=xW.prototype;_.X.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]]"}}}}}};
_.X.created=function(){this.player=null;this.JSC$20583_playerEvents=new Map;this.JSC$20583_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20583_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20583_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20583_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.X.attached=function(){var H=this,U=_.Ly();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));U&&U.getPlayerPromise().then(function(A){H.setPlayer(A);H.set("isPageLoad",!1)})};
_.X.setPlayer=function(H){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20583_playerEvents);this.set("player",H);H&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(H,this.JSC$20583_playerEvents),H.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.X.onLoopRangeChange=function(H){var U=_.lx().resolve(_.$V(_.SI));if((!U||U.isOnWatch())&&this.hostElement.clientHeight){var A;!H&&((A=this.data)==null?0:A.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.X.onVideoProgress=function(H){var U,A,M=((U=this.player)==null?void 0:(A=U.getPresentingPlayerType)==null?void 0:A.call(U))===2;this.isAdPlaying!==M&&this.set("isAdPlaying",M);var W;if(!M&&(W=this.player)!=null&&W.getLoopRange()){A=this.player.getLoopRange();U=A.startTimeMs;A=A.endTimeMs;M=this.player.getProgressState(1).seekableStart;var w;U<M*1E3&&((w=this.data)==null?0:w.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
H=A<H*1E3;var d;((d=this.player)==null?0:d.getLoopRange())&&H&&this.player.seekTo(U/1E3)}};
_.X.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.X.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.X.onYtDeleteClipEngagementPanelCommand=function(H){_.p(H,RI5).command&&this.ytComponentBehavior.resolveCommand(_.p(H,RI5).command)};
_.D5.Object.defineProperties(xW.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.voteCount)||_.Nh("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],xW.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],xW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],xW.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],xW.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.nm.YtPlayerListenerBehavior),_.q("design:type",_.NM)],xW.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],xW.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],xW.prototype,"isAdPlaying",void 0);_.G([_.y({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],xW.prototype,"isPageLoad",void 0);_.G([_.y({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],xW.prototype,"isDarkTheme",void 0);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],xW.prototype,"voteCount",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],xW.prototype,"channelEndpoint",null);_.G([_.a("channelEndpoint"),_.q("design:type",Object),_.q("design:paramtypes",[])],xW.prototype,"channelHref",null);_.G([_.dX({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],xW);
_.e(xW,"ytd-clip-attribution-renderer",function(){if(LC$!==void 0)return LC$;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return LC$=H},{mode:1});var RJY;var zw=function(){var H=_.B.apply(this,arguments)||this;H.player=null;H.JSC$20588_playerEvents=new Map;return H};
_.R(zw,_.B);_.X=zw.prototype;_.X.created=function(){this.player=null;this.JSC$20588_playerEvents=new Map;this.JSC$20588_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20588_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20588_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.X.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.X.attached=function(){var H=this,U=_.Ly();U&&U.getPlayerPromise().then(function(A){H.setPlayer(A);H.set("isPageLoad",!1)})};
_.X.setPlayer=function(H){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20588_playerEvents);this.set("player",H);if(H){this.ytPlayerListenerBehavior.listenToPlayerEvents(H,this.JSC$20588_playerEvents);var U;(H==null?void 0:(U=H.getPresentingPlayerType)==null?void 0:U.call(H))===2&&this.playerAdStartHandler()}};
_.X.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.X.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.X.onVideoProgress=function(){var H,U,A=((H=this.player)==null?void 0:(U=H.getPresentingPlayerType)==null?void 0:U.call(H))===2;this.isAdPlaying!==A&&this.set("isAdPlaying",A)};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],zw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.nm.YtPlayerListenerBehavior),_.q("design:type",_.NM)],zw.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],zw.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],zw.prototype,"isAdPlaying",void 0);
_.G([_.y({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],zw.prototype,"isPageLoad",void 0);_.G([_.dX({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],zw);
_.e(zw,"ytd-clip-section-footer-renderer",function(){if(RJY!==void 0)return RJY;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return RJY=H},{mode:1});var EEj;var mO8;var gE$=function(){return _.B.apply(this,arguments)||this};
_.R(gE$,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],gE$.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],gE$.prototype,"data",void 0);_.G([_.dX({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],gE$);
_.e(gE$,"ytd-clip-ad-state-renderer",function(){if(mO8!==void 0)return mO8;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return mO8=H},{mode:1});var aV5;var Cz=function(){var H=_.B.apply(this,arguments)||this;H.value="";H.valid=!1;H.userChangedValue=!1;H.disabled=!1;H.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return H};
_.R(Cz,_.B);_.X=Cz.prototype;_.X.detached=function(){this.userChangedValue=!1};
_.X.handleKeyDown=function(H){if(_.va)var U=13;else _.k2z&&_.kA?U=13:U=13;H.keyCode===U&&H.preventDefault()};
_.X.handleInput=function(){var H=_.c4(this.hostElement).querySelector("#title");if(H){var U=(H.value||"").replace(/\r|\n/g," ");this.set("value",U);H.value=U;this.valid=H.validate();this.userChangedValue=!0}};
_.X.handleBlur=function(){this.valid=_.c4(this.hostElement).querySelector("#title").validate()};
_.X.onValueChanged=function(){_.cg(this.hostElement,"title-changed",{title:this.value})};
_.X.onValidChanged=function(){_.cg(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.X.setInput=function(H,U){var A=_.c4(this.hostElement).querySelector("#title");A&&(A.value=H,this.handleInput(),U&&(A.invalid=!1,this.valid=!0))};
_.X.onClipCreationDisable=function(){this.set("disabled",!0)};
_.X.onClipCreationEnable=function(){this.set("disabled",!1)};
_.X.onClipCreationVisibilityChange=function(H){var U=this;H.visible?requestAnimationFrame(function(){var A;((A=_.c4(U.hostElement).querySelector("#title"))==null?void 0:A.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Cz.prototype.onValidChanged=Cz.prototype.onValidChanged;Cz.prototype.onValueChanged=Cz.prototype.onValueChanged;Cz.prototype.handleBlur=Cz.prototype.handleBlur;Cz.prototype.handleInput=Cz.prototype.handleInput;Cz.prototype.handleKeyDown=Cz.prototype.handleKeyDown;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Cz.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],Cz.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Cz.prototype,"value",void 0);_.G([_.y(),_.q("design:type",Object)],Cz.prototype,"valid",void 0);_.G([_.y(),_.q("design:type",Object)],Cz.prototype,"userChangedValue",void 0);_.G([_.y(),_.q("design:type",Object)],Cz.prototype,"disabled",void 0);_.G([_.Gl("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[KeyboardEvent]),_.q("design:returntype")],Cz.prototype,"handleKeyDown",null);
_.G([_.Gl("input"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Cz.prototype,"handleInput",null);_.G([_.Gl("blur"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Cz.prototype,"handleBlur",null);_.G([_.Ya("value"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Cz.prototype,"onValueChanged",null);
_.G([_.Ya("valid"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Cz.prototype,"onValidChanged",null);_.G([_.dX({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Cz);
_.e(Cz,"ytd-clip-creation-text-input-renderer",function(){if(aV5!==void 0)return aV5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return aV5=H},{mode:1});var xOB;var zJy;var Cp5;var t05;var c5j;var tx=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};H.pendingStoryboardImages_={};H.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];H.tickLabelInterval=30;H.mediumTickInterval=5;H.largeTickInterval=15;H.aboveRulerHeight=32;H.rulerHeight=50;H.smallTickHeight=4;H.mediumTickHeight=8;H.largeTickHeight=16;H.mediaListeners_=
{};return H};
_.R(tx,_.B);_.X=tx.prototype;_.X.attached=function(){var H=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(U){U=_.b(["screen and (min-resolution: "+U+")","screen and (max-resolution: "+U+")"]);for(var A=U.next();!A.done;A=U.next()){A=A.value;var M=window.matchMedia(A);M&&(H.mediaListeners_[A]=H.updatePixelRatio_.bind(H),M.addEventListener?M.addEventListener("change",H.mediaListeners_[A]):M.addListener?M.addListener(H.mediaListeners_[A]):delete H.mediaListeners_[A])}})};
_.X.detached=function(){this.setPlayer(null);for(var H=_.b(Object.keys(this.mediaListeners_)),U=H.next();!U.done;U=H.next()){var A=U.value;U=this.mediaListeners_[A];(A=window.matchMedia(A))&&(A.removeEventListener?A.removeEventListener("change",U):A.removeListener&&A.removeListener(U))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.X.onVisibilityChangedAction_=function(H){var U=this;H.visible&&!this.player_&&(H=_.Ly())&&H.getPlayerPromise().then(function(A){U.setPlayer(A)})};
_.X.setPlayer=function(H){H&&this.set("player_",H)};
_.X.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.X.setUpCanvas_=function(){var H=this.rulerWidth,U=this.devicePixelRatio_,A=this.visible;this.set("canvasReady_",!1);if(A&&U!==0){A=this.aboveRulerHeight+this.rulerHeight;var M=_.c4(this.hostElement).querySelector("#ticks");M.width=H*U;M.height=A*U;M.style.width=H+"px";M.style.height=A+"px";M.getContext("2d").scale(U,U);this.set("canvasReady_",!0)}};
_.X.drawRuler_=function(H,U,A,M,W,w,d,O,f,J,F,P){H&&A&&U&&(H=_.c4(this.hostElement).querySelector("#ticks"),U=H.getContext("2d"),U.clearRect(0,0,H.width,H.height),U.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),U.lineWidth=2,U.beginPath(),U.moveTo(0,this.aboveRulerHeight),U.lineTo(H.width,this.aboveRulerHeight),U.moveTo(0,H.height),U.lineTo(H.width,H.height),U.stroke(),this.drawRulerTicks_(H,w,W,M),this.drawStoryboardImages_(H,A,w,W,M),U.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
U.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(d-w,M,!1),this.rulerHeight),A=this.timeToPixels_(O-w,M,!1),U.fillRect(A,this.aboveRulerHeight,H.width-A,this.rulerHeight),this.drawSpeedLines_(H,w,P))};
_.X.drawRulerTicks_=function(H,U,A,M){var W=H.getContext("2d");W.save();W.lineWidth=1;for(var w=Math.floor(Math.max(0,U-this.tickLabelInterval));w<U+A;w++){W.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var d=(w-U)*M;W.beginPath();W.moveTo(d,H.height);var O=this.smallTickHeight;w%this.largeTickInterval===0?O=this.largeTickHeight:w%this.mediumTickInterval===0&&(O=this.mediumTickHeight);W.lineTo(d,H.height-O);W.stroke();w%this.tickLabelInterval===0&&(W.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),W.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),W.fillText(Wz(w),d+4,12),W.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),W.moveTo(d,0),W.lineTo(d,this.aboveRulerHeight),W.stroke())}W.restore()};
_.X.percentToHex_=function(H){H=Math.round(H*255).toString(16);H.length<2&&(H="0"+H);return H};
_.X.drawSpeedLines_=function(H,U,A){var M=H.getContext("2d");M.save();var W=Math.min(25,Math.abs(A)-15)/25,w=H.width*.3*W,d=H.width*-.3,O=H.width*1.3,f=this.aboveRulerHeight;H=H.height;var J=Math.round(4*W),F=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");F.length<7&&(F="#"+F.substring(1,4).repeat(2));var P=this.percentToHex_(.5+W/2);P=F+P;F+="00";if(W>0)for(W=0;W<J;W++){var n=d+Math.random()*(O-d),N=f+Math.random()*(H-f),L=w+U%w,m=M.createLinearGradient(n,N,n+L,N);
A<0?(m.addColorStop(0,P),m.addColorStop(.4,P),m.addColorStop(.9,F)):(m.addColorStop(.1,F),m.addColorStop(.6,P),m.addColorStop(1,P));M.strokeStyle=m;M.lineWidth=1;M.beginPath();M.moveTo(n,N);M.lineTo(n+L,N);M.stroke()}M.restore()};
_.X.getStoryboardForTime_=function(H,U,A){A===void 0&&(A=U.getNumberOfStoryboardLevels()-1);H=U.getStoryboardFrameIndex(H,A);return U.getStoryboardFrame(H,A)};
_.X.drawStoryboardImages_=function(H,U,A,M,W){if(!this.disabled){H=H.getContext("2d");var w=this.getStoryboardForTime_(0,U);if(w){var d=w.width/w.columns;w=w.height/w.rows;var O=d/w,f=this.rulerHeight*O;f=this.tickLabelInterval*(O<this.tickLabelInterval*W/this.rulerHeight?1/Math.floor(this.tickLabelInterval*W/f):Math.round(f/(this.tickLabelInterval*W)));var J=f*W,F=this.rulerHeight,P=J/this.rulerHeight,n=Math.floor(Math.max(0,A-f));for(n-=n%f;n<A+M;n+=f){var N=this.getStoryboardForTime_(n,U),L=this.getPreloadedStoryboard_(N.url);
if(L){var m=(n-A)*W,z=this.aboveRulerHeight,c=N.column*d,C=N.row*w;if(O<P){var v=F/(J/O);N=d;v*=w;C+=(w-v)/2}else N=J/(F*O)*d,v=w,c+=(d-N)/2;H.drawImage(L,c,C,N,v,m,z,J,F)}else this.fetchStoryboardImage_(N)}}}};
_.X.getPreloadedStoryboard_=function(H){return this.storyboardImages_.find(function(U){if(U.src==H)return!0;var A=U.src.indexOf(H);return A!=-1&&A==U.src.length-H.length})};
_.X.fetchStoryboardImage_=function(H){var U=this,A=this.getPreloadedStoryboard_(H.url),M=this.pendingStoryboardImages_[H.url];A||M!==void 0||(A=new Promise(function(W){var w=new Image(H.width,H.height);w.src=H.url;w.onload=function(){W(w)};
w.onerror=function(){W(null)}}),this.pendingStoryboardImages_[H.url]=A,A.then(function(W){W&&U.push("storyboardImages_",W);
return W}).finally(function(){delete U.pendingStoryboardImages_[H.url]}))};
_.X.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.X.timeToPixels_=function(H,U,A){H*=U;return A===void 0||A?H+"px":H};
_.X.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
tx.prototype.drawRuler_=tx.prototype.drawRuler_;tx.prototype.setUpCanvas_=tx.prototype.setUpCanvas_;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],tx.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],tx.prototype,"start",void 0);_.G([_.y({value:30}),_.q("design:type",Number)],tx.prototype,"end",void 0);
_.G([_.y({value:!1}),_.q("design:type",Boolean)],tx.prototype,"visible",void 0);_.G([_.y(),_.q("design:type",Object)],tx.prototype,"player_",void 0);_.G([_.y(),_.q("design:type",Number)],tx.prototype,"tickSpacing",void 0);_.G([_.y(),_.q("design:type",Number)],tx.prototype,"windowSizeSec",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],tx.prototype,"rulerWidth",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],tx.prototype,"rulerShift",void 0);
_.G([_.y({value:!1}),_.q("design:type",Boolean)],tx.prototype,"canvasReady_",void 0);_.G([_.y({value:function(){return[]}}),
_.q("design:type",Array)],tx.prototype,"storyboardImages_",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],tx.prototype,"disabled",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],tx.prototype,"forceRender_",void 0);_.G([_.y({value:1}),_.q("design:type",Number)],tx.prototype,"devicePixelRatio_",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],tx.prototype,"windowSpeed",void 0);
_.G([_.Ya("visible","devicePixelRatio_","rulerWidth"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tx.prototype,"setUpCanvas_",null);
_.G([_.Ya("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.q("design:type",Function),_.q("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.q("design:returntype")],tx.prototype,"drawRuler_",null);_.G([_.b0({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],tx);
_.e(tx,"yt-clip-creation-scrubber-canvas",function(){if(c5j===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);c5j=H}H=c5j;return H},
{mode:2});var y58;var ByB;var cp=function(){var H=_.B.apply(this,arguments)||this;H.start=0;H.end=30;H.visible=!1;H.draggingLeft_=!1;H.draggingRight_=!1;H.draggingRuler_=!1;H.draggingWindow_=!1;H.seekableStart=0;H.seekableEnd=0;H.rulerWidth_=0;H.rulerShift_=0;H.windowSlideSpeed=0;H.disabled=!1;H.initialized=!1;H.durationAccessibilityLabel="";H.activeLoopRange_=!1;H.rulerDragMouseStart_=0;H.rulerDragRulerStart_=0;H.rulerDragStartTime_=0;H.rulerDragEndTime_=0;H.dragMouseLastX_=0;H.scrollInterval_=null;H.scrubberVe_=null;H.boundHandlers_=
{};H.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return H};
_.R(cp,_.B);_.X=cp.prototype;
_.X.created=function(){var H=this;this.JSC$20602_playerEvents=new Map;this.JSC$20602_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20602_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20602_playerEvents.set("onStateChange",this.onStateChange_);var U={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(U).forEach(function(A){H.boundHandlers_[A]=U[A].bind(H)})};
_.X.attached=function(){this.activeLoopRange_=!1;_.c4(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.c4(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.ts(156731)};
_.X.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.c4(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.c4(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.X.onVisibilityChangedAction_=function(H){var U=this;H.visible&&!this.player_&&(H=_.Ly())&&H.getPlayerPromise().then(function(A){U.setPlayer(A)})};
_.X.setPlayer=function(H){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20602_playerEvents);H&&(this.set("player_",H),this.ytPlayerListenerBehavior.listenToPlayerEvents(H,this.JSC$20602_playerEvents))};
_.X.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.X.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.X.beginHandleDrag_=function(H){this.disabled||(H.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=H.clientX,H.target===_.c4(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():H.target===_.c4(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.X.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.X.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.X.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.X.beginRulerDrag_=function(H){this.disabled||(H.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=H.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.X.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.X.beginWindowScroll_=function(){var H=this;this.scrollInterval_=setInterval(function(){var U=H.windowSlideSpeed;if(U=oG$(H.start,H.boundedRulerStartLimit_())?U-.1:oG$(H.end,H.boundedRulerEndLimit_())?U+.1:0){var A=H.capRulerOffset_(H.rulerShift_+U);A==H.rulerShift_?U=0:(H.set("rulerShift_",A),_.cg(H.hostElement,"set-fixed-length-range",{start:H.start+U,duration:H.end-H.start}))}H.set("windowSlideSpeed",U)},33)};
_.X.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.X.endDrag_=function(){this.logClick();var H=void 0;this.draggingRight_?H=this.end-1:this.draggingLeft_&&(H=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,H);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))};
_.X.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.X.updateRulerSize_=function(){this.set("rulerWidth_",_.c4(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.X.handleMouseDrag_=function(H){H.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(H):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(H):this.draggingWindow_&&this.handleWindowDrag_(H))};
_.X.handleRulerDrag_=function(H){H=this.pixelsToTime_(H.clientX-this.rulerDragMouseStart_);H=this.capRulerOffset_(this.rulerDragRulerStart_-H);this.set("rulerShift_",H);var U=this.rulerDragStartTime_-(this.rulerDragRulerStart_-H);_.cg(this.hostElement,"set-fixed-length-range",{start:U,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-H)-U})};
_.X.handleWindowDrag_=function(H){var U=H.clientX-this.dragMouseLastX_;this.dragMouseLastX_=H.clientX;H=this.pixelsToTime_(U);_.cg(this.hostElement,"set-fixed-length-range",{start:this.start+H,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.X.capRulerOffset_=function(H){var U=this.seekableStart-this.pixelsToTime_(16),A=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(U,H),A)};
_.X.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.X.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.X.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.X.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.X.handleWindowHandleDrag_=function(H){var U=H.clientX-this.dragMouseLastX_;this.dragMouseLastX_=H.clientX;H=this.pixelsToTime_(U);if(this.draggingLeft_){var A=this.start+H;var M=this.end}else this.draggingRight_&&(A=this.start,M=this.end+H);_.cg(this.hostElement,"set-range",{start:A,end:M,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.X.onVideoProgress_=function(H){this.disabled||(H=this.timeToPixels_(H-this.rulerShift_,this.tickSpacing_),_.c4(this.hostElement).querySelector("#playhead").style.transform="translateX("+H+")")};
_.X.onClipCreationDisable_=function(){this.endDrag_()};
_.X.timeToPixels_=function(H,U,A){H*=U;return A===void 0||A?H+"px":H};
_.X.pixelsToTime_=function(H){return H/this.tickSpacing_};
_.X.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.X.centerRuler_=function(H,U,A){this.set("rulerShift_",this.capRulerOffset_(H+(U-H)/2-A/2))};
_.X.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.X.updateLoopRange_=function(H,U,A,M,W,w,d){H&&(U&&M&&!A?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(H.pauseVideo(),H.seekTo(W,!1,void 0,void 0,50)):this.draggingRight_?(H.pauseVideo(),H.seekTo(w-.1,!1,void 0,void 0,50)):(d!==void 0?H.seekTo(d,!0,void 0,void 0,50):(U=H.getCurrentTime(),U<W||U>w?H.seekTo(W,!0,void 0,void 0,50):H.seekTo(U,!0,void 0,void 0,50)),H.playVideo()),H.setLoopRange({startTimeMs:W*1E3,endTimeMs:w*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(H.getCurrentTime())):
this.activeLoopRange_&&(H.setLoopRange(null),this.activeLoopRange_=!1))};
_.X.updateHandles_=function(){_.c4(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.c4(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.X.updateRuler_=function(){var H=this.end,U=this.start,A=this.draggableStartLimit_(),M=this.draggableEndLimit_();(U<A-.001||H>M+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.X.computeDurationLabel_=function(H,U){return H?H.replace("$clip_length",parseFloat(U).toFixed(1)):""};
_.X.computeDuration_=function(H,U){return this.isValidTime_(H)&&this.isValidTime_(U)&&H<U?U-H:0};
_.X.isValidTime_=function(H){return isNaN(parseFloat(H))||H<0?!1:this.player_?H>=this.seekableStart&&H<=this.seekableEnd:!0};
_.X.computeWindowSizeSec_=function(H,U,A){return Math.min((H||12E4)/1E3,A-U)};
_.X.computeTickSpacing_=function(H,U){return U?U/H:1};
_.X.onDragStateChanged_=function(){_.cg(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.X.centerRangeOnTime_=function(H){var U=this.duration;H=woh(H-U/2,U,this.seekableStart,this.seekableEnd);_.cg(this.hostElement,"set-fixed-length-range",{start:H.start,duration:H.end-H.start})};
_.X.nearlyLessThan_=function(H,U,A){return H+(A===void 0?1E-6:A)<U};
_.X.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var H=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(H,this.start)||this.nearlyLessThan_(this.end,H))&&this.centerRangeOnTime_(H)}};
_.X.onStateChange_=function(H){this.visible&&!this.disabled&&H==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.X.computeDragState_=function(H,U,A,M){return H?"left":U?"right":A?"ruler":M?"window":"none"};
_.X.logClick=function(){var H=_.XK(),U=_.ws();H&&U&&this.scrubberVe_&&(_.S("combine_ve_grafts")?_.$g(_.k$(),this.scrubberVe_,U):_.ou(H,U,this.scrubberVe_),_.NY(H,this.scrubberVe_))};
cp.prototype.onDragStateChanged_=cp.prototype.onDragStateChanged_;cp.prototype.updateRuler_=cp.prototype.updateRuler_;cp.prototype.updateHandles_=cp.prototype.updateHandles_;cp.prototype.onUpdateLoopRange=cp.prototype.onUpdateLoopRange;cp.prototype.onInitializedChanged_=cp.prototype.onInitializedChanged_;cp.prototype.onVisibleChanged_=cp.prototype.onVisibleChanged_;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],cp.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.g(_.nm.YtPlayerListenerBehavior),_.q("design:type",Object)],cp.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],cp.prototype,"start",void 0);_.G([_.y(),_.q("design:type",Object)],cp.prototype,"end",void 0);_.G([_.y({computed:"computeDuration_(start, end)"}),_.q("design:type",Number)],cp.prototype,"duration",void 0);
_.G([_.y(),_.q("design:type",String)],cp.prototype,"lengthTemplate",void 0);_.G([_.y({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.q("design:type",String)],cp.prototype,"durationLabel",void 0);_.G([_.y(),_.q("design:type",Object)],cp.prototype,"visible",void 0);_.G([_.y(),_.q("design:type",Object)],cp.prototype,"player_",void 0);_.G([_.y(),_.q("design:type",Object)],cp.prototype,"draggingLeft_",void 0);_.G([_.y(),_.q("design:type",Object)],cp.prototype,"draggingRight_",void 0);
_.G([_.y(),_.q("design:type",Object)],cp.prototype,"draggingRuler_",void 0);_.G([_.y({value:!1}),_.q("design:type",Object)],cp.prototype,"draggingWindow_",void 0);_.G([_.y({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.q("design:type",Number)],cp.prototype,"tickSpacing_",void 0);_.G([_.y(),_.q("design:type",Object)],cp.prototype,"seekableStart",void 0);_.G([_.y(),_.q("design:type",Object)],cp.prototype,"seekableEnd",void 0);
_.G([_.y(),_.q("design:type",Number)],cp.prototype,"windowSizeMs",void 0);_.G([_.y({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.q("design:type",Number)],cp.prototype,"windowSizeSec_",void 0);_.G([_.y(),_.q("design:type",Object)],cp.prototype,"rulerWidth_",void 0);_.G([_.y(),_.q("design:type",Object)],cp.prototype,"rulerShift_",void 0);_.G([_.y(),_.q("design:type",Object)],cp.prototype,"windowSlideSpeed",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],cp.prototype,"disabled",void 0);_.G([_.y(),_.q("design:type",Object)],cp.prototype,"initialized",void 0);_.G([_.y(),_.q("design:type",Object)],cp.prototype,"durationAccessibilityLabel",void 0);_.G([_.y({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.q("design:type",String)],cp.prototype,"dragState",void 0);
_.G([_.Ya("visible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cp.prototype,"onVisibleChanged_",null);_.G([_.Ya("initialized"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cp.prototype,"onInitializedChanged_",null);_.G([_.Ya("player_","visible","disabled","initialized","start","end"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cp.prototype,"onUpdateLoopRange",null);
_.G([_.Ya("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cp.prototype,"updateHandles_",null);_.G([_.Ya("start","end"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cp.prototype,"updateRuler_",null);
_.G([_.Ya("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cp.prototype,"onDragStateChanged_",null);_.G([_.b0({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],cp);
_.e(cp,"yt-clip-creation-scrubber-view",function(){if(ByB===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;y58===void 0&&(y58=document.createElement("template"));var M=y58;A.call(U,M.content.cloneNode(!0),H.content.firstChild);ByB=H}H=ByB;return H},{mode:2});var yz=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};H.startHighlightTimeout=0;H.endHighlightTimeout=0;return H};
_.R(yz,_.B);_.X=yz.prototype;_.X.attached=function(){var H=this;this.startInput.addEventListener("input",function(U){return H.handleStartInput_(U)});
this.endInput.addEventListener("input",function(U){return H.handleEndInput_(U)});
this.startInput.addEventListener("focusout",function(U){return H.handleStartBlur_(U)});
this.endInput.addEventListener("focusout",function(U){return H.handleEndBlur_(U)})};
_.X.setPlayer=function(H){this.set("player_",H)};
_.X.onSetFixedLengthRange_=function(H){var U=H.detail;H=U.start;var A=U.duration,M=U.startLimit;U=U.endLimit;M||(M=this.seekableStart_);U||(U=this.seekableEnd_);H=woh(H,A,M,U);this.start=H.start;this.end=H.end};
_.X.onSetRange_=function(H){var U=H.detail;H=U.start;var A=U.end,M=U.startLimit;U=U.endLimit;M||(M=this.seekableStart_);U||(U=this.seekableEnd_);if(H=Xoy(H,A,M,U,this.minLengthSec,this.maxLengthSec))this.start=H.start,this.end=H.end};
_.X.updateInputs_=function(){var H=this.end,U=this.start;this.startInput.focused||(this.startInput.value=Wz(U,!0));this.endInput.focused||(this.endInput.value=Wz(H,!0))};
_.X.handleStartInput_=function(H){H=WYh(H.target.value);if(H===null)this.set("startValid",!1);else{var U=this.end,A=Xoy(H,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);A?(this.set("endWillUpdate",A.end!==U),this.set("startValid",A.start===H)):this.set("startValid",!1)}};
_.X.handleEndInput_=function(H){H=WYh(H.target.value);if(H===null)this.set("endValid",!1);else{var U=this.start,A=iyX(this.start,H,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);A?(this.set("startWillUpdate",A.start!==U),this.set("endValid",A.end===H)):this.set("endValid",!1)}};
_.X.handleStartBlur_=function(H){H=WYh(H.target.value);H===null?this.startInput.value=Wz(this.start,!0):this.forceUpdateInputs_(Xoy(H,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.X.handleEndBlur_=function(H){H=WYh(H.target.value);H===null?this.endInput.value=Wz(this.end,!0):this.forceUpdateInputs_(iyX(this.start,H,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.X.forceUpdateInputs_=function(H){H&&(this.start=H.start,this.end=H.end);this.startInput.value=Wz(this.start,!0);this.endInput.value=Wz(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.X.initializeClipRange_=function(){var H=this.seekableEnd_,U=this.seekableStart_,A=this.visible_,M=this.player_;if(!M||!A||U===null||!H)this.set("initialized",!1);else if(!this.initialized){var W=M.getCurrentTime(),w=this.getDefaultLengthSec_();A=M.getVideoData();var d=M.getPlayerState()==1,O=A.isLive;w=Math.min(w,H-U);W=Math.max(0,W);H=O?iyX(W-w,W,U,H,this.minLengthSec,this.maxLengthSec):d?woh(W-w/2,w,U,H):woh(W,w,U,H);this.start=H.start;this.end=H.end;this.set("initialized",!0);A.isLive&&M.seekTo(H.start);
this.startInput.value=Wz(this.start,!0);this.endInput.value=Wz(this.end,!0)}};
_.X.onStartChanged_=function(){var H=this;_.cg(this.hostElement,"start-changed",{start:this.start});var U;isNaN((U=this.oldStart)!=null?U:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){H.set("highlightStart",!1);H.startHighlightTimeout=0;H.oldStart=H.start},3E3))};
_.X.onEndChanged_=function(){var H=this;_.cg(this.hostElement,"end-changed",{end:this.end});var U;isNaN((U=this.oldEnd)!=null?U:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){H.set("highlightEnd",!1);H.endHighlightTimeout=0;H.oldEnd=H.end},3E3))};
_.X.onVisibilityChangedAction_=function(H){var U=this;this.set("visible_",H.visible);this.visible_&&!this.player_&&(H=_.Ly())&&H.getPlayerPromise().then(function(A){U.setPlayer(A)})};
_.X.computeMinLengthSec_=function(H){return H/1E3||5};
_.X.computeMaxLengthSec_=function(H){return H/1E3||60};
_.X.computeDefaultLengthSec_=function(H){return H/1E3};
_.X.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.X.computeSeekableStart_=function(H,U){return H&&U?H.getProgressState(1).seekableStart:0};
_.X.computeSeekableEnd_=function(H,U){return H&&U?H.getProgressState(1).seekableEnd:0};
_.X.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.X.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.X.onDragState_=function(H){this.set("highlightStart",H.detail.startChanging);this.set("highlightEnd",H.detail.endChanging)};
yz.prototype.onDragState_=yz.prototype.onDragState_;yz.prototype.onEndChanged_=yz.prototype.onEndChanged_;yz.prototype.onStartChanged_=yz.prototype.onStartChanged_;yz.prototype.initializeClipRange_=yz.prototype.initializeClipRange_;yz.prototype.updateInputs_=yz.prototype.updateInputs_;yz.prototype.onSetRange_=yz.prototype.onSetRange_;yz.prototype.onSetFixedLengthRange_=yz.prototype.onSetFixedLengthRange_;
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],yz.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],yz.prototype,"data",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],yz.prototype,"start",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],yz.prototype,"startValid",void 0);
_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],yz.prototype,"startWillUpdate",void 0);_.G([_.y({value:30}),_.q("design:type",Number)],yz.prototype,"end",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],yz.prototype,"endValid",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],yz.prototype,"endWillUpdate",void 0);_.G([_.y({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.q("design:type",Number)],yz.prototype,"minLengthSec",void 0);
_.G([_.y({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.q("design:type",Number)],yz.prototype,"maxLengthSec",void 0);_.G([_.y({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.q("design:type",Number)],yz.prototype,"defaultLengthSec",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],yz.prototype,"visible_",void 0);_.G([_.y(),_.q("design:type",Object)],yz.prototype,"player_",void 0);
_.G([_.y({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.q("design:type",Number)],yz.prototype,"seekableStart_",void 0);_.G([_.y({computed:"computeSeekableEnd_(player_, visible_)"}),_.q("design:type",Number)],yz.prototype,"seekableEnd_",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],yz.prototype,"initialized",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],yz.prototype,"disabled",void 0);
_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],yz.prototype,"highlightStart",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],yz.prototype,"highlightEnd",void 0);_.G([_.hG("#start"),_.q("design:type",HTMLInputElement)],yz.prototype,"startInput",void 0);_.G([_.hG("#end"),_.q("design:type",HTMLInputElement)],yz.prototype,"endInput",void 0);
_.G([_.Gl("set-fixed-length-range"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],yz.prototype,"onSetFixedLengthRange_",null);_.G([_.Gl("set-range"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],yz.prototype,"onSetRange_",null);_.G([_.Ya("start","end"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yz.prototype,"updateInputs_",null);
_.G([_.Ya("player_","visible_","seekableStart_","seekableEnd_"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yz.prototype,"initializeClipRange_",null);_.G([_.Ya("start"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yz.prototype,"onStartChanged_",null);_.G([_.Ya("end"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yz.prototype,"onEndChanged_",null);
_.G([_.Gl("clips-drag-state"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],yz.prototype,"onDragState_",null);_.G([_.b0({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],yz);
_.e(yz,"yt-clip-creation-scrubber-renderer",function(){if(t05===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Cp5===void 0&&(Cp5=document.createElement("template"));var M=Cp5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);t05=H}H=t05;return H},{mode:2});var Bp=function(){var H=_.B.apply(this,arguments)||this;H.player_=null;H.JSC$20616_playerEvents=new Map;H.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return H};
_.R(Bp,_.B);_.X=Bp.prototype;_.X.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"}}}};
_.X.created=function(){this.JSC$20616_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20616_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20616_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20616_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.X.detached=function(){this.setPlayer(null)};
_.X.onVisibilityChangedAction_=function(H){var U=this,A;if((A=this.data)==null?0:A.externalVideoId){var M;this.videoId=(M=this.data)==null?void 0:M.externalVideoId}this.getPlayer().then(function(W){if(H.visible)U.returnTime=W.getCurrentTime(),U.isAtLiveHead=W.getProgressState().isAtLiveHead;else{var w=U.returnTime;U.isAtLiveHead&&(w=Number.POSITIVE_INFINITY);W.seekTo(w,void 0,void 0,void 0,51)}})};
_.X.getPlayer=function(){var H=this;if(!this.player_){var U=_.Ly();if(U)return U.getPlayerPromise().then(function(A){H.setPlayer(A);return A})}return Promise.resolve(this.player_)};
_.X.setPlayer=function(H){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20616_playerEvents);if(H){this.player_=H;var U;((U=this.data)==null?0:U.externalVideoId)||this.set("videoId",H.getVideoData().video_id||"");var A;(H==null?void 0:(A=H.getPresentingPlayerType)==null?void 0:A.call(H))===2&&(this.set("isAdPlaying",!0),_.yr(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(H,this.JSC$20616_playerEvents)}};
_.X.ready=function(){_.c4(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.X.onTitleChanged_=function(H){this.set("titleValue",H.detail.title)};
_.X.onStartChanged_=function(H){this.set("start",H.detail.start)};
_.X.onEndChanged_=function(H){this.set("end",H.detail.end)};
_.X.onTitleValidChanged_=function(H){this.set("titleValid",H.detail.valid)};
_.X.onStartValidChanged_=function(H){this.set("startValid",H.detail.valid)};
_.X.onEndValidChanged_=function(H){this.set("endValid",H.detail.valid)};
_.X.onVideoDataChange_=function(){var H;if((H=this.data)==null||!H.externalVideoId){var U;this.set("videoId",((U=this.player_)==null?void 0:U.getVideoData().video_id)||"")}};
_.X.computeFormValid_=function(H,U,A,M){return!!(H&&U&&A&&M)};
_.X.computeCancelButton_=function(H,U,A){return H&&_.p(H,_.f$)?{buttonRenderer:Object.assign({},_.p(H,_.f$),{isDisabled:U||A})}:null};
_.X.computeSubmitButton_=function(H,U,A){return H&&_.p(H,_.f$)?{buttonRenderer:Object.assign({},_.p(H,_.f$),{command:void 0,isDisabled:!this.formValid||U||A})}:null};
_.X.computeSubmitCommand_=function(H){return H||null};
_.X.onSubmit_=function(H){var U=this;H.stopPropagation();H.preventDefault();this.submitCommand_&&(H={},H.comment_text=this.titleValue,H.clip_external_video_id=this.videoId,H.clip_offset_ms=parseInt(this.start*1E3,10),H.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.rs(this.hostElement,[this.submitCommand_,H]).then(function(){U.set("isLoading_",!1)},function(){U.set("isLoading_",!1)}))};
_.X.playerAdStartHandler_=function(){_.yr(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.X.playerAdEndHandler_=function(){_.yr(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.X.onVideoProgress_=function(){var H=this;this.getPlayer().then(function(U){var A,M=(U==null?void 0:(A=U.getPresentingPlayerType)==null?void 0:A.call(U))===2;H.isAdPlaying!==M&&(M?H.playerAdStartHandler_():H.playerAdEndHandler_())})};
Bp.prototype.onEndValidChanged_=Bp.prototype.onEndValidChanged_;Bp.prototype.onStartValidChanged_=Bp.prototype.onStartValidChanged_;Bp.prototype.onTitleValidChanged_=Bp.prototype.onTitleValidChanged_;Bp.prototype.onEndChanged_=Bp.prototype.onEndChanged_;Bp.prototype.onStartChanged_=Bp.prototype.onStartChanged_;Bp.prototype.onTitleChanged_=Bp.prototype.onTitleChanged_;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Bp.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.g(_.nm.YtPlayerListenerBehavior),_.q("design:type",Object)],Bp.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Bp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Bp.prototype,"data",void 0);_.G([_.y({value:""}),_.q("design:type",String)],Bp.prototype,"titleValue",void 0);
_.G([_.y({value:!1}),_.q("design:type",Boolean)],Bp.prototype,"titleValid",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],Bp.prototype,"start",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],Bp.prototype,"startValid",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],Bp.prototype,"end",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],Bp.prototype,"endValid",void 0);_.G([_.y({value:""}),_.q("design:type",String)],Bp.prototype,"videoId",void 0);
_.G([_.y({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.q("design:type",Boolean)],Bp.prototype,"formValid",void 0);_.G([_.y({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.q("design:type",Object)],Bp.prototype,"submitButton_",void 0);_.G([_.y({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.q("design:type",Object)],Bp.prototype,"submitCommand_",void 0);
_.G([_.y({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.q("design:type",Object)],Bp.prototype,"cancelButton_",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Bp.prototype,"isLoading_",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Bp.prototype,"isAdPlaying",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],Bp.prototype,"returnTime",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Bp.prototype,"isAtLiveHead",void 0);
_.G([_.Gl("title-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Bp.prototype,"onTitleChanged_",null);_.G([_.Gl("start-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Bp.prototype,"onStartChanged_",null);_.G([_.Gl("end-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Bp.prototype,"onEndChanged_",null);
_.G([_.Gl("title-valid-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Bp.prototype,"onTitleValidChanged_",null);_.G([_.Gl("start-valid-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Bp.prototype,"onStartValidChanged_",null);_.G([_.Gl("end-valid-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Bp.prototype,"onEndValidChanged_",null);
_.G([_.b0({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Bp);
_.e(Bp,"yt-clip-creation-renderer",function(){if(zJy===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;xOB===void 0&&(xOB=document.createElement("template"));var M=xOB;A.call(U,M.content.cloneNode(!0),H.content.firstChild);zJy=H}H=zJy;return H},{mode:2});var rd=function(){return _.B.apply(this,arguments)||this};
_.R(rd,_.B);rd.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"}}}};
rd.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(H){return H.hasOwnProperty("clipCreationRenderer")})&&_.yr(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
rd.prototype.onPanelContentVisibleChanged=rd.prototype.onPanelContentVisibleChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],rd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],rd.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.Jh.YtVisibilityBehavior),_.q("design:type",Object)],rd.prototype,"ytVisibilityBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],rd.prototype,"ytdReduxBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],rd.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],rd.prototype,"panelContentVisible",void 0);_.G([_.Ya("panelContentVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rd.prototype,"onPanelContentVisibleChanged",null);_.G([_.dX({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],rd);
_.e(rd,"ytd-clip-section-renderer",function(){if(EEj!==void 0)return EEj;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return EEj=H},{mode:1});var r5m;var eJh;var DOX;var $Oj=function(){return _.B.apply(this,arguments)||this};
_.R($Oj,_.B);_.G([_.y(),_.q("design:type",Object)],$Oj.prototype,"data",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],$Oj.prototype,"ytRendererBehavior",void 0);_.G([_.dX({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],$Oj);
_.e($Oj,"ytd-hashtag-grid-tile-renderer",function(){if(DOX!==void 0)return DOX;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return DOX=H},{mode:1});var en=function(){return _.B.apply(this,arguments)||this};
_.R(en,_.B);en.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
en.prototype.updateRichGridTrendingHashtagsVisibility=function(){var H,U;if(((H=this.data)==null||!H.isExpanded)&&(U=this.data)!=null&&U.tiles){H=this.data.tiles.length;U=H>this.richGridItemsPerRow?this.richGridItemsPerRow+1:H;var A=Math.ceil(H/U);this.fullyVisibleRows=H%U===1&&A===2?1:Math.min(A,2);this.isShowMoreVisible=this.fullyVisibleRows<A}};
en.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
en.prototype.updateRichGridTrendingHashtagsVisibility=en.prototype.updateRichGridTrendingHashtagsVisibility;_.G([_.y(),_.q("design:type",Object)],en.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Number)],en.prototype,"fullyVisibleRows",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],en.prototype,"isShowMoreVisible",void 0);_.G([_.y({selector:_.Xz,value:0}),_.q("design:type",Number)],en.prototype,"richGridItemsPerRow",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],en.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],en.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],en.prototype,"ytdReduxBehavior",void 0);_.G([_.Ya("data","richGridItemsPerRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],en.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.G([_.dX({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],en);
_.e(en,"ytd-hashtag-grid-shelf-renderer",function(){if(eJh!==void 0)return eJh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return eJh=H},{mode:1});var lV$;var GA5;var YV5=0,Di=function(){var H=_.B.call(this)||this;H.selected=!1;H.isOverlay=!1;H.inputId="toggle-option-"+YV5;YV5++;return H};
_.R(Di,_.B);Di.prototype.onTap=function(){_.cg(this.hostElement,"ytd-toggle-option-clicked")};
_.G([_.y(),_.q("design:type",String)],Di.prototype,"label",void 0);_.G([_.y(),_.q("design:type",String)],Di.prototype,"inputId",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Di.prototype,"selected",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Di.prototype,"isOverlay",void 0);_.G([_.dX({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.q("design:paramtypes",[])],Di);
_.e(Di,"ytd-toggle-option-renderer",function(){if(GA5!==void 0)return GA5;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return GA5=H},{mode:1});var $W=function(){var H=_.B.apply(this,arguments)||this;H.isToggleOption=!1;H.isOverlay=!1;return H};
_.R($W,_.B);$W.prototype.onTap=function(H){H.preventDefault();this.data&&(H=!this.data.checked,this.set("data.checked",H),_.cg(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:H,value:this.data.value}))};
_.D5.Object.defineProperties($W.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
$W.prototype.onTap=$W.prototype.onTap;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],$W.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],$W.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],$W.prototype,"isToggleOption",void 0);_.G([_.y(),_.q("design:type",Object)],$W.prototype,"isOverlay",void 0);_.G([_.a("data.responseText"),_.q("design:type",String),_.q("design:paramtypes",[])],$W.prototype,"label",null);
_.G([_.Gl("ytd-toggle-option-clicked"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],$W.prototype,"onTap",null);_.G([_.dX({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],$W);
_.e($W,"ytd-checkbox-survey-option-renderer",function(){if(lV$!==void 0)return lV$;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return lV$=H},{mode:1});var qVj;var hJ8;var lq=function(){var H=_.B.apply(this,arguments)||this;H.checked=!1;H.isToggleOption=!1;return H};
_.R(lq,_.B);lq.prototype.onTap=function(){this.data&&(this.checked?_.yr(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.yr(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
lq.prototype.onTap=lq.prototype.onTap;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],lq.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],lq.prototype,"checked",void 0);_.G([_.y(),_.q("design:type",Object)],lq.prototype,"isToggleOption",void 0);_.G([_.Gl("ytd-toggle-option-clicked"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],lq.prototype,"onTap",null);
_.G([_.dX({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],lq);
_.e(lq,"ytd-radio-button-survey-option-renderer",function(){if(hJ8!==void 0)return hJ8;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return hJ8=H},{mode:1});var Gw=function(){var H=_.B.apply(this,arguments)||this;H.disableAnimation=!1;H.isToggleOption=!0;H.followUpSurveyCommand=null;H.selectedRatingEndpoint=null;H.isSlimlineSurveyFollowUp=!1;H.isShortsStyle=!1;H.styleOverrideAttribute=!0;H.isDarkMode=!1;H.isSubmitted=!1;H.roundedContainer=!0;H.improveShortsResponseRate=_.S("web_improve_shorts_response_rate");H.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 H};
_.R(Gw,_.B);_.X=Gw.prototype;
_.X.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"}}}}};
_.X.attached=function(){var H=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(A){var M;if((M=A[0])!=null&&M.isIntersecting){_.qD().reportShown(H.hostElement);var W;(W=H.intersectionObserver)==null||W.unobserve(H.hostElement)}},{rootMargin:"0px",
threshold:.6});var U;(U=this.intersectionObserver)==null||U.observe(this.hostElement)};
_.X.onDarkModeToggledAction=function(H){this.isDarkMode=H};
_.X.dataChanged=function(){var H;if(((H=this.data)==null?void 0:H.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var U;((U=this.data)==null?void 0:U.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var A,M,W,w;this.darkColorPalette=(A=this.data)==null?void 0:(M=A.inlineContent)==null?void 0:(W=M.compactVideoRenderer)==null?void 0:(w=W.thumbnail)==null?
void 0:w.darkColorPalette;var d,O,f,J;this.lightColorPalette=(d=this.data)==null?void 0:(O=d.inlineContent)==null?void 0:(f=O.compactVideoRenderer)==null?void 0:(J=f.thumbnail)==null?void 0:J.lightColorPalette;var F,P;if(((F=this.data)==null?0:(P=F.inlineContent)==null?0:P.compactVideoRenderer)&&this.isShortsStyle){var n,N,L,m;H=_.EB((n=this.data)==null?void 0:(N=n.inlineContent)==null?void 0:(L=N.compactVideoRenderer)==null?void 0:(m=L.thumbnail)==null?void 0:m.thumbnails);_.Dt(this.hostElement,
{"--yt-background-url":"url("+H+")"})}};
_.X.handleRequestCompletion=function(){this.hostElement.hidden&&_.cg(this.hostElement,"yt-dismissible-item-dismissed")};
_.X.onPopupClosed=function(H){var U;((U=H.detail)==null?void 0:U.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.yr(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.X.handleInlineSurveyRatingSelect=function(H,U){var A=this;this.selectedRatingEndpoint=H;this.followUpSurveyCommand=U;this.expanded=!!H;this.getOptionRenderers().forEach(function(M,W){A.notifyPath("followUpSurveyCommand.followUpOptions."+W+".checkboxSurveyOptionRenderer.checked");A.set("followUpSurveyCommand.followUpOptions."+W+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),H=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.yr(this.hostElement,"yt-reel-non-video-content-dismissal-command",[H]))};
_.X.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.yr(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var H,U=(H=this.data)==null?void 0:H.dismissalEndpoint;U&&this.ytComponentBehavior.resolveCommand(U)}};
_.X.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.yr(this.hostElement,"yt-close-popup-action"))};
_.X.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var H=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{H=this.getOptionRenderers().filter(function(M){return M.checked});
if(H.length===0)return;H=H.map(function(M){return M.responseEndpoint})}var U=[];
H.forEach(function(M,W){W!==0&&(M=_.p(M,_.i$))&&M.feedbackToken&&U.push(M.feedbackToken)});
if(H=H[0]){var A={};U.length>0&&(A.extra_feedback_tokens=U);this.ytComponentBehavior.resolveCommand(H,{form:A})}}};
_.X.getOptionRenderers=function(){var H=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(U){H.isSingleSelect=!!_.p(U,c6j);return H.isSingleSelect?_.p(U,c6j):_.p(U,y6j)}):[]};
_.X.handleInlineSurveyOptionSelect=function(H){H=this.optionSelector.indexOf(H);H!==-1&&this.optionSelector.selectIndex(H)};
_.X.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.X.maybeGetBackgroundColor=function(H){return this.isDarkMode?H.section2Color:H.section3Color};
_.X.colorPaletteChanged=function(){var H=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;H=H&&this.maybeGetBackgroundColor(H);this.dismissibleEl.style.backgroundColor=!H||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.wn(H)};
_.D5.Object.defineProperties(Gw.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Gw.prototype.colorPaletteChanged=Gw.prototype.colorPaletteChanged;Gw.prototype.onPopupClosed=Gw.prototype.onPopupClosed;Gw.prototype.handleRequestCompletion=Gw.prototype.handleRequestCompletion;Gw.prototype.dataChanged=Gw.prototype.dataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Gw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Gw.prototype,"actionHandlerBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Gw.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],Gw.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.hG("#follow-up-survey-options"),_.q("design:type",Object)],Gw.prototype,"optionSelector",void 0);_.G([_.y(),_.q("design:type",Object)],Gw.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Object)],Gw.prototype,"disableAnimation",void 0);_.G([_.y(),_.q("design:type",Object)],Gw.prototype,"isToggleOption",void 0);_.G([_.y(),_.q("design:type",Object)],Gw.prototype,"followUpSurveyCommand",void 0);_.G([_.y(),_.q("design:type",Object)],Gw.prototype,"selectedRatingEndpoint",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Gw.prototype,"expanded",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Gw.prototype,"isSlimlineSurveyFollowUp",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Gw.prototype,"isShortsStyle",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Gw.prototype,"styleOverrideAttribute",void 0);_.G([_.y(),_.q("design:type",Boolean)],Gw.prototype,"isSingleSelect",void 0);_.G([_.y(),_.q("design:type",Object)],Gw.prototype,"isDarkMode",void 0);
_.G([_.y(),_.q("design:type",Object)],Gw.prototype,"lightColorPalette",void 0);_.G([_.y(),_.q("design:type",Object)],Gw.prototype,"darkColorPalette",void 0);_.G([_.a("selectedRatingEndpoint","isShortsStyle"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Gw.prototype,"isOptionSelected",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Gw.prototype,"roundedContainer",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Gw.prototype,"improveShortsResponseRate",void 0);_.G([_.hG("#dismissible"),_.q("design:type",HTMLElement)],Gw.prototype,"dismissibleEl",void 0);_.G([_.hG("#dismiss-button yt-icon-button"),_.q("design:type",HTMLElement)],Gw.prototype,"dismissButtonEl",void 0);_.G([_.hG("#inline-survey-header yt-icon-button"),_.q("design:type",HTMLElement)],Gw.prototype,"inlineHeaderDismissButtonEl",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gw.prototype,"dataChanged",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gw.prototype,"handleRequestCompletion",null);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Gw.prototype,"onPopupClosed",null);
_.G([_.Ya("darkColorPalette","lightColorPalette","isDarkMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gw.prototype,"colorPaletteChanged",null);_.G([_.dX({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Gw);
_.e(Gw,"ytd-inline-survey-renderer",function(){if(qVj!==void 0)return qVj;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return qVj=H},{mode:1});var kAh;var vEh;var YW=function(){var H=_.B.apply(this,arguments)||this;H.visibleVideos=[];H.hiddenVideos=[];H.modern=_.S("web_modern_buttons");H.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.R(YW,_.B);_.X=YW.prototype;_.X.attached=function(){var H=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",H);this.onDarkModeToggledAction(H)};
_.X.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"}}}};
_.X.dataChanged=function(){var H=this;this.requestElementsPerRow();var U,A;this.currentColorPalette=this.isDarkTheme?(U=this.data)==null?void 0:U.darkColorData:(A=this.data)==null?void 0:A.lightColorData;var M;if((M=this.currentColorPalette)==null?0:M.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.rV(this,function(){H.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.X.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.X.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.X.computeIsFirstFeedItem=function(H){return H};
_.X.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&this.set("isDarkTheme",H);this.data&&(this.currentColorPalette=H?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.X.getCurrentLogo=function(H,U){if(H)return U?H.darkLogoImage:H.lightLogoImage};
_.X.computeTitleStyle=function(H){var U;if((U=this.data)!=null&&U.title&&H&&H.textPrimary!==void 0)return"color:"+_.wn(H.textPrimary)+";"};
_.X.computeSubtitleStyle=function(H){var U;if((U=this.data)!=null&&U.subtitle&&H&&H.textSecondary!==void 0)return"color:"+_.wn(H.textSecondary)+";"};
_.X.computeDismissIconStyle=function(H){if(this.data&&this.data.dismissButton&&H&&H.textPrimary!==void 0)return"--yt-button-color:"+_.wn(H.textPrimary)+";"};
_.X.computeOverflowButtonStyle=function(H){if(this.data&&this.data.overflowButton&&H&&H.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.wn(H.textPrimary)+";--yt-spec-icon-active-other:"+_.wn(H.textPrimary)+";"};
_.X.computeBackgroundStyle=function(H){if(H&&this.data){var U="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var A=_.EB((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);A&&(U+='background-image:url("'+A+'");')}H.backgroundColor!==void 0&&(U+="background-color:"+_.bN(H.backgroundColor)+";");return U}};
_.X.computeButton=function(){var H,U=Object.assign({},_.p((H=this.data)==null?void 0:H.showMoreButton,_.f$));if(this.modern&&U){U.style="STYLE_MONO_OUTLINE";var A;if(H=(A=this.currentColorPalette)==null?void 0:A.textPrimary)U.colorData={basicColorPaletteData:{foregroundTitleColor:H,borderColor:H}}}return U};
_.X.shouldShowBottomButton=function(H,U){return!(H==null?0:H.header)&&!(H==null||!H.primaryButton)&&U<3};
_.X.checkExpanded=function(H){this.isExpanded=H&&H.content?this.hiddenVideos.length===0:!0};
_.X.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.X.getLogoHeight=function(H){return this.logoWithPadding(H)?"26":"20"};
_.X.getLogoImageId=function(H){return this.logoWithPadding(H)?"logo-image-with-padding":"logo-image"};
_.X.computeHasSectionHeader=function(H){return!!H.header};
_.X.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var H;if((H=this.data.primaryButton)==null?0:H.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 U;((U=this.data.dismissButton)==null?0:U.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var A,M;((A=this.data)==null?0:(M=A.primaryButton)==null?0:M.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.X.setVisibleVideos=function(H){if(this.data&&this.data.content)if(this.data.content.length){var U=this.data.content.length;this.data.header?H?(this.visibleVideos=this.data.content.slice(0,Math.min(U,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(U,this.slimItemsPerRow),U)):(this.visibleVideos=this.data.content.slice(0,Math.min(U,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(U,this.elementsPerRow),U)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(U,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(U,this.elementsPerRow),U)):(this.visibleVideos=this.data.content.slice(0,Math.min(U,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(U,this.elementsPerRow-1),U))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.X.setHasMovieRenderer=function(){var H;if((H=this.data)!=null&&H.content){var U;this.hasMovieRenderer=!!_.p((U=this.data)==null?void 0:U.content[0],_.qCm)}else this.hasMovieRenderer=!1};
_.X.requestElementsPerRow=function(){_.cg(this.hostElement,"yt-request-elements-per-row")};
_.X.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var H=_.b(this.hiddenMediaRenderers),U=H.next();!U.done;U=H.next())U.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(H=_.c4(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&H.focus()}};
_.X.updateTitleSpec=function(){var H;(H=this.data)!=null&&H.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.X.logoWithPadding=function(H){var U,A,M;return(H=(U=this.getCurrentLogo(H,this.isDarkTheme))==null?void 0:(A=U.thumbnails)==null?void 0:(M=A[0])==null?void 0:M.height)&&H%31===0?!0:!1};
_.X.onUpdateElementsPerRowAction=function(H,U,A){H&&this.elementsPerRow!==H&&(this.elementsPerRow=H);A&&this.slimItemsPerRow!==A&&(this.slimItemsPerRow=A)};
YW.prototype.slimItemsPerRowChanged=YW.prototype.slimItemsPerRowChanged;YW.prototype.elementsPerRowChanged=YW.prototype.elementsPerRowChanged;YW.prototype.dataChanged=YW.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],YW.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],YW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],YW.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],YW.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],YW.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],YW.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],YW.prototype,"currentColorPalette",void 0);_.G([_.y(),_.q("design:type",Array)],YW.prototype,"visibleVideos",void 0);_.G([_.y(),_.q("design:type",Array)],YW.prototype,"hiddenVideos",void 0);
_.G([_.y(),_.q("design:type",Object)],YW.prototype,"primaryButton",void 0);_.G([_.y({reflectToAttribute:!0,value:3}),_.q("design:type",Number)],YW.prototype,"elementsPerRow",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],YW.prototype,"isDarkTheme",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],YW.prototype,"isExpanded",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],YW.prototype,"largeTitle",void 0);
_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],YW.prototype,"hasMovieRenderer",void 0);_.G([_.y(),_.q("design:type",Number)],YW.prototype,"slimItemsPerRow",void 0);_.G([_.y(),_.q("design:type",Boolean)],YW.prototype,"showLightVideoMetadata",void 0);_.G([_.y(),_.q("design:type",Boolean)],YW.prototype,"showDarkVideoMetadata",void 0);_.G([_.y(),_.q("design:type",Number)],YW.prototype,"videoMetadataColor",void 0);
_.G([_.y({reflectToAttribute:!0,selector:_.w1}),_.q("design:type",Boolean)],YW.prototype,"miniMode",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.q("design:type",Boolean)],YW.prototype,"isFirstFeedItem",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.q("design:type",Boolean)],YW.prototype,"hasSectionHeader",void 0);
_.G([_.y({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],YW.prototype,"roundedContainer",void 0);_.G([_.ka("#visible-video-container ytd-rich-grid-media"),_.q("design:type",Array)],YW.prototype,"visibleMediaRenderers",void 0);_.G([_.ka("#hidden-video-container ytd-rich-grid-media"),_.q("design:type",Array)],YW.prototype,"hiddenMediaRenderers",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],YW.prototype,"modern",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],YW.prototype,"dataChanged",null);_.G([_.Ya("elementsPerRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],YW.prototype,"elementsPerRowChanged",null);_.G([_.Ya("slimItemsPerRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],YW.prototype,"slimItemsPerRowChanged",null);
_.G([_.dX({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],YW);
_.e(YW,"ytd-brand-video-shelf-renderer",function(){if(vEh!==void 0)return vEh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return vEh=H},{mode:1});var Ty$;var qm=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.R(qm,_.B);_.X=qm.prototype;_.X.attached=function(){var H=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",H);this.onDarkModeToggledAction(H)};
_.X.configureRendererStamper=function(){return{primaryButton:{id:"primary-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"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.X.dataChanged=function(){this.requestElementsPerRow();var H,U;this.currentColorPalette=this.isDarkTheme?(H=this.data)==null?void 0:H.darkColorData:(U=this.data)==null?void 0:U.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.X.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.X.computeIsFirstFeedItem=function(H){return H};
_.X.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&this.set("isDarkTheme",H);this.data&&(this.currentColorPalette=H?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(H),this.updateButtonPalette())};
_.X.shouldShowThumbnailInMetadata=function(H){return H<=1};
_.X.computeVideoMetadataColor=function(){if(this.data){var H;if((H=this.currentColorPalette)==null?0:H.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.X.computeTitleStyle=function(H){var U;if((U=this.data)!=null&&U.title&&H&&H.textPrimary!==void 0)return"color:"+_.wn(H.textPrimary)+";"};
_.X.computeSubtitleStyle=function(H){var U;if((U=this.data)!=null&&U.subtitle&&H&&H.textSecondary!==void 0)return"color:"+_.wn(H.textSecondary)+";"};
_.X.computeOverflowButtonStyle=function(H){if(this.data&&this.data.overflowButton&&H.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.wn(H.textPrimary)+";--yt-spec-icon-active-other:"+_.wn(H.textPrimary)+";"};
_.X.computeBackgroundStyle=function(H){if(H&&this.data){var U="";H.backgroundColor!==void 0&&(U+="background-color:"+_.bN(H.backgroundColor)+";");return U}};
_.X.computeHasOverflowButton=function(H){return!!H.overflowButton};
_.X.updateButtonPalette=function(){if(this.data){var H;if((H=this.data.primaryButton)==null?0:H.buttonRenderer){var U;if((U=this.currentColorPalette)==null?0:U.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var A;((A=this.currentColorPalette)==null?0:A.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.X.requestElementsPerRow=function(){_.cg(this.hostElement,"yt-request-elements-per-row")};
_.X.updateTitleSpec=function(){var H;(H=this.data)!=null&&H.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")};
_.X.onUpdateElementsPerRowAction=function(H){H&&this.elementsPerRow!==H&&(this.elementsPerRow=H)};
qm.prototype.elementsPerRowChanged=qm.prototype.elementsPerRowChanged;qm.prototype.dataChanged=qm.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],qm.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],qm.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],qm.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],qm.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],qm.prototype,"currentColorPalette",void 0);_.G([_.y(),_.q("design:type",Object)],qm.prototype,"primaryButton",void 0);
_.G([_.y({reflectToAttribute:!0,value:3}),_.q("design:type",Number)],qm.prototype,"elementsPerRow",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],qm.prototype,"isDarkTheme",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],qm.prototype,"titleSize",void 0);_.G([_.y(),_.q("design:type",Number)],qm.prototype,"videoMetadataColor",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.w1}),_.q("design:type",Boolean)],qm.prototype,"miniMode",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.q("design:type",Boolean)],qm.prototype,"isFirstFeedItem",void 0);_.G([_.y({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],qm.prototype,"roundedContainer",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.q("design:type",Boolean)],qm.prototype,"hasOverflowButton",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qm.prototype,"dataChanged",null);_.G([_.Ya("elementsPerRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qm.prototype,"elementsPerRowChanged",null);_.G([_.dX({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],qm);
_.e(qm,"ytd-brand-video-singleton-renderer",function(){if(Ty$!==void 0)return Ty$;var H=document.createElement("template");_.E(H,'\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" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" 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="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)]]" 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="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Ty$=H},{mode:2});var j8f;var IV$=_.r(function(H){var U=H.data;return _.Z(_.nG,{data:function(){return U().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(U().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var A=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":A=88;break a;default:A=88}return A},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return U().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Hh"),V07=_.r(function(H){var U=H.metadataRow;
var A=H.delimiter;return _.Z(_.FQ,{each:function(){return U().textParts||[]},
keyBy:"INDEX"},function(M,W){return _.Z(_.ve,null,_.Z(_.Pb,{text:M,noWrap:!0,userInput:!0}),_.Z(Q8m,{delimiter:A,max:function(){return U().textParts.length},
index:W}))})},"Ih"),Q8m=_.r(function(H){var U=H.delimiter;
var A=H.max;var M=H.index;return _.Z(_.K,{cond:function(){return(U==null?void 0:U())&&A()-1>M()},
then:function(){return _.Z("span",null,U)}})},"Jh"),Hsh=_.r(function(H){var U=H.data;
H={};return _.Z("yt-profile-page-header-information-view-model",{class:_.CG("profilePageHeaderInformationViewModelHost",(H.profilePageHeaderInformationViewModelMobile=!1,H))},_.Z(_.K,{cond:function(){return U().onTap},
then:function(){return _.Z(_.xy,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.ij(U().onTap)}},_.Z(_.YY,{data:function(){return U().thumbnail}},{profilePageHeaderThumbnailViewModel:IV$}))},
else:function(){return _.Z("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.Z(_.YY,{data:function(){return U().thumbnail}},{profilePageHeaderThumbnailViewModel:IV$}))}}),_.Z("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.Z(_.K,{cond:function(){return U().onTap},
then:function(){return _.Z(_.YY,{data:function(){return U().title}},{profilePageHeaderTitleViewModel:function(A){var M=A.data;
return _.Z(_.xy,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.ij(M().onTap)}},_.Z(_.Pb,{text:function(){return M().title}}))}})},
else:function(){return _.Z(_.YY,{data:function(){return U().title}},{profilePageHeaderTitleViewModel:function(A){var M=A.data;
return _.Z(_.Pb,{text:function(){return M().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.Z(_.YY,{data:function(){return U().metadata}},{profilePageHeaderMetadataViewModel:function(A){var M=A.data;
return _.Z(_.K,{cond:function(){return M().metadataRows},
then:function(W){return _.Z("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.Z(_.FQ,{each:W,keyBy:"INDEX"},function(w,d){return _.Z(_.ve,null,_.Z(V07,{metadataRow:w,delimiter:" \u2022 "}),_.Z(Q8m,{delimiter:" \u2022 ",max:function(){return W().length},
index:d}))}))}})}})))},"Kh");
Hsh.idomCompat=!0;_.LG(Hsh,"yt-profile-page-header-information-view-model",{props:{data:_.sY}});var hx=function(){return _.B.apply(this,arguments)||this};
_.R(hx,_.B);hx.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],hx.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],hx.prototype,"data",void 0);_.G([_.dX({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],hx);
_.e(hx,"ytd-effect-pivot-header-view-model",function(){if(j8f!==void 0)return j8f;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return j8f=
H},{mode:1});var UqB;var kW=function(){return _.B.apply(this,arguments)||this};
_.R(kW,_.B);kW.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],kW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],kW.prototype,"data",void 0);_.G([_.dX({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],kW);
_.e(kW,"ytd-source-pivot-header-renderer",function(){if(UqB!==void 0)return UqB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return UqB=H},{mode:1});var Avp;var MJX;var WDY;var vp=function(){var H=_.B.apply(this,arguments)||this;H.playing=!1;H.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.vF(H);H.active=!1;return H};
_.R(vp,_.B);_.X=vp.prototype;_.X.detached=function(){this.stop()};
_.X.play=function(){var H=this,U,A,M,W,w;return _.u(function(d){if(d.nextAddress==1)return H.active=!0,U=H.get("data.inlinePlaybackEndpoint.watchEndpoint"),A=U.videoId||H.data.videoId,M=U.startTimeSeconds||0,W=U.playerParams||null,_.S("kevlar_player_update_killswitch")?d.yield(H.playerEl.update({args:{video_id:A,startSeconds:M,player_params:W}}),2):(H.playerEl.loadVideoWithPlayerVars({video_id:A,startSeconds:M,player_params:W,autoplay:!0}),d.jumpTo(2));if(d.nextAddress!=4)return d.yield(H.playerEl.getPlayerPromise(),
4);w=d.yieldResult;w.unloadModule("annotations_module");w.addEventListener("onStateChange",function(O){H.onPlayerStateChange(O)});
_.DO(d)})};
_.X.onPlayerStateChange=function(H){if(this.active)switch(this.playing=H===1,H){case 1:_.cg(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.cg(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.X.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.X.resize=function(){var H=this,U;return _.u(function(A){if(A.nextAddress==1)return A.yield(H.playerEl.getPlayerPromise(),2);U=A.yieldResult;U.setSize(NaN,NaN);_.DO(A)})};
_.G([_.y(),_.q("design:type",Object)],vp.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],vp.prototype,"playing",void 0);_.G([_.y(),_.q("design:type",Object)],vp.prototype,"playerId",void 0);_.G([_.hG("#player"),_.q("design:type",Object)],vp.prototype,"playerEl",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],vp);
_.e(vp,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(WDY!==void 0)return WDY;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return WDY=H},{mode:1});var wDX;var XDX;var Tw=function(){var H=_.B.apply(this,arguments)||this;H.width=0;return H};
_.R(Tw,_.B);_.X=Tw.prototype;_.X.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.lN(this,this.onEnded));this.mp4El.addEventListener("error",_.lN(this,this.onError))};
_.X.detached=function(){this.videoEl.removeEventListener("ended",_.lN(this,this.onEnded));this.mp4El.removeEventListener("error",_.lN(this,this.onError))};
_.X.play=function(){var H=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var U=this.videoEl.play();U?U.then(function(){H.handleVideoStartPlaying()}).catch(function(){_.cg(H.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.cg(this.hostElement,"yt-video-thumbnail-not-playing")};
_.X.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.X.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.X.dataChanged=function(){var H;if((H=this.data)==null?0:H.thumbnailPlaceholder)H=_.Rv(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+H+")";this.stop();this.autoplay&&this.play()};
_.X.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.X.onEnded=function(){this.stop();_.cg(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.X.onError=function(){_.cg(this.hostElement,"yt-video-thumbnail-error")};
_.X.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.X.getVideoThumbnail=function(H){if(H&&H.length)return H[0]};
Tw.prototype.dataChanged=Tw.prototype.dataChanged;_.G([_.y(),_.q("design:type",Object)],Tw.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Tw.prototype,"animatePlaceholderOnEntrance",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Tw.prototype,"autoplay",void 0);_.G([_.y({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.q("design:type",Object)],Tw.prototype,"videoThumbnail",void 0);
_.G([_.y(),_.q("design:type",Boolean)],Tw.prototype,"loop",void 0);_.G([_.y(),_.q("design:type",Boolean)],Tw.prototype,"isVideoPlaying",void 0);_.G([_.y(),_.q("design:type",Object)],Tw.prototype,"width",void 0);_.G([_.hG("#mp4"),_.q("design:type",HTMLElement)],Tw.prototype,"mp4El",void 0);_.G([_.hG("#placeholder"),_.q("design:type",HTMLElement)],Tw.prototype,"placeholderEl",void 0);_.G([_.hG("#video"),_.q("design:type",HTMLVideoElement)],Tw.prototype,"videoEl",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Tw.prototype,"dataChanged",null);_.G([_.b0({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],Tw);
_.e(Tw,"yt-video-as-thumbnail-details",function(){if(XDX===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;wDX===void 0&&(wDX=document.createElement("template"));var M=wDX;A.call(U,M.content.cloneNode(!0),H.content.firstChild);XDX=H}H=XDX;return H},{mode:2});var jn=function(){var H=_.B.apply(this,arguments)||this;H.disableGridStateAware=!1;H.animationEnabled=_.S("enable_web_ketchup_hero_animation");H.transitioningOut=!1;H.narrow=!1;H.narrower=!1;H.isCarouselInFeed=!1;H.videoTimeoutJobId=0;H.panelTimeoutJobId=0;H.panelTimeoutJobStartMs=0;H.actionMap={"yt-window-resized":"onWindowResized"};return H};
_.R(jn,_.B);_.X=jn.prototype;_.X.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.X.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var H;this.player&&((H=this.data)==null?0:H.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.X.attached=function(){this.onWindowResized()};
_.X.detached=function(){this.clearTimeouts()};
_.X.onWindowResized=function(){this.updateSize()};
_.X.computePanelLayout=function(H){return H&&H.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.X.playVideo=function(){var H;this.video&&((H=this.data)==null?0:H.videoThumbnail)&&this.video.play();var U;this.player&&((U=this.data)==null?0:U.inlinePlaybackRenderer)&&this.player.play()};
_.X.stopVideo=function(){var H;this.video&&((H=this.data)==null?0:H.videoThumbnail)&&this.video.stop();var U;this.player&&((U=this.data)==null?0:U.inlinePlaybackRenderer)&&this.player.stop()};
_.X.transitionOut=function(){var H=this;this.transitioningOut=!0;return new Promise(function(U){H.player&&(H.player.playing=!1);var A=_.c4(H.hostElement).querySelector("#action-button");if(A){var M=function(){A.removeEventListener("animationend",M);_.Fl.cancelJob(W);U();H.transitioningOut=!1};
var W=_.bM(_.Fl,M,1E3);A.addEventListener("animationend",M)}else U(),H.transitioningOut=!1})};
_.X.computeMetadataOrder=function(H){return H&&H.metadataOrder&&H.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?H.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.X.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.X.computeAvatarSize=function(H){return H&&H.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.X.onContentClick=function(H){if(!_.ny(_.Lf(H),this.hostElement,["A".toString(),"BUTTON".toString()])){var U;if((U=this.data)==null?0:U.navigationEndpoint){var A;this.componentBehavior.resolveCommand((A=this.data)==null?void 0:A.navigationEndpoint)}}};
_.X.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.X.setBackgroundImage=function(H){if(H=this.getBackgroundImageUrl(H))_.c4(this.hostElement).querySelector("#hero").style.backgroundImage="url("+H+")"};
_.X.setScrimLayer=function(H){var U=this.getScrimLayerColorStops(H);H=((H==null?void 0:H.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(H=180);_.gD("HTML_DIR")==="rtl"&&(H=-H);U&&(_.c4(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+H+"deg, "+U+")")};
_.X.isNarrower=function(){return this.hostElement.clientWidth<jn.NARROW_VERSION_SIZE};
_.X.getScrimLayerColorStops=function(){var H,U=(H=this.data)==null?void 0:H.scrimColorValues;if(!U)return null;if(U.length===1)return H=_.bN(U[0]),H+" 0%, "+H+" 100%";if(U.length===3){var A=[0,72,98];return U.map(function(M,W){return _.bN(M)+" "+A[W]+"%"}).join(",")}return null};
_.X.getBackgroundImageUrl=function(H){return H&&H.largeFormFactorBackgroundThumbnail?_.Rv((H.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||H.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.X.onPlaying=function(){this.startVideoTimeout()};
_.X.onEnded=function(){this.rotate()};
_.X.startPanelTimeout=function(){var H=this;if(!this.panelTimeoutJobId){var U=this.get("data.minPanelDisplayDurationMs");U&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.bM(_.Fl,function(){H.rotate()},U))}};
_.X.startVideoTimeout=function(){var H=this;if(!this.videoTimeoutJobId){_.Fl.cancelJob(this.panelTimeoutJobId);var U=Date.now()-this.panelTimeoutJobStartMs;U=Math.max(0,this.get("data.minPanelDisplayDurationMs")-U);U=Math.max(this.get("data.minVideoPlayDurationMs")||0,U);this.videoTimeoutJobId=_.bM(_.Fl,function(){H.rotate()},U)}};
_.X.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.Fl.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.Fl.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.X.rotate=function(){this.clearTimeouts();_.cg(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.D5.Object.defineProperties(jn.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.c4(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.c4(this.hostElement).querySelector("#video")}}});
_.D5.Object.defineProperties(jn,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
jn.prototype.onEnded=jn.prototype.onEnded;jn.prototype.onPlaying=jn.prototype.onPlaying;jn.prototype.dataChanged=jn.prototype.dataChanged;_.G([_.g(_.fm),_.q("design:type",Object)],jn.prototype,"ytdGridStateAwareBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],jn.prototype,"componentBehavior",void 0);_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],jn.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.g(_.Ef$),_.q("design:type",Object)],jn.prototype,"ytBooleanLogicBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],jn.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],jn.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jn.prototype,"disableGridStateAware",void 0);_.G([_.y(),_.q("design:type",Object)],jn.prototype,"data",void 0);_.G([_.y({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.q("design:type",String)],jn.prototype,"panelLayout",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jn.prototype,"animationEnabled",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jn.prototype,"transitioningOut",void 0);
_.G([_.y({computed:"computeMetadataOrder(data)"}),_.q("design:type",Boolean)],jn.prototype,"metadataOrder",void 0);_.G([_.y({computed:"computeByline(data)"}),_.q("design:type",Object)],jn.prototype,"byline",void 0);_.G([_.y({computed:"computeAvatarSize(data)"}),_.q("design:type",Number)],jn.prototype,"avatarSize",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jn.prototype,"narrow",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jn.prototype,"narrower",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jn.prototype,"layoutStyle",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jn.prototype,"isCarouselInFeed",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jn.prototype,"dataChanged",null);_.G([_.Gl("yt-default-promo-panel-renderer-playing"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jn.prototype,"onPlaying",null);
_.G([_.Gl("yt-default-promo-panel-renderer-ended"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jn.prototype,"onEnded",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],jn);
_.e(jn,"ytd-default-promo-panel-renderer",function(){if(MJX!==void 0)return MJX;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return MJX=H},{mode:1});_.Qm("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var II=function(){var H=_.B.apply(this,arguments)||this;H.narrower=!1;H.dotMenuVisible=!1;H.paginationThumbnailsVisible=!1;H.active=!0;H.disableGridStateAware=!1;H.actionMap={"yt-window-resized":"onWindowResized"};return H};
_.R(II,_.B);_.X=II.prototype;_.X.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]]"}}}}}};
_.X.attached=function(){document.addEventListener("yt-page-type-changed",_.lN(this,this.onPageTypeChange));this.currentPageSubtype=_.Boh(location.pathname);this.onWindowResized()};
_.X.detached=function(){this.jobId&&_.Fl.cancelJob(this.jobId);this.updateSizeJobId&&_.Fl.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.lN(this,this.onPageTypeChange))};
_.X.onPageTypeChange=function(H){this.active=H.detail.newPageSubtype===this.currentPageSubtype};
_.X.onWindowResized=function(){this.updateSize()};
_.X.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.X.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.X.setCarouselItem=function(H){H>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.Fl.cancelJob(this.jobId);var U=this.getCurrentPanelElement();U&&U.stopVideo();this.currentItemIndex=H%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(U||(U=this.getCurrentPanelElement()),U.playVideo()):this.startRotationJob()};
_.X.scrollThumbnails=function(H){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var U=this.getCurrentPaginationElement();if(U){var A=_.c4(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?A.style.transform="translateX(0)":(U=U.offsetWidth+8,A.style.transform="translateX(-"+U*(H-Math.ceil(Math.floor(this.overlay.offsetWidth/U)/2)+1)+"px)")}}};
_.X.onDataChanged=function(){var H=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.qT(_.Fl,function(){var U;(U=H.getCurrentPanelElement())==null||U.updateSize();H.updateSize()}))};
_.X.getCurrentPanelElement=function(){return _.c4(_.c4(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.X.getCurrentPaginationElement=function(){return _.c4(_.c4(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.X.getNavigationClass=function(H,U){return H===U?"selected":""};
_.X.getNavigationDurationStyle=function(H){return"animation-duration:"+(this.get("data.carouselItems."+H+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.X.onNavigationTap=function(H){var U=this,A=H.model.index;A!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){U.setCarouselItem(A)}),this.autorotateActive=!1)};
_.X.onVideoThumbnailEnded=function(){var H=this;if(this.shouldRotate()){var U=this.getCurrentPaginationElement();U&&(U.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){U.classList.remove("finished");H.setNextCarouselItem()}))}};
_.X.onVideoThumbnailError=function(){this.startRotationJob()};
_.X.onVideoNotPlaying=function(){this.startRotationJob()};
_.X.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.X.startRotationJob=function(){var H=this;_.Fl.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.Fl.addLowPriorityJob(function(){H.getCurrentPanelElement().transitionOut().then(function(){H.setNextCarouselItem()})},this.rotationTimeout))};
_.X.computeDotMenuVisible=function(H,U){return!!H&&!!H.carouselItems&&H.carouselItems.length>1&&!H.paginationThumbnails||!!U};
_.X.computePaginationThumbnailsVisible=function(H,U){var A,M;return((M=H==null?void 0:(A=H.paginationThumbnails)==null?void 0:A.length)!=null?M:0)>1&&!U};
_.X.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.X.computePaginatorAlignment=function(H){return(H==null?void 0:H.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.X.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.X.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.X.isNarrower=function(H){return(H!=null?H:0)<jn.NARROW_VERSION_SIZE};
II.prototype.activeChanged=II.prototype.activeChanged;II.prototype.onVideoNotPlaying=II.prototype.onVideoNotPlaying;II.prototype.onVideoThumbnailError=II.prototype.onVideoThumbnailError;II.prototype.onVideoThumbnailEnded=II.prototype.onVideoThumbnailEnded;II.prototype.onDataChanged=II.prototype.onDataChanged;_.G([_.g(_.fm),_.q("design:type",Object)],II.prototype,"ytdGridStateAwareBehavior",void 0);
_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],II.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],II.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],II.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],II.prototype,"currentItem",void 0);
_.G([_.y(),_.q("design:type",Number)],II.prototype,"currentItemIndex",void 0);_.G([_.y(),_.q("design:type",Number)],II.prototype,"rotationTimeout",void 0);_.G([_.y(),_.q("design:type",Number)],II.prototype,"loopCount",void 0);_.G([_.y({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.q("design:type",String)],II.prototype,"paginatorAlignment",void 0);_.G([_.y(),_.q("design:type",Number)],II.prototype,"jobId",void 0);
_.G([_.y(),_.q("design:type",Number)],II.prototype,"updateSizeJobId",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],II.prototype,"isCarouselInFeed",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],II.prototype,"narrower",void 0);_.G([_.y({computed:"computeDotMenuVisible(data, narrower)"}),_.q("design:type",Object)],II.prototype,"dotMenuVisible",void 0);
_.G([_.y({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.q("design:type",Object)],II.prototype,"paginationThumbnailsVisible",void 0);_.G([_.y({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.q("design:type",String)],II.prototype,"layoutType",void 0);_.G([_.y({value:!0,reflectToAttribute:!0}),_.q("design:type",Boolean)],II.prototype,"autorotateActive",void 0);_.G([_.y(),_.q("design:type",Object)],II.prototype,"active",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],II.prototype,"disableGridStateAware",void 0);_.G([_.hG("#overlay"),_.q("design:type",HTMLElement)],II.prototype,"overlay",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],II.prototype,"onDataChanged",null);
_.G([_.Gl("yt-video-thumbnail-ended"),_.Gl("yt-default-promo-panel-renderer-rotate"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],II.prototype,"onVideoThumbnailEnded",null);_.G([_.Gl("yt-video-thumbnail-error"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],II.prototype,"onVideoThumbnailError",null);
_.G([_.Gl("yt-video-thumbnail-not-playing"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],II.prototype,"onVideoNotPlaying",null);_.G([_.jk("active"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],II.prototype,"activeChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],II);
_.e(II,"ytd-carousel-item-renderer",function(){if(Avp!==void 0)return Avp;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Avp=H},{mode:2});var isj;var bs8;var dq8;var OsB;var Qz=function(){var H=_.B.apply(this,arguments)||this;H.answerExpanded=!1;return H};
_.R(Qz,_.B);Qz.prototype.toggleAnswer_=function(H){var U=_.Rr(H);U&&U.classList.contains("yt-simple-endpoint")||(H.preventDefault(),H.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
Qz.prototype.toggleAnswer_=Qz.prototype.toggleAnswer_;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Qz.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Qz.prototype,"answerExpanded",void 0);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Qz.prototype,"toggleAnswer_",null);
_.G([_.b0({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],Qz);
_.e(Qz,"yt-generic-faq-question-renderer",function(){if(OsB===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;dq8===void 0&&(dq8=document.createElement("template"));var M=dq8;A.call(U,M.content.cloneNode(!0),H.content.firstChild);OsB=H}H=OsB;return H},{mode:2});_.Qm("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Vz=function(){return _.B.apply(this,arguments)||this};
_.R(Vz,_.B);Vz.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Vz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Vz.prototype,"data",void 0);_.G([_.b0({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Vz);
_.e(Vz,"yt-faq-section-renderer",function(){if(bs8===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;isj===void 0&&(isj=document.createElement("template"));var M=isj;A.call(U,M.content.cloneNode(!0),H.content.firstChild);bs8=H}H=bs8;return H},{mode:2});var uJh=_.r(function(H){var U=H.data;var A=function(){var M;return _.MG((M=U())==null?void 0:M.rendererContext)};
H={};return _.Z("content-list-item-view-model",{el:_.sB(_.Wq(function(){return U().rendererContext})),
class:_.CG("ytContentListItemViewModelHost",(H.ytContentListItemViewModelTappable=A,H)),role:function(){return A()?"listitem":void 0},
tabindex:function(){return A()?0:void 0},
"on:keydown":_.VU()},_.Z("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.Z("div",{class:"ytContentListItemViewModelImageContainer"},_.Z(_.K,{cond:function(){return U().image},
then:function(M){return _.Z(_.nG,{data:M,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.Z(_.YY,{data:function(){var M;
return(M=U())==null?void 0:M.avatar}},{avatarViewModel:_.dU})),_.Z("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.Z("div",{class:_.CG("ytContentListItemViewModelTitle",function(){a:{switch(U().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var M="ytContentListItemViewModelProminentTitle";
break a}M=void 0}return M})},_.Z(_.Pb,{text:function(){return U().title}})),_.Z("div",{class:"ytContentListItemViewModelMetadata"},_.Z(_.YY,{data:function(){return U().metadata}},{contentMetadataViewModel:function(M){return _.Z(_.eL,{data:M.data,
layout:1})}})))),_.Z("div",{class:"ytContentListItemViewModelActionButton"},_.Z(_.YY,{data:function(){var M;
return(M=U())==null?void 0:M.actionButton}},{buttonViewModel:_.yJ,
toggleButtonViewModel:_.MI})))},"Lh");var Zsh=_.r(function(H){var U=H.data,A=function(){var W;return(W=U())==null?void 0:W.description},M=function(){var W;
return(W=U())==null?void 0:W.title};
return _.Z("ytfc-youth-basic-section-header-view-model",{class:_.CG("ytfcYouthBasicSectionHeaderViewModelHost",H.className)},_.Z("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.Z(_.YY,{data:function(){var W;return(W=U())==null?void 0:W.avatar}},{avatarViewModel:_.dU}),_.Z(_.K,{cond:function(){var W;
return _.Zf((W=U())==null?void 0:W.themedImage)},
then:function(W){return _.Z(_.nG,{data:W,alt:function(){var w,d;return(d=(w=M())==null?void 0:w.content)!=null?d:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.Z("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.Z(_.K,{cond:M,
then:function(){return _.Z(_.Pb,{text:M,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.Z("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.Z(_.YY,{data:function(){var W;
return(W=U())==null?void 0:W.bottomBadge}},{badgeViewModel:function(W){return _.Z("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.Z(_.Ed,{data:W.data}))}}),_.Z(_.K,{cond:A,
then:function(){return _.Z(_.Pb,{text:A,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Mh");var fKX=_.r(function(H){var U=H.data;return _.Z("ytfc-youth-section-body-view-model",{class:_.CG("ytfcYouthSectionBodyViewModelHost",H.className)},_.Z(_.YY,{data:function(){var A;return(A=U())==null?void 0:A.topContent}},{avatarStackViewModel:function(A){return _.Z(_.uh,{data:A.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.Z(_.Pb,{text:function(){var A;
return(A=U())==null?void 0:A.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Nh");var Jvj=_.r(function(H){var U=_.b(_.iB(!1,void 0,"SrK51e")),A=U.next().value,M=U.next().value,W=function(){return H.data().inlineExpansionEntityKey},w=_.$Y(Ts8,W),d=function(){if(H.isSelected!==void 0)return H.isSelected();
if(W()){var f;return(f=w())==null?void 0:f.expanded}return A()};
U={};var O={};return _.Z("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.c$(function(){H.isSelected!==void 0||W()||M(!A())})},_.Z("div",{class:"ytInlineExpanderViewModelHeader"},_.Z(_.YY,{data:function(){return H.data().headerContent}},{youthBasicSectionHeaderViewModel:Zsh}),_.Z("div",{class:_.CG("ytInlineExpanderViewModelButton",(U.ytInlineExpanderViewModelButtonExpanded=d,U))},_.Z(_.cb,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:d(),accessibilityLabel:d()?_.hP("SHOW_LESS",void 0,"Show Less"):_.hP("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.Z("div",{class:_.CG("ytInlineExpanderViewModelBody",(O.ytInlineExpanderViewModelBodyExpanded=d,O)),"aria-hidden":function(){return!d()}},_.Z("div",{class:"ytInlineExpanderViewModelBodyContent"},_.Z(_.YY,{data:function(){return H.data().bodyContent}},{youthSectionBodyViewModel:fKX}))))},"Oh");var KDk=new _.g3("CONTENT_SECTION_VIEW_MODEL_TOKEN");var o7h=_.r(function(H){var U=function(){return H.data().background},A=function(){return H.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},M=function(){return H.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},W=_.lx().resolve(_.$V(KDk)),w={};
return _.Z("yt-card-view-model",{el:_.sB(_.Wq(function(){return H.data().rendererContext})),
class:_.CG("ytCardViewModelHost",H.className,(w.ytCardViewModelClickable=function(){return _.AF(H.data().rendererContext)},w))},_.Z(_.D8,{contentId:function(){return H.data().contentId}},function(){var d={};
return _.Z("div",{class:_.CG("ytCardViewModelCardViewModelInner",function(){var O;return byj(H.data().cardStyle,(O=H.isSelected)==null?void 0:O.call(H))},function(){if(H.isSelected===void 0){var O;
a:{switch((O=H.data().cardState)==null?void 0:O.selectionState){case "CARD_SELECTION_STATE_SELECTED":O="ytCardViewModelSelected";break a}O=void 0}return O}})},_.Z(_.YY,{data:U},{cinematicContainerViewModel:function(O){return _.Z(_.SM5,{data:O.data})}}),_.Z("div",{class:"ytCardViewModelContentWrapper"},_.Z(_.K,{cond:function(){return!A()},
then:function(){var O={},f={};return _.Z("div",{class:"ytCardViewModelTopContentContainer"},_.Z("div",{class:_.CG("ytCardViewModelTopContent",(O.ytCardViewModelInnerPadding=function(){return!H.data().disableTopContentPadding&&H.data().topContent},O))},_.Z(_.YY,{data:function(){return H.data().topContent}},{contentListItemViewModel:function(J){return _.Z(uJh,{data:J.data})},
basicContentViewModel:_.o6,linearLayoutViewModel:_.sE})),_.Z("div",{class:_.CG("ytCardViewModelInlineTrailingAction",(f.ytCardViewModelInlineCenterTrailingAction=M,f.ytCardViewModelInlineTrailingActionMargin=function(){return H.data().trailingAction},f))},_.Z(_.YY,{data:function(){return H.data().trailingAction}},{buttonViewModel:function(J){return _.Z(_.yJ,{data:J.data})}})))}}),_.Z("div",{class:_.CG((d.ytCardViewModelInnerPadding=function(){return!H.data().disableBodyContentPadding&&H.data().bodyContent},
d))},_.Z(_.YY,{data:function(){return H.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.KUY,
contentListItemViewModel:uJh,descriptionPreviewViewModel:_.kT,inlineExpanderViewModel:function(O){return _.Z(Jvj,{data:O.data,isSelected:H.isSelected})},
linearLayoutViewModel:_.sE,listItemViewModel:_.P3},W&&{contentSectionViewModel:W})))),_.Z(_.K,{cond:function(){return A()},
then:function(){return _.Z("div",{class:"ytCardViewModelOverlayTrailingAction"},_.Z(_.YY,{data:function(){return H.data().trailingAction}},{buttonViewModel:function(O){return _.Z(_.yJ,{data:O.data})}}))}}))}))},"Ph");_.LG(o7h,"yt-card-view-model",{props:{data:_.sY,className:_.sY,isSelected:_.sY}});var FDy;var PO8;var ssY=function(){return _.B.apply(this,arguments)||this};
_.R(ssY,_.B);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ssY.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ssY.prototype,"data",void 0);_.G([_.dX({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],ssY);
_.e(ssY,"ytd-channel-history-renderer",function(){if(PO8!==void 0)return PO8;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return PO8=H},{mode:1});var n75;var N5Y=function(){return _.B.apply(this,arguments)||this};
_.R(N5Y,_.B);_.G([_.y(),_.q("design:type",Object)],N5Y.prototype,"data",void 0);_.G([_.dX({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],N5Y);
_.e(N5Y,"ytd-feature-enablement-info-renderer",function(){if(n75!==void 0)return n75;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return n75=H},{mode:1});var Sfp;var pDp;var Hk=function(){var H=_.B.apply(this,arguments)||this;H.textBoxMaxLength=_.S("enable_tvod_campaign_code_integration")?15:12;return H};
_.R(Hk,_.B);_.X=Hk.prototype;_.X.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.X.onSubmit=function(){var H=this.data.serviceEndpoint,U=_.p(H,_.sy);U&&H&&(U.couponCode=this.userInput,_.lx().resolve(_.YV).resolveCommand(H,{form:{element:this.hostElement}}))};
_.X.validate=function(){var H=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=H&&!this.data.errorMessage;this.showErrorMessage=H&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.S("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.X.computeStyle=function(H){return H};
_.X.computeShowValidationBelowInput=function(H){return H!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.X.updateUserInputFromBinding=function(H){this.userInput=H.currentTarget.value};
_.X.updateShowErrorMessageFromBinding=function(H){this.showErrorMessage=H.detail.value};
_.D5.Object.defineProperties(Hk.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Hk.prototype.dataChanged=Hk.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Hk.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Hk.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],Hk.prototype,"userInput",void 0);_.G([_.y(),_.q("design:type",Boolean)],Hk.prototype,"disableApplyButton",void 0);_.G([_.y(),_.q("design:type",Boolean)],Hk.prototype,"hideApplyButton",void 0);
_.G([_.y(),_.q("design:type",Boolean)],Hk.prototype,"hideErrorMessage",void 0);_.G([_.y(),_.q("design:type",Boolean)],Hk.prototype,"showTick",void 0);_.G([_.y(),_.q("design:type",Boolean)],Hk.prototype,"showErrorMessage",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.q("design:type",String)],Hk.prototype,"couponStyle",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.q("design:type",Boolean)],Hk.prototype,"showValidationBelowInput",void 0);_.G([_.y(),_.q("design:type",Object)],Hk.prototype,"textBoxMaxLength",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Hk.prototype,"dataChanged",null);
_.G([_.a("showTick","showErrorMessage","userInput"),_.q("design:type",String),_.q("design:paramtypes",[])],Hk.prototype,"validationState",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Hk);
_.e(Hk,"ytd-ypc-coupon-renderer",function(){if(pDp!==void 0)return pDp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return pDp=H},{mode:1});var UI=function(){return _.B.apply(this,arguments)||this};
_.R(UI,_.B);UI.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"}}}};
UI.prototype.computeStyle=function(H){return H};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],UI.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],UI.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],UI.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.q("design:type",String)],UI.prototype,"buttonStyle",void 0);_.G([_.dX({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],UI);
_.e(UI,"ytd-flow-bottom-bar-renderer",function(){if(Sfp!==void 0)return Sfp;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Sfp=H},{mode:1});var LDj;var R6m;var A4=function(){return _.B.apply(this,arguments)||this};
_.R(A4,_.B);A4.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
A4.prototype.focus=function(H){this.title&&_.tk(this.title,H)};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],A4.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],A4.prototype,"data",void 0);_.G([_.hG("#title"),_.q("design:type",HTMLElement)],A4.prototype,"title",void 0);_.G([_.dX({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],A4);
_.e(A4,"ytd-flow-top-bar-renderer",function(){if(R6m!==void 0)return R6m;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return R6m=H},{mode:1});var E7Y;var mqf;var g7m;var Mt=function(){return _.B.apply(this,arguments)||this};
_.R(Mt,_.B);Mt.prototype.freeTextValueChanged=function(){_.yr(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Mt.prototype.updateFreeTextValueFromBinding=function(H){this.freeTextValue=H.detail.value};
_.D5.Object.defineProperties(Mt.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var H,U,A=(U=(H=this.data)==null?void 0:H.responseMaxLength)!=null?U:500,M;return((M=this.freeTextValue)!=null?M:"").length>=A?"maxed-out":""}}});
Mt.prototype.freeTextValueChanged=Mt.prototype.freeTextValueChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Mt.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],Mt.prototype,"freeTextValue",void 0);_.G([_.hG("#user-input"),_.q("design:type",HTMLTextAreaElement)],Mt.prototype,"input",void 0);
_.G([_.a("freeTextValue"),_.q("design:type",Object),_.q("design:paramtypes",[])],Mt.prototype,"characterLimitClass",null);_.G([_.Ya("freeTextValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Mt.prototype,"freeTextValueChanged",null);_.G([_.b0({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Mt);
_.e(Mt,"yt-free-text-input-flow-step-renderer",function(){if(g7m===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;mqf===void 0&&(mqf=document.createElement("template"));var M=mqf;A.call(U,M.content.cloneNode(!0),H.content.firstChild);g7m=H}H=g7m;return H},{mode:2});var Wk=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return H};
_.R(Wk,_.B);Wk.prototype.handleFreeTextFlowStepInputChanged=function(H){_.yr(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:H}}])};
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Wk.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Wk.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Wk.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Wk);
_.e(Wk,"ytd-free-text-input-flow-step-renderer",function(){if(E7Y!==void 0)return E7Y;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return E7Y=H},{mode:1});var aK7;var xqB;var z6$;var COp=function(){return _.B.apply(this,arguments)||this};
_.R(COp,_.B);_.G([_.y(),_.q("design:type",Object)],COp.prototype,"data",void 0);_.G([_.b0({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],COp);
_.e(COp,"yt-survey-answer-card-renderer",function(){if(z6$===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;xqB===void 0&&(xqB=document.createElement("template"));var M=xqB;A.call(U,M.content.cloneNode(!0),H.content.firstChild);z6$=H}H=z6$;return H},{mode:2});var tJ5;var cvh;var wt=function(){return _.B.apply(this,arguments)||this};
_.R(wt,_.B);_.X=wt.prototype;_.X.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.X.selectedItemChanged=function(H){_.yr(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[H.feedbackToken||""]}])};
_.X.surveyAnswerCardRendererClicked=function(H){if(H.target&&_.p(H.model.item,jVk)){var U=H.target;H=_.p(H.model.item,jVk);H.onTapCommand?_.eb(U,[H.onTapCommand],U):this.data.onTapCommand&&_.eb(U,[this.data.onTapCommand],U);this.selectedItemChanged(H)}};
_.X.checkIsCancellationStyle=function(H){return H==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.X.updateSelectedItemFromBinding=function(H){this.selectedItem=H.detail.value};
wt.prototype.onSelectedItemChanged=wt.prototype.onSelectedItemChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],wt.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],wt.prototype,"selectedItem",void 0);_.G([_.y({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.q("design:type",Boolean)],wt.prototype,"isCancellationStyle",void 0);
_.G([_.Ya("selectedItem"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wt.prototype,"onSelectedItemChanged",null);_.G([_.b0({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],wt);
_.e(wt,"yt-survey-flow-step-renderer",function(){if(cvh===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;tJ5===void 0&&(tJ5=document.createElement("template"));var M=tJ5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);cvh=H}H=cvh;return H},{mode:2});var Xv=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return H};
_.R(Xv,_.B);Xv.prototype.handleSurveyFlowStepOptionChanged=function(H){this.ytdReduxBehavior.dispatch(_.zQ({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:H}));_.yr(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:H}}])};
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Xv.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Xv.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Xv.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Xv);
_.e(Xv,"ytd-survey-flow-step-renderer",function(){if(aK7!==void 0)return aK7;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return aK7=H},{mode:1});var yv5;var B55;var rvh=function(){return _.B.apply(this,arguments)||this};
_.R(rvh,_.B);_.G([_.y(),_.q("design:type",Object)],rvh.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],rvh);
_.e(rvh,"ytd-metadata-line-renderer",function(){if(B55!==void 0)return B55;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return B55=H},{mode:1});var ii=function(){return _.B.apply(this,arguments)||this};
_.R(ii,_.B);ii.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ii.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],ii.prototype,"isMasthead",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],ii);
_.e(ii,"ytd-media-product-renderer",function(){if(yv5!==void 0)return yv5;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return yv5=H},{mode:1});var e6X;var bi=function(){return _.B.apply(this,arguments)||this};
_.R(bi,_.B);bi.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
bi.prototype.onBillboardImageLoaded=function(){_.cg(this.hostElement,"yt-refit")};
bi.prototype.onBillboardImageLoaded=bi.prototype.onBillboardImageLoaded;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],bi.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],bi.prototype,"data",void 0);_.G([_.hG("#billboardImage"),_.q("design:type",Object)],bi.prototype,"billboardImage",void 0);_.G([_.Gl("yt-img-shadow-loaded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],bi.prototype,"onBillboardImageLoaded",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],bi);
_.e(bi,"ytd-billboard-masthead-renderer",function(){if(e6X!==void 0)return e6X;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return e6X=H},{mode:1});var DqY;var dt=function(){var H=_.B.apply(this,arguments)||this;H.smallSize=!1;return H};
_.R(dt,_.B);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],dt.prototype,"ytComponentBehaviorType",void 0);_.G([_.y(),_.q("design:type",Object)],dt.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],dt.prototype,"smallSize",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],dt);
_.e(dt,"ytd-bullet-formatted-string",function(){if(DqY!==void 0)return DqY;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return DqY=H},{mode:1});var $q7;var OI=function(){return _.B.apply(this,arguments)||this};
_.R(OI,_.B);OI.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],OI.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],OI.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],OI.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],OI);
_.e(OI,"ytd-offer-detail-renderer",function(){if($q7!==void 0)return $q7;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return $q7=H},{mode:1});var lKh;var ui=function(){return _.B.apply(this,arguments)||this};
_.R(ui,_.B);ui.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"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ui.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ui.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],ui);
_.e(ui,"ytd-offer-detail-step-renderer",function(){if(lKh!==void 0)return lKh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return lKh=H},{mode:1});var G3Y;var ZF=function(){var H=_.B.apply(this,arguments)||this;H.isInOfferModule=!1;return H};
_.R(ZF,_.B);_.X=ZF.prototype;_.X.computeHasEndpoint=function(){var H;return!((H=this.data)==null||!H.onClickCommand)};
_.X.dataChanged=function(){var H;if((H=this.data)==null?0:H.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")};
_.X.detached=function(){var H;if((H=this.data)==null?0:H.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.X.handleClickEvent=function(){var H;if((H=this.data)==null?0:H.onClickCommand){var U;this.componentBehavior.resolveCommand((U=this.data)==null?void 0:U.onClickCommand)}};
_.X.onContentKeyDown=function(H){H.key==="Enter"?this.handleClickEvent(H):H.key===" "&&H.preventDefault()};
_.X.onContentKeyUp=function(H){H.key===" "&&this.handleClickEvent(H)};
ZF.prototype.dataChanged=ZF.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ZF.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ZF.prototype,"data",void 0);_.G([_.y({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],ZF.prototype,"hasEndpoint",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],ZF.prototype,"isInOfferModule",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ZF.prototype,"dataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],ZF);
_.e(ZF,"ytd-channel-masthead-renderer",function(){if(G3Y!==void 0)return G3Y;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return G3Y=H},{mode:1});var YfB;var f0=function(){var H=_.B.apply(this,arguments)||this;H.thumbnailObjectFit="CONTAIN";H.thumbnailObjectPosition="LEFT";H.isExpanded=!1;return H};
_.R(f0,_.B);_.X=f0.prototype;_.X.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.X.dataChanged=function(){this.resetStates()};
_.X.computeisTapOnOfferInfoContainerEnabled=function(){var H;return((H=this.data)==null?void 0:H.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.X.onExpandBtnClick=function(){var H,U=_.p((H=this.data)==null?void 0:H.showMoreButtonRenderer,QVh);U&&_.Yg(_.k$(),U.trackingParams);this.isExpanded=!this.isExpanded};
_.X.onOfferInfoClick=function(H){this.isTapOnOfferInfoContainerEnabled&&(_.ny(_.Lf(H)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.NF(_.Lf(H)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.X.onBottomBarClick=function(){this.executeTapCommand()};
_.X.executeTapCommand=function(){var H,U=(H=this.data)==null?void 0:H.tapCommand;U&&this.ytComponentBehavior.resolveCommand(U)};
_.X.resetStates=function(){this.isExpanded=!1};
_.D5.Object.defineProperties(f0.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var H=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),U,A,M;return((U=this.data)==null?void 0:U.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&H&&!!((A=this.data)==null?0:(M=A.benefits)==null?0:M.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return((U=_.p((H=this.data)==null?void 0:H.showMoreButtonRenderer,QVh))==null?void 0:U.showMoreButtonTitle)||((A=this.data)==null?void 0:A.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return((U=_.p((H=this.data)==null?void 0:H.showMoreButtonRenderer,QVh))==null?void 0:U.showLessButtonTitle)||((A=this.data)==null?void 0:A.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var H;return(H=this.showLessButtonTitle)!=null?H:""}var U;return(U=this.showMoreButtonTitle)!=null?U:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return((H=this.data)==null?void 0:H.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((U=this.data)==null?0:U.footerTitle)||((A=this.data)==null?0:A.footerSubtitle))}}});
f0.prototype.dataChanged=f0.prototype.dataChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],f0.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",String)],f0.prototype,"thumbnailObjectFit",void 0);
_.G([_.y(),_.q("design:type",String)],f0.prototype,"thumbnailObjectPosition",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.q("design:type",Boolean)],f0.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.G([_.y(),_.q("design:type",Object)],f0.prototype,"isExpanded",void 0);_.G([_.y(),_.q("design:type",Object)],f0.prototype,"data",void 0);_.G([_.y({computed:"computeIcon_(data.footerIcon)"}),_.q("design:type",String)],f0.prototype,"icon",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],f0.prototype,"dataChanged",null);_.G([_.a("data.thumbnail"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],f0.prototype,"hasThumbnail",null);_.G([_.a("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],f0.prototype,"enableExpandButton",null);
_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],f0.prototype,"enableOfferContentIcon",null);_.G([_.a("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.q("design:type",Object),_.q("design:paramtypes",[])],f0.prototype,"showMoreButtonTitle",null);_.G([_.a("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.q("design:type",Object),_.q("design:paramtypes",[])],f0.prototype,"showLessButtonTitle",null);
_.G([_.a("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.q("design:type",String),_.q("design:paramtypes",[])],f0.prototype,"expandedBtnText",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],f0.prototype,"enableBottomBar",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],f0);
_.e(f0,"ytd-offer-card-renderer",function(){if(YfB!==void 0)return YfB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return YfB=H},{mode:1});var qf5;var J4=function(){return _.B.apply(this,arguments)||this};
_.R(J4,_.B);J4.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"}}}};
J4.prototype.onClick=function(H){if(!_.ny(H.composedPath()||[],this.hostElement,["A".toString()])){var U,A;if((H=(A=_.p((U=this.data)==null?void 0:U.actionButton,_.f$))==null?void 0:A.command)&&!this.ytComponentBehavior.resolveCommand(H)){var M;(M=_.k$())==null||M.clickCommand(H);_.lx().resolve(_.YV).resolveCommand(H,{form:{element:this.hostElement}})}}};
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],J4.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],J4.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],J4.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],J4.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],J4);
_.e(J4,"ytd-offer-content-renderer",function(){if(qf5!==void 0)return qf5;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return qf5=H},{mode:1});var h6m;var K0=function(){return _.B.apply(this,arguments)||this};
_.R(K0,_.B);K0.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.D5.Object.defineProperties(K0.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var H,U;return!((H=this.data)==null||!H.title)||!((U=this.data)==null||!U.description)}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],K0.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],K0.prototype,"hasHeaderData",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],K0);
_.e(K0,"ytd-offer-section-renderer",function(){if(h6m!==void 0)return h6m;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return h6m=H},{mode:1});var k3h;var oK=function(){return _.B.apply(this,arguments)||this};
_.R(oK,_.B);
oK.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"}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],oK.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],oK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],oK.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],oK);
_.e(oK,"ytd-offer-selection-step-renderer",function(){if(k3h!==void 0)return k3h;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return k3h=H},{mode:1});var v77;var Fv=function(){return _.B.apply(this,arguments)||this};
_.R(Fv,_.B);Fv.prototype.computeStyle=function(H){return H};
Fv.prototype.computeImageWidth=function(H){return H==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.G([_.y({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.q("design:type",String)],Fv.prototype,"containerStyle",void 0);_.G([_.y({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.q("design:type",String)],Fv.prototype,"imageWidth",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Fv.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Fv.prototype,"data",void 0);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Fv);
_.e(Fv,"ytd-confirmation-masthead-renderer",function(){if(v77!==void 0)return v77;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return v77=H},{mode:1});var T5p;var Pk=function(){return _.B.apply(this,arguments)||this};
_.R(Pk,_.B);Pk.prototype.computeStyle=function(H){return H};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Pk.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Pk.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.q("design:type",String)],Pk.prototype,"containerStyle",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Pk);
_.e(Pk,"ytd-purchase-complete-detail-renderer",function(){if(T5p!==void 0)return T5p;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return T5p=H},{mode:1});var jsj;var sI=function(){var H=_.B.apply(this,arguments)||this;H.scriptsAppended=!1;return H};
_.R(sI,_.B);sI.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"}}}};
sI.prototype.onDataChanged=function(){var H=this.get("data.gtmId");H&&(_.VN(H,_.gD("GL","")),this.setupConversionTracking())};
sI.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var H=document.createElement("noscript");H.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(H);this.scriptsAppended=!0}};
sI.prototype.onDataChanged=sI.prototype.onDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],sI.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],sI.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],sI.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],sI.prototype,"scriptsAppended",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sI.prototype,"onDataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],sI);
_.e(sI,"ytd-purchase-complete-step-renderer",function(){if(jsj!==void 0)return jsj;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return jsj=H},{mode:1});var IKf;var n0=function(){return _.B.apply(this,arguments)||this};
_.R(n0,_.B);n0.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],n0.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],n0);
_.e(n0,"ytd-ypc-transaction-error-message-renderer",function(){if(IKf!==void 0)return IKf;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return IKf=H},{mode:1});var Qs5;var VJX;var Nt=function(){var H=_.B.apply(this,arguments)||this;H.handlePhoneVerificationSuccess=function(U){if(H.isValidPhoneVerificationCompletionMessageEvent(U)){var A;((A=H.data)==null?0:A.nextStepCommand)&&H.ytComponentBehavior.resolveCommand(H.data.nextStepCommand)}};
return H};
_.R(Nt,_.B);Nt.prototype.isValidPhoneVerificationCompletionMessageEvent=function(H){if(H.data!=="yt-phone-verification-complete")return!1;H=_.es(H.origin);return H!==null&&H.includes("youtube.com")};
Nt.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Nt.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Nt.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Nt.prototype,"data",void 0);_.G([_.b0({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Nt);
_.e(Nt,"yt-feature-enablement-soft-entry-renderer",function(){if(VJX===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Qs5===void 0&&(Qs5=document.createElement("template"));var M=Qs5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);VJX=H}H=VJX;return H},{mode:1});var H68;var U75;var AC7;var MHj;var Wpm=function(){return _.B.apply(this,arguments)||this};
_.R(Wpm,_.B);_.G([_.y(),_.q("design:type",Object)],Wpm.prototype,"data",void 0);_.G([_.b0({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Wpm);
_.e(Wpm,"yt-benefits-item-renderer",function(){if(MHj===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;AC7===void 0&&(AC7=document.createElement("template"));var M=AC7;A.call(U,M.content.cloneNode(!0),H.content.firstChild);MHj=H}H=MHj;return H},{mode:2});var wTm;var XTf;var Sa=function(){return _.B.apply(this,arguments)||this};
_.R(Sa,_.B);Sa.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Sa.prototype.computeisWithoutPadding=function(){var H;return((H=this.data)==null?void 0:H.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Sa.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Sa.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.q("design:type",Boolean)],Sa.prototype,"isWithoutPadding",void 0);_.G([_.b0({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Sa);
_.e(Sa,"yt-benefits-section-renderer",function(){if(XTf===void 0){var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;wTm===void 0&&(wTm=document.createElement("template"));var M=wTm;A.call(U,M.content.cloneNode(!0),H.content.firstChild);XTf=H}H=XTf;return H},{mode:2});var p0=function(){return _.B.apply(this,arguments)||this};
_.R(p0,_.B);p0.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
p0.prototype.computeisUsingLargeWidth=function(){var H;return((H=this.data)==null?void 0:H.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],p0.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.q("design:type",Boolean)],p0.prototype,"isUsingLargeWidth",void 0);_.G([_.b0({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],p0);
_.e(p0,"yt-benefits-flow-step-renderer",function(){if(U75===void 0){var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;H68===void 0&&(H68=document.createElement("template"));var M=H68;A.call(U,M.content.cloneNode(!0),H.content.firstChild);U75=H}H=U75;return H},{mode:2});var i6h;var b6j;var L0=function(){return _.B.apply(this,arguments)||this};
_.R(L0,_.B);L0.prototype.checkIsUsingLargeWidth=function(){var H;return((H=this.data)==null?void 0:H.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.G([_.y(),_.q("design:type",Object)],L0.prototype,"data",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.G([_.y({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.q("design:type",Boolean)],L0.prototype,"isUsingLargeWidth",void 0);_.G([_.b0({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],L0);
_.e(L0,"yt-confirmation-flow-step-renderer",function(){if(b6j===void 0){var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;i6h===void 0&&(i6h=document.createElement("template"));var M=i6h;A.call(U,M.content.cloneNode(!0),H.content.firstChild);b6j=H}H=b6j;return H},{mode:2});var d7m;var O6m;var u2j=function(){return _.B.apply(this,arguments)||this};
_.R(u2j,_.B);_.G([_.y(),_.q("design:type",Object)],u2j.prototype,"data",void 0);_.G([_.b0({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],u2j);
_.e(u2j,"yt-info-flow-step-renderer",function(){if(O6m===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;d7m===void 0&&(d7m=document.createElement("template"));var M=d7m;A.call(U,M.content.cloneNode(!0),H.content.firstChild);O6m=H}H=O6m;return H},{mode:2});var Z6p;var fs$;var JCh=function(){return _.B.apply(this,arguments)||this};
_.R(JCh,_.B);_.G([_.y(),_.q("design:type",Object)],JCh.prototype,"data",void 0);_.G([_.b0({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],JCh);
_.e(JCh,"yt-info-list-flow-step-renderer",function(){if(fs$===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Z6p===void 0&&(Z6p=document.createElement("template"));var M=Z6p;A.call(U,M.content.cloneNode(!0),H.content.firstChild);fs$=H}H=fs$;return H},{mode:2});var KpB=_.r(function(H){var U=H.data;return _.Z("styled-text-view-model",{class:_.CG("ytStyledTextViewModelHost",function(){return NT8(U().fontAttributes)},function(){return nYY(U().color)})},_.Z(_.Pb,{text:function(){return U().text},
ariaLabel:function(){var A,M,W;return(W=(A=U().accessibility)==null?void 0:(M=A.accessibilityData)==null?void 0:M.label)!=null?W:""}}))},"Qh");
KpB.idomCompat=!0;var oe8=_.r(function(H){var U=function(){var W,w,d,O;return(O=(d=(W=H.alt)==null?void 0:W.call(H))!=null?d:(w=H.data().accessibilityData)==null?void 0:w.label)!=null?O:""},A=function(){return H.data().imageWidth},M=function(){return H.data().imageHeight};
return _.Z("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.Z(_.K,{cond:function(){var W=H.data();if(W){var w,d,O;var f=((w=_.lx().resolve(_.$V(_.qF)))==null?0:w())?(d=W.imageDark)!=null?d:W.imageLight:(O=W.imageLight)!=null?O:W.imageDark}else f=void 0;return f},
then:function(W){return _.Z(_.nG,Object.assign({},H,{data:W,alt:U,targetWidth:A,targetHeight:M,preserveHeight:!0,preserveWidth:!0}))}}))},"Rh");
oe8.idomCompat=!0;var RK=_.r(function(H){var U=H.data;H=_.RS(function(){return U().slots},[]);
var A=_.RS(function(){return U().layoutProperties},{}),M=_.lx().resolve(_.JF);
return _.Z("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:KYm(A,M)},_.Z(_.FQ,{each:H,keyBy:"INDEX"},function(W){return _.Z("div",{class:"ytContainerLayoutViewModelSlot",style:KYm(function(){return W().layoutProperties},M)},_.Z(_.YY,{data:function(){return W().contents}},{containerLayoutViewModel:RK,
badgeViewModel:_.Ed,buttonViewModel:_.yJ,styledTextViewModel:KpB,contentPreviewImageViewModel:function(w){return _.Z(_.B6,{data:w.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(w){return _.Z(oe8,{data:w.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Sh");
RK.idomCompat=!0;var Fph=_.r(function(H){var U=H.data;var A=H.stateFns;var M=function(){var J=U(),F=J.productId;return!(!J.clearGroupId&&!F)},W=function(){var J=U(),F=J.clearGroupId;
return(J=J.productId)?A().isProductSelected(J):F?A().getSelectedProductByGroupId(F)==null:!1},w=function(J){var F=U(),P=F.clearGroupId;
if(F=F.productId)A().onProductSelected(F),J==null||J.forEach(function(n){_.uj(n)});
else if(P)A().onClearGroupSelected(P)},d=function(){var J=U(),F=J.clearGroupId;
if(J=J.productId){var P;return"group:"+(((P=A().getProductById(J))==null?void 0:P.groupId)||"")}return F?"group:"+F:""},O=_.RS(function(){return U().header},[]),f=_.RS(function(){return U().body},[]);
return _.Z("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.Z(_.K,{cond:function(){return O().length>0||M()},
then:function(){return _.Z("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.Z("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.Z(_.YY,{data:O},{containerLayoutViewModel:function(J){return _.Z("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Z(RK,{data:J.data}))},
styledTextViewModel:function(J){return _.Z("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Z(KpB,{data:J.data}))}})),_.Z(_.K,{cond:M,
then:function(){return _.Z("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.Z(_.F5,{checked:W,name:d,onChange:function(){w(U().onSelect)}}))}}))}}),_.Z(_.K,{cond:function(){return f().length>0},
then:function(){return _.Z("div",null,_.Z(_.YY,{data:f},{containerLayoutViewModel:function(J){return _.Z("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Z(RK,{data:J.data}))}}))}}))},"Th");
Fph.idomCompat=!0;var PGm=_.r(function(H){var U=H.data;var A=H.stateFns;return _.Z("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.Z(_.K,{cond:function(){return U().banner},
then:function(M){return _.Z("div",{class:"ytPdpCardViewModelBanner"},_.Z(_.Pb,{text:M}))}}),_.Z(_.YY,{data:function(){return U().sections}},{pdpCardSectionViewModel:function(M){M=M.data;
var W={};return _.Z("div",{class:_.CG("ytPdpCardViewModelSectionContainer",(W.ytPdpCardViewModelShowDividers=function(){return U().showDividers},W))},_.Z(Fph,{data:M,
stateFns:A}))}}))},"Uh");
PGm.idomCompat=!0;var sbh=_.r(function(H){var U=H.data;var A=H.isOverlay;H={};return _.Z("pdp-masthead-view-model",{class:_.CG("ytPdpMastheadViewModelHost",(H.ytPdpMastheadViewModelIsOverlay=A,H))},_.Z(_.YY,{data:function(){return U().image}},{contentPreviewImageViewModel:_.B6,
themedImageViewModel:function(M){return _.Z(oe8,{data:M.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.Z(_.K,{cond:function(){return U().title},
then:function(M){return _.Z("h1",{class:"ytPdpMastheadViewModelHeading"},_.Z(_.Pb,{text:M,isOverlay:A}))}}),_.Z(_.FQ,{each:function(){var M;
return(M=U().finePrint)!=null?M:[]}},function(M){return _.Z("div",{class:"ytPdpMastheadViewModelFinePrint"},_.Z(_.Pb,{text:M,
isOverlay:A}))}))},"Vh");
sbh.idomCompat=!0;var ne5=_.r(function(H){var U=H.data;var A=H.stateFns;var M=function(){return"pdp-pricing-group-selector-"+U().pricingGroupAttributeIds},W=_.RS(function(){return U().pricingGroupSelectorSectionHeader});
return _.Z("pdp-pricing-group-selector-view-model",null,_.Z(_.K,{cond:function(){return!!W()},
then:function(){return _.Z(_.YY,{data:W},{sectionHeaderViewModel:function(w){w=w.data;var d={};return _.Z("div",{class:_.CG("ytPdpPricingGroupSelectorViewModelSectionHeader",(d.ytPdpPricingGroupSelectorViewModelFullBleed=!0,d.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,d))},_.Z(_.vv,{data:w}))}})}}),_.Z("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.Z(_.FQ,{each:function(){var w=A().getSelectedProductByGroupId(U().groupId);
if(!w)return _.n5(Error("Dl`"+U().groupId)),[];var d,O=(d=U().pricingGroupAttributeIds)!=null?d:[],f;if((f=w.pricingGroups)==null||!f.length||!O.length)return[];d=w.pricingGroups.filter(function(n){return O.length?n.pricingGroupAttributes.every(function(N){return O.includes(N)}):!1});
w=[];if(O.length>0){d=[].concat(_.vI(d));f=_.b(O);for(var J=f.next(),F={};!J.done;F={targetAttrId:void 0},J=f.next())F.targetAttrId=J.value,J=d.findIndex(function(n){return function(N){return N.pricingGroupAttributes.includes(n.targetAttrId)}}(F)),J!==-1&&(w.push(d[J]),d.splice(J,1))}var P=A().getSelectedPricingGroupAttributesByGroupId(U().groupId);
return w.map(function(n){var N=!1;P&&n.pricingGroupAttributes&&(N=dw(n.pricingGroupAttributes,P));return{pricingGroup:n,isSelected:N}})},
keyBy:function(w){return w.pricingGroup.pricingGroupId}},function(w){return _.Z("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.Z("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.Z(_.YY,{data:function(){return w().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:RK})),_.Z("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.Z(_.F5,{checked:function(){return w().isSelected},
name:M,onClick:function(){var d=w().pricingGroup;A().onPricingGroupSelected(d.pricingGroupId);if(d=_.ij(d.onSelectPricingGroup)){var O;(O=_.lx().resolve(_.YV))==null||O.resolveCommand(d)}}})))})))},"Wh");
ne5.idomCompat=!0;var NC8=_.r(function(H){var U=H.data;var A=H.stateFns;var M=function(){var d=A().getSelectedPricingOptions().map(function(J){return J.pricingOptionId}),O=A().getSelectedProductByGroupId(U().groupId);
if(!O)return _.n5(Error("El`"+U().groupId)),[];var f=A().getSelectedPricingGroupAttributesByGroupId(U().groupId);return EYk(O.pricingOptions,f,d)},W=_.RS(function(){return U().pricingOptionSelectorSectionHeader}),w=function(){return M().length>1};
return _.Z("pdp-pricing-option-selector-view-model",null,_.Z(_.K,{cond:function(){return!!W()&&w()},
then:function(){return _.Z(_.YY,{data:W},{sectionHeaderViewModel:function(d){d=d.data;var O={};return _.Z("div",{class:_.CG("ytPdpPricingOptionSelectorViewModelSectionHeader",(O.ytPdpPricingOptionSelectorViewModelFullBleed=!0,O.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,O))},_.Z(_.vv,{data:d}))}})}}),_.Z(_.K,{cond:w,
then:function(){return _.Z("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.Z(_.FQ,{each:M,keyBy:"INDEX"},function(d){return _.Z("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.Z("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.Z(_.YY,{data:function(){return d().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:RK})),_.Z("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.Z(_.F5,{checked:function(){return d().isSelected},
onClick:function(){A().onPricingOptionSelected(d().pricingOption.pricingOptionId);var O=d().pricingOption.onSelectPricingOption;if(O=_.ij(O)){var f;(f=_.lx().resolve(_.YV))==null||f.resolveCommand(O)}}})))}))}}))},"Xh");
NC8.idomCompat=!0;var SKY=_.r(function(H){var U=H.data;var A=H.stateFns;return _.Z("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.Z(_.YY,{data:function(){var M,W;return(W=(M=A().getSelectedPricingOptions()[0])==null?void 0:M.primaryButton)!=null?W:U().emptyStateButton}},{buttonViewModel:_.yJ}))},"Yh");
SKY.idomCompat=!0;var pTh=_.r(function(H){var U=H.stateFns;return _.Z("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.Z(_.YY,{data:function(){return U().getSelectedPricingOptions().flatMap(function(A){return A.summaryLines}).filter(function(A){return!!A})}},{containerLayoutViewModel:function(A){return _.Z("div",{class:"ytPdpSummaryViewModelLineItem"},_.Z(RK,{data:A.data}))}}))},"Zh");
pTh.idomCompat=!0;var Lpp=_.r(function(H){function U(L){var m=d();_.Le(_.Wl("pdpStateEntity",m,{key:m,selectedPricingOptions:L}))}
var A=H.data;var M=H.internalScrolling;var W=H.stateFnsForTesting;var w=_.RS(function(){return A().allProducts},[]),d=_.RS(function(){return A().pdpStateEntityKey},""),O=_.$Y(mFh,d),f=_.Ja(function(){_.an(!0);
var L;return(L=W==null?void 0:W())!=null?L:aWh(O,w,U)},void 0,"Pzdsic"),J=_.RS(function(){return A().body},[]),F=_.RS(function(){return A().columnBreakHints},[]),P=function(){return A().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},n=function(){return P()||A().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},N=_.Ja(function(){var L=_.Zf(A().background),m;
if(L==null?0:(m=L.sources)==null?0:m.length){var z=z===void 0?!0:z;L=_.FtE(void 0,L.sources,void 0,z,z?1E3:void 0,z?void 0:1E3)}else L=null;return L},void 0,"RDPOae");
_.LA(function(){var L=A().onStartCommand;if(L&&(L=_.ij(L))){var m;(m=_.lx().resolve(_.YV))==null||m.resolveCommand(L)}});
H={};return _.Z("pdp-view-model",{class:_.CG("ytPdpViewModelHost",(H.ytPdpViewModelHasBackground=function(){return n()||!!N()},H.ytPdpViewModelHasDarkBackground=n,H.ytPdpViewModelHasScrim=P,H.ytPdpViewModelInternalScrolling=M,H.ytPdpViewModelForceSingleColumn=function(){return F().length===0},H)),
style:_.rA({"--pdp-view-model-background":function(){return N()?"url("+N()+")":void 0}})},_.Z("div",{class:"ytPdpViewModelColumnContainer"},_.Z(_.FQ,{each:function(){return xFm(J(),F())},
keyBy:"INDEX"},function(L){return _.Z("div",{class:"ytPdpViewModelColumn"},_.Z(_.YY,{data:L},{containerLayoutViewModel:function(m){return _.Z(EI,null,_.Z(RK,{data:m.data}))},
dividerViewModel:function(m){return _.Z(EI,{fullBleed:!0},_.Z(_.EIz,{data:m.data}))},
pdpCardViewModel:function(m){return _.Z(EI,null,_.Z(PGm,{data:m.data,stateFns:f}))},
pdpMastheadViewModel:function(m){return _.Z(EI,null,_.Z(sbh,{data:m.data,isOverlay:n}))},
pdpPricingGroupSelectorViewModel:function(m){return _.Z(EI,null,_.Z(ne5,{data:m.data,stateFns:f}))},
pdpPricingOptionSelectorViewModel:function(m){return _.Z(EI,null,_.Z(NC8,{data:m.data,stateFns:f}))},
pdpPrimaryButtonViewModel:function(m){return _.Z(EI,null,_.Z(SKY,{data:m.data,stateFns:f}))},
pdpSummaryViewModel:function(m){return _.Z(EI,null,_.Z(pTh,{data:m.data,stateFns:f}))},
sectionHeaderViewModel:function(m){return _.Z(EI,{fullBleed:!0,noVerticalPadding:!0},_.Z(_.vv,{data:m.data}))}}))})))},"$h");
Lpp.idomCompat=!0;var EI=_.r(function(H){var U={};return _.Z("div",{class:_.CG("ytPdpViewModelItem",(U.ytPdpViewModelFullBleed=H.fullBleed,U.ytPdpViewModelNoVerticalPadding=H.noVerticalPadding,U))},H.children)},"ai");_.LG(Lpp,"pdp-view-model",{props:{data:_.sY,stateFnsForTesting:_.Ne,internalScrolling:_.Ne}});var Rz$=_.r(function(H){var U=H.data;var A=H.className;var M=_.$Y(_.LY,function(){return U().flowStateEntityKey});
return _.Z("ytm-premium-purchase-button-renderer",{class:_.CG("ytPremiumPurchaseButtonRendererHost",A)},_.Z(_.YY,{data:function(){var W;return(W=_.p(M(),CZh))==null?void 0:W.primaryButtonOverride}},{buttonRenderer:function(W){return _.Z(_.Rj,{data:W.data,
className:A})},
buttonViewModel:function(W){return _.Z(_.yJ,{data:W.data,className:A})}}))},"bi");
Rz$.idomCompat=!0;var EeB=_.r(function(H){var U=H.data;H=H.className;var A=function(){return z$5(U().style)},M=_.CG("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",A),W=_.CG("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",A);
return _.Z("yt-flow-bottom-bar-renderer",{class:_.CG("yt-flow-bottom-bar-renderer",H,A)},_.Z(_.YY,{data:function(){return U().secondaryButton}},{buttonRenderer:function(w){return _.Z(_.Rj,{data:w.data,
className:W})},
buttonViewModel:function(w){return _.Z(_.yJ,{data:w.data,className:W})},
premiumPurchaseButtonRenderer:function(w){return _.Z(Rz$,{data:w.data,className:W})}}),_.Z(_.YY,{data:function(){return U().primaryButton}},{buttonRenderer:function(w){return _.Z(_.Rj,{data:w.data,
className:M})},
buttonViewModel:function(w){return _.Z(_.yJ,{data:w.data,className:M})},
premiumPurchaseButtonRenderer:function(w){return _.Z(Rz$,{data:w.data,className:M})}}))},"ci");
EeB.idomCompat=!0;_.LG(EeB,"yt-flow-bottom-bar-renderer",{props:{data:_.sY,className:_.sY}});var m7Y=_.r(function(H){var U=_.CG(H.className,"ytOfferSummaryRendererHost");return _.Z("yt-offer-summary-renderer",{class:U},_.Z("div",{class:"ytOfferSummaryRendererTextContainer"},_.Z("div",{class:"ytOfferSummaryRendererEyebrowText"},_.Z(_.Pb,{text:function(){return H.data().eyebrowText}})),_.Z("div",{class:"ytOfferSummaryRendererTitle"},_.Z(_.Pb,{text:function(){return H.data().title}})),_.Z("div",{class:"ytOfferSummaryRendererSubtitle"},_.Z(_.Pb,{text:function(){return H.data().subtitle}})),_.Z("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.Z(_.FQ,{each:function(){var A;
return(A=H.data().featureListData)!=null?A:[]}},function(A){var M;
return _.Z("div",{class:"ytOfferSummaryRendererFeatureList"},_.Z(_.er,{icon:(M=A.icon)==null?void 0:M.iconType,active:function(){return A.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(A.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.Z("div",{class:"ytOfferSummaryRendererFeatureListText"},_.Z(_.Pb,{text:A.text,
className:function(){return A.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.Z("div",{class:"ytOfferSummaryRendererDescription"},_.Z(_.Pb,{text:function(){return H.data().description}}))))},"di");_.LG(_.r(function(H){var U={};U=_.CG("ytOfferSummaryFlowStepRendererHost",(U.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=H.shouldDisableHeaderTopMargin,U));return _.Z("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:U},_.Z("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.Z("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.Z(_.Pb,{text:function(){return H.data().header}})),_.Z("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.Z(_.Pb,{text:function(){return H.data().subtitle}}))),_.Z("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.Z(_.YY,{data:function(){return H.data().offerSummary}},{offerSummaryRenderer:function(A){return _.Z(m7Y,{data:A.data,
className:H.flowClassName})}})))},"ei"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Ne,
flowClassName:_.Ne,flowStateEntityKey:_.Ne,shouldDisableHeaderTopMargin:_.Ne}});var geh=_.r(function(H){var U=H.data;var A=H.className;var M=H.flowStateEntityKey;var W=H.selectionStepStyle;H=_.c$(function(f){var J=U(),F=M==null?void 0:M();f.target&&(f.stopPropagation(),f=F||"",F=_.LY(_.Sq().getState(),f),J=Object.assign({},F,{premiumPurchaseFlowState:{selectedOptionId:J.optionId,primaryButtonOverride:J.primaryButtonOverride}}),_.Sq().dispatch(_.hs("flowStateEntity",f,J)));return!1});
var w=function(){return(M==null?void 0:M())||""},d=_.$Y(_.LY,w);
_.LA(function(){var f=U(),J=w(),F=d();f.defaultSelected&&J!==""&&f.primaryButtonOverride&&tI8(f.optionId||"",J,f.primaryButtonOverride,F)});
var O={};return _.Z("ytm-option-item-renderer",{"on:click":H,class:_.CG(A,"ytm-option-item-renderer",(O["ytm-option-item-renderer--lp2-style"]=function(){return(W==null?void 0:W())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},O))},_.Z("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.Z("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var f=U(),J=w(),F=d();F=_.p(F,CZh);return(F?(F==null?void 0:F.selectedOptionId)||"":f.defaultSelected&&J!==""?(f==null?void 0:f.optionId)||"":"")===U().optionId},
name:("input"+_.Op(_.fP)).toString()})),_.Z("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.Z(_.YY,{data:function(){return U().titleBadge}},{badgeViewModel:function(f){return _.Z(_.Ed,{data:f.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.Z(_.K,{cond:function(){return U().eyebrowText},
then:function(){return _.Z("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.Z(_.Pb,{text:function(){return U().eyebrowText}}))}}),_.Z("div",{class:"ytm-option-item-renderer__option-item-title"},_.Z(_.Pb,{text:function(){return U().title}})),_.Z("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.Z(_.Pb,{text:function(){return U().subtitle}})),_.Z(_.K,{cond:function(){return U().featureListData},
then:function(){return _.Z("div",{class:"ytm-option-item-renderer__feature-list-data"},_.Z(_.FQ,{each:function(){return U().featureListData||[]}},function(f){var J,F=(J=f.icon)==null?void 0:J.iconType;
a:switch(f.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":J="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":J="ytm-option-item-renderer__feature-list-icon-small";break a;default:J="ytm-option-item-renderer__feature-list-icon-default"}return _.Z("div",{class:"ytm-option-item-renderer__feature-list"},_.Z(_.er,{icon:F,className:J,active:function(){return f.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.Z("div",{class:"ytm-option-item-renderer__feature-list-text"},_.Z(_.Pb,{text:f.text,
className:function(){return f.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.Z("div",{class:"ytm-option-item-renderer__option-item-description"},_.Z(_.Pb,{text:function(){return U().description}}))))},"fi");var asj=_.r(function(H){var U=H.data;var A=H.flowClassName;var M=H.flowStateEntityKey;var W=H.selectionStepStyle;return _.Z("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.Z("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.Z("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.Z(_.Pb,{text:function(){return U().title}}),_.Z(_.YY,{data:function(){return U().titleBadge}},{badgeViewModel:function(w){return _.Z(_.Ed,{data:w.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.Z(_.K,{cond:function(){return U().subtitle},
then:function(){return _.Z("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.Z(_.Pb,{text:function(){return U().subtitle}}))}}),_.Z(_.K,{cond:function(){return U().featureListData},
then:function(w){return _.Z("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.Z(_.FQ,{each:w},function(d){var O;return _.Z("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.Z(_.er,{icon:(O=d.icon)==null?void 0:O.iconType,active:function(){return d.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(d.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.Z("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.Z(_.Pb,{text:d.text,
className:function(){return d.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.Z(_.K,{cond:function(){return U().secondaryTitle},
then:function(){return _.Z("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.Z(_.Pb,{text:function(){return U().secondaryTitle}}))}}),_.Z(_.FQ,{each:function(){return U().sectionDisclaimers||[]}},function(w){return _.Z("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.Z(_.Pb,{text:w}))})),_.Z(_.YY,{data:function(){return U().optionItems}},{optionItemRenderer:function(w){return _.Z("div",{class:"ytOptionSectionRendererOptionItem"},_.Z(geh,{data:w.data,
className:A,flowStateEntityKey:M,selectionStepStyle:W}))}}),_.Z(_.K,{cond:function(){return U().offerText},
then:function(){return _.Z("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.Z(_.Pb,{text:function(){return U().offerText}}))}}))},"gi");
asj.idomCompat=!0;var x78=_.r(function(H){var U=H.data;var A=H.flowClassName;var M=H.flowStateEntityKey;H=H.isDesktop;var W=_.nA("div"),w=function(){var F;return(F=U().flowStateEntityKey)!=null?F:M==null?void 0:M()},d=function(){return(w==null?void 0:w())||""},O=function(){return U().style},f=_.$Y(_.LY,d);
_.LA(function(){csh(U(),d(),f());setTimeout(function(){var F;(F=W.value)==null||F.focus()})});
var J={};return _.Z("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.CG("ytm-option-selection-flow-step-renderer",(J["ytm-option-selection-flow-step-renderer--desktop"]=H,J["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return U().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},J))},_.Z("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"},
_.Z("div",{el:W,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.Z(_.Pb,{text:function(){return U().header}})),_.Z("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.Z(_.Pb,{text:function(){return U().subtitle}}))),_.Z(_.YY,{data:function(){return U().optionItems||[]}},{optionItemRenderer:function(F){return _.Z("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.Z(geh,{data:F.data,
className:A,flowStateEntityKey:w,selectionStepStyle:O}))},
optionSectionRenderer:function(F){return _.Z("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.Z(asj,{data:F.data,flowClassName:A,flowStateEntityKey:w,selectionStepStyle:O}))}}))},"hi");
x78.idomCompat=!0;_.LG(x78,"yt-option-selection-flow-step-renderer",{props:{data:_.sY,flowClassName:_.sY,flowStateEntityKey:_.sY,isDesktop:_.sY}});var ms=_.r(function(H){var U=_.Ec(H,{type:1,disablePadding:!1,disablePrimaryButton:!1}),A=U.data,M=U.type;H=U.disablePadding;var W=U.disablePrimaryButton,w=U.onClickPrimaryButton,d=function(){return A().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},O=function(){return{disabled:W(),
state:W()?"disabled":"active"}},f=function(){return A().leadingLabel||A().trailingLabel};
U={};return _.Z("yt-panel-footer-view-model",{class:_.CG("yt-panel-footer-view-model",(U["yt-panel-footer-view-model--hide-divider"]=function(){return A().shouldHideDivider},U["yt-panel-footer-view-model--disable-padding"]=H,U))},_.Z(_.K,{cond:f,
then:function(){var J={},F={};return _.Z("div",{class:_.CG("yt-panel-footer-view-model__text-row",(J["yt-panel-footer-view-model--row-bottom-padding"]=function(){var P=A();return!(!P.leadingLabel&&!P.trailingLabel||!P.primaryButton&&!P.secondaryButton)},J))},_.Z(_.Pb,{text:function(){return A().leadingLabel},
className:_.CG((F["yt-panel-footer-view-model--text-padding"]=f,F))}),_.Z(_.Pb,{text:function(){return A().trailingLabel}}))}}),_.Z(_.K,{cond:d,
then:function(){var J={};return _.Z("div",{class:"yt-panel-footer-view-model__button-stack"},_.Z("div",{class:_.CG("yt-panel-footer-view-model__primary-button",(J["yt-panel-footer-view-model__button-stack--top-button"]=function(){return A().secondaryButton},J))},_.Z(_.YY,{data:function(){return A().primaryButton}},{buttonViewModel:function(F){return _.Z(_.yJ,{data:F.data,
buttonOverrides:O,onClick:w})}})),_.Z(_.YY,{data:function(){return A().secondaryButton}},{buttonViewModel:_.yJ}))}}),_.Z(_.K,{cond:function(){return!d()},
then:function(){var J={},F={},P={};return _.Z("div",{class:_.CG("yt-panel-footer-view-model__button-row",(J["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===M()},J))},_.Z("div",{class:_.CG("yt-panel-footer-view-model__button-row--left-button",(F["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===M()},F["yt-panel-footer-view-model__button-row--hidden"]=function(){return!A().secondaryButton||0===M()},F["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===M()},F))},_.Z(_.YY,{data:function(){return A().secondaryButton}},{buttonViewModel:_.yJ})),_.Z("div",{class:_.CG("yt-panel-footer-view-model__primary-button",(P["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===M()||1===M()},P["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===M()},P))},_.Z(_.YY,{data:function(){return A().primaryButton}},{buttonViewModel:function(n){return _.Z(_.yJ,{data:n.data,
buttonOverrides:O,onClick:w})}})))}}))},"ii");
ms.idomCompat=!0;var zzB=_.r(function(H){H=_.Ec(H,{disablePadding:!1});var U=H.data,A=H.disablePadding;H=_.K2N(function(){return U().formId},void 0,function(){return U().onSubmitSuccess});
var M=H.submitForm,W=H.isValid,w=H.isSubmitting;return _.Z("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.Z(_.YY,{data:function(){return U().panelFooter}},{panelFooterViewModel:function(d){return _.Z(ms,{data:d.data,
onClickPrimaryButton:function(){M()},
disablePrimaryButton:function(){return!W()||w()},
disablePadding:A})}}))},"ji");_.LG(zzB,"yt-form-footer-view-model",{props:{data:_.sY,disablePadding:_.sY}});var CGy=_.r(function(H){var U=_.S("enable_user_rating_web");return _.Z("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.Z("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.Z(_.K,{cond:function(){var A;return(A=H.data())==null?void 0:A.image},
then:function(A){return _.Z(_.nG,{data:A,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.Z("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.Z(_.Pb,{text:function(){var A;
return(A=H.data())==null?void 0:A.title}})),_.Z("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.Z(_.Pb,{text:function(){var A;
return(A=H.data())==null?void 0:A.subtitle}})),_.Z(_.K,{cond:function(){return!U},
then:function(){return _.Z(_.YY,{data:function(){var A;return(A=H.data())==null?void 0:A.viewTipsButton}},{buttonViewModel:function(A){return _.Z(_.yJ,{data:A.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"ki");_.LG(CGy,"yt-contributor-zero-state-view-model",{props:{data:_.sY}});var tHh=_.r(function(H){var U=function(){var A;return(A=H.data())==null?void 0:A.image};
return _.Z("yt-featured-content-item-view-model",{class:_.CG("ytFeaturedContentItemViewModelHost")},_.Z("div",{class:_.CG(function(){return U()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.Z("div",{class:function(){return U()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.Z(_.K,{cond:U,
then:function(){return _.Z("div",{class:"ytFeaturedContentItemViewModelImage"},_.Z(_.YY,{data:function(){return H.data().image}},{themedImageViewModel:function(A){return _.Z(oe8,{data:A.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.Z(_.K,{cond:function(){var A;
return!U()&&((A=H.data())==null?void 0:A.iconName)},
then:function(){return _.Z("div",{class:"ytFeaturedContentItemViewModelIcon"},_.Z(_.er,{icon:function(){return H.data().iconName}}))}}),_.Z("div",{class:"ytFeaturedContentItemViewModelContent"},_.Z(_.K,{cond:function(){var A;
return(A=H.data())==null?void 0:A.title},
then:function(){return _.Z("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.Z(_.Pb,{text:function(){return H.data().title}}))}}),_.Z(_.K,{cond:function(){var A;
return(A=H.data())==null?void 0:A.body},
then:function(){return _.Z("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.Z(_.Pb,{text:function(){return H.data().body}}))}})))))},"li");var cC5=_.r(function(H){var U=function(){var W;return ysm((W=H.data())==null?void 0:W.titleFontSize)},A=function(){var W;
return BT8((W=H.data())==null?void 0:W.descriptionFontSize)},M=function(){var W;
return((W=H.data())==null?void 0:W.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.Z("yt-landing-page-view-model",{class:_.CG("ytLandingPageViewModelHost",H.className)},_.Z("div",{class:"ytLandingPageViewModelHeader"},_.Z(_.K,{cond:function(){var W;return(W=H.data())==null?void 0:W.bannerImage},
then:function(W){return _.Z("div",{class:"ytLandingPageViewModelHeaderImage"},_.Z(_.YY,{data:function(){return W()}},{imageBannerViewModel:function(w){return _.Z(_.SP,{data:w.data,
isPositionRelative:!0})}}))}}),_.Z(_.K,{cond:function(){var W;
return(W=H.data())==null?void 0:W.bannerAnimation},
then:function(W){return _.Z(_.lK,{data:function(){var w=W();if(w==null?0:w.url){var d;w={path:(d=w==null?void 0:w.url)!=null?d:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(w==null?0:w.payload){var O;w={animationData:JSON.parse((O=w==null?void 0:w.payload)!=null?O:""),autoplay:!0,loop:!0,renderer:"svg"}}else w=void 0;return{animationConfig:w}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.Z("div",{class:"ytLandingPageViewModelHeaderTitle"},_.Z(_.K,{cond:function(){var W;
return(W=H.data())==null?void 0:W.title},
then:function(W){return _.Z("div",{class:_.CG("ytLandingPageViewModelHeaderTitleContent",U)},_.Z(_.Pb,{text:function(){return W()}}))}}),_.Z(_.K,{cond:function(){var W;
return(W=H.data())==null?void 0:W.description},
then:function(W){var w={};return _.Z(_.Pb,{className:_.CG("ytLandingPageViewModelHeaderTitleDescription",A,(w.ytLandingPageViewModelHeaderTitleDescriptionMargin=M,w)),text:function(){return W()}})}}))),_.Z(_.K,{cond:function(){var W,w;
return(W=H.data())==null?void 0:(w=W.featuredContentList)==null?void 0:w.length},
then:function(){return _.Z("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.Z(_.YY,{data:function(){return H.data().featuredContentList}},{featuredContentItemViewModel:function(W){return _.Z(tHh,{data:W.data})}}))}}),_.Z(_.K,{cond:function(){var W,w;
return(W=H.data())==null?void 0:(w=W.expandableContentList)==null?void 0:w.length},
then:function(){return _.Z("div",{class:"ytLandingPageViewModelFaqSection"},_.Z(_.YY,{data:function(){return H.data().expandableContentList}},{faqEntryViewModel:function(W){return _.Z("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.Z(_.d9k,{data:W.data}))}}))}}),_.Z("div",{class:"ytLandingPageViewModelFooter"},_.Z(_.K,{cond:function(){var W;
return(W=H.data())==null?void 0:W.legalCopy},
then:function(W){return _.Z("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.Z(_.Pb,{text:function(){return W()}}))}}),_.Z(_.K,{cond:function(){var W;
return(W=H.data())==null?void 0:W.actions},
then:function(W){return _.Z("div",null,_.Z(_.YY,{data:function(){return W()}},{flexibleActionsViewModel:function(w){return _.Z(_.uf,{data:w.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"mi");_.LG(_.r(function(H){return _.Z("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.Z("div",{class:"ytLpSectionGroupViewModelContainer"},_.Z(_.YY,{data:function(){return H.data().sections}},{landingPageViewModel:function(U){return _.Z(cC5,{data:U.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"ni"),"yt-lp-section-group-view-model",{props:{data:_.sY}});var yCh=_.r(function(H){var U=H.data;var A=H.selectedKey;var M=H.onSelected;var W=H.groupName;var w=function(){return U().text},d=function(){return U().attributedText},O=function(){return U().subtext},f=function(){return U().attributedSubtext},J=function(){return U().selectionText},F=function(){return U().trailingIconName},P=_.Z("div",{class:"ytRadioButtonItemViewModelLabel"},_.Z("div",null,_.Z(_.K,{cond:w,
then:function(){return _.Z("div",null,w)}}),_.Z(_.K,{cond:d,
then:function(){return _.Z(_.Pb,{text:d})}}),_.Z(_.K,{cond:O,
then:function(){return _.Z("div",{class:"ytRadioButtonItemViewModelSubText"},O)}}),_.Z(_.K,{cond:f,
then:function(){return _.Z(_.Pb,{text:f,className:"ytRadioButtonItemViewModelSubText"})}})),_.Z(_.K,{cond:function(){return J()||F()},
then:function(){return _.Z("div",{class:"ytRadioButtonItemViewModelTrailingContainer"},_.Z(_.K,{cond:J,then:function(){return _.Z(_.Pb,{text:J,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}),_.Z(_.K,{cond:F,
then:function(){return _.Z(_.er,{icon:F,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}))}}));
H={};return _.Z("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.Z(_.F5,{name:W,checked:function(){return!(A==null||!A()||U().key!==(A==null?void 0:A()))},
onChange:function(n){M==null||M(n.target,U(),W==null?void 0:W())},
labelRenderable:function(){return P},
ariaLabel:function(){var n,N;var L=(N=(n=f())==null?void 0:n.content)!=null?N:O();var m,z;n=(z=(m=d())==null?void 0:m.content)!=null?z:w();return L?n+", "+L:n},
className:_.CG((H.ytRadioButtonItemViewModelSubTitle=function(){return!!O()},H))}))},"oi");var BCk=_.r(function(H){var U=H.data,A=H.onSelected,M=H.selectedKey,W=H.groupName;H=H.className;var w=_.b(_.iB(!1,void 0,"mDtSad")),d=w.next().value,O=w.next().value,f=function(){if(M!==void 0){var J=M();return!(!J||U().key!==J)}return d()};
w=_.c$(function(J){A?A(J.currentTarget,U(),W==null?void 0:W()):O(!d())});
return _.Z("yt-selectable-item-view-model",{class:_.CG("ytSelectableItemViewModelHost",H,"ytSelectableItemViewModelContainer"),"on:click":w,"prop:checked":f},_.Z(_.YY,{data:function(){return U().content}},{cardViewModel:function(J){return _.Z(o7h,{data:J.data,
isSelected:f})}}))},"pi");var rC5=_.r(function(H){var U=H.data;var A=H.onSelected;var M=H.selectedKey;var W=H.groupName;var w=function(){return(W==null?void 0:W())||U().key};
return _.Z("yt-radio-button-group-view-model",{class:_.CG("ytRadioButtonGroupViewModelHost",H.className)},_.Z("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.Z(_.YY,{data:function(){return U().radioButtons}},{radioButtonItemViewModel:function(d){return _.Z(yCh,{data:d.data,
onSelected:A,selectedKey:M,groupName:w})},
selectableItemViewModel:function(d){return _.Z(BCk,{data:d.data,onSelected:A,selectedKey:M,groupName:w})}})))},"qi");var ez$=_.r(function(H){_.LA(function(){if(H.controlledMode()&&H.data().defaultSelected)_.sD(Error("Fl"));else{var w;!H.controlledMode()&&((w=H.selected)==null?0:w.call(H))&&_.sD(Error("Gl"))}});
var U=_.b(_.md(function(){if(!H.controlledMode())return H.data().defaultSelected})),A=U.next().value,M=U.next().value,W=function(){if(!H.controlledMode())return A();
var w;return(w=H.selected)==null?void 0:w.call(H)};
return _.Z("yt-checkbox-item-view-model",{class:_.CG("ytCheckboxItemViewModelHost",H.className)},_.Z(_.P3,{data:function(){var w=H.data(),d=W();return{title:w.text,subtitle:w.subtext,superlabel:w.superlabel,isSelected:!!d,isDisabled:w.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!H.controlledMode()&&M(!A());var w,d;(d=H.onTap)==null||d.call(H,!!W(),H.data(),(w=H.groupName)==null?void 0:w.call(H))},
isCompact:H.isCompact,disableHorizontalPadding:H.disableHorizontalPadding}))},"ri");var D7X=_.r(function(H){var U=H.data;var A=H.controlledMode;var M=H.selectedKeys;var W=H.onItemTap;var w=H.groupName;var d=H.disableHorizontalPadding;var O=function(){return(w==null?void 0:w())||U().key};
_.LA(function(){A()&&U().defaultSelectedKeys?_.sD(Error("Hl")):!A()&&(M==null?0:M())&&_.sD(Error("Il"))});
H=_.b(_.md(function(){if(!A())return U().defaultSelectedKeys}));
var f=H.next().value,J=H.next().value,F=function(P,n,N){P=[];!A()&&n.key&&(P=rs$(n.key,f()||[]),J(P));W==null||W(n,P,N)};
return _.Z("yt-checkbox-group-view-model",{class:_.CG("ytCheckboxGroupViewModelHost")},_.Z("fieldset",{class:_.CG("ytCheckboxGroupViewModelFieldset")},_.Z("div",{role:"list"},_.Z(_.YY,{data:function(){return U().checkboxes}},{checkboxItemViewModel:function(P){var n=P.data;
return _.Z(ez$,{data:n,controlledMode:!0,selected:function(){var N=A()?(M==null?void 0:M())||[]:f()||[],L=n().key;return L?N.includes(L):!1},
onTap:F,groupName:O,disableHorizontalPadding:d})}}))))},"si");var gt=_.r(function(H){var U=_.$Y(e$m,_.RS(function(){var O;return(O=H.data())==null?void 0:O.noteFeedEntityKey},"")),A=_.$Y(f$h,_.RS(function(){var O;
return(O=H.data())==null?void 0:O.userRatingEntityKey},"")),M=_.S("enable_user_rating_web"),W=function(){var O,f,J;
return((O=U())==null?0:O.contributorNote)?(f=U())==null?void 0:f.contributorNote:(J=H.data())==null?void 0:J.existingNote},w=function(){var O,f;
return!!A()&&!!DFm((O=A())==null?void 0:O.helpfulnessValue,(f=H.data())==null?void 0:f.noteData)};
if(M){var d={};return _.Z("yt-note-view-model",{class:_.CG("ytNoteViewModelHostUserRating",(d.ytNoteViewModelHostUserRatingPublishedNote=function(){var O,f,J,F;return((O=H.data())==null?void 0:(f=O.noteData)==null?void 0:f.isPublished)&&!((J=H.data())==null?0:(F=J.noteData)==null?0:F.isUserRatingForm)},d))},_.Z("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.Z("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.Z(_.K,{cond:function(){var O,f;
return(O=H.data())==null?void 0:(f=O.noteData)==null?void 0:f.isPinned},
then:function(){return _.Z(_.er,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.Z(_.K,{cond:function(){var O,f;return(O=H.data())==null?void 0:(f=O.noteData)==null?void 0:f.isPublished},
then:function(){return _.Z(_.er,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.Z(_.YY,{data:function(){var O;
return(O=H.data())==null?void 0:O.metadata}},{contentMetadataViewModel:_.eL}),_.Z("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var O,f;
return(f=_.p((O=H.data())==null?void 0:O.metadata,_.xMw))==null?void 0:f.delimiter}),_.Z(_.Pb,{text:function(){var O;
return(O=W())==null?void 0:O.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.Z(_.K,{cond:function(){var O,f;return!((O=H.data())==null?0:(f=O.noteData)==null?0:f.isUserRatingForm)},
then:function(){return _.Z(_.YY,{data:function(){var O,f,J,F,P,n,N,L=!!((O=H.data())==null?0:(f=O.noteData)==null?0:f.isPinned);O=w();f=(J=H.data())==null?void 0:J.noteData;J=(F=U())==null?void 0:(P=F.contributorNote)==null?void 0:P.deleteAction;F=(n=H.data())==null?void 0:n.overflowButtonNoteWithRatingOnTapOverride;n=(N=H.data())==null?void 0:N.overflowButton;var m;N=(m=_.p(n,_.ot))==null?void 0:m.accessibilityText;return L?$Ff(f,J,N):O?{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",onTap:F,accessibilityText:N}}:n}},{buttonViewModel:function(O){return _.Z(_.yJ,{data:O.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.Z("div",{class:"ytNoteViewModelNoteContent"},_.Z(_.Pb,{text:function(){var O;
return(O=W())==null?void 0:O.text}})),_.Z(_.K,{cond:function(){var O,f,J,F;
return!((O=H.data())==null?0:(f=O.noteData)==null?0:f.isPinned)&&!((J=H.data())==null?0:(F=J.noteData)==null?0:F.isUserRatingForm)},
then:function(){return _.Z(_.K,{cond:w,then:function(){return _.Z("div",{class:"ytNoteViewModelUserRatingContainer"},_.Z(_.Pb,{text:function(){var O,f;return DFm((O=A())==null?void 0:O.helpfulnessValue,(f=H.data())==null?void 0:f.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.Z(_.YY,{data:function(){var O;return(O=H.data())==null?void 0:O.userRatingButton}},{buttonViewModel:function(O){return _.Z(_.yJ,{data:O.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.Z(_.K,{cond:function(){var O,f,J,F;
return!((O=H.data())==null?0:(f=O.noteData)==null?0:f.ignoreDivider)&&!((J=H.data())==null?0:(F=J.noteData)==null?0:F.isUserRatingForm)},
then:function(){return _.Z("div",{class:"ytNoteViewModelDivider"},_.Z(_.YY,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(O){return _.Z(_.EIz,{data:O.data})}}))}}))}return _.Z("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.Z("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.Z("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.Z(_.K,{cond:function(){var O,f;return(O=H.data())==null?void 0:(f=O.noteData)==null?void 0:f.isPinned},
then:function(){return _.Z(_.er,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.Z(_.K,{cond:function(){var O,f;return(O=H.data())==null?void 0:(f=O.noteData)==null?void 0:f.isPublished},
then:function(){return _.Z(_.er,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.Z(_.K,{cond:function(){return M},
then:function(){return _.Z(_.YY,{data:function(){var O;return(O=H.data())==null?void 0:O.metadata}},{contentMetadataViewModel:function(O){return _.Z(_.eL,{data:O.data})}})}}),_.Z(_.Pb,{text:function(){var O,f;
return(O=H.data())==null?void 0:(f=O.noteData)==null?void 0:f.headerText}}),_.Z("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.Z(_.Pb,{text:function(){var O,f;
return(O=H.data())==null?void 0:(f=O.noteData)==null?void 0:f.delimiter}})),_.Z(_.Pb,{text:function(){var O,f;
return(O=U())==null?void 0:(f=O.contributorNote)==null?void 0:f.publishedTimeText}})),_.Z(_.YY,{data:function(){var O,f,J;
return $Ff((O=H.data())==null?void 0:O.noteData,(f=U())==null?void 0:(J=f.contributorNote)==null?void 0:J.deleteAction)}},{buttonViewModel:function(O){return _.Z(_.yJ,{data:O.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.Z("div",{class:"ytNoteViewModelNoteContent"},_.Z(_.Pb,{text:function(){var O,f;
return(O=U())==null?void 0:(f=O.contributorNote)==null?void 0:f.text}})))},"ti");
gt.idomCompat=!0;_.LG(_.r(function(H){var U=_.RS(function(){var C;return(C=H.data())==null?void 0:C.flowStateEntityKey},""),A=_.$Y(_.LY,U),M=_.$Y(e$m,_.RS(function(){var C;
return(C=H.data())==null?void 0:C.noteFeedEntityKey},"")),W=_.b(_.md(function(){var C;
return(C=_.p(H.data().helpfulnessValue,mNh))==null?void 0:C.defaultSelectedKey})),w=W.next().value,d=W.next().value;
W=_.b(_.md(function(){var C,v,Y;return(Y=_.p((C=_.p(H.data().helpfulnessValue,mNh))==null?void 0:(v=C.radioButtons)==null?void 0:v.find(function(D){var h;return((h=_.p(D,gTY))==null?void 0:h.key)===w()}),gTY))==null?void 0:Y.value}));
var O=W.next().value,f=W.next().value;W=_.b(_.md(function(){var C;return(C=_.p(H.data().helpfulReasons,ETp))==null?void 0:C.defaultSelectedKeys}));
var J=W.next().value,F=W.next().value;W=_.b(_.md(function(){var C;return(C=_.p(H.data().notHelpfulReasons,ETp))==null?void 0:C.defaultSelectedKeys}));
var P=W.next().value,n=W.next().value,N=function(C,v){d(v.key);f(v.value);F([]);n([])},L=function(){var C,v;
return((C=O())==null?void 0:C.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((v=O())==null?void 0:v.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},m=function(){var C,v;
return((C=O())==null?void 0:C.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((v=O())==null?void 0:v.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},z=function(C){lW8(C.key,J,F)},c=function(C){lW8(C.key,P,n)};
_.LA(function(){var C,v,Y;OEh((C=H.data())==null?void 0:(v=C.userRatingFormSchema)==null?void 0:v.id,{isValid:function(){return!!w()},
formData:function(){var D=O(),h=Y3Y(J(),_.p(H.data().helpfulReasons,ETp)),T=Y3Y(P(),_.p(H.data().notHelpfulReasons,ETp));D={helpfulnessValue:D==null?void 0:D.noteHelpfulnessValue};if(h){D.helpfulReasons=[];h=_.b(h);for(var WF=h.next();!WF.done;WF=h.next()){WF=WF.value;var dK=void 0;if((dK=WF)==null?0:dK.noteHelpfulReason)dK=void 0,D.helpfulReasons.push((dK=WF)==null?void 0:dK.noteHelpfulReason)}}if(T)for(D.notHelpfulReasons=[],T=_.b(T),h=T.next();!h.done;h=T.next())if(h=h.value,WF=void 0,(WF=h)==
null?0:WF.noteNotHelpfulReason)WF=void 0,D.notHelpfulReasons.push((WF=h)==null?void 0:WF.noteNotHelpfulReason);return{userRatingFormData:D}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(Y=_.p(A(),Qp7))==null?void 0:Y.submitFormParams},onSubmitResult:function(){var D,h=(D=_.p(A(),Qp7))==null?void 0:D.userRatingEntityKey,T;D={key:h,helpfulnessValue:(T=O())==null?void 0:T.noteHelpfulnessValue};h&&_.Le(_.hs("contextNoteUserRatingEntityPayload",h,D));var WF;h=(WF=H.data())==null?void 0:WF.viewNoteFlowStepId;var dK;if((dK=M())==null||!dK.contributorNote){var SN;h=(SN=H.data())==null?void 0:SN.zeroStateFlowStepId}(WF=
Object.assign({},A()))&&h&&(WF.currentStepId=h,WF.stepIdStack=[h],_.Le(_.hs("flowStateEntity",U(),WF)));var o_;(WF=(o_=H.data())==null?void 0:o_.ratingSubmittedSnackbarCommand)&&_.uj(WF)},
disableDuringSubmission:!0})});
return _.Z("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.Z(_.YY,{data:function(){var C=_.p(A(),Qp7);if(C){var v;var Y={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:C==null?void 0:(v=C.note)==null?void 0:v.headerText}]}],delimiter:"\u2022"}},existingNote:C.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else Y=void 0;return Y}},{noteViewModel:function(C){return _.Z("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.Z(gt,{data:C.data}))}}),_.Z(_.YY,{data:function(){var C;
return(C=H.data())==null?void 0:C.helpfulnessValue}},{radioButtonGroupViewModel:function(C){return _.Z("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.Z(rC5,{data:C.data,
onSelected:N,selectedKey:w}))}}),_.Z(_.K,{cond:L,
then:function(){return _.Z("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.Z("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.Z(_.Pb,{text:function(){var C;return(C=H.data())==null?void 0:C.helpfulReasonQuestion}})),_.Z(_.YY,{data:function(){var C;
return(C=H.data())==null?void 0:C.helpfulReasons}},{checkboxGroupViewModel:function(C){return _.Z(D7X,{data:C.data,
onItemTap:z,selectedKeys:J,controlledMode:!0})}}))}}),_.Z(_.K,{cond:m,
then:function(){return _.Z("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.Z("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.Z(_.Pb,{text:function(){var C;return(C=H.data())==null?void 0:C.notHelpfulReasonQuestion}})),_.Z(_.YY,{data:function(){var C;
return(C=H.data())==null?void 0:C.notHelpfulReasons}},{checkboxGroupViewModel:function(C){return _.Z(D7X,{data:C.data,
onItemTap:c,selectedKeys:P,controlledMode:!0})}}))}}),_.Z(_.K,{cond:function(){return!L()&&!m()},
then:function(){return _.Z(_.YY,{data:function(){var C;return(C=H.data())==null?void 0:C.helpfulNoteFeatures}},{alertBannerViewModel:function(C){return _.Z("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.Z(_.CJH,{data:C.data}))}})}}))},"ui"),"yt-note-user-rating-view-model",{props:{data:_.sY}});_.LG(gt,"yt-note-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){var U=_.$Y(e$m,_.RS(function(){var A;return(A=H.data())==null?void 0:A.noteFeedEntityKey},""));
return _.Z("yt-notes-wrapper-view-model",{class:_.CG("ytNotesWrapperViewModelHost")},_.Z(_.K,{cond:function(){var A,M,W;return!((A=H.data())==null||!A.existingNotes)||!((M=H.data())==null||!M.currentNote)&&!((W=U())==null||!W.contributorNote)},
then:function(){return _.Z(_.ve,null,_.Z(_.YY,{data:function(){var A,M,W,w;return((M=_.p((A=H.data())==null?void 0:A.currentNote,Vo5))==null?0:(W=M.noteData)==null?0:W.isPublished)?(w=H.data())==null?void 0:w.currentNote:void 0}},{noteViewModel:function(A){return _.Z(gt,{data:A.data})}}),_.Z(_.YY,{data:function(){var A;
return(A=H.data())==null?void 0:A.existingNotes}},{noteViewModel:function(A){var M=A.data;
return _.Z(_.K,{cond:function(){var W,w;return(W=M())==null?void 0:(w=W.noteData)==null?void 0:w.isPublished},
then:function(){return _.Z(gt,{data:M})}})}}),_.Z(_.YY,{data:function(){var A,M,W,w,d;
return((M=_.p((A=H.data())==null?void 0:A.currentNote,Vo5))==null?0:(W=M.noteData)==null?0:W.isPublished)||(w=U())==null||!w.contributorNote?void 0:(d=H.data())==null?void 0:d.currentNote}},{noteViewModel:function(A){return _.Z(gt,{data:A.data})}}),_.Z(_.YY,{data:function(){var A;
return(A=H.data())==null?void 0:A.existingNotes}},{noteViewModel:function(A){var M=A.data;
return _.Z(_.K,{cond:function(){var W,w;return!((W=M())==null?0:(w=W.noteData)==null?0:w.isPublished)},
then:function(){return _.Z(gt,{data:M})}})}}))},
else:function(){return _.Z(_.YY,{data:function(){var A;return(A=H.data())==null?void 0:A.zeroStateData}},{contributorZeroStateViewModel:CGy})}}))},"vi"),"yt-notes-wrapper-view-model",{props:{data:_.sY}});var h$5=new Map;var vYp;var TTh=new Map;var ls8=_.r(function(H){var U=_.Ec(H,{label:"",hideLabel:!1,text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,ariaLabel:void 0,timePickerData:void 0,error:void 0,hasError:!1,validation:void 0,characterLimit:void 0}),A=U.label,M=U.hideLabel,W=U.text,w=U.placeholder,d=U.hint;H=U.rows;var O=U.overflowStyle,f=U.outline,J=U.disabled,F=U.disableNewLines,P=U.onInput,n=U.ariaLabel,N=U.timePickerData,L=U.error,m=U.hasError,z=U.validation,c=U.characterLimit,
C=_.nA("textarea");U=_.b(_.md(function(){return W()}));
var v=U.next().value,Y=U.next().value;U=_.b(_.iB(!1,void 0,"PheJId"));var D=U.next().value,h=U.next().value,T=function(){h(!0)},WF=function(){h(!1)};
_.LA(function(){var oy=C.value,aY=O(),im=v();aY==="expand-vertically"&&im&&IWk(oy);C.value.addEventListener("focusin",T);C.value.addEventListener("focusout",WF)});
_.m4(function(){C.value.removeEventListener("focusin",T);C.value.removeEventListener("focusout",WF)});
var dK=function(){var oy;return(oy=z())==null?void 0:oy.validate(v())},SN=function(){var oy,aY,im;
return(im=(oy=L())==null?void 0:oy.maxChars)!=null?im:(aY=c())==null?void 0:aY.maxChars},o_=function(){return SN()===void 0?!1:!dK()&&v().length>SN()},PF=function(){var oy,aY;
return((oy=L())==null?void 0:oy.errorMessage)||dK()||o_()&&((aY=c())==null?void 0:aY.errorMessage)},BF=function(){return!!PF()||m()};
U=_.c$(function(oy){if(!oy.currentTarget)return!1;oy=oy.currentTarget;Y(oy.value);O()==="expand-vertically"&&IWk(oy);P==null||P(oy.value);return!0});
var kc=_.c$(function(oy){F()&&oy.key==="Enter"&&oy.preventDefault();return!1}),G8=_.c$(function(){C.value.focus()}),Pr=function(){return w()||A()},Z3={},Yc={},sz={},Ry={};
return _.Z("textarea-shape",{class:_.CG("ytStandardsTextareaShapeHost",(Z3.ytStandardsTextareaShapeTimePicker=function(){var oy;return(oy=N())==null?void 0:oy.useTimePickerStyles},Z3))},_.Z("div",{class:_.CG("ytStandardsTextareaShapeTextareaContainer",(Yc.ytStandardsTextareaShapeTextareaContainerOutline=f,Yc.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=J,Yc.ytStandardsTextareaShapeTextareaContainerOutlineError=BF,Yc.ytStandardsTextareaShapeTextareaContainerLabelHidden=M,Yc)),
"on:click":G8},_.Z("label",{class:_.CG("ytStandardsTextareaShapeLabel",(sz.ytStandardsTextareaShapeLabelFocused=D,sz.ytStandardsTextareaShapeLabelDisabled=J,sz.ytStandardsTextareaShapeLabelError=function(){return BF()&&!J()},sz.ytStandardsTextareaShapeLabelHidden=function(){return M()||!D()&&!v()&&!!Pr()},sz))},A),_.Z("div",{class:_.CG("ytStandardsTextareaShapePlaceholder",(Ry.ytStandardsTextareaShapePlaceholderVisible=function(){return!D()&&!v()},Ry)),
"aria-hidden":"true"},Pr),_.Z("textarea",{el:C,"aria-label":n,class:"ytStandardsTextareaShapeTextarea",rows:H,disabled:J,placeholder:Pr,"prop:value":v,"on:input":U,"on:keydown":kc})),_.Z(_.K,{cond:function(){return d()&&!BF()},
then:function(){var oy={};return _.Z("div",{class:_.CG("ytStandardsTextareaShapeHint",(oy.ytStandardsTextareaShapeHintDisabled=J,oy))},_.Z("div",{class:"ytStandardsTextareaShapeHintHintMessage"},d))}}),_.Z(_.K,{cond:PF,
then:function(){return _.Z($7X,{disabled:J},_.Z("div",{class:"ytStandardsTextareaShapeErrorMessage"},PF),_.Z(_.K,{cond:o_,then:function(){return _.Z("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return v().length+"/"+SN()})}}))}}))},"wi");
ls8.idomCompat={callbacks:{onInput:!0}};var $7X=_.r(function(H){var U={};return _.Z("div",{class:_.CG("ytStandardsTextareaShapeError",(U.ytStandardsTextareaShapeErrorDisabled=H.disabled,U)),role:"alert"},_.Z(_.er,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),H.children)},"xi");var G_h=_.r(function(H){var U=H.data;var A=H.controlledMode;var M=H.disableFormsApiMode;var W=H.text;var w=H.onInput;var d=H.characterLimit;var O=H.validation;H=H.disabled;var f=function(){return U().formFieldMetadata},J=function(){return(A==null?0:A())?2:!f()||M!=null&&M()?1:3};
_.LA(function(){J()===2?(W==null?void 0:W())===void 0&&_.sD(Error("Kl")):J()===3&&((W==null?void 0:W())!==void 0&&_.sD(Error("Ll")),(O==null?void 0:O())!==void 0&&_.sD(Error("Ml")),(d==null?void 0:d())!==void 0&&_.sD(Error("Nl")),w!==void 0&&_.sD(Error("Ol")))});
var F=jLp(f);return _.Z("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.Z(ls8,{text:function(){if(J()===2)return W==null?void 0:W();if(J()===3){var P;return(P=F())==null?void 0:P.value}return""},
label:function(){var P;return(P=U().contentProperties)==null?void 0:P.labelText},
hideLabel:function(){var P;return(P=U().displayProperties)==null?void 0:P.hideLabel},
placeholder:function(){var P;return(P=U().contentProperties)==null?void 0:P.placeholderText},
hint:function(){var P;return(P=U().contentProperties)==null?void 0:P.hintText},
outline:function(){var P;return!((P=U().displayProperties)==null?0:P.hideBorder)},
overflowStyle:function(){var P;return((P=U().displayProperties)==null?0:P.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:H,disableNewLines:function(){var P;return(P=U().displayProperties)==null?void 0:P.disableNewLines},
onInput:function(P){if(J()===3){var n;(n=F())==null||n.updateValue(P)}else w==null||w(P)},
error:function(){if(J()===3){var P;if(((P=F())==null?0:P.errors)&&F().errors.length>0){P=F().errors[0].message;var n,N=(n=U().contentProperties)==null?void 0:n.maxCharacterCount;return{errorMessage:P,maxChars:N}}}},
validation:O,characterLimit:d,rows:function(){var P;return(P=U().displayProperties)==null?void 0:P.rows}}))},"yi");var YKp=_.r(function(H){var U=H.data;return _.Z("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.Z(ls8,{text:H.text,label:function(){var A;return(A=U().contentProperties)==null?void 0:A.labelText},
placeholder:function(){var A;return(A=U().contentProperties)==null?void 0:A.placeholderText},
hint:function(){var A;return(A=U().contentProperties)==null?void 0:A.hintText},
outline:function(){var A;return!((A=U().displayProperties)==null?0:A.hideBorder)},
overflowStyle:function(){var A;return((A=U().displayProperties)==null?0:A.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var A;return(A=U().displayProperties)==null?void 0:A.disableNewLines},
onInput:H.onInput,characterLimit:H.characterLimit,validation:H.validation,rows:function(){var A;return(A=U().displayProperties)==null?void 0:A.rows}}))},"zi");var qK$=_.r(function(H){var U=_.b(_.md(function(){var dK,SN;return((dK=H.data().structuredContextNoteFormSchema)==null?0:(SN=dK.initialValues)==null?0:SN.noteBody)?H.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),A=U.next().value,M=U.next().value;
U=_.b(_.md(function(){H.data();return!1}));
var W=U.next().value,w=U.next().value;U=_.b(_.md(function(){H.data();return!1}));
var d=U.next().value,O=U.next().value;U=_.b(_.md(function(){var dK,SN;return((dK=H.data().structuredContextNoteFormSchema)==null?0:(SN=dK.initialValues)==null?0:SN.timestamp)?H.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var f=U.next().value,J=U.next().value;U=_.b(_.md(function(){H.data();return!1}));
var F=U.next().value,P=U.next().value;U=_.b(_.md(function(){var dK,SN;return((dK=H.data().structuredContextNoteFormSchema)==null?0:(SN=dK.initialValues)==null?0:SN.sources)?[H.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var n=U.next().value,N=U.next().value;U=_.b(_.md(function(){H.data();return!1}));
var L=U.next().value,m=U.next().value;U=_.b(_.md(function(){return!1}));
var z=U.next().value,c=U.next().value;_.LA(function(){var dK;u_8((dK=H.data().structuredContextNoteFormSchema)==null?void 0:dK.id,{isSubmitting:z,onSubmit:function(){c(!0);var SN=Xqf(A(),f(),n(),H.data()),o_=_.lx().resolve(_.YV);SN&&o_&&o_.resolveCommand(SN,{commandController:{onSuccess:function(){c(!1)}}})},
isValid:function(){return W()&&!d()&&!F()&&!L()}})});
var C=function(dK){if(dK!==void 0&&(M(dK),!W()&&dK.length>0&&w(!0),W())){var SN=HlY(H.data());if(SN){var o_=SN.minLength;SN=SN.maxLength;o_&&dK.length<o_?O(!0):SN&&dK.length>SN?O(!0):O(!1)}}},v=function(dK){if(dK!==void 0){J(dK);
if(dK.length>0){var SN,o_,PF,BF,kc=AFj((SN=H.data())==null?void 0:(o_=SN.structuredContextNoteFormSchema)==null?void 0:(PF=o_.fieldSchemas)==null?void 0:(BF=PF.timestamp)==null?void 0:BF.validationSchema);if(kc&&(SN=kc.regex)&&!(new RegExp(SN)).test(dK)){P(!0);return}}P(!1)}},Y=function(dK){if(dK!==void 0){var SN=dK.split(/[ \n]/).map(function(o_){return o_.trim()});
N(SN);if(dK.length>0)for(dK=_.b(SN),SN=dK.next();!SN.done;SN=dK.next())if(!wqm(SN.value)){m(!0);return}m(!1)}},D=function(){return{validate:function(dK){if(W()){var SN=HlY(H.data());
if(SN){var o_=SN.minLength;SN=SN.translations;if(o_&&dK.length<o_)return SN==null?void 0:SN.minLengthErrorMessage}}}}},h=function(){var dK=HlY(H.data()),SN=dK==null?void 0:dK.maxLength,o_;
dK=dK==null?void 0:(o_=dK.translations)==null?void 0:o_.maxLengthErrorMessage;if(SN&&dK)return{maxChars:SN,errorMessage:dK}},T=function(){return{validate:function(dK){if(dK){var SN,o_,PF,BF,kc=AFj((SN=H.data())==null?void 0:(o_=SN.structuredContextNoteFormSchema)==null?void 0:(PF=o_.fieldSchemas)==null?void 0:(BF=PF.timestamp)==null?void 0:BF.validationSchema);
if(kc&&(SN=kc.regex,kc=kc.translations,SN&&!(new RegExp(SN)).test(dK)))return kc==null?void 0:kc.regexErrorMessage}}}},WF=function(){return{validate:function(dK){if(dK){var SN,o_,PF,BF,kc=WLh((SN=H.data())==null?void 0:(o_=SN.structuredContextNoteFormSchema)==null?void 0:(PF=o_.fieldSchemas)==null?void 0:(BF=PF.sources)==null?void 0:BF.validationSchema);
if(kc&&(SN=kc.translations,SN==null?0:SN.selectedErrorMessage))for(dK=dK.split(/[ \n]/).map(function(G8){return G8.trim()}),dK=_.b(dK),o_=dK.next();!o_.done;o_=dK.next())if(!wqm(o_.value))return dK=void 0,(dK=SN)==null?void 0:dK.selectedErrorMessage}}}};
return _.Z("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.Z("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Z(_.YY,{data:function(){var dK;return(dK=H.data())==null?void 0:dK.noteContents}},{textFormFieldViewModel:function(dK){return _.Z(YKp,{data:dK.data,
onInput:C,validation:D,characterLimit:h})},
textFieldViewModel:function(dK){return _.Z(G_h,{data:dK.data,disableFormsApiMode:!0,onInput:C,validation:D,characterLimit:h})}})),_.Z("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Z(_.YY,{data:function(){var dK;
return(dK=H.data())==null?void 0:dK.noteTimestamp}},{textFormFieldViewModel:function(dK){return _.Z(YKp,{data:dK.data,
onInput:v,validation:T})},
textFieldViewModel:function(dK){return _.Z(G_h,{data:dK.data,disableFormsApiMode:!0,onInput:v,validation:T})}})),_.Z("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Z(_.YY,{data:function(){var dK;
return(dK=H.data())==null?void 0:dK.noteSources}},{textFormFieldViewModel:function(dK){return _.Z(YKp,{data:dK.data,
onInput:Y,validation:WF})},
textFieldViewModel:function(dK){return _.Z(G_h,{data:dK.data,disableFormsApiMode:!0,onInput:Y,validation:WF})}})))},"Ai");
qK$.idomCompat=!0;_.LG(qK$,"yt-structured-context-note-view-model",{props:{data:_.sY}});var hzp=_.r(function(H){var U=_.b(_.md(function(){var w;if((w=H.controlled)==null?0:w.call(H))return[];var d;return(((d=H.data())==null?void 0:d.chips)||[]).map(function(O){O=_.p(O,_.Fj);if(O==null?0:O.selected)return ilB(O.chipValue)}).filter(function(O){return O!==void 0})})),A=U.next().value,M=U.next().value,W=function(w){var d=ilB(w.chipValue);
if(d!==void 0){var O;if((O=H.controlled)==null?0:O.call(H))return void H.controlled().onTap(d);w=A().includes(d)?[].concat(_.vI(A().filter(function(J){return J!==d}))):[].concat(_.vI(A()),[d]);
M(w);var f;if((f=H.uncontrolled)==null?0:f.call(H))H.uncontrolled().onUpdate(w)}};
return _.Z("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.Z(_.FQ,{each:function(){return H.data().chips||[]}},function(w){return _.Z("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.Z(_.Tqr,{data:function(){return _.p(w,_.Fj)},
selected:function(){var d;if(d=_.p(w,_.Fj)){var O=ilB(d.chipValue);if(O!==void 0){var f;d=((f=H.controlled)==null?0:f.call(H))?H.controlled().selectedValues.includes(O):A().includes(O)}else d=void 0}else d=!1;return d},
callback:W}))}))},"Bi");var k_B=_.r(function(H){var U=H.data;var A=function(){var O;return((O=U())==null?void 0:O.flowStateKey)||""},M=_.$Y(_.LY,A),W=function(){var O;
return(O=_.p(M(),nuk))==null?void 0:O.chips},w=function(O){if(O!==void 0){var f=W()||[];
f=f.find(function(J){return J===O})?f.filter(function(J){return J!==O}):[].concat(_.vI(f),[O]);
f=Object.assign({},M(),{feedbackFormFlowState:Object.assign({},_.p(M(),nuk),{chips:f})});_.Le(_.hs("flowStateEntity",A(),f))}},d=function(){var O;
return _.p((O=U())==null?void 0:O.inputBox,NWh)};
H=_.Mb(function(O){var f=d();f=!(f==null?0:f.maxChars)||O.length<=f.maxChars;O=Object.assign({},M(),{feedbackFormFlowState:Object.assign({},_.p(M(),nuk),{detail:O}),abuseReportFlowState:Object.assign({},_.p(M(),p4),{navigationEnabled:f})});_.Le(_.hs("flowStateEntity",A(),O))},150);
return _.Z("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.Z("div",{class:"ytFeedbackFormViewModelChips"},_.Z(_.YY,{data:function(){var O;return(O=U())==null?void 0:O.chipSelection}},{chipSelectionFormFieldViewModel:function(O){return _.Z(hzp,{data:O.data,
controlled:function(){return{selectedValues:W()||[],onTap:w}}})}})),_.Z("div",{class:"ytFeedbackFormViewModelInputBox"},_.Z(ls8,{text:function(){var O;
return(O=_.p(M(),nuk))==null?void 0:O.detail},
placeholder:function(){var O;return((O=d())==null?void 0:O.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var O=d();if(O&&O.maxChars)return{maxChars:O.maxChars,errorMessage:O.maxCharsExceededErrorMessage||""}},
onInput:H})),_.Z("div",{class:"ytFeedbackFormViewModelFooterText"},_.Z(_.Pb,{text:function(){return U().footerText}})))},"Ci");
k_B.idomCompat=!0;_.LG(k_B,"yt-feedback-form-view-model",{props:{data:_.sY}});var veX=_.r(function(H){var U=H.data;var A=_.$Y(wOj,function(){return U().flowStateKey||""}),M=function(){var W;
_.uj((W=_.p(A(),p4))==null?void 0:W.navigationCommand)};
return _.Z("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.Z("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.Z(_.YY,{data:function(){return U().cancelButton}},{buttonViewModel:function(W){return _.Z(_.yJ,{data:W.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:M})}}),_.Z(_.YY,{data:function(){var W;
if(U().navButton){var w=Object;var d=w.assign,O=_.p(U().navButton,_.ot),f=((W=_.p(A(),p4))==null?0:W.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",J,F;W=_.p((J=_.p(A(),p4))==null?void 0:J.navigationCommand,_.X1);J=(F=_.p(W,_.gu))==null?void 0:F.url;w={buttonViewModel:d.call(w,{},O,{state:f,iconName:J?"OPEN_IN_NEW":""})}}else w=void 0;return w}},{buttonViewModel:function(W){return _.Z(_.yJ,{data:W.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:M})}})))},"Di");
veX.idomCompat=!0;_.LG(veX,"yt-report-form-bottom-bar-view-model",{props:{data:_.sY}});var TCh=_.r(function(H){var U=H.nextStep;return _.Z("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.Z("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.Z(_.er,{icon:function(){return U().iconName||""}})),_.Z("div",null,_.Z(_.Pb,{text:function(){return U().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ei"),jbf=_.r(function(H){var U=H.data;
var A,M=(A=_.lx().resolve(_.$V(_.qF)))==null?void 0:A(),W=_.$Y(_.LY,function(){return U().flowStateKey||""});
return _.Z("yt-report-form-confirmation-page-view-model",{class:function(){var w;return((w=_.p(W(),p4))==null?void 0:w.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.Z("div",{class:function(){var w;
return((w=_.p(W(),p4))==null?void 0:w.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.Z(_.nG,{data:function(){return M&&U().imageDark?U().imageDark:U().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.Z("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.Z("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return U().confirmationHeader}),_.Z("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.Z(_.Pb,{text:function(){return U().confirmationText}})),_.Z("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.Z(_.Pb,{text:function(){return U().lawEnforcementText}})),
_.Z("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return U().whatToExpectHeader}),_.Z(_.K,{cond:function(){return U().nextSteps},
then:function(w){return _.Z("div",null,_.Z(_.FQ,{each:w},function(d){return _.Z(TCh,{nextStep:d})}))}}),_.Z(_.K,{cond:function(){return U().legalReportText},
then:function(w){return _.Z("div",null,_.Z(_.Pb,{text:w,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Fi");
jbf.idomCompat=!0;_.LG(jbf,"yt-report-form-confirmation-page-view-model",{props:{data:_.sY}});var Ish=_.r(function(H){var U=H.data;var A=function(){var w;return((w=_.p(U().inputBox,NWh))==null?void 0:w.maxChars)||500},M=function(){return U().flowStateKey||""},W=_.$Y(_.LY,M);
H=_.Mb(function(w){w=Object.assign({},W(),{flowFormState:{isValid:w.length<=A()},abuseReportFlowState:{userComments:w,navigationEnabled:!(w.length>A()),isReportFormDirty:!0}});_.Sq().dispatch(_.Wl("flowStateEntity",M(),w))},150);
_.LA(function(){var w=Object.assign({},W(),{flowFormState:{isValid:!0}});_.Sq().dispatch(_.Wl("flowStateEntity",M(),w))});
return _.Z("yt-report-form-details-page-view-model",{class:function(){var w;return((w=_.p(W(),p4))==null?void 0:w.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.Z("h1",{class:function(){var w;
return((w=_.p(W(),p4))==null?void 0:w.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return U().detailsPageHeader}),_.Z("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.Z(_.Pb,{text:function(){return U().bodyText}})),_.Z("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.Z(ls8,{label:function(){var w;
return((w=_.p(U().inputBox,NWh))==null?void 0:w.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var w;return{errorMessage:((w=_.p(U().inputBox,NWh))==null?void 0:w.maxCharsExceededErrorMessage)||"",maxChars:A()}},
onInput:H})))},"Gi");
Ish.idomCompat=!0;_.LG(Ish,"yt-report-form-details-page-view-model",{props:{data:_.sY}});var Qb$=_.r(function(H){var U=H.data;var A=function(){return U().flowStateKey||""},M=_.$Y(_.LY,A),W=function(){return _.p(M(),p4)};
return _.Z("yt-report-form-reason-select-page-view-model",{class:function(){var w;return((w=W())==null?void 0:w.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.Z("h1",{class:function(){var w;
return((w=W())==null?void 0:w.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return U().pageHeader}),_.Z("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.Z(_.Pb,{text:function(){return U().bodyText}})),_.Z("div",{class:function(){var w;
return((w=W())==null?void 0:w.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.Z(rC5,{data:function(){return _.p(U().radioButtonGroup,mNh)},
onSelected:function(w,d){w=Object.assign({},M(),{abuseReportFlowState:Object.assign({},W(),{reasonKey:d.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:d.command})});_.Le(_.hs("flowStateEntity",A(),w))},
selectedKey:function(){var w;return(w=W())==null?void 0:w.reasonKey},
groupName:"report-form-reason-select-page"})))},"Hi");
Qb$.idomCompat=!0;_.LG(Qb$,"yt-report-form-reason-select-page-view-model",{props:{data:_.sY}});var VHm=_.r(function(H){var U=H.data;var A,M=(A=_.lx().resolve(_.$V(_.qF)))==null?void 0:A();return _.Z("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.Z("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.Z(_.nG,{data:function(){return M&&U().imageDark?U().imageDark:U().image},
alt:""})),_.Z("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.Z("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return U().header}),_.Z(_.Pb,{text:function(){return U().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Ii");
VHm.idomCompat=!0;_.LG(VHm,"yt-report-form-sign-in-page-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){var U=H.data;var A=_.Gk(_.H2m.talkToRecsStateSelector),M=function(){return U().titleSuperscript},W=function(){return U().answersShelf},w=function(){return U().videoShelf},d=function(){var T;
return(T=U().textInputPlaceholder)==null?void 0:T.content},O=function(){return U().showOpenTextInput},f=function(){var T;
return(T=U().textInputValue)==null?void 0:T.content},J=function(){return U().isMultiTurnFlow?U().resetButtonViewModel:void 0},F="",P=function(){return U().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
H=_.b(_.iB("",void 0,"bvffkf"));var n=H.next().value,N=H.next().value;H=_.b(_.iB(!1,void 0,"wzIoge"));var L=H.next().value,m=H.next().value,z=function(){return{state:L()||n()?"active":"disabled",disabled:!(L()||n())}};
_.pA(function(){if(O()){f()&&N(f());var T;if(!J()&&((T=A())==null?0:T.stepStates)){var WF;T=Object.keys((WF=A())==null?void 0:WF.stepStates);WF=T[T.length-1];if(WF!=="fmf_step_id"){var dK,SN;WF=(dK=A().stepStates[WF])==null?void 0:(SN=dK.userQuery)==null?void 0:SN.userQuery;_.Le(yM5());WF&&c(WF)}}}});
var c=function(T){var WF=U().onUpdateText;WF&&_.uj(WF,{form:{userQuery:T}});N(T)},C=_.Mb(function(T){c(T.target.value.trim())},150),v=_.c$(function(T){var WF;
F=(WF=T.target.value)==null?void 0:WF.trim();C(T);return!1}),Y=_.c$(function(T){T.key==="Enter"&&(L()||n())&&(c(T.target.value.trim()),h());
return!1}),D=function(T,WF){m(WF);
if(WF){if(U().isMultiTurnFlow&&!F){var dK;c((dK=T==null?void 0:T.text)!=null?dK:"")}U().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&h()}else N(F)},h=function(){var T=_.p(U().nextButtonViewModel,_.ot);
if(T==null?0:T.trackingParams){T=_.IS(T.trackingParams);var WF=_.XK();WF&&T&&_.S9(WF,T,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(T=U().onNextStepCommand)&&_.uj(T)};
H={};return _.Z("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.Z("div",{class:"ytwTalkToRecsTopCornerButton"},_.Z(_.YY,{data:function(){return U().topCornerButton}},{buttonViewModel:_.yJ})),_.Z("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.Z("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.Z(_.Pb,{text:function(){return U().title}}),_.Z(_.K,{cond:M,
then:function(){return _.Z("sup",{class:"ytwTalkToRecsSuperScript"},_.Z(_.Pb,{text:M}))}})),_.Z("div",{class:"ytwTalkToRecsSubtitle"},_.Z(_.Pb,{text:function(){return U().subtitle}})),_.Z("div",{class:"ytwTalkToRecsResultsShelf"},_.Z(_.K,{cond:W,
then:function(){return _.Z(_.YY,{data:W},{chipsShelfViewModel:function(T){return _.Z("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.Z(_.vE,{data:T.data,callback:D,selectionBehavior:P}))}})}}),_.Z(_.K,{cond:w,
then:function(){return _.Z(_.YY,{data:w},{horizontalShelfViewModel:function(T){return _.Z("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.Z(_.NH,{data:T.data,thumbnailAspectRatio:0}))}})}})),_.Z("div",{class:_.CG("ytwTalkToRecsRefinementContainer",(H.ytwTalkToRecsBottomMargin=function(){return U().isMultiTurnFlow},H))},_.Z(_.K,{cond:O,
then:function(){return _.Z("div",{class:"ytwTalkToRecsUserInputBox"},_.Z("input",{type:"text",class:"ytwTalkToRecsTextInput",title:d,placeholder:d,value:n,"on:input":v,"on:keyup":Y,maxlength:200}))}}),_.Z(_.YY,{data:function(){return U().isMultiTurnFlow?U().nextButtonViewModel:void 0}},{buttonViewModel:function(T){return _.Z("div",{class:"ytwTalkToRecsFlowControlButtons"},_.Z(_.yJ,{data:T.data,
buttonOverrides:z}))}}),_.Z(_.YY,{data:J},{buttonViewModel:function(T){return _.Z("div",{class:"ytwTalkToRecsFlowControlButtons"},_.Z(_.yJ,{data:T.data,
onClick:function(){var WF=_.p(U().resetButtonViewModel,_.ot);c(n());(WF=WF==null?void 0:WF.onTap)&&_.uj(WF)}}))}}))))},"Ki"),"yt-talk-to-recs-view-model",{props:{data:_.sY}});var blj={sources:[{clientResource:{imageName:"CHECK"}}]};var HL$=_.r(function(H){var U=_.nA("div");H=_.Ec(H,{error:void 0});var A=H.data,M=H.error,W=H.onSelected;H=H.className;var w=_.b(_.md(function(){return udj(A())})),d=w.next().value,O=w.next().value;
KLj(A,function(N){O(N);var L,m,z=Ol5((L=A().options)==null?void 0:(m=L[N])==null?void 0:m.value,A().type);W==null||W(z);U.value.focus()});
w=_.c$(function(){if(!A().disabled){var N=A(),L=d(),m=U.value;N.options&&(N=dG8(N.options,L,N.label),_.lx().resolve(_.Wi).openSheet({viewModel:N},m))}});
var f=_.qkK(),J=function(){return!!M()},F=function(){return!!A().disabled},P={},n={};
return _.Z("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.Z("div",{class:_.CG("ytDropdownViewModelDropdownContainer",H,(P.ytDropdownViewModelDropdownContainerErrorBorder=J,P.ytDropdownViewModelDropdownContainerDisabled=F,P)),"on:click":w,el:U,role:"combobox",tabindex:0,"on:keydown":f,"aria-invalid":J,"aria-disabled":F,"aria-describedby":function(){return J()?"dropdown-view-model-error":void 0}},_.Z("div",{class:"ytDropdownViewModelText"},ZlB(A,J,d),ff7(A,d)),_.Z("div",{class:_.CG("ytDropdownViewModelChevronDown",
(n.ytDropdownViewModelChevronDownDisabled=F,n))},_.Z(_.er,{icon:"CHEVRON_DOWN"}))),JFj(A,M))},"Li");_.LG(_.r(function(H){var U=H.data;var A=function(W){var w=FL7(U());w.videoMetadata||(w.videoMetadata={});w.videoMetadata.sponsorshipsMetadata||(w.videoMetadata.sponsorshipsMetadata={});w.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(W)},M=function(W){var w=FL7(U());
w.scheduledRedirectMetadata||(w.scheduledRedirectMetadata={});w.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(W)};
return _.Z("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.Z("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.Z("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.Z(_.Pb,{text:function(){return U().title}}),_.Z(_.er,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.Z(_.Pb,{text:function(){return U().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.Z(_.YY,{data:function(){return U().tierChoices}},{dropdownViewModel:function(W){return _.Z("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.Z(HL$,{data:W.data,
onSelected:A}))}}),_.Z(_.YY,{data:function(){return U().startTimeChoices}},{dropdownViewModel:function(W){return _.Z("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.Z(HL$,{data:W.data,
onSelected:M}))}}),_.Z(_.Pb,{text:function(){return U().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.Z("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.Z(_.YY,{data:function(){return U().scheduleButton}},{panelFooterViewModel:ms})))},"Mi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){var U=H.data;H=H.className===void 0?"":H.className;var A=_.$Y(wOj,function(){return U().flowStateEntityKey||""}),M={};
M=_.CG("ytFlowBottomBarViewModelFlowBottomBarButtons",(M.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return U().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||U().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},M));
var W={},w=_.CG("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",M,(W.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return U().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},W.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return U().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},W));
W={};var d=_.CG("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",M,(W.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return U().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},W.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return U().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},W));
M={};M=_.CG("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(M.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return U().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},M.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return U().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},M.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return U().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
M));
H=_.CG("ytFlowBottomBarViewModelHost",H);return _.Z("yt-flow-bottom-bar-view-model",{class:H},_.Z(_.K,{cond:function(){var O;return(O=U())==null?void 0:O.textSection},
then:function(O){return _.Z("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.Z(_.Pb,{text:O}))}}),_.Z("div",{class:M},_.Z(_.YY,{data:function(){return U().secondaryButton}},{buttonViewModel:function(O){return _.Z(_.yJ,{data:O.data,
className:d})}}),_.Z(_.YY,{data:function(){return U().primaryButton}},{buttonViewModel:function(O){return _.Z(_.yJ,{data:O.data,
className:w,buttonOverrides:function(){var f;return{disabled:!((f=A())==null||!f.primaryButtonDisabled)}}})}})))},"Ni"),"yt-flow-bottom-bar-view-model",{props:{data:_.sY,
className:_.Ne}});var UcB="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),aK=function(){var H=_.B.apply(this,arguments)||this;H.enableScrollingFix=!0;H.bottomBar=!1;H.fitContent=!1;return H};
_.R(aK,_.B);_.X=aK.prototype;_.X.ready=function(){_.S("enable_pdp_icon_prefetch")&&vn5(_.lx().resolve(_.HA8),0,UcB)};
_.X.focus=function(H){this.topBar?_.tk(this.topBar,H):this.paperDialog.focus(H)};
_.X.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$20941_scroller&&(this.JSC$20941_scroller.dialogElement=this.paperDialog,this.JSC$20941_scroller.attached&&typeof this.JSC$20941_scroller.attached==="function"&&this.JSC$20941_scroller.attached())};
_.X.onDataChanged=function(){var H;this.fitContent=!((H=this.data)==null||!H.fitContent);var U;this.bottomBar=!((U=this.data)==null||!U.bottomBar)};
_.X.onProgressChanged=function(){var H,U,A=((U=(H=this.data)==null?void 0:H.progress)!=null?U:0)*100;this.progressElement.style.width=A+"%"};
_.X.isProgressHidden=function(){var H;return!((H=this.data)==null?0:H.progress)};
_.X.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",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-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(H){return H&&!H.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
aK.prototype.onProgressChanged=aK.prototype.onProgressChanged;aK.prototype.onDataChanged=aK.prototype.onDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],aK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],aK.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],aK.prototype,"enableScrollingFix",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],aK.prototype,"bottomBar",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],aK.prototype,"fitContent",void 0);_.G([_.hG("#progress"),_.q("design:type",HTMLElement)],aK.prototype,"progressElement",void 0);_.G([_.hG("#scroller"),_.q("design:type",Object)],aK.prototype,"JSC$20941_scroller",void 0);_.G([_.hG("ytd-flow-top-bar-renderer"),_.q("design:type",HTMLElement)],aK.prototype,"topBar",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aK.prototype,"onDataChanged",null);_.G([_.Ya("data.progress"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aK.prototype,"onProgressChanged",null);_.G([_.dX({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],aK);
_.e(aK,"ytd-flow-step-renderer",function(){if(LDj!==void 0)return LDj;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return LDj=H},{mode:1});var xq=function(H){this.resolveCommand=H;this.steps={}},Alj=function(H,U){U=_.b(U||[]);
for(var A=U.next();!A.done;A=U.next()){A=A.value;var M=Object.values(A)[0],W=void 0;if((W=M)==null?0:W.stepId)H.steps[M.stepId]=A}},WAy=function(H,U){var A,M,W,w,d;
return _.u(function(O){if((A=H.state)==null||!A.currentStepId)return O.return(void 0);M=H.getCurrentStep();if(!M)return O.return(MKp(H));if(W=_.p(M,_.Vt))H.logVEScreen(W),((w=W)==null?0:w.onStepStartCommand)&&H.resolveCommand((d=W)==null?void 0:d.onStepStartCommand,{});W&&U&&(H.logFlowEvent(W,U),U.steps&&!U.steps.includes(M)&&U.steps.push(M));return O.return(M)})};
xq.prototype.back=function(){var H;(H=this.state)!=null&&H.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
xq.prototype.handleUpdateFlowCommand=function(H){H.steps&&Alj(this,H.steps);H.entityUpdateCommand&&this.resolveCommand(H.entityUpdateCommand,{});H.flowContinuationCommand&&(H=H.flowContinuationCommand)&&(this.getFlowContinuationCommand=H);this.awaitFlowContinuation&&(H=this.getCurrentStep(),this.awaitFlowContinuation(H),this.awaitFlowContinuation=void 0)};
xq.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var MKp=function(H){return _.u(function(U){return H.getFlowContinuationCommand?U.return(new Promise(function(A){H.awaitFlowContinuation=A;H.getFlowContinuationCommand&&H.resolveCommand(H.getFlowContinuationCommand,{flow_state:H.state})})):U.return(Promise.resolve(void 0))})};
xq.prototype.getCurrentStep=function(){var H;if((H=this.state)!=null&&H.currentStepId)return this.steps[this.state.currentStepId]};
xq.prototype.logVEScreen=function(H){var U;((U=H.screenLoggingData)==null?0:U.screenVeType)&&_.DJ(_.k$(),H.screenLoggingData.screenVeType)};
xq.prototype.logFlowEvent=function(H,U){var A,M,W,w;((A=U.flowLoggingData)==null?0:A.eventNamespace)&&((M=H.flowEventData)==null?0:M.eventType)&&((W=H.flowEventData)==null?0:W.eventMetadata)&&((w=U.flowLoggingData)==null?0:w.flowType)&&(H=_.ep(U.flowLoggingData.eventNamespace,H.flowEventData.eventType,H.flowEventData.eventMetadata),_.DY().logFlowEvent(H,U.flowLoggingData.flowType))};
_.D5.Object.defineProperties(xq.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.state)==null?void 0:H.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.state)!=null&&H.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(U,A){A.key&&A.value&&(U[A.key]=A.value);return U},{})}}});var z5=function(){var H=_.B.apply(this,arguments)||this;H.flowState=_.S("web_use_flow_state_manager")?void 0:new xq(function(U,A){A=A===void 0?{}:A;_.$$.instance.resolveCommand(U,{form:{form:A,element:H.hostElement}})});
H.JSC$20952_flowStateManager=_.S("web_use_flow_state_manager")?_.lx().resolve(_.vV):void 0;H.currentTargetId="";H.initialState=!0;H.isLoading=!1;H.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"};H.containsTalkToRecs=!1;return H};
_.R(z5,_.B);_.X=z5.prototype;_.X.onPopupClosed=function(H){if(!H||this.hostElement===H.detail.popupRenderer){if(this.JSC$20952_flowStateManager){var U;((U=this.data)==null?0:U.flowStateEntityKey)&&this.JSC$20952_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.X.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.X.focus=function(H){var U=this;_.oS(function(){var A=_.c4(U.hostElement).querySelector("ytd-flow-step-renderer");(A==null?0:A.topBar)?A.focus(H):U.topBar&&_.tk(U.topBar,H)},1)};
_.X.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.X.computeTopBarHidden=function(H){var U;return!((U=_.p(H,_.Vt))==null||!U.topBarOverride)};
_.X.onCurrentFlowChange=function(){if(this.JSC$20952_flowStateManager&&this.data&&this.flow){var H=HB$(this.JSC$20952_flowStateManager,this.data),U;if(H&&((U=this.flow)==null?0:U.currentStepId)){H=M25(H,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var A;!H&&((A=this.data)==null?0:A.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.X.observeData=function(){var H=this;if(this.JSC$20952_flowStateManager){var U=this.currentTargetId,A,M,W=(M=(A=this.data)==null?void 0:A.targetId)!=null?M:"";U!==W&&U&&Uzm(this.JSC$20952_flowStateManager,U);this.currentTargetId=W;this.data&&ALY(HB$(this.JSC$20952_flowStateManager,this.data),function(w){w&&(H.initialState=!1,H.currentFlowStep={flowStepRenderer:w},H.isLoading=!H.currentFlowStep,H.autofocusAndRefit(),H.updateContainsTalkToRecs(),H.logVEScreen(),H.logFlowEvent())})}};
_.X.dataChanged=function(){var H=this,U,A;return _.u(function(M){if(M.nextAddress==1){if(!H.flowState)return M.return();((U=H.data)==null?0:U.steps)&&Alj(H.flowState,H.data.steps);if((A=H.data)==null?0:A.flowContinuationCommand){var W=H.flowState,w=H.data.flowContinuationCommand;w&&(W.getFlowContinuationCommand=w)}return M.yield(WAy(H.flowState,H.data),2)}H.currentFlowStep=M.yieldResult;_.DO(M)})};
_.X.flowChanged=function(){var H=this,U;return _.u(function(A){if(A.nextAddress==1){if(!H.flowState||!H.flow)return A.return();H.flowState.state=H.flow;H.isLoading=!0;return A.yield(WAy(H.flowState,H.data),2)}U=A.yieldResult;if(!U||H.flow.isLoading)return A.return();H.currentFlowStep=U;H.initialState=!1;H.isLoading=!1;H.autofocusAndRefit();H.updateContainsTalkToRecs();_.DO(A)})};
_.X.logVEScreen=function(){var H,U,A=(H=_.p(this.currentFlowStep,_.Vt))==null?void 0:(U=H.screenLoggingData)==null?void 0:U.screenVeType;A&&_.DJ(_.lx().resolve(_.U8),A)};
_.X.logFlowEvent=function(){var H=_.p(this.currentFlowStep,_.Vt),U,A,M,W,w,d;(this==null?0:(U=this.data)==null?0:(A=U.flowLoggingData)==null?0:A.eventNamespace)&&(this==null?0:(M=this.data)==null?0:(W=M.flowLoggingData)==null?0:W.flowType)&&(H==null?0:(w=H.flowEventData)==null?0:w.eventType)&&(H==null?0:(d=H.flowEventData)==null?0:d.eventMetadata)&&(H=_.ep(this.data.flowLoggingData.eventNamespace,H.flowEventData.eventType,H.flowEventData.eventMetadata),_.DY().logFlowEvent(H,this.data.flowLoggingData.flowType))};
_.X.updateContainsTalkToRecs=function(){var H,U=(H=_.p(this.currentFlowStep,_.Vt))==null?void 0:H.content;this.containsTalkToRecs=!!U&&!!_.p(U,GM8)};
_.X.autofocusAndRefit=function(){var H=this,U=_.lx().resolve(_.$V(_.af)),A=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),M=document.querySelector("yt-report-form-confirmation-page-view-model"),W=document.querySelector("yt-report-form-details-page-view-model"),w=document.querySelector("yt-report-form-reason-select-page-view-model"),d=document.querySelector("yt-contributor-zero-state-view-model"),
O=document.querySelector("yt-structured-context-note-view-model"),f=document.querySelector("yt-note-view-model");(!A&&U&&U.isKeyBoardInUse()||M||!A&&W||!A&&w||!A&&(d||O||f))&&_.cW(this.hostElement);_.rV(this,function(){_.cg(H.hostElement,"yt-refit")})};
_.X.handleUpdateFlowCommand=function(H){this.flowState?this.data&&(H=_.p(H,_.PIy),H.targetId===this.data.targetId&&(H.flowContinuationCommand&&(this.data.flowContinuationCommand=H.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(H),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(H)};
_.X.handleFlowNextStepCommand=function(H){this.JSC$20952_flowStateManager?this.ytComponentBehavior.resolveCommand(H):this.data&&this.flow&&this.flow.key&&(H=_.p(H,_.Jf2),H.targetId===this.data.targetId&&(H=H.stepId||"",this.ytdReduxBehavior.dispatch(_.Wl("flowStateEntity",this.flow.key,{currentStepId:H,stepIdStack:(this.flow.stepIdStack||[]).concat(H)}))))};
_.X.handleFlowPrevStepCommand=function(H){if(this.JSC$20952_flowStateManager)this.ytComponentBehavior.resolveCommand(H);else if(this.data&&this.flow&&this.flow.key&&(H=_.p(H,_.KXr),H.targetId===this.data.targetId)){var U=[].concat(_.vI(this.flow.stepIdStack||[]));U.length>1?(U.pop(),this.ytdReduxBehavior.dispatch(_.Wl("flowStateEntity",this.flow.key,{currentStepId:U[U.length-1],stepIdStack:U}))):H.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(H.onFirstStepCommand)}};
_.X.handleYpcCancelRecurrenceCommand=function(H){if(this.data&&this.flow&&this.flow.key&&(H=_.p(H,k6$),H.targetId===this.data.targetId&&H.endpointCommand)){var U=_.p(this.flow,vTj);U&&_.p(H.endpointCommand,_.zLr)&&(_.p(H.endpointCommand,_.zLr).feedbackData=U.surveyFeedback);this.ytComponentBehavior.resolveCommand(H.endpointCommand)}};
_.X.handlePartialUpdateFlowStateEntity=function(H){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Wl("flowStateEntity",this.flow.key,H,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
z5.prototype.flowChanged=z5.prototype.flowChanged;z5.prototype.dataChanged=z5.prototype.dataChanged;z5.prototype.observeData=z5.prototype.observeData;z5.prototype.onCurrentFlowChange=z5.prototype.onCurrentFlowChange;z5.prototype.onPopupClosed=z5.prototype.onPopupClosed;_.G([_.g(_.dF),_.q("design:type",Object)],z5.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],z5.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],z5.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],z5.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],z5.prototype,"initialState",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],z5.prototype,"isLoading",void 0);_.G([_.y(),_.q("design:type",Object)],z5.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],z5.prototype,"currentFlowStep",void 0);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],z5.prototype,"onPopupClosed",null);
_.G([_.y({selectorArgs:["data.flowStateEntityKey"],selector:wOj}),_.q("design:type",Object)],z5.prototype,"flow",void 0);_.G([_.hG("ytd-flow-top-bar-renderer"),_.q("design:type",HTMLElement)],z5.prototype,"topBar",void 0);_.G([_.Ya("data","flow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],z5.prototype,"onCurrentFlowChange",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],z5.prototype,"observeData",null);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],z5.prototype,"dataChanged",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],z5.prototype,"containsTalkToRecs",void 0);_.G([_.jk("flow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],z5.prototype,"flowChanged",null);_.G([_.dX({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],z5);
var wzh=_.ty()(z5,"ytd-flow-root-renderer",function(){if(FDy!==void 0)return FDy;var H=document.createElement("template");_.E(H,'\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="root-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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return FDy=H},{mode:_.cX("kevlar_poly_si_batch_j025")?1:2});var pq8=_.H2m.talkToRecsStateSelector;_.LG(_.r(function(H){var U=function(){return _.p(H.data().flowRoot,SX$)};
_.LA(function(){var A=U(),M=function(){},W=function(){};
if(A){var w,d,O,f=((O=_.p((w=U())==null?void 0:(d=w.steps)==null?void 0:d[0],_.Vt))==null?void 0:O.stepId)||"";nC$(A,f);M=Syh(A);W=LLf(A)}_.m4(function(){var J=U();J&&_.Lq().dispatch(_.hs("flowStateEntity",J.flowStateEntityKey));M();M=function(){};
W();W=function(){};
_.Le(yM5())})});
return _.Z("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.Z(_.D8,{contentId:function(){return H.data().contentId}},function(){return _.Z("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.Z(_.K,{cond:U,
then:function(A){return _.Z(wzh,{data:A})}}))}))},"Oi"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.sY}});var Xzh=_.r(function(H){var U=_.Ec(H,{numberOfChips:5}).numberOfChips;return _.Z("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.Z(_.FQ,{each:function(){return Array(U==null?void 0:U())}},function(){return _.Z("div",{class:"ytGhostChipShelfChip"})}))},"Pi");_.LG(_.r(function(){return _.Z("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.Z("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.Z("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.Z(Xzh,null)),_.Z(_.Fkh,{data:{rows:1},isExploreHub:!0}))},"Qi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.LG(_.r(function(H){var U=H.data;var A=H.standardUnitMinWidth;H=_.b((0,_.S8)(U));var M=H.next().value,W=H.next().value,w=function(){var O,f=(O=M())==null?void 0:O.contents;return f==null||f.length===0},d=function(){W(Object.assign({},M(),{contents:[]}))};
return _.Z("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.sB(_.eD({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var O=_.p(U().chipsShelf,DBX);if(O!=null&&O!=null&&O.autoselectChipOnVisible){var f,J,F=_.p(O==null?void 0:(f=O.contents)==null?void 0:f[(J=O.autoselectedChipIndex)!=null?J:0],_.Fj);F&&F.tapCommand&&_.uj(F.tapCommand)}}}))},_.Z(_.D8,{contentId:function(){return U().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.Z("div",null,_.Z("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.Z(_.YY,{data:function(){return U().header}},{sectionHeaderViewModel:function(O){return _.Z(_.vv,{data:O.data,
disableHorizontalPadding:!0})}})),_.Z("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.Z(_.YY,{data:function(){return U().chipsShelf}},{chipsShelfViewModel:function(O){return _.Z(_.vE,{data:O.data,
callback:d,selectionBehavior:1})}})),_.Z("div",null,_.Z(_.K,{cond:w,
then:function(){return _.Z("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.Z(_.Fkh,{data:{rows:1},isExploreHub:!0}))}}),_.Z(_.YY,{data:function(){var O;
return(O=M())==null?void 0:O.contents}},{richShelfRenderer:function(O){return _.Z(_.zpH,{data:O.data,
isInnerShelf:!0,standardUnitMinWidth:A})}})))}))},"Ri"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.sY,
standardUnitMinWidth:_.sY}});var C0=function(){return _.B.apply(this,arguments)||this};
_.R(C0,_.B);
C0.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",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-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}}};
C0.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.G([_.g(_.dF),_.q("design:type",Object)],C0.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],C0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.RG),_.q("design:type",Object)],C0.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],C0.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Number)],C0.prototype,"standardUnitMinWidth",void 0);_.G([_.dX({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],C0);
_.e(C0,"ytd-rich-section-renderer",function(){if(kAh!==void 0)return kAh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return kAh=H},{mode:2});var iLm;var zO$=null;_.LG(_.r(function(H){return _.Z("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.Z("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.Z(_.Pb,{text:function(){return H.data().text}}),_.Z("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Si"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.sY}});var bL5=_.r(function(H){var U=H.playerControlsProps;var A=H.isShortsPage;return _.Z("yt-bigboard",null,_.Z(_.K,{cond:function(){return U().isDragging},
then:function(){return _.Z("div",{class:"ytBigboardStoryboardHost"},_.Z(_.RrB,{progressBarProps:U,isShortsPage:A}))}}))},"Ti");
bL5.idomCompat=!0;var t4={ACCOUNT_LABEL:u2("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:u2("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:u2("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:u2("AD_BADGE_HINT"),AD_BADGE_TEXT:u2("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:u2("ALL_CHANNELS_LABEL"),AMBIENT_MODE:u2("AMBIENT_MODE"),AMBIENT_MODE_OFF:u2("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:u2("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:u2("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:u2("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:u2("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:u2("APP_UPSELL_TITLE"),AUDIO_TRACK:u2("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:u2("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:u2("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:u2("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:u2("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:u2("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:u2("AUTO_ZOOM","Auto zoom"),BACK:u2("BACK"),CANCEL:u2("CANCEL"),CHANNEL_SWITCHER_LABEL:u2("CHANNEL_SWITCHER_LABEL"),CLOSE:u2("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:u2("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:u2("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:u2("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:u2("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:u2("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:u2("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:u2("COMMENT_MODAL_CONTENT"),CONFIRM_OK:u2("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:u2("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:u2("COPIED_TO_CLIPBOARD"),COPY:u2("COPY"),COPY_DEBUG_INFO:u2("COPY_DEBUG_INFO"),COPY_EMBED_CODE:u2("COPY_EMBED_CODE"),
COPY_LINK_LABEL:u2("COPY_LINK_LABEL"),COPY_VIDEO_URL:u2("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:u2("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:u2("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:u2("DELETE_FROM_DOWNLOADS"),DIALOG:u2("DIALOG"),DONE:u2("DONE"),DOWNLOAD:u2("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:u2("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:u2("FLAG_CONFIRM"),FLAG_CONTENT:u2("FLAG_CONTENT"),FLAG_LABEL:u2("FLAG_LABEL"),FLAG_TITLE:u2("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:u2("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:u2("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:u2("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:u2("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:u2("HIDE_SEARCH_FILTERS_LABEL"),HOME:u2("HOME","Home"),INVALID_RESPONSE_RECEIVED:u2("INVALID_RESPONSE_RECEIVED"),LIBRARY:u2("LIBRARY","Library"),LISTENING:u2("LISTENING"),LOADING:u2("LOADING"),LONG_PRESS_MIC_TO_SPEAK:u2("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:u2("LOOP"),MENU_DESKTOP:u2("MENU_DESKTOP"),
MENU_EXIT:u2("MENU_EXIT"),MENU_FEEDBACK:u2("MENU_FEEDBACK"),MENU_HELP:u2("MENU_HELP"),MENU_IMPRESSUM:u2("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:u2("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:u2("MENU_SETTINGS"),MENU_SIGN_IN:u2("MENU_SIGN_IN"),MENU_TITLE:u2("MENU_TITLE"),MENU_YOUR_DATA:u2("MENU_YOUR_DATA"),MORE_INFO:u2("MORE_INFO"),MORE_OPTIONS:u2("MORE_OPTIONS"),MUTE_VOLUME:u2("MUTE_VOLUME"),NEW_PLAYLIST:u2("NEW_PLAYLIST"),NEXT_VIDEO:u2("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:u2("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:u2("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:u2("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:u2("NOT_FOUND_TITLE"),NO_DOWNLOADS:u2("NO_DOWNLOADS"),NO_MIC_INPUT:u2("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:u2("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:u2("OOPS_MESSAGE"),OPEN_APP:u2("OPEN_APP"),OPEN_YOUTUBE:u2("OPEN_YOUTUBE"),PAUSE:u2("PAUSE"),PLAY:u2("PLAY"),PLAYER_CAPTION:u2("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:u2("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:u2("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:u2("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:u2("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:u2("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:u2("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:u2("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:u2("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:u2("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:u2("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:u2("PLAYER_MINIMIZE"),PLAYER_NEXT:u2("PLAYER_NEXT"),PLAYER_PAUSE:u2("PLAYER_PAUSE"),PLAYER_PLAY:u2("PLAYER_PLAY"),
PLAYER_PREVIOUS:u2("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:u2("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:u2("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:u2("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:u2("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:u2("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:u2("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:u2("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:u2("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:u2("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:u2("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:u2("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:u2("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:u2("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:u2("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:u2("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:u2("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:u2("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:u2("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:u2("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:u2("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:u2("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:u2("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:u2("PLAY_ALL"),PLEASE_FIX_ERRORS:u2("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:u2("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:u2("PREVIOUS_VIDEO"),PRIVACY_POLICY:u2("PRIVACY_POLICY"),RELOAD:u2("RELOAD"),REQUIRED_LABEL:u2("REQUIRED_LABEL"),SAVE_PLAYLIST:u2("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:u2("SCRUB_SLIDE_USER_EDU"),SEARCH:u2("SEARCH","Search"),
SEARCH_APPEND_LABEL:u2("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:u2("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:u2("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:u2("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:u2("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:u2("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:u2("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:u2("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:u2("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:u2("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:u2("SEEK_SLIDER"),SETTINGS_LABEL:u2("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:u2("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:u2("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:u2("SHOW_LESS"),SHOW_MORE:u2("SHOW_MORE"),SHOW_PLAYER_CONTROLS:u2("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:u2("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:u2("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:u2("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:u2("SIGN_IN_ON_WEB"),STABLE_VOLUME:u2("STABLE_VOLUME"),STABLE_VOLUME_OFF:u2("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:u2("STABLE_VOLUME_ON"),STATS_FOR_NERDS:u2("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:u2("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:u2("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:u2("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:u2("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:u2("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:u2("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:u2("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:u2("TIMESTAMP_SECONDS"),TOGGLE_OFF:u2("TOGGLE_OFF"),TOGGLE_ON:u2("TOGGLE_ON"),TRENDING:u2("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:u2("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:u2("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:u2("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:u2("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:u2("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:u2("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:u2("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:u2("VIDEO_LINK_LABEL")};var dc8=_.r(function(H){var U=H.playerApi;H=_.nA("button",function(M){dC(M,36843)});
var A=u2("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.Z("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.Z("button",{el:H,class:"ytPlayerControlsJumpForwardButtonButton",title:A,"aria-label":A,"on:click":_.c$(function(){OK(36843);U&&U().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.Z("span",null,_.Z(_.er,{icon:"FAST_FORWARD"}))))},"Ui");var OL8=_.r(function(H){var U=H.appApi;H=_.nA("button",function(M){dC(M,62946)});
var A=u2("OPEN_IN_MINIPLAYER");return _.Z("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.Z("button",{el:H,class:"ytMiniplayerButtonButton",title:A,"aria-label":A,"on:click":_.c$(function(){OK(62946);var M,W;(W=(M=U()).openInMiniplayer)==null||W.call(M);return!1})},_.Z(_.er,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Vi");var ueY=_.r(function(H){var U=H.playerApi;H=_.nA("button",function(w){dC(w,142812)});
var A=_.b(_.iB(!1,void 0,"eOMRAb")),M=A.next().value,W=A.next().value;A=function(){return u2("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(M()?1:2)})};
return _.Z("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.Z("button",{el:H,class:"ytPlaybackSpeedButtonButton",title:A,"aria-label":A,"on:click":_.c$(function(){OK(142812);if(U){var w=U(),d=M();w.setPlaybackRate(d?1:2);W(!M())}return!1})},_.Z("span",null,_.Z(_.er,{icon:function(){return M()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Wi");var ZLh=_.r(function(H){var U=H.title;var A=H.ariaLabel;var M=H.icon;var W=H.command;var w=H.visualElementId;H=_.nA("button",function(d){w&&dC(d,w())});
return _.Z("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.Z("button",{el:H,class:"ytdThumbnailOverlayButtonButton",title:U,"aria-label":A,"on:click":_.c$(function(){w&&OK(w());W&&_.lx().resolve(_.YV).resolveCommand(W())})},_.Z(_.er,{icon:M})))},"Xi");var fQh=["en-CA","en","es-MX","fr-CA"];var JlY=_.r(function(H){var U=_.Ec(H,{isOverlay:!1}),A=U.captionIconType,M=U.onClick;H=U.ariaLabel;var W=U.ariaPressed,w=U.isOverlay;U=_.nA("button",function(f){dC(f,127299)});
var d=_.c$(function(f){OK(127299);M==null||M(f);return!1}),O={};
return _.Z("ytm-closed-captioning-button",{class:_.CG("ytmClosedCaptioningButtonHost",(O.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return A()===-1&&w()},O.ytmClosedCaptioningButtonIconDisabled=function(){return A()===-1&&!w()},O))},_.Z("button",{el:U,
class:"ytmClosedCaptioningButtonButton",title:H,"aria-label":H,"aria-pressed":W,"on:click":d},_.Z(_.er,{icon:function(){var f="";var J=_.TR().get("hl");J=!J||fQh.includes(J)?"CLOSED_CAPTION":"SUBTITLES";var F=A();switch(F){case -1:case 0:f=J;break;case 1:f=J+"_FILLED";break;default:_.U$(F)}return f}})))},"Yi");
JlY.idomCompat={callbacks:{onClick:!0}};var bG="";var KAX=_.r(function(H){var U=H.playerControlsProps,A=H.onClickFn;H=_.Ja(function(){var w=U(),d=-1;w.captionsAvailable&&(d=w.captionsEnabled?1:0);return d},void 0,"MZ0Wqe");
var M=_.Ja(function(){var w=U();return w.captionsAvailable?_.hP(w.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.hP("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),W=_.Ja(function(){var w=U();
w=w.captionsAvailable?w.captionsEnabled:void 0;return w},void 0,"fhuQRe");
return _.Z("yt-closed-captions-toggle-button",null,_.Z(JlY,{captionIconType:H,ariaLabel:M,ariaPressed:W,onClick:function(w){var d=U();if(d.captionsAvailable){var O=d.playerApi;if(O){var f=d.playerApi;if(f){var J=bG;if(J){f=f.getOption("captions","track");var F;bG=(F=f?f.displayName:null)!=null?F:J}else mY$(f)?(J=_.m04(f),bG=J.length?(F=a$X(J))?F.displayName:J[0].displayName:""):bG=""}xYy(O);_.S("mweb_disable_set_state_captions_killswitch")&&d.setState({captionsEnabled:!d.captionsEnabled})}}var P,
n;(n=(P=d.appApi).showCaptionsToggleToast)==null||n.call(P,d);A==null||A(w)},
isOverlay:!0}))},"Zi");var o1p=_.r(function(H){var U=H.data;return _.Z("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.Z(_.Kn,{data:function(){return{type:17,text:_.BRr(U().label)}}}))},"$i");var FA$=_.r(function(H){var U=_.CG("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return H.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return H.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return H.size()==="small"?H.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
H.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.Z("animated-seek-arrows",{class:_.CG("ytPlayerControlsAnimatedSeekArrowsHost")},_.Z("span",{class:U}),_.Z("span",{class:U}),_.Z("span",{class:U}))},"aj");
FA$.idomCompat=!0;var P28=_.r(function(){var H=_.hP("PLAYER_SECONDS",{seconds_placeholder:"30"}),U=_.b(_.iB(!1,void 0,"iRJu8c")),A=U.next().value,M=U.next().value,W=_.b(_.iB(!1,void 0,"MPnizf"));U=W.next().value;var w=W.next().value;W={};var d=_.CG("jumpForwardOverlayOverlay",(W.jumpForwardOverlayOverlayHidden=U,W));_.LA(function(){var O=null,f=null,J=function(){O!==null&&_.MP().cancelJob(O);f!==null&&_.MP().cancelJob(f);w(!0);M(!0);_.av(_.MP(),function(){w(!1)});
O=_.av(_.MP(),function(){w(!0);f=_.av(_.MP(),function(){M(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",J);_.m4(function(){window.removeEventListener("jump-forward-clicked",J)})});
return _.Z("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.Z(_.K,{cond:A,then:function(){return _.Z("div",{class:d},_.Z(FA$,{direction:1,size:"large"}),_.Z("div",null,H))}}))},"bj");var s38=t4.MUTE_VOLUME,n1j=t4.UNMUTE_VOLUME,Nwp=_.r(function(H){var U=H.muteIconType;var A=H.onClick;var M=H.useOutlineIcon;var W=H.useDelhiIcons;H=_.nA("button",function(O){dC(O,28662)});
var w=function(){var O=U(),f=M==null?void 0:M(),J=W==null?void 0:W(),F="",P="";switch(O){case -1:case 0:F=f?"VOLUME_OFF":J?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";P=n1j;break;case 1:F=f?"VOLUME_UP_OUTLINE":J?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";P=s38;break;case 2:F=f?"VOLUME_DOWN_OUTLINE":J?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";P=s38;break;default:_.U$(O)}return{iconName:F,ariaLabel:P}},d=function(){return w().ariaLabel};
return _.Z("ytm-mute-button",{class:"ytmMuteButtonHost"},_.Z("button",{el:H,class:"ytmMuteButtonButton",title:d,"aria-label":d,"on:click":_.c$(function(O){OK(28662);A==null||A(O);return!1})},_.Z("span",null,_.Z(_.er,{icon:function(){return w().iconName}}))))},"cj");var SLp=_.r(function(H){var U=H.volumeProps;var A=H.onClickFn;var M=H.useOutlineIcon;var W=H.useDelhiIcons;return _.Z("yt-mute-toggle-button",null,_.Z(Nwp,{muteIconType:function(){var w=U();return w.volumeMuted||w.volume===0?0:w.volume>50?1:2},
onClick:function(w){var d=U().playerApi;d&&(d.isMuted()?d.unMute():d.mute(!1));A==null||A(w)},
useOutlineIcon:function(){return!(M==null||!M())},
useDelhiIcons:function(){return!(W==null||!W())}}))},"dj");
SLp.idomCompat=!0;var pzh=_.r(function(H){var U=H.data;var A=_.nA("ytm-paid-content-overlay-renderer");return _.Z("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:A,"on:animationend":_.c$(function(){A.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.Z(_.xy,{command:function(){return U().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.Z(_.K,{cond:function(){var M;return(M=U().icon)==null?void 0:M.iconType},
then:function(){return _.Z("span",null,_.Z(_.er,{icon:function(){var M;return(M=U().icon)==null?void 0:M.iconType}}))}}),_.Z("div",{class:"ytmPaidContentOverlayText"},_.Z(_.Pb,{text:function(){return U().text}})),_.Z(_.K,{cond:function(){return U().navigationEndpoint},
then:function(){return _.Z(_.er,{icon:"CHEVRON_RIGHT"})}})))},"ej");
pzh.idomCompat=!0;var McY=[].concat(_.vI([{register:function(H){var U=If7(H),A;(A=H().playerApi)==null||A.addEventListener("onVolumeChange",U);return function(){}}},
{register:function(H){var U=QR5(H);H=H().playerApi;H==null||H.addEventListener("captionschanged",U);H==null||H.addEventListener("captionssettingschanged",U);H==null||H.addEventListener("onCaptionsTrackListChanged",U);return function(){}}}]),[{register:function(H){var U=knh(H),A;
(A=H().playerApi)==null||A.addEventListener("onStateChange",U);return function(){}}},
{register:function(H){var U=vC5(H),A;(A=H().playerApi)==null||A.addEventListener("onPlaybackRateChange",U);return function(){}}},
{register:function(H){var U=T7y(H),A;(A=H().playerApi)==null||A.addEventListener("onVideoDataChange",U);return function(){}}},
{register:function(H){var U=jRj(H),A,M;(A=H())==null||(M=A.playerApi)==null||M.addEventListener("onVideoProgress",U);return function(){}}}]);var LAj=_.r(function(H){var U=H.data;var A=function(){return _.hP("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+U().playbackRate})};
return _.Z(_.K,{cond:function(){return U().playbackRate&&U().playbackRate!==1},
then:function(){return _.Z("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.Z("div",{class:"ytPlaybackRateOverlayOverlay"},_.Z(FA$,{direction:1,size:"small"}),_.Z("div",{class:"ytPlaybackRateOverlayLabel"},A)))}})},"gj");var RV5=_.r(function(H){var U=H.data;return _.Z("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.Z(_.K,{cond:function(){var A,M=(A=U())==null?void 0:A.playerResponse,W;return M==null?void 0:(W=M.paidContentOverlay)==null?void 0:W.paidContentOverlayRenderer},
then:function(A){return _.Z(pzh,{data:A})}}))},"ij"),E1p=_.r(function(H){var U=H.props;
var A=H.data;var M=H.options;var W=function(){var J,F,P,n;return(J=A())==null?void 0:(F=J.playerResponse)==null?void 0:(P=F.playerConfig)==null?void 0:(n=P.inlinePlaybackConfig)==null?void 0:n.showAudioControls},w=function(){var J,F;
if(W()&&((J=M())==null?void 0:(F=J.additionalButton)==null?void 0:F.button)!==void 0){var P,n,N;J=(P=A())==null?void 0:(n=P.playerApi)==null?void 0:(N=n.getSize())==null?void 0:N.height;if(!(J===void 0||J<180)){var L,m;return(L=M())==null?void 0:(m=L.additionalButton)==null?void 0:m.button}}},d=function(){var J,F;
return(J=M())==null?void 0:(F=J.additionalButton)==null?void 0:F.thumbnailOverlayButtonRenderers},O=function(){var J,F;
return(J=M())==null?void 0:(F=J.additionalButton)==null?void 0:F.thumbnailOverlayButtonViewModels},f=function(){var J=[_.Z(SLp,{volumeProps:U})],F;
((F=M())==null?0:F.hideCaptionsToggleButton)||J.push(_.Z(KAX,{playerControlsProps:U}));w()===1&&J.push(_.Z(dc8,{playerApi:function(){return U().playerApi}}));
w()===2&&J.push(_.Z(OL8,{appApi:function(){return U().appApi}}));
w()===3&&J.push(_.Z(ueY,{playerApi:function(){return U().playerApi}}));
F=d();if(w()===4&&F){F=_.b(F);for(var P=F.next(),n={};!P.done;n={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$54:void 0,command$jscomp$630:void 0},P=F.next()){P=P.value;n.tooltip$jscomp$3=P.tooltip;var N=void 0,L=void 0;n.ariaLabel$jscomp$20=((N=P.accessibility)==null?void 0:(L=N.accessibilityData)==null?void 0:L.label)||n.tooltip$jscomp$3;N=void 0;n.icon$jscomp$54=(N=P.icon)==null?void 0:N.iconType;n.command$jscomp$630=P.command;n.tooltip$jscomp$3&&n.ariaLabel$jscomp$20&&n.icon$jscomp$54&&
J.push(_.Z(ZLh,{title:function(m){return function(){return m.tooltip$jscomp$3}}(n),
ariaLabel:function(m){return function(){return m.ariaLabel$jscomp$20}}(n),
icon:function(m){return function(){return m.icon$jscomp$54}}(n),
command:function(m){return function(){return m.command$jscomp$630}}(n)}))}}F=O();
if(w()===4&&F)for(F=_.b(F),P=F.next(),n={};!P.done;n={tooltip$jscomp$4:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$55:void 0,command$jscomp$631:void 0,trackingParamsVeType:void 0},P=F.next())P=P.value,n.tooltip$jscomp$4=P.title,n.ariaLabel$jscomp$21=P.accessibilityText||n.tooltip$jscomp$4,n.icon$jscomp$55=P.iconName,n.command$jscomp$631=_.ij(P.onTap),L=N=void 0,n.trackingParamsVeType=((N=P.loggingDirectives)==null?0:N.trackingParams)?(L=tYB(_.Q0(P.loggingDirectives.trackingParams)))==null?void 0:
_.B8(L,2):void 0,n.tooltip$jscomp$4&&n.ariaLabel$jscomp$21&&n.icon$jscomp$55&&J.push(_.Z(ZLh,{title:function(m){return function(){return m.tooltip$jscomp$4}}(n),
ariaLabel:function(m){return function(){return m.ariaLabel$jscomp$21}}(n),
icon:function(m){return function(){return m.icon$jscomp$55}}(n),
command:function(m){return function(){return m.command$jscomp$631}}(n),
visualElementId:function(m){return function(){return m.trackingParamsVeType}}(n)}));
return J};
return _.Z(_.K,{cond:W,then:function(){return _.Z("div",{class:"ytInlinePlayerControlsTopRightControls"},_.Z(_.FQ,{each:f},function(J){return _.Z("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.Z("div",{class:"ytInlinePlayerControlsButtonIcon"},J))}))}})},"jj"),aQ5=_.r(function(H){var U=H.props;
var A=H.data;var M=H.options;H={};H=_.CG("ytInlinePlayerControlsBottomRightControls",(H.ytInlinePlayerControlsBottomRightControlsHidden=function(){var W;return HYm(A(),M())&&((W=M())==null?void 0:W.insetProgressBar)&&(U().isHovering||U().isDragging)},H));
return _.Z("div",{class:H},_.Z(mch,{data:A}),_.Z(_.K,{cond:function(){var W;return!((W=M())==null?0:W.hideTimeDisplay)},
then:function(){return _.Z(g1k,{props:U,data:A})}}))},"kj"),mch=_.r(function(H){var U=H.data;
return _.Z(_.YY,{data:function(){var A;return DG5((A=U())==null?void 0:A.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:o1p})},"lj"),g1k=_.r(function(H){var U=H.props;
var A=H.data;return _.Z(_.K,{cond:function(){return U().isLive},
then:function(){return _.Z(xcy,{props:U,data:A})},
else:function(){return _.Z(zVX,{props:U,data:A})}})},"mj"),zVX=_.r(function(H){var U=H.props;
var A=H.data;var M=_.Ja(function(){var W;return $Gk((W=A())==null?void 0:W.thumbnailOverlays)},void 0,"Pf9uIe");
return _.Z("div",{class:_.CG("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return t4.PLAYER_TIME_ELAPSED+" "+_.ISc(U().playedTime)}},_.Z(_.Kn,{data:function(){var W=_.ISc(U().videoDuration-U().playedTime);
return Object.assign({},{type:17,text:W},M())}}))},"nj"),C2k=_.r(function(H){H=H.badgeShapeData;
return _.Z("div",{class:_.CG("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.Z(_.Kn,{data:H}))},"oj"),xcy=_.r(function(H){var U=H.data;
H=_.Ja(function(){if(_.S("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var M,W=_.b(((M=U())==null?void 0:M.thumbnailOverlays)||[]);for(M=W.next();!M.done;M=W.next()){M=M.value;if(M.thumbnailOverlayTimeStatusRenderer||M.thumbnailOverlayBadgeViewModel)return M;var w=void 0;if((w=M.thumbnailBottomOverlayViewModel)==null?0:w.badges)if(M=M.thumbnailBottomOverlayViewModel.badges.find(function(d){return _.p(d,rF8)}))return M}}},void 0,"GPGpgc");
var A=_.Ja(function(){var M,W,w,d,O,f;return _.YVV((M=U())==null?void 0:(W=M.playerApi)==null?void 0:(w=W.getSize())==null?void 0:w.width,(d=U())==null?void 0:(O=d.playerApi)==null?void 0:(f=O.getSize())==null?void 0:f.height)},void 0,"OeIVKe");
return _.Z(_.K,{cond:H,then:function(M){return _.Z(_.YY,{data:M},{thumbnailOverlayTimeStatusRenderer:function(W){var w=W.data;W=_.Ja(function(){return _.CzF(w(),0)},void 0,"skoDC");
return _.Z(C2k,{badgeShapeData:W})},
thumbnailBadgeViewModel:function(W){return _.Z(_.e9k,{data:W.data,class:_.CG("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})},
thumbnailOverlayBadgeViewModel:function(W){return _.Z(_.qwk,{data:W.data,thumbnailSize:A})}})},
else:function(){var M={type:18,text:t4.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.Z(C2k,{badgeShapeData:function(){return M}})}})},"pj"),tK5=_.r(function(H){var U=H.props;
var A=H.data;var M=H.options;return _.Z(_.zrh,{progressBarProps:U,config:function(){var W,w=_.p((W=A())==null?void 0:W.multiMarkersPlayerBar,_.Uxh),d;W=((d=M())==null?0:d.insetProgressBar)?2:1;var O;d=(O=M())==null?void 0:O.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:W,chapterData:w,isInlinePlayback:!0,doSeekOnClick:d,playheadDotBehavior:d?1:0}}})},"qj");_.LG(_.r(function(H){var U=H.data;var A=H.appApi;var M=H.options;var W=hO8(U,V5h(A));H={};A={};return _.Z("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.Z("div",{class:_.CG("ytInlinePlayerControlsDarkenedOverlay",(H.ytInlinePlayerControlsDarkenedOverlayShow=function(){return W().isHovering},H))}),_.Z(P28,null),_.Z(LAj,{data:W}),_.Z(RV5,{data:U}),_.Z(bL5,{playerControlsProps:W,
isShortsPage:!1}),_.Z("div",{class:_.CG((A.ytInlinePlayerControlsControlsHidden=function(){return W().isDragging},A))},_.Z(E1p,{props:W,
data:U,options:M}),_.Z(aQ5,{props:W,data:U,options:M})),_.Z(_.K,{cond:function(){return HYm(U(),M())},
then:function(){return _.Z(tK5,{props:W,data:U,options:M})}}))},"hj"),"yt-inline-player-controls",{props:{data:_.sY,
appApi:_.Ne,options:_.sY}});var ck=function(){var H=_.B.apply(this,arguments)||this;H.opts=null;H.playerControlsData=null;H.playerControlsAppApi={openInMiniplayer:function(){H.openInMiniplayer()}};
H.playerControlsOptions={};H.noAnimation=!1;H.playbackIntentTriggered=!1;H.positionData=null;H.hidden=!0;H.active=!1;H.playing=!1;H.persistentPanelVisible=!1;H.videoPreviewDataIndex=0;H.JSC$21010_playerPromise=null;H.player=null;H.enableAudioControls=!1;H.hasBeenUnmuted=!1;H.captionsHaveBeenTurnedOff=!1;H.JSC$21010_playerEvents=new Map;H.videoPreviewFetchRequest=null;H.scheduledPreviewEndJobId=null;H.JSC$21010_preventProgressSaveTimer=null;H.watchEndpointStartTimeUpdaterInterval=null;H.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};H.windowOnBlurFn=function(){H.deactivate()};
return H};
_.R(ck,_.B);_.X=ck.prototype;
_.X.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{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",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.X.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$21010_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$21010_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$21010_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$21010_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.lN(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.lN(this,this.onScroll))};
_.X.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.lN(this,this.onScroll))};
_.X.onPageTypeChange=function(){this.deactivate()};
_.X.onWindowResized=function(){this.deactivate()};
_.X.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.X.onCaptionsChanged=function(H){H=!!H.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!H);this.setCaptionSize()};
_.X.setCaptionSize=function(){var H;if(this.active&&!this.captionsHaveBeenTurnedOff&&((H=this.player)==null?0:H.getCaptionWindowContainerId())){var U;(U=this.player)==null||U.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.X.currentPageAllowed=function(){return!this.isWatchPage};
_.X.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.S("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var H=this.positionData,U=H.initialTopPosition,A=H.initialHorizontalPosition;_.Dt(this.hostElement,{"--ytd-video-preview-translate-left":H.finalHorizontalPosition-A+"px","--ytd-video-preview-translate-top":H.finalTopPosition-U+"px","--ytd-video-preview-original-top-position":U+
"px","--ytd-video-preview-original-horizontal-position":A+"px","--ytd-video-preview-initial-scale":"scale("+H.initialScale+")","--ytd-video-preview-width":H.videoPreviewWidth+"px","--ytd-video-preview-height":H.videoPreviewHeight+"px"});return!0};
_.X.isOutOfBounds=function(H){var U=H.initialHorizontalPosition+12;H=U+H.videoPreviewWidth>window.innerWidth;return U<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&U<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&U<72||H};
_.X.handleOpenVideoPreviewAction=function(H){var U=this,A;return _.u(function(M){if(!U.currentPageAllowed())return M.return(0);U.opts=H;return(A=U.alignVideoPreviewForAnimation(H.thumbnail))?M.return(U.activate()):M.return(0)})};
_.X.onMouseLeave=function(H){var U,A;(U=this.opts)==null||(A=U.mouseleaveCallback)==null||A.call(U);this.shouldDeactivateOnMouseLeave(H)&&this.deactivate()};
_.X.onScroll=function(){var H,U;((H=this.opts)==null?0:H.isAutoplay)&&((U=this.opts)==null?0:U.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.X.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.Fl.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.X.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.X.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",ck.JSC$21009_DEFAULT_CLICK_LOCATION_BEHAVIOR,ck.JSC$21009_CLICK_LOCATION_ID_MAP)};
_.X.shouldDeactivateOnMouseLeave=function(H){H=H.relatedTarget;if(!H)return!0;var U;return(U=this.opts)!=null&&U.mediaRenderer?!_.yf(this.opts.mediaRenderer).contains(H):!0};
_.X.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.X.onPlaybackStart=function(){var H=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$21010_preventProgressSaveTimer=
_.av(_.Fl,function(){H.resetPreventProgressSaveTimer()},1E4);
var U;if((U=this.opts)==null?0:U.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.av(_.Fl,function(){H.hasMultipleVideoPreviews()?H.startPlaybackForNextVideo():H.deactivate()},this.opts.videoPreviewDurationMs);
var A;this.player.setGlobalCrop(((A=this.opts)==null?0:A.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.X.getRoundedCornersSize=function(){var H;if((H=this.opts)==null?0:H.roundedCornersSize){var U;return(U=this.opts)==null?void 0:U.roundedCornersSize}var A;if((A=this.opts)==null?0:A.enableRounding){var M;if(((M=this.opts)==null?void 0:M.thumbnailSize)==="small")return 1;var W;if(((W=this.opts)==null?void 0:W.thumbnailSize)==="medium")return 2;var w;if(((w=this.opts)==null?void 0:w.thumbnailSize)==="large")return 3}return _.S("web_imp_inset_progress_bar")?3:0};
_.X.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.X.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.X.onMediaContainerClick=function(H){this.isShortcutClick(H)||(this.navigateToWatch(H),H.preventDefault(),H.stopPropagation())};
_.X.activate=function(){var H=this,U,A,M,W,w,d,O,f,J;return _.u(function(F){switch(F.nextAddress){case 1:if(!H.currentPageAllowed())return F.return(0);A=(U=H.videoPreviewData)==null?void 0:U.inlinePlaybackEndpoint;M=_.ZW.instance;if(!A||!M)return F.return(0);H.playbackIntentTriggered=!0;((W=H.opts)==null?0:W.mediaRenderer)&&((w=H.opts)==null||!w.isAutoplay)&&yFj(H.opts.mediaRenderer,function(){H.deactivate()});
_.rV(H,function(){H.revealPreviewUi()});
d={};_.S("enable_unknown_lact_fix_on_html5")&&(_.lx().resolve(_.qe),d.lact=_.$B());H.videoPreviewFetchRequest=gCB(M,H.getInlinePlaybackRequestData(H.videoPreviewData),d);_.zj(F,2);return F.yield(H.videoPreviewFetchRequest,4);case 4:O=F.yieldResult;if(((f=O)==null?void 0:(J=f.playabilityStatus)==null?void 0:J.status)==="OK")return F.return(H.handlePlayerResponse(O));throw Error("Ql");case 2:_.eG(F),H.deactivate();case 3:return F.return(1)}})};
_.X.getInlinePlaybackRequestData=function(H){var U,A=_.S("web_imp_player_mute_params")?((U=this.opts)==null?void 0:U.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:H.inlinePlaybackEndpoint,startPlaybackInMutedState:A}};
_.X.handlePlayerResponse=function(H){var U=this,A,M,W,w,d,O,f,J,F,P,n,N,L,m;return _.u(function(z){if(z.nextAddress==1){A=U.getInlinePlaybackVideoId();if(!(((M=H)==null?0:(W=M.videoDetails)==null?0:W.videoId)&&U.currentPageAllowed()&&U.playbackIntentTriggered&&U.opts&&A))return U.deactivate(),z.return(0);if(H.videoDetails.videoId!==A)return z.return(0);U.enableAudioControls=!!((w=H.playerConfig)==null?0:(d=w.inlinePlaybackConfig)==null?0:d.showAudioControls);H.trackingParams=U.getInlinePlaybackTrackingParams();
if(!U.inlinePlayer)return z.return(0);O={};if(J=_.p((f=U.videoPreviewData)==null?void 0:f.inlinePlaybackEndpoint,_.sH))O.watch_endpoint=J;if(U.videoPreviewData){var c,C=(c=_.p(U.videoPreviewData.inlinePlaybackEndpoint,_.sH))==null?void 0:c.startTimeSeconds;C!==void 0&&(H.playerConfig||(H.playerConfig={}),H.playerConfig.playbackStartConfig||(H.playerConfig.playbackStartConfig={}),H.playerConfig.playbackStartConfig.startPosition||(H.playerConfig.playbackStartConfig.startPosition={}),H.playerConfig.playbackStartConfig.startSeconds=
C,H.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(C*1E3))}U.inlinePlayer.loadVideoWithPlayerResponse(H,O);if(U.JSC$21010_playerPromise)return z.jumpTo(2);U.JSC$21010_playerPromise=U.inlinePlayer.getPlayerPromise();return z.yield(U.JSC$21010_playerPromise,3)}z.nextAddress!=2&&(F=z.yieldResult,F.setInlinePreview(!0),P=!_.S("web_imp_theater_bugfix"),F.setSizeStyle(!1,P),U.ytPlayerListenerBehavior.listenToPlayerEvents(F,U.JSC$21010_playerEvents),U.player=F,_.cg(U.hostElement,
"player-api-ready"));((n=U.opts)==null?0:n.showPlayerControls)&&U.videoPreviewData&&U.player&&(U.playerControlsData={playerResponse:H,isInlinePlayback:!0,thumbnailOverlays:U.videoPreviewData.thumbnailOverlays,playerApi:U.player},U.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!U.unroundCornersForPlayback,additionalButton:U.getAdditionalButtonType(U.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(N=U.opts)==null?void 0:N.hideTimeDisplay,hideScrubbingControls:(L=U.opts)==
null?void 0:L.hideScrubber,hideCaptionsToggleButton:(m=U.opts)==null?void 0:m.hideCaptionsToggleButton});return z.return(2)})};
_.X.revealPreviewUi=function(){var H=this;this.playbackIntentTriggered&&_.Cot(this,function(){H.hasThumbnailPositionChangedSinceTriggered()||(H.updateActiveState(!0),H.noAnimation=!1)})};
_.X.hasThumbnailPositionChangedSinceTriggered=function(){var H=this.positionData,U=this.getThumbnailPositionData();return(H==null?void 0:H.initialTopPosition)!==(U==null?void 0:U.initialTopPosition)||(H==null?void 0:H.initialHorizontalPosition)!==(U==null?void 0:U.initialHorizontalPosition)};
_.X.getThumbnailPositionData=function(){var H,U;if((U=this.opts)==null||!U.thumbnail)return null;U=this.opts.thumbnail;var A=((H=this.opts)==null?0:H.cropPlayerToFillThumbnailHorizontally)?!1:!0;var M=U.getBoundingClientRect();H=M.width;U=M.height;var W=M.top+window.scrollY;M=M.left+window.scrollX;var w=A?Math.ceil(H):H;A=A?Math.ceil(U):U;var d=H/w;H={initialScale:d,initialTopPosition:W-12*d,finalTopPosition:W-12-(A-U)/2,initialHorizontalPosition:M-(12+(w-H)/2),finalHorizontalPosition:M-12-(w-H)/
2,videoPreviewWidth:w,videoPreviewHeight:A};return H};
_.X.updateActiveState=function(H){this.active=H;this.ytdReduxBehavior.dispatch(_.zQ({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:H}))};
_.X.stopPlayer=function(H){H=H.resetWatchEndpointStartTime===void 0?!1:H.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(H)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.Fl.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.X.deactivate=function(H){H=H===void 0?{}:H;H=H.resetWatchEndpointStartTime===void 0?!1:H.resetWatchEndpointStartTime;zO$&&(zO$.disconnect(),zO$=null);this.stopPlayer({resetWatchEndpointStartTime:H});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.X.isValidThumbnailOverlayButton=function(H,U){H=H.thumbnailOverlayButtonRenderer;var A;return!!H&&!!H.tooltip&&!((A=H.icon)==null||!A.iconType)&&U.includes(H.icon.iconType)};
_.X.isValidThumbnailOverlayButtonViewModel=function(H,U){var A;H=_.p((A=H.thumbnailOverlayButtonViewModel)==null?void 0:A.overlayButton,_.ot);return!!H&&!!H.title&&!!H.iconName&&U.includes(H.iconName)};
_.X.getAdditionalButtonType=function(H){var U=this;if(_.S("web_imp_fastforward_button"))return{button:1};if(_.S("web_imp_miniplayer_button"))return{button:2};if(_.S("web_imp_playback_speed_button"))return{button:3};var A=["BOX_STACK_3"],M=(H||[]).filter(function(w){return U.isValidThumbnailOverlayButton(w,A)}).map(function(w){return w.thumbnailOverlayButtonRenderer});
if(M.length)return{button:4,thumbnailOverlayButtonRenderers:M};var W=["BOX_STACK_3"];H=(H||[]).filter(function(w){return U.isValidThumbnailOverlayButtonViewModel(w,W)}).map(function(w){return _.p(w.thumbnailOverlayButtonViewModel.overlayButton,_.ot)});
if(H.length)return{button:4,thumbnailOverlayButtonViewModels:H}};
_.X.allowCaptions=function(){var H;return!((H=this.opts)==null?0:H.forceCaptionsOff)};
_.X.allowUnmuting=function(){var H;return this.enableAudioControls&&!((H=this.opts)==null?0:H.forceMutedVolume)};
_.X.beginStartTimeUpdater=function(){var H=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Ih(function(){H.updateWatchEndpointStartTime()},1E3)};
_.X.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.X.resetPreventProgressSaveTimer=function(){this.JSC$21010_preventProgressSaveTimer!==null&&(_.Fl.cancelJob(this.JSC$21010_preventProgressSaveTimer),this.JSC$21010_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.X.updateWatchEndpointStartTime=function(H){var U=this.videoPreviewData;if(this.player&&U!=null&&U.inlinePlaybackEndpoint&&!this.JSC$21010_preventProgressSaveTimer){H=H?0:Math.floor(this.player.getCurrentTime());var A=_.p(U.navigationEndpoint,_.sH);A&&(A.startTimeSeconds=H);if(U=_.p(U.inlinePlaybackEndpoint,_.sH))U.startTimeSeconds=H}};
_.X.isShortcutClick=function(H){return!!H&&(H.ctrlKey||H.shiftKey||H.metaKey)};
_.X.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.X.openInMiniplayer=function(){var H=this,U,A;return _.u(function(M){if(M.nextAddress==1){A=(U=H.videoPreviewData)==null?void 0:U.navigationEndpoint;if(!A)return M.return();_.vc().lockupActivation=!0;return M.yield(_.Kr2(_.lx().resolve(_.ZB),A),2)}_.vc().userActivation=!0;_.DO(M)})};
_.X.navigateToWatch=function(H){var U,A=(U=this.videoPreviewData)==null?void 0:U.navigationEndpoint;if(A){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(A,H,!0);else{var M;_.S("web_thumbnail_to_watch_transition")&&((M=this.opts)==null?0:M.thumbnail)&&_.Z2z(_.lx().resolve(_.Vc),this.opts.thumbnail);_.cg(this.hostElement,"yt-navigate",{endpoint:A})}this.deactivate()}};
_.X.getInlinePlaybackVideoId=function(){var H,U;return(U=_.p((H=this.videoPreviewData)==null?void 0:H.inlinePlaybackEndpoint,_.sH))==null?void 0:U.videoId};
_.X.getInlinePlaybackTrackingParams=function(){var H,U;return(H=this.videoPreviewData)==null?void 0:(U=H.inlinePlaybackEndpoint)==null?void 0:U.clickTrackingParams};
_.X.hasMultipleVideoPreviews=function(){var H;return!!(((H=this.opts)==null?0:H.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.X.startPlaybackForNextVideo=function(){var H;(H=this.opts)!=null&&H.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())};
_.D5.Object.defineProperties(ck.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.opts)==null?0:H.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.opts)==null||!H.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 H;if(Array.isArray((H=this.opts)==null?void 0:H.videoPreviewData)){var U;return(U=this.opts)==null?void 0:U.videoPreviewData[this.videoPreviewDataIndex]}var A;return(A=this.opts)==null?void 0:A.videoPreviewData}}});
ck.prototype.onIsAdsVideoChange=ck.prototype.onIsAdsVideoChange;ck.prototype.onInlinePreviewIsEnabledChange=ck.prototype.onInlinePreviewIsEnabledChange;ck.prototype.optsChanged=ck.prototype.optsChanged;ck.prototype.onMouseLeave=ck.prototype.onMouseLeave;ck.prototype.onPersistentPanelVisibleChange=ck.prototype.onPersistentPanelVisibleChange;ck.JSC$21009_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
ck.JSC$21009_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"}];_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],ck.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ck.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.nm.YtPlayerListenerBehavior),_.q("design:type",_.NM)],ck.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],ck.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ck.prototype,"componentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ck.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.dF),_.q("design:type",Object)],ck.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.gF.YtSparklesClickLocationBehavior),_.q("design:type",Object)],ck.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ck.prototype,"opts",void 0);_.G([_.y(),_.q("design:type",Object)],ck.prototype,"playerControlsData",void 0);_.G([_.y(),_.q("design:type",Object)],ck.prototype,"playerControlsAppApi",void 0);
_.G([_.y(),_.q("design:type",Object)],ck.prototype,"playerControlsOptions",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],ck.prototype,"noAnimation",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],ck.prototype,"hidden",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],ck.prototype,"active",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],ck.prototype,"playing",void 0);
_.G([_.y({selector:_.o0t}),_.q("design:type",Boolean)],ck.prototype,"inlinePreviewIsEnabled",void 0);_.G([_.y(),_.q("design:type",String)],ck.prototype,"pagePath",void 0);_.G([_.y({selector:_.fat}),_.q("design:type",Boolean)],ck.prototype,"isWatchPage",void 0);_.G([_.y({selector:_.fl.persistentPanelVisibleSelector}),_.q("design:type",Object)],ck.prototype,"persistentPanelVisible",void 0);
_.G([_.a("videoPreviewData"),_.q("design:type",Object),_.q("design:paramtypes",[])],ck.prototype,"thumbnailData",null);_.G([_.a("opts","active"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ck.prototype,"hidePlayerControls",null);_.G([_.a("opts"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ck.prototype,"isAdsVideo",null);
_.G([_.a("opts"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ck.prototype,"roundedCornersSmall",null);_.G([_.a("opts"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ck.prototype,"roundedCornersMedium",null);_.G([_.a("opts"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ck.prototype,"roundedCornersLarge",null);
_.G([_.a("opts"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ck.prototype,"unroundCornersForPlayback",null);_.G([_.a("opts","videoPreviewDataIndex"),_.q("design:type",Object),_.q("design:paramtypes",[])],ck.prototype,"videoPreviewData",null);_.G([_.y(),_.q("design:type",Object)],ck.prototype,"videoPreviewDataIndex",void 0);_.G([_.hG("#inline-player"),_.q("design:type",Object)],ck.prototype,"inlinePlayer",void 0);
_.G([_.Ya("persistentPanelVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ck.prototype,"onPersistentPanelVisibleChange",null);_.G([_.Gl("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[MouseEvent]),_.q("design:returntype")],ck.prototype,"onMouseLeave",null);_.G([_.jk("opts"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ck.prototype,"optsChanged",null);
_.G([_.jk("inlinePreviewIsEnabled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ck.prototype,"onInlinePreviewIsEnabledChange",null);_.G([_.Ya("isAdsVideo"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ck.prototype,"onIsAdsVideoChange",null);_.G([_.dX({is:"ytd-video-preview",disableElementRegistration:!0})],ck);
_.e(ck,"ytd-video-preview",function(){if(iLm!==void 0)return iLm;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return iLm=H},{mode:2});var clp;var yS=function(){var H=_.B.apply(this,arguments)||this;H.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};H.forceDarkTheme=!1;H.forceLightTheme=!1;H.dynamicTextHeight=94;H.hasOverflowButton=!1;H.isInfeedModernization=!1;return H};
_.R(yS,_.B);_.X=yS.prototype;_.X.computeUrlImg=function(H){if(H)return _.EB(H.thumbnails)};
_.X.getLogoHeight=function(H){return this.logoWithPadding(H)?"31":"24"};
_.X.getLogoClassName=function(H){return this.logoWithPadding(H)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.X.logoWithPadding=function(H){var U,A;return(H=(U=H.thumbnails)==null?void 0:(A=U[0])==null?void 0:A.height)&&H%31===0?!0:!1};
_.X.sendImpressionEndpoints=function(H){H.impressionEndpoints&&_.rs(this.hostElement,H.impressionEndpoints)};
_.X.observeBasicPalette=function(){var H,U,A=(H=this.data)==null?void 0:(U=H.colorData)==null?void 0:U.basicColorPaletteData;A?_.jr(this.hostElement,A):_.jr(this.hostElement,{})};
_.X.observeDataChanged=function(){var H;this.dynamicTextHeight=((H=this.data)==null?0:H.supplementalText)?74:94;var U;this.hasSupplementalText=!((U=this.data)==null||!U.supplementalText);var A,M,W,w;H=(A=this.data)==null?void 0:(M=A.actionButton)==null?void 0:(W=M.buttonRenderer)==null?void 0:(w=W.colorData)==null?void 0:w.basicColorPaletteData;var d,O,f;if(!((d=this.data)==null?0:(O=d.actionButton)==null?0:(f=O.buttonRenderer)==null?0:f.style)&&H){this.computeIsInfeedModernization(this.data)||(H.borderColor=
H.foregroundTitleColor);var J,F;this.set("data.actionButton.buttonRenderer",_.dG.unsafeClone((J=this.data)==null?void 0:(F=J.actionButton)==null?void 0:F.buttonRenderer))}};
_.X.observeDataForCounterfactual=function(){if(_.S("kevlar_banner_cf_extra_logging")){var H;((H=this.data)==null?0:H.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.X.computeSupplementalStyle=function(){var H;if((H=this.data)!=null&&H.supplementalText){var U,A,M;if((U=this.data)==null?0:(A=U.colorData)==null?0:(M=A.basicColorPaletteData)==null?0:M.foregroundActivatedColor)return H=_.wn(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+H+"; --yt-endpoint-hover-color:"+H+"; --yt-endpoint-visited-color:"+H+"; --yt-formatted-string-bold-font-weight:700;"}};
_.X.computeForcedDarkTheme=function(){var H,U,A,M=(H=this.data)==null?void 0:(U=H.actionButton)==null?void 0:(A=U.buttonRenderer)==null?void 0:A.style,W,w,d;H=Xgh(((W=this.data)==null?void 0:(w=W.colorData)==null?void 0:(d=w.basicColorPaletteData)==null?void 0:d.backgroundColor)||0);return M&&H};
_.X.computeForcedLightTheme=function(){var H,U,A,M=(H=this.data)==null?void 0:(U=H.actionButton)==null?void 0:(A=U.buttonRenderer)==null?void 0:A.style,W,w,d;H=!Xgh(((W=this.data)==null?void 0:(w=W.colorData)==null?void 0:(d=w.basicColorPaletteData)==null?void 0:d.backgroundColor)||0);return M&&H};
_.X.computeHasOverflowButton=function(H){return!!H.overflowButton};
_.X.computeHasTitle=function(H){return!!H.title};
_.X.computeTitleMaxFontSize=function(H){return this.computeHasOverflowButton(H)?28:64};
_.X.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.X.computeIsInfeedModernization=function(){var H,U,A,M,W=(H=this.data)==null?void 0:(U=H.actionButton)==null?void 0:(A=U.buttonRenderer)==null?void 0:(M=A.colorData)==null?void 0:M.basicColorPaletteData;return(W==null?void 0:W.backgroundColor)===452984831||(W==null?void 0:W.backgroundColor)===218103808};
yS.prototype.observeDataForCounterfactual=yS.prototype.observeDataForCounterfactual;yS.prototype.observeDataChanged=yS.prototype.observeDataChanged;yS.prototype.observeBasicPalette=yS.prototype.observeBasicPalette;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],yS.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],yS.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],yS.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],yS.prototype,"hasSupplementalText",void 0);_.G([_.y(),_.q("design:type",Object)],yS.prototype,"dismissButtonOverrides",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.q("design:type",Boolean)],yS.prototype,"hasTitle",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.q("design:type",Object)],yS.prototype,"forceDarkTheme",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.q("design:type",Object)],yS.prototype,"forceLightTheme",void 0);_.G([_.y(),_.q("design:type",Object)],yS.prototype,"dynamicTextHeight",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.q("design:type",Object)],yS.prototype,"hasOverflowButton",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.q("design:type",Object)],yS.prototype,"isInfeedModernization",void 0);_.G([_.Ya("data.colorData.basicColorPaletteData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yS.prototype,"observeBasicPalette",null);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yS.prototype,"observeDataChanged",null);_.G([_.Ya("data.isVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yS.prototype,"observeDataForCounterfactual",null);_.G([_.dX({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],yS);
_.e(yS,"ytd-banner-promo-renderer",function(){if(clp!==void 0)return clp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return clp=H},{mode:1});var eV7=_.r(function(H){var U=H.data;var A=H.hideDivider;var M=H.isChannelInfoCard;H={};return _.Z("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.Z("div",{class:_.CG("yt-profile-identity-info-view-model__frame",(H["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!U().channelBanner},H))},_.Z(ylB,{profileIdentityInfoData:U}),_.Z("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.Z("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.Z(_.YY,{data:function(){return U().avatar}},{avatarViewModel:_.dU})),_.Z(BwY,{profileIdentityInfoData:U})),_.Z(_.K,{cond:function(){return U().channelDescription},
then:function(W){var w={};return _.Z("div",{class:_.CG((w["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(M==null||!M())},w["yt-profile-identity-info-view-model__channel-description"]=function(){return!(M==null?0:M())},w))},W)}}),_.Z(rlf,{profileIdentityInfoData:U}),_.Z(_.K,{cond:function(){return!(A==null?0:A())},
then:function(){return _.Z("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"rj");
eV7.idomCompat=!0;var rlf=_.r(function(H){var U=H.profileIdentityInfoData;return _.Z("div",{class:"yt-profile-identity-info-view-model__buttons"},_.Z(_.FQ,{each:function(){return U().subscribeButton?[U().subscribeButton,U().channelAccess]:[U().channelAccess]}},function(A){return _.Z("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.Z("div",{class:"yt-profile-identity-info-view-model--button"},_.Z(_.YY,{data:function(){return A}},{buttonViewModel:_.yJ,
subscribeButtonViewModel:_.dx})))}))},"sj"),BwY=_.r(function(H){var U=H.profileIdentityInfoData;
return _.Z("div",{class:"yt-profile-identity-info-view-model__trio"},_.Z("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.Z(Dck,{profileIdentityInfoData:U}),_.Z(_.YY,{data:function(){return U().threeDotMenu}},{buttonViewModel:_.yJ})),_.Z($cm,{profileIdentityInfoData:U}))},"tj"),Dck=_.r(function(H){var U=H.profileIdentityInfoData;
return _.Z("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.Z("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return U().channelDisplayName}),_.Z(_.K,{cond:function(){return U().verifiedOrOacBadge},
then:function(A){return _.Z("div",{class:"yt-profile-identity-info-view-model__badge"},_.Z(_.nG,{data:function(){return{thumbnails:[{url:A().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"uj"),ylB=_.r(function(H){var U=H.profileIdentityInfoData;
return _.Z("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.Z(_.YY,{data:function(){var A=U().channelBanner;if(A)return{imageBannerViewModel:{image:A.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(A){return _.Z("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.Z(_.SP,{data:A.data,
isPositionRelative:!0}))}}))},"vj"),$cm=_.r(function(H){var U=H.profileIdentityInfoData;
return _.Z("div",{class:"yt-profile-identity-info-view-model__metadata"},_.Z("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.Z("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return U().channelHandle}),_.Z(_.K,{cond:function(){return U().channelPronouns&&U().channelHandle},
then:function(){return _.Z("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.Z("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return U().channelPronouns})),_.Z("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.Z("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return U().leftOfBulletInfo}),_.Z(_.K,{cond:function(){return U().leftOfBulletInfo&&U().rightOfBulletInfo},
then:function(){return _.Z("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.Z("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return U().rightOfBulletInfo})))},"wj");_.LG(eV7,"yt-profile-identity-info-view-model",{props:{data:_.sY,hideDivider:_.sY,isChannelInfoCard:_.sY}});_.LG(_.xr8,"yt-page-header-view-model",{props:{data:_.sY,noPadding:_.sY,enableBanner:_.sY,cinematicContainerTopbarOffset:_.sY,allowCinematicContainerOverflow:_.sY,displayAsSidebar:_.sY,displayAsPanel:_.sY,alwaysUseMediumTextDescription:_.sY}});var lQh=_.r(function(){return _.Z("div",{class:_.CG("ytdGhostGridViewModelGhostCard")},_.Z("div",{class:_.CG("ytdGhostGridViewModelThumbnail","ytdGhostGridViewModelGhostColor")}),_.Z("div",{class:_.CG("ytdGhostGridViewModelDetails")},_.Z("div",{class:_.CG("ytdGhostGridViewModelChannelAvatar","ytdGhostGridViewModelGhostColor")}),_.Z("div",{class:_.CG("ytdGhostGridViewModelDetailsTextShell")},_.Z("div",{class:_.CG("ytdGhostGridViewModelVideoTitle","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}),
_.Z("div",{class:_.CG("ytdGhostGridViewModelVideoMeta","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}))))},"yj");_.LG(_.r(function(H){var U=H.data;var A=_.Gk(_.Xz);return _.Z("ytd-ghost-grid-view-model",{class:_.CG("ytdGhostGridViewModelHost")},_.Z(_.FQ,{each:function(){var M=Array,W;var w=((W=U().numRows)!=null?W:0)*A();return M(w)},
keyBy:"INDEX"},function(){return _.Z(lQh,null)}))},"xj"),"ytd-ghost-grid-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){var U=H.data;var A=function(){var W;return(W=U().numColumns)!=null?W:2},M=function(){return A()>1?3:2};
H={};return _.Z("ytd-rich-grid-group",{class:_.CG("ytdRichGridGroupHost",(H.ytdRichGridGroupHostFirstColumn=function(){return U().colIndex===0},H)),
style:_.rA({"--ytd-rich-grid-group-num-columns":A,"--ytd-rich-grid-items-per-group":M})},_.Z("div",{class:"ytdRichGridGroupContents"},_.Z(_.YY,{data:function(){var W;return(W=U().contents)==null?void 0:W.slice(0,M())}},{richItemRenderer:function(W){return _.Z(_.aIr,{data:W.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"zj"),"ytd-rich-grid-group",{props:{data:_.sY}});var Bk=function(){var H=_.B.apply(this,arguments)||this;H.resizeOnObserverInit=!1;H.isInlinePreviewDisabled=_.S("web_disable_inline_preview");H.disableStickyFilterBar=!1;H.transparentBackgroundChipsBar=!1;H.hideChipsBar=!1;H.isScrolled=!1;H.isWatchDefaultLayout=!0;H.continuationShowButton=!1;H.rowReducedHorizontalMargin=!1;H.useCompactList=!1;H.manualDownloadsPresent=!1;H.smartDownloadsPresent=!1;H.isOnline=!1;H.shouldRenderDownloadsBanner=!1;H.shouldRenderDownloadsBannerUpsell=!1;H.hasOptedIntoSmartDownloads=
!1;H.elementsPerRow=4;H.typographyBump=!1;H.slimItemsPerRow=1;H.pageLoadingFromNavigation=!1;H.resizeObserver=null;H.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"};H.rendererToTagNameMap=new Map(Object.entries(H.contentMapping()).map(function(U){var A=
_.b(U);U=A.next().value;A=A.next().value;return[U,A.component]}));
H.insertedContent=new Map;return H};
_.R(Bk,_.B);_.X=Bk.prototype;_.X.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var H=_.b(_.c4(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),U=H.next();!U.done;U=H.next())U.value.useCompactList=this.useCompactList};
_.X.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var H=_.b(_.c4(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),U=H.next();!U.done;U=H.next())U=U.value,U.sizing=this.sizing,U.typographyBump=this.typographyBump};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.X.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]]",
isHomeGrid:"[[isHomePage]]"},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]]"}}}};
_.X.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},loadingContentRenderer:{id:"reload-content",
mapping:{ghostGridViewModel:{component:"ytd-ghost-grid-view-model"}}}}};
_.X.attached=function(){document.addEventListener("yt-page-type-changed",_.lN(this,this.onPageChange));document.addEventListener("yt-feed-customization-scroll-up",_.lN(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$21039_throttledOnResize=new _.B$(this.resizeObserved,_.hr("rich_grid_resize_delay_ms",50),this);this.showChipsOnScroll&&window.addEventListener("scroll",_.lN(this,this.onScroll))};
_.X.detached=function(){var H;(H=this.resizeObserver)==null||H.disconnect();document.removeEventListener("yt-page-type-changed",_.lN(this,this.onPageChange));document.removeEventListener("yt-feed-customization-scroll-up",_.lN(this,this.onFeedCustomizationScrollUp));this.showChipsOnScroll&&window.removeEventListener("scroll",_.lN(this,this.onScroll))};
_.X.insertRichSection=function(H){var U=H.richItemTargetId;H=H.richSectionRendererToInsert;U&&H&&(this.insertedContent.set(U,{content:H,timestamp:Date.now()}),this.reflowContent())};
_.X.computeIsInlinePreviewEnabled=function(H,U,A){return _.S("web_disable_inline_preview")?!1:!A&&UT$({miniplayerIsActive:H,miniplayerPlaybackState:U})};
_.X.computeSizing=function(){var H=_.Dm_(this.data);if(H||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return H?this.useCompactList?"COMPACT":H:this.miniMode?"COMPACT":"STANDARD"};
_.X.updateItemMinAndMaxWidth=function(){var H=_.hr("rich_grid_max_item_width",500);H>0&&_.Dt(this.hostElement,{"--ytd-rich-grid-item-max-width":H+"px"});var U;H=this.getRichItemMinWidth((U=this.hostElement)==null?void 0:U.clientWidth);H>0&&_.Dt(this.hostElement,{"--ytd-rich-grid-item-min-width":H+"px"})};
_.X.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.X.resizeObserved=function(){_.Bg(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.X.onPageChange=function(){var H=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.Bg(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.Fl.addJob(function(){H.pageLoadingFromNavigation=!1;H.setMasthead();H.maybeSetBigYoodle();H.forceRefreshAndLog();H.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.X.dataChanged=function(){var H=this;_.Bg(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.rV(this,function(){H.updateRichItemGridPositions();H.contentsElement&&_.Dt(H.hostElement,{"--ytd-rich-grid-content-offset-top":H.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.X.initResizeObserver=function(){var H=this;if(window.ResizeObserver){var U;(U=this.resizeObserver)==null||U.disconnect();var A=!1;this.resizeObserver=new ResizeObserver(function(){if(A){var M;(M=H.resizeObserver)==null||M.disconnect();var W;(W=H.JSC$21039_throttledOnResize)==null||W.fire();requestAnimationFrame(function(){var d;(d=H.JSC$21039_throttledOnResize)==null||d.fire();H.initResizeObserver()})}else if(A=!0,H.resizeOnObserverInit){var w;
(w=H.JSC$21039_throttledOnResize)==null||w.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.X.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Bg(this.hostElement,"ytd-rich-item-index-update-action")};
_.X.updateElementsPerRow=function(){_.Bg(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.zQ({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.zQ({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.X.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.X.onRichShelfRendererCollapse=function(H){if(this.shownItems){var U=H.detail;H=this.shownItems.findIndex(function(M){var W,w;return((w=_.p(M==null?void 0:(W=M.richSectionRenderer)==null?void 0:W.content,_.yOr))==null?void 0:w.trackingParams)===U});
var A=H+1;H<0||A>=this.contentsElement.children.length||!this.shownItems[A].richItemRenderer||this.contentsElement.children[A].scrollIntoView({behavior:"smooth",block:"start"})}};
_.X.onSoftReloadPage=function(){this.scrollUpToTop()};
_.X.handleRerenderDownloadsData=function(){_.S("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.X.handlePlaylistRemoveVideosAction=function(H){var U;if(((U=_.p(H,_.VfH))==null?0:U.setVideoIds)&&this.data&&this.data.contents){H=_.p(H,_.VfH).setVideoIds;for(U=this.data.contents.length-1;U>=0;){var A=_.p(this.data.contents[U],_.Qt);(A=A&&_.p(A.content,_.uY))&&A.setVideoId&&H.includes(A.setVideoId)&&this.splice("data.contents",U,1);U--}this.updateIndices()}};
_.X.updateIndices=function(){if(this.data&&this.data.contents)for(var H=0;H<this.data.contents.length;H++)this.set("data.contents."+H+".richItemRenderer.index",_.Nh(String(H+1)))};
_.X.hasTopRowInlinePlayableVideoWithEndorsement=function(H){var U;return!((U=H.slice(0,this.getItemsPerRow()))==null||!U.some(function(A){var M;A=_.p(A==null?void 0:(M=A.richItemRenderer)==null?void 0:M.content,_.xIr);var W;return(A==null?void 0:A.inlinePlaybackEndpoint)&&(A==null?void 0:(W=A.thumbnailOverlays)==null?void 0:W.some(function(w){return w.thumbnailOverlayEndorsementRenderer}))}))};
_.X.refreshGridLayoutNew=function(H,U,A,M){var W=M.postsPerRow;var w=M.slimItemsPerRow;var d=M.gameCardsPerRow;M=M.miniGameCardsPerRow;var O;if((O=this.data)==null||!O.contents||!this.containerWidth)return!1;var f;if((f=this.data.responsiveContainerConfiguration)==null?0:f.responsiveSize){var J=_.Fk0(this.data.responsiveContainerConfiguration,this.containerWidth,2),F;O=_.Oy(Object.assign({},J,{standardUnitMinWidth:(F=this.data)==null?void 0:F.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&J.isCompactList)}else O=_.Oy({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(J=this.data)==null?void 0:J.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=O.typographyBump;F=!1;if(H||this.elementsPerRow!==O.numItems||this.postsPerRow!==W||this.slimItemsPerRow!==w||this.gameCardsPerRow!==
d||this.miniGameCardsPerRow!==M||this.gutter!==O.gutter)F=this.elementsPerRow!==O.numItems,this.elementsPerRow=O.numItems,this.postsPerRow=W,this.slimItemsPerRow=w,this.gameCardsPerRow=d,this.miniGameCardsPerRow=M,this.gutter=O.gutter,this.itemWidth=O.itemWidth,this.reflowContent(U),_.Dt(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":O.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(A);this.ytdReduxBehavior.dispatch(_.zQ({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:O.maxContainerWidth}));return F};
_.X.refreshGridLayout=function(H,U){var A,M=(A=this.hostElement)==null?void 0:A.clientWidth;this.containerWidth=this.adjustRichGridWidth(M,!0);var W;if((W=this.data)==null||!W.contents||!this.containerWidth)return H&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(H=!0,this.pendingForceReflow=!1);A=this.getRichItemMinWidth(M);var w=this.isShortsPanel?146:194,d=this.getMiniGameCardMinWidth(),O=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.hr("rich_grid_default_max_items_per_row",
6);M=A=this.calcElementsPerRow(A,O);(W=A<=3&&this.miniModeAllowed())&&(A=this.calcElementsPerRow(240,4));var f=this.calcMaxSlimElementsPerRow(A,O,this.isDefaultGrid);O=this.calcElementsPerRow(w,f);var J=this.calcElementsPerRow(this.isCompactGrid?w:154,f);w=this.calcElementsPerRow(this.isCompactGrid?w:d,f);d=!1;if(this.sizing)return this.refreshGridLayoutNew(H,U,W,{postsPerRow:M,slimItemsPerRow:O,gameCardsPerRow:J,miniGameCardsPerRow:w});if(H||this.elementsPerRow!==A||this.postsPerRow!==M||this.slimItemsPerRow!==
O||this.gameCardsPerRow!==J||this.miniGameCardsPerRow!==w)d=this.elementsPerRow!==A,this.elementsPerRow=A,this.postsPerRow=M,this.slimItemsPerRow=O,this.gameCardsPerRow=J,this.miniGameCardsPerRow=w,this.reflowContent(U),this.updateElementsPerRow(),_.Dt(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)&&_.Dt(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(W);_.Bg(this.hostElement,"yt-rich-grid-layout-refreshed");return d};
_.X.getRichItemMinWidth=function(H){var U=_.hr("rich_grid_min_item_width",310);if(!_.S("kevlar_disable_min_width_override")){var A,M;U=(M=(A=this.data)==null?void 0:A.minItemWidth)!=null?M:U}return U+_.tnK(H)};
_.X.calcMaxSlimElementsPerRow=function(H,U,A){return(A===void 0?0:A)?H===1?2:H%2===0?H/2*3:H+2:U*2};
_.X.adjustRichGridWidth=function(H,U){var A=_.S("disable_rich_grid_guide_compensation");if(!this.isWatch&&!A&&this.hostElement.offsetWidth===document.body.clientWidth&&(A=_.lx().resolve(_.$V(_.J1)))&&!A.getData())if(A.canFitPersistentGuide(H)&&A.getGuideExpandsAutomatically()){var M,W,w=Number((M=window.getComputedStyle(this.hostElement))==null?void 0:(W=M.getPropertyValue("--app-drawer-width"))==null?void 0:W.replace("px",""));H-=w||0}else if(A.canFitMiniGuide(H)){var d;M=Number((w=window.getComputedStyle(this.hostElement))==
null?void 0:(d=w.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:d.replace("px",""));H-=M||0}H>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(H-=U?32:48));return H};
_.X.calcElementsPerRow=function(H,U){var A=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),M=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((A+M)/(H+M))||1,U)};
_.X.reflowContent=function(H){var U=this;if(!this.isReflowing){this.isReflowing=!0;var A,M,W=!!((A=this.data)==null?0:(M=A.contents)==null?0:M.some(function(O){return _.p(O,_.Ea)}));
A=this.getItemsPerRow();var w;M=(w=this.data)==null?void 0:w.reflowOptions;H&&(_.ba("rgr_s"),_.rV(this,function(){_.ba("rgr_nrf")}));
H={};(w=_.c4(this.hostElement).querySelector("#contents"))&&(H={contentElement:w,rendererToTagNameMap:this.rendererToTagNameMap});w=(w=this.data.contents)?w.slice():[];W=suY(w,A,W,M,this.getRichGridStyle(),H,this.insertedContent);var d=W.orderedContent;if(W=W.pinnedContentNotShownTargetIds)for(W=_.b(W),A=W.next();!A.done;A=W.next())this.insertedContent.delete(A.value);W=function(){U.shownItems=d;U.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(d),_.rV(this,W)):W()}};
_.X.getFirstRowItems=function(H){for(var U=[],A=0;A<H.length;A++){var M=void 0,W=void 0,w=void 0,d=void 0,O=void 0,f=void 0;if(((M=H[A])==null?void 0:(W=M.richItemRenderer)==null?void 0:W.rowIndex)===0||((w=H[A])==null?void 0:(d=w.richGroupRenderer)==null?void 0:d.rowIndex)===0||((O=H[A])==null?void 0:(f=O.richSectionRenderer)==null?void 0:f.rowIndex)===0)U.push(H[A]);else break}return U};
_.X.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.X.resetInsertedContentIfNeeded=function(){(_.S("web_explore_hub_on_hover")||_.S("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.X.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.X.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.X.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.X.terminateVideoPreview=function(){_.Bg(this.hostElement,"yt-terminate-video-preview-action")};
_.X.updateRichItemGridPositions=function(){var H={gridData:{gridColumnCount:this.elementsPerRow}},U;((U=this.data)==null?0:U.trackingParams)&&(U=_.XK())&&_.pE(U,_.IS(this.data.trackingParams),H);_.Bg(this.hostElement,"ytd-rich-item-index-update-action")};
_.X.miniModeAllowed=function(){return this.isChannelPage};
_.X.getMiniGameCardMinWidth=function(){return 154};
_.X.updateMiniMode=function(H){this.miniMode=this.miniModeAllowed()&&H;this.ytdReduxBehavior.dispatch(_.zQ({type:"SET_RICH_GRID_MINI_MODE",payload:H}))};
_.X.isCurrentPage=function(){return location.pathname===this.pagePath};
_.X.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var H=_.lx().resolve(_.SI).getCurrentPage();H&&H.setScrollTop(0)}};
_.X.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.X.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.X.maybeSetBigYoodle=function(){var H,U=(H=this.data)==null?void 0:H.bigYoodle;this.bigYoodleData!==U&&(this.bigYoodleData=U)};
_.X.setMasthead=function(){var H;((H=this.data)==null?0:H.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.X.getRichGridStyle=function(){var H,U;return(U=(H=this.data)==null?void 0:H.style)!=null?U:"RICH_GRID_STYLE_UNKNOWN"};
_.X.onIsShortsGridChange=function(){var H=this.ytdReduxBehavior,U=H.dispatch,A=this.getRichGridStyle();U.call(H,_.zQ({type:"SET_RICH_GRID_STYLE",payload:A}))};
_.X.onFeedCustomizationScrollUp=function(){this.scrollUpToTop()};
_.X.onScroll=function(){this.isScrolled=window.scrollY>0};
_.D5.Object.defineProperties(Bk.prototype,{showChipsOnScroll:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_show_chips_on_scroll")&&this.isHomePage&&!this.isChannelPage&&!this.isFilteredFeed}},
loadingContentRenderer:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.ytContinuationHandlerBehavior)==null?void 0:H.reloadUiContent}},
hasLoadingContent:{configurable:!0,enumerable:!0,get:function(){return!!this.loadingContentRenderer}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var H;return(((H=this.data)==null?void 0:H.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var H;return(((H=this.data)==null?void 0:H.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var H=_.lx().resolve(_.SI).getCurrentPage(),U,A,M;return(((U=this.data)==null?void 0:U.targetId)==="browse-feedFEsfv_audio_pivot"||_.S("web_enable_channel_pivot_panel")&&((A=this.data)==null?void 0:A.targetId)==="browse-feedFEsfv_channel_pivot"||_.S("web_enable_effect_pivot_panel")&&((M=this.data)==null?void 0:M.targetId)==="browse-feedFEsfv_effect_pivot")&&(H==null?void 0:H.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.S("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 H;return!((H=this.data)==null?0:H.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var H;return((H=_.lx().resolve(_.SI).getCurrentPage())==null?void 0:H.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var H;return((H=_.lx().resolve(_.SI).getCurrentPage())==null?void 0:H.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"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var H;return(((H=this.data)==null?void 0:H.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return((H=this.data)==null?0:H.enableContentSpecificAspectRatio)||((U=this.data)==null?0:(A=U.responsiveContainerConfiguration)==null?0:A.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.hr("web_continuation_handler_margin",0):0}}});
Bk.prototype.onIsShortsGridChange=Bk.prototype.onIsShortsGridChange;Bk.prototype.onReloadContinuationFinish=Bk.prototype.onReloadContinuationFinish;Bk.prototype.reflowContent=Bk.prototype.reflowContent;Bk.prototype.handleRerenderDownloadsData=Bk.prototype.handleRerenderDownloadsData;Bk.prototype.onRichShelfRendererCollapse=Bk.prototype.onRichShelfRendererCollapse;Bk.prototype.onRequestElementsPerRow=Bk.prototype.onRequestElementsPerRow;Bk.prototype.contentLengthChanged=Bk.prototype.contentLengthChanged;
Bk.prototype.dataChanged=Bk.prototype.dataChanged;Bk.prototype.onSizingChange=Bk.prototype.onSizingChange;Bk.prototype.onUseCompactListChange=Bk.prototype.onUseCompactListChange;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Bk.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.Qo),_.q("design:type",Object)],Bk.prototype,"ironResizableBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Bk.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.RG),_.q("design:type",Object)],Bk.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Bk.prototype,"componentBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Bk.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Bk.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0,selector:_.w1}),_.q("design:type",Boolean)],Bk.prototype,"miniMode",void 0);_.G([_.y({value:[]}),_.q("design:type",Array)],Bk.prototype,"shownItems",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Bk.prototype,"isReflowing",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Bk.prototype,"isFilteredFeed",void 0);_.G([_.y({selector:_.u37}),_.q("design:type",Boolean)],Bk.prototype,"guideIsExpanded",void 0);
_.G([_.y({selectorArgs:["entitySelectorType"],selector:function(H,U){if(_.S("kevlar_modern_downloads_page")&&U&&U!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(U){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":U=H.entities;var A=_.Ac(U),M=_.Mh(U),W=_.Mo4(H),w=_.Aeh(H),d=_.W$0(H),O=_.UMM(U),f=_.j9(A),J=_.WC(U);return _.uCV(A,M,O,_.wAr(U),W,w,f,J,d,_.Xit(H),_.d1(H));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return H=_.Ac(H.entities),_.fhF(H);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return H=
_.QJM(H.entities),_.Jd8(H);default:_.Na(new _.bD("Error: entitySelectorType defined but not matched in selector.",H,U))}}}),
_.q("design:type",Object)],Bk.prototype,"entityDrivenRichGridData",void 0);_.G([_.y(),_.q("design:type",Object)],Bk.prototype,"resizeOnObserverInit",void 0);_.G([_.y(),_.q("design:type",Object)],Bk.prototype,"bigYoodleData",void 0);_.G([_.y(),_.q("design:type",Object)],Bk.prototype,"mastheadData",void 0);_.G([_.y(),_.q("design:type",Boolean)],Bk.prototype,"isInlinePreviewDisabled",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Bk.prototype,"disableStickyFilterBar",void 0);
_.G([_.y(),_.q("design:type",Object)],Bk.prototype,"transparentBackgroundChipsBar",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Bk.prototype,"hideChipsBar",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("isHomePage","isFilteredFeed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"showChipsOnScroll",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Bk.prototype,"isScrolled",void 0);
_.G([_.y(),_.q("design:type",Object)],Bk.prototype,"isWatchDefaultLayout",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Bk.prototype,"continuationShowButton",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Bk.prototype,"rowReducedHorizontalMargin",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Bk.prototype,"useCompactList",void 0);_.G([_.y({selector:function(H){return _.Mh(H.entities).length>0}}),
_.q("design:type",Object)],Bk.prototype,"manualDownloadsPresent",void 0);_.G([_.y({selector:function(H){return _.Ac(H.entities).length>0}}),
_.q("design:type",Object)],Bk.prototype,"smartDownloadsPresent",void 0);_.G([_.y({selector:_.d1}),_.q("design:type",Object)],Bk.prototype,"isOnline",void 0);_.G([_.y({selector:_.Aeh}),_.q("design:type",Object)],Bk.prototype,"shouldRenderDownloadsBanner",void 0);_.G([_.y({selector:_.Xit}),_.q("design:type",Object)],Bk.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.G([_.y({selector:_.Mo4}),_.q("design:type",Object)],Bk.prototype,"hasOptedIntoSmartDownloads",void 0);
_.G([_.Ya("useCompactList"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Bk.prototype,"onUseCompactListChange",null);_.G([_.Ya("sizing","typographyBump"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Bk.prototype,"onSizingChange",null);_.G([_.y({selector:_.FEF}),_.q("design:type",Number)],Bk.prototype,"miniplayerPlaybackState",void 0);_.G([_.y({selector:_.iE}),_.q("design:type",Boolean)],Bk.prototype,"miniplayerIsActive",void 0);
_.G([_.y({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.q("design:type",Boolean)],Bk.prototype,"isInlinePreviewEnabled",void 0);_.G([_.y({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.q("design:type",String)],Bk.prototype,"sizing",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Bk.prototype,"elementsPerRow",void 0);
_.G([_.y(),_.q("design:type",Object)],Bk.prototype,"typographyBump",void 0);_.G([_.y(),_.q("design:type",Number)],Bk.prototype,"itemWidth",void 0);_.G([_.hG("#header"),_.q("design:type",HTMLElement)],Bk.prototype,"headerElement",void 0);_.G([_.hG("#contents"),_.q("design:type",HTMLElement)],Bk.prototype,"contentsElement",void 0);_.G([_.a("reloadUiContent"),_.q("design:type",Object),_.q("design:paramtypes",[])],Bk.prototype,"loadingContentRenderer",null);
_.G([_.a("reloadUiContent"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"hasLoadingContent",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Bk.prototype,"dataChanged",null);_.G([_.jk("data.contents.length"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Bk.prototype,"contentLengthChanged",null);
_.G([_.Gl("yt-request-elements-per-row"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Bk.prototype,"onRequestElementsPerRow",null);_.G([_.Gl("yt-rich-shelf-renderer-collapse"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Bk.prototype,"onRichShelfRendererCollapse",null);
_.G([_.jk("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Bk.prototype,"handleRerenderDownloadsData",null);_.G([_.a("data"),_.q("design:type",String),_.q("design:paramtypes",[])],Bk.prototype,"entitySelectorType",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data.targetId"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"isSub",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.targetId"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"isWatch",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.targetId"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"isShortsPanel",null);
_.G([_.y({reflectToAttribute:!0}),_.a("isWatch"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"reducedTopMargin",null);_.G([_.y({reflectToAttribute:!0}),_.a("data","isWatch","isWatchDefaultLayout"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"noTopMargin",null);_.G([_.y({reflectToAttribute:!0}),_.a("isInlinePreviewEnabled","shownItems"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"topRowEndorsement",null);
_.G([_.a("data.header"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"hideHeader",null);_.G([_.Gl("yt-rich-grid-reflow"),_.q("design:type",Function),_.q("design:paramtypes",[Boolean]),_.q("design:returntype")],Bk.prototype,"reflowContent",null);_.G([_.Gl("yt-reload-continuation-finish"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Bk.prototype,"onReloadContinuationFinish",null);
_.G([_.a("data"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"isSlimGrid",null);_.G([_.a("data"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"isShortsGrid",null);_.G([_.a("data","isSlimGrid","isShortsGrid"),_.y(),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"noRichItemGutterMargins",null);
_.G([_.a("data"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"isShortsGridSlim",null);_.G([_.a("data"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"isCompactGrid",null);_.G([_.a("data"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"isDefaultGrid",null);
_.G([_.a("data.targetId"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"hideChipsBarOnWatch",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Bk.prototype,"onIsShortsGridChange",null);_.G([_.a("data.enableContentSpecificAspectRatio"),_.y(),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Bk.prototype,"force16By9ThumbnailAspectRatio",null);
_.G([_.a("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],Bk.prototype,"continuationTriggerOffset",null);_.G([_.dX({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],Bk);
_.e(Bk,"ytd-rich-grid-renderer",function(){if(r5m!==void 0)return r5m;var H=document.createElement("template");_.E(H,'\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="contents" hidden="[[hasLoadingContent]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="reload-content" class="style-scope ytd-rich-grid-renderer"></div>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return r5m=H},{mode:2});var GhX;var rt=function(){return _.B.apply(this,arguments)||this};
_.R(rt,_.B);_.X=rt.prototype;
_.X.onKeyDown=function(H){if(this.snippetElements.length!==0&&(H=H.keyCode,H===38||H===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);H===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.b$(this.highlightedIndex,-1,this.snippetElements.length);H=this.snippetElements.length;var U=this.highlightedIndex%H;this.highlightedIndex=U*H<0?U+H:U;H=this.snippetElements[this.highlightedIndex];this.highlightSnippet(H);this.ensureVisible(H)}};
_.X.onKeyUp=function(H){var U=this;Reh(H)&&(H.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.Fl.cancelJob(this.inputTimerId),this.inputTimerId=_.Fl.addLowPriorityJob(function(){U.typedValue&&(U.fetchSnippets(U.typedValue),U.logInputGesture(U.data))},1E3))};
_.X.onClick=function(H){(H=_.cDz(H.target,null,"snippet-item"))&&this.selectSnippet(H)};
_.X.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.X.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.X.ready=function(){var H=this;this.inputElement.addEventListener("focus",function(){H.snippetsWrapper.style.removeProperty("display")})};
_.X.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.X.getSourceTimelines=function(){if(!this.data)return[];var H=[];if(this.data.searchInVideoSources)for(var U=_.b(this.data.searchInVideoSources),A=U.next();!A.done;A=U.next())A=A.value,A==="SEARCH_IN_VIDEO_SOURCE_ASR"?H.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):A==="SEARCH_IN_VIDEO_SOURCE_OCR"&&H.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return H};
_.X.fetchSnippets=function(H){var U=_.yr(this.hostElement,"yt-get-current-video-id-action")[0],A=this.getSourceTimelines();H={getSearchInVideoCommand:{externalVideoId:U,query:H!=null?H:"",sourceTimelines:A},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.lx().resolve(_.YV).resolveCommand(H,{form:{element:this.hostElement}})};
_.X.filterSnippets=function(H,U){var A=this;if(U){this.filteredSnippets=(0,_.dG.unsafeClone)(H);var M=RegExp(_.ZH8(U),"i");this.filteredSnippets=this.filteredSnippets.filter(function(d){return M.test(A.ytRendererBehavior.getSimpleString(d.snippet))});
H=_.b(this.filteredSnippets);for(var W=H.next();!W.done;W=H.next()){W=W.value;var w=this.ytRendererBehavior.getSimpleString(W.snippet);W.snippet={runs:[{text:w.substring(0,w.toLowerCase().indexOf(U))},{text:w.substring(w.toLowerCase().indexOf(U),w.toLowerCase().indexOf(U)+U.length),bold:!0},{text:w.substring(w.toLowerCase().indexOf(U)+U.length,w.length)}]}}}else this.filteredSnippets=H};
_.X.onUpdateSearchInVideoResults=function(H){if(!(this.snippets.length>0)){var U,A,M;if((M=(U=_.p(H,J6h))==null?void 0:(A=U.results)==null?void 0:A.length)!=null&&M){var W;this.filteredSnippets=this.snippets=((W=_.p(H,J6h))==null?void 0:W.results).map(function(w){var d,O,f;return{startMs:w==null?void 0:(d=w.searchInVideoResultRenderer)==null?void 0:d.startMs,startTimeText:w==null?void 0:(O=w.searchInVideoResultRenderer)==null?void 0:O.startTimeText,snippet:w==null?void 0:(f=w.searchInVideoResultRenderer)==
null?void 0:f.snippet}})}}};
_.X.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};
_.X.highlightSnippet=function(H){H.classList.add("highlighted")};
_.X.removeSnippetHighlight=function(H){H.classList.remove("highlighted")};
_.X.selectSnippet=function(H){this.typedValue=String(H.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(H);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.X.ensureVisible=function(H){var U=this.snippetsWrapper.scrollTop,A=U+this.snippetsWrapper.clientHeight,M=H.offsetTop-this.snippetsWrapper.offsetTop;H=M+H.clientHeight;M<U?this.snippetsWrapper.scrollTop-=U-M:H>A&&(this.snippetsWrapper.scrollTop+=H-A)};
_.X.seekPlayer=function(H){var U,A;return _.u(function(M){if(M.nextAddress==1){if(!H)return M.jumpTo(0);U=Number(H.dataset.startOffset);return M.yield(_.RL().getPlayerPromise(),3)}A=M.yieldResult;A.seekTo(U/1E3,!0);A.wakeUpControls();_.DO(M)})};
_.X.logInputGesture=function(H){var U=_.XK();U&&(H==null?0:H.trackingParams)&&_.S9(U,_.IS(H.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.X.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("typed-value-changed",this.typedValue))};
_.X.updateTypedValueFromBinding=function(H){this.typedValue=H.currentTarget.value};
rt.prototype.typedValueChangedForBinding=rt.prototype.typedValueChangedForBinding;rt.prototype.dataChanged=rt.prototype.dataChanged;rt.prototype.panelContentVisibleChanged=rt.prototype.panelContentVisibleChanged;rt.prototype.onClick=rt.prototype.onClick;rt.prototype.onKeyUp=rt.prototype.onKeyUp;rt.prototype.onKeyDown=rt.prototype.onKeyDown;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],rt.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],rt.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],rt.prototype,"data",void 0);_.G([_.y({value:[]}),_.q("design:type",Array)],rt.prototype,"snippets",void 0);_.G([_.y({value:[]}),_.q("design:type",Array)],rt.prototype,"filteredSnippets",void 0);_.G([_.y({value:[]}),_.q("design:type",Array)],rt.prototype,"snippetElements",void 0);
_.G([_.hG("#siv-input"),_.q("design:type",HTMLElement)],rt.prototype,"inputElement",void 0);_.G([_.hG("#siv-snippets-wrapper"),_.q("design:type",HTMLElement)],rt.prototype,"snippetsWrapper",void 0);_.G([_.y(),_.q("design:type",String)],rt.prototype,"typedValue",void 0);_.G([_.y({value:-1}),_.q("design:type",Number)],rt.prototype,"highlightedIndex",void 0);_.G([_.Gl("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[_.U0]),_.q("design:returntype")],rt.prototype,"onKeyDown",null);
_.G([_.Gl("keyup"),_.q("design:type",Function),_.q("design:paramtypes",[_.U0]),_.q("design:returntype")],rt.prototype,"onKeyUp",null);_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],rt.prototype,"onClick",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],rt.prototype,"panelContentVisible",void 0);
_.G([_.Ya("panelContentVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rt.prototype,"panelContentVisibleChanged",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rt.prototype,"dataChanged",null);_.G([_.Ya("typedValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rt.prototype,"typedValueChangedForBinding",null);
_.G([_.dX({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],rt);
_.e(rt,"ytd-search-in-video-renderer",function(){if(GhX!==void 0)return GhX;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return GhX=H},{mode:1});var YLp;var ea=function(){return _.B.apply(this,arguments)||this};
_.R(ea,_.B);ea.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
ea.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]]"}}}}}};
ea.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var H,U,A,M,W=(U=_.p((H=this.data)==null?void 0:H.onClickCommand,_.B3n))==null?void 0:(A=U.item)==null?void 0:(M=A.notificationTextRenderer)==null?void 0:M.successResponseText;W&&_.oqc(this.hostElement,W)}};
_.D5.Object.defineProperties(ea.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M;return this.isProductPlaceholder&&((H=this.data)==null?void 0:(U=H.hiddenProductOptions)==null?void 0:U.showDropCountdown)&&!!((A=this.data)==null?0:(M=A.hiddenProductOptions)==null?0:M.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var H;return!this.isProductPlaceholder&&!((H=this.data)==null?0:H.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var H,U;return!((H=this.data)==null?0:H.priceReplacementText)&&!((U=this.data)==null||!U.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ea.prototype,"componentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ea.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ea.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.a("isProductPlaceholder"),_.q("design:type",Object),_.q("design:paramtypes",[])],ea.prototype,"useCenterLayoutContainer",null);_.G([_.y({computed:"computeButtonOverride(data)"}),_.q("design:type",Object)],ea.prototype,"buttonOverride",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],ea.prototype,"isProductPlaceholder",null);
_.G([_.a("isProductPlaceholder"),_.q("design:type",Object),_.q("design:paramtypes",[])],ea.prototype,"showDropCountdown",null);_.G([_.a("isProductPlaceholder","data"),_.q("design:type",Object),_.q("design:paramtypes",[])],ea.prototype,"showBrandName",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],ea.prototype,"showPriceReplacementText",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],ea.prototype,"showPrice",null);
_.G([_.a("isProductPlaceholder"),_.q("design:type",Object),_.q("design:paramtypes",[])],ea.prototype,"showMetadata",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],ea);
_.e(ea,"ytd-product-list-item-renderer",function(){if(YLp!==void 0)return YLp;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return YLp=H},{mode:1});var qL$;var DF=function(){return _.B.apply(this,arguments)||this};
_.R(DF,_.B);DF.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
DF.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
DF.prototype.panelContentVisibleChanged=function(){var H=this,U;return _.u(function(A){if(A.nextAddress==1)return H.playerApi?A.jumpTo(2):A.yield(_.RL().getPlayerPromise(),3);A.nextAddress!=2&&(H.playerApi=A.yieldResult);(U=H.playerApi)==null||U.productsInVideoVisibilityUpdated(!!H.panelContentVisible);_.DO(A)})};
DF.prototype.panelContentVisibleChanged=DF.prototype.panelContentVisibleChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],DF.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],DF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],DF.prototype,"panelContentVisible",void 0);_.G([_.y(),_.q("design:type",Object)],DF.prototype,"data",void 0);
_.G([_.Ya("panelContentVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],DF.prototype,"panelContentVisibleChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],DF);
_.e(DF,"ytd-product-list-renderer",function(){if(qL$!==void 0)return qL$;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return qL$=H},{mode:1});var hVY;var $q=function(){var H=_.B.apply(this,arguments)||this;H.isToggleChecked=!1;return H};
_.R($q,_.B);$q.prototype.onDataChanged=function(){var H;this.isToggleChecked=((H=this.data)==null?void 0:H.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
$q.prototype.close=function(){var H;((H=this.data)==null?0:H.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
$q.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var H,U=_.p((H=this.data)==null?void 0:H.switchButton,oTp);U&&(this.isToggleChecked&&U.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(U.switchOnInnertubeCommand),!this.isToggleChecked&&U.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(U.switchOffInnertubeCommand))};
$q.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$q.prototype.onDataChanged=$q.prototype.onDataChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],$q.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],$q.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],$q.prototype,"isToggleChecked",void 0);_.G([_.y({value:_.hP("CLOSE")}),_.q("design:type",String)],$q.prototype,"closeButtonAriaLabel",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$q.prototype,"onDataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],$q);
_.e($q,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(hVY!==void 0)return hVY;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return hVY=H},{mode:1});var kh5;var li=function(){var H=_.B.apply(this,arguments)||this;H.hideTimestamps=!!_.H4("hide-transcript-timestamps");H.currentCueIndex=-1;H.flatCues=[];H.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};H.TEST_ONLY={getFlatCues:function(){return H.flatCues}};
return H};
_.R(li,_.B);_.X=li.prototype;_.X.hideTimestampsChanged=function(){_.V3("hide-transcript-timestamps",this.hideTimestamps)};
_.X.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.X.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.X.dataChanged=function(){var H;if((H=this.data)!=null&&H.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;H=_.b(this.data.cueGroups);for(var U=H.next();!U.done;U=H.next()){U=_.b(_.p(U.value,gNh).cues);for(var A=U.next();!A.done;A=U.next())this.flatCues.push(Number(_.p(A.value,a8f).startOffsetMs))}}};
_.X.onYtPlayerTimeChanged=function(H){if(!(H<0)){for(var U=this.currentCueIndex,A=U;;){var M=A>=0?this.flatCues[A]/1E3:-1;if(H+.5<M)--A;else if(M=A+1<this.flatCues.length?this.flatCues[A+1]/1E3:Infinity,H+.5>M)A+=1;else break}A!==U&&(U>=0&&((H=this.getCueElement(U))&&H.classList.remove("active"),(U=this.getCueGroupElement(U))&&U.classList.remove("active")),(U=this.getCueElement(A))&&U.classList.add("active"),(U=this.getCueGroupElement(A))&&U.classList.add("active"),this.currentCueIndex=A,this.isHovered||
this.scrollElementToTop(A))}};
_.X.scrollElementToTop=function(H){H=this.getCueElement(H>=3?H-3:0);this.hostElement.scrollTop=Math.min(H.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.X.getCueElement=function(H){return _.c4(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[H]+'"]')};
_.X.getCueGroupElement=function(H){return(H=this.getCueElement(H))&&H.parentElement?H.parentElement.parentElement:null};
_.X.onTap=function(H){var U=_.Rr(H);H.target.classList.contains("cue")&&this.seekCueElement(U)};
_.X.onKeyPress=function(H){H.keyCode==13&&(H=_.cDz(H.target,null,"cue"))&&this.seekCueElement(H)};
_.X.seekCueElement=function(H){H=Number(H.getAttribute("start-offset"));_.yr(this.hostElement,"yt-transcript-player-seek",[H/1E3])};
_.X.onMouseEnter=function(){this.isHovered=!0};
_.X.onMouseLeave=function(){this.isHovered=!1};
li.prototype.onMouseLeave=li.prototype.onMouseLeave;li.prototype.onMouseEnter=li.prototype.onMouseEnter;li.prototype.onKeyPress=li.prototype.onKeyPress;li.prototype.onTap=li.prototype.onTap;li.prototype.dataChanged=li.prototype.dataChanged;li.prototype.hideTimestampsChanged=li.prototype.hideTimestampsChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],li.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],li.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],li.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],li.prototype,"hideTimestamps",void 0);_.G([_.y(),_.q("design:type",Boolean)],li.prototype,"isHovered",void 0);_.G([_.Ya("hideTimestamps"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],li.prototype,"hideTimestampsChanged",null);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],li.prototype,"dataChanged",null);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],li.prototype,"onTap",null);_.G([_.Gl("keypress"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],li.prototype,"onKeyPress",null);
_.G([_.Gl("mouseenter"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],li.prototype,"onMouseEnter",null);_.G([_.Gl("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],li.prototype,"onMouseLeave",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],li);
_.e(li,"ytd-transcript-body-renderer",function(){if(kh5!==void 0)return kh5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return kh5=H},{mode:1});var v15;var G5=function(){var H=_.B.apply(this,arguments)||this;H.darkerPanels=_.S("web_watch_darker_panels");return H};
_.R(G5,_.B);G5.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],G5.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],G5.prototype,"darkerPanels",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],G5);
_.e(G5,"ytd-transcript-footer-renderer",function(){if(v15!==void 0)return v15;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return v15=H},{mode:1});var TwX;var j3h;var Yq=function(){var H=_.B.apply(this,arguments)||this;H.systemIcons=_.S("kevlar_system_icons");H.showClearButton=!1;return H};
_.R(Yq,_.B);_.X=Yq.prototype;_.X.handleInput=function(H){var U=this;H.target.value.length?_.F8(this,"ytdTranscriptSearchBoxSearch",function(){U.emitSearchEvent(H)},500):(_.j67(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=H.target.value.length>0};
_.X.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.X.handleClick=function(){var H,U=(H=this.data)==null?void 0:H.trackingParams;U&&_.Yg(_.k$(),U)};
_.X.handleClear=function(){_.j67(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var H,U,A=(U=_.p((H=this.data)==null?void 0:H.clearButton,_.f$))==null?void 0:U.trackingParams;A&&_.Yg(_.k$(),A);this.clear()};
_.X.emitSearchEvent=function(H){_.cg(this.hostElement,"yt-transcript-search-box-search",{query:H.target.value});var U,A;(H=(A=_.p((U=this.data)==null?void 0:U.searchButton,_.f$))==null?void 0:A.trackingParams)&&_.Yg(_.k$(),H)};
_.X.emitClearEvent=function(){_.cg(this.hostElement,"yt-transcript-search-box-clear")};
_.D5.Object.defineProperties(Yq.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.c4(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Yq.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Yq.prototype,"systemIcons",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Yq);
_.e(Yq,"ytd-transcript-search-box-renderer",function(){if(j3h!==void 0)return j3h;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return j3h=H},{mode:1});var IQk;var Q3k;var qt=function(){return _.B.apply(this,arguments)||this};
_.R(qt,_.B);qt.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var H,U;this.sectionHeaderAriaLabel=(H=this.data)==null?void 0:(U=H.accessibility)==null?void 0:U.accessibilityData.label}};
qt.prototype.fireSelectedEvent=function(H){_.cg(this.hostElement,"ytd-transcript-section-header",{startMs:H})};
qt.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
qt.prototype.handleKeyPress=function(H){this.data&&H.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.D5.Object.defineProperties(qt.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var H,U;return(U=(H=this.data)==null?void 0:H.enableTappableTranscriptHeader)!=null?U:!1}}});
qt.prototype.dataChanged=qt.prototype.dataChanged;_.G([_.y(),_.q("design:type",Object)],qt.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],qt.prototype,"sectionHeaderAriaLabel",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],qt.prototype,"enableTappableTranscriptHeader",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qt.prototype,"dataChanged",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],qt);
_.e(qt,"ytd-transcript-section-header-renderer",function(){if(Q3k!==void 0)return Q3k;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Q3k=H},{mode:1});var VKh;var H48;var h4=function(){var H=_.B.apply(this,arguments)||this;H.isEditMode=!1;H.touchCaptionsEnabled=!1;H.deleteCaptionCorrectionPopupCommand=null;H.voteCaptionCorrectionPopupCommand=null;H.roundedContainer=!0;H.mouseOver=!1;H.textChanged=!1;H.messages={suggest_correction:_.hP("suggest_correction",void 0,"Edit caption"),suggested_caption:_.hP("suggested_caption",void 0,"Suggested caption"),submit_correction:_.hP("submit_correction",void 0,"Submit for review"),cancel_correction:_.hP("cancel_correction",
void 0,"Cancel"),replay_segment:_.hP("replay_segment",void 0,"Re-play segment"),delete_correction:_.hP("delete_correction",void 0,"Delete correction")};H.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return H};
_.R(h4,_.B);_.X=h4.prototype;_.X.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)};
_.X.handleDelete=function(H){if(this.deleteCaptionCorrectionPopupCommand){var U=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);U&&this.ytdOpenPopupBehavior.openPopup(U);H.stopPropagation()}};
_.X.handleSubmit=function(H){if(this.data&&this.data.submitCaptionCorrectionCommand&&(H.stopPropagation(),this.textChanged)){var U;H=(U=_.p(this.data.submitCaptionCorrectionCommand,_.qFp))==null?void 0:U.params;U=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:H,correctionText:String(this.ironTextAreaElement.value),originalText:_.Sp(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(U);this.isEditMode=!1}};
_.X.handleUpdateSegmentText=function(H){(H=_.p(H,zAf))&&H.targetId&&this.data&&H.targetId===this.data.targetId&&(H.userCorrection&&(this.editedText=H.userCorrection),H.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Sp(this.data.snippet)),H.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=H.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=H.voteCaptionCorrectionPopupCommand?
H.voteCaptionCorrectionPopupCommand:null,H.accessibility&&(this.segmentAriaLabel=H.accessibility.accessibilityData.label))};
_.X.handleCancel=function(H){this.isEditMode=!1;H.stopPropagation();this.logClientVe(159409)};
_.X.handleEditSegmentCommand=function(H){(H=_.p(H,xN8))&&H.targetId&&this.data&&H.targetId===this.data.targetId&&this.handleEdit()};
_.X.handleEditButtonClick=function(H){this.data&&(this.handleEdit(),H.stopPropagation())};
_.X.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var H;(H=this.ironTextAreaElement.textarea)==null||H.focus();this.logClientVe(159407)}};
_.X.handleMouseEnter=function(){this.mouseOver=!0};
_.X.handleMouseLeave=function(){this.mouseOver=!1};
_.X.handleReplay=function(H){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),H.stopPropagation(),this.logClientVe(159408))};
_.X.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()))};
_.X.handleKeypress=function(H){this.data&&(this.isEditMode?H.stopPropagation():this.isEnterPress(H)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(H)&&this.logClientVe(138758))};
_.X.handleTextboxClick=function(H){H.stopPropagation()};
_.X.handleTextboxKeydown=function(H){this.isControlEnterPress(H)?this.handleSubmit(H):H.key==="Escape"&&this.handleCancel(H)};
_.X.handleTextboxKeyup=function(){this.textChanged=_.Sp(this.latestText)!==String(this.ironTextAreaElement.value)};
_.X.fireSelectedEvent=function(H){_.cg(this.hostElement,"yt-transcript-segment-selected",{startMs:H})};
_.X.fireReplayEvent=function(H,U){_.cg(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(H-100,0),endMs:U})};
_.X.fireEditEvent=function(H,U){_.cg(this.hostElement,"yt-transcript-segment-edit",{startMs:H,endMs:U})};
_.X.isEnterPress=function(H){return H.key==="Enter"||H.code==="Enter"||H.code==="NumpadEnter"||H.keyCode===13?!0:!1};
_.X.isControlEnterPress=function(H){var U=H.key==="Enter"||H.code==="Enter"||H.code==="NumpadEnter"||H.keyCode===13;return(H.ctrlKey||H.metaKey)&&U};
_.X.isCopyPress=function(H){var U=H.ctrlKey;return H.key==="c"&&U};
_.X.logClick=function(){var H,U=(H=this.data)==null?void 0:H.trackingParams;U&&_.Yg(_.k$(),U)};
_.X.logClientVe=function(H){_.GJ(_.k$(),_.ts(H))};
_.D5.Object.defineProperties(h4.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}}});
h4.prototype.handleMouseLeave=h4.prototype.handleMouseLeave;h4.prototype.handleMouseEnter=h4.prototype.handleMouseEnter;h4.prototype.dataChanged=h4.prototype.dataChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],h4.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.m1),_.q("design:type",Object)],h4.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],h4.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],h4.prototype,"isEditMode",void 0);_.G([_.y(),_.q("design:type",Object)],h4.prototype,"touchCaptionsEnabled",void 0);_.G([_.y(),_.q("design:type",Object)],h4.prototype,"editedText",void 0);_.G([_.y(),_.q("design:type",Object)],h4.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.G([_.y(),_.q("design:type",Object)],h4.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.G([_.y(),_.q("design:type",String)],h4.prototype,"segmentAriaLabel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],h4.prototype,"roundedContainer",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],h4.prototype,"mouseOver",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],h4.prototype,"textChanged",void 0);_.G([_.y(),_.q("design:type",Object)],h4.prototype,"messages",void 0);
_.G([_.hG("#suggestion"),_.q("design:type",Object)],h4.prototype,"ironTextAreaElement",void 0);_.G([_.a("data","editedText"),_.q("design:type",Object),_.q("design:paramtypes",[])],h4.prototype,"latestText",null);_.G([_.a("touchCaptionsEnabled","isEditMode"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],h4.prototype,"enableEditButton",null);
_.G([_.a("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],h4.prototype,"enableUndoButton",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],h4.prototype,"dataChanged",null);_.G([_.Gl("mouseenter"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],h4.prototype,"handleMouseEnter",null);
_.G([_.Gl("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],h4.prototype,"handleMouseLeave",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],h4);
_.e(h4,"ytd-transcript-segment-renderer",function(){if(H48!==void 0)return H48;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return H48=H},{mode:1});var kq=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};H.isError=!1;H.darkerPanels=_.S("web_watch_darker_panels");H.useParentMaxHeight=_.S("web_watch_transscript_use_parent_max_height");H.segmentOffsets=[];H.segmentIndex=-1;return H};
_.R(kq,_.B);_.X=kq.prototype;_.X.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"}}}}};
_.X.segmentsChanged=function(){this.updateOffsets()};
_.X.onYtPlayerTimeChanged=function(H){for(var U=this.segmentIndex,A=U;;){if(A>=0){var M=this.segmentOffsets[A].start;var W=this.segmentOffsets[A].isAutoScrollable}else M=-1,W=!0;var w=H+.5;if(!W){M=A+1<this.segmentOffsets.length?this.segmentOffsets[A+1].start:Infinity;if(w>=M){A+=1;continue}A=-1;break}if(w<M)M=A-1>=0&&this.segmentOffsets[A-1].isAutoScrollable,W=A===0||M?1:2,A-=W;else if(W=A+1<this.segmentOffsets.length&&this.segmentOffsets[A+1].isAutoScrollable?1:2,M=A+W<this.segmentOffsets.length?
this.segmentOffsets[A+W].start:Infinity,w>M)A+=W;else{if(A<0)break;A<this.segmentOffsets.length&&w>this.segmentOffsets[A].end&&(A=-1);break}}if(U!==A){if(U>=0){var d;(d=this.getSegmentElement(U))==null||d.classList.remove("active")}this.segmentIndex=A;if(!(A<0)){var O;(O=this.getSegmentElement(A))==null||O.classList.add("active");this.isHovered||this.scrollElementToTop(A)}}};
_.X.handleSegmentEdit=function(H){H.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=H.target,_.yr(this.hostElement,"yt-transcript-player-edit",[H.detail.startMs/1E3,H.detail.endMs/1E3]))};
_.X.handleSegmentSelected=function(H){_.yr(this.hostElement,"yt-transcript-player-seek",[H.detail.startMs/1E3])};
_.X.handleSegmentReplay=function(H){_.yr(this.hostElement,"yt-transcript-player-replay",[H.detail.startMs/1E3,H.detail.endMs/1E3])};
_.X.handleSectionHeaderSelected=function(H){_.yr(this.hostElement,"yt-transcript-player-seek",[H.detail.startMs/1E3])};
_.X.onMouseEnter=function(){this.isHovered=!0};
_.X.onMouseLeave=function(){this.isHovered=!1};
_.X.onRetryButtonClick=function(){_.cg(this.hostElement,"transcript-retry-button-click")};
_.X.getSegmentElement=function(H){return _.c4(this.hostElement).querySelector(":nth-child("+(H+1)+")")};
_.X.scrollElementToTop=function(H){H=this.getSegmentElement(H>=2?H-2:0);this.hostElement.scrollTop=Math.min(H.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.X.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(H){var U,A=(U=H.transcriptSegmentRenderer)!=null?U:H.transcriptSectionHeaderRenderer;return{start:Number(A.startMs)/1E3,end:Number(A.endMs)/1E3,isAutoScrollable:H.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.X.clearHighlightedSegments=function(){var H=_.c4(this.hostElement);H=_.b(H.querySelectorAll("ytd-transcript-segment-renderer"));for(var U=H.next();!U.done;U=H.next())U.value.classList.remove("active")};
_.D5.Object.defineProperties(kq.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.data)==null?void 0:H.searchResultSegments)||((U=this.data)==null?void 0:U.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
kq.prototype.onMouseLeave=kq.prototype.onMouseLeave;kq.prototype.onMouseEnter=kq.prototype.onMouseEnter;kq.prototype.handleSectionHeaderSelected=kq.prototype.handleSectionHeaderSelected;kq.prototype.handleSegmentReplay=kq.prototype.handleSegmentReplay;kq.prototype.handleSegmentSelected=kq.prototype.handleSegmentSelected;kq.prototype.handleSegmentEdit=kq.prototype.handleSegmentEdit;kq.prototype.segmentsChanged=kq.prototype.segmentsChanged;
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],kq.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],kq.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],kq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],kq.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],kq.prototype,"isError",void 0);
_.G([_.y(),_.q("design:type",Object)],kq.prototype,"noResultLabel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],kq.prototype,"darkerPanels",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],kq.prototype,"useParentMaxHeight",void 0);_.G([_.a("data"),_.q("design:type",Array),_.q("design:paramtypes",[])],kq.prototype,"segments",null);
_.G([_.a("segments","noResultLabel"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],kq.prototype,"displayNoResults",null);_.G([_.Ya("segments"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kq.prototype,"segmentsChanged",null);_.G([_.Gl("yt-transcript-segment-edit"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],kq.prototype,"handleSegmentEdit",null);
_.G([_.Gl("yt-transcript-segment-selected"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],kq.prototype,"handleSegmentSelected",null);_.G([_.Gl("yt-transcript-segment-replay"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],kq.prototype,"handleSegmentReplay",null);
_.G([_.Gl("ytd-transcript-section-header"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],kq.prototype,"handleSectionHeaderSelected",null);_.G([_.Gl("mouseenter"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kq.prototype,"onMouseEnter",null);_.G([_.Gl("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kq.prototype,"onMouseLeave",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],kq);
_.e(kq,"ytd-transcript-segment-list-renderer",function(){if(VKh!==void 0)return VKh;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return VKh=H},{mode:1});var vk=function(){var H=_.B.apply(this,arguments)||this;H.hideTimestamps=!!_.H4("hide-transcript-timestamps");H.isLoadingTranscripts=!1;H.darkerPanels=_.S("web_watch_darker_panels");H.isError=!1;H.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return H};
_.R(vk,_.B);_.X=vk.prototype;_.X.headerChanged=function(){var H,U;this.baseGetTranscriptsCommand=(U=_.p((H=this.data)==null?void 0:H.header,Cry))==null?void 0:U.onTextChangeCommand};
_.X.bodyChanged=function(){var H=this.getBodyRenderer();H&&(H.initialSegments&&(this.initialTranscriptsRenderer=H),H.noResultLabel&&(this.noResultLabel=H.noResultLabel),H.retryLabel&&(this.retryLabel=H.retryLabel))};
_.X.detached=function(){this.clearSearchBoxText()};
_.X.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.X.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"}}}};
_.X.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.X.fireSearch=function(H){var U=this;if(H){var A=H.detail.query;if(this.baseGetTranscriptsCommand){var M;H=(M=_.p(this.baseGetTranscriptsCommand,_.GFy))==null?void 0:M.params;var W;M=_.p((W=this.data)==null?void 0:W.footer,xdh);var w;if((W=(w=_.p(M==null?void 0:M.languageMenu,PrB))==null?void 0:w.subMenuItems)&&W.length>0&&(w=W.find(function(f){return f.selected}))){var d,O;
H=(d=w.continuation)==null?void 0:(O=d.reloadContinuationData)==null?void 0:O.continuation}d=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:H,searchQuery:A}});this.ytComponentBehavior.resolveCommand(d,{commandController:{onServerError:function(){U.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});ImX(this.ytContinuationHandlerBehavior,function(){return A===U.getCurrentSearchBoxText()})}}};
_.X.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.X.onRetryButtonClick=function(){this.isError=!1;var H={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:H}))};
_.X.hideTimestampsChanged=function(){_.V3("hide-transcript-timestamps",this.hideTimestamps)};
_.X.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.X.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.X.handleSignalActionCopyTranscript=function(){var H=this,U=this.getBodyRenderer();U&&(U=((U==null?void 0:U.searchResultSegments)||(U==null?void 0:U.initialSegments)||[]).map(function(A){return _.p(A,c7h)}).filter(function(A){return!!A}).map(function(A){return{snippet:A.snippet||{runs:[{text:""}]},
startTimeText:A.startTimeText||{simpleText:""}}}).map(function(A){var M=(A.snippet.runs||[]).reduce(function(W,w){return W+w.text},"");
return H.hideTimestamps?M:A.startTimeText.simpleText+" "+M}).join("\n"),this.copyToClipboard(U))};
_.X.copyToClipboard=function(H){navigator.clipboard&&navigator.clipboard.writeText(H)};
_.X.getCurrentSearchBoxText=function(){var H;return(H=this.searchBox)==null?void 0:H.value};
_.X.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.X.getBodyRenderer=function(){var H;return _.p((H=this.data)==null?void 0:H.body,tBh)};
_.X.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.D5.Object.defineProperties(vk.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.c4(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
vk.prototype.hideTimestampsChanged=vk.prototype.hideTimestampsChanged;vk.prototype.searchCleared=vk.prototype.searchCleared;vk.prototype.fireSearch=vk.prototype.fireSearch;vk.prototype.onReloadContinuationFinish=vk.prototype.onReloadContinuationFinish;vk.prototype.bodyChanged=vk.prototype.bodyChanged;vk.prototype.headerChanged=vk.prototype.headerChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],vk.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],vk.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],vk.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.RG),_.q("design:type",Object)],vk.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],vk.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],vk.prototype,"hideTimestamps",void 0);
_.G([_.y(),_.q("design:type",Object)],vk.prototype,"isLoadingTranscripts",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],vk.prototype,"darkerPanels",void 0);_.G([_.y(),_.q("design:type",Object)],vk.prototype,"isError",void 0);_.G([_.Ya("data.header"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vk.prototype,"headerChanged",null);
_.G([_.jk("data.body"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vk.prototype,"bodyChanged",null);_.G([_.Gl("yt-reload-continuation-finish"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vk.prototype,"onReloadContinuationFinish",null);_.G([_.Gl("yt-transcript-search-box-search"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],vk.prototype,"fireSearch",null);
_.G([_.Gl("yt-transcript-search-box-clear"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vk.prototype,"searchCleared",null);_.G([_.Ya("hideTimestamps"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vk.prototype,"hideTimestampsChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],vk);
_.e(vk,"ytd-transcript-search-panel-renderer",function(){if(IQk!==void 0)return IQk;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return IQk=H},{mode:1});var T5=function(){var H=_.B.apply(this,arguments)||this;H.player=null;H.playerPollJobId=0;return H};
_.R(T5,_.B);_.X=T5.prototype;_.X.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.X.onLoadReloadContinuation=function(H){_.S("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:H.target.data.continuation}}):(H={clickTrackingParams:H.target.data.clickTrackingParams,getTranscriptEndpoint:{params:H.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.lx().resolve(_.YV).resolveCommand(H,{form:{element:this.hostElement}}))};
_.X.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"}}}};
_.X.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.X.attached=function(){this.updatePlayerListening()};
_.X.detached=function(){this.updatePlayerListening()};
_.X.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.X.startPlayerListening=function(){var H=this,U;return _.u(function(A){if(A.nextAddress==1)return(U=_.Ly())?A.yield(U.getPlayerPromise(),2):A.return();H.player=A.yieldResult;H.playerPollJobId=_.Fl.addLowPriorityJob(function(){H.getPlayerVideoProgress()},1E3);
H.player.addEventListener("onCueRangeEnter",function(M){H.onCueRangeEnter(M)});
H.player.addEventListener("onCueRangeExit",function(M){H.onCueRangeExit(M)});
H.player.addEventListener("onStateChange",function(M){H.onPlayerStateChange(M)});
H.player.addEventListener("SEEK_TO",function(M){H.onPlayerSeek(M)});
_.DO(A)})};
_.X.getPlayerVideoProgress=function(){var H=this;_.Fl.cancelJob(this.playerPollJobId);if(this.player){var U=this.player.getCurrentTime();_.yr(this.hostElement,"yt-player-time-changed",[U])}this.playerPollJobId=_.Fl.addLowPriorityJob(function(){H.getPlayerVideoProgress()},1E3)};
_.X.stopPlayerListening=function(){this.player=null;_.Fl.cancelJob(this.playerPollJobId)};
_.X.onPlayerStateChange=function(H){H===2&&this.removePendingCue()};
_.X.onPlayerSeek=function(H){var U;if(U=this.pendingReplayCueId)U=this.pendingReplayCueId,U=H===(_.S("web_transcript_cue_id_killswitch")?Number(U):Number(U.split("_")[1]));U||this.removePendingCue()};
_.X.onCueRangeEnter=function(H){MVh(H)&&(this.pendingReplayCueId=H)};
_.X.onCueRangeExit=function(H){MVh(H)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.X.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.X.onYtTranscriptPlayerSeek=function(H){this.player&&this.player.seekTo(H,!0)};
_.X.onYtTranscriptPlayerReplay=function(H,U){this.player&&(this.player.addCueRange(ANY(H),H,U),this.player.seekTo(H,!0),this.player.playVideo())};
_.X.onYtTranscriptPlayerEdit=function(H,U){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(ANY(H),H,U),this.player.seekTo(H,!0))};
T5.prototype.onLoadReloadContinuation=T5.prototype.onLoadReloadContinuation;T5.prototype.panelContentVisibleChanged=T5.prototype.panelContentVisibleChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],T5.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],T5.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],T5.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],T5.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],T5.prototype,"panelContentVisible",void 0);_.G([_.Ya("panelContentVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],T5.prototype,"panelContentVisibleChanged",null);
_.G([_.Gl("yt-load-reload-continuation"),_.q("design:type",Function),_.q("design:paramtypes",[Object]),_.q("design:returntype")],T5.prototype,"onLoadReloadContinuation",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],T5);
_.e(T5,"ytd-transcript-renderer",function(){if(TwX!==void 0)return TwX;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return TwX=H},{mode:1});var U8j;var AYm;var ja=function(){return _.B.apply(this,arguments)||this};
_.R(ja,_.B);ja.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.cg(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.eb(this.hostElement,[this.data.clickCommand],this.hostElement))};
ja.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+(Hz()+UL)+"px)"};
ja.prototype.updateShouldHideFromBinding=function(H){this.shouldHide=H.detail.value};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ja.prototype,"rendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ja.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],ja.prototype,"shouldHide",void 0);_.G([_.dX({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],ja);
_.e(ja,"ytd-ad-engagement-panel-banner-renderer",function(){if(AYm!==void 0)return AYm;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return AYm=H},{mode:2});var MhY;var IK=function(){var H=_.B.apply(this,arguments)||this;H.buttonUpdate=_.S("web_modern_buttons");H.adsSemanticText=_.S("enable_ads_web_ep_buenos_aires_and_padding_fix");return H};
_.R(IK,_.B);IK.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.G([_.y(),_.q("design:type",Object)],IK.prototype,"data",void 0);_.G([_.y({computed:"computeHideDefaultAdBadge(data)"}),_.q("design:type",Boolean)],IK.prototype,"hideDefaultAdBadge",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IK.prototype,"buttonUpdate",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IK.prototype,"adsSemanticText",void 0);_.G([_.dX({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],IK);
_.e(IK,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(MhY!==void 0)return MhY;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return MhY=H},{mode:1});var W2$;var QS=function(){var H=_.B.apply(this,arguments)||this;H.darkerPanels=_.S("web_watch_darker_panels");H.enableSqueezebackPanels=_.S("web_shorts_enable_squeezeback_panels");H.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");H.headerClickListener=function(U){H.onHeaderClick(U)};
H.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return H};
_.R(QS,_.B);_.X=QS.prototype;_.X.computeAdsInfoButton=function(){if(_.S("web_modern_buttons")){var H,U;return(U=_.p((H=this.data)==null?void 0:H.subtitleComplex,zLj))==null?void 0:U.adInfoRenderer}};
_.X.updateHeaderClickListener=function(){var H,U,A;((H=this.data)==null?0:H.navigationEndpoint)||((U=this.data)==null?0:U.onClickCommand)||_.p((A=this.data)==null?void 0:A.visibilityButton,_.JA)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.X.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}}}}}};
_.X.collapsedChanged=function(){var H;(H=this.data)!=null&&H.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.S("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.X.focus=function(H){var U=this;this.titleElement&&_.Fl.addJob(function(){_.tk(U.titleElement,H)},0,500)};
_.X.computeTitleAriaLabel=function(H){var U=[];if(H.title){var A,M;U.push(this.ytRendererBehavior.getSimpleString(H.title)||((A=H.title.accessibility)==null?void 0:(M=A.accessibilityData)==null?void 0:M.label))}H.contextualInfo&&U.push(this.ytRendererBehavior.getSimpleString(H.contextualInfo));return U.join(" ")};
_.X.onHeaderClick=function(H){this.shouldTriggerHeaderClick(H)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.cg(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.eb(this.hostElement,[this.data.onClickCommand],this.hostElement)):(H=this.getVisibilityToggleButton())&&H.click())};
_.X.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var H=_.p(this.data.visibilityButton,_.f$)||_.p(this.data.visibilityButton,_.JA);H&&this.ytRendererBehavior.logExplicitClick(H)}};
_.X.getVisibilityToggleButton=function(){var H=_.c4(this.hostElement).querySelector("#visibility-button").firstElementChild;return(H==null?void 0:H.is)==="ytd-toggle-button-renderer"?H:null};
_.X.shouldTriggerHeaderClick=function(H){return!_.ny(_.Lf(H),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.X.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(H){H=_.p(H,A6p);this.targetId&&(H==null?void 0:H.targetId)===this.targetId&&(H=H.navigationButton)&&this.set("data.navigationButton",H)};
_.D5.Object.defineProperties(QS.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var H;return!!(((H=this.entity)==null?0:H.isActionButtonHidden)||this.hideActionButton)}}});
QS.prototype.collapsedChanged=QS.prototype.collapsedChanged;QS.prototype.updateHeaderClickListener=QS.prototype.updateHeaderClickListener;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],QS.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],QS.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.dF),_.q("design:type",Object)],QS.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],QS.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],QS.prototype,"targetId",void 0);_.G([_.y(),_.q("design:type",Boolean)],QS.prototype,"collapsed",void 0);_.G([_.y(),_.q("design:type",Boolean)],QS.prototype,"hideActionButton",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],QS.prototype,"shortsPanel",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],QS.prototype,"liveChatEngagementPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],QS.prototype,"learningChatEngagementPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],QS.prototype,"darkerPanels",void 0);_.G([_.hG("#title"),_.q("design:type",HTMLElement)],QS.prototype,"titleElement",void 0);_.G([_.hG("#header"),_.q("design:type",HTMLElement)],QS.prototype,"headerElement",void 0);
_.G([_.y({computed:"computeAdsInfoButton(data)"}),_.q("design:type",Object)],QS.prototype,"adsInfoButton",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],QS.prototype,"enableSqueezebackPanels",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],QS.prototype,"enableAnchoredPanel",void 0);_.G([_.y({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(H,U){return _.rH(H.entities,"engagementPanelTitleHeaderEntity",U)}}),
_.q("design:type",Object)],QS.prototype,"entity",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("targetId"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],QS.prototype,"adsSemanticText",null);_.G([_.Ya("data","data.navigationEndpoint","data.onClickCommand"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],QS.prototype,"updateHeaderClickListener",null);
_.G([_.jk("collapsed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],QS.prototype,"collapsedChanged",null);_.G([_.a("entity","hideActionButton"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],QS.prototype,"isActionButtonHidden",null);_.G([_.dX({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],QS);
_.e(QS,"ytd-engagement-panel-title-header-renderer",function(){if(W2$!==void 0)return W2$;var H=document.createElement("template");_.E(H,'\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" 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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return W2$=H},{mode:1});var wty;var VS=function(){return _.B.apply(this,arguments)||this};
_.R(VS,_.B);VS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],VS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],VS.prototype,"data",void 0);_.G([_.dX({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],VS);
_.e(VS,"ytd-macro-markers-info-item-renderer",function(){if(wty!==void 0)return wty;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return wty=H},{mode:1});var Xt7;var Hf=function(H,U,A,M,W,w){_.XG.call(this);var d=this;this.JSC$21146_containerElement=H;this.hostElement=U;this.supportedSyncItems=A;this.syncEntityKey=M;this.options=W;this.renderLazyListItems=w;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;i47(this);b48(this);this.JSC$21146_scrollAnimation=new _.Eb(function(O){H.scrollTop=O});
_.kl(this,this.JSC$21146_scrollAnimation);this.addOnDisposeCallback(function(){d8B(d,!1);d.activeItem&&d.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.R(Hf,_.XG);var i47=function(H){var U=_.It(_.lx().resolve(_.bK),function(A){return A.entities.markersEngagementPanelSyncEntity||{}},function(A,M){var W;
if(A[H.syncEntityKey]!==M[H.syncEntityKey]&&((W=A[H.syncEntityKey])==null?void 0:W.activeItemIndex)!==void 0)if(M=A[H.syncEntityKey].activeItemIndex,A=H.getItemByIndex(M)){if(O4Y(H,A),H.contentVisible)if(H.browsingMode){var w;((w=H.options)==null?void 0:w.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(w=uRh(H),A.offsetTop<H.JSC$21146_containerElement.clientHeight+H.JSC$21146_containerElement.scrollTop&&w&&!H.activeItemBelowSyncPosition&&d8B(H,!1));Z4m(H)}else H.scrollToItem(A)}else _.Na(new _.bD("Could not find "+
H.supportedSyncItems+" sync child to set active.",M,H.JSC$21146_containerElement.querySelectorAll(H.supportedSyncItems).length))});
H.unsubscribeFromTimedMarkersListSyncEntity=U;H.addOnDisposeCallback(U);fZy(H)},fZy=function(H){var U=_.lx().resolve(_.bK);
U=_.Nyc(U.getState(),H.syncEntityKey);(U==null?void 0:U.activeItemIndex)!==void 0&&(U=H.getItemByIndex(U.activeItemIndex))&&O4Y(H,U)},b48=function(H){var U=new _.B$(H.onScroll,50,H);
_.kl(H,U);var A=function(){U.fire()};
H.JSC$21146_containerElement.addEventListener("scroll",A);H.addOnDisposeCallback(function(){H.JSC$21146_containerElement.removeEventListener("scroll",A)})};
Hf.prototype.getItemByIndex=function(H){var U;(U=this.renderLazyListItems)==null||U.call(this,H);U=this.JSC$21146_containerElement.querySelectorAll(this.supportedSyncItems);if(U.length>H)return U[H]};
var O4Y=function(H,U){H.activeItem&&H.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));U.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));H.activeItem=U};
Hf.prototype.scrollToItem=function(H){H=this.getScrollPositionForItem(H);this.JSC$21146_containerElement.scrollTop!==H&&this.JSC$21146_scrollAnimation.start(this.JSC$21146_containerElement.scrollTop,H,300)};
Hf.prototype.getScrollPositionForItem=function(H){if(this.JSC$21146_containerElement.querySelectorAll(this.supportedSyncItems)[0]===H)return 0;var U,A=((U=this.options)==null?0:U.percentOffset)?this.JSC$21146_containerElement.clientHeight*this.options.percentOffset:0;H=_.fp(H).y+this.JSC$21146_containerElement.scrollTop-(_.fp(this.JSC$21146_containerElement).y+A);return Math.max(0,Math.min(H,this.JSC$21146_containerElement.scrollHeight-this.JSC$21146_containerElement.offsetHeight))};
Hf.prototype.onScroll=function(){this.activeItemBelowSyncPosition=uRh(this);if(this.activeItem&&!this.JSC$21146_scrollAnimation.isAnimating()&&Math.abs(this.JSC$21146_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var H;switch((H=this.options)==null?void 0:H.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":JYy(this,!K27(this));Z4m(this);break;default:JYy(this,!0)}}};
var JYy=function(H,U){var A,M;_.u(function(W){if(W.nextAddress==1){if(H.browsingMode)return W.return();H.browsingMode=!0;U&&H.hostElement.classList.add("browsing-mode");H.playerExitBrowsingModeListener=function(){d8B(H,!1)};
return W.yield(_.co(),2)}A=W.yieldResult;(M=A)==null||M.addEventListener("SEEK_TO",H.playerExitBrowsingModeListener);_.DO(W)})},d8B=function(H,U){U=U===void 0?!0:U;
H.browsingMode&&(H.browsingMode=!1,H.hostElement.classList.remove("browsing-mode"),U&&H.scrollToItem(H.activeItem),oLY(H))},oLY=function(H){var U,A;
_.u(function(M){if(M.nextAddress==1)return H.playerExitBrowsingModeListener?M.yield(_.co(),3):M.jumpTo(0);U=M.yieldResult;(A=U)==null||A.removeEventListener("SEEK_TO",H.playerExitBrowsingModeListener);H.playerExitBrowsingModeListener=void 0;_.DO(M)})},Z4m=function(H){var U;
((U=H.options)==null?void 0:U.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(K27(H)?H.hostElement.classList.remove("browsing-mode"):H.activeItem&&H.hostElement.classList.add("browsing-mode"))},uRh=function(H){if(!H.activeItem)return!1;
var U,A=((U=H.options)==null?0:U.percentOffset)?H.JSC$21146_containerElement.clientHeight*H.options.percentOffset:0;return H.activeItem.offsetTop>=H.JSC$21146_containerElement.scrollTop+A},K27=function(H){if(!H.activeItem)return!1;
var U=H.activeItem.offsetTop+14<=H.JSC$21146_containerElement.scrollTop+H.JSC$21146_containerElement.clientHeight;return H.activeItem.offsetTop+H.activeItem.clientHeight-14>=H.JSC$21146_containerElement.scrollTop&&U};
Hf.prototype.panelContentVisibleChanged=function(H){(this.contentVisible=H)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var F2j=function(H,U){H.syncEntityKey=U;var A;(A=H.unsubscribeFromTimedMarkersListSyncEntity)==null||A.call(H);i47(H)},Ps5=function(H,U){H.options=U};var Ut=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return H};
_.R(Ut,_.B);_.X=Ut.prototype;_.X.detached=function(){var H;(H=this.scrollController)==null||H.dispose();this.scrollController=void 0};
_.X.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"}}}};
_.X.dataChanged=function(){var H=this;_.rV(this,function(){if(H.scrollController){var U;(U=H.scrollController)==null||d8B(U,!1);var A,M,W;(M=H.scrollController)==null||F2j(M,(W=(A=H.data)==null?void 0:A.syncModelEntityKey)!=null?W:"default-macro-markers-list-renderer-entity-key");var w,d,O;(O=H.scrollController)==null||Ps5(O,{percentOffset:(w=H.data)==null?void 0:w.selectedItemAlignmentPercentOffset,floatingPillType:(d=H.data)==null?void 0:d.floatingPillType})}else{var f,J,F,P;H.scrollController=
new Hf(H.contents,H.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(P=(f=H.data)==null?void 0:f.syncModelEntityKey)!=null?P:"default-macro-markers-list-renderer-entity-key",{percentOffset:(J=H.data)==null?void 0:J.selectedItemAlignmentPercentOffset,floatingPillType:(F=H.data)==null?void 0:F.floatingPillType},function(n){H.renderLazyListItems(n)})}H.scrollController.panelContentVisibleChanged(!!H.panelContentVisible)})};
_.X.computeButtonShape=function(){var H=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){H.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.X.renderLazyListItems=function(H){for(var U=this.contents.children,A=0,M=0;M<U.length;M++){var W=void 0;(W=U[M].ytLazyListBehavior)==null||W.fillRemainingListItems();var w=void 0,d=void 0;W=_.p((w=this.data)==null?void 0:(d=w.contents)==null?void 0:d[M],_.mI2);d=w=void 0;if((w=W)==null?0:(d=w.contents)==null?0:d.length)A+=W.contents.length;if(A>=H)break}};
_.X.handleSetActivePanelItemAction=function(H){if((H=_.p(H,uWh))&&this.panelTargetId===H.panelTargetId){H=H.itemIndex;var U,A,M=(A=(U=this.data)==null?void 0:U.syncModelEntityKey)!=null?A:"default-macro-markers-list-renderer-entity-key",W;((W=this.syncEntity)==null?void 0:W.activeItemIndex)!==H&&this.ytdReduxBehavior.dispatch(_.hs("markersEngagementPanelSyncEntity",M,{key:M,activeItemIndex:H}))}};
_.X.onSyncClick=function(){var H;(H=this.scrollController)==null||d8B(H)};
_.X.panelContentVisibleChanged=function(){var H;(H=this.scrollController)==null||H.panelContentVisibleChanged(!!this.panelContentVisible)};
Ut.prototype.panelContentVisibleChanged=Ut.prototype.panelContentVisibleChanged;Ut.prototype.dataChanged=Ut.prototype.dataChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Ut.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Ut.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.dF),_.q("design:type",Object)],Ut.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ut.prototype,"data",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Ut.prototype,"useCustomColors",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],Ut.prototype,"panelTargetId",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Ut.prototype,"panelContentVisible",void 0);
_.G([_.hG("#contents"),_.q("design:type",HTMLElement)],Ut.prototype,"contents",void 0);_.G([_.y({selectorArgs:["data.syncModelEntityKey"],selector:_.Nyc}),_.q("design:type",Object)],Ut.prototype,"syncEntity",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ut.prototype,"dataChanged",null);
_.G([_.Ya("panelContentVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ut.prototype,"panelContentVisibleChanged",null);_.G([_.dX({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Ut);
_.e(Ut,"ytd-macro-markers-list-renderer",function(){if(Xt7!==void 0)return Xt7;var H=document.createElement("template");_.E(H,'\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" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Xt7=H},{mode:1});var sek;var nLB;var AX=function(){return _.B.apply(this,arguments)||this};
_.R(AX,_.B);AX.prototype.computeAriaLabel=function(H){var U,A;return(H==null?void 0:(U=H.accessibility)==null?void 0:(A=U.accessibilityData)==null?void 0:A.label)||_.hP("LOADING",void 0,"Loading")};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],AX.prototype,"data",void 0);_.G([_.y({computed:"computeAriaLabel(data)"}),_.q("design:type",String)],AX.prototype,"ariaLabel",void 0);_.G([_.b0({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],AX);
_.e(AX,"yt-content-loading-renderer",function(){if(nLB===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;sek===void 0&&(sek=document.createElement("template"));var M=sek;A.call(U,M.content.cloneNode(!0),H.content.firstChild);nLB=H}H=nLB;return H},{mode:1});_.LG(_.r(function(H){var U=_.b(_.iB(!1,void 0,"OZMtVb")),A=U.next().value,M=U.next().value;U=_.b(_.iB(!1,void 0,"qWERsf"));var W=U.next().value,w=U.next().value;_.LA(function(){var f=_.p(H.data().collaboratePlaylistCollaborationSetting,ao7);f&&M(f.switchedOnByDefault);var J=_.p(H.data().allowNewCollaboratorsPlaylistCollaborationSetting,ao7);J&&w(J.switchedOnByDefault);if(!f&&!J||!f&&H.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")M(!0),w(!0)});
var d=function(f){M(f);w(f);var J=H.data().playlistCollaborationEntityKey||"";var F=_.Sq().getState();(F=_.rH(F.entities,"playlistCollaborationEntity",J))&&(F==null?void 0:F.isCollaborative)===f||_.Sq().dispatch(_.hs("playlistCollaborationEntity",J,Object.assign({},F,{isCollaborative:f})))},O=function(f){w(f)};
return _.Z("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.Z("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.Z(_.YY,{data:function(){return H.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(f){return _.Z(_.YQh,{data:f.data,
onSwitch:d})}})),_.Z(_.K,{cond:A,
then:function(){return _.Z(_.ve,null,_.Z("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.Z(_.YY,{data:function(){return H.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(f){return _.Z(_.YQh,{data:f.data,
onSwitch:O,overrideDisabled:!1})}})),_.Z(_.K,{cond:W,
then:function(){return _.Z("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.Z(_.YY,{data:function(){return H.data().copyLinkButton}},{buttonViewModel:_.yJ}))}}),_.Z("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.Z(_.YY,{data:function(){return H.data().playlistCollaborators}},{contentListItemViewModel:uJh})))}}))},"Aj"),"playlist-collaboration-view-model",{props:{data:_.sY}});var N8j=_.r(function(H){var U=H.data;var A=H.customCommandResolver;return _.Z(_.ve,null,_.Z("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.Z(_.YY,{data:function(){return U().adAvatar}},{adAvatarViewModel:function(M){return _.Z(_.JXw,{data:M.data,
customCommandResolver:A})}})),_.Z("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.Z(_.K,{cond:function(){return U().headline},
then:function(M){return _.Z(_.Pb,{text:M,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.Z("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.Z(_.YY,{data:function(){return U().adBadge}},{adBadgeViewModel:function(M){return _.Z(_.$N,{data:M.data,
hasDot:function(){return U().primaryDetailsLine!==void 0},
customCommandResolver:A,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.Z(_.YY,{data:function(){return U().primaryDetailsLine}},{adDetailsLineViewModel:function(M){return _.Z(_.lh,{data:M.data,
customCommandResolver:A,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Bj"),Sum=_.r(function(H){var U=H.data;
var A=H.customCommandResolver;return _.Z("ad-avatar-lockup-view-model",{class:function(){var M;return((M=U().interaction)==null?0:M.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.sB(_.eD({visibilityCallback:function(M){var W,w=(W=U().interaction)==null?void 0:W.onFirstVisible;M&&w&&_.uj(w)},
showOption:_.Cj}),_.d7(function(){return U().interaction},A)),
"aria-label":function(){var M,W;return(M=U().interaction)==null?void 0:(W=M.accessibility)==null?void 0:W.label}},_.Z(_.P5,null,_.Z(_.KA,{when:function(){return U().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.Z(N8j,{data:U,
customCommandResolver:A})}),_.Z(_.oh,null,function(){return null})))},"Cj");_.LG(_.r(function(H){var U=H.data;var A=H.panelContentVisibility;H=_.eD({visibilityCallback:function(w){var d,O=(d=U().interaction)==null?void 0:d.onFirstVisible;w&&O&&_.uj(O)},
showOption:_.Cj});var M=_.d7(function(){return U().interaction},Wuj);
_.Rn(function(){var w,d;if(d=_.tr("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var O;d=(O=d())==null?void 0:O.onLayoutVisibleCallback}else d=null;(w=d)==null||w()},"Dj");
var W=function(){return A()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.Z("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.sB(H,M)},_.Z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.Z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.Z(_.K,{cond:_.NQt("(min-width: "+(Hz()+UL)+"px) or (max-width: 600px)"),then:function(){return _.Z(_.YY,{data:function(){return U().adImage}},{adImageViewModel:function(w){return _.Z(_.c6,{data:w.data,
targetHeight:80,customCommandResolver:Wuj})}})}})),_.Z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.Z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.Z(_.YY,{data:function(){return U().adAvatarLockup}},{adAvatarLockupViewModel:function(w){return _.Z(Sum,{data:w.data,
customCommandResolver:Wuj})}})),_.Z(_.K,{cond:W,
then:function(){return _.Z(_.YY,{data:function(){return U().adButton}},{adButtonViewModel:function(w){return _.Z(_.y2,{data:w.data,
customCommandResolver:Wuj})}})},
else:function(){return _.Z(_.YY,{data:function(){return U().menu}},{buttonViewModel:_.yJ})}}),_.Z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.Z(_.YY,{data:function(){var w=_.p(U().toggleButton,_.Pc);
return{toggleButtonViewModel:Object.assign({},w,{isTogglingDisabled:!0,isToggled:W()})}}},{toggleButtonViewModel:_.MI})))))},"Ej"),"panel-ad-header-image-lockup-view-model",{props:{data:_.sY,
panelContentVisibility:_.sY}});var ptf=_.r(function(H){return _.Z("yt-feedback-prompt-view-model",{class:_.CG("ytFeedbackPromptViewModelHost",H.className)},_.Z(_.K,{cond:function(){return H.data().text},
then:function(U){return _.Z(_.Pb,{text:U,className:"ytFeedbackPromptViewModelPrompt"})}}),_.Z(_.YY,{data:function(){return H.data().likeButton}},{likeButtonViewModel:function(U){return _.Z(_.fn,{data:U.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.Z(_.YY,{data:function(){return H.data().dislikeButton}},{dislikeButtonViewModel:_.Zu}))},"Fj");var L25=_.r(function(H){var U=void 0,A=function(){return H.data()},M=function(){return!!_.V8(_.IR(A())).optionColor},W=_.b(_.iB(-1,void 0,"m6Iyqc")),w=W.next().value,d=W.next().value,O=function(n){return w()===n},f=function(n){return A().correctAnswerIndex===n},J=function(){return w()!==-1};
W=_.b(_.iB("",void 0,"jvMkLd"));var F=W.next().value,P=W.next().value;return _.Z("yoututor-quiz-view-model",{class:_.CG("learningQuizComponentHost","learningYoututorQuizHost",H.className),style:_.rA({background:function(){return _.V8(_.IR(A())).backgroundColor}})},_.Z("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},F),_.Z("div",{class:"learningQuizComponentQuizContainer"},_.Z("div",{class:"learningQuizComponentQuiz"},_.Z("div",{class:"learningQuizComponentQuizContent"},_.Z(_.K,{cond:function(){return!!A().aiGeneratedQuizLabel},
then:function(){return _.Z("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.Z(_.Pb,{text:function(){return A().aiGeneratedQuizLabel}}))}}),_.Z("div",{class:"learningQuizComponentQuizHeader"},_.Z("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.Z("div",{class:"learningYoututorQuizText",
style:_.rA({color:function(){return _.V8(_.IR(A())).primaryTextColor}})},_.Z(_.Pb,{text:function(){return A().questionHeaderText}}))))),_.Z("div",{role:"group",
class:_.CG("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.Z(_.FQ,{each:function(){return A().optionsData||[]}},function(n,N){var L={};
return _.Z("button",{class:_.CG("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(L.learningQuizComponentQuizHover=function(){return!J()},L.learningQuizComponentQuizOptionWithCustomColor=M,L.learningYoututorQuizOptionSelectedCorrectOutline=function(){return J()&&f(N())},L.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return w()!==A().correctAnswerIndex&&O(N())},L.learningQuizComponentQuizIncorrectShake=function(){return w()!==
A().correctAnswerIndex&&O(N())},L)),
"on:click":_.c$(function(){_.uZ(_.k$(),{data:n});if(J())return!1;d(N());P(f(N())?A().correctAnswerAriaLabel||"":A().incorrectAnswerAriaLabel||"");return!1}),
style:_.rA({background:"transparent"}),"aria-description":function(){return J()?f(N())?A().correctAnswerAriaLabel:A().incorrectAnswerAriaLabel:""},
"aria-disabled":J,el:_.sB(function(m){_.Hl(271905,m,U,function(z){U=z})}),
"client-ve-type":271905},_.Z("div",{class:"learningQuizComponentQuizOptionContainer"},_.Z(_.Pb,{text:n.optionText}),_.Z(_.K,{cond:function(){var m=N();return J()&&(O(m)||f(m))},
then:function(){var m={};return _.Z(_.er,{className:_.CG("learningYoututorQuizOptionIcon",(m.learningQuizComponentQuizPulse=function(){return w()===A().correctAnswerIndex&&f(N())},m)),
size:24,icon:function(){return f(N())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.Z(_.K,{cond:J,
then:function(){return _.Z("div",{class:"learningYoututorQuizExplanationContainer"},_.Z("div",{class:"learningYoututorQuizExplanationText"},_.Z(_.Pb,{text:function(){return A().explanationHeaderText}})),_.Z(_.Pb,{text:function(){return A().optionsData[w()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Gj");
L25.idomCompat=!0;var REB=_.r(function(H){var U=H.thumbsUp,A=H.thumbsDown,M=H.rightAlignThumbs;H=_.b(_.iB(!1,void 0,"OxPsH"));var W=H.next().value,w=H.next().value;H=_.b(_.iB(!1,void 0,"V5vWne"));var d=H.next().value,O=H.next().value;H={};return _.Z("div",{class:_.CG("ytwThumbsUpDownThumbs",(H.ytwThumbsUpDownRightAlign=function(){return M==null?void 0:M()},H))},_.Z(_.MI,{data:U,
onToggle:function(f){w(f);d()&&O(!1)},
buttonShapeOverrides:function(){return{toggled:W()}}}),_.Z(_.MI,{data:A,
onToggle:function(f){O(f);W()&&w(!1)},
buttonShapeOverrides:function(){return{toggled:d()}}}))},"Hj");
REB.idomCompat=!0;var m88=_.r(function(H){var U=function(){return H.data().pendingStateEntityKey||""},A=_.$Y(Xl$,U),M=function(){var O;
if(!(O=H.disabled())){var f;O=!((f=A())==null||!f.isPendingResponse)}return O},W=_.b(_.iB(bfm(""),void 0,"Q6q6y")),w=W.next().value,d=W.next().value;
_.pA(function(){requestAnimationFrame(function(){var O=H.data().onShowAnimationMs||0;O=O>0?bfm("--chip-animation-duration: "+O+"ms;"):bfm("");d(O)})});
return _.Z("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:w},_.Z(_.FQ,{each:function(){return H.data().chipData||[]},
keyBy:"REFERENCE"},function(O){return _.Z(ELh,{data:O,disabled:M,pendingStateKey:U,onError:H.onError})}))},"Jj"),ELh=_.r(function(H){var U=_.NU("button"),A=_.b(_.iB(!0,void 0,"baSFEf")),M=A.next().value,W=A.next().value,w=function(){return H.data().text.content},d=function(){return H.data().transparentWhenLoading},O=_.Gk(_.fl.currentPageSubTypeSelector),f=function(){var F;
return(F=_.lx().resolve(_.$V(_.iT)))==null?void 0:_.pLp(F,O())},J=_.c$(function(F){var P,n,N,L,m,z,c,C;
return _.u(function(v){switch(v.nextAddress){case 1:F.stopPropagation();if(H.disabled())return v.return();n=String(Math.floor(((P=_.yU())==null?void 0:P.getCurrentTime())||0)*1E3);N="youchat-"+Date.now();L=function(){_.bj(H.data().onClick||{});var Y=hMX(H.data().continuation),D=T3({clientMessageId:N,playerOffsetMs:n,pageContext:f()});return new Promise(function(h,T){_.bj(Y,{form:{formData:D},commandController:{onSuccess:function(WF,dK){h(dK)},
onServerError:function(WF,dK){T(dK.error)}}})})};
m=iYj(H.pendingStateKey());m(!0);oA8("#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");W(!1);_.zj(v,2);return v.yield(L(),4);case 4:_.xD(v,3);break;case 2:z=_.eG(v),(C=(c=H).onError)==null||C.call(c,z);case 3:m(!1),_.DO(v)}})});
return _.Z(_.K,{cond:M,then:function(){return _.Z("div",{class:"ytwYouChatChipsDataChipWrapper"},_.Z("button",{el:U,class:"ytwYouChatChipsDataChip","data-disabled":H.disabled,"data-transparent-loading":d,"on:click":J,tabindex:0},w))}})},"Kj");var gLj=_.r(function(H){var U=H.data;var A=H.initiallyExpanded;var M=function(){var J;return(J=U().conversationResourceData)==null?void 0:J.learningGuideData};
H=_.b(_.md(function(){var J;return(J=A==null?void 0:A())!=null?J:!1}));
var W=H.next().value,w=H.next().value,d=function(){var J,F=_.p((J=M())==null?void 0:J.expandButton,_.ot);F&&_.uZ(_.k$(),{data:F});w(!0)},O=_.Ja(function(){var J,F;
return(F=(J=M())==null?void 0:J.sections)!=null?F:[]},void 0,"V7sYqc"),f=_.Ja(function(){return O().length>4},void 0,"GFFPnd");
H=_.Ja(function(){var J;return!W()&&f()&&(J=M())!=null&&J.expandButton?O().slice(0,4):O()},void 0,"Rbi7Ke");
return _.Z("yt-conversation-resource-view-model",{class:_.CG("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.Z(_.YY,{data:H},{expandableMetadataViewModel:_.BP5}),_.Z(_.K,{cond:function(){return f()&&!W()},
then:function(){return _.Z("div",{id:"showMoreButton"},_.Z(_.YY,{data:function(){var J;return(J=M())==null?void 0:J.expandButton}},{buttonViewModel:function(J){return _.Z(_.yJ,{data:J.data,
onClick:d})}}))}}))},"Lj");var aZm=_.r(function(H){var U=_.S("web_enable_youchat_ux_changes"),A=function(){var D,h;return((D=H.data().text)==null?void 0:D.content)||((h=H.data().textContent)==null?void 0:h.content)||""},M=function(){var D,h;
return(D=H.data().webData)==null?void 0:(h=D.textResult)==null?void 0:h.content},W=_.lx().resolve(_.JF),w=_.Bo(),d=function(){return H.data().chatResponseStyle},O=function(){return!H.data().transparentBackground},f=function(){return H.data().rightAlignThumbs},J=function(){return H.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||H.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"||!!H.data().icon},
F=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:J()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:H.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},P=function(){var D,h;
return H.data().webData||((D=H.data().text)==null?void 0:D.content)||H.data().videoResultsData||H.data().conversationResourceViewModel||H.data().quiz||H.data().yoututorQuiz||H.data().richContent||H.data().content||((h=H.data().textContent)==null?void 0:h.content)},n=function(){return!!H.data().sectionHeader||P()},N=function(){return H.data().hideIcon||d()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||d()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?!1:n()},L=function(){var D;
return(D=H.data().videoResultsData)==null?void 0:D.videoShelf},m=function(){var D;
return(D=H.data().webData)==null?void 0:D.sourcesShelf},z=function(){return d()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||d()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:H.data().thumbsDownViewModel&&H.data().thumbsUpViewModel},c=function(){return _.p(H.data().thumbsUpViewModel,_.Pc)},C=function(){return _.p(H.data().thumbsDownViewModel,_.Pc)},v=function(){return J()};
_.pA(function(){requestAnimationFrame(function(){var D;(D=H.shouldAnimateIcon)!=null&&D.call(H)&&OYp(w.lottieEl)})});
var Y={};return _.Z("you-chat-item-view-model",{class:_.CG("ytwYouChatItemViewModelYouChatItemViewModel",(Y.ytwYouChatItemViewModelColumnLayout=v,Y.ytwYouChatItemViewModelYouChatItemViewModelNoZIndex=U,Y)),style:_.rA({"min-height":function(){var D,h;return wl5((D=H.containerHeight)==null?void 0:D.call(H),(h=H.isLastItem)==null?void 0:h.call(H))}}),
"data-target-id":function(){return H.data().id||""}},_.Z(_.K,{cond:function(){return H.data().removeIcon||J()&&!N()?!1:n()},
then:function(){return _.Z("div",{"aria-hidden":"true"},_.Z(_.K,{cond:function(){return H.data().icon},
then:function(D){var h={};return _.Z(_.nG,{data:D,className:_.CG("ytwYouChatItemViewModelIcon",(h.ytwYouChatItemViewModelIconVertical=v,h)),alt:""})},
else:function(){var D={};return _.Z(_.lK,{className:_.CG("ytwYouChatItemViewModelIcon",(D.ytwYouChatItemViewModelRtl=W==="rtl",D.ytwYouChatItemViewModelHidden=function(){return!N()},D)),
animationName:"YOUCHAT_ICON",data:F,animationRef:w})}}))}}),_.Z(_.K,{cond:n,
then:function(){var D={};return _.Z("div",{class:_.CG("ytwYouChatItemViewModelHost",(D.ytwYouChatItemViewModelHostNoPadding=function(){return!!H.data().sectionHeader&&!P()},D.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return d()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},D.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return d()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},D.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return d()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
D.ytwYouChatItemViewModelGradientBackground=O,D.ytwYouChatItemViewModelHostAlignStart=function(){return!J()},D.ytwYouChatItemViewModelHostDefaultFlex=function(){return!J()},D)),
role:"alert"},_.Z(_.K,{cond:A,then:function(h){return _.Z(_.pP,{text:h,wrapCodeBlocks:!0})}}),_.Z(_.YY,{data:function(){return H.data().sectionHeader}},{sectionHeaderViewModel:function(h){var T={};
return _.Z(_.vv,{data:h.data,className:_.CG("ytwYouChatItemViewModelSectionHeader",(T.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!H.data().sectionHeader&&!P()},T)),
forceSmallLayout:!0})}}),_.Z(_.K,{cond:M,
then:function(h){return _.Z(_.pP,{text:h,wrapCodeBlocks:!0})}}),_.Z(_.K,{cond:L,
then:function(){return _.Z("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.Z(_.YY,{data:function(){var h;return(h=H.data().videoResultsData)==null?void 0:h.videoShelf}},{horizontalShelfViewModel:function(h){return _.Z(_.NH,{data:h.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.Z(_.K,{cond:m,
then:function(){return _.Z("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.Z(_.YY,{data:function(){var h;return(h=H.data().webData)==null?void 0:h.sourcesShelf}},{horizontalShelfViewModel:function(h){return _.Z(_.NH,{data:h.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.Z(_.YY,{data:function(){return H.data().conversationResourceViewModel}},{conversationResourceViewModel:gLj}),_.Z(_.YY,{data:function(){return H.data().quiz}},{learningJourneyQuizViewModel:_.ihY}),_.Z(_.YY,{data:function(){return H.data().yoututorQuiz}},{yoututorQuizViewModel:L25}),_.Z(_.YY,{data:function(){return H.data().richContent}},{cardViewModel:o7h,
linearLayoutViewModel:_.sE}),_.Z(_.YY,{data:function(){return H.data().content}},{cardViewModel:o7h,
yoututorQuizViewModel:L25,linearLayoutViewModel:_.sE,learningJourneyQuizViewModel:_.ihY,conversationResourceViewModel:gLj}),_.Z(_.K,{cond:z,then:function(){return _.Z(REB,{thumbsUp:c,thumbsDown:C,rightAlignThumbs:f})}}))}}),_.Z(_.K,{cond:function(){return H.data().chipsData},
then:function(D){return _.Z(m88,{data:D,disabled:H.pending,onError:H.onError})}}))},"Nj");
aZm.idomCompat={callbacks:{onError:!0,onSend:!0}};_.x8p=_.r(function(H){var U=function(){var w;return((w=_.lx().resolve(_.$V(_.qF)))==null?0:w())&&H.data().darkThemeAnimation?ZYY(H.data().darkThemeAnimation):H.data().animation?ZYY(H.data().animation):H.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},A=_.Bo(),M=_.lx().resolve(_.JF);
_.pA(function(){requestAnimationFrame(function(){var w;(w=A.lottieEl)==null||w.addEventListener("DOMLoaded",function(){var d;(d=H.onLottieLoaded)==null||d.call(H)})})});
var W={};return _.Z("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){return H.data().targetId||""},
"aria-label":function(){return H.data().loadingAnimationA11yLabel||""},
role:function(){return H.data().loadingAnimationA11yLabel?"progressbar":void 0},
style:_.rA({"min-height":function(){var w,d;return wl5((w=H.containerHeight)==null?void 0:w.call(H),(d=H.isLastItem)==null?void 0:d.call(H))}})},_.Z(_.lK,{"aria-hidden":"true",
className:_.CG((W.ytChatLoadingViewModelRtl=M==="rtl",W)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:U()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||U()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:U()}}},
animationRef:A}))},"Pj");_.zEy=_.r(function(H){var U=function(){return H.data().choiceSelectedText};
return _.Z("yt-chat-user-turn-view-model",{class:"ytChatUserTurnViewModelHost",style:_.rA({"min-height":function(){var A,M;return wl5((A=H.containerHeight)==null?void 0:A.call(H),(M=H.isLastItem)==null?void 0:M.call(H))}}),
"data-target-id":function(){var A;return(A=H.data().itemTargetId)!=null?A:""}},_.Z(_.K,{cond:U,
then:function(){return _.Z("div",{class:"ytChatUserTurnViewModelChoiceSelected"},_.Z(_.Pb,{text:U}))}}),_.Z("div",{class:_.CG("ytChatUserTurnViewModelUserMessage",function(){return f9B(H.data())})},function(){return H.data().text}))},"Qj");var CsY=_.r(function(H){var U=_.b((0,_.pG3)(H.data)).next().value,A=function(){var M,W;return(W=(M=U().contents)==null?void 0:M.length)!=null?W:0};
return _.Z("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return H.data().targetId||""},
"aria-busy":function(){var M,W;return(W=(M=U().contents)==null?void 0:M.some(function(w){return!!w.chatLoadingViewModel}))!=null?W:!1}},_.Z(_.YY,{data:function(){return H.data().header}},{chipBarViewModel:_.R32,
sectionHeaderViewModel:_.vv}),_.Z(_.YY,{data:function(){return U().contents}},{accordionViewModel:_.uE$,
alertBannerViewModel:_.CJH,chatLoadingViewModel:function(M,W){return _.Z(_.x8p,{data:M.data,containerHeight:H.containerHeight,isLastItem:function(){return W()===A()-1}})},
chatUserTurnViewModel:function(M,W){return _.Z(_.zEy,{data:M.data,containerHeight:H.containerHeight,isLastItem:function(){return W()===A()-1}})},
feedbackPromptViewModel:ptf,gridShelfViewModel:function(M){return _.Z(_.KP,{data:M.data,shouldUseOwnContainerSize:!0,marginSettings:H.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.MNX,linearLayoutViewModel:_.sE,lockupViewModel:function(M){return _.Z(_.YN,{data:M.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:H.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.vv,videoOverviewViewModel:_.NKm,youChatItemViewModel:function(M,W){return _.Z(aZm,{data:M.data,pending:!1,containerHeight:H.containerHeight,isLastItem:function(){return W()===A()-1}})}}))},"Rj");_.LG(_.r(function(H){var U=_.b((0,_.pG3)(H.data)).next().value,A=_.b(_.vq()),M=A.next().value;A=A.next().value;var W=_.sB(A);A=_.b(_.iB(void 0,void 0,"fqbUqd"));var w=A.next().value,d=A.next().value,O=function(){var f;return _.p((f=H.data().sectionListLayoutConfiguration)==null?void 0:f.layoutConfiguration,Flm)};
_.LA(function(){var f,J=(f=W.value)==null?void 0:f.clientWidth;f=O()?_.VSE(J,O()):void 0;d(f)});
A={};return _.Z("yt-section-list-renderer",{class:_.CG("ytSectionListRendererHost",H.className,(A.ytSectionListRendererHostOverscrollContain=function(){var f;return(f=H.overscrollContain)==null?void 0:f.call(H)},A)),
el:W,"data-target-id":function(){return H.data().targetId||""}},_.Z(_.YY,{data:function(){return U().contents}},{itemSectionRenderer:function(f){return _.Z(CsY,{data:f.data,
containerLayoutConfig:w,marginSettings:H.marginSettings,containerHeight:function(){return M.height()}})}}))},"Sj"),"yt-section-list-renderer",{props:{data:_.sY,
className:_.Ne,marginSettings:_.sY,overscrollContain:_.sY}});_.LG(_.r(function(H){var U=function(){return _.p(H.data().inputComposerViewModel,oj$)},A=_.Gk(_.fl.currentPageSubTypeSelector),M=_.Gk(_.fl.persistentPanelVisibleSelector),W=_.b(_.iB(!1,void 0,"RXGzYc")),w=W.next().value,d=W.next().value;
W=_.b(_.iB(!1,void 0,"oyonKd"));var O=W.next().value,f=W.next().value,J=function(){m(!0);var PF;_.uj(((PF=U())==null?void 0:PF.onSubmitCommand)||{})},F=function(){if(M()&&!O()){var PF;
(PF=_.yU())==null||PF.removeCueRange("aic-proactive");d(!1);f(!0);J();_.bj(hMX(U().endOfVideoContinuation),{form:{formData:T3({clientMessageId:"youchat-"+Date.now(),pageContext:SN()})},commandController:{onSuccess:function(){m(!1)},
onServerError:function(){_.bj(Yn5(v()));m(!1)}}})}},P=function(){var PF=_.yU();
if(PF&&!w()&&!O()){var BF=PF.getDuration();BF>60&&(PF.addCueRange("aic-proactive",BF-60,BF-20),d(!0))}},n=function(){var PF;
return((PF=U())==null?void 0:PF.youchatPendingResponseEntityKey)||""},N=_.$Y(Xl$,n),L=function(){var PF;
return!((PF=N())==null||!PF.isPendingResponse)},m=function(PF){iYj(n())(PF)};
W=_.b(_.iB(!0,void 0,"umCoCf"));var z=W.next().value,c=W.next().value,C=function(){var PF,BF;var kc=_.p((BF=U())==null?void 0:BF.inputFormField,IuY);return kc==null?void 0:(PF=kc.contentProperties)==null?void 0:PF.placeholderText},v=function(){return U().sectionTargetId||"youchat_messages_section"};
W=_.NU("yt-chat-input-view-model");var Y=_.nA("textarea"),D=_.$Y(bYh,"chat_input_view_model_state"),h=dTm(),T=function(){var PF;return!((PF=D())==null||!PF.value)},WF=function(){return H.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},dK=function(){var PF;
(PF=_.yU())==null||PF.removeCueRange("aic-proactive");d(!1);f(!1);var BF;_.S("enable_navigational_proactive_messages_on_ai_companion")&&((BF=U())==null?0:BF.navigationContinuation)&&M()&&(J(),_.bj(hMX(U().navigationContinuation),{form:{formData:T3({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:Kup(),pageContext:SN()})},commandController:{onSuccess:function(){m(!1)},
onServerError:function(){_.bj(Yn5(v()));m(!1)}}}))},SN=function(){var PF;
return(PF=_.lx().resolve(_.$V(_.iT)))==null?void 0:_.pLp(PF,A())};
_.LA(function(){if(_.tN("enable_ai_chat_controller")){var PF;(PF=_.lx().resolve(_.$V(_.iT)))==null||PF.init(H.data().environment)}else if(PF=Fu5(H.data()),!T()&&PF){var BF;((BF=U())==null?0:BF.setPendingResponseOnWelcome)&&m(!0);_.bj(PF,{form:{formData:T3({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:Kup(),pageContext:SN()})}});h(!0)}var kc=v(),G8=_.lx().resolve(_.$V(_.l1)),Pr=function(){_.GB.remove(kc);if(_.tN("enable_ai_chat_controller")){var Yc;(Yc=_.lx().resolve(_.$V(_.iT)))!=null&&Yc.environment===
"CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(Yc.lastWelcomeContinuationSent=void 0)}else h(!1)},Z3=function(){_.X$(function(){if(WF()&&(dK(kc),A()==="watch")){var Yc=_.yU();
Yc&&(Yc.addEventListener("onStateChange",P),Yc.addEventListener("onCueRangeEnter",F))}})};
BF=_.S("enable_ai_companion")?!WF():!0;G8==null||G8.addEventListener("yt-navigate-start",Pr,{once:BF});G8==null||G8.addEventListener("yt-navigate-finish",Z3,{once:BF});_.m4(function(){G8==null||G8.removeEventListener("yt-navigate-start",Pr);G8==null||G8.removeEventListener("yt-navigate-finish",Z3);var Yc=_.yU();Yc&&(Yc.removeEventListener("onCueRangeEnter",F),Yc.removeEventListener("onStateChange",P),Yc.removeCueRange("aic-proactive"))})});
_.Em(function(){if(_.tN("enable_ai_chat_controller")){var PF=Fu5(H.data());if(PF){var BF,kc=((BF=U())==null?0:BF.setPendingResponseOnWelcome)?m:void 0,G8;(G8=_.lx().resolve(_.$V(_.iT)))==null||b35(G8,{command:PF,setPending:kc})}}},"SXTMBe");
var o_=function(){var PF=Y.value.value;Y.value.value="";JNm(Y.value);var BF,kc=((BF=U())==null?void 0:BF.enableGradientColorBg)||!1,G8;BF=qnB(v(),PF,kc,(G8=U())==null?void 0:G8.chatUserTurnBackgroundStyle);_.bj(BF);J();var Pr,Z3,Yc;G8=(Yc=_.ij((Pr=H.data())==null?void 0:Pr.sendUserQueryCommand))!=null?Yc:hMX((Z3=U())==null?void 0:Z3.continuation);_.bj(G8,{form:{formData:T3({clientMessageId:"youchat-"+Date.now(),userInputText:PF,playerOffsetMs:Kup(),pageContext:SN()})},commandController:{onSuccess:function(){m(!1)},
onServerError:function(){_.bj(Yn5(v()));m(!1)}}})};
return _.Z("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:W},_.Z("div",{class:"chatInputViewModelChatInputWrapper"},_.Z("form",{class:"chatInputViewModelChatInputForm"},_.Z("textarea",{class:"chatInputViewModelChatInput",el:Y,"on:keydown":_.c$(function(PF){var BF=L()||!1;JNm(Y.value);BF||PF.key!=="Enter"||PF.shiftKey||(PF.preventDefault(),o_());return!1}),
"on:keyup":_.c$(function(){c(Y.value.value.length===0);return!1}),
"aria-label":function(){if(L()){var PF,BF;return((PF=U())==null?void 0:(BF=PF.loadingConfig)==null?void 0:BF.loadingAnimationA11yLabel)||""}return C()},
placeholder:C,rows:1}),_.Z(_.yJ,{data:function(){return _.p(H.data().sendButton,_.ot)},
onClick:function(PF){PF.preventDefault();o_();c(Y.value.value.length===0)},
buttonOverrides:function(){return{disabled:z()||L()}}})),_.Z(_.Pb,{className:"chatInputViewModelChatDisclaimer",
text:function(){var PF;return H.data().disclaimerText||((PF=_.p(H.data().disclaimer,_.gvz))==null?void 0:PF.text)}})))},"Uj"),"yt-chat-input-view-model",{props:{data:_.sY}});var th5=["engagement-panel-clip-create","engagement-panel-clip-view"],cYX=0,Mw=function(){var H=_.B.apply(this,arguments)||this;var U;H.headerData=(U=H.data)==null?void 0:U.header;H.darkerPanels=_.S("web_watch_darker_panels");H.matchContentTheme=_.S("web_watch_panel_content_match_theme");H.disableAutoFill=!1;H.isFullscreen=!1;H.isTheaterMode=!1;H.liveChatReplyPanel=!1;H.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");H.disableBackdropFilter=_.S("web_disable_backdrop_filter");H.isPersistentPanel=
!1;H.trackEngagementPanelVisibility=_.S("web_watch_track_engagement_panel_visibility");H.overscrollContain=!1;H.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 H};
_.R(Mw,_.B);_.X=Mw.prototype;
_.X.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},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(H){var U;return(H==null?void 0:(U=H.webComponentHint)==null?void 0:U.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},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"}}}};
_.X.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var H;if((H=this.hostElement.parentElement)==null?0:H.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.X.detached=function(){this.updateTheaterDisablement()};
_.X.showPanel=function(){var H=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.Fl.addJob(function(){H.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.X.maybeScrollToItemSection=function(H){var U=this,A,M=H==null?void 0:(A=H.sectionListEngagementPanelExtras)==null?void 0:A.scrollToItemSectionIdentifier;M&&_.Fl.addJob(function(){var W;(W=U.sectionListRendererElement)==null||W.scrollToItemSection(M)},8)};
_.X.hidePanel=function(){var H=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.Fl.addJob(function(){H.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.X.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.X.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.X.updatePanel=function(H,U,A,M){var W=this;if((H=H==null?void 0:H.engagementPanelSectionListRenderer)||M){if(H){M=H.header;var w=H.content,d=H.footer,O=H.targetId,f=H.onShowCommands;H=H.onHideCommands;O&&this.set("data.targetId",O);M&&this.set("data.header",M);w&&this.set("data.content",w);d&&this.set("data.footer",d);_.S("enable_on_visibility_change_commands_for_panels")&&(f&&this.set("data.onShowCommands",f),H&&this.set("data.onHideCommands",H))}else M&&(H=M.content,w=M.secondaryHeaderContent,
d=M.targetId,M=M.loggingDirectives,d&&this.set("data.targetId",d),H&&this.set("data.content",H),M&&_.S("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",M),w&&(this.secondaryHeaderData=w));this.updateChildVisibilityProperties();if(U){var J;_.S("kevlar_update_panel_focus_scroll_killswitch")||(J={preventScroll:!0});this.focus(J)}_.rV(this,function(){_.cg(W.hostElement,"yt-refit");W.maybeScrollToItemSection(A)})}};
_.X.computeHeaderData=function(){var H,U=(0,_.dG.unsafeClone)((H=this.data)==null?void 0:H.header);if(U){H=new _.me(Object.keys(U)[0]);var A=_.p(U,H),M=_.p(this.secondaryHeaderData,H);M&&_.Ap(U,H,Object.assign({},M,A))}return U};
_.X.getReloadContinuation=function(){var H,U,A,M=_.b(((H=this.data)==null?void 0:(U=H.content)==null?void 0:(A=U.sectionListRenderer)==null?void 0:A.continuations)||[]);for(H=M.next();!H.done;H=M.next())if(H=H.value,H.reloadContinuationData)return H.reloadContinuationData.continuation};
_.X.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var H;((H=this.data)==null?0:H.targetId)&&(H=this.contentElement.firstElementChild)&&H.setAttribute("panel-target-id",this.data.targetId)};
_.X.forwardPopupClosedToFlowRootRenderer=function(){var H=_.c4(this.hostElement).querySelector("ytd-flow-root-renderer");if(H&&this.hostElement.closest("ytd-popup-container"))H.onPopupClosed()};
_.X.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var H;if(!th5.includes((H=this.theaterDisablementPanelIdentifier)!=null?H:""))if(H=_.S("web_watch_imax_theater_mode")&&this.isTheaterMode,H=_.S("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||H,_.S("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||H){var U;this.visibility=(U=this.data)==null?void 0:U.visibility;var A;this.trackEngagementPanelVisibility&&((A=this.data)==null?void 0:A.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var M,W,w,d;this.contentEmpty=!!(((M=this.data)==null?0:(W=M.content)==null?0:W.structuredDescriptionContentRenderer)&&Object.keys((w=this.data)==null?void 0:(d=w.content)==null?void 0:
d.structuredDescriptionContentRenderer).length===0);(U=_.lx().resolve(_.Mx))&&U.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.X.isTheaterModeChanged=function(){_.S("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.X.isFullscreenChanged=function(){_.S("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.X.focus=function(H){if(this.header)this.header.focus(H);else{var U;(U=_.c4(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||U.focus(H)}};
_.X.visibilityChanged=function(){if(!_.S("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var H=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",U=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",A=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",M=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W=M||!this.lastVisibility,w,d,O,f=((w=this.data)==null?void 0:(d=w.identifier)==null?void 0:
d.tag)||((O=this.data)==null?void 0:O.panelIdentifier);if(H&&W){var J;if((J=this.data)==null?0:J.onShowCommands)if(_.S("enable_on_visibility_change_commands_for_panels"))for(U=_.b(this.data.onShowCommands),A=U.next();!A.done;A=U.next())this.ytComponentBehavior.resolveCommand(A.value);else _.eb(this.hostElement,this.data.onShowCommands,this.hostElement);f&&_.Lq().dispatch(_.zQ({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:f}}))}else if(U&&A){var F;if((F=this.data)==null?0:F.onHideCommands)if(_.S("enable_on_visibility_change_commands_for_panels"))for(U=
_.b(this.data.onHideCommands),A=U.next();!A.done;A=U.next())this.ytComponentBehavior.resolveCommand(A.value);else _.eb(this.hostElement,this.data.onHideCommands,this.hostElement);f&&_.Lq().dispatch(_.zQ({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:f}}))}H&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*cYX++));_.S("kevlar_watch_focus_on_engagement_panels")&&H&&M&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.X.notifyVisibilityChanged=function(H){var U;_.Bg(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,H,(U=this.data)==null?void 0:U.targetId]);if(_.S("autonav_pause_for_comments_ep")){var A;_.cg(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:H==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(A=this.data)==null?void 0:A.targetId})}};
_.X.updateTheaterDisablement=function(){if(!_.S("kevlar_watch_theater_disablement_killswitch")){var H=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&th5.includes(H)&&!_.S("watch_next_grid_ignore_disallowed_panels")){var U=_.As(_.Lq().getState()),A=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";H!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():A?(this.originalTheaterState===void 0&&(this.originalTheaterState=U,this.theaterDisablementPanelIdentifier=
H),U&&_.yr(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.X.clearTheaterDisablement=function(){_.yr(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.X.updateChildVisibilityProperties=function(){this.hostElement||_.S("kevlar_panel_property_init_killswitch")||this._enableProperties();var H=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=H);var U,A=(U=this.headerElement)==null?void 0:U.firstElementChild;if(A&&!this.adHeaderImageLockupViewModel){U=H==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";A.collapsed=U;A=_.c4(A).querySelector("#visibility-button");if(!A)return;(A=A.firstElementChild)&&
A.polymerController.is==="ytd-toggle-button-renderer"&&A.polymerController.data.isToggled!==U&&A.polymerController.set("data.isToggled",U)}var M;if(U=(M=this.contentElement)==null?void 0:M.firstElementChild)if(H&&H!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")U.removeAttribute("panel-content-visible");else{U.setAttribute("panel-content-visible","");var W;(W=U.markDirty)==null||W.call(U)}};
_.X.onYtChangeEngagementPanelVisibilityAction=function(H){var U=this,A,M=(A=this.data)==null?void 0:A.targetId,W,w,d;A=((W=this.data)==null?void 0:(w=W.identifier)==null?void 0:w.tag)||((d=this.data)==null?void 0:d.panelIdentifier);var O=_.p(H,_.TgH),f;H=M&&(O==null?void 0:O.targetId)===M||A&&(O==null?void 0:(f=O.panelIdentifier)==null?void 0:f.tag)===A;this.dialog&&H&&(O==null?void 0:O.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(M==="engagement-panel-comments-section"?_.yr(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.yr(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",A]));!_.S("kevlar_use_engagement_panel_management_component")&&H&&(M=O.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!M?_.Fl.addJob(function(){U.visibility=O.visibility},2,this.hideDelayMs):this.visibility=O.visibility,O.visibility&&this.notifyVisibilityChanged(O.visibility))};
_.X.onYtScrollToEngagementPanelCommand=function(H){var U,A=(U=this.data)==null?void 0:U.targetId,M,W,w;U=((M=this.data)==null?void 0:(W=M.identifier)==null?void 0:W.tag)||((w=this.data)==null?void 0:w.panelIdentifier);H=_.p(H,_.iHH);var d;(A&&(H==null?void 0:H.targetId)===A||U&&(H==null?void 0:(d=H.panelIdentifier)==null?void 0:d.tag)===U)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.yr(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.X.attachVEs=function(H){var U,A;(H==null?0:(U=H.content)==null?0:(A=U.productListRenderer)==null?0:A.trackingParams)&&_.k$().graftServerVe(H.content.productListRenderer.trackingParams);var M,W;(H==null?0:(M=H.content)==null?0:(W=M.transcriptRenderer)==null?0:W.trackingParams)&&_.k$().graftServerVe(H.content.transcriptRenderer.trackingParams)};
_.X.onYtUpdateEngagementPanelAction=function(H){var U,A=(U=this.data)==null?void 0:U.targetId;H=_.p(H,f8Y);A&&(H==null?void 0:H.targetId)===A&&(this.updatePanel({engagementPanelSectionListRenderer:{header:H==null?void 0:H.header,content:H==null?void 0:H.content}},!1),this.attachVEs(H))};
_.X.onYtShowEngagementPanelScrimAction=function(H){var U,A=(U=this.data)==null?void 0:U.targetId;H=_.p(H,Zjh);A&&(H==null?void 0:H.engagementPanelTargetId)===A&&(this.scrimmed=!0)};
_.X.onYtHideEngagementPanelScrimAction=function(H){var U,A=(U=this.data)==null?void 0:U.targetId;H=_.p(H,X65);A&&(H==null?void 0:H.engagementPanelTargetId)===A&&(this.scrimmed=!1)};
_.X.getIdentifier=function(){var H,U,A;return((H=this.data)==null?void 0:H.panelIdentifier)||((U=this.data)==null?void 0:(A=U.identifier)==null?void 0:A.tag)};
_.X.getSurface=function(){var H,U;return(H=this.data)==null?void 0:(U=H.identifier)==null?void 0:U.surface};
_.D5.Object.defineProperties(Mw.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var H=this.getIdentifier();return H==="engagement-panel-youchat"||H==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
Mw.prototype.visibilityChanged=Mw.prototype.visibilityChanged;Mw.prototype.isFullscreenChanged=Mw.prototype.isFullscreenChanged;Mw.prototype.isTheaterModeChanged=Mw.prototype.isTheaterModeChanged;Mw.prototype.dataChanged=Mw.prototype.dataChanged;Mw.prototype.forwardPopupClosedToFlowRootRenderer=Mw.prototype.forwardPopupClosedToFlowRootRenderer;Mw.prototype.onYtRendererstamperFinished=Mw.prototype.onYtRendererstamperFinished;
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Mw.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Mw.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Mw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Mw.prototype,"ytdReduxBehavior",void 0);
_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],Mw.prototype,"ytEventForwardingBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Mw.prototype,"data",void 0);_.G([_.y({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.q("design:type",Object)],Mw.prototype,"headerData",void 0);_.G([_.y(),_.q("design:type",Object)],Mw.prototype,"secondaryHeaderData",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Mw.prototype,"visibility",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Mw.prototype,"contentEmpty",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Mw.prototype,"scrimmed",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Mw.prototype,"dialog",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Mw.prototype,"dropdown",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Mw.prototype,"darkerPanels",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Mw.prototype,"matchContentTheme",void 0);_.G([_.y(),_.q("design:type",Object)],Mw.prototype,"disableAutoFill",void 0);_.G([_.y({reflectToAttribute:!0,value:_.S("optimal_reading_width_comments_ep")}),_.q("design:type",Boolean)],Mw.prototype,"optimalReadingWidthComments",void 0);_.G([_.y(),_.q("design:type",Number)],Mw.prototype,"hideDelayMs",void 0);
_.G([_.y({selector:_.MF,reflectToAttribute:!0}),_.q("design:type",Object)],Mw.prototype,"isFullscreen",void 0);_.G([_.y({selector:_.As,reflectToAttribute:!0}),_.q("design:type",Object)],Mw.prototype,"isTheaterMode",void 0);_.G([_.y(),_.q("design:type",Number)],Mw.prototype,"showDelayMs",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data.targetId"),_.q("design:type",Object),_.q("design:paramtypes",[])],Mw.prototype,"targetId",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Mw.prototype,"webSize",null);_.G([_.y(),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Mw.prototype,"hideFooterBorder",null);_.G([_.y(),_.q("design:type",Object)],Mw.prototype,"isWatch",void 0);_.G([_.y(),_.q("design:type",Object)],Mw.prototype,"originalTheaterState",void 0);_.G([_.y(),_.q("design:type",Object)],Mw.prototype,"theaterDisablementPanelIdentifier",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Mw.prototype,"isWatchWhilePanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Mw.prototype,"shortsPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Mw.prototype,"liveChatEngagementPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Mw.prototype,"learningChatEngagementPanel",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Mw.prototype,"liveChatReplyPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Mw.prototype,"enableAnchoredPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Mw.prototype,"disableBackdropFilter",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Mw.prototype,"isPersistentPanel",void 0);_.G([_.y(),_.q("design:type",Object)],Mw.prototype,"trackEngagementPanelVisibility",void 0);
_.G([_.y(),_.q("design:type",Object)],Mw.prototype,"overscrollContain",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Mw.prototype,"isAiCompanionPanel",null);_.G([_.hG("#header"),_.q("design:type",HTMLElement)],Mw.prototype,"headerElement",void 0);_.G([_.hG("#header > *"),_.q("design:type",HTMLElement)],Mw.prototype,"header",void 0);_.G([_.hG("ytd-section-list-renderer"),_.q("design:type",Object)],Mw.prototype,"sectionListRendererElement",void 0);
_.G([_.hG("panel-ad-header-image-lockup-view-model"),_.q("design:type",HTMLElement)],Mw.prototype,"adHeaderImageLockupViewModel",void 0);_.G([_.hG("#content"),_.q("design:type",HTMLElement)],Mw.prototype,"contentElement",void 0);_.G([_.Gl("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Mw.prototype,"onYtRendererstamperFinished",null);
_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Mw.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.G([_.jk("data","isFullscreen","isTheaterMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Mw.prototype,"dataChanged",null);_.G([_.Ya("isTheaterMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Mw.prototype,"isTheaterModeChanged",null);
_.G([_.Ya("isFullscreen"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Mw.prototype,"isFullscreenChanged",null);_.G([_.Ya("visibility"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Mw.prototype,"visibilityChanged",null);_.G([_.dX({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Mw);
_.e(Mw,"ytd-engagement-panel-section-list-renderer",function(){if(U8j!==void 0)return U8j;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return U8j=H},{mode:2});var yYk;var Wf=function(){var H=_.B.apply(this,arguments)||this;H.rounded=!0;H.pageAttachedTo=void 0;H.currentRequestResolver=void 0;H.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return H};
_.R(Wf,_.B);Wf.prototype.attached=function(){this.pageAttachedTo=_.lx().resolve(_.SI).getCurrentPage();_.cg(this.hostElement,"yt-player-attached",this.player)};
Wf.prototype.detached=function(){var H;if((H=this.pageAttachedTo)==null?0:H.hostElement)_.cg(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Wf.prototype.dataChanged=function(){var H=this,U;if(((U=this.data)==null?0:U.inlinePlaybackEndpoint)&&!_.S("web_channel_imp_ks")){this.currentRequestResolver&&this.currentRequestResolver.reject();U=this.data.inlinePlaybackEndpoint;var A=_.lx().resolve(_.IE),M={};_.lx().resolve(_.qe);M.lact=_.$B();var W=new _.r1;this.currentRequestResolver=W;W.promise.then(function(w){var d={autoplay:!0};!_.S("miniplayer_stop_channel_video_autoplay_killswitch")&&_.lx().resolve(_.ZB).isMiniplayerActive()&&(d.pause_at_start=
!0,d.autoplay=!1);w&&H.player.loadVideoWithPlayerResponse(w,d)});
gCB(A,{endpoint:U,startPlaybackInMutedState:!1},M).then(function(w){W.resolve(w)}).catch(function(){})}else if((A=this.data)==null?0:A.videoId)U={video_id:this.data.videoId,
autoplay:!0},!_.S("miniplayer_stop_channel_video_autoplay_killswitch")&&_.lx().resolve(_.ZB).isMiniplayerActive()&&(U.pause_at_start=!0,U.autoplay=!1),this.player.loadVideoWithPlayerVars(U)};
Wf.prototype.handleSignalActionPausePlayer=function(){_.RL().pause()};
Wf.prototype.dataChanged=Wf.prototype.dataChanged;_.G([_.y(),_.q("design:type",Object)],Wf.prototype,"data",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Wf.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Wf.prototype,"rounded",void 0);_.G([_.hG("#player"),_.q("design:type",Object)],Wf.prototype,"player",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wf.prototype,"dataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Wf);
_.e(Wf,"ytd-channel-video-player-renderer",function(){if(yYk!==void 0)return yYk;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return yYk=H},{mode:1});var B8X;var wR=function(){return _.B.apply(this,arguments)||this};
_.R(wR,_.B);wR.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.KU(_.c4(this.hostElement).querySelector("#text"),_.Qk2(_.UuB,this.data.companionLegalText))};
wR.prototype.computeAutoScrollEnabled=function(H,U){return H&&!U};
wR.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
wR.prototype.onToggleTap=function(){this.expanded=!this.expanded};
wR.prototype.expandedChanged=wR.prototype.expandedChanged;wR.prototype.dataChanged=wR.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.G([_.g(X2h),_.q("design:type",Object)],wR.prototype,"ytdAutoScrollBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],wR.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],wR.prototype,"expanded",void 0);
_.G([_.y({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.q("design:type",Boolean)],wR.prototype,"autoScrollEnabled",void 0);_.G([_.y(),_.q("design:type",String)],wR.prototype,"expanderIcon",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wR.prototype,"dataChanged",null);
_.G([_.Ya("expanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wR.prototype,"expandedChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],wR);
_.e(wR,"ytd-companion-legal-text-renderer",function(){if(B8X!==void 0)return B8X;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return B8X=H},{mode:1});var rYh;var Xr=function(){var H=_.B.apply(this,arguments)||this;H.buttonUpdate=_.S("web_modern_buttons");H.kevlarWatchGrid=_.S("kevlar_watch_grid");H.centerAlignDescription=_.S("action_companion_center_align_description");H.truncateDomain=_.S("action_companion_truncate_domain");H.enableMonoStyle=_.S("enable_default_mono_cta_migration_web_client");return H};
_.R(Xr,_.B);_.X=Xr.prototype;_.X.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.X.getOnLayoutVisibleCallback=function(){var H=_.tr("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.onLayoutVisibleCallback:null};
_.X.getLayoutId=function(){var H=_.tr("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.layoutId:null};
_.X.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",Xr.JSC$21235_DEFAULT_AD_BADGE_RENDERER);var H=this.getOnLayoutVisibleCallback();H&&H()}};
_.X.getButtonRenderer=function(H){return H.actionButton&&_.p(H.actionButton,_.f$)?(delete _.p(H.actionButton,_.f$).navigationEndpoint,_.p(H.actionButton,_.f$)):{}};
_.X.onClick=function(H){var U=this;if((!_.S("web_modern_buttons")||!_.ny(_.Lf(H),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){H=_.Ly();var A=this.getLayoutId();H&&A&&_.S("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?H.getPlayerPromise().then(function(M){(new _.Xu(M)).executeCommand(U.data.navigationEndpoint,A)}):_.S("kevlar_companion_resolve_command_killswitch")?_.cg(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.yr(this.hostElement,"yt-companion-ad-clicked",["action-companion",A])}};
_.D5.Object.defineProperties(Xr.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return((H=this.data)==null?0:(U=H.detailsLine)==null?0:(A=U.adRating)==null?0:A.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 H,U,A,M;return((H=this.data)==null?0:(U=H.detailsLine)==null?0:(A=U.adRating)==null?0:(M=A.ratingIcon)==null?0:M.iconType)?_.eq(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M;return((H=this.data)==null?0:(U=H.detailsLine)==null?0:(A=U.texts)==null?0:(M=A[0])==null?0:M.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 H,U;return((H=this.data)==null?0:(U=H.description)==null?0:U.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var H=_.tr("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var H=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return H?H.indexOf("/default_banner")!==-1:!0}}});
Xr.prototype.onClick=Xr.prototype.onClick;Xr.prototype.dataChanged=Xr.prototype.dataChanged;Xr.JSC$21235_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.hP("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Xr.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Xr.prototype,"rendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Xr.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Xr.prototype,"buttonUpdate",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Xr.prototype,"kevlarWatchGrid",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Xr.prototype,"centerAlignDescription",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Xr.prototype,"truncateDomain",void 0);
_.G([_.y({computed:"computeButtonOverride(buttonUpdate)"}),_.q("design:type",Object)],Xr.prototype,"buttonOverride",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Xr.prototype,"enableMonoStyle",void 0);_.G([_.a("data.detailsLine.adRating.ratingText"),_.q("design:type",Object),_.q("design:paramtypes",[])],Xr.prototype,"getRating",null);_.G([_.a("getRating"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Xr.prototype,"computeRatingHidden",null);
_.G([_.a("data.detailsLine.adRating.ratingIcon.iconType"),_.q("design:type",Object),_.q("design:paramtypes",[])],Xr.prototype,"iconType",null);_.G([_.a("data.detailsLine.texts.0.text"),_.q("design:type",Object),_.q("design:paramtypes",[])],Xr.prototype,"getDetailsLine",null);_.G([_.a("getDetailsLine"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Xr.prototype,"computeDetailsLineHidden",null);
_.G([_.a("data.description.text"),_.q("design:type",Object),_.q("design:paramtypes",[])],Xr.prototype,"getDescriptionText",null);_.G([_.a("getDescriptionText"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Xr.prototype,"computeDescriptionTextHidden",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Xr.prototype,"interactionLoggingClientData",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Xr.prototype,"hideBanner",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Xr.prototype,"dataChanged",null);_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],Xr.prototype,"onClick",null);_.G([_.dX({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],Xr);
_.e(Xr,"ytd-action-companion-ad-renderer",function(){if(rYh!==void 0)return rYh;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return rYh=H},{mode:2});var eEX;var D8f;var i5=function(){var H=_.B.apply(this,arguments)||this;H.buttonUpdate=_.S("web_modern_buttons");H.hideLegacyBanner=_.S("enable_dsa_one_click_ata_translators_infeed_elements");H.adInfoButtonStyle="mono";H.adInfoButtonType="text";H.noDotAdBadge=!0;return H};
_.R(i5,_.B);_.X=i5.prototype;_.X.getOnLayoutVisibleCallback=function(){var H=_.tr("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.onLayoutVisibleCallback:null};
_.X.getLayoutId=function(){var H=_.tr("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.layoutId:null};
_.X.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 H=this.data.image.thumbnail.thumbnails[0];this.imageSrc=H.url?_.j3(H.url):void 0;this.imageWidth=H.width||0;this.imageHeight=H.height||0}this.data.clickthroughEndpoint&&_.p(this.data.clickthroughEndpoint,_.gu)&&(H=_.p(this.data.clickthroughEndpoint,_.gu).url,_.S("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
H||"":H?(H=_.j3(H),this.clickThroughUrl=_.hR(H)):this.clickThroughUrl=void 0);(H=this.getOnLayoutVisibleCallback())&&H()}};
_.X.onClick=function(H){_.ny(_.Lf(H),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(H)};
_.X.handleClick=function(){var H=this;this.data&&this.data.clickthroughEndpoint&&(_.cg(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(U){H.macroReplacementBehavior.sendServiceRequestAction([U])}),_.yr(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.X.onLoad=function(){_.Bg(this.hostElement,"yt-refit-popups-action")};
_.D5.Object.defineProperties(i5.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var H=_.tr("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var H=_.tr("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.interactionLoggingClientData:null}}});
i5.prototype.onLoad=i5.prototype.onLoad;i5.prototype.onClick=i5.prototype.onClick;i5.prototype.dataChanged=i5.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],i5.prototype,"rendererBehavior",void 0);_.G([_.g(J5y.YtMacroReplacementBehavior),_.q("design:type",Object)],i5.prototype,"macroReplacementBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],i5.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],i5.prototype,"buttonUpdate",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],i5.prototype,"hideLegacyBanner",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],i5.prototype,"adInfoButtonStyle",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],i5.prototype,"adInfoButtonType",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],i5.prototype,"macros",null);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],i5.prototype,"interactionLoggingClientData",null);_.G([_.y(),_.q("design:type",String)],i5.prototype,"clickThroughUrl",void 0);_.G([_.y(),_.q("design:type",_.$5)],i5.prototype,"imageSrc",void 0);_.G([_.y(),_.q("design:type",Number)],i5.prototype,"imageWidth",void 0);_.G([_.y(),_.q("design:type",Number)],i5.prototype,"imageHeight",void 0);_.G([_.y(),_.q("design:type",Object)],i5.prototype,"noDotAdBadge",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],i5.prototype,"dataChanged",null);_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],i5.prototype,"onClick",null);_.G([_.Gl("load"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],i5.prototype,"onLoad",null);_.G([_.dX({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],i5);
_.e(i5,"ytd-image-companion-renderer",function(){if(D8f!==void 0)return D8f;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return D8f=H},{mode:2});var $8m;var b5=function(){return _.B.apply(this,arguments)||this};
_.R(b5,_.B);_.X=b5.prototype;_.X.dataChanged=function(){this.set("data.adBadge",b5.JSC$21244_DEFAULT_AD_BADGE_RENDERER);if(this.data){var H=this.getOnLayoutVisibleCallback();H&&H()}};
_.X.getOnLayoutVisibleCallback=function(){var H=_.tr("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.onLayoutVisibleCallback:null};
_.X.getLayoutId=function(){var H=_.tr("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.layoutId:null};
_.X.onCompanionClicked=function(H){this.data&&(H.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.yr(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.X.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var H=_.Ly(),U=this.getLayoutId(),A=this.data.clickToAdvSiteEndpoint;H&&U&&_.S("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?H.getPlayerPromise().then(function(M){(new _.Xu(M)).executeCommand(A,U)}):_.cg(this.hostElement,"yt-navigate",{endpoint:A})}};
_.X.sendTrackingPings=function(H){if(H&&H.length!==0&&H[0].loggingUrls&&(H=H[0].loggingUrls.map(this.getBaseUrl)))for(var U=0;U<H.length;U++)_.my(H[U])};
_.X.getBaseUrl=function(H){return H.baseUrl||""};
_.D5.Object.defineProperties(b5.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var H=_.tr("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.interactionLoggingClientData:null}}});
b5.prototype.onCompanionClicked=b5.prototype.onCompanionClicked;b5.prototype.dataChanged=b5.prototype.dataChanged;b5.JSC$21244_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.hP("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],b5.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],b5.prototype,"data",void 0);_.G([_.hG("#title"),_.q("design:type",HTMLElement)],b5.prototype,"shopTitle",void 0);
_.G([_.jk("data.impressionEndpoints"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],b5.prototype,"dataChanged",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],b5.prototype,"interactionLoggingClientData",null);_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],b5.prototype,"onCompanionClicked",null);
_.G([_.dX({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],b5);
_.e(b5,"ytd-shopping-companion-renderer",function(){if($8m!==void 0)return $8m;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return $8m=H},{mode:1});_.LG(_.r(function(H){var U=H.data;H=_.eD({visibilityCallback:function(M){var W,w=(W=U().interaction)==null?void 0:W.onFirstVisible;M&&w&&_.uj(w)},
showOption:_.Cj});var A=_.d7(function(){return U().interaction},PX$);
_.Rn(function(){var M,W;W=(W=_.tr("yt.www.ads.eventcache.getLastCompanionData"))?(W=W())&&W.onLayoutVisibleCallback:null;(M=W)==null||M()},"Vj");
return _.Z("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.c$(function(M){_.Bg(M.currentTarget,"yt-refit-popups-action")}),
el:_.sB(H,A),"aria-label":function(){var M,W;return(M=U().interaction)==null?void 0:(W=M.accessibility)==null?void 0:W.label}},_.Z("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.Z(_.YY,{data:function(){return U().adImage}},{adImageViewModel:function(M){return _.Z(_.c6,{data:M.data,
targetHeight:80,customCommandResolver:PX$})}})),_.Z("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.Z("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.Z(_.YY,{data:function(){return U().adBadge}},{adBadgeViewModel:function(M){return _.Z(_.$N,{data:M.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.Z("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.Z(_.YY,{data:function(){return U().menu}},{buttonViewModel:_.yJ}))))},"Wj"),"banner-image-layout-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){var U=H.data;H=_.eD({visibilityCallback:function(M){var W,w=(W=U().interaction)==null?void 0:W.onFirstVisible;M&&w&&_.uj(w)},
showOption:_.Cj});var A=_.d7(function(){return U().interaction},sih);
_.Rn(function(){var M,W;W=(W=_.tr("yt.www.ads.eventcache.getLastCompanionData"))?(W=W())&&W.onLayoutVisibleCallback:null;(M=W)==null||M()},"Xj");
return _.Z("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.sB(H,A)},_.Z("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.Z(_.YY,{data:function(){return U().adImage}},{adImageViewModel:function(M){return _.Z(_.c6,{data:M.data,
targetHeight:80,customCommandResolver:sih})}})),_.Z("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.Z("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.Z(_.YY,{data:function(){return U().adAvatarLockup}},{adAvatarLockupViewModel:function(M){return _.Z(Sum,{data:M.data,
customCommandResolver:sih})}})),_.Z(_.YY,{data:function(){return U().adButton}},{adButtonViewModel:function(M){return _.Z(_.y2,{data:M.data,
customCommandResolver:sih})}}),_.Z("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.Z(_.YY,{data:function(){return U().menu}},{buttonViewModel:_.yJ}))))},"Yj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.sY}});var lZB={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"},dR=function(){var H=_.B.apply(this,arguments)||this;H.updateCompanionDataJobId=0;H.contentVideoId=null;H.player=null;H.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return H};
_.R(dR,_.B);_.X=dR.prototype;_.X.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:lZB}}};
_.X.attached=function(){var H=this,U=_.Ly();U&&U.getPlayerPromise().then(function(A){H.getCachedDataAndListen(A)})};
_.X.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.X.updateRendererStamper=function(){var H={};if(this.data)for(var U in lZB)if(this.data[U]){H[U]=this.data[U];break}if(this.oneofRenderer!=void 0||Object.keys(H).length)this.oneofRenderer=H};
_.X.getCachedDataAndListen=function(H){var U=this.retrieveCachedCompanionData();U&&Object.keys(U).length&&this.receiveCompanionData(U);this.ytPlayerListenerBehavior.listenToPlayerEvent(H,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=H};
_.X.retrieveCachedCompanionData=function(){return _.Mr.yt&&_.Mr.yt.www&&_.Mr.yt.www.ads&&_.Mr.yt.www.ads.eventcache&&_.Mr.yt.www.ads.eventcache.getLastCompanionData?_.Mr.yt.www.ads.eventcache.getLastCompanionData():null};
_.X.receiveCompanionData=function(H){H&&Object.keys(H).length?(this.contentVideoId=H.contentVideoId,this.setCompanionData(H)):this.setCompanionData(H)};
_.X.setCompanionData=function(H){this.cancelPendingCompanionAdJobs();if(H){this.updateCompanionDataJobId=0;for(var U in lZB)lZB.hasOwnProperty(U)&&(this.data[U]=void 0);H.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",H.shoppingCompanionCarouselRenderer):H.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",H.imageCompanionAdRenderer):H.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",H.actionCompanionAdRenderer),_.Bg(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Bg(this.hostElement,"yt-hide-tvfilm-offer-module")):H.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",H.bannerImageLayoutViewModel):H.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",H.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.X.dataChanged=function(){var H=this,U=_.Ly();U?U.getPlayerPromise().then(function(A){H.contentVideoId&&A.getVideoUrl().includes("v="+H.contentVideoId)||(H.cancelPendingCompanionAdJobs(),H.updateRendererStamper())}):_.c5(Error("Rl"))};
_.X.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.Fl.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.X.handleCompanionAdClicked=function(H,U){this.player.onAdUxClicked(H,U);this.player.pauseVideo()};
dR.prototype.dataChanged=dR.prototype.dataChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],dR.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],dR.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],dR.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.nm.YtPlayerListenerBehavior),_.q("design:type",_.NM)],dR.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],dR.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],dR.prototype,"oneofRenderer",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dR.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],dR);
_.e(dR,"ytd-companion-slot-renderer",function(){if(eEX!==void 0)return eEX;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return eEX=H},{mode:2});var G$p;var Ot=function(){return _.B.apply(this,arguments)||this};
_.R(Ot,_.B);Ot.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Ot.prototype.dataChanged=Ot.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ot.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Ot.prototype,"companionSlotData",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ot.prototype,"dataChanged",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Ot);
_.e(Ot,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(G$p!==void 0)return G$p;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return G$p=H},{mode:1});var Yuh;var u5=function(){var H=_.B.apply(this,arguments)||this;H.skinnyMode=!1;H.COMPACT_EVENT_COUNT=4;H.onShelfToggleButtonTap=function(){H.logTap(H.data);H.showingMore=!H.showingMore};
H.onShelfToggleButtonFocus=function(){H.showingMore||(H.logTap(H.data),H.showingMore=!0,_.rV(H,function(){var U=H.COMPACT_EVENT_COUNT-1,A;(A=_.c4(H.hostElement).querySelector("#event-"+U))==null||A.focus()}))};
return H};
_.R(u5,_.B);_.X=u5.prototype;_.X.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.X.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.X.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.lN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.lN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.lN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.lN(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.lN(this.infoTooltip,this.infoTooltip.hide))};
_.X.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.lN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.lN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.lN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.lN(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.lN(this.infoTooltip,this.infoTooltip.hide))};
_.X.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)};
_.X.onShowingMoreChanged=function(){var H;this.showingMoreChanged((H=this.showingMore)!=null?H:!1)};
_.X.showingMoreChanged=function(H){var U=this.get("data.events")||[];this.set("restEvents",U.slice(1,H?U.length:this.COMPACT_EVENT_COUNT).map(function(A){return A.ticketEventRenderer}));
U.slice(0,H?U.length:this.COMPACT_EVENT_COUNT).forEach(function(A){var M=_.XK();A=A.ticketEventRenderer.trackingParams;_.ws()&&M&&A&&(A=_.IS(A),M&&_.PO(M,A))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.X.computeAriaLabel=function(H){return H.subtitle1+", "+H.subtitle2};
_.X.logTap=function(H){_.ws()&&this.ytRendererBehavior.logExplicitClick(H)};
_.X.isKeyboardAction=function(H){return this.get("detail.x",H)===0&&this.get("detail.y",H)===0};
_.X.onFirstEventTap=function(H){H.target&&this.handleTap(H.target,this.firstEvent,this.isKeyboardAction(H))};
_.X.onTicketLinkTap=function(H){H.target&&this.handleTap(H.target,H.model.item,this.isKeyboardAction(H))};
_.X.handleTap=function(H,U,A){if(U.buttonCommand)if(U.hasMultipleOffers)Object.assign(_.p(U.buttonCommand,_.jQ),{properties:{source:A?"keyboard":"tap"}}),this.logTap(U),this.popupPositionTarget=H,_.eb(this.hostElement,[U.buttonCommand],this.hostElement);else{var M;if((M=_.p(U.buttonCommand,_.gu))==null?0:M.url)this.logTap(U),_.iL(window,_.p(U.buttonCommand,_.gu).url)}};
u5.prototype.onShowingMoreChanged=u5.prototype.onShowingMoreChanged;u5.prototype.dataChanged=u5.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],u5.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],u5.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],u5.prototype,"firstEvent",void 0);_.G([_.y(),_.q("design:type",Object)],u5.prototype,"restEvents",void 0);_.G([_.y(),_.q("design:type",String)],u5.prototype,"imageUrl",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],u5.prototype,"showingMore",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],u5.prototype,"canShowMore",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],u5.prototype,"skinnyMode",void 0);_.G([_.y(),_.q("design:type",HTMLElement)],u5.prototype,"popupPositionTarget",void 0);_.G([_.hG("#banner-info-tooltip"),_.q("design:type",Object)],u5.prototype,"infoTooltip",void 0);
_.G([_.hG("#info-container"),_.q("design:type",HTMLElement)],u5.prototype,"infoContainer",void 0);_.G([_.hG("#shelf-toggler"),_.q("design:type",HTMLElement)],u5.prototype,"shelfToggleButton",void 0);_.G([_.hG("#separator"),_.q("design:type",HTMLDivElement)],u5.prototype,"separator",void 0);_.G([_.y(),_.q("design:type",String)],u5.prototype,"shelfTogglerLabelText",void 0);_.G([_.y(),_.q("design:type",String)],u5.prototype,"shelfTogglerIcon",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],u5.prototype,"dataChanged",null);_.G([_.jk("showingMore"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],u5.prototype,"onShowingMoreChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],u5);
_.e(u5,"ytd-ticket-shelf-renderer",function(){if(Yuh!==void 0)return Yuh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Yuh=H},{mode:1});var qup={};qup.YtVisibilityRootBehavior=[_.tzk.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.zg(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.gD("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var H=_.gD("INNERTUBE_CLIENT_NAME")!=="WEB";_.S("kevlar_use_vimio_behavior")&&H&&_.ASn()}}];var ZP={};ZP.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(H){H.detail.contextProvider=this;H.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
qup.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.oL();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(H){var U=this;this.pageCount+=1;_.S("kevlar_use_vimio_behavior")&&(_.gD("INNERTUBE_CLIENT_NAME")==="WEB"?_.Fl.addJob(function(){U.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(H)},
loadPage_:function(H){this.data=H},
ytPageBehaviorActiveObserver_:function(H){var U=this;_.S("kevlar_use_vimio_behavior")&&(H?_.gD("INNERTUBE_CLIENT_NAME")==="WEB"?_.Fl.addJob(function(){U.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(H){if(!this.setScrollTopJobId_){var U=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){U.setScrollTopJobId_=0;var A=_.lx().resolve(_.$V(_.qe));A&&_.mE(A);this.getPageScrollingElement().scrollTop=H}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.bd(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];var hE5;var k$y;var vL5;var T8h;var fS=function(){var H=_.B.apply(this,arguments)||this;H.originalQuery=null;H.originalEndpoint=null;return H};
_.R(fS,_.B);fS.prototype.computeShowOriginalQueryWithoutEndpoint_=function(H,U){return!(!H||U)};
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],fS.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],fS.prototype,"correctedText",void 0);_.G([_.y(),_.q("design:type",Object)],fS.prototype,"correctedQuery",void 0);_.G([_.y(),_.q("design:type",Object)],fS.prototype,"correctedEndpoint",void 0);_.G([_.y(),_.q("design:type",Object)],fS.prototype,"originalText",void 0);_.G([_.y(),_.q("design:type",Object)],fS.prototype,"originalQuery",void 0);
_.G([_.y(),_.q("design:type",Object)],fS.prototype,"originalEndpoint",void 0);_.G([_.y({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.q("design:type",Boolean)],fS.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.G([_.b0({is:"yt-search-query-correction",disableElementRegistration:!0})],fS);
_.e(fS,"yt-search-query-correction",function(){if(T8h===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;vL5===void 0&&(vL5=document.createElement("template"));var M=vL5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);T8h=H}H=T8h;return H},{mode:2});_.Qm("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var jem=function(){return _.B.apply(this,arguments)||this};
_.R(jem,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],jem.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],jem.prototype,"data",void 0);_.G([_.b0({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],jem);
_.e(jem,"yt-did-you-mean-renderer",function(){if(k$y===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;hE5===void 0&&(hE5=document.createElement("template"));var M=hE5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);k$y=H}H=k$y;return H},{mode:2});var IZy;var QeX;_.Qm("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var Vh7=function(){return _.B.apply(this,arguments)||this};
_.R(Vh7,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Vh7.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Vh7.prototype,"data",void 0);_.G([_.b0({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],Vh7);
_.e(Vh7,"yt-including-results-for-renderer",function(){if(QeX===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;IZy===void 0&&(IZy=document.createElement("template"));var M=IZy;A.call(U,M.content.cloneNode(!0),H.content.firstChild);QeX=H}H=QeX;return H},{mode:2});var HVm;var URj;_.Qm("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var JX=function(){return _.B.apply(this,arguments)||this};
_.R(JX,_.B);JX.prototype.computeExtraClasses_=function(H,U){var A="";H&&(A+=" "+H.toLowerCase().replace(/_/g,"-"));U&&(A+=" "+U.toLowerCase().replace(/_/g,"-"));return A};
JX.prototype.computeUrlImg_=function(){var H=this.data;H.image&&(_.c4(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.Rv(H.image.thumbnails,Number.MAX_VALUE)+")")};
JX.prototype.computeUrlImg_=JX.prototype.computeUrlImg_;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],JX.prototype,"data",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],JX.prototype,"computeUrlImg_",null);_.G([_.b0({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],JX);
_.e(JX,"yt-music-pass-feature-info-renderer",function(){if(URj===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;HVm===void 0&&(HVm=document.createElement("template"));var M=HVm;A.call(U,M.content.cloneNode(!0),H.content.firstChild);URj=H}H=URj;return H},{mode:2});var AWh;var MuY;_.Qm("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var WQk=function(){return _.B.apply(this,arguments)||this};
_.R(WQk,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],WQk.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],WQk.prototype,"data",void 0);_.G([_.b0({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],WQk);
_.e(WQk,"yt-no-results-found-showing-results-for-renderer",function(){if(MuY===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;AWh===void 0&&(AWh=document.createElement("template"));var M=AWh;A.call(U,M.content.cloneNode(!0),H.content.firstChild);MuY=H}H=MuY;return H},{mode:2});var wZY;var XZm;_.Qm("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var iVf=function(){return _.B.apply(this,arguments)||this};
_.R(iVf,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],iVf.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],iVf.prototype,"data",void 0);_.G([_.b0({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],iVf);
_.e(iVf,"yt-results-without-quotes-renderer",function(){if(XZm===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;wZY===void 0&&(wZY=document.createElement("template"));var M=wZY;A.call(U,M.content.cloneNode(!0),H.content.firstChild);XZm=H}H=XZm;return H},{mode:2});var bVX;var dRp;_.Qm("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var OVm=function(){return _.B.apply(this,arguments)||this};
_.R(OVm,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],OVm.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],OVm.prototype,"data",void 0);_.G([_.b0({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],OVm);
_.e(OVm,"yt-search-no-results-renderer",function(){if(dRp===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;bVX===void 0&&(bVX=document.createElement("template"));var M=bVX;A.call(U,M.content.cloneNode(!0),H.content.firstChild);dRp=H}H=dRp;return H},{mode:2});var u65;var ZVB;_.Qm("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var fy7=function(){return _.B.apply(this,arguments)||this};
_.R(fy7,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],fy7.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],fy7.prototype,"data",void 0);_.G([_.b0({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],fy7);
_.e(fy7,"yt-showing-results-for-renderer",function(){if(ZVB===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;u65===void 0&&(u65=document.createElement("template"));var M=u65;A.call(U,M.content.cloneNode(!0),H.content.firstChild);ZVB=H}H=ZVB;return H},{mode:2});var JWX;var KQf;_.Qm("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var KS=function(){return _.B.apply(this,arguments)||this};
_.R(KS,_.B);
KS.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"}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],KS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],KS.prototype,"data",void 0);_.G([_.b0({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],KS);
_.e(KS,"yt-offer-item-expanded-renderer",function(){if(KQf===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;JWX===void 0&&(JWX=document.createElement("template"));var M=JWX;A.call(U,M.content.cloneNode(!0),H.content.firstChild);KQf=H}H=KQf;return H},{mode:2});var oPp;var FQy;_.Qm("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var o7=function(){return _.B.apply(this,arguments)||this};
_.R(o7,_.B);
o7.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"}}}}};
o7.prototype.computeFullWidthMode=function(H){return!(!H||!H.fullWidthMode)};
o7.prototype.computeBorderlessMode=function(H){return!(!H||!H.borderlessMode)};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],o7.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],o7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],o7.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.q("design:type",Boolean)],o7.prototype,"fullWidthMode",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.q("design:type",Boolean)],o7.prototype,"borderlessMode",void 0);_.G([_.b0({is:"yt-offer-item-renderer",disableElementRegistration:!0})],o7);
_.e(o7,"yt-offer-item-renderer",function(){if(FQy===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;oPp===void 0&&(oPp=document.createElement("template"));var M=oPp;A.call(U,M.content.cloneNode(!0),H.content.firstChild);FQy=H}H=FQy;return H},{mode:2});var Pz5;var s0h;_.Qm("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Fr=function(){return _.B.apply(this,arguments)||this};
_.R(Fr,_.B);Fr.prototype.computeAriaLevel_=function(H){return this.getLevelID_(H)};
Fr.prototype.getLevelID_=function(H){return(H=H.match(/[0-9]+$/))&&H.length==1?H[0]:"1"};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Fr.prototype,"data",void 0);_.G([_.y({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.q("design:type",String)],Fr.prototype,"ariaLevel",void 0);_.G([_.y({value:"heading",reflectToAttribute:!0}),_.q("design:type",String)],Fr.prototype,"role",void 0);
_.G([_.y({value:-1,reflectToAttribute:!0}),_.q("design:type",Number)],Fr.prototype,"tabindex",void 0);_.G([_.b0({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Fr);
_.e(Fr,"yt-subscription-product-header-renderer",function(){if(s0h===void 0){var H=document.createElement("template");_.E(H,"\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");H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Pz5===void 0&&(Pz5=document.createElement("template"));var M=Pz5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);s0h=H}H=s0h;return H},{mode:2});var nP7;var N05;_.Qm("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Pf=function(){return _.B.apply(this,arguments)||this};
_.R(Pf,_.B);Pf.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:_.Vm("menuRenderer"),events:!0}}};
Pf.prototype.onStampFinished_=function(){_.c4(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Pf.prototype.onStampFinished_=Pf.prototype.onStampFinished_;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Pf.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Pf.prototype,"data",void 0);_.G([_.Gl("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Pf.prototype,"onStampFinished_",null);
_.G([_.b0({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Pf);
_.e(Pf,"yt-subscription-product-renderer",function(){if(N05===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;nP7===void 0&&(nP7=document.createElement("template"));var M=nP7;A.call(U,M.content.cloneNode(!0),H.content.firstChild);N05=H}H=N05;return H},{mode:2});var Sk8;var pZ$;_.Qm("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var st=function(){return _.B.apply(this,arguments)||this};
_.R(st,_.B);st.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
st.prototype.imageScrimColorValuesChanged_=function(){var H,U=(H=this.data)==null?void 0:H.imageScrimColorValues;_.c4(this.hostElement).querySelector("#scrim").style.backgroundColor=U?_.bN(U[0]):"transparent"};
st.prototype.imageScrimColorValuesChanged_=st.prototype.imageScrimColorValuesChanged_;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],st.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],st.prototype,"data",void 0);
_.G([_.Ya("data.imageScrimColorValues"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],st.prototype,"imageScrimColorValuesChanged_",null);_.G([_.b0({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],st);
_.e(st,"yt-subscription-product-upsell-offer-renderer",function(){if(pZ$===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Sk8===void 0&&(Sk8=document.createElement("template"));var M=Sk8;A.call(U,M.content.cloneNode(!0),H.content.firstChild);pZ$=H}H=pZ$;return H},{mode:2});var LQf;var Rdy;var EPY;var mRh;var gPm;var ayj;var nS=function(){return _.B.apply(this,arguments)||this};
_.R(nS,_.B);nS.prototype.onYtServiceRequestError_=function(H){_.oR(this.hostElement,H.detail.error.message)};
nS.prototype.onYtServiceRequestError_=nS.prototype.onYtServiceRequestError_;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],nS.prototype,"data",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],nS.prototype,"collapsible",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],nS.prototype,"isManageRed",void 0);
_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],nS.prototype,"onYtServiceRequestError_",null);_.G([_.b0({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],nS);
_.e(nS,"yt-single-ypc-offer-renderer",function(){if(ayj===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;gPm===void 0&&(gPm=document.createElement("template"));var M=gPm;A.call(U,M.content.cloneNode(!0),H.content.firstChild);ayj=H}H=ayj;return H},{mode:2});var Nw=function(){return _.B.apply(this,arguments)||this};
_.R(Nw,_.B);Nw.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Nw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Nw.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Nw.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Nw.prototype,"isManageRed",void 0);_.G([_.b0({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Nw);
_.e(Nw,"yt-single-ypc-offer-list-renderer",function(){if(mRh===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;EPY===void 0&&(EPY=document.createElement("template"));var M=EPY;A.call(U,M.content.cloneNode(!0),H.content.firstChild);mRh=H}H=mRh;return H},{mode:2});var xR5;var zd7;_.Qm("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var SF=function(){return _.B.apply(this,arguments)||this};
_.R(SF,_.B);SF.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],SF.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],SF.prototype,"isManageRed",void 0);_.G([_.b0({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],SF);
_.e(SF,"yt-ypc-offers-list-renderer",function(){if(zd7===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;xR5===void 0&&(xR5=document.createElement("template"));var M=xR5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);zd7=H}H=zd7;return H},{mode:2});_.Qm("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var pS=function(){return _.B.apply(this,arguments)||this};
_.R(pS,_.B);
pS.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}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],pS.prototype,"data",void 0);_.G([_.b0({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],pS);
_.e(pS,"yt-unlimited-manage-subscription-page-renderer",function(){if(Rdy===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;LQf===void 0&&(LQf=document.createElement("template"));var M=LQf;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Rdy=H}H=Rdy;return H},{mode:2});var Czj;var tuk;var LS=function(){return _.B.apply(this,arguments)||this};
_.R(LS,_.B);_.X=LS.prototype;_.X.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.X.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.X.onKeypress_=function(H){H.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.X.handleHeaderTap_=function(H){H.preventDefault();H.stopPropagation();this.expandOffers_()};
_.X.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.X.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
LS.prototype.dataChanged_=LS.prototype.dataChanged_;_.G([_.g(_.le),_.q("design:type",Object)],LS.prototype,"ironA11yKeysBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],LS.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],LS.prototype,"offersVisible_",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],LS.prototype,"dataChanged_",null);_.G([_.b0({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],LS);
_.e(LS,"yt-collapsible-ypc-offer-renderer",function(){if(tuk===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Czj===void 0&&(Czj=document.createElement("template"));var M=Czj;A.call(U,M.content.cloneNode(!0),H.content.firstChild);tuk=H}H=tuk;return H},{mode:2});var cWp;var yW5;_.Qm("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var R7=function(){return _.B.apply(this,arguments)||this};
_.R(R7,_.B);_.X=R7.prototype;_.X.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.X.dataChanged_=function(){if(this.data.backgroundImage){var H=_.Rv(this.data.backgroundImage.thumbnails,screen.width),U=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=U?"linear-gradient(180deg, "+U+"), url("+H+")":"url("+H+")";this.data.gtmId&&_.VN(this.data.gtmId,_.gD("GL",""))}};
_.X.onYtServiceRequestError_=function(H){_.oR(this.hostElement,H.detail.error.message)};
_.X.getScrimLayerColorStops_=function(){var H,U,A=(H=this.data.unlimitedHeaderV2Data)==null?void 0:(U=H.unlimitedHeaderV2Data)==null?void 0:U.scrimLayerColors;if(!A)return null;var M=100/A.length;return A.map(function(W,w){w*=M;return _.bN(W)+" "+w+"%"}).join(",")};
_.X.computeLogoWithPadding=function(H){var U,A,M;return(H=(U=H.unlimitedLogoImage)==null?void 0:(A=U.thumbnails)==null?void 0:(M=A[0])==null?void 0:M.height)&&H%31===0?!0:!1};
R7.prototype.onYtServiceRequestError_=R7.prototype.onYtServiceRequestError_;R7.prototype.dataChanged_=R7.prototype.dataChanged_;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],R7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.G([_.y({computed:"computeLogoWithPadding(data)"}),_.q("design:type",Boolean)],R7.prototype,"logoWithPadding",void 0);
_.G([_.y(),_.q("design:type",Object)],R7.prototype,"data",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],R7.prototype,"dataChanged_",null);_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],R7.prototype,"onYtServiceRequestError_",null);_.G([_.b0({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],R7);
_.e(R7,"yt-unlimited-page-header-renderer",function(){if(yW5===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;cWp===void 0&&(cWp=document.createElement("template"));var M=cWp;A.call(U,M.content.cloneNode(!0),H.content.firstChild);yW5=H}H=yW5;return H},{mode:2});var B0p;var rW5;_.Qm("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Et=function(){return _.B.apply(this,arguments)||this};
_.R(Et,_.B);Et.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Et.prototype,"data",void 0);_.G([_.b0({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Et);
_.e(Et,"yt-unlimited-user-notification-renderer",function(){if(rW5===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;B0p===void 0&&(B0p=document.createElement("template"));var M=B0p;A.call(U,M.content.cloneNode(!0),H.content.firstChild);rW5=H}H=rW5;return H},{mode:2});var ed5;var DRj;var $RB=function(){return _.B.apply(this,arguments)||this};
_.R($RB,_.B);_.G([_.y(),_.q("design:type",Object)],$RB.prototype,"data",void 0);_.G([_.b0({is:"yt-alert-renderer",disableElementRegistration:!0})],$RB);
_.e($RB,"yt-alert-renderer",function(){if(DRj===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;ed5===void 0&&(ed5=document.createElement("template"));var M=ed5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);DRj=H}H=DRj;return H},{mode:2});var T07=function(H){_.XG.call(this);this.JSC$21332_watchApi=H;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;lyf(this);GNh(this);Yk5(this);qkh(this);hdk(this);kNp(this);vPp(this)};
_.R(T07,_.XG);var Yk5=function(H){var U=function(){_.S("kevlar_is_pupi_enabled")||mW(H)};
H.JSC$21332_watchApi.getRoot().addEventListener("yt-player-updated",U);H.addOnDisposeCallback(function(){H.JSC$21332_watchApi.getRoot().removeEventListener("yt-player-updated",U)})},hdk=function(H){if(_.S("kevlar_endscreen_auto_theater_mode")){var U=H.JSC$21332_watchApi.subscribeToActiveChanged(function(){j0m(H)},!1);
H.addOnDisposeCallback(U)}},lyf=function(H){var U,A,M,W,w;
_.u(function(d){if(d.nextAddress==1)return d.yield(H.JSC$21332_watchApi.playerApi,2);U=d.yieldResult;A=function(O){O=!!O;Iy$(H)&&(O=O?2:1,_.at.getInstance().setState(O,!0,!1))};
M=function(O){O&&M9y(_.Lq().getState())&&(_.yr(H.JSC$21332_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),H.temporaryTheaterMode=!0)};
W=function(O){_.S("kevlar_player_update_autonav_on_new_data")&&O.type==="newdata"&&(_.S("kevlar_is_pupi_enabled")||mW(H))};
w=function(O){H.onPlayerStateChange(O)};
_.S("kevlar_endscreen_auto_theater_mode")&&U.addEventListener("onAutonavCancelled",M);U.addEventListener("onAutonavChangeRequest",A);U.addEventListener("onVideoDataChange",W);U.addEventListener("onStateChange",w);H.addOnDisposeCallback(function(){U.removeEventListener("onAutonavChangeRequest",A);U.removeEventListener("onVideoDataChange",W);U.removeEventListener("onStateChange",w);_.S("kevlar_endscreen_auto_theater_mode")&&U.removeEventListener("onAutonavCancelled",M)});
_.DO(d)})},GNh=function(H){H.JSC$21332_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){H.autonavCancelledBySignal=!0;
_.S("kevlar_is_pupi_enabled")||mW(H)});
H.JSC$21332_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(U,A,M){A&&mW(H,M)});
H.JSC$21332_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){Iy$(H)&&_.at.getInstance().setState(2,!0,!0)});
H.JSC$21332_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){Iy$(H)&&_.at.getInstance().setState(1,!0,!0)});
H.addOnDisposeCallback(function(){H.JSC$21332_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");H.JSC$21332_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");H.JSC$21332_watchApi.unregisterActionHandler("yt-enable-autoplay-command");H.JSC$21332_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},qkh=function(H){var U=H.JSC$21332_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){vPp(H)}),A=H.JSC$21332_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){kNp(H)});
H.addOnDisposeCallback(function(){H.JSC$21332_watchApi.unsubscribeByKey(U);H.JSC$21332_watchApi.unsubscribeByKey(A)})},vPp=function(H){H.autonavCancelledBySignal=!1;
_.S("kevlar_is_pupi_enabled")||mW(H)},kNp=function(H){var U=H.JSC$21332_watchApi.getWatchNextResponse(),A,M;
var W=(U=(M=_.p(U==null?void 0:(W=U.playerOverlays)==null?void 0:(A=W.playerOverlayRenderer)==null?void 0:A.autonavToggle,_.Hnm))==null?void 0:M.enabled)?2:1;_.S("kevlar_is_pupi_enabled")?_.at.getInstance().setState(W,!1,!1):mW(H);_.S("web_persist_server_autonav_state_on_client")&&typeof U==="boolean"&&_.WB0(W===2)},Iy$=function(H){if(H.autonavCancelledBySignal)return!1;
var U,A,M,W;return!!((U=H.JSC$21332_watchApi.getWatchNextResponse())==null?0:(A=U.contents)==null?0:(M=A.twoColumnWatchNextResults)==null?0:(W=M.autoplay)==null?0:W.autoplay)};
T07.prototype.onPlayerStateChange=function(H){if(H===0){H=!_.at.getInstance().isAutoplaySetExplicitly();var U=this.JSC$21332_watchApi.getWatchNextResponse(),A,M,W,w;U=_.p(U==null?void 0:(A=U.contents)==null?void 0:(M=A.twoColumnWatchNextResults)==null?void 0:(W=M.autoplay)==null?void 0:(w=W.autoplay)==null?void 0:w.autoplayExplicitChoiceDialogRenderer,_.P8z);Iy$(this)&&H&&U&&_.$$.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:U},popupType:"DIALOG"}})}else j0m(this)};
var j0m=function(H){H.temporaryTheaterMode&&(H.temporaryTheaterMode=!1,_.yr(H.JSC$21332_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},mW=function(H,U){U=U===void 0?!1:U;
var A;_.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$21332_watchApi.playerApi,2);A=M.yieldResult;Iy$(H)?A.setAutonavState(_.at.getInstance().getState(),U):A.setAutonavState(1,U);_.DO(M)})};var Q05={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",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};var HzB=function(H){_.XG.call(this);var U=this;this.JSC$21337_watchApi=H;var A=this.JSC$21337_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Vuy(U)});
this.addOnDisposeCallback(function(){U.JSC$21337_watchApi.unsubscribeByKey(A)});
Vuy(this)};
_.R(HzB,_.XG);var Vuy=function(H){var U=H.JSC$21337_watchApi.getPlayerResponse(),A=H.JSC$21337_watchApi.getWatchNextResponse();if(!_.qi7(U==null?void 0:U.playabilityStatus,A==null?void 0:A.playerOverlays)){var M;var W=U==null?void 0:(M=U.playabilityStatus)==null?void 0:M.errorScreen}H.JSC$21337_watchApi.provideRenderingData("ERROR_SCREEN",W)};var Umm=_.r(function(H){return _.Z("yt-player-grid-renderer",{class:_.CG("ytPlayerGridRendererHost",H.className)},_.Z(_.YY,{data:H.data},{lockupViewModel:function(U){return _.Z(_.YN,{data:U.data,useOverlayStyling:!0})}}))},"Zj");var Ax7=_.r(function(H){var U=H.data;H=_.S("web_watch_video_details_hide_subtitle");var A=_.S("web_watch_video_details_single_line_title"),M=_.c$(function(){var O=U().onTap;O&&_.lx().resolve(_.YV).resolveCommand(O)}),W={},w={},d={};
return _.Z("yt-player-overlay-video-details-renderer",{class:_.CG("ytPlayerOverlayVideoDetailsRendererHost",(W.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.S("web_watch_video_details_transparent_background"),W)),"on:click":M,role:"button"},_.Z("h2",{class:_.CG("ytPlayerOverlayVideoDetailsRendererTitle",(w.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return A},w))},_.Z(_.Pb,{text:function(){return U().title}})),_.Z("div",{class:_.CG("ytPlayerOverlayVideoDetailsRendererSubtitle",
(d.ytPlayerOverlayVideoDetailsRendererHideSubtitle=H,d))},_.Z(_.Pb,{text:function(){return U().subtitle}})))},"$j");var gR={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},Mnh=_.r(function(H){var U=H.data;var A=_.Gk(_.MF),M=_.S("web_watch_action_bar_resize_buttons"),W=_.S("web_watch_video_action_dsdvb"),w=_.S("delhi_modern_web_player_icons")&&!_.S("enable_web_delhi_icons");H=_.S("delhi_modern_web_player_disable_frosted_glass");var d=_.S("delhi_modern_web_player_compact_video_actions_controls"),
O=_.S("web_player_quick_action_buttons_icon_only"),f=function(){var F=M&&!A(),P={};d?P.size="S":F&&(P.size="M");O&&(P.iconPosition="icon-only");if(Object.keys(P).length!==0)return P},J={};
return _.Z("yt-player-quick-action-buttons",{class:_.CG("ytPlayerQuickActionButtonsHost",(J.ytPlayerQuickActionButtonsHostCompactControls=function(){return!A()||d},J.ytPlayerQuickActionButtonsHostDisableBackdropFilter=H,J))},_.Z(_.FQ,{each:function(){var F=U();
if(w){F=JSON.parse(JSON.stringify(F));for(var P=_.b(F),n=P.next();!n.done;n=P.next()){var N=n.value,L=void 0;n=_.p((L=_.p(N,_.fx))==null?void 0:L.toggleButtonViewModel,_.Pc);var m=void 0;L=_.p((m=_.p(N,_.JI))==null?void 0:m.toggleButtonViewModel,_.Pc);m=_.p(N,_.ot);N=_.p(N,_.Pc);if(n)L=_.p(n.defaultButtonViewModel,_.ot),n=_.p(n.toggledButtonViewModel,_.ot),L&&L.iconName&&(L.iconName=gR[L.iconName]),n&&n.iconName&&(n.iconName=gR[n.iconName]);else if(L)n=_.p(L.defaultButtonViewModel,_.ot),L=_.p(L.toggledButtonViewModel,
_.ot),n&&n.iconName&&(n.iconName=gR[n.iconName]),L&&L.iconName&&(L.iconName=gR[L.iconName]);else if(m)m.iconName&&(m.iconName=gR[m.iconName]);else if(N){n=_.p(N.defaultButtonViewModel,_.ot);L=_.p(N.toggledButtonViewModel,_.ot);N=void 0;if((N=n)==null?0:N.iconName)n.iconName=gR[n.iconName];n=void 0;if((n=L)==null?0:n.iconName)L.iconName=gR[L.iconName]}}}W&&(F=njk(F));return F}},function(F){return _.Z(_.YY,{data:function(){return F}},{buttonViewModel:function(P){return _.Z(_.yJ,{data:P.data,
buttonOverrides:f})},
likeButtonViewModel:function(P){return _.Z(_.fn,{data:P.data,buttonShapeOverrideables:f})},
dislikeButtonViewModel:function(P){return _.Z(_.Zu,{data:P.data,buttonShapeOverrideables:f})},
toggleButtonViewModel:function(P){return _.Z(_.MI,{data:P.data,buttonShapeOverrides:f})}})}))},"ak");var wpk=function(H){_.XG.call(this);var U=this;this.JSC$21345_watchApi=H;H=_.b(_.iB({},void 0,"OB6c5e"));this.quickActionsViewModel=H.next().value;this.setQuickActionsViewModel=H.next().value;H=_.b(_.iB({},void 0,"ZCXW8c"));this.playerOverlayVideoDetailsRenderer=H.next().value;this.setPlayerOverlayVideoDetailsRenderer=H.next().value;H=_.b(_.iB([],void 0,"A7tRk"));this.lockupViewModels=H.next().value;this.setLockupViewModels=H.next().value;var A=this.JSC$21345_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Wxh(U)});
this.addOnDisposeCallback(function(){U.JSC$21345_watchApi.unsubscribeByKey(A)});
Wxh(this)};
_.R(wpk,_.XG);
var Wxh=function(H){var U,A,M,W,w,d,O,f,J,F,P,n,N,L,m,z,c;_.u(function(C){if(C.nextAddress==1)return C.yield(H.JSC$21345_watchApi.playerApi,2);U=C.yieldResult;A=H.JSC$21345_watchApi.getWatchNextResponse();w=(M=A)==null?void 0:(W=M.playerOverlays)==null?void 0:W.playerOverlayRenderer;O=_.p((d=w)==null?void 0:d.fullscreenQuickActionsBar,_.V4p);(J=(f=H).setQuickActionsViewModel)==null||J.call(f,O||{});O&&Xph(H,U);n=(F=w)==null?void 0:(P=F.videoDetails)==null?void 0:P.playerOverlayVideoDetailsRenderer;(L=
(N=H).setPlayerOverlayVideoDetailsRenderer)==null||L.call(N,n||{});n&&iz5(H,U);if(_.S("web_player_use_external_grid_component")){var v=[],Y,D,h,T,WF=A==null?void 0:(Y=A.contents)==null?void 0:(D=Y.twoColumnWatchNextResults)==null?void 0:(h=D.secondaryResults)==null?void 0:(T=h.secondaryResults)==null?void 0:T.results;if(WF)for(Y=_.b(WF),D=Y.next();!D.done;D=Y.next())if(D=D.value,D.lockupViewModel)v.push(D);else if(h=void 0,(h=D.itemSectionRenderer)==null?0:h.contents)for(D=_.b(D.itemSectionRenderer.contents),
h=D.next();!h.done;h=D.next())h=h.value,h.lockupViewModel&&v.push(h);m=v;(c=(z=H).setLockupViewModels)==null||c.call(z,m||[]);bz8(H,U)}_.DO(C)})},Xph=function(H,U){if(!H.quickActionButtonsContainer)if(U.setFullscreenQuickActions){H.quickActionButtonsContainer=document.createElement("div");
U.setFullscreenQuickActions(H.quickActionButtonsContainer);var A=function(){return H.quickActionsViewModel().quickActionButtons||[]},M=_.Sy(H.quickActionButtonsContainer,function(){return _.Z(Mnh,{data:A})},"bk");
H.addOnDisposeCallback(function(){U.setFullscreenQuickActions(void 0);M()})}else _.Na(new _.bD("setFullscreenQuickActions not defined",{playerApi:Object.keys(U),
isReady:U.isReady(),appState:U.getAppState()}))},iz5=function(H,U){if(!H.playerOverlayVideoDetailsRendererContainer)if(U.setPlayerOverlayVideoDetailsRenderer){H.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
U.setPlayerOverlayVideoDetailsRenderer(H.playerOverlayVideoDetailsRendererContainer);var A=_.Sy(H.playerOverlayVideoDetailsRendererContainer,function(){return _.Z(Ax7,{data:H.playerOverlayVideoDetailsRenderer})},"ck");
H.addOnDisposeCallback(function(){U.setPlayerOverlayVideoDetailsRenderer(void 0);A()})}else _.Na(new _.bD("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(U),
isReady:U.isReady(),appState:U.getAppState()}))},bz8=function(H,U){if(!H.gridRendererContainer)if(U.setFullscreenGrid){H.gridRendererContainer=document.createElement("div");
U.setFullscreenGrid(H.gridRendererContainer);var A=_.Sy(H.gridRendererContainer,function(){return _.Z(Umm,{data:H.lockupViewModels})},"dk");
H.addOnDisposeCallback(function(){U.setFullscreenGrid(void 0);A()})}else _.Na(new _.bD("setFullscreenGrid not defined",{playerApi:Object.keys(U),
isReady:U.isReady(),appState:U.getAppState()}))};var a7=function(H){_.XG.call(this);var U=this;this.JSC$21351_watchApi=H;this.JSC$21351_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;H=_.It(_.Lq(),_.MF,function(A){U.onFullscreenChanged(A)});
this.addOnDisposeCallback(H);H=_.It(_.Lq(),iG,function(A){U.onWatchScroll(A)});
this.addOnDisposeCallback(H);_.S("kevlar_watch_while_v2")&&(H=_.It(_.Lq(),_.iE,function(A){dmh(U,A)}),this.addOnDisposeCallback(H));
OzB(this);uMj(this);ZzX();this.onWatchScroll(iG(_.Lq().getState()));_.xV("START_IN_FULL_WINDOW_MODE")&&this.JSC$21351_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.R(a7,_.XG);var OzB=function(H){H.JSC$21351_watchApi.registerActionHandler("yt-fullscreen-change-action",function(U){var A=H.JSC$21351_watchApi.isActive();U&&!A||_.Lq().dispatch(_.zQ({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!U}}))});
H.addOnDisposeCallback(function(){H.JSC$21351_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},uMj=function(H){var U,A;
_.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$21351_watchApi.playerApi,2);U=M.yieldResult;A=function(){H.onFullerscreenEduClicked()};
U.addEventListener("onFullerscreenEduClicked",A);H.addOnDisposeCallback(function(){U.removeEventListener("onFullerscreenEduClicked",A)});
_.DO(M)})};
a7.prototype.onFullscreenChanged=function(H){var U=this,A;return _.u(function(M){if(M.nextAddress==1)return U.isFullscreen=!!_.L1(),M.yield(U.JSC$21351_watchApi.playerApi,2);A=M.yieldResult;U.JSC$21351_miniplayerActive||A.setFauxFullscreen(U.isFullscreen);if(H&&(U.JSC$21351_watchApi.focusOnPlayer(),!U.fullerscreenEduButtonShownThisPlayback)){U.fullerscreenEduButtonShownThisPlayback=!0;var W=_.H4("yt-fullerscreen-edu-button-shown-count")||0;_.V3("yt-fullerscreen-edu-button-shown-count",W+1,31536E3);
U.updateFullerscreenEduButtonSubtleModeState()}_.DO(M)})};
var dmh=function(H,U){var A;_.u(function(M){if(M.nextAddress==1)return H.JSC$21351_miniplayerActive=U,M.yield(H.JSC$21351_watchApi.playerApi,2);A=M.yieldResult;A.setFauxFullscreen(!H.JSC$21351_miniplayerActive&&H.isFullscreen);_.DO(M)})};
a7.prototype.onWatchScroll=function(H){var U=this,A,M;return _.u(function(W){if(W.nextAddress==1)return _.S("external_fullscreen_with_edu")?W.yield(U.JSC$21351_watchApi.playerApi,2):W.return();A=W.yieldResult;M=H<=0;U.shouldShowFullerscreenEdu!==M&&(U.shouldShowFullerscreenEdu=M,A.updateFullerscreenEduButtonVisibility(!U.shouldShowFullerscreenEdu));_.DO(W)})};
a7.prototype.onFullerscreenEduClicked=function(){this.JSC$21351_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var H=_.H4("yt-fullerscreen-edu-button-click-count")||0;_.V3("yt-fullerscreen-edu-button-click-count",H+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
a7.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var H=this,U,A,M,W,w,d;return _.u(function(O){if(O.nextAddress==1)return U=_.H4("yt-fullerscreen-edu-button-click-count")||0,A=_.H4("yt-fullerscreen-edu-button-shown-count")||0,M=_.hr("external_fullscreen_button_click_threshold"),W=_.hr("external_fullscreen_button_shown_threshold"),w=U>=M||A>=W,O.yield(H.JSC$21351_watchApi.playerApi,2);d=O.yieldResult;d.updateFullerscreenEduButtonSubtleModeState(w);_.DO(O)})};
a7.prototype.disposeInternal=function(){_.XG.prototype.disposeInternal.call(this);var H=_.L1();_.S("kevlar_exit_fullscreen_leaving_watch")&&H&&_.R2(H)};
var ZzX=function(){if(_.S("web_watch_add_viewport_meta_tag")){var H=document.querySelector("meta[name=viewport]"),U=document.head;U&&!H&&(H=document.createElement("meta"),H.name="viewport",H.content="width=device-width, initial-scale=1.0, viewport-fit=cover",U.appendChild(H))}};var Jxy=function(H){_.XG.call(this);var U=this;this.JSC$21354_watchApi=H;this.jobId=0;this.pendingRequestId=void 0;var A=this.JSC$21354_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){fim(U)});
this.addOnDisposeCallback(function(){U.JSC$21354_watchApi.unsubscribeByKey(A)});
fim(this)};
_.R(Jxy,_.XG);var Kx7=function(H){_.Fl.cancelJob(H.jobId);H.pendingRequestId=void 0},fim=function(H){Kx7(H);
var U=Nzh(H.JSC$21354_watchApi.getWatchNextResponse());if(U){var A=250,M,W=(M=_.p(U,_.Vez))==null?void 0:M.initialDelayMs;_.S("web_watch_updated_metadata_server_initial_delay")&&W&&(A=W);H.jobId=_.Fl.addLowPriorityJob(function(){return H.fetchUpdatedMetadata(U)},A)}};
Jxy.prototype.fetchUpdatedMetadata=function(H,U){var A=this,M,W,w,d,O,f,J,F,P,n,N,L,m,z,c;return _.u(function(C){switch(C.nextAddress){case 1:U&&(M={continuation:U});if(!_.S("web_get_updated_metadata_fantasy_panel_continuation_params")){C.jumpTo(2);break}W=_.lx().resolve(_.Mx);w="PAsports_fantasy";return C.yield(W.isVisible(w,!0),3);case 3:C.yieldResult&&(J=(O=(d=W).getUpdatePanelContinuationData)==null?void 0:(f=O.call(d,w))==null?void 0:f.updatePanelContinuationRequest)&&(M||(M={}),M.clientParams=
{panelContinuationParams:{panelContinuation:J}});case 2:F=_.lx().resolve(_.IE);if(!F)return _.sD(Error("Sl")),C.return();P={};A.pendingRequestId=P;return C.yield(_.Js(F,H,M),4);case 4:n=C.yieldResult;if(P!==A.pendingRequestId)return C.return();m=(N=n)==null?void 0:(L=N.continuation)==null?void 0:L.timedContinuationData;((z=m)==null?0:z.continuation)&&((c=m)==null?0:c.timeoutMs)&&(A.jobId=_.Fl.addLowPriorityJob(function(){return A.fetchUpdatedMetadata(H,m.continuation)},m.timeoutMs));
_.DO(C)}})};
Jxy.prototype.disposeInternal=function(){_.XG.prototype.disposeInternal.call(this);Kx7(this)};var oWf=_.r(function(H){var U=_.c$(function(){var M=H.data().videoId;if(H.active())M=_.mb(M),_.lx().resolve(_.YV).resolveCommand(M);else{var W=H.playerApi(),w=W.getAvailableAudioTracks(),d,O,f=(d=H.sourceVideoConfig().audioTracks)==null?void 0:(O=d.find(function(J){return J.isDefaultForSource}))==null?void 0:O.id;
if(w=w.find(function(J){return J.getLanguageInfo().getId()===f}))W.setAudioTrack(w,!0),W.setCompositeParam({activeVideoId:M}),H.setActiveSourceId(M)}}),A={};
return _.Z("ytw-composite-source-video-overlay",{class:_.CG("ytwCompositeSourceVideoOverlayHost",(A.ytwCompositeSourceVideoOverlayActive=H.active,A.ytwCompositeSourceVideoOverlayInteracting=H.interacting,A)),style:_.rA({left:function(){var M;return((M=H.data().topLeftCornerX)!=null?M:0)*100+"%"},
top:function(){var M;return((M=H.data().topLeftCornerY)!=null?M:0)*100+"%"},
width:function(){var M;return((M=H.data().width)!=null?M:0)*100+"%"},
height:function(){var M;return((M=H.data().height)!=null?M:0)*100+"%"}}),
"on:click":U},_.Z("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"ek");var Fxk=_.r(function(H){var U=_.b(_.md(function(){var d,O=(d=H.data().sources)==null?void 0:d.find(function(f){return f.isActive});
if(O)return O.videoId})),A=U.next().value,M=U.next().value;
U=_.b(_.iB(!1,void 0,"rmRJ8d"));var W=U.next().value,w=U.next().value;return _.Z("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.c$(function(){w(!0)}),
"on:mouseout":_.c$(function(){w(!1)})},_.Z(_.K,{cond:function(){return H.data().sources},
then:function(d){return _.Z(_.FQ,{each:d},function(O){return _.Z(oWf,{data:O,active:function(){return O.videoId===A()},
setActiveSourceId:M,interacting:W,playerApi:H.playerApi,sourceVideoConfig:function(){return Sa5(H.compositeVideoConfig(),O.videoId)}})})}}))},"fk");var nWf=function(H){_.XG.call(this);this.JSC$21369_watchApi=H;H=_.b(_.iB({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=H.next().value;this.setCompositeVideoOverlayRenderer=H.next().value;H=_.b(_.iB({},void 0,"OlaJpc"));this.compositeVideoConfig=H.next().value;this.setCompositeVideoConfig=H.next().value;Pqh(this);sI5(this)};
_.R(nWf,_.XG);var Pqh=function(H){var U=H.JSC$21369_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){sI5(H)});
H.addOnDisposeCallback(function(){H.JSC$21369_watchApi.unsubscribeByKey(U)})},Nd5=function(H){var U;
return _.u(function(A){if(A.nextAddress==1)return A.yield(H.JSC$21369_watchApi.playerApi,2);U=A.yieldResult;U.setCompositeVideoOverlayRendererComponent(H.container);_.DO(A)})},Swh=function(H){var U;
return _.u(function(A){if(A.nextAddress==1)return A.yield(H.JSC$21369_watchApi.playerApi,2);U=A.yieldResult;U.setCompositeVideoOverlayRendererComponent(void 0);_.DO(A)})},pp5=function(H){var U,A;
return _.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$21369_watchApi.playerApi,2);U=M.yieldResult;H.container=document.createElement("div");A=_.Sy(H.container,function(){return _.Z(Fxk,{data:H.compositeVideoOverlayRenderer,compositeVideoConfig:H.compositeVideoConfig,playerApi:U})},"gk");
H.addOnDisposeCallback(A);_.DO(M)})},sI5=function(H){var U,A,M,W,w,d,O,f;
_.u(function(J){return J.nextAddress==1?(U=H.JSC$21369_watchApi.getPlayerResponse(),w=_.p((A=U)==null?void 0:(M=A.overlay)==null?void 0:(W=M.playerControlsOverlayRenderer)==null?void 0:W.compositeVideoOverlay,uOf),f=(d=U)==null?void 0:(O=d.playerConfig)==null?void 0:O.compositeVideoConfig,w&&H.setCompositeVideoOverlayRenderer(w),f&&H.setCompositeVideoConfig(f),w&&f?H.container?J.jumpTo(6):J.yield(pp5(H),6):LxX(H)?J.yield(Swh(H),0):J.jumpTo(0)):LxX(H)?J.jumpTo(0):J.yield(Nd5(H),0)})},LxX=function(H){var U;
return!((U=H.container)==null||!U.parentElement)};
nWf.prototype.disposeInternal=function(){LxX(this)&&Swh(this);_.XG.prototype.disposeInternal.call(this)};var ai5=function(H){_.XG.call(this);var U=this;this.JSC$21375_watchApi=H;var A=this.JSC$21375_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var M=U.JSC$21375_watchApi.getPlayerResponse();if(M){var W,w;if(M=_.p((W=M.endscreen)==null?void 0:(w=W.endscreenRenderer)==null?void 0:w.hideButton,_.Pc)){var d;(d=U.setEndscreenHideButton)==null||d.call(U,M);R98(U)}}});
this.addOnDisposeCallback(function(){U.JSC$21375_watchApi.unsubscribeByKey(A)});
H=_.b(_.iB({},void 0,"ER3tqb"));this.endscreenHideButton=H.next().value;this.setEndscreenHideButton=H.next().value;EWj(this);mm7(this);gW8(this)};
_.R(ai5,_.XG);var R98=function(H){var U,A;_.u(function(M){if(M.nextAddress==1)return H.creatorEndscreenHideButtonContainer?M.return():M.yield(H.JSC$21375_watchApi.playerApi,2);U=M.yieldResult;H.creatorEndscreenHideButtonContainer=document.createElement("div");_.ev(H.creatorEndscreenHideButtonContainer,!1);U.setCreatorEndscreenHideButton(H.creatorEndscreenHideButtonContainer);A=_.Sy(H.creatorEndscreenHideButtonContainer,function(){return _.Z(_.MI,{data:H.endscreenHideButton,useOutlinedIcon:!0})},"hk");
H.addOnDisposeCallback(function(){A();var W;(W=U)==null||W.setCreatorEndscreenHideButton(void 0)});
_.DO(M)})},EWj=function(H){var U,A;
_.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$21375_watchApi.playerApi,2);U=M.yieldResult;A=function(){H.creatorEndscreenHideButtonContainer&&_.ev(H.creatorEndscreenHideButtonContainer,!0)};
U.addEventListener("endscreenelementshown",A);H.addOnDisposeCallback(function(){var W;(W=U)==null||W.removeEventListener("endscreenelementshown",A)});
_.DO(M)})},mm7=function(H){var U=function(){H.creatorEndscreenHideButtonContainer&&_.ev(H.creatorEndscreenHideButtonContainer,!1)},A=H.JSC$21375_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",U),M=H.JSC$21375_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",U);
H.addOnDisposeCallback(function(){H.JSC$21375_watchApi.unsubscribeByKey(A);H.JSC$21375_watchApi.unsubscribeByKey(M)})},gW8=function(H){H.JSC$21375_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(U){var A=_.p(U,ySh);
H.JSC$21375_watchApi.playerApi.then(function(M){M==null||M.setCreatorEndscreenVisibility(!!A.hide)})});
H.addOnDisposeCallback(function(){H.JSC$21375_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};var z9h=function(H){_.XG.call(this);this.JSC$21381_watchApi=H;xmf(this)};
_.R(z9h,_.XG);var xmf=function(H){var U,A;_.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$21381_watchApi.playerApi,2);U=M.yieldResult;A=function(W){_.Lq().dispatch(_.zQ({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:W}}))};
U.addEventListener("onRetroModeChanged",A);H.addOnDisposeCallback(function(){U.removeEventListener("onRetroModeChanged",A)});
_.DO(M)})};var xTh=0,ZQ=0,CXh=0;var Cqh=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),xH=function(H){_.XG.call(this);this.JSC$21398_watchApi=H;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;tnh(this)};
_.R(xH,_.XG);
var tnh=function(H){var U,A,M;_.u(function(W){if(W.nextAddress==1)return W.yield(H.JSC$21398_watchApi.playerApi,2);U=W.yieldResult;if(H.isDisposed())return W.return();H.sessionStorage=_.rrj("yt-sleep-timer");H.sessionStorage||_.Na(new _.bD("SessionStorage for Sleep Timer is undefined."));((A=H.sessionStorage)==null?void 0:A.get("yt-sleep-timer"))==="true"&&(yN7(),(M=H.sessionStorage)==null||M.remove("yt-sleep-timer"),U.syncVolume());cx5(H,U);yxh(H,U);Bd8(H,U);_.DO(W)})},cx5=function(H,U){var A=function(J){H.onSleepTimerSettingsChanged(J,
U)},M=function(J){H.onPlayerStateChange(J,U)},W=function(){H.onLoopChange(U)},w=function(){H.onCloseMiniplayer(U)},d=function(){a9h(U,(0,_.lD)(),BzB(U),H.selectedOption==="End of video",U.getPlayerState()!==1)},O=function(){H.onSeekComplete(U)},f=function(){_.Fl.cancelJob(ZQ);
var J=U.getCurrentTime()>=U.getDuration(),F=H.selectedOption==="End of video"||H.selectedOption==="End of playlist"&&!Ejj(H.playlistId);J&&F&&rxf(H,U)};
U.addEventListener("onSleepTimerSettingsChanged",A);U.addEventListener("onLoopChange",W);U.addEventListener("onLoopRangeChange",W);U.addEventListener("onStateChange",M);U.addEventListener("onCloseMiniplayer",w);U.addEventListener("onSleepTimerFeatureAvailable",d);U.addEventListener("SEEK_COMPLETE",O);U.addEventListener("onAdStart",f);H.addOnDisposeCallback(function(){U.removeEventListener("onSleepTimerSettingsChanged",A);U.removeEventListener("onLoopChange",W);U.removeEventListener("onLoopRangeChange",
W);U.removeEventListener("onStateChange",M);U.removeEventListener("onCloseMiniplayer",w);U.removeEventListener("onSleepTimerFeatureAvailable",d);U.removeEventListener("SEEK_COMPLETE",O);U.removeEventListener("onAdStart",f)})},yxh=function(H,U){var A=H.JSC$21398_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var M=U.getVideoData().video_id,W,w=(W=Luk(H.JSC$21398_watchApi))==null?void 0:W.playlistId;
H.pauseAutonavPlayback&&(U.pauseVideo(),U.syncVolume(),H.pauseAutonavPlayback=!1);if(H.selectedOption==="End of video"&&M!==H.videoId)zE(H,U);else{if(H.selectedOption==="End of playlist"){W=Ejj(H.playlistId);if(w!==H.playlistId){zE(H,U);break a}W?W&&e98(H,U):DmY(H,U)}H.videoId=M;H.playlistId=w}}});
H.addOnDisposeCallback(function(){H.JSC$21398_watchApi.unsubscribeByKey(A)})},Bd8=function(H,U){var A=_.lx().resolve(_.bK),M=_.It(A,_.J1F,function(w){w&&H.selectedOption!=="Off"&&zE(H,U)}),W=H.JSC$21398_watchApi.subscribeToActiveChanged(function(w){var d,O;
return _.u(function(f){if(f.nextAddress==1)return f.yield(_.vc().navigationFinishPromise,2);d=!_.sXz();O=_.lx().resolve(_.ZB).isMiniplayerActive();w||!plX(H.selectedOption)||O||d||zE(H,U);_.DO(f)})},!1);
A=_.It(A,function(w){return w.entities.playlistLoopStateEntity||{}},function(w){w=w===void 0?{}:w;
var d=RlB(H.JSC$21398_watchApi);if(d){var O;((O=w[d])==null?void 0:O.state)==="PLAYLIST_LOOP_STATE_ALL"&&plX(H.selectedOption)&&zE(H,U)}});
H.addOnDisposeCallback(M);H.addOnDisposeCallback(A);H.addOnDisposeCallback(W)};
xH.prototype.onSleepTimerSettingsChanged=function(H,U){switch(H){case "Off":this.selectedOption!=="Off"&&zE(this,U);break;case "End of video":case "End of playlist":$mk(this,H,U);break;default:$mk(this,H,U,Cqh.get(H))}};
xH.prototype.onLoopChange=function(H){(H.getLoopVideo()||H.getLoopRange())&&plX(this.selectedOption)&&zE(this,H)};
xH.prototype.onCloseMiniplayer=function(H){plX(this.selectedOption)&&zE(this,H)};
var $mk=function(H,U,A,M){lij(H,A);H.selectedOption=U;H.videoId=A.getVideoData().video_id;H.playlistId="";var W;(W=H.sessionStorage)==null||W.set("yt-sleep-timer","true");H.adjustmentsCount++;a9h(A,(0,_.lD)(),BzB(A),H.selectedOption==="End of video");if(H.selectedOption==="End of video")DmY(H,A),Gw7(H,A);else if(H.selectedOption==="End of playlist"){Gw7(H,A);var w,d;H.playlistId=(d=(w=Luk(H.JSC$21398_watchApi))==null?void 0:w.playlistId)!=null?d:"";Ejj(H.playlistId)||DmY(H,A)}else M&&(H.presetFadeSchedulerId=
_.TB(_.Fl,function(){tV5(A,15E3)},M-15E3),H.presetPauseSchedulerId=_.TB(_.Fl,function(){rxf(H,A)},M),zlh(A,(0,_.lD)(),M))},rxf=function(H,U){if(H.JSC$21398_watchApi.isActive()){var A={dismissDialogEndpoint:{}};
var M={commandExecutorCommand:{commands:[A,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};A={buttonViewModel:{title:_.hP("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:A}}};M={buttonViewModel:{title:_.hP("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:M}}};var W={dialogHeaderViewModel:{headline:{content:_.hP("SLEEP_TIMER_ENDED_TITLE")}}},
w={basicContentViewModel:{paragraphs:[{text:{content:_.hP("SLEEP_TIMER_ENDED_TEXT")}}]}};A={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:W,content:w,footer:{panelFooterViewModel:{primaryButton:A,secondaryButton:M,shouldHideDivider:!0}}}}}}};_.lx().resolve(_.YV).resolveCommand(A,{form:{element:H}})}else yN7();YwX(H,!1);qw8(H,U);U.pauseVideo();_.at.getInstance().getState()===2&&U.getPlayerState()===5&&(H.pauseAutonavPlayback=!0)},zE=function(H,U){YwX(H,!0);
qw8(H,U);yN7()},qw8=function(H,U){lij(H,U);
H.selectedOption="Off";H.videoId="";H.playlistId="";H.adjustmentsCount=0;var A;(A=H.sessionStorage)==null||A.remove("yt-sleep-timer");_.Fl.cancelJob(xTh);U.resetSleepTimerMenuSettings()},YwX=function(H,U){U={timer_length_adjustment_times_during_session:H.adjustmentsCount-1,
is_session_cancelled:U};switch(H.selectedOption){case "Off":U.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":U.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":U.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:U.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",U.option_duration_in_minutes=Cqh.get(H.selectedOption)/6E4}_.Fx("sleepTimerSessionFinishEvent",U)};
xH.prototype.onPlayerStateChange=function(H,U){H===1?a9h(U,(0,_.lD)(),BzB(U),this.selectedOption==="End of video"):H===0?(_.Fl.cancelJob(ZQ),U.setVideoTimeLeft(gjk(0,0))):H===2&&_.Fl.cancelJob(ZQ);this.selectedOption==="End of video"?H===0?rxf(this,U):H===2&&cNy(U):this.selectedOption!=="End of playlist"||Ejj(this.playlistId)||(H===0?rxf(this,U):H===2&&cNy(U))};
xH.prototype.onSeekComplete=function(H){H.getPlayerState()===2&&a9h(H,(0,_.lD)(),BzB(H),this.selectedOption==="End of video",!0)};
xH.prototype.onCueRangeEnter=function(H,U){H==="sleep-timer-fade-audio"&&tV5(U,(U.getDuration()-U.getProgressState().current)*1E3)};
xH.prototype.onCueRangeExit=function(H,U){H==="sleep-timer-fade-audio"&&U.getPlayerState()!==0&&cNy(U,!0)};
var DmY=function(H,U){U.addCueRange("sleep-timer-fade-audio",U.getDuration()-15,U.getDuration());U.addEventListener("onCueRangeEnter",function(A){H.onCueRangeEnter(A,U)});
U.addEventListener("onCueRangeExit",function(A){H.onCueRangeExit(A,U)})},e98=function(H,U){U.removeCueRange("sleep-timer-fade-audio");
U.removeEventListener("onCueRangeEnter",function(A){H.onCueRangeEnter(A,U)});
U.removeEventListener("onCueRangeExit",function(A){H.onCueRangeExit(A,U)})},lij=function(H,U){plX(H.selectedOption)?e98(H,U):(_.Fl.cancelJob(H.presetPauseSchedulerId),_.Fl.cancelJob(H.presetFadeSchedulerId),H.presetPauseSchedulerId=0,H.presetFadeSchedulerId=0);
cNy(U,!0)},Gw7=function(H,U){U.setLoop(!1);
U.setLoopVideo(!1);U.setLoopRange(null);(H=RlB(H.JSC$21398_watchApi))&&_.lx().resolve(_.bK).dispatch(_.hs("playlistLoopStateEntity",H,{key:H,state:"PLAYLIST_LOOP_STATE_NONE"}))};var jIp=function(H){_.XG.call(this);var U=this;this.JSC$21401_watchApi=H;_.S("web_watch_force_start_in_theater_mode")&&h9f(this,!0,!1);kw$(this);vWk(this);Tdp(this);var A=this.JSC$21401_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.hr("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.MK.get("wide",void 0)==="1"&&_.WK("wide","1",_.hr("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){U.JSC$21401_watchApi.unsubscribeByKey(A)});
H=H.getRoot();if(H.is==="ytd-watch-flexy"||H.is==="ytd-watch-grid")H.onTheaterReduxValueUpdate(this.getState());this.getState()&&JwX();_.S("web_watch_log_theater_mode_cookie_state")&&_.MK.get("wide","0")==="1"&&_.zdN("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.R(jIp,_.XG);var kw$=function(H){var U,A;_.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$21401_watchApi.playerApi,2);U=M.yieldResult;A=function(W){h9f(H,!!W)};
U.addEventListener("SIZE_CLICKED",A);H.addOnDisposeCallback(function(){U.removeEventListener("SIZE_CLICKED",A)});
_.DO(M)})},vWk=function(H){H.JSC$21401_watchApi.registerActionHandler("yt-toggle-theater-mode",function(U,A){h9f(H,U,A===void 0?!0:A)});
H.addOnDisposeCallback(function(){H.JSC$21401_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
jIp.prototype.getState=function(){return _.As(_.Lq().getState())};
var h9f=function(H,U,A){A=A===void 0?!0:A;var M,W,w,d=_.S("enable_player_resize_transition")&&!!H.JSC$21401_watchApi.getWatchNextResponse()&&!((M=H.JSC$21401_watchApi.getWatchNextResponse())==null?0:(W=M.contents)==null?0:(w=W.twoColumnWatchNextResults)==null?0:w.conversationBar);A0p(function(){_.Lq().dispatch(_.zQ({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:U}}));_.S("theater_mode_scroll_to_top_killswitch")||H.JSC$21401_watchApi.scrollWatchTo(0,!1);_.L1()&&_.S("external_fullscreen")&&_.R2(document.documentElement);
Tdp(H);A&&_.WK("wide",U?"1":"0",_.hr("theater_mode_cookie_max_age_seconds",-1));_.yr(H.JSC$21401_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);H.JSC$21401_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:U});U&&JwX()},{shouldWrap:d})},Tdp=function(H){var U;
_.u(function(A){if(A.nextAddress==1)return A.yield(H.JSC$21401_watchApi.playerApi,2);U=A.yieldResult;U.setSizeStyle(!0,H.getState());_.DO(A)})};var VnX=function(H){_.XG.call(this);var U=this;this.playerApi=H;this.timeToPanelSyncKeyMap={};var A;if(H==null?0:(A=H.isReady)==null?0:A.call(H)){A=_.It(_.lx().resolve(_.bK),function(W){return W.entities.timedMarkersListSyncEntity||{}},function(W,w){W=W===void 0?{}:W;
w=w===void 0?{}:w;for(var d=_.b(Object.keys(w)),O=d.next();!O.done;O=d.next())O=O.value,W[O]!==w[O]&&Iiy(U,w[O]);w=_.b(Object.keys(W));for(d=w.next();!d.done;d=w.next())d=d.value,O=W[d],U.timeToPanelSyncKeyMap[d]&&QI5(U,O)});
this.addOnDisposeCallback(A);var M=function(W){U.onCueRangeEnter(W)};
H.addEventListener("onCueRangeEnter",M);this.addOnDisposeCallback(function(){var W;(W=H.removeEventListener)==null||W.call(H,"onCueRangeEnter",M)})}};
_.R(VnX,_.XG);
var QI5=function(H,U){var A,M;if((A=H.playerApi)==null?0:(M=A.isReady)==null?0:M.call(A)){var W;if((A=U==null?void 0:(W=U.timedListData)==null?void 0:W.sections)&&U!=null&&U.key)for(W=_.b(A),A=W.next();!A.done;A=W.next())if(A=A.value,A.timedSyncDataList&&A.sectionId)for(M=0;M<A.timedSyncDataList.length;M++){var w=A.timedSyncDataList[M];w.syncItemId&&H.playerApi.addCueRange(A.sectionId+"_"+U.key+"_"+w.syncItemId,Number(w.videoTimeMs)/1E3,M===A.timedSyncDataList.length-1?0x8000000000000:Number(A.timedSyncDataList[M+
1].videoTimeMs)/1E3)}}},Iiy=function(H,U){var A,M;
if((A=H.playerApi)==null?0:(M=A.isReady)==null?0:M.call(A)){var W;if((A=U==null?void 0:(W=U.timedListData)==null?void 0:W.sections)&&U!=null&&U.key)for(W=_.b(A),A=W.next();!A.done;A=W.next())if(A=A.value,A.timedSyncDataList&&A.sectionId){M=_.b(A.timedSyncDataList);for(var w=M.next();!w.done;w=M.next())w=w.value,w.syncItemId&&H.playerApi.removeCueRange(A.sectionId+"_"+U.key+"_"+w.syncItemId)}}};
VnX.prototype.onCueRangeEnter=function(H){for(var U=_.b(Object.keys(this.timeToPanelSyncKeyMap)),A=U.next();!A.done;A=U.next()){A=A.value;var M=_.b(H.split("_"+A+"_")),W=M.next().value;M=M.next().value;if(W&&M){H=_.lx().resolve(_.bK);U=this.timeToPanelSyncKeyMap[A];var w=_.Nyc(H.getState(),U);A=H0B(A,W,M);if(A===-1)break;A={activeSyncId:M,activeItemIndex:A,activeSectionInfo:{sectionIdentifier:W}};w?H.dispatch(_.Wl("markersEngagementPanelSyncEntity",U,A)):H.dispatch(_.hs("markersEngagementPanelSyncEntity",
U,Object.assign({},{key:U},A)));break}}};
var H0B=function(H,U,A){var M=_.lx().resolve(_.bK),W,w;H=(W=j2j(M.getState(),H))==null?void 0:(w=W.timedListData)==null?void 0:w.sections;if(!H)return-1;W=0;w=_.b(H);for(H=w.next();!H.done;H=w.next()){H=H.value;M=H.timedSyncDataList||[];if(H.sectionId===U)return U=M.findIndex(function(d){return d.syncItemId===A}),U===-1?U:W+U;
W+=M.length}return-1};var Ma$=function(H){_.XG.call(this);var U=this;this.JSC$21415_watchApi=H;this.unresolvedCommands=[];this.JSC$21415_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(A){Ut5(U,A)});
this.addOnDisposeCallback(function(){U.JSC$21415_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
A4m(this)};
_.R(Ma$,_.XG);var A4m=function(H){var U;_.u(function(A){if(A.nextAddress==1)return A.yield(H.JSC$21415_watchApi.playerApi,2);U=A.yieldResult;if(H.isDisposed())return A.return();H.timedSyncObserver=new VnX(U);H.unresolvedCommands.length&&(H.unresolvedCommands.forEach(function(M){return Ut5(H,M)}),H.unresolvedCommands=[]);
_.kl(H,H.timedSyncObserver);_.DO(A)})},Ut5=function(H,U){if(H.timedSyncObserver){var A=_.p(U,$BB);
if(A&&A.timedSyncEntityKey&&A.panelSyncEntityKey){H=H.timedSyncObserver;U=A.timedSyncEntityKey;var M=A.panelSyncEntityKey;A=!!A.isEnabled;A=A===void 0?!0:A;var W=_.lx().resolve(_.bK);W=j2j(W.getState(),U);A?H.timeToPanelSyncKeyMap[U]||(H.timeToPanelSyncKeyMap[U]=M,QI5(H,W)):(delete H.timeToPanelSyncKeyMap[U],Iiy(H,W))}}else H.unresolvedCommands.push(U)};var Ws5=_.r(function(H){var U=H.data,A=H.maybeLogSmartSkipClientData,M=null,W=null,w=_.S("web_enable_auto_focus_for_timely_action_button"),d=function(){M=document.activeElement},O=function(){U().smartSkipMetadata&&(M=document.activeElement,oA8(function(){return W}))},f=function(F){if(U().smartSkipMetadata&&(!F||F.key!=="Enter")){M&&M.isConnected&&(oA8(function(){return M}),M=null);
var P;(P=W)==null||P.blur()}};
H=_.c$(function(){A==null||A(!0,U());return!1});
var J=_.sB(_.Wq(function(){return U().rendererContext},{onTap:function(F,P){P({disableClickTracking:!0})}}),_.eD({visibilityCallback:function(F){if(w)F?W&&U().smartSkipMetadata&&(O(),document.addEventListener("focusin",d)):(document.removeEventListener("focusin",d),f());
else if(F){F=_.AF(U().rendererContext);var P=Number(U().maxVisibleDurationMilliseconds),n,N=(n=_.p(U().rendererContext,_.Tn))==null?void 0:n.label;F&&P&&N&&(n={label:N,command:F,durationMs:P},_.lx().resolve(_.as).enqueue(n))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.pA(function(){if(w){var F;if((W=(F=J.value)==null?void 0:F.querySelector("button"))&&U().smartSkipMetadata){var P;(P=J.value)==null||P.addEventListener("keydown",f)}}});
_.m4(function(){w&&(W&&U().smartSkipMetadata&&W.removeEventListener("keydown",f),document.removeEventListener("focusin",d),f())});
return _.Z("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:J,"on:click":H},_.Z(_.YY,{data:function(){return U().content}},{buttonViewModel:_.yJ}))},"jk");var wk8=_.r(function(H){var U=H.data,A=H.playerApi,M=_.lx().resolve(_.Qky);H=_.b(_.md(function(){U()}));
var W=H.next().value,w=H.next().value,d=function(){return DTf(U(),W())},O=function(J,F){var P,n,N=(P=_.p(F==null?void 0:F.rendererContext,_.vX))==null?void 0:(n=P.loggingDirectives)==null?void 0:n.trackingParams;
if((F=F==null?void 0:F.smartSkipMetadata)&&F.loggingData&&(n=F.loggingData,F=n.algorithmId,P=n.startMilliseconds,n=n.endMilliseconds,F&&P!==void 0&&n!==void 0)){var L,m;J={smartSkipData:Object.assign({},{versionName:F,startMediaTimeMs:P,endMediaTimeMs:n},J&&{userInteractionMediaTimeMs:(Math.floor(((L=_.Ly())==null?void 0:(m=L.getPlayer())==null?void 0:m.getCurrentTime())||0)*1E3).toString()})};L=_.XK();var z;N&&(z=_.IS(N));L&&z&&_.pE(L,z,J)}},f=function(J,F){var P=DTf(U(),J);
if(P){var n=_.p(P,elp),N;if(N=F)N=A(),P=_.p(P,elp),N=P!=null&&P.smartSkipMetadata?!(N==null?0:N.isSameMarkerTypeVisible((P==null?void 0:P.smartSkipMetadata.markerKey)||"")):!0;if(N){var L,m;(n==null?0:(L=n.smartSkipMetadata)==null?0:(m=L.loggingData)==null?0:m.isCounterfactual)||(O(!1,n),w(J))}else F||W()!==J||w(void 0)}};
_.Em(function(){var J=U().timelyActions;if(J){J=_.b(J);for(var F=J.next();!F.done;F=J.next()){F=_.p(F.value,elp);var P=void 0;(P=F)!=null&&P.cueRangeId&&M.timelyActionsMap.set(F.cueRangeId,f)}_.m4(function(){M.timelyActionsMap.clear()})}},"l2RtC");
return _.Z("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.Z(_.YY,{data:d},{timelyActionViewModel:function(J){return _.Z(Ws5,{data:J.data,maybeLogSmartSkipClientData:function(){O(!0,_.p(d(),elp))}})}}))},"lk");var i0y=function(H){_.XG.call(this);this.JSC$21428_watchApi=H;H=_.b(_.iB({},void 0,"UN7k5e"));this.timelyActionsOverlay=H.next().value;this.setTimelyActionsOverlay=H.next().value;Xky(this)};
_.R(i0y,_.XG);var Xky=function(H){var U,A,M,W;_.u(function(w){if(w.nextAddress==1)return b0m(H),dtk(H),H.timelyActionsContainer=document.createElement("div"),w.yield(H.JSC$21428_watchApi.playerApi,2);U=w.yieldResult;(M=(A=U).insertTimelyActionUi)==null||M.call(A,H.timelyActionsContainer);W=_.Sy(H.timelyActionsContainer,function(){return _.Z(wk8,{data:H.timelyActionsOverlay,playerApi:U})},"mk");
H.addOnDisposeCallback(W);_.DO(w)})},dtk=function(H){var U=H.JSC$21428_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){b0m(H)});
H.addOnDisposeCallback(function(){H.JSC$21428_watchApi.unsubscribeByKey(U)})},b0m=function(H){var U=H.JSC$21428_watchApi.getWatchNextResponse();
if(U){var A,M;if(U=_.p((A=U.playerOverlays)==null?void 0:(M=A.playerOverlayRenderer)==null?void 0:M.timelyActionsOverlayViewModel,YX5)){var W;(W=H.setTimelyActionsOverlay)==null||W.call(H,U)}}};var uv5=function(H){_.XG.call(this);this.JSC$21432_watchApi=H;O0B(this)};
_.R(uv5,_.XG);var O0B=function(H){var U,A;_.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$21432_watchApi.playerApi,2);U=M.yieldResult;A=function(W){_.$$.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.p(W,Huy)},popupType:"TOAST"}})};
U.addEventListener("onYtShowToast",A);H.addOnDisposeCallback(function(){U.removeEventListener("onYtShowToast",A)});
_.DO(M)})};var Z0$=function(H){var U=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.r1;this.element.addEventListener("load",function(){U.loaded=!0;U.resolver.resolve(U.element)});
this.element.addEventListener("error",function(){U.failed=!0});
this.element.src=H};var fFX=function(H,U){this.image=H;this.frame=U};
fFX.prototype.drawToCanvas=function(H,U){var A=this.frame.width/this.frame.columns,M=this.frame.height/this.frame.rows,W=U.offsetX,w=U.offsetY;$Ty(U)?(H.fillStyle=U.fullscreen?"#000":"#0f0f0f",H.fillRect(W,w,(U==null?void 0:U.width)||A,(U==null?void 0:U.height)||M)):H.drawImage(this.image,this.frame.column*A,this.frame.row*M,A,M,W,w,(U==null?void 0:U.width)||A,(U==null?void 0:U.height)||M)};
var J4h=function(H){this.color=H};
J4h.prototype.drawToCanvas=function(H,U){var A=U.offsetX,M=U.offsetY,W=U.width,w=U.height;H.fillStyle=$Ty(U)?U.fullscreen?"#000":"#0f0f0f":this.color;H.fillRect(A,M,W,w)};var CS=function(H,U){rC.call(this);this.playerApi=U;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.QT(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();Ksy(this,H);oqk(this);this.update()};
_.R(CS,rC);CS.prototype.addEventListeners=function(){var H=this,U=function(){H.update()},A=function(W){H.paused||(W.type==="newdata"&&(H.mosaics.clear(),Fsh(H),tX(H)),oqk(H),H.update())},M=function(){H.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",U);this.playerApi.addEventListener("onVideoDataChange",A);this.playerApi.addEventListener("onStateChange",M);this.addOnDisposeCallback(function(){H.playerApi.removeEventListener("onVideoProgress",U);H.playerApi.removeEventListener("onVideoDataChange",A);H.playerApi.removeEventListener("onStateChange",M)})};
var Ksy=function(H,U){H.cinematicContainerRenderer!==U&&(H.cinematicContainerRenderer=U,Fsh(H),tX(H),H.colorStoreUpdateJobId=_.Fl.addLowPriorityJob(function(){var A;if((A=H.cinematicContainerRenderer.colorStore)!=null&&A.sampledColors){A=Infinity;for(var M=_.b(H.cinematicContainerRenderer.colorStore.sampledColors),W=M.next();!W.done;W=M.next()){W=W.value;var w=Number(W.key);w!==0&&w<A&&(A=w);w=_.bN(W.value);H.colorStore.set(W.key,w)}H.colorStoreTimeInterval=A}}))},Fsh=function(H){H.colorStoreUpdateJobId&&
(_.Fl.cancelJob(H.colorStoreUpdateJobId),H.colorStoreUpdateJobId=void 0);
H.colorStore.clear();H.currentStoryboardColor=void 0},Pik=function(H,U){var A;
return(A=H.getStoryboardFrame(U))==null?void 0:A.url};
CS.prototype.onPlayerStateChange=function(){this.update()};
CS.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var oqk=function(H){var U=H.getStoryboardFrame(0);U&&(U=new _.QT(U.width/U.columns,U.height/U.rows),FM$(H.currentStoryboardSize,U)||(H.currentStoryboardSize=U,H.publish("STORYBOARD_SIZE_CHANGED",H.currentStoryboardSize)))},sKB=function(H,U){H.currentStoryboardIndex=U;
H.pendingStoryboardIndex=NaN;U=H.getStoryboardFrame(H.currentStoryboardIndex);H.currentStoryboard=new fFX(H.mosaics.get(U.url).element,U);H.publish("STORYBOARD_CHANGED",H.currentStoryboard);H.lastUpdateTime=(0,_.lD)()};
CS.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var tX=function(H){H.currentStoryboardIndex=NaN;H.pendingStoryboardIndex=NaN;H.currentStoryboard&&(H.currentStoryboard=void 0,H.publish("STORYBOARD_CHANGED",void 0));H.lastUpdateTime=NaN};
CS.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)tX(this);else{var H=this.playerApi.getPlayerState(1);if(H===-1||H===5||H===0)tX(this);else if(isNaN(this.lastUpdateTime)||!((0,_.lD)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(H=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){H=""+Math.round(H*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var U=this.colorStore.get(H);U?U!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=U,this.currentStoryboard=new J4h(U),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.lD)()):(_.Na(new _.bD("Could not find color for timestamp: "+H,this.cinematicContainerRenderer)),tX(this))}else tX(this);else nq5(this,H)}};
var nq5=function(H,U){var A=H.getStoryboardFrameIndex(U);if(A!==H.currentStoryboardIndex&&A!==H.pendingStoryboardIndex){U=Pik(H,A);var M=H.mosaics.get(U);M?M.loaded&&sKB(H,A):(H.pendingStoryboardIndex=A,A=new Z0$(U),H.mosaics.set(U,A),A.resolver.promise.then(function(){if(!H.isDisposed()&&!H.paused&&!isNaN(H.pendingStoryboardIndex)){var W=Pik(H,H.pendingStoryboardIndex);if(W){var w;(w=H.mosaics.get(W))!=null&&w.loaded&&sKB(H,H.pendingStoryboardIndex)}else tX(H)}}))}};
CS.prototype.getStoryboardFrameIndex=function(H){var U=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(H,U)};
CS.prototype.getStoryboardFrame=function(H){var U=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,A,M;return((M=(A=this.playerApi).getStoryboardFrame)==null?void 0:M.call(A,H,U))||null};
CS.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var yK=function(H,U,A,M){M=M===void 0?!1:M;_.XG.call(this);this.cinematicContainerRenderer=U;this.playerApi=A;this.theater=this.fullscreen=!1;var W;this.ambientLightThemeEnabled=!M&&!!(U==null?0:(W=U.config)==null?0:W.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=M)&&!0;this.container=document.createElement("div");H.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);Nt5(this);this.backCanvas=
l9X();this.frontCanvas=l9X();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new CS(U,this.playerApi);_.kl(this,this.storyboardManager);this.addEventListeners();SIj(this)?pkh(this,100+cf(this)*3*2,100+cf(this)*3*2):Lsh(this);Ri7(this,this.storyboardManager.currentStoryboard)};
_.R(yK,_.XG);
var Nt5=function(H){var U=H.playerApi.getVideoAspectRatio();_.Fw(H.container,{"aspect-ratio":""+U,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var A;var M;if((H.fullscreen||H.theater)&&((A=H.cinematicContainerRenderer.config)==null?0:(M=A.watchFullscreenConfig)==null?0:M.colorSourceWidthMultiplier))A=H.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var W;A=(W=
H.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?W:H.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var w,d;if((H.fullscreen||H.theater)&&((w=H.cinematicContainerRenderer.config)==null?0:(d=w.watchFullscreenConfig)==null?0:d.colorSourceHeightMultiplier))W=H.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var O;W=(O=H.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?O:H.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.Fw(H.innerContainer,
{"aspect-ratio":""+U,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+A+", "+W+")"});Gs7()&&_.Fw(H.innerContainer,"filter","blur("+_.hr("cinematic_watch_css_filter_blur_strength",40)+"px)")};
yK.prototype.setFullscreen=function(H,U){this.fullscreen=H;this.theater=!!U;Nt5(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),H=this.storyboardManager.currentStoryboard,Eqh(this),H&&mtm(this,H)};
yK.prototype.addEventListeners=function(){var H=this,U=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(W){Ri7(H,W)}),A=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){Lsh(H)});
this.addOnDisposeCallback(function(){H.storyboardManager.unsubscribeByKey(U);H.storyboardManager.unsubscribeByKey(A)});
var M=function(){Nt5(H)};
this.playerApi.addEventListener("onVideoDataChange",M);this.addOnDisposeCallback(function(){H.playerApi.removeEventListener("onVideoDataChange",M)})};
var Lsh=function(H){if(!SIj(H)){var U=H.storyboardManager.currentStoryboardSize;isNaN(U.width)||isNaN(U.height)||pkh(H,Number(U.width)+cf(H)*3*2,Number(U.height)+cf(H)*3*2)}},pkh=function(H,U,A){H.backCanvas.element.width=U;
H.backCanvas.element.height=A;H.frontCanvas.element.width=U;H.frontCanvas.element.height=A},SIj=function(H){return H.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},Ri7=function(H,U,A){A=A===void 0?!1:A;
var M=H.frontCanvas.element.getAnimations()[0];M?(M.pause(),H.backCanvas.context.globalAlpha=Number(getComputedStyle(H.frontCanvas.element).opacity),H.frontCanvas.element.style.opacity="0",M.finish()):H.backCanvas.context.globalAlpha=1;H.backCanvas.context.drawImage(H.frontCanvas.element,0,0,H.backCanvas.element.width,H.backCanvas.element.height);Eqh(H);U&&mtm(H,U);U=U?H.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.hr("cinematic_watch_fade_out_duration",500);M=_.hr("cinematic_watch_transition_frame_rate")/
1E3;var W={};M&&(W={easing:"steps("+Math.round(U*M)+")"});(A===void 0?0:A)||H.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:U,iterations:1},W));H.frontCanvas.element.style.opacity="1"},Eqh=function(H){var U=H.ambientLightThemeEnabled||H.ambientTheaterModeEnabled,A=H.ambientLightThemeEnabled||H.ambientFullscreenEnabled;
H.frontCanvas.context.fillStyle=H.theater&&U||H.fullscreen&&A?"#000":"#0f0f0f";Gs7()||(H.frontCanvas.context.filter="blur(0)");H.frontCanvas.context.fillRect(0,0,H.frontCanvas.element.width,H.frontCanvas.element.height)},mtm=function(H,U){Gs7()||(H.frontCanvas.context.filter="blur("+cf(H)+"px)");
H.frontCanvas.context.globalAlpha=H.fullscreen&&H.ambientFullscreenEnabled||H.theater&&H.ambientTheaterModeEnabled?_.hr("cinematic_watch_effect_letterbox_opacity",.4):_.hr("cinematic_watch_effect_opacity",.4);var A={offsetX:cf(H)*3,offsetY:cf(H)*3,theater:H.theater,fullscreen:H.fullscreen};SIj(H)&&(A.width=100,A.height=100);U.drawToCanvas(H.frontCanvas.context,A);H.frontCanvas.context.globalAlpha=1},cf=function(H){var U;
return(U=H.cinematicContainerRenderer.config.blurStrength)!=null?U:5};
yK.prototype.disposeInternal=function(){_.XG.prototype.disposeInternal.call(this);this.container.remove()};
yK.prototype.clear=function(){Ri7(this,void 0,!0)};
yK.prototype.pause=function(){this.storyboardManager.pause()};var gqj=_.AJ(function(){var H,U,A=!((U=(H=document.createElement("canvas")).getContext)==null||!U.call(H,"2d")),M;H=!((M=CSS)==null||!M.supports("filter: blur(0)"));M=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var W;return A&&H&&M&&!((W=CSS)==null||!W.supports("aspect-ratio: 1 / 1"))}),Bf=function(H,U){rC.call(this);
this.container=H;this.playerApi=U;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=aFy(this);this.update()};
_.R(Bf,rC);var xt5=function(H){var U=document.documentElement.hasAttribute("dark");H.isDarkModeEnabled=U;H.update()},ziY=function(H,U){H.settingEnabled=U;
H.update()};
Bf.prototype.setFullscreen=function(H,U){this.fullscreen=H;this.theater=!!U;this.update()};
var Ciy=function(H,U){H.cinematicContainerRenderer=U;H.cinematicContainerRenderer&&(H.cinematicsVe=_.ts(H.isShorts()?227858:159022),_.$g(_.k$(),H.cinematicsVe),H.loggingClientData={watchCinematicContainerData:{presentationStyle:H.cinematicContainerRenderer.presentationStyle}});H.update()};
Bf.prototype.isShorts=function(){var H,U;return((H=this.cinematicContainerRenderer)==null?void 0:(U=H.config)==null?void 0:U.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
Bf.prototype.isAllowed=function(){var H;if(H=gqj()){var U,A,M;H=((A=this.cinematicContainerRenderer)==null?void 0:A.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((M=this.cinematicContainerRenderer)==null||!M.colorStore)||((U=this.cinematicContainerRenderer)==null?void 0:U.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(H)if(_.S("web_cinematics_pausing")){var W,w;H=this.isDarkModeEnabled||!!((W=this.cinematicContainerRenderer)==
null?0:(w=W.config)==null?0:w.enableInLightTheme)}else{var d,O;W=!!((d=this.cinematicContainerRenderer)==null?0:(O=d.config)==null?0:O.enableInLightTheme)&&(_.gD("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);H=this.isDarkModeEnabled||W}if(d=H){var f,J;d=!((J=(f=this.prefersReducedMotionQuery)==null?void 0:f.matches)!=null&&J)}return d};
var taY=function(H){var U;(U=H.currentCinematicEffect)==null||U.clear()},c47=function(H){var U;
(U=H.currentCinematicEffect)==null||U.pause()},y4f=function(H){(H=H.currentCinematicEffect)!=null&&(H=H.storyboardManager,H.paused=!1,oqk(H),H.update())};
Bf.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var aFy=function(H){if(!_.S("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var U=window.matchMedia("(prefers-reduced-motion: reduce)"),A=function(){H.update()};
U.addListener(A);H.addOnDisposeCallback(function(){U.removeListener(A)});
return U}};
Bf.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var H=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new yK(this.container,H,this.playerApi,this.isDarkModeEnabled),_.kl(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var U=this.currentCinematicEffect;U.cinematicContainerRenderer!==
H&&(U.cinematicContainerRenderer=H,Ksy(U.storyboardManager,H),Nt5(U));H=_.TR();_.jb(0,194,!0);H.save();H=_.XK();this.cinematicsVe&&H&&_.sn(H,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(H=_.XK(),this.cinematicsVe&&H&&_.nE(H,[this.cinematicsVe],!1,this.loggingClientData),_.zg(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.D5.Object.defineProperties(Bf.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var BtX=!1,$t5=function(H){_.XG.call(this);this.JSC$21465_watchApi=H;this.fullscreen=this.theater=!1;r4f(this);ei8(this);DtY(this)};
_.R($t5,_.XG);var DtY=function(H){var U,A,M;_.u(function(W){if(W.nextAddress==1)return W.yield(H.JSC$21465_watchApi.playerApi,2);U=W.yieldResult;if(H.isDisposed())return W.return();A=H.JSC$21465_watchApi.getElement("CINEMATICS");if(!A)return W.return();H.JSC$21465_cinematicController=new Bf(A,U);_.kl(H,H.JSC$21465_cinematicController);xt5(H.JSC$21465_cinematicController);lFp(H,_.MWM());M=H.JSC$21465_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(w){G5h(H,w)});
H.addOnDisposeCallback(function(){H.JSC$21465_watchApi.unsubscribeByKey(M)});
YIk(H);G5h(H,H.JSC$21465_cinematicController.isAllowed());qI$(H);hih(H);_.DO(W)})},qI$=function(H){H.fullscreen=_.MF(_.Lq().getState());
H.theater=_.As(_.Lq().getState());k5j(H,H.fullscreen,H.theater);var U=_.It(_.Lq(),_.MF,function(M){H.fullscreen=M;k5j(H,H.fullscreen,H.theater)}),A=_.It(_.Lq(),_.As,function(M){H.theater=M;
k5j(H,H.fullscreen,H.theater)});
H.addOnDisposeCallback(U);H.addOnDisposeCallback(A)},r4f=function(H){var U=H.JSC$21465_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){YIk(H)});
H.addOnDisposeCallback(function(){H.JSC$21465_watchApi.unsubscribeByKey(U)})},ei8=function(H){var U,A;
_.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$21465_watchApi.playerApi,2);U=M.yieldResult;A=function(W){lFp(H,W)};
U.addEventListener("cinematicSettingsToggleChange",A);H.addOnDisposeCallback(function(){U.removeEventListener("cinematicSettingsToggleChange",A)});
_.DO(M)})},YIk=function(H){var U=H.JSC$21465_watchApi.getWatchNextResponse(),A;
U=_.p(U==null?void 0:(A=U.pageVisualEffects)==null?void 0:A[0],L4);var M;(M=H.JSC$21465_cinematicController)==null||Ciy(M,U)},lFp=function(H,U){var A;
(A=H.JSC$21465_cinematicController)==null||ziY(A,U);vq8(H)},G5h=function(H,U){var A;
_.u(function(M){if(M.nextAddress==1)return _.S("kevlar_watch_cinematics_invisible")&&(U=!1),M.yield(H.JSC$21465_watchApi.playerApi,2);A=M.yieldResult;A.updateCinematicSettings(U);vq8(H);_.DO(M)})},hih=function(H){var U=_.TR();
if(_.S("kevlar_measure_ambient_mode_idle")&&!U.getFlag(192)&&!BtX){BtX=!0;var A=_.bM(_.Fl,function(){_.lx().resolve(_.yrh).start(1E4)},5E3);
H.addOnDisposeCallback(function(){_.Fl.cancelJob(A);_.lx().resolve(_.yrh).stop()})}},k5j=function(H,U,A){H.fullscreen=U;
H.theater=A;var M;(M=H.JSC$21465_cinematicController)==null||M.setFullscreen(H.fullscreen,H.theater);if(_.S("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(H.theater||H.fullscreen){var W;(W=H.JSC$21465_cinematicController)==null||y4f(W)}else{var w;(w=H.JSC$21465_cinematicController)==null||c47(w)}},vq8=function(H){var U;
H.JSC$21465_watchApi.getRoot().toggleCinematicsActive(!((U=H.JSC$21465_cinematicController)==null||!U.isEnabled()))};var QKm=function(H){_.XG.call(this);var U=this;this.JSC$21468_watchApi=H;this.commentsReady=!1;this.setCommentsJobId=0;H=_.It(_.Lq(),iG,function(){TtB(U)});
this.addOnDisposeCallback(H);var A=this.JSC$21468_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){jKk(U)}),M=this.JSC$21468_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){jKk(U)});
this.addOnDisposeCallback(function(){U.JSC$21468_watchApi.unsubscribeByKey(A);U.JSC$21468_watchApi.unsubscribeByKey(M)});
var W=function(){_.S("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&IF$(U,"false")};
this.JSC$21468_watchApi.getRoot().addEventListener("yt-page-data-will-update",W);this.addOnDisposeCallback(function(){U.JSC$21468_watchApi.getRoot().removeEventListener("yt-page-data-will-update",W)});
jKk(this)};
_.R(QKm,_.XG);var jKk=function(H){H.commentsReady=!1;_.Fl.cancelJob(H.setCommentsJobId);H.setCommentsJobId=_.bM(_.Fl,function(){TtB(H)},1E3)},TtB=function(H){if(!H.commentsReady){_.ba("cmi");
_.Fl.cancelJob(H.setCommentsJobId);var U,A,M,W,w=(U=H.JSC$21468_watchApi.getWatchNextResponse())==null?void 0:(A=U.contents)==null?void 0:(M=A.twoColumnWatchNextResults)==null?void 0:(W=M.results)==null?void 0:W.results.contents;U=void 0;if(w&&w.length)for(w=_.b(w),A=w.next();!A.done;A=w.next())if(A=A.value,W=M=void 0,((M=A)==null?void 0:(W=M.itemSectionRenderer)==null?void 0:W.sectionIdentifier)==="comment-item-section"){_.S("web_watch_provide_undefined_comments")?U=A.itemSectionRenderer:H.JSC$21468_watchApi.provideRenderingData("COMMENTS",
A.itemSectionRenderer);IF$(H,"true");break}_.S("web_watch_provide_undefined_comments")&&H.JSC$21468_watchApi.provideRenderingData("COMMENTS",U);H.commentsReady=!0;H.JSC$21468_watchApi.dispatchEvent("yt-watch-comments-ready")}},IF$=function(H,U){var A;
(A=H.JSC$21468_watchApi.getElement("COMMENTS"))==null||A.setAttribute("canScheduleJobs",U)};var Vam=["engagement-panel-ads"],WWh=function(H){_.XG.call(this);var U=this;this.JSC$21471_watchApi=H;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.S("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.S("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.S("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.hr("swatcheroo_provide_all_data_delay_ms",
250);if(this.swatcherooProvideAllDataOnScheduledJob)HSY(this);else{var A=this.JSC$21471_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Uwy(U);rR(U)}),M=this.JSC$21471_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){eF(U);
rR(U)});
this.JSC$21471_watchApi.getRoot().is==="ytd-watch-grid"&&_.S("swatcheroo_pbs_load_grid")&&(AXm(this),MFm(this));this.addOnDisposeCallback(function(){U.JSC$21471_watchApi.unsubscribeByKey(A);U.JSC$21471_watchApi.unsubscribeByKey(M);_.Fl.cancelJob(U.provideRichGridJobId)});
Uwy(this);eF(this)}};
_.R(WWh,_.XG);var HSY=function(H){var U=H.JSC$21471_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){H.providePlayerJobId=_.qT(_.Fl,function(){Uwy(H);rR(H)},H.provideAllDataDelayMs)}),A=H.JSC$21471_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){H.provideWatchNextJobId=_.qT(_.Fl,function(){eF(H);
rR(H)},H.provideAllDataDelayMs)}),M=H.JSC$21471_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){H.provideWatchNextJobId=_.qT(_.Fl,function(){eF(H);
rR(H)},H.provideAllDataDelayMs)});
H.JSC$21471_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.bM(_.Fl,function(){Uwy(H);eF(H);rR(H)},100)});
H.JSC$21471_watchApi.addPageDisposeJob(function(){_.Fl.cancelJob(H.provideWatchNextJobId);_.Fl.cancelJob(H.providePlayerJobId)});
H.addOnDisposeCallback(function(){H.JSC$21471_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");H.JSC$21471_watchApi.unsubscribeByKey(U);H.JSC$21471_watchApi.unsubscribeByKey(A);H.JSC$21471_watchApi.unsubscribeByKey(M);_.Fl.cancelJob(H.providePlayerJobId);_.Fl.cancelJob(H.provideWatchNextJobId)});
Uwy(H);eF(H)},Uwy=function(H){var U=H.JSC$21471_watchApi.getPlayerResponse(),A,M,W=(M=U==null?void 0:(A=U.playabilityStatus)==null?void 0:A.messageRenderers)!=null?M:[],w,d;
U=(d=U==null?void 0:(w=U.playabilityStatus)==null?void 0:w.messages)!=null?d:[];w=_.b(U);for(d=w.next();!d.done;d=w.next())W.push({alertRenderer:{text:_.Nh(d.value),type:"WARNING"}});H.JSC$21471_watchApi.provideRenderingData("ALERTS",W)},eF=function(H){var U=[],A,M,W,w=H.JSC$21471_watchApi.getWatchNextResponse(),d,O,f,J,F=w==null?void 0:(d=w.contents)==null?void 0:(O=d.twoColumnWatchNextResults)==null?void 0:(f=O.results)==null?void 0:(J=f.results)==null?void 0:J.contents;
if(F)for(d=_.b(F),O=d.next();!O.done;O=d.next())if(O=O.value,O.videoPrimaryInfoRenderer)var P=O;else if(O.videoSecondaryInfoRenderer){var n=O;J=f=void 0;O=Object.assign({},(f=O.videoSecondaryInfoRenderer)==null?void 0:(J=f.metadataRowContainer)==null?void 0:J.metadataRowContainerRenderer);if(O.rows&&O.collapsedItemCount!==void 0){O.rows=O.rows.slice(0,O.collapsedItemCount).filter(function(Hj){return!!Hj.richMetadataRowRenderer});
O.collapsedItemCount=O.rows.length;var N={metadataRowContainerRenderer:O}}}else if(O.merchandiseShelfRenderer)var L=O;else if(O.ticketShelfRenderer)var m=O;else if(O.expandableMetadataRenderer)var z=O;else if(O.itemSectionRenderer)if(f=O.itemSectionRenderer.contents,J=void 0,H.directlyProvideComments&&((J=O.itemSectionRenderer)==null?void 0:J.sectionIdentifier)==="comment-item-section")_.ba("cmi"),H.JSC$21471_watchApi.provideRenderingData("COMMENTS",O.itemSectionRenderer);else if(f)for(O=_.b(f),f=
O.next();!f.done;f=O.next())if(f=f.value,f.commentsEntryPointHeaderRenderer)var c=f;else if(f.clarificationRenderer||f.infoPanelContainerRenderer||f.infoPanelContentRenderer||f.emergencyOneboxRenderer){U.push(f);var C=C||!!n}else f.limitedStateMessageRenderer?M=f:f.videoMetadataCarouselViewModel&&(W=f);if(_.S("web_watch_merch_in_sd_when_ticket_shelf_present")&&L&&m){var v=L;L=void 0}if(H.provideWatchNextSecondaryResults){var Y,D,h;H.JSC$21471_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
w==null?void 0:(Y=w.contents)==null?void 0:(D=Y.twoColumnWatchNextResults)==null?void 0:(h=D.secondaryResults)==null?void 0:h.secondaryResults)}if(H.JSC$21471_watchApi.getRoot().is==="ytd-watch-grid"){var T,WF;H.JSC$21471_watchApi.provideRenderingData("LIVE_CHAT",w==null?void 0:(T=w.contents)==null?void 0:(WF=T.twoColumnWatchNextResults)==null?void 0:WF.conversationBar)}var dK,SN,o_,PF;(Y=w==null?void 0:(dK=w.contents)==null?void 0:(SN=dK.twoColumnWatchNextResults)==null?void 0:(o_=SN.secondaryResults)==
null?void 0:(PF=o_.secondaryResults)==null?void 0:PF.offerModule)&&(Y.donationShelfRenderer||Y.donationUnavailableRenderer)&&H.JSC$21471_watchApi.getRoot().is!=="ytd-watch-grid"&&(A=Y);dK=H.JSC$21471_watchApi.getPlayerResponse();if(!dK||!_.qi7(dK.playabilityStatus,w==null?void 0:w.playerOverlays)){var BF;if(w==null?0:(BF=w.contents)==null?0:BF.singleColumnWatchNextResults){var kc,G8;var Pr=w==null?void 0:(kc=w.contents.singleColumnWatchNextResults.results)==null?void 0:(G8=kc.results)==null?void 0:
G8.contents}else{var Z3,Yc,sz,Ry;BF=!!(F==null?0:(Z3=F[0])==null?0:(Yc=Z3.itemSectionRenderer)==null?0:(sz=Yc.contents)==null?0:(Ry=sz[0])==null?0:Ry.backgroundPromoRenderer);var oy,aY;Z3=!!(w==null?0:(oy=w.contents)==null?0:(aY=oy.twoColumnWatchNextResults)==null?0:aY.secondaryResults);BF&&!Z3&&(Pr=F)}}F=U[0];oy=U[1];C&&U.length===1&&(oy=F,F=void 0);H.JSC$21471_watchApi.provideRenderingData("PRIMARY_INFO",P);H.JSC$21471_watchApi.provideRenderingData("SECONDARY_INFO",n);H.JSC$21471_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
c);H.JSC$21471_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",W);H.JSC$21471_watchApi.provideRenderingData("CLARIFICATION",F);H.JSC$21471_watchApi.provideRenderingData("RICH_METADATA",N);H.JSC$21471_watchApi.provideRenderingData("MERCH_SHELF",L);_.S("web_watch_merch_in_sd_when_ticket_shelf_present")&&H.JSC$21471_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",v);H.JSC$21471_watchApi.provideRenderingData("TICKET_SHELF",m);H.JSC$21471_watchApi.provideRenderingData("LIMITED_STATE",M);H.JSC$21471_watchApi.getRoot().is!==
"ytd-watch-grid"&&H.JSC$21471_watchApi.provideRenderingData("DONATION_SHELF",A);H.JSC$21471_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Pr);H.JSC$21471_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",oy);H.JSC$21471_watchApi.provideRenderingData("EXPANDABLE_METADATA",z);if(H.swatcherooProvideAllDataOnScheduledJob){var im,Kh,rK,FB,T2,xK;P=w==null?void 0:(im=w.contents)==null?void 0:(Kh=im.twoColumnWatchNextResults)==null?void 0:(rK=Kh.secondaryResults)==null?void 0:(FB=rK.secondaryResults)==
null?void 0:(T2=FB.results)==null?void 0:(xK=T2[0])==null?void 0:xK.richGridRenderer;H.JSC$21471_watchApi.provideRenderingData("RICH_GRID_RENDERER",P)}};
WWh.prototype.hasCompanionAds=function(H){var U,A;return(A=H==null?void 0:(U=H.adPlacements)==null?void 0:U.some(function(M){var W,w,d,O;return(M==null?void 0:(W=M.adPlacementRenderer)==null?void 0:(w=W.renderer)==null?void 0:w.actionCompanionAdRenderer)||(M==null?void 0:(d=M.adPlacementRenderer)==null?void 0:(O=d.renderer)==null?void 0:O.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?A:!1};
var rR=function(H){if(!_.S("swaterdoo_ps_wn_handle_ks")){H.swatcherooProvideAllDataOnScheduledJob||MFm(H,3E3);var U=H.JSC$21471_watchApi.getPlayerResponse(),A,M,W,w,d,O=(A=H.JSC$21471_watchApi.getWatchNextResponse())==null?void 0:(M=A.contents)==null?void 0:(W=M.twoColumnWatchNextResults)==null?void 0:(w=W.secondaryResults)==null?void 0:(d=w.secondaryResults)==null?void 0:d.offerModule;U=H.hasCompanionAds(U);var f,J;A=(O==null?void 0:(f=O.tvfilmOfferModuleRenderer)==null?void 0:f.clientShouldSuppressIfCompanionAdDisplayed)||
(O==null?void 0:(J=O.unlimitedOfferModuleRenderer)==null?void 0:J.suppressIfCompanionAds);f=U&&A;H.JSC$21471_watchApi.getRoot().is==="ytd-watch-grid"&&H.JSC$21471_watchApi.provideRenderingData("OFFER_MODULE",f?void 0:O)}},MFm=function(H,U){_.S("swatcheroo_pbs_load_grid")&&(H.provideRichGridJobId&&_.Fl.cancelJob(H.provideRichGridJobId),H.provideRichGridJobId=_.qT(_.Fl,function(){H.provideRichGridJobId=0;
var A,M,W,w,d,O,f,J=(A=H.JSC$21471_watchApi.getWatchNextResponse())==null?void 0:(M=A.contents)==null?void 0:(W=M.twoColumnWatchNextResults)==null?void 0:(w=W.secondaryResults)==null?void 0:(d=w.secondaryResults)==null?void 0:(O=d.results)==null?void 0:(f=O[0])==null?void 0:f.richGridRenderer;J&&H.JSC$21471_watchApi.provideRenderingData("RICH_GRID_RENDERER",J)},U))},AXm=function(H){var U,A;
_.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$21471_watchApi.playerApi,2);U=M.yieldResult;A=function(){H.onPlaybackStart()};
U.addEventListener("onPlaybackStartExternal",A);H.addOnDisposeCallback(function(){U.removeEventListener("onPlaybackStartExternal",A)});
_.DO(M)})};
WWh.prototype.onPlaybackStart=function(){MFm(this)};var wff=_.ts(115994),Xf5=_.ts(115993),DP=function(H,U,A){var M=this;var W=A.dragDownAction;this.layer=0;this.JSC$21486_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return M.dragDownAction()}}}};
this.JSC$21486_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return M.dragDownAction()}}}};
this.fullscreen=!1;var w=_.k$();_.lY(w,wff,this.layer);_.lY(w,Xf5,this.layer);this.dragDownAction=function(){W();_.uZ(w,{visualElement:M.fullscreen?wff:Xf5})};
this.gesture=new jh(H,U,this.getConfig(!1),"pandown");this.attach()};
DP.prototype.attach=function(){this.gesture.attach()};
DP.prototype.detach=function(){this.gesture.detach()};
DP.prototype.update=function(H){this.fullscreen=H;var U=this.gesture;H=this.getConfig(H);U.config=H};
DP.prototype.getConfig=function(H){return H?this.JSC$21486_watchFullScreenConfig:this.JSC$21486_watchConfig};var bS5=function(H){_.XG.call(this);var U=this;this.JSC$21489_watchApi=H;H.playerApi.then(function(A){U.player=A});
this.gestures=new DP(this.JSC$21489_watchApi.getRoot(),H.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(HEp(_.Lq().getState())&&iG(_.Lq().getState())<=0)if(_.MF(_.Lq().getState())){var A;(A=U.player)==null||A.toggleFullscreen()}else _.yr(U.JSC$21489_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
iSB(this)};
_.R(bS5,_.XG);var iSB=function(H){var U=_.It(_.Lq(),_.MF,function(A){H.onFullscreenChanged(A)});
H.addOnDisposeCallback(U);U=_.It(_.Lq(),iG,function(A){H.gestures&&(A>0?H.gestures.detach():H.gestures.attach())});
H.addOnDisposeCallback(U)};
bS5.prototype.onFullscreenChanged=function(H){this.gestures&&this.gestures.update(H)};var dw8=["PLAYLIST"],urp=function(H){_.XG.call(this);var U=this;this.JSC$21492_watchApi=H;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(H.subscribeToActiveChanged(function(A){U.onActiveChanged(A)}));
OS$(this)};
_.R(urp,_.XG);var ZSy=function(H){H.pageDisposalDataTypes=Object.values(Q05).filter(function(U){return!dw8.includes(U)})},OS$=function(H){if(_.S("swatcheroo_enable_ghost_cards")||_.S("web_watch_clear_data_on_page_dispose"))ZSy(H),H.JSC$21492_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Fl.cancelJob(H.clearDataJobId);
H.clearDataJobId=0}),H.runPageDisposeJob=function(){var U=_.lx().resolve(_.SI).getDestinationPageType()==="watch";
H.clearDataJobId=_.qT(_.Fl,H.runClearDataJob,U?0:_.hr("web_watch_delay_page_dispose_ms",1E4))},H.runClearDataJob=function(){fP5(H)},H.runOnYtNavigateAwayFinish=function(){H.clearDataJobId&&(_.Fl.cancelJob(H.clearDataJobId),H.clearDataJobId=0,fP5(H))},document.addEventListener("yt-navigate-finish",H.runOnYtNavigateAwayFinish),H.JSC$21492_watchApi.addPageDisposeJob(H.runPageDisposeJob),H.addOnDisposeCallback(function(){H.JSC$21492_watchApi.removePageDisposeJob(H.runPageDisposeJob);
H.JSC$21492_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",H.runOnYtNavigateAwayFinish)})},fP5=function(H){H.pageDisposalDataTypes.forEach(function(U){H.JSC$21492_watchApi.provideRenderingData(U,void 0)});
H.clearDataJobId=0};
urp.prototype.onActiveChanged=function(H){H&&((H=document.querySelector("#watch-page-skeleton"))&&_.U5(H),JX5(this),document.body.removeAttribute("no-y-overflow"),_.xV("IS_SHELL_LOAD")&&pOX())};
var JX5=function(H){_.u(function(U){if(U.nextAddress==1)return U.yield(H.JSC$21492_watchApi.playerApi,2);_.oi();_.DO(U)})};var KW7=_.S("kevlar_watch_while_counterfactual")?0:.25,s7h=function(H){_.XG.call(this);this.JSC$21495_watchApi=H;this.JSC$21495_watchWhileEnabled=_.S("kevlar_watch_while_v2");this.JSC$21495_watchPipEnabled=_.S("web_watch_pip");oHj(this);FWj(this);P5m(this)};
_.R(s7h,_.XG);var oHj=function(H){H.JSC$21495_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){nHm(H)});
H.addOnDisposeCallback(function(){H.JSC$21495_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},FWj=function(H){var U,A;
_.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$21495_watchApi.playerApi,2);U=M.yieldResult;A=function(W){W&&H.JSC$21495_watchPipEnabled?NRk(H):nHm(H)};
U.addEventListener("onCollapseMiniplayer",A);H.addOnDisposeCallback(function(){U.removeEventListener("onCollapseMiniplayer",A)});
_.DO(M)})},P5m=function(H){var U=H.JSC$21495_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&U&&H.JSC$21495_watchWhileEnabled&&(H.playerIntersectionObserver=new IntersectionObserver(function(A){H.handleIntersect(A)},{threshold:[KW7]}),H.playerIntersectionObserver.observe(U),H.addOnDisposeCallback(function(){var A;
(A=H.playerIntersectionObserver)==null||A.disconnect()}))},nHm=function(H){var U,A,M;
_.u(function(W){if(W.nextAddress==1)return U=_.lx().resolve(_.SI),A=U.data,M=_.SQ4(A.response,A.playerResponse),_.vc().miniplayerButtonActivation=!0,_.lx().resolve(_.ZB).collapse(),W.yield(_.vc().navigationFinishPromise,2);if(W.nextAddress!=3)return _.vc().currentEndpoint=M.watchEndpoint||null,W.yield(_.lx().resolve(_.ZB).activate(H.JSC$21495_watchApi.getElement("PLAYER"),M,A),3);_.vc().userActivation=!0;_.DO(W)})},NRk=function(H){var U,A,M;
_.u(function(W){if(W.nextAddress==1)return _.lx().resolve(_.ZB).pictureInPictureSupported()?W.jumpTo(2):W.yield(H.JSC$21495_watchApi.playerApi,3);if(W.nextAddress!=2)return U=W.yieldResult,(A=U)==null||A.togglePictureInPicture(),W.return();M=_.lx().resolve(_.SI);_.vc().watchPipActivation=!0;_.Gq5(_.lx().resolve(_.ZB),M.data);_.DO(W)})};
s7h.prototype.handleIntersect=function(H){St5(this,H[H.length-1])};
var St5=function(H,U){H.watchWhileJobId&&_.Fl.cancelJob(H.watchWhileJobId);H.watchWhileJobId=_.Fl.addLowPriorityJob(function(){var A,M;return _.u(function(W){if(W.nextAddress==1)return H.watchWhileJobId=void 0,A=_.lx().resolve(_.ZB),U.intersectionRatio>KW7?A.isMiniplayerActive()?W.yield(A.deactivate(),0):W.jumpTo(0):(M=!A.isMiniplayerActive())?W.yield(pfY(H),5):W.jumpTo(4);W.nextAddress!=4&&(M=W.yieldResult);if(!M)return W.jumpTo(0);_.vc().watchWhileActivation=!0;return W.yield(LWf(H),0)})},100)},
pfY=function(H){return _.u(function(U){return U.nextAddress==1?_.S("kevlar_watch_while_paused")?U.return(!0):U.yield(H.isPlayerPlaying(),2):U.return(U.yieldResult)})};
s7h.prototype.isPlayerPlaying=function(){var H=this,U;return _.u(function(A){if(A.nextAddress==1)return A.yield(H.JSC$21495_watchApi.playerApi,2);U=A.yieldResult;return A.return(U.getPlayerStateObject().isPlaying)})};
var LWf=function(H){var U,A;return _.u(function(M){U=_.lx().resolve(_.SI).data;A=_.SQ4(U.response,U.playerResponse);_.vc().currentEndpoint=A.watchEndpoint||null;return M.yield(_.lx().resolve(_.ZB).activate(H.JSC$21495_watchApi.getElement("PLAYER"),A,U),0)})};var mwh=function(H){_.XG.call(this);this.JSC$21499_watchApi=H;Ru8(this);EHh(this)};
_.R(mwh,_.XG);var EHh=function(H){var U,A;_.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$21499_watchApi.playerApi,2);U=M.yieldResult;A=function(W){var w;W.sessionData&&W.sessionData.itct&&(w=W.sessionData.itct);var d=W.watchEndpoint;if(d&&W.sessionData&&W.sessionData.autonav)d=_.hz0(d,w);else{var O;d=_.mb(W.videoId,(O=W.listId)!=null?O:void 0,w)}w={endpoint:d};W.sessionData&&(w.tempData=W.sessionData);H.JSC$21499_watchApi.dispatchEvent("yt-navigate",w)};
U.addEventListener("onPlayVideo",A);H.addOnDisposeCallback(function(){U.removeEventListener("onPlayVideo",A)});
_.DO(M)})},Ru8=function(H){var U=function(A){H.onYtNavigate(A)};
H.JSC$21499_watchApi.getRoot().addEventListener("yt-navigate",U);H.addOnDisposeCallback(function(){H.JSC$21499_watchApi.getRoot().removeEventListener("yt-navigate",U)})};
mwh.prototype.onYtNavigate=function(H){var U=this,A,M,W,w,d,O,f,J,F;return _.u(function(P){if(P.nextAddress==1){if(!((A=H.detail)==null?0:(M=A.endpoint)==null?0:M.watchEndpoint))return P.return();W=H.detail.endpoint.watchEndpoint;w=U.JSC$21499_watchApi.getWatchNextResponse();O=_.p((d=w)==null?void 0:d.currentVideoEndpoint,_.sH);if(!O)return P.return();if(W.videoId!==O.videoId||W.playlistId&&W.playlistId!==O.playlistId||typeof W.startTimeSeconds!=="number")return P.jumpTo(0);H.stopPropagation();(f=
_.S("kevlar_watch_while_v2")&&!_.S("kevlar_watch_while_counterfactual"))&&_.lx().resolve(_.ZB).isMiniplayerActive()||U.JSC$21499_watchApi.scrollWatchTo(0,!0);return P.yield(U.JSC$21499_watchApi.playerApi,3)}J=P.yieldResult;F=W.startTimeSeconds;J.seekTo(F,void 0,void 0,void 0,84);J.wakeUpControls();F<J.getDuration()&&J.playVideo();_.DO(P)})};var aPB=function(H){_.XG.call(this);var U=this;this.JSC$21502_watchApi=H;var A=this.JSC$21502_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gH8(U)});
this.addOnDisposeCallback(function(){U.JSC$21502_watchApi.unsubscribeByKey(A)});
gH8(this);_.S("enable_ai_companion")&&(H=this.JSC$21502_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&zjk(H,"WATCH")};
_.R(aPB,_.XG);var gH8=function(H){var U=H.JSC$21502_watchApi.getWatchNextResponse();if(U){var A,M=[].concat(_.vI((A=U==null?void 0:U.engagementPanels)!=null?A:[]));_.S("web_watch_comments_visible_by_default")&&(A=M.find(function(W){var w;return((w=W.engagementPanelSectionListRenderer)==null?void 0:w.targetId)==="engagement-panel-comments-section"}),A==null?0:A.engagementPanelSectionListRenderer)&&(A.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
M.unshift.apply(M,_.vI(xwf(U)));H.JSC$21502_watchApi.provideRenderingData("ENGAGEMENT_PANELS",M)}},C5h=function(H){var U,A,M,W=(U=H.engagementPanels)==null?void 0:(A=U.find(function(N){var L;
return((L=N.engagementPanelSectionListRenderer)==null?void 0:L.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(M=A.engagementPanelSectionListRenderer.content)==null?void 0:M.structuredDescriptionContentRenderer,w;
if(_.p(W==null?void 0:(w=W.items)==null?void 0:w.find(function(N){return!!_.p(N,YGf)}),YGf))return!0;
var d,O,f,J;if(H=(((d=H.contents)==null?void 0:(O=d.twoColumnWatchNextResults)==null?void 0:(f=O.results)==null?void 0:(J=f.results)==null?void 0:J.contents)||[]).find(function(N){return N.videoPrimaryInfoRenderer})){var F,P,n;
return(((F=H.videoPrimaryInfoRenderer)==null?void 0:(P=F.videoActions)==null?void 0:(n=P.menuRenderer)==null?void 0:n.flexibleItems)||[]).some(function(N){N=_.p(N,_.nvK);if(!N)return!1;var L,m;N=(L=N.topLevelButton)==null?void 0:(m=L.buttonViewModel)==null?void 0:m.onTap;if(!N)return!1;L=_.ij(N);if(!L)return!1;if(zum(L))return!0;if(_.S("enable_creator_chatbot")){L=_.p(L,_.$2);if(!L)return!1;var z;return(z=L.commands)==null?void 0:z.some(function(c){return zum(c)})}return!1})}return!1},zum=function(H){var U;
return((U=_.p(H,_.XY))==null?void 0:U.panelIdentifier)==="PAyouchat"},xwf=function(H){var U=[];
if(!_.S("web_watch_inject_placeholder_fantasy_panel_killswitch")){var A,M,W,w=(A=H.engagementPanels)==null?void 0:(M=A.find(function(O){var f;return((f=O.engagementPanelSectionListRenderer)==null?void 0:f.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(W=M.engagementPanelSectionListRenderer.content)==null?void 0:W.structuredDescriptionContentRenderer,d;
_.p(w==null?void 0:(d=w.items)==null?void 0:d.find(function(O){return!!_.p(O,Chk)}),Chk)&&(A=_.L0t("PAsports_fantasy"),A.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",U.push(A))}C5h(H)&&(H=_.L0t("PAyouchat"),H.engagementPanelSectionListRenderer.targetId="PAyouchat",H.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",U.push(H));
return U};var cXY=function(H){_.XG.call(this);this.JSC$21505_watchApi=H;tFm(this)};
_.R(cXY,_.XG);var tFm=function(H){H.JSC$21505_watchApi.registerActionHandler("yt-loop-command",function(U){yX5(H,U)});
H.JSC$21505_watchApi.registerActionHandler("yt-repeat-chapter-command",function(U){BRX(H,U)});
H.addOnDisposeCallback(function(){H.JSC$21505_watchApi.unregisterActionHandler("yt-loop-command");H.JSC$21505_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},yX5=function(H,U){var A;
_.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$21505_watchApi.playerApi,2);A=M.yieldResult;_.p(U,mBy).loop?(A.setLoopRange({startTimeMs:Number(_.p(U,mBy).startTimeMs),endTimeMs:Number(_.p(U,mBy).endTimeMs),postId:_.p(U,mBy).postId,type:"clips"}),A.playVideo()):A.setLoopRange(null);_.DO(M)})},BRX=function(H,U){var A,M;
_.u(function(W){if(W.nextAddress==1)return W.yield(H.JSC$21505_watchApi.playerApi,2);A=W.yieldResult;M=_.p(U,dNh).repeat;M==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(A.setLoopRange({startTimeMs:Number(_.p(U,dNh).startTimeMs),endTimeMs:Number(_.p(U,dNh).endTimeMs),type:"repeatChapter"}),A.playVideo()):M==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&A.setLoopRange(null);_.DO(W)})};var euf=function(H){_.XG.call(this);this.JSC$21510_watchApi=H;rXY(this)};
_.R(euf,_.XG);var rXY=function(H){H.JSC$21510_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(U){Dw7(H,U)});
H.addOnDisposeCallback(function(){H.JSC$21510_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},Dw7=function(H,U){var A,M,W,w,d,O,f,J,F,P,n;
_.u(function(N){if(N.nextAddress==1)return N.yield(H.JSC$21510_watchApi.playerApi,2);A=N.yieldResult;if(w=(W=(M=_.p(U,Ouh))==null?void 0:M.highlightedMenuItemKey)!=null?W:"")(O=(d=A).highlightSettingsMenuItem)==null||O.call(d,w);if(F=(J=(f=_.p(U,Ouh))==null?void 0:f.openMenuItemKey)!=null?J:"")(n=(P=A).openSettingsMenuItem)==null||n.call(P,F);_.DO(N)})};var $wp=_.BO("/youtube/app/watch/player_state","playerStateEntity");var $H=function(H){_.XG.call(this);this.JSC$21513_watchApi=H;lPY(this)};
_.R($H,_.XG);var GEf=function(H){switch(H){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"}},lPY=function(H){var U,A,M,W,w;
_.u(function(d){if(d.nextAddress==1)return d.yield(H.JSC$21513_watchApi.playerApi,2);U=d.yieldResult;if(H.isDisposed())return d.return();A=function(O){H.onPlayerStateChange(O)};
M=function(O){H.onAdStateChange(O)};
W=function(){H.onAdSkip()};
w=function(O){H.onVideoDataChange(O)};
U.addEventListener("onStateChange",A);U.addEventListener("onAdStateChange",M);U.addEventListener("onAdSkip",W);U.addEventListener("onVideoDataChange",w);H.addOnDisposeCallback(function(){U.removeEventListener("onStateChange",A);U.removeEventListener("onAdStateChange",M);U.removeEventListener("onAdSkip",W);U.removeEventListener("onVideoDataChange",w)});
_.DO(d)})},Yth=function(H){var U=_.Sq(),A=U.dispatch;
a:switch(H.adsState){case -1:case 0:var M="ADS_STATE_NONE";break a;case 1:case 2:case 3:M="ADS_STATE_PLAYING";break a;default:M="ADS_STATE_UNKNOWN"}A.call(U,_.hs("playerStateEntity",$wp,{key:$wp,playerState:GEf(H.playerState),adsState:M,videoId:H.videoId}))};
$H.prototype.onPlayerStateChange=function(H){var U=this,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(U.JSC$21513_watchApi.playerApi,2);A=M.yieldResult;if(U.isDisposed())return M.return();U.playerState=H;U.videoId=A.getVideoData().video_id;Yth(U);_.DO(M)})};
$H.prototype.onAdStateChange=function(H){this.adsState=H;Yth(this)};
$H.prototype.onAdSkip=function(){this.adsState=0;Yth(this)};
$H.prototype.onVideoDataChange=function(H){H.type==="newdata"&&(this.adsState=-1,Yth(this))};var hu$=function(H){_.XG.call(this);var U=this;this.JSC$21517_watchApi=H;this.enableExternalPlaylistPanelInPlayer=_.S("delhi_web_player_use_external_playlist_panel");_.lx().resolve(_.FX).setPlayer(this.JSC$21517_watchApi.getElement("PLAYER"));H=this.JSC$21517_watchApi.subscribeToActiveChanged(function(A){U.onActiveChanged(A)});
this.addOnDisposeCallback(H);qty(this)};
_.R(hu$,_.XG);var qty=function(H){var U,A;_.u(function(M){if(M.nextAddress==1)return H.enableExternalPlaylistPanelInPlayer?M.yield(H.JSC$21517_watchApi.playerApi,2):M.return();U=M.yieldResult;A=function(){if(H.playlistPanelElement)H.playlistPanelElement.onToggleExpanded()};
U.addEventListener("onToggleExternalPlaylistPanel",A);H.addOnDisposeCallback(function(){U.removeEventListener("onToggleExternalPlaylistPanel",A)});
_.DO(M)})};
hu$.prototype.onActiveChanged=function(H){var U=this,A=_.lx().resolve(_.FX),M=function(){kEB(U)};
H?(this.playlistPanelElement=this.JSC$21517_watchApi.getElement("PLAYLIST_PANEL"))?(A.setPlaylistComponent(this.playlistPanelElement),A.addEventListener("yt-playlist-data-updated",M),this.addOnDisposeCallback(function(){A.removeEventListener("yt-playlist-data-updated",M)}),kEB(this)):_.c5(Error("Ul")):(A.removeEventListener("yt-playlist-data-updated",M),A.cancelVideoSkip())};
var kEB=function(H){var U=_.lx().resolve(_.FX);H.JSC$21517_watchApi.provideRenderingData("PLAYLIST",U.getPlaylistData())};var l5=function(H){_.XG.call(this);var U=this;this.JSC$21520_watchApi=H;this.onPageScroll=function(){U.scrollThrottle.fire();U.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.B$(this.onThrottledScroll,200,this);_.kl(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.B$(this.onMastheadThrottledScroll,50,this);_.kl(this,this.mastheadScrollThrottle);this.animation=new _.Eb(function(A){U.JSC$21520_watchApi.getRoot().setScrollTop(A)});
H=_.It(_.Lq(),_.MF,function(){U.onFullscreenChanged()});
this.addOnDisposeCallback(H);vHy(this);TR8(this);this.onThrottledScroll()};
_.R(l5,_.XG);
l5.prototype.onFullscreenChanged=function(){var H=this,U=this.JSC$21520_watchApi.getRoot();!this.pageScrollElement&&U.pageScrollElement?(this.pageScrollElement=U.pageScrollElement,U.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){H.pageScrollElement&&H.pageScrollElement.removeEventListener("scroll",H.onPageScroll)})):this.pageScrollElement&&!U.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var vHy=function(H){window.addEventListener("scroll",H.onPageScroll);H.addOnDisposeCallback(function(){window.removeEventListener("scroll",H.onPageScroll)})},TR8=function(H){H.JSC$21520_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(U){a:{var A;
if(A=H.JSC$21520_watchApi.getRoot().contains(U)&&!H.animation.isAnimating()){A=U.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var M,W,w=(U==null?void 0:(M=U.parentElement)==null?void 0:(W=M.parentElement)==null?void 0:W.id)==="fixed-secondary";A=!(A&&w)}if(A){if(_.S("kevlar_watch_scroll_manager_absolute_offset_killswitch"))M=U.offsetTop;else for(M=0,W=U;W!==null;)M+=W.offsetTop,M-=W.scrollTop,W=W.offsetParent;W=M;M=W-24;U=W+U.offsetHeight+24;W=H.JSC$21520_watchApi.getRoot().getPageScrollingElement();
A=H.JSC$21520_watchApi.getRoot().getScrollTop();w=A+W.clientHeight-56;if(M<A+56)U=M-56;else if(U>w)U-=W.clientHeight;else break a;H.scrollWatchTo(Math.max(0,U),!0)}}});
H.addOnDisposeCallback(function(){H.JSC$21520_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
l5.prototype.onThrottledScroll=function(){var H=_.Lq(),U=H.dispatch,A=this.JSC$21520_watchApi.getRoot().getScrollTop();U.call(H,_.zQ({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:A}}))};
l5.prototype.onMastheadThrottledScroll=function(){this.JSC$21520_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$21520_watchApi.getRoot().getScrollTop())};
l5.prototype.scrollWatchTo=function(H,U){(U===void 0?0:U)?this.animation.start(this.JSC$21520_watchApi.getRoot().getScrollTop(),Math.max(0,H),500):this.JSC$21520_watchApi.getRoot().setScrollTop(H)};var Q7f=function(H){_.XG.call(this);var U=this;this.JSC$21523_watchApi=H;var A=this.JSC$21523_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){j7p(U)}),M=this.JSC$21523_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){IPf(U)});
this.addOnDisposeCallback(function(){U.JSC$21523_watchApi.unsubscribeByKey(A);U.JSC$21523_watchApi.unsubscribeByKey(M)});
j7p(this);IPf(this)};
_.R(Q7f,_.XG);
var j7p=function(H){var U,A,M,W=(M=(U=H.JSC$21523_watchApi.getPlayerResponse())==null?void 0:(A=U.videoDetails)==null?void 0:A.title)!=null?M:"";H.JSC$21523_watchApi.dispatchEvent("yt-update-title",W)},IPf=function(H){var U,A,M,W,w,d,O,f=(O=((d=(U=H.JSC$21523_watchApi.getWatchNextResponse())==null?void 0:(A=U.contents)==null?void 0:(M=A.twoColumnWatchNextResults)==null?void 0:(W=M.results)==null?void 0:(w=W.results)==null?void 0:w.contents)!=null?d:[]).find(function(J){return!!J.videoPrimaryInfoRenderer}))==null?
void 0:O.videoPrimaryInfoRenderer;
(U=_.Sp(f==null?void 0:f.title))&&H.JSC$21523_watchApi.dispatchEvent("yt-update-title",U)};var Hb5=function(H){_.XG.call(this);this.JSC$21526_watchApi=H;VF5(this)};
_.R(Hb5,_.XG);var VF5=function(H){var U,A;_.u(function(M){if(M.nextAddress==1)return M.yield(H.JSC$21526_watchApi.playerApi,2);U=M.yieldResult;A=function(){H.onYpcContentRequest()};
U.addEventListener("onYpcContentRequest",A);H.addOnDisposeCallback(function(){U.removeEventListener("onYpcContentRequest",A)});
_.DO(M)})};
Hb5.prototype.onYpcContentRequest=function(){var H,U,A,M,W,w=(H=this.JSC$21526_watchApi.getWatchNextResponse())==null?void 0:(U=H.contents)==null?void 0:(A=U.twoColumnWatchNextResults)==null?void 0:(M=A.secondaryResults)==null?void 0:(W=M.secondaryResults)==null?void 0:W.offerModule,d,O,f,J;H=(J=(f=(O=(d=w==null?void 0:w.episodeOfferModuleRenderer)!=null?d:w==null?void 0:w.movieOfferModuleRenderer)!=null?O:w==null?void 0:w.unlimitedOfferModuleRenderer)!=null?f:w==null?void 0:w.liveOfferModuleRenderer)!=
null?J:w==null?void 0:w.tvfilmOfferModuleRenderer;var F,P,n;w=(n=w==null?void 0:(F=w.tvfilmOfferModuleRenderer)==null?void 0:(P=F.actionButtons)==null?void 0:P.length)!=null?n:0;P=Math.max(w-1,0);var N,L,m;F=(m=H==null?void 0:(N=H.offerButton)==null?void 0:N.buttonRenderer)!=null?m:H==null?void 0:(L=H.actionButtons)==null?void 0:L[P].buttonRenderer;var z,c;(N=(c=(z=F==null?void 0:F.navigationEndpoint)!=null?z:F==null?void 0:F.serviceEndpoint)!=null?c:F==null?void 0:F.command)&&_.$$.instance.resolveCommand(N)};var U38=function(H){rC.call(this);var U=this;this.rootElement=H;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return U.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(A){U.initOrDisposeActiveModules(A)}));
this.onAttached()};
_.R(U38,rC);_.X=U38.prototype;_.X.getRoot=function(){return this.rootElement};
_.X.getElement=function(H){return this.rootElement.getElement(H)};
_.X.setPlayerResponse=function(H){this.playerResponse=H;this.publish("PLAYER_RESPONSE_UPDATED",H)};
_.X.getPlayerResponse=function(){return this.playerResponse};
_.X.setWatchNextResponse=function(H){this.watchNextResponse===H?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=H,this.publish("WATCH_NEXT_RESPONSE_UPDATED",H))};
_.X.getWatchNextResponse=function(){return this.watchNextResponse};
_.X.registerActionHandler=function(H,U){var A=this;if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var M={};_.xX(_.a1.getInstance(),(M[H]=U,M),this.getRoot())}else this.actionHandlers.has(H)||(this.actionHandlers.set(H,[]),M={},_.xX(_.a1.getInstance(),(M[H]=function(){var W=_.QY.apply(0,arguments);return(A.actionHandlers.get(H)||[]).map(function(w){return w.apply(null,_.vI(W))})},M),this.getRoot())),this.actionHandlers.get(H).push(U)};
_.X.unregisterActionHandler=function(H){if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var U={};_.z9(_.a1.getInstance(),(U[H]=!0,U),this.getRoot())}else(U=this.actionHandlers.get(H))?(U.pop(),U.length===0&&(U={},_.z9(_.a1.getInstance(),(U[H]=!0,U),this.getRoot()),this.actionHandlers.delete(H))):_.Na(new _.bD("Attempted to unregister an action handler which is not registered.",H))};
_.X.addPageDisposeJob=function(H){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.ac_(this.rootElement.pageDisposeJobs,H)};
_.X.removePageDisposeJob=function(H){this.rootElement.pageDisposeJobs&&_.Dc(this.rootElement.pageDisposeJobs,H)};
_.X.dispatchEvent=function(H,U){_.cg(this.rootElement,H,U)};
_.X.provideRenderingData=function(H,U){this.rootElement.provideRenderingData(H,U)};
_.X.scrollWatchTo=function(H,U){var A;(A=this.watchScrollManager)==null||A.scrollWatchTo(H,U)};
_.X.focusOnPlayer=function(){var H=this.getElement("PLAYER");_.rV(H,function(){if(H&&H.firstElementChild){var U=H.querySelector(".html5-video-player");U&&(_.mE(_.lx().resolve(_.qe)),U.focus())}else _.Na(Error("Vl"))})};
var Ad7=function(H){var U=!!H.rootElement.theater,A=!!H.rootElement.fullscreen,M;(M=H.watchCinematicManager)==null||k5j(M,A,U)};
_.X=U38.prototype;_.X.subscribeToActiveChanged=function(H,U){U=U===void 0?!0:U;var A=_.It(_.Lq(),UYh,function(M){H(M)});
U&&H(UYh(_.Lq().getState()));return A};
_.X.isActive=function(){return UYh(_.Lq().getState())};
_.X.onAttached=function(){var H=_.S("external_fullscreen");_.S("use_unified_flag_accessor")&&(H=_.lx().resolve(_.oVf).retriever.getFlag(_.uly));(H||_.xV("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.X.initPersistentModules=function(){if(_.S("kevlar_watch_flexy_theater_manager")){var H=new jIp(this);_.kl(this,H)}H=new urp(this);_.kl(this,H);H=new a7(this);_.kl(this,H);H=new WWh(this);_.kl(this,H);H=new $H(this);_.kl(this,H);H=new xH(this);_.kl(this,H);_.S("kevlar_watch_flexy_playlist_manager")&&(H=new hu$(this),_.kl(this,H))};
_.X.initOrDisposeActiveModules=function(H){H?(this.watchScrollManager=new l5(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new mwh(this)),this.activeModules.push(new T07(this)),this.activeModules.push(new Q7f(this)),this.activeModules.push(new s7h(this)),_.S("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new HzB(this)),this.activeModules.push(new cXY(this)),_.S("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new Hb5(this)),_.S("kevlar_watch_flexy_ads_manager")&&
this.activeModules.push(new uv5(this)),_.tN("kevlar_watch_cinematics")&&(this.watchCinematicManager=new $t5(this),this.activeModules.push(this.watchCinematicManager),Ad7(this)),_.S("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new euf(this)),_.S("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new bS5(this)),H=_.S("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.S("kevlar_watch_flexy_comments_manager")&&!H&&this.activeModules.push(new QKm(this)),
_.S("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new Jxy(this)),this.activeModules.push(new Ma$(this)),this.activeModules.push(new aPB(this)),_.S("web_enable_timely_actions")&&this.activeModules.push(new i0y(this)),_.S("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new ai5(this)),_.S("web_watch_enable_multiview_manager")&&this.activeModules.push(new nWf(this)),_.S("web_fullscreen_components")&&this.activeModules.push(new wpk(this)),_.S("web_player_rtr_ctrls")&&
this.activeModules.push(new z9h(this))):(_.Cp(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.X.disposeInternal=function(){rC.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.D5.Object.defineProperties(U38.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.LG(_.r(function(H){var U=_.nA("script");_.Em(function(){var A;if(A=JSON)A=hlB(H.data()),A=_.Or(JSON.stringify(A).replace(/</g,"\\u003C"));var M=H.data(),W=_.Sp(M.title).trim().length===0,w=!M.publishDate||M.publishDate.trim().length===0,d,O,f,J,F=!((d=M.thumbnail)==null?0:(O=d.thumbnails)==null?0:O.length)||!((f=M.thumbnail)==null?0:f.thumbnails[0].url)||((J=M.thumbnail)==null?void 0:J.thumbnails[0].url.trim().length)===0;U.value&&A&&!(W||w||F)&&_.fU(U.value,A)},"Vy9K7b");
return _.Z("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.Z("script",{el:U,type:"application/ld+json"}))},"ok"),"player-microformat-renderer",{props:{data:_.Ne}});var MS5={},Wk8=["learning-journey-engagement-panel","PAlearning_chat"];
MS5.YtdLearningJourneyWatchBehavior=[_.I.YtRendererBehavior,_.nm.YtPlayerListenerBehavior,_.gv.YtRendererstamperBehavior,_.$y.YtActionHandlerBehavior,ZP.YtPageBehavior,_.D1.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)"},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 _.xV("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.S("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 _.xV("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 _.S("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.S("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)"},
richItemMinWidth:{type:Number,value:function(){return _.hr("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.hr("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},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)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.tN("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_rounded_player_large")||_.S("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_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.S("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.S("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{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:SK(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:SK(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},
learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
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-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var H=this;this.watchController=void 0;this.pageDisposeJobs=[function(){H.showMetadataPlaceholder_()},
function(){_.S("web_watch_dont_clear_comments")||H.clearComments_()},
function(){H.clearPlayerAds_()},
function(){H.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.S("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.S("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new Nc5(function(){return _.py(H)},
this.hostElement);
this.pageDisposeJobs.push(function(){H.youThereManager_.reset()});
_.S("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){H.resetFullerscreenEduButtonForNewPlayback_()}));
_.S("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.wJ;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;_.S("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.S("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));_.S("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.lN(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(H){H&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:H}),H.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(H){_.S("kevlar_watch_flexy_theater_manager")&&(this.theater=H,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.S("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(H){!_.S("kevlar_watch_while_v2")&&!_.S("web_watch_pip")||H||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(H){this.active!==void 0&&(this.fullscreen=H,_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(H){this.active!==void 0&&(_.cg(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(H>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(H){this.initCsi_();this.updatePageData_(H)},
updatePageData_:function(H){var U=this;if(H)if(this.data===H){this.onPageLoadWithSameData_();var A;(A=this.watchController)==null||A.setWatchNextResponse(this.data)}else this.data=H;this.playlist&&_.wH({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.ba("nw");this.loading=!1;_.bM(_.Fl,function(){U.initDclkstatus_();var M,W=((M=U.player)==null?void 0:M.getVideoData().cpn)||"";xjp(function(w,d){CUf(w,d,W)})})},
onPageLoadWithSameData_:function(){_.S("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 H=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!H);this.set("loadingData.playlistLoading",H&&H!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),H=this.watchNextSkeletonEl_.firstElementChild;H;)H.classList.remove("hidden"),H=H.nextElementSibling;var U,A,M;H=(U=this.loadingData)==null?void 0:(A=U.endpoint)==null?void 0:(M=A.watchEndpoint)==null?void 0:M.videoId;var W;H&&(W="https://i.ytimg.com/vi/"+H+"/frame0.jpg");_.c4(this.hostElement).querySelector("#player").style.backgroundImage=W?"url("+W+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var H=_.c4(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&H&&(H.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var U,A;(A=(U=this.watchMetadata).updateSentimentBarWidth)==
null||A.call(U);var M,W;(W=(M=this.watchMetadata).resize)==null||W.call(M)}_.c4(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(H){var U=_.c4(this.hostElement).querySelector(H);U?_.EH(U,!1):_.Na(new _.bD("Overscroll monitor not found for component: ",H))},
removeSplitScrollMouseTrap:function(H){var U=_.c4(this.hostElement).querySelector(H);U?_.mJ(U):_.Na(new _.bD("Disposal component for  overscroll monitoring not found: ",H))},
onLoadingChanged_:function(H){H?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(H){var U=this;H?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Fl.addLowPriorityJob(function(){U.onWindowResized_(_.hc(!0))})},
updateTheaterModeState_:function(H){if(!_.S("kevlar_watch_flexy_theater_manager")){H=H||this.fullWindowMode_;if(this.theater!==void 0||H)this.theater=H;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();H&&JwX()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var H=this.theater;_.S("external_fullscreen")&&this.fullscreen&&(H=!0);H=H?_.c4(this.hostElement).querySelector("#player-full-bleed-container"):_.c4(this.hostElement).querySelector("#player-container-inner");var U=this.getPlayerContainer(),A=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip");U.parentElement!==H&&(A&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.py(this).appendTo(H,U),H.appendChild(_.c4(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var H=this;return _.u(function(U){if(U.nextAddress==1)return U.yield(_.lx().resolve(_.ZB).deactivate(),2);H.updatePlayerLocation();_.DO(U)})},
updateCinematicsLocation:function(){var H=this.getElement("CINEMATICS");if(H){var U=this.getCinematicsLocationContainer();H.parentElement!==U&&U.appendChild(H);var A;(A=this.watchController)==null||Ad7(A)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.c4(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.c4(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(H,U){var A=document.documentElement.hasAttribute("dark"),M=!A&&this.cinematicLightTheme;return H&&A||U&&A||(U||H)&&M},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var H;(H=this.watchController)==null||H.setWatchNextResponse(this.data);_.S("kevlar_watch_flexy_comments_manager")||this.initComments_();_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.lx().resolve(_.FX).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.S("web_watch_start_chat_in_theater_mode")){var U,
A,M;if((U=this.data)==null?0:(A=U.contents)==null?0:(M=A.twoColumnWatchNextResults)==null?0:M.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var W,w;((W=this.data)==null?0:(w=W.contents)==null?0:w.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(H){var U;(U=this.watchController)==null||U.setPlayerResponse(this.playerData);H&&H.playabilityStatus&&(U=this.isVideoPlayable_(H.playabilityStatus,this.getPlayerOverlays_(this.data)),H=this.isLiveStreamOffline_(H.playabilityStatus),U&&!H||_.rV(this,function(){_.ba("pbu")}));
this.setPlayerAds_();_.Bg(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(H){_.Lq().dispatch(_.zQ({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));H?this.activate_():this.deactivate_()},
attached:function(){var H=this;this.watchController=new U38(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.S("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var U=_.py(this);_.S("kevlar_disable_prepare_player")||U.preparePlayer();_.S("kevlar_watch_flexy_playlist_manager")||_.lx().resolve(_.FX).setPlayer(U);this.updatePageMediaQueries();U={"--ytd-watch-flexy-scrollbar-width":Hz()+
"px"};!_.hr("kv_pl_mx_sz_ks")&&_.hr("kevlar_watch_max_player_width")&&(U["--ytd-watch-flexy-max-player-width-wide-screen"]=trY+"px");_.hr("kevlar_watch_flexy_metadata_height")&&(U["--ytd-watch-flexy-space-below-player"]=ypy+"px");this.safeUpdateStyles(U);_.S("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new Zr5(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return H.onPlayerTouchPanDown_()}}));
_.S("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.c4(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var H=Hz(),U=UL+H,A=U;this.fixedPanels&&(U+=zyk);var M=657+H;H=1327+H;_.c4(this.hostElement).querySelector("#two-column-query").query="(min-width: "+U+"px)";_.c4(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(M+"px), (min-height: 630px) and (min-width: ")+(U+"px) and (max-width: ")+(H+"px)");_.c4(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(H+"px)");_.c4(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+A+"px)"},
calculateCurrentPlayerSize_:function(){return this.theater||_.S("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.QT(NaN,NaN):BA7(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return BA7(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.zg(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var H=this;this.onWindowResized_(_.hc());_.S("browse_skeleton_removal_on_watch_killswitch")||_.xV("IS_SHELL_LOAD")&&pOX();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var U=_.py(this);U.addEventListener("yt-player-updated",_.lN(this,this.onPlayerUpdated_));U.getPlayerPromise().then(function(A){H.playerApiReady_(A)});
_.S("kevlar_watch_flexy_playlist_manager")||(U=_.lx().resolve(_.FX),_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&U.addEventListener("yt-navigate",_.lN(this,this.onYtNavigate_)),U.setPlaylistComponent(_.c4(this.hostElement).querySelector("#playlist")),U.addEventListener("yt-playlist-data-updated",_.lN(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Fl.addLowPriorityJob(function(){_.cg(H.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.py(this).removeEventListener("yt-player-updated",_.lN(this,this.onPlayerUpdated_));if(!_.S("kevlar_watch_flexy_playlist_manager")){var H=_.lx().resolve(_.FX);_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&H.removeEventListener("yt-navigate",_.lN(this,this.onYtNavigate_));H.cancelVideoSkip();H.removeEventListener("yt-playlist-data-updated",_.lN(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);this.schedulePlayerSizeUpdate_();
_.cg(this.hostElement,"yt-autonav-pause-player",!1);H=_.L1();_.S("kevlar_exit_fullscreen_leaving_watch")&&H&&_.R2(H)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(H){this.player&&this.player.updateVideoData({rvs:H.rvs})},
getPageContents:function(H){return H&&H.contents&&H.contents.twoColumnWatchNextResults&&H.contents.twoColumnWatchNextResults.results&&H.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(H){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",H)},
onRetrieveLocation_:function(H,U){U.hasComments?U.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):U.locationRetrieved("/related_ajax",void 0);H.stopPropagation()},
onSubscriptionChanged_:function(H,U){this.player&&(U?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){f2p("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.c4(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.c4(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(H){this.player=H;this.setPlayerState(H.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.S("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.S("kevlar_unified_player")||_.S("kevlar_player_new_bootstrap_adoption"))&&_.oi()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(H,U){U=U===void 0?!0:U;_.L1()&&_.S("external_fullscreen")&&_.R2(document.documentElement);this.theaterRequested_=H;U&&_.WK("wide",H?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.S("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.yr(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.cg(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(H){_.SD(H,typeof this.player),this.player&&_.SD(H,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var H;((H=this.player)==null?0:H.isFullscreen())?this.player.toggleFullscreen():_.yr(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(H,U){return this.loading?U:!!Object.keys(H).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(H){if(H){H=_.b(H);for(var U=H.next();!U.done;U=H.next())U=U.value,U.youThereRenderer&&LnX(this.youThereManager_,U.youThereRenderer)}},
setPlaylistData_:function(H){return H||{}},
userEngagementConfigDataChanged_:function(H){if(H)if(H.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var U=this.youThereManager_;_.$B()<H.lowEngagementThresholdMs||gd8(U,!0)}else H.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.yr(this.hostElement,"yt-autonav-pause-user-engagement",[H])},
isPlayerUnavailable_:function(H,U,A){return!!H&&!this.isVideoPlayable_(H,A)&&!U},
getPlayerOverlays_:function(H){return(H==null?void 0:H.playerOverlays)||null},
isVideoPlayable_:function(H,U){if(!H)return!1;var A=H.status==="OK"||H.status==="LIVE_STREAM_OFFLINE",M=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",H)||this.get("errorScreen.ypcTrailerRenderer",H);H=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",H);var W;U=U==null?void 0:(W=U.playerOverlayRenderer)==null?void 0:W.gatedActionsOverlayRenderer;return!!A||!!M||!!H||!!U},
hasWatchNextResponseErrorRenderer:function(H){var U=this.getPageContents(H),A,M,W,w,d;return!(H==null?0:(A=H.contents)==null?0:(M=A.twoColumnWatchNextResults)==null?0:M.secondaryResults)&&!!((W=U[0])==null?0:(w=W.itemSectionRenderer)==null?0:(d=w.contents[0])==null?0:d.backgroundPromoRenderer)},
isLiveStreamOffline_:function(H){return H?H.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(H,U,A){var M=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",U),W=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];W=_.S("web_no_skip_video_on_verification_checks")?(H==null?void 0:H.status)&&W.includes(H.status):H&&H.status==="AGE_CHECK_REQUIRED";var w=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",H);w==void 0&&(w=!0);!A||this.isVideoPlayable_(H,this.getPlayerOverlays_(U))||
M||W||!w||_.lx().resolve(_.FX).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();IN5()},
onPlayerFeedbackStartRequest_:function(H){_.yr(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:H}])},
onPlayerFeedbackArticleRequest_:function(H){_.yr(this.hostElement,"yt-help-dialog-requested",[H])},
onPlayerYpcContentRequest_:function(){var H,U,A,M,W,w,d,O,f=((H=this.data)==null?NaN:(U=H.contents)==null?NaN:(A=U.twoColumnWatchNextResults)==null?NaN:(M=A.secondaryResults)==null?NaN:(W=M.secondaryResults)==null?NaN:(w=W.offerModule)==null?NaN:(d=w.tvfilmOfferModuleRenderer)==null?NaN:(O=d.actionButtons)==null?NaN:O.length)-1;H=[".offerButton.buttonRenderer.",".actionButtons."+(f>=0?f:0)+".buttonRenderer."];U=_.b(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(A=U.next();!A.done;A=U.next())for(A=A.value,M=_.b(H),W=M.next();!W.done;W=M.next())if(W="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+A+W.value,W=this.get(W+"navigationEndpoint",this.data)||this.get(W+"serviceEndpoint",this.data)||this.get(W+"command",this.data)){_.l0(W,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(H){_.cg(this.hostElement,"yt-autonav-pause-player",H)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(H){H()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(H){switch(H){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(H){switch(H){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.cg(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(H)},
setPlayerState:function(H){_.Lq().dispatch(_.nTz(H))},
onPlayerSubscribe_:function(H){_.yr(this.hostElement,"yt-player-subscribe",[H])},
onPlayerUnsubscribe_:function(H){_.yr(this.hostElement,"yt-player-unsubscribe",[H])},
onPlayerAdYtShowToast_:function(H){_.yr(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:H.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(H){if(H)return H},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(H){return!_.tN("web_watch_move_summary_to_sd")&&!!H},
computeWatchMetadataRefresh:function(){return _.S("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var H,U,A,M;this.watchNextSecondaryResults=(H=this.data)==null?void 0:(U=H.contents)==null?void 0:(A=U.twoColumnWatchNextResults)==null?void 0:(M=A.secondaryResults)==null?void 0:M.secondaryResults}},
setRichGridRendererData:function(H){this.richGridRendererData=H},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var H,U=(H=this.data)==null?void 0:H.engagementPanels;if(U==null?0:U.length){H=null;U=_.b(U);for(var A=U.next();!A.done;A=U.next()){A=A.value;var M=void 0;if(((M=A.engagementPanelSectionListRenderer)==null?void 0:M.targetId)==="engagement-panel-structured-description"){H=A;break}}var W,w,d;H=(W=H)==null?void 0:(w=W.engagementPanelSectionListRenderer)==null?void 0:(d=w.content)==null?void 0:d.structuredDescriptionContentRenderer;if(H==null?0:H.items){W=
[];w=_.b(H.items);for(d=w.next();!d.done;d=w.next()){d=d.value;if(!_.S("sd_horizontal_list_show_nav_killswitch")){var O=M=A=U=H=void 0,f=void 0,J=(H=d.horizontalCardListRenderer)==null?void 0:(U=H.header)==null?void 0:(A=U.richListHeaderRenderer)==null?void 0:(M=A.navigationButton)==null?void 0:(O=M.buttonRenderer)==null?void 0:(f=O.command)==null?void 0:f.commandExecutorCommand;J&&J.commands&&(J.commands=J.commands.filter(function(F){return!_.p(F,A6p)}))}d.expandableVideoDescriptionBodyRenderer||
d.videoDescriptionHeaderRenderer||W.push(d)}return{items:W}}}},
constructWarning_:function(H){return{text:_.Nh(H),type:"WARNING"}},
isPlaShelfEnabled_:function(H){if((this.get("adPlacements",H)||[]).length)return!0;H=this.get("playerAds",H)||[];return!(!H.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",H[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var H=this;_.cg(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();var U=this.getScrollTop()>0;this.gestures_&&(U?this.gestures_.detach():this.gestures_.attach());U!==this.showFullerscreenEdu_&&_.S("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=U,_.py(this).getPlayerPromise().then(function(A){A.updateFullerscreenEduButtonVisibility(H.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.cg(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var H=this;this.commentsReady=!1;_.Fl.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.bM(_.Fl,function(){H.setComments_()},1E3)},
setComments_:function(){if(!_.S("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.ba("cmi");_.Fl.cancelJob(this.setCommentsJobId_);var H=this.getPageContents(this.data);if(H&&H.length){H=_.b(H);for(var U=H.next();!U.done;U=H.next())if(U=U.value,this.get("itemSectionRenderer.sectionIdentifier",U)==="comment-item-section"){this.comments=U.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.cg(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.S("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.ba("cmc")},
doRemoveComments_:function(){this.comments={};_.S("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Fl.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Fl.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(H,U){var A=_.p(U.endpoint,_.sH);A&&(!(U=this.get("data.currentVideoEndpoint.watchEndpoint"))||A.videoId!==U.videoId||A.playlistId&&A.playlistId!==U.playlistId||A.index!==void 0&&A.index!==U.index||typeof A.startTimeSeconds!=="number"||(H.stopPropagation(),this.setScrollTop(0),_.py(this).getPlayerPromise().then(function(M){var W=A.startTimeSeconds;M.seekTo(W);M.wakeUpControls();W<M.getDuration()&&M.playVideo()})))},
updatePlayerStartTime_:function(){var H=pa5();"t"in H&&(H=kk$(H.t),this.player.seekTo(H,!0))},
updateTitleFromWatchNext:function(H){H=this.getPageContents(H);var U,A;(H=_.Sp(H==null?void 0:(U=H[0])==null?void 0:(A=U.videoPrimaryInfoRenderer)==null?void 0:A.title))&&_.cg(this.hostElement,"yt-update-title",H)},
updateTitle_:function(H){H=this.get("videoDetails.title",H)||"";_.cg(this.hostElement,"yt-update-title",H)},
syncWithRemoteVideo_:function(H,U,A){if(this.active&&this.player){var M=this.player.getVideoData();if(M.video_id===A&&(A=M.list,_.S("polymer_enable_mdx_queue")&&A&&A.startsWith("RQ")&&(A=void 0),M.video_id!==H||A!=U)){var W;_.S("kevlar_player_watch_endpoint_navigation")?W=_.hz0(iEY(H,U)):W=this.buildWatchEndpoint_(H,U);_.cg(this.hostElement,"yt-navigate",{endpoint:W,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(H,U,A){return _.mb(H,U,A)},
initDclkstatus_:function(){EU5()},
attachWatchPageSkeleton_:function(){var H=document.querySelector("#watch-page-skeleton");if(H){var U=H.querySelector("#primary-info"),A=H.querySelector("#secondary-info"),M=H.querySelector("#related");U&&_.c4(this.hostElement).querySelector("#info-skeleton").appendChild(U);A&&_.c4(this.hostElement).querySelector("#meta-skeleton").appendChild(A);M&&(_.c4(this.hostElement).querySelector("#related-skeleton").appendChild(M),this.watchNextSkeletonEl_=M);_.U5(H)}},
handlePlayerUpdated_:function(){_.py(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(H,U){if(this.watchNextSkeletonEl_&&typeof U!=="undefined"){var A=this.watchNextSkeletonEl_.children,M=H&&H.indexSplices.length?H.indexSplices[0].index:0;H=Math.min(this.watchNextShownItems.length,A.length);U||(M=0,H=A.length);for(U=M;U<H;U++)A[U].classList.add("hidden")}},
onPlayerFullscreenChange_:function(H){_.S("external_fullscreen")||_.yr(this.hostElement,"yt-player-fullscreen",[H.fullscreen])},
onFullscreenChange_:function(H){this.fullscreen=H;this.gestures_&&this.gestures_.update(this.fullscreen);var U=_.py(this);U.getPlayerPromise().then(function(A){A.setFauxFullscreen(!!_.L1())});
this.updateFullBleedElementLocations();H&&(U.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(H,U){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!U},
computeIsDonationShelfCollapsed_:function(H){return H},
computeShouldShowMerchShelf:function(H,U){return U&&!!H},
computeResponseHasComments:function(H){var U,A,M,W,w;return!!(H==null?0:(U=H.contents)==null?0:(A=U.twoColumnWatchNextResults)==null?0:(M=A.results)==null?0:(W=M.results)==null?0:(w=W.contents)==null?0:w.some(function(d){var O;return(d==null?void 0:(O=d.itemSectionRenderer)==null?void 0:O.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(H,U){this.responseHasComments=this.computeResponseHasComments(this.data);return!!H&&!!Object.keys(H).length&&!U},
identity:_.Ch,onWindowResized_:function(H){this.windowSize_=H;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.S("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onPlayerPresentingVideoDataChange_:function(H){var U=this;H&&H.type!=="dataloaded"&&H.type!=="dataupdated"||_.py(this).getPlayerPromise().then(function(A){var M=A.getPlayerState();M!==5&&M!==0&&(A=1/A.getVideoAspectRatio(),U.videoHeightToWidthRatio_!==A&&(U.videoHeightToWidthRatio_=A))})},
schedulePlayerSizeUpdate_:function(H){var U=this,A=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip"),M=function(){if(U.watchMetadata){var W,w;(w=(W=U.watchMetadata).resize)==null||w.call(W)}_.py(U).getPlayerPromise().then(function(d){if(_.tN("kevlar_set_internal_player_size")){if(!A||!U.isMiniplayerActive()){var O=U.calculateCurrentPlayerSize_();d.setInternalSize(O.width,O.height)}}else d.setSize(NaN,NaN);_.S("kevlar_watch_while")&&U.updateWatchWhileScrollThreshold_()})};
H?M():_.qT(_.Fl,M)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(H){this.set("data.survey",H.detail)},
onYtShowSurveyCommand_:function(H){this.set("data.survey",_.p(H,BUh).survey)},
onDownloadedVideoDeleted:function(H){var U=this,A,M;return _.u(function(W){if(W.nextAddress==1){if(!U.active||(A=U.playerData)==null||!A.offlineState||U.videoId!==H)return W.return();(M=U.player)==null||M.stopVideo();_.vc().navigatingAwayFromWatchDeletedVideo=!0;_.l0(_.j70,U.hostElement);return W.yield(_.vc().navigationFinishPromise,2)}_.vc().navigatingAwayFromWatchDeletedVideo=!1;_.DO(W)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var H;this.theater?H=_.b$(.5625*this.windowSize_.width,480,this.windowSize_.height-185):H=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==H&&(this.watchWhileScrollThreshold_=H)}},
isTwoColumnsChanged_:function(H,U){if(H!==!0||U!==void 0){H=!_.S("live_chat_over_engagement_panels");U=_.c4(this.hostElement).querySelector("#chat-container");var A=_.c4(this.hostElement).querySelector("#plj-sidebar"),M=_.c4(this.hostElement).querySelector("#panels"),W=_.c4(this.hostElement).querySelector("#plj-panels"),w=_.c4(this.hostElement).querySelector("#plj-playlist"),d=_.c4(this.hostElement).querySelector("#alerts"),O=_.c4(this.hostElement).querySelector("#playlist"),f=_.c4(this.hostElement).querySelector("#related"),
J=_.c4(this.hostElement).querySelector("#donation-shelf"),F=_.c4(this.hostElement).querySelector("#comments");this.isTwoColumns_?(d=_.c4(this.hostElement).querySelector("#secondary-inner"),d.appendChild(A),A.appendChild(w),w.appendChild(O),A.appendChild(W),H&&d.appendChild(M),_.S("web_watch_theater_chat")||d.appendChild(U),H||d.appendChild(M),d.appendChild(J),d.appendChild(f)):(H&&_.ft(M,d),_.ft(O,d),_.S("web_watch_theater_chat")||_.ft(U,d),H||_.ft(M,d),_.ft(J,d),F&&(W&&_.ft(W,F),_.ft(f,F)));_.S("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.S("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.S("web_watch_theater_chat")){var H=_.c4(this.hostElement).querySelector("#chat-container"),U=this.theater&&!this.fullscreen||_.S("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&U?_.S("web_watch_theater_chat_beside_player")?(U=_.c4(this.hostElement).querySelector("#panels-full-bleed-container"),(H==null?void 0:H.parentElement)!==U&&U.append(H),this.panelsBesidePlayer=!0):_.S("web_watch_theater_fixed_chat")&&
(U=_.c4(this.hostElement).querySelector("#columns"),(H==null?void 0:H.parentElement)!==U&&U.append(H),this.fixedPanels=!0):(_.S("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.S("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),U=_.c4(this.hostElement).querySelector("#playlist"),H&&U?_.JJ(H,U):_.Na(new _.bD("Missing element when updating chat location",{"chatContainer defined":!!H,"playlist defined":!!U})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(H,U){return _.S("sw_metadata_vis_toggle_ks")?!0:!!H||!!U},
computeForceDarkPanelTheme:function(H){return _.S("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&H:!1},
safeUpdateStyles:function(H){try{_.Dt(this.hostElement,H)}catch(U){_.Na(U)}},
videoHeightToWidthRatioChanged_:function(H,U){U&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.S("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(H){this.videoHeightToWidthRatio_=1/H},
computeIsVerticalVideo_:function(H){return H>=1},
computeIsFourThreeToSixteenNineVideo_:function(H){return H<=.7501&&H>=.5624},
computeIsExtraWideVideo_:function(H){return H<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.py(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.py(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){aw5(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(H){var U=_.H4(H)||0;_.V3(H,U+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var H=_.H4("yt-fullerscreen-edu-button-click-count")||0,U=_.H4("yt-fullerscreen-edu-button-shown-count")||0,A=_.hr("external_fullscreen_button_shown_threshold"),M=H>=_.hr("external_fullscreen_button_click_threshold")||U>=A;_.py(this).getPlayerPromise().then(function(W){W.updateFullerscreenEduButtonSubtleModeState(M)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(H,U){return U},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.lx().resolve(_.FX).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var H=this;this.panelMaxHeightUpdateJob_&&_.Fl.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.Fl.addLowPriorityJob(function(){H.panelMaxHeightUpdateJob_=0;var U;!H.isTwoColumns_||H.theater||H.fullscreen?U=460:U=H.calculateNormalPlayerSize_().height;var A=U+"px";_.S("live_chat_taller_height")&&!H.theater&&(A="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.S("live_chat_medium_height")&&
!H.theater&&(A="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.S("live_chat_scaled_height")&&!H.theater&&(A="calc(100vh - var(--ytd-toolbar-height) - 238px)");H.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":U+"px","--ytd-watch-flexy-chat-max-height":A,"--ytd-watch-flexy-structured-description-max-height":U+"px","--ytd-watch-flexy-comments-panel-max-height":U+"px","--ytd-comments-engagement-panel-content-height":U+"px"})})},
onYtShowEngagementPanelScrimAction_:function(H){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",H)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.eb(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(H){var U=_.c4(this.hostElement).querySelector("#engagement-panel-scrim");H?U.addEventListener("tap",_.lN(this,this.onEngagementPanelScrimClick_)):U.removeEventListener("tap",_.lN(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(H){if(this.hostElement.contains(H)&&!this.scrollToAnimation_.isAnimating()){var U=H.offsetTop-24;H=H.offsetTop+H.offsetHeight+24;var A=this.getPageScrollingElement(),M=this.getScrollTop(),W=M+A.clientHeight-56;if(U<M+56)U-=56;else if(H>W)U=H-A.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,U),500)}},
onYtSignalActionScrollToComments:function(){var H=this.hostElement.querySelector("#comments");if(H&&!this.scrollToAnimation_.isAnimating()){H=H.offsetTop-56-24;if(_.S("kevlar_comment_teaser_scroll_to_midpoint")&&(H-=_.VT().height/3,H<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,H),500)}},
onYtEngagementPanelVisibleChanged:function(H,U,A){this.active&&this.trackEngagementPanelVisibility&&!Vam.includes(A)&&(U==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(A),U!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&U!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(A),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(H){return H?"":"watch-active-metadata"},
computeNewMetadataClass:function(H){return H?"watch-active-metadata":""},
computeFullBleedPlayer:function(H,U){return H||U},
computeDefaultLayout:function(H){return!H},
computeDefaultTwoColumnLayout:function(H,U){return!H&&U},
computeWatchWhilePanelsActive:function(H,U){return H||U},
computeNoBorderOnChat:function(H){return _.S("web_watch_theater_chat_no_border")&&H},
computeLiveChatPresentAndExpanded:function(H,U){return H&&!U},
computePanelExpanded:function(H,U,A){return H||U||A},
onChangeMarkersVisibility:function(H){_.py(this).getPlayerPromise().then(function(U){var A;(A=U.changeMarkerVisibility)==null||A.call(U,_.p(H,Re).isVisible||!1,_.p(H,Re).entityKeys||[],_.p(H,Re).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(H){this.liveChatCollapsed=H.detail;_.Lq().dispatch(GIY(H.detail))},
provideRenderingData:function(H,U){switch(H){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=U;break;case "PRIMARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=U);this.videoPrimaryInfoRendererValue=U==null?void 0:U.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=U);this.videoSecondaryInfoRendererValue=U==null?void 0:U.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
U;break;case "CLARIFICATION":this.clarifyBoxValue=U;break;case "LIVE_CHAT":this.conversationBar=U;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=U;break;case "PLAYLIST":this.externalPlaylistData_=U!=null?U:{};break;case "MERCH_SHELF":this.merchShelfValue=U==null?void 0:U.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=U;break;case "OFFER_MODULE":this.offerModule=U;break;case "LIMITED_STATE":this.limitedStateValue=U;break;case "DONATION_SHELF":this.donation=U;break;
case "ALERTS":this.alertsValue=U;break;case "COMMENTS":this.comments=U;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=U;break;case "ENGAGEMENT_PANELS":this.engagementPanels=U;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=U;break;case "RICH_GRID_RENDERER":this.richGridRendererData=U;break;case "EXPANDABLE_METADATA":this.expandableMetadata=U;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=U}},
toggleCinematicsActive:function(H){this.cinematicsActive=H},
isMiniplayerActive:function(){return _.lx().resolve(_.ZB).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(H){return Wk8.map(function(U){return H.find(function(A){var M;return(A==null?void 0:(M=A.engagementPanelSectionListRenderer)==null?void 0:M.targetId)===U})}).filter(function(U){return U!==void 0})},
getNonLearningJourneyEngagementPanels:function(H){return H.filter(function(U){var A;return!Wk8.includes((U==null?void 0:(A=U.engagementPanelSectionListRenderer)==null?void 0:A.targetId)||"")})}}];var GE=function(){return _.v4.apply(this,arguments)||this};
_.R(GE,_.v4);_.X=GE.prototype;_.X.activeChanged=function(){if(this.active){var H=_.c4(this.hostElement).querySelector("#header");H&&_.cg(H,"iron-resize");window.addEventListener("scroll",_.lN(this,this.onScroll))}else window.removeEventListener("scroll",_.lN(this,this.onScroll)),_.cg(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.X.guideVisibleChanged=function(){var H=_.c4(this.hostElement).querySelector("#header");H&&_.cg(H,"iron-resize")};
_.X.onScroll=function(){var H=this;_.F8(this,"onScroll",function(){var U=_.c4(H.hostElement).querySelector("#header");U&&U.polymerController&&(U=U.polymerController.getScrollState().progress===1?"standard":"seamed",_.cg(H.hostElement,"yt-request-panel-mode-change",{mode:U}))},10)};
_.X.tabsChanged=function(){if(this.tabs){for(var H=null,U=0,A=this.tabs.length;U<A;++U){var M=this.tabs[U].tabRenderer;if(M&&M.selected){H=U;break}}this.selected=H}};
_.X.onTabsActivate=function(H){_.cg(this.hostElement,"yt-navigate",{endpoint:this.tabs[H.detail.selected].tabRenderer.endpoint})};
GE.prototype.tabsChanged=GE.prototype.tabsChanged;GE.prototype.guideVisibleChanged=GE.prototype.guideVisibleChanged;GE.prototype.activeChanged=GE.prototype.activeChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],GE.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.y(),_.q("design:type",Array)],GE.prototype,"tabs",void 0);
_.G([_.y(),_.q("design:type",Object)],GE.prototype,"selected",void 0);_.G([_.y(),_.q("design:type",Boolean)],GE.prototype,"active",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],GE.prototype,"disableHeaderFluidWidth",void 0);_.G([_.Ya("active"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GE.prototype,"activeChanged",null);
_.G([_.Ya("guidePersistentAndVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GE.prototype,"guideVisibleChanged",null);_.G([_.Ya("tabs"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GE.prototype,"tabsChanged",null);_.G([_.Tl()],GE);var wGk=[_.I.YtRendererBehavior,_.Km.YtdGuideStateAwareBehavior,GE.prototype];var ib7=function(H){_.XG.call(this);var U=this;this.JSC$21558_watchApi=H;this.observer=null;var A=this.JSC$21558_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){XG7(U)});
this.addOnDisposeCallback(function(){U.JSC$21558_watchApi.unsubscribeByKey(A);U.observer&&(U.observer.disconnect(),U.observer=null)});
XG7(this)};
_.R(ib7,_.XG);var XG7=function(H){var U,A,M,W,w;_.u(function(d){if(d.nextAddress==1){H.observer&&(H.observer.disconnect(),H.observer=null);U=H.JSC$21558_watchApi.getWatchNextResponse();if(!U)return d.return();A=_.p(U,oNX);return((M=A)==null?0:M.enableCreatorChatbot)&&A.creatorChannelId?_.S("enable_creator_chatbot_link_out")?d.yield((0,_.YX)("NSzT5"),6):d.yield((0,_.YX)("NSzT5"),5):d.jumpTo(0)}if(d.nextAddress!=6)return W=_.bbj,W(A.creatorChannelId),d.jumpTo(0);w=_.d3p;w(A.creatorChannelId);_.DO(d)})};var YH=function(H){_.XG.call(this);this.JSC$21562_watchApi=H;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;Obk(this)};
_.R(YH,_.XG);var Obk=function(H){_.u(function(U){if(U.nextAddress==1)return U.yield(uC5(H),2);Zbh(H);_.DO(U)})},uC5=function(H){var U,A,M,W,w,d,O,f,J;
return _.u(function(F){if(F.nextAddress==1)return F.yield(H.JSC$21562_watchApi.playerApi,2);U=F.yieldResult;H.JSC$21562_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){fhj(H)});
H.JSC$21562_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){H.isShelfVisible?Jdy(H):qw(H)});
A=_.Lq().subscribe(function(){H.isTheaterMode=_.As(_.Lq().getState());H.isTheaterMode?qw(H):KkB(H)});
M=H.JSC$21562_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Zbh(H)});
W=function(P){H.onCueRangeEnter(P)};
U.addEventListener("onCueRangeEnter",W);w=function(P){H.onCueRangeExit(P)};
U.addEventListener("onCueRangeExit",w);d=function(){H.isSeeking=!0};
U.addEventListener("SEEK_TO",d);O=function(){H.onSeekComplete()};
U.addEventListener("SEEK_COMPLETE",O);f=function(){H.onAdStart()};
U.addEventListener("onAdStart",f);J=function(){H.onAdComplete()};
U.addEventListener("onAdComplete",J);H.addOnDisposeCallback(function(){A();H.JSC$21562_watchApi.unsubscribeByKey(M);U.removeEventListener("onCueRangeEnter",W);U.removeEventListener("onCueRangeExit",w);U.removeEventListener("SEEK_TO",d);U.removeEventListener("SEEK_COMPLETE",O);U.removeEventListener("onAdStart",f);U.removeEventListener("onAdComplete",J)});
_.DO(F)})},oMh=function(H){var U,A,M,W,w,d,O,f,J;
return(w=(U=H.contents)==null?void 0:(A=U.twoColumnWatchNextResults)==null?void 0:(M=A.results)==null?void 0:(W=M.results)==null?void 0:W.contents)==null?void 0:(d=w.find(function(F){var P,n,N;return(P=F.itemSectionRenderer)==null?void 0:(n=P.contents)==null?void 0:(N=n[0])==null?void 0:N.shoppingTimelyShelfViewModel}))==null?void 0:(O=d.itemSectionRenderer)==null?void 0:(f=O.contents)==null?void 0:(J=f[0])==null?void 0:J.shoppingTimelyShelfViewModel},Zbh=function(H){var U;
_.u(function(A){if(A.nextAddress==1)return(U=H.JSC$21562_watchApi.getWatchNextResponse())?A.yield(fhj(H),2):A.return();H.shoppingTimelyShelfViewModel=oMh(U);Fkp(H);Pgm(H);_.DO(A)})},Fkp=function(H){var U,A=(U=H.shoppingTimelyShelfViewModel)==null?void 0:U.offerIdToVariants;
A&&(U=A.filter(function(M){return M.key&&M.value}).map(function(M){return[M.key,
M.value]}),H.variantsMap=new Map(U))},Pgm=function(H){var U,A,M,W,w,d;
_.u(function(O){if(O.nextAddress==1)return(A=(U=H.shoppingTimelyShelfViewModel)==null?void 0:U.cueRanges)?O.yield(H.JSC$21562_watchApi.playerApi,2):O.return();M=O.yieldResult;H.cueRanges=A;W=_.b(A);for(w=W.next();!w.done;w=W.next())d=w.value,d.startTime!==void 0&&d.endTime!==void 0&&d.id!==void 0&&M.addCueRange("shopping_timely_shelf"+d.id,sq7(d.startTime),sq7(d.endTime));_.DO(O)})},sq7=function(H){return Number(H.seconds||0)+(H.nanos||0)/1E9};
YH.prototype.onCueRangeEnter=function(H){if(H.startsWith("shopping_timely_shelf")&&(this.activeCueId=H,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){H=H.substring(21);var U,A,M=(U=this.variantsMap)==null?void 0:(A=U.get(H))==null?void 0:A.shelf;M&&(this.JSC$21562_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",M),Jdy(this))}};
YH.prototype.onCueRangeExit=function(H){H.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||qw(this))};
YH.prototype.onSeekComplete=function(){this.isSeeking=!1;KkB(this)};
var Jdy=function(H){H.shoppingTimelyShelfViewModel&&(H.isShelfVisible=!0,_.a1.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},qw=function(H){H.shoppingTimelyShelfViewModel&&H.isShelfVisible&&(H.isShelfVisible=!1,_.a1.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},fhj=function(H){var U,A,M,W,w;
return _.u(function(d){if(d.nextAddress==1)return d.yield(H.JSC$21562_watchApi.playerApi,2);U=d.yieldResult;if(H.cueRanges)for(A=_.b(H.cueRanges),M=A.next();!M.done;M=A.next())W=M.value,W.id&&(w="shopping_timely_shelf"+W.id,U.removeCueRange(w));H.JSC$21562_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});qw(H);H.shoppingTimelyShelfViewModel=void 0;H.cueRanges=void 0;H.variantsMap=void 0;H.isSeeking=!1;H.activeCueId=void 0;_.DO(d)})};
YH.prototype.onAdStart=function(){this.isAdPlaying=!0;qw(this)};
YH.prototype.onAdComplete=function(){this.isAdPlaying=!1;KkB(this)};
var KkB=function(H){if(H.activeCueId)H.onCueRangeEnter(H.activeCueId);else qw(H)};var LkY=function(H){_.XG.call(this);var U=this;this.JSC$21569_watchApi=H;H=_.It(_.Lq(),_.i6E,function(){nM$(U)});
this.addOnDisposeCallback(H);H=_.It(_.Lq(),Aw7,function(){nM$(U)});
this.addOnDisposeCallback(H);N25(this);SSh(this);pGk()};
_.R(LkY,_.XG);var N25=function(H){var U=function(M){_.Lq().dispatch(l7h(M.matches))},A=window.matchMedia("(max-width: "+(999+Hz())+"px)");
A.addListener(U);H.addOnDisposeCallback(function(){A.removeListener(U)});
U(A)},SSh=function(H){H.JSC$21569_watchApi.registerActionHandler("yt-window-resized",function(){pGk()});
H.addOnDisposeCallback(function(){H.JSC$21569_watchApi.unregisterActionHandler("yt-window-resized")})},pGk=function(){var H=_.hc();
_.Lq().dispatch(_.zQ({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:H.width,height:H.height}}}))},nM$=function(H){var U;
_.u(function(A){if(A.nextAddress==1)return A.yield(H.JSC$21569_watchApi.playerApi,2);U=A.yieldResult;U.setSize(NaN,NaN);_.DO(A)})};var RG7=function(H){_.XG.call(this);var U=_.lx().resolve(_.Vc);V2m(U,H.getElement("PLAYER_CONTAINER"),H.getElement("BELOW_THE_PLAYER"),H.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var A=H.getElement("PLAYER_CONTAINER"),M=H.getElement("BELOW_THE_PLAYER"),W=H.getElement("SECONDARY");U.isLockupToWatchTransitionEnabled&&(A&&_.bA(U.viewTransitionCoordinator,A),M&&_.bA(U.viewTransitionCoordinator,M),W&&_.bA(U.viewTransitionCoordinator,W))})};
_.R(RG7,_.XG);var hX=function(H){rC.call(this);var U=this;this.rootElement=H;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return U.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(A){U.initOrDisposeActiveModules(A)}));
this.onAttached()};
_.R(hX,rC);_.X=hX.prototype;_.X.getRoot=function(){return this.rootElement};
_.X.getElement=function(H){return this.rootElement.getElement(H)};
_.X.setPlayerResponse=function(H){this.playerResponse=H;this.publish("PLAYER_RESPONSE_UPDATED",H)};
_.X.getPlayerResponse=function(){return this.playerResponse};
_.X.setWatchNextResponse=function(H){this.watchNextResponse===H?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=H,this.publish("WATCH_NEXT_RESPONSE_UPDATED",H))};
_.X.getWatchNextResponse=function(){return this.watchNextResponse};
_.X.registerActionHandler=function(H,U){var A=this;if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var M={};_.xX(_.a1.getInstance(),(M[H]=U,M),this.getRoot())}else this.actionHandlers.has(H)||(this.actionHandlers.set(H,[]),M={},_.xX(_.a1.getInstance(),(M[H]=function(){var W=_.QY.apply(0,arguments);return(A.actionHandlers.get(H)||[]).map(function(w){return w.apply(null,_.vI(W))})},M),this.getRoot())),this.actionHandlers.get(H).push(U)};
_.X.unregisterActionHandler=function(H){if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var U={};_.z9(_.a1.getInstance(),(U[H]=!0,U),this.getRoot())}else(U=this.actionHandlers.get(H))?(U.pop(),U.length===0&&(U={},_.z9(_.a1.getInstance(),(U[H]=!0,U),this.getRoot()),this.actionHandlers.delete(H))):_.Na(new _.bD("Attempted to unregister an action handler which is not registered.",H))};
_.X.addPageDisposeJob=function(H){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.ac_(this.rootElement.pageDisposeJobs,H)};
_.X.removePageDisposeJob=function(H){this.rootElement.pageDisposeJobs&&_.Dc(this.rootElement.pageDisposeJobs,H)};
_.X.dispatchEvent=function(H,U){_.cg(this.rootElement,H,U)};
_.X.provideRenderingData=function(H,U){this.rootElement.provideRenderingData(H,U)};
_.X.scrollWatchTo=function(H,U){var A;(A=this.watchScrollManager)==null||A.scrollWatchTo(H,U)};
_.X.focusOnPlayer=function(){var H=this.getElement("PLAYER");_.rV(H,function(){if(H&&H.firstElementChild){var U=H.querySelector(".html5-video-player");U&&(_.mE(_.lx().resolve(_.qe)),U.focus())}else _.Na(Error("Vl"))})};
_.X.subscribeToActiveChanged=function(H,U){U=U===void 0?!0:U;var A=_.It(_.Lq(),HEp,function(M){H(M)});
U&&H(HEp(_.Lq().getState()));return A};
_.X.isActive=function(){return HEp(_.Lq().getState())};
_.X.onAttached=function(){var H=_.S("external_fullscreen");_.S("use_unified_flag_accessor")&&(H=_.lx().resolve(_.oVf).retriever.getFlag(_.uly));(H||_.xV("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var EM5=function(H){return H.getRoot().is==="ytd-watch-flexy"||H.getRoot().is==="ytd-watch-grid"},kH=function(H){return H.getRoot().is==="ytd-watch-fixie"};
hX.prototype.initPersistentModules=function(){if(kH(this)||EM5(this)&&_.S("kevlar_watch_flexy_theater_manager")){var H=new jIp(this);_.kl(this,H)}H=new urp(this);_.kl(this,H);H=new a7(this);_.kl(this,H);H=new WWh(this);_.kl(this,H);H=new $H(this);_.kl(this,H);H=new xH(this);_.kl(this,H);if(kH(this)||EM5(this)&&_.S("kevlar_watch_flexy_playlist_manager"))H=new hu$(this),_.kl(this,H);_.S("web_thumbnail_to_watch_transition")&&(H=new RG7(this),_.kl(this,H))};
hX.prototype.initOrDisposeActiveModules=function(H){H?(this.watchScrollManager=new l5(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new mwh(this)),_.S("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new YH(this)),this.activeModules.push(new T07(this)),kH(this)&&this.activeModules.push(new LkY(this)),this.activeModules.push(new Q7f(this)),this.activeModules.push(new s7h(this)),(kH(this)||_.S("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new HzB(this)),
this.activeModules.push(new cXY(this)),(kH(this)||_.S("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new Hb5(this)),(kH(this)||_.S("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new uv5(this)),_.tN("kevlar_watch_cinematics")&&(this.watchCinematicManager=new $t5(this),this.activeModules.push(this.watchCinematicManager)),_.S("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new euf(this)),_.S("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new bS5(this)),
H=_.S("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.S("kevlar_watch_flexy_comments_manager")&&!H&&this.activeModules.push(new QKm(this)),_.S("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new Jxy(this)),this.activeModules.push(new Ma$(this)),this.activeModules.push(new aPB(this)),_.S("web_enable_timely_actions")&&this.activeModules.push(new i0y(this)),_.S("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new ai5(this)),_.S("web_watch_enable_multiview_manager")&&
this.activeModules.push(new nWf(this)),_.S("web_fullscreen_components")&&this.activeModules.push(new wpk(this)),_.S("web_player_rtr_ctrls")&&this.activeModules.push(new z9h(this)),(_.S("enable_creator_chatbot")||_.S("enable_creator_chatbot_link_out"))&&this.activeModules.push(new ib7(this))):(_.Cp(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
hX.prototype.disposeInternal=function(){rC.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.D5.Object.defineProperties(hX.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.LG(_.r(function(H){var U=H.data;H=_.b(_.iB(!1,void 0,"VotqNe"));var A=H.next().value,M=H.next().value;_.LA(function(){_.a1.getInstance().triggerAction("yt-request-timely-shelf-state")});
var W=_.Ja(function(){var J,F,P=(J=_.p(U().rendererContext,_.vX))==null?void 0:(F=J.loggingDirectives)==null?void 0:F.trackingParams;if(P)return _.IS(P)},void 0,"AvMXxb");
_.xX(_.a1.getInstance(),{"yt-hide-shopping-timely-shelf":function(){M(!1);var J=_.XK(),F=W();J&&F&&_.nE(J,[F])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){M(!0);var J=_.XK(),F=W();J&&F&&_.sn(J,[F])})}});
var w=function(){var J;return(J=U().image)==null?void 0:J.image},d=function(){var J,F;
return!!((J=w())==null?0:(F=J.sources)==null?0:F.some(function(P){var n;return!!(P==null?0:(n=P.clientResource)==null?0:n.imageName)}))},O=function(){var J;
return((J=U().image)==null?void 0:J.height)||40},f=function(){var J;
return(J=U().image)==null?void 0:J.backgroundColor};
H={};return _.Z("yt-shopping-timely-shelf-content-view-model",{el:_.sB(_.Wq(function(){return U().rendererContext})),
class:_.CG("ytShoppingTimelyShelfContentViewModelHost",(H.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(U().image||U().avatar||U().line1)&&A()},H)),
style:_.rA({"--shopping-timely-shelf-content-padding-top":function(){var J;return ksX((J=U().padding)==null?void 0:J.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var J;return ksX((J=U().padding)==null?void 0:J.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var J;return ksX((J=U().padding)==null?void 0:J.start)},
"--shopping-timely-shelf-content-padding-end":function(){var J;return ksX((J=U().padding)==null?void 0:J.end)},
"--yt-shopping-timely-shelf-background-color":function(){return U().backgroundColor!==void 0?_.bN(U().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var J,F;return((F=(J=U().image)==null?void 0:J.cornerRadius)!=null?F:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return f()!==void 0?_.bN(f()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var J;return(((J=U().image)==null?void 0:J.width)||40)+"px"}})},_.Z(_.K,{cond:w,
then:function(J){var F={};return _.Z(_.nG,{preserveHeight:!0,preserveWidth:!0,height:O,data:J,alt:"",className:_.CG("ytShoppingTimelyShelfContentViewModelImage",(F.ytShoppingTimelyShelfContentViewModelIcon=d,F))})}}),_.Z(_.YY,{data:function(){return U().avatar}},{avatarViewModel:_.dU}),_.Z("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.Z(_.YY,{data:function(){return U().line1}},{shoppingContentLineViewModel:function(J){return _.Z(_.R6,{data:J.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.Z(_.YY,{data:function(){return U().line2}},{shoppingContentLineViewModel:function(J){return _.Z(_.R6,{data:J.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.Z("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.Z(_.YY,{data:function(){var J;
return(J=U().button)!=null?J:[]}},{buttonViewModel:function(J){var F=J.data;
return _.Z(_.yJ,{data:F,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(P){F().onTap&&P.stopPropagation()}})}})))},"pk"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.sY}});var m3$={};
m3$.YtdWatchBehavior=[_.I.YtRendererBehavior,_.nm.YtPlayerListenerBehavior,_.gv.YtRendererstamperBehavior,_.$y.YtActionHandlerBehavior,ZP.YtPageBehavior,_.D1.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)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{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 _.xV("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.S("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 _.xV("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_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},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 _.S("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.S("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,reflectToAttribute:!0,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,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.hr("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.hr("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)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.S("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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, isSingleColumn)"},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 _.S("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.S("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.S("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.S("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("swatcheroo_enable_ghost_cards")||_.S("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.S("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(H,U,A){return H&&(U||!A)},
computeShowGhostRelated_:function(H,U,A){return H&&(U||!A)},
monitorScroll:!0,configureRendererStamper:function(){var H={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"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},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:SK(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:SK(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-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"||_.S("swa_prov_panels_ks")?H.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(H.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},H.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return H},
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 H=this;this.watchController=void 0;this.pageDisposeJobs=[function(){H.showMetadataPlaceholder_()},
function(){_.S("web_watch_dont_clear_comments")||H.clearComments_()},
function(){H.clearPlayerAds_()},
function(){H.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=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;_.S("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.S("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new Nc5(function(){return _.py(H)},this.hostElement);
this.pageDisposeJobs.push(function(){H.youThereManager_.reset()});
_.S("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){H.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.wJ;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;this.watchMetadata=void 0;_.S("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));_.S("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.lN(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(H){H&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:H}),H.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(H){_.S("kevlar_watch_flexy_theater_manager")&&(this.theater=H,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(H){!_.S("kevlar_watch_while_v2")&&!_.S("web_watch_pip")||H||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(H){this.active!==void 0&&(this.fullscreen=H,_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(H){this.active!==void 0&&(_.cg(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(H>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(H){this.initCsi_();this.updatePageData_(H)},
updatePageData_:function(H){var U=this;if(H)if(this.data===H){this.onPageLoadWithSameData_();var A;(A=this.watchController)==null||A.setWatchNextResponse(this.data)}else this.data=H;this.playlist&&_.wH({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.ba("nw");this.loading=!1;_.bM(_.Fl,function(){U.initDclkstatus_();var M,W=((M=U.player)==null?void 0:M.getVideoData().cpn)||"";xjp(function(w,d){CUf(w,d,W)})})},
onPageLoadWithSameData_:function(){_.S("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 H=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!H);this.set("loadingData.playlistLoading",H&&H!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),H=this.watchNextSkeletonEl_.firstElementChild;H;)H.classList.remove("hidden"),H=H.nextElementSibling;if(_.S("kevlar_watch_frame0_loading_state")){var U,A,M;H=(U=this.loadingData)==null?void 0:(A=U.endpoint)==null?void 0:(M=A.watchEndpoint)==null?void 0:M.videoId;var W;H&&(W="https://i.ytimg.com/vi/"+H+"/frame0.jpg");_.c4(this.hostElement).querySelector("#player").style.backgroundImage=W?"url("+W+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var H=_.c4(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&H&&(H.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var U,A;(A=(U=this.watchMetadata).updateSentimentBarWidth)==
null||A.call(U);var M,W;(W=(M=this.watchMetadata).resize)==null||W.call(M)}_.S("kevlar_watch_frame0_loading_state")&&(_.c4(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(H){var U=_.c4(this.hostElement).querySelector(H);U?_.EH(U,!1):_.Na(new _.bD("Overscroll monitor not found for component: ",H))},
removeSplitScrollMouseTrap:function(H){var U=_.c4(this.hostElement).querySelector(H);U?_.mJ(U):_.Na(new _.bD("Disposal component for  overscroll monitoring not found: ",H))},
onLoadingChanged_:function(H){H?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.S("web_thumbnail_to_watch_transition")&&!_.ebh||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.S("web_thumbnail_to_watch_transition")&&!_.ebh||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(H){var U=this;H?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Fl.addLowPriorityJob(function(){U.onWindowResized_(_.hc(!0))})},
updateTheaterModeState_:function(H){if(!_.S("kevlar_watch_flexy_theater_manager")){H=H||this.fullWindowMode_;if(this.theater!==void 0||H)this.theater=H;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();H&&JwX()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var H=this.fullBleedPlayer?_.c4(this.hostElement).querySelector("#player-full-bleed-container"):_.c4(this.hostElement).querySelector("#player-container-inner");var U=this.getPlayerContainer(),A=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip");U.parentElement!==H&&(A&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.py(this).appendTo(H,U))},
updateErrorScreenLocation:function(){var H=_.c4(this.hostElement).querySelector("#error-screen"),U=this.fullBleedPlayer?_.c4(this.hostElement).querySelector("#player-full-bleed-container"):_.c4(this.hostElement).querySelector("#player");H.parentElement!==U&&U.appendChild(H)},
deactivateMiniplayerAndResetPlayer:function(){var H=this;return _.u(function(U){if(U.nextAddress==1)return U.yield(_.lx().resolve(_.ZB).deactivate(),2);H.updatePlayerLocation();_.DO(U)})},
updateCinematicsLocation:function(){var H=this.getElement("CINEMATICS");if(H){var U=this.getCinematicsLocationContainer();H.parentElement!==U&&U.appendChild(H)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.c4(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.c4(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(H,U,A){var M=document.documentElement.hasAttribute("dark"),W=!M&&this.cinematicLightTheme;return A||H&&M||U&&M||(U||H)&&W},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var H=this,U;(U=this.watchController)==null||U.setWatchNextResponse(this.data);_.S("kevlar_watch_flexy_comments_manager")||this.initComments_();_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.lx().resolve(_.FX).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.S("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Fl.addLowPriorityJob(function(){_.Bg(H.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.S("web_watch_start_chat_in_theater_mode")){var A,M,W;if((A=this.data)==null?0:(M=A.contents)==null?0:(W=M.twoColumnWatchNextResults)==null?0:W.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var w,d;((w=this.data)==null?0:(d=w.contents)==null?0:d.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(H){var U;(U=this.watchController)==null||U.setPlayerResponse(this.playerData);H&&H.playabilityStatus&&(U=this.isVideoPlayable_(H.playabilityStatus,this.getPlayerOverlays_(this.data)),H=this.isLiveStreamOffline_(H.playabilityStatus),U&&!H||_.rV(this,function(){_.ba("pbu")}));
this.setPlayerAds_();_.Bg(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(H,U){if((_.S("kevlar_watch_while_v2")||_.S("web_watch_pip"))&&this.playerData&&U)return this.playerData.videoDetails},
watchPageActiveChanged_:function(H){_.Lq().dispatch($A8(this.active));H?this.activate_():this.deactivate_()},
attached:function(){var H=this;this.watchController=new hX(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.S("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var U=_.py(this);_.S("kevlar_disable_prepare_player")||
U.preparePlayer();_.S("kevlar_watch_flexy_playlist_manager")||_.lx().resolve(_.FX).setPlayer(U);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();U={"--ytd-watch-flexy-scrollbar-width":Hz()+"px"};this.is==="ytd-watch-grid"&&(_.Lq().dispatch(_.zQ({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),U["--ytd-watch-flexy-sidebar-width"]=zyk+"px",U["--ytd-watch-grid-horizontal-page-margins"]=Al+"px",U["--ytd-watch-grid-columns-top-margins"]=cp8+"px",
U["--ytd-watch-grid-min-player-height-medium"]="360px");!_.hr("kv_pl_mx_sz_ks")&&_.hr("kevlar_watch_max_player_width")&&(U["--ytd-watch-flexy-max-player-width-wide-screen"]=trY+"px");_.hr("kevlar_watch_flexy_metadata_height")&&(U["--ytd-watch-flexy-space-below-player"]=ypy+"px");this.safeUpdateStyles(U);_.S("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new DP(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return H.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.c4(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var H=Hz(),U=UL+H,A=U;this.fixedPanels&&(U+=zyk);var M=657+H;H=1327+H;_.c4(this.hostElement).querySelector("#two-column-query").query="(min-width: "+U+"px)";_.c4(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(M+"px), (min-height: 630px) and (min-width: ")+(U+"px) and (max-width: ")+(H+"px)");_.c4(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(H+"px)");_.c4(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+A+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var H=this.squeezeback&&!_.S("web_watch_squeezeback_player_size_killswitch");return this.theater||_.S("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||H||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.QT(NaN,NaN):BA7(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return BA7(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.zg(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var H=this;this.onWindowResized_(_.hc());_.S("browse_skeleton_removal_on_watch_killswitch")||_.xV("IS_SHELL_LOAD")&&pOX();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var U=_.py(this);U.addEventListener("yt-player-updated",_.lN(this,this.onPlayerUpdated_));U.getPlayerPromise().then(function(A){H.playerApiReady_(A)});
_.S("kevlar_watch_flexy_playlist_manager")||(U=_.lx().resolve(_.FX),_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&U.addEventListener("yt-navigate",_.lN(this,this.onYtNavigate_)),U.setPlaylistComponent(_.c4(this.hostElement).querySelector("#playlist")),U.addEventListener("yt-playlist-data-updated",_.lN(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Fl.addLowPriorityJob(function(){_.cg(H.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.py(this).removeEventListener("yt-player-updated",_.lN(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.S("kevlar_watch_flexy_playlist_manager")){var H=_.lx().resolve(_.FX);_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&H.removeEventListener("yt-navigate",_.lN(this,this.onYtNavigate_));
H.cancelVideoSkip();H.removeEventListener("yt-playlist-data-updated",_.lN(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);this.schedulePlayerSizeUpdate_();_.cg(this.hostElement,"yt-autonav-pause-player",!1);H=_.L1();_.S("kevlar_exit_fullscreen_leaving_watch")&&H&&_.R2(H)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(H){this.player&&this.player.updateVideoData({rvs:H.rvs})},
getPageContents:function(H){return H&&H.contents&&H.contents.twoColumnWatchNextResults&&H.contents.twoColumnWatchNextResults.results&&H.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(H){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",H)},
onRetrieveLocation_:function(H,U){U.hasComments?U.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):U.locationRetrieved("/related_ajax",void 0);H.stopPropagation()},
onSubscriptionChanged_:function(H,U){this.player&&(U?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){f2p("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.c4(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.c4(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(H){this.player=H;this.setPlayerState(H.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.S("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.S("kevlar_unified_player")||_.S("kevlar_player_new_bootstrap_adoption"))&&_.oi()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(H,U){U=U===void 0?!0:U;_.L1()&&_.S("external_fullscreen")&&_.R2(document.documentElement);this.theaterRequested_=H;U&&_.WK("wide",H?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.yr(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.cg(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(H){_.SD(H,typeof this.player),this.player&&_.SD(H,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var H;((H=this.player)==null?0:H.isFullscreen())?this.player.toggleFullscreen():_.yr(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(H,U){return this.loading?U:!!Object.keys(H).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(H){if(H){H=_.b(H);for(var U=H.next();!U.done;U=H.next())U=U.value,U.youThereRenderer&&LnX(this.youThereManager_,U.youThereRenderer)}},
setPlaylistData_:function(H){return H||{}},
userEngagementConfigDataChanged_:function(H){if(H)if(H.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var U=this.youThereManager_;_.$B()<H.lowEngagementThresholdMs||gd8(U,!0)}else H.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.yr(this.hostElement,"yt-autonav-pause-user-engagement",[H])},
isPlayerUnavailable_:function(H,U,A){return!!H&&!this.isVideoPlayable_(H,A)&&!U},
getPlayerOverlays_:function(H){return(H==null?void 0:H.playerOverlays)||null},
isVideoPlayable_:function(H,U){if(!H)return!1;var A=H.status==="OK"||H.status==="LIVE_STREAM_OFFLINE",M=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",H)||this.get("errorScreen.ypcTrailerRenderer",H);H=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",H);var W;U=U==null?void 0:(W=U.playerOverlayRenderer)==null?void 0:W.gatedActionsOverlayRenderer;return!!A||!!M||!!H||!!U},
hasWatchNextResponseErrorRenderer:function(H){var U=this.getPageContents(H),A,M,W,w,d;return!(H==null?0:(A=H.contents)==null?0:(M=A.twoColumnWatchNextResults)==null?0:M.secondaryResults)&&!!((W=U[0])==null?0:(w=W.itemSectionRenderer)==null?0:(d=w.contents[0])==null?0:d.backgroundPromoRenderer)},
isLiveStreamOffline_:function(H){return H?H.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(H,U,A){var M=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",U),W=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];W=_.S("web_no_skip_video_on_verification_checks")?(H==null?void 0:H.status)&&W.includes(H.status):H&&H.status==="AGE_CHECK_REQUIRED";var w=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",H);w==void 0&&(w=!0);!A||this.isVideoPlayable_(H,this.getPlayerOverlays_(U))||
M||W||!w||_.lx().resolve(_.FX).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();IN5()},
onPlayerFeedbackStartRequest_:function(H){_.yr(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:H}])},
onPlayerFeedbackArticleRequest_:function(H){_.yr(this.hostElement,"yt-help-dialog-requested",[H])},
onPlayerYpcContentRequest_:function(){var H,U,A,M,W,w,d,O,f=((H=this.data)==null?NaN:(U=H.contents)==null?NaN:(A=U.twoColumnWatchNextResults)==null?NaN:(M=A.secondaryResults)==null?NaN:(W=M.secondaryResults)==null?NaN:(w=W.offerModule)==null?NaN:(d=w.tvfilmOfferModuleRenderer)==null?NaN:(O=d.actionButtons)==null?NaN:O.length)-1;H=[".offerButton.buttonRenderer.",".actionButtons."+(f>=0?f:0)+".buttonRenderer."];U=_.b(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(A=U.next();!A.done;A=U.next())for(A=A.value,M=_.b(H),W=M.next();!W.done;W=M.next())if(W="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+A+W.value,W=this.get(W+"navigationEndpoint",this.data)||this.get(W+"serviceEndpoint",this.data)||this.get(W+"command",this.data)){_.l0(W,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(H){_.cg(this.hostElement,"yt-autonav-pause-player",H)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(H){H()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(H){switch(H){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(H){switch(H){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.cg(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(H)},
setPlayerState:function(H){_.Lq().dispatch(_.nTz(H))},
onPlayerSubscribe_:function(H){_.yr(this.hostElement,"yt-player-subscribe",[H])},
onPlayerUnsubscribe_:function(H){_.yr(this.hostElement,"yt-player-unsubscribe",[H])},
onPlayerAdYtShowToast_:function(H){_.yr(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:H.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(H){if(H)return H},
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(H){return!_.tN("web_watch_move_summary_to_sd")&&!!H},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.S("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var H,U,A,M;this.watchNextSecondaryResults=(H=this.data)==null?void 0:(U=H.contents)==null?void 0:(A=U.twoColumnWatchNextResults)==null?void 0:(M=A.secondaryResults)==null?void 0:M.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var H,U=(H=this.data)==null?void 0:H.engagementPanels;if(U==null?0:U.length){H=null;U=_.b(U);for(var A=U.next();!A.done;A=U.next()){A=A.value;var M=void 0;if(((M=A.engagementPanelSectionListRenderer)==null?void 0:M.targetId)==="engagement-panel-structured-description"){H=A;break}}var W,w,d;H=(W=H)==null?void 0:(w=W.engagementPanelSectionListRenderer)==null?void 0:(d=w.content)==null?void 0:d.structuredDescriptionContentRenderer;if(H==null?0:H.items){W=
[];w=_.b(H.items);for(d=w.next();!d.done;d=w.next()){d=d.value;if(!_.S("sd_horizontal_list_show_nav_killswitch")){var O=M=A=U=H=void 0,f=void 0,J=(H=d.horizontalCardListRenderer)==null?void 0:(U=H.header)==null?void 0:(A=U.richListHeaderRenderer)==null?void 0:(M=A.navigationButton)==null?void 0:(O=M.buttonRenderer)==null?void 0:(f=O.command)==null?void 0:f.commandExecutorCommand;J&&J.commands&&(J.commands=J.commands.filter(function(F){return!_.p(F,A6p)}))}(!d.expandableVideoDescriptionBodyRenderer&&
!d.videoDescriptionHeaderRenderer||_.S("web_delhi_colorful_sd"))&&W.push(d)}return{items:W}}}},
constructWarning_:function(H){return{text:_.Nh(H),type:"WARNING"}},
isPlaShelfEnabled_:function(H){if((this.get("adPlacements",H)||[]).length)return!0;H=this.get("playerAds",H)||[];return!(!H.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",H[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var H=this;_.cg(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();var U=this.getScrollTop()>0;this.gestures_&&(U?this.gestures_.detach():this.gestures_.attach());U!==this.showFullerscreenEdu_&&_.S("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=U,_.py(this).getPlayerPromise().then(function(A){A.updateFullerscreenEduButtonVisibility(H.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.cg(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var H=this;this.commentsReady=!1;_.Fl.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.bM(_.Fl,function(){H.setComments_()},1E3)},
setComments_:function(){if(!_.S("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.ba("cmi");_.Fl.cancelJob(this.setCommentsJobId_);var H=this.getPageContents(this.data);if(H&&H.length){H=_.b(H);for(var U=H.next();!U.done;U=H.next())if(U=U.value,this.get("itemSectionRenderer.sectionIdentifier",U)==="comment-item-section"){this.comments=U.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.cg(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.S("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.ba("cmc")},
doRemoveComments_:function(){this.comments={};_.S("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Fl.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Fl.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(H,U){var A=_.p(U.endpoint,_.sH);A&&(!(U=this.get("data.currentVideoEndpoint.watchEndpoint"))||A.videoId!==U.videoId||A.playlistId&&A.playlistId!==U.playlistId||A.index!==void 0&&A.index!==U.index||typeof A.startTimeSeconds!=="number"||(H.stopPropagation(),this.setScrollTop(0),_.py(this).getPlayerPromise().then(function(M){var W=A.startTimeSeconds;M.seekTo(W);M.wakeUpControls();W<M.getDuration()&&M.playVideo()})))},
updatePlayerStartTime_:function(){var H=pa5();"t"in H&&(H=kk$(H.t),this.player.seekTo(H,!0))},
updateTitleFromWatchNext:function(H){H=this.getPageContents(H);var U,A;(H=_.Sp(H==null?void 0:(U=H[0])==null?void 0:(A=U.videoPrimaryInfoRenderer)==null?void 0:A.title))&&_.cg(this.hostElement,"yt-update-title",H)},
updateTitle_:function(H){H=this.get("videoDetails.title",H)||"";_.cg(this.hostElement,"yt-update-title",H)},
syncWithRemoteVideo_:function(H,U,A){if(this.active&&this.player){var M=this.player.getVideoData();if(M.video_id===A&&(A=M.list,_.S("polymer_enable_mdx_queue")&&A&&A.startsWith("RQ")&&(A=void 0),M.video_id!==H||A!=U)){var W;_.S("kevlar_player_watch_endpoint_navigation")?W=_.hz0(iEY(H,U)):W=this.buildWatchEndpoint_(H,U);_.cg(this.hostElement,"yt-navigate",{endpoint:W,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(H,U,A){return _.mb(H,U,A)},
initDclkstatus_:function(){EU5()},
attachWatchPageSkeleton_:function(){var H=document.querySelector("#watch-page-skeleton");if(H){var U=H.querySelector("#primary-info"),A=H.querySelector("#secondary-info"),M=H.querySelector("#related");U&&_.c4(this.hostElement).querySelector("#info-skeleton").appendChild(U);A&&_.c4(this.hostElement).querySelector("#meta-skeleton").appendChild(A);M&&(_.c4(this.hostElement).querySelector("#related-skeleton").appendChild(M),this.watchNextSkeletonEl_=M);_.U5(H)}},
handlePlayerUpdated_:function(){_.py(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(H,U){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof U!=="undefined"){var A=this.watchNextSkeletonEl_.children,M=H&&H.indexSplices.length?H.indexSplices[0].index:0;H=Math.min(this.watchNextShownItems.length,A.length);U||(M=0,H=A.length);if(!this.ghostCardsEnabled)for(U=M;U<H;U++)A[U].classList.add("hidden")}},
onPlayerFullscreenChange_:function(H){_.S("external_fullscreen")||_.yr(this.hostElement,"yt-player-fullscreen",[H.fullscreen])},
onFullscreenChange_:function(H){this.fullscreen=H;this.gestures_&&this.gestures_.update(this.fullscreen);var U=_.py(this);U.getPlayerPromise().then(function(A){A.setFauxFullscreen(!!_.L1())});
this.updateFullBleedElementLocations();H&&(U.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(H,U){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!U},
computeIsDonationShelfCollapsed_:function(H){return H},
computeShouldShowMerchShelf:function(H,U){return U&&!!H},
computeResponseHasComments:function(H){var U,A,M,W,w;return!!(H==null?0:(U=H.contents)==null?0:(A=U.twoColumnWatchNextResults)==null?0:(M=A.results)==null?0:(W=M.results)==null?0:(w=W.contents)==null?0:w.some(function(d){var O;return(d==null?void 0:(O=d.itemSectionRenderer)==null?void 0:O.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(H,U,A,M){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&M?!1:!!H&&!!Object.keys(H).length&&!U},
identity:_.Ch,onWindowResized_:function(H){this.windowSize_=H;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())},
onPlayerPresentingVideoDataChange_:function(H){var U=this;H&&H.type!=="dataloaded"&&H.type!=="dataupdated"||_.py(this).getPlayerPromise().then(function(A){var M=A.getPlayerState();M!==5&&M!==0&&(A=1/A.getVideoAspectRatio(),U.videoHeightToWidthRatio_!==A&&(U.videoHeightToWidthRatio_=A))})},
schedulePlayerSizeUpdate_:function(H){var U=this,A=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip"),M=function(){if(U.watchMetadata){var W,w;(w=(W=U.watchMetadata).resize)==null||w.call(W)}_.py(U).getPlayerPromise().then(function(d){if(_.tN("kevlar_set_internal_player_size")){if(!A||!U.isMiniplayerActive()){var O=U.calculateCurrentPlayerSize_();d.setInternalSize(O.width,O.height)}}else d.setSize(NaN,NaN);_.S("kevlar_watch_while")&&U.updateWatchWhileScrollThreshold_()})};
H?M():_.qT(_.Fl,M)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(H){this.set("data.survey",H.detail)},
onYtShowSurveyCommand_:function(H){this.set("data.survey",_.p(H,BUh).survey)},
onDownloadedVideoDeleted:function(H){var U=this,A,M;return _.u(function(W){if(W.nextAddress==1){if(!U.active||(A=U.playerData)==null||!A.offlineState||U.videoId!==H)return W.return();(M=U.player)==null||M.stopVideo();_.vc().navigatingAwayFromWatchDeletedVideo=!0;_.l0(_.j70,U.hostElement);return W.yield(_.vc().navigationFinishPromise,2)}_.vc().navigatingAwayFromWatchDeletedVideo=!1;_.DO(W)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var H;this.theater?H=_.b$(.5625*this.windowSize_.width,480,this.windowSize_.height-185):H=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==H&&(this.watchWhileScrollThreshold_=H)}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var H=_.c4(this.hostElement).querySelector("#secondary-inner");if(H){var U=_.c4(this.hostElement).querySelector("#below"),A=_.c4(this.hostElement).querySelector("#secondary"),M=_.c4(this.hostElement).querySelector("#comments");M&&A&&U&&(this.defaultTwoColumnLayout?(H.appendChild(M),A.appendChild(H)):(U.appendChild(M),x1(U,H)))}}},
isTwoColumnsChanged_:function(H,U){if(H!==!0||U!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(H=_.c4(this.hostElement).querySelector("#secondary-inner"))){U=_.c4(this.hostElement).querySelector("#below");var A=_.c4(this.hostElement).querySelector("#secondary"),M=_.c4(this.hostElement).querySelector("#comments");M&&A&&U&&(this.isTwoColumns_?(H.appendChild(M),A.appendChild(H)):(U.appendChild(M),x1(U,H)))}}else{H=!_.S("web_watch_enable_fs_squeezeback_panels");
U=_.c4(this.hostElement).querySelector("#panels");var W=_.c4(this.hostElement).querySelector("#alerts"),w=_.c4(this.hostElement).querySelector("#shopping-timely-shelf");A=_.c4(this.hostElement).querySelector("#playlist");M=_.c4(this.hostElement).querySelector("#related");var d=_.c4(this.hostElement).querySelector("#donation-shelf"),O=_.c4(this.hostElement).querySelector("#comments"),f=_.c4(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(W=_.c4(this.hostElement).querySelector("#secondary-inner"),
H&&(W.appendChild(U),W.appendChild(A),this.aiCompanionEnabled&&f&&W.appendChild(f)),W.appendChild(d),W.appendChild(M)):(H&&(_.ft(U,W),_.ft(A,W),this.aiCompanionEnabled&&f&&_.ft(f,W),_.ft(w,A)),_.ft(d,W),O&&_.ft(M,O));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.S("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.S("web_watch_enable_fs_squeezeback_panels")&&_.S("web_watch_theater_chat")){var H=_.c4(this.hostElement).querySelector("#chat-container"),U=this.theater&&!this.fullscreen||_.S("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&U?(U=_.c4(this.hostElement).querySelector("#columns"),(H==null?void 0:H.parentElement)!==U&&U.append(H),this.fixedPanels=!0):(this.fixedPanels=
!1,U=_.c4(this.hostElement).querySelector("#playlist"),H&&U?_.JJ(H,U):_.Na(new _.bD("Missing element when updating chat location",{"chatContainer defined":!!H,"playlist defined":!!U})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(H,U){return _.S("sw_metadata_vis_toggle_ks")?!0:!!H||!!U},
computeForceDarkPanelTheme:function(H){return _.S("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&H:!1},
safeUpdateStyles:function(H){try{_.Dt(this.hostElement,H)}catch(U){_.Na(U)}},
videoHeightToWidthRatioChanged_:function(H,U){U&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(H){this.videoHeightToWidthRatio_=1/H},
computeIsVerticalVideo_:function(H){return H>=1},
computeIsFourThreeToSixteenNineVideo_:function(H){return H<=.7501&&H>=.5624},
computeIsExtraWideVideo_:function(H){return H<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.py(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.py(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){aw5(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(H){var U=_.H4(H)||0;_.V3(H,U+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var H=_.H4("yt-fullerscreen-edu-button-click-count")||0,U=_.H4("yt-fullerscreen-edu-button-shown-count")||0,A=_.hr("external_fullscreen_button_shown_threshold"),M=H>=_.hr("external_fullscreen_button_click_threshold")||U>=A;_.py(this).getPlayerPromise().then(function(W){W.updateFullerscreenEduButtonSubtleModeState(M)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(H,U){return U},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.lx().resolve(_.FX).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var H=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Fl.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Fl.addLowPriorityJob(function(){H.fullHeightPanelPositionUpdateJobId=0;var U=_.c4(H.hostElement).querySelector("#secondary"),A=_.c4(H.hostElement).querySelector("#fixed-secondary");U=U.getBoundingClientRect();var M=U.width;H.swatcherooSqueezeback&&
(M+=Al);if(H.swatcherooSqueezeback){var W=_.c4(H.hostElement).querySelector("#squeezeback-constraining-container");W.style.width=M+"px";W.style.flex="0 0 "+M+"px"}A.style.width=M+"px";A.style.left=U.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var H=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Fl.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Fl.addLowPriorityJob(function(){H.panelMaxHeightUpdateJob_=0;var U;!H.isTwoColumns_||H.theater||H.fullscreen?U=460:U=H.calculateNormalPlayerSize_().height;var A=U+"px";_.S("live_chat_taller_height")&&!H.theater&&(A="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.S("live_chat_medium_height")&&!H.theater&&(A="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.S("live_chat_scaled_height")&&!H.theater&&(A="calc(100vh - var(--ytd-toolbar-height) - 238px)");H.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":U+"px","--ytd-watch-flexy-chat-max-height":A,"--ytd-watch-flexy-structured-description-max-height":U+"px","--ytd-watch-flexy-comments-panel-max-height":U+"px","--ytd-comments-engagement-panel-content-height":U+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(H){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",H)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.eb(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(H){var U=_.c4(this.hostElement).querySelector("#engagement-panel-scrim");H?U.addEventListener("tap",_.lN(this,this.onEngagementPanelScrimClick_)):U.removeEventListener("tap",_.lN(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(H){if(this.hostElement.contains(H)&&!this.scrollToAnimation_.isAnimating()){var U=H.offsetTop-24;H=H.offsetTop+H.offsetHeight+24;var A=this.getPageScrollingElement(),M=this.getScrollTop(),W=M+A.clientHeight-56;if(U<M+56)U-=56;else if(H>W)U=H-A.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,U),500)}},
onYtSignalActionScrollToComments:function(){var H=this.hostElement.querySelector("#comments");if(H&&!this.scrollToAnimation_.isAnimating()){H=H.offsetTop-56-24;if(_.S("kevlar_comment_teaser_scroll_to_midpoint")&&(H-=_.VT().height/3,H<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,H),500)}},
onYtEngagementPanelVisibleChanged:function(H,U,A){if(this.active&&this.trackEngagementPanelVisibility&&!Vam.includes(A)){if(U==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.Bg(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var M=_.lx().resolve(_.Mx);this.visiblePanelIdentifiers_.forEach(function(W){W!==A&&M.hidePanel({identifier:W})})}this.visiblePanelIdentifiers_.add(A)}U!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&U!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(A);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(H){return H?"":"watch-active-metadata"},
computeNewMetadataClass:function(H){return H?"watch-active-metadata":""},
computeIsSingleColumn:function(H,U){return U&&!H},
computeFullBleedPlayer:function(H,U,A){return _.S("external_fullscreen")&&H||U||A},
computeDefaultLayout:function(H){return!H},
computeDefaultTwoColumnLayout:function(H,U){return!H&&U},
updatePanelsLocation:function(){if(_.S("web_watch_enable_fs_squeezeback_panels")){var H=_.c4(this.hostElement).querySelector("#below"),U=_.c4(this.hostElement).querySelector("#panels"),A=_.c4(this.hostElement).querySelector("#playlist"),M=_.c4(this.hostElement).querySelector("#chat-container"),W=_.c4(this.hostElement).querySelector("#panels-full-bleed-container"),w=_.c4(this.hostElement).querySelector("#secondary-inner"),d=_.c4(this.hostElement).querySelector("#shopping-timely-shelf"),O=_.c4(this.hostElement).querySelector("#persistent-panel-container");
if(H&&U&&A&&M&&W&&w&&d&&(this.aiCompanionEnabled?O:1)){var f=this.fullscreen||this.theater&&this.iMaxTheaterMode,J=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;J?(J=_.c4(this.hostElement).querySelector("#columns"),(M==null?void 0:M.parentElement)!==J&&J.append(M),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):f?W.appendChild(M):this.isTwoColumns_?x1(w,M):x1(H,M);f?(W.appendChild(U),W.appendChild(A),
this.aiCompanionEnabled&&O&&W.appendChild(O)):(this.isTwoColumns_?(x1(w,U),x1(w,A),this.aiCompanionEnabled&&O&&x1(w,O)):(x1(H,U),x1(H,A),this.aiCompanionEnabled&&O&&x1(H,O)),x1(H,d))}}},
swatcherooUpdatePanelsLocation:function(H,U,A,M,W,w){if(this.is==="ytd-watch-grid"){U=H&&!U;this.swatcherooSplitScroll&&(U?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));A=_.c4(this.hostElement).querySelector("#panels");var d=_.c4(this.hostElement).querySelector("#playlist"),O=_.c4(this.hostElement).querySelector("#persistent-panel-container"),
f=_.c4(this.hostElement).querySelector("#fixed-secondary"),J=_.c4(this.hostElement).querySelector("#fixed-below"),F=_.c4(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),P=_.c4(this.hostElement).querySelector("#chat-container");w&&(H?(f.appendChild(A),this.aiCompanionEnabled&&O&&f.appendChild(O)):(J.appendChild(A),this.aiCompanionEnabled&&O&&J.appendChild(O)));W?H?f.appendChild(P):J.appendChild(P):_.JJ(P,F);M?H?f.appendChild(d):J.appendChild(d):_.JJ(d,
F);this.swatcherooSplitScroll&&(H=_.c4(this.hostElement).querySelector("#secondary"),M=_.c4(this.hostElement).querySelector("#columns"),W=_.c4(this.hostElement).querySelector("#fixed-columns-secondary"),U?W.appendChild(H):M.appendChild(H))}},
computeMetadataSkinnyMode:function(H,U,A){return this.is!=="ytd-watch-grid"?!1:H?A:U},
computeWatchWhilePanelsActive:function(H,U){return H||U},
computeNoBorderOnChat:function(H){return _.S("web_watch_theater_chat_no_border")&&H},
computeLiveChatPresentAndExpanded:function(H,U){return H&&!U},
computePanelExpanded:function(H,U,A){return H||U||A},
computeSqueezeback:function(H,U,A,M){if(_.S("web_watch_enable_fs_squeezeback_panels")){var W=this.iMaxTheaterMode&&this.theater,w=this.theater&&!this.iMaxTheaterMode;return(H||U||A)&&(W||M)||U&&w}},
computeSwatcherooSqueezeback:function(H,U,A){return this.is!=="ytd-watch-grid"||_.S("ww_squeezeback_killswitch")?!1:H&&U&&A},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(H){_.py(this).getPlayerPromise().then(function(U){var A;(A=U.changeMarkerVisibility)==null||A.call(U,_.p(H,Re).isVisible||!1,_.p(H,Re).entityKeys||[],_.p(H,Re).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(H){this.liveChatCollapsed=H.detail;_.Lq().dispatch(GIY(H.detail));if(!this.liveChatCollapsed&&this.squeezeback){var U=_.lx().resolve(_.Mx);this.visiblePanelIdentifiers_.forEach(function(A){U.hidePanel({identifier:A})})}},
onSetPlaylistCollapsed:function(H){_.S("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!H)},
provideRenderingData:function(H,U){switch(H){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=U;break;case "PRIMARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=U);this.videoPrimaryInfoRendererValue=U==null?void 0:U.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=U);this.videoSecondaryInfoRendererValue=U==null?void 0:U.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
U;break;case "CLARIFICATION":this.clarifyBoxValue=U;break;case "LIVE_CHAT":this.conversationBar=U;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=U;break;case "PLAYLIST":this.externalPlaylistData_=U!=null?U:{};break;case "MERCH_SHELF":this.merchShelfValue=U==null?void 0:U.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=U;break;case "TICKET_SHELF":this.ticket=U;break;case "OFFER_MODULE":this.offerModule=U;break;case "LIMITED_STATE":this.limitedStateValue=
U;break;case "DONATION_SHELF":this.donation=U;break;case "ALERTS":this.alertsValue=U;break;case "COMMENTS":this.comments=U;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=U;break;case "ENGAGEMENT_PANELS":this.engagementPanels=U;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=U;break;case "RICH_GRID_RENDERER":this.richGridRendererData=U;break;case "EXPANDABLE_METADATA":this.expandableMetadata=U;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
U;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=U;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=U}},
toggleCinematicsActive:function(H){this.cinematicsActive=H},
isMiniplayerActive:function(){return _.lx().resolve(_.ZB).isMiniplayerActive()}}];var gMm=function(H,U){var A;return((A=H.prefixMapping)==null?0:A[U])?H.prefixMapping[U]:H.SHARED_RENDERERS_.hasOwnProperty(U)?"yt":H.prefix},vf={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}}};vf.DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,addSpacing:_.S("kevlar_add_spacing_to_sheets")},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
vf.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"};
vf.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"};vf.LOCKED_OVERLAY_DIALOG={component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,scrollAction:"lock",withBackdrop:!0},preventAutonav:!0};
vf.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.S("kevlar_mealbar_above_player"),modern:_.gD("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX",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"}};
vf.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};vf.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};vf.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
vf.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)"}};
vf.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};
vf.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};
vf.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};
vf.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0,addSpacing:_.S("kevlar_add_spacing_to_sheets")},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
vf.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"}};vf.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};vf.TOAST={component:null,properties:{}};var ahf=new function(H,U,A){this.supportedPopups=H;this.navigationEndpointPopupMap=U;this.popupTypeMap=A;this.supportedPopups=H;this.navigationEndpointPopupMap=U;this.popupTypeMap=A}({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:_.S("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"}),x3y=new function(){this.prefix="ytd";this.prefixMapping=void 0;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,unifiedSharePanelRenderer:!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$21587_popupConfig=vf;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 zGj=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.bQ.getInstance()},TE=function(H,U){var A=H.pageNameToElement.get(U);
if(!A){switch(U){case "watch":var M=_.S("web_watch_force_learning_journey_for_testing")?_.Rf("ytd-watch-learning-journey"):_.S("kevlar_watch_fixie")?_.Rf("ytd-watch-fixie"):_.S("kevlar_watch_grid")?_.Rf("ytd-watch-grid"):_.Rf("ytd-watch-flexy");break;case "learning_journey_watch":M=_.Rf("ytd-watch-learning-journey");break;case "shorts":M=_.Rf("ytd-shorts");break;case "search":M=_.Rf("ytd-search");break;case "channel":M=_.Rf("ytd-browse");M.pageSubtype="channels";break;case "trending":M=_.Rf("ytd-browse");
M.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":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 "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":M=
_.Rf("ytd-browse");M.pageSubtype=U;break;case "browse":M=_.Rf("ytd-browse");break;default:_.Na(new _.bD("Error getting page element for type",U))}A=M;H.pageNameToElement.set(U,A)}return A};
zGj.prototype.preparePage=function(H,U,A){A&&(H=_.lE(A)||H);if(H!=="watch"&&H!=="learning_journey_watch"){var M=this.elementPoolPopulator,W=H;W!=M.targetPage_&&M.pendingPages_.indexOf(W)>-1&&(M.targetPage_&&(M.pendingPages_.unshift(M.targetPage_),M.abort()),Tam(M,W),_.ZLm(M,W))}if((M=TE(this,H))||!_.p(A,_.gu)){M.isAttached||M===U||(M.hidden=!0);if(!M.data&&(H!=="watch"&&H!=="learning_journey_watch"||!_.S("swatcheroo_page_pool_dont_provide_filler_data"))){var w;if(H=(w=_.gD("FILLER_DATA",{})[H])==
null?void 0:w.response)M.data=H}return M}};var Cg8=function(H){this.JSC$33477_clientRoot=H;this.playlistHandlerActionMap={"yt-add-to-playlist-command":I9f,"yt-end-playlist-command":Qif,"yt-recover-playlist-command":Hxh,"yt-refresh-playlist-command":Mdp,"yt-playlist-remove-videos-action":UPj};_.xX(_.a1.getInstance(),this.playlistHandlerActionMap,this.JSC$33477_clientRoot);ZBp()},tSf;var jF=function(H,U,A){this.apiKey=H;this.endpoint=U;this.confidenceThreshold=A===void 0?.5:A;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=U==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||U==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
U==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||U==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new Bnf};
_.X=jF.prototype;
_.X.start=function(H){if(this.state===0)if(this.isOnline()){H.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=H.supportsHttpHeadersOverwriteParam);H.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=H.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.ia("voice_assistant");_.dH("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=H.languageCode||"en-US";this.supportsCrossDomainXhr=H.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=H.youtubeAssistantRequest||null;this.listeningHandler=H.listeningHandler||this.listeningHandler;this.audioDetectedHandler=H.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=H.stopHandler||this.stopHandler;this.completeHandler=H.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=H.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=H.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
H.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=H.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=H.accessToken;this.additionalHeaders=H.additionalHeaders||{};var U;this.prefetchResponseTimeoutMs=(U=H.prefetchResponseTimeoutMs)!=null?U:this.prefetchResponseTimeoutMs;cdm(this);this.startAudio();ydy(this)}else this.errorHandler("OFFLINE")};
_.X.stop=function(H){var U=H===void 0?{}:H;H=U.logCancel===void 0?!0:U.logCancel;var A=U.logMicClosed===void 0?!0:U.logMicClosed;var M=U.handleError===void 0?!0:U.handleError;U=U.handleStop===void 0?!0:U.handleStop;this.state!==0&&(H&&I7("voz_cx"),QK(this,{logMicClosed:A,handleStop:U}),M&&this.errorHandler("ABORTED"))};
_.X.getState=function(){return this.state};
_.X.isSupported=function(){return!0};
_.X.stopAudio=function(H){(H===void 0||H)&&I7("voz_mf")};
_.X.startAudio=function(){I7("voz_vp");return _.DH(null)};
var B2p=function(H,U){H.channelOpen&&(H.state!==2&&(H.state=2,I7("voz_ss"),H.listeningHandler()),U=new Uint8Array(U),U='{ "audioIn": "'+_.I_(U)+'" }',H.channel.send(U))},QK=function(H,U){var A=U===void 0?{}:U;
U=A.logMicClosed===void 0?!0:A.logMicClosed;A=A.handleStop===void 0?!0:A.handleStop;H.vozEndOfDataTimeout>-1&&(clearTimeout(H.vozEndOfDataTimeout),H.vozEndOfDataTimeout=-1);rdh(H);H.stopAudio(U);H.channel&&(H.channelOpen=!1,H.manuallyClosedChannel=!0,H.channel.close(),H.channel=void 0);H.transcribedSpeechResults=[];H.state=0;A&&H.stopHandler()},cdm=function(H){var U={httpHeadersOverwriteParam:H.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},H.additionalHeaders,H.accessToken&&H.isUsingVoz?{Authorization:"Bearer "+H.accessToken}:{"x-goog-api-key":H.apiKey}),supportsCrossDomainXhr:H.supportsCrossDomainXhr};H.channel=new FR(H.endpoint,U);H.channel.open();_.Rc(H.channel,"w",function(){var A=H.channel,M=A.send,W=H.isUsingVoz?"PLACEHOLDER":"example";W={config:{dialogStateIn:{languageCode:H.languageCode},deviceConfig:{deviceId:W,deviceModelId:W},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!H.isUsingVoz)W.config.requestType=4;else if(H.isUsingVoz&&H.youtubeAssistantRequest){var w=JSON.stringify(H.youtubeAssistantRequest);W.config.internalIn={youtubeAssistantS3InputJson:w}}M.call(A,W);H.channelOpen=!0;H.manuallyClosedChannel=!1});
_.Rc(H.channel,"x",function(){H.manuallyClosedChannel||(H.channelOpen=!1,H.channel=void 0,QK(H))});
_.Rc(H.channel,"z",function(A){if(A.data){rdh(H);for(var M=0;M<A.data.length;M++){var W=H,w=A.data[M],d=w.speechResults;if(d)a:{var O=[];w=[];var f=!1;d=_.b(d);for(var J=d.next();!J.done;J=d.next()){J=J.value;if(J.noSpeech){QK(W);W.errorHandler("NO_SPEECH");break a}J.transcript!==void 0&&J.stability!==void 0&&(J.stability<W.confidenceThreshold&&(f=!0),f?w.push(J.transcript):O.push(J.transcript))}if(O.length!==0||w.length!==0)O=O.join(" "),w=w.join(" "),W.receivedEndOfUtterance&&!W.isUsingVoz?W.isUsingVoz||
W.completeHandler([O,w]):(f=W,d=O,J=w,I7("voz_sf"),f.transcriptionUpdateHandler(d,J),f.transcribedSpeechResults=[d,J]),W.receivedEndOfUtterance&&(I7("voz_eou"),W.transcriptionCompleteHandler([O,w]),W.isUsingVoz&&(W.prefetchResponseTimeoutMs===0?QK(W,{logMicClosed:!1,handleStop:!0}):W.prefetchResponseTimeoutMs>0&&eGm(W)))}else W.isUsingVoz&&(w==null?0:w.internalOut)?(w=JSON.parse(w.internalOut.youtubeAssistantS3OutputJson),w.userHasOptedInToVaa||w.vaaConsent?W.vaaConsentUpdateHandler(!!w.userHasOptedInToVaa,
!!w.vaaConsent):(D3k(W),w&&(O=W.transcribedSpeechResults,I7("voz_rqf"),W.completeHandler(O,w)))):w.eventType==="END_OF_UTTERANCE"?W.receivedEndOfUtterance=!0:(I7("voz_err"),W.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Na(Error("Wl")))}}});
_.Rc(H.channel,"y",function(A){QK(H);switch(A.status){case 1:A="WEBCHANNEL_NETWORK_ERROR";break;case 2:A="WEBCHANNEL_SERVER_ERROR";break;default:A="WEBCHANNEL_UNKNOWN_ERROR"}H.errorHandler(A);H.logError(Error(A))})};
jF.prototype.logError=function(H){_.sD(H)};
jF.prototype.isOnline=function(){return!0};
var eGm=function(H){D3k(H);H.prefetchResponseSetTimeoutId=setTimeout(function(){QK(H,{logMicClosed:!1,handleStop:!0})},H.prefetchResponseTimeoutMs)},D3k=function(H){H.prefetchResponseSetTimeoutId>-1&&(clearTimeout(H.prefetchResponseSetTimeoutId),H.prefetchResponseSetTimeoutId=-1)},ydy=function(H){rdh(H);
H.noResponseReceivedTimeout=window.setTimeout(function(){QK(H);H.errorHandler("NO_SPEECH")},11E3)},rdh=function(H){H.noResponseReceivedTimeout>-1&&(window.clearTimeout(H.noResponseReceivedTimeout),H.noResponseReceivedTimeout=-1)},I7=function(H){_.ba(H,void 0,"voice_assistant")};var VK=function(){jF.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.R(VK,jF);VK.prototype.isSupported=function(){return Wch()};
VK.prototype.startAudio=function(){var H=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.H$(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(M){$3m(H,M)};
this.processor.connect(this.audioContext.destination);var U=function(M){H.stream=M;if(!H.audioContext)return _.DH(null);M=H.audioContext.createMediaStreamSource(M);H.processor&&M.connect(H.processor);return _.DH(null)},A={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?U(this.stream):(A=navigator.mediaDevices.getUserMedia(A))?A.then(U).catch(function(M){QK(H);M.name&&M.name==="NotAllowedError"?H.errorHandler("NO_MICROPHONE_PERMISSION"):(H.errorHandler("AUDIO_ERROR"),H.logError(M));return _.H$(null)}):(QK(this),this.errorHandler("AUDIO_ERROR"),_.Na(Error("Xl")));
return jF.prototype.startAudio.call(this)};
VK.prototype.stopAudio=function(H){H=H===void 0?!0:H;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(U){U.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;jF.prototype.stopAudio.call(this,H)};
VK.prototype.isOnline=function(){return navigator.onLine};
var $3m=function(H,U){if(H.audioContext)if(window.OfflineAudioContext){var A=H.audioContext.sampleRate,M=U.inputBuffer.getChannelData(0);U=new window.OfflineAudioContext(1,M.length,16E3);for(var W=U.createBuffer(1,M.length,A),w=W.getChannelData(0),d=0,O=0;O<M.length;O++)w[O]=M[O],d+=w[O]*w[O];!H.audioDetected&&Math.sqrt(d/M.length)>.01&&(H.audioDetected=!0,H.audioDetectedHandler());M=U.createBufferSource();M.buffer=W;M.connect(U.destination);M.start(0);U.oncomplete=function(f){f=f.renderedBuffer.getChannelData(0);
for(var J=Math.floor(16384E3/A),F=new Int16Array(J),P=0;P<J;++P)F[P]=Math.max(-1,Math.min(1,f[P]))*32767;B2p(H,F.buffer)};
U.startRendering()}else lhh(H,U)},lhh=function(H,U){var A=H.audioContext.sampleRate,M=U.inputBuffer.getChannelData(0),W=Math.floor((A+8E3)/16E3);
A=M.length/W;U=new Float32Array(A);for(var w=0;w<A;++w)U[w]=M[w*W];M=new Int16Array(A);for(W=0;W<A;++W)M[W]=Math.max(-1,Math.min(1,U[W]))*32767;B2p(H,M.buffer)};var GL8={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var YSy=function(){this.JSC$21652_audioEnabled=!0;this.audioFeedbackHolder={}};
YSy.prototype.isPlaying=function(H){return H.currentTime>0&&!H.paused&&!H.ended&&H.readyState>2};
var qS$=function(H){for(var U=_.b(Object.values(GL8)),A=U.next();!A.done;A=U.next())A=A.value,H.audioFeedbackHolder[A]=new Audio,H.audioFeedbackHolder[A].src="/s/search/audio/"+A+".mp3",H.audioFeedbackHolder[A].load()},HG=function(H,U){if(H.JSC$21652_audioEnabled!==!1&&U in H.audioFeedbackHolder){for(var A=_.b(Object.values(H.audioFeedbackHolder)),M=A.next();!M.done;M=A.next())M=M.value,H.isPlaying(M)&&M.pause();
H.audioFeedbackHolder[U].currentTime=0;H.audioFeedbackHolder[U].play().catch(function(){})}};var hG$=function(H,U){var A=this;this.store=H;this.service=U;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){A.setState("offline");A.stop()};
this.audioPlayer=new YSy;var M;(M=this.audioPlayer)==null||qS$(M)};
_.X=hG$.prototype;_.X.getService=function(){return this.service};
_.X.isEnabled=function(){return!!this.service};
_.X.isSupported=function(){var H;return(H=this.service)==null?void 0:H.isSupported()};
_.X.start=function(){var H=this,U,A,M,W,w,d,O,f,J,F,P,n,N;return _.u(function(L){switch(L.nextAddress){case 1:H.store.dispatch(Y95("",""));if(!navigator.onLine)return H.setState("offline"),L.return();window.addEventListener("offline",H.handleOfflineEvent);H.stream=null;if(!H.permissionsSupported){L.jumpTo(2);break}_.zj(L,3);return L.yield(kLY(H),5);case 5:U=L.yieldResult;if(!U)return(A=H.audioPlayer)==null||HG(A,"failure"),L.return();H.service.stream=H.stream;H.setState("listening");_.xD(L,2);break;
case 3:_.eG(L),H.permissionsSupported=!1;case 2:M={context:_.X4F(_.YD())},M.youtubeAssistantParams={searchParams:{inlineSearchResponse:H.enableInlineSearchResponse}},W=function(m,z){H.store.dispatch(q9k("transcribing"));H.store.dispatch(Y95(m,z))},w=function(){var m;
(m=H.audioPlayer)==null||HG(m,"open");H.setState("listening")},d=function(){H.setState("transcribing")},O=function(m){H.setErrorState(m)},f=function(m,z){var c;
(c=H.audioPlayer)==null||HG(c,"success");z&&(_.S("kevlar_voice_search_inline_search")&&(H.responseProcessor=_.lx().resolve(_.P7z),H.responseProcessor&&(c=z.navigationAction,m=z.prefetchedSearchResponse,c&&m&&(c=(new _.vlh).JSC$14485_getStoreKey(c),_.oH(H.responseProcessor,m,c)))),H.JSC$21670_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",z))},J=function(){window.removeEventListener("offline",H.handleOfflineEvent)},F=_.KqK(!1),P=F.Authorization!=null,n=H.enableFirstPartyAuth||
H.enableFPAForSignedInUsers&&P?F:{"X-Goog-Visitor-Id":F["X-Goog-Visitor-Id"]},N={completeHandler:f,
errorHandler:O,listeningHandler:w,audioDetectedHandler:d,stopHandler:J,transcriptionUpdateHandler:W,youtubeAssistantRequest:M,languageCode:vM5(),additionalHeaders:n,supportsCrossDomainXhr:H.enableFirstPartyAuth||H.enableFPAForSignedInUsers&&P,supportsHttpHeadersOverwriteParam:!H.disableHttpHeadersOverwrite},H.service.start(N),_.DO(L)}})};
_.X.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.X.reset=function(){this.store.dispatch(_.zQ({type:"RESET_VOICE_SEARCH_STATE"}))};
_.X.setState=function(H){this.store.dispatch(q9k(H))};
_.X.setErrorState=function(H){switch(H){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var U;(U=this.audioPlayer)==null||HG(U,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)kLY(this);else{var A;(A=this.audioPlayer)==null||HG(A,"failure");this.setState("permission-denied")}break;case "ABORTED":var M;(M=this.audioPlayer)==null||HG(M,"no_input");break;default:var W;(W=this.audioPlayer)==
null||HG(W,"no_input");this.setState("timeout")}};
var kLY=function(H){var U,A;return _.u(function(M){switch(M.nextAddress){case 1:return M.yield(navigator.permissions.query({name:"microphone"}),2);case 2:U=M.yieldResult;if(U.state==="granted")return M.return(!0);if(U.state==="denied")return H.setState("permission-denied"),M.return(!1);H.setState("permission");A={audio:{sampleSize:16,channelCount:1},video:!1};_.zj(M,3);return M.yield(navigator.mediaDevices.getUserMedia(A),5);case 5:return H.stream=M.yieldResult,M.return(!0);case 3:return _.eG(M),
H.setState("permission-denied"),M.return(!1)}})},vM5=function(){var H=_.gD("INNERTUBE_CONTEXT_HL"),U=_.gD("INNERTUBE_CONTEXT_GL");
return H.indexOf("-")>-1?H:H+"-"+U};var T2h=function(H,U,A){hG$.call(this,U,A);this.JSC$21670_actionRouter=H;this.enableInlineSearchResponse=_.S("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.S("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.S("kevlar_voice_search_enable_fpa_signedin_users")},jqj;
_.R(T2h,hG$);
var Ih5=function(){if(!jqj){var H="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.S("kevlar_voice_search_auth_enabled")||_.S("kevlar_voice_search_use_yt_endpoint")?H="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.S("kevlar_voice_search_use_fp_endpoint")&&(H="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");jqj=
new T2h(_.a1.getInstance(),_.Lq(),new VK(_.gD("VOZ_API_KEY"),H,.5))}return jqj};var Qq5=function(H){this.JSC$21674_clientRoot=H;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!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$21674_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)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));H=_.b(this.eventListeners);for(var U=H.next();!U.done;U=H.next()){var A=
_.b(U.value);U=A.next().value;A=A.next().value;A=_.b(A);for(var M=A.next();!M.done;M=A.next()){var W=_.b(M.value);M=W.next().value;W=W.next().value;U.addEventListener(M,W)}}_.xX(_.a1.getInstance(),this.autonavPauseActionMap,this.JSC$21674_clientRoot)},VSh,Hi$=function(H){return _.S("kevlar_autonav_popup_filtering")?(H=_.Rr(H))?H.hasAttribute("prevent-autonav"):!0:!0};
_.X=Qq5.prototype;_.X.onIronOverlayOpened=function(H){Hi$(H)&&(this.autonavPauseReasons.overlayOpen=!0,US(this))};
_.X.onIronOverlayClosed=function(H){Hi$(H)&&(this.autonavPauseReasons.overlayOpen=!1,US(this))};
_.X.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;US(this)};
_.X.onYtAutonavPauseBlur=function(){var H=this;_.Fl.addJob(function(){UWh()||(H.autonavPauseReasons.inputBoxFocus=!1,US(H))},8,0)};
_.X.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;US(this)};
_.X.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;US(this)};
_.X.onYtAutonavPauseScroll=function(){var H=_.lx().resolve(_.SI);H.isOnWatch()&&(H=H.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=H.getBoundingClientRect().top<-200,US(this))};
_.X.onYtAutonavPauseUserEngagement=function(H){var U=this;if(_.S("user_engagement_enable_autoplay_pause_feature")){var A=Number(H.lowEngagementThresholdMs);isNaN(A)||A<=0||H.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?Mc("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.lx().resolve(_.qe),_.$B()<A?_.bM(_.Fl,function(){Mc("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):YBX()?(this.userEngagementCsn=_.XK(),_.bM(_.Fl,function(){Mc("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
U.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,US(this)):Mc("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.oCc(Error("Yl`"+JSON.stringify(H)))};
_.X.onYtAutonavPausePlayer=function(H){this.autonavPauseReasons.requestedByPlayer=!!H.detail;US(this)};
_.X.onYtAutonavVisibilityChanged=function(){var H=this,U,A,M;return _.u(function(W){if(W.nextAddress==1)return(U=_.Ly())?W.yield(U.getPlayerPromise(),2):W.return();A=W.yieldResult;M=A.isMuted()||A.getVolume()===0;H.autonavPauseReasons.backgroundAndMute=UWh()&&M;US(H);_.DO(W)})};
_.X.onYtAutonavPausePlayerEnded=function(){_.lx().resolve(_.qe);var H=144E5;_.S("user_engagement_enable_autoplay_pause_feature")||_.S("is_part_of_any_user_engagement_experiment")||(H=45E5);this.autonavPauseReasons.longIdle=_.$B()>H;AUf(this);US(this)};
_.X.onYtUserActivity=function(){var H=this;this.autonavPauseReasons.userEngagement&&(_.bM(_.Fl,function(){Mc("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",H.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,US(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.bM(_.Fl,function(){Mc("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",H.userEngagementCsn);_.P1()}),this.autonavPauseReasons.youthereLactExperiment=!1,US(this));
this.autonavPauseReasons.longIdle&&!_.S("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,US(this))};
var UWh=function(){var H=window.document.visibilityState;return!(!H||H==="visible")},US=function(H){for(var U=!1,A=_.b(Object.values(H.autonavPauseReasons)),M=A.next();!M.done;M=A.next())M=M.value,U=U||M;
U?_.at.getInstance().pause(H.autonavPauseReasons):(H=_.at.getInstance(),H.autonavState_==3?(H.setState(2,!1,!1),H.autonavPauseReason_=void 0):H.autonavState_==1&&(H.disabledAutonavPauseReason_=void 0))},AUf=function(H){var U=!1;
if(_.S("enable_autoplay_pause_by_lact")){_.lx().resolve(_.qe);U=_.hr("autoplay_pause_by_lact_sec")*1E3;var A=_.hr("autoplay_pause_by_lact_sampling_fraction");(U=_.$B()>=U&&Math.random()<A)&&!YBX()&&(_.bM(_.Fl,function(){Mc("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),U=!1)}U!==H.autonavPauseReasons.youthereLactExperiment&&(H.autonavPauseReasons.youthereLactExperiment=U)&&(H.userEngagementCsn=_.XK(),_.bM(_.Fl,function(){Mc("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",H.userEngagementCsn)}));
H.autonavPauseReasons.userEngagement&&_.bM(_.Fl,function(){Mc("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",H.userEngagementCsn)})};
Qq5.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(Mc("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.P1(),this.autonavPauseReasons.youthereLactExperiment=!1,US(this));this.autonavPauseReasons.userEngagement&&(Mc("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,US(this))};
Qq5.prototype.onYtEngagementPanelVisibleChanged=function(H){H.detail&&H.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=H.detail.visible,US(this))};
Qq5.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Mg5=_.fl.persistentPanelVisibleSelector,Ad=function(){var H=_.B.apply(this,arguments)||this;H.miniGuideVisible=!1;H.guideOpened=_.S("disable_initial_guide_state_fix")?!1:H.canFitPersistentGuide(H.initialBodyClientWidth);H.guideUserStateOpened=H.getInitialGuideUserStateOpened();H.isFullscreenShorts=!1;H.miniGuideWidthThreshold=_.hr("kevlar_mini_guide_width_threshold",791);H.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
H.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");H.persistentGuideBlockedPagePathRegex=new RegExp(H.persistentGuideBlockedPagesPatterns.join("|"));H.animationTransitionDuration=0;H.lateDataResolver=_.oL();H.initialGuideDataFetchFailed=!1;H.initialLoad=!0;H.guideRenderers=new Set;H.isMouseOverGuide=!1;H.sessionUserManuallyExpandedGuideState=
!1;H.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return H};
_.R(Ad,_.B);_.X=Ad.prototype;_.X.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.X.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.X.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.X.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.X.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.X.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.X.ready=function(){_.lx().addProvider({provide:_.J1,useValue:this.hostElement})};
_.X.attached=function(){var H=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.lN(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.lN(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.lN(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.lN(this,this.onYtGuideShow));_.rV(this,function(){H.animationTransitionDuration=200})};
_.X.detached=function(){document.removeEventListener("yt-navigate-finish",_.lN(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.lN(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.lN(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.lN(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.lN(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.lN(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.lN(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.X.getData=function(){return this.data};
_.X.load=function(){var H=this,U,A,M,W;return _.u(function(w){switch(w.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=H.lateDataResolver.resolve.bind(H),w.return(H.lateDataResolver.promise);if(window.ytInitialGuideData)return U=_.oL(),U.resolve(window.ytInitialGuideData),w.return(U.promise);M=!1;_.zj(w,2);return w.yield(H.fetchGuideData(),4);case 4:A=w.yieldResult;_.xD(w,3);break;case 2:W=_.eG(w),W.message==="Returned error"&&(M=
!0);case 3:if(A)return w.return(A);H.onYtGuideClose();M||(H.initialGuideDataFetchFailed=!0);return w.return(H.lateDataResolver.promise)}})};
_.X.fetchGuideData=function(){var H=this,U,A,M,W,w,d,O;return _.u(function(f){if(f.nextAddress==1)return U=_.lx(),H.guidePromise||(A=U.resolve(_.IE),H.guidePromise=_.Js(A,PRy)),f.yield(H.guidePromise,2);if(f.nextAddress!=3)return M=f.yieldResult,W=U.resolve(_.iO),f.yield(W(),3);(w=f.yieldResult)&&((d=M)==null?void 0:(O=d.responseContext)==null?void 0:O.maxAgeSeconds)!==0&&w.put("service:guide:fallback",new _.$0({innertubeResponse:M}));return f.return(M)})};
_.X.initializeGuideDataIfEmpty=function(){var H=this,U,A;return _.u(function(M){if(M.nextAddress==1){if(!H.initialGuideDataFetchFailed||H.data)return M.return();_.zj(M,2);return M.yield(H.fetchGuideData(),4)}if(M.nextAddress!=2)return(U=M.yieldResult)&&H.lateDataResolver.resolve(U),_.xD(M,0);A=_.eG(M);_.Na(A);_.DO(M)})};
_.X.initializeGuideData=function(){var H=this,U,A;return _.u(function(M){switch(M.nextAddress){case 1:return _.lX($CB(),{mainAppWeb:_.nf()}),_.zj(M,2),M.yield(H.load(),4);case 4:H.data=M.yieldResult;_.xD(M,3);break;case 2:U=_.eG(M),_.Gs($CB(),"FAILURE"),_.Na(new _.bD("Guide data not present",{errorMessage:U.message}));case 3:A=H.data&&H.data.items&&H.data.items.length>0?"SUCCESS":"FAILURE",A==="FAILURE"&&_.Na(new _.bD("Guide data.items empty")),_.Gs($CB(),A),_.DO(M)}})};
_.X.setGuideData=function(H){var U=this,A,M;return _.u(function(W){if(W.nextAddress==1)return U.disabled?W.return():U.data?(H.data=U.data,U.guideRenderers.add(H),W.return()):W.yield(U.initializeGuideData(),2);U.graftGuideToPage();A=_.xV("IS_HOMEPAGE_COLD")?"eop":void 0;_.S("disable_element_pool_populator")?U.setGuideDataAfterInit(H):(M=new _.EY(1,A),_.mg(M,U.setGuideDataAfterInit.bind(U,H)));_.DO(W)})};
_.X.setGuideDataAfterInit=function(H){H.data=this.data;H.markDirty();this.guideRenderers.add(H);_.oS(function(){_.ba("gle")});
_.rV(this,function(){_.ba("gpe")})};
_.X.graftGuideToPage=function(){if(this.data){var H=this.data&&this.data.trackingParams;H&&(H=_.IS(H),_.lY(_.k$(),H))}};
_.X.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.lN(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.X.onDrawerOpenedChanged=function(H,U){!U.value&&this.guideOpened&&(this.guideOpened=!1)};
_.X.onYtGuideToggle=function(H){var U=this.guideOpened;this.guideOpened=!U;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var A=_.TR();_.jb(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;A.save()}this.updateGuideDrawerElementState();if(this.guideElement){var M;this.guideOpened&&((M=H.detail)==null?0:M.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.lN(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.lN(this,this.onAppDrawerTransitioned))}U||this.initializeGuideDataIfEmpty()};
_.X.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.lN(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.cW(this.guideElement)};
_.X.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.lN(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(Bgh(this.guideOpened))};
_.X.guidePersistentAndVisibleChanged=function(){_.Bg(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.X.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.zQ({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.X.miniGuideVisibleChanged=function(){_.Bg(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.X.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(Bgh(this.guideOpened)),this.initialLoad=!1);_.Bg(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.X.activeEndpointChanged=function(){_.Bg(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.X.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.pageType)if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.X.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()};
_.X.cachedClientWidthChanged=function(){this.updateGuideState()};
_.X.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.X.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var H=this.canFitPersistentGuide(this.cachedClientWidth);H?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=H}this.updateGuideDrawerElementState()};
_.X.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.X.getGuideOpened=function(){return this.guideOpened};
_.X.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.X.getActiveEndpoint=function(){return this.activeEndpoint};
_.X.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.X.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&&_.cg(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.X.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.S("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.X.handleGuideMouseLeave=function(){var H=this;!this.sessionUserManuallyExpandedGuideState&&_.S("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.F8(this,"handleGuideMouseLeave",function(){H.isMouseOverGuide||!H.guideOpened||H.miniGuideVisible||(H.guideOpened=!1,H.updateGuideDrawerElementState())},100))};
_.X.computeGuidePersistentAndVisible=function(){var H=this;_.F8(this,"computeGuidePersistentAndVisible",function(){H.guidePersistentAndVisible=H.guideOpened&&H.guidePersistent;H.guideIsVisibleButNotPersistent=!(!H.guideOpened||H.guidePersistent)})};
_.X.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.X.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.X.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.X.startLoadingWatch=function(){this.closeGuide()};
_.X.startLoadingShorts=function(){_.S("web_hide_guide_on_shorts")&&this.closeGuide()};
_.X.onYtNavigateFinish=function(H,U){if(!_.Bu||U){this.activeEndpoint=U.endpoint;this.pageType=U.pageType;this.pageUrl=U.response.url;var A,M;H=(M=_.p((A=U.endpoint)==null?void 0:A.commandMetadata,_.Y2))==null?void 0:M.url;!this.pageUrl&&H&&(this.pageUrl=H);_.S("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.X.getVisibleGuideRenderer=function(){for(var H=_.b(this.guideRenderers),U=H.next();!U.done;U=H.next())if(U=U.value,this.miniGuideVisible&&U.is==="ytd-mini-guide-renderer"||this.guideOpened&&U.is==="ytd-guide-renderer")return U;return null};
_.X.markGuideRendererDirty=function(H){if(H){typeof H.markDirty==="function"&&H.markDirty();H=_.b([].concat(_.vI(_.c4(H).children)));for(var U=H.next();!U.done;U=H.next())this.markGuideRendererDirty(U.value)}};
_.X.persistentGuideEnabled=function(H,U){if(!U||H==="watch"||H==="settings"||H==="shorts"&&this.isFullscreenShorts||_.S("reels_web_disable_persistent_guide_shorts")&&H==="shorts")return!1;var A=_.DU(U)||"";return _.S("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(M){return A===M}):!this.persistentGuideBlockedPagePathRegex.test(A)};
_.X.canFitPersistentGuide=function(H){var U=_.hr("kevlar_persistent_guide_width_threshold",1312);return U===-1||_.S("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:H>this.calculateGuideThreshold(U)};
_.X.calculateGuideThreshold=function(H){return _.S("enable_ai_companion")?H+(this.persistentPanelVisible?400:0):H};
_.X.canFitMiniGuide=function(H){return this.miniGuideWidthThreshold===-1?!1:H>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.X.onResize=function(){var H=this;_.F8(this,"calculateGuideState",function(){H.onResizeDebounced()})};
_.X.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.X.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.X.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.X.getInitialGuideUserStateOpened=function(){return _.S("web_force_mini_guide_default")?!1:!_.TR().getFlag(109)};
_.D5.Object.defineProperties(Ad.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.gD("initialBodyClientWidth")||window.innerWidth}}});
Ad.prototype.onResize=Ad.prototype.onResize;Ad.prototype.observeForMiniGuideVisible=Ad.prototype.observeForMiniGuideVisible;Ad.prototype.computeGuidePersistentAndVisible=Ad.prototype.computeGuidePersistentAndVisible;Ad.prototype.persistentPanelVisibleChanged=Ad.prototype.persistentPanelVisibleChanged;Ad.prototype.cachedClientWidthChanged=Ad.prototype.cachedClientWidthChanged;Ad.prototype.resetGuide=Ad.prototype.resetGuide;Ad.prototype.activeEndpointChanged=Ad.prototype.activeEndpointChanged;
Ad.prototype.guideOpenedChanged=Ad.prototype.guideOpenedChanged;Ad.prototype.miniGuideVisibleChanged=Ad.prototype.miniGuideVisibleChanged;Ad.prototype.guideIsVisibleButNotPersistentChanged=Ad.prototype.guideIsVisibleButNotPersistentChanged;Ad.prototype.guidePersistentAndVisibleChanged=Ad.prototype.guidePersistentAndVisibleChanged;Ad.prototype.onGuideElementChanged=Ad.prototype.onGuideElementChanged;Ad.prototype.onGuidePersistentChanged=Ad.prototype.onGuidePersistentChanged;
Ad.prototype.onRenderGuideChanged=Ad.prototype.onRenderGuideChanged;Ad.prototype.onActiveEndpointChanged=Ad.prototype.onActiveEndpointChanged;Ad.prototype.onMiniGuideVisibleChanged=Ad.prototype.onMiniGuideVisibleChanged;Ad.prototype.onGuideIsVisibleButNotPersistentChanged=Ad.prototype.onGuideIsVisibleButNotPersistentChanged;Ad.prototype.onGuidePersistendAndVisibleChanged=Ad.prototype.onGuidePersistendAndVisibleChanged;
_.G([_.g(_.Qo),_.q("design:type",Object)],Ad.prototype,"ironResizableBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Ad.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Ad.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Ad.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ad.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Boolean)],Ad.prototype,"disabled",void 0);_.G([_.y(),_.q("design:type",Boolean)],Ad.prototype,"guidePersistentAndVisible",void 0);_.G([_.Ya("guidePersistentAndVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"onGuidePersistendAndVisibleChanged",null);_.G([_.y(),_.q("design:type",Boolean)],Ad.prototype,"guideIsVisibleButNotPersistent",void 0);
_.G([_.Ya("guideIsVisibleButNotPersistent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.G([_.y(),_.q("design:type",Object)],Ad.prototype,"miniGuideVisible",void 0);_.G([_.Ya("miniGuideVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"onMiniGuideVisibleChanged",null);_.G([_.y(),_.q("design:type",Boolean)],Ad.prototype,"forceMiniGuideClose",void 0);
_.G([_.y(),_.q("design:type",Object)],Ad.prototype,"activeEndpoint",void 0);_.G([_.Ya("activeEndpoint"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"onActiveEndpointChanged",null);_.G([_.y(),_.q("design:type",Boolean)],Ad.prototype,"renderGuide",void 0);_.G([_.Ya("renderGuide"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"onRenderGuideChanged",null);
_.G([_.y({selector:Mg5}),_.q("design:type",Boolean)],Ad.prototype,"persistentPanelVisible",void 0);_.G([_.y(),_.q("design:type",Object)],Ad.prototype,"guideOpened",void 0);_.G([_.y(),_.q("design:type",Boolean)],Ad.prototype,"guidePersistent",void 0);_.G([_.Ya("guidePersistent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"onGuidePersistentChanged",null);_.G([_.y(),_.q("design:type",Object)],Ad.prototype,"guideUserStateOpened",void 0);
_.G([_.y(),_.q("design:type",String)],Ad.prototype,"pageUrl",void 0);_.G([_.y(),_.q("design:type",String)],Ad.prototype,"pageType",void 0);_.G([_.y(),_.q("design:type",Number)],Ad.prototype,"cachedClientWidth",void 0);_.G([_.y(),_.q("design:type",Object)],Ad.prototype,"guideElement",void 0);_.G([_.y({selector:_.aR}),_.q("design:type",Object)],Ad.prototype,"isFullscreenShorts",void 0);
_.G([_.Ya("guideElement"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"onGuideElementChanged",null);_.G([_.Ya("guidePersistentAndVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"guidePersistentAndVisibleChanged",null);
_.G([_.jk("guideIsVisibleButNotPersistent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"guideIsVisibleButNotPersistentChanged",null);_.G([_.Ya("miniGuideVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"miniGuideVisibleChanged",null);_.G([_.jk("guideOpened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"guideOpenedChanged",null);
_.G([_.Ya("activeEndpoint"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"activeEndpointChanged",null);_.G([_.jk("pageUrl"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"resetGuide",null);_.G([_.jk("cachedClientWidth"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"cachedClientWidthChanged",null);
_.G([_.jk("persistentPanelVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"persistentPanelVisibleChanged",null);_.G([_.Ya("guideOpened","guidePersistent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"computeGuidePersistentAndVisible",null);
_.G([_.jk("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"observeForMiniGuideVisible",null);_.G([_.Gl("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"onResize",null);_.G([_.dX({disableElementRegistration:!0,is:"yt-guide-manager"})],Ad);var Wjj=_.e(Ad,"yt-guide-manager",void 0,{mode:2});var ixh=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"],Jl=new Map;Jl.set(32,59972);Jl.set(27,50765);Jl.set(70,60102);Jl.set(76,60221);Jl.set(77,60222);Jl.set(74,60223);Jl.set(84,60224);Jl.set(38,61941);Jl.set(40,61942);Jl.set(73,62521);Jl.set(67,62522);Jl.set(80,63390);Jl.set(78,63397);Jl.set(75,59972);Jl.set(188,63385);Jl.set(190,63384);Jl.set(36,63387);Jl.set(35,63386);Jl.set(37,63388);
Jl.set(39,63389);Jl.set(79,63423);Jl.set(87,63424);Jl.set(107,63426);Jl.set(109,63425);Jl.set(65,63428);Jl.set(83,63430);Jl.set(68,63429);Jl.set(221,63431);Jl.set(219,63432);Jl.set(97,63439);Jl.set(98,63440);Jl.set(99,63441);Jl.set(100,63442);Jl.set(101,63443);Jl.set(102,63444);Jl.set(103,63445);Jl.set(104,63446);Jl.set(105,63447);var fL=new Map;fL.set(80,63390);fL.set(78,63397);fL.set(188,63400);fL.set(190,63401);fL.set(191,60765);fL.set(13,247917);var Xup=new Map,wum=new Map;var M3=function(){var H=_.B.apply(this,arguments)||this;H.JSC$21683_keyboardInUse=!1;H.boundHandleCapturedKeydownEvent=function(U){H.handleCapturedKeydownEvent(U)};
return H};
_.R(M3,_.B);_.X=M3.prototype;_.X.attached=function(){this.listenToDocument(document)};
_.X.listenToDocument=function(H){H.addEventListener("keydown",_.lN(this,this.onKeyDownEvent));H.addEventListener("keyup",_.lN(this,this.onKeyUpEvent));H.addEventListener("mousedown",_.lN(this,this.onMouseDownEvent));_.S("desktop_keyboard_capture_keydown_killswitch")||H.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);H.addEventListener("yt-page-data-updated",_.lN(this,this.onPageUpdate))};
_.X.detached=function(){this.unlistenFromDocument(document)};
_.X.unlistenFromDocument=function(H){H.removeEventListener("keydown",_.lN(this,this.onKeyDownEvent));H.removeEventListener("keyup",_.lN(this,this.onKeyUpEvent));H.removeEventListener("mousedown",_.lN(this,this.onMouseDownEvent));_.S("desktop_keyboard_capture_keydown_killswitch")||H.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);H.removeEventListener("yt-page-data-updated",_.lN(this,this.onPageUpdate))};
_.X.ready=function(){_.lx().addProvider({provide:_.af,useValue:this})};
_.X.isKeyBoardInUse=function(){return this.JSC$21683_keyboardInUse};
_.X.handleCapturedKeydownEvent=function(H){if(H.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(H)};
_.X.onMouseDownEvent=function(){this.JSC$21683_keyboardInUse=!1};
_.X.onPageUpdate=function(){if(_.S("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.S("web_shorts_keyboard_shortcut_usage_log")){Xup.clear();for(var H=_.b(Jl),U=H.next();!U.done;U=H.next()){var A=_.b(U.value);U=A.next().value;A=A.next().value;A=_.ts(A);Xup.set(U,A);_.ou(_.XK(),_.ws(),A)}wum.clear();H=_.b(fL);for(U=H.next();!U.done;U=H.next())A=_.b(U.value),U=A.next().value,A=A.next().value,A=_.ts(A),wum.set(U,A),_.ou(_.XK(),_.ws(),A);_.F_(_.XK(),_.ws(),[].concat(_.vI(wum.values()),_.vI(Xup.values())));
_.sn(_.XK(),[].concat(_.vI(wum.values()),_.vI(Xup.values())))}};
_.X.onMiniplayerActiveChange=function(){var H;(H=_.lx().resolve(_.ZB).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(H.document):this.unlistenFromDocument(H.document))};
_.X.ignoreKeyEvent=function(H){if(H.ctrlKey||H.altKey)if(_.S("kevlar_macro_markers_keyboard_shortcut")){if(H.keyCode!==37&&H.keyCode!==39)return!0}else return!0;var U=_.Lf(H)||[];return bx5(U)?(_.S("web_button_or_anchor_list_item")&&dPm(U,H)&&(this.JSC$21683_keyboardInUse=!0),!0):H.defaultPrevented?(KL(H.keyCode,H.shiftKey,this.isShortsPage),!0):H.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(H):!1};
_.X.isSpacebarClick=function(H){var U=H||window.event;var A;U.composedPath&&typeof U.composedPath==="function"?A=U.composedPath():A=U.path;A&&A.length?U=A[0]:(U=U||window.event,U=U.target||U.srcElement,U.nodeType==3&&(U=U.parentNode));return U&&H.keyCode===32&&(H=U.tagName==="BUTTON"||U.tagName==="A"||U.tagName==="INPUT",U=(U=U.getAttribute("role"))&&(U==="option"||U==="button"||U.indexOf("menuitem")===0),H||U)?!0:!1};
_.X.onKeyDownEvent=function(H){if(!this.ignoreKeyEvent(H)&&(H.keyCode===191&&(H.shiftKey||H.metaKey?H.repeat!=null&&H.repeat||(this.openHotkeyDialog(),KL(H.keyCode,H.shiftKey,this.isShortsPage)):(this.focusSearchBox(),H.preventDefault())),!H.metaKey)){var U=_.lx().resolve(_.ZB);switch(H.keyCode){case 9:this.JSC$21683_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(H);break;case 84:U.pipController.getWindow()&&window.focus();this.toggleTheaterMode(H.keyCode,H.shiftKey);break;case 73:U.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(H.keyCode,H.shiftKey);break;case 70:if(this.isShortsPage){B3m();break}this.isMiniplayerActive()?U.pipController.getWindow()&&(U.close(!0),window.focus()):this.passEventToPlayer(H);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(H.keyCode,H.shiftKey):this.closeMiniplayer(H.keyCode,H.shiftKey)||this.passEventToPlayer(H);break;case 13:H.shiftKey&&_.lx().resolve(_.as).activate(H);break;default:this.passEventToPlayer(H)}}};
_.X.onKeyUpEvent=function(H){if(!this.ignoreKeyEvent(H))if(_.S("web_speedmaster_spacebar_control")&&H.keyCode===32)this.handlePlayerSpaceKey(H,!0);else{var U=this.getPlayerManager();U&&(U=U.getPlayer())&&U.handleGlobalKeyUp(H.keyCode,H.shiftKey,H.ctrlKey,H.altKey,H.metaKey,H.key,H.code)}};
_.X.getPlayerManager=function(){var H=_.Ly(),U=_.lx().resolve(_.$V(_.SI));return H&&U&&U.isOnWatch()?H:null};
_.X.passEventToPlayer=function(H,U){var A=this,M,W,w,d;return _.u(function(O){if(O.nextAddress==1){if(!_.S("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&A.isMiniplayerActive())M=_.lx().resolve(_.ZB).getPlayerElement();else if(A.inlinePreviewIsActive){if(W=_.Bg(A.hostElement,"yt-get-inline-preview-player-action"),(w=W)==null?0:w[0])M=W[0]}else M=_.Ly();return M?O.yield(M.getPlayerPromise(),3):O.jumpTo(0)}d=O.yieldResult;U?d.handleGlobalKeyUp(H.keyCode,H.shiftKey,H.ctrlKey,H.altKey,H.metaKey,
H.key,H.code):d.handleGlobalKeyDown(H.keyCode,H.shiftKey,H.ctrlKey,H.altKey,H.metaKey,H.key,H.code,H.repeat);H.keyCode!==38&&H.keyCode!==40&&KL(H.keyCode,H.shiftKey,A.isShortsPage);_.DO(O)})};
_.X.focusSearchBox=function(){_.cg(this.hostElement,"yt-focus-searchbox")};
_.X.openHotkeyDialog=function(){_.cg(this.hostElement,"yt-open-hotkey-dialog")};
_.X.isMiniplayerActive=function(){return _.lx().resolve(_.ZB).isMiniplayerActive()};
_.X.closeMiniplayer=function(H,U){return this.isMiniplayerActive()?(_.lx().resolve(_.ZB).close(),KL(H,U,this.isShortsPage),!0):!1};
_.X.toggleTheaterMode=function(H,U){var A=_.As(_.Lq().getState()),M=this.getPlayerManager(),W=_.S("disable_theater_mode_keyboard")||_.xV("START_IN_FULL_WINDOW_MODE");M&&!W&&(A=!A,_.L1()&&_.S("external_fullscreen")&&(A=!0),_.yr(this.hostElement,"yt-toggle-theater-mode",[A]),KL(H,U,this.isShortsPage))};
_.X.toggleMiniplayer=function(H,U){var A=this.getPlayerManager();if(this.isMiniplayerActive()){var M;((M=_.lx().resolve(_.$V(_.SI)))==null?0:M.isOnWatch())?_.lx().resolve(_.ZB).close(!0):_.eJ(_.lx().resolve(_.ZB));KL(H,U,this.isShortsPage)}else A&&(_.yr(this.hostElement,"yt-activate-miniplayer-from-watch-action"),KL(H,U,this.isShortsPage))};
_.X.handlePlayerSpaceKey=function(H,U){var A=!!_.Ly()||this.isMiniplayerActive();A=_.S("disable_space_scroll_fix")||A;_.S("global_spacebar_pause")&&!this.isKeyBoardInUse()&&A&&(H.preventDefault(),this.passEventToPlayer(H,U))};
_.X.isPresentingTheaterMode=function(){return _.S("web_watch_enable_tm_esc_key")?_.As(_.Lq().getState())&&!_.L1():!1};
M3.prototype.onMiniplayerActiveChange=M3.prototype.onMiniplayerActiveChange;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],M3.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],M3.prototype,"ytdReduxBehavior",void 0);_.G([_.y({selector:_.KEE}),_.q("design:type",Boolean)],M3.prototype,"inlinePreviewIsActive",void 0);_.G([_.y({selector:_.hiK}),_.q("design:type",Boolean)],M3.prototype,"isShortsPage",void 0);
_.G([_.y({selector:_.iE}),_.q("design:type",Boolean)],M3.prototype,"miniplayerIsActive",void 0);_.G([_.Ya("miniplayerIsActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],M3.prototype,"onMiniplayerActiveChange",null);_.G([_.dX({disableElementRegistration:!0,is:"yt-hotkey-manager"})],M3);_.e(M3,"yt-hotkey-manager",void 0,{mode:2});var WG=function(){var H=_.B.apply(this,arguments)||this;H.loopStateEntityKey_=null;H.playlistLoopStateEntity_=null;H.isShuffleNextPlaylist=!1;H.PLAYER_EVENTS_=new Map;H.playerListenersSetup_=!1;H.videoSkipJob_=0;H.canAutoAdvance_=!1;H.playerManager_=null;H.TEST_ONLY={};return H};
_.R(WG,_.B);_.X=WG.prototype;_.X.ready=function(){_.lx().addProvider({provide:_.FX,useValue:this.hostElement})};
_.X.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.X.attached=function(){document.addEventListener("yt-navigate-start",_.lN(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.lN(this,this.onYtNavigateFinish_))};
_.X.detached=function(){document.removeEventListener("yt-navigate-start",_.lN(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.lN(this,this.onYtNavigateFinish_))};
_.X.updatePlaylistEventListeners=function(H,U){U&&!this.playerListenersSetup_?(this.playerManager_=H,this.registerPlaylistEventListeners_(H)):!U&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(H))};
_.X.setPlayer=function(H){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=H};
_.X.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.X.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.X.registerPlaylistEventListeners_=function(H){var U=this;H.getPlayerPromise().then(function(A){U.playerListenersSetup_||(U.ytPlayerListenerBehavior.listenToPlayerEvents(A,U.PLAYER_EVENTS_),U.playerListenersSetup_=!0)})};
_.X.removePlaylistEventListeners_=function(H){var U=this;H.getPlayerPromise().then(function(A){U.playerListenersSetup_&&(U.ytPlayerListenerBehavior.unlistenFromPlayerEvents(A,U.PLAYER_EVENTS_),U.playerListenersSetup_=!1)})};
_.X.setPlaylistComponent=function(H){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.lN(this,this.onPlaylistYtNavigate_)),H&&(H.data&&this.playlistComponent.data&&H.data.playlistId==this.playlistComponent.data.playlistId?(H.loopOn=this.playlistComponent.loopOn,H.shuffleOn=this.playlistComponent.shuffleOn):(H.loopOn=!1,H.shuffleOn=!1),this.isShuffleNextPlaylist&&(H.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=H;this.playlistComponent.addEventListener("yt-navigate",
_.lN(this,this.onPlaylistYtNavigate_))};
_.X.setAutoplayRenderer=function(H){this.autoplayData=H};
_.X.setPlaylistData=function(H){this.currentPlaylistData_=H;_.cg(this.hostElement,"yt-playlist-data-updated");_.dG.isEmpty(H)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(H)};
_.X.setPlayerPlaybackControlData=function(H){this.playerManager_&&this.playerManager_.updatePlayerComponents(H.playlistPanelRenderer)};
_.X.getPlaylistData=function(){return this.currentPlaylistData_};
_.X.getTempData_=function(H,U){if(this.playlistComponent==null)return null;H={};this.playlistComponent.shuffleOn&&(H.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(H.loop_on=this.playlistComponent.loopOn);U&&(H.autonav="1",_.lx().resolve(_.qe),U=_.$B(),U>0&&(H.lact=U),this.playerManager_&&(U=this.playerManager_.getPlayer())&&U.shouldSendVisibilityState()&&(U=U.getVisibilityState(),U!=0&&(H.vis=U)));_.S("enable_unknown_lact_fix_on_html5")&&(_.lx().resolve(_.qe),H.lact=
_.$B());return H};
_.X.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.X.setLoopStateEntityKey_=function(H){var U;this.loopStateEntityKey_=((U=this.getPlaylistLoopData_(H))==null?void 0:U.playlistLoopStateEntityKey)||null};
_.X.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.X.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.X.skipVideo=function(){var H=this,U=_.S("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||U)U=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.TB(_.Fl,function(){H.onPlaylistNext();H.videoSkipJob_=0},U)};
_.X.cancelVideoSkip=function(){this.videoSkipJob_&&(_.Fl.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.X.isInBackground_=function(){var H=window.document.visibilityState;return!(!H||H=="visible")};
_.X.onPlaylistIndex_=function(H){this.playlistComponent&&(H=this.playlistComponent.data.contents[H].playlistPanelVideoRenderer.navigationEndpoint,_.cg(this.hostElement,"yt-navigate",{endpoint:H,tempData:this.getTempData_(H)}))};
_.X.onPlayerStateChange_=function(H){if(H=H==0&&this.playlistComponent&&this.canAutoAdvance_)H=_.at.getInstance(),H=!(H.autonavState_===3?H.autonavPauseReason_&&H.autonavPauseReason_.inputBoxFocus===!0:H.autonavState_===1&&H.disabledAutonavPauseReason_&&H.disabledAutonavPauseReason_.inputBoxFocus===!0);H&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.X.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.X.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.X.navigateToAutoplayWatchEndpoint_=function(H,U,A){var M=this.playlistComponent.data.currentIndex,W=this.getNumPlayableVideos_();H=="NORMAL"&&U=="autoplayVideo"&&M+1>=W&&A||!(H=this.getVideoEndpoint_(H,U))||(A=this.getTempData_(H,A),_.cg(this.hostElement,"yt-navigate",{endpoint:H,tempData:A}))};
_.X.getNumPlayableVideos_=function(){for(var H=0,U=_.b(this.playlistComponent.data.contents||[]),A=U.next();!A.done;A=U.next())A.value.playlistPanelVideoRenderer&&(H+=1);return H};
_.X.getVideoEndpoint_=function(H,U){if(this.autoplayData&&this.autoplayData.sets)for(var A=0,M=this.autoplayData.sets.length;A<M;A++){var W=this.autoplayData.sets[A];if(W.mode==H){if(W[U])return W[U];break}}else H=new _.bD("AutoplayData is undefined in playlist manager","Mode: "+H+" endpoint: "+U),_.Na(H)};
_.X.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.X.onPlaylistYtNavigate_=function(H){if(H.detail.endpoint){H.stopPropagation();var U=H.detail;U.tempData=this.getTempData_(H.detail.endpoint);_.cg(this.hostElement,"yt-navigate",U)}};
_.X.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.X.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.X.playlistLoopStateEntityChanged_=function(H){var U=this,A,M,W;return _.u(function(w){if(w.nextAddress==1){if(!H)return w.return();A=H.state==="PLAYLIST_LOOP_STATE_ONE";return U.playerManager_?w.yield(U.playerManager_.getPlayerPromise(),3):w.jumpTo(2)}w.nextAddress!=2&&(M=w.yieldResult,M.setLoopVideo(A));W=H.state==="PLAYLIST_LOOP_STATE_ALL";U.playlistComponent&&(U.playlistComponent.loopOn=W);_.DO(w)})};
_.X.getPlaylistLoopData_=function(H){var U,A;if(H=H==null?void 0:(U=H.playlistButtons)==null?void 0:(A=U.menuRenderer)==null?void 0:A.topLevelButtons)for(U=_.b(H),A=U.next();!A.done;A=U.next())if(A=A.value,A.playlistLoopButtonRenderer)return A.playlistLoopButtonRenderer};
_.X.getLoopStateCommand_=function(H){var U=this.getPlaylistData(),A;U=((A=this.getPlaylistLoopData_(U))==null?void 0:A.states)||[];var M;H=(M=_.p(U[H?1:2],_.eBk))==null?void 0:M.button;var W;return(W=_.p(H,_.f$))==null?void 0:W.command};
_.X.onPlayerLoopChange_=function(H){this.playlistLoopStateEntity_&&(H?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(H=this.getLoopStateCommand_(H))&&this.ytComponentBehavior.resolveCommand(H)};
_.X.onSleepTimerSettingsChanged_=function(H){this.canAutoAdvance_=H!=="End of video"};
WG.prototype.onPlaylistLoopStateEntityChanged=WG.prototype.onPlaylistLoopStateEntityChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],WG.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.nm.YtPlayerListenerBehavior),_.q("design:type",_.NM)],WG.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],WG.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],WG.prototype,"loopStateEntityKey_",void 0);
_.G([_.y({selectorArgs:["loopStateEntityKey_"],selector:_.Ab.playlistLoopStateEntitySelector}),_.q("design:type",Object)],WG.prototype,"playlistLoopStateEntity_",void 0);_.G([_.Ya("playlistLoopStateEntity_"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],WG.prototype,"onPlaylistLoopStateEntityChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"yt-playlist-manager"})],WG);_.e(WG,"yt-playlist-manager",void 0,{mode:2});var wPk,XPB=function(){if(wPk!==void 0)return wPk;var H=document.createElement("template");_.E(H,"\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");H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return wPk=H};var w2=function(){var H=_.B.apply(this,arguments)||this;H.lastCallback=null;H.getAccountLinkPromises={};H.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);H.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return H};
_.R(w2,_.B);_.X=w2.prototype;_.X.getLocation=function(){return window.location.href};
_.X.getCompletionUrl=function(){return _.lF(this.getLocation())};
_.X.containsRedirectState=function(H){return(H=_.rN(_.kg8(H)))?(new URLSearchParams(H)).get("redirect_state")!==null:!1};
_.X.createGalConfig=function(H,U){var A=new SxX;H=A=U?this.getPopupOrRedirectSetting(A,_.gD("LINK_API_KEY"),_.gD("LINK_API_KEY_REDIRECT"),H):pYj(A,_.gD("LINK_API_KEY"));H.authUser=_.gD("SESSION_INDEX")||0;H.supportedFlows=new Set([4]);return H.build()};
_.X.getPopupOrRedirectSetting=function(H,U,A,M){this.isGalInteractionPopupMode(M)?(H.interactionMode=0,H=pYj(H,U)):(H.interactionMode=1,U=this.getCompletionUrl(),H.completionUrl=U,H=pYj(H,A));return H};
_.X.isGalInteractionPopupMode=function(H){if(this.redirectModeProviderAllowlist.has(H))switch(H){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.X.getStatusEntityKeyForProviderId=function(H){return _.BO(H+":all","accountLinkStatusEntity")};
_.X.findNestedPropValue=function(H,U){var A=!1,M=null;JSON.stringify(H,function(W,w){A||W!==U||(A=!0,M=w);return A?null:w});
return M};
_.X.findAccountLinkButtonViewModel=function(H,U){var A=null,M=!1;JSON.stringify(H,function(W,w){M||w.accountLinkStatusEntityKey!==U||w.accountLinkStatusSecondaryEntityKey||(M=!0,A=w);return M?null:w});
return A};
_.X.executeLinkingSuccessOrFailureCommands=function(H,U,A){var M=null,W;(U==null?0:(W=U.url)==null?0:W.includes("account_sharing"))?M=U==null?void 0:U.response:M=U==null?void 0:U.response;(U=this.findAccountLinkButtonViewModel(M,H))?(H=A?this.findNestedPropValue(U,"onSuccessCommand"):this.findNestedPropValue(U,"onFailureCommand"))?_.lH([H],this.hostElement):_.c5(Error("Zl")):_.c5(Error("$l`"+H))};
_.X.handleInitializeRequest=function(H,U){var A=this,M=lYh(this.createGalConfig(H,!0));this.containsRedirectState(this.getLocation())?B1f(H,M.config,M.galService).then(function(W){var w=A.getStatusEntityKeyForProviderId(H);if(W.statusCode===1)U&&A.executeLinkingSuccessOrFailureCommands(w,U,!0),W=A.getLocation().indexOf("#"),W!==-1&&window.history.pushState(null,"",A.getLocation().substring(0,W));else return U&&A.executeLinkingSuccessOrFailureCommands(w,U,!1),Promise.reject(Error(W.statusMessage))}).catch(function(W){_.Na(W);
_.Fx("gamingAccountLinkStatusChanged",{serviceId:H,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(W)}):this.getAccountLinkPromises[H]=M.startLinkingSession({serviceId:H})};
_.X.handleAccountLinkCommand=function(H){_.p(H,pEY)&&this.handleLinkRequest(_.p(H,pEY))};
_.X.handleLinkRequest=function(H){var U=this,A=H.thirdPartyId;if(A)if(this.isGalInteractionPopupMode(A)){var M=function(){U.closeAndFire("ytd-gaming-account-link-setting-renderer",H.onFailureCommand)},W=function(){U.closeAndFire("ytd-gaming-account-link-setting-renderer",H.onSuccessCommand)};
this.lastCallback=W;this.getAccountLinkPromises[A].then(function(w){Woh(w).then(function(d){d.statusCode===1?W():M()})}).catch(function(){M()})}else this.getAccountLinkPromises[A].then(function(w){Woh(w).then(function(d){if(d.statusCode!==1)return Promise.reject(Error(d.statusMessage))})}).catch(function(w){_.Na(w);
_.Fx("gamingAccountLinkStatusChanged",{serviceId:A,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(w)})};
_.X.closeAndFire=function(H,U){_.yr(this.hostElement,"yt-close-popup-action",[H]);U&&_.lH([U],this.hostElement)};
_.X.handleAccountUnlinkCommand=function(H){_.p(H,L8f)&&this.handleUnlinkRequest(_.p(H,L8f))};
_.X.handleUnlinkRequest=function(H){var U=this,A=H.thirdPartyId;if(A){var M=function(){U.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",H.onFailureCommand)},W=function(){U.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",H.onSuccessCommand)};
this.lastCallback=W;var w=lYh(this.createGalConfig(A,!1));this.unlinkUserGal(w,A).then(function(d){d.statusCode===1?W():M()}).catch(function(){M()})}};
_.X.unlinkUserGal=function(H,U){return H.deleteLink(U)};
_.X.handleLogAccountLinkingEventCommand=function(H){_.S("enable_gel_log_commands")&&_.p(H,Eu8)&&(H=_.p(H,Eu8).event)&&_.Fx("gamingAccountLinkStatusChanged",H)};
_.D5.Object.defineProperties(w2,{template:{configurable:!0,enumerable:!0,get:function(){return XPB()}}});
_.G([_.g(_.e4.YtOpenPopupBehavior),_.q("design:type",Object)],w2.prototype,"ytOpenPopupBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],w2.prototype,"ytActionHandlerBehavior",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-third-party-manager"})],w2);_.e(w2,"ytd-third-party-manager",function(){return XPB()},{mode:2});var iim=2/3,bi7=_.ts(130749),dW5=function(H,U){var A=this;this.element=H;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){A.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:iim,moveAction:function(M){A.moveAction(M)},
triggerAction:function(){A.element.isReloading=!0;_.uZ(_.k$(),{visualElement:bi7});_.$$.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:A.element}})}}}};
_.lY(_.k$(),bi7,this.layer);this.gesture=new jh(H,U,this.refreshConfig,"pan-down");this.attach()};
_.X=dW5.prototype;_.X.attach=function(){this.gesture.attach()};
_.X.detach=function(){this.gesture.detach()};
_.X.reset=function(){this.element.close()};
_.X.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.X.moveAction=function(H){this.element.rotation=H*360};var Oim=_.ts(130750),Zim=function(H,U,A,M,W){var w=this;this.element=H;this.parent=A;this.channelHeader=M;this.ytdReduxDispatch=W;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){w.tabsStartAtInPx=w.channelHeader.clientHeight-48;var d;(d=w.selectedTab)!=null&&d.title&&(d=_.lx().resolve(_.$V(_.SI)))&&(d=d.getCurrentPage(),w.lastVisitedTabScrollPosition=d.getScrollTop(),w.previousTab&&
((w.lastVisitedTabScrollPosition===void 0?0:w.lastVisitedTabScrollPosition<w.channelHeader.clientHeight-48)?w.scrollPositionForTabs.has(w.selectedTab.title)&&w.scrollPositionForTabs.delete(w.selectedTab.title):w.scrollPositionForTabs.set(w.selectedTab.title,d.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:uNy(),triggerAction:function(){w.navigate(w.previousTab)},
moveAction:function(d,O){w.moveAction(d,O)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-uNy(),triggerAction:function(){w.navigate(w.nextTab)},
moveAction:function(d,O){w.moveAction(d,O)}}}};
_.lY(_.k$(),Oim,this.layer);this.gesture=new jh(H,U,this.tabConfig);this.attach()};
_.X=Zim.prototype;_.X.attach=function(){this.gesture.attach()};
_.X.detach=function(){this.gesture.detach()};
_.X.tabsChanged=function(H){if(H){var U=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;H=_.b(H);for(var A=H.next();!A.done;A=H.next()){A=A.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=A);var M=void 0;if((M=A)==null?0:M.selected)this.previousTab=U,this.selectedTab=A;U=A}U=this.gesture;H=this.getConfig();U.config=H;this.scrollPositionNeedsUpdate=!0}};
_.X.getConfig=function(){return 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}})};
_.X.moveAction=function(H,U){if(!this.tabsElement){var A;this.tabsElement=(A=this.parent.header)==null?void 0:A.tabsElement;U==="right"&&this.previousTab?(A=this.previousTab.endpoint,_.cD$(_.lx().resolve(_.UP),A,{},"")):U==="left"&&this.nextTab&&(A=this.nextTab.endpoint,_.cD$(_.lx().resolve(_.UP),A,{},""));if(!this.tabsElement)return}A=this.tabsElement._pos;U==="right"&&(H*=-1);this.tabsElement._positionBar(A.width,A.left*1+A.width*H)};
var uNy=function(){var H,U;return(U=(H=_.lx().resolve(_.SI).getCurrentPage())==null?void 0:H.clientWidth)!=null?U:0};
Zim.prototype.navigate=function(H){this.element.data=void 0;if(H=H==null?void 0:H.endpoint)this.ytdReduxDispatch(eeY(!0)),_.uZ(_.k$(),{visualElement:Oim}),_.$$.instance.resolveCommand({navigateAction:{endpoint:H}},{form:{element:this.element}})};var fL5;var JU5;var XC=function(){var H=_.B.apply(this,arguments)||this;H.rotation=0;H.isReloading=!1;return H};
_.R(XC,_.B);XC.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
XC.prototype.reset=function(){this.hostElement.style.opacity=""};
XC.prototype.close=function(){var H=this;return _.u(function(U){if(U.nextAddress==1)return U.yield(H.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);H.hostElement.style.opacity="0";_.DO(U)})};
XC.prototype.rotationChanged=XC.prototype.rotationChanged;_.G([_.y(),_.q("design:type",Object)],XC.prototype,"rotation",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],XC.prototype,"isReloading",void 0);_.G([_.hG("#icon"),_.q("design:type",HTMLElement)],XC.prototype,"icon",void 0);_.G([_.Ya("rotation"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],XC.prototype,"rotationChanged",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-refresh"})],XC);
_.e(XC,"ytd-refresh",function(){if(JU5!==void 0)return JU5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return JU5=H},{mode:1});var KjX;var ig=function(){var H=_.B.apply(this,arguments)||this;H.useRaf=!_.S("web_use_raf_app_header_layout_killswitch");return H};
_.R(ig,_.B);ig.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"}}}};
ig.prototype.dataChanged=function(){if(this.data){var H=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var U=_.Rv(this.data.banner.thumbnails,this.hostElement.clientWidth);U&&(U.indexOf("//")===0&&(U="https:"+U),this.hasBannerArt=!0,_.Dt(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+U+")"}))}this.hasBannerArt!==H&&_.c4(this.hostElement).querySelector("#header").fire("iron-resize")}};
ig.prototype.updateSelectedFromBinding=function(H){this.selected=H.detail.value};
ig.prototype.dataChanged=ig.prototype.dataChanged;_.G([_.g(wGk),_.q("design:type",Object)],ig.prototype,"ytdTabbedHeaderBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ig.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.fm),_.q("design:type",Object)],ig.prototype,"ytdGridStateAwareBehavior",void 0);_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],ig.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ig.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ig.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Number)],ig.prototype,"selected",void 0);_.G([_.y(),_.q("design:type",Boolean)],ig.prototype,"active",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],ig.prototype,"hasBannerArt",void 0);_.G([_.y(),_.q("design:type",Object)],ig.prototype,"useRaf",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ig.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],ig);
_.e(ig,"ytd-interactive-tabbed-header-renderer",function(){if(KjX!==void 0)return KjX;var H=document.createElement("template");_.E(H,'\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 use-raf="[[useRaf]]" 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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return KjX=H},{mode:1});var om5;var bg=function(){return _.B.apply(this,arguments)||this};
_.R(bg,_.B);bg.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
bg.prototype.computeActionsAlignment=function(H){return(H==null?void 0:H.actionsAlignment)||""};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],bg.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],bg.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],bg.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.q("design:type",String)],bg.prototype,"actionsAlignment",void 0);
_.G([_.dX({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],bg);
_.e(bg,"ytd-page-footer-renderer",function(){if(om5!==void 0)return om5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return om5=H},{mode:1});var Fjp;var P_B;var d2=function(){var H=_.B.apply(this,arguments)||this;H.isEditing=!1;H.useSlot=!1;H.isMultiline=!1;return H};
_.R(d2,_.B);_.X=d2.prototype;_.X.onKeydown=function(H){if(H.keyCode===13&&!this.isMultiline)this.onSave();else if(H.keyCode===27)this.onCancel()};
_.X.computeComponentStyle=function(H){return(H==null?0:H.style)?H.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.X.computeisMultiline=function(H){if(this.multilineOverride!==void 0)return this.multilineOverride;var U,A;return!!(H==null?0:(U=H.formField)==null?0:(A=U.textInputFormFieldRenderer)==null?0:A.isMultiline)};
_.X.computeTextDisplayed=function(H,U){if(H)return H;if(U)return U};
_.X.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.X.onSave=function(){if(this.textForm.validate()){this.textForm.save();var H=this.textForm.value;if(H)this.set("data.textDisplayed",_.Nh(H));else{var U;((U=this.data)==null?0:U.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.NI("inline-form-changed",this.data));this.isEditing=!1}};
_.X.onCancel=function(){var H=_.Sp(this.data.textDisplayed);H===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(H);this.isEditing=!1};
d2.prototype.onKeydown=d2.prototype.onKeydown;_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],d2.prototype,"ytEventForwardingBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],d2.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],d2.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],d2.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],d2.prototype,"isEditing",void 0);_.G([_.y(),_.q("design:type",Object)],d2.prototype,"useSlot",void 0);_.G([_.y(),_.q("design:type",Boolean)],d2.prototype,"multilineOverride",void 0);_.G([_.y(),_.q("design:type",Boolean)],d2.prototype,"enableOverlayTheme",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.q("design:type",String)],d2.prototype,"componentStyle",void 0);
_.G([_.y({computed:"computeisMultiline(data)"}),_.q("design:type",Object)],d2.prototype,"isMultiline",void 0);_.G([_.hG("#text-form"),_.q("design:type",Object)],d2.prototype,"textForm",void 0);_.G([_.Gl("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[KeyboardEvent]),_.q("design:returntype")],d2.prototype,"onKeydown",null);_.G([_.dX({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],d2);
_.e(d2,"ytd-inline-form-renderer",function(){if(P_B!==void 0)return P_B;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return P_B=H},{mode:1});var sAk;var OS=function(){var H=_.B.apply(this,arguments)||this;H.previousSelectValue=void 0;H.selectedItemMessage=void 0;return H};
_.R(OS,_.B);OS.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
OS.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var H,U,A,M,W=(H=this.data)==null?void 0:(U=H.dropdown)==null?void 0:(A=U.dropdownRenderer)==null?void 0:(M=A.entries)==null?void 0:M.map(function(O){return O.privacyDropdownItemRenderer});
H=_.b(W!=null?W:[]);for(U=H.next();!U.done;U=H.next())if((U=U.value)&&U.int32Value===this.selectedValue){this.selectedItemMessage=U.itemMessage;break}}else this.selectedItemMessage=void 0;var w;(w=this.onValueChanged)==null||w.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var d;(d=this.data)!=null&&d.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
OS.prototype.onValueChangedForSelectedValue=function(H){this.selectedValue=H.detail.value};
OS.prototype.selectedValueChanged=OS.prototype.selectedValueChanged;_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],OS.prototype,"ytEventForwardingBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],OS.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],OS.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],OS.prototype,"theme",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Number)],OS.prototype,"selectedValue",void 0);_.G([_.y(),_.q("design:type",Function)],OS.prototype,"onValueChanged",void 0);
_.G([_.jk("selectedValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],OS.prototype,"selectedValueChanged",null);_.G([_.dX({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],OS);
_.e(OS,"ytd-dropdown-form-field-renderer",function(){if(sAk!==void 0)return sAk;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return sAk=H},{mode:2});var nmh;var ug=function(){return _.B.apply(this,arguments)||this};
_.R(ug,_.B);_.D5.Object.defineProperties(ug.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var H=[],U=_.b(this.data||[]),A=U.next();!A.done;A=U.next())(A=_.p(A.value,Zu8))&&H.push(A);return H}}});
_.G([_.y(),_.q("design:type",Array)],ug.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],ug.prototype,"byline",null);_.G([_.dX({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],ug);
_.e(ug,"ytd-playlist-byline-renderer",function(){if(nmh!==void 0)return nmh;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return nmh=H},{mode:1});var NQB;var Zh=function(){var H=_.B.apply(this,arguments)||this;H.rtlBullet=_.S("web_playlist_stats_rtl_bullet_icon_killswitch");H.modern=_.S("web_modern_buttons");H.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return H};
_.R(Zh,_.B);_.X=Zh.prototype;_.X.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"}}}}};
_.X.attached=function(){};
_.X.computeIsCustomThumbnail=function(H){return H?!!H.playlistCustomThumbnailRenderer:!1};
_.X.onYtNavigate=function(H,U){if(U&&U.actions&&U.actions.indexOf("shuffle")>-1){H=_.lx().resolve(_.FX);var A=U.tempData||{};A.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);U.tempData=A;H.isShuffleNextPlaylist=!0}};
_.X.onUpdatePlaylistAction=function(H){var U;H=(U=_.p(H,_.HH2))==null?void 0:U.updatedRenderer;if(U=_.p(H,md$))this.data=U};
_.X.computeStyleType=function(H){return H?H.toLowerCase().replace(/_/g,"-"):""};
_.X.computeThumbnailWidth=function(H){return H==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.X.computeHideThumbnailAria=function(H){if(H==null?0:H.thumbnailOverlays)for(var U=0;U<H.thumbnailOverlays.length;U++){var A=void 0;if((A=H.thumbnailOverlays[U])==null?0:A.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Zh.prototype.onYtNavigate=Zh.prototype.onYtNavigate;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Zh.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Zh.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Zh.prototype,"ytComponentBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],Zh.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Zh.prototype,"rtlBullet",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.q("design:type",String)],Zh.prototype,"styleType",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.q("design:type",Number)],Zh.prototype,"thumbnailWidth",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Zh.prototype,"modern",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.q("design:type",Boolean)],Zh.prototype,"isCustomThumbnail",void 0);_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[Event,Object]),_.q("design:returntype")],Zh.prototype,"onYtNavigate",null);_.G([_.dX({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Zh);
_.e(Zh,"ytd-playlist-sidebar-primary-info-renderer",function(){if(NQB!==void 0)return NQB;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return NQB=H},{mode:1});var S15;var fb=function(){return _.B.apply(this,arguments)||this};
_.R(fb,_.B);fb.prototype.computeOwnerVisibility=function(H){return!(!H.videoOwner&&!H.button)};
fb.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"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],fb.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],fb.prototype,"data",void 0);_.G([_.dX({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],fb);
_.e(fb,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(S15!==void 0)return S15;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return S15=H},{mode:1});var pPp;var Jd=function(){var H=_.B.apply(this,arguments)||this;H.expanded=!1;H.isCompact=!1;return H};
_.R(Jd,_.B);_.X=Jd.prototype;_.X.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.X.dataChanged=function(){this.data&&_.KU(_.c4(this.text),_.Qk2(_.UuB,_.Sp(this.data.text||null)))};
_.X.computeAutoScrollEnabled=function(H,U){return H&&!U};
_.X.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.X.toggleOnTap=function(){this.expanded=!this.expanded};
Jd.prototype.expandedChanged=Jd.prototype.expandedChanged;Jd.prototype.dataChanged=Jd.prototype.dataChanged;_.G([_.g(X2h),_.q("design:type",Object)],Jd.prototype,"ytdAutoScrollBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Jd.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Jd.prototype,"expanded",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Jd.prototype,"isCompact",void 0);_.G([_.y({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.q("design:type",Boolean)],Jd.prototype,"autoScrollEnabled",void 0);_.G([_.hG("#text"),_.q("design:type",Object)],Jd.prototype,"text",void 0);_.G([_.hG("#expander-icon"),_.q("design:type",Object)],Jd.prototype,"expanderIcon",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Jd.prototype,"dataChanged",null);_.G([_.Ya("expanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Jd.prototype,"expandedChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Jd);
_.e(Jd,"ytd-channel-legal-info-renderer",function(){if(pPp!==void 0)return pPp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return pPp=H},{mode:1});var Lj7;var RwX=_.hP("DOWNLOAD",{},"Download"),Emm=_.hP("DOWNLOADING",{},"Downloading"),mWp=_.hP("DOWNLOADED",{},"Downloaded"),Kb=function(){var H=_.B.apply(this,arguments)||this;H.downloadProgress=0;H.isDownloadComplete=!1;H.transferState="TRANSFER_STATE_UNKNOWN";return H};
_.R(Kb,_.B);_.X=Kb.prototype;_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.dataChanged=function(){var H;(H=this.data)!=null&&H.tooltip||(H=_.uE(_.Lq().getState(),this.playlistId),this.updateButtonState(H))};
_.X.computePlaylistId=function(H){return H};
_.X.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.X.updateButtonState=function(H){if(this.data&&(this.data.tooltip!==Emm||!_.TQ(H))){this.isDownloadComplete=!1;switch(H){case "TRANSFER_STATE_UNKNOWN":H=RwX;var U="OFFLINE_DOWNLOAD";var A="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":H=mWp;U="OFFLINE_PIN";A="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":H=Emm;U="OFFLINE_DOWNLOADING_ZERO";A="ACTION_REMOVE_WITH_PROMPT";
break;default:H=RwX,U="OFFLINE_DOWNLOAD",A="ACTION_ADD"}var M=Object.assign({},this.data);M.tooltip=H;M.accessibilityData={accessibilityData:{label:H}};M.icon={iconType:U};M.size="SIZE_DEFAULT";_.p(M.command,_.DW)&&(_.p(M.command,_.DW).action=A);this.set("data",M)}};
_.X.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var H="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?H="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?H="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?H="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?H="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?H="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(H="OFFLINE_PIN",this.isDownloadComplete=!0);var U;H!==((U=this.data.icon)==null?void 0:U.iconType)&&(U=Object.assign({},this.data),U.tooltip=Emm,U.accessibilityData={accessibilityData:{label:Emm}},U.icon={iconType:H},_.p(U.command,_.DW)&&(_.p(U.command,_.DW).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",U))}};
Kb.prototype.updateProgress=Kb.prototype.updateProgress;Kb.prototype.onTransferStateChanged=Kb.prototype.onTransferStateChanged;Kb.prototype.dataChanged=Kb.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Kb.prototype,"ytdReduxBehavior",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Kb.prototype,"forceIconButton",void 0);
_.G([_.y({value:!0}),_.q("design:type",Boolean)],Kb.prototype,"forceIconOnly",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Kb.prototype,"overrides",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Kb.prototype,"buttonTooltipPosition",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Kb.prototype,"styleActionButton",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Kb.prototype,"disableTextTransform",void 0);
_.G([_.y({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.q("design:type",String)],Kb.prototype,"playlistId",void 0);_.G([_.y(),_.q("design:type",Object)],Kb.prototype,"data",void 0);_.G([_.y({selector:_.LEK,selectorArgs:["playlistId"]}),_.q("design:type",Object)],Kb.prototype,"downloadProgress",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Kb.prototype,"isDownloadComplete",void 0);
_.G([_.y({selector:_.uE,selectorArgs:["playlistId"]}),_.q("design:type",String)],Kb.prototype,"transferState",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],Kb.prototype,"showTooltips",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],Kb.prototype,"sendCommandWhenDisabled",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Kb.prototype,"disabled",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Kb.prototype,"dataChanged",null);_.G([_.jk("transferState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Kb.prototype,"onTransferStateChanged",null);_.G([_.jk("downloadProgress"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Kb.prototype,"updateProgress",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],Kb);
_.e(Kb,"ytd-download-playlist-button-renderer",function(){if(Lj7!==void 0)return Lj7;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Lj7=H},{mode:1});var gmf;_.LG(_.Dty,"thumbnail-overlay-button-view-model",{props:{data:_.sY,lockupExperiments:_.sY}});var oq=function(){var H=_.B.apply(this,arguments)||this;H.isSquare=!1;H.isVertical=!1;return H};
_.R(oq,_.B);oq.prototype.computeIsSquare=function(H){return H!=null&&H.thumbnail?qHk(H.thumbnail)==="SQUARE":!1};
oq.prototype.computeIsVertical=function(H){return H!=null&&H.thumbnail?qHk(H.thumbnail)==="VERTICAL":!1};
oq.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],oq.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],oq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.q("design:type",Object)],oq.prototype,"isSquare",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.q("design:type",Object)],oq.prototype,"isVertical",void 0);
_.G([_.y(),_.q("design:type",Object)],oq.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],oq);
_.e(oq,"ytd-hero-playlist-thumbnail-renderer",function(){if(gmf!==void 0)return gmf;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return gmf=H},{mode:1});var FC=function(){var H=_.B.apply(this,arguments)||this;H.isDarkTheme=!1;H.isUltraWide=!1;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return H};
_.R(FC,_.B);_.X=FC.prototype;_.X.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.lx();var H;(H=_.lx().resolve(_.$V(_.M4)))!=null&&(H.headerElement=this.hostElement)};
_.X.detached=function(){var H;(H=_.lx().resolve(_.$V(_.M4)))!=null&&(H.headerElement=void 0)};
_.X.onUpdateHeader=function(H){(H=H.detail)&&this.set("data",H)};
_.X.computeTextDisplayed=function(H){if(H)return H.textDisplayed?H.textDisplayed:H.placeholder};
_.X.gradientColorToLinearGradientStop=function(H){var U=this.isDarkTheme?H.darkThemeColor:H.lightThemeColor;return U?_.bN(U)+" "+((H==null?void 0:H.startLocation)||0)*100+"%":"transparent"};
_.X.onWindowResize=function(){var H;((H=this.data)==null?0:H.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.X.onIronResize=function(H){this.isUltraWide=!H.detail.value};
_.X.onDarkModeToggledAction=function(H){this.isDarkTheme=H};
_.X.onUpdatePlaylistName=function(H){var U=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},H.detail.value));_.rV(this,function(){var A;(A=U.editableTitle)==null||A.resize()})};
_.X.onUpdatePlaylistDescription=function(H){var U=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},H.detail.value));_.rV(this,function(){var A;(A=U.editableDescriptionInlineExpander)==null||A.resize()})};
_.X.getCinematicData=function(H){return _.p(H==null?void 0:H.cinematicContainer,L4)};
_.D5.Object.defineProperties(FC.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 H,U=(H=this.getCinematicData(this.data))==null?void 0:H.config;return(H=this.isDarkTheme?U==null?void 0:U.darkThemeBackgroundColor:U==null?void 0:U.lightThemeBackgroundColor)?"background-color:"+_.wn(H)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var H;return _.p((H=this.data)==null?void 0:H.descriptionForm,LIY)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var H=this,U,A,M;return"background:linear-gradient(to bottom, "+(((M=(U=this.getCinematicData(this.data))==null?void 0:(A=U.gradientColorConfig)==null?void 0:A.map(function(W){return H.gradientColorToLinearGradientStop(W)}))==null?void 0:M.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var H;return _.Sp((H=this.data)==null?void 0:H.descriptionTapText)}}});
FC.prototype.onUpdateHeader=FC.prototype.onUpdateHeader;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],FC.prototype,"actionHandlerBehavior",void 0);_.G([_.hG("#description-inline-expander"),_.q("design:type",Object)],FC.prototype,"descriptionInlineExpander",void 0);
_.G([_.hG("#editable-description-inline-expander"),_.q("design:type",Object)],FC.prototype,"editableDescriptionInlineExpander",void 0);_.G([_.y(),_.q("design:type",Object)],FC.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],FC.prototype,"isUltraWide",void 0);_.G([_.hG("#editable-title-display"),_.q("design:type",Object)],FC.prototype,"editableTitle",void 0);_.G([_.a("isUltraWide"),_.q("design:type",Object),_.q("design:paramtypes",[])],FC.prototype,"maxDescriptionLines",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],FC.prototype,"noCinematicData",null);_.G([_.Gl("yt-new-playlist-header"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],FC.prototype,"onUpdateHeader",null);_.G([_.a("data","isDarkTheme"),_.q("design:type",Object),_.q("design:paramtypes",[])],FC.prototype,"backgroundStyle",null);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],FC.prototype,"descriptionFormData",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],FC.prototype,"getDropdownTheme",null);_.G([_.a("data","isDarkTheme"),_.q("design:type",String),_.q("design:paramtypes",[])],FC.prototype,"gradientStyle",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],FC.prototype,"descriptionTapText",null);
_.G([_.dX({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],FC);
_.e(FC,"ytd-playlist-header-renderer",function(){if(Fjp!==void 0)return Fjp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Fjp=H},{mode:2});var aL5;var xWX;var PG=function(){return _.B.apply(this,arguments)||this};
_.R(PG,_.B);PG.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],PG.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],PG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],PG.prototype,"data",void 0);_.G([_.dX({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],PG);
_.e(PG,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(xWX!==void 0)return xWX;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return xWX=H},{mode:1});var sS=function(){return _.B.apply(this,arguments)||this};
_.R(sS,_.B);
sS.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}}}}};
sS.prototype.computeUsePremiumShowStyle=function(H){if(!H||!H.items)return!1;for(var U=0;U<H.items.length;U++)if(_.p(H.items[U],md$)){var A=void 0;return((A=_.p(H.items[U],md$))==null?void 0:A.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],sS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],sS.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.q("design:type",Boolean)],sS.prototype,"usePremiumShowStyle",void 0);
_.G([_.dX({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],sS);
_.e(sS,"ytd-playlist-sidebar-renderer",function(){if(aL5!==void 0)return aL5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return aL5=H},{mode:1});var zw5;var C_k;var tgh=function(H,U,A,M,W,w,d,O){this.minWidth=H;this.minHeight=U;this.recommendedWidth=A;this.recommendedHeight=M;this.JSC$21758_maxFileSize=W;this.title=w;this.bannerGalleryTitle=d;this.channelId=O;this.picker_=null;H=_.GHh("yt-banner");U=H.addView;A=(new Lg$("youtubebanner")).addUploadMetadata("silo_id","19");A.opts.ytMaxFileSize=this.JSC$21758_maxFileSize;M=this.recommendedHeight;A.opts.ytRecWidth=this.recommendedWidth;A.opts.ytRecHeight=M;U.call(H,A);H.addView(new _.Mz);U=H.addView;A=new _.Mz;
A.opts.type="ytbanner";U.call(H,A.JSC$10377_setLabel(this.bannerGalleryTitle));U=H.setTitle(this.title).setSize(1E3);U.urlParamMap_.set("thumbs","orig");A=this.minWidth;M=this.minHeight;if(isNaN(A)||isNaN(M))throw Error("ib`"+A+"`"+M);U.urlParamMap_.set("minSize",A+"x"+M);U.urlParamMap_.set("cropMode","ytcb");this.builder_=H};
tgh.prototype.open=function(){var H=this;return new _.IQ(function(U,A){_.FFp(H.builder_,function(M){M.action=="picked"?U(M):M.action=="cancel"&&A(Error("am"))});
H.picker_&&H.picker_.dispose();H.picker_=H.builder_.build();H.picker_.setVisible(!0)})};
tgh.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var cUy=function(H){this.channelId=H};
cUy.prototype.upload=function(H){var U="";H.viewToken&&(U=H.viewToken[2].type);var A=H.docs[0];H=A.crop;U={channel_id:this.channelId,fife_url:A.thumbnails[0].url,photo_id:A.id,is_gallery_image:U=="ytbanner"};H&&(U.crop_top=H.top,U.crop_right=H.right,U.crop_bottom=H.bottom,U.crop_left=H.left);return _.Fa4("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:U})};var nb=function(){var H=_.B.apply(this,arguments)||this;H.ariaLabel=null;return H};
_.R(nb,_.B);_.X=nb.prototype;_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.X.detached=function(){this.picker&&this.picker.dispose()};
_.X.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.X.computeAriaLabel=function(H){return H};
_.X.onTap=function(){var H=this,U;if((U=this.data)==null||!U.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new tgh(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 A;(A=this.picker)==null||A.open().then(function(M){H.handleBannerPicked(M)},function(){})}};
_.X.handleBannerPicked=function(H){var U=this;this.uploader||(this.uploader=new cUy(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(H).then(function(A){U.handleBannerUploadSucceeded(A)},function(A){U.handleBannerUploadFailed(A)})};
_.X.handleBannerUploadSucceeded=function(H){H&&H.errors?this.handleBannerUploadFailed(H):(_.cg(this.hostElement,"yt-banner-updated",H),this.message=null)};
_.X.handleBannerUploadFailed=function(H){this.message=H&&H.errors&&H.errors.length?H.errors[0]:null};
nb.prototype.dataChanged=nb.prototype.dataChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],nb.prototype,"componentBehavior",void 0);_.G([_.g(_.HY),_.q("design:type",Object)],nb.prototype,"ironButtonState",void 0);_.G([_.y(),_.q("design:type",Object)],nb.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.q("design:type",Object)],nb.prototype,"ariaLabel",void 0);
_.G([_.y(),_.q("design:type",Object)],nb.prototype,"message",void 0);_.G([_.y(),_.q("design:type",Object)],nb.prototype,"picker",void 0);_.G([_.y(),_.q("design:type",Object)],nb.prototype,"uploader",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nb.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],nb);
_.e(nb,"ytd-channel-banner-editor-renderer",function(){if(C_k!==void 0)return C_k;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return C_k=H},{mode:1});var yUy;var BQ$=_.NP(["#"]),N3=function(){return _.B.apply(this,arguments)||this};
_.R(N3,_.B);N3.prototype.computeHrefWithDefault=function(H){return this.ytComponentBehavior.computeHref_(H,!0)||_.pIc(BQ$)};
N3.prototype.dataChanged=function(){var H=this.data;H&&H.targetId&&_.Y6(_.q5(),H.targetId,this.moreIcon)};
N3.prototype.dataChanged=N3.prototype.dataChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],N3.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],N3.prototype,"data",void 0);_.G([_.hG("#more-icon"),_.q("design:type",Object)],N3.prototype,"moreIcon",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],N3.prototype,"dataChanged",null);
_.G([_.dX({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],N3);
_.e(N3,"ytd-channel-tagline-renderer",function(){if(yUy!==void 0)return yUy;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return yUy=H},{mode:1});var rUm;var SS=function(){return _.B.apply(this,arguments)||this};
_.R(SS,_.B);_.X=SS.prototype;_.X.ready=function(){var H=this;_.c4(this.hostElement).querySelector("#form").addEventListener("submit",function(U){H.onSubmit(U)})};
_.X.onDataChanged=function(){var H;((H=this.data)==null?0:H.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.X.onIconButtonKeydown=function(H){H.keyCode===13&&this.iconButton.click()};
_.X.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.X.openOnClickHandler=function(){this.input.focus()};
_.X.onSubmit=function(H){H.preventDefault();return!1};
_.X.submitOnEnterKeyUp=function(H){var U;if(H.keyCode===13&&((U=this.data)==null?0:U.expandedText)){H=this.data.endpoint;U=_.dG.unsafeClone(H);var A;((A=_.p(U==null?void 0:U.commandMetadata,_.Y2))==null?0:A.url)?(_.p(U.commandMetadata,_.Y2).url=_.Ik(_.p(U.commandMetadata,_.Y2).url,"query",this.data.expandedText),_.p(U,_.Gv)&&(_.p(U,_.Gv).query=this.data.expandedText),_.cg(this.hostElement,"yt-navigate",{endpoint:U,tempData:{disableCache:!0}})):(A=new _.bD("Error: Trying to navigate to an endpoint without url",
H),_.sD(A))}};
_.X.updateDataExpandedTextFromBinding=function(H){this.set("data.expandedText",H.detail.value)};
_.D5.Object.defineProperties(SS.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
SS.prototype.onDataChanged=SS.prototype.onDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.G([_.g(br5),_.q("design:type",Object)],SS.prototype,"ytdExpandableInputBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],SS.prototype,"data",void 0);_.G([_.hG("#input"),_.q("design:type",Object)],SS.prototype,"input",void 0);_.G([_.hG("#icon-button"),_.q("design:type",HTMLElement)],SS.prototype,"iconButton",void 0);
_.G([_.y(),_.q("design:type",String),_.q("design:paramtypes",[])],SS.prototype,"searchIcon",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],SS.prototype,"onDataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],SS);
var Oxy=_.ty()(SS,"ytd-expandable-tab-renderer",function(){if(rUm===void 0){var H=document.createElement("template");_.E(H,'\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="[[searchIcon]]" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);rUm=H}H=rUm;return H},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var ew8;var pb=function(){var H=_.B.apply(this,arguments)||this;H.avatarSize=80;H.ariaLabel=_.hP("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return H};
_.R(pb,_.B);pb.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
pb.prototype.computeHref=function(H){var U;return((U=_.p(H,_.gu))==null?0:U.url)?this.componentBehavior.computeHref_(H):null};
pb.prototype.onTap=function(){var H,U;(H=this.data)==null||!H.editAvatarServiceEndpoint||((U=_.p(this.data.editAvatarServiceEndpoint,_.gu))==null?0:U.url)||_.lx().resolve(_.YV).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.G([_.g(_.HY),_.q("design:type",Object)],pb.prototype,"ironButtonState",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],pb.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],pb.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],pb.prototype,"avatarSize",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],pb.prototype,"ariaLabel",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],pb);
_.e(pb,"ytd-channel-avatar-editor",function(){if(ew8!==void 0)return ew8;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return ew8=H},{mode:1});var DWy=_.r(function(H){var U=H.data;var A=H.noPadding;var M=H.enableBanner;var W=H.cinematicContainerTopbarOffset;var w=H.allowCinematicContainerOverflow;var d=H.displayAsSidebar;H=H.className;_.Em(function(){U().tagManagerId&&(_.VN(U().tagManagerId,_.gD("GL")),Uyy(U().tagManagerId))},"vUc8md");
var O=_.$Y(Zxp,function(){return U().pageHeaderEntityKey});
return _.Z("yt-page-header-renderer",{class:_.CG("pageHeaderRendererHost",H)},_.Z(_.YY,{data:function(){var f;return((f=O())==null?0:f.header)?O().header:(d==null?0:d())&&U().sidebarContent?U().sidebarContent:U().content}},{pageHeaderViewModel:function(f){return _.Z(_.xr8,{data:f.data,
noPadding:A,enableBanner:M,cinematicContainerTopbarOffset:W,allowCinematicContainerOverflow:w,displayAsSidebar:function(){return(d==null?void 0:d())&&U().enableSidebarView}})}}))},"rk");
DWy.idomCompat=!0;_.LG(DWy,"yt-page-header-renderer",{props:{data:_.sY,noPadding:_.sY,enableBanner:_.sY,cinematicContainerTopbarOffset:_.sY,allowCinematicContainerOverflow:_.sY,displayAsSidebar:_.sY,className:_.sY}});_.LG(_.SP,"yt-image-banner-view-model",{props:{data:_.sY,isPositionRelative:_.sY}});_.LG(_.j_7,"yt-tab-group-shape",{props:{shape:_.sY}});var $Wk=_.fl.persistentPanelVisibleSelector,Lb=function(){var H=_.B.apply(this,arguments)||this;H.expandableCustomTabRenderable=function(U){return uYm(U,function(){return void H.onSearchNavigate()})};
H.isRichGrid=!1;H.isConstrainedList=!1;H.richGridMiniMode=!1;H.richGridStyle="RICH_GRID_STYLE_UNKNOWN";H.isRichGridShorts=!1;H.responsiveSizing="COMPACT";H.disableGridStateAware=!1;H.useRaf=!_.S("web_use_raf_app_header_layout_killswitch");H.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return H};
_.R(Lb,_.B);_.X=Lb.prototype;_.X.computeHeaderDisabled=function(H,U){return U||!H||this.tabsHidden};
_.X.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.X.computeIsRichGridShorts=function(H){return H==="RICH_GRID_STYLE_SHORTS_GRID"||H==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.X.computeImageBannerViewModel=function(){var H,U;return _.p((U=_.p((H=this.data)==null?void 0:H.content,_.CQy))==null?void 0:U.banner,_.RnH)};
_.X.computeHasCinematicContainer=function(){var H,U;return!((U=_.p((H=this.data)==null?void 0:H.content,_.CQy))==null||!U.background)};
_.X.handleHeaderResize=function(){var H=_.c4(this.hostElement).querySelector("#header");H&&_.cg(H,"iron-resize")};
_.X.handleInsertTabCommand=function(H){var U=_.p(H,nT$);U&&(U.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(A){return A.tabRenderer&&A.tabRenderer.tabIdentifier===U.tabIdentifier})||this.splice("tabs",U.tabIndex||-1,0,U.tab))};
_.X.handleRefreshChannelTabAction=function(H){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===H&&_.cg(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.X.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.X.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Dt(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.X.observerRichGridSlimItemsPerRow=function(){_.Dt(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.X.updateCssVars=function(){this.richGridItemsPerRow&&_.Dt(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.hr("rich_grid_max_item_width",500))+16)-16+"px"})};
_.X.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Dt(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.X.onDataChanged=function(){this.handleHeaderResize()};
_.X.onWindowResize=function(){this.handleHeaderResize()};
_.X.onFocusedChanged=function(H){(H=_.Rr(H))&&H.is==="tp-yt-paper-tab"&&H.hasRipple()&&(H.getRipple().holdDown=!H.pointerDown&&H.focused)};
_.X.updateSelectedFromBinding=function(H){this.ytdTabbedHeaderBehavior.selected=H.detail.value};
_.X.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.D5.Object.defineProperties(Lb.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:JIy(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.imageBannerViewModel)==null?void 0:H.style)==="IMAGE_BANNER_STYLE_INSET"}}});
Lb.prototype.onDataChanged=Lb.prototype.onDataChanged;Lb.prototype.updateCssVarsForResponsiveGrid=Lb.prototype.updateCssVarsForResponsiveGrid;Lb.prototype.updateCssVars=Lb.prototype.updateCssVars;Lb.prototype.observerRichGridSlimItemsPerRow=Lb.prototype.observerRichGridSlimItemsPerRow;Lb.prototype.observerRichGridItemsPerRow=Lb.prototype.observerRichGridItemsPerRow;Lb.prototype.persistentPanelVisibleChanged=Lb.prototype.persistentPanelVisibleChanged;
_.G([_.g(_.fm),_.q("design:type",Object)],Lb.prototype,"ytdGridStateAwareBehavior",void 0);_.G([_.g(wGk),_.q("design:type",Object)],Lb.prototype,"ytdTabbedHeaderBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Lb.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],Lb.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Lb.prototype,"ytdReduxBehavior",void 0);_.G([_.hG("#tabs"),_.q("design:type",Object)],Lb.prototype,"tabsElement",void 0);_.G([_.y(),_.q("design:type",Array)],Lb.prototype,"tabs",void 0);_.G([_.y(),_.q("design:type",Object)],Lb.prototype,"expandableCustomTabRenderable",void 0);
_.G([_.a("tabs.*"),_.q("design:type",Object),_.q("design:paramtypes",[])],Lb.prototype,"tabGroupShape",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Lb.prototype,"isRichGrid",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Lb.prototype,"isConstrainedList",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.w1}),_.q("design:type",Object)],Lb.prototype,"richGridMiniMode",void 0);_.G([_.y({selector:function(H){return H.ui.richGridStyle}}),
_.q("design:type",Object)],Lb.prototype,"richGridStyle",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.q("design:type",Object)],Lb.prototype,"isRichGridShorts",void 0);_.G([_.y({selector:_.Xz}),_.q("design:type",Number)],Lb.prototype,"richGridItemsPerRow",void 0);_.G([_.y({selector:function(H){return H.ui.richGridContainerWidth}}),
_.q("design:type",Number)],Lb.prototype,"richGridContainerWidth",void 0);_.G([_.y({selector:_.Omc}),_.q("design:type",Number)],Lb.prototype,"richGridSlimItemsPerRow",void 0);_.G([_.y(),_.q("design:type",Object)],Lb.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Lb.prototype,"responsiveSizing",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Lb.prototype,"disableGridStateAware",void 0);
_.G([_.y({computed:"computeImageBannerViewModel(data)"}),_.q("design:type",Object)],Lb.prototype,"imageBannerViewModel",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.q("design:type",Boolean)],Lb.prototype,"hasCinematicContainer",void 0);_.G([_.y({selector:o8m,reflectToAttribute:!0}),_.q("design:type",Boolean)],Lb.prototype,"guideIsVisibleButNotPersistent",void 0);
_.G([_.y({selector:$Wk}),_.q("design:type",Boolean)],Lb.prototype,"persistentPanelVisible",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("imageBannerViewModel"),_.q("design:type",Object),_.q("design:paramtypes",[])],Lb.prototype,"hasBanner",null);_.G([_.y({reflectToAttribute:!0}),_.a("imageBannerViewModel"),_.q("design:type",Object),_.q("design:paramtypes",[])],Lb.prototype,"hasInsetBanner",null);_.G([_.y(),_.q("design:type",Object)],Lb.prototype,"useRaf",void 0);
_.G([_.y({computed:"computeTabsHidden(tabs)",value:!0}),_.q("design:type",Boolean)],Lb.prototype,"tabsHidden",void 0);_.G([_.Ya("persistentPanelVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Lb.prototype,"persistentPanelVisibleChanged",null);_.G([_.Ya("richGridItemsPerRow","isRichGrid"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Lb.prototype,"observerRichGridItemsPerRow",null);
_.G([_.Ya("richGridSlimItemsPerRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Lb.prototype,"observerRichGridSlimItemsPerRow",null);_.G([_.Ya("richGridItemsPerRow","richGridMiniMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Lb.prototype,"updateCssVars",null);
_.G([_.Ya("richGridContainerWidth"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Lb.prototype,"updateCssVarsForResponsiveGrid",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Lb.prototype,"onDataChanged",null);_.G([_.dX({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],Lb);
_.e(Lb,"ytd-tabbed-page-header",function(){if(zw5!==void 0)return zw5;var H=document.createElement("template");_.E(H,'\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 use-raf="[[useRaf]]" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return zw5=H},{mode:1});var lLh;var Rq=function(){return _.B.apply(this,arguments)||this};
_.R(Rq,_.B);Rq.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Rq.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Rq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Rq.prototype,"data",void 0);_.G([_.dX({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Rq);
_.e(Rq,"ytd-labs-edit-renderer",function(){if(lLh!==void 0)return lLh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return lLh=H},{mode:1});var Gf7;var ES=function(){var H=_.B.apply(this,arguments)||this;H.dark=!1;H.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";H.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.R(ES,_.B);ES.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ES.prototype.ready=function(){var H=document.documentElement.hasAttribute("dark");this.setBackgroundImage(H);this.dark=H};
ES.prototype.onDarkModeToggledAction=function(H){this.setBackgroundImage(H);this.dark=H};
ES.prototype.setBackgroundImage=function(H){_.Dt(this.hostElement,{"--yt-labs-header-background":"url("+(H?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],ES.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ES.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],ES.prototype,"dark",void 0);
_.G([_.dX({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],ES);
_.e(ES,"ytd-labs-header-renderer",function(){if(Gf7!==void 0)return Gf7;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Gf7=H},{mode:1});var Y17;var mk=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return H};
_.R(mk,_.B);mk.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"}}}}}};
mk.prototype.onYtToggleButton=function(H){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",H.detail.toggled)};
mk.prototype.onManageLabsState=function(H){if(H=_.p(H,FIk))H.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?H.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&H.labsItemId===this.data.labsItemId&&(H.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.yr(this.hostElement,"yt-check-labs-opted-in-state").some(function(U){return U})&&this.data.confirmationDialogCommand?_.eb(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.lx().resolve(_.YV).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&H.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.lx().resolve(_.YV).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
mk.prototype.onCheckLabsOptedInState=function(){var H=this.get("data.primaryButton.toggleButtonRenderer");return H?H.isToggled:!1};
_.D5.Object.defineProperties(mk.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
mk.prototype.onYtToggleButton=mk.prototype.onYtToggleButton;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],mk.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],mk.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],mk.prototype,"itemStyle",null);_.G([_.Gl("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],mk.prototype,"onYtToggleButton",null);_.G([_.dX({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],mk);
_.e(mk,"ytd-labs-item-renderer",function(){if(Y17!==void 0)return Y17;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Y17=H},{mode:1});var q17;var hw$;var kf$=function(){return _.B.apply(this,arguments)||this};
_.R(kf$,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],kf$.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],kf$.prototype,"data",void 0);_.G([_.dX({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],kf$);
_.e(kf$,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(hw$!==void 0)return hw$;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return hw$=H},{mode:1});var vmB;var g2=function(){return _.B.apply(this,arguments)||this};
_.R(g2,_.B);g2.prototype.observeSuperchatChip=function(){if(this.data){var H={"--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)};_.Dt(this.hostElement,H)}};
g2.prototype.colorFromDecimal=function(H){return _.bN(Number(H||0))};
g2.prototype.observeSuperchatChip=g2.prototype.observeSuperchatChip;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],g2.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],g2.prototype,"data",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],g2.prototype,"observeSuperchatChip",null);_.G([_.dX({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],g2);
_.e(g2,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(vmB!==void 0)return vmB;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return vmB=H},{mode:1});var aq=function(){return _.B.apply(this,arguments)||this};
_.R(aq,_.B);aq.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"}}}};
_.D5.Object.defineProperties(aq.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],aq.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],aq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],aq.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],aq.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],aq.prototype,"hideMessageBlock",null);
_.G([_.dX({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],aq);
_.e(aq,"ytd-live-chat-history-entry-renderer",function(){if(q17!==void 0)return q17;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return q17=H},{mode:1});var TQ5;var xM=function(){return _.B.apply(this,arguments)||this};
_.R(xM,_.B);xM.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Dt(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.D5.Object.defineProperties(xM.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var H,U;return this.componentBehavior.computeIcon_(((U=_.p((H=this.data)==null?void 0:H.badge,_.B$n))==null?void 0:U.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var H,U;return(U=_.p((H=this.data)==null?void 0:H.badge,_.B$n))==null?void 0:U.label}}});
xM.prototype.observerRichGridItemsPerRow=xM.prototype.observerRichGridItemsPerRow;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],xM.prototype,"componentBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],xM.prototype,"ytdReduxBehavior",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.w1}),_.q("design:type",Boolean)],xM.prototype,"richGridMiniMode",void 0);
_.G([_.y({selector:_.Xz}),_.q("design:type",Number)],xM.prototype,"richGridItemsPerRow",void 0);_.G([_.y(),_.q("design:type",Object)],xM.prototype,"data",void 0);_.G([_.Ya("richGridItemsPerRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xM.prototype,"observerRichGridItemsPerRow",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],xM.prototype,"badgeIconName",null);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],xM.prototype,"badgeLabel",null);_.G([_.dX({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],xM);
_.e(xM,"ytd-member-hub-profile-renderer",function(){if(TQ5!==void 0)return TQ5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return TQ5=H},{mode:1});var jA5;var zL=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return H};
_.R(zL,_.B);
zL.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"}}}};
zL.prototype.handleUpdateTextCommand=function(H){(H=_.p(H,_.p02))&&this.data&&this.data.id===H.id&&this.set("data",H)};
zL.prototype.handleUpdateConnectedAppRendererCommand=function(H){if(_.p(H,_.Eir)&&this.data){var U,A;if(H=(U=_.p(H,_.Eir))==null?void 0:(A=U.newConnectedAppRenderer)==null?void 0:A.connectedAppRenderer)this.data=H}};
zL.prototype.computeConnectedAppStyle=function(H){return H.style?H.style.toLowerCase().replace(/_/g,"-"):""};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],zL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],zL.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],zL.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.q("design:type",String)],zL.prototype,"connectedAppStyle",void 0);_.G([_.dX({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],zL);
_.e(zL,"ytd-connected-app-renderer",function(){if(jA5!==void 0)return jA5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return jA5=H},{mode:1});var ILX;var QA7=function(){return _.B.apply(this,arguments)||this};
_.R(QA7,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],QA7.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],QA7.prototype,"data",void 0);_.G([_.dX({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],QA7);
_.e(QA7,"ytd-channel-options-renderer",function(){if(ILX!==void 0)return ILX;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return ILX=H},{mode:1});var VgX;var Cb=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return H};
_.R(Cb,_.B);Cb.prototype.onCheckboxChange=function(H){this.data&&(H=(this.checked=_.Rr(H).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.lx().resolve(_.YV).resolveCommand(H,{form:{element:this.hostElement}})};
Cb.prototype.handleUpdateCheckboxCommand=function(H){(H=_.p(H,_.SgK))&&this.data&&this.data.id===H.id&&(this.set("data.disabled",H.disabled),this.set("data.title",H.title))};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Cb.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Cb.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],Cb.prototype,"checked",void 0);_.G([_.dX({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Cb);
_.e(Cb,"ytd-settings-checkbox-renderer",function(){if(VgX!==void 0)return VgX;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return VgX=H},{mode:1});var Hc8;var td=function(){return _.B.apply(this,arguments)||this};
_.R(td,_.B);td.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],td.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],td.prototype,"data",void 0);_.G([_.dX({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],td);
_.e(td,"ytd-settings-email-item-renderer",function(){if(Hc8!==void 0)return Hc8;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Hc8=H},{mode:1});var U_m;var cG=function(){return _.B.apply(this,arguments)||this};
_.R(cG,_.B);cG.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"}}}};
cG.prototype.getExpansionIcon=function(H){return H?"COLLAPSE":"EXPAND"};
cG.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.D5.Object.defineProperties(cG.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],cG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],cG.prototype,"data",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],cG.prototype,"expanded",void 0);_.G([_.a("expanded"),_.q("design:type",String),_.q("design:paramtypes",[])],cG.prototype,"emailListExpanded",null);
_.G([_.hG("#options"),_.q("design:type",Object)],cG.prototype,"options",void 0);_.G([_.dX({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],cG);
_.e(cG,"ytd-settings-email-list-renderer",function(){if(U_m!==void 0)return U_m;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return U_m=H},{mode:1});var A2h;var M_$;var Wa$;var w7h;var X75;var ys=function(){return _.B.apply(this,arguments)||this};
_.R(ys,_.B);_.X=ys.prototype;_.X.computePreselectedOption=function(H,U){return U===this.itemSelected_?H:void 0};
_.X.dataChanged_=function(){var H=this;this.preselectedSubreason=this.itemSelected_=-1;var U;(U=this.data)!=null&&U.key&&_.rV(this,function(){var A,M=Number((A=H.data)==null?void 0:A.key);!Number.isNaN(M)&&(H.itemSelected_=M,A=(A=(H.data.items||[])[M])&&A.optionSelectableItemRenderer&&A.optionSelectableItemRenderer.preselectedIndex)&&(H.preselectedSubreason=A)})};
_.X.isSubReasonHidden_=function(H,U){return H!=U};
_.X.onTopItemSelected_=function(H,U){for(var A=_.c4(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),M=0,W=A.length;M<W;M++)A[M].select(0);_.yr(this.hostElement,"yt-report-form-update",[U.item.value]);H.stopPropagation()};
_.X.onItemSelected_=function(H,U){_.yr(this.hostElement,"yt-report-form-update",[U.item.value]);H.stopPropagation()};
_.X.getItem_=function(H){return H.serviceItem?H.serviceItem:H.navigationItem?H.navigationItem:H.optionSelectableItemRenderer?H.optionSelectableItemRenderer:null};
_.X.computeText_=function(H){return(H=this.getItem_(H))?this.ytRendererBehavior.getSimpleString(H.text):null};
_.X.validate=function(){return this.itemSelected_!==-1};
_.X.computeAriaLabel_=function(H){var U=_.Sp(H.text);(H=H.accessibility&&H.accessibility.accessibilityData&&H.accessibility.accessibilityData.label)&&(U+=". "+H);return U};
_.X.computeItemSelected_=function(H){return H};
_.X.preventSelection_=function(H){H.stopPropagation();this.tooltipTapped=!0};
_.X.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.X.updateItemSelectedFromBinding=function(H){this.itemSelected_=H.detail.value};
_.X.save=function(){var H;this.validate()&&(H=this.data)!=null&&H.items&&(H=this.data.items[this.itemSelected_],H!=null&&H.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(H.optionSelectableItemRenderer.submitEndpoint)||_.rs(this.hostElement,[H.optionSelectableItemRenderer.submitEndpoint])))};
ys.prototype.onPaperRippleTransitionEnd_=ys.prototype.onPaperRippleTransitionEnd_;ys.prototype.dataChanged_=ys.prototype.dataChanged_;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ys.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ys.prototype,"data",void 0);_.G([_.y({value:-1}),_.q("design:type",Number)],ys.prototype,"itemSelected_",void 0);
_.G([_.y({computed:"computeItemSelected_(itemSelected_)"}),_.q("design:type",Number)],ys.prototype,"value",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],ys.prototype,"restoreFocusOnClose",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],ys.prototype,"tooltipTapped",void 0);_.G([_.y({value:-1}),_.q("design:type",Number)],ys.prototype,"preselectedSubreason",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ys.prototype,"dataChanged_",null);_.G([_.Gl("transitionend"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ys.prototype,"onPaperRippleTransitionEnd_",null);_.G([_.b0({is:"yt-options-renderer",disableElementRegistration:!0})],ys);
_.e(ys,"yt-options-renderer",function(){if(X75===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;w7h===void 0&&(w7h=document.createElement("template"));var M=w7h;A.call(U,M.content.cloneNode(!0),H.content.firstChild);X75=H}H=X75;return H},{mode:2});var ich;var bc5;var d_5;var Ocy;var BG=function(){return _.B.apply(this,arguments)||this};
_.R(BG,_.B);BG.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
BG.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
BG.prototype.onTap=function(H){if(this.hostElement.classList.contains("selected")||_.yr(this.hostElement,"yt-share-panel-can-select-contact-action")[0])H&&H.detail&&(H.detail.x||H.detail.y)&&_.c4(this.hostElement).querySelector("#target").blur(),(H=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),H={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:H?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.yr(this.hostElement,"yt-share-panel-select-contact-action",[H])};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.G([_.y({observer:"onDataChanged"}),_.q("design:type",Object)],BG.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.q("design:type",String)],BG.prototype,"componentTitle",void 0);_.G([_.hG("#thumbnail"),_.q("design:type",Object)],BG.prototype,"thumbnail",void 0);_.G([_.b0({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],BG);
_.e(BG,"yt-enrolled-contact-renderer",function(){if(Ocy===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;d_5===void 0&&(d_5=document.createElement("template"));var M=d_5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Ocy=H}H=Ocy;return H},{mode:2});var uZy;var Zch;var r2=function(){return _.B.apply(this,arguments)||this};
_.R(r2,_.B);r2.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
r2.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
r2.prototype.onTap=function(H){if(this.hostElement.classList.contains("selected")||_.yr(this.hostElement,"yt-share-panel-can-select-contact-action")[0])H&&H.detail&&(H.detail.x||H.detail.y)&&_.c4(this.hostElement).querySelector("#target").blur(),(H=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),H={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:H?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.yr(this.hostElement,"yt-share-panel-select-contact-action",[H])};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],r2.prototype,"ytRendererBehavior",void 0);_.G([_.y({observer:"onDataChanged"}),_.q("design:type",Object)],r2.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.q("design:type",String)],r2.prototype,"componentTitle",void 0);_.G([_.hG("#thumbnail"),_.q("design:type",Object)],r2.prototype,"thumbnail",void 0);_.G([_.b0({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],r2);
_.e(r2,"yt-suggested-contact-renderer",function(){if(Zch===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;uZy===void 0&&(uZy=document.createElement("template"));var M=uZy;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Zch=H}H=Zch;return H},{mode:2});var eS=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-share-panel-reset-action":"onReset"};return H};
_.R(eS,_.B);eS.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"}}}}}};
eS.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.yr(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
eS.prototype.onReset=function(){for(var H=_.c4(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),U=H.length-1;U>=0;U--)H[U].classList.toggle("selected")};
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],eS.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],eS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y({observer:"onDataChanged"}),_.q("design:type",Object)],eS.prototype,"data",void 0);
_.G([_.b0({is:"yt-contact-section-renderer",disableElementRegistration:!0})],eS);
_.e(eS,"yt-contact-section-renderer",function(){if(bc5===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;ich===void 0&&(ich=document.createElement("template"));var M=ich;A.call(U,M.content.cloneNode(!0),H.content.firstChild);bc5=H}H=bc5;return H},{mode:2});var Dh=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return H};
_.R(Dh,_.B);_.X=Dh.prototype;_.X.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"}}}};
_.X.onYtRefreshFormCommand=function(H){var U;(H=_.p((U=_.p(H,_.w02))==null?void 0:U.formRenderer,p65))&&this.set("data",H)};
_.X.reset=function(){var H=_.c4(this.hostElement).querySelector("#fields").children;H=_.b(H);for(var U=H.next();!U.done;U=H.next())U=U.value,U.reset&&U.reset()};
_.X.getForm=function(){var H={},U=_.c4(this.hostElement).querySelector("#fields").children;U=_.b(U);for(var A=U.next();!A.done;A=U.next()){A=A.value;if(!A.validate())return null;H[A.data.key]=A.value}return H};
_.X.submitFormFields=function(){if(this.fields)for(var H=_.b(this.fields),U=H.next();!U.done;U=H.next())U=U.value,U.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?U.save():U.nodeName==="YT-OPTIONS-RENDERER"&&U.save()};
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Dh.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Dh.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Dh.prototype,"data",void 0);_.G([_.ka("#fields > *"),_.q("design:type",Array)],Dh.prototype,"fields",void 0);
_.G([_.b0({is:"yt-form-renderer",disableElementRegistration:!0})],Dh);
_.e(Dh,"yt-form-renderer",function(){if(Wa$===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;M_$===void 0&&(M_$=document.createElement("template"));var M=M_$;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Wa$=H}H=Wa$;return H},{mode:2});var $M=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return H};
_.R($M,_.B);$M.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"}}}};
$M.prototype.handleSignalActionSubmitForm=function(){var H,U=(H=this.formRenderer)==null?void 0:H.getForm();U&&this.data.serviceEndpoint&&_.lx().resolve(_.YV).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},U,{element:this.hostElement})})};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],$M.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],$M.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],$M.prototype,"data",void 0);_.G([_.hG("yt-form-renderer"),_.q("design:type",Object)],$M.prototype,"formRenderer",void 0);
_.G([_.dX({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],$M);
_.e($M,"ytd-settings-gaia-link-renderer",function(){if(A2h!==void 0)return A2h;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return A2h=H},{mode:1});var fq$;var J2$;var lg=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return H};
_.R(lg,_.B);lg.prototype.dataChanged=function(){var H=this,U;return _.u(function(A){if(A.nextAddress==1)return H.radio.removeAttribute("checked"),!H.data||!H.data.id||H.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||Dey()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(U=H.data&&H.data.id)?A.yield(lNm(H.data.id),4):A.jumpTo(3):(H.set("data.hidden",!0),A.jumpTo(0));A.nextAddress!=3&&(U=A.yieldResult);U&&_.yr(H.hostElement,"yt-select-settings-radio-option",[H.data.id]);_.DO(A)})};
lg.prototype.onButtonChanged=function(H){_.Rr(H).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.lx().resolve(_.YV).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.yr(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
lg.prototype.onSelectOption=function(H){this.data&&this.data.id&&(this.data.id===H?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
lg.prototype.dataChanged=lg.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],lg.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],lg.prototype,"ytActionHandlerBehavior",void 0);_.G([_.hG("#radio"),_.q("design:type",Object)],lg.prototype,"radio",void 0);_.G([_.y(),_.q("design:type",Object)],lg.prototype,"data",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],lg.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],lg);
_.e(lg,"ytd-settings-radio-option-renderer",function(){if(J2$!==void 0)return J2$;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return J2$=H},{mode:1});_.LG(_.o6,"basic-content-view-model",{props:{data:_.Ne,className:_.Ne}});var GL=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return H};
_.R(GL,_.B);GL.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&Dey()&&this.set("data.hidden",!1)};
GL.prototype.onSwitchReady=function(){var H=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.S("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){FJ$().then(function(U){U&&(Notification.permission==="default"?H.set("data.hidden",!1):Notification.permission==="granted"&&AC("NotificationsDisabled").then(function(A){A||_.yr(H.hostElement,"yt-toggle-settings-switch",[H.data.id,!A]);H.set("data.hidden",!1)}).catch(function(){}))})})};
GL.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},basicContentViewModel:{component:"basic-content-view-model",noInjection:!0}}}}};
GL.prototype.handleUpdateOptionsCommand=function(H){(H=_.p(H,_.Liw))&&this.data&&this.data.id===H.id&&(this.set("data.hidden",H.hidden),H.text!==void 0&&this.set("data.text",H.text),H.clearOptions&&this.set("data.options",[]))};
GL.prototype.onSwitchReady=GL.prototype.onSwitchReady;GL.prototype.dataChanged=GL.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],GL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],GL.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],GL.prototype,"data",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GL.prototype,"dataChanged",null);_.G([_.Gl("yt-settings-switch-ready"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GL.prototype,"onSwitchReady",null);_.G([_.dX({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],GL);
_.e(GL,"ytd-settings-options-renderer",function(){if(fq$!==void 0)return fq$;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return fq$=H},{mode:1});var Kaf;var YM=function(){return _.B.apply(this,arguments)||this};
_.R(YM,_.B);YM.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],YM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],YM.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],YM.prototype,"data",void 0);_.G([_.dX({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],YM);
_.e(YM,"ytd-settings-sidebar-renderer",function(){if(Kaf!==void 0)return Kaf;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Kaf=H},{mode:1});var o_h;var q3=function(){return _.B.apply(this,arguments)||this};
_.R(q3,_.B);q3.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
q3.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
q3.prototype.onYtExpanderMoreTapped=q3.prototype.onYtExpanderMoreTapped;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],q3.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],q3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],q3.prototype,"data",void 0);
_.G([_.Gl("yt-expander-more-tapped"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],q3.prototype,"onYtExpanderMoreTapped",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],q3);
_.e(q3,"ytd-product-details-description-renderer",function(){if(o_h!==void 0)return o_h;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return o_h=H},{mode:1});var Fa5;var hd=function(){var H=_.B.apply(this,arguments)||this;H.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";H.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";H.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";H.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return H};
_.R(hd,_.B);hd.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.D5.Object.defineProperties(hd.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.data)==null?void 0:(U=H.offerData)==null?void 0:U.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.data)==null?void 0:H.purchaseButtonRenderers)!==void 0&&((U=this.data)==null?void 0:U.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var H,U;return!((H=this.data)==null||!H.formattedFromMerchantText)&&(!((U=this.data)==null||!U.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],hd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],hd.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],hd.prototype,"data",void 0);
_.G([_.y({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.q("design:type",Object)],hd.prototype,"shippingIcon",void 0);_.G([_.y({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.q("design:type",Object)],hd.prototype,"shippingAddressIcon",void 0);_.G([_.y({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.q("design:type",Object)],hd.prototype,"googleGuaranteeIcon",void 0);
_.G([_.y({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.q("design:type",Object)],hd.prototype,"returnPolicyIcon",void 0);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],hd.prototype,"showAdditionalFees",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],hd.prototype,"showMultiPurchaseButtons",null);
_.G([_.a("data","showMultiPurchaseButtons"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],hd.prototype,"showPurchaseData",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],hd);
_.e(hd,"ytd-product-details-hero-offer-renderer",function(){if(Fa5!==void 0)return Fa5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Fa5=H},{mode:1});var Pt5;var sBm;var kM=function(){return _.B.apply(this,arguments)||this};
_.R(kM,_.B);_.X=kM.prototype;_.X.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.X.onKeyDown=function(H){H=H.keyCode;H!==13&&H!==32||this.handleSelection()};
_.X.onMouseEnterImage=function(){var H;((H=this.data)==null?void 0:H.thumbnailDetails)!==void 0&&_.Bg(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.X.onMouseLeaveImage=function(){_.Bg(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.X.handleSelection=function(){this.data&&_.cg(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.D5.Object.defineProperties(kM.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.isSelected)}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],kM.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],kM.prototype,"isSelected",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],kM);
_.e(kM,"ytd-product-details-thumbnail-renderer",function(){if(sBm!==void 0)return sBm;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return sBm=H},{mode:1});var vG=function(){var H=_.B.apply(this,arguments)||this;var U={};H.actionMap=(U["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",U["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",U);H.selectedThumbnailIndex=0;H.selectItem=function(A){A.target.onKeyDown(A)};
return H};
_.R(vG,_.B);_.X=vG.prototype;_.X.handlePreviewImageSelect=function(H){this.hoverThumbnail=H};
_.X.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.X.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.X.onThumbnailSelected=function(H,U){this.selectedThumbnailIndex=U};
_.X.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.X.updateOffset=function(){var H=_.c4(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-H));this.ytdHorizontalListBehavior.reposition_()};
_.D5.Object.defineProperties(vG.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null?0:H.imageRenderer){var U,A;return((U=this.data)==null?void 0:(A=U.imageRenderer)==null?void 0:A.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var H;if((H=this.data)==null?0:H.imageRenderer){var U;return(U=_.p(this.data.imageRenderer[this.selectedThumbnailIndex],vu5))==null?void 0:U.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var H=this,U,A,M,W=(M=(U=this.data)==null?void 0:(A=U.imageRenderer)==null?void 0:A.map(function(w,d){return{productDetailsThumbnailRenderer:Object.assign({},_.p(w,vu5),{index:d,isSelected:d===H.selectedThumbnailIndex})}}))!=null?M:[];
return Object.assign({},this.data,{imageRenderer:W})}}});
vG.prototype.updateOffset=vG.prototype.updateOffset;vG.prototype.dataChanged=vG.prototype.dataChanged;vG.prototype.onThumbnailSelected=vG.prototype.onThumbnailSelected;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],vG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.x0.YtdHorizontalListBehavior),_.q("design:type",Object)],vG.prototype,"ytdHorizontalListBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],vG.prototype,"componentBehavior",void 0);_.G([_.g([_.$y.YtActionHandlerBehavior]),_.q("design:type",Object)],vG.prototype,"actionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],vG.prototype,"data",void 0);_.G([_.y({value:"$.items.children"}),_.q("design:type",String)],vG.prototype,"itemsPath",void 0);_.G([_.y({value:3}),_.q("design:type",Number)],vG.prototype,"initialCount",void 0);
_.G([_.hG("#items"),_.q("design:type",Object)],vG.prototype,"items",void 0);_.G([_.y(),_.q("design:type",Object)],vG.prototype,"selectedThumbnailIndex",void 0);_.G([_.y(),_.q("design:type",Object)],vG.prototype,"hoverThumbnail",void 0);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],vG.prototype,"showThumbnails",null);
_.G([_.Gl("ytd-product-details-thumbnail-renderer-selected"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Number]),_.q("design:returntype")],vG.prototype,"onThumbnailSelected",null);_.G([_.a("data","selectedThumbnailIndex","hoverThumbnail"),_.q("design:type",Object),_.q("design:paramtypes",[])],vG.prototype,"thumbnailDetails",null);_.G([_.a("data","selectedThumbnailIndex"),_.q("design:type",Object),_.q("design:paramtypes",[])],vG.prototype,"populatedData",null);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vG.prototype,"dataChanged",null);_.G([_.Gl("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vG.prototype,"updateOffset",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],vG);
_.e(vG,"ytd-product-details-image-carousel-renderer",function(){if(Pt5!==void 0)return Pt5;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Pt5=H},{mode:2});var n_p;var TL=function(){return _.B.apply(this,arguments)||this};
_.R(TL,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],TL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],TL.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],TL.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],TL);
_.e(TL,"ytd-product-details-offer-renderer",function(){if(n_p!==void 0)return n_p;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return n_p=H},{mode:1});var Nrh;var jS=function(){var H=_.B.apply(this,arguments)||this;H.isOffersHidden=!0;return H};
_.R(jS,_.B);jS.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var H,U=_.p((H=this.data)==null?void 0:H.viewOffersButton,_.f$);U&&this.ytRendererBehavior.logExplicitClick(U)};
jS.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.D5.Object.defineProperties(jS.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M;return(A=_.p((H=this.data)==null?void 0:(U=H.offers)==null?void 0:U[0],QX5))==null?void 0:(M=A.offerData)==null?void 0:M.vendorLogoUrl}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],jS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],jS.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],jS.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],jS.prototype,"isOffersHidden",void 0);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],jS.prototype,"firstOfferVendorLogoUrl",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],jS);
_.e(jS,"ytd-product-details-offers-container-renderer",function(){if(Nrh!==void 0)return Nrh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Nrh=H},{mode:1});var SJj;var p7f;var Iq=function(){return _.B.apply(this,arguments)||this};
_.R(Iq,_.B);Iq.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Iq.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Bg(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Iq.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Bg(this,"ytd-product-details-variant-image-unselect")};
_.D5.Object.defineProperties(Iq.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 H;return((H=this.data)==null?void 0:H.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return((H=this.data)==null?void 0:H.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((U=this.data)==null?void 0:U.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((A=this.data)==null?void 0:A.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var H;if(((H=this.data)==null?void 0:H.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var H,U;return this.isUnavailable?(H=this.data)==null?void 0:H.variantOptionUnavailableAccessibilityLabel:(U=this.data)==null?void 0:U.variantOptionAccessibilityLabel}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Iq.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Iq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Iq.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Iq.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],Iq.prototype,"displayType",void 0);
_.G([_.a("displayType","data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Iq.prototype,"isImageButton",null);_.G([_.a("displayType","data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Iq.prototype,"isPillButton",null);_.G([_.a("data"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Iq.prototype,"isActive",null);
_.G([_.a("data"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Iq.prototype,"isUnavailable",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iq.prototype,"thumbnailDetails",null);_.G([_.a("isUnavailable","data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iq.prototype,"accessibilityLabel",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Iq);
_.e(Iq,"ytd-product-details-variant-option-renderer",function(){if(p7f!==void 0)return p7f;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return p7f=H},{mode:1});var Lam;var Qs=function(){var H=_.B.apply(this,arguments)||this;H.variantsExpanded=!1;H.hideShowMoreLessVariantButton=!0;H.initialized=!1;H.computeVariantsDebouncer=null;H.computeVariants=function(U){U=U===void 0?!1:U;H.variantsExpanded||H.showOptions()||!U||(H.variantsExpanded=!0);if(H.variantsExpanded){U=_.b(H.items.children);for(var A=U.next();!A.done;A=U.next())A.value.hidden=!1}H.initialized=!0};
return H};
_.R(Qs,_.B);_.X=Qs.prototype;_.X.ready=function(){var H=this;setTimeout(function(){H.computeVariants(!0)})};
_.X.showOptions=function(){for(var H=_.b(this.items.children),U=H.next();!U.done;U=H.next())U.value.hidden=!0;var A=this.container.getBoundingClientRect().width,M=0,W=H=0;U=!1;for(var w=_.b(this.items.children),d=w.next();!d.done;d=w.next()){d=d.value;d.hidden=!1;var O=d.getBoundingClientRect().width;if(M+O<A)M+=O;else if(++W<2)M=O;else break;H+=1;d.hasAttribute("is-active")&&(U=!0)}for(A=H;A<this.items.children.length;A++)this.items.children[A].hidden=!0;this.hideShowMoreLessVariantButton=H===this.items.children.length;
return U};
_.X.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.yF(this.computeVariantsDebouncer,_.p3.after(100),this.computeVariants)};
_.X.onShowMoreLessVariantsButtonClick=function(){var H;(H=this.data)!=null&&H.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.X.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.D5.Object.defineProperties(Qs.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var H,U,A=(H=this.data)==null?void 0:(U=H.variantOptionRenderers)==null?void 0:U.find(function(w){return _.p(w,jXY).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),M,W;
return(W=(M=_.p(A,jXY))==null?void 0:M.name)!=null?W:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.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"}}}});
Qs.prototype.debouncedComputeVariants=Qs.prototype.debouncedComputeVariants;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Qs.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Qs.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Qs.prototype,"componentBehavior",void 0);_.G([_.g(_.Qo),_.q("design:type",Object)],Qs.prototype,"ironResizableBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],Qs.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Qs.prototype,"variantsExpanded",void 0);_.G([_.y(),_.q("design:type",Object)],Qs.prototype,"hideShowMoreLessVariantButton",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Qs.prototype,"initialized",void 0);_.G([_.hG("#items"),_.q("design:type",HTMLDivElement)],Qs.prototype,"items",void 0);_.G([_.hG("#container"),_.q("design:type",HTMLDivElement)],Qs.prototype,"container",void 0);
_.G([_.hG("#more-variants-button"),_.q("design:type",HTMLElement)],Qs.prototype,"moreVariantsButton",void 0);_.G([_.a("data"),_.q("design:type",String),_.q("design:paramtypes",[])],Qs.prototype,"selectedOptionName",null);_.G([_.Ya("data","variantsExpanded"),_.Gl("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Qs.prototype,"debouncedComputeVariants",null);
_.G([_.a("data"),_.q("design:type",String),_.q("design:paramtypes",[])],Qs.prototype,"displayType",null);_.G([_.a("displayType"),_.q("design:type",Object),_.q("design:paramtypes",[])],Qs.prototype,"variantItemsClassname",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Qs);
_.e(Qs,"ytd-product-details-variant-renderer",function(){if(Lam!==void 0)return Lam;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Lam=H},{mode:1});var Vs=function(){return _.B.apply(this,arguments)||this};
_.R(Vs,_.B);
Vs.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"}}}};
_.D5.Object.defineProperties(Vs.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var H,U,A=(U=_.p((H=this.data)==null?void 0:H.offersContainerRenderer,IE5))==null?void 0:U.offers;return A!==void 0&&(A==null?void 0:A.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 H,U,A;return((A=(H=this.data)==null?void 0:(U=H.variants)==null?void 0:U.map(function(M){var W,w;M=(w=(W=_.p(M,TWf))==null?void 0:W.variantOptionRenderers)==null?void 0:w.find(function(O){var f;return((f=_.p(O,jXY))==null?void 0:f.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var d;return(d=_.p(M,jXY))==null?void 0:d.name}).filter(function(M){return typeof M==="string"}))!=null?A:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M=(U=_.p((H=this.data)==null?void 0:H.shoppingFlaggingRenderer,VYm))==null?void 0:(A=U.reportButton)==null?void 0:A.buttonRenderer;if(M)return{text:M.text,command:M.command,icon:{iconType:"FLAG"},accessibilityData:M.accessibilityData,trackingParams:M.trackingParams,loggingDirectives:M.loggingDirectives}}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Vs.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Vs.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Vs.prototype,"data",void 0);_.G([_.hG("#image-carousel-renderer"),_.q("design:type",Object)],Vs.prototype,"imageCarouselRenderer",void 0);
_.G([_.hG("#hero-offer-renderer"),_.q("design:type",Object)],Vs.prototype,"productDetailsHeroOfferRenderer",void 0);_.G([_.hG("#variants"),_.q("design:type",Object)],Vs.prototype,"productDetailsVariantRenderer",void 0);_.G([_.hG("#offers"),_.q("design:type",Object)],Vs.prototype,"productDetailsOffersContainerRenderer",void 0);_.G([_.hG("#description-renderer"),_.q("design:type",Object)],Vs.prototype,"productDetailsDescriptionRenderer",void 0);
_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Vs.prototype,"showPurchaseData",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Vs.prototype,"showHeroOfferRenderer",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Vs.prototype,"showBrandText",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Vs.prototype,"showOffers",null);
_.G([_.a("showOffers","showPurchaseData"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Vs.prototype,"showBuySeparator",null);_.G([_.a("showOffers","showPurchaseData"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Vs.prototype,"showBuyCard",null);_.G([_.a("data"),_.q("design:type",String),_.q("design:paramtypes",[])],Vs.prototype,"selectedVariantsText",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Vs.prototype,"shoppingReportingButtonData",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],Vs);
_.e(Vs,"ytd-product-details-renderer",function(){if(SJj!==void 0)return SJj;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return SJj=H},{mode:1});var R77;var E_7;var m_B;var HP=function(){return _.B.apply(this,arguments)||this};
_.R(HP,_.B);HP.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.D5.Object.defineProperties(HP.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],HP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],HP.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],HP.prototype,"formattedAmount",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],HP.prototype,"ariaLabel",void 0);
_.G([_.y({reflectToAttribute:!0}),_.a("data.style"),_.q("design:type",String),_.q("design:paramtypes",[])],HP.prototype,"vcBalanceWidgetStyle",null);_.G([_.b0({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],HP);
_.e(HP,"yt-vc-balance-renderer",function(){if(m_B===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;E_7===void 0&&(E_7=document.createElement("template"));var M=E_7;A.call(U,M.content.cloneNode(!0),H.content.firstChild);m_B=H}H=m_B;return H},{mode:2});_.Qm("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var U1=function(){return _.B.apply(this,arguments)||this};
_.R(U1,_.B);_.D5.Object.defineProperties(U1.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:""}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],U1.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],U1.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],U1.prototype,"data",void 0);_.G([_.y({selectorArgs:["data.vcBalanceEntityKey"],selector:function(H,U){return _.rH(H.entities,"vcBalanceEntity",U)}}),
_.q("design:type",Object)],U1.prototype,"vcBalanceEntity",void 0);_.G([_.a("vcBalanceEntity"),_.q("design:type",String),_.q("design:paramtypes",[])],U1.prototype,"formattedAmount",null);_.G([_.a("vcBalanceEntity"),_.q("design:type",String),_.q("design:paramtypes",[])],U1.prototype,"vcBalanceAriaLabel",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],U1);
_.e(U1,"ytd-vc-balance-renderer",function(){if(R77!==void 0)return R77;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return R77=H},{mode:1});var g_h;var AU=function(){var H=_.B.apply(this,arguments)||this;H.expandableCustomTabRenderable=function(U){return uYm(U,function(){return void H.onSearchNavigate()})};
return H};
_.R(AU,_.B);AU.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
AU.prototype.onSearchNavigate=function(){this.selected=void 0};
AU.prototype.onTabsChange=function(){var H,U=(H=this.tabs)==null?void 0:H.findIndex(function(A){var M;return A==null?void 0:(M=A.tabRenderer)==null?void 0:M.selected});
U!==void 0&&(this.selected=U)};
AU.prototype.onTabsActive=function(H){if(this.tabs!==void 0){var U,A;(H=(U=this.tabs[H.detail.selected])==null?void 0:(A=U.tabRenderer)==null?void 0:A.endpoint)&&_.cg(this.hostElement,"yt-navigate",{endpoint:H})}};
_.D5.Object.defineProperties(AU.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:JIy(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
AU.prototype.onTabsChange=AU.prototype.onTabsChange;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],AU.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.fm),_.q("design:type",Object)],AU.prototype,"ytdGridStateAwareBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],AU.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],AU.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],AU.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Array)],AU.prototype,"tabs",void 0);_.G([_.y(),_.q("design:type",Number)],AU.prototype,"selected",void 0);_.G([_.a("tabs.*"),_.q("design:type",Object),_.q("design:paramtypes",[])],AU.prototype,"tabGroupShape",null);_.G([_.y(),_.q("design:type",Object)],AU.prototype,"expandableCustomTabRenderable",void 0);
_.G([_.a("tabs"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],AU.prototype,"tabsEnabled",null);_.G([_.jk("tabs"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],AU.prototype,"onTabsChange",null);_.G([_.dX({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],AU);
_.e(AU,"ytd-topic-channel-details-renderer",function(){if(g_h!==void 0)return g_h;var H=document.createElement("template");_.E(H,'\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        <template is="dom-if" if="[[tabGroupShape]]" 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        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return g_h=H},{mode:1});var aqf;var MW=function(){var H=_.B.apply(this,arguments)||this;H.disableGridStateAware=!1;return H};
_.R(MW,_.B);MW.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]]"}}}}}};
MW.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
MW.prototype.updateCssVars=function(){_.Dt(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.hr("rich_grid_max_item_width",500))+16)-16+"px"})};
MW.prototype.updateCssVars=MW.prototype.updateCssVars;MW.prototype.activeChanged=MW.prototype.activeChanged;_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],MW.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],MW.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],MW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],MW.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Array)],MW.prototype,"tabs",void 0);_.G([_.y(),_.q("design:type",Boolean)],MW.prototype,"active",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],MW.prototype,"disableGridStateAware",void 0);
_.G([_.y({selector:_.Xz}),_.q("design:type",Number)],MW.prototype,"richGridItemsPerRow",void 0);_.G([_.y({selector:_.w1}),_.q("design:type",Boolean)],MW.prototype,"richGridMiniMode",void 0);_.G([_.hG("ytd-carousel-item-renderer"),_.q("design:type",Object)],MW.prototype,"carousel",void 0);_.G([_.Ya("active"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],MW.prototype,"activeChanged",null);
_.G([_.Ya("richGridItemsPerRow","richGridMiniMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],MW.prototype,"updateCssVars",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],MW);
_.e(MW,"ytd-carousel-header-renderer",function(){if(aqf!==void 0)return aqf;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return aqf=H},{mode:1});var x_Y;var z77=_.NP(["https://www.google-analytics.com/analytics.js"]),WP=function(){var H=_.B.apply(this,arguments)||this;H.scriptAnalyticsAdded=!1;return H};
_.R(WP,_.B);WP.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var H,U=(H=this.data)==null?void 0:H.tagManagerId;U&&(_.VN(U,_.gD("GL")),Uyy(U))};
WP.prototype.sendGoogleAnalyticsPageview=function(H){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var A=_.QY.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(A)};
var U=window.ga;U("set","page",window.location.pathname);U.l=+new Date;U("set","forceSSL",!0);U("create",H,"'auto'");U("send","pageview")};
WP.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var H=_.Q9("SCRIPT");H.name="ga-analytics";var U=_.LF(z77);_.J$(H,U);H.async=!0;_.c4(this.hostElement).appendChild(H)};
WP.prototype.dataChanged=WP.prototype.dataChanged;_.G([_.y(),_.q("design:type",Object)],WP.prototype,"data",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],WP.prototype,"dataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],WP);
_.e(WP,"ytd-channel-metadata-renderer",function(){if(x_Y!==void 0)return x_Y;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return x_Y=H},{mode:1});var Ctp;var t_h;var c27=function(){return _.B.apply(this,arguments)||this};
_.R(c27,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],c27.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],c27.prototype,"data",void 0);_.G([_.dX({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],c27);
_.e(c27,"ytd-sub-feed-option-renderer",function(){if(t_h!==void 0)return t_h;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return t_h=H},{mode:1});var y2y;var wQ=function(){return _.B.apply(this,arguments)||this};
_.R(wQ,_.B);wQ.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],wQ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],wQ.prototype,"ytRendererStamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],wQ.prototype,"data",void 0);_.G([_.dX({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],wQ);
_.e(wQ,"ytd-sub-feed-selector-renderer",function(){if(y2y!==void 0)return y2y;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return y2y=H},{mode:1});var XN=function(){return _.B.apply(this,arguments)||this};
_.R(XN,_.B);
XN.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}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],XN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],XN.prototype,"data",void 0);_.G([_.dX({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],XN);
_.e(XN,"ytd-browse-feed-actions-renderer",function(){if(Ctp!==void 0)return Ctp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Ctp=H},{mode:1});var Brh;var r2m;var i_=function(){return _.B.apply(this,arguments)||this};
_.R(i_,_.B);i_.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],i_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],i_.prototype,"data",void 0);_.G([_.dX({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],i_);
_.e(i_,"ytd-mini-channel-renderer",function(){if(r2m!==void 0)return r2m;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return r2m=H},{mode:1});var e7y;var b_=function(){return _.B.apply(this,arguments)||this};
_.R(b_,_.B);b_.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],b_.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],b_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],b_.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],b_);
_.e(b_,"ytd-vertical-channel-section-renderer",function(){if(e7y!==void 0)return e7y;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return e7y=H},{mode:1});var dQ=function(){return _.B.apply(this,arguments)||this};
_.R(dQ,_.B);dQ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],dQ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],dQ.prototype,"data",void 0);_.G([_.dX({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],dQ);
_.e(dQ,"ytd-browse-secondary-contents-renderer",function(){if(Brh!==void 0)return Brh;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
return Brh=H},{mode:1});var D_$;var O1=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};H.notActive=!1;H.isConstrainedList=!1;H.marginSettings=0;return H};
_.R(O1,_.B);_.X=O1.prototype;
_.X.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]]",marginSettings:"[[marginSettings]]"},matcher:function(H){var U;return(H==null?void 0:(U=H.webComponentHint)==null?void 0:U.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?
"yt-section-list-renderer":"ytd-section-list-renderer"}}}},
"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}}}}};
_.X.getPath=function(H,U){var A="data.tabs.#"+U+".";H.tabs[U].tabRenderer?A+="tabRenderer.":H.tabs[U].expandableTabRenderer&&(A+="expandableTabRenderer.");return A+"content.sectionListRenderer"};
_.X.computeDisplayedContent=function(H){this.unlinkPaths("content");if(H&&H.tabs)for(var U=H.tabs.length,A=0;A<U;A++){var M=H.tabs[A].tabRenderer||H.tabs[A].expandableTabRenderer;if(M.selected&&M.content)return this.linkPaths("content",this.getPath(H,A)),M.content}return null};
_.X.computeHasSecondaryColumnData=function(H){return!!H&&!!H.secondaryContents};
_.X.onRetrieveLocation=function(H,U){U.locationRetrieved(U.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);H.stopPropagation()};
_.X.onYtServiceRequestSent=function(H,U){_.S("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(U)};
_.X.onYtServiceRequestCompleted=function(H,U){_.S("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(U)};
_.X.onReplaceFeedContentAction=function(H){if(!_.S("replace_feed_content_action_killswitch")&&!this.notActive){var U;(H=(U=_.p(H,yeB))==null?void 0:U.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(H)}};
_.X.handleServiceRequestActions=function(H){if(H=H.actions){H=_.b(H);for(var U=H.next();!U.done;U=H.next()){U=U.value;var A=void 0;((A=_.p(U,yeB))==null?0:A.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.p(U,yeB).items)}}};
O1.prototype.onYtServiceRequestCompleted=O1.prototype.onYtServiceRequestCompleted;O1.prototype.onYtServiceRequestSent=O1.prototype.onYtServiceRequestSent;O1.prototype.onRetrieveLocation=O1.prototype.onRetrieveLocation;_.G([_.g(_.fm),_.q("design:type",Object)],O1.prototype,"ytdGridStateAwareBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],O1.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],O1.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],O1.prototype,"data",void 0);_.G([_.y({computed:"computeDisplayedContent(data)"}),_.q("design:type",Object)],O1.prototype,"content",void 0);
_.G([_.y({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],O1.prototype,"hasSecondaryColumnData",void 0);_.G([_.y({value:function(){return window.outerHeight>1024?3:2}}),
_.q("design:type",Number)],O1.prototype,"initialCount",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],O1.prototype,"pageSubtype",void 0);_.G([_.hG("ytd-section-list-renderer"),_.q("design:type",Object)],O1.prototype,"listRenderer",void 0);_.G([_.y(),_.q("design:type",Object)],O1.prototype,"notActive",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],O1.prototype,"isConstrainedList",void 0);
_.G([_.y(),_.q("design:type",String)],O1.prototype,"responsiveSizing",void 0);_.G([_.y(),_.q("design:type",Number)],O1.prototype,"marginSettings",void 0);_.G([_.Gl("yt-retrieve-location"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],O1.prototype,"onRetrieveLocation",null);
_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],O1.prototype,"onYtServiceRequestSent",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],O1.prototype,"onYtServiceRequestCompleted",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],O1);
_.e(O1,"ytd-two-column-browse-results-renderer",function(){if(D_$!==void 0)return D_$;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return D_$=H},{mode:2});var $_5;var lq8;var u_=function(){var H=_.B.apply(this,arguments)||this;H.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"]);H.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"]);H.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return H};
_.R(u_,_.B);_.X=u_.prototype;_.X.attached=function(){this.requestElementsPerRow()};
_.X.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_]]"}}}}}};
_.X.onUpdateElementsPerRowAction=function(H){H&&this.elementsPerRow!==H&&(this.elementsPerRow=H)};
_.X.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.X.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.X.computeAlertStyle_=function(H){return H};
_.X.observerElementsPerRow=function(){this.elementsPerRow&&_.Dt(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.X.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.X.requestElementsPerRow=function(){_.cg(this.hostElement,"yt-request-elements-per-row")};
u_.prototype.onIsVisibleChanged_=u_.prototype.onIsVisibleChanged_;u_.prototype.observerElementsPerRow=u_.prototype.observerElementsPerRow;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],u_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],u_.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],u_.prototype,"actionHandlerBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],u_.prototype,"data",void 0);_.G([_.y({value:6,reflectToAttribute:!0}),_.q("design:type",Number)],u_.prototype,"elementsPerRow",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],u_.prototype,"wrapButtons",void 0);_.G([_.y({value:_.gD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.q("design:type",Boolean)],u_.prototype,"isMusic",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.q("design:type",String)],u_.prototype,"alertStyle",void 0);_.G([_.y({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.q("design:type",Function)],u_.prototype,"dismissBoundButtonTap_",void 0);_.G([_.y({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.q("design:type",Function)],u_.prototype,"acceptBoundButtonTap_",void 0);_.G([_.Ya("elementsPerRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],u_.prototype,"observerElementsPerRow",null);_.G([_.Ya("data.isVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],u_.prototype,"onIsVisibleChanged_",null);_.G([_.b0({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],u_);
_.e(u_,"yt-alert-with-actions-renderer",function(){if(lq8===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;$_5===void 0&&($_5=document.createElement("template"));var M=$_5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);lq8=H}H=lq8;return H},{mode:2});var Gdj=_.r(function(H){var U={};return _.Z(_.Pb,{text:H.text,className:_.CG("ytPersonalGreetingViewModelHeadline",(U.ytPersonalGreetingViewModelHeadlineSmall=H.isSmallHeadline,U))})},"tk");_.LG(_.r(function(H){var U=_.Wq(function(){var n;return(n=H.data())==null?void 0:n.rendererContext},void 0,void 0,void 0,!0),A=function(){return H.data().canvasPromoData},M=function(){var n;
return(n=H.data().bannerHeight)!=null?n:56},W=_.b(_.vq({throttleMs:100})),w=W.next().value;
W=W.next().value;var d=_.b(_.vq({throttleMs:100})),O=d.next().value;d=d.next().value;var f=_.b(_.vq({throttleMs:100})),J=f.next().value;f=f.next().value;var F=function(){return O.width()-w.width()>1},P=function(){return M()===48};
return _.Z("yt-personal-greeting-view-model",{el:_.sB(U,W),"aria-hidden":F,class:_.CG(H.className,"ytPersonalGreetingViewModelHost"),style:_.rA({height:(0,_.JQ)(function(){return F()?0:M()})})},_.Z(_.K,{cond:function(){return H.data().avatar&&!(J.width()+(H.data().avatar?48:0)-w.width()>1)},
then:function(){return _.Z(_.YY,{data:function(){return H.data().avatar}},{decoratedAvatarViewModel:function(n){return _.Z(_.Od,{data:n.data,
className:_.CG("ytPersonalGreetingViewModelAvatar")})}})}}),_.Z("h1",null,_.Z(Gdj,{text:function(){var n;
return(A==null?void 0:(n=A())==null?void 0:n.headline)||(J.width()+(H.data().avatar?48:0)-w.width()>1?H.data().shorterGreeting:H.data().greeting)},
isSmallHeadline:P})),_.Z("span",{el:_.sB(f),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.Z(Gdj,{text:function(){return H.data().greeting},
isSmallHeadline:P})),_.Z("span",{el:_.sB(d),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.Z(Gdj,{text:function(){return H.data().shorterGreeting},
isSmallHeadline:P})))},"sk"),"yt-personal-greeting-view-model",{props:{data:_.sY,
className:_.sY}});var ZL=function(){var H=_.B.apply(this,arguments)||this;H.hidden=!1;H.isConstrainedList=!1;H.responsiveSizing="COMPACT";H.attachedPlayers=_.S("kevlar_channel_trailer_multi_attach")?[]:void 0;H.player=null;H.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return H};
_.R(ZL,_.B);_.X=ZL.prototype;
_.X.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:{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},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.X.created=function(){var H=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){H.disposeMastheadAd()}]};
_.X.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new dW5(this.refresh,this.contents))};
_.X.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.X.activeChanged=function(){var H=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=H)};
_.X.tabsChanged=function(){var H=this,U,A;if(this.pageSubtype==="channels"||_.S("kevlar_tab_gestures_for_tabbed_header_data")&&((U=this.data)==null?0:(A=U.header)==null?0:A.carouselHeaderRenderer))this.tabGestures=new Zim(this.contents,this.contents,this.hostElement,this.header,function(d){H.ytdReduxBehavior.dispatch(d)});
var M,W,w;U=(M=this.data)==null?void 0:(W=M.contents)==null?void 0:(w=W.twoColumnBrowseResultsRenderer)==null?void 0:w.tabs;this.tabGestures&&this.tabGestures.tabsChanged(U)};
_.X.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.X.engagementPanelsChanged=function(){var H=_.lx().resolve(_.Mx);if(H){if(this.engagementPanels)for(var U=_.b(this.engagementPanels),A=U.next();!A.done;A=U.next()){var M=void 0;(A=(M=A.value.identifier)==null?void 0:M.tag)&&H.panelMap.delete(A)}this.engagementPanels=[];var W;U=_.b(((W=this.data)==null?void 0:W.panels)||[]);for(W=U.next();!W.done;W=U.next()){W=_.p(W.value,lop);var w=A=void 0,d=void 0,O=void 0;if(M=((A=W)==null?void 0:A.targetId)||((w=W)==null?void 0:w.panelIdentifier)||((d=W)==null?
void 0:(O=d.identifier)==null?void 0:O.tag))w=A=void 0,(w=(A=H).registerPanelContent)==null||w.call(A,M,{engagementPanelSectionListRenderer:W}),this.engagementPanels.push(W)}}};
_.X.onStampFinished=function(){var H=this;_.rV(this,function(){if(H.tabGestures){var U=H.tabGestures;if(U.scrollPositionNeedsUpdate){var A=_.lx().resolve(_.$V(_.SI)),M;if((M=U.selectedTab)!=null&&M.title&&A&&(M=A.getCurrentPage())){if(U.scrollPositionForTabs.has(U.selectedTab.title)){var W,w;A=(w=(W=A.getCurrentPage())==null?void 0:W.clientHeight)!=null?w:0;W=U.scrollPositionForTabs.get(U.selectedTab.title);M.setScrollTop(W);A>W+100&&(U.scrollPositionNeedsUpdate=!1)}else M.setScrollTop(Math.min(U.lastVisitedTabScrollPosition!==
void 0?U.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,U.tabsStartAtInPx)),U.scrollPositionNeedsUpdate=!1;U.ytdReduxDispatch(eeY(!1))}}}})};
_.X.loadPage_=function(H){this.initCsi();H&&(this.data=H);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.X.getTitle=function(H){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",H))return this.get("microformat.microformatDataRenderer.title",H);if(this.get("header.feedTabbedHeaderRenderer.title",H))return _.Sp(this.get("header.feedTabbedHeaderRenderer.title",H));if(this.get("header.interactiveTabbedHeaderRenderer.title",H))return this.get("header.interactiveTabbedHeaderRenderer.title",H);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
H))return _.Sp(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",H));var U,A;return(H==null?0:(U=H.header)==null?0:(A=U.pageHeaderRenderer)==null?0:A.pageTitle)?H.header.pageHeaderRenderer.pageTitle:""};
_.X.updateTitle=function(H){_.cg(this.hostElement,"yt-update-title",this.getTitle(H))};
_.X.initCsi=function(){f2p(this.pageSubtype||"browse",["ol","cpt"])};
_.X.getPlayer=function(){if(_.S("kevlar_channel_trailer_multi_attach")){for(var H=_.b(this.attachedPlayers),U=H.next();!U.done;U=H.next())if(U=U.value,U.isConnected||_.t8(this.hostElement,U))return U;return null}return this.player};
_.X.getPlayerContainer=function(){return null};
_.X.onPlayerAttached=function(H,U){_.S("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(U):this.player=U};
_.X.onPlayerDetached=function(H,U){_.S("kevlar_channel_trailer_multi_attach")?(H=this.attachedPlayers.indexOf(U),H<0||this.attachedPlayers.splice(H,1)):this.player=null};
_.X.getServiceTrackingParams=function(){var H,U;return((H=this.data)==null?void 0:(U=H.responseContext)==null?void 0:U.serviceTrackingParams)||[]};
_.X.setMastheadAd=function(H){H&&H.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=H&&H.mastheadAd};
_.X.dataChanged=function(){var H=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||pOX();_.rV(this,function(){_.Bg(H.hostElement,"ytd-update-grid-state-action")})};
_.X.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.X.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var H=this.data.alerts;return H&&H.find(function(U){return!!U.alertWithActionsRenderer})}};
_.X.computeGreetingData=function(){if(this.data&&this.data.alerts){var H=this.data.alerts;return H&&H.find(function(U){return!!U.personalGreetingViewModel})}};
_.X.computeHasMemberHubProfileRenderer=function(H){var U;return!!(H==null?0:(U=H.header)==null?0:U.memberHubProfileRenderer)};
_.X.handleAlertCommand=function(H){this.get("alertCommand.alert.alertWithActionsRenderer",H)&&(H=_.p(H,HjB),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",H.alert))};
_.X.handleYtPlaylistDeletionRedirect=function(H){H=this.get("playlistDeletionRedirectCommand.redirectEndpoint",H);_.cg(this.hostElement,"yt-navigate",{endpoint:H})};
_.X.computeFluidWidth=function(H,U,A){if(U==="mini_app"||A)return!0;var M,W,w;H=H==null?void 0:(M=H.contents)==null?void 0:(W=M.twoColumnBrowseResultsRenderer)==null?void 0:(w=W.tabs)==null?void 0:w.find(function(f){var J;return f==null?void 0:(J=f.tabRenderer)==null?void 0:J.selected});
if(!H)return!1;var d,O;return!!((d=H.tabRenderer)==null?0:(O=d.content)==null?0:O.richGridRenderer)&&!["channel","channels","playables"].includes(U)};
_.X.computeHeaderFluidWidth=function(H){return H==="hashtag-landing-page"};
_.X.computeHasSidebar=function(H){var U;return!!(H.sidebar||((U=H.header)==null?0:U.playlistHeaderRenderer))};
_.X.computeHasPageHeaderSidebar=function(H){var U,A;return!!((U=H.header)==null?0:(A=U.pageHeaderRenderer)==null?0:A.enableSidebarView)};
_.X.computeUseUnifiedShowPageLayout=function(H){if(!H||this.pageSubtype!=="show"||!H.sidebar||!H.sidebar.playlistSidebarRenderer)return!1;H=H.sidebar.playlistSidebarRenderer;if(!H.items)return!1;for(var U=0;U<H.items.length;U++)if(_.p(H.items[U],md$)){var A=void 0;return((A=_.p(H.items[U],md$))==null?void 0:A.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.X.computeIsConstrainedList=function(H){return H==="subscriptions-channels"};
_.X.computeResponsiveSizing=function(H){return H==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.D5.Object.defineProperties(ZL.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var H,U;return((H=this.data)==null?0:(U=H.header)==null?0:U.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var H,U;if(!((H=this.data)==null?0:(U=H.sidebar)==null?0:U.playlistSidebarRenderer))return!1;var A;return(A=this.data)!=null&&A.header?!1:!0}}});
_.D5.Object.defineProperties(ZL,{template:{configurable:!0,enumerable:!0,get:function(){if(fL5===void 0){var H=document.createElement("template");_.E(H,'\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]]" display-as-sidebar="">\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);fL5=H}H=fL5;return H}}});
ZL.prototype.dataChanged=ZL.prototype.dataChanged;ZL.prototype.onPlayerDetached=ZL.prototype.onPlayerDetached;ZL.prototype.onPlayerAttached=ZL.prototype.onPlayerAttached;ZL.prototype.onStampFinished=ZL.prototype.onStampFinished;ZL.prototype.engagementPanelsChanged=ZL.prototype.engagementPanelsChanged;ZL.prototype.scrollAtTopChanged=ZL.prototype.scrollAtTopChanged;ZL.prototype.tabsChanged=ZL.prototype.tabsChanged;ZL.prototype.activeChanged=ZL.prototype.activeChanged;
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],ZL.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.m1),_.q("design:type",Object)],ZL.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ZL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],ZL.prototype,"ytdReduxBehavior",void 0);_.G([_.g(ZP.YtPageBehavior),_.q("design:type",Object)],ZL.prototype,"ytPageBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],ZL.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ZL.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ZL.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],ZL.prototype,"hidden",void 0);
_.G([_.y(),_.q("design:type",Object)],ZL.prototype,"mastheadAdData",void 0);_.G([_.y({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.q("design:type",Object)],ZL.prototype,"alertBannerData",void 0);_.G([_.y({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.q("design:type",Object)],ZL.prototype,"greetingData",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],ZL.prototype,"pageSubtype",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.q("design:type",Boolean)],ZL.prototype,"hasMemberHubProfileRenderer",void 0);_.G([_.y({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],ZL.prototype,"hasSidebar",void 0);_.G([_.y({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],ZL.prototype,"hasPageHeaderSidebar",void 0);
_.G([_.y({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],ZL.prototype,"roundedContainer",void 0);_.G([_.y({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],ZL.prototype,"useUnifiedShowPageLayout",void 0);_.G([_.y({computed:"computeIsConstrainedList(pageSubtype)"}),_.q("design:type",Object)],ZL.prototype,"isConstrainedList",void 0);
_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ZL.prototype,"usePlaylistHeaderRenderer",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ZL.prototype,"useOldPlaylistSidebarRenderer",null);_.G([_.y({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.q("design:type",Boolean)],ZL.prototype,"fluidWidth",void 0);_.G([_.y({selector:Fzh}),_.q("design:type",Boolean)],ZL.prototype,"scrollAtTop",void 0);
_.G([_.y({selector:PUB}),_.q("design:type",Boolean)],ZL.prototype,"tabGesturesIsActive",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.q("design:type",Boolean)],ZL.prototype,"disableHeaderFluidWidth",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.q("design:type",String)],ZL.prototype,"responsiveSizing",void 0);
_.G([_.hG("ytd-two-column-browse-results-renderer"),_.q("design:type",HTMLElement)],ZL.prototype,"contents",void 0);_.G([_.hG("#header"),_.q("design:type",HTMLElement)],ZL.prototype,"header",void 0);_.G([_.hG("ytd-refresh"),_.q("design:type",Object)],ZL.prototype,"refresh",void 0);_.G([_.Ya("active"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ZL.prototype,"activeChanged",null);
_.G([_.Ya("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ZL.prototype,"tabsChanged",null);_.G([_.Ya("scrollAtTop"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ZL.prototype,"scrollAtTopChanged",null);_.G([_.y(),_.q("design:type",Object)],ZL.prototype,"engagementPanels",void 0);
_.G([_.Ya("data.panels"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ZL.prototype,"engagementPanelsChanged",null);_.G([_.Gl("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ZL.prototype,"onStampFinished",null);_.G([_.Gl("yt-player-attached"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Element]),_.q("design:returntype")],ZL.prototype,"onPlayerAttached",null);
_.G([_.Gl("yt-player-detached"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Element]),_.q("design:returntype")],ZL.prototype,"onPlayerDetached",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ZL.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-browse"})],ZL);var YJy,qJf=function(){if(YJy!==void 0)return YJy;var H=document.createElement("template");_.E(H,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return YJy=H};var fi=function(){var H=_.B.apply(this,arguments)||this;H.currentPage=void 0;H.renderLoadingStateJobId=0;H.updatePageDataJobId=0;H.pageDisposeJobsets=new WeakMap;H.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney","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"};H.shouldApplyLockupToWatchTransition=_.S("web_thumbnail_to_watch_transition");H.shouldApplySlideTransition=_.kV("web_page_transition_type")==="slide"||_.S("enable_plj_landing_page");H.shouldApplyLearningJourneyTransition=_.S("enable_plj_landing_page");H.TEST_ONLY=void 0;return H};
_.R(fi,_.B);_.X=fi.prototype;_.X.ready=function(){var H=_.lx();H.addProvider({provide:_.SI,useValue:this});H.addProvider({provide:_.RSY,useValue:this})};
_.X.created=function(){this.pagePool=new zGj;this.contextSwitcher=new Q9y};
_.X.attached=function(){_.cg(this.hostElement,"attached");var H=_.lx().resolve(_.$V(_.jp));H&&(this.contextSwitcher.JSC$20125_networkService_=H);this.viewTransitionManager=_.lx().resolve(_.Vc)};
_.X.getPageOffset=function(H){return H.getScrollTop()};
_.X.setPageOffset=function(H,U){try{H.setScrollTop(U)}catch(A){}};
_.X.setPageOffsetForNavigation=function(H,U){_.cg(this.hostElement,"yt-navigate-set-page-offset",{page:H,offset:U===void 0?0:U})};
_.X.pauseActiveContext=function(){var H=this.contextSwitcher;H.activeContext_&&H.activeContext_.pause()};
_.X.attachPage=function(H){var U,A=!_.S("pc_is_attached_ks")&&(H==null?void 0:(U=H.polymerController)==null?void 0:U.isAttached);if(!H.isAttached&&!A)try{_.c4(this.hostElement).appendChild(H)}catch(W){var M;_.Na(new _.bD("Error attaching page element for component",{origin:(M=this.currentPage)==null?void 0:M.is,component:H.is}))}};
_.X.setActivePage=function(H,U){var A=this,M=!1,W=function(){var w=A.isOnWatch(),d=A.currentPage;if(H)if(H!==A.currentPage){d&&(d.hidden=!0,d.active=!1,d.removeAttribute("role"));A.currentPage=H;var O,f=U!=null?U:_.lE((O=A.data)==null?void 0:O.endpoint);d&&_.cg(A.hostElement,"yt-page-type-changed",{oldPageType:d.is,newPageType:H.is,newPageSubtype:f});_.Sq().dispatch(_.zQ({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:H.is}));_.Sq().dispatch(_.zQ({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:f||""}));
H.hidden=!1;A.attachPage(H);H.active=!0;H.setAttribute("role","main");d&&A.setPageOffsetForNavigation(H,0);_.S("kevlar_remove_page_dom_on_switch")&&!w&&d&&_.c4(A.hostElement).removeChild(d)}else M=!0;else A.handleMissingDestinationPage(d)};
this.shouldRunBrowseTransition(this.currentPage,H)?H3Y(this.viewTransitionManager,W):this.shouldRunLearningJourneyTransition(this.currentPage,H)?MfX(this.viewTransitionManager,W):W();return M};
_.X.handleMissingDestinationPage=function(H){if(this.isColdLoadForUnknownPage(H))_.Na(new _.bD("Cold load for unknown page"));else{var U;H=new _.bD("Unable to set active page",H?H.is:"unknown origin",(U=this.data)==null?void 0:U.endpoint);_.sD(H)}};
_.X.isColdLoadForUnknownPage=function(H){return!H&&vD(this.data)==="unknown"};
_.X.shouldRunBrowseTransition=function(H,U){return this.shouldApplySlideTransition&&(H==null?void 0:H.is)==="ytd-browse"&&(U==null?void 0:U.is)==="ytd-browse"&&H!==U};
_.X.shouldRunLearningJourneyTransition=function(H,U){return this.shouldApplyLearningJourneyTransition&&(H==null?void 0:H.is)==="ytd-browse"&&((U==null?void 0:U.is)==="ytd-watch-learning-journey"||(U==null?void 0:U.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.X.shouldRunWatchNextLoadedTransition=function(H,U){return this.viewTransitionManager&&H.is==="ytd-watch-flexy"&&U};
_.X.updatePageData=function(H){var U=this,A=this.data;this.updatePageDataJobId&&_.Fl.cancelJob(this.updatePageDataJobId);this.data=H;return new _.IQ(function(M){var W=function(){H.filler?U.performDataUpdate(H,A):hX$(function(){U.performDataUpdate(H,A)});
var w=_.sC();_.n9(w,"cr")||w.processSignal("cr");M()};
H&&H.page==="watch"?U.updatePageDataJobId=_.TB(_.Fl,W):W()})};
_.X.isDownloadsPage=function(H){var U,A;return(H==null?void 0:(U=H.endpoint)==null?void 0:(A=U.browseEndpoint)==null?void 0:A.browseId)==="FEdownloads"};
_.X.setPlayerSyncInterval=function(H){var U;return _.u(function(A){if(A.nextAddress==1)return A.yield(_.lx().resolve(_.aL),2);U=A.yieldResult;U.setUpPositionSyncInterval(H);_.DO(A)})};
_.X.performDataUpdate=function(H,U){_.S("kevlar_early_popup_close")||_.yr(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var A=!H.filler;A&&(_.ba("lps"),_.S("config_age_report_killswitch")||WJ5());var M=vD(H),W,w=!1;if(_.S("kevlar_remove_page_dom_on_switch")){var d=U&&vD(U);M===d&&(W=this.getCurrentPage())}W||(W=TE(this.pagePool,M));A&&jwp(this.pagePool.elementPoolPopulator,M);A&&!this.renderLoadingStateJobId&&(w=this.setActivePage(W));if(W){d=M==="watch";var O=
M==="shorts",f=M==="learning_journey_watch";_.S("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(W);if(d||O||f)W.playerData=H.playerResponse;if(O){H.reelWatchSequenceResponse?W.reelWatchSequenceResponse=H.reelWatchSequenceResponse:W.cachedReelWatchSequenceResponse&&!W.reelWatchSequenceResponse&&(W.reelWatchSequenceResponse=W.cachedReelWatchSequenceResponse);H.reelWatchSequenceResponse&&(U==null?void 0:U.page)!=="shorts"&&(W.cachedReelWatchSequenceResponse=H.reelWatchSequenceResponse);
W.currentEndpoint=H.endpoint;var J;W.isPreviousPageShorts=!!(U==null?0:(J=U.endpoint)==null?0:J.reelWatchEndpoint)}J=this.isDownloadsPage(H);var F=this.isDownloadsPage(U);J&&!F?this.setPlayerSyncInterval(6E5):!J&&F&&this.setPlayerSyncInterval();_.S("block_all_player_prefetch_requests")||this.preparePrefetchRequest(H,W,A,d,O,f);WMj(_.lx().resolve(_.ZB),U,H);if(_.S("enable_ai_companion")){var P;(P=_.lx().resolve(_.$V(_.Xi)))==null||_.id8(P,this.getPersistentPanelSurface(M))}_.mE(_.lx().resolve(_.qe));
_.S("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(W);A?(A=typeof W.loadPage,A==="function"?(W.pageContext=V6h(this.contextSwitcher,W,W.data!==H.response),A=function(){W.loadPage(H.response)},this.shouldApplySlideTransition&&W.is==="ytd-browse"&&w&&(M==="learning"||this.isDifferentBrowseId(H==null?void 0:H.endpoint,U==null?void 0:U.endpoint))?H3Y(this.viewTransitionManager,A):this.shouldRunWatchNextLoadedTransition(W,w)?AMm(this.viewTransitionManager,A):A()):_.n5(new _.bD("b/38014653 ",
[M,
W.is,W.nodeName,A,W.isAttached,U&&vD(U),this.hostElement.children.length])),_.ba("pdl")):(W.hidden=!0,H.response.filler=!0,W.data=H.response,this.attachPage(W));_.cg(this.hostElement,"yt-page-data-updated",{pageType:M})}_.bM(_.Fl,function(){_.S("logging_avoid_blocking_during_navigation")&&_.Y3_().transition("none");var n=JZh(),N=W;if(H){var L=rp8(H),m=eyp(H),z;a:{if(H.playerResponse){var c=H.playerResponse,C;if((z=c.auxiliaryUi)==null?0:(C=z.messageRenderers)==null?0:C.upsellDialogRenderer){z=c.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(H.response&&(z=H.response,(c=z.overlay)==null?0:c.upsellDialogRenderer)){z=z.overlay.upsellDialogRenderer;break a}z=void 0}var v;var Y;C=(v=H.playerResponse)==null?void 0:(Y=v.auxiliaryUi)==null?void 0:Y.messageRenderers;v=(C==null?void 0:C.enforcementMessageViewModel)||(C==null?void 0:C.bkaEnforcementMessageViewModel);v=(v==null?void 0:v.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?v:void 0;var D;a:{if(H.response&&(Y=H.response,(D=Y.overlay)==null?0:D.commandWrapperPromoRenderer)){D=
Y.overlay.commandWrapperPromoRenderer;break a}D=void 0}fwp(n,L,m,z,v,D,N)}})};
_.X.preparePrefetchRequest=function(H,U,A,M,W,w){var d,O,f,J,F,P,n,N,L,m,z,c,C,v,Y;return _.u(function(D){if(D.nextAddress==1)return!A||!(M||W||w)||_.S("kevlar_disable_background_prefetch")&&_.CA(hT5)()===0?D.return():(d=_.py(U))?D.yield(d.getPlayerPromise(),2):D.return();O=D.yieldResult;f=_.lx().resolve(_.$V(_.jp));if(!f)return D.return();if(W)return J=_.gz(_.$6),OB5(J,(F=H.endpoint)==null?void 0:F.reelWatchEndpoint,U.reelWatchSequenceResponse,O,f),D.return();N=(P=H.response)==null?void 0:(n=P.responseContext)==
null?void 0:n.webResponseContextExtensionData;if(!N)return D.return();C=(L=H.response)==null?void 0:(m=L.contents)==null?void 0:(z=m.twoColumnWatchNextResults)==null?void 0:(c=z.autoplay)==null?void 0:c.autoplay;v=_.lx().resolve(_.FX);Y=_.gz(_.$6);ubB(Y,N,O,f,v,C);_.DO(D)})};
_.X.movePlayerToWatch=function(H){var U=this,A,M;return _.u(function(W){A=TE(U.pagePool,"watch");M=A.getPlayerContainer();H.appendTo(M);_.DO(W)})};
_.X.movePlayerToShorts=function(H){var U=this,A,M,W;return _.u(function(w){A=TE(U.pagePool,"shorts");M=A.getPlayerContainer();(W=H)==null||W.appendTo(M,void 0,!0);_.DO(w)})};
_.X.getPlayerFromWatch=function(){var H=TE(this.pagePool,"watch");return _.py(H)};
_.X.getPlayerFromShorts=function(){var H=TE(this.pagePool,"shorts");return _.py(H)};
_.X.startLoadingWatch=function(){var H=this,U=TE(this.pagePool,"watch");this.renderLoadingStateJobId?(_.Fl.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.S("web_watch_transition_enable_start_loading_watch_callsite")?UAh(this.viewTransitionManager,function(){H.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(U,"watch");
if(_.S("enable_ai_companion")){var A;(A=_.lx().resolve(_.$V(_.Xi)))==null||_.id8(A,this.getPersistentPanelSurface("watch"))}};
_.X.startLoadingShorts=function(){var H=TE(this.pagePool,"shorts");this.setActivePage(H,"shorts")};
_.X.startLoadingLearningJourney=function(){var H=TE(this.pagePool,"learning_journey_watch");this.setActivePage(H,"learning_journey_watch")};
_.X.getCurrentPage=function(){return this.currentPage};
_.X.getDestinationPageType=function(){return this.destinationPageType};
_.X.getCurrentData=function(){return this.data};
_.X.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.X.isOnShorts=function(){var H;return((H=this.currentPage)==null?void 0:H.is)==="ytd-shorts"};
_.X.isWatchPage=function(H){return!!H&&(H.is==="ytd-watch-flexy"||H.is==="ytd-watch-fixie"||H.is==="ytd-watch-grid")};
_.X.preparePage=function(H,U){var A=this,M=function(){var w=A.pagePool.preparePage(H,A.currentPage,U);w&&A.attachPage(w)},W=function(w){_.SD(w,U);
_.Na(w)};
try{M()}catch(w){W(w)}};
_.X.lazyPrepareCriticalPages=function(H,U){H=_.lE(U)||H;this.maybePrepareWatchPage(H)};
_.X.maybePrepareWatchPage=function(H){H==="watch"||H==="learning_journey_watch"&&_.S("web_watch_learning_journey_disable_lazy_pages")||_.bM(_.Fl,this.preparePage.bind(this,"watch"))};
_.X.renderPageLoadingState=function(H,U){this.preparePage(H,U);var A=TE(this.pagePool,H);A.loadingData&&(A.loadingData.endpoint=U);A.loading=!0;this.setActivePage(A,H);H!=="watch"&&H!=="learning_journey_watch"||_.cg(this.hostElement,"yt-guide-close")};
_.X.prepareForNavigation=function(H,U){var A=this;if(this.currentPage&&this.data){var M=_.lE(U)||H;this.destinationPageType=M;vD(this.data)==M&&_.cg(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((H==="watch"||H==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.Fl.cancelJob(this.renderLoadingStateJobId);_.lx().resolve(_.ZB).deactivate(U);_.qT(_.Fl,function(){var w=A.viewTransitionManager,d=A.currentPage;
if(w.isLockupToWatchTransitionEnabled&&w.isLockupThumbnailRegistrationEnabled&&d)if(w.registeredLockupThumbnail)w.lockupThumbnailRegisteredFromWatchEndpoint&&_.Na(new _.bD("Lockup thumbnail already registered from watch endpoint."));else{a:{var O=_.p(U,_.sH);if(O==null?0:O.videoId){var f="yt-lockup-view-model ."+_.Vnr(O.videoId)+" yt-thumbnail-view-model";d=d.querySelectorAll(f);if(d.length===1){O=d[0];break a}d.length>1?_.Na(new _.bD("Multiple LockupViewModel thumbnails found for videoId: "+O.videoId+
". Selector: "+f)):_.S("web_thumbnail_to_watch_transition_debug")&&_.Na(new _.bD("No LockupViewModel thumbnail found for videoId: "+O.videoId+". Selector: "+f))}O=void 0}O&&(w.registeredLockupThumbnail=O,w.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.q4h(w,O))}});
var W=this.data;this.renderLoadingStateJobId=_.qT(_.Fl,function(){UAh(A.viewTransitionManager,function(){if(A.data!=W){var w=TE(A.pagePool,H);A.setActivePage(w)}else A.renderPageLoadingState(H,U);A.renderLoadingStateJobId=0})},150)}};
_.X.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var H=new _.EY(1);this.currentPage.pageDisposeJobs.forEach(function(U){_.mg(H,U)});
this.pageDisposeJobsets.set(this.currentPage,H)}};
_.X.flushPageDisposeJobset=function(H){var U=this.pageDisposeJobsets.get(H);U&&(U.flushJobs(),this.pageDisposeJobsets.delete(H))};
_.X.onYtStopOldPlayer=function(H,U){U=U===void 0?!1:U;var A,M=_.v5("kevlar_new_stop_old_player_logic_pages");if(_.S("kevlar_check_current_page_on_stop_old_player")&&(M.length===0||this.currentPage&&M.includes(this.currentPage.is)))if(this.data&&(A=vD(this.data)),vD(H)===A&&this.currentPage&&vD(this.currentPage.data)!==A)var W=_.py(this.currentPage);else A=vD(this.data),W=TE(this.pagePool,A),W=_.py(W);else this.data&&(A=vD(this.data),W=TE(this.pagePool,A),W=_.py(W));if(W){M=vD(H);var w=TE(this.pagePool,
M);w=_.py(w);if(W==w)U&&!_.S("kevlar_disable_preemptive_player_reset")&&W.resetForNewPlayback();else if(U=A==="watch"&&M!=="watch",!U||M==="shorts"||_.sXz()&&!MX5(this.data,H))H=_.lx().resolve(_.ZB),U&&H.isMiniplayerActive()&&H.pipController.getWindow()||W.stop()}};
_.X.isDifferentBrowseId=function(H,U){H=_.p(H,_.Gv);U=_.p(U,_.Gv);return(H==null?void 0:H.browseId)!==(U==null?void 0:U.browseId)};
_.X.getPersistentPanelSurface=function(H){switch(H){case "watch":return"WATCH";default:return"APP"}};
_.D5.Object.defineProperties(fi,{template:{configurable:!0,enumerable:!0,get:function(){return qJf()}}});
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],fi.prototype,"ytActionHandlerBehavior",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-page-manager"})],fi);_.e(fi,"ytd-page-manager",function(){return qJf()},{mode:_.cX("kevlar_poly_si_batch_j081")?1:2});var h7f;var kd7;var JU=function(){var H=_.B.apply(this,arguments)||this;H.hasChipBar=!1;return H};
_.R(JU,_.B);JU.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}}};
JU.prototype.computeHasChipBar=function(H){return!(H==null||!H.chipBar)};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],JU.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],JU.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.q("design:type",Object)],JU.prototype,"hasChipBar",void 0);_.G([_.dX({is:"ytd-search-header-renderer",disableElementRegistration:!0})],JU);
_.e(JU,"ytd-search-header-renderer",function(){if(kd7!==void 0)return kd7;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return kd7=H},{mode:1});var v_k;var Ki=function(){return _.B.apply(this,arguments)||this};
_.R(Ki,_.B);Ki.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ki.prototype.computeBlueBottomLink=function(H){return H};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Ki.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ki.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ki.prototype,"data",void 0);_.G([_.y({computed:"computeIcon_(data.bottomIcon)"}),_.q("design:type",String)],Ki.prototype,"bottomIcon",void 0);
_.G([_.y({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Ki.prototype,"enableBlueBottomLink",void 0);_.G([_.dX({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Ki);
_.e(Ki,"ytd-web-answer-renderer",function(){if(v_k!==void 0)return v_k;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return v_k=H},{mode:2});var Tr$;var oA=function(){return _.B.apply(this,arguments)||this};
_.R(oA,_.B);oA.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],oA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],oA.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-page-continuation"})],oA);
_.e(oA,"ytd-page-continuation",function(){if(Tr$!==void 0)return Tr$;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Tr$=H},{mode:1});var jBB;var Iqp;var QBh;var V_f=function(){return _.B.apply(this,arguments)||this};
_.R(V_f,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],V_f.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],V_f.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],V_f);
_.e(V_f,"ytd-watch-card-one-vs-one-event",function(){if(QBh!==void 0)return QBh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return QBh=H},{mode:1});var H7p=function(){return _.B.apply(this,arguments)||this};
_.R(H7p,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],H7p.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],H7p.prototype,"data",void 0);_.G([_.dX({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],H7p);
_.e(H7p,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(Iqp!==void 0)return Iqp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Iqp=H},{mode:1});var U0j;var Ao8=function(){return _.B.apply(this,arguments)||this};
_.R(Ao8,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ao8.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ao8.prototype,"data",void 0);_.G([_.dX({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],Ao8);
_.e(Ao8,"ytd-banner-and-box-hero-image-renderer",function(){if(U0j!==void 0)return U0j;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return U0j=H},{mode:1});var MTm;var FN=function(){var H=_.B.apply(this,arguments)||this;H.modern=_.S("web_modern_buttons");return H};
_.R(FN,_.B);FN.prototype.computeIcon=function(){var H,U,A=(H=this.data)==null?void 0:(U=H.icon)==null?void 0:U.iconType;if(A)return _.eq(A)};
FN.prototype.computeButtonShape=function(){var H;return{buttonText:_.Sp((H=this.data)==null?void 0:H.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.D5.Object.defineProperties(FN.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"}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],FN.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],FN.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],FN.prototype,"modern",void 0);_.G([_.y({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.a("data.style"),_.q("design:type",Object),_.q("design:paramtypes",[])],FN.prototype,"buttonColor",null);
_.G([_.dX({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],FN);
_.e(FN,"ytd-call-to-action-button-renderer",function(){if(MTm!==void 0)return MTm;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return MTm=H},{mode:1});var W0k;var PP=function(){return _.B.apply(this,arguments)||this};
_.R(PP,_.B);PP.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.c4(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.Rv(this.data.leftThumbnail.thumbnails,216)+")")};
PP.prototype.onLeftThumbnailChanged=PP.prototype.onLeftThumbnailChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],PP.prototype,"data",void 0);_.G([_.Ya("data.leftThumbnail"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],PP.prototype,"onLeftThumbnailChanged",null);_.G([_.dX({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],PP);
_.e(PP,"ytd-collage-hero-image-renderer",function(){if(W0k!==void 0)return W0k;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return W0k=H},{mode:1});var wmh;var s1=function(){return _.B.apply(this,arguments)||this};
_.R(s1,_.B);s1.prototype.computeStyle=function(H){return H};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],s1.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.q("design:type",String)],s1.prototype,"componentStyle",void 0);_.G([_.dX({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],s1);
_.e(s1,"ytd-single-hero-image-renderer",function(){if(wmh!==void 0)return wmh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return wmh=H},{mode:1});var Xm8;var ni=function(){return _.B.apply(this,arguments)||this};
_.R(ni,_.B);_.X=ni.prototype;
_.X.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:_.S("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.X.computeSubtitle=function(H){if(this.data){var U;if(this.data.upcomingEventData){H=_.Sp(H.subtitle);var A=Number(this.data.upcomingEventData.startTime);isNaN(A)||(U=_.Nh(_.jI(H,A)))}else U=H.subtitle;return U}};
_.X.onHeroTap=function(H){H.preventDefault();var U=this.data&&this.data.navigationEndpoint;!U||!_.ny(_.Lf(H),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.ny(_.Lf(H),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.S("kevlar_watchcard_hero_video_renderer_killswitch")?_.cg(this.hostElement,"yt-navigate",{navigationEndpoint:U}):this.ytComponentBehavior.resolveCommand(U))};
_.X.computeHeroTabIndex=function(H){return H&&H.simpleText?-1:0};
_.X.computeHeroRole=function(H){return H&&H.simpleText?"":"link"};
_.X.computeIsReminderButtonPresent=function(H){return!(!H||!H.reminderButton)};
_.X.computeHideBottomItems=function(H){return!(this.computeIsReminderButtonPresent(H)||H.subtitle)};
_.X.dataChanged=function(){var H=this.get("data.buttons.buttonRenderer.serviceEndpoint"),U;((U=_.p(H==null?void 0:H.commandMetadata,_.Im))==null?0:U.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(H)};
ni.prototype.dataChanged=ni.prototype.dataChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ni.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ni.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ni.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ni.prototype,"data",void 0);
_.G([_.y({computed:"computeSubtitle(data)"}),_.q("design:type",String)],ni.prototype,"subtitle",void 0);_.G([_.y({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],ni.prototype,"isReminderButtonPresent",void 0);_.G([_.y({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],ni.prototype,"hideBottomItems",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ni.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],ni);
_.e(ni,"ytd-watch-card-hero-video-renderer",function(){if(Xm8!==void 0)return Xm8;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Xm8=H},{mode:1});var i7Y;var NW=function(){return _.B.apply(this,arguments)||this};
_.R(NW,_.B);_.X=NW.prototype;_.X.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"}}}};
_.X.computeTitleBadges=function(H){return H?[H]:[]};
_.X.computeHeaderStyle=function(H){return H?H.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.X.computeAvatarAriaLabel=function(H){if(H){var U,A,M,W;return(W=(U=H.avatar)==null?void 0:(A=U.accessibility)==null?void 0:(M=A.accessibilityData)==null?void 0:M.label)!=null?W:_.Sp(H==null?void 0:H.title)}};
_.X.computeAvatarHeight=function(H){return H==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.X.computeBadgeRowClass=function(H){return(H==null?0:H[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],NW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],NW.prototype,"data",void 0);_.G([_.y({computed:"computeTitleBadges(data.titleBadge)"}),_.q("design:type",Array)],NW.prototype,"titleBadges",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.q("design:type",String)],NW.prototype,"headerStyle",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.q("design:type",String)],NW.prototype,"badgeRowClass",void 0);_.G([_.dX({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],NW);
_.e(NW,"ytd-watch-card-rich-header-renderer",function(){if(i7Y!==void 0)return i7Y;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return i7Y=H},{mode:1});var b7X;var d0y;var Sg=function(){return _.B.apply(this,arguments)||this};
_.R(Sg,_.B);Sg.prototype.onMetadataTap=function(H){var U=this.data&&this.data.navigationEndpoint;U&&!_.ny(_.Lf(H),this.hostElement,["A".toString()])&&_.cg(this.hostElement,"yt-navigate",{endpoint:U})};
_.D5.Object.defineProperties(Sg.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 H;if(this.data.upcomingEventData){var U=_.Sp(this.data.subtitle),A=Number(this.data.upcomingEventData.startTime);isNaN(A)||(H=_.Nh(_.jI(U,A)))}else H=this.data.subtitle;return H}}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Sg.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Sg.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data.style"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Sg.prototype,"isCondensed",null);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Sg.prototype,"subtitle",null);
_.G([_.dX({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Sg);
_.e(Sg,"ytd-watch-card-compact-video-renderer",function(){if(d0y!==void 0)return d0y;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return d0y=H},{mode:1});var O7k;var utf=function(){return _.B.apply(this,arguments)||this};
_.R(utf,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],utf.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],utf.prototype,"data",void 0);_.G([_.dX({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],utf);
_.e(utf,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(O7k!==void 0)return O7k;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return O7k=H},{mode:1});var pi=function(){return _.B.apply(this,arguments)||this};
_.R(pi,_.B);pi.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}}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],pi.prototype,"ytRendererStamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],pi.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],pi.prototype,"data",void 0);_.G([_.dX({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],pi);
_.e(pi,"ytd-vertical-watch-card-list-renderer",function(){if(b7X!==void 0)return b7X;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return b7X=H},{mode:1});var Z77;var Li=function(){var H=_.B.apply(this,arguments)||this;H.ariaExpanded="false";return H};
_.R(Li,_.B);_.X=Li.prototype;_.X.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.X.dataChanged=function(){var H;this.currentSeasonIndex=((H=this.data)==null?void 0:H.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.X.computeEpisodesInfo=function(H,U,A){if(H!==void 0&&U.length===H.length)return H[A]};
_.X.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.X.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.X.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.X.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.X.getUppercaseSimpleString=function(H){return this.ytRendererBehavior.getSimpleString(H).toUpperCase()};
_.X.updateCurrentSeasonIndexFromBinding=function(H){this.currentSeasonIndex=H.detail.value};
Li.prototype.onIronOverlayClosed=Li.prototype.onIronOverlayClosed;Li.prototype.currentSeasonIndexChanged=Li.prototype.currentSeasonIndexChanged;Li.prototype.dataChanged=Li.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Li.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Li.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Li.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",String)],Li.prototype,"label",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],Li.prototype,"currentSeasonIndex",void 0);_.G([_.y({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.q("design:type",Object)],Li.prototype,"episodesInfo",void 0);_.G([_.y({value:"false"}),_.q("design:type",Object)],Li.prototype,"ariaExpanded",void 0);_.G([_.hG("#lists"),_.q("design:type",Object)],Li.prototype,"lists",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Li.prototype,"dataChanged",null);_.G([_.jk("currentSeasonIndex"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Li.prototype,"currentSeasonIndexChanged",null);_.G([_.Gl("iron-overlay-closed"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],Li.prototype,"onIronOverlayClosed",null);
_.G([_.dX({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Li);
_.e(Li,"ytd-watch-card-section-dropdown-renderer",function(){if(Z77!==void 0)return Z77;var H=document.createElement("template");_.E(H,'\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="EXPAND" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Z77=H},{mode:1});var frY;var RA=function(){var H=_.B.apply(this,arguments)||this;H.isSearch=!1;return H};
_.R(RA,_.B);RA.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}}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],RA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],RA.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],RA.prototype,"isSearch",void 0);_.G([_.dX({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],RA);
_.e(RA,"ytd-watch-card-section-sequence-renderer",function(){if(frY!==void 0)return frY;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
return frY=H},{mode:1});var Jok=_.r(function(H){return _.Z("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.Z(_.YY,{data:function(){return H.data().ctaButton}},{buttonViewModel:_.yJ}),_.Z(_.Pb,{text:function(){return H.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"uk");
Jok.idomCompat=!0;_.LG(Jok,"ytd-button-banner-view-model",{props:{data:_.sY}});var E1=function(){var H=_.B.apply(this,arguments)||this;H.isSearch=!1;return H};
_.R(E1,_.B);
E1.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"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],E1.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],E1.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],E1.prototype,"rounded",void 0);_.G([_.y(),_.q("design:type",Object)],E1.prototype,"isSearch",void 0);
_.G([_.dX({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],E1);
_.e(E1,"ytd-universal-watch-card-renderer",function(){if(jBB!==void 0)return jBB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return jBB=H},{mode:1});var K0h;_.LG(_.r(function(H){var U=H.data;var A;H=!((A=_.lx().resolve(_.$V(_.qF)))==null||!A());A={};return _.Z("overview-message-view-model",{class:_.CG("ytwOverviewMessageViewModelHost",(A.ytwOverviewMessageViewModelDarkBackground=H,A.ytwOverviewMessageViewModelLightBackground=!H,A))},_.Z(_.K,{cond:function(){return U().primaryImage},
then:function(M){return _.Z(_.nG,{data:M,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.Z(_.K,{cond:function(){return U().primaryText},
then:function(){return _.Z("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.Z(_.Pb,{text:function(){return U().primaryText}}))}}),_.Z(_.K,{cond:function(){return U().secondaryText},
then:function(){return _.Z("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.Z(_.Pb,{text:function(){return U().secondaryText}}))}}))},"vk"),"overview-message-view-model",{props:{data:_.sY}});_.LG(_.BKY,"ytd-overview-answer-view-model",{props:{data:_.sY}});var mj=function(){return _.B.apply(this,arguments)||this};
_.R(mj,_.B);mj.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"}}}};
mj.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.RG),_.q("design:type",Object)],mj.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],mj.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],mj.prototype,"isSearch",void 0);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],mj);
_.e(mj,"ytd-secondary-search-container-renderer",function(){if(K0h!==void 0)return K0h;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
return K0h=H},{mode:1});var owp;var gQ=function(){var H=_.B.apply(this,arguments)||this;H.renderSecondarySearchContainer=!1;H.isSearch=!1;return H};
_.R(gQ,_.B);_.X=gQ.prototype;_.X.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.X.created=function(){var H=this;this.boundStampSecondarySearchContainerIfFits=function(){H.stampSecondarySearchContainerIfFits()};
_.mT("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.X.computeIsSearchFrictionPage=function(H){var U,A,M,W,w;H=H==null?void 0:(U=H.primaryContents)==null?void 0:(A=U.sectionListRenderer)==null?void 0:(M=A.contents)==null?void 0:(W=M[0])==null?void 0:(w=W.itemSectionRenderer)==null?void 0:w.contents;if(!H)return!1;U=_.b(H);for(A=U.next();!A.done;A=U.next())if(M=void 0,(M=A.value)==null?0:M.searchFrictionViewModel)return!0;return!1};
_.X.computeShowSecondaryColumn=function(H,U){return!!(U&&U.secondaryContents&&H)};
_.X.activeChanged=function(){var H=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.lN(this,this.debounceStampSecondarySearchContainerIfFits)),_.oS(function(){H.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.lN(this,this.debounceStampSecondarySearchContainerIfFits))};
_.X.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.X.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.X.debounceStampSecondarySearchContainerIfFits=function(){_.F8(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.X.onRetrieveLocation=function(H,U){U.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);H.stopPropagation()};
_.X.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
gQ.prototype.dataChanged=gQ.prototype.dataChanged;gQ.prototype.onRetrieveLocation=gQ.prototype.onRetrieveLocation;gQ.prototype.persistentGuideChanged=gQ.prototype.persistentGuideChanged;gQ.prototype.activeChanged=gQ.prototype.activeChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],gQ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],gQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.g(_.Qo),_.q("design:type",Object)],gQ.prototype,"ironResizableBehavior",void 0);_.G([_.y(),_.q("design:type",Boolean)],gQ.prototype,"active",void 0);_.G([_.y(),_.q("design:type",Object)],gQ.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.q("design:type",Boolean)],gQ.prototype,"useBiggerThumbs",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.kV("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],gQ.prototype,"biggerThumbsStyle",void 0);_.G([_.y(),_.q("design:type",Object)],gQ.prototype,"renderSecondarySearchContainer",void 0);_.G([_.y({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.q("design:type",Boolean)],gQ.prototype,"showSecondaryColumn",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.q("design:type",Boolean)],gQ.prototype,"isSearchFrictionPage",void 0);
_.G([_.y(),_.q("design:type",Object)],gQ.prototype,"isSearch",void 0);_.G([_.Ya("active"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gQ.prototype,"activeChanged",null);_.G([_.Ya("guidePersistentAndVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gQ.prototype,"persistentGuideChanged",null);
_.G([_.Gl("yt-retrieve-location"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],gQ.prototype,"onRetrieveLocation",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gQ.prototype,"dataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],gQ);
_.e(gQ,"ytd-two-column-search-results-renderer",function(){if(owp!==void 0)return owp;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return owp=H},{mode:1});var aA=function(){var H=_.B.apply(this,arguments)||this;H.hasSearchHeader=!1;H.hasSecondaryContent=!1;H.hasBiggerThumbs=_.S("enable_desktop_search_bigger_thumbs");H.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return H};
_.R(aA,_.B);_.X=aA.prototype;_.X.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:SK(["aa","eocs"])}}};
_.X.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.X.loadPage_=function(H){this.initCsi();H&&(this.data=H,_.mT("REFINEMENTS_TUPLE",["FromSearchResponse",H.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.cW(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.X.initCsi=function(){f2p("results",["ol","cpt"])};
_.X.updateTitle=function(){var H=_.TZ(window.location.href,"q");H||(H=_.TZ(window.location.href,"search_query"));_.cg(this.hostElement,"yt-update-title",H||"")};
_.X.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.X.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.S("web_srp_data_changed_terminate_imp_killswitch")||_.yr(this.hostElement,"yt-terminate-video-preview-action")};
_.X.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.X.computeHasSearchHeader=function(H){var U;H=H==null?void 0:(U=H.header)==null?void 0:U.searchHeaderRenderer;return!!H&&(!!H.searchFilterButton||!!H.chipBar)};
_.X.computeHasSecondaryContent=function(H){var U,A;return!!(H==null?0:(U=H.contents)==null?0:(A=U.twoColumnSearchResultsRenderer)==null?0:A.secondaryContents)};
_.D5.Object.defineProperties(aA,{template:{configurable:!0,enumerable:!0,get:function(){if(h7f===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);h7f=H}H=h7f;return H}}});
aA.prototype.onReloadContinuationFinish=aA.prototype.onReloadContinuationFinish;aA.prototype.dataChanged=aA.prototype.dataChanged;_.G([_.g(ZP.YtPageBehavior),_.q("design:type",Object)],aA.prototype,"ytPageBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],aA.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.RG),_.q("design:type",Object)],aA.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],aA.prototype,"data",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],aA.prototype,"monitorScroll",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],aA.prototype,"hasSearchHeader",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],aA.prototype,"hasSecondaryContent",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],aA.prototype,"hasBiggerThumbs",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aA.prototype,"dataChanged",null);
_.G([_.Gl("yt-reload-continuation-finish"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aA.prototype,"onReloadContinuationFinish",null);_.G([_.dX({is:"ytd-search"})],aA);var F05;var Ply;var sF5;var xm=function(){var H=_.B.apply(this,arguments)||this;H.ctaVisualElement=null;H.currentCsn=null;return H};
_.R(xm,_.B);_.X=xm.prototype;_.X.onDataChanged=function(){this.maybeLogShows()};
_.X.computeButtonShape=function(){var H=this;if(this.data)return{buttonText:_.Sp(this.data.text),state:"active",onTap:function(){H.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.X.maybeCreateCtaVe=function(){var H;if((H=this.data)!=null&&H.badgeInteractionLogging){var U;if(H=(U=this.data.badgeInteractionLogging)==null?void 0:U.trackingParams)this.ctaVisualElement=_.IS(H)}};
_.X.maybeLogClicks=function(){this.currentCsn=_.XK(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.NY(this.currentCsn,this.ctaVisualElement)};
_.X.maybeLogShows=function(){this.currentCsn=_.XK(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.sn(this.currentCsn,[this.ctaVisualElement])};
_.X.onTap=function(){var H;if((H=this.data)!=null&&H.onClickCommand){var U;this.ytComponentBehavior.resolveCommand((U=this.data)==null?void 0:U.onClickCommand);this.maybeLogClicks()}};
xm.prototype.onDataChanged=xm.prototype.onDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],xm.prototype,"ytComponentBehavior",void 0);_.G([_.y({}),_.q("design:type",Object)],xm.prototype,"data",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xm.prototype,"onDataChanged",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],xm);
_.e(xm,"ytd-shopping-overlay-badge-renderer",function(){if(sF5!==void 0)return sF5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return sF5=H},{mode:1});var nwh;var zf=function(){return _.B.apply(this,arguments)||this};
_.R(zf,_.B);zf.prototype.computeShouldButtonBeVertical=function(H,U){return H||U};
zf.prototype.onYtServiceRequestSent=function(H,U){(H=_.p(U.endpoint,_.AA))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.hs("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:H.status})):this.handleLikeEndpoint(H))};
zf.prototype.computelikeStatusEntityKey=function(H){return H==null?void 0:H.likeStatusEntityKey};
zf.prototype.handleLikeEndpoint=function(H){H.status==="LIKE"?this.JSC$22041_ytdDislikeToggleButtonRenderer.toggle(!1):H.status==="DISLIKE"?this.JSC$22041_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$22041_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$22041_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.D5.Object.defineProperties(zf.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var H;return Fcy(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(H=this.likeStatusEntity)==null?void 0:H.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var H;if(this.data&&((H=this.data)==null||!H.hideDislikeButton)){var U;return Fcy(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(U=this.likeStatusEntity)==null?void 0:U.likeStatus)}}}});
zf.prototype.onYtServiceRequestSent=zf.prototype.onYtServiceRequestSent;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],zf.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],zf.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],zf.prototype,"vertical",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],zf.prototype,"textTransform",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],zf.prototype,"useShortsIcon",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],zf.prototype,"underIconLabel",void 0);_.G([_.y({value:"left"}),_.q("design:type",String)],zf.prototype,"buttonTooltipPosition",void 0);_.G([_.y(),_.q("design:type",Object)],zf.prototype,"overrides",void 0);
_.G([_.hG("#like-button"),_.q("design:type",Object)],zf.prototype,"JSC$22041_ytdLikeToggleButtonRenderer",void 0);_.G([_.hG("#dislike-button"),_.q("design:type",Object)],zf.prototype,"JSC$22041_ytdDislikeToggleButtonRenderer",void 0);_.G([_.a("data","likeStatusEntity.likeStatus","useShortsIcon"),_.q("design:type",Object),_.q("design:paramtypes",[])],zf.prototype,"likeButton",null);
_.G([_.a("data","likeStatusEntity.likeStatus","useShortsIcon"),_.q("design:type",Object),_.q("design:paramtypes",[])],zf.prototype,"dislikeButton",null);_.G([_.y({computed:"computelikeStatusEntityKey(data)"}),_.q("design:type",String)],zf.prototype,"likeStatusEntityKey",void 0);_.G([_.y({selectorArgs:["likeStatusEntityKey"],selector:_.wT}),_.q("design:type",Object)],zf.prototype,"likeStatusEntity",void 0);
_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],zf.prototype,"onYtServiceRequestSent",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],zf);
_.ty()(zf,"ytd-like-button-renderer",function(){if(nwh===void 0){var H=document.createElement("template");_.E(H,'\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<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-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</template>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);nwh=H}H=nwh;return H},{mode:1});_.LG(_.ek8,"reel-sound-metadata-view-model",{props:{data:_.Ne,overlayDensity:_.Ne}});_.LG(_.LO7,"player-disclosure-view-model",{props:{data:_.sY,extractOverlay:_.sY}});_.LG(_.Kjp,"pivot-button-view-model",{props:{data:_.Ne,className:_.Ne}});_.LG(_.omg,"reel-action-bar-view-model",{props:{data:_.sY,buttonShapeOverrideables:_.sY}});_.LG(_.Dsp,"yt-reel-metapanel-view-model",{props:{data:_.sY,overlayDensity:_.sY,extractOverlay:_.sY}});var NqY=_.r(function(H){var U=H.children;var A=H.region;H=_.b(_.iB(void 0,void 0,"flxBBc"));var M=H.next().value,W=H.next().value;H=_.b(_.iB("0px",void 0,"IAR7k"));var w=H.next().value,d=H.next().value;H=_.b(_.iB("0px",void 0,"QV4iWb"));var O=H.next().value,f=H.next().value;H=_.b(_.iB(0,void 0,"Q2oK6b"));var J=H.next().value,F=H.next().value;H=_.b(_.iB(0,void 0,"hYKowe"));var P=H.next().value,n=H.next().value,N=function(){var v=M();if(v){var Y;if(((Y=_.yU())==null?void 0:Y.getPlayerState())!==-1){v.style.display=
"inherit";var D;(D=_.yU())==null||D.removeEventListener("onStateChange",N)}else v.style.display="none";m()}},L=function(){var v;
return(v=_.Ly())==null?void 0:v.querySelector("video")},m=function(){var v=L();
if(v){F(v.getBoundingClientRect().width);n(v.getBoundingClientRect().height);var Y;d((v==null?void 0:(Y=v.style)==null?void 0:Y.left)||"0px");var D;f((v==null?void 0:(D=v.style)==null?void 0:D.top)||"0px")}};
_.Em(function(){var v=M();if(v){var Y,D,h;if(((Y=_.yU())==null?void 0:Y.getPlayerState())===-1&&Math.round(((h=(D=_.yU())==null?void 0:D.getVideoAspectRatio())!=null?h:0)*100)!==Math.round(J()/P()*100)){v.style.display="none";var T,WF;n(J()/((WF=(T=_.yU())==null?void 0:T.getVideoAspectRatio())!=null?WF:1))}}},"N29KDe");
var z=function(){m()},c;
_.pA(function(){m();var v;if(!(A==null?0:(v=A())==null?0:v.transformationMatrix))throw Error("em");var Y;(Y=_.yU())==null||Y.addEventListener("onStateChange",N);if(window.ResizeObserver){if(v=L())c=new ResizeObserver(z),c.observe(v)}else window.addEventListener("resize",m);_.m4(function(){var D;(D=_.yU())==null||D.removeEventListener("onStateChange",N);c?c.disconnect():window.removeEventListener("resize",m)})});
var C=function(){var v,Y,D=(Y=A==null?void 0:(v=A())==null?void 0:v.transformationMatrix)!=null?Y:[];v=J();Y=P();for(var h=[],T=0,WF=-1;T<D.length;T++)T%3===0&&(WF++,h[WF]=[]),h[WF].push(D[T]);D=new p6(h);h=new p6([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);h=D.multiply(h);D=new p6([[0,0],[0,0],[0,0],[0,0]]);for(T=0;T<h.getSize().width;T++){WF=Pt(h,0,T);var dK=Pt(h,1,T);if(WF===null||dK===null)throw Error("dm`"+(T+1).toString());QJ$(D,T,0,WF*v);QJ$(D,T,1,dK*Y)}v=Pt(D,0,0);T=Pt(D,1,0);Y=Pt(D,0,1);WF=Pt(D,1,1);
if(v===null||T===null||Y===null||WF===null)throw Error("bm");h=P$Y(v,T,Y,WF);dK=Pt(D,3,0);D=Pt(D,3,1);if(dK===null||D===null)throw Error("cm");D=P$Y(v,dK,Y,D);WF=(Number((WF*-1).toFixed(2))-Number((Y*-1).toFixed(2)))/(Number(T.toFixed(2))-Number(v.toFixed(2)));dK=Math.atan(WF)*180/Math.PI;T=WF===Number.POSITIVE_INFINITY?-90:WF===Number.NEGATIVE_INFINITY?90:Object.is(WF,-0)?180:WF===0?0:WF>0?dK*-1:v<T?dK*-1:Math.abs(dK)+180;return"left:calc("+v+"px + "+w()+"); top:calc("+(Y+"px + "+O()+"); width:")+
(h+"px; height:")+(D+"px; transform:rotate(")+(T+"deg);\n        --sticker-width:"+h+";")};
return _.Z(_.v2_,{root:"#sticker-layer"},function(){return _.Z("yt-overlay-sticker",{el:_.sB(W),style:C,class:"ytOverlayStickerHost"},U)})},"yk");var SOf=_.r(function(H){function U(){var N,L,m,z,c=(L=_.p((N=f())==null?void 0:N.command,_.B3n))==null?void 0:(m=L.item)==null?void 0:(z=m.notificationTextRenderer)==null?void 0:z.successResponseText;if(c)N=_.E_(c),_.yr(M.value,"yt-open-popup-action",[N,M.value]);else if(J())n48(J(),M.value);else{var C;n48((C=f())==null?void 0:C.command,M.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var A=H.data;var M=_.nA("svg"),W=_.b(_.iB(!1,void 0,"e9onLe"));H=W.next().value;var w=W.next().value,d=_.b(_.iB(!1,void 0,"ptnIQd"));W=d.next().value;var O=d.next().value,f=function(){var N;return _.p((N=A())==null?void 0:N.popUp,y7B)},J=function(){var N;
return(N=A())==null?void 0:N.command},F=function(){return _.p(J(),_.kY)!==void 0};
d=_.c$(function(){U();return!1});
var P={},n={};return _.Z("svg",{"on:mouseover":_.c$(function(){F()&&w(!0);O(!0);return!1}),
"on:mouseout":_.c$(function(){w(!1);O(!1);return!1}),
"on:keydown":_.c$(function(N){N.key==="Enter"&&U();return!1}),
"on:focus":_.c$(function(){F()&&w(!0);return!1}),
"on:blur":_.c$(function(){F()&&w(!1);return!1}),
el:M,tabindex:0,"aria-label":function(){var N;return(N=A())==null?void 0:N.a11yString},
id:"player-overlay-video-interaction-svg",class:_.CG("ytPlayerOverlayInteractionInteractionsSvg",(P.ytPlayerOverlayInteractionInteractionsSvgHover=H,P),(n.ytPlayerOverlayInteractionInteractionsSvgHideOutline=W,n)),role:"button","on:click":d})},"Bk");_.LG(_.r(function(H){var U=H.data;_.pA(function(){var A;if((A=U())==null?0:A.trackingParams){var M;_.k$().graftServerVe((M=U().trackingParams)!=null?M:"")}});
return _.Z("yt-player-overlay-interaction",null,_.Z(NqY,{region:function(){var A,M;return(A=U())==null?void 0:(M=A.regions)==null?void 0:M[0]}},_.Z(SOf,Object.assign({},H))))},"Ak"),"yt-player-overlay-interaction",{props:{data:_.sY}});var pmh=_.r(function(H){var U=H.data;var A=H.index;var M=H.selectedChoice;var W=function(){var w;return _.p((w=U())==null?void 0:w.renderer,VBp)};
H={};return _.Z("yt-overlay-poll-sticker-choice",{class:_.CG("ytOverlayPollStickerChoiceHost"),style:_.rA({"--displayed-percentage":function(){var w,d,O,f;return""+Math.ceil(Number((M==null?void 0:M())===A()?(w=W())==null?void 0:(d=w.selected)==null?void 0:d.progressBarWidth:(O=W())==null?void 0:(f=O.unselected)==null?void 0:f.progressBarWidth)*100)}})},_.Z("div",{class:_.CG("ytOverlayPollStickerChoicePollChoice",(H.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(M==null?void 0:M())!==
void 0},H.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(M==null?void 0:M())===A()},H))},_.Z("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var w;
return((w=W())==null?void 0:w.text)||""}),_.Z("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(M==null?void 0:M())==="undefined")var w="";
else{var d,O,f,J;w=(M==null?void 0:M())===A()?(d=W())==null?void 0:(O=d.selected)==null?void 0:O.votePercentage:(f=W())==null?void 0:(J=f.unselected)==null?void 0:J.votePercentage}return w})))},"Ck");var L0B=_.r(function(H){var U=H.data;var A=H.enableDebuggingFeatures;var M=_.Gk(function(w){var d,O=((d=U())==null?void 0:d.postPollStateEntityKey)||"";w=_.rH(w.entities,"postPollStateEntity",O);var f;return((f=U())==null?0:f.viewerIsOwner)?Object.assign({},w,{selectedOptionId:-1,voted:!0}):w}),W=_.lx().resolve(_.YV);
H={};return _.Z("yt-overlay-poll-sticker",null,_.Z(NqY,{region:function(){var w,d;return(w=U())==null?void 0:(d=w.region)==null?void 0:d.interactionRegion}},_.Z("div",{class:_.CG("ytOverlayPollStickerHost",(H.ytOverlayPollStickerDebugStyle=function(){return A==null?void 0:A()},H)),
style:_.rA({"--original-height":function(){var w;return""+(((w=U())==null?void 0:w.mainBodyHeight)||1)},
"--original-width":function(){var w;return""+(((w=U())==null?void 0:w.mainBodyWidth)||1)},
"--scaled-width":function(){var w;return""+(((w=U())==null?void 0:w.mainBodyWidth)||1)},
"--primary-surface":function(){var w,d;return sHh(((w=U())==null?void 0:(d=w.theme)==null?void 0:d.primarySurface)||0)},
"--raised-surface":function(){var w,d;return sHh(((w=U())==null?void 0:(d=w.theme)==null?void 0:d.raisedSurface)||0)},
"--secondary-surface":function(){var w,d;return sHh(((w=U())==null?void 0:(d=w.theme)==null?void 0:d.secondarySurface)||0)},
"--primary-text":function(){var w,d;return sHh(((w=U())==null?void 0:(d=w.theme)==null?void 0:d.primaryText)||0)},
"--secondary-text":function(){var w,d;return sHh(((w=U())==null?void 0:(d=w.theme)==null?void 0:d.secondaryText)||0)}})},_.Z("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return U().questionText}," "),_.Z(_.FQ,{each:function(){return U().pollChoiceConfigs||[]}},function(w,d){return _.Z("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.c$(function(){var O=d(),f;if((f=U())==null||!f.viewerIsOwner){var J,F;f=(J=U())==null?void 0:(F=J.pollChoiceConfigs)==null?void 0:F[O];if(F=(f==null?0:f.renderer)?_.p(f.renderer,VBp):void 0){var P;J=((P=M())==null?void 0:P.selectedOptionId)!==O;var n;if(P=(n=J?F.selectedPollCommand:F.deselectedPollCommand)==null?void 0:n.innertubeCommand){W.resolveCommand(P);var N,L;_.Sq().dispatch(_.hs("postPollStateEntity",((N=M())==null?void 0:N.key)||"",{key:((L=M())==null?void 0:L.key)||"",selectedOptionId:J?
O:-1,voted:J}))}}}})},_.Z(pmh,{data:w,
index:d,selectedChoice:function(){var O,f;return((O=M())==null?0:O.voted)?(f=M())==null?void 0:f.selectedOptionId:void 0}}))}),_.Z("div",{class:"ytOverlayPollStickerVoteCount"},function(){var w,d;
return((w=M())==null?0:w.voted)&&((d=M())==null?void 0:d.selectedOptionId)!==-1?U().postVoteCountText:U().preVoteCountText}))))},"Dk");_.LG(_.r(function(H){var U=H.data;H=_.Ja(function(){var A;return _.S("enable_shorts_poll_stickers_web")?(((A=U())==null?void 0:A.stickers)||[]).filter(function(M){return M.pollSticker}):[]},void 0,"Cflxwb");
return _.Z("yt-stickers-layer",null,_.Z(_.FQ,{each:H},function(A){return _.Z(L0B,{data:A.pollSticker,enableDebuggingFeatures:function(){var M;return(M=U())==null?void 0:M.enableDebuggingFeatures}})}))},"Ek"),"yt-stickers-layer",{props:{data:_.sY}});var Ci=function(){var H=_.B.apply(this,arguments)||this;H.showScrubber=!1;H.isWatchWhileMode=!1;H.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");H.enablePollStickers=_.S("enable_shorts_poll_stickers_web");H.anchoredPanelActive=!1;H.enableLivingroomLayout=_.S("reels_enable_livingroom_layout");H.enablePlayerMetadataContainer=_.S("reels_web_enable_metadata_container");H.enableSqueezebackPanels=_.S("web_shorts_enable_squeezeback_panels");H.useAspectRatio=_.S("web_use_aspect_ratio");H.isSqueezebackActive=
!1;H.smallScreenSqueezeback=!1;H.isPlayerStarted=!1;H.overlayDensity=0;H.extractOverlay=!1;H.extractActionBar=!1;H.isOverlay=!1;H.isImmersive=!1;H.isImmersiveHorizontal=!1;H.isFullscreen=!1;H.onWindowResized=function(){var U;H.set("isImmersive",((U=window.getComputedStyle(H.hostElement))==null?void 0:U.getPropertyValue("--immersive-mode-on"))==="1");H.set("isImmersiveHorizontal",H.isImmersive&&H.enableLivingroomLayout&&!H.isWatchWhileMode)};
return H};
_.R(Ci,_.B);_.X=Ci.prototype;_.X.updateIsOverlay=function(H){this.isOverlay=H.detail.value};
_.X.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.X.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.X.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.X.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.X.onOverlayDensityChange=function(){var H=_.c4(this.hostElement).querySelector("ytd-info-panel-container-renderer");H&&(H.set("extractOverlay",this.extractOverlay),H.set("roundedContainer",this.extractOverlay))};
_.X.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.X.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.X.ready=function(){(_.S("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.S("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.kV("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.kV("reels_action_justified_content")||"flex-start")};
_.X.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",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.X.setFakeLoadingButtons=function(){_.S("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.hP("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.hP("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.hP("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.hP("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.hP("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()};
_.X.setEmptyOverlayMetadata=function(){_.S("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}))};
_.D5.Object.defineProperties(Ci.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.infoPanel)}}});
Ci.prototype.onOverlayDensityChange=Ci.prototype.onOverlayDensityChange;Ci.prototype.onIsActiveChanged=Ci.prototype.onIsActiveChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Ci.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Ci.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Ci.prototype,"ytdReduxBehavior",void 0);
_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],Ci.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ci.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],Ci.prototype,"isActive",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Ci.prototype,"hidden",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],Ci.prototype,"useShortsIcon",void 0);
_.G([_.y({value:"left"}),_.q("design:type",String)],Ci.prototype,"buttonTooltipPosition",void 0);_.G([_.y({value:_.S("reels_enable_livingroom_layout")?"top":"left"}),_.q("design:type",String)],Ci.prototype,"likeButtonTooltipPosition",void 0);_.G([_.y({value:"none"}),_.q("design:type",String)],Ci.prototype,"textTransform",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ci.prototype,"showScrubber",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ci.prototype,"isWatchWhileMode",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data.infoPanel"),_.q("design:type",Object),_.q("design:paramtypes",[])],Ci.prototype,"hasInfoPanel",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ci.prototype,"enableAnchoredPanel",void 0);_.G([_.y(),_.q("design:type",Object)],Ci.prototype,"enablePollStickers",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ci.prototype,"anchoredPanelActive",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ci.prototype,"enableLivingroomLayout",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Ci.prototype,"enablePlayerMetadataContainer",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ci.prototype,"enableSqueezebackPanels",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ci.prototype,"useAspectRatio",void 0);_.G([_.y({selector:_.k5F,reflectToAttribute:!0}),_.q("design:type",Object)],Ci.prototype,"isSqueezebackActive",void 0);_.G([_.y({selector:nU$,reflectToAttribute:!0}),_.q("design:type",Object)],Ci.prototype,"smallScreenSqueezeback",void 0);_.G([_.y({selector:NHY}),_.q("design:type",Object)],Ci.prototype,"isPlayerStarted",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ci.prototype,"overlayDensity",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ci.prototype,"extractOverlay",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Ci.prototype,"extractActionBar",void 0);_.G([_.y(),_.q("design:type",Object)],Ci.prototype,"isOverlay",void 0);_.G([_.y(),_.q("design:type",Object)],Ci.prototype,"isImmersive",void 0);
_.G([_.y(),_.q("design:type",Object)],Ci.prototype,"isImmersiveHorizontal",void 0);_.G([_.y({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.q("design:type",Boolean)],Ci.prototype,"isShortsImmersive",void 0);_.G([_.y({computed:"computeButtonOverride(extractActionBar)"}),_.q("design:type",Object)],Ci.prototype,"buttonOverride",void 0);
_.G([_.y({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.q("design:type",Object)],Ci.prototype,"actionBarButtonOverride",void 0);_.G([_.y({selector:_.aR,reflectToAttribute:!0}),_.q("design:type",Object)],Ci.prototype,"isFullscreen",void 0);_.G([_.Ya("isActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ci.prototype,"onIsActiveChanged",null);
_.G([_.Ya("extractOverlay"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ci.prototype,"onOverlayDensityChange",null);_.G([_.dX({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],Ci);
_.e(Ci,"ytd-reel-player-overlay-renderer",function(){if(Ply!==void 0)return Ply;var H=document.createElement("template");_.E(H,'\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-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" 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-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\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]]" extract-overlay="[[extractOverlay]]" 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="[[actionBarButtonOverride]]" 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="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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Ply=H},{mode:1});var RcB;var tU=function(){var H=_.B.apply(this,arguments)||this;H.videoDuration=0;H.playedTime=0;H.isActive=!1;H.JSC$22066_playerEvents=new Map;return H};
_.R(tU,_.B);_.X=tU.prototype;_.X.created=function(){this.JSC$22066_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22066_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.X.attached=function(){this.getPlayerAndInitializeListeners()};
_.X.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22066_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.lN(this,this.onPageChanged))};
_.X.getPlayerAndInitializeListeners=function(){var H=this,U;return _.u(function(A){if(A.nextAddress==1)return U=_.Ly(),U?A.yield(U.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.lN(H,H.onPageChanged)),A.jumpTo(0));H.player=A.yieldResult;H.initializePlayerListeners();_.DO(A)})};
_.X.onPageChanged=function(H){var U=this;return _.u(function(A){if(A.nextAddress==1)return H.detail.newPageType!=="ytd-shorts"?A.return():A.yield(_.RL().getPlayerPromise(),2);U.player=A.yieldResult;U.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.lN(U,U.onPageChanged));_.DO(A)})};
_.X.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22066_playerEvents)};
_.X.onVideoDataChange=function(H){var U=this;return _.u(function(A){if(!U.player||H.type!=="newdata")return A.return();U.videoDuration=_.S("web_shorts_use_progress_state_for_gapless")?U.player.getProgressState(H.playertype).seekableEnd:U.player.getDuration(H.playertype);U.playedTime=0;_.DO(A)})};
_.X.onVideoProgress=function(H){var U=this,A,M;return _.u(function(W){if(!U.player)return W.return();A=U.player.getPresentingPlayerType();M=U.player.getPlayerState();U.videoDuration=_.S("web_shorts_use_progress_state_for_gapless")?U.player.getProgressState(A).seekableEnd:U.player.getDuration(A);U.playedTime=M===0?U.videoDuration:H;_.DO(W)})};
_.X.getPercentPlayed=function(H,U){return H?_.b$(U/H,0,1):0};
_.D5.Object.defineProperties(tU.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 H="";return H=this.videoDuration&&this.playedTime?H+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):H+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],tU.prototype,"componentBehavior",void 0);_.G([_.g(_.nm.YtPlayerListenerBehavior),_.q("design:type",_.NM)],tU.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],tU.prototype,"player",void 0);_.G([_.y(),_.q("design:type",Object)],tU.prototype,"videoDuration",void 0);_.G([_.y(),_.q("design:type",Object)],tU.prototype,"playedTime",void 0);_.G([_.y(),_.q("design:type",Object)],tU.prototype,"isActive",void 0);
_.G([_.a("videoDuration","playedTime"),_.q("design:type",Number),_.q("design:paramtypes",[])],tU.prototype,"percentPlayed",null);_.G([_.a("videoDuration","playedTime"),_.q("design:type",Object),_.q("design:paramtypes",[])],tU.prototype,"percentPlayedStyle",null);_.G([_.a("videoDuration","isActive"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],tU.prototype,"hideProgressBar",null);
_.e(tU,"ytd-progress-bar-line",function(){if(RcB===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);RcB=H}H=RcB;return H},{mode:2});var Ewy;_.LG(JlY,"ytm-closed-captioning-button",{props:{captionIconType:_.sY,onClick:_.Ne,ariaLabel:_.sY,ariaPressed:_.sY,isOverlay:_.Ne}});_.LG(_.ckp,"volume-controls",{props:{orientation:_.sY}});var cP=function(){var H=_.B.apply(this,arguments)||this;H.playerState=null;H.isMuted=!1;H.volumeControlsOrientationState="horizontal_right";H.isOverlay=!0;H.isAdsOverlay=!1;H.captionIconType=-1;H.ariaLabel="";H.overlayDensity=0;H.JSC$22069_playerEvents=new Map;H.onClosedCaptionsButtonClick=function(){H.player&&mY$(H.player)&&(H.player.toggleSubtitles(),H.updateCaptionIconType())};
return H};
_.R(cP,_.B);_.X=cP.prototype;_.X.created=function(){this.JSC$22069_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22069_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.JSC$22069_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.X.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.ts(28662);this.playPauseButtonClientVE=_.ts(36842);this.fullscreenButtonToggleOffClientVE=_.ts(222256);this.fullscreenButtonToggleOnClientVE=_.ts(222257);var H=_.XK(),U=_.ws();H&&U&&(_.S("combine_ve_grafts")?(_.$g(_.k$(),this.muteButtonClientVE,U),_.$g(_.k$(),this.playPauseButtonClientVE,U)):_.F_(H,U,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.X.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22069_playerEvents),this.player=null)};
_.X.updateCaptionIconType=function(){var H=-1,U=void 0,A=_.hP("CLOSED_CAPTIONS_DISABLED");this.player&&mY$(this.player)&&(gUh(this.player)?(U=!0,A=_.hP("CLOSED_CAPTIONS_ON"),H=1):(U=!1,A=_.hP("CLOSED_CAPTIONS_OFF"),H=0));this.captionIconType=H;this.ariaPressedState=U;this.ariaLabel=A};
_.X.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.X.getPlayerAndInitializeListeners=function(){var H=this,U;return _.u(function(A){if(A.nextAddress==1)return U=_.Ly(),U?A.yield(U.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.lN(H,H.onPageChanged)),A.jumpTo(0));H.player=A.yieldResult;H.initializePlayerListeners();_.DO(A)})};
_.X.onPageChanged=function(H){var U=this;return _.u(function(A){if(A.nextAddress==1)return H.detail.newPageType!=="ytd-shorts"?A.return():A.yield(_.RL().getPlayerPromise(),2);U.player=A.yieldResult;U.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.lN(U,U.onPageChanged));_.DO(A)})};
_.X.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22069_playerEvents);this.updateCaptionIconType()};
_.X.onPlayerStateChange=function(H){this.playerState=H};
_.X.onPlayerVolumeChange=function(H){this.isMuted=H.muted};
_.X.onPlayPauseButtonClick=function(){var H=this,U,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(_.RL().getPlayerPromise(),2);U=M.yieldResult;(A=_.XK())&&H.playPauseButtonClientVE&&_.NY(A,H.playPauseButtonClientVE);U.getPlayerState()!==1?U.playVideo():U.pauseVideo();_.DO(M)})};
_.X.computePlayPauseIcon=function(H){return H===2||H===-1||H===5?"PLAY_ARROW_FILLED":"PAUSE_FILLED"};
_.X.computeFullscreenLabel=function(H){return H?_.hP("FULLSCREEN_EXIT_LABEL"):_.hP("FULLSCREEN_ENTER_LABEL")};
_.X.computePlayPauseLabel=function(H){return H===1||H===3?_.hP("PLAYER_LABEL_PAUSE"):_.hP("PLAYER_LABEL_PLAY")};
_.X.onMuteButtonClick=function(){var H=this,U,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(_.RL().getPlayerPromise(),2);U=M.yieldResult;(A=_.XK())&&H.muteButtonClientVE&&_.NY(A,H.muteButtonClientVE);U.isMuted()?U.unMute(!0):U.mute(!0);_.DO(M)})};
_.X.computeMuteIcon=function(H){return H?"miniplayer:volume-off":"miniplayer:volume-up"};
_.X.computeMuteLabel=function(H){return H?_.hP("PLAYER_LABEL_UNMUTE"):_.hP("PLAYER_LABEL_MUTE")};
_.X.onFullscreenButtonClick=function(){var H=_.XK();H&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.NY(H,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.NY(H,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();B3m()};
_.D5.Object.defineProperties(cP.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var H=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(){H.onPlayPauseButtonClick()},
disableBackdropFilter:!0,customColors:{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}}}},
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),disableBackdropFilter:!0,customColors:{backgroundColor:"transparent"}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"player_full_exit_alt":"player_full_enter_alt"}}});
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],cP.prototype,"componentBehavior",void 0);_.G([_.g(_.nm.YtPlayerListenerBehavior),_.q("design:type",_.NM)],cP.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],cP.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],cP.prototype,"player",void 0);_.G([_.y(),_.q("design:type",Object)],cP.prototype,"playerState",void 0);_.G([_.y(),_.q("design:type",Object)],cP.prototype,"isMuted",void 0);
_.G([_.y({computed:"computePlayPauseIcon(playerState)"}),_.q("design:type",String)],cP.prototype,"playPauseIcon",void 0);_.G([_.y({computed:"computeMuteIcon(isMuted)"}),_.q("design:type",String)],cP.prototype,"muteIcon",void 0);_.G([_.y({selector:_.aR}),_.q("design:type",Boolean)],cP.prototype,"isFullscreen",void 0);_.G([_.y(),_.q("design:type",Object)],cP.prototype,"volumeControlsOrientationState",void 0);_.G([_.y(),_.q("design:type",Object)],cP.prototype,"isOverlay",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],cP.prototype,"isAdsOverlay",void 0);_.G([_.y(),_.q("design:type",Object)],cP.prototype,"captionIconType",void 0);_.G([_.y(),_.q("design:type",Object)],cP.prototype,"ariaLabel",void 0);_.G([_.y(),_.q("design:type",Object)],cP.prototype,"ariaPressedState",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],cP.prototype,"overlayDensity",void 0);_.G([_.y(),_.q("design:type",Object)],cP.prototype,"data",void 0);
_.G([_.y({computed:"computeActionBarButtonOverride()"}),_.q("design:type",Object)],cP.prototype,"actionBarButtonOverride",void 0);_.G([_.a("playerState"),_.q("design:type",Object),_.q("design:paramtypes",[])],cP.prototype,"playPauseButtonData",null);_.G([_.a("isFullscreen"),_.q("design:type",Object),_.q("design:paramtypes",[])],cP.prototype,"fullscreenButtonData",null);_.G([_.y(),_.q("design:type",Object)],cP.prototype,"onClosedCaptionsButtonClick",void 0);
_.G([_.a("isFullscreen"),_.q("design:type",String),_.q("design:paramtypes",[])],cP.prototype,"fullscreenIcon",null);
_.e(cP,"ytd-shorts-player-controls",function(){if(Ewy===void 0){var H=document.createElement("template");_.E(H,'\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<div id="left-controls" class="style-scope ytd-shorts-player-controls">\n  <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  <volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></volume-controls>\n</div>\n<div id="right-controls" class="style-scope ytd-shorts-player-controls">\n  <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n    <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n    </ytm-closed-captioning-button>\n  </div>\n  <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n    <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n  </div>\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</div>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);Ewy=H}H=Ewy;return H},{mode:1});var m05;_.LG(_.Kf5,"yt-interstitial-view-model",{props:{data:_.sY}});var gw7=_.r(function(H){var U=H.data;return _.Z("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.Z("h1",{class:"reelWatchBreakViewModelHostTitle"},_.Z(_.Pb,{text:function(){return U().title}})),_.Z("h2",{class:"reelWatchBreakViewModelHostBody"},_.Z(_.Pb,{text:function(){return U().body},
isOverlay:!0})),_.Z(_.YY,{data:function(){return U().buttons}},{buttonViewModel:function(A,M){return _.Z("div",{class:function(){return M()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.Z(_.yJ,{data:A.data}))}}))},"Fk");
gw7.idomCompat=!0;_.LG(gw7,"reel-watch-break-view-model",{props:{data:_.sY}});var yR=function(){return _.B.apply(this,arguments)||this};
_.R(yR,_.B);yR.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}}};
_.D5.Object.defineProperties(yR.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var H;return!!_.p((H=this.data)==null?void 0:H.renderer,tLm)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var H;return!!_.p((H=this.data)==null?void 0:H.renderer,cSf)}}});
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],yR.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],yR.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],yR.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],yR.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.a("data.renderer"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],yR.prototype,"isSurvey",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.renderer"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],yR.prototype,"isInterstitialViewModel",null);_.G([_.dX({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],yR);
_.e(yR,"ytd-reel-non-video-content-renderer",function(){if(m05!==void 0)return m05;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
return m05=H},{mode:2});var arm;_.LG(_.txp,"desktop-shorts-player-controls",{});var BP=function(){var H=_.B.apply(this,arguments)||this;H.isPlayerPaused=!1;H.isPlayerStarted=!1;H.showPlayerControls=!1;H.showScrubber=!1;H.autoHideJobId=0;H.overlayType=_.kV("web_shorts_expanded_overlay_type");H.panelData=void 0;H.isWatchWhileMode=!1;H.hasError=!1;H.panelShowDelayMs=1;H.scrubberComponent={};H.isFullscreen=!1;H.shouldHideOverlay=!1;H.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");H.enablePersistentAnchoredPanel=_.S("desktop_shorts_v2_persistent_anchored_panel");H.hideWatchWhilePanel=
_.S("web_shorts_hide_watch_while_panel");H.useAspectRatio=_.S("web_use_aspect_ratio");H.isPersistentPanelActive=!1;H.anchoredPanelActive=!1;H.isShortsPipActive=!1;H.smallScreenSqueezeback=!1;H.overlayDensity=0;H.extractOverlay=!1;H.extractActionBar=!1;H.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};H.onWindowResized=function(){_.F8(H,"calculateOverlayDensity",function(){H.calculateOverlayDensity()},
100)};
return H};
_.R(BP,_.B);_.X=BP.prototype;_.X.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.X.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.X.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var H=_.lx().resolve(_.Mx);this.isWatchWhileMode&&_.Fl.addJob(function(){H.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.X.handleShowReelsCommentsOverlayCommand=function(H){H=_.p(H,KlB);this.isActive&&(H==null?0:H.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))};
_.X.updateEngagementPanelVisibility=function(H,U){H&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:U?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:H}})};
_.X.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;window.removeEventListener("resize",this.onWindowResized)};
_.X.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.lx().resolve(_.k9).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.X.handleWatchWhilePanelScrimClick=function(){var H=_.lx().resolve(_.Mx);this.activeWatchWhilePanel&&(H.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.X.attached=function(){this.isFirstReel()&&this.handlePlayerClick();window.addEventListener("resize",this.onWindowResized);this.calculateOverlayDensity()};
_.X.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},renderPriority: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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:_.S("web_enable_shorts_no_idle_job")?8:0}}};
_.X.handlePlayerClick=function(H){var U=this,A,M;if((M=(A=window).matchMedia)!=null&&M.call(A,"(any-pointer: coarse)").matches||!H)this.showPlayerControls=!0,_.Fl.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Fl.addJob(function(){U.showPlayerControls=!1},0,4E3)};
_.X.isFirstReel=function(){return this.index===0};
_.X.handleMouseenter=function(){_.Fl.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.X.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.X.handleScrubberEnter=function(){this.showScrubber=!0};
_.X.handleScrubberLeave=function(){this.showScrubber=!1};
_.X.maybeLogNonDefaultAspectRatio=function(){var H;(H=this.data)!=null&&H.thumbnail&&this.isActive&&.5625!==hRp(this.data.thumbnail)&&_.zdN("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.X.calculateOverlayDensity=function(){var H=document.querySelector("#shorts-container");if(H){var U=!1,A,M=this.playerContainer.offsetWidth,W=this.playerContainer.offsetHeight;H=H.offsetWidth/2-M/2;H>=368?(H=1,U=A=!0):H>=72?(H=0,A=!0):(H=2,A=!1);M>=600&&W>=840?H=1:window.innerWidth<=599&&(H=2,A=U=!1);this.isPersistentPanelActive&&(H=0,U=!1);this.extractActionBar=A;this.overlayDensity=H;this.extractOverlay=U;var w;(w=this.onOverlayDensityChanged)==null||w.call(this,this.index,this.overlayDensity,
this.extractOverlay,this.extractActionBar)}};
_.X.onOverlayDensityChange=function(){var H;(H=this.onOverlayDensityChanged)==null||H.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(H=_.c4(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))H.set("overlayDensity",this.overlayDensity),H.set("extractOverlay",this.extractOverlay),H.set("extractActionBar",this.extractActionBar);if(H=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))H.overlayDensity=this.overlayDensity,H.extractOverlay=
this.extractOverlay,H.extractActionBar=this.extractActionBar};
_.X.isVideoContent=function(H){_.lx().resolve(_.k9);return!!_.p(H,_.kO)};
_.X.isNonVideoContent=function(H){_.lx().resolve(_.k9);return!!_.p(H,_.O7)};
_.X.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.D5.Object.defineProperties(BP.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.adsOverlay)}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&this.isPlayerStarted}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var H;return!this.isActive||!this.isPlayerStarted||(H=this.data)!=null&&H.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var H;if(((H=this.data)==null?0:H.command)&&this.isVideoContent(this.data.command)){var U,A;if(((U=this.data)==null?0:U.adsOverlay)&&Object.keys((A=this.data)==null?void 0:A.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var M,W;if(((M=this.data)==null?0:M.reelPlayerOverlayRenderer)&&Object.keys((W=this.data)==null?void 0:W.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
BP.prototype.onOverlayDensityChange=BP.prototype.onOverlayDensityChange;BP.prototype.calculateOverlayDensity=BP.prototype.calculateOverlayDensity;BP.prototype.maybeLogNonDefaultAspectRatio=BP.prototype.maybeLogNonDefaultAspectRatio;BP.prototype.onEngagementPanelsChanged=BP.prototype.onEngagementPanelsChanged;BP.prototype.onScrubberDataChange=BP.prototype.onScrubberDataChange;BP.prototype.updateShouldHideOverlay=BP.prototype.updateShouldHideOverlay;
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],BP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],BP.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],BP.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],BP.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Number)],BP.prototype,"index",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],BP.prototype,"isActive",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],BP.prototype,"isHiddenInDom",void 0);_.G([_.y(),_.q("design:type",Object)],BP.prototype,"isPlayerPaused",void 0);_.G([_.y({selector:NHY}),_.q("design:type",Object)],BP.prototype,"isPlayerStarted",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"showPlayerControls",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"showScrubber",void 0);_.G([_.y(),_.q("design:type",Object)],BP.prototype,"autoHideJobId",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"overlayType",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],BP.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],BP.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],BP.prototype,"watchWhileEngagementPanels",void 0);_.G([_.y(),_.q("design:type",Object)],BP.prototype,"panelData",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"isWatchWhileMode",void 0);_.G([_.y(),_.q("design:type",String)],BP.prototype,"activeWatchWhilePanel",void 0);_.G([_.y(),_.q("design:type",Object)],BP.prototype,"hasError",void 0);_.G([_.y(),_.q("design:type",Object)],BP.prototype,"panelShowDelayMs",void 0);
_.G([_.y(),_.q("design:type",Object)],BP.prototype,"scrubberComponent",void 0);_.G([_.y({selector:_.aR,reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"isFullscreen",void 0);_.G([_.y(),_.q("design:type",Object)],BP.prototype,"shouldHideOverlay",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"enableAnchoredPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"enablePersistentAnchoredPanel",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"hideWatchWhilePanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"useAspectRatio",void 0);_.G([_.y({selector:_.k5F,reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"isPersistentPanelActive",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"anchoredPanelActive",void 0);
_.G([_.y({selector:_.xC,reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"isShortsPipActive",void 0);_.G([_.y({selector:nU$,reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"smallScreenSqueezeback",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data.adsOverlay"),_.q("design:type",Object),_.q("design:paramtypes",[])],BP.prototype,"isAdsOverlay",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"overlayDensity",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"extractOverlay",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"extractActionBar",void 0);_.G([_.y(),_.q("design:type",Function)],BP.prototype,"onOverlayDensityChanged",void 0);_.G([_.y(),_.a("isActive","hasError","isPlayerStarted"),_.q("design:type",Object),_.q("design:paramtypes",[])],BP.prototype,"shouldRenderPlayerElements",null);
_.G([_.y(),_.a("isActive","isWatchWhileMode"),_.q("design:type",Object),_.q("design:paramtypes",[])],BP.prototype,"watchWhileOrPersistentActive",null);_.G([_.Ya("isActive","hasError","showingExpandedOverlay"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BP.prototype,"updateShouldHideOverlay",null);
_.G([_.y({reflectToAttribute:!0}),_.a("isActive","isPlayerStarted","data"),_.q("design:type",Object),_.q("design:paramtypes",[])],BP.prototype,"shouldRenderScrubber",null);_.G([_.Ya("shouldRenderScrubber"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BP.prototype,"onScrubberDataChange",null);_.G([_.a("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],BP.prototype,"overlayComponent",null);
_.G([_.Ya("watchWhileEngagementPanels"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BP.prototype,"onEngagementPanelsChanged",null);_.G([_.hG("#player-container"),_.q("design:type",HTMLElement)],BP.prototype,"playerContainer",void 0);_.G([_.hG("#cinematic-container"),_.q("design:type",HTMLElement)],BP.prototype,"cinematicContainer",void 0);
_.G([_.Ya("isPersistentPanelActive","data.thumbnail"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BP.prototype,"maybeLogNonDefaultAspectRatio",null);_.G([_.Ya("isPersistentPanelActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BP.prototype,"calculateOverlayDensity",null);
_.G([_.Ya("overlayDensity","extractOverlay","extractActionBar"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BP.prototype,"onOverlayDensityChange",null);_.G([_.dX({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],BP);
_.e(BP,"ytd-reel-video-renderer",function(){if(arm!==void 0)return arm;var H=document.createElement("template");_.E(H,'\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="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div id="video-filtering-overlay-container" class="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">\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              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\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="[[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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return arm=H},{mode:2});var rQ=function(){var H=_.B.apply(this,arguments)||this;H.isPreviousPageShorts=!1;H.index=0;H.delayedActiveIndex=0;H.playablePreviousIndex=null;H.isPlayerPaused=!1;H.isPlayerStarted=!1;H.intersectionObserverThreshold=.6;H.fitToVisibleBounds=!1;H.pageSubtype="shorts";H.enablePreviousContinuation=_.S("shorts_in_playlists_web");H.shortsPipEnabled=_.S("web_shorts_pip");H.isDark=document.documentElement.hasAttribute("dark");H.shortsViewTransitions=_.S("web_shorts_view_transitions");H.isFullscreen=!1;H.isShortsPipActive=
!1;H.buttonOverride={iconPosition:"icon-only",size:"XL"};H.anchoredPanelActive=!1;H.isActive=!1;H.smallScreenPersistentPanel=!1;H.isPersistentPanelActive=!1;H.smallScreenSqueezeBack=!1;H.enableScrollIntoViewCenter=_.S("web_scroll_into_view_center");H.extractOverlay=!1;H.useAspectRatio=_.S("web_use_aspect_ratio");H.enableShortsSequenceRefactorUnify=_.S("web_enable_shorts_sequence_refactor_unify");H.continuationRequestPending=!1;H.carouselContainers=[];H.isShortsInitialized=!1;H.shortsContentList=[];
H.hasDataUpdated=!1;H.playerInPosition=!1;H.hidePreviousButtonImmediately=!1;H.showPreviousButtonImmediately=!1;H.endOfNextContinuation=!1;H.currentPlayerIndex=0;H.nextReelVe=_.ts(56921);H.prevReelVe=_.ts(56922);H.loopToggleOffVe=_.ts(198013);H.loopToggleOnVe=_.ts(198014);H.ambientModeToggleVe=_.ts(227860);H.reelPlayerPausedStateRendererVe=_.ts(141313);H.storedPlaybackSpeed=null;H.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","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};H.onOverlayDensityChanged=function(U,A,M,W){U=H.getActiveReelVideo(U);H.extractOverlay=!!M;U==null||U.setAttribute("overlay-density",String(A));M===void 0||U!=null&&U.toggleAttribute("extract-overlay",M);W===void 0||U!=null&&U.toggleAttribute("extract-action-bar",W)};
return H};
_.R(rQ,_.B);_.X=rQ.prototype;_.X.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.X.setShortsContentList=function(){var H=this;if(this.enableShortsSequenceRefactorUnify){var U=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.vI(this.shortsContentList)):[],A=this.firstShortsData;if(A){var M=this.reelWatchSequenceResponse;(A=this.shortsController==null?void 0:yLk(U,A,M!=null?M:null))&&A.newContentList&&(A=A.newContentList,A.length!==U.length&&(this.shortsContentList=A,_.rV(this,function(){H.observeShorts()})))}}};
_.X.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.X.onResize=function(){var H=_.Lq(),U=H.dispatch,A=this.calculateIsSmallWidth();U.call(H,_.zQ({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:A}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.X.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:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.X.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var H=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,U=H,A=0;H<250&&(U=H+this.shortsInnerContainer.clientWidth,A=24);_.Dt(this.hostElement,{"--ytd-shorts-header-width":U+"px","--ytd-shorts-top-spacing":A+"px"})}};
_.X.isFirstShorts=function(H){return H&&!this.enableShortsSequenceRefactorUnify?this.index===-H.length:this.index===0};
_.X.isActiveReel=function(H,U,A){A&&(U=this.calculatePrevIndex(U,A));return H===U};
_.X.onFullscreenChange=function(){_.S("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.lx().resolve(_.ZB).close(!0))};
_.X.engagementPanelsChanged=function(){var H;this.watchWhileEngagementPanels=(H=this.data)==null?void 0:H.engagementPanels};
_.X.unregisterPanels=function(){var H=_.lx().resolve(_.Mx);if(this.watchWhileEngagementPanels)for(var U=_.b(this.watchWhileEngagementPanels),A=U.next();!A.done;A=U.next()){var M=A.value,W=void 0,w=void 0;A=(W=M.engagementPanelSectionListRenderer)==null?void 0:(w=W.identifier)==null?void 0:w.tag;M=this.getPanelIdentifier(M.engagementPanelSectionListRenderer);H&&(A&&H.panelMap.delete(A),M&&_.S("web_shorts_panel_caching_bugfix")&&(W=A=void 0,(W=(A=H).unregisterPanelContent)==null||W.call(A,M)))}};
_.X.isVideoContent=function(H){return this.isVideoContentCommand(H==null?void 0:H.command)};
_.X.getActiveReelVideo=function(H){return _.c4(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+H+'"]')};
_.X.calculatePrevIndex=function(H,U){return U?H-((U==null?void 0:U.length)||0):-1};
_.X.onKeydown=function(H){var U=_.Lf(H)||[];if(!bx5(U))if(H.code==="ArrowUp")H.preventDefault(),this.handlePrevButtonClick();else if(H.code==="ArrowDown")H.preventDefault(),this.handleNextButtonClick();else if(H.code==="KeyM")this.toggleMuteUnmuteVideo();else if(H.code==="KeyK"||H.code==="Space")this.togglePlayPauseVideo();else if((H.code==="KeyA"||H.code==="ArrowLeft")&&_.S("web_shorts_keyboard_enable_seek_shortcuts")){var A;(A=this.player)==null||A.seekBy(-5)}else if((H.code==="KeyD"||H.code===
"ArrowRight")&&_.S("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var M;(M=this.player)==null||M.seekBy(5)}};
_.X.onServiceRequestCompleted=function(H,U){H=U.data;if(this.enableShortsSequenceRefactorUnify){if(this.continuationRequestPending=!1,H.continuationEndpoint||H.prevContinuationEndpoint)this.reelWatchSequenceResponse=H}else H.continuationEndpoint&&H.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:H.entries,continuationEndpoint:H.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=H):H.prevContinuationEndpoint&&
H.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:H.prevEntries,prevContinuationEndpoint:H.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.X.handleEngagementPanelVisibilityChanged=function(H,U){var A=_.lx().resolve(_.Mx);if(H&&A){var M=this.getPanelIdentifier(H);if(U==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==M){A.hidePanel({identifier:this.activePanel});var W;this.activePanel=((W=H.identifier)==null?void 0:W.tag)||H.panelIdentifier}else this.isPersistentPanelActive=!0,_.Lq().dispatch(C67(!0)),this.anchoredPanelActive=!0,this.activePanel=M;else U==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===M&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Lq().dispatch(C67(!1)))}};
_.X.handlePanelScrimClick=function(){var H=_.lx().resolve(_.Mx);this.activePanel&&(H.hidePanel({identifier:this.activePanel}),_.Lq().dispatch(C67(!1)))};
_.X.getShortsLoopSetting=function(){var H,U,A,M,W;return _.u(function(w){switch(w.nextAddress){case 1:return _.S("kevlar_shorts_auto_advance")?w.yield(_.Wd.getInstance(),2):w.return(!0);case 2:return(H=w.yieldResult)?w.yield(H.get("sfvles"),3):w.return(!0);case 3:return A=(U=w.yieldResult)!=null?U:!1,w.yield(H.get("sfvle"),4);case 4:return W=(M=w.yieldResult)!=null?M:!0,A?w.return(W):w.return(!0)}})};
_.X.handleSignalActionToggleLoopShortsOff=function(){var H=this,U,A,M;return _.u(function(W){switch(W.nextAddress){case 1:if(!H.player)return W.return();H.player.setLoopVideo(!1);U=_.k$();_.GJ(U,H.loopToggleOffVe);return W.yield(_.Wd.getInstance(),2);case 2:return(A=W.yieldResult)?W.yield(A.set("sfvle",!1),3):W.return();case 3:return W.yield(A.set("sfvles",!0),4);case 4:M=_.TR(),_.jb(0,203,!1),_.jb(0,204,!0),M.save(),_.DO(W)}})};
_.X.handleSignalActionToggleLoopShortsOn=function(){var H=this,U,A,M;return _.u(function(W){switch(W.nextAddress){case 1:if(!H.player)return W.return();H.player.setLoopVideo(!0);U=_.k$();_.GJ(U,H.loopToggleOnVe);return W.yield(_.Wd.getInstance(),2);case 2:return(A=W.yieldResult)?W.yield(A.set("sfvle",!0),3):W.return();case 3:return W.yield(A.set("sfvles",!0),4);case 4:M=_.TR(),_.jb(0,203,!0),_.jb(0,204,!0),M.save(),_.DO(W)}})};
_.X.handleSignalActionToggleCinematicShortsOn=function(){t9h(!0);var H;(H=this.JSC$22094_cinematicController)==null||ziY(H,!0);_.GJ(_.k$(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.X.handleSignalActionToggleCinematicShortsOff=function(){t9h(!1);var H;(H=this.JSC$22094_cinematicController)==null||ziY(H,!1);_.GJ(_.k$(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.X.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.X.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.X.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var H=this.overlayContainer.querySelector("#experiment-overlay");H&&_.Fl.addLowPriorityJob(function(){H.style.display="unset"},100)}else if(this.overlayContainer){var U;
((U=this.playerElement.getPlayer())==null?void 0:U.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.X.getCurrentShort=function(){if(this.currentEndpoint){var H=this.currentEndpoint;if(this.isNonVideoContentCommand(H)){var U=_.p(H,_.O7);return{reelNonVideoContentRenderer:_.p(U==null?void 0:U.renderer,_.ZJ),command:H}}if(this.data){var A;U=(A=_.p(this.currentEndpoint,_.kO))==null?void 0:A.thumbnail;var M;A=(M=this.data.overlay)==null?void 0:M.reelPlayerOverlayRenderer;_.lx().resolve(_.k9);H=this.data;var W,w;M=(W=H.overlay)==null?void 0:(w=W.shortsAdsRenderer)==null?void 0:w.adSlots;if(M!==void 0)M.length===
0?(_.Kl("Shorts ads returned no ad slots."),H=void 0):(M.length>1&&_.Kl("Shorts ads has more than one ad slots."),H=_.p(M[0],_.hjk));else{var d,O;H=_.p((d=H.overlay)==null?void 0:(O=d.shortsAdsRenderer)==null?void 0:O.overlay,_.hjk)}d=H;H=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.p(this.currentEndpoint,_.kO),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var f;return{reelPlayerOverlayRenderer:A,thumbnail:U,command:H,adsOverlay:d,
videoId:(f=_.p(this.currentEndpoint,_.kO))==null?void 0:f.videoId}}}};
_.X.created=function(){var H=this;this.scrollToVideoThrottle=new _.B$(function(U,A){A=A===void 0?"smooth":A;var M;(M=H.getActiveReelVideo(U))==null||M.scrollIntoView({behavior:A,block:"nearest",inline:H.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.lx().resolve(_.k9);this.maybeCreateIntersectionObserver()};
_.X.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.X.attached=function(){var H=this;_.lx().resolve(_.k9).registerRootElement(this);this.pageScrollElement=_.c4(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.lN(this,this.processResetAction));_.S("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){H.maybeCreateIntersectionObserver();H.scrollToVideoThrottle.fire(H.activeIndex,"instant");H.shortsContainer.style.overflowY=
"scroll"}))};
_.X.calculateSqueezebackPanelSize=function(){var H=this,U=window.innerWidth-456-(window.innerHeight-106)*.5625;_.Fl.addLowPriorityJob(function(){U<360?(H.hostElement.style.setProperty("--anchored-panel-width","480px"),_.Lq().dispatch(tfX(!0))):(H.hostElement.style.setProperty("--anchored-panel-width",Math.min(U,480)+"px"),_.Lq().dispatch(tfX(!1)))})};
_.X.detached=function(){var H=_.lx().resolve(_.k9);H.rootElement=void 0;var U;(U=H.unsubscribeFromStore)==null||U.call(H);H.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.lN(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.X.onResizeFinished=function(H,U){var A=this,M=new ResizeObserver(function(){A.shortsContainer.style.overflowY="hidden";_.Fl.addLowPriorityJob(function(){U()},100)});
M.observe(H);return M};
_.X.resetDocumentScrollTop=function(){var H,U;if((H=document)==null?0:(U=H.scrollingElement)==null?0:U.scrollTop)document.scrollingElement.scrollTop=0};
_.X.loadPage_=function(H){var U=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),H){var A;if((A=_.p(this.currentEndpoint,_.kO))==null?0:A.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=H;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){U.isPlayerStarted&&
(U.handleOnPlaybackCommand(),U.afterPlayerStarted=function(){})};
this.registerPanel(H)}};
_.X.afterPlayerStarted=function(){};
_.X.handleOnPlaybackCommand=function(){if(_.S("web_shorts_comment_stickers")&&this.isPlayerStarted){var H,U=(H=_.p(this.currentEndpoint,_.kO))==null?void 0:H.onPlaybackCommand;U&&this.ytComponentBehavior.resolveCommand(U)}};
_.X.maybeCreateIntersectionObserver=function(){var H=this,U=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==U){this.intersectionObserverThreshold=U;var A={rootMargin:"0px",threshold:U},M;(M=this.intersectionObserver)==null||M.disconnect();this.intersectionObserver=new IntersectionObserver(function(W){W=_.b(W);for(var w=W.next();!w.done;w=W.next())if(w=w.value,w.intersectionRatio>U){w=Number(w.target.id);if(isNaN(w))break;if(w===H.index)break;
_.BI0();H.loadVideo(w);_.On("r_vtc")}},A);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.X.observeShorts=function(){var H,U,A,M=this.enableShortsSequenceRefactorUnify?((H=this.shortsContentList)==null?void 0:H.length)||0:(((U=this.shortsProcessedPrevSequence)==null?void 0:U.length)||0)+(((A=this.shortsProcessedSequence)==null?void 0:A.length)||0);if(this.carouselContainers.length<M&&(this.carouselContainers=[].concat(_.vI(_.c4(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))),this.enableShortsSequenceRefactorUnify))for(H=_.b(this.carouselContainers),U=H.next();!U.done;U=
H.next())U=U.value,A=void 0,(A=this.intersectionObserver)==null||A.observe(U);if(!this.enableShortsSequenceRefactorUnify)for(H=_.b(this.carouselContainers),U=H.next();!U.done;U=H.next())U=U.value,A=void 0,(A=this.intersectionObserver)==null||A.observe(U)};
_.X.initCsi=function(){f2p("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var H={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"}},U,A;if((U=this.playerData)==null?0:(A=U.cacheMetadata)==null?0:A.isCacheHit)H.isCacheHit=!0;var M;if(U=(M=_.p(this.currentEndpoint,_.kO))==null?void 0:
M.prefetchTaskId)H.prefetchInfo={taskId:U};_.wH(H)};
_.X.isAd=function(){var H,U;return!!((H=_.p(this.currentEndpoint,_.kO))==null?0:(U=H.adClientParams)==null?0:U.isAd)};
_.X.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.X.getPlayerContainer=function(){var H;return(H=_.c4(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:H.playerContainer};
_.X.onPlayerStateChange=function(H){var U=this;this.isPlayerPaused=H===2;H!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?H===1&&this.index===0&&(this.isPlayerStarted||_.Lq().dispatch(cMk(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Lq().dispatch(cMk(!0)));this.player&&!this.player.getLoopVideo()&&_.Fl.addLowPriorityJob(function(){U.getShortsLoopSetting().then(function(A){var M;(M=U.player)==null||M.setLoopVideo(A)})});
this.isPlayerPaused&&_.S("web_shorts_paused_state_logging")&&_.sn(_.XK(),[this.reelPlayerPausedStateRendererVe])};
_.X.isShortPlayable=function(){if(_.S("kevlar_playable_short_killswitch"))return!0;var H;return(H=this.playerData)!=null&&H.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.X.setNormalPlaybackSpeed=function(){var H=this,U,A;return _.u(function(M){if(M.nextAddress==1)return M.yield(H.getPlayer().getPlayerPromise(),2);U=M.yieldResult;A=U.getPlaybackRate();A!==1&&(H.storedPlaybackSpeed=A,U.setPlaybackRate(1));_.DO(M)})};
_.X.restorePlaybackSpeed=function(){var H=this,U;return _.u(function(A){if(A.nextAddress==1)return H.storedPlaybackSpeed===null?A.jumpTo(0):A.yield(H.getPlayer().getPlayerPromise(),3);U=A.yieldResult;U.setPlaybackRate(H.storedPlaybackSpeed);H.storedPlaybackSpeed=null;_.DO(A)})};
_.X.playerDataChanged=function(){var H=this,U,A,M,W,w,d,O,f,J;return _.u(function(F){if(F.nextAddress==1){U=H.getPlayer();H.enableShortsSequenceRefactorUnify||(A=H.intersectionObserver)==null||A.disconnect();if(H.playerData){if(((M=H.playerData.videoDetails)==null?void 0:M.videoId)!==((W=U.getPlayer())==null?void 0:W.getVideoData().video_id)){w={};if(d=_.p(H.currentEndpoint,_.kO))w.watch_endpoint=d,d.endTimeSeconds&&(w.end=d.endTimeSeconds);U.loadVideoWithPlayerResponse(H.playerData,w)}}else return F.return();
return H.player?F.jumpTo(2):F.yield(U.getPlayerPromise(),3)}F.nextAddress!=2&&(H.player=F.yieldResult,H.JSC$22094_playerStateChangeListener=H.onPlayerStateChange.bind(H),H.player.addEventListener("onStateChange",H.JSC$22094_playerStateChangeListener),_.S("kevlar_client_enable_shorts_player_bootstrap")&&_.oi(),H.scrollToVideoThrottle.fire(H.index),H.movePlayerToVideo(H.index),_.Fl.addLowPriorityJob(function(){H.getShortsLoopSetting().then(function(P){var n;(n=H.player)==null||n.setLoopVideo(P)})}),
_.dNB.resolve(H.player),H.player.syncVolume(),H.getPlayer().focusOnPlayer());
_.Fl.addLowPriorityJob(function(){H.observeShorts()},100);
O=H.player.getPlayerState(H.player.getPresentingPlayerType());O!==1||H.isPlayerStarted||_.Lq().dispatch(cMk(!0));H.updateBackNavContainerWidth();f=_.p(H.currentEndpoint,_.kO);((J=f)==null?0:J.startTimeSeconds)&&H.player.seekTo(f.startTimeSeconds);if(H.JSC$22094_cinematicController||H.cinematicsInitializeJobId)return F.return();H.cinematicsInitializeJobId=_.Fl.addLowPriorityJob(function(){H.initCinematicController();H.cinematicsInitializeJobId=void 0});
_.DO(F)})};
_.X.onShortUndoDismiss=function(){var H=this,U=t2h().pop();U!==void 0&&(_.rV(this,function(){H.showCardWithIndex(U)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.X.onShortsDismiss=function(H){if(H=H.detail.reelDismissalActionRenderer)(H=_.p(H.onDismissalCompletionRenderer,Huy))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:H}}}),this.scrollAndDismissCard()};
_.X.processReelNonVideoContentDismissalCommand=function(H){var U=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);H=_.p(H,J7X);this.activeDimissalTimeout=setTimeout(function(){U.scrollAndDismissCard()},Number(H==null?void 0:H.delayMs))};
_.X.scrollAndDismissCard=function(){var H=this,U=this.index;t2h().push(U);_.rV(this,function(){var A=H.getPlayableNextIndex();A!==null&&(H.hideCardWithIndex(U),H.scrollToVideoThrottle.fire(A))})};
_.X.hideCardWithIndex=function(H){if(H=this.getActiveReelVideo(H))H.hidden=!0};
_.X.showCardWithIndex=function(H){if(H=this.getActiveReelVideo(H))H.hidden=!1};
_.X.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.X.activeChanged=function(H){_.Lq().dispatch(_.zQ({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:H}}));if(H)document.addEventListener("keydown",_.lN(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var U;(U=this.player)==null||U.sendAbandonmentPing()}var A;(A=this.player)==null||A.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.lN(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.X.graftClientVisualElements=function(){if(this.data){var H=_.k$();_.XE2(H,_.DH({response:this.reelWatchSequenceResponse}));_.$g(H,this.nextReelVe);_.$g(H,this.prevReelVe);_.S("kevlar_shorts_auto_advance")&&(_.$g(H,this.loopToggleOffVe),_.$g(H,this.loopToggleOnVe));_.$g(H,this.ambientModeToggleVe);_.sn(_.XK(),[this.nextReelVe,this.prevReelVe]);_.S("web_shorts_paused_state_logging")&&_.$g(H,this.reelPlayerPausedStateRendererVe)}};
_.X.graftNvcRenderer=function(){var H,U,A,M,W,w,d=this.enableShortsSequenceRefactorUnify?(H=this.shortsContentList)==null?void 0:(U=H[this.index])==null?void 0:U.command:this.index<0?(A=this.shortsProcessedPrevSequence)==null?void 0:(M=A[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:M.command:(W=this.shortsProcessedSequence)==null?void 0:(w=W[this.index])==null?void 0:w.command;if(d&&this.isNonVideoContentCommand(d)){H=_.p(d,_.O7);var O,f;(H=(O=_.p(H==null?void 0:H.renderer,_.ZJ))==
null?void 0:(f=O.loggingDirectives)==null?void 0:f.trackingParams)&&_.k$().graftServerVe(H)}};
_.X.setActiveIndex=function(){_.lx().resolve(_.k9).setActiveIndex(this.index)};
_.X.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.X.lazyUpdateMiniplayerData=function(){var H=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.Fl.addLowPriorityJob(function(){H.updateMiniplayerData();H.updateMiniplayerDataJobId=void 0}))};
_.X.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.Fl.cancelJob(this.updateMiniplayerDataJobId)};
_.X.updateMiniplayerData=function(){var H,U,A,M=_.lx().resolve(_.ZB),W={shortsData:this.getCurrentShort(),previousButtonDisabled:!((H=this.prevButtonData)==null||!H.isDisabled),nextButtonDisabled:!((U=this.nextButtonData)==null||!U.isDisabled),playabilityStatus:(A=this.playerData)==null?void 0:A.playabilityStatus};_.lO(M,W)};
_.X.resetPlayerLocation=function(){var H=this.getPlayer();this.initialPlayerContainer&&H.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.X.movePlayerToVideo=function(H,U){var A=this;U=U===void 0?!0:U;var M=this.getActiveReelVideo(H),W=this.getPlayer();if(M){this.overlayContainer?M.appendChild(this.overlayContainer):(this.overlayContainer=_.c4(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,M.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||W.appendTo(this.overlayContainer.playerContainer,void 0,!0));var w;(w=this.player)==null||w.setSize(NaN,NaN);this.isActive||_.Fl.addJob(function(){A.isActive=
!0},0);
W.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.S("reels_web_disable_rtr_tick")||_.S("reels_web_use_pbs_first_shorts")&&H===0||_.ba("r_tr");this.currentPlayerIndex=H;M.appendChild(this.errorScreenContainer);var d;(d=this.JSC$22094_cinematicController)==null||y4f(d)}else U?_.Fl.addLowPriorityJob(function(){A.movePlayerToVideo(A.index,!1)}):Math.random()<=_.hr("web_shorts_error_logging_threshold")&&_.n5(new _.bD("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:U,
index:H}))};
_.X.getAspectRatio=function(H){return(H==null?0:H.thumbnail)&&hRp(H.thumbnail)?"--ytd-shorts-player-ratio: "+hRp(H.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.X.getBackgroundImage=function(H){if(H!=null&&H.thumbnail)return(H=_.EB(H.thumbnail.thumbnails))?'background-image:url("'+H+'");':"background-color:black;"};
_.X.getBackgroundImageUrl=function(H){if(H!=null&&H.thumbnail)return _.EB(H.thumbnail.thumbnails)};
_.X.onPersistentPanelActiveChanged=function(){var H=this.getCurrentShort();if(H&&(H==null?0:H.thumbnail)&&hRp(H.thumbnail)!==.5625){var U;(U=this.player)==null||U.setSize(NaN,NaN)}};
_.X.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.X.moveCinematicsToVideo=function(){var H=_.c4(this.hostElement).querySelector("ytd-reel-video-renderer");(H==null?0:H.cinematicContainer)&&H.cinematicContainer!==this.shortsCinematicContainer.parentElement&&H.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.X.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.X.updatePrevButtonData=function(){var H=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);H?this.prevButtonData=H=Object.assign({},H,{accessibility:{label:_.hP("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.hP("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=H=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.X.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.X.updateNextButtonData=function(){var H=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);H&&(this.nextButtonData=H=Object.assign({},H,{accessibility:{label:_.hP("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.hP("NEXT_VIDEO_LABEL")||""}))};
_.X.getPlayablePreviousIndex=function(){for(var H,U=this.index-1;U>=-(((H=this.prevShortsSequence)==null?void 0:H.length)||0);U--)if(!t2h().includes(U))return U;return null};
_.X.getIndexInSequence=function(H,U){return H.findIndex(function(A){var M;return((M=_.p(A.command,_.kO))==null?void 0:M.videoId)===U})};
_.X.handlePrevButtonClick=function(H){var U=this,A,M;return _.u(function(W){A=U.getPlayablePreviousIndex();if(A===null)return W.return();U.gestureType=((M=H)==null?void 0:M.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";A===0&&(U.hidePreviousButtonImmediately=!0);if(U.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){U.scrollToVideoThrottle.fire(A,"auto")}),W.return();
U.scrollToVideoThrottle.fire(A);_.DO(W)})};
_.X.getPlayableNextIndex=function(){for(var H,U,A=this.index+1;A<(this.enableShortsSequenceRefactorUnify?(H=this.shortsContentList)==null?void 0:H.length:((U=this.shortsProcessedSequence)==null?void 0:U.length)||0);A++)if(!t2h().includes(A))return A;return null};
_.X.handleNextButtonClick=function(H,U){var A=this,M,W;return _.u(function(w){M=A.getPlayableNextIndex();if(M===null)return w.return();M===1&&(A.showPreviousButtonImmediately=!0);A.gestureType=((W=H)==null?void 0:W.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";U&&(A.gestureType=U);if(A.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){A.scrollToVideoThrottle.fire(M,"auto")}),w.return();
A.scrollToVideoThrottle.fire(M);_.DO(w)})};
_.X.handleReelNavigateCommand=function(H,U,A){(H=_.p(H,foB))&&U&&H.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(A)};
_.X.loadVideo=function(H,U){var A=this;U=U===void 0?!1:U;if(H!==this.currentPlayerIndex){_.Lq().dispatch(cMk(!1));if(this.isAd()&&!U){var M;(M=this.player)==null||M.notifyShortsAdSwipeEvent()}var W;(W=this.JSC$22094_cinematicController)==null||c47(W);var w;(w=this.JSC$22094_cinematicController)==null||taY(w);M=H>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(M));this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=
!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var d,O,f,J,F,P;U=this.enableShortsSequenceRefactorUnify?(d=this.shortsContentList)==null?void 0:(O=d[H])==null?void 0:O.command:H<0?(f=this.shortsProcessedPrevSequence)==null?void 0:(J=f[this.shortsProcessedPrevSequence.length+H])==null?void 0:J.command:(F=this.shortsProcessedSequence)==null?void 0:(P=F[H])==null?void 0:P.command;this.index=H;this.gestureType||(this.gestureType=M?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");U&&this.isVideoContentCommand(U)&&(this.ytComponentBehavior.resolveCommand(U,{form:{createScreenConfig:{clickedVisualElement:M?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(U&&this.isNonVideoContentCommand(U)){this.currentEndpoint=U;this.data=void 0;d=_.k$();O=_.p(U,_.O7);var n,N;(O=(n=_.p(O==null?void 0:O.renderer,_.ZJ))==null?void 0:(N=n.screenLoggingData)==null?void 0:N.screenVeType)&&_.DJ(d,O);
this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(n=this.getActiveReelVideo(H))&&n.appendChild(this.overlayContainer)}var L,m;n=this.enableShortsSequenceRefactorUnify?((L=this.shortsContentList)==null?NaN:L.length)-3<=H:((m=this.reelWatchSequenceResponse)==null?void 0:m.entries)&&H===this.reelWatchSequenceResponse.entries.length-1;var z;if(((z=this.reelWatchSequenceResponse)==null?0:z.continuationEndpoint)&&n){var c,C,v={contentPlaybackContext:_.cl({},(C=_.p((c=
this.currentEndpoint)==null?void 0:c.commandMetadata,_.Y2))==null?void 0:C.url,window.location.href)};this.enableShortsSequenceRefactorUnify?this.continuationRequestPending||(_.Fl.addJob(function(){A.ytComponentBehavior.resolveCommand(A.reelWatchSequenceResponse.continuationEndpoint,{form:v})},8),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:v})}var Y,D;
H=this.enableShortsSequenceRefactorUnify?!1:H===-(((Y=this.reelWatchSequenceResponse)==null?void 0:(D=Y.prevEntries)==null?void 0:D.length)||0);var h,T;((h=this.reelWatchSequenceResponse)==null?0:h.prevContinuationEndpoint)&&((T=this.reelWatchSequenceResponse)==null?0:T.prevEntries)&&H&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.X.setMiniplayerPreview=function(H){H=(H===void 0?0:H)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var U,A,M,W,w=_.lx().resolve(_.ZB),d={shortsData:void 0,shortsPreviewThumbnail:H?this.enableShortsSequenceRefactorUnify?(U=this.shortsContentList)==null?void 0:(A=U[H])==null?void 0:A.thumbnail:(M=this.shortsProcessedSequence)==null?void 0:(W=M[H])==null?void 0:W.thumbnail:void 0};_.lO(w,d)};
_.X.updateTitle=function(H){var U,A;H=(H==null?0:H.adSlots)?"":(A=H==null?void 0:(U=H.videoDetails)==null?void 0:U.title)!=null?A:"";_.cg(this.hostElement,"yt-update-title",H)};
_.X.registerPanel=function(H){var U=_.lx().resolve(_.Mx);if(U){H=_.b(H.engagementPanels||[]);for(var A=H.next();!A.done;A=H.next()){A=A.value;var M=this.getPanelIdentifier(A.engagementPanelSectionListRenderer),W=void 0,w=void 0;(w=(W=U).registerPanelContent)==null||w.call(W,M,A)}}};
_.X.getPanelIdentifier=function(H){var U;return(H==null?void 0:(U=H.identifier)==null?void 0:U.tag)||(H==null?void 0:H.panelIdentifier)||(H==null?void 0:H.targetId)};
_.X.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.Lq().dispatch(cMk(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=
[];_.Lq().dispatch(C67(!1));var H;(H=this.shortsController)!=null&&(H.dismissedIndices=[]);var U;(U=this.shortsController)!=null&&U.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.lx().resolve(_.ZB).close(!0)};
_.X.processAppendReelWatchSequenceContinuationEntriesAction=function(H){var U=this,A;(A=this.intersectionObserver)==null||A.disconnect();H=H.appendReelWatchSequenceContinuationEntriesAction;if(H==null?0:H.entries){var M;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.vI(((M=this.reelWatchSequenceResponse)==null?void 0:M.entries)||[]),_.vI(H.entries)),continuationEndpoint:H.continuationEndpoint})}else if(H==null?0:H.prevEntries){var W;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.vI(((W=this.reelWatchSequenceResponse)==null?void 0:W.prevEntries)||[]),_.vI(H.prevEntries)),prevContinuationEndpoint:H.prevContinuationEndpoint});_.Fl.addLowPriorityJob(function(){U.movePlayerToVideo(U.index);U.scrollToVideoThrottle.fire(U.index,"instant")})}else return;
_.Fl.addLowPriorityJob(function(){U.observeShorts()},100)};
_.X.processWatchSequence=function(H){var U=this;return H.map(function(A){A=A.command;if(U.isVideoContentCommand(A)){var M=_.p(A,_.kO);return{reelPlayerOverlayRenderer:_.p(M==null?void 0:M.overlay,_.f_n),thumbnail:M.thumbnail,command:A}}return U.isNonVideoContentCommand(A)?(M=_.p(A,_.O7),{reelNonVideoContentRenderer:_.p(M==null?void 0:M.renderer,_.ZJ),command:A}):{command:A}})};
_.X.calculateIntersectionObserverThreshold=function(){var H=_.c4(this.hostElement).querySelector("ytd-reel-video-renderer"),U=1;(H==null?0:H.offsetHeight)&&(H==null?0:H.offsetWidth)&&(U=Math.min(H.offsetHeight,this.shortsContainer.offsetHeight)/H.offsetHeight*(Math.min(H.offsetWidth,this.shortsContainer.offsetWidth)/H.offsetWidth));return Math.round(U*.6*10)/10};
_.X.isVideoContentCommand=function(H){_.lx().resolve(_.k9);return!!_.p(H,_.kO)};
_.X.isNonVideoContentCommand=function(H){_.lx().resolve(_.k9);return!!_.p(H,_.O7)};
_.X.initCinematicController=function(){var H=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22094_cinematicController=new Bf(this.shortsCinematicContainer,this.player);var U,A=_.p((U=this.data)==null?void 0:U.background,L4);Ciy(this.JSC$22094_cinematicController,A);ziY(this.JSC$22094_cinematicController,Ca7(A));xt5(this.JSC$22094_cinematicController);_.Fl.addLowPriorityJob(function(){H.moveCinematicsToVideo()})}};
_.X.handleMiniplayerNavigateShorts=function(H){H==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():H==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.X.handleSignalActionToggleShortsPictureInPicture=function(){if(_.lx().resolve(_.ZB).pictureInPictureSupported()){var H=_.lx().resolve(_.k9);if(_.S("web_shorts_pip")){var U=_.lx().resolve(_.ZB);H.isShortsPipActive()?U.deactivate():U.isMiniplayerActive()||(_.vc().shortsPipActivation=!0,_.Yl$(U))}}else(H=this.player)==null||H.togglePictureInPicture()};
_.D5.Object.defineProperties(rQ.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.reelWatchSequenceResponse)!=null&&H.prevEntries)return this.processWatchSequence([].concat(_.vI(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.vI(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.reelWatchSequenceResponse)!=null&&H.entries&&!this.enableShortsSequenceRefactorUnify)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var H=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var U;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((U=this.shortsProcessedSequence)==null?void 0:U.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var A;U=_.p((A=this.firstShortsData)==null?void 0:A.command,_.kO);if(U==null||!U.videoId)return this.shortsProcessedSequence;A=this.getIndexInSequence(this.shortsSequence,
U.videoId);if(A!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=A,_.Fl.addLowPriorityJob(function(){H.scrollToVideoThrottle.fire(H.index,"auto");H.movePlayerToVideo(H.index)}));
return[].concat(_.vI(this.shortsSequence))}this.shortsProcessedPrevSequence||_.qT(_.Fl,function(){H.observeShorts()},100);
return[this.firstShortsData].concat(_.vI(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var H=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;H&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(H)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.enableShortsSequenceRefactorUnify){var H;return this.index===((H=this.shortsContentList)==null?NaN:H.length)-1}if(this.endOfNextContinuation){var U,A;return this.index===((U=this.reelWatchSequenceResponse)==null?void 0:(A=U.entries)==null?void 0:A.length)}var M;return!((M=this.reelWatchSequenceResponse)==null?0:M.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var H;(H=this.delayedActiveIndexUpdateDebouncer)==null||H.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return this.isShortPlayable()||((U=_.p((H=this.data)==null?void 0:H.watchStatus,_.S8p))==null?void 0:(A=U.style)==null?void 0:A.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var H=this,U=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),A;if((this.data||U)&&(((A=this.data)==null?0:A.engagementPanels)||this.isAd()||U)){U=!1;this.activePanel="shorts-comments-panel";var M;A=_.b(((M=this.data)==null?void 0:M.engagementPanels)||[]);for(M=A.next();!M.done;M=A.next())if(this.getPanelIdentifier(M.value.engagementPanelSectionListRenderer)===this.activePanel){U=!0;break}if(this.isPersistentPanelActive){var W=
_.lx().resolve(_.Mx);_.Fl.addJob(function(){W.showPanel({identifier:H.activePanel,target:null})},0,100)}var w;
M=[].concat(_.vI(Object.values(((w=this.data)==null?void 0:w.engagementPanels)||{})));w=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);A=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return w===void 0&&A===void 0||(w==null?0:w.isDisabled)||(A==null?void 0:A.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!U?(U=M==null?void 0:M.findIndex(function(d){var O,f;return((O=d.engagementPanelSectionListRenderer)==null?void 0:(f=O.identifier)==null?void 0:f.tag)==="shorts-comments-panel"}),U===-1||U===void 0||M!=null&&M.splice(U,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.hP("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.hP("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:_.hP("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.hP("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(_.vI(Object.values(M||
{})))):M}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var H=this,U,A,M;if((U=this.playerData)==null?0:(A=U.playabilityStatus)==null?0:(M=A.errorScreen)==null?0:M.playerInterstitialRenderer)return _.Fl.addLowPriorityJob(function(){H.movePlayerToVideo(H.index)}),this.playerData.playabilityStatus.errorScreen;
var W,w;return((W=this.data)==null?void 0:W.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((w=this.data)==null?0:w.watchStatus)&&_.p(this.data.watchStatus,_.$$K)?(_.Fl.addLowPriorityJob(function(){H.movePlayerToVideo(H.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.D5.Object.defineProperties(rQ,{template:{configurable:!0,enumerable:!0,get:function(){if(F05===void 0){var H=document.createElement("template");_.E(H,'\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    <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-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[!enableShortsSequenceRefactorUnify]]" 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="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" 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           <img class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" loading="lazy" src$="[[getBackgroundImageUrl(item)]]" alt="">\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" 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  </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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);F05=H}H=F05;return H}}});
rQ.prototype.onNextButtonDataChange=rQ.prototype.onNextButtonDataChange;rQ.prototype.onPrevButtonDataChange=rQ.prototype.onPrevButtonDataChange;rQ.prototype.onPersistentPanelActiveChanged=rQ.prototype.onPersistentPanelActiveChanged;rQ.prototype.lazyUpdateMiniplayerData=rQ.prototype.lazyUpdateMiniplayerData;rQ.prototype.onShortsPipActiveChanged=rQ.prototype.onShortsPipActiveChanged;rQ.prototype.setActiveIndex=rQ.prototype.setActiveIndex;rQ.prototype.graftNvcRenderer=rQ.prototype.graftNvcRenderer;
rQ.prototype.graftClientVisualElements=rQ.prototype.graftClientVisualElements;rQ.prototype.onActiveChanged=rQ.prototype.onActiveChanged;rQ.prototype.onShortsDismiss=rQ.prototype.onShortsDismiss;rQ.prototype.onShortUndoDismiss=rQ.prototype.onShortUndoDismiss;rQ.prototype.playerDataChanged=rQ.prototype.playerDataChanged;rQ.prototype.afterPlayerStarted=rQ.prototype.afterPlayerStarted;rQ.prototype.unhideCurrentOverlay=rQ.prototype.unhideCurrentOverlay;rQ.prototype.onServiceRequestCompleted=rQ.prototype.onServiceRequestCompleted;
rQ.prototype.engagementPanelsChanged=rQ.prototype.engagementPanelsChanged;rQ.prototype.onFullscreenChange=rQ.prototype.onFullscreenChange;rQ.prototype.onResize=rQ.prototype.onResize;rQ.prototype.setShortsContentList=rQ.prototype.setShortsContentList;rQ.prototype.setFirstShortsData=rQ.prototype.setFirstShortsData;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],rQ.prototype,"ytComponentBehavior",void 0);
_.G([_.g(ZP.YtPageBehavior),_.q("design:type",Object)],rQ.prototype,"ytPageBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],rQ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.Qo),_.q("design:type",Object)],rQ.prototype,"ironResizableBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],rQ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uQ),_.q("design:type",Object)],rQ.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],rQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],rQ.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"playerData",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"reelWatchSequenceResponse",void 0);
_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"cachedReelWatchSequenceResponse",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"currentEndpoint",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"nextButtonData",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"prevButtonData",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"isPreviousPageShorts",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"index",void 0);
_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"delayedActiveIndex",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"playablePreviousIndex",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"player",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"isPlayerPaused",void 0);_.G([_.y({selector:NHY}),_.q("design:type",Object)],rQ.prototype,"isPlayerStarted",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"intersectionObserver",void 0);
_.G([_.y(),_.q("design:type",Number)],rQ.prototype,"cinematicsInitializeJobId",void 0);_.G([_.y(),_.q("design:type",Number)],rQ.prototype,"updateMiniplayerDataJobId",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"fitToVisibleBounds",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"pageSubtype",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],rQ.prototype,"enablePreviousContinuation",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],rQ.prototype,"shortsPipEnabled",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],rQ.prototype,"isDark",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],rQ.prototype,"shortsViewTransitions",void 0);_.G([_.y({selector:_.aR,reflectToAttribute:!0}),_.q("design:type",Object)],rQ.prototype,"isFullscreen",void 0);
_.G([_.y({selector:_.xC,reflectToAttribute:!0}),_.q("design:type",Object)],rQ.prototype,"isShortsPipActive",void 0);_.G([_.hG("#shorts-inner-container"),_.q("design:type",HTMLElement)],rQ.prototype,"shortsInnerContainer",void 0);_.G([_.hG("#back-nav-button ytd-button-renderer"),_.q("design:type",_.aJ)],rQ.prototype,"backNavButton",void 0);_.G([_.hG("#shorts-container"),_.q("design:type",HTMLElement)],rQ.prototype,"shortsContainer",void 0);
_.G([X2("error-screen"),_.q("design:type",HTMLElement)],rQ.prototype,"errorScreenContainer",void 0);_.G([X2("player"),_.q("design:type",Object)],rQ.prototype,"playerElement",void 0);_.G([X2("shorts-cinematic-container"),_.q("design:type",HTMLElement)],rQ.prototype,"shortsCinematicContainer",void 0);_.G([X2("initial-player-container"),_.q("design:type",HTMLElement)],rQ.prototype,"initialPlayerContainer",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"buttonOverride",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],rQ.prototype,"anchoredPanelActive",void 0);_.G([_.y(),_.q("design:type",String)],rQ.prototype,"activePanel",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"isActive",void 0);_.G([_.y({selector:nU$,reflectToAttribute:!0}),_.q("design:type",Object)],rQ.prototype,"smallScreenPersistentPanel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],rQ.prototype,"isPersistentPanelActive",void 0);
_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"smallScreenSqueezeBack",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"enableScrollIntoViewCenter",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],rQ.prototype,"extractOverlay",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],rQ.prototype,"useAspectRatio",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],rQ.prototype,"enableShortsSequenceRefactorUnify",void 0);
_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"continuationRequestPending",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"shortsController",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"panelContainer",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"overlayContainer",void 0);_.G([_.y(),_.q("design:type",Array)],rQ.prototype,"carouselContainers",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"isShortsInitialized",void 0);
_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"firstShortsData",void 0);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"firstShortsDataModel",void 0);_.G([_.y(),_.q("design:type",Array)],rQ.prototype,"shortsContentList",void 0);_.G([_.a("reelWatchSequenceResponse"),_.q("design:type",Object),_.q("design:paramtypes",[])],rQ.prototype,"prevShortsSequence",null);
_.G([_.a("data","prevShortsSequence"),_.q("design:type",Object),_.q("design:paramtypes",[])],rQ.prototype,"shortsProcessedPrevSequence",null);_.G([_.a("reelWatchSequenceResponse"),_.q("design:type",Object),_.q("design:paramtypes",[])],rQ.prototype,"shortsSequence",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"setFirstShortsData",null);
_.G([_.Ya("reelWatchSequenceResponse","firstShortsData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"setShortsContentList",null);_.G([_.a("data","shortsSequence","firstShortsData"),_.q("design:type",Object),_.q("design:paramtypes",[])],rQ.prototype,"shortsProcessedSequence",null);
_.G([_.y({reflectToAttribute:!0}),_.a("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],rQ.prototype,"isUpArrowHidden",null);_.G([_.y({reflectToAttribute:!0}),_.a("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],rQ.prototype,"isDownArrowHidden",null);
_.G([_.y(),_.a("index"),_.q("design:type",Number),_.q("design:paramtypes",[])],rQ.prototype,"activeIndex",null);_.G([_.a("isShortPlayable","data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],rQ.prototype,"shouldRenderOfflineContent",null);_.G([_.Gl("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"onResize",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],rQ.prototype,"anchoredEngagementPanels",null);
_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"watchWhileEngagementPanels",void 0);_.G([_.Ya("isFullscreen"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"onFullscreenChange",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"engagementPanelsChanged",null);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],rQ.prototype,"onServiceRequestCompleted",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"unhideCurrentOverlay",null);_.G([_.Ya("isPlayerStarted"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"afterPlayerStarted",null);
_.G([_.a("playerData","reelWatchSequenceResponse","data"),_.q("design:type",Object),_.q("design:paramtypes",[])],rQ.prototype,"errorScreen",null);_.G([_.a("errorScreen"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],rQ.prototype,"hasError",null);_.G([_.Ya("playerData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],rQ.prototype,"playerDataChanged",null);
_.G([_.Gl("yt-dismissible-item-undo-feedback"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"onShortUndoDismiss",null);_.G([_.Gl("yt-disable-lockup-interaction"),_.q("design:type",Function),_.q("design:paramtypes",[Object]),_.q("design:returntype")],rQ.prototype,"onShortsDismiss",null);_.G([_.jk("active"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"onActiveChanged",null);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"graftClientVisualElements",null);_.G([_.Ya("currentPlayerIndex"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"graftNvcRenderer",null);_.G([_.Ya("index"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"setActiveIndex",null);
_.G([_.Ya("isShortsPipActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"onShortsPipActiveChanged",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"lazyUpdateMiniplayerData",null);_.G([_.y(),_.q("design:type",Object)],rQ.prototype,"onOverlayDensityChanged",void 0);
_.G([_.Ya("isPersistentPanelActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"onPersistentPanelActiveChanged",null);_.G([_.Ya("index","data","isUpArrowHidden"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"onPrevButtonDataChange",null);_.G([_.Ya("index","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rQ.prototype,"onNextButtonDataChange",null);
_.G([_.dX({is:"ytd-shorts"})],rQ);var x0Y;var zc5;var Clk;var eg=function(){return _.B.apply(this,arguments)||this};
_.R(eg,_.B);eg.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],eg.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],eg.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],eg.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],eg);
_.e(eg,"ytd-compact-tvfilm-entry-point-renderer",function(){if(Clk!==void 0)return Clk;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Clk=H},{mode:1});var tT$;var coj;var yo8;var DL=function(){return _.B.apply(this,arguments)||this};
_.R(DL,_.B);DL.prototype.ready=function(){this.initializeDefs()};
DL.prototype.initializeDefs=function(){var H=this.meta.byKey("yt-icons"),U=_.c4(H).querySelector("#star"),A=_.c4(H).querySelector("#star_half");H=_.c4(H).querySelector("#star_border");U&&this.defs.appendChild(U.cloneNode(!0));A&&this.defs.appendChild(A.cloneNode(!0));H&&this.defs.appendChild(H.cloneNode(!0))};
DL.prototype.percentChanged=function(){for(var H=this.rating;H.firstChild;)H.removeChild(H.firstChild);var U=Math.round(this.percent/10);H=Math.floor(U/2);U%=2;var A=5-H-U;this.appendStars("star",H,0);this.appendStars("star_half",U,H);this.appendStars("star_border",A,H+U)};
DL.prototype.appendStars=function(H,U,A){for(var M=0;M<U;M++){var W=(18+this.spacing)*(M+A),w=document.createElementNS("http://www.w3.org/2000/svg","use");ZKj(w,"#"+H);w.setAttribute("x",""+W);w.setAttribute("y","0");this.rating.appendChild(w)}};
DL.prototype.percentChanged=DL.prototype.percentChanged;_.G([_.hG("#defs"),_.q("design:type",HTMLElement)],DL.prototype,"defs",void 0);_.G([_.hG("#rating"),_.q("design:type",HTMLElement)],DL.prototype,"rating",void 0);_.G([_.y(),_.q("design:type",Number)],DL.prototype,"percent",void 0);_.G([_.y({value:6}),_.q("design:type",Number)],DL.prototype,"spacing",void 0);_.G([_.y({value:_.Ia.create("iron-meta",{type:"iconset"})}),_.q("design:type",_.v0)],DL.prototype,"meta",void 0);
_.G([_.Ya("percent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],DL.prototype,"percentChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-ratings"})],DL);
_.e(DL,"ytd-ratings",function(){if(yo8!==void 0)return yo8;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return yo8=H},{mode:1});var Bqh=function(){return _.B.apply(this,arguments)||this};
_.R(Bqh,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Bqh.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Bqh.prototype,"data",void 0);_.G([_.dX({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],Bqh);
_.e(Bqh,"ytd-offer-review-renderer",function(){if(coj!==void 0)return coj;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return coj=H},{mode:1});var $m=function(){var H=_.B.apply(this,arguments)||this;H.badges=[{textBadge:{label:_.Nh("CC")}}];return H};
_.R($m,_.B);_.X=$m.prototype;_.X.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.X.dataChanged=function(){var H=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(H&&H.commandMetadata&&_.p(H.commandMetadata,_.Im)&&_.p(H.commandMetadata,_.Im).fireAutomatically)_.lx().resolve(_.YV).resolveCommand(H,{form:{element:this.hostElement}});else{var U;H&&((U=_.p(H,_.Im))==null?0:U.fireAutomatically)&&_.lx().resolve(_.YV).resolveCommand(H,{form:{element:this.hostElement}})}};
_.X.isEmptyContent=function(H){return this.isStorefrontEntryPointEmpty(H)&&this.shouldHideOfferModule(H)};
_.X.isStorefrontEntryPointEmpty=function(H){return!H||!H.storefrontEntryPoint};
_.X.shouldHideOfferModule=function(H){return!!H.hideVideoDetails};
_.X.isOfferModuleNavigationInactive=function(H){return!H.navigationEndpoint&&!H.serviceEndpoint};
_.X.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.lx().resolve(_.YV).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
$m.prototype.dataChanged=$m.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],$m.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],$m.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.q("design:type",Boolean)],$m.prototype,"hidden",void 0);
_.G([_.y(),_.q("design:type",Object)],$m.prototype,"badges",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$m.prototype,"dataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],$m);
_.e($m,"ytd-movie-offer-module-renderer",function(){if(tT$!==void 0)return tT$;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return tT$=H},{mode:1});var roh;var ecp=function(){return _.B.apply(this,arguments)||this};
_.R(ecp,_.B);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ecp.prototype,"componentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ecp.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],ecp);
_.e(ecp,"ytd-media-masthead-renderer",function(){if(roh!==void 0)return roh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return roh=H},{mode:1});var D0h;_.LG(_.Ec5,"course-metadata-view-model",{props:{data:_.Ne,isOverlay:_.Ne}});var l_=function(){var H=_.B.apply(this,arguments)||this;H.isMetadataVisible=!1;H.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return H};
_.R(l_,_.B);_.X=l_.prototype;
_.X.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"}}}}};
_.X.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.X.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.X.expanderChanged=function(){var H;if((H=this.data)==null?0:H.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.X.isExpandButtonToggled=function(){var H,U;return(U=_.p((H=this.data)==null?void 0:H.expandMetadataButton,_.Pc))==null?void 0:U.isToggled};
_.X.onVisibilityButtonClick=function(){var H;if((H=this.data)==null?0:H.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.X.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
l_.prototype.expanderChanged=l_.prototype.expanderChanged;l_.prototype.dataChanged=l_.prototype.dataChanged;l_.prototype.descriptionChanged=l_.prototype.descriptionChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g([_.$y.YtActionHandlerBehavior]),_.q("design:type",Object)],l_.prototype,"actionHandlerBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],l_.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],l_.prototype,"isMetadataVisible",void 0);_.G([_.hG("#expander"),_.q("design:type",Object)],l_.prototype,"expander",void 0);_.G([_.Ya("data.description"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],l_.prototype,"descriptionChanged",null);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],l_.prototype,"dataChanged",null);_.G([_.Ya("isMetadataVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],l_.prototype,"expanderChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],l_);
_.e(l_,"ytd-tvfilm-offer-module-renderer",function(){if(D0h!==void 0)return D0h;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return D0h=H},{mode:2});var $0y;var Gf=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return H};
_.R(Gf,_.B);Gf.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Gf.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Gf.prototype.onThumbnailTap=function(H){this.data&&this.data.serviceEndpoint&&(_.lx().resolve(_.YV).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),H.stopPropagation())};
Gf.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Gf.prototype.dataChanged=Gf.prototype.dataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Gf.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Gf.prototype,"rendererBehaviors",void 0);_.G([_.g([_.$y.YtActionHandlerBehavior]),_.q("design:type",Object)],Gf.prototype,"actionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Gf.prototype,"data",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gf.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Gf);
_.e(Gf,"ytd-unlimited-offer-module-renderer",function(){if($0y!==void 0)return $0y;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return $0y=H},{mode:1});var lrf;var GWy;var Ym=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return H};
_.R(Ym,_.B);Ym.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Ym.prototype.handleRelatedChipCommand=function(H){H=_.p(H,DNk);var U=H.contents;U?_.Bg(this.hostElement,"yt-item-section-replace-action",[U,H.targetSectionIdentifier]):_.Bg(this.hostElement,"yt-item-section-continuation-action",[H.continuationData,H.targetSectionIdentifier])};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Ym.prototype,"actionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ym.prototype,"data",void 0);_.G([_.b0({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Ym);
_.e(Ym,"yt-related-chip-cloud-renderer",function(){if(GWy===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;lrf===void 0&&(lrf=document.createElement("template"));var M=lrf;A.call(U,M.content.cloneNode(!0),H.content.firstChild);GWy=H}H=GWy;return H},{mode:2});var qW=function(){var H=_.B.apply(this,arguments)||this;H.isTwoColumns=!0;H.watchFeedBigThumbs=_.S("kevlar_watch_feed_big_thumbs");H.watchFeedBigThumbsOnLockup=_.S("web_watch_next_big_thumbs");H.watchNextGridHideChips=_.S("kevlar_watch_grid_hide_chips");H.eligibleToSwitchToGrid=!0;H.disableShortsShelfHeightOverride=_.S("web_shorts_wn_shelf_ratio_tuning");H.isWatchNextGrid=!1;H.reuseComponents=!_.S("kevlar_watch_grid");H.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return H};
_.R(qW,_.B);_.X=qW.prototype;
_.X.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]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.S("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}}};
_.X.getItemsPath=function(){return"data.results"};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.X.created=function(){this.ytLazyListBehavior.initialCount=1};
_.X.ready=function(){_.Dt(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.X.resultsChanged=function(){if(this.data&&this.data.results){for(var H=this.data.results,U=null,A=null,M=0;M<H.length;M++)H[M].relatedChipCloudRenderer?U=H[M].relatedChipCloudRenderer:H[M].itemSectionRenderer&&(A=H[M].itemSectionRenderer);if(U&&A)for(this.set("data.continuations",[]),H=_.p(U.content,_.pNk).chips,U=0;U<H.length;U++)if(M=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",H[U]),M.loadCached||!M.contents){M.contents=A.contents;break}}};
_.X.dataChanged=function(){var H=this,U;if((U=this.data)!=null&&U.results&&this.hasAllowedInstreamAd(this.playerData)){if(U=this.data.results.filter(function(O){return!!O.promotedSparklesWebRenderer})){for(var A=0;A<U.length;A++){var M=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",U[A]);
if(M)for(var W=0;W<M.length;W++)M[W]&&M[W].baseUrl&&_.my(M[W].baseUrl)}this.set("data.results",this.data.results.filter(function(O){return!O.promotedSparklesWebRenderer}))}if(U=this.data.results.filter(function(O){return!!H.getSparklesAd(O)})){U=_.b(U);
for(W=U.next();!W.done;W=U.next())if(M=A=void 0,W=(A=this.getSparklesAd(W.value))==null?void 0:(M=A.errorCommand)==null?void 0:M.loggingUrls)for(A=_.b(W),M=A.next();!M.done;M=A.next())(M=M.value)&&M.baseUrl&&_.my(M.baseUrl);var w,d;this.set("data.results",(w=this.data)==null?void 0:(d=w.results)==null?void 0:d.filter(function(O){return!O.adSlotRenderer}))}}};
_.X.getSparklesAd=function(H){var U,A;H=_.p((U=H.adSlotRenderer)==null?void 0:(A=U.fulfillmentContent)==null?void 0:A.fulfilledLayout,_.Ypz);return _.p(H==null?void 0:H.renderingContent,Dx5)};
_.X.hasAllowedInstreamAd=function(H){H=this.get("adPlacements",H)||[];for(var U=0;U<H.length;U++){var A=this.get("adPlacementRenderer.config.adPlacementConfig",H[U]);if(A&&A.suppressDisplayAd)return!0}return!1};
_.X.computeHideUnlimitedOfferModule=function(H,U){return H&&H.offerModule&&U&&H.offerModule.unlimitedOfferModuleRenderer&&H.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(U)?!0:!1};
_.X.hideUnlimitedOfferModuleChanged=function(){var H=_.c4(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");H&&(H.hidden=this.hideUnlimitedOfferModule)};
_.X.updateLockupContainerTypes=function(H){if(this.eligibleToSwitchToGrid){var U;(U=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||U.forEach(function(A){A.containerType=H})}};
_.X.computeHideTvfilmOfferModule=function(H,U){var A,M;return!!((H==null?0:(A=H.offerModule)==null?0:(M=A.tvfilmOfferModuleRenderer)==null?0:M.clientShouldSuppressIfCompanionAdDisplayed)&&U&&this.hasCompanionAds(U))};
_.X.hideTvfilmOfferModuleChanged=function(){var H=_.c4(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");H&&(H.hidden=this.hideTvfilmOfferModule)};
_.X.hasCompanionAds=function(H){H=this.get("adPlacements",H)||[];for(var U=0;U<H.length;U++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",H[U]))return!0;var A=void 0,M=void 0,W=void 0;if(!_.S("web_watch_top_banner_companion_check_killswitch")&&((A=H[U])==null?0:(M=A.adPlacementRenderer)==null?0:(W=M.renderer)==null?0:W.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.X.hasSuppressedResults=function(H){return H==null?!0:H.filter(function(U){return!U.continuationItemRenderer&&!U.compactPromotedVideoRenderer&&!U.promotedSparklesWebRenderer}).length===0};
_.X.computeShowButton=function(H,U){return this.isWatchNextGrid?H:H||this.hasSuppressedResults(U)};
_.X.showButtonChanged=function(){if(this.isWatchNextGrid){var H=_.c4(this.hostElement).querySelector("ytd-rich-grid-renderer");H&&this.showButton!==null&&(H.continuationShowButton=this.showButton)}else{H=_.c4(this.hostElement).querySelector("yt-next-continuation");var U=_.c4(this.hostElement).querySelector("ytd-continuation-item-renderer"),A=_.c4(this.hostElement).querySelector("ytd-item-section-renderer");H&&(H.showButton=this.showButton);U&&(U.showButton=this.showButton);A&&(A.continuationShowButton=
this.showButton)}};
_.X.continuationTap=function(H){var U;if(((U=this.data)==null?void 0:U.continuations)!=null&&H.target.tagName==="TP-YT-PAPER-BUTTON")for(H=this.data.continuations,U=0;U<H.length;U++)H[U].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(H[U].nextContinuationData||{})};
_.X.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("shown-items-changed",this.shownItems))};
_.D5.Object.defineProperties(qW.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.shownItems)==null||!H.some(function(U){return!!U.lockupViewModel||U.compactVideoRenderer}))}}});
qW.prototype.shownItemsChangedForBinding=qW.prototype.shownItemsChangedForBinding;qW.prototype.showButtonChanged=qW.prototype.showButtonChanged;qW.prototype.hideTvfilmOfferModuleChanged=qW.prototype.hideTvfilmOfferModuleChanged;qW.prototype.updateLockupContainerTypes=qW.prototype.updateLockupContainerTypes;qW.prototype.hideUnlimitedOfferModuleChanged=qW.prototype.hideUnlimitedOfferModuleChanged;qW.prototype.dataChanged=qW.prototype.dataChanged;qW.prototype.resultsChanged=qW.prototype.resultsChanged;
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],qW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.aN.YtLazyListBehavior),_.q("design:type",Object)],qW.prototype,"ytLazyListBehavior",void 0);_.G([_.g(_.Eq.YtNextContinuationBehavior),_.q("design:type",Object)],qW.prototype,"ytNextContinuationBehavior",void 0);
_.G([_.g(_.RG),_.q("design:type",Object)],qW.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],qW.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],qW.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],qW.prototype,"playerData",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],qW.prototype,"autoFill",void 0);_.G([_.y({value:60}),_.q("design:type",Number)],qW.prototype,"targetFramerate",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],qW.prototype,"isTwoColumns",void 0);_.G([_.y(),_.q("design:type",Object)],qW.prototype,"shownItems",void 0);_.G([_.y({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.q("design:type",Boolean)],qW.prototype,"hideUnlimitedOfferModule",void 0);_.G([_.y({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.q("design:type",Boolean)],qW.prototype,"hideTvfilmOfferModule",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],qW.prototype,"watchFeedBigThumbs",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],qW.prototype,"watchFeedBigThumbsOnLockup",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],qW.prototype,"watchNextGridHideChips",void 0);_.G([_.y(),_.q("design:type",Object)],qW.prototype,"eligibleToSwitchToGrid",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],qW.prototype,"disableShortsShelfHeightOverride",void 0);_.G([_.y({selector:_.Wo,reflectToAttribute:!0}),_.q("design:type",Object)],qW.prototype,"isGridViewEnabled",void 0);_.G([_.y({selector:_.XTc,reflectToAttribute:!0}),_.q("design:type",Object)],qW.prototype,"isSwatcherooActive",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],qW.prototype,"showMoreButton",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],qW.prototype,"isWatchNextGrid",void 0);_.G([_.y({computed:"computeShowButton(showMoreButton, data.results)"}),_.q("design:type",Boolean)],qW.prototype,"showButton",void 0);_.G([_.jk("data.results.*"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qW.prototype,"resultsChanged",null);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qW.prototype,"dataChanged",null);_.G([_.Ya("hideUnlimitedOfferModule"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qW.prototype,"hideUnlimitedOfferModuleChanged",null);_.G([_.a("isGridViewEnabled","containsLockups","data"),_.y({reflectToAttribute:!0}),_.q("design:type",Number),_.q("design:paramtypes",[])],qW.prototype,"lockupContainerType",null);
_.G([_.Ya("lockupContainerType","data"),_.q("design:type",Function),_.q("design:paramtypes",[Number]),_.q("design:returntype")],qW.prototype,"updateLockupContainerTypes",null);_.G([_.Ya("hideTvfilmOfferModule"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qW.prototype,"hideTvfilmOfferModuleChanged",null);_.G([_.Ya("showButton"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qW.prototype,"showButtonChanged",null);
_.G([_.Ya("shownItems"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qW.prototype,"shownItemsChangedForBinding",null);_.G([_.a("shownItems"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],qW.prototype,"containsLockups",null);
_.e(qW,"ytd-watch-next-secondary-results-renderer",function(){if(zc5===void 0){var H=document.createElement("template");_.E(H,'\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" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);zc5=H}H=zc5;return H},{mode:1});var YOm;var hU=function(){var H=_.B.apply(this,arguments)||this;H.currentPageUrl="";H.baseUrl="";H.isHiddenByUser=null;H.hidden=!1;H.showAboveScrim=!1;H.watchNextGrid=_.S("kevlar_watch_grid");H.modernButtons=_.S("web_modern_buttons");H.roundedContainer=!0;H.noBorder=!1;H.roundBackground=!_.S("live_chat_round_background_killswitch");H.overflowHideChat=_.S("live_chat_overflow_hide_chat");H.forceDarkTheme=!1;H.theaterWatchWhile=!1;H.isListeningForPlayerProgress=!1;H.JSC$22147_playerEvents=new Map;H.isFrameReady=
!1;H.player=null;H.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 H};
_.R(hU,_.B);_.X=hU.prototype;_.X.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Bg(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.X.created=function(){var H=this;this.handleIframeEventListener=function(U){H.handleIframeEvent(U)};
this.handleKeyboardEventListener=function(U){H.handleKeyboardEvent(U)};
this.JSC$22147_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22147_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22147_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22147_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22147_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.X.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()};
_.X.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};
_.X.computeBaseUrl=function(H){var U="/live_chat";this.isChatReplay()&&(U="/live_chat_replay");return _.BS(_.yw(_.cS(_.yX(H),U),null),"").toString()};
_.X.dataChanged=function(){_.S("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.X.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var H=this.url;if(this.isChatReplay()&&this.player){var U=Math.floor(this.player.getProgressState().current*1E3);H=_.rO(_.yX(H),"playerOffsetMs",U.toString()).toString()}U=this.chatframe;try{var A=H==="about:blank"?_.hKm:_.j3(H),M=U.contentDocument.location,W=_.VY(A);W!==void 0&&M.replace(W)}catch(w){U.src=H}}};
_.X.collapsedChanged=function(){_.cg(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.X.handleIframeEvent=function(H){if(H&&this.baseUrl.startsWith(H.origin)&&H.source===this.chatframe.contentWindow&&_.ht(H.data))if(H.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(H);else if(H.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(H.data["yt-show-feedback-dialog"]){var U=_.lx().resolve(_.$V(_.bU7));if(U){var A=H.ports,M;A&&A.length&&(M=function(){A[0].postMessage({})});
H=H.data["yt-show-feedback-dialog"];U.showFeedbackDialog(H.customProductData,H.feedbackContent,M,H.bucket)}}else if(H.data["yt-show-survey"])_.cg(this.hostElement,"yt-show-survey",H.data["yt-show-survey"]);else if(H.data["yt-purchase-membership"])_.lx().resolve(_.YV).resolveCommand(H.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(H.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(H.data["yt-tunnel-out-live-service-request"]);else if(H.data["yt-user-activity"])_.D6();
else if(H.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(H.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(H.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(H.data["yt-open-popup"]);else if(H.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(H.data["yt-log-flow-logging-event-command"]);else if(H.data["yt-hide-live-chat"])this.onShowHideChat();else H.data["yt-report-moderation-state-log"]&&
this.player&&(U={cpn:this.player.getVideoData().cpn},_.Fx("liveChatBeingModerated",U))};
_.X.attachLiveChatResponseVeTrackingParams=function(H){H=_.IS(H);var U=_.XK(),A=_.tr("liveChatRenderer.trackingParams",this.data);U&&A&&_.ou(U,_.IS(A),H)};
_.X.handleBuyflowMessages=function(H){var U=H.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,A=H.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,M=H.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.GW8(_.gz(_.pf),U.replace(/-/g,"+").replace(/_/g,"/"),function(W){H.ports[0].postMessage({success:!0,buyFlowResponse:W})},void 0,function(W){H.ports[0].postMessage({success:!1,
error:W&&W.message||"Buyflow rejected without error."})},_.TR().get("hl"),void 0,function(){H.ports[0].postMessage({closed:!0})},A,M)};
_.X.setupPlayerProgressRelay=function(){var H=this;if(!this.isListeningForPlayerProgress){var U=_.RL();U!=null&&U.getPlayerPromise&&(U.getPlayerPromise().then(function(A){H.playerApiReady(A)}),this.isListeningForPlayerProgress=!0)}};
_.X.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.X.playerApiReady=function(H){this.setPlayer(H)};
_.X.playerProgressHandler=function(){if(this.player){var H=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":H.current})}};
_.X.playerAdStartHandler=function(H){this.postToContentWindow({"yt-player-ad-start":H})};
_.X.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.X.playerStateChangeHandler=function(H){this.postToContentWindow({"yt-player-state-change":H})};
_.X.setPlayer=function(H){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22147_playerEvents);H&&(this.player=H,this.ytPlayerListenerBehavior.listenToPlayerEvents(H,this.JSC$22147_playerEvents),_.cg(this.hostElement,"player-api-ready"))};
_.X.liveChatPageUrl=function(H,U,A,M){return!A||U?"about:blank":A.liveChatRenderer?(U=_.yX(this.currentPageUrl).JSC$10335_queryData_,XSh(U),H=_.yX(H),U.add("continuation",A.liveChatRenderer.continuations[0].reloadContinuationData.continuation),A=_.Kf()==="USER_INTERFACE_THEME_DARK",(M||A)&&U.add("dark_theme","true"),_.yw(H,U),M=_.yX(H.toString()),A=M.JSC$10335_queryData_,"SESSION_INDEX"in _.EW&&(A.add("authuser",_.gD("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.EW&&A.add("pageId",_.gD("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.EW&&A.add("sdc",_.gD("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),M.toString()):""};
_.X.isCollapsed=function(H,U){return U!==null?U:this.isChatReplay()||H&&H.conversationBarRenderer&&H.conversationBarRenderer.availabilityMessage?!0:H?H.liveChatRenderer?H.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.S("live_chat_hide_premiere_replay_message")||H.conversationBarRenderer&&H.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.X.isHidden=function(H,U,A){var M=U&&U.conversationBarRenderer&&U.conversationBarRenderer.availabilityMessage,W=U&&U.liveChatRenderer&&U.liveChatRenderer.showHideButton,w=U&&U.liveChatRenderer&&U.liveChatRenderer.showButton;return A&&H&&!M&&!w||!A&&H&&!M&&!W?!0:U&&U.liveChatRenderer&&U.liveChatRenderer.initialDisplayState?U.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.X.computeButtonOverride=function(H,U){if(H&&U)return{type:"outline"}};
_.X.setCollapsedState=function(H){_.p(H,_.kVB)&&((this.isHiddenByUser=!!_.p(H,_.kVB).collapsed)||_.yr(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.X.forwardReduxActionToIframe=function(H){this.postToContentWindow({"yt-live-chat-forward-redux-action":H})};
_.X.onLoopRangeChange=function(H){this.showAboveScrim=!(H==null||!H.postId)};
_.X.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.X.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.X.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.X.sendDarkThemePostMessage=function(H){this.postToContentWindow({"yt-live-chat-set-dark-theme":H})};
_.X.onLiveChatBuyFlowCallback=function(H){this.postToContentWindow({"yt-live-chat-buy-flow-callback":H})};
_.X.handleKeyboardEvent=function(H){(0,_.dG.containsValue)(x6$,H.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:H.type,keyCode:H.keyCode}})};
_.X.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.X.postToContentWindow=function(H){if(this.isFrameReady)try{var U=window.location.protocol+"//"+window.location.host,A;(A=this.chatframe)!=null&&A.contentWindow?this.chatframe.contentWindow.postMessage(H,U):_.Na(new _.bD("Tried posting a message to an iframe with no content window",H))}catch(M){_.sD(M)}};
_.X.shouldHideChatFrame=function(H){return H&&_.S("hide_live_chat_button_when_collapsed")};
_.D5.Object.defineProperties(hU.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.S("live_chat_overflow_hide_chat")||_.S("web_watch_chat_hide_button_killswitch"))return _.S("live_chat_overflow_hide_chat");var H,U,A,M;return!!((H=this.data)==null?0:(U=H.liveChatRenderer)==null?0:(A=U.header)==null?0:(M=A.liveChatHeaderRenderer)==null?0:M.collapseButton)}}});
hU.prototype.collapsedChanged=hU.prototype.collapsedChanged;hU.prototype.urlChanged=hU.prototype.urlChanged;hU.prototype.dataChanged=hU.prototype.dataChanged;hU.prototype.onShowHideChat=hU.prototype.onShowHideChat;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],hU.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],hU.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.nm.YtPlayerListenerBehavior),_.q("design:type",_.NM)],hU.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.g(_.e4.YtOpenPopupBehavior),_.q("design:type",Object)],hU.prototype,"ytOpenPopupBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],hU.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],hU.prototype,"currentPageUrl",void 0);
_.G([_.y({computed:"computeBaseUrl(currentPageUrl,data)"}),_.q("design:type",Object)],hU.prototype,"baseUrl",void 0);_.G([_.y({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.q("design:type",String)],hU.prototype,"url",void 0);_.G([_.y(),_.q("design:type",Object)],hU.prototype,"isHiddenByUser",void 0);_.G([_.y({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.q("design:type",Object)],hU.prototype,"hidden",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.q("design:type",Boolean)],hU.prototype,"collapsed",void 0);_.G([_.y({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.q("design:type",Boolean)],hU.prototype,"hideChatFrame",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],hU.prototype,"showAboveScrim",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],hU.prototype,"watchNextGrid",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],hU.prototype,"modernButtons",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],hU.prototype,"roundedContainer",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],hU.prototype,"noBorder",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],hU.prototype,"roundBackground",void 0);
_.G([_.y({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.q("design:type",Object)],hU.prototype,"toggleButtonOverride",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],hU.prototype,"overflowHideChat",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],hU.prototype,"forceDarkTheme",void 0);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],hU.prototype,"enableShowWithoutHideChatButton",null);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],hU.prototype,"theaterWatchWhile",void 0);_.G([_.hG("#chatframe"),_.q("design:type",HTMLIFrameElement)],hU.prototype,"chatframe",void 0);_.G([_.Gl("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hU.prototype,"onShowHideChat",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hU.prototype,"dataChanged",null);
_.G([_.Ya("url"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hU.prototype,"urlChanged",null);_.G([_.Ya("collapsed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hU.prototype,"collapsedChanged",null);_.G([_.dX({is:"ytd-live-chat-frame",disableElementRegistration:!0})],hU);
_.e(hU,"ytd-live-chat-frame",function(){if(YOm!==void 0)return YOm;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return YOm=H},{mode:1});var qOX;var km=function(){var H=_.B.apply(this,arguments)||this;H.lastRenderedPanelIds=new Set;H.visiblePanels=[];H.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return H};
_.R(km,_.B);_.X=km.prototype;_.X.dataChanged=function(){if(this.data){for(var H=[],U=_.b(this.data),A=U.next();!A.done;A=U.next()){A=A.value;var M=void 0,W=void 0,w=(M=A)==null?void 0:(W=M.engagementPanelSectionListRenderer)==null?void 0:W.visibility;W=M=void 0;((M=A)==null?0:(W=M.engagementPanelSectionListRenderer)==null?0:W.targetId)&&w!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&H.push(A)}this.visiblePanels=H}else this.visiblePanels=[]};
_.X.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}}};
_.X.withoutVisiblePanelById=function(H){return this.visiblePanels.filter(function(U){var A;return((A=U.engagementPanelSectionListRenderer)==null?void 0:A.targetId)!==H})};
_.X.onYtChangeEngagementPanelVisibilityAction=function(H){var U=this,A=_.p(H,_.TgH);if(this.data&&(A==null?0:A.targetId)&&(A==null?0:A.visibility)){var M,W=(M=this.data.find(function(d){var O;return((O=d.engagementPanelSectionListRenderer)==null?void 0:O.targetId)===A.targetId}))==null?void 0:M.engagementPanelSectionListRenderer;
if(W){var w=this.withoutVisiblePanelById(A.targetId);A.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(H=this.data.find(function(d){var O;return((O=d.engagementPanelSectionListRenderer)==null?void 0:O.targetId)===A.targetId}))&&(w=[H].concat(_.vI(w)));
this.hideDelayMs&&A.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&w.length===0?_.Fl.addJob(function(){W.visibility=A.visibility;U.visiblePanels=w},10,this.hideDelayMs):(W.visibility=A.visibility,this.visiblePanels=w);
_.Bg(this.hostElement,"yt-engagement-panels-visible-changed",[w])}}};
_.X.onRendererstamperFinished=function(){var H=new Set(this.visiblePanels.map(function(U){var A;return(A=U.engagementPanelSectionListRenderer)==null?void 0:A.targetId}));
this.handlePanelVisibilityChange(H,this.lastRenderedPanelIds);this.lastRenderedPanelIds=H};
_.X.handlePanelVisibilityChange=function(H,U){H=H===void 0?new Set:H;U=U===void 0?new Set:U;if(this.data)for(var A=_.b(this.data),M=A.next();!M.done;M=A.next()){M=M.value;var W=void 0,w=void 0,d=(W=M)==null?void 0:(w=W.engagementPanelSectionListRenderer)==null?void 0:w.targetId;if(d&&(W=U.has(d),w=H.has(d),d=void 0,!W&&w?(w=W=void 0,d=(W=M)==null?void 0:(w=W.engagementPanelSectionListRenderer)==null?void 0:w.onShowCommands):W&&!w&&(w=W=void 0,d=(W=M)==null?void 0:(w=W.engagementPanelSectionListRenderer)==
null?void 0:w.onHideCommands),d))for(M=_.b(d),d=M.next();!d.done;d=M.next())this.ytComponentBehavior.resolveCommand(d.value)}};
km.prototype.onRendererstamperFinished=km.prototype.onRendererstamperFinished;km.prototype.dataChanged=km.prototype.dataChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],km.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],km.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],km.prototype,"lastRenderedPanelIds",void 0);_.G([_.y(),_.q("design:type",Number)],km.prototype,"hideDelayMs",void 0);_.G([_.y(),_.q("design:type",Array)],km.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Array)],km.prototype,"visiblePanels",void 0);_.G([_.y(),_.q("design:type",Boolean)],km.prototype,"isWatchWhilePanel",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],km.prototype,"dataChanged",null);_.G([_.Gl("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],km.prototype,"onRendererstamperFinished",null);_.G([_.dX({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],km);
_.e(km,"ytd-watch-engagement-panels",function(){if(qOX!==void 0)return qOX;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return qOX=H},{mode:1});var hcy;var kWk;var vw5=function(){return _.B.apply(this,arguments)||this};
_.R(vw5,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],vw5.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],vw5.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],vw5);
_.e(vw5,"ytd-comments-entry-point-message-renderer",function(){if(kWk!==void 0)return kWk;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return kWk=H},{mode:1});var Tqj;var vP=function(){return _.B.apply(this,arguments)||this};
_.R(vP,_.B);_.D5.Object.defineProperties(vP.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.teaserAvatar)}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],vP.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],vP.prototype,"hasAvatar",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],vP);
_.e(vP,"ytd-comments-entry-point-teaser-renderer",function(){if(Tqj!==void 0)return Tqj;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Tqj=H},{mode:1});var jF5;var Iry=function(){return _.B.apply(this,arguments)||this};
_.R(Iry,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Iry.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Iry.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],Iry);
_.e(Iry,"ytd-comments-simplebox-renderer",function(){if(jF5!==void 0)return jF5;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return jF5=H},{mode:1});var Tf=function(){var H=_.B.apply(this,arguments)||this;H.fullHeight=!_.S("comment_teaser_full_height_kill_switch")&&_.S("kevlar_watch_grid");return H};
_.R(Tf,_.B);Tf.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"}}}};
Tf.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Tf.prototype.onTap=function(){var H=this.tapCommand;H&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(H))};
Tf.prototype.onKeyUp=function(H){if(H.keyCode===13)this.onTap()};
_.D5.Object.defineProperties(Tf.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null?0:H.onTap)return this.data.onTap;var U,A;if(((U=this.data)==null?0:U.teaserContent)||((A=this.data)==null?0:A.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)!=null&&H.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
Tf.prototype.onKeyUp=Tf.prototype.onKeyUp;Tf.prototype.onTap=Tf.prototype.onTap;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Tf.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Tf.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Tf.prototype,"fullHeight",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Tf.prototype,"tapCommand",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Tf.prototype,"simpleboxPlaceholder",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Tf.prototype,"hasSimpleboxPlaceholder",null);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Tf.prototype,"simpleboxAvatar",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Tf.prototype,"teaserContent",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Tf.prototype,"hasTeaserContent",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Tf.prototype,"teaserAvatar",null);
_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Tf.prototype,"hasTeaserAvatar",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Tf.prototype,"messageText",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Tf.prototype,"contentRenderer",null);_.G([_.a("data"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Tf.prototype,"hasContents",null);
_.G([_.a("data"),_.y({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Tf.prototype,"hasContentRenderer",null);_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Tf.prototype,"onTap",null);_.G([_.Gl("keypress"),_.q("design:type",Function),_.q("design:paramtypes",[_.U0]),_.q("design:returntype")],Tf.prototype,"onKeyUp",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Tf);
_.e(Tf,"ytd-comments-entry-point-header-renderer",function(){if(hcy!==void 0)return hcy;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return hcy=H},{mode:1});var QF$;_.LG(_.MEz,"yt-animated-rolling-number",{props:{numberText:_.sY,numberValue:_.sY,heightPx:_.sY,fontSizeMultiplier:_.sY,shouldAnimate:_.sY,forceRollUp:_.sY}});var VTY=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),H2h={numberText:"",heightPx:2*VTY,shouldAnimate:!1},jg=function(){var H=_.B.apply(this,arguments)||this;H.usingAnimatedComponents=!0;H.wasDetailed=!1;H.JSC$22177_browserSupportsAnimation=_.S("web_supports_animations_api");H.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};H.detailed=!1;H.shouldAnimate=!1;H.viewCountProps=H2h;H.dateTextProps=
H2h;H.isEmpty=!1;H.metadataBadgesInDescription=_.S("web_metadata_badges_in_description");return H};
_.R(jg,_.B);_.X=jg.prototype;_.X.computeIsEmpty=function(H,U,A,M,W,w,d,O){return!_.S("web_hide_watch_info_empty")||_.Sp(H)?!1:U?!(_.Sp(A)||M||_.Sp(W)||_.Sp(w)||d||_.Sp(O)):!0};
_.X.attached=function(){var H=this;_.lx().resolve(_.eO).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(U){H.set("videoPrimaryInfoRenderer.subtitle",U)})};
_.X.detached=function(){_.lx().resolve(_.eO).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.X.resetAnimationState=function(){this.shouldAnimate=!1};
_.X.updateDynamicMetadata=function(){if(this.JSC$22177_browserSupportsAnimation){if(!this.detailed){var H,U,A,M;var W=(H=this.videoPrimaryInfoRenderer)==null?void 0:(U=H.viewCount)==null?void 0:(A=U.videoViewCountRenderer)==null?void 0:(M=A.extraShortViewCount)==null?void 0:M.simpleText;var w,d,O,f;var J=(w=this.videoPrimaryInfoRenderer)==null?void 0:(d=w.viewCount)==null?void 0:(O=d.videoViewCountRenderer)==null?void 0:(f=O.shortViewCount)==null?void 0:f.simpleText}if(!J){var F,P,n,N;W=(F=this.videoPrimaryInfoRenderer)==
null?void 0:(P=F.viewCount)==null?void 0:(n=P.videoViewCountRenderer)==null?void 0:(N=n.unlabeledViewCountValue)==null?void 0:N.simpleText;var L,m,z,c;J=(L=this.videoPrimaryInfoRenderer)==null?void 0:(m=L.viewCount)==null?void 0:(z=m.videoViewCountRenderer)==null?void 0:(c=z.viewCount)==null?void 0:c.simpleText}var C,v,Y;H=Number((C=this.videoPrimaryInfoRenderer)==null?void 0:(v=C.viewCount)==null?void 0:(Y=v.videoViewCountRenderer)==null?void 0:Y.originalViewCount);var D,h;C=(D=this.videoPrimaryInfoRenderer)==
null?void 0:(h=D.relativeDateText)==null?void 0:h.simpleText;var T;D=!((T=this.videoPrimaryInfoRenderer)==null||!T.relativeDateText);if(W&&J&&H&&(C||!D)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;T=J.split(new RegExp("("+W+")"));W=_.Nh(T[0]);var WF;J={numberText:(WF=T[1])!=null?WF:"",numberValue:H,heightPx:2*VTY,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var dK;WF=((dK=T[2])!=null?dK:"")+"  ";this.setViewCount(J,W,_.Nh(WF));if(!this.detailed&&
D){W=C.split(/(\d+)/);dK=_.Nh(W[0]);var SN;WF={numberText:(SN=W[1])!=null?SN:"",heightPx:2*VTY,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var o_;SN=((o_=W[2])!=null?o_:"")+"  ";this.setDateText(WF,dK,_.Nh(SN))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.X.setViewCount=function(H,U,A){_.Sp(U)!==_.Sp(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=U);this.viewCountProps.numberText!==(H==null?void 0:H.numberText)&&(this.viewCountProps=H||H2h);_.Sp(A)!==_.Sp(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=A)};
_.X.setDateText=function(H,U,A){_.Sp(U)!==_.Sp(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=U);this.dateTextProps.numberText!==(H==null?void 0:H.numberText)&&(this.dateTextProps=H||H2h);_.Sp(A)!==_.Sp(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=A)};
_.X.onYtUpdateViewershipAction=function(H){this.videoPrimaryInfoRenderer&&(_.p(H,eAj).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.p(H,eAj).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.p(H,eAj).viewCount)))};
_.X.onYtUpdateDateTextAction=function(H){if(this.videoPrimaryInfoRenderer){H=_.p(H,BLj).dateText;this.shouldAnimate=!0;var U;((U=this.videoPrimaryInfoRenderer)==null?0:U.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",H):this.set("videoPrimaryInfoRenderer.dateText",H)}};
_.D5.Object.defineProperties(jg.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return Ro5(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Sp(Ro5(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Sp(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Sp(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Sp(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Sp(this.dateTextPostNumberText)].join("")}}});
jg.prototype.updateDynamicMetadata=jg.prototype.updateDynamicMetadata;jg.prototype.resetAnimationState=jg.prototype.resetAnimationState;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],jg.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],jg.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],jg.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],jg.prototype,"videoPrimaryInfoRenderer",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jg.prototype,"detailed",void 0);_.G([_.y(),_.q("design:type",Object)],jg.prototype,"shouldAnimate",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jg.prototype,"viewCountPreNumberText",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jg.prototype,"viewCountProps",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jg.prototype,"viewCountPostNumberText",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jg.prototype,"dateTextPreNumberText",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jg.prototype,"dateTextProps",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jg.prototype,"dateTextPostNumberText",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeIsEmpty(infoText, usingAnimatedComponents, viewCountPreNumberText, viewCountProps.numberText, viewCountPostNumberText, dateTextPreNumberText, dateTextProps.numberText, dateTextPostNumberText)"}),_.q("design:type",Object)],jg.prototype,"isEmpty",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],jg.prototype,"metadataBadgesInDescription",void 0);_.G([_.a("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.q("design:type",Object),_.q("design:paramtypes",[])],jg.prototype,"infoText",null);
_.G([_.a("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.q("design:type",String),_.q("design:paramtypes",[])],jg.prototype,"descriptionInfoTooltipText",null);_.G([_.a("detailed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],jg.prototype,"showDescriptionInfoTooltip",null);
_.G([_.a("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.q("design:type",String),_.q("design:paramtypes",[])],jg.prototype,"animatedViewCountAccessibilityLabel",null);_.G([_.a("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.q("design:type",String),_.q("design:paramtypes",[])],jg.prototype,"animatedDateTextAccessibilityLabel",null);
_.G([_.Ya("videoPrimaryInfoRenderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jg.prototype,"resetAnimationState",null);_.G([_.Ya("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jg.prototype,"updateDynamicMetadata",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-watch-info-text"})],jg);
_.e(jg,"ytd-watch-info-text",function(){if(QF$!==void 0)return QF$;var H=document.createElement("template");_.E(H,'\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  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\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 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<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return QF$=H},{mode:1});var Ui$;var A3p="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var MW$=_.r(function(H){var U=H.data;var A=H.setTapCommand;_.Em(function(){var M=_.ij(U().onTap);A(M)},"CLm0Xe");
return _.Z("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.Z(_.YY,{data:function(){return U().avatar}},{avatarViewModel:_.dU}),_.Z("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.Z("span",null,function(){return U().simpleboxText})))},"Hk");var WN7=_.r(function(H){return _.Z("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.Z(_.K,{cond:function(){return _.p(H.data().avatar,_.Xd)},
then:function(U){return _.Z(_.dU,{data:U,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.Z("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.Z(_.Pb,{text:function(){return H.data().teaserText}})))},"Ik");var wM5=_.r(function(H){var U=H.data;var A=H.setTapCommand;_.Em(function(){var M=_.ij(U().onTap);A(M)},"qxjCCd");
return _.Z("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.Z(_.YY,{data:function(){return U().teasers}},{commentsEntryPointTeaserViewModel:WN7}))},"Kk");var XMB=_.r(function(H){var U=H.data;var A=H.setTapCommand;_.Em(function(){var M=_.ij(U().onTap);A(M)},"CRZByf");
return _.Z("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.Z(_.Pb,{text:function(){return U().messageText}}))},"Mk");var i2h=_.r(function(H){var U=H.data;var A=H.setTapCommand;var M=H.isDisabled;_.Em(function(){var W=(M==null?0:M())?void 0:_.ij(U().onTap);A(W)},"GZxRqd");
return _.Z("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.Z(_.er,{icon:function(){return U().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.Z(_.K,{cond:function(){return U().image},
then:function(W){return _.Z(_.nG,{data:W,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.Z(_.Pb,{text:function(){return U().text},
className:function(){return U().image||U().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.Z(_.YY,{data:function(){return U().button}},{buttonViewModel:function(W){return _.Z(_.yJ,{data:W.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:M==null?void 0:M()}}})}}))},"Ok");var b2B=_.r(function(H){var U=H.data;var A=H.itemIndex;var M=H.selectedIndex;var W=H.indexUpdatedCallback;var w=H.observer;H=H.title;var d=_.nA("yt-carousel-item-view-model",function(P){w&&w().observe(P)}),O=function(P){A()===M()&&W(P)},f=_.Gk(Wb5),J=_.Gk(_.d77),F=function(){var P,n,N,L,m;
return((P=U())==null?void 0:P.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!f()||((n=U())==null?void 0:n.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((N=J())==null?void 0:N.includes("PAposts_by_host"))||((L=U())==null?void 0:L.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((m=J())==null?void 0:m.includes("PAyouchat"))};
return _.Z("yt-carousel-item-view-model",{el:d,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":H},_.Z(_.YY,{data:function(){var P,n;return(n=(P=_.p(U().carouselItem,Tx8))==null?void 0:P.textCarousel)!=null?n:U().carouselItem}},{textCarouselItemViewModel:function(P){return _.Z(i2h,{data:P.data,
setTapCommand:O,isDisabled:F})},
commentTeaserCarouselItemViewModel:function(P){return _.Z(wM5,{data:P.data,setTapCommand:O})},
commentInputBoxCarouselItemViewModel:function(P){return _.Z(MW$,{data:P.data,setTapCommand:O})},
commentsEntryPointMessageViewModel:function(P){return _.Z(XMB,{data:P.data,setTapCommand:O})}}))},"Pk");var di7=_.r(function(H){var U=H.numDots;var A=H.activeIndex;return _.Z("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.Z(_.FQ,{each:function(){return Array.from({length:U()})},
keyBy:"INDEX"},function(M,W){return _.Z("div",{class:function(){var w={};return _.QU("ytCarouselDotsShapeDot",(w.ytCarouselDotsShapeDotActive=W===A(),w))}})}))},"Qk");var O28=_.r(function(H){var U=H.data;var A=H.handleCarouselNavigation;var M=H.numItems;var W=H.selectedIndex;var w=function(){return{disabled:W()===0}},d=function(){return{disabled:W()===M()-1}};
return _.Z("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.Z("div",null,_.Z("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return U().title}),_.Z(_.K,{cond:function(){return U().subtitle},
then:function(O){return _.Z("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return U().subtitleAccessibilityText}},O)}})),_.Z(_.K,{cond:function(){return M()>1},
then:function(){return _.Z("div",{class:"ytCarouselTitleViewModelNavigation"},_.Z(di7,{numDots:M,activeIndex:W}),_.Z(_.K,{cond:function(){return U().previousButton},
then:function(O){return _.Z(_.YY,{data:O},{buttonViewModel:function(f){return _.Z(_.yJ,{data:f.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return A(-1)},
buttonOverrides:w})}})}}),_.Z(_.K,{cond:function(){return U().nextButton},
then:function(O){return _.Z(_.YY,{data:O},{buttonViewModel:function(f){return _.Z(_.yJ,{data:f.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return A(1)},
buttonOverrides:d})}})}}))}}))},"Rk");_.LG(_.r(function(H){var U=H.data;var A,M=_.nA("yt-video-metadata-carousel-view-model"),W=_.nA("div",function(D){var h=function(){var T=D.offsetWidth*m(),WF=24*(m()-1);n(T+WF)};
h();window.ResizeObserver&&(A=new ResizeObserver(h),A.observe(D))}),w=_.gD("HTML_DIR")==="rtl",d=!1,O=0,f=0;
H=_.b(_.iB(0,void 0,"M49TDf"));var J=H.next().value,F=H.next().value;H=_.b(_.iB(0,void 0,"zLIok"));var P=H.next().value,n=H.next().value;H=_.b(_.iB(!1,void 0,"bhelhc"));var N=H.next().value,L=H.next().value,m=function(){var D,h,T;return(T=(D=U())==null?void 0:(h=D.carouselTitles)==null?void 0:h.length)!=null?T:0},z=function(){W.value&&W.value.scrollLeft!==O&&F((w?W.value.scrollLeft<O:W.value.scrollLeft>O)?Math.min(J()+1,m()-1):Math.max(J()-1,0))},c;
window.IntersectionObserver&&(c=new IntersectionObserver(function(D){D=_.b(D);for(var h=D.next();!h.done;h=D.next())if(h.value.isIntersecting){if(d){d=!1;break}z()}else F(f)},{threshold:.2}));
_.Em(function(){if(W.value){var D=(w?-1:1)*(P()/m()+12)*(N()&&c?f:J());typeof W.value.scrollTo==="function"?W.value.scrollTo({left:D,behavior:"smooth"}):W.value.scrollLeft=D;O=D;f=N()&&c?f:J()}},"s9rbgc");
var C,v=function(D){C=D};
_.m4(function(){var D;(D=A)==null||D.disconnect();var h;(h=c)==null||h.disconnect()});
var Y=function(D){D=J()+D;D>=0&&D<m()&&(d=!0,F(D))};
return _.Z("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:M,"on:click":_.c$(function(D){if(_.Uy(_.Hq(D),M.value,["BUTTON".toString()])||!C)return!1;_.lx().resolve(_.YV).resolveCommand(C,{forceClickLogging:!0});return!1}),
"on:touchstart":_.c$(function(){L(!0);return!1}),
"on:touchend":_.c$(function(){c||z();L(!1);return!1}),
hidden:function(){var D,h;return!((D=U())==null?0:(h=D.carouselItems)==null?0:h.length)}},_.Z("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.Z(_.K,{cond:function(){return U().carouselTitles},
then:function(D){return _.Z(_.YY,{data:function(){return D()[N()&&c?f:J()]}},{carouselTitleViewModel:function(h){return _.Z(O28,{data:h.data,
handleCarouselNavigation:Y,numItems:m,selectedIndex:J})}})}})),_.Z("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:W},_.Z("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+P()+"px;"}},_.Z(_.K,{cond:function(){return U().carouselItems},
then:function(D){return _.Z(_.FQ,{each:D},function(h,T){return _.Z(_.YY,{data:function(){return h}},{carouselItemViewModel:function(WF){return _.Z(b2B,{data:WF.data,
itemIndex:T,selectedIndex:J,indexUpdatedCallback:v,observer:c,title:function(){a:{var dK=T();var SN,o_=(SN=U())==null?void 0:SN.carouselTitles;if(o_&&(dK=o_[dK])){var PF;dK=(PF=_.p(dK,vbB))==null?void 0:PF.title;break a}dK=void 0}return dK}})}})})}}))))},"Tk"),"yt-video-metadata-carousel-view-model",{props:{data:_.sY}});var IA=function(){var H=_.B.apply(this,arguments)||this;H.isHovering=!1;H.enableColorSampling=_.S("web_delhi_colorful_sd");H.metadataBadgesInDescription=_.S("web_metadata_badges_in_description");H.descriptionCollapsed=!0;H.useFadedScrimDescription=_.S("kevlar_enable_faded_scrim_on_description");H.skinnyMode=!1;H.playlist=!1;H.isDark=document.documentElement.hasAttribute("dark");H.disableVideoOwnerOnTap=_.S("swatchie_video_owner_on_tap_ks");H.swatcherooDelayLoad=_.S("swatcheroo_enable_ghost_cards");
H.primaryMenuWidth=0;H.videoId="";H.titleHeadlineXs=_.S("web_watch_typography_title_headline_xs");H.titleHeadlineS=_.S("web_watch_typography_title_headline_s");H.titleHeadlineM=_.S("web_watch_typography_title_headline_m");H.titleHashtagBlackLinkified=_.S("web_title_hashtag_black_linkified");H.titleHashtagGreyLinkified=_.S("web_title_hashtag_grey_linkified");H.actionButtonsUpdateOwnerWidth=!0;H.actionMap={"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction",
"yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};H.isFullscreen=!1;H.isTheaterMode=!1;return H};
_.R(IA,_.B);_.X=IA.prototype;_.X.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.X.updateOwnerAndDescriptionPosition=function(){_.S("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),x1(this.bottomRowElement,this.ownerElement)):(x1(this.bottomRowElement,this.descriptionElement),x1(this.topRowElement,this.ownerElement)))};
_.X.titleOnTap=function(H){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.ny(_.Lf(H)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var U;((U=window.getSelection())==null?0:U.toString().length)||this.handleExpandDescriptionCommands()}};
_.X.videoOwnerOnTap=function(H){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.ny(_.Lf(H)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.X.detached=function(){var H=this,U;return _.u(function(A){(U=H.resizeObserver)==null||U.disconnect();_.DO(A)})};
_.X.maybeAttachResizeObserver=function(){var H=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.B$(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){H.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.X.maybeUpdateActionsOnSeparateLine=function(){this.skinnyMode?this.actionsOnSeparateLine=!0:this.primaryMenuWidth&&(this.actionsOnSeparateLine=this.primaryMenuWidth>this.hostElement.clientWidth-(this.ownerElement.clientWidth+32)?!0:!1)};
_.X.stripAttributedDescription=function(H){return{content:H.content.replace(/[\r\n]{2,}/g,"\n")}};
_.X.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.S("web_modern_buttons"),forceIconButton:!_.S("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,showTextWhileAnimating:!0,forceIconOnly:!0}},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"}}}};
_.X.videoPrimaryInfoRendererChanged=function(){var H;if((H=this.videoPrimaryInfoRenderer)==null?0:H.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.X.videoSecondaryInfoRendererChanged=function(){var H,U;(H=this.descriptionInlineExpander)==null||(U=H.collapse)==null||U.call(H);this.descriptionExpandClientVe=_.ts(110509);this.descriptionCollapseClientVe=_.ts(110510);H=_.XK();U=_.ws();H&&U&&(_.S("combine_ve_grafts")?(_.$g(_.k$(),this.descriptionExpandClientVe,U),_.$g(_.k$(),this.descriptionCollapseClientVe,U)):_.F_(H,U,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.X.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.X.updateTopLevelIconsOnly=function(){var H=this;_.S("top_level_update_killswitch")||this.menu&&_.Fl.addLowPriorityJob(function(){H.menu.topLevelIconsOnly=H.skinnyMode},_.hr("swathceroo_delay_flexible_menu_update",100))};
_.X.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.X.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.X.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.X.onYtTextInlineExpanderExpandedChanged=function(){if(!_.S("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var H,U;(U=(H=this.structuredDescriptionContentRendererElement).resize)==null||U.call(H)}};
_.X.onRenderStamperFinished=function(H){(H==null?void 0:H.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.X.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.X.onYtExpanderLessTapped=function(){var H,U=(H=this.videoSecondaryInfoRenderer)==null?void 0:H.showLessCommand;U&&this.ytComponentBehavior.resolveCommand(U)};
_.X.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.X.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.X.onDescriptionClick=function(H){if(!_.ny(_.Lf(H)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var U;((U=window.getSelection())==null?0:U.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.S("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.X.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.X.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.X.logCollapseClick=function(){var H=_.XK();H&&this.descriptionCollapseClientVe&&_.NY(H,this.descriptionCollapseClientVe)};
_.X.logExpandClick=function(){var H=_.XK();H&&this.descriptionExpandClientVe&&_.NY(H,this.descriptionExpandClientVe)};
_.X.collapseDescription=function(){this.descriptionCollapsed=!0};
_.X.scrollToTopOfContainer=function(){_.yr(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.X.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.X.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.X.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.X.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var H,U;(U=(H=this.descriptionInlineExpander).resize)==null||U.call(H)}else _.Na(new _.bD("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var A;(A=this.menu)==null||A.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.X.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var H,U,A=(U=(H=_.c4(this.menu).querySelector("#button-shape"))==null?void 0:H.clientWidth)!=null?U:0,M,W;H=((W=(M=_.c4(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:M.clientWidth)!=null?W:0)+8+A;var w,d;A=(d=(w=_.c4(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:w.children.length)!=null?d:2;H<=8*A||(this.primaryMenuWidth=H)}};
_.X.onYtUpdateTitleAction=function(H){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.p(H,r7h).title)};
_.X.onYtUpdateDescriptionAction=function(H){if(H=_.p(H,_.jNh)){var U,A=!((U=this.videoSecondaryInfoRenderer)==null||!U.attributedDescription);H.isEmpty||!H.description&&!H.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):H.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",H.attributedDescription):H.description&&(A?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Me(H.description)):this.set("videoSecondaryInfoRenderer.description",H.description))}};
_.X.onYtDarkModeToggledAction=function(H){this.isDark=H};
_.X.registerPanel=function(){if(!_.S("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var H=_.S("web_watch_imax_theater_mode")&&this.isTheaterMode;H=_.S("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||H;var U=_.lx().resolve(_.Mx);U&&!H&&U.registerPanel("engagement-panel-structured-description",this)}};
_.X.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.X.parseColorSamplingData=function(){var H;if(_.S("web_delhi_colorful_sd")&&((H=this.structuredDescriptionContentRenderer)==null?0:H.items)&&(H=this.structuredDescriptionContentRenderer.items.find(function(W){return!!_.p(W,Eu)}))){var U,A;
this.hoverColor={lightTheme:(U=_.p(H,Eu))==null?void 0:U.lightThemeColorPalette,darkTheme:(A=_.p(H,Eu))==null?void 0:A.darkThemeColorPalette};var M;this.hoverText=(M=_.p(H,Eu))==null?void 0:M.colorSampledDescriptionBodyText}};
_.X.updateHoverColor=function(){if(_.S("web_delhi_colorful_sd")){var H=this.hoverColor,U={},A;H=(A=this.isDark?H==null?void 0:H.darkTheme:H==null?void 0:H.lightTheme)!=null?A:{};A=_.b(A3p);for(var M=A.next();!M.done;M=A.next()){M=M.value;var W=H[M];U["--yt-saturated-"+_.GP(M)]=W?_.bN(W):"initial"}_.Dt(this.hostElement,U)}};
_.X.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.X.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.X.showPanel=function(H){this.expandDescription();var U=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;U.resize();var A,M=H==null?void 0:(A=H.sectionListEngagementPanelExtras)==null?void 0:A.scrollToItemSectionIdentifier;M?_.Fl.addJob(function(){U==null||U.scrollToSection(M)},8):this.scrollToTopOfContainer()};
_.X.isVisible=function(){return!this.descriptionCollapsed};
_.X.getReloadContinuation=function(){};
_.X.hidePanel=function(){};
_.X.updatePanel=function(){};
_.D5.Object.defineProperties(IA.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var H;return _.S("web_delhi_colorful_sd")&&(H=this.structuredDescriptionContentRenderer)!=null&&H.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(U){return!_.p(U,Eu)&&!_.p(U,G6f)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.structuredDescriptionContentRendererComputed)!=null&&H.items){var U;H=_.b((U=this.structuredDescriptionContentRendererComputed)==null?void 0:U.items);for(U=H.next();!U.done;U=H.next())if(U=_.p(U.value,_.l4h))return U}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.videoPrimaryInfoRenderer)==null?0:H.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return!!((H=this.videoSecondaryInfoRenderer)==null?0:(U=H.owner)==null?0:(A=U.videoOwnerRenderer)==null?0:A.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var H,U;if((H=this.videoSecondaryInfoRenderer)==null?0:(U=H.attributedDescription)==null?0:U.content){var A,M;return(M=this.stripAttributedDescription((A=this.videoSecondaryInfoRenderer)==null?void 0:A.attributedDescription))!=null?M:{runs:[]}}}if(_.S("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var W,w,d,O;return(O=(d=(W=this.videoSecondaryInfoRenderer)==
null?void 0:W.description)!=null?d:(w=this.videoSecondaryInfoRenderer)==null?void 0:w.attributedDescription)!=null?O:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var H,U;return(U=(H=this.videoSecondaryInfoRenderer)==null?void 0:H.headerRuns)!=null?U:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.commentsEntryPointHeaderRenderer)==null||!H.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.videoMetadataCarousel)==null||!H.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.hr("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var H,U,A=Object.assign({},(H=this.videoSecondaryInfoRenderer)==null?void 0:(U=H.metadataRowContainer)==null?void 0:U.metadataRowContainerRenderer);if(A&&A.rows&&A.collapsedItemCount!==void 0&&!(A.rows.length<=A.collapsedItemCount))return A.rows=A.rows.slice(A.collapsedItemCount),A.collapsedItemCount=0,A}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var H,U,A=Object.assign({},(H=this.videoSecondaryInfoRenderer)==null?void 0:(U=H.metadataRowContainer)==null?void 0:U.metadataRowContainerRenderer);if(A&&A.rows&&A.collapsedItemCount!==void 0)return A.rows=A.rows.slice(0,A.collapsedItemCount),A.collapsedItemCount=A.rows.length,A}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var H,U;return!!((H=this.structuredDescriptionContentRendererComputed)==null?0:(U=H.items)==null?0:U.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var H;return(H=this.videoSecondaryInfoRenderer)==null?void 0:H.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return((H=this.videoSecondaryInfoRenderer)==null?0:(U=H.owner)==null?0:(A=U.videoOwnerRenderer)==null?0:A.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var H,U,A,M;return!!((H=this.videoPrimaryInfoRenderer)==null?0:(U=H.videoActions)==null?0:(A=U.menuRenderer)==null?0:(M=A.flexibleItems)==null?0:M.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.ov(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.ov(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var H=this;if(_.S("web_title_hashtag_grey_delinkified")){var U,A=_.dG.unsafeClone((U=this.videoPrimaryInfoRenderer)==null?void 0:U.title);(U=A==null?void 0:A.runs)&&U.forEach(function(M){if(M==null?0:M.navigationEndpoint)M.textColor=4284506208,H.isDark&&(M.textColor=4289374890)});
return A}return(A=this.videoPrimaryInfoRenderer)==null?void 0:A.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.S("web_title_hashtag_black_delinkified")||_.S("web_title_hashtag_grey_delinkified")}}});
IA.prototype.updateHoverColor=IA.prototype.updateHoverColor;IA.prototype.parseColorSamplingData=IA.prototype.parseColorSamplingData;IA.prototype.resetDescriptionState=IA.prototype.resetDescriptionState;IA.prototype.registerPanel=IA.prototype.registerPanel;IA.prototype.onYtExpanderLessTapped=IA.prototype.onYtExpanderLessTapped;IA.prototype.onYtExpanderMoreTapped=IA.prototype.onYtExpanderMoreTapped;IA.prototype.onRenderStamperFinished=IA.prototype.onRenderStamperFinished;
IA.prototype.onYtTextInlineExpanderExpandedChanged=IA.prototype.onYtTextInlineExpanderExpandedChanged;IA.prototype.onYtTextInlineExpanderCollapseClicked=IA.prototype.onYtTextInlineExpanderCollapseClicked;IA.prototype.onYtTextInlineExpanderExpandClicked=IA.prototype.onYtTextInlineExpanderExpandClicked;IA.prototype.moveActionsElement=IA.prototype.moveActionsElement;IA.prototype.updateTopLevelIconsOnly=IA.prototype.updateTopLevelIconsOnly;IA.prototype.structuredDescriptionContentRendererChanged=IA.prototype.structuredDescriptionContentRendererChanged;
IA.prototype.videoSecondaryInfoRendererChanged=IA.prototype.videoSecondaryInfoRendererChanged;IA.prototype.videoPrimaryInfoRendererChanged=IA.prototype.videoPrimaryInfoRendererChanged;IA.prototype.maybeUpdateActionsOnSeparateLine=IA.prototype.maybeUpdateActionsOnSeparateLine;IA.prototype.updateOwnerAndDescriptionPosition=IA.prototype.updateOwnerAndDescriptionPosition;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],IA.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],IA.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],IA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],IA.prototype,"ytdReduxBehavior",void 0);
_.G([_.hG("#above-the-fold"),_.q("design:type",HTMLElement)],IA.prototype,"aboveTheFoldContainer",void 0);_.G([_.hG("#menu ytd-menu-renderer"),_.q("design:type",Object)],IA.prototype,"menu",void 0);_.G([_.hG("#description-inline-expander"),_.q("design:type",Object)],IA.prototype,"descriptionInlineExpander",void 0);_.G([_.hG("#faded-structured-description"),_.q("design:type",Object)],IA.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);
_.G([_.hG("#structured-description"),_.q("design:type",Object)],IA.prototype,"structuredDescriptionContentRendererElement",void 0);_.G([_.hG("#title"),_.q("design:type",HTMLElement)],IA.prototype,"titleElement",void 0);_.G([_.hG("#description"),_.q("design:type",HTMLElement)],IA.prototype,"descriptionElement",void 0);_.G([_.hG("#description-interaction"),_.q("design:type",Object)],IA.prototype,"descriptionInteraction",void 0);
_.G([_.hG("#owner"),_.q("design:type",HTMLElement)],IA.prototype,"ownerElement",void 0);_.G([_.hG("#top-row"),_.q("design:type",HTMLElement)],IA.prototype,"topRowElement",void 0);_.G([_.hG("#bottom-row"),_.q("design:type",HTMLElement)],IA.prototype,"bottomRowElement",void 0);_.G([_.hG("#actions"),_.q("design:type",HTMLElement)],IA.prototype,"actionsElement",void 0);_.G([_.hG("#bottom-actions"),_.q("design:type",HTMLElement)],IA.prototype,"bottomActionsElement",void 0);
_.G([_.hG("#ytd-watch-info-text"),_.q("design:type",Object)],IA.prototype,"watchInfoTextElement",void 0);_.G([_.y(),_.q("design:type",Object)],IA.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],IA.prototype,"videoPrimaryInfoRenderer",void 0);_.G([_.y(),_.q("design:type",Object)],IA.prototype,"videoSecondaryInfoRenderer",void 0);_.G([_.y(),_.q("design:type",Object)],IA.prototype,"commentsEntryPointHeaderRenderer",void 0);
_.G([_.y(),_.q("design:type",Object)],IA.prototype,"videoMetadataCarousel",void 0);_.G([_.y(),_.q("design:type",Object)],IA.prototype,"structuredDescriptionContentRenderer",void 0);_.G([_.a("structuredDescriptionContentRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],IA.prototype,"structuredDescriptionContentRendererComputed",null);_.G([_.y(),_.q("design:type",Object)],IA.prototype,"videoSummary",void 0);_.G([_.y(),_.q("design:type",Object)],IA.prototype,"merchShelf",void 0);
_.G([_.y(),_.q("design:type",Object)],IA.prototype,"infoPanelBelowMetadata",void 0);_.G([_.y(),_.q("design:type",Object)],IA.prototype,"hoverColor",void 0);_.G([_.y(),_.q("design:type",Object)],IA.prototype,"hoverText",void 0);_.G([_.y(),_.q("design:type",Object)],IA.prototype,"isHovering",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IA.prototype,"enableColorSampling",void 0);
_.G([_.a("structuredDescriptionContentRendererComputed"),_.q("design:type",Object),_.q("design:paramtypes",[])],IA.prototype,"productShelf",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IA.prototype,"metadataBadgesInDescription",void 0);_.G([_.a("videoPrimaryInfoRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],IA.prototype,"shouldHideBadges",null);
_.G([_.a("productShelf","descriptionCollapsed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],IA.prototype,"shouldShowProductShelf",null);_.G([_.y(),_.q("design:type",Boolean)],IA.prototype,"isWatchFlexy",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IA.prototype,"descriptionCollapsed",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],IA.prototype,"useFadedScrimDescription",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IA.prototype,"skinnyMode",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("videoSecondaryInfoRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],IA.prototype,"largerItemWrap",null);_.G([_.y(),_.q("design:type",Object)],IA.prototype,"playlist",void 0);_.G([_.y(),_.q("design:type",Object)],IA.prototype,"clarifyBox",void 0);_.G([_.y(),_.q("design:type",Object)],IA.prototype,"playerAds",void 0);
_.G([_.y(),_.q("design:type",Boolean)],IA.prototype,"isDark",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],IA.prototype,"actionsOnSeparateLine",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IA.prototype,"disableVideoOwnerOnTap",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IA.prototype,"swatcherooDelayLoad",void 0);_.G([_.y(),_.q("design:type",Boolean)],IA.prototype,"suppressTopLevelMetadataRows",void 0);
_.G([_.y(),_.q("design:type",Object)],IA.prototype,"primaryMenuWidth",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IA.prototype,"videoId",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IA.prototype,"titleHeadlineXs",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IA.prototype,"titleHeadlineS",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IA.prototype,"titleHeadlineM",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IA.prototype,"titleHashtagBlackLinkified",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IA.prototype,"titleHashtagGreyLinkified",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],IA.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.G([_.jk("skinnyMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IA.prototype,"updateOwnerAndDescriptionPosition",null);
_.G([_.jk("skinnyMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IA.prototype,"maybeUpdateActionsOnSeparateLine",null);_.G([_.a("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.q("design:type",Object),_.q("design:paramtypes",[])],IA.prototype,"descriptionText",null);
_.G([_.a("videoSecondaryInfoRenderer.headerRuns"),_.q("design:type",Array),_.q("design:paramtypes",[])],IA.prototype,"headerRuns",null);_.G([_.y({value:!1}),_.a("commentsEntryPointHeaderRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],IA.prototype,"hasTeaser",null);_.G([_.y({value:!1,reflectToAttribute:!0}),_.a("videoMetadataCarousel"),_.q("design:type",Object),_.q("design:paramtypes",[])],IA.prototype,"hasTeaserCarousel",null);
_.G([_.y({value:3}),_.a("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.q("design:type",Object),_.q("design:paramtypes",[])],IA.prototype,"descriptionMaxLines",null);_.G([_.a("videoSecondaryInfoRenderer.metadataRowContainer"),_.q("design:type",Object),_.q("design:paramtypes",[])],IA.prototype,"collapsibleMetadataRows",null);
_.G([_.a("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.q("design:type",Object),_.q("design:paramtypes",[])],IA.prototype,"alwaysVisibleMetadataRows",null);_.G([_.a("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],IA.prototype,"hasInlineStructuredDescription",null);
_.G([_.a("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],IA.prototype,"showInlineStructuredDescription",null);_.G([_.a("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],IA.prototype,"descriptionExpandCommand",null);
_.G([_.a("videoSecondaryInfoRenderer.owner"),_.q("design:type",Object),_.q("design:paramtypes",[])],IA.prototype,"videoOwnerCommand",null);_.G([_.y({reflectToAttribute:!0}),_.a("videoPrimaryInfoRenderer.videoActions"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],IA.prototype,"flexMenuEnabled",null);_.G([_.y({selector:_.MF,reflectToAttribute:!0}),_.q("design:type",Object)],IA.prototype,"isFullscreen",void 0);
_.G([_.y({selector:_.As,reflectToAttribute:!0}),_.q("design:type",Object)],IA.prototype,"isTheaterMode",void 0);_.G([_.a("descriptionText","useFadedScrimDescription"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],IA.prototype,"showAttributedStringDescription",null);_.G([_.a("descriptionText","useFadedScrimDescription"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],IA.prototype,"showFormattedStringDescription",null);
_.G([_.a("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],IA.prototype,"showFadedStructuredDescription",null);_.G([_.jk("videoPrimaryInfoRenderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IA.prototype,"videoPrimaryInfoRendererChanged",null);_.G([_.a("videoPrimaryInfoRenderer.title"),_.q("design:type",Object),_.q("design:paramtypes",[])],IA.prototype,"videoTitle",null);
_.G([_.a("videoPrimaryInfoRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],IA.prototype,"noEndpoints",null);_.G([_.jk("videoSecondaryInfoRenderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IA.prototype,"videoSecondaryInfoRendererChanged",null);
_.G([_.Ya("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IA.prototype,"structuredDescriptionContentRendererChanged",null);_.G([_.Ya("skinnyMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IA.prototype,"updateTopLevelIconsOnly",null);
_.G([_.Ya("skinnyMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IA.prototype,"moveActionsElement",null);_.G([_.Gl("yt-text-inline-expander-expand-clicked"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IA.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.G([_.Gl("yt-text-inline-expander-collapse-clicked"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IA.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.G([_.Gl("yt-text-inline-expander-expanded-changed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IA.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.G([_.Gl("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],IA.prototype,"onRenderStamperFinished",null);_.G([_.Gl("yt-expander-more-tapped"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IA.prototype,"onYtExpanderMoreTapped",null);_.G([_.Gl("yt-expander-less-tapped"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IA.prototype,"onYtExpanderLessTapped",null);
_.G([_.Ya("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IA.prototype,"registerPanel",null);_.G([_.Ya("videoSecondaryInfoRenderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IA.prototype,"resetDescriptionState",null);
_.G([_.Ya("structuredDescriptionContentRenderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IA.prototype,"parseColorSamplingData",null);_.G([_.Ya("hoverColor","isDark"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IA.prototype,"updateHoverColor",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-watch-metadata"})],IA);
_.e(IA,"ytd-watch-metadata",function(){if(Ui$!==void 0)return Ui$;var H=document.createElement("template");_.E(H,'\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    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" 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" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\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]]" detailed-description-override="[[!descriptionCollapsed]]" 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="[[structuredDescriptionContentRendererComputed]]" 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="[[structuredDescriptionContentRendererComputed]]" 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    </template>\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Ui$=H},{mode:2});var QR=function(){var H=_.B.apply(this,arguments)||this;H.hidden=!1;H.errorScreen=null;H.playlistData={};return H};
_.R(QR,_.B);_.X=QR.prototype;_.X.getPlayer=function(){return this.ytdPlayer};
_.X.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:SK(["aa","eocs"])}}};
_.X.onActiveChanged=function(){_.Lq().dispatch($A8(this.ytPageBehavior.active))};
_.X.playerDataChanged=function(){var H;(H=this.watchController)==null||H.setPlayerResponse(this.playerData)};
_.X.dataChanged=function(){var H;(H=this.watchController)==null||H.setWatchNextResponse(this.data)};
_.X.sizeChanged=function(){var H,U;(U=(H=this.metadata).resize)==null||U.call(H)};
_.X.attached=function(){this.watchController=new hX(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.X.detached=function(){_.zg(this.watchController);this.watchController=void 0};
_.X.getPlayerContainer=function(){return this.playerContainer};
_.X.getElement=function(H){switch(H){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.X.provideRenderingData=function(H,U){switch(H){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=U;break;case "ERROR_SCREEN":this.errorScreen=U!=null?U:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=U;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=U;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=U;break;case "RICH_METADATA":this.richMetadataRowContainer=U;break;case "CLARIFICATION":this.clarificationData=U;break;case "PLAYLIST":this.playlistData=
U!=null?U:{};break;case "MERCH_SHELF":this.merchShelf=U;break;case "TICKET_SHELF":this.ticketShelf=U;break;case "LIMITED_STATE":this.limitedState=U;break;case "DONATION_SHELF":this.donationShelf=U;break;case "ALERTS":this.alerts=U}};
_.D5.Object.defineProperties(QR.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return!this.hidden&&!!((H=this.data)==null?0:(U=H.contents)==null?0:(A=U.twoColumnWatchNextResults)==null?0:A.conversationBar)}}});
QR.prototype.sizeChanged=QR.prototype.sizeChanged;QR.prototype.dataChanged=QR.prototype.dataChanged;QR.prototype.playerDataChanged=QR.prototype.playerDataChanged;QR.prototype.onActiveChanged=QR.prototype.onActiveChanged;_.G([_.g(ZP.YtPageBehavior),_.q("design:type",Object)],QR.prototype,"ytPageBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],QR.prototype,"ytComponentBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],QR.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],QR.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],QR.prototype,"playerData",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],QR.prototype,"hidden",void 0);_.G([_.hG("#ytd-player"),_.q("design:type",HTMLElement)],QR.prototype,"ytdPlayer",void 0);_.G([_.hG("#player-container"),_.q("design:type",HTMLElement)],QR.prototype,"playerContainer",void 0);_.G([_.hG("#metadata"),_.q("design:type",Object)],QR.prototype,"metadata",void 0);_.G([_.hG("#playlist"),_.q("design:type",HTMLElement)],QR.prototype,"playlistPanel",void 0);
_.G([_.y({selector:M9y,reflectToAttribute:!0}),_.q("design:type",Object)],QR.prototype,"fixie",void 0);_.G([_.y({selector:_.b6F,reflectToAttribute:!0}),_.q("design:type",Object)],QR.prototype,"singleColumn",void 0);_.G([_.y({selector:function(H){return _.As(H)&&!_.MF(H)},
reflectToAttribute:!0}),_.q("design:type",Object)],QR.prototype,"theater",void 0);_.G([_.y({selector:_.MF,reflectToAttribute:!0}),_.q("design:type",Object)],QR.prototype,"fullscreen",void 0);_.G([_.y({selector:Aw7}),_.q("design:type",Object)],QR.prototype,"windowSize",void 0);_.G([_.y(),_.q("design:type",Object)],QR.prototype,"singleColumnContents",void 0);_.G([_.y(),_.q("design:type",Object)],QR.prototype,"errorScreen",void 0);_.G([_.y(),_.q("design:type",Object)],QR.prototype,"playlistData",void 0);
_.G([_.y(),_.q("design:type",Object)],QR.prototype,"videoPrimaryInfoRenderer",void 0);_.G([_.y(),_.q("design:type",Object)],QR.prototype,"videoSecondaryInfoRenderer",void 0);_.G([_.y(),_.q("design:type",Object)],QR.prototype,"richMetadataRowContainer",void 0);_.G([_.y(),_.q("design:type",Object)],QR.prototype,"clarificationData",void 0);_.G([_.y(),_.q("design:type",Object)],QR.prototype,"commentsEntryPointHeaderRenderer",void 0);_.G([_.y(),_.q("design:type",Object)],QR.prototype,"ticketShelf",void 0);
_.G([_.y(),_.q("design:type",Object)],QR.prototype,"merchShelf",void 0);_.G([_.y(),_.q("design:type",Object)],QR.prototype,"donationShelf",void 0);_.G([_.y(),_.q("design:type",Object)],QR.prototype,"limitedState",void 0);_.G([_.y(),_.q("design:type",Object)],QR.prototype,"alerts",void 0);_.G([_.a("playlistData"),_.q("design:type",Object),_.q("design:paramtypes",[])],QR.prototype,"hasPlaylistData",null);
_.G([_.a("data","hidden"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],QR.prototype,"hasChat",null);_.G([_.Ya("active"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],QR.prototype,"onActiveChanged",null);_.G([_.Ya("playerData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],QR.prototype,"playerDataChanged",null);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],QR.prototype,"dataChanged",null);_.G([_.Ya("windowSize","singleColumn"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],QR.prototype,"sizeChanged",null);
_.e(QR,"ytd-watch-fixie",function(){if(x0Y===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);x0Y=H}H=x0Y;return H},{mode:1});var uq8;var VR=function(){var H=_.B.apply(this,arguments)||this;H.viewTransitionEnabled=_.S("enable_player_resize_transition");H.smallerChatMinHeight=_.S("live_chat_smaller_min_height");H.isDarkTheme=document.documentElement.hasAttribute("dark");H.defaultCollapsePlaylist=_.S("web_watch_default_collapse_playlist");H.respectAspectRatio=_.S("web_enable_aspect_ratio_fix");H.retroModeReduxValue=!1;H.persistentPanelVisibleValue=!1;return H};
_.R(VR,_.B);_.X=VR.prototype;_.X.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.X.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.X.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.X.updateRetroModeReduxValue=function(){_.S("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.X.updatePersistentPanelVisibleValue=function(){_.S("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.X.ready=function(){var H=this,U=function(){H.onColumnScroll()};
this.primary.addEventListener("scroll",U);this.secondary.addEventListener("scroll",U)};
_.X.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.X.updateIsTwoColumnsFromBinding=function(H){_.S("web_watch_update_narrow_width_killswitch")||_.Lq().dispatch(l7h(!H.detail.value));this.ytdWatchBehavior.isTwoColumns_=H.detail.value};
_.X.updateFlexySmallWindowFromBinding=function(H){this.ytdWatchBehavior.flexySmallWindow_=H.detail.value};
_.X.updateFlexyLargeWindowFromBinding=function(H){this.ytdWatchBehavior.flexyLargeWindow_=H.detail.value};
_.X.updateWatchWhileWindowSizeSufficientFromBinding=function(H){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=H.detail.value};
_.X.updateWatchNextCanShowMoreFromBinding=function(H){this.ytdWatchBehavior.watchNextCanShowMore=H.detail.value};
_.X.updateShownItemsFromBinding=function(H){H.detail.path?this.set(H.detail.path,H.detail.value):this.ytdWatchBehavior.watchNextShownItems=H.detail.value};
_.X.getElement=function(H){switch(H){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22200_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22200_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.D5.Object.defineProperties(VR.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null||!H.pageVisualEffects)return!1;for(var U=0;U<this.data.pageVisualEffects.length;U++)if(H=_.p(this.data.pageVisualEffects[U],L4))return U=void 0,(U=H.config)==null?void 0:U.enableInLightTheme;return!1}}});
_.D5.Object.defineProperties(VR,{template:{configurable:!0,enumerable:!0,get:function(){if(uq8===void 0){var H=document.createElement("template");_.E(H,'\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="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="shopping-timely-shelf" class="attached-message 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" hidden$="[[!showGhostMetadata]]">\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" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);uq8=H}H=uq8;return H}}});
VR.prototype.updatePersistentPanelVisibleValue=VR.prototype.updatePersistentPanelVisibleValue;VR.prototype.updateRetroModeReduxValue=VR.prototype.updateRetroModeReduxValue;VR.prototype.updateScrollTopValue=VR.prototype.updateScrollTopValue;VR.prototype.updateFullscreenValue=VR.prototype.updateFullscreenValue;VR.prototype.updateTheaterValue=VR.prototype.updateTheaterValue;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],VR.prototype,"ytComponentBehavior",void 0);_.G([_.g(m3$.YtdWatchBehavior),_.q("design:type",Object)],VR.prototype,"ytdWatchBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],VR.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],VR.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],VR.prototype,"playerData",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],VR.prototype,"viewTransitionEnabled",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],VR.prototype,"smallerChatMinHeight",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],VR.prototype,"isDarkTheme",void 0);_.G([_.y(),_.q("design:type",Object)],VR.prototype,"defaultCollapsePlaylist",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],VR.prototype,"respectAspectRatio",void 0);
_.G([_.y({selector:_.As}),_.q("design:type",Object)],VR.prototype,"theaterValue",void 0);_.G([_.y({selector:_.MF}),_.q("design:type",Object)],VR.prototype,"fullscreenValue",void 0);_.G([_.y({selector:iG}),_.q("design:type",Object)],VR.prototype,"scrollTopValue",void 0);_.G([_.y({selector:_.iE}),_.q("design:type",Object)],VR.prototype,"miniplayerIsActive",void 0);_.G([_.y({selector:function(H){return H.watch.isWatchRetroMode}}),
_.q("design:type",Object)],VR.prototype,"retroModeReduxValue",void 0);_.G([_.y({selector:_.fl.persistentPanelVisibleSelector}),_.q("design:type",Object)],VR.prototype,"persistentPanelVisibleValue",void 0);_.G([X2("ytd-player"),_.q("design:type",HTMLElement)],VR.prototype,"ytdPlayer",void 0);_.G([_.hG("#playlist"),_.q("design:type",HTMLElement)],VR.prototype,"JSC$22200_ytdPlaylistPanelRenderer",void 0);_.G([X2("ytd-comments"),_.q("design:type",HTMLElement)],VR.prototype,"ytdComments",void 0);
_.G([_.hG("#primary"),_.q("design:type",HTMLElement)],VR.prototype,"primary",void 0);_.G([_.hG("#secondary"),_.q("design:type",HTMLElement)],VR.prototype,"secondary",void 0);_.G([_.hG("#player-container"),_.q("design:type",HTMLElement)],VR.prototype,"playerContainer",void 0);_.G([_.hG("#below"),_.q("design:type",HTMLElement)],VR.prototype,"below",void 0);_.G([_.hG("#cinematics"),_.q("design:type",HTMLElement)],VR.prototype,"JSC$22200_cinematics",void 0);
_.G([_.hG("#persistent-panel-container"),_.q("design:type",HTMLElement)],VR.prototype,"persistentPanelContainer",void 0);_.G([_.Ya("theaterValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],VR.prototype,"updateTheaterValue",null);_.G([_.Ya("fullscreenValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],VR.prototype,"updateFullscreenValue",null);
_.G([_.Ya("scrollTopValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],VR.prototype,"updateScrollTopValue",null);_.G([_.Ya("retroModeReduxValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],VR.prototype,"updateRetroModeReduxValue",null);_.G([_.Ya("persistentPanelVisibleValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],VR.prototype,"updatePersistentPanelVisibleValue",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],VR.prototype,"cinematicLightTheme",null);_.G([_.dX({is:"ytd-watch-flexy"})],VR);var Z2$;var fI8;var J3B=function(){return _.B.apply(this,arguments)||this};
_.R(J3B,_.B);_.G([_.dX({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],J3B);
_.e(J3B,"ytd-ghost-comments-renderer",function(){if(fI8===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);fI8=H}H=fI8;return H},{mode:1});var KN8;var orh=function(){return _.B.apply(this,arguments)||this};
_.R(orh,_.B);_.G([_.dX({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],orh);
_.e(orh,"ytd-ghost-watch-metadata-renderer",function(){if(KN8===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);KN8=H}H=KN8;return H},{mode:1});var H7=function(){var H=_.B.apply(this,arguments)||this;H.ghostGridRenderer={rows:6};H.smallerChatMinHeight=_.S("live_chat_smaller_min_height");H.darkerPanels=_.S("web_watch_darker_panels");H.isDarkTheme=document.documentElement.hasAttribute("dark");return H};
_.R(H7,_.B);_.X=H7.prototype;_.X.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.X.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.X.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.X.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.X.ready=function(){var H=this,U=function(){H.onColumnScroll()};
this.primary.addEventListener("scroll",U);this.secondary.addEventListener("scroll",U)};
_.X.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.X.updateIsTwoColumnsFromBinding=function(H){this.ytdWatchBehavior.isTwoColumns_=H.detail.value};
_.X.updateFlexySmallWindowFromBinding=function(H){this.ytdWatchBehavior.flexySmallWindow_=H.detail.value};
_.X.updateFlexyLargeWindowFromBinding=function(H){this.ytdWatchBehavior.flexyLargeWindow_=H.detail.value};
_.X.updateWatchWhileWindowSizeSufficientFromBinding=function(H){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=H.detail.value};
_.X.updateWatchNextCanShowMoreFromBinding=function(H){this.ytdWatchBehavior.watchNextCanShowMore=H.detail.value};
_.X.updateShownItemsFromBinding=function(H){_.S("swatcheroo_direct_use_rich_grid")||(H.detail.path?this.set(H.detail.path,H.detail.value):this.ytdWatchBehavior.watchNextShownItems=H.detail.value)};
_.X.getElement=function(H){switch(H){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22205_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22205_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.D5.Object.defineProperties(H7.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null||!H.pageVisualEffects)return!1;for(var U=0;U<this.data.pageVisualEffects.length;U++)if(H=_.p(this.data.pageVisualEffects[U],L4))return U=void 0,(U=H.config)==null?void 0:U.enableInLightTheme;return!1}}});
H7.prototype.updateMiniplayerIsActiveValue=H7.prototype.updateMiniplayerIsActiveValue;H7.prototype.updateScrollTopValue=H7.prototype.updateScrollTopValue;H7.prototype.updateFullscreenValue=H7.prototype.updateFullscreenValue;H7.prototype.updateTheaterValue=H7.prototype.updateTheaterValue;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],H7.prototype,"ytComponentBehavior",void 0);
_.G([_.g(m3$.YtdWatchBehavior),_.q("design:type",Object)],H7.prototype,"ytdWatchBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],H7.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],H7.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],H7.prototype,"ghostGridRenderer",void 0);_.G([_.y(),_.q("design:type",Object)],H7.prototype,"playerData",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],H7.prototype,"smallerChatMinHeight",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],H7.prototype,"darkerPanels",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],H7.prototype,"isDarkTheme",void 0);_.G([_.y({selector:_.As}),_.q("design:type",Object)],H7.prototype,"theaterValue",void 0);_.G([_.y({selector:_.MF}),_.q("design:type",Object)],H7.prototype,"fullscreenValue",void 0);_.G([_.y({selector:iG}),_.q("design:type",Object)],H7.prototype,"scrollTopValue",void 0);
_.G([_.y({selector:_.iE}),_.q("design:type",Object)],H7.prototype,"miniplayerIsActiveValue",void 0);_.G([_.hG("#ytd-player"),_.q("design:type",HTMLElement)],H7.prototype,"ytdPlayer",void 0);_.G([_.hG("#playlist"),_.q("design:type",HTMLElement)],H7.prototype,"JSC$22205_ytdPlaylistPanelRenderer",void 0);_.G([_.hG("#ytd-comments"),_.q("design:type",HTMLElement)],H7.prototype,"ytdComments",void 0);_.G([_.hG("#primary"),_.q("design:type",HTMLElement)],H7.prototype,"primary",void 0);
_.G([_.hG("#secondary"),_.q("design:type",HTMLElement)],H7.prototype,"secondary",void 0);_.G([_.hG("#player-container"),_.q("design:type",HTMLElement)],H7.prototype,"playerContainer",void 0);_.G([_.hG("#cinematics"),_.q("design:type",HTMLElement)],H7.prototype,"JSC$22205_cinematics",void 0);_.G([_.Ya("theaterValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],H7.prototype,"updateTheaterValue",null);
_.G([_.Ya("fullscreenValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],H7.prototype,"updateFullscreenValue",null);_.G([_.Ya("scrollTopValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],H7.prototype,"updateScrollTopValue",null);_.G([_.Ya("miniplayerIsActiveValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],H7.prototype,"updateMiniplayerIsActiveValue",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],H7.prototype,"cinematicLightTheme",null);
_.e(H7,"ytd-watch-grid",function(){if(Z2$===void 0){var H=document.createElement("template");_.E(H,'\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="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-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" 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-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);Z2$=H}H=Z2$;return H},{mode:2});var FNm;var UJ=function(){var H=_.B.apply(this,arguments)||this;H.flexy=!0;H.learningJourney=!0;H.viewTransitionEnabled=_.S("enable_player_resize_transition");H.smallerChatMinHeight=_.S("live_chat_smaller_min_height");H.isDarkTheme=document.documentElement.hasAttribute("dark");H.theaterLargerPlayer=_.S("web_watch_theater_larger_player");H.defaultCollapsePlaylist=_.S("web_watch_default_collapse_playlist");H.enableCanvasLayout=_.S("web_enable_canvas_on_learning_journey");return H};
_.R(UJ,_.B);_.X=UJ.prototype;_.X.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.X.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.X.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.X.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.X.ready=function(){var H=this,U=function(){H.onColumnScroll()};
this.primary.addEventListener("scroll",U);this.secondary.addEventListener("scroll",U)};
_.X.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.X.updateIsTwoColumnsFromBinding=function(H){_.S("web_watch_update_narrow_width_killswitch")||_.Lq().dispatch(l7h(!H.detail.value));this.ytdWatchBehavior.isTwoColumns_=H.detail.value};
_.X.updateFlexySmallWindowFromBinding=function(H){this.ytdWatchBehavior.flexySmallWindow_=H.detail.value};
_.X.updateFlexyLargeWindowFromBinding=function(H){this.ytdWatchBehavior.flexyLargeWindow_=H.detail.value};
_.X.updateWatchWhileWindowSizeSufficientFromBinding=function(H){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=H.detail.value};
_.X.updateWatchNextCanShowMoreFromBinding=function(H){this.ytdWatchBehavior.watchNextCanShowMore=H.detail.value};
_.X.updateShownItemsFromBinding=function(H){H.detail.path?this.set(H.detail.path,H.detail.value):this.ytdWatchBehavior.watchNextShownItems=H.detail.value};
_.X.getElement=function(H){switch(H){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22208_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22208_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.D5.Object.defineProperties(UJ.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null||!H.pageVisualEffects)return!1;for(var U=0;U<this.data.pageVisualEffects.length;U++)if(H=_.p(this.data.pageVisualEffects[U],L4))return U=void 0,(U=H.config)==null?void 0:U.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.learningJourneyEngagementPanels)==null?void 0:H.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var H,U=(H=this.learningJourneyEngagementPanels)==null?void 0:H.find(function(n){var N;return(n==null?void 0:(N=n.engagementPanelSectionListRenderer)==null?void 0:N.panelIdentifier)==="learning-journey-engagement-panel"});
if(U){var A,M,W,w,d,O,f,J,F;if(H=(J=((f=(d=((w=U==null?void 0:(A=U.engagementPanelSectionListRenderer)==null?void 0:(M=A.content)==null?void 0:(W=M.sectionListRenderer)==null?void 0:W.contents)!=null?w:[])[0])==null?void 0:(O=d.itemSectionRenderer)==null?void 0:O.contents)!=null?f:[])[0])==null?void 0:(F=J.accordionViewModel)==null?void 0:F.onTitleTap){var P=_.ij(H);if(P)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.$$.instance.resolveCommand(P)}}}}}}});
_.D5.Object.defineProperties(UJ,{template:{configurable:!0,enumerable:!0,get:function(){if(FNm===void 0){var H=document.createElement("template");_.E(H,'\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="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  <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="watch-content" hidden="[[!showWatchResponse]]" 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-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></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 id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);FNm=H}H=FNm;return H}}});
UJ.prototype.updateMiniplayerIsActiveValue=UJ.prototype.updateMiniplayerIsActiveValue;UJ.prototype.updateScrollTopValue=UJ.prototype.updateScrollTopValue;UJ.prototype.updateFullscreenValue=UJ.prototype.updateFullscreenValue;UJ.prototype.updateTheaterValue=UJ.prototype.updateTheaterValue;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],UJ.prototype,"ytComponentBehavior",void 0);
_.G([_.g(MS5.YtdLearningJourneyWatchBehavior),_.q("design:type",Object)],UJ.prototype,"ytdWatchBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],UJ.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],UJ.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],UJ.prototype,"playerData",void 0);_.G([_.y(),_.q("design:type",Object)],UJ.prototype,"browseData",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],UJ.prototype,"flexy",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],UJ.prototype,"learningJourney",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],UJ.prototype,"viewTransitionEnabled",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],UJ.prototype,"smallerChatMinHeight",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],UJ.prototype,"isDarkTheme",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],UJ.prototype,"theaterLargerPlayer",void 0);_.G([_.y(),_.q("design:type",Object)],UJ.prototype,"defaultCollapsePlaylist",void 0);_.G([_.y(),_.q("design:type",Object)],UJ.prototype,"enableCanvasLayout",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("playerData","browseData","enableCanvasLayout"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],UJ.prototype,"showBrowseResponse",null);
_.G([_.y({reflectToAttribute:!0}),_.a("playerData","enableCanvasLayout"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],UJ.prototype,"showWatchResponse",null);_.G([_.y({selector:_.As}),_.q("design:type",Object)],UJ.prototype,"theaterValue",void 0);_.G([_.y({selector:_.MF}),_.q("design:type",Object)],UJ.prototype,"fullscreenValue",void 0);_.G([_.y({selector:iG}),_.q("design:type",Object)],UJ.prototype,"scrollTopValue",void 0);
_.G([_.y({selector:_.iE}),_.q("design:type",Object)],UJ.prototype,"miniplayerIsActiveValue",void 0);_.G([_.hG("#ytd-plj-player"),_.q("design:type",HTMLElement)],UJ.prototype,"ytdPlayer",void 0);_.G([_.hG("#playlist"),_.q("design:type",HTMLElement)],UJ.prototype,"JSC$22208_ytdPlaylistPanelRenderer",void 0);_.G([X2("ytd-comments"),_.q("design:type",HTMLElement)],UJ.prototype,"ytdComments",void 0);_.G([_.hG("#primary"),_.q("design:type",HTMLElement)],UJ.prototype,"primary",void 0);
_.G([_.hG("#secondary"),_.q("design:type",HTMLElement)],UJ.prototype,"secondary",void 0);_.G([_.hG("#player-container"),_.q("design:type",HTMLElement)],UJ.prototype,"playerContainer",void 0);_.G([_.hG("#cinematics"),_.q("design:type",HTMLElement)],UJ.prototype,"JSC$22208_cinematics",void 0);_.G([_.Ya("theaterValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],UJ.prototype,"updateTheaterValue",null);
_.G([_.Ya("fullscreenValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],UJ.prototype,"updateFullscreenValue",null);_.G([_.Ya("scrollTopValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],UJ.prototype,"updateScrollTopValue",null);_.G([_.Ya("miniplayerIsActiveValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],UJ.prototype,"updateMiniplayerIsActiveValue",null);
_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],UJ.prototype,"cinematicLightTheme",null);_.G([_.y({reflectToAttribute:!0}),_.a("learningJourneyEngagementPanels"),_.q("design:type",Object),_.q("design:paramtypes",[])],UJ.prototype,"hasLearningJourneyPanels",null);_.G([_.a("learningJourneyEngagementPanels"),_.q("design:type",Object),_.q("design:paramtypes",[])],UJ.prototype,"backButtonData",null);_.G([_.dX({is:"ytd-watch-learning-journey"})],UJ);var P45;var A2=function(){var H=_.B.apply(this,arguments)||this;H.systemIcons=_.S("kevlar_system_icons");return H};
_.R(A2,_.B);_.X=A2.prototype;_.X.ready=function(){this.hostElement.addEventListener("tap",_.lN(this,this.onEndpointTapExtra))};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.X.onFocus=function(){var H;(H=_.c4(this.hostElement).querySelector("tp-yt-paper-item"))==null||H.focus()};
_.X.onEndpointTapExtra=function(H){_.cg(this.hostElement,"iron-activate");var U=this.data.navigationEndpoint;U&&_.p(U,_.aKN)&&(H.stopPropagation(),_.eb(this.hostElement,[U],this.hostElement))};
_.X.computeIcon=function(H){return H&&H.iconType?_.eq(H.iconType):""};
_.X.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.X.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.X.forceUpdateStylesOnLegacyBrowsers=function(){_.S("kevlar_legacy_browsers")&&_.Dt(this.hostElement)};
A2.prototype.forceUpdateStylesOnLegacyBrowsers=A2.prototype.forceUpdateStylesOnLegacyBrowsers;A2.prototype.onFocus=A2.prototype.onFocus;_.G([_.g(_.m1),_.q("design:type",Object)],A2.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.g(_.Ie$.YtConditionalRendererBehavior),_.q("design:type",Object)],A2.prototype,"ytConditionalRendererBehavior",void 0);_.G([_.g(_.D1.YtEndpointBehavior),_.q("design:type",Object)],A2.prototype,"ytEndpointBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],A2.prototype,"data",void 0);_.G([_.y({computed:"computeIcon(data.icon)",value:""}),_.q("design:type",String)],A2.prototype,"icon",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],A2.prototype,"useIcons",void 0);_.G([_.y({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.q("design:type",Boolean)],A2.prototype,"hasSeparator",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],A2.prototype,"systemIcons",void 0);_.G([_.Gl("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],A2.prototype,"onFocus",null);_.G([_.Ya("useIcons","hasSeparator"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],A2.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.e(A2,"ytd-menu-navigation-item-renderer",function(){if(P45===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);P45=H}H=P45;return H},{mode:1});var sWy;var nrY=_.Nh(_.hP("DOWNLOAD",{},"Download")),NfB=_.Nh(_.hP("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),Sih=_.Nh(_.hP("RETRY",{},"Retry")),pMm=_.Nh(_.hP("PAUSE_DOWNLOADING",{},"Pause downloading")),LNY=_.Nh(_.hP("RESUME_DOWNLOAD",{},"Resume download")),M_=function(){var H=_.B.apply(this,arguments)||this;H.primaryText=nrY;H.primaryIconType="OFFLINE_DOWNLOAD";H.hasSecondaryContent=!1;H.hasSeparator=!1;H.transferState="TRANSFER_STATE_UNKNOWN";H.isVideoDeletedByUser=!1;H.isHidden=!1;H.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return H};
_.R(M_,_.B);_.X=M_.prototype;_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.X.onFocus=function(){this.primaryEntry.focus()};
_.X.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.X.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.X.getRemoveAction=function(){return"ACTION_REMOVE"};
_.X.sendOfflineAction=function(H){var U=this.data.serviceEndpoint;if(U){var A=_.p(U,_.eI);A&&H&&(A.action=H);this.ytComponentBehavior.resolveCommand(U)}};
_.X.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=nrY,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=nrY;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=Sih;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=NfB;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=LNY;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=NfB;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
pMm;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=NfB;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=NfB;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=nrY,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.X.showHideButton=function(){var H;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((H=this.playerStateEntity)==null?void 0:H.adsState)==="ADS_STATE_PLAYING"};
_.X.isSecondaryEntryHidden=function(H,U){return H?!0:!U};
_.X.computeHasSeparator=function(){var H;return!((H=this.data)==null||!H.hasSeparator)};
_.X.computePlayerStateEntityKey=function(H){return H};
M_.prototype.showHideButton=M_.prototype.showHideButton;M_.prototype.onTransferStateChange=M_.prototype.onTransferStateChange;M_.prototype.onFocus=M_.prototype.onFocus;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],M_.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],M_.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],M_.prototype,"ytComponentBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],M_.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],M_.prototype,"primaryText",void 0);_.G([_.y(),_.q("design:type",String)],M_.prototype,"primaryIconType",void 0);_.G([_.y(),_.q("design:type",String)],M_.prototype,"primaryAction",void 0);_.G([_.y(),_.q("design:type",Object)],M_.prototype,"secondaryText",void 0);_.G([_.y(),_.q("design:type",String)],M_.prototype,"secondaryIconType",void 0);
_.G([_.y(),_.q("design:type",String)],M_.prototype,"secondaryAction",void 0);_.G([_.y(),_.q("design:type",Object)],M_.prototype,"hasSecondaryContent",void 0);_.G([_.y({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.q("design:type",Object)],M_.prototype,"hasSeparator",void 0);_.G([_.y({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.q("design:type",String)],M_.prototype,"playerStateEntityKey",void 0);
_.G([_.y({selector:_.tp,selectorArgs:["playerStateEntityKey"]}),_.q("design:type",Object)],M_.prototype,"playerStateEntity",void 0);_.G([_.y({selector:_.O_,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.q("design:type",String)],M_.prototype,"transferState",void 0);_.G([_.y({selector:_.inM,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.q("design:type",Object)],M_.prototype,"isVideoDeletedByUser",void 0);
_.G([_.y(),_.q("design:type",Object)],M_.prototype,"isHidden",void 0);_.G([_.y({selector:_.E0E,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.q("design:type",Object)],M_.prototype,"offlineabilityState",void 0);_.G([_.hG("#primary-entry"),_.q("design:type",Object)],M_.prototype,"primaryEntry",void 0);_.G([_.Gl("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],M_.prototype,"onFocus",null);
_.G([_.jk("transferState","isVideoDeletedByUser"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],M_.prototype,"onTransferStateChange",null);_.G([_.jk("offlineabilityState","playerStateEntity"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],M_.prototype,"showHideButton",null);
_.e(M_,"ytd-menu-service-item-download-renderer",function(){if(sWy===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);sWy=H}H=sWy;return H},{mode:1});var Rp7;var W7=function(){var H=_.B.apply(this,arguments)||this;H.useIcons=!1;H.systemIcons=_.S("kevlar_system_icons");return H};
_.R(W7,_.B);_.X=W7.prototype;_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.X.onFocus=function(){var H;(H=_.c4(this.hostElement).querySelector("tp-yt-paper-item"))==null||H.focus()};
_.X.onTap=function(){_.Bg(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var H=this.data.serviceEndpoint,U=this.data.command;if(H){var A,M=(A=this.data)==null?void 0:A.trackingParams;A=!!_.p(H,_.Lgz);M&&A&&_.Lq().dispatch(_.zQ({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:M}}));this.ytComponentBehavior.resolveCommand(H)||_.lx().resolve(_.YV).resolveCommand(H,{form:{element:this.hostElement}})}U&&(this.ytComponentBehavior.resolveCommand(U)||_.eb(this.hostElement,
[U],this.hostElement))};
_.X.computeIcon=function(H){return H&&H.iconType?_.eq(H.iconType):""};
_.X.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.X.computeHasSeparator=function(){var H;return!((H=this.data)==null||!H.hasSeparator)};
_.X.forceUpdateStylesOnLegacyBrowsers=function(){_.S("kevlar_legacy_browsers")&&_.Dt(this.hostElement)};
_.X.computeIsSelected=function(){var H;return!((H=this.data)==null||!H.isSelected)};
W7.prototype.forceUpdateStylesOnLegacyBrowsers=W7.prototype.forceUpdateStylesOnLegacyBrowsers;W7.prototype.onTap=W7.prototype.onTap;W7.prototype.onFocus=W7.prototype.onFocus;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.m1),_.q("design:type",Object)],W7.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],W7.prototype,"ytComponentBehavior",void 0);
_.G([_.g(_.Ie$.YtConditionalRendererBehavior),_.q("design:type",Object)],W7.prototype,"ytConditionalRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],W7.prototype,"data",void 0);_.G([_.y({computed:"computeIcon(data.icon)",value:""}),_.q("design:type",String)],W7.prototype,"icon",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],W7.prototype,"useIcons",void 0);
_.G([_.y({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.q("design:type",Boolean)],W7.prototype,"hasSeparator",void 0);_.G([_.y({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.q("design:type",Boolean)],W7.prototype,"isSelected",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],W7.prototype,"systemIcons",void 0);
_.G([_.Gl("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],W7.prototype,"onFocus",null);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],W7.prototype,"onTap",null);_.G([_.Ya("useIcons","hasSeparator"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],W7.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.e(W7,"ytd-menu-service-item-renderer",function(){if(Rp7===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);Rp7=H}H=Rp7;return H},{mode:2});var ErB;var wr=function(){return _.B.apply(this,arguments)||this};
_.R(wr,_.B);_.X=wr.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.onDataChanged=function(){var H=this;_.rV(this,function(){H.postbox.openDialog();H.focus();_.cg(H.hostElement,"yt-refit")})};
_.X.focus=function(){this.postbox.focus()};
_.X.closePopup=function(){_.yr(this.hostElement,"yt-close-popup-action")};
_.X.onYtCommentboxDismiss=function(){this.closePopup()};
wr.prototype.onYtCommentboxDismiss=wr.prototype.onYtCommentboxDismiss;wr.prototype.onDataChanged=wr.prototype.onDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],wr.prototype,"data",void 0);_.G([_.y({value:function(){return _.hP("SBOX_INAPPROPRIATE_CANCEL")}}),
_.q("design:type",String)],wr.prototype,"closeButtonAriaLabel",void 0);_.G([_.hG("#postbox"),_.q("design:type",Object)],wr.prototype,"postbox",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wr.prototype,"onDataChanged",null);_.G([_.Gl("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wr.prototype,"onYtCommentboxDismiss",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],wr);
_.e(wr,"ytd-backstage-post-dialog-popup-renderer",function(){if(ErB!==void 0)return ErB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return ErB=H},{mode:1});var mik;var XZ=function(){var H=_.B.apply(this,arguments)||this;H.modernModal=!0;return H};
_.R(XZ,_.B);XZ.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
XZ.prototype.computeShouldHideOldButtons=function(){var H;return!((H=this.data)==null?0:H.button)};
_.D5.Object.defineProperties(XZ.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var H,U;return(H=this.data)==null?void 0:(U=H.button)==null?void 0:U.buttonRenderer}}});
_.G([_.y(),_.q("design:type",Object)],XZ.prototype,"data",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],XZ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],XZ.prototype,"ytEventForwardingBehavior",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],XZ.prototype,"modernModal",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],XZ.prototype,"buttonRendererData",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],XZ);
_.e(XZ,"ytd-modal-with-title-and-button-renderer",function(){if(mik!==void 0)return mik;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return mik=H},{mode:1});var grY;var bt=function(){return _.B.apply(this,arguments)||this};
_.R(bt,_.B);bt.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("page-changed",this.page))};
bt.prototype.pageChangedForBinding=bt.prototype.pageChangedForBinding;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],bt.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],bt.prototype,"page",void 0);_.G([_.Ya("page"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],bt.prototype,"pageChangedForBinding",null);
_.G([_.dX({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],bt);
_.e(bt,"ytd-account-item-section-header-renderer",function(){if(grY!==void 0)return grY;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return grY=H},{mode:1});var aIj;var dr=function(){return _.B.apply(this,arguments)||this};
_.R(dr,_.B);dr.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"}}}};
dr.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],dr.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],dr.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.RG),_.q("design:type",Object)],dr.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],dr.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!1}),_.q("design:type",Function)],dr.prototype,"onAccountItemTap",void 0);
_.G([_.dX({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],dr);
_.e(dr,"ytd-account-item-section-renderer",function(){if(aIj!==void 0)return aIj;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return aIj=H},{mode:1});var xi5;var zpB;var C4$=function(){return _.B.apply(this,arguments)||this};
_.R(C4$,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],C4$.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],C4$.prototype,"data",void 0);_.G([_.dX({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],C4$);
_.e(C4$,"ytd-accounts-dialog-header-renderer",function(){if(zpB!==void 0)return zpB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return zpB=H},{mode:1});var tW$;var OJ=function(){return _.B.apply(this,arguments)||this};
_.R(OJ,_.B);OJ.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],OJ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],OJ.prototype,"data",void 0);_.G([_.dX({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],OJ);
_.e(OJ,"ytd-google-account-header-renderer",function(){if(tW$!==void 0)return tW$;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return tW$=H},{mode:1});var ut=function(){return _.B.apply(this,arguments)||this};
_.R(ut,_.B);ut.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"}}}};
ut.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("page-changed",this.page))};
ut.prototype.pageChangedForBinding=ut.prototype.pageChangedForBinding;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ut.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],ut.prototype,"page",void 0);
_.G([_.Ya("page"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ut.prototype,"pageChangedForBinding",null);_.G([_.dX({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],ut);
_.ty()(ut,"ytd-account-section-list-renderer",function(){if(xi5===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);xi5=H}H=xi5;return H},{allowedProps:["data"],
mode:1});var c3h;var Zq=function(){var H=_.B.apply(this,arguments)||this;H.enableHandlesAccountMenuSwitcher=_.S("enable_handles_account_menu_switcher");return H};
_.R(Zq,_.B);Zq.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
Zq.prototype.dataChanged=Zq.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Zq.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Zq.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Zq.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.G([_.hG("#avatar"),_.q("design:type",Object)],Zq.prototype,"avatar",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Zq.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],Zq);
_.ty()(Zq,"ytd-active-account-header-renderer",function(){if(c3h===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);c3h=H}H=c3h;return H},{allowedProps:["data"],
mode:1});var y3h;var Bff;var fc=function(){return _.B.apply(this,arguments)||this};
_.R(fc,_.B);fc.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
fc.prototype.onBackTap=function(){_.cg(this.hostElement,"yt-menu-back-tapped")};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],fc.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],fc.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],fc.prototype,"data",void 0);_.G([_.dX({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],fc);
_.ty()(fc,"ytd-simple-menu-header-renderer",function(){if(Bff===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);Bff=H}H=Bff;return H},{allowedProps:["data"],
mode:2});var r3j;var epj=function(){return _.B.apply(this,arguments)||this};
_.R(epj,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],epj.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],epj.prototype,"data",void 0);_.G([_.dX({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],epj);
_.e(epj,"ytd-comment-video-thumbnail-header-renderer",function(){if(r3j!==void 0)return r3j;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return r3j=H},{mode:1});var Dim;var $im=function(){return _.B.apply(this,arguments)||this};
_.R($im,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],$im.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],$im.prototype,"data",void 0);_.G([_.dX({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],$im);
_.e($im,"ytd-abuse-type-selector-renderer",function(){if(Dim!==void 0)return Dim;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Dim=H},{mode:1});var lIy;var GK8=(0,_.VTy)(_.QFz.reportChannelAbuse,{isVideoIdSelectedSelector:function(H,U){return U in H.selectedVideoIds},
additionalContextSelector:function(H){return H.additionalContext},
impersonatedChannelUrlSelector:function(H){return H.impersonatedChannelUrl},
reportChannelAbuseSelector:function(H){return H}});var J2=function(){return _.B.apply(this,arguments)||this};
_.R(J2,_.B);J2.prototype.attached=function(){var H=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){H.additionalContextInput.focusTextInput()})};
J2.prototype.handleAdditionalContextChanged=function(){var H=this;_.F8(this,"ytd-report-channel-additional-context-update",function(){H.ytdReduxBehavior.dispatch(_.zQ({type:"ADDITIONAL_CONTEXT_UPDATED",payload:H.additionalContext}))},300)};
J2.prototype.updateAdditionalContextFromBinding=function(H){this.additionalContext=H.detail.value};
J2.prototype.handleAdditionalContextChanged=J2.prototype.handleAdditionalContextChanged;_.G([_.g(_.dF),_.q("design:type",Object)],J2.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",String)],J2.prototype,"additionalContext",void 0);_.G([_.y({selector:GK8.additionalContextSelector}),_.q("design:type",String)],J2.prototype,"additionalContextRedux",void 0);_.G([_.y(),_.q("design:type",Object)],J2.prototype,"data",void 0);
_.G([_.hG("yt-text-input-form-field-renderer"),_.q("design:type",Object)],J2.prototype,"additionalContextInput",void 0);_.G([_.Ya("additionalContext"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],J2.prototype,"handleAdditionalContextChanged",null);_.G([_.dX({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],J2);
_.e(J2,"ytd-report-channel-modal-additional-context-renderer",function(){if(lIy!==void 0)return lIy;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return lIy=H},{mode:1});var Yip;var Kc=function(){var H=_.B.apply(this,arguments)||this;H.nextButtonDisabled=null;H.submitEndpoint=null;H.navigationEndpoint=null;H.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return H};
_.R(Kc,_.B);_.X=Kc.prototype;_.X.computeNextButtonData=function(H,U,A){var M={};U&&(M.navigationEndpoint=U);A&&(M.serviceEndpoint=A);H&&H.buttonRenderer&&_.dG.extend(M,H.buttonRenderer);return M};
_.X.handleReportChannelModalDisableNextButtonAction=function(H){this.setNextButtonIsDisabled(H)};
_.X.handleReportFormEndpointUpdateAction=function(H){this.setNextButtonIsDisabled(!!H.disableSubmitButton);this.resetEndpointData();H.submitEndpoint?this.submitEndpoint=H.submitEndpoint:H.submitNavigationEndpoint&&(this.navigationEndpoint=H.submitNavigationEndpoint)};
_.X.handleSignalActionSubmitForm=function(){var H,U=Object.keys(((H=this.reportChannelAbuseForm)==null?void 0:H.selectedVideoIds)||{}),A;H=((A=this.reportChannelAbuseForm)==null?void 0:A.additionalContext)||"";var M;A=((M=this.reportChannelAbuseForm)==null?void 0:M.impersonatedChannelUrl)||"";var W;if((W=this.data)==null?0:W.submitEndpoint){U={impersonated_channel_url:A,text:H,video_ids:U};var w;_.lx().resolve(_.YV).resolveCommand((w=this.data)==null?void 0:w.submitEndpoint,{form:Object.assign({},
U,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.X.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.X.onYtServiceRequestError=function(H){this.setNextButtonIsDisabled(!1);_.oR(this.hostElement,H.detail.error.message)};
_.X.setNextButtonIsDisabled=function(H){this.set("data.nextButton.buttonRenderer.isDisabled",H)};
_.X.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Kc.prototype.onYtServiceRequestError=Kc.prototype.onYtServiceRequestError;Kc.prototype.onYtServiceRequestCompleted=Kc.prototype.onYtServiceRequestCompleted;_.G([_.y(),_.q("design:type",Object)],Kc.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Kc.prototype,"nextButtonDisabled",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Kc.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Kc.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Kc.prototype,"submitEndpoint",void 0);_.G([_.y(),_.q("design:type",Object)],Kc.prototype,"navigationEndpoint",void 0);_.G([_.y({selector:GK8.reportChannelAbuseSelector}),_.q("design:type",Object)],Kc.prototype,"reportChannelAbuseForm",void 0);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Kc.prototype,"onYtServiceRequestCompleted",null);_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Kc.prototype,"onYtServiceRequestError",null);_.G([_.dX({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Kc);
_.e(Kc,"ytd-report-channel-modal-footer-renderer",function(){if(Yip!==void 0)return Yip;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Yip=H},{mode:1});var qim;var oB=function(){var H=_.B.apply(this,arguments)||this;H.boundOnTapDismissButton=function(){H.closePopup()};
return H};
_.R(oB,_.B);oB.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
oB.prototype.handleDataChanged=function(){_.tk(this.hostElement)};
oB.prototype.closePopup=function(){_.yr(this.hostElement,"yt-close-popup-action")};
oB.prototype.handleDataChanged=oB.prototype.handleDataChanged;_.G([_.y(),_.q("design:type",Object)],oB.prototype,"boundOnTapDismissButton",void 0);_.G([_.y(),_.q("design:type",Object)],oB.prototype,"data",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],oB.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],oB.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],oB.prototype,"handleDataChanged",null);_.G([_.dX({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],oB);
_.e(oB,"ytd-report-channel-modal-header-renderer",function(){if(qim!==void 0)return qim;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return qim=H},{mode:1});var hp5;var FZ=function(){var H=_.B.apply(this,arguments)||this;H.autoValidate=!1;H.invalid=!1;H.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return H};
_.R(FZ,_.B);_.X=FZ.prototype;_.X.attached=function(){var H=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){H.channelUrlInput.focusTextInput()})};
_.X.disableNextButton=function(H){_.yr(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[H])};
_.X.handleImpersonatedChannelUrlChanged=function(){var H=this;this.disableNextButton(!0);this.invalid=!1;_.F8(this,"ytd-report-channel-impersonated-channel-update",function(){var U=H.impersonatedChannelUrl.trim();H.ytdReduxBehavior.dispatch(_.zQ({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:U}));var A;((A=H.data)==null?0:A.submitEndpoint)&&U&&_.lx().resolve(_.YV).resolveCommand(H.data.submitEndpoint,{form:{impersonated_channel_url:U,element:H.hostElement}})},500)};
_.X.handleModifyReportFormCommand=function(H){this.invalid=this.get("modifyReportFormCommand.action",H)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.X.updateInvalidFromBinding=function(H){this.invalid=H.detail.value};
_.X.updateImpersonatedChannelUrlFromBinding=function(H){this.impersonatedChannelUrl=H.detail.value};
FZ.prototype.handleImpersonatedChannelUrlChanged=FZ.prototype.handleImpersonatedChannelUrlChanged;_.G([_.g(_.dF),_.q("design:type",Object)],FZ.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],FZ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],FZ.prototype,"autoValidate",void 0);_.G([_.y(),_.q("design:type",Object)],FZ.prototype,"invalid",void 0);
_.G([_.y(),_.q("design:type",String)],FZ.prototype,"impersonatedChannelUrl",void 0);_.G([_.y({selector:GK8.impersonatedChannelUrlSelector}),_.q("design:type",String)],FZ.prototype,"impersonatedChannelUrlRedux",void 0);_.G([_.y(),_.q("design:type",Object)],FZ.prototype,"data",void 0);_.G([_.hG("#text-input"),_.q("design:type",Object)],FZ.prototype,"channelUrlInput",void 0);
_.G([_.Ya("impersonatedChannelUrl"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],FZ.prototype,"handleImpersonatedChannelUrlChanged",null);_.G([_.dX({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],FZ);
_.e(FZ,"ytd-report-channel-modal-impersonation-renderer",function(){if(hp5!==void 0)return hp5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return hp5=H},{mode:1});var kKm;var vr5;var P7=function(){return _.B.apply(this,arguments)||this};
_.R(P7,_.B);P7.prototype.onCheckboxToggled=function(H){var U,A,M=(A=_.p((U=this.data)==null?void 0:U.video,_.xIr))==null?void 0:A.videoId;M&&this.ytdReduxBehavior.dispatch(H.target.checked?_.zQ({type:"VIDEO_SELECTED",payload:M}):_.zQ({type:"VIDEO_UNSELECTED",payload:M}))};
P7.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.D5.Object.defineProperties(P7.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var H,U=(H=this.data)==null?void 0:H.video;if(!U)return{};var A;H=(A=_.p(U,_.xIr))==null?void 0:A.navigationEndpoint;if(!H)return U;_.p(H==null?void 0:H.commandMetadata,_.Y2)&&(_.p(H.commandMetadata,_.Y2).ignoreNavigation=!0);return U}}});
_.G([_.y({reflectToAttribute:!0,selector:GK8.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.q("design:type",Boolean)],P7.prototype,"checked",void 0);_.G([_.y(),_.q("design:type",Object)],P7.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],P7.prototype,"video",null);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],P7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],P7.prototype,"ytdReduxBehavior",void 0);_.G([_.dX({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],P7);
_.e(P7,"ytd-selectable-video-renderer",function(){if(vr5!==void 0)return vr5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return vr5=H},{mode:1});var sJ=function(){var H=_.B.apply(this,arguments)||this;H.monitorScroll=!0;return H};
_.R(sJ,_.B);sJ.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],sJ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],sJ.prototype,"data",void 0);_.G([_.dX({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],sJ);
_.e(sJ,"ytd-selectable-video-list-renderer",function(){if(kKm!==void 0)return kKm;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return kKm=H},{mode:1});var TfY;_.Qm("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var nc=function(){return _.B.apply(this,arguments)||this};
_.R(nc,_.B);nc.prototype.onChange=function(H){if(H=_.Rr(H).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.S("kevlar_command_handler_migration_killswitch"))_.eb(this.hostElement,H,this.hostElement);else{H=_.b(H);for(var U=H.next();!U.done;U=H.next())this.ytComponentBehavior.resolveCommand(U.value)}};
nc.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
nc.prototype.updateDataToggledFromBinding=function(H){this.set("data.toggled",H.detail.value)};
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],nc.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],nc.prototype,"data",void 0);_.G([_.y({computed:"isEnabled(data)"}),_.q("design:type",Boolean)],nc.prototype,"enabled",void 0);_.G([_.dX({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],nc);
_.e(nc,"ytd-toggle-item-renderer",function(){if(TfY!==void 0)return TfY;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return TfY=H},{mode:1});var jW5;var IIy;var QW5;var N_=function(){var H=_.B.apply(this,arguments)||this;H.setVisible=!1;H.boundOnSubmitButtonClick=function(){H.onSubmitButtonClick()};
H.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return H};
_.R(N_,_.B);N_.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}}}}}};
N_.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
N_.prototype.onSubmitButtonClick=function(){var H;((H=this.data)==null?0:H.submitEndpoint)&&!_.S("enable_ytc_refunds_submit_form_signal_action")&&_.rs(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
N_.prototype.handleSignalActionSubmitForm=function(){var H;((H=this.data)==null?0:H.submitEndpoint)&&_.rs(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.D5.Object.defineProperties(N_.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.hiddenByDefault)&&!this.setVisible}}});
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],N_.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],N_.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],N_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],N_.prototype,"setVisible",void 0);_.G([_.y(),_.q("design:type",Object)],N_.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Object)],N_.prototype,"surveyFeedbackData",void 0);_.G([_.y(),_.q("design:type",Object)],N_.prototype,"boundOnSubmitButtonClick",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data","setVisible"),_.q("design:type",Object),_.q("design:paramtypes",[])],N_.prototype,"visibilityHidden",null);_.G([_.b0({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],N_);
_.e(N_,"yt-flow-footer-renderer",function(){if(QW5===void 0){var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;IIy===void 0&&(IIy=document.createElement("template"));var M=IIy;A.call(U,M.content.cloneNode(!0),H.content.firstChild);QW5=H}H=QW5;return H},{mode:2});var VWm=(0,_.VTy)(_.QFz.ypc,{surveyFeedbackDataSelector:function(H){return H.surveyFeedbackData}});var S_=function(){return _.B.apply(this,arguments)||this};
_.R(S_,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],S_.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],S_.prototype,"data",void 0);_.G([_.y({selector:VWm.surveyFeedbackDataSelector}),_.q("design:type",Object)],S_.prototype,"surveyFeedbackData",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],S_);
_.e(S_,"ytd-flow-footer-renderer",function(){if(jW5!==void 0)return jW5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return jW5=H},{mode:2});var HDh;var UlY;var pc=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return H};
_.R(pc,_.B);_.X=pc.prototype;_.X.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Vm("multiPageMenuSectionItems")}}};
_.X.handleHideEnclosingAction_=function(H){if(this.data&&this.data.items)for(var U=0;U<this.data.items.length;U++){var A=this.data.items[U].notificationRenderer;if(A&&A.notificationId==H.hideEnclosingAction.notificationId){this.splice("data.items",U,1);_.yr(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.X.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.rn(this.hostElement,"hidden",!0)};
_.X.updateMenu_=function(H){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&H&&!H.doNotRefreshInbox){H=this.data.continuations;for(var U=0;U<H.length;U++)if(H[U].invalidationContinuationData){var A=void 0;var M=(A=H[U].invalidationContinuationData)==null?void 0:A.continuation;break}H=_.dG.clone(this.data.continuationUpdateEndpoint||null);H.continuation=M;H.click_tracking_params=this.data.trackingParams;_.rs(this.hostElement,[H])}};
_.X.onServiceRequestCompleted_=function(H,U){if(this.data&&(H=U.actions)){U=0;for(var A=H.length;U<A;U++){var M=_.p(H[U],_.vGw);if(!M)break;if((M.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||M.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&M.continuationItems&&this.data.items){var W=this.data.items.length-1;this.data.items[W].continuationItemRenderer&&(M=["data.items",W,1].concat(M.continuationItems),this.splice.apply(this,M))}}}};
pc.prototype.onServiceRequestCompleted_=pc.prototype.onServiceRequestCompleted_;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],pc.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],pc.prototype,"data",void 0);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],pc.prototype,"onServiceRequestCompleted_",null);_.G([_.b0({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],pc);
_.ty()(pc,"yt-multi-page-menu-section-renderer",function(){if(UlY===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;HDh===void 0&&(HDh=document.createElement("template"));var M=HDh;A.call(U,M.content.cloneNode(!0),H.content.firstChild);UlY=H}H=UlY;return H},{allowedProps:["data"],
mode:2});var Am8;var Mjj;var $_=function(){return _.B.apply(this,arguments)||this};
_.R($_,_.B);$_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.D5.Object.defineProperties($_.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.progress)==null?0:this.data.progress*100}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],$_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],$_.prototype,"data",void 0);_.G([_.a("data.progress"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],$_.prototype,"showProgressBar",null);
_.G([_.a("data.progress"),_.q("design:type",Number),_.q("design:paramtypes",[])],$_.prototype,"progress",null);_.G([_.b0({is:"yt-flow-header-renderer",disableElementRegistration:!0})],$_);
_.e($_,"yt-flow-header-renderer",function(){if(Mjj===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Am8===void 0&&(Am8=document.createElement("template"));var M=Am8;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Mjj=H}H=Mjj;return H},{mode:2});var Wrh;var wHY;var lt=function(){return _.B.apply(this,arguments)||this};
_.R(lt,_.B);lt.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],lt.prototype,"data",void 0);_.G([_.b0({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],lt);
_.e(lt,"yt-post-confirmation-flow-step-renderer",function(){if(wHY===void 0){var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;Wrh===void 0&&(Wrh=document.createElement("template"));var M=Wrh;A.call(U,M.content.cloneNode(!0),H.content.firstChild);wHY=H}H=wHY;return H},{mode:2});var XH$;var iD5;var Gd=function(){return _.B.apply(this,arguments)||this};
_.R(Gd,_.B);
Gd.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"}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Gd.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Gd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Gd.prototype,"data",void 0);_.G([_.b0({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Gd);
_.e(Gd,"yt-refund-confirmation-flow-step-renderer",function(){if(iD5===void 0){var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;XH$===void 0&&(XH$=document.createElement("template"));var M=XH$;A.call(U,M.content.cloneNode(!0),H.content.firstChild);iD5=H}H=iD5;return H},{mode:2});var bDY=_.r(function(H){var U=H.data;return _.Z("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.Z("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.Z(_.nG,{data:function(){return{thumbnails:[{url:U().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.Z("div",{class:"profileBadgeViewModelContent"},_.Z("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return U().badgeDesc}),_.Z(_.K,{cond:function(){return U().badgeSubtitle},
then:function(){return _.Z("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return U().badgeSubtitle})}})))},"Uk");
bDY.idomCompat=!0;var dlj=_.r(function(H){var U=H.data;return _.Z("yt-comment-interaction-view-model",{el:_.sB(_.Wq(function(){return U().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.Z("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return U().onTapA11yLabel},
"on:keydown":_.VU(),tabindex:0},_.Z("div",{class:"ytCommentInteractionViewModelHeader"},_.Z("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return U().headerPrefix},' "',function(){return U().videoTitle}),_.Z("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.Z("div",{class:"ytCommentInteractionViewModelContent"},_.Z("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return U().commentContent}),_.Z("div",{class:"ytCommentInteractionViewModelChevron"},
_.Z(_.nG,{data:function(){return{thumbnails:[{url:U().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"Vk");
dlj.idomCompat=!0;var ODm=_.r(function(H){var U=H.data;return _.Z("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.Z(_.YY,{data:function(){return U().avatar}},{avatarViewModel:_.dU}),_.Z("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return U().channelName}))},"Wk");
ODm.idomCompat=!0;var Kry=_.r(function(H){var U=H.data;H={};return _.Z("yt-profile-info-view-model",{class:_.CG("ytProfileInfoViewModelHost",(H.ytProfileInfoViewModelWithVideoShelf=function(){return U().videosHorizontalShelf},H))},_.Z(ucY,{profileInfo:U}),_.Z(_.YY,{data:function(){return U().videosHorizontalShelf}},{horizontalShelfViewModel:function(A){return _.Z("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.Z(_.NH,{data:A.data}))}}),_.Z(_.K,{cond:function(){return U().comments},
then:function(){return _.Z(ZD5,{profileInfo:U})}}),_.Z(_.K,{cond:function(){return U().sharedSubscriptionsTitle},
then:function(){return _.Z(_.K,{cond:function(){return U().subscriptionsAccessButtonCommand},
then:function(){return _.Z(fRf,{profileInfo:U})},
else:function(){return _.Z(Jmm,{profileInfo:U})}})}}))},"Xk");
Kry.idomCompat=!0;var ZD5=_.r(function(H){var U=H.profileInfo;return _.Z("div",{class:"ytProfileInfoViewModelActivity"},_.Z("div",{class:"ytProfileInfoViewModelHeader"},_.Z("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return U().commentsInteractionTitle})),_.Z(_.YY,{data:function(){return U().comments}},{commentInteractionViewModel:function(A){return _.Z("div",{class:"ytProfileInfoViewModelActivity"},_.Z(dlj,{data:A.data}))}}))},"Yk"),fRf=_.r(function(H){var U=H.profileInfo;
return _.Z("div",{class:"ytProfileInfoViewModelSubSection"},_.Z("div",{class:"ytProfileInfoViewModelSubHeader"},_.Z(_.xy,{command:function(){return U().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.Z("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return U().sharedSubscriptionsTitle}),_.Z("div",null,_.Z(_.YY,{data:function(){return U().subscriptionsAccessButton}},{buttonViewModel:_.yJ})))),_.Z(oQf,{sharedSubscriptions:function(){var A;
return((A=U().sharedSubscriptions)==null?void 0:A.slice(0,5))||[]}}))},"Zk"),Jmm=_.r(function(H){var U=H.profileInfo;
return _.Z("div",{class:"ytProfileInfoViewModelSubSection"},_.Z("div",{class:"ytProfileInfoViewModelSubHeader"},_.Z("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return U().sharedSubscriptionsTitle})),_.Z(oQf,{sharedSubscriptions:function(){var A;
return((A=U().sharedSubscriptions)==null?void 0:A.slice(0,5))||[]}}))},"$k"),oQf=_.r(function(H){return _.Z("div",{class:"ytProfileInfoViewModelSubs"},_.Z(_.YY,{data:H.sharedSubscriptions},{sharedSubscriptionViewModel:function(U){return _.Z("div",{class:"ytProfileInfoViewModelSub"},_.Z(ODm,{data:U.data}))}}))},"al"),ucY=_.r(function(H){var U=H.profileInfo;
return _.Z("div",{class:"ytProfileInfoViewModelActivity"},_.Z(_.FQ,{each:function(){return[U().profileBadgeInfoYtWide,U().profileBadgeInfoChannelWide].filter(function(A){return!!A})},
keyBy:"INDEX"},function(A){return _.Z(_.ve,null,_.Z("div",{class:"ytProfileInfoViewModelHeader"},_.Z("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return A().profileSectionTitle}),_.Z("div",{class:"ytProfileInfoViewModelSectionDesc"},_.Z("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var M;
return(M=A().commentBadge)==null?void 0:M.commentDesc}),_.Z(_.K,{cond:function(){var M;
return(M=A().commentBadge)==null?void 0:M.blackHeartDesc},
then:function(){return _.Z("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.Z("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.Z(_.nG,{data:function(){var M;
return{thumbnails:[{url:(M=A().commentBadge)==null?void 0:M.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.Z("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var M;return(M=A().commentBadge)==null?void 0:M.blackHeartDesc}))),_.Z("div",{class:"ytProfileInfoViewModelBadge"},_.Z(_.FQ,{each:function(){return A().badges||[]}},function(M){return _.Z(bDY,{data:M})})))}))},"bl");var Fr5=_.r(function(H){var U=H.data;var A=function(){return U().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.Z("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.Z(_.YY,{data:function(){return U().profileIdentityInfo}},{profileIdentityInfoViewModel:function(M){return _.Z(eV7,{data:M.data,
hideDivider:A,isChannelInfoCard:A})},
profileInfoViewModel:Kry}),_.Z(_.YY,{data:function(){return U().profileInfo}},{profileIdentityInfoViewModel:eV7,
profileInfoViewModel:Kry}))},"cl");
Fr5.idomCompat=!0;_.LG(Fr5,"yt-profile-card-view-model",{props:{data:_.sY}});var Y_=function(){var H=_.B.apply(this,arguments)||this;H.enableFocusFix=_.S("music_web_enable_focus_on_setting_menu_fix")&&_.xV("IS_MOBILE_WEB",!1);H.covered=!1;H.hideMenu=!1;H.isCommentNotificationOnProfileCard=!1;H.scrolledByTouch=!1;H.disableBackdropFilter=_.S("web_disable_backdrop_filter");H.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return H};
_.R(Y_,_.B);_.X=Y_.prototype;
_.X.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"}}}};
_.X.ready=function(){var H=this;this.JSC$22315_containerElement.addEventListener("scroll",function(){H.ytRendererBehavior.markDirty()})};
_.X.attributeChanged=function(H,U){H==="menu-style"&&_.yr(this.hostElement,"yt-multi-page-menu-closed-action",[U])};
_.X.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.lN(this,this.focusOnStampFinished))};
_.X.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.lN(this,this.focusOnStampFinished))};
_.X.reset=function(){this.closeJobId&&(_.Fl.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.X.focusOnStampFinished=function(H){H.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.lN(this,this.focusOnStampFinished)),this.doFocus())};
_.X.doFocus=function(){var H=_.kbk(this.sectionsElement);H.length&&H[0].focus()};
_.X.computeMenuStyle=function(H){return H?H.toLowerCase().replace(/_/g,"-"):""};
_.X.computeIsCommentNotificationOnProfileCard=function(H){return _.S("enable_profile_cards_on_comments")&&H.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.X.computeHideMenu=function(H,U){return H||!(!U||!U.showLoadingSpinner)};
_.X.onPopupClosed=function(){this.isPopUpOpen=!1;_.yr(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.X.onPopupOpened=function(H,U){this.isPopUpOpen=!0;U.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.cg(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.zQ({type:"CHANNEL_REPORT_RESET"})))};
_.X.onYtNavigate=function(H,U){this.shouldCloseOnNavigateEvent(U.endpoint)&&_.yr(this.hostElement,"yt-close-all-popups-action")};
_.X.handleEndpoint=function(H){H=_.p(H,_.bY);!this.isCommentNotificationOnProfileCard&&H&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$22315_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.X.handleActions=function(H){for(var U=0,A=H.length;U<A;U++){var M=_.p(H[U],MLy);M&&this.handleGetMultiPageMenuAction(M);(M=_.p(H[U],_.vGw))&&this.handleAppendContinuationItemsAction(M)}};
_.X.onServiceRequestSentOrCompleted=function(H,U){H.detail&&H.detail.endpoint&&this.handleEndpoint(H.detail.endpoint);U.actions&&this.handleActions(U.actions)};
_.X.handleGetMultiPageMenuAction=function(H){var U=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.c4(this.submenuElement).appendChild(U);(H=H.menu.multiPageMenuRenderer)&&this.logSubmenu(H);U.data=H;U.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.X.handleAppendContinuationItemsAction=function(H){if(this.data&&H.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&H.continuationItems&&this.data.sections){var U=this.data.sections.length-1;this.data.sections[U].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),U--);if(this.data.sections[U].multiPageMenuNotificationSectionRenderer&&H.continuationItems){H=_.b(H==null?void 0:H.continuationItems);for(var A=H.next();!A.done;A=H.next())if(A=A.value,_.p(A,UNh)){var M=
void 0,W=void 0,w=void 0,d=void 0,O=void 0;((M=this)==null?0:(W=M.data)==null?0:(w=W.sections)==null?0:(d=w[U])==null?0:(O=d.multiPageMenuNotificationSectionRenderer)==null?0:O.items)&&this.push("data.sections."+U+".multiPageMenuNotificationSectionRenderer.items",A)}else if(_.p(A,_.rOB)||_.p(A,_.Ea))this.push("data.sections",A),U++}}};
_.X.logSubmenu=function(H){if(!_.S("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var U=this.ytRendererBehavior.getScreenLayer(),A=_.XK(U),M=_.ws(U);if((H=H.trackingParams)&&A&&M){var W=_.IS(H);_.S("combine_ve_grafts")?_.k$().graftServerVe(H,M,U):_.ou(A,M,W)}}};
_.X.emptySubmenuContainer=function(){for(var H=_.c4(this.submenuElement);H.firstChild;)H.removeChild(H.firstChild)};
_.X.onMenuBackTap=function(H){_.cg(this.hostElement,"yt-submenu-closed");H.stopPropagation()};
_.X.onSubmenuClosed=function(H){_.Rr(H)!==this.hostElement&&(this.covered=!1,_.cg(this.hostElement,"yt-refit"),H.stopPropagation())};
_.X.onRetrieveLocation=function(H,U){U.hasComments&&(U.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),H.stopPropagation())};
_.X.shouldCloseOnNavigateEvent=function(H){if(!H)return!0;if(_.p(H,_.Fg2)||_.p(H,_.PKK)||_.p(H,_.oyB)||_.p(H,_.gu))return!1;var U;return((U=_.p(H==null?void 0:H.commandMetadata,_.Y2))==null?0:U.ignoreNavigation)?!1:!0};
_.X.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.X.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.X.refitAfterRender=function(){var H=this;_.rV(this,function(){_.cg(H.hostElement,"yt-refit")})};
Y_.prototype.refitAfterRender=Y_.prototype.refitAfterRender;Y_.prototype.onRetrieveLocation=Y_.prototype.onRetrieveLocation;Y_.prototype.onSubmenuClosed=Y_.prototype.onSubmenuClosed;Y_.prototype.onMenuBackTap=Y_.prototype.onMenuBackTap;Y_.prototype.onServiceRequestSentOrCompleted=Y_.prototype.onServiceRequestSentOrCompleted;Y_.prototype.onYtNavigate=Y_.prototype.onYtNavigate;Y_.prototype.onPopupOpened=Y_.prototype.onPopupOpened;Y_.prototype.onPopupClosed=Y_.prototype.onPopupClosed;
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Y_.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],Y_.prototype,"ytEventForwardingBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Y_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Y_.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Y_.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Object)],Y_.prototype,"enableFocusFix",void 0);_.G([_.y(),_.q("design:type",Object)],Y_.prototype,"covered",void 0);_.G([_.y({computed:"computeHideMenu(covered, data)"}),_.q("design:type",Object)],Y_.prototype,"hideMenu",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.q("design:type",String)],Y_.prototype,"menuStyle",void 0);
_.G([_.y({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.q("design:type",Object)],Y_.prototype,"isCommentNotificationOnProfileCard",void 0);_.G([_.y(),_.q("design:type",Boolean)],Y_.prototype,"isPopUpOpen",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Y_.prototype,"scrolledByTouch",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Y_.prototype,"disableBackdropFilter",void 0);
_.G([_.hG("#sections"),_.q("design:type",HTMLElement)],Y_.prototype,"sectionsElement",void 0);_.G([_.hG("#spinner"),_.q("design:type",HTMLElement)],Y_.prototype,"spinnerElement",void 0);_.G([_.hG("#header"),_.q("design:type",HTMLElement)],Y_.prototype,"headerElement",void 0);_.G([_.hG("#container"),_.q("design:type",HTMLElement)],Y_.prototype,"JSC$22315_containerElement",void 0);_.G([_.hG("#submenu"),_.q("design:type",HTMLElement)],Y_.prototype,"submenuElement",void 0);
_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Y_.prototype,"onPopupClosed",null);_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],Y_.prototype,"onPopupOpened",null);_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],Y_.prototype,"onYtNavigate",null);
_.G([_.Gl("yt-service-request-completed"),_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],Y_.prototype,"onServiceRequestSentOrCompleted",null);_.G([_.Gl("yt-menu-back-tapped"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Y_.prototype,"onMenuBackTap",null);
_.G([_.Gl("yt-submenu-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Y_.prototype,"onSubmenuClosed",null);_.G([_.Gl("yt-retrieve-location"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],Y_.prototype,"onRetrieveLocation",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Y_.prototype,"refitAfterRender",null);
_.G([_.dX({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],Y_);
_.e(Y_,"ytd-multi-page-menu-renderer",function(){if(y3h!==void 0)return y3h;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return y3h=H},{mode:1});var P3k;var q_=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return H};
_.R(q_,_.B);_.X=q_.prototype;_.X.created=function(){this.showTooltips=!0};
_.X.computeAccessibility_=function(H){return this.get("accessibility.accessibilityData",H)||null};
_.X.onTap=function(){var H=_.Bg(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(H&&H.length===1&&H[0])_.yr(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var U;if((U=this.data)==null?0:U.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var A;((A=this.data)==null?0:A.menuRequest)&&_.rs(this.hostElement,[this.data.menuRequest])}}};
_.X.handleTopbarMenuClosedAction=function(H){var U,A;(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(H)===((U=this.data)==null?void 0:(A=U.icon)==null?void 0:A.iconType)&&this.toggleIconState(!1)};
_.X.toggleIconState=function(H){_.S("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=H)};
_.X.handleUpdateTopbarAvatarAction=function(H){var U;H=(U=_.p(H,G45))==null?void 0:U.avatarUrl;var A,M;U=(A=this.data)==null?void 0:(M=A.avatar)==null?void 0:M.thumbnails;H&&U&&(A={thumbnails:[Object.assign({},U[0],{url:H})]},this.set("data.avatar",A))};
_.D5.Object.defineProperties(q_.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.c4(this.hostElement).querySelector("#button")}}});
q_.prototype.onTap=q_.prototype.onTap;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],q_.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],q_.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.m1),_.q("design:type",Object)],q_.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.g(_.DQg.YtButtonBehavior),_.q("design:type",Object)],q_.prototype,"ytButtonBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],q_.prototype,"data",void 0);
_.G([_.hG("yt-icon-button#button"),_.q("design:type",Object)],q_.prototype,"iconButton",void 0);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],q_.prototype,"onTap",null);_.G([_.dX({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],q_);
_.ty()(q_,"ytd-topbar-menu-button-renderer",function(){if(P3k===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);P3k=H}H=P3k;return H},{allowedProps:["data"],
mode:1});var sMf;var h2=function(){return _.B.apply(this,arguments)||this};
_.R(h2,_.B);h2.prototype.getSelected=function(){return this.reasons.selected};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],h2.prototype,"data",void 0);_.G([_.hG("#reasons"),_.q("design:type",Object)],h2.prototype,"reasons",void 0);_.G([_.dX({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],h2);
_.e(h2,"ytd-ad-feedback-content",function(){if(sMf!==void 0)return sMf;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return sMf=H},{mode:1});var nQ$;var k_=function(){return _.B.apply(this,arguments)||this};
_.R(k_,_.B);_.X=k_.prototype;_.X.onPopupOpened=function(){_.yr(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.X.computeConfirmButton=function(H){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:H.confirmLabel}};
_.X.computeCancelButton=function(H){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:H.cancelLabel}};
_.X.onConfirmTap=function(){var H=this.content.getSelected();H!==void 0&&(H=this.data.reasons[H].endpoint)&&(_.lx().resolve(_.YV).resolveCommand(H,{form:{element:this.hostElement}}),_.yr(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.X.sendFeedbackSubmitToastAction=function(){var H;(H=this.data)!=null&&H.completionMessage&&(H=_.E_(this.data.completionMessage),_.yr(this.hostElement,"yt-open-popup-action",[H,this]))};
_.X.onCancelTap=function(){_.yr(this.hostElement,"yt-close-popup-action")};
k_.prototype.onPopupOpened=k_.prototype.onPopupOpened;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],k_.prototype,"data",void 0);_.G([_.hG("#content"),_.q("design:type",Object)],k_.prototype,"content",void 0);_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],k_.prototype,"onPopupOpened",null);
_.G([_.dX({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],k_);
_.e(k_,"ytd-ad-feedback-renderer",function(){if(nQ$!==void 0)return nQ$;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return nQ$=H},{mode:1});var NZB;var Svj=function(){return _.B.apply(this,arguments)||this};
_.R(Svj,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Svj.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Svj.prototype,"data",void 0);_.G([_.dX({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Svj);
_.e(Svj,"ytd-ad-info-dialog-content",function(){if(NZB!==void 0)return NZB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return NZB=H},{mode:1});var pHh;var v7=function(){return _.B.apply(this,arguments)||this};
_.R(v7,_.B);v7.prototype.computeConfirmButton=function(H){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:H.confirmLabel}};
v7.prototype.onConfirmTap=function(){_.yr(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
v7.prototype.computeShouldShowTitle=function(){var H;return!((H=this.data)==null||!H.title)};
v7.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.lx().resolve(_.YV).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
v7.prototype.onPopupClosed=v7.prototype.onPopupClosed;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],v7.prototype,"data",void 0);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],v7.prototype,"onPopupClosed",null);_.G([_.dX({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],v7);
_.e(v7,"ytd-ad-info-dialog-renderer",function(){if(pHh!==void 0)return pHh;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return pHh=H},{mode:1});var Lrk;var Td=function(){var H=_.B.apply(this,arguments)||this;H.actionButtonClass="action-button";H.dismissButtonId="dismiss-button";H.dialogDismiss=!0;return H};
_.R(Td,_.B);_.X=Td.prototype;_.X.computeInPlayer=function(H){return(H==null?void 0:H.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.X.computedLogo=function(){var H,U;return this.isDarkTheme()?(H=this.data)==null?void 0:H.logoDark:(U=this.data)==null?void 0:U.logo};
_.X.computedHeaderImage=function(){var H,U;return this.isDarkTheme()?(H=this.data)==null?void 0:H.headerImageDark:(U=this.data)==null?void 0:U.headerImage};
_.X.computeLogoIconId=function(){var H,U,A,M=(H=this.computedLogo())==null?void 0:(U=H.sources)==null?void 0:(A=U[0])==null?void 0:A.height;return M&&M%31===0?"logo-icon-with-padding":"logo-icon"};
_.X.computeLogoIconHeight=function(){var H,U,A,M=(H=this.computedLogo())==null?void 0:(U=H.sources)==null?void 0:(A=U[0])==null?void 0:A.height;return M&&M%31===0?"31":"24"};
_.X.onPopupClosed=function(){_.lx().resolve(_.wc).dispose()};
_.X.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.X.onShow=function(){this.inPlayer&&_.$O(6);this.titleElement.focus()};
_.X.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var H=0;H<this.data.impressionEndpoints.length;H++){var U=_.p(this.data.impressionEndpoints[H],_.X1);U&&this.ytComponentBehavior.resolveCommand(U)}};
_.X.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.yr(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.D5.Object.defineProperties(Td.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var H,U;return!((H=this.data)==null||!H.headerImageDark)&&!((U=this.data)==null||!U.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.secondaryButton)}}});
Td.prototype.onPopupClosed=Td.prototype.onPopupClosed;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Td.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Td.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.Jh.YtVisibilityBehavior),_.q("design:type",Object)],Td.prototype,"ytVisibilityBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Td.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Object)],Td.prototype,"actionButtonClass",void 0);_.G([_.y(),_.q("design:type",Object)],Td.prototype,"dismissButtonId",void 0);_.G([_.y(),_.q("design:type",Object)],Td.prototype,"dialogDismiss",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Td.prototype,"hasHeaderImage",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Td.prototype,"hasPremiumButton",null);
_.G([_.y({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.q("design:type",Boolean)],Td.prototype,"inPlayer",void 0);_.G([_.hG("#dismiss-button"),_.q("design:type",HTMLElement)],Td.prototype,"dismissButton",void 0);_.G([_.hG("#title"),_.q("design:type",HTMLElement)],Td.prototype,"titleElement",void 0);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Td.prototype,"onPopupClosed",null);
_.G([_.dX({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Td);
_.e(Td,"ytd-enforcement-message-view-model",function(){if(Lrk!==void 0)return Lrk;var H=document.createElement("template");_.E(H,'\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="fc-dialog-container 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" tabindex="0" role="heading" 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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Lrk=H},{mode:1});var RHB;var EQ5;var j_=function(){var H=_.B.apply(this,arguments)||this;H.TEST_ONLY={immediateValidation:function(){H.immediateValidation()},
onValidationResponse:function(U){H.onValidationResponse(U)},
onGenerateHandleFromNameResponse:function(U){H.onGenerateHandleFromNameResponse(U)}};
return H};
_.R(j_,_.B);_.X=j_.prototype;_.X.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.X.validate=function(){this.immediateValidation()};
_.X.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.X.setHandleInputValue=function(H){this.handleDir=this.getHandleDir(H);this.handleInput.value=H;this.validationState={status:"PENDING"};this.immediateValidation()};
_.X.getHandleDir=function(H){var U=H===""&&!1;return(U=_.mZ2.test.call(_.mZ2,H))?"rtl":"ltr"};
_.X.onDataChanged=function(){var H,U;this.handleDir=this.getHandleDir((U=(H=this.data)==null?void 0:H.handle)!=null?U:"");var A;this.validationState=((A=this.data)==null?0:A.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var M;((M=this.data)==null?0:M.validateOnInit)&&this.immediateValidation()};
_.X.stopPropagation=function(H){H.stopPropagation()};
_.X.onInput=function(){var H;this.handleDir=this.getHandleDir((H=this.handleInput.value)!=null?H:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.X.onFocusout=function(H){this.handleInput.contains(H.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.X.delayedValidation=function(){var H,U;this.debouncedValidation((U=(H=this.data)==null?void 0:H.validationDelayMs)!=null?U:1E3)};
_.X.immediateValidation=function(){this.debouncedValidation(0)};
_.X.debouncedValidation=function(H){var U=this;_.F8(this,"debouncedValidation",function(){var A,M=U.staticValidation((A=U.handleInput.value)!=null?A:"");if(M!==void 0)U.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:M};else{var W;if((W=U.data)!=null&&W.validateChannelHandleCommand){U.validationState={status:"LOADING"};var w;U.ytComponentBehavior.resolveCommand(U.data.validateChannelHandleCommand,{form:{handle:(w=U.handleInput.value)!=null?w:""},commandController:{onSuccess:function(d,
O){U.onValidationResponse(O)},
onServerError:function(d,O){U.onValidationServerError(O)}}})}else U.handleUnexpectedValidationError(new _.bD("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",U.data))}},H)};
_.X.staticValidation=function(H){var U;if(((U=this.data)==null?void 0:U.channelHandleStaticValidationParams)!==void 0){U=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(H)&&U.validValueRegexpErrorMessage!==void 0)return U.validValueRegexpErrorMessage;if(U.minLength!==void 0&&H.length<U.minLength&&U.minLengthErrorMessage!==void 0)return U.minLengthErrorMessage;if(U.maxLength!==void 0&&H.length>U.maxLength&&U.maxLengthErrorMessage!==void 0)return U.maxLengthErrorMessage}};
_.X.onValidationResponse=function(H){var U=_.p(H.result,YNj);U===void 0?this.handleUnexpectedValidationError(new _.bD("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",H)):this.handleValidationResultRenderer(U)};
_.X.onValidationServerError=function(H){this.handleUnexpectedValidationError(new _.bD("ValidateChannelHandle request failed.",H))};
_.X.handleValidationResultRenderer=function(H){if(H.handle===void 0)this.handleUnexpectedValidationError(new _.bD("ChannelHandleValidationResultRenderer does not contain handle.",H));else if(H.handle===this.handleInput.value)switch(H.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:H.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:H.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.bD("Unrecognized ChannelHandleValidationResult",H));break;default:_.U$(H.result)}};
_.X.handleUnexpectedValidationError=function(H){var U;this.validationState={status:"UNKNOWN",handle:(U=this.handleInput.value)!=null?U:""};_.Na(H)};
_.X.stopEventPropagation=function(H){H.stopPropagation()};
_.X.updateHandleOnChannelNameInputChange=function(H){if(!this.wasEdited){var U,A;this.debouncedGenerateHandleFromName(H,(A=(U=this.data)==null?void 0:U.validationDelayMs)!=null?A:1E3)}};
_.X.debouncedGenerateHandleFromName=function(H,U){var A=this;_.F8(this,"debouncedGenerateHandleFromName",function(){var M;(M=A.data)!=null&&M.validateChannelHandleCommand?A.ytComponentBehavior.resolveCommand(A.data.validateChannelHandleCommand,{form:{name:H},commandController:{onSuccess:function(W,w){A.onGenerateHandleFromNameResponse(w)},
onServerError:function(W,w){_.Na(new _.bD("Error calling GenerateHandleFromName",w))}}}):_.Na(new _.bD("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",A.data))},U)};
_.X.onGenerateHandleFromNameResponse=function(H){this.wasEdited||((H=_.p(H.result,qNj))?this.setHandleInputValue(H.handle):_.Na(new _.bD("Invalid results when generate handle from name")))};
_.D5.Object.defineProperties(j_.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var H;if(H=this.validationState)H=this.validationState,H=H.status==="OK"||H.status==="UNKNOWN";if(H)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var H;if(((H=this.validationState)==null?void 0:H.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 H,U=(H=this.channelHandleEntity)==null?void 0:H.handleEdit;this.handleDir=this.getHandleDir(U!=null?U:"");return U}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var H,U;if(((H=this.data)==null?void 0:(U=H.channelHandleStaticValidationParams)==null?void 0:U.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
j_.prototype.stopEventPropagation=j_.prototype.stopEventPropagation;j_.prototype.onDataChanged=j_.prototype.onDataChanged;j_.prototype.applyHandleEdit=j_.prototype.applyHandleEdit;j_.prototype.onValueChanged=j_.prototype.onValueChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],j_.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],j_.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],j_.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Boolean)],j_.prototype,"wasEdited",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],j_.prototype,"handleDir",void 0);_.G([_.hG("#handle-input"),_.q("design:type",Object)],j_.prototype,"handleInput",void 0);_.G([_.y(),_.a("validationState"),_.q("design:type",Object),_.q("design:paramtypes",[])],j_.prototype,"value",null);
_.G([_.Ya("value"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],j_.prototype,"onValueChanged",null);_.G([_.a("validationState"),_.q("design:type",Object),_.q("design:paramtypes",[])],j_.prototype,"errorIndicator",null);_.G([_.y({reflectToAttribute:!0}),_.a("errorIndicator"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],j_.prototype,"borderErrorIndicator",null);
_.G([_.y({selectorArgs:["data.channelHandleEntityKey"],selector:function(H,U){return _.rH(H.entities,"channelHandle",U)}}),
_.q("design:type",Object)],j_.prototype,"channelHandleEntity",void 0);_.G([_.a("channelHandleEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],j_.prototype,"handleEdit",null);_.G([_.Ya("handleEdit"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],j_.prototype,"applyHandleEdit",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],j_.prototype,"onDataChanged",null);
_.G([_.a("data.channelHandleStaticValidationParams.validValueRegexp"),_.q("design:type",Object),_.q("design:paramtypes",[])],j_.prototype,"validValueRegexp",null);_.G([_.Gl("yt-service-request-sent"),_.Gl("yt-service-request-completed"),_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],j_.prototype,"stopEventPropagation",null);_.G([_.dX({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],j_);
_.e(j_,"ytd-channel-handle-input-renderer",function(){if(EQ5!==void 0)return EQ5;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return EQ5=H},{mode:2});var IB=function(){var H=_.B.apply(this,arguments)||this;H.data=null;H.errorMessage=null;H.isLoading=!0;H.hideContainer=!1;H.enableNewChannelCreationOnIdForAll=_.S("enable_new_channel_creation_for_id4all");H.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"};H.testOnly={setErrorMessage:function(U){H.resetErrorState();
H.setErrorState(U)}};
return H};
_.R(IB,_.B);_.X=IB.prototype;_.X.created=function(){this.logScreenVe()};
_.X.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")};
_.X.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var H;((H=this.zeroStepErrorMessageEntity)==null?0:H.value)&&this.set("errorMessage",_.Nh(this.zeroStepErrorMessageEntity.value))};
_.X.onCreateTap=function(){var H=this;if(this.data&&this.data.channelCreationEndpoint){var U,A;if(!((U=this.data.createChannelButton)==null?0:(A=U.buttonRenderer)==null?0:A.isDisabled)){var M;if((M=this.nameInput)!=null&&M.value){this.setLoadingState();var W,w;U=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(W=this.handleInput)==null?void 0:W.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((w=this.handleInput)==null?void 0:w.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:U,commandController:{onSuccess:function(d,O){H.onChannelCreationEndpointSuccess(O);H.obakeImageSource&&_.Fx("channelCreatedWithObakeImage",{imageSourceType:H.obakeImageSource})},
onServerError:function(){H.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.X.endpointRequiresServiceRequestAction=function(H){return!!_.p(H,_.XY)||!!_.p(H,G45)};
_.X.isNavigateAction=function(H){var U;return!!_.p(H,cey)||!!_.p((U=_.p(H,jpB))==null?void 0:U.command,cey)};
_.X.isPlaylistAction=function(H){return!!_.p(H,_.dk)||!!_.p(H,_.K$)};
_.X.onChannelCreationEndpointSuccess=function(H){if(H.createChannelError){var U;this.setErrorState((U=H.createChannelError)==null?void 0:U.errorMessage);this.handleInput&&this.handleInput.validate()}else{H.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(H.navigationEndpoint);if(H.actions){U=_.b(H.actions);for(var A=U.next();!A.done;A=U.next())if(A=A.value,this.endpointRequiresServiceRequestAction(A)&&this.ytComponentBehavior.resolveCommand(A),this.isNavigateAction(A)){var M=void 0;A=_.p((M=
_.p(A,jpB))==null?void 0:M.command,cey);M=void 0;this.isPlaylistAction((M=A)==null?void 0:M.endpoint)&&(_.yr(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),M=void 0,this.ytComponentBehavior.resolveCommand((M=A)==null?void 0:M.endpoint))}}H.actions&&H.actions.some(function(W){var w;return _.p(W,cey)||_.p((w=_.p(W,jpB))==null?void 0:w.command,cey)})||_.yr(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.X.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.X.onCancelTap=function(){var H,U,A;if(!((H=this.data)==null?0:(U=H.cancelButton)==null?0:(A=U.buttonRenderer)==null?0:A.isDisabled)){var M,W,w;H=(M=this.data)==null?void 0:(W=M.cancelButton)==null?void 0:(w=W.buttonRenderer)==null?void 0:w.command;if(!H||!_.p(H,_.geE)){var d;this.nameInput&&((d=this.data)==null?0:d.name)&&(this.nameInput.value=this.data.name);var O;this.handleInput&&((O=this.data)==null?0:O.channelHandleInput)&&(this.handleInput.data=_.p(this.data.channelHandleInput,htB));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.X.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.X.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.X.onClearProfilePhotoTap=function(){var H,U,A;((H=this.data)==null?0:(U=H.clearProfilePhotoButton)==null?0:(A=U.buttonRenderer)==null?0:A.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.X.onEditAvatarTap=function(){var H,U,A;((H=this.data)==null?0:(U=H.editAvatarButton)==null?0:(A=U.buttonRenderer)==null?0:A.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.X.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)};
_.X.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var H;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((H=this.data)==null?0:H.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.X.setErrorState=function(H){this.resetErrorState();if(H)this.set("errorMessage",H);else{var U;if((U=this.zeroStepErrorMessageEntity)==null?0:U.value)this.set("errorMessage",_.Nh(this.zeroStepErrorMessageEntity.value));else{var A;((A=this.data)==null?0:A.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.X.fetchImageBlobWithAlr=function(H,U){U=U===void 0?5:U;var A=this,M,W,w,d,O;return _.u(function(f){switch(f.nextAddress){case 1:return f.yield(fetch(H,{method:"GET",mode:"cors"}),2);case 2:M=f.yieldResult;if(M.ok){f.jumpTo(3);break}if(U===0)throw Error();W=A.addJitter(Math.pow(2,5-U));return f.yield(new Promise(function(J){setTimeout(J,W*1E3)}),4);
case 4:return f.return(A.fetchImageBlobWithAlr(H,U-1));case 3:if(!M.headers.get("content-type").split(";").some(function(J){return J.trim()==="text/plain"})){f.jumpTo(5);
break}w=A;d=w.fetchImageBlobWithAlr;return f.yield(M.text(),6);case 6:return f.return(d.call(w,f.yieldResult,U-1));case 5:return f.yield(M.blob(),7);case 7:return O=f.yieldResult,f.return(O)}})};
_.X.addJitter=function(H){var U=H*.3*Math.random();Math.random()>.5&&(U*=-1);return H+U};
_.X.openProfilePicturePicker=function(){var H=this,U,A,M,W,w,d;return _.u(function(O){if(O.nextAddress==1){U=H.data.scottyUploadUrl;if(!U)return O.return();A=document.documentElement.hasAttribute("dark");M=document.body.style.colorScheme;A&&(document.body.style.colorScheme="dark");W=HJj(UE$(VZB(hfY(A?"dark":"light")),function(f){var J,F,P,n,N;return _.u(function(L){if(L.nextAddress==1)return J=_.vL(PKf(new w4h(f.photoUrl,!1)).build(),"alr","yes"),H.obakeImageSource=H.pictureChangeSourceToObakeImageSourceType(f.photoSource),
_.zj(L,2),H.setLoadingState(),L.yield(H.fetchImageBlobWithAlr(J),4);if(L.nextAddress!=2)return F=L.yieldResult,P=new FileReader,P.addEventListener("load",function(){var m,z,c,C,v,Y;return _.u(function(D){if(D.nextAddress==1){if(F.size>15728640)return H.setErrorState((m=H.data)==null?void 0:m.imageSizeErrorMessage),_.Na(Error("im")),D.return();if(!P.result)return H.setErrorState((z=H.data)==null?void 0:z.genericImageLoadErrorMessage),_.Na(Error("jm")),D.return();c=P.result;_.zj(D,2);return D.yield(E4y(F,
U),4)}if(D.nextAddress!=2)return C=D.yieldResult,H.handleImageUpdatedAction(c,C),H.resetErrorState(),_.xD(D,0);v=_.eG(D);H.setErrorState((Y=H.data)==null?void 0:Y.uploadErrorMessage);if(v instanceof Error)_.sD(v);else{var h=new _.bD(JSON.stringify(v));_.sD(h)}_.DO(D)})}),P.readAsDataURL(F),_.xD(L,0);
n=_.eG(L);H.setErrorState((N=H.data)==null?void 0:N.genericImageLoadErrorMessage);n instanceof Error?_.sD(n):_.n5(new _.bD(JSON.stringify(n)));_.DO(L)})}),function(){H.hideContainer=!1;
document.body.style.colorScheme=M});
_.zj(O,2);return((w=H.data)==null?0:w.shouldViewChannelCreationFormForSupex)?O.yield(W.openPicker("profile-picture/art-selection"),5):O.yield(W.openPicker(),5)}if(O.nextAddress!=2)return _.xD(O,0);_.eG(O);H.setErrorState((d=H.data)==null?void 0:d.selectImageErrorMessage);_.DO(O)})};
_.X.pictureChangeSourceToObakeImageSourceType=function(H){switch(H){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.X.logScreenVe=function(){_.DJ(_.k$(),124448)};
_.X.graftServerVe=function(){var H=_.ws(),U,A,M=(U=this.data)==null?void 0:(A=U.loggingDirectives)==null?void 0:A.trackingParams;M&&H&&(this.channelCreationFormVe=_.k$().graftServerVe(M,H),H={visualElement:this.channelCreationFormVe},_.qD().reportShown(H))};
_.X.isNameChanged=function(H){var U;return((U=this.data)==null?void 0:U.name)!==H};
_.X.isHandleChanged=function(H){var U,A=_.p((U=this.data)==null?void 0:U.channelHandleInput,htB);return A&&H?A.handle!==H:!1};
_.X.handleImageUpdatedAction=function(H,U){this.hideContainer=!1;this.previewDataUrl=H;this.encryptedBlobId=U};
_.X.handleImageSelectionErrorAction=function(H){this.hideContainer=!1;this.setErrorState(H)};
_.X.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.X.showContainer=function(){this.hideContainer=!1};
_.X.maybeWipeZeroStepErrorMessage=function(){var H,U=(H=this.data)==null?void 0:H.zeroStepErrorMessageEntityKey,A;U&&((A=this.zeroStepErrorMessageEntity)==null?0:A.value)&&this.ytdReduxBehavior.dispatch(_.hs("stringEntity",U,{key:U,value:""}))};
_.D5.Object.defineProperties(IB.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 H;return((H=this.photoThumbnail)==null?0:H.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 H;return!((H=this.data)==null||!H.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.descriptionInfo}}});
IB.prototype.dataChanged=IB.prototype.dataChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],IB.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],IB.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],IB.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],IB.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],IB.prototype,"errorMessage",void 0);
_.G([_.y(),_.q("design:type",Object)],IB.prototype,"isLoading",void 0);_.G([_.y(),_.q("design:type",String)],IB.prototype,"previewDataUrl",void 0);_.G([_.y(),_.q("design:type",Number)],IB.prototype,"obakeImageSource",void 0);_.G([_.y(),_.q("design:type",Object)],IB.prototype,"hideContainer",void 0);_.G([_.hG("#title-input"),_.q("design:type",Object)],IB.prototype,"nameInput",void 0);_.G([_.hG("#handle-input"),_.q("design:type",Object)],IB.prototype,"handleInput",void 0);
_.G([_.y(),_.q("design:type",Boolean)],IB.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.G([_.y({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.u2F}),_.q("design:type",Object)],IB.prototype,"zeroStepErrorMessageEntity",void 0);_.G([_.a("data","data.isDefaultProfilePhoto","previewDataUrl"),_.q("design:type",Object),_.q("design:paramtypes",[])],IB.prototype,"photoThumbnail",null);
_.G([_.a("data","data.isDefaultProfilePhoto","photoThumbnail"),_.q("design:type",Object),_.q("design:paramtypes",[])],IB.prototype,"userSetPhotoThumbnailUrl",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],IB.prototype,"hideProfilePhotoButtonLayer",null);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],IB.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.G([_.jk("data","zeroStepErrorMessageEntity"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IB.prototype,"dataChanged",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.descriptionInfo","zeroStepErrorMessageEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],IB.prototype,"description",null);_.G([_.dX({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],IB);
_.e(IB,"ytd-channel-creation-dialog-renderer",function(){if(RHB!==void 0)return RHB;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return RHB=H},{mode:1});var mlX;var Q6=function(){var H=_.B.apply(this,arguments)||this;H.isLoading=!1;H.isDisabled=!1;return H};
_.R(Q6,_.B);Q6.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Q6.prototype.updateDisabled=function(){var H;this.isDisabled=this.isLoading||((H=this.handleInput)==null?void 0:H.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
Q6.prototype.onSaveClick=function(){var H=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var U;((U=this.data)==null?void 0:U.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 A;if((A=H.data)==null?0:A.nextEndpoint){var M;H.ytComponentBehavior.resolveCommand((M=H.data)==null?void 0:M.nextEndpoint)}else H.isLoading=
!1,H.closeDialog()},
onServerError:function(){H.isLoading=!1;H.handleInput.validate();var A;H.errorMessage=(A=H.data)==null?void 0:A.errorMessage}}}))}};
Q6.prototype.closeDialog=function(){_.yr(this.hostElement,"yt-close-popup-action",[this.is])};
Q6.prototype.updateDisabled=Q6.prototype.updateDisabled;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Q6.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Q6.prototype,"data",void 0);_.G([_.hG("#handle-input"),_.q("design:type",Object)],Q6.prototype,"handleInput",void 0);_.G([_.Ya("isLoading"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Q6.prototype,"updateDisabled",null);
_.G([_.dX({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Q6);
_.e(Q6,"ytd-channel-handle-edit-dialog-renderer",function(){if(mlX!==void 0)return mlX;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return mlX=H},{mode:1});var gQ$;var V6=function(){return _.B.apply(this,arguments)||this};
_.R(V6,_.B);V6.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],V6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],V6.prototype,"data",void 0);_.G([_.dX({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],V6);
_.e(V6,"ytd-channel-switcher-footer-renderer",function(){if(gQ$!==void 0)return gQ$;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return gQ$=H},{mode:1});var aR5;var xl5;var Hm=function(){return _.B.apply(this,arguments)||this};
_.R(Hm,_.B);Hm.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
Hm.prototype.onIronChange=Hm.prototype.onIronChange;_.G([_.y(),_.q("design:type",Object)],Hm.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!1}),_.q("design:type",Function)],Hm.prototype,"onDontAskAgainChanged",void 0);_.G([_.hG("#checkbox"),_.q("design:type",Object)],Hm.prototype,"checkbox",void 0);_.G([_.Gl("iron-change"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Hm.prototype,"onIronChange",null);
_.G([_.dX({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],Hm);
_.e(Hm,"ytd-identity-prompt-footer-renderer",function(){if(xl5!==void 0)return xl5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return xl5=H},{mode:1});var UO=function(){var H=_.B.apply(this,arguments)||this;H.dontAskAgain=!1;H.showPopup=!1;H.boundDontAskAgainChanged=function(U){H.dontAskAgainChanged(U)};
H.boundOnAccountItemTap=function(U){H.onAccountItemTap(U)};
return H};
_.R(UO,_.B);_.X=UO.prototype;
_.X.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]]"}}}}}};
_.X.ready=function(){var H=this;_.c4(this.hostElement).querySelector("#container").addEventListener("scroll",function(){H.ytRendererBehavior.markDirty()})};
_.X.dontAskAgainChanged=function(H){this.dontAskAgain=H};
_.X.onAccountItemTap=function(H){if(H){var U={};this.dontAskAgain&&(U={dont_ask_again:this.dontAskAgain});_.ff(H,U)}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.X.redirectOnlyAccount=function(H){H.sections&&H.sections.length>0&&(H=_.p(H.sections[0],_.zj3),(H==null?0:H.contents)&&(H==null?void 0:H.contents.length)<=1?(H=_.rD(window.location.href),(H==null?0:H.next)&&_.ZEc(H.next)?_.ff(H.next):_.ff("/")):this.showPopup=!0)};
UO.prototype.dataChanged=UO.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],UO.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!1}),_.q("design:type",Object)],UO.prototype,"dontAskAgain",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],UO.prototype,"showPopup",void 0);_.G([_.y({reflectToAttribute:!1}),_.q("design:type",Object)],UO.prototype,"boundDontAskAgainChanged",void 0);_.G([_.y({reflectToAttribute:!1}),_.q("design:type",Object)],UO.prototype,"boundOnAccountItemTap",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],UO.prototype,"dataChanged",null);
_.G([_.dX({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],UO);
_.e(UO,"ytd-channel-switcher-renderer",function(){if(aR5!==void 0)return aR5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return aR5=H},{mode:1});var zHB;var Ao=function(){return _.B.apply(this,arguments)||this};
_.R(Ao,_.B);_.D5.Object.defineProperties(Ao.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.G([_.y(),_.q("design:type",Object)],Ao.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",Array),_.q("design:paramtypes",[])],Ao.prototype,"steps",null);_.G([_.dX({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Ao);
_.e(Ao,"ytd-channel-transfer-stepper-renderer",function(){if(zHB!==void 0)return zHB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return zHB=H},{mode:1});var C3h;var M0=function(){var H=_.B.apply(this,arguments)||this;H.data=null;H.isError=!1;H.isLoading=!1;return H};
_.R(M0,_.B);_.X=M0.prototype;_.X.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"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.X.computeProfileName=function(H){return H?H.givenNameValue+" "+H.familyNameValue:""};
_.X.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)};
_.X.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)};
M0.prototype.onYtServiceRequestError=M0.prototype.onYtServiceRequestError;M0.prototype.onYtServiceRequestSent=M0.prototype.onYtServiceRequestSent;M0.prototype.dataChanged=M0.prototype.dataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],M0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],M0.prototype,"data",void 0);
_.G([_.y({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.q("design:type",String)],M0.prototype,"profileName",void 0);_.G([_.y(),_.q("design:type",Object)],M0.prototype,"isError",void 0);_.G([_.y(),_.q("design:type",Object)],M0.prototype,"isLoading",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],M0.prototype,"dataChanged",null);
_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],M0.prototype,"onYtServiceRequestSent",null);_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],M0.prototype,"onYtServiceRequestError",null);_.G([_.dX({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],M0);
_.e(M0,"ytd-channel-warm-welcome-cont-renderer",function(){if(C3h!==void 0)return C3h;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return C3h=H},{mode:1});var tj7;var Wm=function(){var H=_.B.apply(this,arguments)||this;H.data=null;return H};
_.R(Wm,_.B);Wm.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Wm.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Wm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Wm.prototype,"data",void 0);_.G([_.dX({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Wm);
_.e(Wm,"ytd-channel-warm-welcome-renderer",function(){if(tj7!==void 0)return tj7;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return tj7=H},{mode:1});var cmy;var wq=function(){return _.B.apply(this,arguments)||this};
_.R(wq,_.B);_.D5.Object.defineProperties(wq.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.authorThumbnail)||{}}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],wq.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],wq.prototype,"thumbnailDetails",null);_.G([_.dX({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],wq);
_.e(wq,"ytd-comment-preview-renderer",function(){if(cmy!==void 0)return cmy;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return cmy=H},{mode:1});var ymX;var Xt=function(){return _.B.apply(this,arguments)||this};
_.R(Xt,_.B);Xt.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.D5.Object.defineProperties(Xt.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.submitButton}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Xt.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Xt.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Xt.prototype,"submitButton",null);_.G([_.dX({is:"ytd-notice-renderer",disableElementRegistration:!0})],Xt);
_.e(Xt,"ytd-notice-renderer",function(){if(ymX!==void 0)return ymX;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return ymX=H},{mode:1});var BZh;var il=function(){return _.B.apply(this,arguments)||this};
_.R(il,_.B);il.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],il.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],il.prototype,"data",void 0);_.G([_.dX({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],il);
_.e(il,"ytd-preview-comment-dialog-content",function(){if(BZh!==void 0)return BZh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return BZh=H},{mode:1});var rm5;var bl=function(){return _.B.apply(this,arguments)||this};
_.R(bl,_.B);bl.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
bl.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],bl.prototype,"data",void 0);_.G([_.dX({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],bl);
_.e(bl,"ytd-preview-comment-dialog-renderer",function(){if(rm5!==void 0)return rm5;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return rm5=H},{mode:1});var eHh;var Dl7=_.S("web_button_rework")&&_.xV("BUTTON_REWORK")||_.S("web_button_rework_with_live"),dq=function(){var H=_.B.apply(this,arguments)||this;H.closeLabel=_.hP("CLOSE");H.selectedAmountIndex=1;H.privacyCheckboxValue=!1;H.useAmsterdamStyle=Dl7;H.amountPlaceholderIndex=-1;return H};
_.R(dq,_.B);_.X=dq.prototype;_.X.onAmountClick=function(H){this.selectedAmountIndex=_.c4(this.hostElement).querySelector("#amounts").indexForElement(H.currentTarget)};
_.X.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.yr(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.X.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.yr(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.yr(this.hostElement,"yt-close-popup-action",[this.is]);var H;(H=_.Ly())==null||H.getPlayerPromise().then(function(U){U.pauseVideo()})}};
_.X.donationCallback=function(H){H.success?(this.hostElement.hasAttribute("live-chat")&&H.response&&H.response.data&&H.response.data.actions&&_.yr(this.hostElement,"yt-live-chat-open-popup",[H.response.data.actions[0]]),_.yr(this.hostElement,"yt-close-popup-action",[this.is]),_.yr(this.hostElement,"yt-live-chat-close-buy-flow")):H.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(H.errorMessageRenderer)};
_.X.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.c4(this.hostElement).querySelector("#custom-amount-input").focus()};
_.X.updateConfirmationDialogTextWithAmount=function(H){var U=this.getConfirmDialogRuns();U&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(U),"text"],this.getFormattedAmount(H))};
_.X.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.X.getAmountPlaceholderIndex=function(H){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=H.findIndex(function(U){return U.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.X.getFormattedAmount=function(H){var U;return(new _.oE(4,((U=this.data)==null?void 0:U.currencyCode)||"")).format(H)};
_.X.isAmountValid=function(H){if(H==="")return!1;H=Number(H)*1E6;var U=this.get("minAmountMicros",this.data),A=this.get("maxAmountMicros",this.data);return U&&H<U||A&&H>A?!1:!0};
_.X.setInputError=function(){this.shouldShowValidationError?_.c4(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.c4(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.X.setInitialCheckboxValue=function(){var H;this.privacyCheckboxValue=!((H=this.data)==null||!H.privacyCheckboxInitialState)};
_.X.updateCustomAmountInputFromBinding=function(H){this.customAmountInput=H.detail.value};
_.X.updatePrivacyCheckboxValueFromBinding=function(H){this.privacyCheckboxValue=H.detail.value};
_.D5.Object.defineProperties(dq.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var H=this,U,A;return((U=this.data)==null?void 0:(A=U.suggestedAmounts)==null?void 0:A.map(function(M,W){return{buttonRenderer:{style:H.selectedAmountIndex===W?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:M.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 H;return!((H=this.data)==null||!H.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 H=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(H&&this.amountMicros!==null)return Object.assign({},H,{ypcGetCartEndpoint:Object.assign({},H.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 H=this.get("confirmLargeAmount",this.data);if(H&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),H}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var H=this.get("donateButton.buttonRenderer",this.data);if(H)return Object.assign({},H,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
dq.prototype.setInitialCheckboxValue=dq.prototype.setInitialCheckboxValue;dq.prototype.setInputError=dq.prototype.setInputError;dq.prototype.setFocusOnCustomAmountInput=dq.prototype.setFocusOnCustomAmountInput;_.G([_.g(zmh),_.q("design:type",Object)],dq.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],dq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],dq.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],dq.prototype,"closeLabel",void 0);_.G([_.y(),_.q("design:type",Object)],dq.prototype,"selectedAmountIndex",void 0);_.G([_.y(),_.q("design:type",String)],dq.prototype,"customAmountInput",void 0);_.G([_.y(),_.q("design:type",Object)],dq.prototype,"privacyCheckboxValue",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],dq.prototype,"useAmsterdamStyle",void 0);_.G([_.Ya("customAmount"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dq.prototype,"setFocusOnCustomAmountInput",null);_.G([_.a("data","selectedAmountIndex"),_.q("design:type",Array),_.q("design:paramtypes",[])],dq.prototype,"suggestedAmountButtons",null);
_.G([_.a("data","selectedAmountIndex"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],dq.prototype,"isCustomAmountSelected",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],dq.prototype,"showPrivacyCheckbox",null);_.G([_.a("data","selectedAmountIndex","customAmount"),_.q("design:type",Object),_.q("design:paramtypes",[])],dq.prototype,"amountMicros",null);
_.G([_.a("isCustomAmountSelected","customAmountInput"),_.q("design:type",Object),_.q("design:paramtypes",[])],dq.prototype,"customAmount",null);_.G([_.a("customAmount"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],dq.prototype,"shouldShowValidationError",null);_.G([_.a("customAmount"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],dq.prototype,"isDonateButtonEnabled",null);
_.G([_.a("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.q("design:type",Object),_.q("design:paramtypes",[])],dq.prototype,"donateCommand",null);_.G([_.a("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.q("design:type",Object),_.q("design:paramtypes",[])],dq.prototype,"donateCommandWithConfirmation",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],dq.prototype,"largeDonationThreshold",null);
_.G([_.a("customAmount","donateCommand","amountMicros"),_.q("design:type",Object),_.q("design:paramtypes",[])],dq.prototype,"confirmLargeAmountCommand",null);_.G([_.a("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.q("design:type",Object),_.q("design:paramtypes",[])],dq.prototype,"donateButtonRenderer",null);_.G([_.Ya("shouldShowValidationError"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dq.prototype,"setInputError",null);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dq.prototype,"setInitialCheckboxValue",null);_.G([_.dX({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],dq);
_.e(dq,"ytd-donation-amount-picker-renderer",function(){if(eHh!==void 0)return eHh;var H=document.createElement("template");_.E(H,'\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" aria-label="[[getSimpleString(data.pickerTitle)]]" 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="" label="[[closeLabel]]" 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"> </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">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</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">[[getSimpleString(data.campaignDescription)]]</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">[[getSimpleString(data.campaignDescription)]]</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"> </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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return eHh=H},{mode:1});var $lp;var lRY=function(){return _.B.apply(this,arguments)||this};
_.R(lRY,_.B);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],lRY.prototype,"ytComponentBehavior",void 0);_.G([_.y({}),_.q("design:type",Object)],lRY.prototype,"data",void 0);_.G([_.dX({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],lRY);
_.e(lRY,"ytd-donation-post-transaction-content",function(){if($lp!==void 0)return $lp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return $lp=H},{mode:1});var GcY;var OO=function(){return _.B.apply(this,arguments)||this};
_.R(OO,_.B);OO.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],OO.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.G([_.y({}),_.q("design:type",Object)],OO.prototype,"data",void 0);_.G([_.dX({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],OO);
_.e(OO,"ytd-donation-post-transaction-renderer",function(){if(GcY!==void 0)return GcY;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return GcY=H},{mode:1});var Yv8;var qvY;var ul=function(){return _.B.apply(this,arguments)||this};
_.R(ul,_.B);ul.prototype.computeIsStreamingProvider=function(H){return!!H.isStreamingShelf};
ul.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ul.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ul.prototype,"data",void 0);_.G([_.y({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],ul.prototype,"isStreamingProvider",void 0);
_.G([_.dX({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],ul);
_.e(ul,"ytd-media-provider-renderer",function(){if(qvY!==void 0)return qvY;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return qvY=H},{mode:1});var hH5;var Zr=function(){return _.B.apply(this,arguments)||this};
_.R(Zr,_.B);Zr.prototype.observeLightsourcePalette=function(){var H,U=(H=this.data)==null?void 0:H.vibrantsourceColorPaletteData;U&&_.jr(this.hostElement,U)};
Zr.prototype.observeLightsourcePalette=Zr.prototype.observeLightsourcePalette;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Zr.prototype,"data",void 0);
_.G([_.Ya("data.vibrantsourceColorPaletteData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Zr.prototype,"observeLightsourcePalette",null);_.G([_.dX({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Zr);
_.e(Zr,"ytd-streaming-pop-up-dialog",function(){if(hH5!==void 0)return hH5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return hH5=H},{mode:1});var f7=function(){return _.B.apply(this,arguments)||this};
_.R(f7,_.B);f7.prototype.onPopupOpened_=function(){var H;((H=this.data)==null?0:H.serviceEndpoint)&&_.lx().resolve(_.YV).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
f7.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
f7.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"}}}}};
f7.prototype.onPopupOpened_=f7.prototype.onPopupOpened_;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.RG),_.q("design:type",Object)],f7.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],f7.prototype,"data",void 0);
_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],f7.prototype,"onPopupOpened_",null);_.G([_.dX({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],f7);
_.e(f7,"ytd-brandconnect-popup-renderer",function(){if(Yv8!==void 0)return Yv8;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Yv8=H},{mode:1});var kch;var Jo=function(){return _.B.apply(this,arguments)||this};
_.R(Jo,_.B);_.X=Jo.prototype;_.X.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(){for(var H=0;H<this.getOptionRenderers().length;H++)this.notifyPath("data.options."+H+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+H+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.X.updateSubmitButton=function(H){this.set("data.submitButton.buttonRenderer.isDisabled",!H)};
_.X.computeAlt=function(H){return _.Sp(H)};
_.X.onDismissTap=function(){_.yr(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.lx().resolve(_.YV).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.X.getOptionRenderers=function(H){return(H=H||this.data)&&H.options?H.options.reduce(function(U,A){A.checkboxSurveyOptionRenderer&&U.push(A.checkboxSurveyOptionRenderer);return U},[]):[]};
_.X.onOptionChange=function(H){var U=this,A=!1;if(H.detail.checked)for(var M=this.getOptionRenderers().find(function(O){return O.value===H.detail.value}),W=this.getOptionRenderers(),w=0;w<W.length;w++){var d=W[w];
this.notifyPath("data.options."+w+".checkboxSurveyOptionRenderer.checked");d.checked&&((M==null?0:M.isExclusiveOption)?!d.isExclusiveOption:d.isExclusiveOption)?this.set("data.options."+w+".checkboxSurveyOptionRenderer.checked",!1):d.checked&&(A=!0)}else A=this.getOptionRenderers().some(function(O,f){U.notifyPath("data.options."+f+".checkboxSurveyOptionRenderer.checked");return O.checked});
this.updateSubmitButton(A)};
_.X.onSubmitTap=function(){var H=this.getOptionRenderers().filter(function(w){return w.checked});
if(H.length!==0){var U=H.map(function(w){return w.responseEndpoint});
H=[];for(var A=1;A<U.length;A++){var M=void 0,W=(M=_.p(U[A],_.i$))==null?void 0:M.feedbackToken;W&&H.push(W)}U=[U[0]];H.length&&U.push({extra_feedback_tokens:H});_.rs(this.hostElement,U);_.yr(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);H=this.data&&this.data.submitActions||[];if(_.S("kevlar_command_handler_migration_killswitch"))_.eb(this.hostElement,H,this.hostElement);else for(H=_.b(H),U=H.next();!U.done;U=H.next())this.ytComponentBehavior.resolveCommand(U.value)}};
Jo.prototype.onOptionChange=Jo.prototype.onOptionChange;Jo.prototype.dataChanged=Jo.prototype.dataChanged;_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],Jo.prototype,"ytEventForwardingBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Jo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Jo.prototype,"ytComponentBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.G([_.g(dQj),_.q("design:type",Object)],Jo.prototype,"ytdHatsSurveyBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Jo.prototype,"data",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Jo.prototype,"dataChanged",null);
_.G([_.Gl("ytd-checkbox-survey-option-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Jo.prototype,"onOptionChange",null);_.G([_.dX({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Jo);
_.e(Jo,"ytd-checkbox-survey-renderer",function(){if(kch!==void 0)return kch;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return kch=H},{mode:1});var vQY;var TZp;var K7=function(){return _.B.apply(this,arguments)||this};
_.R(K7,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],K7.prototype,"ytRendererBehavior",void 0);_.G([_.g(ir7),_.q("design:type",Object)],K7.prototype,"ytdDismissalReasonBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],K7.prototype,"data",void 0);_.G([_.dX({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],K7);
_.e(K7,"ytd-dismissal-reason-text-renderer",function(){if(TZp!==void 0)return TZp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return TZp=H},{mode:1});var jMh;var oF=function(){return _.B.apply(this,arguments)||this};
_.R(oF,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);_.G([_.g(ir7),_.q("design:type",Object)],oF.prototype,"ytdDismissalReasonBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],oF.prototype,"data",void 0);_.G([_.dX({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],oF);
_.e(oF,"ytd-dismissal-reason-video-renderer",function(){if(jMh!==void 0)return jMh;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return jMh=H},{mode:1});var Ft=function(){return _.B.apply(this,arguments)||this};
_.R(Ft,_.B);_.X=Ft.prototype;_.X.created=function(){this.selectedFeedbackTokens=new mp};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.X.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.X.onDismissalReasonSelected=function(H,U){_.cg(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(U);this.hasReasonsSelected=!0};
_.X.onDismissalReasonDeselected=function(H,U){_.cg(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(U);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.X.onCancelTap=function(){_.yr(this.hostElement,"yt-close-popup-action")};
_.X.onSubmitTap=function(){var H=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(H={feedback_tokens:H},_.lx().resolve(_.YV).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},H,{element:this.hostElement})}));_.yr(this.hostElement,"yt-close-popup-action")};
Ft.prototype.onDismissalReasonDeselected=Ft.prototype.onDismissalReasonDeselected;Ft.prototype.onDismissalReasonSelected=Ft.prototype.onDismissalReasonSelected;Ft.prototype.dataChanged=Ft.prototype.dataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Ft.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ft.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ft.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Boolean)],Ft.prototype,"hasReasonsSelected",void 0);_.G([_.y(),_.q("design:type",mp)],Ft.prototype,"selectedFeedbackTokens",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ft.prototype,"dataChanged",null);_.G([_.Gl("yt-dismissal-reason-selected"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,String]),_.q("design:returntype")],Ft.prototype,"onDismissalReasonSelected",null);
_.G([_.Gl("yt-dismissal-reason-deselected"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,String]),_.q("design:returntype")],Ft.prototype,"onDismissalReasonDeselected",null);_.G([_.dX({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Ft);
_.e(Ft,"ytd-dismissal-follow-up-renderer",function(){if(vQY!==void 0)return vQY;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return vQY=H},{mode:1});var IRk;var Pm=function(){return _.B.apply(this,arguments)||this};
_.R(Pm,_.B);_.X=Pm.prototype;_.X.onCheckedChange=function(){this.multiselect||_.cg(this.hostElement,"yt-feedback-single-select-changed");_.c4(this.hostElement).querySelector("#freeform").focus();_.cg(this.hostElement,"yt-refit")};
_.X.showTextBox=function(H,U){return H&&U};
_.X.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))};
_.X.updateDataCheckedFromBinding=function(H){this.set("data.checked",H.detail.value)};
_.X.updateDataResultTextFromBinding=function(H){this.set("data.resultText",H.detail.value)};
Pm.prototype.dataChanged=Pm.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Pm.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],Pm.prototype,"multiselect",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Pm.prototype,"dataChanged",null);
_.G([_.dX({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Pm);
_.e(Pm,"ytd-feedback-option-renderer",function(){if(IRk!==void 0)return IRk;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return IRk=H},{mode:1});var QM7;var sO=function(){return _.B.apply(this,arguments)||this};
_.R(sO,_.B);sO.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
sO.prototype.onSingleSelectCheckedChanged=function(H){H=_.Rr(H);for(var U=0;U<this.data.options.length;U++)if(H.data!==_.p(this.data.options[U],SGk)){var A="data.options."+U+".feedbackOptionRenderer.checked";this.notifyPath(A);this.set(A,!1)}};
sO.prototype.onSingleSelectCheckedChanged=sO.prototype.onSingleSelectCheckedChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],sO.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],sO.prototype,"data",void 0);
_.G([_.Gl("yt-feedback-single-select-changed"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],sO.prototype,"onSingleSelectCheckedChanged",null);_.G([_.dX({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],sO);
_.e(sO,"ytd-feedback-question-renderer",function(){if(QM7!==void 0)return QM7;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return QM7=H},{mode:1});var Vj8;var n7=function(){return _.B.apply(this,arguments)||this};
_.R(n7,_.B);n7.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
n7.prototype.getSelectedFeedbackResults=function(){for(var H={},U=0;U<this.data.questions.length;U++)for(var A=_.p(this.data.questions[U],NL8),M=0;M<A.options.length;M++){var W=_.p(A.options[M],SGk);W&&W.checked&&(H[W.optionKey]=W.resultText)}return H};
n7.prototype.onKeyUp=function(){var H=this;_.av(_.Fl,function(){_.cg(H.hostElement,"yt-refit")});
_.Fl.start()};
n7.prototype.submitSurvey=function(){var H=this.getSelectedFeedbackResults();Object.keys(H).length>0&&this.data.submitFeedbackEndpoint&&(H={survey_results:H,is_feedback_token_unencrypted:!0},_.lx().resolve(_.YV).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},H,{element:this.hostElement})}))};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],n7.prototype,"data",void 0);_.G([_.dX({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],n7);
_.e(n7,"ytd-feedback-survey-renderer",function(){if(Vj8!==void 0)return Vj8;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Vj8=H},{mode:1});var HM8;var U95;var N0=function(){return _.B.apply(this,arguments)||this};
_.R(N0,_.B);N0.prototype.computeAlt=function(H){return _.Sp(H)};
N0.prototype.submitResponse=function(){var H,U;(H=this.data)!=null&&H.feedbackToken&&((U=this.data)==null?void 0:U.nextStageIndex)!==void 0&&(_.Bg(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Bg(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
N0.prototype.onClick=function(){this.submitResponse()};
N0.prototype.onClick=N0.prototype.onClick;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],N0.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],N0.prototype,"vertical",void 0);_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],N0.prototype,"onClick",null);
_.G([_.dX({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],N0);
_.e(N0,"ytd-single-select-answer-option-renderer",function(){if(U95!==void 0)return U95;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return U95=H},{mode:1});var AVy;var ST=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return H};
_.R(ST,_.B);ST.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
ST.prototype.dataChanged=function(){var H,U;this.vertical=((U=(H=this.data)==null?void 0:H.answerOrientation)!=null?U:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
ST.prototype.submitFeedback=function(H){var U;((U=this.data)==null?0:U.responseEndpoint)&&H&&_.rs(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[H]}])};
ST.prototype.dataChanged=ST.prototype.dataChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],ST.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],ST.prototype,"eventForwardingBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ST.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],ST.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],ST.prototype,"vertical",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ST.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],ST);
_.e(ST,"ytd-single-select-question-renderer",function(){if(AVy!==void 0)return AVy;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return AVy=H},{mode:1});var p7=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return H};
_.R(p7,_.B);_.X=p7.prototype;_.X.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"}}}};
_.X.dataChanged=function(){this.jumpToStage(0)};
_.X.jumpToStage=function(H){var U,A;if((U=this.data)==null?0:(A=U.stages)==null?0:A[H])this.currentStage=this.data.stages[H],this.refitAfterRender()};
_.X.computeAlt=function(H){return _.Sp(H)};
_.X.computeSimpleMessage=function(H){var U;return(U=_.p(H,RA5))==null?void 0:U.messageText};
_.X.computeHideDismiss=function(H){var U;return(U=_.p(H,Sdh))==null?void 0:U.hideParentDismissButton};
_.X.onDismissTap=function(){_.yr(this.hostElement,"yt-close-popup-action");_.p(this.currentStage,RA5)||this.data.dismissalEndpoint&&_.lx().resolve(_.YV).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.X.refitAfterRender=function(){var H=this;_.rV(this,function(){_.cg(H.hostElement,"yt-refit")})};
p7.prototype.dataChanged=p7.prototype.dataChanged;_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],p7.prototype,"eventForwardingBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],p7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],p7.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.g(dQj),_.q("design:type",Object)],p7.prototype,"ytdHatsSurveyBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],p7.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],p7.prototype,"currentStage",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],p7.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],p7);
_.e(p7,"ytd-multi-stage-survey-renderer",function(){if(HM8!==void 0)return HM8;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return HM8=H},{mode:1});var M1y;var L7=function(){return _.B.apply(this,arguments)||this};
_.R(L7,_.B);L7.prototype.computeAlt=function(H){return _.Sp(H)};
L7.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.lx().resolve(_.YV).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.yr(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(rMk(!1)))};
L7.prototype.onTap=function(){this.vertical&&this.submitResponse()};
L7.prototype.onTap=L7.prototype.onTap;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],L7.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],L7.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],L7.prototype,"vertical",void 0);
_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],L7.prototype,"onTap",null);_.G([_.dX({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],L7);
_.e(L7,"ytd-single-option-survey-option-renderer",function(){if(M1y!==void 0)return M1y;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return M1y=H},{mode:1});var WZ5;var RF=function(){return _.B.apply(this,arguments)||this};
_.R(RF,_.B);_.X=RF.prototype;_.X.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(){var H,U;this.vertical=(((H=this.data)==null?void 0:(U=H.surveyOrientation)==null?void 0:U.type)||"HORIZONTAL")==="VERTICAL"};
_.X.computeAlt=function(H){return _.Sp(H)};
_.X.onDismissTap=function(){_.yr(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.lx().resolve(_.YV).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(rMk(!1))};
RF.prototype.dataChanged=RF.prototype.dataChanged;_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],RF.prototype,"eventForwardingBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],RF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(dQj),_.q("design:type",Object)],RF.prototype,"ytdHatsSurveyBehavior",void 0);
_.G([_.g(_.dF),_.q("design:type",Object)],RF.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],RF.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],RF.prototype,"vertical",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],RF.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],RF);
_.e(RF,"ytd-single-option-survey-renderer",function(){if(WZ5!==void 0)return WZ5;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return WZ5=H},{mode:1});var w_5;var EO=function(){return _.B.apply(this,arguments)||this};
_.R(EO,_.B);EO.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
EO.prototype.onDismissTap=function(){_.yr(this.hostElement,"yt-close-popup-action")};
EO.prototype.onNavigate=function(){_.yr(this.hostElement,"yt-close-popup-action")};
EO.prototype.onNavigate=EO.prototype.onNavigate;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],EO.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],EO.prototype,"ytEventForwardingBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],EO.prototype,"data",void 0);_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],EO.prototype,"onNavigate",null);
_.G([_.dX({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],EO);
_.e(EO,"ytd-survey-follow-up-renderer",function(){if(w_5!==void 0)return w_5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return w_5=H},{mode:1});var X_5;var iMm;var bMh;var m0=function(){var H=_.B.apply(this,arguments)||this;H.polymer2="Element"in Polymer;return H};
_.R(m0,_.B);_.X=m0.prototype;_.X.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.X.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.X.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.X.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("minutes-changed",this.minutes))};
_.X.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("seconds-changed",this.seconds))};
_.X.updateMinutesFromBinding=function(H){this.minutes=H.detail.value};
_.X.updateSecondsFromBinding=function(H){this.seconds=H.detail.value};
m0.prototype.secondsChangedForBinding=m0.prototype.secondsChangedForBinding;m0.prototype.minutesChangedForBinding=m0.prototype.minutesChangedForBinding;m0.prototype.secondsChanged=m0.prototype.secondsChanged;_.G([_.y(),_.q("design:type",String)],m0.prototype,"minutes",void 0);_.G([_.y(),_.q("design:type",String)],m0.prototype,"seconds",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],m0.prototype,"polymer2",void 0);
_.G([_.hG("#seconds"),_.q("design:type",Object)],m0.prototype,"secondsEl",void 0);_.G([_.Ya("seconds"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],m0.prototype,"secondsChanged",null);_.G([_.Ya("minutes"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],m0.prototype,"minutesChangedForBinding",null);
_.G([_.Ya("seconds"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],m0.prototype,"secondsChangedForBinding",null);_.G([_.b0({is:"yt-timestamp-input",disableElementRegistration:!0})],m0);
_.e(m0,"yt-timestamp-input",function(){if(bMh===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;iMm===void 0&&(iMm=document.createElement("template"));var M=iMm;A.call(U,M.content.cloneNode(!0),H.content.firstChild);bMh=H}H=bMh;return H},{mode:2});var gq=function(){return _.B.apply(this,arguments)||this};
_.R(gq,_.B);_.X=gq.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$22487_scroller.dialogElement=this.hostElement.parentNode};
_.X.dataChanged=function(){var H=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.RL().getPlayerPromise().then(function(U){U=U.getCurrentTime();H.minutes=Math.floor(U/60).toString();H.seconds=(Math.floor(U)%60).toString()})};
_.X.onTapSubmit=function(H){H.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(H={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(H.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(H.minutes=this.minutes,H.seconds=this.seconds),_.lx().resolve(_.YV).resolveCommand(this.serviceEndpoint,{form:Object.assign({},H,{element:this.hostElement})}))};
_.X.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.X.onYtServiceRequestCompleted=function(H,U){U=U.actions;if(Array.isArray(U))for(var A=0,M=U.length;A<M;A++)_.p(U[A],_.jQ)&&(H.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(U[A]))};
_.X.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.X.toggleSubmitButton=function(H){this.set("submitButton.isDisabled",!H)};
_.X.handleInput=function(){var H=this.issueType,U=this.affiliation,A=this.minutes,M=this.seconds;A=!this.showTimestamp||!!A&&!!M;this.toggleSubmitButton(!!this.descriptionText&&!!H&&!!U&&A)};
_.X.computeServiceEndpoint=function(H){return this.get("submitButton.buttonRenderer.serviceEndpoint",H)};
_.X.computeSubmitButton=function(H){(H=this.get("submitButton.buttonRenderer",H))&&(H=Object.assign({},H,{serviceEndpoint:void 0}));return H};
_.X.computeShowTimestamp=function(H){return!!H};
_.X.onValueChangedForIssueType=function(H){this.issueType=H.detail.value};
_.X.onValueChangedForAffiliation=function(H){this.affiliation=H.detail.value};
_.X.updateDescriptionTextFromBinding=function(H){this.descriptionText=H.detail.value};
_.X.updateFullNameTextFromBinding=function(H){this.fullNameText=H.detail.value};
_.X.updateMinutesFromBinding=function(H){this.minutes=H.detail.value};
_.X.updateSecondsFromBinding=function(H){this.seconds=H.detail.value};
gq.prototype.handleInput=gq.prototype.handleInput;gq.prototype.onYtServiceRequestError=gq.prototype.onYtServiceRequestError;gq.prototype.onYtServiceRequestCompleted=gq.prototype.onYtServiceRequestCompleted;gq.prototype.onYtServiceRequestSent=gq.prototype.onYtServiceRequestSent;gq.prototype.dataChanged=gq.prototype.dataChanged;_.G([_.g(_.e4.YtOpenPopupBehavior),_.q("design:type",Object)],gq.prototype,"ytOpenPopupBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],gq.prototype,"ytRendererBehavior",void 0);_.G([_.hG("#scroller"),_.q("design:type",Object)],gq.prototype,"JSC$22487_scroller",void 0);_.G([_.hG("#description"),_.q("design:type",HTMLInputElement)],gq.prototype,"description",void 0);_.G([_.hG("#full-name"),_.q("design:type",Object)],gq.prototype,"fullName",void 0);_.G([_.y(),_.q("design:type",Object)],gq.prototype,"data",void 0);
_.G([_.y({computed:"computeShowTimestamp(data.timestampLabel)"}),_.q("design:type",Boolean)],gq.prototype,"showTimestamp",void 0);_.G([_.y({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.q("design:type",Object)],gq.prototype,"serviceEndpoint",void 0);_.G([_.y({computed:"computeSubmitButton(data)"}),_.q("design:type",Object)],gq.prototype,"submitButton",void 0);_.G([_.y(),_.q("design:type",String)],gq.prototype,"descriptionText",void 0);
_.G([_.y(),_.q("design:type",Number)],gq.prototype,"issueType",void 0);_.G([_.y(),_.q("design:type",Number)],gq.prototype,"affiliation",void 0);_.G([_.y(),_.q("design:type",String)],gq.prototype,"fullNameText",void 0);_.G([_.y(),_.q("design:type",String)],gq.prototype,"minutes",void 0);_.G([_.y(),_.q("design:type",String)],gq.prototype,"seconds",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gq.prototype,"dataChanged",null);
_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],gq.prototype,"onYtServiceRequestSent",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],gq.prototype,"onYtServiceRequestCompleted",null);
_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],gq.prototype,"onYtServiceRequestError",null);_.G([_.Ya("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gq.prototype,"handleInput",null);_.G([_.dX({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],gq);
_.e(gq,"ytd-legal-report-details-form-renderer",function(){if(X_5!==void 0)return X_5;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return X_5=H},{mode:1});var d98;var aF=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return H};
_.R(aF,_.B);aF.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
aF.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var H=this.formRenderer.getForm();H&&this.data.submitEndpoint&&(_.lx().resolve(_.YV).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},H,{element:this.hostElement})}),_.yr(this.hostElement,"yt-close-popup-action"))}};
aF.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.yr(this.hostElement,"yt-close-popup-action"))};
aF.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
aF.prototype.onPopupClosed=aF.prototype.onPopupClosed;_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],aF.prototype,"ytEventForwardingBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],aF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],aF.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);
_.G([_.hG("yt-form-renderer"),_.q("design:type",Object)],aF.prototype,"formRenderer",void 0);_.G([_.y(),_.q("design:type",Object)],aF.prototype,"data",void 0);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aF.prototype,"onPopupClosed",null);_.G([_.dX({is:"ytd-form-popup-content",disableElementRegistration:!0})],aF);
_.e(aF,"ytd-form-popup-content",function(){if(d98!==void 0)return d98;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return d98=H},{mode:1});var OMp;var xw=function(){return _.B.apply(this,arguments)||this};
_.R(xw,_.B);xw.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
xw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
xw.prototype.onPopupOpened=function(){_.cg(this.hostElement,"yt-invalidate-popup-tabbables")};
xw.prototype.onYtServiceRequestCompleted=function(H,U){U.data&&U.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.cg(this.hostElement,"yt-invalidate-popup-tabbables"))};
xw.prototype.onYtServiceRequestCompleted=xw.prototype.onYtServiceRequestCompleted;xw.prototype.onPopupOpened=xw.prototype.onPopupOpened;_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],xw.prototype,"ytEventForwardingBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],xw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],xw.prototype,"ytRendererBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],xw.prototype,"data",void 0);_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xw.prototype,"onPopupOpened",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],xw.prototype,"onYtServiceRequestCompleted",null);_.G([_.dX({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],xw);
_.e(xw,"ytd-form-popup-renderer",function(){if(OMp!==void 0)return OMp;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return OMp=H},{mode:1});var uH5;var zW=function(){var H=_.B.apply(this,arguments)||this;H.isLoading=!1;return H};
_.R(zW,_.B);_.X=zW.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");wxj(this.hostElement)};
_.X.onYtServiceRequestSent=function(){this.isLoading=!0};
_.X.onYtServiceRequestCompleted=function(){_.yr(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.X.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.eb(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.X.closePopupHandler=function(){this.fireOnCloseActions()};
_.X.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var H=this.get("data.headerImage.thumbnails");H&&(H=_.Rv(H,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+H+")")}};
_.X.onYtNavigate=function(H){(H=_.Rr(H))&&H.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
zW.prototype.onYtNavigate=zW.prototype.onYtNavigate;zW.prototype.onHeaderImageChanged=zW.prototype.onHeaderImageChanged;zW.prototype.closePopupHandler=zW.prototype.closePopupHandler;zW.prototype.onYtServiceRequestCompleted=zW.prototype.onYtServiceRequestCompleted;zW.prototype.onYtServiceRequestSent=zW.prototype.onYtServiceRequestSent;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],zW.prototype,"ytEventForwardingBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],zW.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],zW.prototype,"isLoading",void 0);_.G([_.hG("#header"),_.q("design:type",HTMLDivElement)],zW.prototype,"header",void 0);_.G([_.hG("#confirm-button"),_.q("design:type",_.QJ)],zW.prototype,"confirmButton",void 0);
_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],zW.prototype,"onYtServiceRequestSent",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],zW.prototype,"onYtServiceRequestCompleted",null);
_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],zW.prototype,"closePopupHandler",null);_.G([_.Ya("data.headerImage"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],zW.prototype,"onHeaderImageChanged",null);_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],zW.prototype,"onYtNavigate",null);
_.G([_.dX({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],zW);
_.e(zW,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(uH5!==void 0)return uH5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return uH5=H},{mode:1});var ZMp;var C7=function(){var H=_.B.apply(this,arguments)||this;H.isLoading=!1;return H};
_.R(C7,_.B);_.X=C7.prototype;_.X.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"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);wxj(this.hostElement)};
_.X.onYtServiceRequestCompleted=function(){_.yr(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.X.onYtServiceRequestError=function(H){_.oR(this.hostElement,H.detail.error.message)};
_.X.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.X.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.yr(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.X.onDataChanged=function(){this.isLoading=!1;var H=this.get("data.headerImage.thumbnails");H&&(H=_.Rv(H,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+H+")");H=_.XK();var U=_.ws(),A=this.get("data.trackingParams");A&&U&&H&&_.ou(H,U,_.IS(A))};
_.D5.Object.defineProperties(C7.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
C7.prototype.onDataChanged=C7.prototype.onDataChanged;C7.prototype.onDomChange=C7.prototype.onDomChange;C7.prototype.onYtServiceRequestError=C7.prototype.onYtServiceRequestError;C7.prototype.onYtServiceRequestCompleted=C7.prototype.onYtServiceRequestCompleted;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],C7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],C7.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],C7.prototype,"isLoading",void 0);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],C7.prototype,"hasDescription",null);_.G([_.hG("tp-yt-paper-dialog-scrollable"),_.q("design:type",Object)],C7.prototype,"scrollable",void 0);_.G([_.hG("#header"),_.q("design:type",HTMLElement)],C7.prototype,"header",void 0);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],C7.prototype,"onYtServiceRequestCompleted",null);_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],C7.prototype,"onYtServiceRequestError",null);
_.G([_.Gl("dom-change"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],C7.prototype,"onDomChange",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],C7.prototype,"onDataChanged",null);_.G([_.dX({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],C7);
_.e(C7,"ytd-gaming-account-link-setting-renderer",function(){if(ZMp!==void 0)return ZMp;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return ZMp=H},{mode:1});var fSk;var JV$;var to=function(){var H=_.B.apply(this,arguments)||this;H.isHeader=!1;H.getEndpointForm=function(){return C$$(H.data)};
return H};
_.R(to,_.B);_.X=to.prototype;_.X.triggerHintActions=function(){var H=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var U=_.Bg(H.hostElement,"yt-get-opened-popups-action");!(U&&U.length===1?U[0]:[]).some(function(A){A=A.openPopupAction.popupType;return A==="SURVEY"||A==="MEALBAR"||A==="HINT"})&&H.data.hintActions&&H.guideOpened&&(_.eb(H.hostElement,H.data.hintActions,H.hostElement),H.data.hintActions=void 0)})};
_.X.getBadgeIconType=function(H){return H&&H.liveBroadcasting?"live":null};
_.X.onDown=function(){this.interaction.triggerDown()};
_.X.onUp=function(){this.interaction.triggerUp()};
_.X.onTap=function(H){if(this.data.serviceEndpoint){var U;_.S("shorts_controller_retrieve_seedless_sequence_v2")&&((U=_.p(this.data.serviceEndpoint,_.kO))==null?void 0:U.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):zo7(this.data.serviceEndpoint,this);H.preventDefault()}else this.data.navigationEndpoint&&!_.ny(_.Lf(H),this.hostElement,["A".toString()])&&_.cg(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.X.computeActive=function(H,U){if(!H)return!1;var A=H.navigationEndpoint;H=H.serviceEndpoint;if(!A&&!H||!U)return!1;if(A){H=(H=_.lE(U))&&["subscriptions","filteredsubscriptions"].includes(H);if(_.p(A,_.Gv)&&_.p(U,_.Gv)&&!H){var M=_.p(A,_.Gv).browseId;U=_.p(U,_.Gv).browseId;return M!==void 0&&U!==void 0&&(M===U||M==="VLWL"&&U==="FEwatch_later"||M==="FEwatch_later"&&U==="VLWL")}var W;A=(W=_.p(A.commandMetadata,_.Y2))==null?void 0:W.url;U=(M=_.p(U.commandMetadata,_.Y2))==null?void 0:M.url;return!(!A||
!U||A!==U&&A!==_.DU(U))}return this.isActiveShortsTab(H,U)};
_.X.isActiveShortsTab=function(H,U){U=!!_.p(U,_.kO)||!!_.p(U,_.O7);return(!!_.p(H,_.kO)||!!_.p(H,_.O7))&&U};
_.X.computeIsPrimary=function(H){return!!H};
_.D5.Object.defineProperties(to.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 H=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&H)return H}}});
to.prototype.onTap=to.prototype.onTap;to.prototype.onUp=to.prototype.onUp;to.prototype.onDown=to.prototype.onDown;to.prototype.triggerHintActions=to.prototype.triggerHintActions;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],to.prototype,"componentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],to.prototype,"rendererBehavior",void 0);_.G([_.g(_.LJ.YtTaskEmitterBehavior),_.q("design:type",Object)],to.prototype,"taskEmitterBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],to.prototype,"activeEndpoint",void 0);_.G([_.y(),_.q("design:type",Object)],to.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],to.prototype,"guideOpened",void 0);_.G([_.y(),_.q("design:type",String)],to.prototype,"type",void 0);_.G([_.hG("yt-interaction"),_.q("design:type",Object)],to.prototype,"interaction",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],to.prototype,"isHeader",void 0);
_.G([_.y({reflectToAttribute:!0}),_.a("data","activeEndpoint"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],to.prototype,"active",null);_.G([_.y({reflectToAttribute:!0}),_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],to.prototype,"isPrimary",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.count","data.presentationStyle","data.badges.*"),_.q("design:type",String),_.q("design:paramtypes",[])],to.prototype,"lineEndStyle",null);
_.G([_.a("lineEndStyle"),_.q("design:type",Object),_.q("design:paramtypes",[])],to.prototype,"ariaLabel",null);_.G([_.Ya("data.hintActions","guideOpened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],to.prototype,"triggerHintActions",null);_.G([_.Gl("down"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],to.prototype,"onDown",null);
_.G([_.Gl("up"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],to.prototype,"onUp",null);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],to.prototype,"onTap",null);_.G([_.dX({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],to);
_.e(to,"ytd-guide-entry-renderer",function(){if(JV$!==void 0)return JV$;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return JV$=H},{mode:1});var cm=function(){var H=_.B.apply(this,arguments)||this;H.userToggled=!1;return H};
_.R(cm,_.B);_.X=cm.prototype;_.X.getItemsPath=function(){return"data.expandableItems"};
_.X.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.X.onExpanderItemTapped=function(H){var U=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.S("kevlar_guide_expandable_items_killswitch")&&_.rV(this,function(){_.cW(U.expandableItems)});
H.preventDefault()};
_.X.onCollapserItemTapped=function(H){var U=this;this._setExpanded(!1);this.userToggled=!0;H.preventDefault();this.expandableItems&&!_.S("kevlar_guide_collapsible_items_killswitch")&&_.rV(this,function(){_.tk(U.hostElement)})};
_.X.observeActiveEndpoint=function(){for(var H=this.activeEndpoint,U=this.data,A=this.expandableItems.children,M=0,W=A.length;M<W;M++)A[M].activeEndpoint=H;U&&U.autoExpandCommand&&H&&!this.userToggled&&(A=this.data.autoExpandCommand,U=!(!_.p(A,_.Gv)||!_.p(H,_.Gv)||_.p(A,_.Gv).browseId!==_.p(H,_.Gv).browseId),H=this.get("commandMetadata.webCommandMetadata.url",H),A=this.get("commandMetadata.webCommandMetadata.url",A),U=U||!!(H&&A&&H.includes(A)),this._setExpanded(U),U&&this.ytLazyListBehavior.fillRemainingListItems())};
cm.prototype.observeActiveEndpoint=cm.prototype.observeActiveEndpoint;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],cm.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],cm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.aN.YtLazyListBehavior),_.q("design:type",Object)],cm.prototype,"ytLazyListBehavior",void 0);_.G([_.hG("#expandable-items"),_.q("design:type",HTMLElement)],cm.prototype,"expandableItems",void 0);
_.G([_.y(),_.q("design:type",Object)],cm.prototype,"data",void 0);_.G([_.y({readOnly:!0,reflectToAttribute:!0}),_.q("design:type",Boolean)],cm.prototype,"expanded",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],cm.prototype,"initialCount",void 0);_.G([_.y(),_.q("design:type",Object)],cm.prototype,"activeEndpoint",void 0);_.G([_.Ya("data","activeEndpoint","canShowMore"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cm.prototype,"observeActiveEndpoint",null);
_.G([_.dX({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],cm);
_.e(cm,"ytd-guide-collapsible-entry-renderer",function(){if(fSk!==void 0)return fSk;var H=document.createElement("template");_.E(H,'\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" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" 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" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return fSk=H},{mode:2});var KZ$;var oIm;var yP=function(){var H=_.B.apply(this,arguments)||this;H.allVideosCount=0;H.renderGuideEntry=!1;return H};
_.R(yP,_.B);yP.prototype.observeRenderEntry=function(){var H;this.renderGuideEntry=!((H=this.data)==null||!H.alwaysShow)||!!this.allVideosCount};
yP.prototype.observeRenderEntry=yP.prototype.observeRenderEntry;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],yP.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],yP.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],yP.prototype,"activeEndpoint",void 0);_.G([_.y({selector:_.NFN}),_.q("design:type",Object)],yP.prototype,"allVideosCount",void 0);
_.G([_.y(),_.q("design:type",Object)],yP.prototype,"renderGuideEntry",void 0);_.G([_.jk("allVideosCount","data.alwaysShow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yP.prototype,"observeRenderEntry",null);_.G([_.dX({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],yP);
_.e(yP,"ytd-guide-downloads-entry-renderer",function(){if(oIm===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);oIm=H}H=oIm;return H},{mode:1});var Bm=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return H};
_.R(Bm,_.B);_.X=Bm.prototype;_.X.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]]"}}}}}};
_.X.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var H=this.sectionItems.children,U=0,A=H.length;U<A;U++)H[U].activeEndpoint=this.activeEndpoint}};
_.X.handleAddToGuideSectionAction=function(H){var U=_.p(H,WI5);if(U&&this.data&&(H=U.items,U=U.handlerData,H&&U&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(U)>-1)){U=0;for(var A=H.length;U<A;U++)H[U].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,H[U])}};
_.X.handleRemoveFromGuideSectionAction=function(H){var U=_.p(H,w68);U&&this.data&&(H=U.guideEntryId,U=U.handlerData,H&&U&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(U)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(H,this.data.sectionItems),this.removeFromCollapsedSection(H,this.data.sectionItems)))};
_.X.removeFromExpandedSection=function(H,U){H=this.getEntryIndexMatchingId(H,U);H!==-1&&this.splice("data.sectionItems",H,1)};
_.X.removeFromCollapsedSection=function(H,U){var A=U.findIndex(function(M){return!!_.p(M,cIp)});
A&&A!==-1&&U[A]&&_.p(U[A],cIp)&&(U=_.p(U[A],cIp).expandableItems)&&(H=this.getEntryIndexMatchingId(H,U),H!==-1&&this.splice("data.sectionItems."+A+".guideCollapsibleEntryRenderer.expandableItems",H,1))};
_.X.getEntryIndexMatchingId=function(H,U){var A=this;return U.findIndex(function(M){return A.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",M)===H})};
Bm.prototype.activeEndpointChanged=Bm.prototype.activeEndpointChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Bm.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Bm.prototype,"actionHandlerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Bm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.hG("#section-items"),_.q("design:type",HTMLDivElement)],Bm.prototype,"sectionItems",void 0);
_.G([_.hG("#header-entry"),_.q("design:type",Object)],Bm.prototype,"headerEntry",void 0);_.G([_.y(),_.q("design:type",Object)],Bm.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Bm.prototype,"activeEndpoint",void 0);_.G([_.Ya("activeEndpoint"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Bm.prototype,"activeEndpointChanged",null);_.G([_.dX({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],Bm);
_.e(Bm,"ytd-guide-collapsible-section-entry-renderer",function(){if(KZ$===void 0){var H=document.createElement("template");_.E(H,'\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="true" 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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);KZ$=H}H=KZ$;return H},{mode:1});var FZk;var PJ5;var rq=function(){var H=_.B.apply(this,arguments)||this;H.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 H};
_.R(rq,_.B);_.X=rq.prototype;
_.X.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}}}}};
_.X.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var H=_.Bg(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);H&&H.length===1&&H[0]&&_.Bg(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.X.handleResetChannelUnreadCountCommand=function(H){var U;(H=(U=_.p(H,bjh))==null?void 0:U.channelId)&&this.data&&this.data.items&&(U=this.getPathToEntryMatchingId(H))&&(this.set(U+".guideEntryRenderer.count",0),this.set(U+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.X.handleResetSubscriptionsUnreadDotCommand=function(H){var U,A=(U=_.p(H,dd5))==null?void 0:U.targetId,M;A&&(M=this.data)!=null&&M.items&&(H=this.data.items.findIndex(function(W){var w;return((w=W.guideEntryRenderer)==null?void 0:w.targetId)===A}),H<0||this.set("data.items."+H+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.X.getPathToEntryMatchingId=function(H){if(this.data&&this.data.items){var U=this.getEntryIndexMatchingId(H,this.data.items);if(U>-1)return"data.items."+U;for(var A=0;A<this.data.items.length;A++)if(U=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[A]))if(U=this.getEntryIndexMatchingId(H,U),U>-1)return"data.items."+A+".guideCollapsibleEntryRenderer.expandableItems."+U}};
_.X.handleAddToGuideSectionAction=function(H){var U=this;if(_.p(H,WI5)){var A=_.p(H,WI5).items;H=_.p(H,WI5).handlerData;var M,W;if(A&&H&&((M=this.data)==null?void 0:(W=M.handlerDatas)==null?void 0:W.indexOf(H))>-1){A=A.filter(function(d){return(d=U.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",d))&&!U.isGuideItemPresent(d)});
var w;if(H==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((w=this.data)==null?0:w.items)&&(M=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),M>-1)){this.splice.apply(this,["data.items",M+1,0].concat(_.vI(A)));return}this.unshift.apply(this,["data.items"].concat(_.vI(A)))}}};
_.X.isGuideItemPresent=function(H){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(H,this.data.items)!==-1)return!0;var U=this.data.items.find(function(A){return!!A.guideCollapsibleEntryRenderer});
if((U==null?0:U.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(H,U.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.X.getEntryIndexMatchingId=function(H,U){var A=this;return U.findIndex(function(M){return A.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",M)===H})};
_.X.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(H,U){var A=this;return U.findIndex(function(M){return A.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",M)===H})};
_.X.handleRemoveFromGuideSectionAction=function(H){if(_.p(H,w68)){var U=_.p(H,w68).guideEntryId;H=_.p(H,w68).handlerData;var A,M;U&&H&&((A=this.data)==null?void 0:(M=A.handlerDatas)==null?void 0:M.indexOf(H))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(U,this.data.items),this.removeFromCollapsedSection(U,this.data.items))}};
_.X.removeFromExpandedSection=function(H,U){H=this.getEntryIndexMatchingId(H,U);H!==-1&&this.splice("data.items",H,1)};
_.X.removeFromCollapsedSection=function(H,U){var A=U.findIndex(function(M){return!!M.guideCollapsibleEntryRenderer});
A!==-1&&(U=U[A].guideCollapsibleEntryRenderer.expandableItems)&&(H=this.getEntryIndexMatchingId(H,U),H!==-1&&this.splice("data.items."+A+".guideCollapsibleEntryRenderer.expandableItems",H,1))};
_.X.activeEndpointChanged=function(){for(var H=_.c4(this.hostElement).querySelector("#items").children,U=0,A=H.length;U<A;U++)H[U].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.X.guideOpenedChanged=function(){for(var H=_.c4(this.hostElement).querySelector("#items").children,U=0,A=H.length;U<A;U++)H[U].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
rq.prototype.guideOpenedChanged=rq.prototype.guideOpenedChanged;rq.prototype.activeEndpointChanged=rq.prototype.activeEndpointChanged;rq.prototype.persistentGuideChanged=rq.prototype.persistentGuideChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],rq.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],rq.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],rq.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.aN.YtLazyListBehavior),_.q("design:type",Object)],rq.prototype,"ytLazyListBehavior",void 0);_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],rq.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],rq.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],rq.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",String)],rq.prototype,"type",void 0);_.G([_.y({value:20}),_.q("design:type",Number)],rq.prototype,"initialCount",void 0);_.G([_.y({value:10}),_.q("design:type",Number)],rq.prototype,"targetFramerate",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],rq.prototype,"autoFill",void 0);_.G([_.y({value:50}),_.q("design:type",Number)],rq.prototype,"renderDelay",void 0);
_.G([_.Ya("guidePersistentAndVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rq.prototype,"persistentGuideChanged",null);_.G([_.jk("activeEndpoint"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rq.prototype,"activeEndpointChanged",null);_.G([_.jk("guideOpened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rq.prototype,"guideOpenedChanged",null);
_.G([_.dX({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],rq);
_.e(rq,"ytd-guide-section-renderer",function(){if(PJ5!==void 0)return PJ5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return PJ5=H},{mode:2});var soy;var eT=function(){return _.B.apply(this,arguments)||this};
_.R(eT,_.B);_.D5.Object.defineProperties(eT.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],eT.prototype,"rendererBehaviors",void 0);_.G([_.y(),_.q("design:type",Object)],eT.prototype,"data",void 0);_.G([_.y(),_.a("data.signInButton.buttonRenderer.style"),_.q("design:type",Object),_.q("design:paramtypes",[])],eT.prototype,"alignByText",null);_.G([_.dX({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],eT);
_.e(eT,"ytd-guide-signin-promo-renderer",function(){if(soy===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);soy=H}H=soy;return H},{mode:1});var Dr=function(){var H=_.B.apply(this,arguments)||this;H.showFooter=!1;return H};
_.R(Dr,_.B);Dr.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}}}}};
Dr.prototype.attached=function(){var H=this,U;return _.u(function(A){if(A.nextAddress==1){U=_.lx().resolve(_.$V(_.J1));if(!U)return A.jumpTo(0);U.setGuideData(H.hostElement);return A.yield(0,3)}H.ytLazyListBehavior.initialCount=2;return A.return()})};
Dr.prototype.onMouseExit=function(){_.S("web_guide_hover_expansion")&&_.Bg(this.hostElement,"yt-guide-mouseleaved",[])};
Dr.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Dr.prototype.dataChanged=Dr.prototype.dataChanged;Dr.prototype.onMouseExit=Dr.prototype.onMouseExit;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Dr.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Dr.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.aN.YtLazyListBehavior),_.q("design:type",Object)],Dr.prototype,"ytLazyListBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Dr.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Dr.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Dr.prototype,"showFooter",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],Dr.prototype,"autoFill",void 0);_.G([_.Gl("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Dr.prototype,"onMouseExit",null);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Dr.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-guide-renderer",disableElementRegistration:!0})],Dr);
_.e(Dr,"ytd-guide-renderer",function(){if(FZk!==void 0)return FZk;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return FZk=H},{mode:2});var nI7;var $w=function(){var H=_.B.apply(this,arguments)||this;H.systemIcons=_.S("kevlar_system_icons");H.frostedGlass=_.S("web_frosted_glass");H.onAllyMenuButtonClick=function(){var U=H.getShowSheetCommand();U&&H.ytComponentBehavior.resolveCommand(U)};
H.getEndpointForm=function(){return C$$(H.data)};
return H};
_.R($w,_.B);_.X=$w.prototype;_.X.attached=function(){this.JSC$22540_sheetController=_.lx().resolve(_.Wi)};
_.X.onDown=function(){this.interaction.triggerDown()};
_.X.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var H;(H=this.JSC$22540_sheetController)==null||Cw7(H,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this))}};
_.X.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.X.isSeedlessReelCommand=function(H){var U;return!!H&&((U=_.p(H,_.kO))==null?void 0:U.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.X.isShowSheetCommand=function(H){return!!H&&!!_.p(H,_.kY)};
_.X.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.X.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.X.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.X.onUp=function(){this.interaction.triggerUp()};
_.X.onTap=function(H){if(this.data.serviceEndpoint){if(_.S("shorts_controller_retrieve_seedless_sequence_v2")&&this.isSeedlessReelCommand(this.data.serviceEndpoint))this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(this.isShowSheetCommand(this.data.serviceEndpoint)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);var U;(U=this.JSC$22540_sheetController)==null||Cw7(U,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this));H.preventDefault();
return}zo7(this.data.serviceEndpoint,this)}H.preventDefault()}else{var A;((A=this.data)==null?0:A.navigationEndpoint)&&!_.ny(_.Lf(H),this.hostElement,["A".toString()])&&_.cg(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.X.computeActive=function(H,U){if(!H)return!1;var A=H.navigationEndpoint;H=H.serviceEndpoint;if(!A&&!H||!U)return!1;if(A){H=_.p(A,_.Gv);var M=_.p(U,_.Gv);if(H&&M)return H.browseId===M.browseId&&H.params===M.params;var W;A=(W=_.p(A.commandMetadata,_.Y2))==null?void 0:W.url;var w;U=(w=_.p(U.commandMetadata,_.Y2))==null?void 0:w.url;return!(!A||!U||A!==U&&A!==_.DU(U))}return this.isActiveShortsTab(H,U)};
_.X.isActiveShortsTab=function(H,U){U=!!_.p(U,_.kO)||!!_.p(U,_.O7);return(!!_.p(H,_.kO)||!!_.p(H,_.O7))&&U};
_.X.computeTitle=function(H,U){return U?"":_.Sp(H)};
_.X.computeEndpoint=function(H){return this.isSeedlessReelCommand(H.serviceEndpoint)?H.serviceEndpoint:H.navigationEndpoint};
_.X.computeHref=function(H){H=this.isSeedlessReelCommand(H.serviceEndpoint)?H.serviceEndpoint:H.navigationEndpoint;return(H=this.ytComponentBehavior.computeHref_(H))?H:"#"};
_.X.computeAriaLabelTitle=function(H){return _.Sp(H)};
_.X.computeAllyShowMenuOnTap=function(H){return this.isShowSheetCommand(H.mouseEnterEndpoint)||this.isShowSheetCommand(H.serviceEndpoint)};
_.D5.Object.defineProperties($w.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
$w.prototype.onMouseLeave=$w.prototype.onMouseLeave;$w.prototype.onMouseEnter=$w.prototype.onMouseEnter;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],$w.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.HY),_.q("design:type",Object)],$w.prototype,"ironButtonState",void 0);_.G([_.y(),_.q("design:type",Object)],$w.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Object)],$w.prototype,"activeEndpoint",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],$w.prototype,"noLabels",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.q("design:type",Boolean)],$w.prototype,"isActive",void 0);_.G([_.y({computed:"computeEndpoint(data)"}),_.q("design:type",Object)],$w.prototype,"computedEndpoint",void 0);
_.G([_.y({computed:"computeHref(data)"}),_.q("design:type",String)],$w.prototype,"computedHref",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],$w.prototype,"systemIcons",void 0);_.G([_.hG("yt-interaction"),_.q("design:type",Object)],$w.prototype,"interaction",void 0);_.G([_.a("isActive"),_.q("design:type",Object),_.q("design:paramtypes",[])],$w.prototype,"ariaSelected",null);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],$w.prototype,"frostedGlass",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.q("design:type",Boolean)],$w.prototype,"allyShowMenuOnTap",void 0);_.G([_.Gl("mouseenter"),_.q("design:type",Function),_.q("design:paramtypes",[MouseEvent]),_.q("design:returntype")],$w.prototype,"onMouseEnter",null);_.G([_.Gl("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[MouseEvent]),_.q("design:returntype")],$w.prototype,"onMouseLeave",null);
_.G([_.dX({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],$w);
_.e($w,"ytd-mini-guide-entry-renderer",function(){if(nI7!==void 0)return nI7;var H=document.createElement("template");_.E(H,'\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" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computedHref]]" data="[[computedEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-selected="[[isActive]]" on-click="onTap" on-down="onDown" on-up="onUp">\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="0" 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<span hidden="[[!allyShowMenuOnTap]]" class="style-scope ytd-mini-guide-entry-renderer">\n  <button type="button" id="ally-menu-button" class="ally-menu-button style-scope ytd-mini-guide-entry-renderer" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-haspopup="true" aria-expanded="false" on-click="onAllyMenuButtonClick"></button>\n</span>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return nI7=H},{mode:_.cX("kevlar_poly_si_batch_j063")?1:2});var N9Y;var ll=function(){var H=_.B.apply(this,arguments)||this;H.allVideosCount=0;H.noLabels=_.S("kevlar_mini_guide_no_labels");H.frostedGlass=_.S("web_frosted_glass");return H};
_.R(ll,_.B);_.X=ll.prototype;_.X.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.X.onMouseEnter=function(){_.S("web_guide_hover_expansion")&&_.Bg(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.X.visibleChanged=function(){if(this.visible&&!this.data){var H=_.lx().resolve(_.$V(_.J1));H&&H.setGuideData(this.hostElement);_.$g(_.k$(),this.miniGuideVe);(H=_.XK())&&this.miniGuideVe&&_.PO(H,this.miniGuideVe)}};
_.X.dataChanged=function(){var H=_.S("kevlar_guide_menu_on_hover")&&_.S("kevlar_modern_mini_guide"),U=_.S("kevlar_guide_menu_on_click")&&_.S("kevlar_modern_mini_guide"),A;var M=(A=this.data)==null?void 0:A.items;A=this.allVideosCount;var W=[];H=H?0:U?1:void 0;U=H!==void 0;if(M){for(var w=[],d=_.b(M),O=d.next();!O.done;O=d.next())if(O=O.value,O.guideSubscriptionsSectionRenderer){var f=void 0;w=((f=O.guideSubscriptionsSectionRenderer)==null?void 0:f.items)||[]}M=_.b(M);for(d=M.next();!d.done;d=M.next())if(d=
d.value,O=void 0,(O=d.guideSectionRenderer)==null?0:O.items)for(O=void 0,d=_.b((O=d.guideSectionRenderer)==null?void 0:O.items),O=d.next();!O.done;O=d.next()){O=O.value;var J=void 0,F=void 0;f=O.guideEntryRenderer||_.p((J=O)==null?void 0:(F=J.guideCollapsibleSectionEntryRenderer)==null?void 0:F.headerEntry,tdp);J=[];F=[];var P=void 0;if(((P=f)==null?void 0:P.targetId)==="subscriptions-guide-item")J=w;else{var n=P=void 0;if((P=O)==null?0:(n=P.guideCollapsibleSectionEntryRenderer)==null?0:n.sectionItems)F=
J=O.guideCollapsibleSectionEntryRenderer.sectionItems}Bj7(W,f,U?J:[],H);if(F.length>0)for(O=_.b(F),f=O.next();!f.done;f=O.next())f=f.value,F=_.p(f,guY),J=void 0,F=F&&(F.alwaysShow||A)?_.p((J=F)==null?void 0:J.entryRenderer,tdp):_.p(f,tdp),Bj7(W,F,[])}}this.miniGuideItems=W};
_.X.activeEndpointChanged=function(){for(var H=this.items.children,U=0;U<H.length;U++)H[U].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.X.registerWithViewTransitionManager=function(){var H=this;_.bM(_.Fl,function(){var U=_.lx().resolve(_.$V(_.Vc));if(U&&U.isAnyTransitionEnabled){var A={};U.viewTransitionCoordinator.registerElement(H.hostElement,(A.slide="mini-guide-page-transition",A))}})};
ll.prototype.activeEndpointChanged=ll.prototype.activeEndpointChanged;ll.prototype.dataChanged=ll.prototype.dataChanged;ll.prototype.visibleChanged=ll.prototype.visibleChanged;ll.prototype.onMouseEnter=ll.prototype.onMouseEnter;_.G([_.g(_.dF),_.q("design:type",Object)],ll.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ll.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ll.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],ll.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ll.prototype,"ytComponentBehavior",void 0);_.G([_.hG("#items"),_.q("design:type",Object)],ll.prototype,"items",void 0);_.G([_.y(),_.q("design:type",Object)],ll.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Boolean)],ll.prototype,"visible",void 0);_.G([_.y(),_.q("design:type",Object)],ll.prototype,"miniGuideItems",void 0);_.G([_.y({selector:_.NFN}),_.q("design:type",Object)],ll.prototype,"allVideosCount",void 0);_.G([_.y({value:_.ts(283834)}),_.q("design:type",_.Wg)],ll.prototype,"miniGuideVe",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],ll.prototype,"noLabels",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],ll.prototype,"frostedGlass",void 0);_.G([_.Gl("mouseenter"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ll.prototype,"onMouseEnter",null);_.G([_.jk("visible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ll.prototype,"visibleChanged",null);
_.G([_.jk("data","allVideosCount"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ll.prototype,"dataChanged",null);_.G([_.jk("activeEndpoint"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ll.prototype,"activeEndpointChanged",null);_.G([_.dX({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],ll);
_.e(ll,"ytd-mini-guide-renderer",function(){if(N9Y===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);N9Y=H}H=N9Y;return H},{mode:1});var SQ5;var p_h=/^[\x00-\x7F]+$/,GW=function(){return _.B.apply(this,arguments)||this};
_.R(GW,_.B);_.D5.Object.defineProperties(GW.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var H,U=_.Sp((H=this.data)==null?void 0:H.handle);if(U)return _.Nh("@"+U)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var H=_.Sp(this.displayHandle),U,A=_.Sp((U=this.data)==null?void 0:U.handleUrl);if(H&&A)return _.Nh(A+H)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var H=_.Sp(this.displayHandle);if(H&&!p_h.test(H)){var U;return(U=this.data)==null?void 0:U.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var H=_.Sp(this.displayHandleUrl),U,A=_.Sp((U=this.data)==null?void 0:U.urlInfoText);if(H&&A)return _.Nh(A+" "+H)}}});
_.G([_.y(),_.q("design:type",Object)],GW.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],GW.prototype,"displayHandle",null);_.G([_.a("displayHandle"),_.q("design:type",Object),_.q("design:paramtypes",[])],GW.prototype,"displayHandleUrl",null);_.G([_.a("displayHandle"),_.q("design:type",Object),_.q("design:paramtypes",[])],GW.prototype,"warningText",null);
_.G([_.a("displayHandleUrl"),_.q("design:type",Object),_.q("design:paramtypes",[])],GW.prototype,"urlInfoTextWithUrl",null);_.G([_.dX({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],GW);
_.e(GW,"ytd-handles-claiming-confirm-dialog-content",function(){if(SQ5!==void 0)return SQ5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return SQ5=H},{mode:1});var LZy;var Yw=function(){var H=_.B.apply(this,arguments)||this;H.okButtonOverride={style:"mono",type:"outline",size:"M"};return H};
_.R(Yw,_.B);Yw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Yw.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Yw.prototype,"okButtonOverride",void 0);_.G([_.y(),_.q("design:type",Object)],Yw.prototype,"data",void 0);_.G([_.dX({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Yw);
_.e(Yw,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(LZy!==void 0)return LZy;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return LZy=H},{mode:1});var R3y;var EI$=/^[\x00-\x7F]+$/,q0=function(){var H=_.B.apply(this,arguments)||this;H.isLoading=!1;return H};
_.R(q0,_.B);q0.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var H;this.selectedHandle=(H=this.handleInput)==null?void 0:H.value;this.onSelectedHandleChanged(this.selectedHandle);_.Bg(this.hostElement,"yt-refit-popups-action")}};
_.D5.Object.defineProperties(q0.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Nh("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Nh(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!EI$.test(this.selectedHandle)){var H;return(H=this.data)==null?void 0:H.warningText}}}});
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],q0.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],q0.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],q0.prototype,"selectedHandle",void 0);_.G([_.y(),_.q("design:type",Object)],q0.prototype,"isLoading",void 0);_.G([_.y(),_.q("design:type",Function)],q0.prototype,"onSelectedHandleChanged",void 0);_.G([_.hG("#channel-handle-input"),_.q("design:type",Object)],q0.prototype,"handleInput",void 0);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],q0.prototype,"handleUrlPrefix",null);_.G([_.a("selectedHandle"),_.q("design:type",Object),_.q("design:paramtypes",[])],q0.prototype,"displayHandle",null);_.G([_.a("selectedHandle"),_.q("design:type",Object),_.q("design:paramtypes",[])],q0.prototype,"displayHandleUrl",null);_.G([_.a("selectedHandle"),_.q("design:type",Object),_.q("design:paramtypes",[])],q0.prototype,"warningText",null);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.G([_.dX({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],q0);
_.e(q0,"ytd-handles-claiming-edit-dialog-content",function(){if(R3y!==void 0)return R3y;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return R3y=H},{mode:1});var m9m;var ho=function(){var H=_.B.apply(this,arguments)||this;H.actionButtonOverride={style:"mono",type:"filled",size:"M"};H.cancelButtonOverride={style:"mono",type:"text",size:"M"};H.selectButtonDisabled=!1;H.isLoading=!1;H.hasSelectedHandleEventListener=!1;H.selectedHandleChanged=function(U){H.selectedHandle=U};
return H};
_.R(ho,_.B);_.X=ho.prototype;_.X.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.X.onDataChanged=function(){var H,U;this.selectedHandle=(U=_.p((H=this.data)==null?void 0:H.inputField,htB))==null?void 0:U.handle};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.onCancel=function(){this.selectedHandle="";_.yr(this.hostElement,"yt-close-popup-action",[this.is])};
_.X.onSelectHandle=function(){var H=this;if(this.selectedHandle!==void 0){var U;((U=this.data)==null?void 0:U.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(A,M){if(M.newHandleUpdateStatus!==void 0&&M.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&M.newHandleUpdateStatus.errorMessage)_.oR(H.hostElement,_.Sp(M.newHandleUpdateStatus.errorMessage)),
H.isLoading=!1;else{var W;if((W=H.data)==null?0:W.onChannelUpdateSuccess){A=H.data.onChannelUpdateSuccess;var w,d;if(M=(w=_.p(A,_.jQ))==null?void 0:(d=w.popup)==null?void 0:d.handlesClaimingConfirmDialogRenderer)M.handle=_.Nh(H.selectedHandle);H.ytComponentBehavior.resolveCommand(A);_.yr(H.hostElement,"yt-close-popup-action",[H.is])}else H.isLoading=!1}},
onServerError:function(){var A;H.content&&((A=H.content)==null?0:A.handleInput)&&H.content.handleInput.validate();H.isLoading=!1;_.oR(H.hostElement,_.hP("TRY_AGAIN_LATER"))}}}))}};
_.X.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
ho.prototype.onDataChanged=ho.prototype.onDataChanged;ho.prototype.onSelectedHandleChanged=ho.prototype.onSelectedHandleChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ho.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],ho.prototype,"actionButtonOverride",void 0);_.G([_.y(),_.q("design:type",Object)],ho.prototype,"cancelButtonOverride",void 0);_.G([_.y(),_.q("design:type",Object)],ho.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",String)],ho.prototype,"selectedHandle",void 0);_.G([_.y(),_.q("design:type",Object)],ho.prototype,"selectButtonDisabled",void 0);_.G([_.y(),_.q("design:type",Object)],ho.prototype,"isLoading",void 0);_.G([_.y(),_.q("design:type",Object)],ho.prototype,"hasSelectedHandleEventListener",void 0);_.G([_.y(),_.q("design:type",Object)],ho.prototype,"handleInput",void 0);
_.G([_.Ya("selectedHandle"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ho.prototype,"onSelectedHandleChanged",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ho.prototype,"onDataChanged",null);_.G([_.hG("ytd-handles-claiming-edit-dialog-content"),_.q("design:type",Object)],ho.prototype,"content",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],ho.prototype,"ytRendererstamperBehavior",void 0);_.G([_.dX({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],ho);
_.e(ho,"ytd-handles-claiming-edit-dialog-renderer",function(){if(m9m!==void 0)return m9m;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return m9m=H},{mode:1});var gIf;var kw=function(){return _.B.apply(this,arguments)||this};
_.R(kw,_.B);_.D5.Object.defineProperties(kw.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null?0:H.handle){var U;return _.Nh("@"+_.Sp((U=this.data)==null?void 0:U.handle))}}}});
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],kw.prototype,"formattedHandle",null);_.G([_.y(),_.q("design:type",Object)],kw.prototype,"data",void 0);_.G([_.dX({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],kw);
_.e(kw,"ytd-handles-claiming-radio-option-renderer",function(){if(gIf!==void 0)return gIf;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return gIf=H},{mode:1});var aS5;var x9p=/^[\x00-\x7F]+$/,TW=function(){var H=_.B.apply(this,arguments)||this;H.initialRadioIndex="-1";H.isLoading=!1;H.maybeSubmitFeedback=function(){H.feedbackSurveyRenderer.submitSurvey()};
return H};
_.R(TW,_.B);TW.prototype.updateSelectedHandleIndexFromBinding=function(H){this.selectedRadioIndex=+H.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(H)};
TW.prototype.selectedHandleChanged=function(H){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var U;this.selectedHandle=(U=this.handleInput)==null?void 0:U.value;this.onSelectedHandleChanged(H)}};
_.D5.Object.defineProperties(TW.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var H;return(((H=this.data)==null?void 0:H.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var H;return this.ytRendererBehavior.getSimpleString((H=this.data)==null?void 0:H.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Nh("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Nh(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!x9p.test(this.selectedHandle)){var H;return(H=this.data)==null?void 0:H.warningText}}}});
_.G([_.y(),_.q("design:type",Object)],TW.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],TW.prototype,"initialRadioIndex",void 0);_.G([_.y(),_.q("design:type",Number)],TW.prototype,"selectedRadioIndex",void 0);_.G([_.y(),_.q("design:type",String)],TW.prototype,"selectedHandle",void 0);_.G([_.y(),_.q("design:type",Object)],TW.prototype,"isLoading",void 0);_.G([_.y(),_.q("design:type",Function)],TW.prototype,"onSelectedHandleChanged",void 0);
_.G([_.y(),_.q("design:type",Function)],TW.prototype,"onSelectedRadioIndexChanged",void 0);_.G([_.hG("#channel-handle-input"),_.q("design:type",Object)],TW.prototype,"handleInput",void 0);_.G([_.hG("ytd-feedback-survey-renderer"),_.q("design:type",Object)],TW.prototype,"feedbackSurveyRenderer",void 0);_.G([_.a("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],TW.prototype,"radioButtonLength",null);
_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],TW.prototype,"handleUrlPrefix",null);_.G([_.a("selectedHandle"),_.q("design:type",Object),_.q("design:paramtypes",[])],TW.prototype,"displayHandle",null);_.G([_.a("selectedHandle"),_.q("design:type",Object),_.q("design:paramtypes",[])],TW.prototype,"displayHandleUrl",null);_.G([_.a("selectedHandle"),_.q("design:type",Object),_.q("design:paramtypes",[])],TW.prototype,"warningText",null);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.G([_.dX({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],TW);
_.e(TW,"ytd-handles-claiming-select-dialog-content",function(){if(aS5!==void 0)return aS5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return aS5=H},{mode:1});var z38;var jT=function(){var H=_.B.apply(this,arguments)||this;H.actionButtonOverride={style:"mono",type:"filled",size:"M"};H.cancelButtonOverride={style:"mono",type:"text",size:"M"};H.initialRadioIndex="-1";H.selectButtonDisabled=!1;H.isLoading=!1;H.selectedRadioIndexChanged=function(U){H.selectedRadioIndex=Number(U.detail.value)};
H.selectedHandleChanged=function(U){H.selectedHandle=U.detail.value};
return H};
_.R(jT,_.B);_.X=jT.prototype;_.X.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.X.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.X.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Bg(this.hostElement,"yt-refit-popups-action")};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.yr(this.hostElement,"yt-close-popup-action",[this.is])};
_.X.onSelectHandle=function(){var H=this;if(this.selectedHandle!==void 0){var U;((U=this.data)==null?void 0:U.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(A,M){if(M.newHandleUpdateStatus!==void 0&&M.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&M.newHandleUpdateStatus.errorMessage)_.oR(H.hostElement,_.Sp(M.newHandleUpdateStatus.errorMessage)),
H.isLoading=!1;else{var W;if((W=H.data)==null?0:W.onChannelUpdateSuccess){A=H.data.onChannelUpdateSuccess;M=_.p(A,_.jQ);var w;if(M==null?0:(w=M.popup)==null?0:w.handlesClaimingConfirmDialogRenderer)M.popup.handlesClaimingConfirmDialogRenderer.handle=_.Nh(H.selectedHandle);H.ytComponentBehavior.resolveCommand(A);_.yr(H.hostElement,"yt-close-popup-action",[H.is])}else H.isLoading=!1}},
onServerError:function(){if(H.selectedRadioIndex===H.radioButtonLength){var A;H.content&&((A=H.content)==null?0:A.handleInput)&&H.content.handleInput.validate()}H.isLoading=!1;_.oR(H.hostElement,_.hP("TRY_AGAIN_LATER"))}}}))}};
_.X.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var H,U;this.selectedHandle=(H=this.content)==null?void 0:(U=H.handleInput)==null?void 0:U.value}else this.selectedRadioIndex>=0&&((H=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(H==null?void 0:H.handle):this.selectedHandle=void 0)};
_.X.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.X.getRadioItem=function(H){if(this.radioButtonLength>H&&H>=0)return _.p(this.data.radioButton[H],RL8)};
_.D5.Object.defineProperties(jT.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var H;return(((H=this.data)==null?void 0:H.radioButton)||[]).length}}});
jT.prototype.onSelectedHandleChanged=jT.prototype.onSelectedHandleChanged;jT.prototype.onSelectedHandleIndexChanged=jT.prototype.onSelectedHandleIndexChanged;jT.prototype.onDataChanged=jT.prototype.onDataChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],jT.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],jT.prototype,"actionButtonOverride",void 0);_.G([_.y(),_.q("design:type",Object)],jT.prototype,"cancelButtonOverride",void 0);
_.G([_.y(),_.q("design:type",Object)],jT.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],jT.prototype,"initialRadioIndex",void 0);_.G([_.y(),_.q("design:type",Number)],jT.prototype,"selectedRadioIndex",void 0);_.G([_.y(),_.q("design:type",String)],jT.prototype,"selectedHandle",void 0);_.G([_.y(),_.q("design:type",Object)],jT.prototype,"selectButtonDisabled",void 0);_.G([_.y(),_.q("design:type",Object)],jT.prototype,"isLoading",void 0);
_.G([_.a("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],jT.prototype,"radioButtonLength",null);_.G([_.hG("ytd-handles-claiming-select-dialog-content"),_.q("design:type",Object)],jT.prototype,"content",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jT.prototype,"onDataChanged",null);
_.G([_.Ya("selectedRadioIndex"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jT.prototype,"onSelectedHandleIndexChanged",null);_.G([_.Ya("selectedHandle"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jT.prototype,"onSelectedHandleChanged",null);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],jT.prototype,"ytRendererstamperBehavior",void 0);_.G([_.dX({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],jT);
_.e(jT,"ytd-handles-claiming-select-dialog-renderer",function(){if(z38!==void 0)return z38;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return z38=H},{mode:1});var CJB;var t17;var IF=function(){return _.B.apply(this,arguments)||this};
_.R(IF,_.B);IF.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],IF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],IF.prototype,"data",void 0);_.G([_.dX({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],IF);
_.e(IF,"ytd-hotkey-dialog-section-option-renderer",function(){if(t17!==void 0)return t17;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return t17=H},{mode:1});var cVh;var QP=function(){return _.B.apply(this,arguments)||this};
_.R(QP,_.B);QP.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],QP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],QP.prototype,"data",void 0);_.G([_.dX({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],QP);
_.e(QP,"ytd-hotkey-dialog-section-renderer",function(){if(cVh!==void 0)return cVh;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return cVh=H},{mode:1});var VP=function(){return _.B.apply(this,arguments)||this};
_.R(VP,_.B);VP.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],VP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],VP.prototype,"data",void 0);_.G([_.dX({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],VP);
_.e(VP,"ytd-hotkey-dialog-content",function(){if(CJB!==void 0)return CJB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return CJB=H},{mode:1});var yV8;var HM=function(){return _.B.apply(this,arguments)||this};
_.R(HM,_.B);HM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var H=document.querySelector("ytd-hotkey-dialog-content #scrollable");H&&(H.dialogElement=this.hostElement.parentElement)};
HM.prototype.onCloseTap=function(){_.yr(this.hostElement,"yt-close-popup-action")};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],HM.prototype,"data",void 0);_.G([_.dX({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],HM);
_.e(HM,"ytd-hotkey-dialog-renderer",function(){if(yV8!==void 0)return yV8;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return yV8=H},{mode:1});var B9y;var Ui=function(){return _.B.apply(this,arguments)||this};
_.R(Ui,_.B);Ui.prototype.onYtServiceRequestError=function(){if(this.blocked){var H;var U=(H=this.data)==null?void 0:H.defaultServiceEndpoint}else{var A;U=(A=this.data)==null?void 0:A.toggledServiceEndpoint}var M;(U=(M=_.p(U,_.GVp))==null?void 0:M.onFailureAction)&&this.ytComponentBehavior.resolveCommand(U);this.updateBlockState(!this.blocked)};
Ui.prototype.onYtToggleButton=function(H){this.updateBlockState(H.detail.toggled)};
Ui.prototype.updateBlockState=function(H){if(H!==this.blocked){var U=this.blockedEntityKey;U&&this.ytdReduxBehavior.dispatch(_.hs("blockStateEntity",U,{key:U,blocked:H}));this.set("data.isToggled",H)}};
_.D5.Object.defineProperties(Ui.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)}}});
Ui.prototype.onYtToggleButton=Ui.prototype.onYtToggleButton;Ui.prototype.onYtServiceRequestError=Ui.prototype.onYtServiceRequestError;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Ui.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],Ui.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ui.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Ui.prototype,"blockedEntityKey",void 0);
_.G([_.y({selectorArgs:["blockedEntityKey"],selector:function(H,U){return _.rH(H.entities,"blockStateEntity",U)}}),
_.q("design:type",Object)],Ui.prototype,"blockStateEntity",void 0);_.G([_.a("data","blockStateEntity"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Ui.prototype,"blocked",null);_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Ui.prototype,"onYtServiceRequestError",null);
_.G([_.Gl("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Ui.prototype,"onYtToggleButton",null);_.G([_.dX({is:"ytd-block-button",disableElementRegistration:!0})],Ui);
_.e(Ui,"ytd-block-button",function(){if(B9y!==void 0)return B9y;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return B9y=H},
{mode:1});var rV$;var e3h;var A3=function(){return _.B.apply(this,arguments)||this};
_.R(A3,_.B);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],A3.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],A3.prototype,"data",void 0);_.G([_.dX({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],A3);
_.e(A3,"ytd-kids-blocklist-picker-item-renderer",function(){if(e3h!==void 0)return e3h;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return e3h=H},{mode:1});var Mi=function(){return _.B.apply(this,arguments)||this};
_.R(Mi,_.B);Mi.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Mi.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Mi.prototype,"data",void 0);_.G([_.dX({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Mi);
_.e(Mi,"ytd-kids-blocklist-picker-content",function(){if(rV$!==void 0)return rV$;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return rV$=
H},{mode:2});var D9$;var WM=function(){var H=_.B.apply(this,arguments)||this;H.hasAnyRequestSucceeded=!1;H.hasAnyRequestFailed=!1;H.numPendingRequests=0;return H};
_.R(WM,_.B);_.X=WM.prototype;_.X.attached=function(){this.hostElement.setAttribute("dialog","")};
_.X.onDoneButtonTap=function(){_.yr(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.X.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.X.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.X.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.X.onPopupClosed=function(H){var U,A;if(((U=H.detail)==null?void 0:(A=U.popup)==null?void 0:A.is)==="tp-yt-paper-dialog"){var M;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((M=this.data)==null?0:M.successfulToastActionMessage)&&(H=_.E_(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(H));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
WM.prototype.onPopupClosed=WM.prototype.onPopupClosed;WM.prototype.onYtServiceRequestError=WM.prototype.onYtServiceRequestError;WM.prototype.onYtServiceRequestCompleted=WM.prototype.onYtServiceRequestCompleted;WM.prototype.onYtServiceRequestSent=WM.prototype.onYtServiceRequestSent;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],WM.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],WM.prototype,"data",void 0);_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],WM.prototype,"onYtServiceRequestSent",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],WM.prototype,"onYtServiceRequestCompleted",null);
_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],WM.prototype,"onYtServiceRequestError",null);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],WM.prototype,"onPopupClosed",null);_.G([_.dX({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],WM);
_.e(WM,"ytd-kids-blocklist-picker-renderer",function(){if(D9$!==void 0)return D9$;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return D9$=H},{mode:1});var $9p;var lSB;var wf=function(){return _.B.apply(this,arguments)||this};
_.R(wf,_.B);wf.prototype.setTip=function(H){var U=this;this.data&&(this.tip=Ixf(TbX.getInstance(),H,this.data),_.rV(this,function(){_.cg(U.hostElement,"yt-refit")}))};
wf.prototype.clearTip=function(){this.tip=void 0};
wf.prototype.computeHidden=function(H){return!H};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],wf.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],wf.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.q("design:type",Boolean)],wf.prototype,"hidden",void 0);_.G([_.y(),_.q("design:type",Object)],wf.prototype,"tip",void 0);_.G([_.dX({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],wf);
_.e(wf,"ytd-menu-popup-tip-renderer",function(){if(lSB!==void 0)return lSB;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);
return lSB=H},{mode:1});var G77;var Xq=function(){var H=_.B.apply(this,arguments)||this;H.useIcons=!1;H.role="menuitem";H.systemIcons=_.S("kevlar_system_icons");return H};
_.R(Xq,_.B);_.X=Xq.prototype;_.X.onFocus=function(){var H;(H=_.c4(this.hostElement).querySelector("tp-yt-paper-item"))==null||H.focus()};
_.X.onTap=function(){var H=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(H&&_.p(H,_.$2))this.componentBehavior.resolveCommand(H),this.updateToggledStateInEntity();else if(H){this.componentBehavior.resolveCommand(H)||_.lx().resolve(_.YV).resolveCommand(H,{form:{element:this.hostElement}});var U;((U=_.p(H,_.GR))==null?void 0:U.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.X.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.X.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.X.updateToggledStateInEntity=function(){var H=this.data.toggleMenuServiceItemEntityKey,U=!this.data.isToggled;H&&this.ytdReduxBehavior.dispatch(_.hs("toggleMenuServiceItemEntity",H,{key:H,isToggled:U}))};
_.X.computeIcon=function(H,U,A){return(H=H?A:U)&&H.iconType?_.eq(H.iconType):""};
_.X.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.X.isIconActive=function(H){return!_.S("toggle_menu_active_icon_killswitch")&&H};
_.D5.Object.defineProperties(Xq.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return((H=this.data)==null?0:H.isToggled)?(U=this.data)==null?void 0:U.toggledText:(A=this.data)==null?void 0:A.defaultText}}});
Xq.prototype.toggledStateEntityChanged=Xq.prototype.toggledStateEntityChanged;Xq.prototype.onYtServiceRequestCompleted=Xq.prototype.onYtServiceRequestCompleted;Xq.prototype.onTap=Xq.prototype.onTap;Xq.prototype.onFocus=Xq.prototype.onFocus;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Xq.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Xq.prototype,"componentBehavior",void 0);
_.G([_.g(_.dF),_.q("design:type",Object)],Xq.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Xq.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Xq.prototype,"useIcons",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Xq.prototype,"role",void 0);_.G([_.y({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.q("design:type",String)],Xq.prototype,"icon",void 0);
_.G([_.y({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.Ab.toggleMenuServiceItemEntitySelector}),_.q("design:type",Object)],Xq.prototype,"toggleMenuServiceItemEntity",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Xq.prototype,"systemIcons",void 0);_.G([_.Gl("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Xq.prototype,"onFocus",null);
_.G([_.a("data.isToggled"),_.q("design:type",Object),_.q("design:paramtypes",[])],Xq.prototype,"toggleButtonText",null);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Xq.prototype,"onTap",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Xq.prototype,"onYtServiceRequestCompleted",null);
_.G([_.Ya("toggleMenuServiceItemEntity.isToggled","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Xq.prototype,"toggledStateEntityChanged",null);_.G([_.dX({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],Xq);
_.e(Xq,"ytd-toggle-menu-service-item-renderer",function(){if(G77!==void 0)return G77;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return G77=H},{mode:1});var YQp;var i4=function(){return _.B.apply(this,arguments)||this};
_.R(i4,_.B);i4.prototype.onFocus=function(){var H;(H=_.c4(this.hostElement).querySelector("tp-yt-paper-item"))==null||H.focus()};
_.D5.Object.defineProperties(i4.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.j3(this.data.iconUrl)}}});
i4.prototype.onFocus=i4.prototype.onFocus;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],i4.prototype,"rendererBehavior",void 0);_.G([_.g(_.D1.YtEndpointBehavior),_.q("design:type",Object)],i4.prototype,"ytEndpointBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],i4.prototype,"data",void 0);_.G([_.Gl("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],i4.prototype,"onFocus",null);
_.G([_.a("data.iconUrl"),_.q("design:type",Object),_.q("design:paramtypes",[])],i4.prototype,"imageSource",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],i4);
_.e(i4,"ytd-menu-custom-icon-item-renderer",function(){if(YQp!==void 0)return YQp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return YQp=H},{mode:2});_.LG(_.P3,"yt-list-item-view-model",{props:{data:_.sY,isMenuItem:_.sY,isCompact:_.sY,onTap:_.Ne,trailingAccessory:_.Ne,hideSelectionTextChevron:_.sY,disabled:_.sY,inPopup:_.sY,disableHorizontalPadding:_.sY,isOverlay:_.sY,isToggled:_.sY,ariaLabel:_.sY,ariaPressed:_.sY,shouldNotFillIcon:_.sY}});var b4=function(){var H=_.B.apply(this,arguments)||this;H.disableBackdropFilter=_.S("web_disable_backdrop_filter");return H};
_.R(b4,_.B);_.X=b4.prototype;
_.X.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"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.X.computeAriaLabel=function(H){return H};
_.X.onPopupOpened=function(){this.items.selected=0;for(var H=_.b(_.c4(this.items).children),U=H.next();!U.done;U=H.next())U.value.popupPositionTarget=this.positionTarget;if(H=this.popupTip||void 0)H.setTip(this.source||""),this.source=void 0;this.veData&&(H=_.XK())&&_.sn(H,[this.veData])};
_.X.onPopupClosed=function(){var H=this.popupTip||void 0;H&&H.clearTip()};
_.X.onIronActivate=function(H){this.shouldPersist(H)||_.yr(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(H=_.XK())&&_.NY(H,this.veData)};
_.X.shouldPersist=function(H){var U,A;if(((U=H.detail)==null?void 0:U.selected)===void 0||(A=this.data)==null||!A.items)return!1;var M,W;return!((W=(M=this.data.items[H.detail.selected])==null?void 0:M.toggleMenuServiceItemRenderer)==null||!W.persistentOnMenuPopup)};
_.X.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(H){return H.menuNavigationItemRenderer?!!H.menuNavigationItemRenderer.icon:H.menuServiceItemRenderer?!!H.menuServiceItemRenderer.icon:H.menuConditionalServiceItemRenderer?!!H.menuConditionalServiceItemRenderer.icon:H.menuConditionalNavigationItemRenderer?!!H.menuConditionalNavigationItemRenderer.icon:H.toggleMenuServiceItemRenderer?!!H.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
b4.prototype.onPopupClosed=b4.prototype.onPopupClosed;b4.prototype.onPopupOpened=b4.prototype.onPopupOpened;_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],b4.prototype,"ytEventForwardingBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],b4.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],b4.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],b4.prototype,"veData",void 0);_.G([_.y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.q("design:type",String)],b4.prototype,"ariaLabel",void 0);_.G([_.y({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],b4.prototype,"useIcons",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],b4.prototype,"disableBackdropFilter",void 0);_.G([_.hG("#items"),_.q("design:type",Object)],b4.prototype,"items",void 0);_.G([_.hG("ytd-menu-popup-tip-renderer"),_.q("design:type",Object)],b4.prototype,"popupTip",void 0);_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],b4.prototype,"onPopupOpened",null);
_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],b4.prototype,"onPopupClosed",null);_.G([_.dX({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],b4);
_.e(b4,"ytd-menu-popup-renderer",function(){if($9p!==void 0)return $9p;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return $9p=H},{mode:1});var qQp;var h3p=_.r(function(H){H=_.Ec(H,{icon:void 0});var U=H.data;H=H.icon;var A=function(){return U().iconBadgeText},M={},W=_.CG("yt-spec-icon-badge-shape",function(){a:switch(U().iconBadgeType){case "notification":var w="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":w="yt-spec-icon-badge-shape--type-cart";break a;default:w=""}return w},function(){a:switch(U().iconBadgeStyle){case "overlay":var w="yt-spec-icon-badge-shape--style-overlay";
break a;default:w=""}return w},(M["yt-spec-icon-badge-shape--text-size-small"]=function(){var w=A();
return!!((w==null?0:w.length)&&w.length>2)},M));
return _.Z("yt-icon-badge-shape",null,_.Z(_.K,{cond:H,then:function(w){return _.Z("div",{class:W},_.Z("div",{class:"yt-spec-icon-badge-shape__icon"},_.Z(_.er,{icon:w})),_.Z(_.K,{cond:A,then:function(d){return _.Z("div",{class:"yt-spec-icon-badge-shape__badge"},d)}}))}}))},"dl");
h3p.idomCompat=!0;_.LG(h3p,"yt-icon-badge-shape",{props:{data:_.sY,icon:_.sY}});var df=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};H.unseenCount=0;H.isOverlay=!1;return H};
_.R(df,_.B);_.X=df.prototype;_.X.attached=function(){var H=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(U){H.onServiceWorkerMessage(U)})};
_.X.onDataChanged=function(){this.isAttached&&!this.JSC$22626_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$22626_lastData=this.data};
_.X.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.X.computeIcon=function(){var H,U;return(H=this.data)==null?void 0:(U=H.icon)==null?void 0:U.iconType};
_.X.onServiceWorkerMessage=function(H){H.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.X.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.p(this.data.updateUnseenCountEndpoint,_.GR)&&_.p(this.data.updateUnseenCountEndpoint,_.GR).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.X.handleUpdateNotificationsUnseenCountAction=function(H){var U=this;H=_.p(H,ijY);H!=null&&H.unseenCount&&H.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(H.unseenCount),_.Fl.addLowPriorityJob(function(){U.data.updateUnseenCountEndpoint&&U.ytComponentBehavior.resolveCommand(U.data.updateUnseenCountEndpoint)},H.timeoutMs))};
_.X.onClick=function(){_.cg(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var H=_.Bg(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),U=this.data.menuRequest;H&&H.length===1&&H[0]?_.yr(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):U&&this.ytComponentBehavior.resolveCommand(U)};
_.X.handleTopbarMenuClosedAction=function(H){H==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.X.toggleIconState=function(H){this.iconButton&&(this.iconButton.pressed=H)};
_.X.sendUnseenCountRequest=function(H){var U=this;_.bM(_.Fl,function(){U.ytComponentBehavior.resolveCommand(H)})};
_.X.updateCountUI=function(H){this.set("unseenCount",H<9?H:"9+")};
_.D5.Object.defineProperties(df.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
df.prototype.handleUpdateNotificationsUnseenCountAction=df.prototype.handleUpdateNotificationsUnseenCountAction;df.prototype.onDataChanged=df.prototype.onDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],df.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],df.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.m1),_.q("design:type",Object)],df.prototype,"ytdOpenPopupBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],df.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],df.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],df.prototype,"unseenCount",void 0);_.G([_.y(),_.q("design:type",Object)],df.prototype,"isOverlay",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],df.prototype,"showTooltips",void 0);_.G([_.hG("yt-icon-button"),_.q("design:type",Object)],df.prototype,"iconButton",void 0);
_.G([_.a("unseenCount"),_.q("design:type",Object),_.q("design:paramtypes",[])],df.prototype,"showNotificationCount",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],df.prototype,"onDataChanged",null);_.G([_.Gl("yt-update-notifications-unseen-count-action"),_.q("design:type",Function),_.q("design:paramtypes",[Object]),_.q("design:returntype")],df.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.G([_.dX({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],df);
_.e(df,"ytd-notification-topbar-button-renderer",function(){if(qQp!==void 0)return qQp;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return qQp=H},{mode:2});var k7h;var Oi=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return H};
_.R(Oi,_.B);Oi.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}}}}}};
Oi.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Oi.prototype.onDarkModeToggled=function(H){this.dark=H};
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Oi.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Oi.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Oi.prototype,"data",void 0);_.G([_.y({value:!0,reflectToAttribute:!0}),_.q("design:type",Boolean)],Oi.prototype,"dark",void 0);
_.G([_.dX({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Oi);
_.e(Oi,"yt-pdg-buy-flow-header-renderer",function(){if(k7h!==void 0)return k7h;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return k7h=H},{mode:1});var vIy;var T9$;var u4=function(){var H=_.B.apply(this,arguments)||this;H.immediateValue=0;H.isDarkTheme=!1;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.R(u4,_.B);_.X=u4.prototype;_.X.created=function(){_.dS.requestAvailability()};
_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.X.dataChanged=function(){var H=_.c4(this.hostElement).querySelector("#color-slider");H.immediateValue&&this.updateSliderKnobAndGradientStyles(H.immediateValue);this.data.notches[0].knobColorArgb&&_.Dt(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.bN(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.gD("HTML_DIR")==="rtl"&&_.c4(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.X.onSliderImmediateChange=function(){var H=_.c4(this.hostElement).querySelector("#color-slider");H.dragging&&(H.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(H.immediateValue),this.updateSliderKnobAndGradientStyles(H.immediateValue)),this.updateSliderAria())};
_.X.onSliderChange=function(){var H=_.c4(this.hostElement).querySelector("#color-slider");H.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(H.immediateValue),this.updateSliderKnobAndGradientStyles(H.immediateValue));this.updateSliderAria()};
_.X.updateSliderAria=function(){var H=_.c4(this.hostElement).querySelector("#color-slider"),U=_.c4(this.hostElement).querySelector("#color-slider");U=_.Sp(this.data.notches[U.immediateValue].tierValue);_.P7M()&&_.cg(this.hostElement,"iron-announce",{text:U});H.setAttribute("aria-valuetext",U)};
_.X.updateSuperThanksSelectedTierEntity=function(H){if(H!==this.immediateValue){var U,A,M=this==null?void 0:(U=this.data)==null?void 0:(A=U.superThanksSelectedTierEntity)==null?void 0:A.key;M&&M.length>0&&this.ytdReduxBehavior.dispatch(_.hs("superThanksSelectedTierEntity",M,{key:M,index:H}))}};
_.X.onDarkModeToggledAction=function(H){this.isDarkTheme=H};
_.X.updateSliderKnobAndGradientStyles=function(H){this.immediateValue=H;H=this.data.notches[H];if(H==null?0:H.knobColorArgb)var U={"--ytd-pdg-color-slider-knob-color":_.bN(H.knobColorArgb)};(H==null?0:H.linearGradientCssStyle)&&U!==null&&(U=Object.assign({},U,{"--ytd-pdg-color-slider-active-color":H==null?void 0:H.linearGradientCssStyle}));U!==null&&_.Dt(this.hostElement,U)};
u4.prototype.onSliderChange=u4.prototype.onSliderChange;u4.prototype.onSliderImmediateChange=u4.prototype.onSliderImmediateChange;u4.prototype.dataChanged=u4.prototype.dataChanged;_.G([_.y(),_.q("design:type",Object)],u4.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],u4.prototype,"immediateValue",void 0);_.G([_.y(),_.q("design:type",Number)],u4.prototype,"maxMarkers",void 0);
_.G([_.y({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:ZEk}),_.q("design:type",Object)],u4.prototype,"superThanksSelectedTierEntity",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],u4.prototype,"isDarkTheme",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],u4.prototype,"ytdReduxBehavior",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],u4.prototype,"dataChanged",null);
_.G([_.Gl("immediate-value-change"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],u4.prototype,"onSliderImmediateChange",null);_.G([_.Gl("change"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],u4.prototype,"onSliderChange",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],u4);
_.e(u4,"ytd-pdg-color-slider-renderer",function(){if(T9$!==void 0)return T9$;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return T9$=H},{mode:1});var joB;var ISf;var ZI=null;
_.MD({is:"ytd-comment-input",_template:function(){if(ISf!==void 0)return ISf;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return ISf=H},
behaviors:[_.gT_.YtHostElementBehavior,_.le,_.uK.YtComponentBehavior,_.gv.YtRendererstamperBehavior,_.SLh.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 _.Fn}},
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",_.lN(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;_.$G();this.focus()},
detached:function(){document.removeEventListener("tap",_.lN(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(H){H=H.detail;H=H.isCustomEmoji?H.shortcuts[0]:H.emojiId;var U=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(U,H);this.maybeUpdateTextDirection_();_.cg(this.hostElement,"input")},
getInputRange_:function(){var H=_.TS();if(H){H=H.getBrowserRangeObject();for(var U=H.commonAncestorContainer;U;){if(U===this.getEditableTextArea_())return H;U=U.parentNode}}H=this.getEditableTextArea_();H=_.QB(H,H.childNodes.length);H.select();return H.getBrowserRangeObject()},
insertTextWithEmojis_:function(H,U,A){(U=this.emojiManager.createDocumentFragment(U,!0,!1,A===void 0?!0:A))&&U.childNodes.length!==0&&(H.collapsed||H.deleteContents(),A=U.lastChild,H.insertNode(U),_.xem(A).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var H=_.TS();if(H){var U=H.JSC$11653_getStartNode(),A=H.JSC$11653_getEndNode();if(rIk(U)&&rIk(A)){var M=H.JSC$11653_getStartOffset(),W;if(_.ed&&U.nodeType===Node.ELEMENT_NODE&&(W=_.Zpk(U)))_.QB(W,0).select();else{W=o3(U)?U:_.Kp(U,o3);var w=o3(A)?A:_.Kp(A,o3);if(W||w)if(H.isCollapsed()){if(U.nodeType===Node.TEXT_NODE){H=!0;M===U.length&&(H=!1);if(ZI==="end"||ZI==="right")H=!1;U=U.parentNode;H=[].concat(_.vI(U.parentNode.childNodes)).indexOf(U)+(H?0:1);_.QB(U.parentNode,
H).select()}}else W?W.previousSibling&&W.previousSibling.length>0?_.VB(A,H.JSC$11653_getEndOffset(),W.previousSibling,W.previousSibling.length-1).select():(U=document.createTextNode("\u200b"),W.parentNode.insertBefore(U,W),_.VB(A,H.JSC$11653_getEndOffset(),U,0).select()):w&&(w.nextSibling&&w.nextSibling.length>0?_.VB(U,H.JSC$11653_getStartOffset(),w.nextSibling,1).select():(A=document.createTextNode("\u200b"),w.parentNode.insertBefore(A,w.nextSibling),_.VB(U,H.JSC$11653_getStartOffset(),A,A.length).select()));
ZI=null}}else ZI=null}else ZI=null},
leftKeyPressed_:function(){ZI="left"},
rightKeyPressed_:function(){ZI="right"},
endKeyPressed_:function(){ZI="end"},
maybeDeleteChip_:function(){var H=qPX(!0);if(H){var U=_.TS(),A=U.JSC$11653_getStartNode();U=U.JSC$11653_getStartOffset();_.I$(A,U,H,H.childNodes.length).select()}},
maybeBackspaceChip_:function(){var H=qPX(!1);if(H){var U=_.TS(),A=U.JSC$11653_getStartNode();U=U.JSC$11653_getStartOffset();_.I$(A,U,H,0).select()}},
maybeBackspaceChipWordMode_:function(H){var U=_.TS();if(U.isCollapsed()){var A=U.JSC$11653_getStartNode();U=U.JSC$11653_getStartOffset();var M=hoy(A,U,!0);M&&(_.I$(A,U,M,0).select(),document.execCommand("delete"),H.preventDefault(),H.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(H){var U=_.TS();if(U.isCollapsed()){var A=U.JSC$11653_getStartNode();U=U.JSC$11653_getStartOffset();var M=hoy(A,U,!1);M&&(_.I$(A,U,M,M.childNodes.length).select(),document.execCommand("delete"),H.preventDefault(),H.stopImmediatePropagation())}},
onContentClick:function(H){H.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(H){H.defaultPrevented||H.currentTarget.tagName==="YTD-COMMENT-INPUT"&&o3(H.target)&&H.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.c4(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.c4(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(H,U){H=DPk(H,this.emojiManager,U).cloneNode(!0);for(U=H.firstChild;U;)if(U.nodeType!==1)U=U.nextSibling;else switch(U.tagName){case "BR":var A=_.OR();_.nl3(A,U);U=A.nextSibling;break;case "DIV":(A=U.lastChild)&&U.nextSibling&&_.JJ(_.OR(),A);U.previousSibling&&(U.previousSibling.nodeType===1||U.previousSibling.nodeType===3&&!U.previousSibling.textContent.endsWith("\n"))&&_.ft(_.OR(),U);A&&A.nodeName==="BR"&&_.U5(A);A=U;U.hasChildNodes()?(U=U.firstChild,
_.NGz(A)):(U=U.nextSibling,_.U5(A));break;default:U=U.nextSibling}return koh(H)},
setTextAreaValue:function(H){H||(H="");var U=this.getEditableFormattedString_();U.text="";this.getEditableTextArea_().innerText="";typeof H==="string"&&(H={runs:[{text:H}]});U.text=H},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();ZI=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var H=this.getEditableTextArea_();H&&(_.QB(H,H.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.gD("HTML_DIR")==="rtl"){var H=this.getEditableTextArea_(),U=this.getTextAreaValue()!==""?"auto":"rtl";H.setAttribute("dir",U)}},
handleInputEvent_:function(){var H=null;if(this.isEmojiButtonDisplayed){var U=this.getInputRange_();U&&(H=this.emojiInput.retrieveTextBeforeRange(U))}this.insertText_(H,!0);this.updateCharCount_();H=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=H.scrollHeight>H.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var H=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:H})},
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(H){this.isEmojiButtonDisplayed&&(H.preventDefault(),H.stopImmediatePropagation(),H=H.clipboardData.getData("text/plain"),this.insertText_(H,!1,!1),_.cg(this.hostElement,"input"))},
insertText_:function(H,U,A){U=U===void 0?!1:U;A=A===void 0?!0:A;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&H){var M=this.getInputRange_().cloneRange();this.emojiManager&&M&&(U&&this.emojiInput.offsetStartOfRangeBy(M,H.length),this.insertTextWithEmojis_(M,H,A),eok(this.getEditableTextArea_().lastChild)||(M=this.getInputRange_().cloneRange()),M&&(this.emojiInput.updateSuggestions(M,H),this.updateSuggestionOffset_(M)))}},
getSimpleString:_.Sp,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(H){return H?"focused":"not-focused"},
computePlaceholderText_:function(H){return this.getSimpleString(H)},
computeEditableText_:function(H){return this.getSimpleString(H)},
onPrefilledContentDismissed_:function(H){H.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(H,U){H?this.fire("yt-autonav-pause-focus"):U!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(H){var U=this.getEditableTextArea_();[].concat(_.vI(H.dataTransfer.items)).forEach(function(A){A.kind==="string"&&A.type.match("^text/plain")&&A.getAsString(function(M){U.appendChild(document.createTextNode(M))})});
H.preventDefault()},
preventDefault_:function(H){H.preventDefault()},
onSuggestionInsert_:function(H){this.insertTextWithEmojis_(H.detail.range,H.detail.text)},
onEmojiSuggestionClick_:function(H){this.emojiInput.insertSuggestion(H.detail)},
updateSuggestionOffset_:function(H){if(this.emojiInput&&_.c4(this.emojiInput).querySelector("#dropdown")){var U=this.getEditableTextArea_().getBoundingClientRect().bottom,A=H.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(U-A)+5;U=this.getEditableTextArea_().getBoundingClientRect().left;H=H.getBoundingClientRect().left-U;_.c4(this.emojiInput).querySelector("#dropdown").style.marginLeft=H+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Sx("yt-post"));return this.localStorage}});var f2=function(){var H=_.B.apply(this,arguments)||this;H.currentCommentOptionIndex=0;H.isEmojiPickerDisplayed=!1;H.emojiManager=_.Fn;H.isUgcEmpty=!1;H.userGeneratedCommentChangedHandler=function(){_.cg(H.hostElement,"ytd-pdg-user-generated-comment-changed");H.isEmojiYtdCommentInputEnabled&&(H.isUgcEmpty=!H.ytdCommentInputEl.getTextAreaValue())};
H.pasteHandler=function(U){U.preventDefault();U.stopImmediatePropagation();var A;if(U=(A=U.clipboardData)==null?void 0:A.getData("text/plain"))A=document.getSelection().getRangeAt(0),A.collapsed||A.deleteContents(),U=document.createTextNode(U),A.insertNode(U),A.selectNodeContents(U),A.collapse(!1),U=window.getSelection(),U.removeAllRanges(),U.addRange(A)};
H.onDocumentClick=function(U){if(H.isEmojiPickerDisplayed){var A,M,W;!(U.target instanceof Node)||(A=U.composedPath())!=null&&A.includes(H.editableTextEl)||(M=U.composedPath())!=null&&M.includes(H.emojiButtonEl)||(W=U.composedPath())!=null&&W.includes(H.emojiPickerEl)||(H.isEmojiPickerDisplayed=!1)}};
return H};
_.R(f2,_.B);_.X=f2.prototype;_.X.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.X.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.X.detached=function(){var H;(H=this.contentEl)==null||H.removeEventListener("input",this.userGeneratedCommentChangedHandler);var U;(U=this.contentEl)==null||U.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.X.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.X.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var H;this.contentEl.textContent=this.rendererBehavior.getSimpleString((H=this.data)==null?void 0:H.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.X.reloadEmojis=function(){this.emojiPickerEl&&_.p(this.emojiPicker,_.pcm)&&this.emojiPickerEl.updateEmojiCategories()};
_.X.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Dt(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.X.handleBackgroundColorStyling=function(){var H;if((H=this.currentCommentOption)==null?0:H.commentBackgroundColorArgb){var U;_.Dt(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.bN((U=this.currentCommentOption)==null?void 0:U.commentBackgroundColorArgb)})}else _.Dt(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.X.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var H;(H=this.contentEl)==null||H.focus()}};
_.X.onEditButtonClick=function(H){var U=document.getSelection();U&&this.contentEl&&(H.stopPropagation(),H.preventDefault(),U.selectAllChildren(this.contentEl),U.collapseToEnd())};
_.X.onContentDrop=function(H){var U=this;if(H.dataTransfer){H=_.b(H.dataTransfer.items);for(var A=H.next();!A.done;A=H.next())A=A.value,A.kind==="string"&&A.type.match("^text/plain")&&A.getAsString(function(M){var W;(W=U.contentEl)==null||W.appendChild(document.createTextNode(M))})}};
_.X.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.X.getUserGeneratedCommentText=function(){var H,U=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(H=this.contentEl)==null?void 0:H.textContent;return U?U.trim():""};
_.X.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.X.onEmojiSelect=function(H){this.ytdCommentInputEl.onEmojiSelect(H)};
_.D5.Object.defineProperties(f2.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.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 H;return!((H=this.currentCommentOption)==null||!H.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var H;if(_.p((H=this.currentCommentOption)==null?void 0:H.chipRenderer,_.kmh)){var U;return _.p((U=this.currentCommentOption)==null?void 0:U.chipRenderer,_.kmh)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var H,U;return((H=this.data)==null?0:H.commentOptionRenderers)?_.p((U=this.data)==null?void 0:U.commentOptionRenderers[this.superThanksSelectedTierEntity.index],Wl8):void 0}var A,M;return((A=this.data)==null?0:A.commentOptionRenderers)?_.p((M=this.data)==null?void 0:M.commentOptionRenderers[this.currentCommentOptionIndex],Wl8):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var H;return this.rendererBehavior.getSimpleString((H=this.data)==null?void 0:H.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var H;return this.rendererBehavior.getSimpleString((H=this.data)==null?void 0:H.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var H,U;return(U=_.p((H=this.data)==null?void 0:H.commentDialog,_.$Ak))==null?void 0:U.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var H,U;return(U=_.p((H=this.data)==null?void 0:H.commentDialog,_.$Ak))==null?void 0:U.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var H,U;return(U=_.p((H=this.data)==null?void 0:H.commentDialog,_.$Ak))==null?void 0:U.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var H,U,A=(U=_.p((H=this.data)==null?void 0:H.commentDialog,_.$Ak))==null?void 0:U.emojiPicker;if(!_.p(A,_.pcm)||!_.p(A,_.pcm).categories)return!1;H=function(w){return w.emojiPickerCategoryRenderer?w.emojiPickerCategoryRenderer.emojiIds&&w.emojiPickerCategoryRenderer.emojiIds.length>0:w.emojiPickerUpsellCategoryRenderer?w.emojiPickerUpsellCategoryRenderer.emojis&&w.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var M,W;return((M=_.p(A,_.pcm))==null?0:(W=M.categories)==null?0:W.find(H))?!0:!1}}});
f2.prototype.onEmojiSelect=f2.prototype.onEmojiSelect;f2.prototype.dataChanged=f2.prototype.dataChanged;f2.prototype.currentCommentOptionChanged=f2.prototype.currentCommentOptionChanged;_.G([_.g(_.dF),_.q("design:type",Object)],f2.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],f2.prototype,"rendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],f2.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.hG("#content-dom-if"),_.q("design:type",_.wX)],f2.prototype,"contentDomIfEl",void 0);_.G([_.hG("#content-no-emojis"),_.q("design:type",HTMLElement)],f2.prototype,"contentEl",void 0);_.G([_.hG("#container"),_.q("design:type",HTMLElement)],f2.prototype,"containerEl",void 0);_.G([_.hG("#comment-chip-container"),_.q("design:type",HTMLElement)],f2.prototype,"paidCommentChipContainerEl",void 0);_.G([_.hG("#text-input"),_.q("design:type",HTMLElement)],f2.prototype,"editableTextEl",void 0);
_.G([_.hG("#emoji-button"),_.q("design:type",HTMLElement)],f2.prototype,"emojiButtonEl",void 0);_.G([_.hG("#emoji-picker > yt-emoji-picker-renderer"),_.q("design:type",Object)],f2.prototype,"emojiPickerEl",void 0);_.G([_.hG("#text-input > ytd-comment-input"),_.q("design:type",Object)],f2.prototype,"ytdCommentInputEl",void 0);_.G([_.y(),_.q("design:type",Object)],f2.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],f2.prototype,"currentCommentOptionIndex",void 0);
_.G([_.y({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:ZEk}),_.q("design:type",Object)],f2.prototype,"superThanksSelectedTierEntity",void 0);_.G([_.y(),_.q("design:type",Object)],f2.prototype,"isEmojiPickerDisplayed",void 0);_.G([_.y(),_.q("design:type",Object)],f2.prototype,"emojiManager",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],f2.prototype,"isUgcEmpty",void 0);
_.G([_.Ya("currentCommentOption"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],f2.prototype,"currentCommentOptionChanged",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],f2.prototype,"dataChanged",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],f2.prototype,"isEmojiYtdCommentInputEnabled",null);
_.G([_.a("data.title"),_.q("design:type",Object),_.q("design:paramtypes",[])],f2.prototype,"title",null);_.G([_.a("data.authorText"),_.q("design:type",Object),_.q("design:paramtypes",[])],f2.prototype,"channelName",null);_.G([_.a("data.commentOptionRenderers","currentCommentOption"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],f2.prototype,"shouldShowPaidCommentChipRenderer",null);
_.G([_.a("data.commentOptionRenderers","currentCommentOption"),_.q("design:type",Object),_.q("design:paramtypes",[])],f2.prototype,"paidCommentChipRenderer",null);_.G([_.a("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],f2.prototype,"currentCommentOption",null);
_.G([_.a("data.defaultCommentText","superThanksSelectedTierEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],f2.prototype,"commentText",null);_.G([_.a("data.placeholderText"),_.q("design:type",Object),_.q("design:paramtypes",[])],f2.prototype,"placeholderText",null);_.G([_.a("data.commentDialog.commentDialogRenderer.editableText"),_.q("design:type",Object),_.q("design:paramtypes",[])],f2.prototype,"editableText",null);
_.G([_.a("data.commentDialog.commentDialogRenderer.emojiButton"),_.q("design:type",Object),_.q("design:paramtypes",[])],f2.prototype,"emojiButton",null);_.G([_.a("data.commentDialog.commentDialogRenderer.emojiPicker"),_.q("design:type",Object),_.q("design:paramtypes",[])],f2.prototype,"emojiPicker",null);
_.G([_.a("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],f2.prototype,"isEmojiButtonDisplayed",null);_.G([_.Gl("yt-emoji-select"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],f2.prototype,"onEmojiSelect",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],f2);
_.e(f2,"ytd-pdg-comment-preview-renderer",function(){if(joB!==void 0)return joB;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return joB=H},{mode:2});var Qo5;var J3=function(){var H=_.B.apply(this,arguments)||this;H.selected=!1;return H};
_.R(J3,_.B);_.X=J3.prototype;_.X.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.X.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.X.dataChanged=function(){this.data&&(_.yf(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Dt(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.bN(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.bN(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.X.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.X.onClick=function(){this.logClick()};
_.X.onKeyboardSelect=function(){_.cg(this.hostElement,"tap");this.onClick()};
_.X.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
J3.prototype.onClick=J3.prototype.onClick;J3.prototype.selectedChanged=J3.prototype.selectedChanged;J3.prototype.dataChanged=J3.prototype.dataChanged;_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],J3.prototype,"componentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.le),_.q("design:type",Object)],J3.prototype,"ironA11yKeysBehavior",void 0);
_.G([_.g(_.sc),_.q("design:type",Object)],J3.prototype,"ironSelectableBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],J3.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],J3.prototype,"shownThumbnail",void 0);_.G([_.y(),_.q("design:type",Object)],J3.prototype,"basePriceText",void 0);_.G([_.y(),_.q("design:type",Object)],J3.prototype,"purchaseCommand",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],J3.prototype,"selected",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],J3.prototype,"dataChanged",null);_.G([_.Ya("selected"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],J3.prototype,"selectedChanged",null);_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],J3.prototype,"onClick",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],J3);
_.e(J3,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(Qo5!==void 0)return Qo5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Qo5=H},{mode:1});var K2=function(){var H=_.B.apply(this,arguments)||this;H.selectedItemIndex=0;H.buyButtonDisabled=!1;return H};
_.R(K2,_.B);_.X=K2.prototype;
_.X.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]]"}}}}}};
_.X.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var H;var U=(H=_.p(this.data.colorSlider,MB$))==null?void 0:H.notches[this.selectedItemIndex].purchaseCommand}else{var A;U=(A=_.p(this.data.selectableItemButtons[this.selectedItemIndex],Xv5))==null?void 0:A.purchaseCommand}if(U){H=_.p(U,_.tLn);H.productData||(H.productData={});var M;H.productData={pdgData:{commentMessageText:(M=this.commentPreviewRenderer)==null?void 0:M.getUserGeneratedCommentText()}};
_.cg(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(U)}}};
_.X.dataChanged=function(){if(this.data){_.Fn.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.Q8n(_.Fn,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Fn.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var H;this.buyButtonDisabled=!((H=_.p(this.data.commentPreview,wvh))==null||!H.placeholderText);this.updatePriceSelectorStatus();var U;if((U=this.data)==null?0:U.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;H=[];this.data.preloadImages&&(H=this.data.preloadImages);
H=H.map(function(A){return _.Rv(A.thumbnails,1920)});
H=_.b(H);for(U=H.next();!U.done;U=H.next())(U=U.value)&&_.D7r(U).thenCatch(function(){_.Na(Error("km"))})}};
_.X.superThanksSelectedTierEntityChanged=function(){var H;(this==null?void 0:(H=this.superThanksSelectedTierEntity)==null?void 0:H.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.X.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.X.updatePriceSelectorStatus=function(){this.isColorSlider?(_.c4(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.c4(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.c4(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.c4(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.X.closeBuyFlow=function(){_.yr(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.X.onUserGeneratedContentChanged=function(){var H;this.buyButtonDisabled=!((H=this.commentPreviewRenderer)==null?0:H.getUserGeneratedCommentText())};
_.X.updateSelectedItemIndexFromBinding=function(H){this.selectedItemIndex=H.detail.value};
_.D5.Object.defineProperties(K2.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.disclaimerText)}}});
K2.prototype.onUserGeneratedContentChanged=K2.prototype.onUserGeneratedContentChanged;K2.prototype.closeBuyFlow=K2.prototype.closeBuyFlow;K2.prototype.selectedItemIndexChanged=K2.prototype.selectedItemIndexChanged;K2.prototype.superThanksSelectedTierEntityChanged=K2.prototype.superThanksSelectedTierEntityChanged;K2.prototype.dataChanged=K2.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],K2.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],K2.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],K2.prototype,"selectedItemIndex",void 0);_.G([_.y(),_.q("design:type",Boolean)],K2.prototype,"isColorSlider",void 0);
_.G([_.y(),_.q("design:type",Object)],K2.prototype,"buyButtonDisabled",void 0);_.G([_.y({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:ZEk}),_.q("design:type",Object)],K2.prototype,"superThanksSelectedTierEntity",void 0);_.G([_.hG("ytd-pdg-comment-preview-renderer"),_.q("design:type",Object)],K2.prototype,"commentPreviewRenderer",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],K2.prototype,"ytdReduxBehavior",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],K2.prototype,"dataChanged",null);_.G([_.Ya("superThanksSelectedTierEntity"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],K2.prototype,"superThanksSelectedTierEntityChanged",null);_.G([_.Ya("selectedItemIndex"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],K2.prototype,"selectedItemIndexChanged",null);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],K2.prototype,"closeBuyFlow",null);_.G([_.Gl("ytd-pdg-user-generated-comment-changed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],K2.prototype,"onUserGeneratedContentChanged",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],K2.prototype,"isDisclaimerTextShown",null);
_.G([_.dX({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],K2);
_.e(K2,"yt-super-vod-buy-flow-content-renderer",function(){if(vIy!==void 0)return vIy;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return vIy=H},{mode:1});var V17;var oW=function(){var H=_.B.apply(this,arguments)||this;H.lottieAnimationRef={};return H};
_.R(oW,_.B);_.X=oW.prototype;_.X.created=function(){_.dS.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.lN(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.X.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.cg(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.X.detached=function(){this.autoCloseJobId&&_.Fl.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.lN(this,this.onPopupIronOverlayOpened))};
_.X.dataChanged=function(){var H=this;this.data&&this.data.autoCloseDelay&&(_.yr(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.av(_.Fl,function(){H.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Dt(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.X.onDOMLoadedLottie=function(){var H=this,U,A,M=Number((U=this.data)==null?void 0:(A=U.autoCloseDelay)==null?void 0:A.seconds)||0;this.fadeOutJobId=_.av(_.Fl,function(){H.lottiePlayerEl.classList.add("fadeout")},(M-.25)*1E3);
this.autoCloseJobId=_.av(_.Fl,function(){H.closePopup()},M*1E3)};
_.X.openPopup=function(){this.ironOverlayBehavior.open()};
_.X.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.yr(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.eb(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.lx().resolve(_.YV).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.Fl.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.Fl.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.X.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var H,U;(H=this.lottieAnimationRef)==null||(U=H.lottieEl)==null||U.destroy();H=this.data.lottie;var A,M;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:H.url+"_"+Math.random(),path:H.url,autoplay:!0,loop:(M=(A=H.settings)==null?void 0:A.loop)!=null?M:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.D5.Object.defineProperties(oW.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var H,U;return!!((H=this.data)==null?0:(U=H.lottie)==null?0:U.url)}}});
oW.prototype.maybeInitializeLottie=oW.prototype.maybeInitializeLottie;oW.prototype.dataChanged=oW.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],oW.prototype,"rendererBehavior",void 0);_.G([_.g(_.Jf),_.q("design:type",Object)],oW.prototype,"ironOverlayBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],oW.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],oW.prototype,"lottiePlayerProps",void 0);
_.G([_.y(),_.q("design:type",Object)],oW.prototype,"lottieAnimationRef",void 0);_.G([_.hG("ytd-lottie-player"),_.q("design:type",HTMLElement)],oW.prototype,"lottiePlayerEl",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],oW.prototype,"dataChanged",null);_.G([_.a("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],oW.prototype,"hasLottieAnimation",null);
_.G([_.Ya("data.lottie.url"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],oW.prototype,"maybeInitializeLottie",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],oW);
_.e(oW,"ytd-desktop-image-overlay-renderer",function(){if(V17!==void 0)return V17;var H=document.createElement("template");_.E(H,'\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="lottie-player style-scope ytd-desktop-image-overlay-renderer" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]">\n</ytd-lottie-player></div>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return V17=H},{mode:1});var Hhj;var Fq=function(){return _.B.apply(this,arguments)||this};
_.R(Fq,_.B);_.X=Fq.prototype;_.X.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"}}}}};
_.X.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",_.lN(this,this.closePopup))};
_.X.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.lN(this,this.closePopup))};
_.X.dataChanged=function(){_.Bg(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.p(this.data.header,A7m)&&(this.hasBackgroundBanner=!!_.p(this.data.header,A7m).backgroundBanner)};
_.X.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.lN(this,this.closePopup))};
_.X.closePopup=function(){this.data&&this.data.onCloseCommand&&_.rs(this.hostElement,[this.data.onCloseCommand])};
Fq.prototype.handleBuyflowSelectionSubmitted=Fq.prototype.handleBuyflowSelectionSubmitted;Fq.prototype.dataChanged=Fq.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Fq.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Fq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Fq.prototype,"data",void 0);
_.G([_.y({value:!0,reflectToAttribute:!0}),_.q("design:type",Boolean)],Fq.prototype,"hasBackgroundBanner",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Fq.prototype,"dataChanged",null);_.G([_.Gl("yt-pdg-buy-flow-selection-submitted"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Fq.prototype,"handleBuyflowSelectionSubmitted",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Fq);
_.e(Fq,"ytd-pdg-buy-flow-renderer",function(){if(Hhj!==void 0)return Hhj;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Hhj=H},{mode:1});var Urj;var PM=function(){var H=_.B.apply(this,arguments)||this;H.isOpen=!1;H.isPlaylistCreated=!1;return H};
_.R(PM,_.B);_.X=PM.prototype;_.X.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.X.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.cg(this.hostElement,"yt-refit")};
_.X.onCreateTap=function(){var H=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.rs(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(U,A){if(!_.S("killswitch_ep_in_create_playlist_response")&&(A==null?0:A.actions))for(U=_.b(A.actions),A=U.next();!A.done;A=U.next())A=A.value,_.p(A,_.XY)&&H.ytComponentBehavior.resolveCommand(A)}}]),this.isPlaylistCreated=!0)};
_.X.onKeydown=function(H){if(H.keyCode===13)this.onCreateTap()};
_.X.onServiceRequestCompleted=function(H){H.stopPropagation();_.yr(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.X.computePrivacyBadge=function(H){return H?[{metadataBadgeRenderer:H}]:[]};
PM.prototype.onServiceRequestCompleted=PM.prototype.onServiceRequestCompleted;PM.prototype.onKeydown=PM.prototype.onKeydown;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],PM.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],PM.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],PM.prototype,"isOpen",void 0);
_.G([_.y(),_.q("design:type",Object)],PM.prototype,"isPlaylistCreated",void 0);_.G([_.y({value:{REQUIRED_LABEL:_.hP("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.hP("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.q("design:type",Object)],PM.prototype,"addToStrings",void 0);_.G([_.y({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.q("design:type",Array)],PM.prototype,"privacyBadge",void 0);
_.G([_.hG("#privacy-input"),_.q("design:type",Object)],PM.prototype,"privacyInput",void 0);_.G([_.hG("#name-input"),_.q("design:type",Object)],PM.prototype,"nameInput",void 0);_.G([_.Gl("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[KeyboardEvent]),_.q("design:returntype")],PM.prototype,"onKeydown",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],PM.prototype,"onServiceRequestCompleted",null);
_.G([_.dX({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],PM);
_.e(PM,"ytd-add-to-playlist-create-renderer",function(){if(Urj!==void 0)return Urj;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Urj=H},{mode:1});var AtS;var MNS;var si=function(){var H=_.B.apply(this,arguments)||this;H.transferState="TRANSFER_STATE_UNKNOWN";return H};
_.R(si,_.B);si.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
si.prototype.onCheckboxChange=function(H){var U=this;this.data&&_.F8(this,"yt-playlist-checkbox-changed",function(){var A=_.Rr(H).checked?U.data.addToPlaylistServiceEndpoint:U.data.removeFromPlaylistServiceEndpoint;A&&_.lx().resolve(_.YV).resolveCommand(A,{form:{element:U.hostElement}});_.S("dl_playlist_killswitch")||U.transferState!=="TRANSFER_STATE_UNKNOWN"&&U.transferState!=="TRANSFER_STATE_FAILED"&&U.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:U.data.playlistId,action:"ACTION_SYNC"}})},
100)};
si.prototype.computeIconType=function(H){return H?"yt-icons:"+H.toLowerCase():null};
si.prototype.dataChanged=si.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],si.prototype,"data",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],si.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],si.prototype,"ytComponentBehavior",void 0);_.G([_.hG("#checkbox"),_.q("design:type",HTMLInputElement)],si.prototype,"checkbox",void 0);
_.G([_.y({selector:_.uE,selectorArgs:["data.playlistId"]}),_.q("design:type",String)],si.prototype,"transferState",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],si.prototype,"dataChanged",null);_.G([_.dX({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],si);
_.e(si,"ytd-playlist-add-to-option-renderer",function(){if(MNS!==void 0)return MNS;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return MNS=H},{mode:1});var WVM=_.r(function(H){var U=H.data;return _.Z("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.Z("div",null,_.Z(_.Pb,{text:function(){return U().title}})),_.Z(_.K,{cond:function(){return U().subtitle},
then:function(A){return _.Z("div",{class:"ytdMenuTitleRendererSubtitle"},_.Z(_.Pb,{text:A}))}}))},"el");
WVM.idomCompat=!0;_.LG(WVM,"ytd-menu-title-renderer",{props:{data:_.sY}});var n2=function(){var H=_.B.apply(this,arguments)||this;H.addToStrings={ADD_TO_DROPDOWN_LABEL:_.hP("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};H.closeButtonAriaLabel=_.hP("SBOX_INAPPROPRIATE_CANCEL");H.dialog=_.S("desktop_add_to_playlist_renderer_dialog_popup");return H};
_.R(n2,_.B);_.X=n2.prototype;_.X.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"}}}};
_.X.onPopupOpened=function(){_.B4(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.X.onPopupClosed=function(){_.B4(this.playlists,"scrollable",!1)};
_.X.computeAriaLabel=function(){var H;if(this==null?0:(H=this.data)==null?0:H.actions){H=_.b(this.data.actions);for(var U=H.next();!U.done;U=H.next())if(U=U.value,U.menuTitleRenderer)return _.Sp(U.menuTitleRenderer.title)}};
_.X.onTapClose=function(){_.yr(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.D5.Object.defineProperties(n2.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var H;if(this==null?0:(H=this.data)==null?0:H.actions){H=_.b(this.data.actions);for(var U=H.next();!U.done;U=H.next())if(U=U.value,U.menuTitleRenderer)return U.menuTitleRenderer}return!1}}});
n2.prototype.onPopupClosed=n2.prototype.onPopupClosed;n2.prototype.onPopupOpened=n2.prototype.onPopupOpened;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],n2.prototype,"ytEventForwardingBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],n2.prototype,"ytRendererStamperBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],n2.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],n2.prototype,"addToStrings",void 0);_.G([_.y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.q("design:type",String)],n2.prototype,"ariaLabel",void 0);_.G([_.y(),_.q("design:type",String)],n2.prototype,"closeButtonAriaLabel",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],n2.prototype,"dialog",void 0);
_.G([_.hG("#playlists"),_.q("design:type",HTMLElement)],n2.prototype,"playlists",void 0);_.G([_.hG("ytd-add-to-playlist-create-renderer"),_.q("design:type",Object)],n2.prototype,"createRenderer",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],n2.prototype,"menuTitleRenderer",null);_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],n2.prototype,"onPopupOpened",null);
_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],n2.prototype,"onPopupClosed",null);_.G([_.dX({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],n2);
_.e(n2,"ytd-add-to-playlist-renderer",function(){if(AtS!==void 0)return AtS;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return AtS=H},{mode:1});var wFy;var Ni=function(){var H=_.B.apply(this,arguments)||this;H.isPlaylistEditComplete=!1;H.isCollabEngagementDisabled=!1;H.closeButtonAriaLabel=_.hP("SBOX_INAPPROPRIATE_CANCEL");H.saveButton={title:_.hP("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"};H.onValueChanged=function(){H.updateSaveButtonState();H.computeCollabEngagementDisabled()};
return H};
_.R(Ni,_.B);_.X=Ni.prototype;_.X.attached=function(){this.JSC$22680_scroller&&(this.JSC$22680_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22680_scroller.attached&&typeof this.JSC$22680_scroller.attached==="function"&&this.JSC$22680_scroller.attached())};
_.X.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.X.onPopupClosed=function(){this.reset()};
_.X.close=function(){_.yr(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.X.onClickSave=function(){var H=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var U=[];this.nameInput.value!==null&&U.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&U.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var A=Number(this.privacyInput.value);isNaN(A)||U.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:A})}this.votingInput.value!==null&&(A=this.votingInput.value)&&U.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:A});if(U.length>0){var M;_.p((M=this.data)==null?void 0:M.updateSettingsEndpoint,_.dk).actions=U;var W;if((W=this.data)==null?0:W.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){H.close()}}}),this.isPlaylistEditComplete=!0}}};
_.X.computePrivacyBadge=function(H){return H?[{metadataBadgeRenderer:H}]:[]};
_.X.computeEditorData=function(H){var U,A;return H==null?void 0:(U=H.sections)==null?void 0:(A=U[0])==null?void 0:A.playlistSettingsEditorCasualSectionRenderer};
_.X.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.X.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}}}}}};
_.X.computeAriaLabel=function(){var H,U,A,M=(H=this.data)==null?void 0:(U=H.sections)==null?void 0:(A=U[0])==null?void 0:A.playlistSettingsEditorCasualSectionRenderer;return _.Sp(M==null?void 0:M.title)};
_.X.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"}))};
_.X.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.X.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.X.isNameChanged=function(){var H,U,A;return(((H=this.editorData)==null?void 0:(U=H.name)==null?void 0:(A=U.textInputFormFieldRenderer)==null?void 0:A.value)||"")!==(this.nameInput.value||"")};
_.X.isDescriptionChanged=function(){var H,U,A;return(((H=this.editorData)==null?void 0:(U=H.description)==null?void 0:(A=U.textInputFormFieldRenderer)==null?void 0:A.value)||"")!==(this.descriptionInput.value||"")};
_.X.isPrivacyChanged=function(){var H,U,A,M,W,w,d,O;return((d=(H=this.editorData)==null?void 0:(U=H.privacy)==null?void 0:(A=U.dropdownFormFieldRenderer)==null?void 0:(M=A.dropdown)==null?void 0:(W=M.dropdownRenderer)==null?void 0:(w=W.entries)==null?void 0:w.find(function(f){var J;return f==null?void 0:(J=f.privacyDropdownItemRenderer)==null?void 0:J.isSelected}))==null?void 0:(O=d.privacyDropdownItemRenderer)==null?void 0:O.int32Value)!==this.privacyInput.value};
_.X.isVotingChanged=function(){var H,U,A,M,W,w,d,O;return((d=(H=this.editorData)==null?void 0:(U=H.voting)==null?void 0:(A=U.dropdownFormFieldRenderer)==null?void 0:(M=A.dropdown)==null?void 0:(W=M.dropdownRenderer)==null?void 0:(w=W.entries)==null?void 0:w.find(function(f){var J;return f==null?void 0:(J=f.privacyDropdownItemRenderer)==null?void 0:J.isSelected}))==null?void 0:(O=d.privacyDropdownItemRenderer)==null?void 0:O.int32Value)!==this.votingInput.value};
Ni.prototype.onPopupClosed=Ni.prototype.onPopupClosed;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Ni.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],Ni.prototype,"ytEventForwardingBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Ni.prototype,"ytRendererStamperBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],Ni.prototype,"data",void 0);_.G([_.y({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.q("design:type",Array)],Ni.prototype,"privacyBadge",void 0);_.G([_.y({computed:"computeEditorData(data)"}),_.q("design:type",Object)],Ni.prototype,"editorData",void 0);_.G([_.y(),_.q("design:type",Object)],Ni.prototype,"isPlaylistEditComplete",void 0);_.G([_.y(),_.q("design:type",Object)],Ni.prototype,"isCollabEngagementDisabled",void 0);
_.G([_.y({value:{REQUIRED_LABEL:_.hP("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.hP("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.q("design:type",Object)],Ni.prototype,"addToStrings",void 0);_.G([_.y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.q("design:type",String)],Ni.prototype,"ariaLabel",void 0);_.G([_.y(),_.q("design:type",String)],Ni.prototype,"closeButtonAriaLabel",void 0);
_.G([_.y(),_.q("design:type",Object)],Ni.prototype,"saveButton",void 0);_.G([_.hG("#name-input"),_.q("design:type",Object)],Ni.prototype,"nameInput",void 0);_.G([_.hG("#description-input"),_.q("design:type",Object)],Ni.prototype,"descriptionInput",void 0);_.G([_.hG("#privacy-input"),_.q("design:type",Object)],Ni.prototype,"privacyInput",void 0);_.G([_.hG("#voting-input"),_.q("design:type",Object)],Ni.prototype,"votingInput",void 0);
_.G([_.hG("#scroller"),_.q("design:type",Object)],Ni.prototype,"JSC$22680_scroller",void 0);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ni.prototype,"onPopupClosed",null);_.G([_.y(),_.q("design:type",Object)],Ni.prototype,"onValueChanged",void 0);_.G([_.dX({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Ni);
_.e(Ni,"ytd-playlist-settings-editor-renderer",function(){if(wFy===void 0){var H=document.createElement("template");_.E(H,'\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]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" 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]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" 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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);wFy=H}H=wFy;return H},{mode:1});var XFN;_.Qm("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var SW=function(){return _.B.apply(this,arguments)||this};
_.R(SW,_.B);_.X=SW.prototype;_.X.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}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.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 H=this.get("data.nextButton.buttonRenderer.navigationEndpoint");H&&(this.nextNavigationEndpoint=H,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.X.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 H={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",H)}}};
_.X.onPopupOpened=function(H){H.detail!==this&&H.detail!==this.hostElement||!_.S("enable_premium_voluntary_pause")||_.yr(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.X.onNextButtonTap=function(){var H=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);H&&this.ytdOpenPopupBehavior.openPopup(H)};
_.X.updateSelectedResponseIndexFromBinding=function(H){this.selectedResponseIndex=H.detail.value};
SW.prototype.onPopupOpened=SW.prototype.onPopupOpened;SW.prototype.onSelectedResponseIndexChange=SW.prototype.onSelectedResponseIndexChange;SW.prototype.dataChanged=SW.prototype.dataChanged;_.G([_.g(_.m1),_.q("design:type",Object)],SW.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],SW.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],SW.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Number)],SW.prototype,"selectedResponseIndex",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],SW.prototype,"dataChanged",null);_.G([_.Ya("selectedResponseIndex"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],SW.prototype,"onSelectedResponseIndexChange",null);
_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],SW.prototype,"onPopupOpened",null);_.G([_.dX({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],SW);
_.e(SW,"ytd-red-cancel-survey-renderer",function(){if(XFN!==void 0)return XFN;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return XFN=H},{mode:1});var ih5;var p2=function(){var H=_.B.apply(this,arguments)||this;H.closeButtonAriaLabel=_.hP("SBOX_INAPPROPRIATE_CANCEL");return H};
_.R(p2,_.B);p2.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
p2.prototype.onClickClose=function(){_.yr(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],p2.prototype,"rendererStamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],p2.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],p2.prototype,"closeButtonAriaLabel",void 0);_.G([_.dX({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],p2);
_.e(p2,"ytd-search-filter-options-dialog-renderer",function(){if(ih5!==void 0)return ih5;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return ih5=H},{mode:1});var bhe;var jHB=function(){return function(H){H=H.availabilityType;return H===void 0||H==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||H==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var L2=function(){var H=_.B.apply(this,arguments)||this;H.qualityOptions=[];H.upsellOptions=[];H.showUpsellSection=!1;H.rememberSettingsChecked=!1;return H};
_.R(L2,_.B);_.X=L2.prototype;_.X.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}}}}};
_.X.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.X.updateQualityOptions=function(){if(this.formats===void 0)_.yr(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var H=[],U=[];this.showUpsellSection=!1;for(var A=_.b(this.formats),M=A.next();!M.done;M=A.next())(M=M.value)&&(M.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?U.push(M):H.push(M));H.length&&(this.qualityOptions=TjY(H));U.length&&(this.showUpsellSection=!0,this.upsellOptions=TjY(U))}};
_.X.updateRememberString=function(){if(this.downloadQualityPickerEntity)var H=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var U;H=(U=this.data)==null?void 0:U.premiumRememberSettingString}else{var A;H=(A=this.data)==null?void 0:A.rememberSettingString}H=H===void 0?_.hP("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):H;this.rememberSettingsCheckboxRenderer={title:_.gH(H),disabled:!1}};
_.X.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.D5.Object.defineProperties(L2.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var H;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(H=this.data)==null?void 0:H.qualityFormats}}});
L2.prototype.updateRememberString=L2.prototype.updateRememberString;L2.prototype.updateQualityOptions=L2.prototype.updateQualityOptions;L2.prototype.dataChanged=L2.prototype.dataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],L2.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],L2.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],L2.prototype,"data",void 0);
_.G([_.g(_.dF),_.q("design:type",Object)],L2.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Boolean)],L2.prototype,"selectedUpsellQuality",void 0);_.G([_.y({computed:"computeIcon_(data.premiumIcon)",value:""}),_.q("design:type",String)],L2.prototype,"premiumIcon",void 0);_.G([_.y({selector:n8f,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.q("design:type",Object)],L2.prototype,"downloadQualityPickerEntity",void 0);
_.G([_.y(),_.q("design:type",Array)],L2.prototype,"qualityOptions",void 0);_.G([_.y(),_.q("design:type",Array)],L2.prototype,"upsellOptions",void 0);_.G([_.y(),_.q("design:type",Object)],L2.prototype,"showUpsellSection",void 0);_.G([_.y(),_.q("design:type",Object)],L2.prototype,"rememberSettingsCheckboxRenderer",void 0);_.G([_.hG("#remember-settings"),_.q("design:type",HTMLInputElement)],L2.prototype,"rememberSettingsCheckbox",void 0);
_.G([_.y(),_.q("design:type",Object)],L2.prototype,"rememberSettingsChecked",void 0);_.G([_.y(),_.q("design:type",Function)],L2.prototype,"onRememberSettingsCheckedChanged",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],L2.prototype,"dataChanged",null);_.G([_.Ya("downloadQualityPickerEntity"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],L2.prototype,"updateQualityOptions",null);
_.G([_.Ya("selectedUpsellQuality"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],L2.prototype,"updateRememberString",null);_.G([_.dX({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],L2);
_.e(L2,"ytd-download-quality-selector-content",function(){if(bhe!==void 0)return bhe;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return bhe=H},{mode:1});var drS;var RW=function(){var H=_.B.apply(this,arguments)||this;H.selectedUpsellQuality=!1;H.qualityOptions=[];H.useUpsellDismissAlternate=_.S("use_not_now_dl_upsell_dismiss_cta");H.shouldShowAlternateUpsellDimiss=!1;H.rememberSettings=!1;H.rememberSettingsChecked=!1;H.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};H.rememberSettingsCheckedChanged=function(U){H.rememberSettingsChecked=U};
return H};
_.R(RW,_.B);_.X=RW.prototype;
_.X.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.gH(_.hP("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.gH(_.hP("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.gH(_.hP("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.gH(_.hP("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.X.updateQualityOptions=function(){this.formats===void 0?_.yr(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=TjY(this.formats)};
_.X.onQualityOptionsSelect=function(H){if(this.qualityOptions&&H){H!==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 U=_.b(this.qualityOptions.entries()),A=U.next();!A.done;A=
U.next()){A=_.b(A.value);var M=A.next().value;A=A.next().value;var W=void 0,w=void 0;if(((W=A)==null?void 0:(w=W.settingsRadioOptionRenderer)==null?void 0:w.id)===H){this.selectedQualityIndex=M;H=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((H=this.formats[M])==null?void 0:H.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.X.onClickSubmit=function(){var H;if((H=this.downloadButtonRenderer)==null||!H.isDisabled){var U,A;H=(A=(U=this.data)==null?void 0:U.onSubmitEndpoint)!=null?A:{};var M,W;if(this.formats&&(((M=_.p(H,_.eI))==null?0:M.videoId)||((W=_.p(H,_.DW))==null?0:W.playlistId))){var w,d,O,f,J,F;U={formatType:(f=(w=this.formats)==null?void 0:(d=w[(O=this.selectedQualityIndex)!=null?O:0])==null?void 0:d.format)!=null?f:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(J=this.getOfflineEndpoint(H))==null?void 0:(F=J.actionParams)==null?void 0:F.settingsAction)};this.getOfflineEndpoint(H).actionParams=U;this.ytComponentBehavior.resolveCommand(H)}_.yr(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.X.onClickUpsell=function(){var H;if((H=this.upsellButtonRenderer)==null||!H.isDisabled){var U,A;H=(A=(U=this.data)==null?void 0:U.upsellEndpoint)!=null?A:{};this.ytComponentBehavior.resolveCommand(H);_.yr(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);U="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var M,W,w,d;U=(d=(M=this.formats)==null?void 0:(W=M[(w=this.selectedQualityIndex)!=null?w:0])==null?void 0:W.format)!=null?d:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:U}})}};
_.X.onClickClose=function(){_.yr(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.X.getOfflineSettingsAction=function(H,U){return H?U===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":U:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.X.getOfflineEndpoint=function(H){return _.p(H,_.eI)?_.p(H,_.eI):_.p(H,_.DW)};
_.D5.Object.defineProperties(RW.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.gH(_.hP("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var H;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(H=this.data)==null?void 0:H.qualityFormats}}});
RW.prototype.updateQualityOptions=RW.prototype.updateQualityOptions;RW.prototype.dataChanged=RW.prototype.dataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],RW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],RW.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],RW.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],RW.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Number)],RW.prototype,"selectedQualityIndex",void 0);_.G([_.y(),_.q("design:type",Object)],RW.prototype,"selectedUpsellQuality",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],RW.prototype,"ytdReduxBehavior",void 0);
_.G([_.y({selector:n8f,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.q("design:type",Object)],RW.prototype,"downloadQualityPickerEntity",void 0);_.G([_.y(),_.q("design:type",Array)],RW.prototype,"qualityOptions",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],RW.prototype,"useUpsellDismissAlternate",void 0);_.G([_.y(),_.q("design:type",Object)],RW.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.G([_.y(),_.q("design:type",Object)],RW.prototype,"downloadButtonRenderer",void 0);_.G([_.y(),_.q("design:type",Object)],RW.prototype,"upsellButtonRenderer",void 0);_.G([_.y(),_.q("design:type",Object)],RW.prototype,"cancelButtonRenderer",void 0);_.G([_.y(),_.q("design:type",Object)],RW.prototype,"upsellCancelButtonRenderer",void 0);_.G([_.y(),_.q("design:type",Object)],RW.prototype,"rememberSettings",void 0);_.G([_.y(),_.q("design:type",Object)],RW.prototype,"rememberSettingsChecked",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],RW.prototype,"dataChanged",null);_.G([_.Ya("downloadQualityPickerEntity"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],RW.prototype,"updateQualityOptions",null);_.G([_.dX({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],RW);
_.e(RW,"ytd-download-quality-selector-renderer",function(){if(drS!==void 0)return drS;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return drS=H},{mode:1});var OhM;var Ei=function(){return _.B.apply(this,arguments)||this};
_.R(Ei,_.B);Ei.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ei.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"}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Ei.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ei.prototype,"data",void 0);_.G([_.y({computed:"computeIcon_(data.infoIcon)"}),_.q("design:type",Object)],Ei.prototype,"infoIcon",void 0);
_.G([_.y({computed:"computeIcon_(data.warningIcon)"}),_.q("design:type",Object)],Ei.prototype,"warningIcon",void 0);_.G([_.dX({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Ei);
_.e(Ei,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(OhM!==void 0)return OhM;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return OhM=H},{mode:1});var uEj;var mN=function(){return _.B.apply(this,arguments)||this};
_.R(mN,_.B);mN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mN.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"}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],mN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],mN.prototype,"data",void 0);_.G([_.dX({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],mN);
_.e(mN,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(uEj!==void 0)return uEj;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return uEj=H},{mode:1});var ZhN;var gf=function(){return _.B.apply(this,arguments)||this};
_.R(gf,_.B);gf.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
gf.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"}}}}};
gf.prototype.onServiceRequestSentOrCompleted=function(H,U){U&&U.actions&&U.actions.length>0&&_.yr(this.hostElement,"yt-close-popup-action",[this.is])};
gf.prototype.onServiceRequestSentOrCompleted=gf.prototype.onServiceRequestSentOrCompleted;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],gf.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],gf.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],gf.prototype,"data",void 0);
_.G([_.Gl("yt-service-request-completed"),_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],gf.prototype,"onServiceRequestSentOrCompleted",null);_.G([_.dX({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],gf);
_.e(gf,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(ZhN!==void 0)return ZhN;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return ZhN=H},{mode:1});var fcN;var aW=function(){var H=_.B.apply(this,arguments)||this;H.submitButtonDisabled=!0;return H};
_.R(aW,_.B);_.X=aW.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.X.onDataChanged=function(){var H,U,A;if(((H=this.data)==null?void 0:(U=H.confirmButton)==null?void 0:(A=U.buttonRenderer)==null?void 0:A.isDisabled)!==void 0){var M,W,w;this.submitButtonDisabled=(M=this.data)==null?void 0:(W=M.confirmButton)==null?void 0:(w=W.buttonRenderer)==null?void 0:w.isDisabled}};
_.X.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.X.updateSubmitButtonDisabledFromBinding=function(H){this.submitButtonDisabled=H.detail.value};
_.X.updateSubmitButtonDisabledFromConfirmCheckbox=function(H){this.submitButtonDisabled=!H.detail.value};
aW.prototype.onDataChanged=aW.prototype.onDataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],aW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],aW.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],aW.prototype,"submitButtonDisabled",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aW.prototype,"onDataChanged",null);_.G([_.dX({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],aW);
_.e(aW,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(fcN!==void 0)return fcN;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return fcN=H},{mode:1});var JtY;var xr=function(){return _.B.apply(this,arguments)||this};
_.R(xr,_.B);_.D5.Object.defineProperties(xr.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var H,U,A;return((H=this.data)==null?void 0:H.title)+" "+((U=this.data)==null?void 0:U.metadataPrimary)+" "+((A=this.data)==null?void 0:A.metadataSecondary)}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],xr.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],xr.prototype,"data",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],xr.prototype,"ariaLabel",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],xr);
_.e(xr,"ytd-compact-product-list-item-renderer",function(){if(JtY!==void 0)return JtY;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return JtY=H},{mode:1});var KVY;var zK=function(){return _.B.apply(this,arguments)||this};
_.R(zK,_.B);zK.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]]"}}}}}};
_.D5.Object.defineProperties(zK.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],zK.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],zK.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],zK);
_.e(zK,"ytd-compact-product-list-renderer",function(){if(KVY!==void 0)return KVY;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return KVY=H},{mode:1});var oc3;var C2=function(){return _.B.apply(this,arguments)||this};
_.R(C2,_.B);_.X=C2.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.X.getBackgroundUrl=function(){var H=this.get("data.headerImage.thumbnails");return H?"url("+_.Rv(H,this.hostElement.clientWidth)+")":""};
_.X.onDataChanged=function(){var H=this.getBackgroundUrl();H&&(this.header.style.backgroundImage=H);H=_.XK();var U=_.ws(),A=this.get("data.trackingParams");A&&U&&H&&_.ou(H,U,_.IS(A));H=_.b(this.hostElement.querySelectorAll("yt-img-shadow"));for(U=H.next();!U.done;U=H.next())U.value.onShow()};
_.X.onPopupClosed=function(H){_.Rr(H).localName==="ytd-membership-post-cancel-renderer"&&_.yr(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
C2.prototype.onPopupClosed=C2.prototype.onPopupClosed;C2.prototype.onDataChanged=C2.prototype.onDataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],C2.prototype,"data",void 0);_.G([_.hG("#header"),_.q("design:type",HTMLDivElement)],C2.prototype,"header",void 0);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],C2.prototype,"onDataChanged",null);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],C2.prototype,"onPopupClosed",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],C2);
_.e(C2,"ytd-membership-post-cancel-renderer",function(){if(oc3!==void 0)return oc3;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return oc3=H},{mode:1});var FV3;var t3=function(){return _.B.apply(this,arguments)||this};
_.R(t3,_.B);t3.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
t3.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],t3.prototype,"data",void 0);_.G([_.hG("ytd-feedback-survey-renderer"),_.q("design:type",Object)],t3.prototype,"feedbackSurveyRenderer",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],t3);
_.e(t3,"ytd-sponsorship-confirm-cancel-content",function(){if(FV3!==void 0)return FV3;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return FV3=H},{mode:1});var P7j;var cM=function(){var H=_.B.apply(this,arguments)||this;H.maybeSubmitFeedback=function(){H.content&&H.content.maybeSubmitFeedback()};
return H};
_.R(cM,_.B);_.X=cM.prototype;_.X.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.X.onYtPopupOpened=function(H,U){U===this&&this.data&&this.data.onOpenCommands&&_.eb(this.hostElement,this.data.onOpenCommands,this.hostElement);_.yr(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.X.onYtPopupClosed=function(H,U){(U&&U.canceled===!0||U&&U.canceled===!1&&U.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.eb(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.X.onYtServiceRequestCompleted=function(){_.yr(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.X.onYtServiceRequestError=function(H){_.oR(this.hostElement,H.detail.error.message)};
_.X.onDataChanged=function(){if(this.isAttached){var H=this.backgroundUrl;H&&(_.c4(this.hostElement).querySelector("#header").style.backgroundImage=H)}};
_.D5.Object.defineProperties(cM.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var H=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return H?"url("+_.Rv(H,this.hostElement.clientWidth)+")":""}}});
cM.prototype.onDataChanged=cM.prototype.onDataChanged;cM.prototype.onYtServiceRequestError=cM.prototype.onYtServiceRequestError;cM.prototype.onYtServiceRequestCompleted=cM.prototype.onYtServiceRequestCompleted;cM.prototype.onYtPopupClosed=cM.prototype.onYtPopupClosed;cM.prototype.onYtPopupOpened=cM.prototype.onYtPopupOpened;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],cM.prototype,"data",void 0);_.G([_.y({value:function(){return _.hP("SBOX_INAPPROPRIATE_CANCEL")}}),
_.q("design:type",String)],cM.prototype,"closeButtonAriaLabel",void 0);_.G([_.hG("#scrollable"),_.q("design:type",Object)],cM.prototype,"scrollable",void 0);_.G([_.hG("ytd-sponsorship-confirm-cancel-content"),_.q("design:type",Object)],cM.prototype,"content",void 0);_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],cM.prototype,"onYtPopupOpened",null);
_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],cM.prototype,"onYtPopupClosed",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],cM.prototype,"onYtServiceRequestCompleted",null);
_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],cM.prototype,"onYtServiceRequestError",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cM.prototype,"onDataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],cM);
_.e(cM,"ytd-sponsorship-confirm-cancel-renderer",function(){if(P7j!==void 0)return P7j;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return P7j=H},{mode:2});var s_5;var yA=function(){return _.B.apply(this,arguments)||this};
_.R(yA,_.B);yA.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],yA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],yA.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],yA);
_.e(yA,"ytd-sponsorships-celebration-content",function(){if(s_5!==void 0)return s_5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return s_5=
H},{mode:1});var ncY;var NKv=_.NP(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),BM=function(){var H=_.B.apply(this,arguments)||this;H.scriptsAppended=!1;H.useFullWidthPrimaryButton=!1;H.buttonOverrides={type:"tonal",style:"overlay-dark"};return H};
_.R(BM,_.B);_.X=BM.prototype;_.X.dataChanged=function(){var H;this.useFullWidthPrimaryButton=!((H=this.data)==null||!H.useFullWidthPrimaryButton)};
_.X.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:_.S("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.onDataChanged=function(){var H;(H=this.header)==null||H.style.setProperty("background-color",this.backgroundColor);if(H=this.headerImageUrl){var U;(U=this.header)==null||U.style.setProperty("background-image",H)}U=_.XK(4);H=_.ws(4);var A=this.get("data.trackingParams");if(A&&H&&U){var M=_.IS(A);_.ou(U,H,M);_.S("combine_ve_grafts")?_.k$().graftServerVe(A,H,4):_.ou(U,H,M)}U=_.b(this.hostElement.querySelectorAll("yt-img-shadow"));for(H=U.next();!H.done;H=U.next())H.value.onShow();if(U=this.get("data.gtmId"))_.VN(U,
_.gD("GL","")),this.setupConversionTracking()};
_.X.setupConversionTracking=function(){if(!this.scriptsAppended){var H=document.createElement("script");_.fU(H,_.Or(NKv.join("")));document.head.appendChild(H);H=document.createElement("noscript");H.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(H);this.scriptsAppended=!0}};
_.X.onPopupClosed=function(H){if(_.Rr(H).localName==="ytd-sponsorships-celebration-renderer"){_.yr(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var U;this.data&&((U=this.data)==null?0:U.dismissCommand)&&_.$$.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.D5.Object.defineProperties(BM.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var H=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.bN(H)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var H=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return H?"url("+_.Rv(H,this.hostElement.getBoundingClientRect().width)+")":""}}});
BM.prototype.onPopupClosed=BM.prototype.onPopupClosed;BM.prototype.onDataChanged=BM.prototype.onDataChanged;BM.prototype.dataChanged=BM.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],BM.prototype,"data",void 0);
_.G([_.hG("#header"),_.q("design:type",HTMLElement)],BM.prototype,"header",void 0);_.G([_.y(),_.q("design:type",Object)],BM.prototype,"scriptsAppended",void 0);_.G([_.y({type:Boolean,reflectToAttribute:!0}),_.q("design:type",Object)],BM.prototype,"useFullWidthPrimaryButton",void 0);_.G([_.y(),_.q("design:type",Object)],BM.prototype,"buttonOverrides",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BM.prototype,"dataChanged",null);
_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BM.prototype,"onDataChanged",null);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],BM.prototype,"onPopupClosed",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],BM);
_.e(BM,"ytd-sponsorships-celebration-renderer",function(){if(ncY!==void 0)return ncY;var H=document.createElement("template");_.E(H,'\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="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return ncY=H},{mode:1});var SMO;var rf=function(){return _.B.apply(this,arguments)||this};
_.R(rf,_.B);_.X=rf.prototype;_.X.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"}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.detached=function(){this.playerElement.stop()};
_.X.onYtServiceRequestCompleted=function(){_.yr(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.X.onYtServiceRequestError=function(H){_.oR(this.hostElement,H.detail.error.message)};
_.X.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.X.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.X.getTier=function(H,U){return!H||!H.tiers||U<0?null:_.p(H.tiers[U],pvX)};
_.X.moreThanOne=function(H){return!!(H&&H.length>1)};
_.X.tierOverviewTap=function(H){var U=this;this.selectedTier=H.model.index;_.rV(this,function(){_.cg(U.hostElement,"yt-refit")})};
_.X.computeSelectedClass=function(H,U){return this.isSelected(H,U)?"selected":""};
_.X.computeButtonAriaPressed=function(H,U){return this.isSelected(H,U)?"true":"false"};
_.X.isSelected=function(H,U){return H===U};
_.X.onDataChanged=function(){_.c4(this.hostElement).querySelector("#header-overlay").style.visibility="";_.c4(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 H=_.b(this.hostElement.querySelectorAll("yt-img-shadow")),
U=H.next();!U.done;U=H.next())U.value.onShow();var A;this.set("selectedTier",(A=this.get("data.targetTierIndex"))!=null?A:0);var M;(H=(M=this.data)==null?void 0:M.onVisible)&&this.ytComponentBehavior.resolveCommand(H)};
_.X.initializeVe=function(H){var U=_.XK(),A=_.ws(),M=this.get("data.trackingParams");A&&U&&(this.screenLayer=4,U=_.CA(_.TIE)(void 0,69877,{clientScreenNonce:U,visualElement:A},void 0,void 0,void 0),_.bH(U,69877,4),A=_.ws(4),M&&A&&(M=_.IS(M),_.ou(U,A,M),H&&(this.offerVideoVe=_.ts(74659),_.ou(U,M,this.offerVideoVe))))};
_.X.setHeaderBackground=function(){var H=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.c4(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.bN(H);if(H=this.getHeaderImage())H=_.Rv(H,screen.width),_.c4(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+H+")"};
_.X.getHeaderImage=function(){var H=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&H?H:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.X.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.X.setupVideoPlayer=function(H){var U=this,A,M,W,w;return _.u(function(d){if(d.nextAddress==1)return A=U.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),M=U.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.S("kevlar_player_update_killswitch")?U.playerElement.update({args:{autoplay:A,video_id:H,player_params:M}}):U.playerElement.loadVideoWithPlayerVars({autoplay:A,video_id:H,player_params:M}),
d.yield(U.playerElement.getPlayerPromise(),2);W=d.yieldResult;W.addEventListener("onStateChange",function(O){U.onPlayerStateChange(O)});
W.setScreenLayer(U.screenLayer);(w=_.XK(4))&&U.offerVideoVe&&_.PO(w,U.offerVideoVe);A&&(U.pauseOtherPlayers(),U.playerElement.focusOnPlayer(),U.playerElement.getPlayer().hideControls(),_.bM(_.Fl,function(){U.fadeOutHeaderOverlay()},4E3));
_.DO(d)})};
_.X.onPlayerStateChange=function(H){H===1?this.backgroundPlayerElement&&(H=this.backgroundPlayerElement.player_.getPlayerState(),H!==1&&H!==3||this.backgroundPlayerElement.pause()):H===0&&(_.c4(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.c4(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.X.fadeOutHeaderOverlay=function(){_.c4(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.X.onHeaderTap=function(){if(this.offerVideo){_.c4(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var H;((H=this.playerElement.player_)==null?void 0:H.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(H=_.XK(4))&&this.offerVideoVe&&_.NY(H,this.offerVideoVe)}};
_.X.getBackgroundImageLayerClass=function(H){return H?"background-image-layer-with-video":""};
_.X.getHeaderClass=function(H){return H?"header-with-video":""};
_.X.getHeaderOverlayClass=function(H){return H?"header-overlay-with-video":""};
_.X.getTitleContainerClass=function(H,U){return H?"title-container-with-video":U?"title-container-without-video-flexible":"title-container-without-video"};
_.X.tierTitleDisplayStatus=function(H){return this.moreThanOne(H)?"hide":"show"};
_.X.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.lx().resolve(_.ZB).getPlayerElement():this.backgroundPlayerElement=_.Ly();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var H=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=H===1||H===3;this.backgroundPlayerElement.pause()}};
_.X.isMiniplayerActive=function(){return _.lx().resolve(_.ZB).isMiniplayerActive()};
_.X.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("selected-tier-changed",this.selectedTier))};
rf.prototype.selectedTierChangedForBinding=rf.prototype.selectedTierChangedForBinding;rf.prototype.onDataChanged=rf.prototype.onDataChanged;rf.prototype.onYtPopupClosed=rf.prototype.onYtPopupClosed;rf.prototype.onYtPopupOpened=rf.prototype.onYtPopupOpened;rf.prototype.onYtServiceRequestError=rf.prototype.onYtServiceRequestError;rf.prototype.onYtServiceRequestCompleted=rf.prototype.onYtServiceRequestCompleted;
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],rf.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],rf.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],rf.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],rf.prototype,"data",void 0);_.G([_.y({value:0}),_.q("design:type",Number)],rf.prototype,"selectedTier",void 0);
_.G([_.y({value:""}),_.q("design:type",String)],rf.prototype,"offerVideo",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],rf.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.G([_.y({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.vF(this)}}),
_.q("design:type",String)],rf.prototype,"playerId",void 0);_.G([_.hG("tp-yt-paper-dialog-scrollable"),_.q("design:type",Object)],rf.prototype,"scrollable",void 0);_.G([_.hG("ytd-sponsorships-tier-renderer"),_.q("design:type",Object)],rf.prototype,"tierRenderer",void 0);_.G([_.hG("#player"),_.q("design:type",Object)],rf.prototype,"playerElement",void 0);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],rf.prototype,"onYtServiceRequestCompleted",null);_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],rf.prototype,"onYtServiceRequestError",null);
_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rf.prototype,"onYtPopupOpened",null);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rf.prototype,"onYtPopupClosed",null);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rf.prototype,"onDataChanged",null);
_.G([_.Ya("selectedTier"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rf.prototype,"selectedTierChangedForBinding",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],rf);
_.e(rf,"ytd-sponsorships-offer-renderer",function(){if(SMO!==void 0)return SMO;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return SMO=H},{mode:2});var pFR;var eW=function(){var H=_.B.apply(this,arguments)||this;H.buttonOverrides={type:"filled",style:"mono"};return H};
_.R(eW,_.B);eW.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}}}}}};
eW.prototype.backgroundColorChanged=function(){var H,U,A,M=(U=_.p((H=this.data)==null?void 0:H.content,Llf))==null?void 0:(A=U.backgroundColor)==null?void 0:A.backgroundColor;M&&(H=_.wn(M),_.c4(this.hostElement).querySelector("#banner").style.backgroundColor=H,_.c4(this.hostElement).querySelector("#abstract-art").style.backgroundColor=H)};
eW.prototype.attached=function(){this.JSC$22758_scroller&&(this.JSC$22758_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22758_scroller.attached&&typeof this.JSC$22758_scroller.attached==="function"&&this.JSC$22758_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
eW.prototype.backgroundColorChanged=eW.prototype.backgroundColorChanged;_.G([_.y(),_.q("design:type",Object)],eW.prototype,"data",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.hG("#scroller"),_.q("design:type",Object)],eW.prototype,"JSC$22758_scroller",void 0);_.G([_.y(),_.q("design:type",Object)],eW.prototype,"buttonOverrides",void 0);
_.G([_.Ya("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],eW.prototype,"backgroundColorChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],eW);
_.e(eW,"ytd-sponsorships-promotion-celebration-renderer",function(){if(pFR!==void 0)return pFR;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return pFR=H},{mode:2});var LVL;var R4S;var DI=function(){return _.B.apply(this,arguments)||this};
_.R(DI,_.B);DI.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
DI.prototype.computeIsInitiallyChecked=function(H){return H===1};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],DI.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],DI.prototype,"data",void 0);_.G([_.hG("#checkbox"),_.q("design:type",Object)],DI.prototype,"checkbox",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],DI);
_.e(DI,"ytd-subscription-toggle-option-renderer",function(){if(R4S!==void 0)return R4S;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return R4S=H},{mode:1});var $r=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return H};
_.R($r,_.B);$r.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"}}}};
$r.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$r.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var H=_.c4(this.hostElement).querySelector("#options").selected;H=this.data.options[H].subscriptionRadioOptionRenderer.serviceEndpoint;var U=_.c4(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");U&&H&&H.modifyChannelNotificationPreferenceEndpoint&&(U=U.getValue())&&(H.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[U]);_.lx().resolve(_.YV).resolveCommand(H,{form:{element:this.hostElement}});
_.yr(this.hostElement,"yt-close-popup-action")};
_.D5.Object.defineProperties($r.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var H=this.data.options,U=0;U<H.length;U++){var A=H[U].subscriptionRadioOptionRenderer;if(A&&A.selected)return U}return null}}});
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],$r.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],$r.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],$r.prototype,"eventForwardingBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],$r.prototype,"data",void 0);_.G([_.a("data.options"),_.q("design:type",Object),_.q("design:paramtypes",[])],$r.prototype,"initialIndex",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],$r);
_.e($r,"ytd-subscription-notification-options-renderer",function(){if(LVL!==void 0)return LVL;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return LVL=H},{mode:1});var EcS;var mrY=function(){return _.B.apply(this,arguments)||this};
_.R(mrY,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],mrY.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],mrY.prototype,"data",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],mrY);
_.e(mrY,"ytd-tvfilm-offer-groups-renderer",function(){if(EcS!==void 0)return EcS;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return EcS=H},{mode:1});var gcN;var l4=function(){return _.B.apply(this,arguments)||this};
_.R(l4,_.B);_.X=l4.prototype;_.X.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"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.X.computeThumbnailClass=function(H){return H.thumbnailOverlays?H.isShow?"thumbnail-show":"thumbnail-movie":H.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.X.computeCommerceSectionClass=function(H){return H.offers&&H.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.X.computeTitleClass=function(H){return H.offers&&H.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.X.onDataChanged=function(){[].concat(_.vI(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(H){H.onShow()})};
l4.prototype.onDataChanged=l4.prototype.onDataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],l4.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],l4.prototype,"data",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],l4.prototype,"onDataChanged",null);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],l4);
_.e(l4,"ytd-ypc-offers-overlay-renderer",function(){if(gcN!==void 0)return gcN;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return gcN=H},{mode:2});var ac5;var xrN=function(){this.usedMethods=new Set};
xrN.prototype.add=function(H){this.usedMethods.add(H)};
xrN.prototype.reset=function(){this.usedMethods.clear()};var z4j,C7S;
_.tNY=function(H,U){this.query=H;this.previousSearchQuery=U;this.id=z4j++;if(!C7S){U=_.gD("SBOX_SETTINGS");H="https://"+((U==null?void 0:U.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var A=U==null?void 0:U.REQUEST_LANGUAGE;A&&(H+="&hl="+A);(A=U==null?void 0:U.REQUEST_DOMAIN)&&(H+="&gl="+A);H+="&client=youtube&gs_ri=youtube";(A=U==null?void 0:U.SUGG_EXP_ID)&&(H+="&sugexp="+encodeURIComponent(A));(A=U==null?void 0:U.PSUGGEST_TOKEN)&&(H+="&tok="+A);(U=U==
null?void 0:U.SESSION_INDEX)&&(H+="&authuser="+U);_.S("desktop_enable_visual_suggest")&&(H+="&h=180&w=320&ytvs=1");C7S=H}};
_.cty=function(H){var U="q="+encodeURIComponent(H.query);H.previousSearchQuery&&(U+="&pq="+encodeURIComponent(H.previousSearchQuery));return U};
_.ytL=function(){var H=_.gD("SBOX_SETTINGS"),U={};if(H==null?0:H.SEND_VISITOR_DATA)U["X-Goog-Visitor-Id"]=H==null?void 0:H.VISITOR_DATA;return U};
_.BK5=function(H){var U=C7S;U+="&gs_id="+H.id.toString(36);U+="&q="+encodeURIComponent(H.query);U+="&cp="+H.query.length;H.previousSearchQuery&&(U+="&pq="+encodeURIComponent(H.previousSearchQuery));(H=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(U+="&video_id="+H);return U};
z4j=0;C7S="";var rt3=t4.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,e4j=t4.SEARCH_ENTITY_SUGGESTION_MOVIE,Dry=t4.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,$rS=t4.SEARCH_ENTITY_SUGGESTION_TV_SHOW,lcM=function(H,U){this.text=H;this.bold=U},G8L=function(H,U,A){this.input=U;
this.index=A;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=H[0];this.type=H[1];this.subtypes=H[2];var M;this.displayText=QHh((M=H[3])==null?void 0:M.b);var W;this.ignoredPrefix=QHh((W=H[3])==null?void 0:W.a);var w,d;this.hasNewVideo=((w=H[3])==null?void 0:(d=w.zam)==null?void 0:d.toString())==="true"?!0:!1;var O;this.visualSuggestUrl=(O=H[3])==null?void 0:O.zai;var f;this.entityType=QHh((f=H[3])==null?void 0:f.zap);var J;this.entityName=QHh((J=H[3])==null?void 0:J.zao);var F;U=
QHh((F=H[3])==null?void 0:F.zaf);var P;this.entityMid=(P=H[3])==null?void 0:P.zae;F=Vd8(this.subtypes,this.entityMid);if(U&&F){if(U){P="";switch(F){case "YOUTUBE_ENTITY_TYPE_SONG":P=Dry;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":P=rt3;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":P=$rS;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":P=e4j}F=F==="YOUTUBE_ENTITY_TYPE_SONG"||F==="YOUTUBE_ENTITY_TYPE_ALBUM"?P+" \u2022  \u2022 "+U:U}else F="";this.entitySubtitle=F}var n;this.externalChannelId=(n=H[3])==null?void 0:n.zav;
var N;this.entityThumbnailAttributionUrl=(N=H[3])==null?void 0:N.zaq},qMS=function(H,U){var A=[],M,W=(M=H.displayText)!=null?M:H.text;
(U==null?0:U.useEntityName)&&YMv(H)&&H.entityName&&(W=H.entityName);if(H.type===33)return A.push(new lcM(W,!1)),A;if(W.length>=H.input.length&&W.substring(0,H.input.length)===H.input)A.push(new lcM(H.input,!1)),A.push(new lcM(W.substring(H.input.length),!0));else{var w=new Set(H.input.split(/\s/)),d=W.split(/\s/);A=d.map(function(O,f){return new lcM(O.trim()+(f===d.length-1?"":" "),!w.has(O))})}return A},YMv=function(H){var U=!!Vd8(H.subtypes);
H=!!H.entityMid;return U||H};_.h4Y=function(H){this.rawResponse=["",[],{}];this.suggestions=[];try{var U=JSON.parse(HTj(H));if(typeof U==="object"&&U!==null)this.rawResponse=U;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(M){console.log("Suggest: Failed to parse SuggestResponse!");return}var A=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(M,W){return new G8L(M,A,W)})};var k8S=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new xrN;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$22795_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},vcO,TKj=function(){vcO||(vcO=new k8S);
return vcO};
k8S.prototype.updateSuggestions=function(H){var U=this;this.availableSuggestions.forEach(function(A){U.previousSuggestions[A]=!0});
this.availableSuggestions=H.map(function(A){var M=A.type.toString();A.subtypes.length>0&&(M+="i"+A.subtypes.join("i"),M+="k"+A.suggestionSources.COMPLETE_SERVER.toString());return M})};
var j_3=function(H,U){var A=Date.now();H.firstEditTime<0&&(H.firstEditTime=A);U&&(H.lastQueryBuildTime=A);H.lastEditTime=A};
k8S.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$22795_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var IcR=function(H){var U="";H.availableSuggestions.forEach(function(W){delete H.previousSuggestions[W]});
for(var A=_.b(Object.keys(H.previousSuggestions)),M=A.next();!M.done;M=A.next())M=M.value,H.previousSuggestions[M]&&(U+=(U?"j":"")+M);return U},Q_e=function(H,U){var A=[];
U&&(A[1]=U.toString());A[0]="youtube";A[7]=Date.now()-H.startTime;A[6]=H.sessionNumber;H.zeroPrefixSuggestionCount>=0&&(A[33]=H.zeroPrefixSuggestionCount);A[13]=H.outOfSyncResponseCount;if(H.availableSuggestions.length>0){for(var M=U="",W=0,w=_.b(H.availableSuggestions),d=w.next();!d.done;d=w.next())d=d.value,d!==M&&(W>1&&(U+="l"+W),U+=(M?"j":"")+d,W=0,M=d),W+=1;W>1&&(U+="l"+W);A[3]=U}A[35]=IcR(H);H.selectedSuggestionIndex>=0&&(A[2]=H.selectedSuggestionIndex);var O;if(U=(O=_.gD("SBOX_SETTINGS"))==
null?void 0:O.SUGG_EXP_ID)A[19]=H.normalize(U),O=0,H.experimentTriggeredBeforeFinal&&(O|=1),H.experimentTriggeredFinal&&(O|=2),A[20]=O;A[26]=Array.from(H.inputMethodsTracker.usedMethods).join("j");if(H.JSC$22795_totalRoundTripTime>0){A[15]=H.JSC$22795_totalRoundTripTime;A[14]=H.maxRoundTripTime;O=[];for(W=U=0;W<10;W++)M=H.roundTripTimeHistogram[W],M===0?U++:(U>1?O.push(W+"-"+M):U===1?O.push("0j"+M):O.push(M.toString()),U=0);O=O.join("j");A[16]=O}H.zeroPrefixRoundTripTime>0&&(A[36]=H.zeroPrefixRoundTripTime);
H.lastQueryBuildTime>0&&(A[18]=H.lastQueryBuildTime-H.startTime);H.firstEditTime>0&&(A[4]=H.firstEditTime-H.startTime);H.lastEditTime>0&&(A[5]=H.lastEditTime-H.startTime);return A.join(".")};
k8S.prototype.normalize=function(H){return H.replaceAll(".","-")};
var VNy=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var GK=function(){var H=_.B.apply(this,arguments)||this;H.microphoneSpinnerActive=!1;H.noAnimations=!1;H.boundExitClick=function(){H.onExitButtonClick()};
H.speechOverlayClassName="";H.isLevelAnimating=!1;H.playCloseDialogAudioFeedback=!0;H.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return H};
_.R(GK,_.B);_.X=GK.prototype;_.X.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.X.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=Ih5()};
_.X.dataChanged=function(){this.logDialog()};
_.X.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var H;(H=this.manager.audioPlayer)!=null&&(H.JSC$21652_audioEnabled=!1)}this.manager.stop();(H=this.manager.audioPlayer)!=null&&(H.JSC$21652_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.X.handleSpeechQueryCompleteAction=function(H){var U=H.navigationAction;U&&(H.trackingParams&&_.k$().graftServerVe(H.trackingParams,this.dialogVe,5),_.cg(this.hostElement,"yt-navigate",{endpoint:U,tempData:this.getNavigationParams(U),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.X.onExitButtonClick=function(){this.closeDialog()};
_.X.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var H;if((H=this.manager)!=null){var U;(U=H.audioPlayer)==null||HG(U,"failure");H.setState("microphone-off");H.stop()}}else(H=this.manager)==null||H.start()};
_.X.transcriptionChanged=function(){var H,U;(((H=this.transcription)==null?0:H.low)||((U=this.transcription)==null?0:U.high))&&this.setState("transcribing",this.transcription)};
_.X.stateChanged=function(){this.setState(this.state,this.transcription)};
_.X.logDialog=function(){var H;(H=this.data)!=null&&H.trackingParams&&(H=_.k$(),_.DJ(H,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=H.graftServerVe(this.data.trackingParams,void 0,5))};
_.X.getNavigationParams=function(H){var U={};if(_.S("web_yt_searchbox")){var A=TKj();A.inputMethodsTracker.add(6);A=Q_e(A,15);U.gs_l=A;var M;U.oq=((M=_.p(H,_.YO))==null?void 0:M.query)||""}else if(H=window.ytvoicesearchloggingparams){if(H=H())U.oq=H.oq,U.gs_l=H.gs_l}else _.c5(Error("lm"));return U};
_.X.closeDialog=function(){_.yr(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.X.setState=function(H,U){if(this.data){var A=this.data,M={};switch(H){case "listening":M={headerText:A.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:A.microphoneButtonAriaLabel};break;case "timeout":M={headerText:A.promptHeader,microphoneState:"try-again",microphoneLabel:A.promptMicrophoneLabel,microphoneAriaLabel:A.promptMicrophoneLabel};break;case "microphone-off":M={headerText:A.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:A.promptMicrophoneLabel,
microphoneAriaLabel:A.promptMicrophoneLabel};break;case "transcribing":(U==null?0:U.low)||(U==null?0:U.high)?M={transcriptionLow:U==null?void 0:U.low,transcriptionHigh:U==null?void 0:U.high,microphoneState:"speaking",microphoneAriaLabel:A.microphoneButtonAriaLabel}:M={headerText:A.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:A.microphoneButtonAriaLabel};break;case "processing":M={headerText:A.loadingHeader,microphoneState:"processing",microphoneAriaLabel:A.microphoneButtonAriaLabel};
break;case "offline":M={headerText:A.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:A.connectionErrorMicrophoneLabel,microphoneAriaLabel:A.connectionErrorMicrophoneLabel};break;case "permission":M={headerText:A.permissionsHeader,bodyLine1:A.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:A.permissionsSubtext};break;case "permission-denied":M={headerText:A.disabledHeader,bodyLine1:A.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:A.disabledSubtext}}M.className=
H;this.speechOverlayState=M;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.X.setMicrophoneState=function(H){var U=this.isLevelAnimating;this.isLevelAnimating=H==="speaking";!U&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=H==="processing"&&!this.noAnimations};
_.X.setClass=function(H){this.speechOverlayClassName&&_.B4(this.hostElement,this.speechOverlayClassName,!1);H&&(this.speechOverlayClassName=H,_.B4(this.hostElement,H,!0))};
_.X.runLevelAnimation=function(){var H=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var U=1+Math.random()*.75,A=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+A/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+U+")");_.Fl.addJob(function(){H.runLevelAnimation()},3,A)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
GK.prototype.stateChanged=GK.prototype.stateChanged;GK.prototype.transcriptionChanged=GK.prototype.transcriptionChanged;GK.prototype.onPopupClosed=GK.prototype.onPopupClosed;GK.prototype.dataChanged=GK.prototype.dataChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],GK.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],GK.prototype,"rendererStamperBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],GK.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],GK.prototype,"eventForwardingBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],GK.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],GK.prototype,"speechOverlayState",void 0);
_.G([_.y(),_.q("design:type",Object)],GK.prototype,"microphoneSpinnerActive",void 0);_.G([_.y({type:_.S("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.q("design:type",Object)],GK.prototype,"noAnimations",void 0);_.G([_.y({selector:function(H){var U;return(U=H.voiceSearch)==null?void 0:U.transcription}}),
_.q("design:type",Object)],GK.prototype,"transcription",void 0);_.G([_.y({selector:function(H){var U;return(U=H.voiceSearch)==null?void 0:U.overlay}}),
_.q("design:type",String)],GK.prototype,"state",void 0);_.G([_.y(),_.q("design:type",Object)],GK.prototype,"boundExitClick",void 0);_.G([_.hG("#microphone-levels"),_.q("design:type",HTMLElement)],GK.prototype,"level",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GK.prototype,"dataChanged",null);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GK.prototype,"onPopupClosed",null);
_.G([_.jk("transcription"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GK.prototype,"transcriptionChanged",null);_.G([_.jk("state"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GK.prototype,"stateChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],GK);
_.e(GK,"ytd-voice-search-dialog-renderer",function(){if(ac5!==void 0)return ac5;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return ac5=H},{mode:1});var Hk5;var Yr=function(){var H=_.B.apply(this,arguments)||this;H.isOverlay=!1;H.hidden=!1;return H};
_.R(Yr,_.B);_.X=Yr.prototype;_.X.onPopupClosed=function(){this.toggleIconState(!1)};
_.X.computeIcon=function(){var H,U,A;return(U=_.p((H=this.data)==null?void 0:H.icon,Ioy))==null?void 0:(A=U.icon)==null?void 0:A.iconType};
_.X.computeIconBadgeShape=function(){var H;return{iconBadgeType:"cart",iconBadgeText:(H=this.iconBadgeEntity)==null?void 0:H.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.X.onClick=function(){var H;(H=this.data)!=null&&H.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.X.computeHidden=function(H){return!H};
_.X.toggleIconState=function(H){this.iconButton&&(this.iconButton.pressed=H)};
Yr.prototype.onPopupClosed=Yr.prototype.onPopupClosed;_.G([_.g(_.dF),_.q("design:type",Object)],Yr.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Yr.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Yr.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],Yr.prototype,"isOverlay",void 0);
_.G([_.y({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.q("design:type",Object)],Yr.prototype,"hidden",void 0);_.G([_.y({selectorArgs:["data.iconBadgeEntityKey"],selector:function(H,U){return _.rH(H.entities,"iconBadgeEntity",U)}}),
_.q("design:type",Object)],Yr.prototype,"iconBadgeEntity",void 0);_.G([_.hG("yt-icon-button"),_.q("design:type",HTMLButtonElement)],Yr.prototype,"iconButton",void 0);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Yr.prototype,"onPopupClosed",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Yr);
_.e(Yr,"ytd-icon-badge-topbar-button-renderer",function(){if(Hk5!==void 0)return Hk5;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Hk5=H},{mode:1});var Upy;var qi=function(){var H=_.B.apply(this,arguments)||this;H.premiumOptions=[];return H};
_.R(qi,_.B);qi.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.D5.Object.defineProperties(qi.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],qi.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],qi.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Array)],qi.prototype,"premiumOptions",void 0);_.G([_.a("premiumOptions"),_.q("design:type",Object),_.q("design:paramtypes",[])],qi.prototype,"hasPremiumOptions",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],qi);
_.e(qi,"ytd-offline-promo-content",function(){if(Upy!==void 0)return Upy;var H=document.createElement("template");_.E(H,'\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="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return Upy=H},{mode:1});var AHO;var h3=function(){var H=_.B.apply(this,arguments)||this;H.premiumOptions=[];return H};
_.R(h3,_.B);h3.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var H;this.premiumOptions=IBX((H=this.data)==null?void 0:H.formats)};
h3.prototype.onClickSubmit=function(){_.yr(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var H;(H=_.Ly())==null||H.pause()};
h3.prototype.attached=function(){this.JSC$22815_scroller&&(this.JSC$22815_scroller.dialogElement=this.hostElement.parentNode)};
_.D5.Object.defineProperties(h3.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
h3.prototype.dataChanged=h3.prototype.dataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],h3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],h3.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],h3.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],h3.prototype,"data",void 0);
_.G([_.y({computed:"computeIcon_(data.headersIcon)",value:""}),_.q("design:type",String)],h3.prototype,"headersIcon",void 0);_.G([_.y(),_.q("design:type",Array)],h3.prototype,"premiumOptions",void 0);_.G([_.hG("#scroller"),_.q("design:type",Object)],h3.prototype,"JSC$22815_scroller",void 0);_.G([_.a("headersIcon"),_.q("design:type",Object),_.q("design:paramtypes",[])],h3.prototype,"showIcon",null);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],h3.prototype,"dataChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],h3);
_.e(h3,"ytd-offline-promo-renderer",function(){if(AHO!==void 0)return AHO;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return AHO=H},{mode:1});var MwL;var kr=function(){var H=_.B.apply(this,arguments)||this;H.playbackPauseInterval=NaN;H.isLoading=!1;H.hasError=!1;H.dialogClass="";H.youtubeLabel=_.hP("LOGO_ALT_LABEL",{},"YouTube Home");H.logoName="yt-logos-ext:yt-logo-updated";H.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return H};
_.R(kr,_.B);_.X=kr.prototype;_.X.onDataChange=function(){var H;if(this.showEOMV1Text=!((H=this.data)==null||!H.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.X.attached=function(){this.pausePlayer()};
_.X.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.X.handleLangSelect=function(H){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[H.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.X.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.X.handleSaveConsent=function(H){var U=this;this.showLoadingSpinner();this.showLoadingSpinner();kSp(_.p(H,toj)).catch(function(A){_.Na(new _.bD("Something went wrong when save consent "+(A.message?A.message:A)+"."));U.hideLoadingSpinner();U.showErrorMessage()})};
_.X.handleDisablePersonalization=function(H){var U=this;this.showLoadingSpinner();vAp(_.p(H,Cfk)).then(function(){U.dialog.close();U.resumePlayer()}).catch(function(A){_.Na(new _.bD("Something went wrong when disable personalization "+(A.message?A.message:A)+"."));
U.hideLoadingSpinner();U.showErrorMessage()})};
_.X.showLoadingSpinner=function(){var H=this;this.showSpinnerJobId=_.Fl.addLowPriorityJob(function(){H.isLoading=!0},500)};
_.X.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.Fl.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.X.showErrorMessage=function(){var H=this;this.hasError=!0;_.Fl.addLowPriorityJob(function(){H.hasError=!1},2E3)};
_.X.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Ih(function(){try{var H=_.Ly();H&&H.pause()}catch(U){}},100))};
_.X.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var H=_.Ly();H&&H.play()}catch(U){}};
_.D5.Object.defineProperties(kr.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null||!H.eomV1Text)return[];H=[];for(var U=["SHIELD","WARNING","BAR_CHART"],A=this.data.eomV1Text.essentialCookieMsg.items,M=0;M<U.length&&M<A.length;M++)H.push({icon:U[M],text:A[M]});return H}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null||!H.eomV1Text)return[];H=[];for(var U=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],A=this.data.eomV1Text.nonEssentialCookieMsg.items,M=0;M<U.length&&M<A.length;M++)H.push({icon:U[M],text:A[M]});return H}}});
kr.prototype.onDataChange=kr.prototype.onDataChange;_.G([_.y(),_.q("design:type",Object)],kr.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],kr.prototype,"showEOMV1Text",void 0);_.G([_.y(),_.q("design:type",Object)],kr.prototype,"isLoading",void 0);_.G([_.y(),_.q("design:type",Object)],kr.prototype,"hasError",void 0);_.G([_.y(),_.q("design:type",Number)],kr.prototype,"showSpinnerJobId",void 0);_.G([_.y(),_.q("design:type",Object)],kr.prototype,"dialogClass",void 0);
_.G([_.hG("#dialog"),_.q("design:type",Object)],kr.prototype,"dialog",void 0);_.G([_.hG("#cb-header"),_.q("design:type",HTMLElement)],kr.prototype,"header",void 0);_.G([_.hG("#lang-select"),_.q("design:type",HTMLElement)],kr.prototype,"langSelect",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],kr.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],kr.prototype,"ytComponentBehavior",void 0);
_.G([_.y(),_.q("design:type",String)],kr.prototype,"youtubeLabel",void 0);_.G([_.y(),_.q("design:type",Object)],kr.prototype,"logoName",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kr.prototype,"onDataChange",null);_.G([_.a("data"),_.q("design:type",Array),_.q("design:paramtypes",[])],kr.prototype,"eomEssentialCookieMsgItems",null);
_.G([_.a("data"),_.q("design:type",Array),_.q("design:paramtypes",[])],kr.prototype,"eomNonEssentialCookieMsgItems",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],kr);
_.e(kr,"ytd-consent-bump-v2-lightbox",function(){if(MwL!==void 0)return MwL;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return MwL=H},{mode:1});var Wwe;var vM=function(){return _.B.apply(this,arguments)||this};
_.R(vM,_.B);vM.prototype.ready=function(){if(!_.wi()||xAB)var H=!0;else xAB=!0,H=!1;H||(H=document.querySelector("ytd-app"),H||(H=document.body),this.internalLightBox=_.c4(H).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.G([_.y(),_.q("design:type",Object)],vM.prototype,"data",void 0);_.G([_.hG("#lightbox"),_.q("design:type",Object)],vM.prototype,"lightBox",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],vM);
_.e(vM,"ytd-consent-bump-v2-renderer",function(){if(Wwe!==void 0)return Wwe;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Wwe=H},{mode:1});var wrO;var Xr5;var iky;var TK=function(){return _.B.apply(this,arguments)||this};
_.R(TK,_.B);_.X=TK.prototype;_.X.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&rL$(this.toastManager,this.toastType)};
_.X.open=function(H){this.toast&&(this.ephemeralAction&&_.lx().resolve(_.as).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=H!=null?H:0,this.toastManager.enqueue(this.toast,H)):this.toast.open())};
_.X.close=function(H){var U;(U=this.toast)==null||U.close();this.toastManager&&H===1&&rL$(this.toastManager,H)};
_.X.refit=function(){var H;(H=this.toast)==null||H.refit()};
_.X.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var H;(H=this.toast)==null||H.close()}};
_.X.setVerticalOffset=function(H){this.toast&&(this.toast.verticalOffset=H,this.toast.fit())};
_.X.computeButtonClass_=function(H){return H?"toast-button":""};
_.X.computeText_=function(H){return _.Sp(H)};
_.X.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.NI("toast-opened-changed",this.toastOpened))};
_.X.updateToastOpenedFromBinding=function(H){this.toastOpened=H.detail.value};
_.D5.Object.defineProperties(TK.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var H,U,A=(H=this.data)==null?void 0:(U=H.actionButton)==null?void 0:U.buttonRenderer;return(A==null?void 0:A.command)||(A==null?void 0:A.serviceEndpoint)||(A==null?void 0:A.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(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 H=[],U;((U=this.data)==null?0:U.responseText)&&H.push(_.Sp(this.data.responseText));var A;((A=this.data)==null?0:A.subText)&&H.push(_.Sp(this.data.subText));var M,W;if((M=this.data)==null?0:(W=M.actionButton)==null?0:W.buttonRenderer){var w,d;H.push(((w=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(d=w.accessibilityData)==null?void 0:d.label)||_.Sp(this.data.actionButton.buttonRenderer.text))}return H.filter(function(O){return O}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var H,U;return(U=(H=this.toast)==null?void 0:H.opened)!=null?U:!1}}});
TK.prototype.toastOpenedChangedForBinding=TK.prototype.toastOpenedChangedForBinding;TK.prototype.toastOpenedChanged=TK.prototype.toastOpenedChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],TK.prototype,"ytEventForwardingBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],TK.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],TK.prototype,"duration",void 0);
_.G([_.y(),_.q("design:type",Number)],TK.prototype,"toastType",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],TK.prototype,"useCloseButton",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],TK.prototype,"closeToastOnActionButtonClick",void 0);_.G([_.y({value:function(){return _.hP("SBOX_INAPPROPRIATE_CANCEL")}}),
_.q("design:type",String)],TK.prototype,"closeButtonAriaLabel",void 0);_.G([_.y(),_.q("design:type",Boolean)],TK.prototype,"toastOpened",void 0);_.G([_.y(),_.q("design:type",Boolean)],TK.prototype,"hasOpened",void 0);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],TK.prototype,"command",null);_.G([_.a("labelText","command","duration"),_.q("design:type",Object),_.q("design:paramtypes",[])],TK.prototype,"ephemeralAction",null);
_.G([_.a("ephemeralAction"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],TK.prototype,"hasEphemeralAction",null);_.G([_.hG("#toast"),_.q("design:type",Object)],TK.prototype,"toast",void 0);_.G([_.y({value:function(){return{style:"call-to-action-inverse"}}}),
_.q("design:type",Object)],TK.prototype,"buttonOverrides",void 0);_.G([_.y({value:{style:"mono-inverse"}}),_.q("design:type",Object)],TK.prototype,"closeButtonOverrides",void 0);_.G([_.y({value:function(){return _.lx().resolve(_.$V(_.Ef))}}),
_.q("design:type",Object)],TK.prototype,"toastManager",void 0);_.G([_.a("data.responseText","data.subText","data.actionButton"),_.q("design:type",Object),_.q("design:paramtypes",[])],TK.prototype,"labelText",null);_.G([_.Ya("toastOpened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TK.prototype,"toastOpenedChanged",null);
_.G([_.Ya("toastOpened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TK.prototype,"toastOpenedChangedForBinding",null);_.G([_.b0({is:"yt-notification-action-renderer",disableElementRegistration:!0})],TK);
_.e(TK,"yt-notification-action-renderer",function(){if(iky===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Xr5===void 0&&(Xr5=document.createElement("template"));var M=Xr5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);iky=H}H=iky;return H},{mode:2});var jW=function(){var H=_.B.apply(this,arguments)||this;H.duration=4E3;H.downloadingCount=0;H.downloadedCount=0;H.downloadingOnlySmartDownloads=!1;H.sessionTotalDownloads=0;H.sessionDownloaded=0;H.previousSessionsDownloaded=0;H.totalDownloadPercentage=0;H.currentDownloadProgress=0;H.currentDownloadPercentage=0;H.isLeaderTab=!0;H.isFullScreen=!1;H.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};H.boundBeforeUnload=function(U){H.isLeaderTab&&H.downloadingCount>0&&(U.preventDefault(),
U.returnValue=!0)};
return H};
_.R(jW,_.B);_.X=jW.prototype;
_.X.open=function(){this.updateDownloadState();if(this.data){var H=this.sessionDownloaded+1,U=this.sessionTotalDownloads>1?_.hP("VIDEOS_DOWNLOADING_RATIO",{downloaded:H.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+H+"/"+this.sessionTotalDownloads):_.hP("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(U=this.sessionTotalDownloads>1?_.hP("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:H.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
H+"/"+this.sessionTotalDownloads):_.hP("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));H=this.isLeaderTab?_.hP("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Sp(this.data.responseText)!==U||_.Sp(this.data.subText)!==H)this.set("data.responseText",_.Nh(U)),this.set("data.subText",_.Nh(H)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.X.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.X.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.X.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.X.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var H=this.downloadedCount-this.previousSessionsDownloaded;H<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-H);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.X.handleFullscreenChange=function(H){(this.isFullScreen=H)||this.updatePopup()};
jW.prototype.updateCurrentDownloadProgress=jW.prototype.updateCurrentDownloadProgress;jW.prototype.updatePopup=jW.prototype.updatePopup;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],jW.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],jW.prototype,"ytEventForwardingBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],jW.prototype,"actionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],jW.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],jW.prototype,"duration",void 0);_.G([_.y({selector:function(H){return _.nvc(H.entities).length}}),
_.q("design:type",Object)],jW.prototype,"downloadingCount",void 0);_.G([_.y({selector:sg$}),_.q("design:type",Object)],jW.prototype,"downloadedCount",void 0);_.G([_.y({selector:function(H){var U=_.nvc(H.entities);return KzY(H.entities,U)}}),
_.q("design:type",Object)],jW.prototype,"downloadingOnlySmartDownloads",void 0);_.G([_.y(),_.q("design:type",Object)],jW.prototype,"sessionTotalDownloads",void 0);_.G([_.y(),_.q("design:type",Object)],jW.prototype,"sessionDownloaded",void 0);_.G([_.y(),_.q("design:type",Object)],jW.prototype,"previousSessionsDownloaded",void 0);_.G([_.y(),_.q("design:type",Object)],jW.prototype,"totalDownloadPercentage",void 0);
_.G([_.y({selector:function(H){var U;H=(U=_.nvc(H.entities))!=null?U:[];return H.length>0?_.dI7(H.slice(-1)):0}}),
_.q("design:type",Object)],jW.prototype,"currentDownloadProgress",void 0);_.G([_.y(),_.q("design:type",Object)],jW.prototype,"currentDownloadPercentage",void 0);_.G([_.y({selector:_.Rnt}),_.q("design:type",Object)],jW.prototype,"isLeaderTab",void 0);_.G([_.hG("yt-notification-action-renderer"),_.q("design:type",Object)],jW.prototype,"notificationActionRenderer",void 0);
_.G([_.jk("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jW.prototype,"updatePopup",null);_.G([_.jk("currentDownloadProgress"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jW.prototype,"updateCurrentDownloadProgress",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],jW);
_.e(jW,"ytd-video-download-toast-renderer",function(){if(wrO!==void 0)return wrO;var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return wrO=H},{mode:1});var bkR;var dpY;var IW=function(){return _.B.apply(this,arguments)||this};
_.R(IW,_.B);IW.prototype.computeIsRedLogo=function(H,U){!H&&U&&(H=U);return H==="YOUTUBE_RED_LOGO"||H==="YOUTUBE_PREMIUM_LOGO"};
IW.prototype.computeLogoName=function(H){H=this.componentBehavior.computeIcon_(H);return H===""?"yt-logos-ext:yt-logo-updated":H};
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],IW.prototype,"componentBehavior",void 0);_.G([_.y({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.q("design:type",Boolean)],IW.prototype,"isRedLogo",void 0);_.G([_.y({computed:"computeLogoName(data)"}),_.q("design:type",String)],IW.prototype,"logoName",void 0);_.G([_.y({value:{}}),_.q("design:type",Object)],IW.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Object)],IW.prototype,"logoType",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-logo"})],IW);
_.e(IW,"ytd-logo",function(){if(dpY!==void 0)return dpY;var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return dpY=H},{mode:2});var QA=function(){var H=_.B.apply(this,arguments)||this;H.animationRef={};return H};
_.R(QA,_.B);_.X=QA.prototype;_.X.attached=function(){document.addEventListener("yt-navigate-finish",_.lN(this,this.logYoodle))};
_.X.detached=function(){document.removeEventListener("yt-navigate-finish",_.lN(this,this.logYoodle))};
_.X.logYoodle=function(){var H,U;if((H=this.data)==null?0:(U=H.loggingDirectives)==null?0:U.trackingParams)this.ytRendererBehavior.markDirty(),_.k$().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.X.computeHideImg=function(H,U){return!!H||!!U};
_.X.computeHideYtdLogo=function(H,U){return!H||!!U};
_.X.computeHideLottie=function(H){return!H};
_.X.computeIsRedLogo=function(H){return H==="YOUTUBE_RED_LOGO"||H==="YOUTUBE_PREMIUM_LOGO"};
_.X.renderLogoEntity=function(){var H=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),U=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),A=this.getLogoTitleText(this.data),M=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==H&&(this.url=H);this.animatedUrl!==U&&(this.animatedUrl=U);this.logoTitleText!==A&&(this.logoTitleText=A);this.lottieUrl!==M&&(this.lottieUrl=M,this.lottiePlayerProps=this.computeLottiePlayerProps(M))};
_.X.getSanitizedThumbnail=function(H){return H&&H.thumbnails?_.Tlt(H.thumbnails,122)||"":""};
_.X.getThumbnailUrl=function(H,U){if(!U)return"";var A,M;H=H?(A=U.darkThemeLogo)==null?void 0:A.thumbnail:(M=U.lightThemeLogo)==null?void 0:M.thumbnail;return this.getSanitizedThumbnail(H)};
_.X.getAnimatedThumbnailUrl=function(H,U){return U?this.getSanitizedThumbnail(H?U.darkThemeAnimatedLogo:U.lightThemeAnimatedLogo):""};
_.X.getLogoTitleText=function(H){if(H)return _.Sp(H.tooltipText)};
_.X.computeLogoIcon=function(H,U){if(U){var A,M;return H?(A=U.darkThemeLogo)==null?void 0:A.icon:(M=U.lightThemeLogo)==null?void 0:M.icon}};
_.X.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.X.getLottieUrl=function(H,U){var A,M,W,w;return H?U==null?void 0:(A=U.darkThemeLogo)==null?void 0:(M=A.lottieAnimation)==null?void 0:M.url:U==null?void 0:(W=U.lightThemeLogo)==null?void 0:(w=W.lottieAnimation)==null?void 0:w.url};
_.X.computeLottiePlayerProps=function(H){if(H){var U;if((U=this.animationRef)==null?0:U.lottieEl){var A;(A=this.animationRef)==null||A.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:H,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.X.onLottieError=function(){this.data&&this.lottieUrl&&_.cg(this.hostElement,"yoodle-error")};
_.X.onImgError=function(){this.data&&!this.lottieUrl&&_.cg(this.hostElement,"yoodle-error")};
QA.prototype.playAnimation=QA.prototype.playAnimation;QA.prototype.renderLogoEntity=QA.prototype.renderLogoEntity;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],QA.prototype,"data",void 0);_.G([_.y({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.q("design:type",Boolean)],QA.prototype,"hideImg",void 0);
_.G([_.y({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.q("design:type",Boolean)],QA.prototype,"hideYtdLogo",void 0);_.G([_.y({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.q("design:type",Boolean)],QA.prototype,"hideLottie",void 0);_.G([_.y({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.q("design:type",Boolean)],QA.prototype,"isRedLogo",void 0);
_.G([_.y(),_.q("design:type",Boolean)],QA.prototype,"useDarkThemeYoodle",void 0);_.G([_.y(),_.q("design:type",String)],QA.prototype,"url",void 0);_.G([_.y(),_.q("design:type",String)],QA.prototype,"animatedUrl",void 0);_.G([_.y(),_.q("design:type",String)],QA.prototype,"logoTitleText",void 0);_.G([_.y({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.q("design:type",Object)],QA.prototype,"logoIcon",void 0);_.G([_.y(),_.q("design:type",Object)],QA.prototype,"logoType",void 0);
_.G([_.y(),_.q("design:type",String)],QA.prototype,"lottieUrl",void 0);_.G([_.y(),_.q("design:type",Object)],QA.prototype,"lottiePlayerProps",void 0);_.G([_.y(),_.q("design:type",Object)],QA.prototype,"animationRef",void 0);_.G([_.Ya("data"),_.Ya("useDarkThemeYoodle"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],QA.prototype,"renderLogoEntity",null);
_.G([_.Gl("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],QA.prototype,"playAnimation",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],QA);
_.e(QA,"ytd-yoodle-renderer",function(){if(bkR!==void 0)return bkR;var H=document.createElement("template");_.E(H,'\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 class="lottie-player style-scope ytd-yoodle-renderer" aria-label="[[logoTitleText]]" data="[[lottiePlayerProps]]">\n</ytd-lottie-player>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return bkR=H},{mode:2});var Ok3;var uBR;var ZkC=_.fl.currentPageTypeSelector,f3j=_.fl.currentPageSubTypeSelector,VA=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return H};
_.R(VA,_.B);_.X=VA.prototype;_.X.onYoodleError=function(){_.S("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.X.computeLogoName=function(H){H=this.componentBehavior.computeIcon_(H);return H===""?"yt-logos-ext:yt-logo-updated":H};
_.X.computeTitle=function(H,U,A){return A&&(U==null?0:U.tooltipText)?_.Sp(U.tooltipText):_.Sp(H)};
_.X.computeAriaLabel=function(H,U,A){return A&&(U==null?0:U.tooltipText)?_.Sp(H):""};
_.X.computeShowYoodle=function(H,U,A){return!H||!U&&!!A&&!_.dG.isEmpty(A)};
_.X.onNavigateHomeAction=function(){if(_.S("kevlar_miniplayer_navigate_home_from_app_killswitch")){var H;(H=_.c4(this.hostElement).querySelector(".yt-simple-endpoint"))==null||H.click()}};
_.X.computeLogoHref=function(H,U,A){var M;(A==null?0:A.onTapCommand)?M=this.componentBehavior.computeHref_(A.onTapCommand):H&&(M=this.componentBehavior.computeHref_(H));return M?M:U};
_.X.computeCommand=function(H,U){return(U==null?void 0:U.onTapCommand)||H};
_.X.getEndpointForm=function(){if(_.S("kevlar_topbar_disable_cache_only_home")){var H=_.lx().resolve(_.bK),U=ZkC(H.getState())||"";H=f3j(H.getState())||"";return{disableCache:U==="ytd-browse"&&H==="home"}}return{disableCache:!0}};
VA.prototype.onYoodleError=VA.prototype.onYoodleError;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],VA.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],VA.prototype,"componentBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],VA.prototype,"ytdReduxBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],VA.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],VA.prototype,"countryCode",void 0);_.G([_.y({selectorArgs:["data.overrideEntityKey"],selector:function(H,U){return _.rH(H.entities,"logoEntity",U)}}),
_.q("design:type",Object)],VA.prototype,"logoEntity",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.q("design:type",Boolean)],VA.prototype,"showYoodle",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],VA.prototype,"yoodleError",void 0);_.G([_.y({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.q("design:type",String)],VA.prototype,"titleText",void 0);
_.G([_.y({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.q("design:type",String)],VA.prototype,"ariaLabelText",void 0);_.G([_.y({value:"/"}),_.q("design:type",String)],VA.prototype,"defaultEndpointUrl",void 0);_.G([_.y({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.q("design:type",String)],VA.prototype,"endpointUrl",void 0);
_.G([_.y({computed:"computeCommand(data.endpoint, logoEntity)"}),_.q("design:type",String)],VA.prototype,"command",void 0);_.G([_.y(),_.q("design:type",Object)],VA.prototype,"logoType",void 0);_.G([_.y({}),_.q("design:type",Boolean)],VA.prototype,"useDarkThemeYoodle",void 0);_.G([_.Gl("yoodle-error"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],VA.prototype,"onYoodleError",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],VA);
_.e(VA,"ytd-topbar-logo-renderer",function(){if(uBR!==void 0)return uBR;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return uBR=H},{mode:2});var JHM=0;var Kwj=t4.SEARCH_APPEND_LABEL,oKS=t4.SUGGESTION_NEW_VIDEOS_TEXT,Fw3=t4.SUGGESTION_THUMBNAIL_LABEL,Pne=t4.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,syM=_.r(function(H){function U(kK){var ew,O$;return _.u(function(lv){if(lv.nextAddress==1)return ew=new Request(kK),_.zj(lv,2),lv.yield(fetch(ew,{credentials:"include"}),4);if(lv.nextAddress!=2)return Kh(!0),_.xD(lv,0);O$=_.eG(lv);_.Na(O$);_.DO(lv)})}
var A=H.isHighlighted;var M=H.suggestion;var W=H.onClickCallback;var w=H.onHoverUpdateCallback;var d=H.labels;var O=H.queryBuilderFunction;var f=H.onRemoveCallback;var J=H.suggestionIndex;var F=H.generateUniqueId;var P=H.highlightedId;var n=H.useScrollMargin;var N=H.isKeyboardMode;var L=null,m=null,z=null,c=_.nA("div"),C=_.nA("span");H=_.b(_.iB(!1,void 0,"LafNkf"));var v=H.next().value,Y=H.next().value,D=_.NU("a",function(kK){kK&&_.Hl(237477,kK,m,function(ew){m=ew})}),h=_.NU("button",function(kK){kK&&
_.Hl(237477,kK,m,function(ew){m=ew})}),T=_.NU("div",function(kK){kK&&_.Hl(281939,kK,z,function(ew){z=ew})}),WF=_.c$(function(kK){if((kK==null?void 0:kK.button)===2)return kK.preventDefault(),!1;
var ew=_.XK();ew&&L&&_.S9(ew,L,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var O$;W(kK,M().text,M().index,M().entityMid,kK==null?void 0:(O$=kK.detail)==null?void 0:O$.wasSelectedByKeyboard);return!1}),dK=function(){return M().type===35},SN=function(){return _.S("desktop_enable_single_suggestion_highlight")},o_=function(){return _.hr("desktop_suggestions_panel_row_height")||0},PF=function(){var kK;
return _.S("desktop_enable_new_video_metadata")&&((kK=M())==null?void 0:kK.hasNewVideo)===!0},BF=function(){return _.S("desktop_enable_visual_suggest")},kc=function(){return _.S("desktop_enable_entity_suggest")&&YMv(M())},G8=function(){return M().entitySubtitle},Pr=function(){return SN()?(A==null?void 0:A())||T2()&&!(N==null?0:N()):(A==null?void 0:A())||T2()},Z3=function(){var kK=_.gD("SBOX_SETTINGS");
return dK()&&!(kK==null?0:kK.HIDE_REMOVE_LINK)},Yc=function(){return qMS(M(),{useEntityName:kc()})},sz,Ry=!((sz=_.lx().resolve(_.$V(_.qF)))==null||!sz()),oy=function(){return dK()?_.S("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},aY=function(){return d==null?void 0:d().SUGGESTION_DISMISS_LABEL},im=function(){return d==null?void 0:d().SUGGESTION_DISMISSED_LABEL};
H=_.b(_.iB(!1,void 0,"JyfUlf"));sz=H.next().value;var Kh=H.next().value;H=_.b(_.iB(!1,void 0,"QKfAGe"));var rK=H.next().value,FB=H.next().value,T2=rK,xK=_.c$(function(){O(C.value.innerText);return!1}),Hj=_.c$(function(kK){kK.preventDefault();
return!1}),CU=_.c$(function(kK){var ew=M().text,O$=_.gD("SBOX_SETTINGS"),lv="https://"+(O$.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
lv+="&delq="+encodeURIComponent(ew);(ew=O$==null?void 0:O$.PSUGGEST_TOKEN)&&(lv+="&tok="+ew);(O$=O$==null?void 0:O$.SESSION_INDEX)&&(lv+="&authuser="+O$);U(lv);kK.preventDefault();(kK=_.XK())&&m&&_.S9(kK,m,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");f(J==null?void 0:J());return!1}),Qh=_.c$(function(){if(SN()&&(N==null?0:N()))return!1;
FB(!0);w(!0);return!1}),oY=_.c$(function(){FB(!1);
w(!1);return!1}),qp=_.c$(function(){Y(!0);
return!1}),kf=_.c$(function(){Y(!1);
return!1}),Oz=_.c$(function(kK){kK.preventDefault();
if(M().entityThumbnailAttributionUrl){z&&_.GJ(_.k$(),z);var ew=M().entityThumbnailAttributionUrl;kK=M().entityName;var O$={dismissDialogEndpoint:{}};ew={commandExecutorCommand:{commands:[O$,{urlEndpoint:{url:ew,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:ew}}}]}};O$={buttonViewModel:{title:_.hP("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:O$}}};ew={buttonViewModel:{title:_.hP("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:ew}}};kK={dialogHeaderViewModel:{headline:{content:kK!=null?kK:_.hP("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var lv={basicContentViewModel:{paragraphs:[{text:{content:_.hP("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};kK={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:kK,footer:{panelFooterViewModel:{primaryButton:ew,
secondaryButton:O$,shouldHideDivider:!0}},content:lv}}}}};_.lx().resolve(_.YV).resolveCommand(kK)}return!1});
H=_.b(_.iB("",void 0,"MvIBn"));var Fh=H.next().value,Kk=H.next().value;_.pA(function(){Z3()&&Kk(F==null?void 0:F(J==null?void 0:J()));c.value&&_.Hl(12453,c.value,L,function(kK){L=kK})});
return _.Z(_.K,{cond:sz,then:function(){var kK={};return _.Z("div",{class:_.CG("ytSuggestionComponentRemovedText",(kK.ytSuggestionComponentLargerRemovedText=function(){return BF()},kK)),
style:function(){return o_()>0?"height: "+o_()+"px;":""},
role:"button"},im)},
else:function(){var kK={},ew={};return _.Z("div",{class:_.CG("ytSuggestionComponentSuggestion",(kK.ytSuggestionComponentSuggestionHover=function(){return!SN()},kK.ytSuggestionComponentHighlighted=Pr,kK.ytSuggestionComponentPersonalizedSuggestion=dK,kK.ytSuggestionComponentMweb=!1,kK.ytSuggestionComponentLargerSuggestion=function(){return PF()||BF()},kK.ytSuggestionComponentThumbnailSuggestion=function(){return BF()},kK.ytSuggestionComponentRoundedSuggestion=function(){return _.S("desktop_enable_scrollable_suggestions_panel")&&
_.S("desktop_enable_suggestions_panel_padding")},kK.ytSuggestionComponentThumbnailPadding=function(){return BF()&&!dK()},kK)),
style:function(){return o_()>0?"height: "+o_()+"px;":""},
role:"presentation","on:mousedown":WF,"on:mouseover":Qh,"on:mouseout":oY,el:c},_.Z("div",{class:_.CG("ytSuggestionComponentText",(ew.ytSuggestionComponentScrollMargin=n,ew)),"aria-label":function(){return PF()?M().text+" "+oKS:M().text},
id:function(){return F==null?void 0:F(J==null?void 0:J())},
"on:mousedown":WF,role:"option"},_.Z(_.K,{cond:function(){return M().type!==33},
then:function(){return _.Z(_.er,{icon:oy,className:"ytSuggestionComponentIcon"})}}),_.Z("div",{class:"ytSuggestionComponentLeftContainer"},_.Z("span",{el:C,
role:"button",tabindex:0},_.Z(_.FQ,{each:Yc},function(O$){return O$.bold?_.Z("span",{class:"ytSuggestionComponentBold"},O$.text):_.Z("span",null,O$.text)})),_.Z(_.K,{cond:function(){return kc()&&!!M().entitySubtitle||PF()},
then:function(){return _.Z("div",{class:"ytSuggestionComponentMetadataContainer"},_.Z(_.K,{cond:function(){return kc()&&!!M().entitySubtitle},
then:function(){return _.Z("div",{class:"ytSuggestionComponentEntitySubtitle"},G8)}}),_.Z(_.K,{cond:function(){return PF()},
then:function(){return _.Z("div",{class:"ytSuggestionComponentNewVideoContainer"},_.Z("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.Z("div",{class:"ytSuggestionComponentNewVideoText"},oKS))}}))}}))),_.Z("div",{class:"ytSuggestionComponentRightContainer"},_.Z(_.K,{cond:function(){return BF()&&M().visualSuggestUrl!==void 0},
then:function(){var O$={};return _.Z("div",{class:"ytSuggestionComponentThumbnailContainer"},_.Z("img",{"aria-label":Fw3,class:_.CG("ytSuggestionComponentVisualSuggestThumbnail",(O$.ytSuggestionComponentCircularFrame=function(){return kc()&&M().subtypes.includes(790)},O$.ytSuggestionComponentEntitySuggestThumbnail=function(){return kc()},O$)),
src:function(){return M().visualSuggestUrl}}),_.Z(_.K,{cond:function(){return kc()&&!!M().entityThumbnailAttributionUrl},
then:function(){var lv={};return _.Z("span",{title:Pne,role:"tooltip"},_.Z("div",{el:T,"on:mouseover":qp,"on:mouseout":kf,"on:mousedown":Oz,class:_.CG("ytSuggestionComponentThumbnailOverlay",(lv.ytSuggestionComponentThumbnailOverlayHidden=function(){return!v()},lv))},_.Z(_.er,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.Z(_.P5,null,_.Z(_.KA,{when:function(){return BF()&&Z3()}},function(){var O$={};
return _.Z("button",{class:_.CG("ytSuggestionComponentRemoveLinkClearButton",(O$.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Fh()&&Fh()===(P==null?void 0:P())},O$.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Pr()},O$)),
el:h,"on:mousedown":CU,"aria-label":aY,id:function(){return Fh()}},_.Z(_.er,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.Z(_.KA,{when:function(){return!(BF()&&M().visualSuggestUrl!==void 0)&&Z3()}},function(){var O$={};
return _.Z("a",{class:_.CG("ytSuggestionComponentRemoveLink",(O$.ytSuggestionComponentRemoveLinkDark=Ry,O$.ytSuggestionComponentRemoveLinkSelected=function(){return Fh()&&Fh()===(P==null?void 0:P())},O$)),
el:D,"on:mousedown":CU,"aria-label":aY,tabindex:0,role:"button",id:function(){return Fh()}},aY)}),_.Z(_.KA,{when:function(){return!1}},function(){return _.Z("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":xK,"on:mousedown":Hj,role:"button","aria-label":Kwj},_.Z(_.er,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"gl");var nKS=_.NP(["//www.google.com/textinputassistant/","/","_tia.js"]),NmN=_.r(function(){return _.Z("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.Z("button",{class:"ytdTextInputAssistantButton","on:click":_.c$(function(){TKj().inputMethodsTracker.add(3);var H,U=(H=_.gD("SBOX_SETTINGS"))==null?void 0:H.REQUEST_LANGUAGE;if(U)return _.f1(_.LF(nKS,14,U)),!1})},_.Z("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"hl");var pr3;_.SzS=function(){this.cache=new Map};
pr3=function(H){for(var U=_.b(H.cache.entries()),A=U.next();!A.done;A=U.next()){var M=_.b(A.value);A=M.next().value;M=M.next().value;M.suggestions.some(function(W){return W.type===35})&&H.cache.delete(A)}};var Lwy=t4.SEARCH,Rg3=t4.SEARCH_CLEAR_LABEL,EK5=new _.g3("FAKE_SUGGEST_RESPONSE"),mpY=_.r(function(H){function U(){Qh||(Qh=setTimeout(function(){qp()},1E3))}
function A(mw,Ez,Gy){if(mw.trim()){CU=mw;_.mT("REFINEMENTS_TUPLE",void 0);xK=!0;var XL;Ez=Q_e(im,Ez);var nk=(XL=H.searchEndpoint)==null?void 0:XL.call(H);_.AgY(mw,Ez,nk,sz.value.value,Gy);qp();sz.value.value=mw;sz.value.blur();im.reset()}}
function M(mw){return _.u(function(Ez){return Ez.return(new Promise(function(Gy){var XL=new XMLHttpRequest;XL.open("GET",_.BK5(mw),!0);XL.withCredentials=!0;var nk=_.gD("SBOX_SETTINGS");(nk==null?0:nk.SEND_VISITOR_DATA)&&XL.setRequestHeader("X-Goog-Visitor-Id",nk==null?void 0:nk.VISITOR_DATA);XL.onload=function(){Gy(XL.responseText)};
XL.onerror=function(){_.Na(Error("nm"));Gy(null)};
setTimeout(function(){XL.abort()},1E4);
XL.send(null)}))})}
function W(mw){var Ez,Gy,XL,nk;return _.u(function(tz){switch(tz.nextAddress){case 1:return Ez={credentials:"include",headers:_.ytL()},window.AbortController&&(Gy=new AbortController,setTimeout(function(){Gy.abort("ytsbox-suggest-timeout")},1E4),Ez.signal=Gy.signal),_.zj(tz,2),tz.yield(fetch(_.BK5(mw),Ez),4);
case 4:XL=tz.yieldResult.text();_.xD(tz,3);break;case 2:return nk=_.eG(tz),nk!=="ytsbox-abort-last"&&nk!=="ytsbox-suggest-timeout"&&_.Na(nk),tz.return(null);case 3:return tz.return(XL)}})}
function w(mw){var Ez,Gy,XL;return _.u(function(nk){switch(nk.nextAddress){case 1:if(Ez=_.lx().resolve(_.$V(EK5)))return nk.return(Ez);Gy=Date.now();U();return _.S("yt_searchbox_xhr")?nk.yield(M(mw),5):nk.yield(W(mw),4);case 4:XL=nk.yieldResult;nk.jumpTo(3);break;case 5:XL=nk.yieldResult;case 3:if(XL){Qh&&(clearTimeout(Qh),Qh=null);var tz=im,V9=Gy,GC=mw.query.length===0;V9=Date.now()-V9;GC?tz.zeroPrefixRoundTripTime=V9:(tz.JSC$22795_totalRoundTripTime+=V9,tz.maxRoundTripTime=Math.max(tz.maxRoundTripTime,
V9),GC=Math.floor(V9/100),GC>=VNy.length?++tz.roundTripTimeHistogram[9]:++tz.roundTripTimeHistogram[VNy[GC]])}return nk.return(XL)}})}
function d(mw){var Ez,Gy,XL;return _.u(function(nk){if(nk.nextAddress==1)return(Ez=aY.cache.get(_.cty(mw)))?nk.return(Ez):nk.yield(w(mw),2);Gy=nk.yieldResult;if(Gy===null)return nk.return(null);XL=new _.h4Y(Gy);mw.query.length===0&&XL.suggestions.length===0||aY.cache.set(_.cty(mw),XL);return nk.return(XL)})}
function O(mw){var Ez,Gy;return _.u(function(XL){if(XL.nextAddress==1){Hj=!1;var nk=CU;nk=_.nl()==="search"?(_.TZ(location.href,"search_query")||_.TZ(location.href,"q"))===nk:!1;Ez=new _.tNY(mw,nk?CU:null);return XL.yield(d(Ez),2)}Gy=XL.yieldResult;if(Gy===null)return XL.return();Ez.query.length===0&&(im.zeroPrefixSuggestionCount=Gy.suggestions.length);if(Ez.id<=oY)return im.outOfSyncResponseCount++,XL.return();if(document.activeElement!==sz.value)return XL.return();oY=Ez.id;var tz=im,V9=Gy.rawResponse[2]||
{};tz.experimentTriggeredBeforeFinal||(tz.experimentTriggeredBeforeFinal=tz.experimentTriggeredFinal);tz.experimentTriggeredFinal=!!V9.e;im.updateSuggestions(Gy.suggestions);z(-1);G8([]);Gy.suggestions!==N()&&pW(Gy.suggestions.length);L(Gy.suggestions);WF(Gy.suggestions.length>0&&Gy.suggestions[0].type===33);oy&&(oy.hidden=Gy.suggestions.length===0,T()?(oy.style.minWidth="",tz=oy.style,V9=(nk=N()[0])==null?void 0:nk.ignoredPrefix,tz.marginLeft=(V9?Math.min(V9.length*6,Ry.value.offsetWidth):0).toString()+
"px"):(oy.style.minWidth=Ry.value.offsetWidth+"px",oy.style.marginLeft="0"),pU());_.DO(XL)})}
function f(){if(!xK)return!1;var mw=_.gD("REFINEMENTS_TUPLE"),Ez;return mw&&((Ez=mw[1])==null?0:Ez.length)?(mw=mw[1].map(function(Gy,XL){return new G8L([Gy,0,[71]],sz.value.value,XL)}),N()!==mw&&pW(mw.length),G8([]),L(mw),im.updateSuggestions(mw),xK=!1,oy.hidden=mw.length===0,Hj=mw.length>0,!0):!1}
function J(){var mw=sz.value.value;(typeof mw==="string"||mw instanceof String)&&mw!==""?Y(!0):Y(!1)}
function F(){if(_.nl()==="search"){var mw=window.location.href;try{var Ez=_.TZ(mw,"search_query")||_.TZ(mw,"q")||""}catch(Gy){Ez=""}Ez&&(sz.value.value=Ez,Y(!0))}}
var P=_.b(_.iB([],void 0,"OC8EPc")),n=P.next().value;P=P.next().value;var N=n,L=P;n=_.b(_.iB(-1,void 0,"t2tVQb"));var m=n.next().value,z=n.next().value;n=_.b(_.iB(-1,void 0,"v0RZCe"));var c=n.next().value,C=n.next().value;n=_.b(_.iB(!1,void 0,"rjAnI"));var v=n.next().value,Y=n.next().value;n=_.b(_.iB(!1,void 0,"SyGLvb"));var D=n.next().value,h=n.next().value;P=_.b(_.iB(!1,void 0,"tL09Cb"));n=P.next().value;P=P.next().value;var T=n,WF=P;P=_.b(_.iB(!1,void 0,"FlH7mc"));n=P.next().value;var dK=P.next().value;
P=_.b(_.iB(!1,void 0,"ea3fwe"));var SN=P.next().value,o_=P.next().value;P=_.b(_.iB(1,void 0,"vSK1xe"));var PF=P.next().value,BF=P.next().value;P=_.b(_.iB([],void 0,"ijlw4b"));var kc=P.next().value,G8=P.next().value;P=_.b(_.iB(!1,void 0,"HcRey"));var Pr=P.next().value,Z3=P.next().value;P=_.S("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Yc=_.nA("yt-searchbox"),sz=_.nA("input"),Ry=_.nA("div"),oy,aY=
new _.SzS,im=TKj(),Kh=_.lx().resolve(_.$V(_.qF)),rK=function(){var mw;return((mw=H.forceDarkMode)==null?void 0:mw.call(H))||!(Kh==null||!Kh())},FB=function(){return _.S("desktop_enable_scrollable_suggestions_panel")},T2="i"+JHM++,xK=!1,Hj=!1,CU="",Qh=null,oY=-1,qp=function(){G8([]);
L([]);WF(!1);oy&&(oy.hidden=!0);Qh&&(clearTimeout(Qh),Qh=null);z(-1)},kf=function(mw,Ez){mw.preventDefault();
Z3(!0);oy&&(oy.hidden=!1);var Gy=m();mw=N();var XL=kc();Ez=MmY(Ez);Gy+=Ez;for(Gy>=mw.length?Gy=-1:Gy<-1&&(Gy=mw.length-1);Gy!==-1&&(XL.includes(Gy)||Gy>=mw.length||Gy<0);)Gy+=Ez,Gy>=mw.length&&(Gy=-1);z(Gy);m()>=0&&(sz.value.value=N()[m()].text,C(0),J(),mw=m(),XL=c(),(XL=document.getElementById(uL[mw][XL]))&&FB()&&(mw===N().length-1?oy.scrollTop=oy.scrollHeight:XL.scrollIntoView({block:"nearest",inline:"start"})))},Oz=_.c$(function(mw){if(!(mw.relatedTarget instanceof Element&&mw.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){h(!0);
var Ez;(Ez=H.focusCallback)==null||Ez.call(H,!0);f()||(Hj?oy.hidden=!1:(_.cg(Yc.value,"yt-autonav-pause-focus",{}),O(mw.target.value)))}}),Fh=_.c$(function(mw){if(!(mw.relatedTarget instanceof Element&&mw.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){h(!1);
var Ez;(Ez=H.focusCallback)==null||Ez.call(H,!1);oy.scrollTop=0;oy.hidden=!0;_.cg(Yc.value,"yt-autonav-pause-blur",{})}}),Kk=function(mw){mw=MmY(mw);
var Ez;((Ez=uL[m()])==null?0:Ez[c()+mw])&&C(c()+mw)},kK=_.c$(function(mw){var Ez=mw.keyCode,Gy=mw.target;
Z3(!0);switch(Ez){case 13:mw.preventDefault();var XL;if((XL=uL[m()])==null?0:XL[c()]){var nk;(nk=document.getElementById(uL[m()][c()]))==null||nk.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}mw=mw.shiftKey?4:3;Ez=im;XL=m();Ez.selectedSuggestionIndex=XL;A(Gy.value,mw);break;case 27:oy&&(oy.hidden=!0);break;case 40:kf(mw,40);break;case 38:kf(mw,38);break;case 39:Kk(39);break;case 37:Kk(37);break;case 229:im.inputMethodsTracker.add(4);break;default:im.inputMethodsTracker.add(1),
j_3(im)}return!1}),ew=_.c$(function(mw){O(mw.target.value);
J();FB()&&oy&&(oy.scrollTop=0);return!1}),O$=_.c$(function(){im.inputMethodsTracker.add(2);
j_3(im);return!1});
_.pA(function(){if(oy){im.reset();if(window.ResizeObserver){var mw=new ResizeObserver(function(){T()||(oy.style.minWidth=Ry.value.offsetWidth+"px")});
mw.observe(Ry.value);(new ResizeObserver(function(){pU()})).observe(oy);
_.m4(function(){mw.disconnect()})}F();
window.addEventListener("yt-navigate-finish",F);window.addEventListener("yt-focus-searchbox",function(){sz.value.focus()});
var Ez;dK((Ez=_.gD("SBOX_SETTINGS"))==null?void 0:Ez.HAS_ON_SCREEN_KEYBOARD)}else _.sD(new _.bD("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var lv=_.c$(function(mw){mw.preventDefault();A(sz.value.value,12);return!1}),G2=_.c$(function(mw){mw.preventDefault();
var Ez,Gy;(Ez=sz)==null||(Gy=Ez.value)==null||Gy.focus();var XL,nk;((XL=sz)==null?void 0:(nk=XL.value)==null?void 0:nk.value)!==""&&(sz.value.value="",sz.value.dispatchEvent(new Event("input")));return!1}),K8=_.c$(function(){var mw=zMf(sz.value.value,N().filter(function(Ez){return Ez.type!==35}).map(function(Ez){return{label:Ez.text}}));
_.yr(Yc.value,"yt-open-popup-action",[{openPopupAction:mw},document.body]);return!1}),Qp=_.c$(function(){sz.value.focus();
return!1}),uv=function(mw,Ez,Gy,XL,nk){im.selectedSuggestionIndex=Gy;
A(Ez,nk?3:1,XL)},Rl=function(mw){sz.value.value=mw;
sz.value.dispatchEvent(new Event("input"));im.inputMethodsTracker.add(5);j_3(im,!0)},uL=[[]],UW=function(mw){var Ez="searchbox-suggestion"+_.Op(_.fP);
uL[mw].push(Ez);return Ez},pW=function(mw){if(N()){uL=[[]];
for(var Ez=0;Ez<mw;Ez++)uL.push([])}},pU=function(){if(FB()){var mw=oy,Ez=mw.scrollTop;
mw=mw.scrollHeight-mw.clientHeight;o_(Ez>=mw);Ez=Math.abs(mw-Ez);Ez<=40?BF(1-(40-Ez)/40):BF(1)}},mF=function(){return"opacity: "+PF()*100+"%"},gK=_.c$(function(){pU();
return!1}),eN=_.c$(function(){Z3(!1);
return!1}),T8,Sw={},RY={},gM={},zy={};
return _.Z("yt-searchbox",{class:_.CG("ytSearchboxComponentHost",(Sw.ytSearchboxComponentMweb=!1,Sw.ytSearchboxComponentDesktop=!0,Sw["yt-searchbox-filled-query"]=function(){return v()},Sw["ytd-masthead"]=function(){return!D()},Sw.ytSearchboxComponentHostDark=rK,Sw)),
role:"search",el:Yc,"client-ve-type":10349},_.Z("div",{el:Ry,"on:click":Qp,class:_.CG("ytSearchboxComponentInputBox",(RY.ytSearchboxComponentInputBoxDark=rK,RY.ytSearchboxComponentInputBoxHasFocus=D,RY))},_.Z("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":lv},_.Z(_.K,{cond:D,then:function(){return _.Z("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.Z(_.er,{icon:"SEARCH"}))}}),_.Z("input",{el:sz,
class:_.CG("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":T2,"aria-expanded":!((T8=oy)==null?0:T8.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":Fh,"on:focus":Oz,"on:input":ew,"on:keydown":kK,"on:paste":O$,placeholder:H.placeholderText,"aria-activedescendant":function(){var mw;return(mw=uL[m()])==null?void 0:mw[c()]},
"aria-autocomplete":"list",role:"combobox"})),_.Z(_.K,{cond:n,then:function(){return _.Z("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.Z(NmN,null))}}),_.Z(_.K,{cond:v,
then:function(){return _.Z("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.Z("button",{class:"ytSearchboxComponentClearButton","on:click":G2,"aria-label":H.clearButtonAriaLabel||Rg3},_.Z(_.er,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.Z(_.zm,{model:{}})))}})),_.Z("button",{class:_.CG("ytSearchboxComponentSearchButton",(gM.ytSearchboxComponentSearchButtonDark=rK,gM)),
"on:click":lv,"aria-label":Lwy,title:H.placeholderText},_.Z(_.er,{icon:"SEARCH"})),_.Z(_.K,{cond:function(){if(Wch()&&_.S("mweb_voice_search")&&H.voiceSearchButton)return H.voiceSearchButton()},
then:function(mw){var Ez={};return _.Z("div",{class:_.CG("ytSearchboxComponentVoiceSearchWrapper",(Ez.ytSearchboxComponentHideVoiceSearchButton=function(){return v()},Ez))},_.Z(_.YY,{data:mw},{buttonRenderer:function(Gy){return _.Z(_.Rj,{data:Gy.data,
onButtonClickCallback:function(){}})}}))}}),_.Z("div",{el:_.sB(function(mw){return void(oy=mw)}),
id:T2,class:_.CG("ytSearchboxComponentSuggestionsContainer",(zy.ytSearchboxComponentSuggestionsContainerDark=rK,zy["yt-searchbox-suggestions-container"]=!1,zy.ytSearchboxComponentSuggestionsContainerScrollable=FB(),zy.ytSearchboxComponentSuggestionsContainerAnimated=P,zy)),"on:scroll":gK,"on:mousemove":eN,role:"listbox",hidden:!0},_.Z(_.FQ,{each:N},function(mw,Ez){return _.Z(syM,{suggestion:mw,isHighlighted:function(){return Ez()===m()},
onClickCallback:uv,onHoverUpdateCallback:function(Gy){if(_.S("desktop_enable_single_suggestion_highlight")){var XL=Ez();Gy&&(C(0),z(XL))}},
onRemoveCallback:function(Gy){pr3(aY);Gy===void 0||Gy<0||kc().includes(Gy)||G8([].concat(_.vI(kc()),[Gy]))},
labels:H.labels,queryBuilderFunction:Rl,suggestionIndex:Ez,generateUniqueId:UW,highlightedId:function(){var Gy;return(Gy=uL[m()])==null?void 0:Gy[c()]},
useScrollMargin:FB(),isKeyboardMode:Pr})}),_.Z(_.K,{cond:function(){return!T()&&N().find(function(mw){return mw.type!==35})&&_.S("searchbox_reporting")},
then:function(){return _.Z("button",{class:"ytSearchboxComponentReportButton","on:mousedown":K8},_.hP("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.Z(_.K,{cond:function(){return!SN()&&FB()},
then:function(){return _.Z("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.Z("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:mF}))}})))},"jl");
mpY.idomCompat={callbacks:{focusCallback:!0}};_.LG(mpY,"yt-searchbox",{props:{searchEndpoint:_.sY,placeholderText:_.sY,labels:_.sY,voiceSearchButton:_.sY,focusCallback:_.Ne,clearButtonAriaLabel:_.sY,forceDarkMode:_.sY}});var HH=function(){var H=_.B.apply(this,arguments)||this;H.menuButtonTargetId="topbar-guide-menu";H.narrow=!1;H.menuStrings={BACK_ALT_LABEL:_.hP("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.hP("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.hP("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.hP("SBOX_PLACEHOLDER",void 0,"Search")};H.pageDarkTheme=document.documentElement.hasAttribute("dark");H.watchPageScrollTop=0;H.theater=!1;H.fullscreen=!1;H.disableFrostedGlassDuringViewTransition=
!1;H.desktopUnifiedSearchPanelMode=_.S("desktop_enable_unified_search_panel");H.aiCompanionEnabled=_.S("enable_ai_companion");H.ytSearchboxFocused=!1;H.searchboxLabels=_.gD("SBOX_LABELS");H.topbarIsAboveChipbar=!1;H.isDarkThemeForced=!1;H.areGhostCardsHidden=!1;H.guideKeyboardToggle=!1;H.voiceSearchManager=Ih5();H.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};H.setYtSearchboxFocused=function(U){H.ytSearchboxFocused=U};
H.toggleFrostedGlassDuringViewTransition=function(U){H.disableFrostedGlassDuringViewTransition=U};
return H};
_.R(HH,_.B);_.X=HH.prototype;_.X.computeSimpleText=function(H){return _.Sp(H)};
_.X.onDarkChanged=function(){for(var H=_.b(this.buttons||[]),U=H.next();!U.done;U=H.next())U.value.isOverlay=!!this.dark;H=_.b(this.buttonRenderers||[]);for(U=H.next();!U.done;U=H.next())U.value.overrides=this.computeButtonOverride()};
_.X.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.X.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.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},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"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var H=_.n9(_.sC(),"aa");_.B4(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||H||(this.isDarkThemeForced=this.dark=!0);this.logoType?(H=this.hostElement.querySelector("#masthead-logo"))&&(_.S("polymer_on_demand_shady_dom")?H.setAttribute("slot","masthead-logo-old"):_.U5(H)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.lN(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.lN(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.X.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.lN(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.lN(this,this.onSetTheaterModeEnabled))};
_.X.dataChanged=function(){var H=this.data;H&&(this.voiceEnabled=H.voiceSearchButton?Ih5().isSupported():!1,_.Y6(_.q5(),this.menuButtonTargetId,this.guideButton),H.onReceivedActions&&H.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.eb(this.hostElement,H.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&H&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.B4(this.hostElement,"dark",!1),_.B4(this.hostElement,"theater",!1),(H=
this.hostElement.querySelector("#masthead-logo"))&&(_.S("polymer_on_demand_shady_dom")?H.setAttribute("slot","masthead-logo-old"):_.U5(H))))};
_.X.computeCenterHidden=function(){var H;return this.data&&!((H=this.data.searchbox)==null?0:H.fusionSearchboxRenderer)};
_.X.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.B4(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.X.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.X.onWatchScroll=function(H){this.watchPageScrollTop=H.detail||0;this.updateMastheadBackgroundOpacity()};
_.X.onFullscreenChangeAction=function(H){H||(this.watchPageScrollTop=0);this.fullscreen=H;this.updateMastheadBackgroundOpacity()};
_.X.onSetTheaterModeEnabled=function(H){this.theater=H.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.X.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.X.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.X.setBackgroundOpacity=function(H){H=this.calculateBackgroundOpacity(H);this.background.style.opacity=""+H};
_.X.calculateBackgroundOpacity=function(H){var U=this.theater?.6:0,A=this.hostElement.clientHeight/2;return Math.min(Math.max(H,0),A)/A*(1-U)+U};
_.X.shouldShowCinematicMastHead=function(){var H=_.S("kevlar_watch_grid")&&!_.S("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(H||this.pageDarkTheme)};
_.X.focusGuide=function(){this.guideButton.focus()};
_.X.onGuideToggleTap=function(){_.cg(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.X.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.X.onGuideToggleHover=function(){_.cg(this.hostElement,"yt-guide-hover")};
_.X.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.X.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.X.closeOnOutsideClickCondition=function(H){for(H=_.Lf(H);H[0];){var U=H.shift();if(U instanceof Element&&U.id==="kbd")return!1}return!0};
_.X.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.X.pausePlayer=function(){var H;(H=_.Ly())==null||H.pause();this.pauseMiniplayer()};
_.X.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var H;(H=_.lx().resolve(_.ZB).getPlayerElement())==null||H.pause()}};
_.X.isMiniplayerActive=function(){return _.lx().resolve(_.ZB).isMiniplayerActive()};
_.X.updateNarrowFromBinding=function(H){this.narrow=H.detail.value};
_.X.onYtSendFeedbackAction=function(){_.yr(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.X.registerWithViewTransitionManager=function(){QCX(_.lx().resolve(_.Vc),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.D5.Object.defineProperties(HH.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var H;return!!(this.aiCompanionEnabled&&((H=this.data)==null?0:H.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var H;return(H=this.data)==null?void 0:H.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
HH.prototype.narrowChanged=HH.prototype.narrowChanged;HH.prototype.onWatchPageChange=HH.prototype.onWatchPageChange;HH.prototype.onRendererStamperFinished=HH.prototype.onRendererStamperFinished;HH.prototype.dataChanged=HH.prototype.dataChanged;HH.prototype.onDarkChanged=HH.prototype.onDarkChanged;_.G([_.g(_.Qo),_.q("design:type",Object)],HH.prototype,"ironResizableBehavior",void 0);_.G([_.g(br5),_.q("design:type",Object)],HH.prototype,"ytdExpandableInputBehavior",void 0);
_.G([_.g(_.Km.YtdGuideStateAwareBehavior),_.q("design:type",Object)],HH.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],HH.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],HH.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],HH.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],HH.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.dF),_.q("design:type",Object)],HH.prototype,"ytdReduxBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],HH.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],HH.prototype,"narrow",void 0);_.G([_.y(),_.q("design:type",Object)],HH.prototype,"logoType",void 0);_.G([_.y(),_.q("design:type",Boolean)],HH.prototype,"voiceEnabled",void 0);
_.G([_.y(),_.q("design:type",Object)],HH.prototype,"menuStrings",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],HH.prototype,"dark",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],HH.prototype,"pageDarkTheme",void 0);_.G([_.y(),_.q("design:type",Object)],HH.prototype,"watchPageScrollTop",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.fat}),_.q("design:type",Boolean)],HH.prototype,"isWatchPage",void 0);
_.G([_.y({reflectToAttribute:!0,selector:_.J1F}),_.q("design:type",Boolean)],HH.prototype,"isShortsPage",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],HH.prototype,"theater",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],HH.prototype,"fullscreen",void 0);_.G([_.y({reflectToAttribute:!0,selector:_.PQK}),_.q("design:type",String)],HH.prototype,"frostedGlassMode",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],HH.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],HH.prototype,"aiCompanionEnabled",void 0);_.G([_.y(),_.q("design:type",Object)],HH.prototype,"ytSearchboxFocused",void 0);_.G([_.ka("#buttons > *"),_.q("design:type",Array)],HH.prototype,"buttons",void 0);_.G([_.ka("ytd-button-renderer"),_.q("design:type",Array)],HH.prototype,"buttonRenderers",void 0);
_.G([_.hG("#background"),_.q("design:type",HTMLDivElement)],HH.prototype,"background",void 0);_.G([_.hG("#guide-button"),_.q("design:type",Object)],HH.prototype,"guideButton",void 0);_.G([_.hG("#logo"),_.q("design:type",Object)],HH.prototype,"logo",void 0);_.G([_.y({computed:"computeButtonOverride(dark)"}),_.q("design:type",Object)],HH.prototype,"buttonOverrides",void 0);
_.G([_.jk("dark"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HH.prototype,"onDarkChanged",null);_.G([_.y({value:function(){return this.onVoiceTap.bind(this)}}),
_.q("design:type",Function)],HH.prototype,"boundOnTapVoiceButton",void 0);_.G([_.y(),_.q("design:type",Object)],HH.prototype,"topbarIsAboveChipbar",void 0);_.G([_.y(),_.q("design:type",String),_.q("design:paramtypes",[])],HH.prototype,"guideIcon",null);_.G([_.a("voiceEnabled"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],HH.prototype,"shouldShowVoiceSearchButton",null);
_.G([_.a("data.aiCompanionButton","aiCompanionEnabled"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],HH.prototype,"shouldShowAiCompanionButton",null);_.G([_.a("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],HH.prototype,"voiceSearchButton",null);_.G([_.a("aiCompanionEnabled"),_.q("design:type",String),_.q("design:paramtypes",[])],HH.prototype,"narrowQuery",null);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HH.prototype,"dataChanged",null);_.G([_.Gl("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HH.prototype,"onRendererStamperFinished",null);_.G([_.jk("isWatchPage"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HH.prototype,"onWatchPageChange",null);
_.G([_.jk("narrow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HH.prototype,"narrowChanged",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-masthead"})],HH);
_.e(HH,"ytd-masthead",function(){if(Ok3!==void 0)return Ok3;var H=document.createElement("template");_.E(H,'\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="[[narrowQuery]]" 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="[[guideIcon]]" 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 id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" 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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return Ok3=H},{mode:2});var gKN;var a3j={},xpj={},zg5={},CnS={},twS=(CnS.OFFLINE=(a3j["publicytnetworkstatus-online"]="BACK_ONLINE",a3j),CnS.ONLINE=(xpj["publicytnetworkstatus-offline"]="OFFLINE",xpj),CnS.BACK_ONLINE=(zg5["publicytnetworkstatus-offline"]="OFFLINE",zg5.TIMER_TRIGGER="ONLINE",zg5),CnS),Uv=function(){var H=_.B.apply(this,arguments)||this;H.currentState="ONLINE";H.scheduledJobId=0;H.bannerString="";H.bannerVe=null;H.networkStatusManagerInstance=new _.xB;return H};
_.R(Uv,_.B);_.X=Uv.prototype;_.X.attached=function(){var H=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){H.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){H.stateChangeHandler("publicytnetworkstatus-offline")})};
_.X.detached=function(){var H=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){H.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){H.stateChangeHandler("publicytnetworkstatus-offline")})};
_.X.enterState=function(H){var U=this;this.scheduledJobId&&_.Fl.cancelJob(this.scheduledJobId);H==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):H==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.hP("NO_INTERNET_CONNECTION",void 0,"No internet connection")):H==="BACK_ONLINE"&&(this.bannerString=_.hP("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.bM(_.Fl,function(){U.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=H};
_.X.stateChangeHandler=function(H){(H=twS[this.currentState][H])&&this.enterState(H)};
_.X.logVisibility=function(H){var U=_.XK();this.createBannerVe(H);U&&this.bannerVe&&(H?_.sn(U,[this.bannerVe]):_.nE(U,[this.bannerVe]))};
_.X.createBannerVe=function(H){!this.bannerVe&&H&&(this.bannerVe=_.ts(37929),_.lY(_.k$(),this.bannerVe))};
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",String)],Uv.prototype,"currentState",void 0);_.G([_.y(),_.q("design:type",Object)],Uv.prototype,"scheduledJobId",void 0);_.G([_.y(),_.q("design:type",Object)],Uv.prototype,"bannerString",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-network-status-banner"})],Uv);
_.e(Uv,"ytd-network-status-banner",function(){if(gKN!==void 0)return gKN;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return gKN=
H},{mode:1});var cHY;var Am=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};H.hidden=!0;H.frostedGlass=_.S("web_frosted_glass");return H};
_.R(Am,_.B);Am.prototype.computeHidden=function(H){return H&&H.status?!1:!0};
Am.prototype.handleUpdatePermissionRoleCommand=function(H){if(H=_.p(H,_.Tvn))if(H=_.p(H.renderer,_.vyg))this.data=H};
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Am.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Am.prototype,"componentBehavior",void 0);_.G([_.y({value:!0,computed:"computeHidden(data)"}),_.q("design:type",Object)],Am.prototype,"hidden",void 0);_.G([_.y(),_.q("design:type",Object)],Am.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Am.prototype,"frostedGlass",void 0);
_.G([_.dX({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Am);
_.e(Am,"ytd-permission-role-bottom-bar-renderer",function(){if(cHY!==void 0)return cHY;var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);return cHY=H},{mode:1});var yHM;var BmY;var W9j={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Ml=function(){return _.B.apply(this,arguments)||this};
_.R(Ml,_.B);_.X=Ml.prototype;_.X.attached=function(){this.JSC$22899_scroller&&(this.JSC$22899_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22899_scroller.attached&&typeof this.JSC$22899_scroller.attached==="function"&&this.JSC$22899_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(A){A.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var H=_.c4(this.hostElement);H.querySelector("tp-yt-paper-radio-group").selected="";var U=H.querySelector("#reason-text");U&&(U.value="");H.querySelector("#description-text").value=""}};
_.X.canSubmit=function(H,U){_.cg(this.hostElement,"yt-invalidate-popup-tabbables");return!(H&&U)};
_.X.onCancel=function(){_.yr(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.X.onSubmit=function(){var H=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(w){return w.active}).map(function(w){return w.innerText.trim()}),U=this.hostElement.querySelector("tp-yt-paper-radio-group"),A=U.selectedItem,M=A.name;
A=A.innerText.trim();var W=U.querySelector("#reason-text");U=void 0;W&&(U=W.value);(W=this.descriptionText.value)&&(W=W.trim());wnf(this.data.searchQuery,H,M,A,W,U);_.yr(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.X.sendFormSubmitToast=function(){var H=_.mH(_.hP("SBOX_INAPPROPRIATE_TOAST"));_.yr(this.hostElement,"yt-open-popup-action",[H,this])};
_.X.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(H){return H.active})};
_.X.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Ml.prototype.onIronSelect=Ml.prototype.onIronSelect;Ml.prototype.onIronChange=Ml.prototype.onIronChange;Ml.prototype.dataChanged=Ml.prototype.dataChanged;_.G([_.y(),_.q("design:type",Object)],Ml.prototype,"data",void 0);_.G([_.y({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.q("design:type",Boolean)],Ml.prototype,"submitDisabled",void 0);_.G([_.y(),_.q("design:type",Boolean)],Ml.prototype,"suggestionSelected",void 0);
_.G([_.y(),_.q("design:type",Boolean)],Ml.prototype,"catagorySelected",void 0);_.G([_.hG("#scroller"),_.q("design:type",Object)],Ml.prototype,"JSC$22899_scroller",void 0);_.G([_.hG("#description-text"),_.q("design:type",Object)],Ml.prototype,"descriptionText",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ml.prototype,"dataChanged",null);
_.G([_.Gl("iron-change"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ml.prototype,"onIronChange",null);_.G([_.Gl("iron-select"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ml.prototype,"onIronSelect",null);_.G([_.dX({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Ml);
_.e(Ml,"ytd-search-suggestion-report-dialog",function(){if(BmY!==void 0)return BmY;var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return BmY=H},{mode:1});var WH=function(H){var U=H.openPopupAction;var A=H.target;var M=H.container;var W=H.popupContainerConfig;var w=H.getElement;H=H.removeWhenClosed===void 0?!1:H.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=U;this.target=A;this.container=M;this.popupContainerConfig=W;this.getElement=w;this.JSC$22905_popupConfig=this.popupContainerConfig.JSC$21587_popupConfig[this.openPopupAction.popupType];this.rendererName=(U=this.getName())?_.SyK(U,gMm(this.popupContainerConfig,
U)):"";_.S("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=H);this.createPopup()};
WH.prototype.updatePopup=function(H){this.openPopupAction=H;this.JSC$22905_popupConfig=this.popupContainerConfig.JSC$21587_popupConfig[this.openPopupAction.popupType];rHR(this);_.S("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
WH.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var $pv=function(H,U,A){(U=U&&H.JSC$22905_popupConfig.narrowProperties?H.JSC$22905_popupConfig.narrowProperties:H.JSC$22905_popupConfig.properties)&&A!==void 0&&(U.isAriaModal=A);ege(H,U);H.isRtl()&&ege(H,H.JSC$22905_popupConfig.rtlProperties);DpC(H)};
WH.prototype.createPopup=function(){var H=this.JSC$22905_popupConfig.component;if(this.popupContent=l35(this,this.rendererName)){if(H){this.popup=l35(this,H);var U=this.popupContent;_.S("web_enable_wrapper_for_cow_component_in_popup")&&(U=document.createElement("div"),U.appendChild(this.popupContent));_.S("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$22905_popupConfig.slotName&&U.setAttribute("slot",this.JSC$22905_popupConfig.slotName);H=this.popup;var A=this.container.tagName.toLowerCase(),
M=_.mq(U);_.xBE(_.ar(H),_.zl(U,A,M));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.S("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.c4(this.container).appendChild(this.popup)}};
var rHR=function(H){var U,A,M=(U=H.openPopupAction.accessibilityData)==null?void 0:(A=U.accessibilityData)==null?void 0:A.label;M&&(H.popup.ariaLabel=M);var W;((W=H.popupContent.polymerController)!=null?W:H.popupContent).data=(0,_.dG.unsafeClone)(H.openPopupAction.popup[H.getName()]);H.popupContent.duration=G2e(H);H.popupContent.positionType=H.openPopupAction.position;var w=H.openPopupAction.properties;w&&Object.keys(w).forEach(function(d){H.popupContent[d]=w[d]})},ege=function(H,U){if(U)for(var A=
_.b(Object.keys(U)),M=A.next();!M.done;M=A.next())M=M.value,H.popup[M]=U[M]},DpC=function(H){if(H.openPopupAction.position){var U=H.JSC$22905_popupConfig.positionalProperties&&H.JSC$22905_popupConfig.positionalProperties[H.openPopupAction.position],A=H.JSC$22905_popupConfig.rtlPositionalProperties&&H.JSC$22905_popupConfig.rtlPositionalProperties[H.openPopupAction.position];
U=H.isRtl()&&A?A:U;U.shiftedHorizontalOffset&&(A=H.popup.style.display,H.popup.style.display="block",H.popupContent&&H.popup.positionTarget&&H.popupContent.clientWidth>H.popup.positionTarget.clientWidth&&(U.horizontalOffset=H.popup.positionTarget.clientWidth/2-U.shiftedHorizontalOffset),H.popup.style.display=A);ege(H,U)}},YzS=function(H,U,A){if(U){for(var M=_.b(Object.keys(U)),W=M.next();!W.done;W=M.next())W=W.value,H.popup.style[W]=U[W];
if(A)for(U=_.b(Object.keys(A)),M=U.next();!M.done;M=U.next())M=M.value,H.popup.style[M]=A[M]}};
WH.prototype.getName=function(){return _.Rh(this.openPopupAction.popup,"renderer")||_.Rh(this.openPopupAction.popup,"dialog")||_.Rh(this.openPopupAction.popup,"model")||void 0};
var G2e=function(H){H=H.openPopupAction.durationHintMs;return H===0?H:Math.max(4E3,H||4E3)};
WH.prototype.isRtl=function(){return _.gD("HTML_DIR")==="rtl"};
var l35=function(H,U){H=H.getElement(U,H.target);H==null&&_.Na(new _.bD("popup getElement returned null",U));return H};var qzL={};
qzL.YtPopupContainerBehavior=[_.uK.YtComponentBehavior,_.$y.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;this.expandToFullWidth=this.isAriaModal=!1;this.doNotCacheList_=["yt-dialog-view-model"]},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.EH(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.mJ(this.hostElement)},
closePopup:function(H){var U=this.createCacheKey(void 0,H);this.popups_[U]&&this.handleClosePopupAction_(void 0,H)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.Fl.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.Fl.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(H){H.opened&&H.keepBelowPlayer&&this.ensurePopupBelowPlayer(H)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var H in this.popups_){var U=this.popups_[H];if(U.popup.scrollAction==="refit"){var A=U.popup.positionTarget.getBoundingClientRect(),M=U.popup;A=A.top;var W=U;if(!W.naturalHeight){W.popup.hidden=!1;W.popup.style.position="fixed";W.popup.style.top="0px";W.popup.style.left="0px";var w=W.popup.getBoundingClientRect();W.naturalHeight=w.bottom-w.top;W.popup.refit()}M.hidden=!(A>=W.naturalHeight+60);U.popupContent.clientHeight===0&&U.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(H){this.popupContainerConfig=H},
handleOpenPopupAction:function(H,U,A){var M=H.openPopupAction,W=_.lx().resolve(_.$V(_.Ef))&&M.popupType==="TOAST";W&&!M.uniqueId&&(M.uniqueId=Qn());if(!_.S("popup_container_parent_target_killswitch")){var w;U=(w=this.getParentTarget(U))!=null?w:U}var d=this.ensurePopup_(M,U);return new _.IQ(function(O){d.then(function(f){if(!f)return O();this.maybeCreateNarrowMediaQuery_();var J=this.createCacheKey(f.rendererName,f.openPopupAction.uniqueId);if(M.showOncePerUniqueId){if(this.shownPopupKeys_.has(J))return O();
this.shownPopupKeys_.add(J)}J=this.popups_[J];var F=!(!J||!J.openPopupAction.beReused);F=!!M.reusePopup||F;if(f.popup.opened&&!F){W&&!f.openPopupAction.replacePopup||this.handleClosePopupAction_(f.rendererName,f.openPopupAction.uniqueId);F=M.popupType==="DIALOG"&&!_.S("popup_container_dialog_reopen_killswitch");if(!W&&!F&&J&&J.target==U&&(_.S("popup_container_event_target_check_killswitch")||J.target==A)&&!f.openPopupAction.replacePopup)return O();_.rV(f.popup,function(){this.completeOpenPopupAction_(M,
U,f);O()}.bind(this))}else f.popup.opened?f.updatePopup(M):this.completeOpenPopupAction_(M,U,f),O()}.bind(this))}.bind(this))},
getParentTarget:function(H){if(H&&H instanceof HTMLElement)for(var U=_.b(Object.entries(this.popups_)),A=U.next();!A.done;A=U.next())if(A=_.b(A.value),A.next(),A=A.next().value,this.popupClosesOnClick(A)&&A.popup.contains(H))return A.target},
popupClosesOnClick:function(H){return H.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(H.rendererName.toUpperCase())},
completeOpenPopupAction_:function(H,U,A){A.updatePopup(H);var M=this.narrowMediaQuery_.queryMatches,W=this.isAriaModal;H=this.expandToFullWidth;A.target=U;var w;U=((w=A.target.polymerController)!=null?w:A.target).popupPositionTarget||A.target;A.JSC$22905_popupConfig.targetContainer&&(U=A.container);A.popup.positionTarget=U;A.popupContent.positionTarget=U;DpC(A);A.JSC$22905_popupConfig.forceFocus&&(A.popupContent.style.outline="none");A.popupContent.tabIndex=-1;A.JSC$22905_popupConfig.narrowProperties&&
(A.popup.style.position="static");A.JSC$22905_popupConfig.preventAutonav&&A.popup.setAttribute("prevent-autonav",!0);A.JSC$22905_popupConfig.forceCloseOnOutsideClick&&A.popup.setAttribute("force-close-on-outside-click",!0);$pv(A,M,W);w={};w.width=H?"100%":"";YzS(A,A.JSC$22905_popupConfig.styles,w);A.isRtl()&&YzS(A,A.JSC$22905_popupConfig.rtlStyles,w);if(!A.openPopupAction.shouldStopParentSignal){var d;H=(d=A.target.polymerController)!=null?d:A.target;(A.popupContent.startForwardingEvents||A.popupContainerConfig.forwardingEnabledPopups.has(A.rendererName))&&
H.parentComponent!==A.popupContent&&A.popupContent!==A.target&&A.target!==document.body&&(A.popupContent.startForwardingEvents?A.popupContent.startForwardingEvents(A.popupContainerConfig.forwardedEvents,A.target):(A.JSC$22905_eventForwarder||(A.JSC$22905_eventForwarder=new _.rz(A.popupContent)),A.JSC$22905_eventForwarder.start(A.popupContainerConfig.forwardedEvents,A.target)))}A=A.popup;A.addEventListener("iron-overlay-opened",_.lN(this,this.onPopupIronOverlayOpened_));A.addEventListener("iron-overlay-closed",
_.lN(this,this.onPopupIronOverlayClosed_));A.addEventListener("iron-overlay-canceled",_.lN(this,this.onPopupIronOverlayCanceled_));A.addEventListener("yt-refit",_.lN(this,this.refitPopup_));A.addEventListener("yt-invalidate-popup-tabbables",_.lN(this,this.handleInvalidatePopupTabbables_));A.open()},
getPopupDurationMs_:function(H){return H.durationHintMs===0?H.durationHintMs:Math.max(4E3,H.durationHintMs||4E3)},
handleClosePopupAction_:function(H,U){var A=_.S("web_popup_cache_key_killswitch")||!!U;if(H||A){var M=this.createCacheKey(H,U);H=(H=this.popups_[M])&&H.popup}else H=_.jTw(_.Zl);if(H&&H.close){if(U=_.lx().resolve(_.$V(_.af)))H.restoreFocusOnClose=U.isKeyBoardInUse();if(H&&H.positionTarget&&!_.S("ytpopup_close_sibling_popups_killswitch")){U=_.b(Object.entries(this.popups_));for(A=U.next();!A.done;A=U.next()){var W=_.b(A.value);A=W.next().value;W=W.next().value;var w=void 0,d=void 0,O=void 0,f=void 0,
J=void 0,F=void 0;H.positionTarget==((w=W)==null?void 0:(d=w.popupContent)==null?void 0:d.positionTarget)&&W.popup&&(!((O=W.popup)==null?0:(f=O.style)==null?0:f.display)||((J=W.popup)==null?void 0:(F=J.style)==null?void 0:F.display)!=="none")&&(w=void 0,(w=W.popup)==null?0:w.close)&&(W.popup.close(),this.removePopup_(W.popup,A))}H&&this.popups_[M]&&(H.close(),this.removePopup_(H,M))}else H.close(),this.removePopup_(H,M)}},
handleClosePopupCommand_:function(H){H.closePopupCommand&&H.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,H.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(H){var U={},A;for(A in this.popups_)if(U={key$jscomp$1247:U.key$jscomp$1247},U.key$jscomp$1247=A,!H||!H.some(function(w){return function(d){return d==w.key$jscomp$1247}}(U))){var M=this.popups_[U.key$jscomp$1247],W=M.popup;
_.lx().resolve(_.$V(_.Ef))&&M.openPopupAction.popupType==="TOAST"||(W&&W.close&&W.close(),this.removePopup_(W,U.key$jscomp$1247))}},
handleClosePopupsAction_:function(H){H.forEach(function(U){var A=this.popups_[U];A&&((A=A.popup)&&A.close&&A.close(),this.removePopup_(A,U))}.bind(this))},
handleGetPopupOpenedAction_:function(H,U){return(U=this.createCacheKey(H,U))&&this.popups_[U]?this.popups_[H].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var H=[],U;for(U in this.popups_){var A=this.popups_[U];A.popup.opened&&H.push(A)}return H},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(H,U){_.S("ytpopup_disable_default_html_caching")&&H&&H.removeWhenClosed&&(_.c4(this.hostElement).removeChild(H),U&&this.popups_[U]&&delete this.popups_[U])},
shouldReusePopup_:function(H){return!(!H||!H.reusePopup)||!(!H||!H.beReused)},
ensurePopup_:function(H,U){this.maybeCreateNarrowMediaQuery_();var A=_.Rh(H.popup,"renderer")||_.Rh(H.popup,"dialog")||_.Rh(H.popup,"model");if(!A)return _.DH();A=_.SyK(A,gMm(this.popupContainerConfig,A));return _.DH(this.getAndMaybeCreatePopup_(H,A,U))},
getAndMaybeCreatePopup_:function(H,U,A){var M=this.createCacheKey(U,H.uniqueId);if(this.popups_[M])return this.popups_[M];H=new WH({openPopupAction:H,target:A,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(U)});return this.popups_[M]=H},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(H){return _.S("ytpopup_disable_default_html_caching")?_.S("ytpopup_disable_cache_allowlist")?H&&this.doNotCacheList_.includes(H):H&&H.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",_.lN(this,this.openPopupQueryMatchesChanged_)),_.c4(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(H){H=H.detail.value;for(var U in this.popups_)$pv(this.popups_[U],H)},
onPopupIronOverlayClosed_:function(H){var U=H.currentTarget,A=_.IE4(U);A=A.length>0?A[0]:U;if(A.is!=="ytd-reel-watch-while-dialog-renderer"||H.target.is!=="tp-yt-iron-dropdown"){H.detail.popup=U;H.detail.popupRenderer=A;var M,W={context:{openingElement:((M=this.popups_[(A==null?void 0:A.is)||""])==null?void 0:M.target)||void 0}};Object.assign(W,H.detail);var w;_.cg((w=A.hostElement)!=null?w:A,"yt-popup-closed",W);U.removeEventListener("yt-refit",_.lN(this,this.refitPopup_));U.removeEventListener("yt-invalidate-popup-tabbables",
_.lN(this,this.handleInvalidatePopupTabbables_));U.removeEventListener("iron-overlay-canceled",_.lN(this,this.onPopupIronOverlayCanceled_));U.removeEventListener("iron-overlay-closed",_.lN(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(U)}},
onPopupIronOverlayCanceled_:function(H,U){var A=H.currentTarget,M=_.IE4(A);M=M.length>0?M[0]:A;if(M.is!=="ytd-reel-watch-while-dialog-renderer"||H.target.is!=="tp-yt-iron-dropdown"){var W;_.cg((W=M.hostElement)!=null?W:M,"yt-popup-canceled",H.detail);W=U?_.Lf(U):null;(!U||["click","tap"].includes(U.type))&&!A.hasAttribute("force-close-on-outside-click")&&A.positionTarget&&W&&W.includes(A.positionTarget)&&H.preventDefault();A.restoreFocusOnClose=_.le.keyboardEventMatchesKeys(U,"esc")}},
onPopupIronOverlayOpened_:function(H){H=H.currentTarget;var U=_.IE4(H);U=U.length>0?U[0]:H;var A,M;_.cg((A=U.hostElement)!=null?A:U,"yt-popup-opened",(M=U.hostElement)!=null?M:U);H.keepBelowPlayer&&(this.ensurePopupBelowPlayer(H,!0),this.dynamicallyPositionedElements_.add(H));A=_.lx().resolve(_.$V(_.af));M=!!U.querySelector("#toast");A&&A.isKeyBoardInUse()&&!M&&(typeof U.focusFirstItem==="function"?U.focusFirstItem():(U=_.kbk(H),U.length&&U[0].focus()));H.removeEventListener("iron-overlay-opened",
_.lN(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(H){H=H.currentTarget;H.refit&&H.refit()},
refitPopups_:function(){for(var H in this.popups_)this.popups_[H].refit()},
handleInvalidatePopupTabbables_:function(H){H=H.currentTarget;H.invalidateTabbables&&H.invalidateTabbables()},
createCacheKey:function(H,U){return _.S("web_popup_cache_key_killswitch")?U?H+"#"+U:H:U?"#"+U:H},
openSheet:function(H,U,A){var M=H==null?void 0:H.openPopupActionCommand;if(!M&&(H==null?0:H.viewModel)){if(H.sheetPosition)a:switch(H.sheetPosition){case "SHEET_POSITION_RIGHT":M="OPEN_POPUP_POSITION_RIGHT";break a;default:M="OPEN_POPUP_POSITION_UNKNOWN"}else M=void 0;M={openPopupAction:{popup:{sheetViewModel:H.viewModel},popupType:"CONTEXTUAL_SHEET",position:M}}}if(M){var W;this.expandToFullWidth=(W=H==null?void 0:H.expandToFullWidth)!=null?W:!1;this.handleOpenPopupAction(M,U,A===void 0?U:A)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var H=this;return _.u(function(U){return U.return(H.handleGetOpenedPopupsAction_().filter(function(A){var M;return((M=A.openPopupAction)==null?void 0:M.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(H,U,A){if(_.S("web_dialog_utils_killswitch")){var M=H==null?void 0:H.openPopupActionCommand,W=(A==null?0:A.ariaLabel)?{accessibilityData:{accessibilityData:{label:A.ariaLabel}}}:void 0;!M&&(H==null?0:H.viewModel)&&(M={openPopupAction:Object.assign({},{popup:{dialogViewModel:H.viewModel},popupType:(A==null?0:A.isModal)?"MODAL":"DIALOG"},W&&W)});M&&this.handleOpenPopupAction(M,U)}else{if(W=H==null?void 0:H.viewModel){var w=A=A===void 0?{}:A;A=w.ariaLabel;W={popup:{dialogViewModel:W},
popupType:w.isModal?"MODAL":"DIALOG"};w={accessibilityData:{label:A}};A&&(W.accessibilityData=w);W={openPopupAction:W}}else W=void 0;if(W=(M=W)!=null?M:H==null?void 0:H.openPopupActionCommand)this.isAriaModal=_.S("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(W,U)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var H=this;return _.u(function(U){return U.return(H.handleGetOpenedPopupsAction_().filter(function(A){var M;return((M=A.openPopupAction)==null?void 0:M.popupType)==="DIALOG"}).length>0)})}}];var hgO;var k2j;var vKC=_.NP(["about:blank"]),wZ=function(){var H=_.B.apply(this,arguments)||this;H.isMuted=!1;H.pageLoadTimeoutId=void 0;H.enableA11yFocusFix=_.S("enable_a11y_focus_fix_for_mac_panel_on_desktop");H.moveFocusToContent=function(){H.iframe.focus()};
return H};
_.R(wZ,_.B);_.X=wZ.prototype;_.X.dataChanged=function(){var H=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var U=this.data.url,A=_.PW(U);_.S("enable_yt_ata_iframe_authuser")?(A=_.PW(U),_.wY(this.iframe,XnY(A))):_.wY(this.iframe,A);this.pageLoadTimeoutId=_.bM(_.MP(),function(){return void H.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Bn({destination:window,iframe:this.iframe,origin:_.TGE(A.toString()),channelName:"ataiframe",onMessage:_.J$w(Bx7,function(M){re5(M.data)?(M=_.IY(M.data,1,_.um,_.y9()),M.length!==1?_.Na(Error("om")):(M=M[0],M===3?(H.isMuted=!0,H.logStateChanged({adMuteRequested:!0})):M===1&&H.close())):_.Na(Error("pm"))}),
onEstablished:function(){H.cancelPageLoadTimeout();H.logStateChanged({pageLoadSucceeded:!0})}})}};
_.X.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.MP().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.X.logStateChanged=function(H){var U;if((U=this.data)==null?0:U.trackingParams)H={adsClientData:{aboutThisAdData:H}},_.k$().stateChanged(this.data.trackingParams,H)};
_.X.close=function(){_.yr(this.hostElement,"yt-close-popup-action",[this.is])};
_.X.handlesPopupClosed=function(H,U){var A=this,M,W;return _.u(function(w){if(w.nextAddress==1)return _.gD("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.yr(A.hostElement,"on-about-this-ad-popup-closed",[A.isMuted,U]),w.jumpTo(0)):H&&iTm(H)?w.yield(bT$(H),4):(A.isMuted&&_.yr(A.hostElement,"yt-mute-ad-action",[A.is,A]),w.jumpTo(0));if(M=w.yieldResult){var d=W=new _.Xu(M),O=A.isMuted;d.getOptions().includes("onAboutThisAdPopupClosed")?_.lPy(d,"onAboutThisAdPopupClosed",{isMuted:O,layoutId:U}):_.Kl("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.DO(w)})};
_.X.onPopupClosed=function(H){var U=this,A,M;return _.u(function(W){A=_.LF(vKC);_.wY(U.iframe,A);U.cancelPageLoadTimeout();if(!U.data)return W.jumpTo(0);U.ytRendererBehavior.markDirty();M=H.detail.context.openingElement;return W.yield(U.handlesPopupClosed(M,U.data.layoutId),0)})};
_.X.detached=function(){this.cancelPageLoadTimeout()};
_.X.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
wZ.prototype.onPopupClosed=wZ.prototype.onPopupClosed;wZ.prototype.dataChanged=wZ.prototype.dataChanged;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.G([_.hG("#iframe"),_.q("design:type",HTMLIFrameElement)],wZ.prototype,"iframe",void 0);_.G([_.y(),_.q("design:type",Object)],wZ.prototype,"data",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wZ.prototype,"dataChanged",null);
_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype",Promise)],wZ.prototype,"onPopupClosed",null);_.G([_.b0({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],wZ);
_.e(wZ,"yt-about-this-ad-renderer",function(){if(k2j===void 0){var H=document.createElement("template");_.E(H,'\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><template is="dom-if" if="[[enableA11yFocusFix]]" restamp="" class="style-scope yt-about-this-ad-renderer"><div id="focusTrapEnd" tabindex="0" on-focus="moveFocusToContent" class="style-scope yt-about-this-ad-renderer"></div></template>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;hgO===void 0&&(hgO=document.createElement("template"));var M=hgO;A.call(U,M.content.cloneNode(!0),H.content.firstChild);k2j=H}H=k2j;return H},{mode:2});var TmM;var jyC;var I3M=function(H){var U=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=U.message;"stack"in U&&(this.stack=U.stack);this.maxFileSizeMB=H;Object.setPrototypeOf(this,I3M.prototype)};
_.R(I3M,Error);var Qy3=function(H,U){var A=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=A.message;"stack"in A&&(this.stack=A.stack);this.minWidth=H;this.minHeight=U;Object.setPrototypeOf(this,Qy3.prototype)};
_.R(Qy3,Error);var VwS=function(H){this.requirements=H;this.JSC$22933_maxFileSize=H.maxFileSizeMB*1024*1024},H8M=function(H,U){if(U.size>H.JSC$22933_maxFileSize)throw new I3M(H.requirements.maxFileSizeMB);
};var UXy=function(H,U){this.canvas=H;this.imageEditorBuilder=U};
UXy.prototype.addEventListeners=function(H){var U=function(W){ABC(H,W)};
this.JSC$22939_mouseDownEvent=U;var A=function(W){M7N(H,W)};
this.JSC$22939_mouseMoveEvent=A;var M=function(){W5e(H)};
this.JSC$22939_mouseUpEvent=M;this.canvas.addEventListener("mousedown",U);this.canvas.addEventListener("mousemove",A);document.addEventListener("mouseup",M)};
UXy.prototype.removeEventListeners=function(){this.JSC$22939_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$22939_mouseDownEvent);this.JSC$22939_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$22939_mouseMoveEvent);this.JSC$22939_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$22939_mouseUpEvent)};
var wjS=function(H,U){H.removeEventListeners();return new Promise(function(A){var M=new Image;M.crossOrigin="anonymous";M.onload=function(){var W=H.imageEditorBuilder(H.canvas,M);H.addEventListeners(W);A(W)};
M.src=U})},Xc=function(H,U,A,M,W,w,d,O){this.canvas=H;
this.image=U;this.requiredRatio=A;this.minImageCropDimension=M;this.minOutputImageResolution=W;this.component=w;this.styleFocusedCorner=O===void 0?!0:O;this.action=2;this.focusedCorner=this.resizeCorner=0;H=this.canvas.getContext("2d");if(!H)throw Error("qm");this.ctx=H;this.canvasMargin=d!=null?d:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;d=this.image;H=this.canvasInnerWidth/d.width;d.height*H>912&&(H=d.width/d.height*912/d.width);d=H;this.scaledImageWidth=this.canvas.width%2?
OTy(this.image.width*d):dn5(this.image.width*d);this.scaledImageHeight=Math.round(this.image.height*d);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$22942_overlayMarginBottom=this.JSC$22942_overlayMarginTop=this.canvasMargin;this.JSC$22942_overlayMarginRight=this.JSC$22942_overlayMarginLeft=this.horizontalMargin;this.JSC$22942_overlayWidth=this.scaledImageWidth;this.JSC$22942_overlayHeight=this.scaledImageHeight;
H=this.image.width/this.image.height;H>this.requiredRatio?(this.JSC$22942_overlayWidth=this.canvas.width%2?OTy(this.scaledImageHeight*this.requiredRatio):dn5(this.scaledImageHeight*this.requiredRatio),this.JSC$22942_overlayMarginRight=this.JSC$22942_overlayMarginLeft=(this.canvas.width-this.JSC$22942_overlayWidth)/2):H<this.requiredRatio&&(this.JSC$22942_overlayHeight=this.canvas.height%2?OTy(this.scaledImageWidth/this.requiredRatio):dn5(this.scaledImageWidth/this.requiredRatio),this.JSC$22942_overlayMarginBottom=
this.JSC$22942_overlayMarginTop=(this.canvas.height-this.JSC$22942_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*d,this.scaledImageWidth);Xjv(this)};
Xc.prototype.getContext=function(){return this.ctx};
var ABC=function(H,U){U={x:Math.round(U.pageX-H.canvas.getBoundingClientRect().left),y:Math.round(U.pageY-H.canvas.getBoundingClientRect().top)};H.dragStart=U;i83(H,U)!==0?(H.action=1,b8C(H,U),H.resizeCorner=i83(H,U)):U.x>H.JSC$22942_overlayMarginLeft&&U.x<H.JSC$22942_overlayMarginLeft+H.JSC$22942_overlayWidth&&U.y>H.JSC$22942_overlayMarginTop&&U.y<H.JSC$22942_overlayMarginTop+H.JSC$22942_overlayHeight&&(H.action=0)},dXS=function(H,U){switch(U){case 1:return{x:H.JSC$22942_overlayMarginLeft,
y:H.JSC$22942_overlayMarginTop};case 2:return{x:H.JSC$22942_overlayMarginLeft,y:H.JSC$22942_overlayMarginTop+H.JSC$22942_overlayHeight};case 3:return{x:H.JSC$22942_overlayMarginLeft+H.JSC$22942_overlayWidth,y:H.JSC$22942_overlayMarginTop};case 4:return{x:H.JSC$22942_overlayMarginLeft+H.JSC$22942_overlayWidth,y:H.JSC$22942_overlayMarginTop+H.JSC$22942_overlayHeight};default:throw Error("rm");}},uhL=function(H,U){if(H.focusedCorner!==0){H.dragStart=dXS(H,H.focusedCorner);
H.action=1;H.resizeCorner=H.focusedCorner;var A=H.dragStart.x,M=H.dragStart.y;switch(U){case 0:H.focusedCorner===1||H.focusedCorner===4?(A-=10,M-=10):(A-=10,M+=10);break;case 1:H.focusedCorner===1||H.focusedCorner===4?(A+=10,M+=10):(A+=10,M-=10);break;case 2:A=H.focusedCorner===1||H.focusedCorner===4?A-10:A+10;M-=10;break;case 3:A=H.focusedCorner===1||H.focusedCorner===4?A+10:A-10;M+=10;break;default:throw Error("sm");}O8S(H,{x:A,y:M});Xjv(H);H.action=2;H.dragStart=void 0}},M7N=function(H,U){U={x:Math.round(U.pageX-
H.canvas.getBoundingClientRect().left),
y:Math.round(U.pageY-H.canvas.getBoundingClientRect().top)};b8C(H,U);switch(H.action){case 1:O8S(H,U);break;case 0:H.dragStart&&(H.JSC$22942_overlayMarginLeft=Math.max(H.horizontalMargin,Math.min(H.JSC$22942_overlayMarginLeft-(H.dragStart.x-U.x),H.horizontalMargin+H.scaledImageWidth-H.JSC$22942_overlayWidth)),H.JSC$22942_overlayMarginRight=H.canvas.width-H.JSC$22942_overlayMarginLeft-H.JSC$22942_overlayWidth,H.JSC$22942_overlayMarginTop=Math.max(H.canvasMargin,Math.min(H.JSC$22942_overlayMarginTop-
(H.dragStart.y-U.y),H.scaledImageHeight-H.JSC$22942_overlayHeight+H.canvasMargin)),H.JSC$22942_overlayMarginBottom=H.canvas.height-(H.JSC$22942_overlayMarginTop+H.JSC$22942_overlayHeight));break;default:return}Xjv(H);H.dragStart=U},W5e=function(H){H.action=2;
H.dragStart=void 0;document.body.style.cursor="auto"},b8C=function(H,U){switch(i83(H,U)){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:H.action!==1&&(document.body.style.cursor="auto")}},i83=function(H,U){var A=H.JSC$22942_overlayMarginLeft-5,M=H.JSC$22942_overlayMarginTop-5,W=H.JSC$22942_overlayMarginLeft+H.JSC$22942_overlayWidth-5;
H=H.JSC$22942_overlayMarginTop+H.JSC$22942_overlayHeight-5;return Z8e(U,{x:A,y:M})?1:Z8e(U,{x:W,y:M})?3:Z8e(U,{x:A,y:H})?2:Z8e(U,{x:W,y:H})?4:0},Z8e=function(H,U){return H.x>=U.x&&H.x<=U.x+10&&H.y>=U.y&&H.y<=U.y+10},O8S=function(H,U){if(H.dragStart)switch(H.resizeCorner){case 2:Math.abs((H.JSC$22942_overlayMarginLeft+H.JSC$22942_overlayWidth-U.x)/(U.y-H.JSC$22942_overlayMarginTop))>=H.requiredRatio?fkj(H,U.x):JBN(H,U.y);
break;case 1:Math.abs((H.JSC$22942_overlayMarginLeft+H.JSC$22942_overlayWidth-U.x)/(H.JSC$22942_overlayMarginTop+H.JSC$22942_overlayHeight-U.y))>=H.requiredRatio?K53(H,U.x):JBN(H,U.y);break;case 4:Math.abs((U.x-H.JSC$22942_overlayMarginLeft)/(U.y-H.JSC$22942_overlayMarginTop))>=H.requiredRatio?fkj(H,U.x):ofO(H,U.y);break;case 3:Math.abs((U.x-H.JSC$22942_overlayMarginLeft)/(H.JSC$22942_overlayMarginTop+H.JSC$22942_overlayHeight-U.y))>=H.requiredRatio?K53(H,U.x):ofO(H,U.y);break;default:throw Error("tm");
}},fkj=function(H,U){var A=H.JSC$22942_overlayMarginTop;
H.JSC$22942_overlayMarginBottom=F5R(H,U);H.JSC$22942_overlayHeight=H.canvas.height-H.JSC$22942_overlayMarginBottom-A;H.JSC$22942_overlayWidth=Math.round(H.JSC$22942_overlayHeight*H.requiredRatio);Pm3(H)},K53=function(H,U){var A=H.JSC$22942_overlayMarginTop+H.JSC$22942_overlayHeight;
H.JSC$22942_overlayMarginTop=F5R(H,U);H.JSC$22942_overlayHeight=A-H.JSC$22942_overlayMarginTop;H.JSC$22942_overlayWidth=Math.round(H.JSC$22942_overlayHeight*H.requiredRatio);Pm3(H)},Pm3=function(H){switch(H.resizeCorner){case 2:case 1:H.JSC$22942_overlayMarginLeft=H.canvas.width-H.JSC$22942_overlayMarginRight-H.JSC$22942_overlayWidth;
break;case 4:case 3:H.JSC$22942_overlayMarginRight=H.canvas.width-H.JSC$22942_overlayMarginLeft-H.JSC$22942_overlayWidth;break;default:throw Error("tm");}},JBN=function(H,U){var A=H.JSC$22942_overlayMarginLeft+H.JSC$22942_overlayWidth;
H.JSC$22942_overlayMarginLeft=sY3(H,U);H.JSC$22942_overlayWidth=A-H.JSC$22942_overlayMarginLeft;H.JSC$22942_overlayHeight=Math.round(H.JSC$22942_overlayWidth/H.requiredRatio);nfv(H)},ofO=function(H,U){var A=H.JSC$22942_overlayMarginLeft;
H.JSC$22942_overlayMarginRight=sY3(H,U);H.JSC$22942_overlayWidth=H.canvas.width-H.JSC$22942_overlayMarginRight-A;H.JSC$22942_overlayHeight=Math.round(H.JSC$22942_overlayWidth/H.requiredRatio);nfv(H)},nfv=function(H){switch(H.resizeCorner){case 2:case 4:H.JSC$22942_overlayMarginBottom=H.canvas.height-H.JSC$22942_overlayMarginTop-H.JSC$22942_overlayHeight;
break;case 1:case 3:H.JSC$22942_overlayMarginTop=H.canvas.height-H.JSC$22942_overlayMarginBottom-H.JSC$22942_overlayHeight;break;default:throw Error("tm");}},F5R=function(H,U){switch(H.resizeCorner){case 2:U=H.canvas.height-(H.JSC$22942_overlayMarginTop+Nhe(H,U));
break;case 4:U=H.canvas.height-(H.JSC$22942_overlayMarginTop+S$L(H,U));break;case 1:U=H.JSC$22942_overlayMarginTop+H.JSC$22942_overlayHeight-Nhe(H,U);break;case 3:U=H.JSC$22942_overlayMarginTop+H.JSC$22942_overlayHeight-S$L(H,U);break;default:throw Error("tm");}return Math.max(U,H.canvasMargin)},Nhe=function(H,U){U=H.JSC$22942_overlayMarginLeft+H.JSC$22942_overlayWidth-Math.max(U,H.horizontalMargin);
U=U<0?H.JSC$22942_overlayWidth:Math.max(U,H.minOverlayWidth);return Math.round(U/H.requiredRatio)},S$L=function(H,U){U=H.canvas.width-Math.max(H.canvas.width-U,H.horizontalMargin)-H.JSC$22942_overlayMarginLeft;
U=U<0?H.JSC$22942_overlayWidth:Math.max(U,H.minOverlayWidth);return Math.round(U/H.requiredRatio)},sY3=function(H,U){switch(H.resizeCorner){case 2:U=H.canvas.width-H.JSC$22942_overlayMarginRight-pjy(H,U);
break;case 4:U=H.canvas.width-H.JSC$22942_overlayMarginLeft-pjy(H,U);break;case 1:U=H.canvas.width-H.JSC$22942_overlayMarginRight-L5O(H,U);break;case 3:U=H.canvas.width-H.JSC$22942_overlayMarginLeft-L5O(H,U);break;default:throw Error("tm");}return Math.max(U,H.horizontalMargin)},pjy=function(H,U){U=H.canvas.height-Math.max(H.canvas.height-U,H.canvasMargin)-H.JSC$22942_overlayMarginTop;
return U<0?H.JSC$22942_overlayWidth:Math.max(Math.round(U*H.requiredRatio),H.minOverlayWidth)},L5O=function(H,U){U=H.JSC$22942_overlayMarginTop+H.JSC$22942_overlayHeight-Math.max(U,H.canvasMargin);
return U<0?H.JSC$22942_overlayWidth:Math.max(Math.round(U*H.requiredRatio),H.minOverlayWidth)},Xjv=function(H){H.ctx.clearRect(0,0,H.canvas.width,H.canvas.height);
H.ctx.drawImage(H.image,0,0,H.image.width,H.image.height,H.horizontalMargin,H.canvasMargin,H.canvas.width-2*H.horizontalMargin,H.scaledImageHeight);H.ctx.fillStyle="rgba(0, 0, 0, 0.7)";H.ctx.fillRect(H.horizontalMargin,H.JSC$22942_overlayMarginTop,H.JSC$22942_overlayMarginLeft-H.horizontalMargin,H.JSC$22942_overlayHeight);H.ctx.fillRect(H.JSC$22942_overlayMarginLeft+H.JSC$22942_overlayWidth,H.JSC$22942_overlayMarginTop,H.JSC$22942_overlayMarginRight-H.horizontalMargin,H.JSC$22942_overlayHeight);H.ctx.fillRect(H.horizontalMargin,
H.canvasMargin,H.scaledImageWidth,H.JSC$22942_overlayMarginTop-H.canvasMargin);H.ctx.fillRect(H.horizontalMargin,H.JSC$22942_overlayMarginTop+H.JSC$22942_overlayHeight,H.scaledImageWidth,H.JSC$22942_overlayMarginBottom-H.canvasMargin);H.drawOverlay();H.component&&_.cg(H.component,"image-updated")};
Xc.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$22942_overlayMarginLeft,this.JSC$22942_overlayMarginTop,this.JSC$22942_overlayWidth,this.JSC$22942_overlayHeight);R5Y(this)};
var R5Y=function(H){var U=H.JSC$22942_overlayMarginLeft-5,A=H.JSC$22942_overlayMarginTop-5,M=H.JSC$22942_overlayMarginLeft+H.JSC$22942_overlayWidth-5,W=H.JSC$22942_overlayMarginTop+H.JSC$22942_overlayHeight-5;H.ctx.fillStyle="#FFF";H.ctx.fillRect(U,A,10,10);H.ctx.strokeRect(U,A,10,10);H.ctx.fillRect(M,A,10,10);H.ctx.strokeRect(M,A,10,10);H.ctx.fillRect(U,W,10,10);H.ctx.strokeRect(U,W,10,10);H.ctx.fillRect(M,W,10,10);H.ctx.strokeRect(M,W,10,10);if(H.focusedCorner!==0&&H.styleFocusedCorner){H.ctx.lineWidth=
4;H.ctx.strokeStyle="#3EA6FF";switch(H.focusedCorner){case 1:--U;--A;break;case 2:--U;A=W-1;break;case 3:U=M-1;--A;break;case 4:U=M-1;A=W-1;break;default:return}H.ctx.strokeRect(U,A,12,12)}};
Xc.prototype.crop=function(H,U){U=U===void 0?!0:U;var A=this.image.width/this.scaledImageWidth,M=document.createElement("canvas"),W=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],w=this.JSC$22942_overlayWidth*A,d=this.JSC$22942_overlayHeight*A;M.width=Math.max(w,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);M.height=Math.max(d,W);H&&(M.width=Math.min(M.width,M.height),M.height=Math.min(M.width,M.height));
H=M.getContext("2d");if(!H)throw Error("hm");W=(this.JSC$22942_overlayMarginLeft-this.horizontalMargin)*A;A*=this.JSC$22942_overlayMarginTop-this.canvasMargin;U||(H.fillStyle="white",H.fillRect(0,0,M.width,M.height));H.drawImage(this.image,W,A,w,d,0,0,M.width,M.height);return M};var Efj=function(H,U,A,M,W){Xc.call(this,H,U,A,M,void 0,W,8,!1)};
_.R(Efj,Xc);Efj.prototype.drawOverlay=function(){var H=this.getContext(),U=this.JSC$22942_overlayWidth,A=this.JSC$22942_overlayHeight,M=this.JSC$22942_overlayMarginTop,W=this.JSC$22942_overlayMarginLeft;H.lineWidth=2;H.strokeStyle="#3EA6FF";H.beginPath();H.arc(W+U/2,M+A/2,U/2,0,2*Math.PI);H.stroke();H.strokeRect(W,M,U,A);R5Y(this)};
var mXC={maxFileSizeMB:15,minWidth:98,minHeight:98},gfy=["image/png","image/jpeg","image/gif"],i3=function(){var H=_.B.apply(this,arguments)||this;H.fileSelectorFocusListener=null;H.errorMessage=null;H.isLoading=!0;H.hideContainer=!0;H.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return H};
_.R(i3,_.B);_.X=i3.prototype;_.X.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.X.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.X.computePlaylistThumbnail=function(H){return H==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.X.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.yr(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.X.setErrorState=function(H){this.resetErrorState();H&&(this.errorMessage=H)};
_.X.showPopup=function(){var H=this;this.hideContainer=!1;_.bM(_.Fl,function(){_.cg(H.hostElement,"yt-refit")});
this.isLoading=!1};
_.X.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.X.closePopup=function(){this.resetFileSelector();_.yr(this.hostElement,"yt-close-popup-action",[this.is])};
_.X.onCancelTap=function(){this.isPlaylistThumbnail||_.yr(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.X.openFileSelector=function(){var H=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.bM(_.Fl,function(){setTimeout(function(){if(!H.fileSelector.files||H.fileSelector.files.length===0)H.onCancelTap();H.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(U){U instanceof Error?_.sD(U):_.n5(new _.bD(JSON.stringify(U)))}};
_.X.handleFileSelection=function(){var H=this,U,A,M,W,w,d;return _.u(function(O){switch(O.nextAddress){case 1:_.zj(O,2);if(!H.fileSelector.files||!H.imageEditorCanvas)return H.onCancelTap(),O.return();U=H.fileSelector.files[0];H8M(H.imageChecker,U);_.zj(O,4);return O.yield(g4p(U),6);case 6:H.mimeType=O.yieldResult;_.xD(O,5,2);break;case 4:_.eG(O,2),_.yr(H.hostElement,"yt-image-selection-error-action",[(A=H.data)==null?void 0:A.genericImageLoadErrorMessage]),H.onCancelTap();case 5:M=new FileReader;
M.addEventListener("load",function(){var f,J;return _.u(function(F){if(F.nextAddress==1){if(!M.result)return _.Na(Error("jm")),F.return();f=M.result;J=new Image;J.src=f;J.onload=function(){try{var P=H.imageChecker;if(J.width<P.requirements.minWidth||J.height<P.requirements.minHeight)throw new Qy3(P.requirements.minWidth,P.requirements.minHeight);}catch(N){if(N instanceof Qy3){var n;_.yr(H.hostElement,"yt-image-selection-error-action",[(n=H.data)==null?void 0:n.imageDimensionErrorMessage]);H.logImageDimensionErrorVe()}else N instanceof
Error?_.sD(N):(P=new _.bD(JSON.stringify(N)),_.sD(P));H.onCancelTap()}H.showPopup()};
J.onerror=function(){var P;_.yr(H.hostElement,"yt-image-selection-error-action",[(P=H.data)==null?void 0:P.genericImageLoadErrorMessage]);H.onCancelTap()};
return F.yield(wjS(H.imageEditorCanvas,f),2)}H.imageEditor=F.yieldResult;H.updatePositionOfAllCorners();H.addEventListeners(H.imageEditor);_.DO(F)})},!1);
M.readAsDataURL(U);_.xD(O,0);break;case 2:W=_.eG(O),W instanceof I3M?_.yr(H.hostElement,"yt-image-selection-error-action",[(w=H.data)==null?void 0:w.imageSizeErrorMessage]):(W instanceof Error?_.sD(W):_.n5(new _.bD(JSON.stringify(W))),_.yr(H.hostElement,"yt-image-selection-error-action",[(d=H.data)==null?void 0:d.genericImageLoadErrorMessage])),H.onCancelTap(),_.DO(O)}})};
_.X.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var H=_.hy(_.k$(),{veType:232707,visualElement:_.ts(232707)});H&&(H={visualElement:H},_.qD().reportShown(H))}};
_.X.handleImageSelectionErrorAction=function(H){this.isPlaylistThumbnail&&_.oqc(this.hostElement,H)};
_.X.convertToImageFormatBundle=function(H){var U=this,A,M,W;return _.u(function(w){switch(w.nextAddress){case 1:return A=H.toDataURL(U.outputMimeType,1),w.yield(aB5(A),2);case 2:M=w.yieldResult;_.zj(w,3);H8M(U.imageChecker,M);_.xD(w,4);break;case 3:W=_.eG(w);if(!(W instanceof I3M))throw W;_.Na(new _.bD("Output size is bigger than input size for image",U.mimeType,U.outputMimeType,M.size));A=H.toDataURL("image/jpeg",.95);return w.yield(aB5(A),6);case 6:M=w.yieldResult;case 4:return w.return({dataUrl:A,
imageFile:M})}})};
_.X.handleUploadImageToScottyCommand=function(H){var U=this,A,M,W,w,d,O,f,J,F,P;return _.u(function(n){switch(n.nextAddress){case 1:if(!U.imageEditor||!_.p(H,KIk))return n.return();A=_.p(H,KIk).scottyUploadUrl;if(!A){var N=new _.bD("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.sD(N);return n.return()}_.zj(n,2);U.setLoadingState();M=U.imageEditor.crop(!1,!1);return n.yield(U.convertToImageFormatBundle(M),4);case 4:return W=n.yieldResult,n.yield(E4y(W.imageFile,A),5);
case 5:w=n.yieldResult;((d=U.data)==null?0:d.onUploadEndpoint)?(O=U.buildUploadServiceEndpoint(w),U.ytComponentBehavior.resolveCommand(O),f=_.p(O,_.dk),((J=f)==null?0:J.params)?U.closePopup():U.resetFileSelector()):(_.yr(U.hostElement,"yt-image-updated-action",[W.dataUrl,w]),U.closePopup());_.xD(n,0);break;case 2:F=_.eG(n),U.setErrorState((P=U.data)==null?void 0:P.uploadErrorMessage),F instanceof Error?_.sD(F):(N=new _.bD(JSON.stringify(F)),_.sD(N)),_.DO(n)}})};
_.X.buildUploadServiceEndpoint=function(H){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",H),this.data.onUploadEndpoint):null};
_.X.dataChanged=function(){var H=this,U;return _.u(function(A){if(A.nextAddress==1){if(!H.data||!H.canvasElement)return A.return();H.data.imageRatio&&H.data.minImageCropWidth||_.n5(new _.bD("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));U=function(M,W){return H.data.imageType==="IMAGE_TYPE_AVATAR"?new Efj(M,W,H.data.imageRatio,[H.data.minImageCropWidth,H.data.minImageCropWidth/H.data.imageRatio],H.hostElement):new Xc(M,W,H.data.imageRatio,[H.data.minImageCropWidth,
H.data.minImageCropWidth/H.data.imageRatio],void 0,H.hostElement,8,!1)};
H.imageEditorCanvas=new UXy(H.canvasElement,U);return H.data.url?A.yield(wjS(H.imageEditorCanvas,H.data.url),3):(H.hideContainer=!0,H.openFileSelector(),A.jumpTo(0))}H.imageEditor=A.yieldResult;H.showPopup();H.addEventListeners(H.imageEditor);_.DO(A)})};
_.X.addEventListeners=function(H){this.removeEventListeners();var U=function(W){ABC(H,W)};
this.JSC$22950_mouseDownEvent=U;var A=function(W){M7N(H,W)};
this.JSC$22950_mouseMoveEvent=A;var M=function(){W5e(H)};
this.JSC$22950_mouseUpEvent=M;this.topLeftCorner.addEventListener("mousedown",U);this.topLeftCorner.addEventListener("mousemove",A);this.topLeftCorner.addEventListener("mouseup",M);this.topRightCorner.addEventListener("mousedown",U);this.topRightCorner.addEventListener("mousemove",A);this.topRightCorner.addEventListener("mouseup",M);this.bottomLeftCorner.addEventListener("mousedown",U);this.bottomLeftCorner.addEventListener("mousemove",A);this.bottomLeftCorner.addEventListener("mouseup",M);this.bottomRightCorner.addEventListener("mousedown",
U);this.bottomRightCorner.addEventListener("mousemove",A);this.bottomRightCorner.addEventListener("mouseup",M)};
_.X.removeEventListeners=function(){this.JSC$22950_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$22950_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$22950_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$22950_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$22950_mouseDownEvent));this.JSC$22950_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$22950_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$22950_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$22950_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$22950_mouseMoveEvent));this.JSC$22950_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$22950_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$22950_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$22950_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$22950_mouseUpEvent))};
_.X.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var H=document.activeElement;H&&H.shadowRoot&&H.shadowRoot.activeElement;)H=H.shadowRoot.activeElement;switch(H){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};
_.X.updatePositionOfCorner=function(H,U){var A=H.y-U.offsetHeight/2+4;U.style.left=H.x-U.offsetWidth/2+16+"px";U.style.top=A+"px"};
_.X.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var H=_.b([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),U=H.next();!U.done;U=H.next()){U=U.value;var A=dXS(this.imageEditor,U.corner);this.updatePositionOfCorner(A,U.div)}};
_.X.onLeft=function(H){this.imageEditor&&this.setFocusInImageEditor()&&(uhL(this.imageEditor,0),this.updatePositionOfAllCorners(),H.preventDefault())};
_.X.onRight=function(H){this.imageEditor&&this.setFocusInImageEditor()&&(uhL(this.imageEditor,1),this.updatePositionOfAllCorners(),H.preventDefault())};
_.X.onUp=function(H){this.imageEditor&&this.setFocusInImageEditor()&&(uhL(this.imageEditor,2),this.updatePositionOfAllCorners(),H.preventDefault())};
_.X.onDown=function(H){this.imageEditor&&this.setFocusInImageEditor()&&(uhL(this.imageEditor,3),this.updatePositionOfAllCorners(),H.preventDefault())};
_.X.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.D5.Object.defineProperties(i3.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&gfy.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var H,U,A;((U=this.data)==null?0:U.imageRatio)&&((A=this.data)==null?0:A.minImageCropWidth)?H={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:H=mXC;return new VwS(H)}}});
i3.prototype.updatePositionOfAllCorners=i3.prototype.updatePositionOfAllCorners;i3.prototype.dataChanged=i3.prototype.dataChanged;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],i3.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],i3.prototype,"ytComponentBehavior",void 0);_.G([_.g(_.le),_.q("design:type",Object)],i3.prototype,"ironA11yKeysBehavior",void 0);
_.G([_.hG("#canvas"),_.q("design:type",HTMLCanvasElement)],i3.prototype,"canvasElement",void 0);_.G([_.hG("#file-selector"),_.q("design:type",HTMLInputElement)],i3.prototype,"fileSelector",void 0);_.G([_.hG("#top-left-corner"),_.q("design:type",HTMLDivElement)],i3.prototype,"topLeftCorner",void 0);_.G([_.hG("#top-right-corner"),_.q("design:type",HTMLDivElement)],i3.prototype,"topRightCorner",void 0);
_.G([_.hG("#bottom-left-corner"),_.q("design:type",HTMLDivElement)],i3.prototype,"bottomLeftCorner",void 0);_.G([_.hG("#bottom-right-corner"),_.q("design:type",HTMLDivElement)],i3.prototype,"bottomRightCorner",void 0);_.G([_.y(),_.q("design:type",Object)],i3.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],i3.prototype,"errorMessage",void 0);_.G([_.y(),_.q("design:type",Object)],i3.prototype,"isLoading",void 0);_.G([_.y(),_.q("design:type",Object)],i3.prototype,"hideContainer",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.q("design:type",Boolean)],i3.prototype,"isPlaylistThumbnail",void 0);_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],i3.prototype,"dataChanged",null);_.G([_.Gl("image-updated"),_.Gl("yt-refit"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],i3.prototype,"updatePositionOfAllCorners",null);
_.G([_.b0({is:"yt-image-editor-renderer",disableElementRegistration:!0})],i3);
_.e(i3,"yt-image-editor-renderer",function(){if(jyC===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;TmM===void 0&&(TmM=document.createElement("template"));var M=TmM;A.call(U,M.content.cloneNode(!0),H.content.firstChild);jyC=H}H=jyC;return H},{mode:2});var akM;var xX5;var b3=function(){return _.B.apply(this,arguments)||this};
_.R(b3,_.B);b3.prototype.updateMinutesFromBinding=function(H){this.handleMinutesChanged&&this.handleMinutesChanged(H)};
b3.prototype.updateSecondsFromBinding=function(H){this.handleSecondsChanged&&this.handleSecondsChanged(H)};
b3.prototype.updateDescriptionFromBinding=function(H){this.handleDescriptionChanged&&this.handleDescriptionChanged(H)};
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],b3.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],b3.prototype,"data",void 0);_.G([_.y(),_.q("design:type",String)],b3.prototype,"minutes",void 0);_.G([_.y(),_.q("design:type",String)],b3.prototype,"seconds",void 0);_.G([_.y(),_.q("design:type",String)],b3.prototype,"description",void 0);_.G([_.y(),_.q("design:type",Function)],b3.prototype,"handleMinutesChanged",void 0);
_.G([_.y(),_.q("design:type",Function)],b3.prototype,"handleSecondsChanged",void 0);_.G([_.y(),_.q("design:type",Function)],b3.prototype,"handleDescriptionChanged",void 0);_.G([_.y(),_.q("design:type",Number)],b3.prototype,"characterLimit",void 0);_.G([_.y(),_.q("design:type",Number)],b3.prototype,"textNumRows",void 0);_.G([_.b0({is:"yt-report-details-form-content",disableElementRegistration:!0})],b3);
_.e(b3,"yt-report-details-form-content",function(){if(xX5===void 0){var H=document.createElement("template");_.E(H,'\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>');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;akM===void 0&&(akM=document.createElement("template"));var M=akM;A.call(U,M.content.cloneNode(!0),H.content.firstChild);xX5=H}H=xX5;return H},{mode:2});var z55;var CmS;var dZ=function(){var H=_.B.apply(this,arguments)||this;H.updateMinutesFromBinding=function(U){H.minutes=U.detail.value};
H.updateSecondsFromBinding=function(U){H.seconds=U.detail.value};
H.updateDescriptionFromBinding=function(U){H.description=U.detail.value};
return H};
_.R(dZ,_.B);_.X=dZ.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.X.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"}}}};
_.X.ready=function(){_.c4(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.X.onSubmitYtAction=function(H){var U=H.detail;U.actionName==="yt-service-request"&&(U=U.args[1],U.flagEndpoint&&(H.stopPropagation(),this.refireAction(U)))};
_.X.refireAction=function(H){var U={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(U.vss_id=this.vssId);_.rs(this.hostElement,[H,U]);this.submitDisabled=!0};
_.X.dataChanged=function(){var H=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var U=_.Ly();U&&U.getPlayerPromise().then(function(A){var M=A.getOption("cc","track")||A.getOption("captions","track");M&&(H.vssId=M.vss_id);A=A.getCurrentTime();H.minutes=Math.floor(A/60).toString();H.seconds=(Math.floor(A)%60).toString()})};
_.X.updateSubmitButtonState=function(){var H;((H=this.data)==null?0:H.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==="")};
_.X.onYtServiceRequestCompleted=function(){_.yr(this.hostElement,"yt-close-popup-action")};
_.X.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.D5.Object.defineProperties(dZ.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.textNumRows)||4}}});
dZ.prototype.onYtServiceRequestError=dZ.prototype.onYtServiceRequestError;dZ.prototype.onYtServiceRequestCompleted=dZ.prototype.onYtServiceRequestCompleted;dZ.prototype.updateSubmitButtonState=dZ.prototype.updateSubmitButtonState;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],dZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);
_.G([_.y({observer:"dataChanged"}),_.q("design:type",Object)],dZ.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Boolean)],dZ.prototype,"submitDisabled",void 0);_.G([_.y(),_.q("design:type",String)],dZ.prototype,"minutes",void 0);_.G([_.y(),_.q("design:type",String)],dZ.prototype,"seconds",void 0);_.G([_.y(),_.q("design:type",String)],dZ.prototype,"description",void 0);_.G([_.y(),_.q("design:type",String)],dZ.prototype,"vssId",void 0);
_.G([_.y({value:_.gD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.q("design:type",Boolean)],dZ.prototype,"isMusic",void 0);_.G([_.a("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],dZ.prototype,"characterLimit",null);_.G([_.a("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],dZ.prototype,"textNumRows",null);
_.G([_.jk("minutes","seconds","description","submitDisabled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dZ.prototype,"updateSubmitButtonState",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dZ.prototype,"onYtServiceRequestCompleted",null);
_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dZ.prototype,"onYtServiceRequestError",null);_.G([_.b0({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],dZ);
_.e(dZ,"yt-report-details-form-renderer",function(){if(CmS===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;z55===void 0&&(z55=document.createElement("template"));var M=z55;A.call(U,M.content.cloneNode(!0),H.content.firstChild);CmS=H}H=CmS;return H});var t7O;var cBS;var yBY;var BhL;var Ov=function(){return _.B.apply(this,arguments)||this};
_.R(Ov,_.B);
Ov.prototype.onCheckedChanged_=function(){if(this.data){var H=_.c4(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.yr(this.hostElement,"yt-additional-detail-checkbox-update",[H]):this.data.identifier==="yt-hide-user-checkbox"?_.yr(this.hostElement,"yt-hide-user-checkbox-update",[H]):H&&this.data.enableCommand?_.yr(this.hostElement,"yt-modify-report-form-command",[_.p(this.data.enableCommand,r6$)]):!H&&this.data.disableCommand&&_.yr(this.hostElement,
"yt-modify-report-form-command",[_.p(this.data.enableCommand,r6$)])}};
Ov.prototype.onLabelTap_=function(H){H.target.tagName!="A"&&(_.c4(this.hostElement).querySelector("#checkbox").checked=!_.c4(this.hostElement).querySelector("#checkbox").checked)};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ov.prototype,"data",void 0);_.G([_.b0({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Ov);
_.e(Ov,"yt-boolean-form-field-v2-renderer",function(){if(BhL===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;yBY===void 0&&(yBY=document.createElement("template"));var M=yBY;A.call(U,M.content.cloneNode(!0),H.content.firstChild);BhL=H}H=BhL;return H});var u3=function(){var H=_.B.apply(this,arguments)||this;H.canShowAdditionalDetailCheckbox=!1;H.canShowCheckbox=!1;H.keepDropdownFocusedAfterSelection=!0;return H};
_.R(u3,_.B);u3.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}}}}};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],u3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],u3.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],u3.prototype,"canShowAdditionalDetailCheckbox",void 0);_.G([_.y(),_.q("design:type",Object)],u3.prototype,"canShowCheckbox",void 0);_.G([_.y(),_.q("design:type",Object)],u3.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.G([_.b0({is:"yt-report-form-modal-content",disableElementRegistration:!0})],u3);
_.e(u3,"yt-report-form-modal-content",function(){if(cBS===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;t7O===void 0&&(t7O=document.createElement("template"));var M=t7O;A.call(U,M.content.cloneNode(!0),H.content.firstChild);cBS=H}H=cBS;return H},{mode:2});var rBM;var e55;var ZR=function(){var H=_.B.apply(this,arguments)||this;H.submitting=!1;H.submitButtonDisabled=!0;H.command=null;H.canShowCheckbox=!1;H.canShowAdditionalDetailCheckbox=!1;H.canShowNextButton=!1;H.additionalDetailCheckboxChecked=!1;H.refitJob=0;H.keepDropdownFocusedAfterSelection=!0;H.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 H};
_.R(ZR,_.B);_.X=ZR.prototype;_.X.created=function(){this.refitJob=0};
_.X.attached=function(){this.JSC$22973_scroller&&(this.JSC$22973_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22973_scroller.attached&&typeof this.JSC$22973_scroller.attached==="function"&&this.JSC$22973_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(H){H&&(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,H.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),H.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.X.onYtPopupOpened=function(){var H=_.Ly();H&&H.getPlayerPromise().then(function(U){U.pauseVideo()})};
_.X.onYtNavigate=function(H){_.p(H.detail.endpoint,_.JMK)&&(H.stopPropagation(),this.hideReportForm=!0)};
_.X.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.X.onYtServiceRequestCompleted=function(H,U){var A=U.actions;if(A){if(A.length===1&&_.p(A[0],_.$2)){var M;A=((M=_.p(A[0],_.$2))==null?void 0:M.commands)||[]}M=0;for(var W=A.length;M<W;M++)_.p(A[M],_.jQ)&&(H.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(A[M]))}if(U.data&&(H=this.get("feedbackResponses",U.data)))for(U=0;U<H.length;U++)if(H[U].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.X.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.X._onDescendantIronResize=function(H){H.stopPropagation();return!1};
_.X.handleReportFormEndpointUpdateAction=function(H){if(H.submitEndpoint){var U=this.command=H.submitEndpoint;U=_.p(U,_.ZZm);if(U==null?0:U.additionalDetailCheckboxChecked)U.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else H.submitNavigationEndpoint?(this.command=H.submitNavigationEndpoint,this.toggleSubmitButton(!1)):H.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:H.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;H.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",H));this.refit()};
_.X.handleConfirmDialogCloseAction=function(H){H.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.X.submitButtonDisabledChanged=function(){var H=this.hostElement.parentElement;H&&H.invalidateTabbables&&H.invalidateTabbables()};
_.X.handleModifyReportFormCommand=function(H){H=this.get("action",H);H==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:H==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:H==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:H==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:H==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:H==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.X.updateDialogStyling=function(){var H,U,A,M,W,w=((W=(H=this.data)==null?void 0:(U=H.optionsSupportedRenderers)==null?void 0:(A=U.optionsRenderer)==null?void 0:(M=A.items)==null?void 0:M.length)!=null?W:0)<=2?0:240;_.Dt(this.hostElement,{"--yt-report-form-modal-renderer-min-width":w+"px"})};
_.X.toggleSubmitButton=function(H){this.submitButtonDisabled=!H;this.submitButtonDisabled=H};
_.X.computeSubmitButtonData=function(H,U){var A={};_.p(U,_.JMK)?A.navigationEndpoint=U:A.command=U||void 0;H&&H.buttonRenderer&&_.dG.extend(A,H.buttonRenderer);return A};
_.X.computeNextButtonData=function(H,U){var A={};if(!H||!H.buttonRenderer)return A;_.dG.extend(A,H.buttonRenderer);if(!U)return A;if(_.p(U,_.JMK))A.navigationEndpoint=dAh(U);else if(A.command=dAh(U),H=_.p(A.command,_.ZZm))H.legalCheckboxChecked=!0;return A};
_.X.computeShowNextButton=function(H,U,A){return!!H&&U&&A};
_.X.refit=function(){var H=this;this.refitJob||(this.refitJob=_.Fl.addLowPriorityJob(function(){_.cg(H.hostElement,"yt-refit");H.refitJob=0}))};
_.X.handleAdditionalDetailCheckboxUpdateAction=function(H){this.additionalDetailCheckboxChecked=H;_.p(this.command,_.ZZm).additionalDetailCheckboxChecked=H};
_.D5.Object.defineProperties(ZR,{template:{configurable:!0,enumerable:!0,get:function(){if(e55===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;rBM===void 0&&(rBM=document.createElement("template"));var M=rBM;A.call(U,M.content.cloneNode(!0),H.content.firstChild);e55=H}H=e55;return H}}});
ZR.prototype.onYtServiceRequestError=ZR.prototype.onYtServiceRequestError;ZR.prototype.onYtServiceRequestCompleted=ZR.prototype.onYtServiceRequestCompleted;ZR.prototype.onYtServiceRequestSent=ZR.prototype.onYtServiceRequestSent;ZR.prototype.onYtNavigate=ZR.prototype.onYtNavigate;ZR.prototype.onYtPopupOpened=ZR.prototype.onYtPopupOpened;_.G([_.g(_.e4.YtOpenPopupBehavior),_.q("design:type",Object)],ZR.prototype,"openPopupBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],ZR.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],ZR.prototype,"eventForwardingBehavior",void 0);_.G([_.g(_.Qo),_.q("design:type",Object)],ZR.prototype,"ironResizableBehavior",void 0);_.G([_.y({observer:"dataChanged"}),_.q("design:type",Object)],ZR.prototype,"data",void 0);
_.G([_.y(),_.q("design:type",Object)],ZR.prototype,"submitting",void 0);_.G([_.y({observer:"submitButtonDisabledChanged"}),_.q("design:type",Object)],ZR.prototype,"submitButtonDisabled",void 0);_.G([_.y(),_.q("design:type",Object)],ZR.prototype,"command",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],ZR.prototype,"hideReportForm",void 0);_.G([_.y(),_.q("design:type",Object)],ZR.prototype,"canShowCheckbox",void 0);
_.G([_.y(),_.q("design:type",Object)],ZR.prototype,"canShowAdditionalDetailCheckbox",void 0);_.G([_.y(),_.q("design:type",Object)],ZR.prototype,"canShowNextButton",void 0);_.G([_.y(),_.q("design:type",Object)],ZR.prototype,"additionalDetailCheckboxChecked",void 0);_.G([_.y(),_.q("design:type",Object)],ZR.prototype,"refitJob",void 0);_.G([_.y(),_.q("design:type",Object)],ZR.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.G([_.hG("#scroller"),_.q("design:type",Object)],ZR.prototype,"JSC$22973_scroller",void 0);_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ZR.prototype,"onYtPopupOpened",null);_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ZR.prototype,"onYtNavigate",null);
_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],ZR.prototype,"onYtServiceRequestSent",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],ZR.prototype,"onYtServiceRequestCompleted",null);
_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ZR.prototype,"onYtServiceRequestError",null);_.G([_.b0({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],ZR);var DX5;var $Xe;var fD=function(){return _.B.apply(this,arguments)||this};
_.R(fD,_.B);_.X=fD.prototype;_.X.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.X.onVisible=function(){var H,U;(U=_.lx().resolve(_.$V(_.as)))==null||U.enqueue({label:_.Sp((H=this.data)==null?void 0:H.messageTitle),elementToFocus:this.hostElement})};
_.X.onThumbnailLoaded=function(){_.cg(this.hostElement,"yt-refit")};
_.X.onDismissTap=function(){_.yr(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.X.computeAlternateIcon=function(H){return H?H==="BACKSTAGE_ARTWORK"?"backstage:artwork":H:null};
_.X.computeFontFamily=function(H){return H==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.X.computeBackgroundStyle=function(H,U){if(H=this.computeBackgroundImage(H,U))if(H=_.EB(H.thumbnails))return'background-image: url("'+H+'");'};
_.X.computeHasFullHeightImage=function(H){return!(!(H&&H.thumbnails&&H.thumbnails.length>0)||this.modern)};
_.X.isModernStyle=function(H){return H.style==="STYLE_MODERN"};
_.X.computeIcon=function(H,U){if(H&&H.icon)return U?H.iconDark:H.icon};
_.X.computeBackgroundImage=function(H,U){if(H&&H.backgroundImage)return U?H.backgroundImageDark:H.backgroundImage};
_.X.computeLogo=function(H,U){if(H&&H.logo)return U?H.logoDark:H.logo};
_.X.computeShouldShowModernIcon=function(H,U){return H&&!!U};
_.X.getLogoContainerClassName=function(H){return this.logoWithPadding(H)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.X.getLogoImageId=function(H){return this.logoWithPadding(H)?"mealbar-logo-with-padding":"mealbar-logo"};
_.X.logoWithPadding=function(H){var U,A,M;return(H=(U=this.computeLogo(H,this.isDarkTheme))==null?void 0:(A=U.thumbnails)==null?void 0:(M=A[0])==null?void 0:M.height)&&H%31===0?!0:!1};
fD.prototype.onThumbnailLoaded=fD.prototype.onThumbnailLoaded;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.G([_.y({}),_.q("design:type",Object)],fD.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.q("design:type",Boolean)],fD.prototype,"modern",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],fD.prototype,"isDarkTheme",void 0);
_.G([_.y({computed:"computeIcon(data, isDarkTheme)"}),_.q("design:type",Object)],fD.prototype,"icon",void 0);_.G([_.y({computed:"computeLogo(data, isDarkTheme)"}),_.q("design:type",Object)],fD.prototype,"logo",void 0);_.G([_.y({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.q("design:type",Object)],fD.prototype,"backgroundStyle",void 0);_.G([_.y({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.q("design:type",Object)],fD.prototype,"alternateIcon",void 0);
_.G([_.y({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.q("design:type",Boolean)],fD.prototype,"hasFullHeightImage",void 0);_.G([_.y({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.q("design:type",Boolean)],fD.prototype,"useYoutubeSans",void 0);_.G([_.y({computed:"computeShouldShowModernIcon(modern, icon)"}),_.q("design:type",Boolean)],fD.prototype,"shouldShowModernIcon",void 0);
_.G([_.Gl("yt-img-shadow-loaded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fD.prototype,"onThumbnailLoaded",null);_.G([_.b0({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],fD);
_.e(fD,"yt-mealbar-promo-renderer",function(){if($Xe===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;DX5===void 0&&(DX5=document.createElement("template"));var M=DX5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);$Xe=H}H=$Xe;return H},{mode:2});var lk5;var GyN;var Jm=function(){return _.B.apply(this,arguments)||this};
_.R(Jm,_.B);_.X=Jm.prototype;_.X.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]]"}}}}}};
_.X.computeHasButtons_=function(H){return!(!H.dismissButton&&!H.acceptButton)};
_.X.computeStyle_=function(H){return H||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.X.observeImpressionEndpoints_=function(){var H=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(U){U.clickTrackingParams&&delete U.clickTrackingParams;_.rs(H.hostElement,[U])})};
_.X.onTap_=function(){_.yr(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
Jm.prototype.observeImpressionEndpoints_=Jm.prototype.observeImpressionEndpoints_;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Jm.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],Jm.prototype,"ytEventForwardingBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Jm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Jm.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Jm.prototype,"positionType",void 0);_.G([_.y({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.q("design:type",Boolean)],Jm.prototype,"hasButtons_",void 0);_.G([_.y({value:function(){return this.onTap_.bind(this)}}),
_.q("design:type",Function)],Jm.prototype,"boundOnTap_",void 0);_.G([_.y({value:{style:"mono-inverse"}}),_.q("design:type",Object)],Jm.prototype,"buttonOverride",void 0);_.G([_.Ya("data.promoConfig.impressionEndpoints"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Jm.prototype,"observeImpressionEndpoints_",null);_.G([_.b0({is:"yt-tooltip-renderer",disableElementRegistration:!0})],Jm);
_.e(Jm,"yt-tooltip-renderer",function(){if(GyN===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;lk5===void 0&&(lk5=document.createElement("template"));var M=lk5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);GyN=H}H=GyN;return H},{mode:2});var Y$5;var q$5;var h5Y;var ky3;var KD=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-open-popup-action":"onOpen"};return H};
_.R(KD,_.B);_.X=KD.prototype;_.X.attached=function(){this.onOpen()};
_.X.updateTimeSecs=function(H){this.currentTimeSecs=H};
_.X.computeTimeString=function(H){H=H.toString();var U=Math.floor(Number(H)/3600),A=Math.floor(Number(H)%3600%60);return(U>0?U+":":"")+_.DX(Math.floor(Number(H)%3600/60),U>0?2:1)+":"+_.DX(A,2)};
_.X.computeTimeStringA11y=function(H){return _.Jec({seconds:H})};
_.X.getTimeParam=function(){return uVh(this.timeString)};
_.X.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var H={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},U;_.Yg(_.k$(),(U=this.data)==null?void 0:U.trackingParams,H,7)};
_.X.onChangeStartAtTimestamp=function(){for(var H=this.startAtTimestamp.value.split(":"),U=0,A=1,M=H.length-1;M>=0;M--)U+=Number(H[M])*A,A*=60;this.updateTimeSecs(U);this.setTimestamp()};
_.X.onOpen=function(){var H=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var U=_.Ly();U?U.getPlayerPromise().then(function(A){A=A.getCurrentTime();H.updateTimeSecs(A)}):XOy()&&this.updateTimeSecs(XOy())};
_.X.setTimestamp=function(){var H=Math.floor(this.currentTimeSecs);_.yr(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!H,timestamp:H||""}])};
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],KD.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],KD.prototype,"data",void 0);_.G([_.y({value:!1,notify:!0}),_.q("design:type",Boolean)],KD.prototype,"isStartAtChecked",void 0);_.G([_.y(),_.q("design:type",Number)],KD.prototype,"currentTimeSecs",void 0);
_.G([_.y({computed:"computeTimeString(currentTimeSecs)"}),_.q("design:type",String)],KD.prototype,"timeString",void 0);_.G([_.y({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.q("design:type",String)],KD.prototype,"timeStringA11y",void 0);_.G([_.hG("#start-at-timestamp"),_.q("design:type",Object)],KD.prototype,"startAtTimestamp",void 0);_.G([_.b0({is:"yt-start-at-renderer",disableElementRegistration:!0})],KD);
_.e(KD,"yt-start-at-renderer",function(){if(ky3===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;h5Y===void 0&&(h5Y=document.createElement("template"));var M=h5Y;A.call(U,M.content.cloneNode(!0),H.content.firstChild);ky3=H}H=ky3;return H},{mode:2});var vfN={},ThR=(vfN.WEB_REMIX="music.youtube.com",vfN),oM=function(){var H=_.B.apply(this,arguments)||this;H.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return H};
_.R(oM,_.B);_.X=oM.prototype;_.X.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.created=function(){this.embedHost_=ThR[_.gD("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.X.ready=function(){_.c4(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.X.computeEmbedCode_=function(H,U,A,M,W){if(!H)return"";var w=H.videoId,d=H.fullListId,O=[];H.attributionId&&O.push("si="+H.attributionId);M||O.push("controls=0");A&&Number(U)>0&&O.push("start="+U);d&&(w="videoseries",O.push("list="+d));A="https://"+(W?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+w;H.clipId&&(O.push("clip="+H.clipId),O.push("clipt="+H.clipTiming));U=O.length>0?A+"?"+O.join("&amp;"):A;H.encryptedEmbedConfig&&O.push("embed_config="+JSON.stringify({enc:H.encryptedEmbedConfig}));
O=O.length>0?A+"?"+O.join("&amp;"):A;_.S("web_sharing_embed_preview_killswitch")?_.c4(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(O,H.previewWidth||854,H.previewHeight||480):(_.Zn(this.videoPreviewContainer),_.c4(this.videoPreviewContainer).appendChild(this.buildIframeElement(O)));return this.getEmbedCode_(U,H.width||560,H.height||315)};
_.X.buildIframeElement=function(H){var U=document.createElement("iframe"),A,M;U.width=""+((M=(A=this.data)==null?void 0:A.previewWidth)!=null?M:854);var W,w;U.height=""+((w=(W=this.data)==null?void 0:W.previewHeight)!=null?w:480);_.XP(U,2,H);U.title="YouTube video player";U.frameBorder="0";U.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";U.referrerPolicy="strict-origin-when-cross-origin";U.allowFullscreen=!0;return U};
_.X.computeIsSquareAspectRatio_=function(H){return H.previewHeight&&H.previewWidth?H.previewHeight==H.previewWidth:!1};
_.X.computeShowEmbedOptions_=function(H){return!!H.enablePrivacyModeOptionLabel||!!H.showPlayerControlsOptionLabel};
_.X.getEmbedCode_=function(H,U,A){return'<iframe width="'+U+'" height="'+A+'" src="'+H+'" 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>'};
_.X.handleSignalActionCopyShareEmbedUrl_=function(){_.c4(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.X.handleSetTimestamp_=function(H){this.startAtTimeStamp_=(this.startAtChecked_=H.isSet)?H.timestamp:0};
_.X.closePanel_=function(){_.yr(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.X.onEmbedCode_=function(){_.c4(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.X.onYtPopupClosed_=function(){_.Zn(_.c4(this.hostElement).querySelector("#video-preview"))};
_.X.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.p(this.data.actionButtons[0],_.f$)&&this.ytRendererBehavior.logExplicitClick(_.p(this.data.actionButtons[0],_.f$))};
oM.prototype.onYtPopupClosed_=oM.prototype.onYtPopupClosed_;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],oM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],oM.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],oM.prototype,"data",void 0);
_.G([_.y({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.q("design:type",String)],oM.prototype,"embedCode_",void 0);_.G([_.y({value:!0}),_.q("design:type",Boolean)],oM.prototype,"isPlayerControlsOptionChecked_",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],oM.prototype,"isPrivacyModeOptionChecked_",void 0);_.G([_.y({value:!1,notify:!0}),_.q("design:type",Boolean)],oM.prototype,"startAtChecked_",void 0);
_.G([_.y({value:0}),_.q("design:type",Number)],oM.prototype,"startAtTimeStamp_",void 0);_.G([_.y({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],oM.prototype,"isSquareAspectRatio_",void 0);_.G([_.hG("#video-preview"),_.q("design:type",HTMLElement)],oM.prototype,"videoPreviewContainer",void 0);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],oM.prototype,"onYtPopupClosed_",null);
_.G([_.b0({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],oM);
_.e(oM,"yt-sharing-embed-renderer",function(){if(q$5===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Y$5===void 0&&(Y$5=document.createElement("template"));var M=Y$5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);q$5=H}H=q$5;return H},{mode:2});var jYe;var Ik5=function(){return _.B.apply(this,arguments)||this};
_.R(Ik5,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ik5.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ik5.prototype,"data",void 0);_.G([_.b0({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],Ik5);
_.e(Ik5,"yt-sender-id-section-renderer",function(){if(jYe===void 0){var H=document.createElement("template");_.E(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-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 yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);jYe=H}H=
jYe;return H},{mode:1});var QYS;var V7O;var Fc=function(){return _.B.apply(this,arguments)||this};
_.R(Fc,_.B);Fc.prototype.closePopup=function(){_.yr(this.hostElement,"yt-close-popup-action")};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Fc.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Fc.prototype,"data",void 0);_.G([_.b0({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Fc);
_.e(Fc,"yt-community-post-section-renderer",function(){if(V7O===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;QYS===void 0&&(QYS=document.createElement("template"));var M=QYS;A.call(U,M.content.cloneNode(!0),H.content.firstChild);V7O=H}H=V7O;return H},{mode:2});var HNy;var USL;var ARS;var M3v;var WOS;var wyL;var Xy3=function(){return _.B.apply(this,arguments)||this};
_.R(Xy3,_.B);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Xy3.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Xy3.prototype,"data",void 0);_.G([_.b0({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Xy3);
_.e(Xy3,"yt-share-start-time-with-context-renderer",function(){if(wyL===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;WOS===void 0&&(WOS=document.createElement("template"));var M=WOS;A.call(U,M.content.cloneNode(!0),H.content.firstChild);wyL=H}H=wyL;return H},{mode:2});var PH=function(){return _.B.apply(this,arguments)||this};
_.R(PH,_.B);PH.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],PH.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],PH.prototype,"data",void 0);_.G([_.b0({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],PH);
_.e(PH,"yt-share-panel-title-v15-renderer",function(){if(M3v===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;ARS===void 0&&(ARS=document.createElement("template"));var M=ARS;A.call(U,M.content.cloneNode(!0),H.content.firstChild);M3v=H}H=M3v;return H},{mode:2});var sv=function(){return _.B.apply(this,arguments)||this};
_.R(sv,_.B);sv.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"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],sv.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],sv.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],sv.prototype,"data",void 0);_.G([_.b0({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],sv);
_.e(sv,"yt-share-panel-header-renderer",function(){if(USL===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;HNy===void 0&&(HNy=document.createElement("template"));var M=HNy;A.call(U,M.content.cloneNode(!0),H.content.firstChild);USL=H}H=USL;return H},{mode:2});var iNv;var bN3;var dSN={};dSN.YtBindingExpressionsBehavior={identity:_.Ch,msg:function(H,U){U=U===void 0?{}:U;return _.hP(H,U,H)},
msgPlural:function(H,U){return _.k2(H,U)},
getMusicIconFromType:function(H){return _.eq(H)}};var ON3;var uL5;var ZN3;var feC=document.head,JRe=feC.appendChild,KOy;
if(ZN3===void 0){var o5j=document.createElement("template");_.E(o5j,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><clipPath id="android_messenger__a"><path fill="#fff" d="M0 0h192v192H0z"></path></clipPath><mask id="android_messenger__b" width="192" height="192" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:luminance"><path fill="#fff" d="M0 0h192v192H0z"></path></mask></defs></svg><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>');ZN3=
o5j}KOy=ZN3;JRe.call(feC,KOy.content);var nD=function(){var H=_.B.apply(this,arguments)||this;H.screenLayer=7;return H};
_.R(nD,_.B);nD.prototype.getScreenLayer=function(){return this.screenLayer};
nD.prototype.onTap=function(H){H&&H.detail&&(H.detail.x||H.detail.y)&&_.c4(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.rs(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(H=this.getScreenLayer(),_.cg(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:H}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.D5.Object.defineProperties(nD.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()}}});
nD.prototype.onTap=nD.prototype.onTap;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],nD.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],nD.prototype,"ytComponentBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],nD.prototype,"data",void 0);_.G([_.a("data.title"),_.q("design:type",Object),_.q("design:paramtypes",[])],nD.prototype,"title",null);
_.G([_.a("data.serviceName"),_.q("design:type",String),_.q("design:paramtypes",[])],nD.prototype,"icon",null);_.G([_.Gl("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],nD.prototype,"onTap",null);_.G([_.b0({is:"yt-share-target-renderer",disableElementRegistration:!0})],nD);
_.e(nD,"yt-share-target-renderer",function(){if(uL5===void 0){var H=document.createElement("template");_.E(H,'\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" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;ON3===void 0&&(ON3=document.createElement("template"));var M=ON3;A.call(U,M.content.cloneNode(!0),H.content.firstChild);uL5=H}H=uL5;return H},{mode:2});var FON;var PvS;var Nl=function(){var H=_.B.apply(this,arguments)||this;H.SHARE_TARGET_WIDTH=70;H.SHARE_TARGET_MARGIN_RIGHT=8;H.PAGE_SCROLL_SPEED=9;H.actionMap={"yt-share-panel-reset-action":"onReset_"};return H};
_.R(Nl,_.B);_.X=Nl.prototype;_.X.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.X.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.c4(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.c4(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.X.onReset_=function(){if(_.c4(this.hostElement).querySelector("#list")){var H=_.c4(this.hostElement).querySelector("#list");var U=_.c4(this.hostElement).querySelector("#list");var A=U.offsetLeft,M=U.offsetParent;M||_.rDr(U)!="fixed"||(M=_.ZD(U).documentElement);if(M){if(_.va&&!_.rj(58)){var W=_.hFh(M);A+=W.left}else Number(_.dXg)>=8&&!(Number(_.dXg)>=9)&&(W=_.hFh(M),A-=W.left);U=_.YA3(M)?M.clientWidth-(A+U.offsetWidth):A}else U=A;s$f(H,U);this.updateScrollButtons_()}};
_.X.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.X.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.X.onScrollWheel_=function(H){H.stopPropagation();H.preventDefault();var U=PuY(_.c4(this.hostElement).querySelector("#list"));H=Math.abs(H.deltaX)>Math.abs(H.deltaY)?H.deltaX:H.deltaY;s$f(_.c4(this.hostElement).querySelector("#list"),U+H);this.updateScrollButtons_()};
_.X.smoothScrollByOnePage_=function(H){var U=_.c4(this.hostElement).querySelector("#list"),A=(Math.floor(U.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,M=PuY(U),W=A*(H?1:-1),w=this.PAGE_SCROLL_SPEED,d=this.updateScrollButtons_.bind(this),O=0,f;(function F(){O+=w;f=O/A*2;s$f(U,M+W*(f<1?f*f:-f*f+4*f-2));O<A?window.requestAnimationFrame(F):d()})()};
_.X.updateScrollButtons_=function(){var H=PuY(_.c4(this.hostElement).querySelector("#list")),U=_.c4(this.hostElement).querySelector("#list").scrollWidth-_.c4(this.hostElement).querySelector("#list").clientWidth;_.c4(this.hostElement).querySelector("#scroll-button-back").hidden=H<=0;_.c4(this.hostElement).querySelector("#scroll-button-forward").hidden=H>=U};
Nl.prototype.onScrollWheel_=Nl.prototype.onScrollWheel_;Nl.prototype.onDataChanged_=Nl.prototype.onDataChanged_;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Nl.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Nl.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(dSN.YtBindingExpressionsBehavior),_.q("design:type",Object)],Nl.prototype,"ytBindingExpressionsBehavior",void 0);
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Nl.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Nl.prototype,"data",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Nl.prototype,"onDataChanged_",null);_.G([_.Gl("wheel"),_.q("design:type",Function),_.q("design:paramtypes",[WheelEvent]),_.q("design:returntype")],Nl.prototype,"onScrollWheel_",null);
_.G([_.b0({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Nl);
_.e(Nl,"yt-third-party-share-target-section-renderer",function(){if(PvS===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;FON===void 0&&(FON=document.createElement("template"));var M=FON;A.call(U,M.content.cloneNode(!0),H.content.firstChild);PvS=H}H=PvS;return H},{mode:2});var Sj=function(){return _.B.apply(this,arguments)||this};
_.R(Sj,_.B);Sj.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"}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Sj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Sj.prototype,"data",void 0);_.G([_.b0({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Sj);
_.e(Sj,"yt-third-party-network-section-renderer",function(){if(bN3===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;iNv===void 0&&(iNv=document.createElement("template"));var M=iNv;A.call(U,M.content.cloneNode(!0),H.content.firstChild);bN3=H}H=bN3;return H},{mode:2});var s53;_.LG(_.r(function(H){return _.Z("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.Z("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.Z(_.YY,{data:function(){return H.data().firstPartyItems}},{listItemViewModel:_.P3})))},"kl"),"first-party-network-section-view-model",{props:{data:_.sY}});var n5Y=_.NP(["data:image/svg+xml;charset=UTF-8;base64,",""]),pD=function(){var H=_.B.apply(this,arguments)||this;H.screenLayer=7;H.qrCodeEnabled=_.S("web_enable_sharing_qr_code");H.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return H};
_.R(pD,_.B);_.X=pD.prototype;_.X.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.X.attached=function(){this.JSC$23024_scroller&&(this.JSC$23024_scroller.dialogElement=this.hostElement.parentNode,this.JSC$23024_scroller.attached&&typeof this.JSC$23024_scroller.attached==="function"&&this.JSC$23024_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.X.onDataChanged=function(){var H=this,U;(U=this.data)!=null&&U.contents&&(this.hostElement.setAttribute("links-only","true"),_.rn(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.maybeRenderQrCode(this.shortUrl()),_.rV(this,function(){_.cg(H.hostElement,"yt-refit");H.focusSharePanelHeader()}))};
_.X.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.X.handleSetTimestamp=function(H){var U=this.shortUrl();H.isSet&&(U=_.vL(U,"t",H.timestamp));this.maybeRenderQrCode(U)};
_.X.shortUrl=function(){var H,U=(H=this.data)==null?void 0:H.contents;if(U)for(H=0;H<U.length;H++){var A=void 0,M=void 0;if((A=U[H])==null?0:(M=A.thirdPartyNetworkSection)==null?0:M.copyLinkContainer){var W=M=A=void 0;return(W=_.p((A=U[H])==null?void 0:(M=A.thirdPartyNetworkSection)==null?void 0:M.copyLinkContainer,k4f))==null?void 0:W.shortUrl}}};
_.X.maybeRenderQrCode=function(H){var U=this,A,M,W,w,d,O,f,J,F;return _.u(function(P){if(P.nextAddress==1){A=_.c4(U.hostElement).querySelector("#qr-code");if(!U.qrCodeEnabled||!H)return A&&(A.style.display="none"),P.return();M=_.Yft(_.lx().resolve(_.Dd),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});W=document.createElement("div");return typeof M==="function"?(M(W),P.jumpTo(2)):P.yield(M,3)}P.nextAddress!=2&&(w=P.yieldResult,w(W));f=(d=W)==null?void 0:(O=d.firstChild)==null?void 0:O.firstChild;
J=document.createElement("img");F=_.pIc(n5Y,btoa(f.outerHTML));J.onload=function(){var n={canvas:A,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:J},N=new Of8;oa8(N,H);Fq5(N,!1,PN7(N));var L=N.modules,m=Object.assign({},vy5,n);L=structuredClone(L);n=L.length;var z,c=(z=m.canvas)!=null?z:document.createElement("canvas");z=m.cellSize;N=m.logo;var C,v=(C=m.logoSize)!=null?C:Math.floor(n/4);n%2!==v%2&&v++;var Y=m.logoPadding,D=m.backgroundColor;C=n*z;var h=
m.width,T=0;h&&(T=m.padding,T=Math.ceil(T*C/(h-T*2)),c.style.width=h+"px",c.style.height=h+"px");c.width!==C+T*2&&(c.width=C+T*2);c.height!==C+T*2&&(c.height=C+T*2);C=c.getContext("2d");m.autoClear&&C.clearRect(0,0,c.width,c.height);C.fillStyle=D;C.beginPath();C.roundRect(0,0,c.width,c.height,m.borderRadius);C.fill();C.save();C.translate(T,T);if(N)for(c=Math.floor(n-v)/2-Y,Y=Math.floor(n+v)/2+Y,D=c;D<Y;D++)for(h=c;h<Y;h++)L[D][h]=!1;for(c=0;c<n;c++)for(Y=0;Y<n;Y++)(c<7&&Y<7||c<7&&Y>=n-7||c>=n-7&&
Y<7)&&(L[c][Y]=!1);var WF;c=(WF=m.markerColor)!=null?WF:m.color;nap(C,0,0,z,c);nap(C,z*(n-7),0,z,c);nap(C,0,z*(n-7),z,c);switch(m.cellStyle){case 0:WF=L;L=WF.length;c=m.cellSize;C.beginPath();for(Y=0;Y<L;Y++)for(D=0;D<L;D++)WF[Y][D]&&C.rect(Y*c,D*c,c,c);C.fillStyle=m.color;C.fill();break;case 1:WF=L;L=WF.length;c=m.cellSize;Y=c*m.relativeCircleSize;C.fillStyle=m.color;C.beginPath();for(m=0;m<L;m++)for(D=0;D<L;D++)WF[m][D]&&(C.beginPath(),C.ellipse((m+.5)*c,(D+.5)*c,Y/2,Y/2,0,0,2*Math.PI),C.fill());
C.fill();break;case 2:WF=L;L=WF.length;c=m.cellSize;C.fillStyle=m.color;m=[[1,1],[-1,1],[-1,-1],[1,-1]];C.beginPath();for(Y=0;Y<L;Y++)for(D=0;D<L;D++)if(WF[Y][D])C.roundRect(Y*c,D*c,c,c,c/2),Y+1<L&&WF[Y+1][D]&&C.rect(Y*c+c/2,D*c,c,c),D+1<L&&WF[Y][D+1]&&C.rect(Y*c,D*c+c/2,c,c);else{h=Y*c+c/2;T=D*c+c/2;for(var dK=0;dK<4;dK++){var SN=_.b(m[dK]),o_=SN.next().value;SN=SN.next().value;Y+o_>=0&&Y+o_<L&&D+SN>=0&&D+SN<L&&WF[Y+o_][D]&&WF[Y][D+SN]&&WF[Y+o_][D+SN]&&(o_=dK*Math.PI/2,SN=c/2,C.moveTo(h+SN*Math.cos(o_),
T+SN*Math.sin(o_)),C.arc(h,T,c/2,o_,o_+Math.PI/2,!1),C.lineTo(h+SN*(Math.cos(o_)-Math.sin(o_)),T+SN*(Math.cos(o_)+Math.sin(o_))),C.lineTo(h+SN*Math.cos(o_),T+SN*Math.sin(o_)))}}C.fill()}N&&C.drawImage(N,(n-v)*z/2,(n-v)*z/2,v*z,v*z);C.restore();A.style.removeProperty("display")};
J.src=_.hR(F);_.DO(P)})};
_.X.hasCommunityPostRenderer=function(){var H,U,A,M;return!!((H=this.data)==null?0:(U=H.header)==null?0:(A=U.sharePanelHeaderRenderer)==null?0:(M=A.communityPost)==null?0:M.communityPostSectionRenderer)};
_.X.onTapClose=function(){_.yr(this.hostElement,"yt-close-popup-action",["yt-unified-share-panel-renderer"])};
_.X.getScreenLayer=function(){return this.screenLayer};
pD.prototype.onDataChanged=pD.prototype.onDataChanged;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],pD.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],pD.prototype,"data",void 0);
_.G([_.y({value:_.hP("SBOX_INAPPROPRIATE_CANCEL")}),_.q("design:type",String)],pD.prototype,"closeButtonAriaLabel",void 0);_.G([_.hG("yt-share-panel-header-renderer"),_.q("design:type",HTMLElement)],pD.prototype,"header",void 0);_.G([_.y(),_.q("design:type",Object)],pD.prototype,"qrCodeEnabled",void 0);_.G([_.hG("#scroller"),_.q("design:type",Object)],pD.prototype,"JSC$23024_scroller",void 0);
_.G([_.jk("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pD.prototype,"onDataChanged",null);_.G([_.b0({disableElementRegistration:!0,is:"yt-unified-share-panel-renderer"})],pD);
_.e(pD,"yt-unified-share-panel-renderer",function(){if(s53===void 0){var H=document.createElement("template");_.E(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-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<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope yt-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 yt-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope yt-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 yt-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope yt-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope yt-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);s53=H}H=s53;return H},{mode:1});var NM3={};
NM3.YtUnlimitedFamilyInterstitialBehavior=[_.e4.YtOpenPopupBehavior,_.$y.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(H){H=_.cDz(_.Rr(H),"yt-button-renderer");return H?H.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(H){this.dialogHistory_.push(H)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var H=this.popFromHistory();if(H){var U={openPopupAction:{popupType:"DIALOG",popup:{}}};U.openPopupAction.popup[H.renderer]=H.data;this.showingPreviousDialog_=!0;this.openPopup(U)}},
handleOpenPopupAction_:function(H){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var U=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(M){return!!H.openPopupAction.popup[M]}),A=this.getElementName_();
U&&this.data&&(this.pushToHistory({renderer:A,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(H){if(H=_.p(H,TL$))this.loading=!0,_.yr(this.hostElement,"yt-open-create-family-dialog",[H,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var H=this.hostElement.nodeName.split("-").slice(1).map(function(U){return""+U[0].toUpperCase()+U.slice(1).toLowerCase()}).join("");
return H[0].toLowerCase()+H.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var Sj3;var pyN;var LD=function(){return _.B.apply(this,arguments)||this};
_.R(LD,_.B);_.X=LD.prototype;_.X.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}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.yr(this.hostElement,"yt-register-create-family-dialog");_.c4(this.hostElement).querySelector("#thumbnail").onShow()};
_.X.fireOnCloseCommand_=function(){var H;((H=this.data)==null?0:H.onCloseCommand)&&_.eb(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.X.onYtServiceRequestSent_=function(H,U){U&&U.endpoint&&_.p(U.endpoint,_.GR)||(this.loading=!0)};
_.X.onYtServiceRequestCompleted_=function(){var H=this.hostElement.parentElement;H.close&&H.close();this.loading=!1};
_.X.openPopupHandler_=function(H){if(H.detail==this){var U;((U=this.data)==null?0:U.onOpenCommands)&&_.eb(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.X.closePopupHandler_=function(H,U){this.fireOnCloseCommand_();if(U&&U.canceled===!0||U&&U.canceled===!1&&U.confirmed===!1){var A;((A=this.data)==null?0:A.onDismissCommands)&&_.eb(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.X.dataChanged_=function(){this.loading=!1};
LD.prototype.dataChanged_=LD.prototype.dataChanged_;LD.prototype.closePopupHandler_=LD.prototype.closePopupHandler_;LD.prototype.openPopupHandler_=LD.prototype.openPopupHandler_;LD.prototype.onYtServiceRequestCompleted_=LD.prototype.onYtServiceRequestCompleted_;LD.prototype.onYtServiceRequestSent_=LD.prototype.onYtServiceRequestSent_;_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],LD.prototype,"ytEventForwardingBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],LD.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(NM3.YtUnlimitedFamilyInterstitialBehavior),_.q("design:type",Object)],LD.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],LD.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],LD.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],LD.prototype,"loading",void 0);_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],LD.prototype,"onYtServiceRequestSent_",null);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],LD.prototype,"onYtServiceRequestCompleted_",null);
_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],LD.prototype,"openPopupHandler_",null);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],LD.prototype,"closePopupHandler_",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],LD.prototype,"dataChanged_",null);
_.G([_.b0({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],LD);
_.e(LD,"yt-unlimited-family-message-interstitial-renderer",function(){if(pyN===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;Sj3===void 0&&(Sj3=document.createElement("template"));var M=Sj3;A.call(U,M.content.cloneNode(!0),H.content.firstChild);pyN=H}H=pyN;return H},{mode:2});var LO3;var RS5;var RM=function(){return _.B.apply(this,arguments)||this};
_.R(RM,_.B);RM.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"}}}};
RM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.c4(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(H){H.onShow()});
_.c4(this.hostElement).querySelector("#main-thumbnail").onShow()};
RM.prototype.onButtonTap_=function(H){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(H)};
RM.prototype.computeMainThumbnailWidth_=function(H){return H&&H.length!==0?72:96};
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],RM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.G([_.g(NM3.YtUnlimitedFamilyInterstitialBehavior),_.q("design:type",Object)],RM.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],RM.prototype,"data",void 0);
_.G([_.y({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.q("design:type",Number)],RM.prototype,"mainThumbnailWidth_",void 0);_.G([_.y({value:function(){return this.onButtonTap_.bind(this)}}),
_.q("design:type",Function)],RM.prototype,"boundButtonTap_",void 0);_.G([_.b0({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],RM);
_.e(RM,"yt-unlimited-family-profile-interstitial-renderer",function(){if(RS5===void 0){var H=document.createElement("template");_.E(H,'\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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;LO3===void 0&&(LO3=document.createElement("template"));var M=LO3;A.call(U,M.content.cloneNode(!0),H.content.firstChild);RS5=H}H=RS5;return H},{mode:2});var E53;var mSS;var Ev=function(){var H=_.B.apply(this,arguments)||this;H.sliderAriaValueText_=null;H.selectedIndex_=0;H.messages={PAUSE_SLIDER:_.hP("PAUSE_SLIDER",void 0,"Pause Duration")};return H};
_.R(Ev,_.B);_.X=Ev.prototype;_.X.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_]]"}}}}}};
_.X.onPopupOpened_=function(H){H.detail==this&&_.S("enable_premium_voluntary_pause")&&(_.yr(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.setDialogData=function(H){this.data=H;this.resetSlider_()};
_.X.dataChanged_=function(){this.data&&this.resetSlider_()};
_.X.onSubmitTap_=function(){if(this.data.confirmCommand){var H=this.data.confirmCommand;_.p(H,_.Phh)&&_.rs(this.hostElement,[H,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.X.onExitButtonTap_=function(){_.yr(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.X.closePopupHandler_=function(H,U){(U&&U.canceled===!0||U.canceled===!1&&U.confirmed===!1)&&this.handleOnDismissCommands_()};
_.X.onSliderChange_=function(){this.selectedIndex_=_.c4(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.X.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.X.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.X.resetSlider_=function(){if(this.data){var H=this.data.defaultEndOptionIndex||0,U=_.c4(this.hostElement).querySelector("#id-pause-slider");if(U.immediateValue<H)for(;U.immediateValue!=H;)U.increment();else if(H<U.immediateValue)for(;U.immediateValue!=H;)U.decrement();this.selectedIndex_=H;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.X.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.eb(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.X.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.eb(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.X.onYtServiceRequestSent=function(){this.loading=!0};
_.X.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
Ev.prototype.onYtServiceRequestCompleted=Ev.prototype.onYtServiceRequestCompleted;Ev.prototype.onYtServiceRequestSent=Ev.prototype.onYtServiceRequestSent;Ev.prototype.closePopupHandler_=Ev.prototype.closePopupHandler_;Ev.prototype.dataChanged_=Ev.prototype.dataChanged_;Ev.prototype.onPopupOpened_=Ev.prototype.onPopupOpened_;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Ev.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],Ev.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],Ev.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Ev.prototype,"loading",void 0);_.G([_.y(),_.q("design:type",Number)],Ev.prototype,"selectIndexMax_",void 0);_.G([_.y(),_.q("design:type",Object)],Ev.prototype,"selectedData_",void 0);
_.G([_.y(),_.q("design:type",Object)],Ev.prototype,"sliderAriaValueText_",void 0);_.G([_.y({value:function(){return this.onSubmitTap_.bind(this)}}),
_.q("design:type",Function)],Ev.prototype,"onButtonTap_",void 0);_.G([_.y({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.q("design:type",Function)],Ev.prototype,"onSecondaryTap_",void 0);_.G([_.y(),_.q("design:type",Object)],Ev.prototype,"messages",void 0);_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],Ev.prototype,"onPopupOpened_",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ev.prototype,"dataChanged_",null);
_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],Ev.prototype,"closePopupHandler_",null);_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],Ev.prototype,"onYtServiceRequestSent",null);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],Ev.prototype,"onYtServiceRequestCompleted",null);_.G([_.b0({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],Ev);
_.e(Ev,"yt-unplugged-pause-membership-dialog-renderer",function(){if(mSS===void 0){var H=document.createElement("template");_.E(H,'\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" role="heading">[[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$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" 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>');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;E53===void 0&&(E53=document.createElement("template"));var M=E53;A.call(U,M.content.cloneNode(!0),H.content.firstChild);mSS=H}H=mSS;return H},{mode:2});var g5L;var aeL;var mr=function(){return _.B.apply(this,arguments)||this};
_.R(mr,_.B);mr.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Vm("vcBalanceRenderer")}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],mr.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],mr.prototype,"data",void 0);_.G([_.b0({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],mr);
_.e(mr,"yt-vc-offer-layout-header-renderer",function(){if(aeL===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;g5L===void 0&&(g5L=document.createElement("template"));var M=g5L;A.call(U,M.content.cloneNode(!0),H.content.firstChild);aeL=H}H=aeL;return H},{mode:2});var xS3;var zS5;var Cvv;var t35;var gZ=function(){return _.B.apply(this,arguments)||this};
_.R(gZ,_.B);gZ.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.D5.Object.defineProperties(gZ.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)}}});
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.jyy.YtTappableItemBehavior),_.q("design:type",Object)],gZ.prototype,"ytTappableItemBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],gZ.prototype,"data",void 0);
_.G([_.y({reflectToAttribute:!0}),_.a("data.accessibilityText"),_.q("design:type",String),_.q("design:paramtypes",[])],gZ.prototype,"ariaLabel",null);_.G([_.y({reflectToAttribute:!0}),_.a("data.style"),_.q("design:type",String),_.q("design:paramtypes",[])],gZ.prototype,"vcOfferStyle",null);_.G([_.a("data.style","data.titleText"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],gZ.prototype,"showTitleText",null);_.G([_.b0({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],gZ);
_.e(gZ,"yt-vc-offer-renderer",function(){if(t35===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;Cvv===void 0&&(Cvv=document.createElement("template"));var M=Cvv;A.call(U,M.content.cloneNode(!0),H.content.firstChild);t35=H}H=t35;return H},{mode:2});var aM=function(){return _.B.apply(this,arguments)||this};
_.R(aM,_.B);aM.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}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],aM.prototype,"data",void 0);_.G([_.b0({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],aM);
_.e(aM,"yt-vc-offer-layout-renderer",function(){if(zS5===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;xS3===void 0&&(xS3=document.createElement("template"));var M=xS3;A.call(U,M.content.cloneNode(!0),H.content.firstChild);zS5=H}H=zS5;return H},{mode:2});var cRC;var yRe;var BMy;var rRR;var xQ=function(){return _.B.apply(this,arguments)||this};
_.R(xQ,_.B);xQ.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}}}}}};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],xQ.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],xQ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],xQ.prototype,"data",void 0);_.G([_.b0({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],xQ);
_.e(xQ,"yt-ypc-offers-modal-top-bar-renderer",function(){if(rRR===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;BMy===void 0&&(BMy=document.createElement("template"));var M=BMy;A.call(U,M.content.cloneNode(!0),H.content.firstChild);rRR=H}H=rRR;return H},{mode:2});var zc=function(){return _.B.apply(this,arguments)||this};
_.R(zc,_.B);zc.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"}}}}};
zc.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
zc.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var H=this.scrollable;H.attached&&typeof H.attached==="function"&&H.attached()};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],zc.prototype,"ytRendererstamperBehavior",void 0);_.G([_.hG("#scrollable"),_.q("design:type",Object)],zc.prototype,"scrollable",void 0);_.G([_.y(),_.q("design:type",Object)],zc.prototype,"data",void 0);_.G([_.b0({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],zc);
_.e(zc,"yt-ypc-offers-modal-renderer",function(){if(yRe===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;cRC===void 0&&(cRC=document.createElement("template"));var M=cRC;A.call(U,M.content.cloneNode(!0),H.content.firstChild);yRe=H}H=yRe;return H},{mode:2});var eSY;var DSS;var CD=function(){return _.B.apply(this,arguments)||this};
_.R(CD,_.B);_.X=CD.prototype;_.X.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}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.c4(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.X.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.yr(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.X.onYtPopupOpened_=function(H,U){(U==null?void 0:U.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.eb(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.X.onYtPopupClosed_=function(H,U){this.continueButtonTapped||U&&(U.canceled===!0||U.canceled===!1&&U.confirmed===!1)&&this.data.onDismissCommands&&_.eb(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.X.onYtServiceRequestError_=function(H){this.set("showSpinner",!1);_.oR(this.hostElement,H.detail.error.message)};
_.X.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.S("enable_ypc_spinners")?_.yr(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
CD.prototype.onYtServiceRequestError_=CD.prototype.onYtServiceRequestError_;CD.prototype.onYtPopupClosed_=CD.prototype.onYtPopupClosed_;CD.prototype.onYtPopupOpened_=CD.prototype.onYtPopupOpened_;CD.prototype.onYtServiceRequestCompleted_=CD.prototype.onYtServiceRequestCompleted_;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],CD.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],CD.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.y(),_.q("design:type",Object)],CD.prototype,"data",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],CD.prototype,"showSpinner",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],CD.prototype,"continueButtonTapped",void 0);_.G([_.y({value:function(){return this.onContinueTapped_.bind(this)}}),
_.q("design:type",Function)],CD.prototype,"bindOnContinueTapped_",void 0);_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],CD.prototype,"onYtServiceRequestCompleted_",null);_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],CD.prototype,"onYtPopupOpened_",null);
_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],CD.prototype,"onYtPopupClosed_",null);_.G([_.Gl("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],CD.prototype,"onYtServiceRequestError_",null);_.G([_.b0({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],CD);
_.e(CD,"yt-ypc-upgrade-dialog-renderer",function(){if(DSS===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;eSY===void 0&&(eSY=document.createElement("template"));var M=eSY;A.call(U,M.content.cloneNode(!0),H.content.firstChild);DSS=H}H=DSS;return H},{mode:2});var $S5;var leO;var tm=function(){return _.B.apply(this,arguments)||this};
_.R(tm,_.B);tm.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
tm.prototype.computeHasButtons_=function(H){return!(!H.dismissButton&&!H.confirmButton)};
tm.prototype.computeStyle_=function(H){return H||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],tm.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],tm.prototype,"ytEventForwardingBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],tm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],tm.prototype,"data",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],tm.prototype,"positionType",void 0);
_.G([_.y({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.q("design:type",Boolean)],tm.prototype,"hasButtons_",void 0);_.G([_.y({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.q("design:type",Boolean)],tm.prototype,"style_",void 0);_.G([_.b0({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],tm);
_.e(tm,"yt-bubble-hint-renderer",function(){if(leO===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;$S5===void 0&&($S5=document.createElement("template"));var M=$S5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);leO=H}H=leO;return H},{mode:2});var GC5;var Yjy;var cH=function(){var H=_.$A.apply(this,arguments)||this;H.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return H};
_.R(cH,_.$A);_.X=cH.prototype;_.X.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.X.attached=function(){var H=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){H.$.thumbnail.onShow();H.$["header-image"].onShow()})};
_.X.handleCheckBoxUpdateAction_=function(H){this.canShowCheckboxEnabledConfirmButton=H};
_.X.computeUseOverlayForSpinner_=function(H,U){return!!H&&U};
_.X.computeShowSpinner_=function(H,U){return H||!!U};
_.X.fireOnCloseActions_=function(){var H,U=_.b(((H=this.data)==null?void 0:H.onClosedActions)||[]);for(H=U.next();!H.done;H=U.next())this.ytRendererBehavior.resolveCommand(H.value)};
_.X.fireOnOpenCommands_=function(H){var U,A=(U=this.data)==null?void 0:U.onOpenCommands;if(A)for(H.stopImmediatePropagation(),H=_.b(A),U=H.next();!U.done;U=H.next())this.ytRendererBehavior.resolveCommand(U.value)};
_.X.fireOnDismissCommands_=function(H){var U,A=(U=this.data)==null?void 0:U.onDismissCommands;if(A)for(H.stopImmediatePropagation(),H=_.b(A),U=H.next();!U.done;U=H.next())this.ytRendererBehavior.resolveCommand(U.value)};
_.X.openPopupHandler_=function(H){H.detail==this&&this.fireOnOpenCommands_(H)};
_.X.closePopupHandler_=function(H,U){_.Bg(this,"yt-confirm-dialog-close-action",[U]);this.fireOnCloseActions_();(U&&U.canceled===!0||U&&U.canceled===!1&&U.confirmed===!1)&&this.fireOnDismissCommands_(H)};
_.X.onHeaderImageChanged_=function(){var H;((H=this.data)==null?0:H.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.X.computeHasHeaderImageWidth_=function(H){return H!=void 0};
_.X.computeHasLoadingMessage=function(H){return!!H};
_.X.onHeaderImageWidthChanged_=function(){var H,U=(H=this.data)==null?void 0:H.headerImageWidth;if(U){if(H=1.25*U*2+U,this.$.main.style.width=H+"px",U=this.$.scroller.firstElementChild)U.style.minWidth=H+"px"}else this.$.main.style.width="100%"};
_.X.onThumbnailChanged_=function(){var H;((H=this.data)==null?0:H.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")};
_.X.onYtNavigate_=function(H){H=_.Rr(H);H instanceof Node&&_.yf(this.$["confirm-button"]).contains(H)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.X.computePrimaryIsCancel_=function(H){return H};
_.X.computeIsCancelButtonHidden_=function(H){return H.skipCancelButton||!H.cancelButton};
_.X.computeIsCheckboxHidden_=function(H){return!H.checkbox};
_.X.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.X.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.X.onYtServiceRequestCompleted_=function(){var H;((H=this.data)==null?0:H.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.D5.Object.defineProperties(cH,{template:{configurable:!0,enumerable:!0,get:function(){if(Yjy===void 0){var H=document.createElement("template");_.E(H,'\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  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;GC5===void 0&&(GC5=document.createElement("template"));var M=GC5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);Yjy=H}H=Yjy;return H}}});
cH.prototype.onYtServiceRequestCompleted_=cH.prototype.onYtServiceRequestCompleted_;cH.prototype.onYtServiceRequestSent_=cH.prototype.onYtServiceRequestSent_;cH.prototype.onThumbnailLoaded_=cH.prototype.onThumbnailLoaded_;cH.prototype.onYtNavigate_=cH.prototype.onYtNavigate_;cH.prototype.onThumbnailChanged_=cH.prototype.onThumbnailChanged_;cH.prototype.onHeaderImageWidthChanged_=cH.prototype.onHeaderImageWidthChanged_;cH.prototype.onHeaderImageChanged_=cH.prototype.onHeaderImageChanged_;
cH.prototype.closePopupHandler_=cH.prototype.closePopupHandler_;cH.prototype.openPopupHandler_=cH.prototype.openPopupHandler_;_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],cH.prototype,"ytActionHandlerBehavior",void 0);_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],cH.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);
_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],cH.prototype,"ytEventForwardingBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],cH.prototype,"data",void 0);_.G([_.y({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.q("design:type",Boolean)],cH.prototype,"primaryIsCancel",void 0);_.G([_.y({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.q("design:type",Boolean)],cH.prototype,"isCancelButtonHidden",void 0);
_.G([_.y({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.q("design:type",Boolean)],cH.prototype,"isCheckboxHidden",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],cH.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.G([_.y({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.q("design:type",Boolean)],cH.prototype,"useOverlayForSpinner_",void 0);
_.G([_.y({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.q("design:type",Boolean)],cH.prototype,"showSpinner_",void 0);_.G([_.y({value:!1}),_.q("design:type",Boolean)],cH.prototype,"isActionInProgress_",void 0);_.G([_.y({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.q("design:type",Boolean)],cH.prototype,"hasHeaderImageWidth_",void 0);
_.G([_.y({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.q("design:type",Boolean)],cH.prototype,"hasLoadingMessage",void 0);_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],cH.prototype,"openPopupHandler_",null);_.G([_.Gl("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],cH.prototype,"closePopupHandler_",null);
_.G([_.Ya("data.headerImage"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cH.prototype,"onHeaderImageChanged_",null);_.G([_.Ya("data.headerImageWidth"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cH.prototype,"onHeaderImageWidthChanged_",null);_.G([_.Ya("data.thumbnail"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cH.prototype,"onThumbnailChanged_",null);
_.G([_.Gl("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],cH.prototype,"onYtNavigate_",null);_.G([_.Gl("yt-img-shadow-loaded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cH.prototype,"onThumbnailLoaded_",null);_.G([_.Gl("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.O3]),_.q("design:returntype")],cH.prototype,"onYtServiceRequestSent_",null);
_.G([_.Gl("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Po]),_.q("design:returntype")],cH.prototype,"onYtServiceRequestCompleted_",null);_.G([_.b0({is:"yt-confirm-dialog-renderer",noInjection:!0})],cH);var qjL;var hSe;var yj=function(){return _.B.apply(this,arguments)||this};
_.R(yj,_.B);yj.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.c4(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
yj.prototype.computeConfirmButton_=function(H){var U={text:H.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};H.confirmNavigationEndpoint?U.navigationEndpoint=H.confirmNavigationEndpoint:H.confirmServiceEndpoint&&(U.serviceEndpoint=H.confirmServiceEndpoint);return U};
yj.prototype.computeShowTitle_=function(H){return!(H==null||!H.title)};
_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],yj.prototype,"data",void 0);_.G([_.y({computed:"computeShowTitle_(data)"}),_.q("design:type",Boolean)],yj.prototype,"showTitle",void 0);_.G([_.b0({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],yj);
_.e(yj,"yt-fancy-dismissible-dialog-renderer",function(){if(hSe===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;qjL===void 0&&(qjL=document.createElement("template"));var M=qjL;A.call(U,M.content.cloneNode(!0),H.content.firstChild);hSe=H}H=hSe;return H});var kCv;var v5S;var BH=function(){var H=_.B.apply(this,arguments)||this;H.spinnerActive=!1;return H};
_.R(BH,_.B);BH.prototype.created=function(){d1f(2201)};
BH.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
BH.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
BH.prototype.onIronOverlayClosed=BH.prototype.onIronOverlayClosed;BH.prototype.onIronOverlayOpened=BH.prototype.onIronOverlayOpened;_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.Jf),_.q("design:type",Object)],BH.prototype,"tpYtIronOverlayBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],BH.prototype,"data",void 0);_.G([_.y(),_.q("design:type",Object)],BH.prototype,"spinnerActive",void 0);
_.G([_.Gl("iron-overlay-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BH.prototype,"onIronOverlayOpened",null);_.G([_.Gl("iron-overlay-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BH.prototype,"onIronOverlayClosed",null);_.G([_.b0({is:"yt-loading-renderer",disableElementRegistration:!0})],BH);
_.e(BH,"yt-loading-renderer",function(){if(v5S===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;kCv===void 0&&(kCv=document.createElement("template"));var M=kCv;A.call(U,M.content.cloneNode(!0),H.content.firstChild);v5S=H}H=v5S;return H},{mode:2});var TM5;var j5S;var rZ=function(){var H=_.B.apply(this,arguments)||this;H.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);H.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);H.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.R(rZ,_.B);_.X=rZ.prototype;_.X.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.X.onDarkModeToggledAction=function(H){this.isDarkTheme=H};
_.X.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.X.openPopupHandler_=function(H){H.detail===this.hostElement&&this.hostElement.hidden&&_.yr(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.X.onDismissButtonTap_=function(){var H;this.closeOnDismissButton_.has(((H=this.data)==null?void 0:H.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.yr(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.X.onAcceptButtonTap_=function(){var H;this.closeOnAcceptButton_.has(((H=this.data)==null?void 0:H.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.yr(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.X.computeHasHeader_=function(H){return!!H.headerBackgroundImage};
_.X.computeLayoutStyle_=function(H){return H};
_.X.computePopupSize_=function(H){return H};
_.X.computeIconType_=function(H){return H.dialogIcon&&H.dialogIcon.iconType?H.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":H.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":H.dialogIcon.iconType:""};
_.X.computeIsLogo_=function(H){return!!H.dialogIcon&&!!H.dialogIcon.iconType&&(H.dialogIcon.iconType==="YOUTUBE_LOGO"||H.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||H.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.X.computeHasCustomLogo=function(H){return!(H==null||!H.headerForegroundImage)};
_.X.computeCustomLogo=function(H,U){if(H!=null&&H.headerForegroundImage)return H.headerForegroundImageDark?U?H.headerForegroundImageDark:H.headerForegroundImage:H.headerForegroundImage};
_.X.computeHeaderBackgroundImage=function(H,U){if(H!=null&&H.headerBackgroundImage)return U&&(H==null?0:H.headerBackgroundImageDark)?H.headerBackgroundImageDark:H.headerBackgroundImage};
_.X.shouldShowIconContainer=function(H,U){return H&&!U};
_.X.shouldShowNonYouTubeIcon=function(H,U){return!H&&!U};
_.X.getLogoImageId=function(H){var U,A,M;return(H=(U=this.computeCustomLogo(H,this.isDarkTheme))==null?void 0:(A=U.thumbnails)==null?void 0:(M=A[0])==null?void 0:M.height)&&H%31===0?"custom-logo-with-padding":"custom-logo"};
rZ.prototype.openPopupHandler_=rZ.prototype.openPopupHandler_;rZ.prototype.dataChanged_=rZ.prototype.dataChanged_;_.G([_.g(_.gv.YtRendererstamperBehavior),_.q("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.G([_.y(),_.q("design:type",Boolean)],rZ.prototype,"isDarkTheme",void 0);
_.G([_.y({computed:"computeCustomLogo(data, isDarkTheme)"}),_.q("design:type",Object)],rZ.prototype,"customLogo",void 0);_.G([_.y({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.q("design:type",Object)],rZ.prototype,"headerBackgroundImage",void 0);_.G([_.y(),_.q("design:type",Object)],rZ.prototype,"data",void 0);_.G([_.y({computed:"computeHasHeader_(data)"}),_.q("design:type",Boolean)],rZ.prototype,"hasHeader",void 0);
_.G([_.y({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.q("design:type",Object)],rZ.prototype,"layoutStyle",void 0);_.G([_.y({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.q("design:type",Object)],rZ.prototype,"popupSize",void 0);_.G([_.y({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],rZ.prototype,"hasLogo",void 0);
_.G([_.y({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],rZ.prototype,"hasCustomLogo",void 0);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rZ.prototype,"dataChanged_",null);_.G([_.Gl("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],rZ.prototype,"openPopupHandler_",null);
_.G([_.b0({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],rZ);
_.e(rZ,"yt-upsell-dialog-renderer",function(){if(j5S===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;TM5===void 0&&(TM5=document.createElement("template"));var M=TM5;A.call(U,M.content.cloneNode(!0),H.content.firstChild);j5S=H}H=j5S;return H},{mode:2});var Iej=_.r(function(H){return _.Z("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.Z(_.K,{cond:H.title,then:function(U){return _.Z("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},U)}}))},"ll"),Q5M=_.r(function(H){return _.Z("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.Z(_.YY,{data:H.closeButton},{buttonViewModel:function(U){return _.Z("div",null,_.Z(_.yJ,{data:U.data}))}}))},"ml"),V3Y=_.r(function(H){var U=H.data;
return _.Z(_.ve,null,_.Z("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.Z("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.Z(_.K,{cond:function(){return!!U().image&&!!U().title},
then:function(){return _.Z(_.nG,{data:function(){return U().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.Z("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.Z(_.K,{cond:function(){return U().title},
then:function(A){return _.Z("h3",{class:"miniAppGameInfoDialogViewModelTitle"},A)}}),_.Z(_.K,{cond:function(){return U().primaryGenre},
then:function(A){return _.Z("span",{class:"miniAppGameInfoDialogViewModelGenre"},A)}}))),_.Z(_.K,{cond:function(){var A=U().description;
return A&&A.length<=150},
then:function(){return _.Z("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.Z("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return U().description}))}}))},"nl"),HUR=_.r(function(H){var U=H.ageRating;
return _.Z("span",{class:"miniAppGameInfoDialogViewModelAgeRatingWrapper"},_.Z(_.nG,{data:function(){return{sources:[{url:U().imageUrl||"",width:18,height:18}]}},
className:"miniAppGameInfoDialogViewModelAgeRatingImage",alt:"",targetHeight:18,targetWidth:18,preserveWidth:!0,preserveHeight:!0}),_.Z("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.Z(_.Pb,{text:function(){return U().attributedLabel},
noPreWrap:!0})))},"ol"),UoS=_.r(function(H){H=H.infoRows;
var U=_.lx().resolve(_.mG),A=_.S("enable_displaying_ppn");return _.Z("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.Z(_.FQ,{each:H},function(M){return _.Z("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.Z(_.K,{cond:function(){return M.label},
then:function(W){return _.Z("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},W)}}),_.Z(_.K,{cond:function(){return M.attributedLabel},
then:function(W){return _.Z("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.Z(_.Pb,{text:W,noPreWrap:!0}))}}),_.Z(_.K,{cond:function(){return M.value},
then:function(W){return _.Z("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},W)}}),_.Z(_.K,{cond:function(){return M.attributedValue},
then:function(W){return _.Z("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.Z(_.Pb,{text:W,noPreWrap:!0}))}}),_.Z(_.K,{cond:function(){return M.ageRating},
then:function(W){return _.Z(HUR,{ageRating:W})}}))}),_.Z(_.K,{cond:function(){return A&&U.clientData.has("post_play_nonce")},
then:function(){return _.Z("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.Z("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.Z("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},U.getData("post_play_nonce")))}}))},"pl"),A$S=_.r(function(H){var U=H.data;
return _.Z("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.Z(Iej,{title:function(){return U().dialogTitle}}),_.Z(V3Y,{data:U}),_.Z(_.K,{cond:function(){return U().infoRow},
then:function(A){return _.Z(UoS,{infoRows:A})}}),_.Z(Q5M,{closeButton:function(){return U().closeButton}}))},"ql");
A$S.idomCompat=!0;_.LG(A$S,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){var U=H.data;return _.Z("yt-gulp-triggering-dialog-view-model",{class:_.CG("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.Z(_.nG,{data:function(){return U().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.Z("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.Z("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.Z("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.Z(_.Pb,{text:function(){return U().title}})),_.Z(_.K,{cond:function(){return U().bodyText},
then:function(A){return _.Z(_.FQ,{each:A},function(M){return _.Z("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.Z(_.Pb,{text:M}))})}})),_.Z("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.Z(_.YY,{data:function(){return U().dismissButton}},{buttonViewModel:function(A){return _.Z("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.Z(_.yJ,{data:A.data}))}}),_.Z(_.YY,{data:function(){return U().actionButton}},{buttonViewModel:function(A){return _.Z("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.Z(_.yJ,{data:A.data}))}}))))},"rl"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.sY}});var MGO=_.r(function(H){var U=H.data;H=_.RS(function(){return U().agreements},[]);
return _.Z("installment-agreements-view-model",{class:_.CG("ytInstallmentAgreementsViewModelHost")},_.Z(_.FQ,{each:H},function(A){return _.Z("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.Z("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.Z(_.Pb,{text:A.label})),_.Z("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.Z(_.YY,{data:function(){return A.openButton}},{buttonViewModel:_.yJ})))}))},"sl");
MGO.idomCompat=!0;var WfO=_.r(function(H){var U=_.b(_.md(function(){var h,T;return((h=H.data().createPlaylistDialogFormSchema)==null?0:(T=h.initialValues)==null?0:T.title)?H.data().createPlaylistDialogFormSchema.initialValues.title:""})),A=U.next().value,M=U.next().value;
U=_.b(_.md(function(){H.data();return!1}));
var W=U.next().value,w=U.next().value;U=_.b(_.md(function(){H.data();return!1}));
var d=U.next().value,O=U.next().value;U=_.b(_.md(function(){var h,T;return(h=H.data().createPlaylistDialogFormSchema)==null?void 0:(T=h.initialValues)==null?void 0:T.visibility}));
var f=U.next().value,J=U.next().value;U=_.b(_.md(function(){H.data();return!1}));
var F=U.next().value,P=U.next().value;U=_.b(_.md(function(){var h,T;return(h=H.data().createPlaylistDialogFormSchema)==null?void 0:(T=h.initialValues)==null?void 0:T.isCollaborative}));
var n=U.next().value,N=U.next().value,L=_.nA("div");_.Em(function(){var h=L.value.querySelector("textarea");h&&(h.value=A())},"axFRaf");
_.LA(function(){var h;u_8((h=H.data().createPlaylistDialogFormSchema)==null?void 0:h.id,{onSubmit:function(){var T=A();var WF=f(),dK=n(),SN=H.data();T={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:T,privacyStatus:WF,videoIds:SN.videoIds,sourcePlaylistId:SN.sourcePlaylistId,params:dK?SN.createPlaylistParamsCollaborationEnabled:SN.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.lx().resolve(_.YV).resolveCommand(T)},
isValid:function(){return W()&&!d()&&!F()}})});
var m=function(h){if(h!==void 0&&(M(h),!W()&&h.length>0&&w(!0),W())){var T=ZT7(H.data());if(T){var WF=T.minLength;T=T.maxLength;WF&&h.length<WF?O(!0):T&&h.length>T?O(!0):O(!1)}}},z=function(){var h=!(!n()||f()!=="PRIVATE");
P(h)},c=function(h){h!==void 0&&(J(h),z())},C=function(){if(F())return Jg$(H.data())},v=function(){N(!n());
z()},Y=function(){return{validate:function(h){if(W()){var T=ZT7(H.data());
if(T){var WF=T.minLength;T=T.translations;if(WF&&h.length<WF)return T==null?void 0:T.minLengthErrorMessage}}}}},D=function(){var h=ZT7(H.data()),T=h==null?void 0:h.maxLength,WF;
h=h==null?void 0:(WF=h.translations)==null?void 0:WF.maxLengthErrorMessage;if(T&&h)return{maxChars:T,errorMessage:h}};
return _.Z("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.Z("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:L},_.Z(_.YY,{data:function(){return H.data().playlistTitle}},{textFormFieldViewModel:function(h){return _.Z(YKp,{data:h.data,
text:A,onInput:m,validation:Y,characterLimit:D})},
textFieldViewModel:function(h){return _.Z(G_h,{data:h.data,text:A,controlledMode:!0,onInput:m,validation:Y,characterLimit:D})}})),_.Z("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.Z(_.YY,{data:function(){return H.data().playlistVisibility}},{dropdownViewModel:function(h){return _.Z(HL$,{data:h.data,
onSelected:c,error:C})}})),_.Z(_.K,{cond:function(){return!!H.data().playlistCollaborate},
then:function(){return _.Z("div",null,_.Z(_.YY,{data:function(){return H.data().playlistCollaborate}},{switchListItemViewModel:function(h){return _.Z(_.YQh,{data:h.data,
onTap:v})}}))}}))},"ul");var wIe=_.r(function(H){var U=H.data;return _.Z("upsell-offer-table-cell-content-view-model",null,_.Z("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.Z(_.P5,null,_.Z(_.KA,{when:function(){var A;return(A=U().icon)==null?void 0:A.iconType}},function(){return _.Z("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.Z(_.er,{icon:function(){var A;
return(A=U().icon)==null?void 0:A.iconType.toString()}}))}),_.Z(_.KA,{when:function(){return U().title}},function(){return _.Z(_.Pb,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return U().title}})}),_.Z(_.KA,{when:function(){return U().subtitle}},function(){return _.Z(_.Pb,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return U().subtitle}})}),_.Z(_.KA,{when:function(){return U().infoText}},function(){return _.Z(_.Pb,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return U().infoText}})}),_.Z(_.KA,{when:function(){return U().featureDescription}},function(){return _.Z(_.Pb,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return U().featureDescription}})}),_.Z(_.KA,{when:function(){return U().note}},function(){return _.Z(_.Pb,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return U().note}})})),_.Z(_.K,{cond:function(){var A;
return(A=U().icon)==null?void 0:A.iconAccessibilityText},
then:function(){return _.Z("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var A;return(A=U().icon)==null?void 0:A.iconAccessibilityText})}})))},"vl");
wIe.idomCompat=!0;var XIy=_.r(function(H){var U=H.data;var A=H.cellIndex;var M=H.rowIndex;return _.Z("upsell-offer-table-cell-view-model",null,_.Z("div",{class:_.CG("ytUpsellOfferTableCellViewModelCellWrapper",function(){return U().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":U().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var W,w;return"cell-"+((W=M==null?void 0:M())!=null?W:0)+"-"+((w=A==null?void 0:A())!=null?w:0)},
role:function(){return U().isFirstRow?"columnHeader":U().isFirstColumn?"rowheader":"gridcell"}},_.Z(_.YY,{data:function(){return U().contents}},{upsellOfferTableCellContentViewModel:wIe})))},"wl");
XIy.idomCompat=!0;var iUN=_.r(function(H){var U=H.data;var A=H.upsellTableIsFirstRow;var M=H.rowIndex;var W=function(){return(A==null?0:A())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},w=function(){return(A==null?0:A())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.Z("ytm-upsell-offer-table-row-view-model",null,_.Z("div",{class:function(){return(A==null?0:A())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(M==null?void 0:M())+"-1 cell-"+(M==null?void 0:M())+"-2"}},_.Z(_.YY,{data:function(){return U().rowHeaderCell}},{upsellOfferTableCellViewModel:function(d){return _.Z("div",{class:W},_.Z(XIy,{data:d.data,
cellIndex:0,rowIndex:M}))}}),_.Z("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.Z(_.YY,{data:function(){return U().contentCells}},{upsellOfferTableCellViewModel:function(d,O){return _.Z("div",{class:w},_.Z(XIy,{data:d.data,
cellIndex:function(){return O()+1},
rowIndex:M}))}}))))},"xl");
iUN.idomCompat=!0;var bU3=_.r(function(H){var U=H.data;return _.Z("ytm-upsell-offer-table-view-model",null,_.Z("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.Z("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.Z(_.YY,{data:function(){return U().rows}},{upsellOfferTableRowViewModel:function(A,M){return _.Z(iUN,{data:A.data,
upsellTableIsFirstRow:function(){return M()===0},
rowIndex:M})}}))))},"yl");
bU3.idomCompat=!0;var doC=_.r(function(H){var U=function(){return H.data()},A=_.RS(H.noPadding,!1),M=function(){var w,d;
return(d=(w=U().logo.accessibilityData)==null?void 0:w.label)!=null?d:""},W={};
return _.Z("upsell-view-model",{class:_.CG("ytUpsellViewModelHost",(W.ytUpsellViewModelHostNoPadding=function(){return A()},W.ytUpsellViewModelHostWide=function(){return U().offerTable!==void 0},W))},_.Z("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.Z(_.K,{cond:function(){return _.Zf(U().logo)},
then:function(w){return _.Z(_.nG,{data:w,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:M})}})),_.Z("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.Z(_.Pb,{text:function(){return U().title}})),_.Z("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.Z(_.FQ,{each:function(){var w;
return(w=U().subtitles)!=null?w:[]},
keyBy:"INDEX"},function(w){var d={};return _.Z("div",{class:_.CG("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(d.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return U().offerTable!==void 0},d))},_.Z(_.Pb,{text:w}))})),_.Z("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.Z(_.FQ,{each:function(){var w;
return(w=U().benefitInfos)!=null?w:[]},
keyBy:"INDEX"},function(w){return _.Z(_.K,{cond:function(){return w().info},
then:function(d){return _.Z("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.Z(_.er,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.Z(_.Pb,{text:d}))}})})),_.Z(_.K,{cond:function(){return U().offerTable!==void 0},
then:function(){return _.Z("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.Z(_.YY,{data:function(){return U().offerTable}},{upsellOfferTableViewModel:function(w){return _.Z(bU3,{data:w.data})}}))}}),_.Z("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.Z(_.FQ,{each:function(){var w;
return(w=U().legalInfos)!=null?w:[]},
keyBy:"INDEX"},function(w){var d={};return _.Z("div",{class:_.CG("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(d.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return U().offerTable!==void 0},d))},_.Z(_.Pb,{text:w}))})))},"zl");var OUL=_.r(function(H){var U=H.data;H={};H=(H.ytMiniAppScoreChallengeViewModelScoreRadial=!0,H.ytMiniAppScoreChallengeViewModelDarkScoreRadial=K9h(),H);return _.Z("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.Z("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return U().title}),_.Z("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return U().subtitle}),_.Z("div",{class:_.QU(H)},_.Z("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return U().score})),_.Z("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return U().prompt}))},"Al");var uPM=function(){this.store=_.Sq();this.formId=""};
uPM.prototype.onInit=function(H){H.formId&&(this.formId=H.formId,this.store.dispatch(_.zQ({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};
uPM.prototype.cleanup=function(){this.store.dispatch(_.zQ({type:"RESET_COMMAND_MAP"}))};var ZUM=_.r(function(H){function U(O){if(O&&(O=_.p(O,_.vo)))return Object.assign({},O,{isSelected:w()})}
var A=_.b(_.md(function(){var O,f;return(f=(O=_.p(H.data().option,_.vo))==null?void 0:O.isSelected)!=null?f:!1})),M=A.next().value,W=A.next().value,w=M;
_.LA(function(){var O;u_8((O=H.data().formSchema)==null?void 0:O.id,{onSubmit:function(){var f=_.lx().resolve(_.YV),J=!!H.data().selectedCommand,F=!!H.data().unselectedCommand;if(w()){if(J)var P=H.data().selectedCommand}else F&&(P=H.data().unselectedCommand);P=_.ij(P);U(H.data().option)&&!P?(f="",!J&&F?f="selected ":J&&!F&&(f="unselected "),J=new _.bD("No "+f+"command found for SelectionListItemFormViewModel"),_.sD(J)):P&&f.resolveCommand(P)},
isValid:function(){return!0}})});
var d=function(){W(!w())};
_.m4(function(){var O,f,J=(O=H.data())==null?void 0:(f=O.formSchema)==null?void 0:f.id;J&&_.lZ()().delete(J)});
return _.Z("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.Z("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.Z(_.Pb,{text:function(){return H.data().paragraph}})),_.Z(_.K,{cond:function(){return U(H.data().option)},
then:function(O){return _.Z(_.P3,{data:O,isCompact:!0,hideSelectionTextChevron:!0,onTap:d,disableHorizontalPadding:!0})}}))},"Bl");var fO5=_.r(function(H){var U=H.data;var A=H.disablePadding;var M=H.className;var W=_.nA("yt-dialog-header-view-model"),w=function(){var f=U().imageBanner;a:switch(U().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var J="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:J="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:f,style:J,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},d=function(){return U().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"},
O=function(){return U().alignment==="DIALOG_HEADER_ALIGNMENT_CENTER"};
_.LA(function(){var f=function(){_.yr(W.value,"yt-refit-popups-action")},J;
(J=W.value)==null||J.addEventListener("image-loaded",f);_.m4(function(){var F;(F=W.value)==null||F.removeEventListener("image-loaded",f)})});
H={};return _.Z("yt-dialog-header-view-model",{el:W,class:_.CG(M,(H.ytDialogHeaderViewModelHost=!0,H.ytDialogHeaderViewModelHostDisablePadding=A,H.ytDialogHeaderViewModelHostCentered=O,H))},_.Z(_.K,{cond:function(){return U().imageBanner},
then:function(){var f={};return _.Z("div",{class:_.CG(M,(f.ytDialogHeaderViewModelBanner=!0,f.ytDialogHeaderViewModelBannerFullBleed=d,f)),style:_.rA({"max-height":function(){return U().assetContainerMaxHeight!==void 0?U().assetContainerMaxHeight+"px":void 0}})},_.Z(_.B6,{data:w,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.Z(_.K,{cond:function(){return U().headerBlock},
then:function(){var f={};return _.Z("div",{class:_.CG("ytDialogHeaderViewModelHeaderBlock",(f.ytDialogHeaderViewModelHeaderBlockCentered=O,f))},_.Z(_.YY,{data:function(){return U().headerBlock}},{contentPreviewImageViewModel:function(J){return _.Z(_.B6,{data:J.data,
notifyOnLoaded:!0})}}))}}),_.Z(_.K,{cond:function(){return U().customBanner},
then:function(f){var J={};return _.Z("div",{class:_.CG("ytDialogHeaderViewModelCustomAssetContainer",(J.ytDialogHeaderViewModelCustomAssetContainerCentered=O,J))},_.Z(_.YY,{data:f},{avatarStackViewModel:_.uh}))}}),_.Z(_.K,{cond:function(){return U().headline},
then:function(f){return _.Z("h2",null,_.Z(_.Pb,{text:f,className:"ytDialogHeaderViewModelText"}))}}))},"Cl");
fO5.idomCompat=!0;var J$3=_.r(function(H){var U=_.K2N(function(){return H.data().formId}),A=U.submitForm,M=U.isValid;
return _.Z("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.Z(_.YY,{data:function(){return H.data().panelFooter}},{panelFooterViewModel:function(W){return _.Z(ms,{data:W.data,
disablePadding:!0,disablePrimaryButton:function(){return!M()},
onClickPrimaryButton:function(){A()}})}}))},"Dl");var KfS=_.r(function(H){var U=function(){var A,M;return(M=(A=_.p(H.data().rendererContext,_.Tn))==null?void 0:A.label)!=null?M:""};
return _.Z("yt-dialog-image-content-view-model",{class:_.CG("ytDialogImageContentViewModelHost",H.className)},_.Z(_.K,{cond:function(){return _.Zf(H.data().image)},
then:function(A){var M={};return _.Z("div",{style:_.rA((M.width=(0,_.JQ)(function(){var W;return(W=H.data().imageMaxWidth)!=null?W:""}),M)),
class:"ytDialogImageContentViewModelImage"},_.Z(_.nG,{data:A,alt:U,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.Z(_.Pb,{text:function(){return H.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"El");var PLM=_.r(function(H){var U=_.Ec(H,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),A=U.elRefCallback;H=U.Icon;var M=U.Asset,W=U.assetType,w=U.Title,d=U.LeadingActionHeader,O=U.TrailingActionHeader,f=U.headerPosition,J=U.Content,F=U.buttonLayout,P=U.buttonStyle,n=U.primaryButtonWiz,N=U.secondaryButtonWiz,L=U.contentAlignment,m=U.isFullscreen,z=U.width,c=U.maxHeight,C=U.isHeaderWizDefined,v=U.Header,Y=U.isFooterWizDefined,
D=U.Footer;U=_.nA("dialog-layout",function(BF){A==null||A(BF)});
var h=n?function(){var BF={};return n({buttonOverrides:function(){return{style:(P==null?void 0:P())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.CG((BF["yt-spec-dialog-layout__dialog-layout-button"]=!0,BF["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(F==null?void 0:F())===0||(F==null?void 0:F())===2},BF))})}:void 0,T=N?function(){var BF={};
return N({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.CG((BF["yt-spec-dialog-layout__dialog-layout-button"]=!0,BF["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(F==null?void 0:F())===0||(F==null?void 0:F())===2},BF))})}:void 0,WF=function(){return(!!w||!!d||!!O)&&f()===0},dK={},SN={},o_={},PF={};
return _.Z("dialog-layout",{el:U,class:_.CG((dK["yt-spec-dialog-layout"]=!0,dK["yt-spec-dialog-layout--dialog-layout-fullscreen"]=m,dK["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!m()},dK["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return c()===1},dK["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(W==null?void 0:W())===1},dK)),
style:function(){return(z==null?void 0:z())!==void 0?"width: "+z()+"px;":""}},H?_.Z("div",{class:_.CG((SN["yt-spec-dialog-layout__dialog-layout-icon"]=!0,SN["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!M&&f()===1},SN["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return L()===1},SN))},_.Z(H,null)):null,_.Z(_.K,{cond:C,
then:function(){return v?_.Z("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.Z(v,null)):null},
else:function(){return _.Z(_.ve,null,_.Z(_.K,{cond:WF,then:function(){return _.Z(osR,{contentAlignment:L,LeadingActionHeader:d,TrailingActionHeader:O,Title:w,isAboveAsset:!!M})}}),M?_.Z("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.Z(M,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.Z("div",{class:_.CG((o_["yt-spec-dialog-layout__dialog-layout-container"]=!0,o_["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(L==null?void 0:L())===1},
o_["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!w&&!(v&&C())||!!M&&(f==null?void 0:f())===0},o_))},_.Z(_.K,{cond:function(){return w&&!v&&(f==null?void 0:f())===1},
then:function(){return _.Z(osR,{contentAlignment:L,LeadingActionHeader:d,TrailingActionHeader:O,Title:w,isAboveAsset:!1})}}),J?_.Z("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.Z("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.Z(J,null))):null,_.Z(_.K,{cond:Y,
then:function(){return D?_.Z("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.Z(D,null)):null}}),h||T?_.Z(Ff5,{footerClasses:_.CG((PF["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,PF["yt-spec-dialog-layout__dialog-layout-footer"]=!0,PF["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(F==null?void 0:F())===2},PF["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(F==null?void 0:F())===1},PF)),
PrimaryButton:h,SecondaryButton:T}):null))},"Fl"),osR=_.r(function(H){var U=_.Ec(H,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),A=U.contentAlignment,M=U.LeadingActionHeader;H=U.Title;var W=U.TrailingActionHeader,w=U.isAboveAsset,d=U.enableLeadingActionHeader;U={};return _.Z("div",{class:_.CG((U["yt-spec-dialog-layout__dialog-header-container"]=!0,U["yt-spec-dialog-layout__dialog-header"]=!0,U["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=w,U["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(A==null?void 0:A())===1&&d()},U))},_.Z(_.K,{cond:function(){return d()},
then:function(){return M?_.Z("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.Z(M,null)):null}}),H?_.Z("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.Z(H,null)):null,W?_.Z("div",null,_.Z(W,null)):null)},"Gl"),Ff5=_.r(function(H){var U=H.footerClasses;
var A=H.PrimaryButton;H=H.SecondaryButton;return _.Z("div",{class:U},H?_.Z(H,null):null,A?_.Z(A,null):null)},"Hl");var sDR=new _.g3("TIME_PICKER_VIEW_MODEL_TOKEN");var nsC=_.r(function(H){var U=H.data;return _.Z("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.Z("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.Z(_.YY,{data:function(){return U().avatar}},{avatarViewModel:_.dU})),_.Z("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.Z(_.Pb,{text:function(){return U().title}})),_.Z(_.Pb,{text:function(){return U().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Il");var NY5=_.r(function(H){return _.Z("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.Z(_.Pb,{text:function(){return H.data().inviteMessage}})),_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.Z(_.Pb,{text:function(){return H.data().attributedAccountSectionHeaderText}})),_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.Z(_.YY,{data:function(){return H.data().accountAvatar}},{avatarViewModel:_.dU}),_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.Z(_.Pb,{text:function(){return H.data().accountName}}),_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.Z(_.Pb,{text:function(){return H.data().handle}}))),_.Z(_.YY,{data:function(){return H.data().trailingButton}},{buttonViewModel:_.yJ})),_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.Z(_.Pb,{text:function(){return H.data().termsOfService}})))},"Jl");var SrO=_.r(function(H){var U=H.data;return _.Z("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.Z("div",{class:"ytAccessConfirmationViewModelContent"},_.Z(_.YY,{data:function(){var A;return(A=U().avatar)!=null?A:U().dualAvatar}},{dualAvatarViewModel:function(A){return _.Z(_.BMj,{data:A.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(A){return _.Z(_.Od,{data:A.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.Z("h2",{class:"ytAccessConfirmationViewModelTitle"},_.Z(_.Pb,{text:function(){return U().title}})),_.Z(_.Pb,{text:function(){return U().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Kl");var pI5=_.r(function(H){var U=function(){var O,f;return(O=H.data().formSchema)==null?void 0:(f=O.initialValues)==null?void 0:f.selectedLanguages},A=_.b(_.md(function(){return U()})),M=A.next().value,W=A.next().value,w={};
_.Em(function(){var O=H.data().formSchema,f=O==null?void 0:O.submitConfig;H.data()!==w&&(w=H.data(),O&&f&&OEh(O.id,{isValid:function(){var J,F=(J=M())!=null?J:[],P;J=(P=U())!=null?P:[];if(F.length!==J.length)return!0;P=new Set(J);F=_.b(F);for(J=F.next();!J.done;J=F.next())if(!P.has(J.value))return!0;return!1},
formData:function(){return{preferredLanguageSettingsFormData:{selectedLanguages:M()||[]}}},
submitConfig:f}))},"iCaJcc");
var d=function(O){var f=O.key;if(f){var J;if(f&&((J=M())==null?0:J.includes(f))){var F;W((F=M())==null?void 0:F.filter(function(P){return P!==f}))}else W([].concat(_.vI(M()||[]),[f]))}};
return _.Z("yt-preferred-language-settings-panel-view-model",{class:"ytPreferredLanguageSettingsPanelViewModelHost"},_.Z(_.YY,{data:function(){return H.data().checkboxGroup}},{checkboxGroupViewModel:function(O){return _.Z(D7X,{data:O.data,
onItemTap:d,selectedKeys:M,controlledMode:!0,disableHorizontalPadding:H.disableHorizontalPadding})}}))},"Ml");var Lfv=_.r(function(H){var U=H.data;var A=void 0;H=_.b(_.md(function(){var F;return((F=_.p(U().content,mNh))==null?void 0:F.defaultSelectedKey)||""}));
var M=H.next().value,W=H.next().value,w,d=function(){W("");var F;(F=A)==null||F.cleanup()};
_.LA(function(){A=new uPM;window.addEventListener("yt-popup-closed",d)});
_.Em(function(){if(A&&w!==U().formId&&(A.onInit(U()),(w=U().formId)&&M())){var F=A,P={key:M()};P.command&&F.store.dispatch(zem(w,P.command))}},"bo7oA");
_.m4(function(){window.removeEventListener("yt-popup-closed",d)});
var O=function(F,P,n){P.key&&n&&P.key!==M()&&(W(P.key),A&&P.command&&A.store.dispatch(zem(n,P.command)))},f=function(){if(_.p(U().content,mNh))return!(M==null?0:M())},J=_.lx().resolve(_.$V(sDR));
return _.Z("yt-dialog-view-model",{class:_.CG("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.Z(PLM,{Header:function(){return _.Z(_.YY,{data:function(){return U().header}},{dialogHeaderViewModel:function(F){return _.Z(fO5,{data:F.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!U().header},
Content:function(){return _.Z(_.YY,{data:function(){return U().customContent?U().customContent:U().content}},Object.assign({},{basicContentViewModel:_.o6,
createPlaylistDialogFormViewModel:WfO,collaborativePlaylistInviteMessageViewModel:NY5,preferredLanguageSettingsPanelViewModel:function(F){return _.Z(pI5,{data:F.data,disableHorizontalPadding:!0})},
miniAppScoreChallengeViewModel:OUL,radioButtonGroupViewModel:function(F){var P=F.data;return _.Z(rC5,{data:P,selectedKey:M,onSelected:O,groupName:function(){return P().formId}})},
selectionListItemFormViewModel:ZUM,upsellViewModel:function(F){return _.Z(doC,{data:F.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:nsC,installmentAgreementsViewModel:MGO,accessConfirmationViewModel:SrO,listViewModel:function(F){return _.Z(_.Qog,{data:F.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:KfS},J&&{timePickerViewModel:J}))},
Footer:function(){return _.Z(_.YY,{data:function(){return U().footer}},{panelFooterViewModel:function(F){return _.Z(ms,{data:F.data,
disablePadding:!0,disablePrimaryButton:f})},
formPanelFooterViewModel:J$3,formFooterViewModel:function(F){return _.Z(zzB,{data:F.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!U().footer}}))},"Ol");
Lfv.idomCompat=!0;_.LG(Lfv,"yt-dialog-view-model",{props:{data:_.sY},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var RKj=_.r(function(H){var U=H.data;return _.Z("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.Z(_.K,{cond:function(){return U().title},
then:function(A){return _.Z("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.Z(_.Pb,{text:A,className:"ytPanelHeaderViewModelTitle"}))}}),_.Z(_.K,{cond:function(){return U().subtitle},
then:function(A){return _.Z(_.Pb,{text:A,className:"ytPanelHeaderViewModelSubtitle"})}}))},"Pl"),Esy=_.r(function(H){var U=H.data;
var A=_.GLh(function(){return U().rendererContext});
H={};return _.Z("yt-panel-header-view-model",{class:_.CG("ytPanelHeaderViewModelHost",(H.ytPanelHeaderViewModelHostHideDivider=function(){return!!U().shouldHideDivider},H.ytPanelHeaderViewModelHostCompact=function(){return!!U().subtitle},H)),
"aria-label":function(){var M;return(M=A())==null?void 0:M.label}},_.Z(_.K,{cond:function(){return _.MG(U().rendererContext)},
then:function(){return _.Z(_.cVm,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.AF(U().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.Z(RKj,{data:U}))},
else:function(){return _.Z(RKj,{data:U})}}),_.Z("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.Z(_.YY,{data:function(){return U().trailingButtons}},{buttonViewModel:function(M){return _.Z(_.yJ,{data:M.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Ql");
Esy.idomCompat=!0;var mo5=_.r(function(H){var U=_.c$(function(w){var d;if((d=H.skipContentClick)==null?0:d.call(H))return!1;H.onContentWrapperClick(w);return!0}),A,M,W;
return _.Z("div",{class:_.CG("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return H.isAnimating()?"transform: translateY("+H.currentY()+"px);transition: 0.2s":""}},(A=H.header)==null?void 0:A.call(H),_.Z("div",{id:H.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.rA({"max-height":(0,_.JQ)(H.maxHeightForContentWrapper)}),"on:scroll":_.c$(function(w){return H.onScroll(w),!1}),
"on:touchmove":_.c$(function(w){return w.stopPropagation(),!1})},_.Z("div",{el:_.sB(H.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":U},(M=H.body)==null?void 0:M.call(H))),(W=H.footer)==null?void 0:W.call(H))},"Rl");
mo5.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var gsO=_.r(function(H){var U=_.RS(H.leadingLabel),A=_.RS(H.trailingLabel),M=_.RS(H.footerButtonType),W=function(){return U()||A()||H.hasPrimaryButton()||H.hasSecondaryButton()},w={},d=_.CG("yt-spec-bottom-sheet-layout__primary-button",(w["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return M()===0&&H.hasPrimaryButton()},w["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return M()===1&&H.hasPrimaryButton()},w["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return M()===2&&H.hasPrimaryButton()},w["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return M()===3&&H.hasPrimaryButton()},w));
w={};var O=_.CG("yt-spec-bottom-sheet-layout__secondary-button",(w["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return M()===1&&H.hasSecondaryButton()},w["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return M()===2&&H.hasSecondaryButton()},w["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return M()===3&&H.hasPrimaryButton()},w));
return _.Z(_.K,{cond:H.hasFooterOverride,then:function(){var f;return _.Z(_.ve,null,(f=H.footerOverride)==null?void 0:f.call(H))},
else:function(){return _.Z(_.K,{cond:W,then:function(){return _.Z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.Z(_.K,{cond:function(){return U()||A()},
then:function(){var f={};return _.Z("div",{class:_.CG("yt-spec-bottom-sheet-layout__footer-label-wrapper",(f["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!H.hasPrimaryButton()},f))},_.Z(_.K,{cond:U,
then:function(){return _.Z("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},U)}}),_.Z(_.K,{cond:A,
then:function(){return _.Z("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},A)}}))}}),_.Z(_.K,{cond:function(){return H.hasPrimaryButton()||H.hasSecondaryButton()},
then:function(){var f={};return _.Z("div",{class:_.CG("yt-spec-bottom-sheet-layout__footer-button-wrapper",(f["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.psm,f))},_.Z(_.K,{cond:function(){return H.hasSecondaryButton()&&M()!==0},
then:function(){var J;return _.Z("div",{class:O},(J=H.secondaryButton)==null?void 0:J.call(H))}}),_.Z(_.K,{cond:H.hasPrimaryButton,
then:function(){var J;return _.Z("div",{class:d},(J=H.primaryButton)==null?void 0:J.call(H))}}))}}))}})}})},"Sl");
gsO.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var aOe=_.r(function(H){var U=_.RS(H.title),A=_.RS(H.subtitle);return _.Z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:H.headerId,"on:touchstart":_.c$(function(M){var W;(W=H.touchstart)==null||W.call(H,M);return!1}),
"on:touchmove":_.c$(function(M){var W;(W=H.touchmove)==null||W.call(H,M);return!1}),
"on:touchend":_.c$(function(M){var W;(W=H.touchend)==null||W.call(H,M);return!1})},_.Z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.Z(_.K,{cond:H.hasHeaderOverride,
then:function(){var M;return _.Z(_.ve,null,(M=H.headerOverride)==null?void 0:M.call(H))},
else:function(){var M={};return _.Z("div",{class:_.CG((M["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,M["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=U,M))},_.Z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.Z(_.K,{cond:U,then:function(){return _.Z(_.ve,null,_.Z("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},U),_.Z(_.K,{cond:A,then:function(){return _.Z("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
A)}}))}})),_.Z(_.K,{cond:function(){return U()&&H.hasActionHeader()},
then:function(){var W;return _.Z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(W=H.actionHeader)==null?void 0:W.call(H))}}))}}))},"Tl");
aOe.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.r(function(H){function U(WF){if(!v&&typeof MutationObserver!=="undefined"){var dK={childList:!0};"MutationObserver"in window&&(v=new MutationObserver(A.bind(void 0,WF)),v.observe(WF,dK))}}
function A(WF){typeof v!=="undefined"&&(Y["content-wrapper"]===void 0&&(Y["content-wrapper"]=WF.children[0].clientHeight),m(Y["content-wrapper"]),L()>z()||c(L()))}
function M(){N(window.innerHeight);L()>z()||c(L());D.isFullScreen[0]()&&L()>z()?h().dispatch("Snap To Full Screen",{maxHeight:C()}):h().dispatch("Snap To Neutral Position",{maxHeight:z()})}
function W(WF){document.body.style.overscrollBehavior="none";WF.preventDefault();h().dispatch("Touch Start",{event:WF})}
function w(WF){WF.preventDefault();h().dispatch("Touch Move",{event:WF,contentScrollable:L()>z(),fullContentWrapperHeight:C(),contentWrapperHeight:z(),heightMap:Y,contentWrapperId:"content-wrapper",header:nF5(H),footer:nF5(H),headerDivHeight:Y["bottom-sheet-header"],footerDivHeight:Y["bottom-sheet-footer"]})}
function d(){document.body.style.overscrollBehavior="";D.isFullScreen[0]()?D.currentY[0]()>=60?h().dispatch("Snap To Neutral Position",{maxHeight:z()}):h().dispatch("Snap To Full Screen",{maxHeight:C()}):D.currentY[0]()>=60?O():D.currentY[0]()<=-60&&L()>z()?h().dispatch("Snap To Full Screen",{maxHeight:C()}):h().dispatch("Snap To Neutral Position",{maxHeight:z()})}
function O(){h().dispatch("Close Sheet",{clientHeight:n(),maxHeight:0});setTimeout(function(){sTy()},250)}
var f=_.nA("div"),J=_.nA("div"),F=_.b(_.iB(window.innerHeight,void 0,"CmOsU")),P=F.next().value;F=F.next().value;var n=P,N=F;F=_.b(_.iB(0,void 0,"p0Flhb"));P=F.next().value;F=F.next().value;var L=P,m=F;F=_.b(_.md(function(){var WF=nF5(H);return.6*n()-oFj(WF)-F97(WF)}));
P=F.next().value;F=F.next().value;var z=P,c=F,C=function(){var WF=nF5(H),dK=n(),SN=Y["bottom-sheet-header"],o_=Y["bottom-sheet-footer"];return dK-(WF.hasHeaderFn&&SN!==void 0?SN:oFj(WF))-(WF.hasFooterFn&&o_!==void 0?o_:F97(WF))-24-24},v=null,Y={},D={initialY:_.iB(0,void 0,"sxdESd"),
currentY:_.iB(0,void 0,"GZzqeb"),isAnimating:_.iB(!1,void 0,"vJBupc"),isFullScreen:_.iB(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.md(z)},h=function(){var WF=null;return function(){if(!WF){var dK={initialY:D.initialY[0](),currentY:D.currentY[0](),isAnimating:D.isAnimating[0](),isFullScreen:D.isFullScreen[0](),maxHeightForContentWrapper:D.maxHeightForContentWrapper[0]()};WF=Poh(dK)}return WF}}();
_.LA(function(){window.addEventListener("resize",M);h().subscribe(function(WF){D.initialY[1](WF.initialY);D.currentY[1](WF.currentY);D.isAnimating[1](WF.isAnimating);D.isFullScreen[1](WF.isFullScreen);D.maxHeightForContentWrapper[1](WF.maxHeightForContentWrapper)});
requestAnimationFrame(function(){f.value&&(Y["bottom-sheet-header"]=f.value.clientHeight);J.value&&(Y["bottom-sheet-footer"]=J.value.clientHeight)})});
_.m4(function(){window.removeEventListener("resize",M);v&&(v.disconnect(),v=null)});
var T=_.CG({"bottom-sheet-content-without-icon":function(){var WF;return!((WF=H.shouldShowIcons)==null?0:WF.call(H))}});
return _.Z("bottom-sheet-layout",null,_.Z(mo5,{contentWrapperId:"content-wrapper",isAnimating:function(){return D.isAnimating[0]()},
currentY:function(){return D.currentY[0]()},
maxHeightForContentWrapper:function(){return D.maxHeightForContentWrapper[0]()},
shouldShowIcons:H.shouldShowIcons,skipContentClick:H.skipContentClick,onScroll:function(){var WF=document.getElementById("bottom-sheet-header"),dK=document.getElementById("content-wrapper");if(WF&&dK){var SN={};SN=(SN["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,SN["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,SN);WF.className=dK.scrollTop>1?_.QU(SN):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:sTy,contentWrapperEl:function(WF){U(WF);requestAnimationFrame(function(){A(WF)})},
header:function(){return _.Z("div",{el:f},_.Z(aOe,{touchstart:W,touchmove:w,touchend:d,title:H.headerTitle,subtitle:H.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:H.headerFn,hasHeaderOverride:H.hasHeaderFn,actionHeader:H.headerActionHeader,hasActionHeader:H.hasHeaderActionHeader}))},
footer:function(){return _.Z("div",{el:J},_.Z(gsO,{footerButtonType:H.footerButtonType,leadingLabel:H.footerLeadingLabel,trailingLabel:H.footerTrailingLabel,primaryButton:H.footerPrimaryButton,hasPrimaryButton:H.hasFooterPrimaryButton,secondaryButton:H.footerSecondaryButton,hasSecondaryButton:H.hasFooterSecondaryButton,footerOverride:H.footerFn,hasFooterOverride:H.hasFooterFn}))},
body:function(){return _.Z(_.K,{cond:H.hasContentFn,then:function(){var WF;return _.Z("div",{class:T},(WF=H.contentFn)==null?void 0:WF.call(H))}})}}))},"Ul").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var xoO=_.r(function(H){var U=_.lx().resolve(_.Wi);return _.Z("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.c$(function(){return void U.closeSheet()})},_.Z(_.K,{cond:function(){return!!H.header},
then:function(){return _.Z("div",{class:"ytContextualSheetLayoutHeaderContainer"},H.header())}}),_.Z(_.K,{cond:function(){return!!H.content},
then:function(){return _.Z("div",{class:"ytContextualSheetLayoutContentContainer"},H.content())}}),_.Z(_.K,{cond:function(){return!!H.footer},
then:function(){return _.Z("div",{class:"ytContextualSheetLayoutFooterContainer"},H.footer())}}))},"Vl");
xoO.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var zKC=_.r(function(H){var U=H.data;var A=_.lx().resolve(_.YV),M=_.nA("yt-sheet-view-model",function(W){if(_.S("web_focus_first_element_sheet")||!_.S("sheet_focus_first_killswitch"))return W.addEventListener("focus",function(){WF5(W)}),function(){W.removeEventListener("focus",function(){WF5(W)})}});
H={};return _.Z("yt-sheet-view-model",{"on:mousedown":_.c$(function(W){_.S("sheet_focus_first_killswitch")||W.currentTarget!==W.target&&W.preventDefault()}),
"on:focus":_.c$(function(){_.S("sheet_focus_first_killswitch")||WF5(M.value)}),
"on:mouseleave":_.c$(function(){var W,w=U==null?void 0:(W=U())==null?void 0:W.rendererContext,d;(W=(d=_.p(w,_.w7))==null?void 0:d.onHoverEnd)&&A.resolveCommand(W)}),
class:_.CG("ytSheetViewModelHost",(H.ytSheetViewModelContextual=!0,H.ytSheetViewModelDisableBackdropFilter=_.S("web_disable_backdrop_filter"),H)),el:M,tabindex:-1},_.Z(_.K,{cond:U,then:function(W){return _.Z(xoO,{header:function(){return _.Z(_.YY,{data:function(){return W().header}},{panelHeaderViewModel:Esy})},
content:function(){return _.Z(_.YY,{data:function(){return W().content}},{listViewModel:function(w){return _.Z(_.Qog,{data:w.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:doC,miniAppScoreChallengeViewModel:OUL})},
footer:function(){return _.Z(_.YY,{data:function(){return W().footer}},{panelFooterViewModel:ms})}})}}))},"Wl");
zKC.idomCompat=!0;_.LG(zKC,"yt-sheet-view-model",{props:{data:_.sY}});var tGN=_.r(function(H){var U=function(){var A;return(A=H.data().enableDebuggingFeatures)!=null?A:!1};
return _.Z("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.Z(_.FQ,{each:function(){var A;return(A=H.data().stickers)!=null?A:[]}},function(A){return _.Z(CLS,{data:function(){return A},
debugMode:U})}))},"Xl"),CLS=_.r(function(H){var U=_.Ec(H,{debugMode:!1}).debugMode,A=_.RS(function(){var f;
return(f=H.data().region)==null?void 0:f.w},0),M=_.RS(function(){var f;
return(f=H.data().region)==null?void 0:f.h},0),W=_.RS(function(){var f;
return(f=H.data().region)==null?void 0:f.x},0),w=_.RS(function(){var f;
return(f=H.data().region)==null?void 0:f.y},0),d=_.c$(function(){var f=H.data().onTap;
f&&_.uj(f)}),O={};
return _.Z("div",{class:_.CG("ytStoriesStickerLayerViewModelSticker",(O.ytStoriesStickerLayerViewModelDebugMode=U,O)),style:_.rA({width:function(){return 100*A()+"%"},
height:function(){return 100*M()+"%"},
left:function(){return 100*W()+"%"},
top:function(){return 100*w()+"%"},
"flex-direction":function(){return N4h(H.data().flexDirection)},
"justify-content":function(){return Sh7(H.data().justifyContent)},
"align-items":function(){return pnm(H.data().alignItems)}}),
"on:click":d},_.Z(_.YY,{data:function(){return H.data().button||H.data().toggleButton}},{buttonViewModel:function(f){return _.Z(_.yJ,{data:f.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(f){return _.Z(_.MI,{data:f.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Yl");var y$Y=_.r(function(H){var U=function(){return H.data()},A={},M=_.b(_.iB(!1,void 0,"SegA3d")),W=M.next().value,w=M.next().value,d=_.RS(function(){return U().backgroundColor},0);
M=_.RS(function(){return U().actionButtons},[]);
var O=_.RS(function(){return U().stickerLayer},{}),f=function(){var F,P;
return{animationRef:A,animationConfig:{autoplay:!1,loop:!1,path:(P=(F=U().foregroundAnimation)==null?void 0:F.url)!=null?P:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){w(!0)},
complete:function(){H.navigateToNextItemOnLottieComplete()}}}},J=function(){var F,P,n,N,L,m,z,c;
return{animationConfig:{autoplay:(m=(F=U().backgroundAnimation)==null?void 0:(P=F.settings)==null?void 0:P.autoplay)!=null?m:!1,loop:(z=(n=U().backgroundAnimation)==null?void 0:(N=n.settings)==null?void 0:N.loop)!=null?z:!1,path:(c=(L=U().backgroundAnimation)==null?void 0:L.url)!=null?c:"",name:"stories_item_background_animation"}}};
_.Em(function(){if(H.isVisible()&&W()){var F;(F=A.lottieEl)==null||F.play();H.animationRef()&&(H.animationRef().lottieEl=A.lottieEl)}else{var P;(P=A.lottieEl)==null||P.stop()}},"MxM2wb");
return _.Z("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.rA({"background-color":function(){return _.bN(d())+";"}})},_.Z("div",{class:"ytStoriesItemViewModelAssetContent"},_.Z(_.K,{cond:function(){return!!U().backgroundAnimation},
then:function(){return _.Z(_.lK,{data:J,animationName:function(){return J().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.Z(_.K,{cond:function(){return!!U().backgroundImage},
then:function(){return _.Z(_.nG,{data:function(){return U().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.Z(_.K,{cond:function(){return!!U().foregroundAnimation},
then:function(){return _.Z(_.lK,{data:f,animationName:function(){return f().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.Z(_.K,{cond:function(){return!!U().foregroundImage},
then:function(){return _.Z(_.nG,{data:function(){return U().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.Z("div",{class:"ytStoriesItemViewModelTopShadow"}),_.Z(_.YY,{data:function(){return O()}},{storiesStickerLayerViewModel:tGN})),_.Z("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.rA({"background-color":function(){return _.bN(d())}})},_.Z("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.Z(_.FQ,{each:M},function(F){return _.Z(c$N,{data:function(){return F},
pauseAutoNavigation:H.pauseAutoNavigation})}))))},"$l"),BYS={style:"overlay",
type:"outline"},c$N=_.r(function(H){var U={};return _.Z("div",{class:_.CG("ytStoriesItemViewModelActionButton",(U.ytStoriesItemViewModelStretchedActionButton=function(){return H.data().size==="STORIES_BUTTON_SIZE_STRETCH"},U)),
"on:click":_.c$(H.pauseAutoNavigation)},_.Z(_.YY,{data:function(){return H.data().button}},{buttonViewModel:function(A){return _.Z(_.yJ,{data:A.data,
buttonOverrides:BYS})}}))},"am");var r$v={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.LG(_.r(function(H){var U=function(){var o_;return(o_=H.data().startIndex)!=null?o_:0},A=_.b(_.md(U)),M=A.next().value,W=A.next().value;
A=_.b(_.iB(!1,void 0,"sjy7s"));var w=A.next().value,d=A.next().value,O=function(){var o_;return(o_=H.data().storyItems)!=null?o_:[]},f={},J=_.nA("yt-stories-viewer-view-model"),F=function(){return H.data().dismissButton},P=function(){var o_;
return _.ij((o_=_.p(F(),_.ot))==null?void 0:o_.onTap)},n=_.nA("div"),N,L,m=!1,z=function(){var o_;
(o_=N)==null||o_.cancel();N=c(M()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});N.onfinish=function(){var PF=_.p(O()[M()],lEy),BF,kc;PF!=null&&PF.foregroundAnimation&&((PF==null?0:(BF=PF.foregroundAnimation)==null?0:BF.url)||(PF==null?0:(kc=PF.foregroundAnimation)==null?0:kc.payload))||(M()!==O().length-1?(W(M()+1),z()):P()&&_.bj(P()))}},c=function(o_){return n.value.children[o_].children[0]},C=function(){for(var o_=0;o_<M();o_++)c(o_).style.transform=
"scaleX(1)"},v=function(){m||(w()?d(!1):(M()===O().length-1&&P()&&_.bj(P()),c(M()).style.transform="scaleX(1)",M()!==O().length-1&&(W(M()+1),z())))},Y=function(){m||(w()?d(!1):(c(M()).style.transform="scaleX(0)",M()!==0&&W(M()-1),z()))},D=function(){d(!0)},h=function(){c(M()).style.transform="scaleX(1)";
M()!==O().length-1?(W(M()+1),z()):P()&&_.bj(P())};
A=function(){m=!1;L=setTimeout(function(){d(!0);m=!0},300)};
var T=function(){clearTimeout(L);m&&w()&&d(!1)};
_.Em(function(){if(w()){var o_;(o_=N)==null||o_.pause();var PF;(PF=f.lottieEl)==null||PF.pause()}else{var BF;(BF=N)==null||BF.play();var kc;(kc=f.lottieEl)==null||kc.play()}},"vAvZob");
_.Em(function(){C();M()===U()&&z()},"uSlfE");
var WF=function(o_){o_.key==="ArrowLeft"?Y():o_.key==="ArrowRight"&&v()},dK=function(o_){if(o_.target===J.value){(o_=P())&&_.bj(o_);
clearTimeout(L);var PF;(PF=N)==null||PF.cancel();var BF;(BF=f.lottieEl)==null||BF.stop();window.removeEventListener("keydown",WF);window.removeEventListener("yt-popup-closed",dK)}},SN=function(o_){if(o_.target===J.value){var PF;
(PF=f.lottieEl)==null||PF.play();window.addEventListener("keydown",WF);window.addEventListener("yt-popup-closed",dK)}};
_.LA(function(){C();z();window.addEventListener("yt-popup-opened",SN)});
return _.Z("yt-stories-viewer-view-model",{el:J,class:_.CG("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.Z("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.Z("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.c$(Y),"on:mousedown":_.c$(A),"on:mouseup":_.c$(T),"on:mouseleave":_.c$(T)}),_.Z("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.c$(v),"on:mousedown":_.c$(A),"on:mouseup":_.c$(T),"on:mouseleave":_.c$(T)})),
_.Z("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.Z(_.YY,{data:O},{storiesItemViewModel:function(o_,PF){var BF=o_.data;return _.Z(_.K,{cond:function(){return Math.abs(PF()-M())<=1},
then:function(){var kc={};return _.Z("div",{class:_.CG("ytStoriesViewerViewModelStoryItem",(kc.ytStoriesViewerViewModelActiveStoryItem=function(){return PF()===M()},kc))},_.Z(y$Y,{data:BF,
pauseAutoNavigation:D,navigateToNextItemOnLottieComplete:h,isVisible:function(){return PF()===M()},
animationRef:f}))}})}})),_.Z("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:n},_.Z(_.FQ,{each:O},function(){return _.Z("div",{class:"ytStoriesViewerViewModelProgressBar"},_.Z("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.Z("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.Z(_.nG,{data:r$v,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.Z("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.Z(_.YY,{data:function(){return H.data().menuButton}},{buttonViewModel:function(o_){return _.Z(_.yJ,{data:o_.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.Z(_.YY,{data:function(){return H.data().muteButton}},{toggleButtonViewModel:function(o_){return _.Z(_.MI,{data:o_.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.Z(_.YY,{data:F},{buttonViewModel:function(o_){return _.Z(_.yJ,{data:o_.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"dm"),"yt-stories-viewer-view-model",{props:{data:_.sY}});_.LG(_.r(function(H){var U=H.data;var A=_.nA("yt-gen-ai-feedback-form-view-model"),M=[];return _.Z("yt-gen-ai-feedback-form-view-model",{el:A,class:"ytGenAiFeedbackFormViewModelHost"},_.Z(_.Pb,{text:function(){return U().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.Z("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.Z(_.YY,{data:function(){return U().feedbackChips}},{toggleButtonViewModel:function(W){var w=W.data;
return _.Z(_.MI,{data:w,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(d){var O=w();O=_.p(O,_.Pc);O=_.p(O==null?void 0:O.defaultButtonViewModel,_.ot).trackingParams;d?M.push(O):(d=M.indexOf(O),d>-1&&M.splice(d,1))}})}})),_.Z(_.Pb,{text:function(){return U().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.Z("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.Z(_.YY,{data:function(){return U().submitButton}},{buttonViewModel:function(W){return _.Z(_.yJ,{data:W.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){L9m(A.value,M,U().uniqueId)}})}}),_.Z(_.YY,{data:function(){return U().moreFeedbackButton}},{buttonViewModel:function(W){return _.Z(_.yJ,{data:W.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"em"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.sY},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var ej=function(){return _.B.apply(this,arguments)||this};
_.R(ej,_.B);ej.prototype.created=function(){d1f(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(x3y);var H=_.lx().resolve(_.MMh);H&&(H.container=this.ytPopupContainerBehavior);if(H=_.lx().resolve(_.Wi))H.container=this.ytPopupContainerBehavior;if(H=_.lx().resolve(_.wx)){var U=this.ytPopupContainerBehavior;H.containerWasInjected?_.Na(Error("uj")):H.container=U}};
ej.prototype.ensurePopupBelowPlayer=function(H,U){var A=_.lx().resolve(_.$V(_.SI));if(!A||!A.isOnWatch()||!_.Ly())return!1;A=A.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.hc().height>A+this.getPopupHeight(H,U)?(H.style.top="auto",H.style.bottom="0px"):(H.style.top=A+"px",H.style.bottom="auto");return!0};
ej.prototype.getPopupHeight=function(H,U){U&&(H.cachedPopupHeight=0);if(!H.cachedPopupHeight){U=0;var A=H.clientHeight,M=window.getComputedStyle(H);U+=parseInt(M.marginTop,10);U+=parseInt(M.marginBottom,10);H.cachedPopupHeight=A+U}return H.cachedPopupHeight};
ej.prototype.getElement=function(H){return document.createElement(H)};
_.G([_.g(qzL.YtPopupContainerBehavior),_.q("design:type",Object)],ej.prototype,"ytPopupContainerBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],ej.prototype,"ytComponentBehavior",void 0);_.G([_.dX({disableElementRegistration:!0,is:"ytd-popup-container"})],ej);
_.e(ej,"ytd-popup-container",function(){if(yHM!==void 0)return yHM;var H=document.createElement("template");_.E(H,"\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");H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);return yHM=H},{mode:1});var eKS;var Do5={};Do5.YtLogYpcFlowCommandsBehavior=[_.$y.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(H){_.p(H,hAX)&&(H=_.p(H,hAX))&&(H.serializedTransactionFlowLoggingParams?_.vo0(H.serializedTransactionFlowLoggingParams):H.serializedYpcCancelFlowLoggingParams?(H=H.serializedYpcCancelFlowLoggingParams)&&wC("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",H):H.serializedYpcResumeFlowLoggingParams?(H=H.serializedYpcResumeFlowLoggingParams)&&wC("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",H):H.serializedYpcPauseFlowLoggingParams?(H=H.serializedYpcPauseFlowLoggingParams)&&
wC("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",H):H.serializedYpcRefundFlowLoggingParams?(H=H.serializedYpcRefundFlowLoggingParams)&&DZY("YPC_EVENT_TYPE_START",H):H.serializedYpcDeactivateFlowLoggingParams?(H=H.serializedYpcDeactivateFlowLoggingParams)&&wC("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",H):H.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(H=H.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&wC("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",H))},
handleLogYpcFlowDismiss_:function(H){_.p(H,qG7)&&(H=_.p(H,qG7),H.serializedTransactionFlowLoggingParams?_.Te8(H.serializedTransactionFlowLoggingParams):H.serializedYpcCancelFlowLoggingParams?(H=H.serializedYpcCancelFlowLoggingParams)&&wC("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",H):H.serializedYpcResumeFlowLoggingParams?(H=H.serializedYpcResumeFlowLoggingParams)&&wC("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",H):H.serializedYpcPauseFlowLoggingParams?(H=H.serializedYpcPauseFlowLoggingParams)&&
wC("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",H):H.serializedYpcRefundFlowLoggingParams&&(H=H.serializedYpcRefundFlowLoggingParams)&&DZY("YPC_EVENT_TYPE_CANCEL",H))}}];var $oN={};$oN.YtCancelRecurrenceBehavior=[_.uK.YtComponentBehavior,_.ssy,{attached:function(){var H=this;vtY(this,function(U,A){return H.ypcCancelRecurrenceHandler(U,A)})},
ypcCancelRecurrenceHandler:function(H,U){var A=this;if(!U||!U.ypcCancelRecurrenceEndpoint)return!1;if(!U.ypcCancelRecurrenceEndpoint.params)return _.za(Error("um")),!0;_.JN(this.hostElement);var M=_.ZW.instance,W=_.lx().resolve(_.$V(_.jp));M&&_.fy(M,U)?_.Js(M,U).then(function(w){A.ypcCancelRecurrenceSuccess_(H,U,{data:w})},function(w){A.ypcCancelRecurrenceFailure_(H,U,w)}).thenCatch(function(){_.za(Error("vm"))}):W?W.requestDataForServiceEndpoint(U).then(function(w){A.ypcCancelRecurrenceSuccess_(H,
U,w)},function(w){A.ypcCancelRecurrenceFailure_(H,U,w)}).thenCatch(function(){_.za(Error("vm"))}):_.za(Error("wm"));
return!0},
ypcCancelRecurrenceSuccess_:function(H,U,A){_.KY(this.hostElement);A.data||(A={data:A});A.data&&A.data.actions&&_.eb(this.hostElement,A.data.actions,this.hostElement);A.data.messageRenderer?YHX(U.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(U=U.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&wC("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",U);_.cg(H,"yt-service-request-completed",A)},
ypcCancelRecurrenceFailure_:function(H,U,A){_.KY(this.hostElement);YHX(U.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.cg(H,"yt-service-request-error",{error:A,params:[H,U]})}}];var lOS=function(H,U){_.HF.call(this,U)};
_.R(lOS,AO5);var Gje={};Gje.YtCompleteTransactionBehavior=[_.uK.YtComponentBehavior,_.ssy,{attached:function(){var H=this;vtY(this,function(U,A){return H.ypcCompleteTransactionHandler(U,A)})},
completeTransaction:function(H,U){var A=this;U={payments_payload:window.btoa(U.integratorData),buybucket_params:H.data.buybucketParams,offer_params:H.data.offerParams};var M=_.lx().resolve(_.jp),W=H.data.completeTransactionEndpoint,w=this.get("ypcCompleteTransactionEndpoint.actions",W);w&&_.eb(this.hostElement,w,this.hostElement);return(w=_.ZW.instance)&&_.fy(w,W)?_.Js(w,W,U).then(function(d){return!d||(d==null?0:d.error)?(d=A.get("data.serializedTransactionFlowLoggingParams",H),_.H$(new Fe("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
d))):{data:d}}).then(function(d){return A.handleCompleteTransactionSuccess_(d,H)},function(){return A.handleCompleteTransactionFailure_(H)}):M.requestDataForServiceEndpoint(W,U).then(function(d){return A.handleCompleteTransactionSuccess_(d,H)},function(){return A.handleCompleteTransactionFailure_(H)})},
handleCompleteTransactionSuccess_:function(H,U){H.data||(H={data:H});if(H.data.messageRenderer)return _.H$(new lOS(H.data.messageRenderer));if(H.data.trackingParams){var A=_.XK(),M=_.ws();A&&M&&_.ou(A,M,_.IS(H.data.trackingParams))}U=this.get("data.serializedTransactionFlowLoggingParams",U);$Z5(U);return _.DH(H)},
handleCompleteTransactionFailure_:function(H){H=this.get("data.serializedTransactionFlowLoggingParams",H);_.Sk("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",H);return _.H$(new Fe("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",H))},
ypcCompleteTransactionHandler:function(H,U){var A=this;if(!U.ypcCompleteTransactionEndpoint)return!1;if(!U.ypcCompleteTransactionEndpoint.transactionParams)return _.za(Error("xm")),!0;U.ypcCompleteTransactionEndpoint&&U.ypcCompleteTransactionEndpoint.gtmData&&_.Hb(U.ypcCompleteTransactionEndpoint.gtmData);var M=_.lx().resolve(_.$V(_.jp));if(M){_.JN(this.hostElement);var W=_.ZW.instance;W&&_.fy(W,U)?_.Js(W,U).then(function(w){return!w||(w==null?0:w.error)?(w=A.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
U),_.H$(new Fe("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",w))):{data:w}}).then(function(w){_.cg(H,"yt-service-request-completed");
A.ypcCompleteTransactionSuccess_(U,w)},function(){return A.ypcCompleteTransactionFailure_(U)}):M.requestDataForServiceEndpoint(U).then(function(w){_.cg(H,"yt-service-request-completed");
A.ypcCompleteTransactionSuccess_(U,w)},function(){return A.ypcCompleteTransactionFailure_(U)})}return!0},
ypcCompleteTransactionSuccess_:function(H,U){_.KY(this.hostElement);U.data||(U={data:U});_.yr(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);U.data.messageRenderer||U.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(H):(_.Hb('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",H));U.data.actions&&(H=QvB(U.data.actions),U=Vr5(U.data.actions),H.length&&_.rs(this.hostElement,
H),U.length&&_.eb(this.hostElement,U,this.hostElement))},
ypcCompleteTransactionFailure_:function(H){_.KY(this.hostElement);_.yr(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",H,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(H,U,A){if(U=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",U))U={serializedTransactionFlowLoggingParams:U},A&&(U.errorType=A),_.Fx(H,U),_.P1()}}];var YrM={};YrM.YtEndpointHandlerWithYpcBehavior=[_.ssy,_.$y.YtActionHandlerBehavior,[{openWalletDialog:function(H,U,A,M,W,w,d){var O=this,f=_.oL();U=U.replace(/-/g,"+").replace(/_/g,"/");var J=_.TR().get("hl");_.GW8(_.gz(_.pf),U,f.resolve,W,function(F){w&&w();f.reject(F)},J,function(F){return O.onServerBackendAnalyticEvent_(H,A,F)},this.onDialogClose_.bind(this),M,d);
return f.promise},
openFixFlowDialog:function(H,U,A,M){H=H.replace(/-/g,"+").replace(/_/g,"/");_.gz(_.pf).openFixFlowDialog(H,U,A,M)},
onDialogClose_:function(){_.yr(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(H,U,A){_.cg(H,"yt-commerce-action-init-done");U&&_.rs(this.hostElement,[U,{backend_analytics:A}])}}],
_.e4.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(H,U){H=this.get("data.nativeFlowEndpoint",U);U=this.get("data.fallbackEndpoint",U);H?_.rs(this.hostElement,[H]):U&&_.cg(this.hostElement,"yt-navigate",{endpoint:U})}}],
$oN.YtCancelRecurrenceBehavior,Gje.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 H=this;vtY(this,function(U,A,M){return H.handleYPCEndpoint(U,A,M)});
this.ypcRegisterActionMapJobId_=_.bM(_.Fl,function(){H.registerActionMap(H.buyFlowActionMap_)})},
detached:function(){var H=this;_.Fl.cancelJob(this.ypcRegisterActionMapJobId_);_.bM(_.Fl,function(){H.unregisterActionMap(H.buyFlowActionMap_)})},
handleYPCEndpoint:function(H,U,A){var M=U.ypcGetCartEndpoint;if(M){_.ia("commerce_transaction");var W=M.gtmId;W&&_.VN(W);(M=M.gtmData)&&_.Hb(M)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",U)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(H,U),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",U)!=null?(this.handleYPCFixInstrumentEndpoint_(H,U),!0):U.ypcPauseSubscriptionCommand?(tm5(this.hostElement,H,U,A),
!0):U.ypcResumeSubscriptionCommand?(B47(this.hostElement,H,U),!0):U.getPaymentInstrumentsParamsCommand?(xnp(this.hostElement,H,U),!0):U.ypcHandleTransactionEndpoint?(gFk(this.hostElement,H,U,A),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(H,U){var A=this;_.ba("ttcr",void 0,"commerce_transaction");U=U.ypcGetCartEndpoint;var M=U.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,W=M.encryptedPurchaseParams,w=M.serializedTransactionFlowLoggingParams,d=M.serializedPaymentsClientParams,O=this.createGetCartResponseFromParams_(M,U.offerParams,w);this.changeButtonState(H,!0);_.bR(this.openWalletDialog(H,W,M.ypcLogWalletAnalyticDataEndpoint,w,function(){A.changeButtonState(H,!1)},function(){A.changeButtonState(H,
!1)},d).then(function(f){return A.handleBuyFlowCompleteCallback_(H,O,f)},function(){return A.handleOnLoadError(O)}).then(function(f){return void A.handlePostPurchaseSuccess_(H,O,f)},function(f){return void A.handlePostPurchaseError_(f)}),function(){A.changeButtonState(H,!1);
H instanceof Element&&_.cg(H,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(H,U,A){var M=H.completeTransactionEndpoint,W=H.handleTransactionEndpoint;U={data:{offerParams:window.btoa(U),serializedTransactionFlowLoggingParams:A}};W?U.data.handleTransactionEndpoint=W:U.data.completeTransactionEndpoint=M;H.onCartDismissCommand&&(U.data.onCartDismissCommand=H.onCartDismissCommand);return U},
onGetCartServiceRequestCompleted_:function(H,U){var A=this,M=H.target;if(U&&U.data&&U.data.messageRenderer)_.KY(this.hostElement),this.handleMessageRenderer_(U.data.messageRenderer),this.changeButtonState(M,!1);else{var W=this.get("data.encryptedPurchaseParams",U),w=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",U),d=this.get("data.ypcLogWalletAnalyticDataEndpoint",U),O=this.get("data.serializedPaymentsClientParams",U),f=this.getLoggingParams_(U);if(f||W||w)H.stopPropagation(),_.ba("ttcr",
void 0,"commerce_transaction"),W||_.KY(this.hostElement),this.changeButtonState(M,!1),w?_.yr(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.gD("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:w}}},this]):W&&(this.changeButtonState(M,!0),H=null,H=this.openWalletDialog(M,W,d,f,function(){_.KY(A.hostElement);A.changeButtonState(M,!1)},function(){_.KY(A.hostElement);
A.changeButtonState(M,!1)},O),_.bR(H.then(function(J){return A.handleBuyFlowCompleteCallback_(M,U,J)},function(){return A.handleOnLoadError(U)}).then(function(J){return A.handlePostPurchaseSuccess_(M,U,J)},function(J){return A.handlePostPurchaseError_(J)}),function(){A.changeButtonState(M,!1);
_.cg(M,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(H,U){U&&U.endpoint&&U.endpoint.ypcGetCartEndpoint&&!U.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",U.endpoint.ypcGetCartEndpoint)&&_.eb(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",U.endpoint.ypcGetCartEndpoint)],H.target),_.JN(this.hostElement),this.changeButtonState(H.target,!0))},
onServiceRequestError_:function(H,U){if(U&&U.params&&U.params.length){U=_.b(U.params);for(var A=U.next();!A.done;A=U.next())if((A=A.value)&&A.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",A.ypcGetCartEndpoint)&&_.eb(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",A.ypcGetCartEndpoint)],H.target);_.KY(this.hostElement);this.changeButtonState(H.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(H,U,A){var M=A.integratorData;return M==null||M===""||A.error!=null?(M=this.getLoggingParams_(U),String(A.error)==="-1"?(U.data.onCartDismissCommand&&_.eb(this.hostElement,[U.data.onCartDismissCommand],H),_.H$(new Fe("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",M,!0))):_.H$(new Fe("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",M))):U.data.handleTransactionEndpoint?aXY(this.hostElement,U.data.handleTransactionEndpoint,{payments_payload:M,funds_guarantee_callback_client_data:A.integratorClientCallbackData}):
this.completeTransaction(U,A)},
handlePostPurchaseSuccess_:function(H,U,A){U=A.data;var M=!1,W,w;if(U&&((W=U.command)==null?0:(w=W.commandExecutorCommand)==null?0:w.commands)){var d,O;W=(d=U.command)==null?void 0:(O=d.commandExecutorCommand)==null?void 0:O.commands;for(d=0;d<W.length;d++)if(_.p(W[d],_.Je3)){M=!0;break}}M||(U&&U.gtmDatas&&U.gtmDatas.length?_.Hb(U.gtmDatas[0]):_.Hb('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));A.data&&A.data.actions&&(U=QvB(A.data.actions),A=Vr5(A.data.actions),U.length&&
_.rs(this.hostElement,U),A.length&&_.eb(this.hostElement,A,H))},
handlePostPurchaseError_:function(H){H&&H.payload&&H.payload.isUserDismiss||_.sD(Error("zm"))},
handleOnLoadError:function(H){H=this.getLoggingParams_(H);return _.H$(new Fe("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",H))},
getLoggingParams_:function(H){return this.get("data.serializedTransactionFlowLoggingParams",H)},
handleMessageRenderer_:function(H){var U=_.Rh(H,"renderer"),A=_.gD("openPopupConfig");U==="confirmDialogRenderer"&&A&&_.yr(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:A.popupTypeMap[U],popup:H}},this])},
handleYPCFixInstrumentEndpoint_:function(H,U){var A=this,M=U.ypcFixInstrumentEndpoint;U=M.encryptedFixInstrumentParameters;this.logFixFopEvent_(M,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(H,!0);this.openFixFlowDialog(U,function(W,w){A.onFixFlowCompleteCallback_(M,W,w)},function(){return A.changeButtonState(H,!1)},function(){A.changeButtonState(H,!1);
A.logFixFopEvent_(M,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(H,U,A){var M=_.tr("payments.business.integration.scenario.FixInstrument");if(U==M.IntegratorCallbackType.ON_COMPLETE){U="FIX_FOP_EVENT_TYPE_CANCEL";var W=null;A.error!=null?A.error!=M.OnCompleteCallbackError.USER_CANCELLED&&(_.eb(this.hostElement,[H.errorAction],this.hostElement),U="FIX_FOP_EVENT_TYPE_FAILURE",W="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.eb(this.hostElement,[H.successAction],this.hostElement),U="FIX_FOP_EVENT_TYPE_SUCCESS");_.eb(this.hostElement,[H.onFinishAction],
this.hostElement);this.logFixFopEvent_(H,U,W)}},
logFixFopEvent_:function(H,U,A){(H=H.serializedFixFopLoggingParams)?(U={eventType:U,serializedFixFopLoggingParams:H},A!=null&&(U.errorType=A),_.Fx("fixFopFlow",U),_.P1()):_.sD(Error("Am"))},
changeButtonState:function(H,U){_.S("enable_ypc_spinners")&&H&&(H.is==="yt-button-renderer"||H.is==="ytd-button-renderer")&&(H.disabled=U)}}];var qrj=function(H){this.JSC$33917_clientRoot=H;this.feedbackCollectorActionMap={"yt-help-dialog-requested":ePX,"yt-feedback-dialog-requested":rg7,"yt-signal-action-help":Dn5,"yt-signal-action-send-feedback":$ny,"yt-send-feedback-action":GbB,"yt-user-feedback-endpoint":YhX};_.xX(_.a1.getInstance(),this.feedbackCollectorActionMap,this.JSC$33917_clientRoot)},hKM;var kjS=function(H){this.JSC$33922_clientRoot=H;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":qh5.bind(null,this.JSC$33922_clientRoot),"yt-signal-action-delete-all-downloads":kb8,"yt-signal-action-delete-download":vF5,"yt-signal-action-delete-playlist-download":jT5,"yt-signal-action-install-pwa":AJB,"yt-signal-action-refresh-downloads":Ht7,"yt-offline-video-endpoint":W3j,"yt-offline-playlist-endpoint":XQm,"yt-update-local-app-setting-command":bt5,"yt-offline-orchestration-action-command":OtX,
"yt-signal-action-undo-delete-download":QTh,"yt-local-watch-history-command":fnp,"yt-signal-action-mark-download-to-mobile-edu-shown":K37};_.xX(_.a1.getInstance(),this.downloadManagerActionMap,this.JSC$33922_clientRoot);_.Fp.instance=new _.Fp},vsY;var DR=function(){var H=_.B.apply(this,arguments)||this;H.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_"};H.remoteApi_=null;return H};
_.R(DR,_.B);_.X=DR.prototype;
_.X.ready=function(){_.S("polymer_enable_mdx")&&(Jp7({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.S("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.S("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.S("enable_cast_short_lived_lounge_token")}),_.qs("yt-remote-connection-change",this.handleConnectionChange_,this),_.qs("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=SBf())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.X.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.X.handleConnectionChange_=function(H){(this.mdxConnected=H)?(H=F7X(),!H&&Idf()&&QSm()&&(H={key:"cast-selector-receiver",name:QSm()}),H=H.name):H=null;this.receiverName=H;_.zg(this.remoteApi_);(this.remoteApi_=SBf())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.X.handleReceiverAvailabilityChange_=function(){var H=o3y();Idf()&&_.H4("yt-remote-cast-available")&&H.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=H.length>0};
_.X.handleRemoteQueueChange_=function(){var H=this.currentVideoId_,U=this.currentListId_,A=eh(this.remoteApi_);this.currentVideoId_=A.videoId;this.currentListId_=A.listId;this.currentVideoId_&&_.yr(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.S("polymer_enable_mdx_queue")?this.currentListId_:null,H,U])};
_.X.handleAddToQueueAction_=function(H){H=_.p(H,qX5);this.remoteApi_&&(H.videoId?this.remoteApi_.addVideo(H.videoId):H.playlistId&&this.remoteApi_.addPlaylist(H.playlistId))};
_.X.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.X.handleInsertInQueueAction_=function(H){H=_.p(H,hIm);this.remoteApi_&&H.videoId&&this.remoteApi_.JSC$20108_insertVideo(H.videoId)};
_.X.handleRemoveFromQueueAction_=function(H){H=_.p(H,kM5);this.remoteApi_&&H.videoId&&this.remoteApi_.JSC$20108_removeVideo(H.videoId)};
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],DR.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y(),_.q("design:type",Object)],DR.prototype,"appId",void 0);_.G([_.y(),_.q("design:type",Boolean)],DR.prototype,"mdxConnected",void 0);_.G([_.y(),_.q("design:type",Boolean)],DR.prototype,"receiverAvailable",void 0);_.G([_.y(),_.q("design:type",Object)],DR.prototype,"receiverName",void 0);_.G([_.y(),_.q("design:type",Object)],DR.prototype,"currentVideoId_",void 0);
_.G([_.y(),_.q("design:type",Object)],DR.prototype,"currentListId_",void 0);_.G([_.b0({is:"yt-mdx-manager",disableElementRegistration:!0})],DR);_.e(DR,"yt-mdx-manager",void 0,{mode:2});var TYR;var jD5;var $Q=function(){var H=_.B.apply(this,arguments)||this;H.APP_IDS={ytr:3,ytm:5};H.JSC$23214_timeoutId_=0;H.actionMap={"yt-open-create-family-dialog":"open"};return H};
_.R($Q,_.B);_.X=$Q.prototype;_.X.created=function(){d1f(2200)};
_.X.detached=function(){this.observer_&&this.observer_.disconnect()};
_.X.open=function(H,U){var A=this,M=H.serializedYpcFamilyCreateLoggingParams;this.JSC$23214_timeoutId_=setTimeout(this.abort_.bind(this,H.postFlowErrorEndpoint,M),3E4);U&&(this.onReadyCallback_=U);var W=_.c4(this.hostElement).querySelector("#unicorn-iframe");M&&M&&eRj("ypcFamilyCreateFlowStarted",M);_.Qt8("family_creation",function(){var w=_.tr("gapi.family_creation.render");_.tr("gapi.config.update")("iframes/family_creation/url",A.getFamilyCreationUrlWithUnicornParams_());var d=3;H.appId&&H.appId in
A.APP_IDS&&(d=A.APP_IDS[H.appId]);d={authUser:_.gD("SESSION_INDEX")||0,clientId:d,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.gD("HL"),initialflow:[4,5,6,7],m:A.isMobile?1:0,onFlowComplete:A.onUnicornFlowComplete_.bind(A,H.postFlowSuccessEndpoint,M),onError:A.onUnicornFlowError_.bind(A,H.postFlowErrorEndpoint,M),onReady:A.onUnicornFlowReady_.bind(A,H.referencePcidParams)};w(W,d)})};
_.X.close=function(){_.c4(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.X.onUnicornFlowComplete_=function(H,U){this.close();U&&U&&eRj("ypcFamilyCreateFlowSucceeded",U);_.cg(this.hostElement,"yt-navigate",{endpoint:H})};
_.X.onUnicornFlowError_=function(H,U){this.close();U&&eRj("ypcFamilyCreateFlowCancelled",U);_.cg(this.hostElement,"yt-navigate",{endpoint:H})};
_.X.onUnicornFlowReady_=function(H){var U=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();H&&_.tr("gapi.family_creation.setConfig")(0,H);this.observer_=new MutationObserver(function(){_.c4(U.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.c4(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.c4(this.hostElement).querySelector("#dialog").open()};
_.X.getFamilyCreationUrlWithUnicornParams_=function(){return _.gD("YTR_FAMILY_CREATION_URL")};
_.X.getCurrentUrl_=function(){return document.location.href};
_.X.abort_=function(H,U){this.clearTimeout_();this.onUnicornFlowError_(H,U)};
_.X.clearTimeout_=function(){clearTimeout(this.JSC$23214_timeoutId_)};
_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],$Q.prototype,"ytActionHandlerBehavior",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],$Q.prototype,"isMobile",void 0);_.G([_.y(),_.q("design:type",Object)],$Q.prototype,"onReadyCallback_",void 0);_.G([_.y(),_.q("design:type",Object)],$Q.prototype,"observer_",void 0);_.G([_.b0({is:"yt-create-family-dialog",disableElementRegistration:!0})],$Q);
_.e($Q,"yt-create-family-dialog",function(){if(jD5===void 0){var H=document.createElement("template");_.E(H,'\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');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);var U=H.content,A=U.insertBefore;TYR===void 0&&(TYR=document.createElement("template"));var M=TYR;A.call(U,M.content.cloneNode(!0),H.content.firstChild);jD5=H}H=jD5;return H},{mode:2});var IOj;var QDO;var l3=function(){var H=_.B.apply(this,arguments)||this;H.STEP=1;H.BLOCK_ON=80;H.MIN_PROGESS=0;H.MAX_PROGESS=100;return H};
_.R(l3,_.B);_.X=l3.prototype;_.X.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.X.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));_.lx().addProvider({provide:v9f,useValue:this})};
_.X.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.X.finish=function(){var H=this;this.progress=this.MAX_PROGESS;ohy(function(){H.progress==H.MAX_PROGESS&&(H.hostElement.hidden=!0)})};
_.X.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.D5.Object.defineProperties(l3.prototype,{progress:{configurable:!0,enumerable:!0,set:function(H){this.progress_=H;var U="scaleX("+H/this.MAX_PROGESS+")",A=_.c4(this.hostElement).querySelector("#progress").style;A.transform=U;A.webkitTransform=U;this.hostElement.setAttribute("aria-valuenow",String(H))},
get:function(){return this.progress_}}});
_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],l3.prototype,"ytComponentBehavior",void 0);_.G([_.b0({is:"yt-page-navigation-progress",disableElementRegistration:!0})],l3);
_.e(l3,"yt-page-navigation-progress",function(){if(QDO===void 0){var H=document.createElement("template");_.E(H,'\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');H.content.insertBefore(_.k().content.cloneNode(!0),
H.content.firstChild);var U=H.content,A=U.insertBefore;IOj===void 0&&(IOj=document.createElement("template"));var M=IOj;A.call(U,M.content.cloneNode(!0),H.content.firstChild);QDO=H}H=QDO;return H},{mode:2});var VGL={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"},HFy={"font-size":"12px","font-style":"italic"},U2S={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.nh7=function(){return _.u(function(H){_.DO(H)})};var AzO=_.r(function(H){var U=function(){return H.data().subtext},A={};
return _.Z("snackbar-view-model",{class:_.CG("snackbarViewModelHost",H.className)},_.Z("div",{class:_.CG("snackbarViewModelEngagementBarWrapper",H.className)},_.Z(_.K,{cond:function(){return H.data().image},
then:function(M){return _.Z(_.nG,{data:M,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.Z(_.K,{cond:function(){return H.data().imageContent},
then:function(){return _.Z("div",{class:"snackbarViewModelAvatarContainer"},_.Z(_.YY,{data:function(){return H.data().imageContent}},{decoratedAvatarViewModel:_.Od}))}}),_.Z("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.Z("div",{class:_.CG((A.snackbarViewModelTitle=!0,A.snackbarViewModelTitleWithSubtext=U,A))},_.Z(_.Pb,{text:function(){return H.data().text}})),_.Z(_.K,{cond:U,
then:function(){return _.Z("div",{class:"snackbarViewModelSubtext"},_.Z(_.Pb,{text:function(){return U()}}))}})),_.Z(_.K,{cond:function(){return H.data().buttons},
then:function(){return _.Z("div",{class:"snackbarViewModelButtonClassWrapper"},_.Z(_.YY,{data:function(){return H.data().buttons}},{buttonViewModel:function(M){return _.Z(_.yJ,{data:M.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:H.target})}}))}})))},"fm");_.LG(_.r(function(){function H(C,v,Y){L(C);z(Y);n("in");F(!0);U(C,v);d=setTimeout(function(){A()},v)}
function U(C,v){var Y,D=(Y=C.text)==null?void 0:Y.content;C=_.AF(C.rendererContext);D&&(v={label:D,command:C,durationMs:v},_.lx().resolve(_.as).enqueue(v))}
function A(C){n("out");C&&clearTimeout(d)}
function M(){A(!0)}
function W(C){if(C){var v=C.snackbarViewModel,Y=C.durationMs,D=C.target;Y||(Y=3E3);v&&(C=_.lx().resolve(_.$V(_.Ef)))&&C.enqueue({isOpened:J,open:function(){H(v,Y,D)},
close:A},0)}}
var w=_.NU("snackbar-container"),d=void 0,O=_.b(_.iB(!1,void 0,"mDc5N")),f=O.next().value;O=O.next().value;var J=f,F=O;f=_.b(_.iB("out",void 0,"FpOs5e"));var P=f.next().value,n=f.next().value;f=_.b(_.iB(void 0,void 0,"jIDRob"));var N=f.next().value,L=f.next().value;f=_.b(_.iB(void 0,void 0,"kOA3Mb"));var m=f.next().value,z=f.next().value,c=_.c$(function(){if(P()==="out"){F(!1);L(void 0);z(void 0);var C=_.lx().resolve(_.$V(_.Ef));C&&rL$(C,0)}});
_.LA(function(){var C=_.lx().resolve(_.$V(_.jkh));C&&(C.showSnackbarFn=W,C.closeSnackbarFn=M)});
return _.Z("snackbar-container",{class:"ytSnackbarContainerHost",el:w},_.Z(_.K,{cond:function(){return J()&&!!N()},
then:function(){var C={};return _.Z("div",{class:_.CG("ytSnackbarContainerSnackbarContainer",(C.ytSnackbarContainerMobile=!1,C.ytSnackbarContainerPivotBar=function(){var v;return!((v=_.lx().resolve(_.$V(_.IU$)))==null||!v())},C.ytSnackbarContainerOpened=function(){return J()&&P()==="in"},C.ytSnackbarContainerClosed=function(){return J()&&P()==="out"},C)),
"on:animationend":c},_.Z(AzO,{data:function(){return N()},
target:function(){return m()}}))}}))},"gm"),"snackbar-container");_.LG(_.Ktn,"yt-tooltip");var Ms5=_.y8$.ephemeralActionSelector;_.LG(_.r(function(){var H=_.Gk(Ms5);return _.Z("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var U;return(U=H())==null?void 0:U.announcement})},"hm"),"yt-ephemeral-actions");var $bj=new Map;var mCX=function(H,U){var A=this;this.handleError=H;this.logEventInternal=U;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){A.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
mCX.prototype.logError=function(H){this.handleError(H)};
mCX.prototype.logEvent=function(H,U){switch(H){case "IDB_DATA_CORRUPTED":_.S("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",U);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",U);break;case "IS_SUPPORTED_COMPLETED":_.S("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",U);break;case "QUOTA_EXCEEDED":WS5(this,U);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",U);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":H=Object.assign({},U,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",H)}};
var WS5=function(H,U){_.z3.getInstance().estimate().then(function(A){A=Object.assign({},U,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:Gef(A==null?void 0:A.usage),deviceStorageQuotaMbytes:Gef(A==null?void 0:A.quota)});H.logEventInternal("idbQuotaExceeded",A)})};var wL3=_.r(function(H){var U=_.nA("yt-draggable"),A=H.onDrag,M=H.onDragStart,W=H.onDragEnd,w=_.Ec(H,{allowClicks:!1,dragThreshold:5}),d=w.dragThreshold,O=w.allowClicks;H=w.children;w=w.className;var f=void 0,J=void 0,F=new _.E6(0,0),P=!1;_.LA(function(){f=new _.fB(U.value);J=new _.GS(N);n(f,J);if(O()){_.f2h(f,d());var m;(m=U.value)==null||m.addEventListener("click",L,{capture:!0})}_.m4(function(){var z;(z=f)==null||z.dispose();if(O()){var c;(c=U.value)==null||c.removeEventListener("click",L,{capture:!0})}})});
var n=function(m,z){_.Rc(m,"earlycancel",function(){O()&&(P=!1)});
_.Rc(m,"start",function(c){M==null||M(c);c.defaultPrevented||O()&&(P=!0)});
_.Rc(m,"beforedrag",function(c){f&&J&&(c.preventDefault(),F=new _.E6(c.clientX-f.startX,c.clientY-f.startY),J.start())});
_.Rc(m,"end",function(){z.stop();W==null||W();F=new _.E6(0,0)})},N=function(){F&&A(F)},L=function(m){P&&(P=!1,m.stopPropagation(),m.preventDefault())};
return _.Z("yt-draggable",{el:U,class:_.CG("ytDraggableComponentHost",w)},H)},"im");var XLO=_.r(function(H){var U=_.b(_.iB(0,void 0,"Qf0tbc")),A=U.next().value,M=U.next().value;U=function(W){var w={},d={};return _.Z(wL3,{className:_.CG("ytdMiniplayerComponentResizer",(w.ytdMiniplayerComponentResizerDisabled=function(){return W===H.horizontalAlignment()||W===H.verticalAlignment()},w.ytdMiniplayerComponentResizerNorth=W==="north",w.ytdMiniplayerComponentResizerEast=W==="east",w.ytdMiniplayerComponentResizerSouth=W==="south",w.ytdMiniplayerComponentResizerWest=W==="west",w)),
onDragStart:function(){M(H.currentMiniplayerSize());if(H.onResizeStart)H.onResizeStart()},
onDrag:function(O){W!=="north"&&W!=="west"||O.scale(-1);var f;O=(f=W==="north"||W==="south")?O.y:O.x;var J=H.currentAspectRatio();f&&J>=1?O*=J:!f&&J<1&&(O/=J);f=O;H.onResize(A()+f)}},_.Z("div",{class:_.CG("ytdMiniplayerComponentResizerCorner",(d.ytdMiniplayerComponentResizerNorthCorner=W==="north",d.ytdMiniplayerComponentResizerEastCorner=W==="east",d.ytdMiniplayerComponentResizerSouthCorner=W==="south",d.ytdMiniplayerComponentResizerWestCorner=W==="west",d))}))};
return _.Z("div",{class:"ytdMiniplayerComponentResizers"},U("north"),U("east"),U("south"),U("west"))},"jm");var iF3=16/9;_.LG(_.r(function(){var H=_.nA("ytd-miniplayer"),U=_.b(_.iB(new _.QT(NaN,NaN),void 0,"i8Divd")),A=U.next().value,M=U.next().value;U=_.b(_.iB(!1,void 0,"M0mb9d"));var W=U.next().value,w=U.next().value;U=_.b(_.iB(!1,void 0,"U2besf"));var d=U.next().value,O=U.next().value;U=_.b(_.iB(!1,void 0,"oMkCO"));var f=U.next().value,J=U.next().value;U=_.b(_.iB(!1,void 0,"LLG3Bf"));var F=U.next().value,P=U.next().value;U=_.b(_.iB(!1,void 0,"m7HPQe"));var n=U.next().value,N=U.next().value;U=_.b(_.iB(!1,void 0,"jUGfuc"));
var L=U.next().value,m=U.next().value;U=_.b(_.iB(iF3,void 0,"LkUsDe"));var z=U.next().value,c=U.next().value,C=_.b(_.iB(!1,void 0,"xKE3oe"));U=C.next().value;var v=C.next().value;C=_.b(_.iB(!1,void 0,"QQ32Je"));var Y=C.next().value,D=C.next().value;C=_.b(_.iB(void 0,void 0,"LRAn3"));var h=C.next().value,T=C.next().value;C=_.b(_.iB(Nc()?"west":"east",void 0,"ZPTxkd"));var WF=C.next().value,dK=C.next().value;C=_.b(_.iB("south",void 0,"XYTr4"));var SN=C.next().value,o_=C.next().value;C=_.b(_.iB(400,
void 0,"hJycJe"));var PF=C.next().value,BF=C.next().value;C=_.lx().resolve(_.ZB).miniplayerPropSignalMap[0];var kc=C.data,G8=C.externalPlaylistData,Pr=C.playabilityStatus,Z3=C.isReadyToResume,Yc=C.isDisabled,sz=C.watchWhile,Ry=C.playerVe,oy=C.expandVe,aY=C.closeVe,im=C.readyToResumeVe,Kh=C.readyToResumeCloseVe,rK=C.repositionVe,FB=C.resizeVe;C=_.b(_.md(Z3));var T2=C.next().value,xK=C.next().value,Hj=_.Gk(_.fl.persistentPanelVisibleSelector),CU=!1,Qh=!1,oY;_.LA(function(){M(_.hc());H.value.addEventListener("animationend",
function(G2){G2.target===H.value&&(N(!1),m(!1))});
Tpy(H.value)});
_.C5("yt-window-resized",function(G2){G2&&M(G2)});
var qp=function(){oY&&c(oY.getVideoAspectRatio())},kf=function(){if(oY){var G2=oY.getPlayerState()===1;
T2()&&G2&&xK(!1)}},Oz=function(){var G2=oy();
if(G2){var K8=_.XK(3);K8&&_.NY(K8,G2)}},Fh=function(){var G2=aY(),K8=Kh();
G2&&_.NY(_.XK(3),G2);Z3()&&K8&&_.NY(_.XK(3),K8)};
_.C5("yt-activate-miniplayer",function(G2){var K8;return _.u(function(Qp){if(Qp.nextAddress==1)return W()?Qp.return():Qp.yield((K8=_.lx().resolve(_.ZB).getPlayerElement())==null?void 0:K8.getPlayerPromise(),2);oY=Qp.yieldResult;if(!oY)return Qp.return();!Y()&&_.S("kevlar_watch_while_v2")&&(o_(G2&&!_.S("kevlar_watch_while_bottom_align")?"north":"south"),dK(Nc()?"west":"east"));var uv=oY;uv.addEventListener("onVideoDataChange",qp);uv.addEventListener("onStateChange",kf);uv.addEventListener("onExpandMiniplayer",
Oz);uv.addEventListener("onCloseMiniplayer",Fh);c(oY.getVideoAspectRatio());w(!0);vhy()||N(!0);_.DO(Qp)})});
_.C5("yt-deactivate-miniplayer",function(G2,K8){return _.u(function(Qp){if(!W())return Qp.return();w(!1);xK(!1);m(G2);P(!1);O(!1);if(oY){var uv=oY;uv.removeEventListener("onVideoDataChange",qp);uv.removeEventListener("onStateChange",kf);uv.removeEventListener("onExpandMiniplayer",Oz);uv.removeEventListener("onCloseMiniplayer",Fh)}vhy()||K8?K8&&N(!1):N(!0);_.DO(Qp)})});
var Kk=function(){return!(sz()&&_.S("kevlar_watch_while_modern"))},kK=function(){var G2;
return!((G2=G8())==null||!G2.contents)},ew=function(){var G2=PF();
var K8=A();K8=Math.min(Math.min(K8.width,K8.height)-32,720);var Qp=z(),uv=Kk(),Rl=kK()&&d(),uL=Math.min(G2,K8);G2=new _.QT(192,uv?116:192);Qp=new _.QT(Rl?iF3:Qp,1);uL=new _.QT(uL,uv?uL-76:uL);uL=Qp.aspectRatio()>uL.aspectRatio()?uL.width/Qp.width:uL.height/Qp.height;Qp=Qp.scale(uL);G2.width<=Qp.width&&G2.height<=Qp.height||(G2=Qp.aspectRatio()<=G2.aspectRatio()?G2.width/Qp.width:G2.height/Qp.height,Qp.scale(G2),Qp.width=Math.min(Qp.width,K8),Qp.height=Math.min(Qp.height,K8));return new _.QT(Qp.width,
_.b$(192,Qp.height+V$p(uv,Rl),720))},O$=function(){var G2=ew(),K8=Kk(),Qp=kK()&&d();
return new _.QT(G2.width,G2.height-V$p(K8,Qp))},lv=function(){var G2=function(K8){K8.target===H.value&&F()&&(P(!1),H.value.removeEventListener("transitionend",G2))};
vhy()||(H.value.addEventListener("transitionend",G2),P(!0));O(!d())};
_.Em(function(){var G2=Ry(),K8=_.XK(3),Qp=_.ws(3);if(K8&&Qp&&G2){_.ou(K8,Qp,G2);Qp=rK();var uv=FB(),Rl=oy(),uL=aY(),UW=Kh();Rl&&uL&&UW&&(_.F_(K8,G2,[Rl,uL,UW]),_.sn(K8,[Rl,uL]));Qp&&uv&&_.F_(K8,G2,[Qp,uv])}},"UatZXe");
_.Em(function(){var G2=im();if(G2){var K8=_.XK(0),Qp=_.ws(0);K8&&Qp&&(_.ou(K8,Qp,G2),_.sn(K8,[G2]))}},"kTR4R");
C={};return _.Z("ytd-miniplayer",{el:H,class:_.CG("ytdMiniplayerComponentHost",(C.ytdMiniplayerComponentVisible=function(){return(W()||n())&&!(sz()&&_.S("kevlar_watch_while_counterfactual"))},C.ytdMiniplayerComponentAnimatingSnap=f,C.ytdMiniplayerComponentAnimatingPlaylistExpand=F,C.ytdMiniplayerComponentAnimatingFade=n,C),function(){if(n()){var G2=SN();
var K8=W(),Qp=L();G2=K8?G2==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Qp?G2==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":G2==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else G2="";return G2}),
style:_.rA({top:function(){return SN()==="north"?"16px":""},
right:function(){var G2=WF(),K8=Hj();K8=(K8===void 0?0:K8)&&!Nc()?400:0;return G2==="east"?16+K8+"px":""},
bottom:function(){return SN()==="south"?"16px":""},
left:function(){var G2=WF(),K8=Hj();K8=(K8===void 0?0:K8)&&Nc()?400:0;return G2==="west"?16+K8+"px":""},
width:function(){return ew().width+"px"},
height:function(){return ew().height+"px"},
transform:function(){var G2=h();return G2?"translate("+G2.x+"px, "+G2.y+"px)":""}})},_.Z("div",{class:"ytdMiniplayerComponentContent"},_.Z(wL3,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(G2){var K8=Qx5(WF(),SN(),A(),ew(),h()),Qp=O$();Math.abs(G2.clientY-(K8.y+Qp.height))>15?(v(!0),G2=_.XK(3),K8=rK(),CU||(CU=!0,G2&&K8&&_.sn(G2,[K8])),G2&&K8&&_.NY(G2,K8)):G2.preventDefault()},
onDrag:function(G2){T(G2)},
onDragEnd:function(){var G2=jx5(Qx5(WF(),SN(),A(),ew(),h()),A(),ew()),K8=InY(WF(),SN(),A(),ew(),Hj()),Qp=InY(G2.horizontalAlignment,G2.verticalAlignment,A(),ew(),Hj());Qp=new _.E6(Qp.x-K8.x,Qp.y-K8.y);var uv;K8=K8.y+(((uv=h())==null?void 0:uv.y)||0)+ew().height/2;var Rl=function(){WF()===G2.horizontalAlignment&&SN()===G2.verticalAlignment||D(!0);dK(G2.horizontalAlignment);o_(G2.verticalAlignment);T(void 0)},uL=function(UW){UW.target===H.value&&f()&&(J(!1),Rl(),H.value.removeEventListener("transitionend",
uL))};
v(!1);SN()==="south"&&K8>A().height?(Rl(),_.lx().resolve(_.ZB).close()):(H.value.addEventListener("transitionend",uL),J(!0),T(Qp))}},_.Z(_.K,{cond:W,
then:function(){return _.Z(_.Tif,{isDisabled:Yc,playabilityStatus:Pr,size:O$})}}),_.Z(_.K,{cond:Kk,
then:function(){return _.Z(_.kUB,{isReadyToResume:T2,data:kc,expanded:d,onExpandClick:lv,playlistData:G8})}}),_.Z(_.K,{cond:U,
then:function(){return _.Z("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.Z(_.K,{cond:function(){return kK()&&d()||F()},
then:function(){return _.Z(_.j5X,{className:"ytdMiniplayerComponentPlaylistPanel",data:G8,hideHeaderText:!0,withinMiniplayer:!0})}})),_.Z(XLO,{onResize:function(G2){BF(_.b$(192,G2,720))},
onResizeStart:function(){var G2=_.XK(3),K8=FB();Qh||(Qh=!0,G2&&K8&&_.sn(G2,[K8]));G2&&K8&&_.NY(G2,K8)},
currentAspectRatio:z,currentMiniplayerSize:PF,horizontalAlignment:WF,verticalAlignment:SN}))},"mm"),"ytd-miniplayer",{});var bFY=_.fl.persistentPanelVisibleSelector,Gc=function(){var H=_.B.apply(this,arguments)||this;H.tabGesturesIsActive=!1;H.persistentPanelEnabled=_.S("enable_ai_companion");H.hasDelegation=!1;H.isFrostedGlassInitialized=!1;H.frostedGlassExp=_.S("web_frosted_glass");H.hasPendingWatchNavigation=!1;H.mastheadHiddenFocusWithinKillswitch=_.S("web_masthead_hidden_focus_within_killswitch");H.clientOnlyWizTooltipsEnabled=_.S("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
H.scrollAtTopInternal=!0;H.guideScrollTop=0;H.isTheaterModeSession=_.xV("START_IN_THEATER_MODE");H.iMaxTheaterMode=_.S("web_watch_imax_theater_mode");H.isFullWindowSession=_.xV("START_IN_FULL_WINDOW_MODE");H.hasCreateFamilyDialog=!1;H.mastheadHeight=56;H.networkStatusManager=new _.xB;H.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":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","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-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","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"};H.dynamicActionMap={"yt-run-attestation-command":function(U){var A=_.y$p.instance,M=_.p(U,_.mz2);return M?_.S("use_rta_manager_for_async")&&
(_.S("attmusi")&&_.S("attmusi_ue")?window.attmp:Q1$())?iB5(A,M,U.clickTrackingParams):XU5(A,M,U.clickTrackingParams):_.H$(Error("ti"))}};
H.isFrostedGlassDisabled=!1;H.isChannelOrPlaylistPage=!1;return H};
_.R(Gc,_.B);_.X=Gc.prototype;_.X.created=function(){var H=_.lx();_.S("kevlar_clear_duplicate_pref_cookie")&&_.bM(_.Fl,function(){var U=_.MK.get("PREF");U&&!/f\d=/.test(U)&&(U=_.kV("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=U?"PREF=null;domain="+U+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.S("gzip_gel_with_worker")&&_.NXE();_.S("jspb_serialize_with_worker")&&r0f();_.S("web_worker_availability_check")&&ln8();_.S("nwl_init_killswitch")||y0h().then(function(){_.Fl.addLowPriorityJob(me7)});
this.pageManagerAttachedPromise=_.oL();this.ytdAppBehavior.loadDepsPromise=_.iR([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.B$(this.onThrottledScroll,200,this);_.S("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);gAX();HHy=!!_.tr("ytappsettings.initialized");PHp=_.tr("ytappsettings.previousValue");s2$=_.tr("ytappsettings.previousSnapshotTime");HHy||(HHy=!0,n2$());TAk();jv5();_.mT("DEFERRED_DETACH",
_.S("kevlar_tuner_should_defer_detach"));_.mT("REUSE_COMPONENTS",!0);_.mT("STAMPER_STABLE_LIST",!0);_.mT("SCHEDULED_LAZY_LIST",!0);_.mT("openPopupConfig",ahf);_.mT("useClickHandler",!0);_.S("kevlar_shell_cleanup")&&_.Fl.addLowPriorityJob(APf.bind(this,_.Mr.caches));_.xV("IS_SHELL_LOAD")&&_.wH({shellStartupDurationMs:Math.round((0,_.lD)()-Vn())});L3m(this.networkStatusManager);_.S("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",F3y(VGL)),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!",
F3y(HFy)),console.log("%cVisit http://go/join-youtube-web to apply today.",F3y(U2S)));vn5(H.resolve(_.HA8),1E3)};
_.X.ready=function(){var H=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var U=Wzy();U&&!_.S("external_fullscreen_killswitch")&&document.addEventListener(U,this.setFullscreen.bind(this));(U=window.matchMedia("(prefers-color-scheme: dark)"))&&U.addEventListener&&U.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(U=_.lx().resolve(_.$V(_.thg)))U.subscribe("navigation-start",
function(A){A.destinationPageSubtype==="watch"&&(H.hasPendingWatchNavigation=!0)}),U.subscribe("navigation-end",function(A){A.destinationPageSubtype==="watch"&&(H.hasPendingWatchNavigation=!1)})};
_.X.attached=function(){var H=this;_.sC().processSignal("ci");_.S("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.bUw?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Gs(_.dJN(),"SUCCESS");this.updateIconSet();_.EH(this.guideInnerContent,!1);_.q5().initVisibilityObserver();this.guideService.guideElement=this.guide;var U=document.createElement("ytd-miniplayer"),A=_.c4(this.hostElement).querySelector("#content");
_.c4(this.hostElement).insertBefore(U,A);_.sC().processSignal("ma");_.lx().resolve(_.ZB).init(U);this.persistentPanelEnabled&&zjk(this.persistentPanelContainer,"APP");_.xV("IS_SHELL_LOAD")&&(A=document.createElement("ytd-network-status-banner"),_.c4(this.hostElement).insertBefore(A,U));_.S("kevlar_right_click_on_lockups")&&_.Zl._onCaptureClick&&document.addEventListener("contextmenu",_.Zl._onCaptureClick.bind(_.Zl),!0);var M=function(){var W=_.Rf("yt-page-navigation-progress");_.c4(H.hostElement).appendChild(W)};
setTimeout(function(){_.sC().parkOrScheduleJob(M,0,"eocs",16)},0);
_.S("service_worker_push_enabled")&&_.bM(_.Fl,rPh);_.xX(_.a1.getInstance(),this.dynamicActionMap,this.hostElement);_.cg(this.hostElement,"ytd-app-attached");_.sC().processSignal("aa");GP5(this.hostElement);_.eC("gapi.load",_.Qt8);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.bM(_.Fl,
function(){var W=document.createElement("ytd-video-preview");_.c4(_.c4(H.hostElement).querySelector("#video-preview")).appendChild(W)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.bM(_.Fl,function(){Npp();H.registerWithViewTransitionManager()});
if(_.or()&&this.isAppDarkTheme()!==_.JG())this.onDarkModeToggledAction();else U=_.Kf()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==U&&(_.S("enable_dark_theme_only_on_shorts")?_.ff(_.S("enable_dark_theme_only_on_shorts_control")?window.location.href:_.ey(window.location.href,{theme:"dark"})):_.Na(new _.bD("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(tSf=new Cg8(this.hostElement)),vsY=new kjS(this.hostElement),hKM=new qrj(this.hostElement),VSh=new Qq5(this.hostElement)};
_.X.getThemeSettingsToLog=function(){var H=_.Kf()==="USER_INTERFACE_THEME_DARK";H=_.or()?_.JG()?"os-dark":"os-light":H?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:H,cookiesEnabled:_.wi()}};
_.X.detached=function(){_.mJ(this.guideInnerContent);_.Fl.cancelJob(tUh);tUh=0;_.Fl.cancelJob(rTp);rTp=0;_.tr_(l2p);l2p.length=0;eW$=_.DkF=null;_.q5().dispose();_.S("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.z9(_.a1.getInstance(),tSf.playlistHandlerActionMap,tSf.JSC$33477_clientRoot);_.z9(_.a1.getInstance(),vsY.downloadManagerActionMap,vsY.JSC$33922_clientRoot);_.z9(_.a1.getInstance(),hKM.feedbackCollectorActionMap,hKM.JSC$33917_clientRoot);
for(var H=_.b(VSh.eventListeners),U=H.next();!U.done;U=H.next()){var A=_.b(U.value);U=A.next().value;A=A.next().value;A=_.b(A);for(var M=A.next();!M.done;M=A.next()){var W=_.b(M.value);M=W.next().value;W=W.next().value;U.removeEventListener(M,W)}}_.z9(_.a1.getInstance(),VSh.autonavPauseActionMap,VSh.JSC$21674_clientRoot)};
_.X.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.TR().getFlag(186)};
_.X.computeIsInlinePreviewEnabled=function(H,U,A){return!A&&UT$({miniplayerIsActive:H,miniplayerPlaybackState:U})};
_.X.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.zQ({type:"SET_FROSTED_GLASS_MODE",payload:!_.S("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"}))};
_.X.computeIsFrostedGlassDisabled=function(H,U,A,M){return H||U||A||M&&_.S("web_frosted_glass_disable_watch")};
_.X.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.S("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.X.computeIsHomePage=function(H,U){if(!H||U==null||!U.endpoint)return!1;var A;return((A=_.p(U.endpoint,_.Gv))==null?void 0:A.browseId)==="FEwhat_to_watch"};
_.X.updateIsChannelOrPlaylistPage=function(){if(_.S("web_frosted_glass")){var H,U,A=(U=(H=_.lx().resolve(_.$V(_.SI)))==null?void 0:H.getCurrentPage())==null?void 0:U.pageSubtype;this.isChannelOrPlaylistPage=A?["channel","channels","playlist"].includes(A):!1}};
_.X.scheduleFrostedGlassInitialization=function(){var H=this;_.S("web_frosted_glass")&&_.sC().parkOrScheduleJob(function(){H.isFrostedGlassInitialized=!0},0,SK(["eocs",
"cr"]),300)};
_.X.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.PrH(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.zQ({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.zQ({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.X.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(DAk(!0))};
_.X.onYtSignalActionRequestPersistentStorage=function(){if(!_.S("request_persistent_storage_killswitch")){var H=_.lx().resolve(_.L4j);H.cachedPersistStatePromise||(H.cachedPersistStatePromise=IpY())}};
_.X.handleYtChannelCreationFormEndpoints=function(H){H&&this.ytComponentBehavior.resolveCommand(H)};
_.X.handleShowEngagementPanelEndpoint=function(H){H&&this.ytComponentBehavior.resolveCommand(H)};
_.X.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(DAk(!1))};
_.X.initIconDefs=function(H,U){var A=document.createElement("iron-iconset-svg");A.name=H;H=document.createElementNS("http://www.w3.org/2000/svg","svg");A.appendChild(H);H.appendChild(U);document.body.appendChild(A);return A};
_.X.onWindowResized=function(){_.yr(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var H=_.yN.getInstance();H.documentWidth_=document.body.clientWidth;LRf(H)};
_.X.onWindowScrolled=function(){var H=_.lx().resolve(_.SI).getCurrentPage();if(H!=null&&H.getScrollTop){var U=this.ytdReduxBehavior,A=U.dispatch;H=H.getScrollTop()<=0;A.call(U,_.zQ({type:"SET_SCROLL_AT_TOP",payload:H}))}};
_.X.guideIsVisibleButNotPersistentSelectorChanged=function(){var H=_.lx().resolve(_.SI).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=H.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"),
H.setScrollTop(this.guideScrollTop));_.Bg(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.X.getCurrentPageScrollableElementType=function(){var H=_.lx().resolve(_.SI).getCurrentPage();if(H&&H.getPageScrollingElement())return H.getPageScrollingElement().nodeName};
_.X.observeGuideVisibility=function(){var H=_.yN.getInstance(),U=this.miniGuideVisible;H.guidePersistentAndVisible_=this.guidePersistentAndVisible;H.miniGuideVisible_=U;LRf(H)};
_.X.observePersistentPanelVisibility=function(){var H=_.yN.getInstance();H.persistentPanelVisible_=this.persistentPanelVisible;LRf(H)};
_.X.handleEduDismissAction=function(H){H&&H.eduDismissAction&&(_.yr(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.SEz.getInstance(),_.tq.set(H.eduDismissAction.key+"-dismissed",!0))};
_.X.handleEduImpressionAction=function(H){if(H&&H.eduImpressionAction){var U=_.SEz.getInstance();H=H.eduImpressionAction.key;U.JSC$13492_eduDisplayedThisLoad_[_.N_B[H].setKey||H]=!0;_.tq.set(H+"-impression",parseInt(_.tq.get(H+"-impression")||0,10)+1)}};
_.X.onYtSignalActionConfirmMentionsEdu=function(){_.yr(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.rI.getInstance();_.Bd.set("edu-dismissed",!0)};
_.X.onYtSignalActionRecordMentionsEduImpression=function(){_.rI.getInstance();var H=_.Bd.set,U=parseInt(_.Bd.get("edu-impressions"),10);H.call(_.Bd,"edu-impressions",(isFinite(U)?U:0)+1)};
_.X.onYtPageManagerAttached=function(H){var U;((U=_.Rr(H))==null?void 0:U.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.X.onInvokeInstrumentManagerAction=function(H,U){kem(U,H)};
_.X.updateIconSet=function(){var H=this.hostElement.querySelector("#masthead");if(H){var U=_.yf(H),A=U.querySelector("g#yt-logo-updated");A&&(H=document.createElementNS("http://www.w3.org/2000/svg","defs"),H.appendChild(A.cloneNode(!0)),(U=U.querySelector("g#yt-logo-red-updated"))&&H.appendChild(U.cloneNode(!0)),this.initIconDefs("yt-logos-ext",H))}};
_.X.updateMastheadData=function(){var H=this,U,A,M,W,w;return _.u(function(d){if(d.nextAddress==1){U=H.data;A=H.hostElement.querySelector("#masthead");if(!A)return d.return();_.rV(H,function(){A.data=H.topbarData});
if(!H.get("response.topbar",U)||H.get("response.topbar.responseContext.maxAgeSeconds",U)===0)return d.jumpTo(0);if(M=_.lx().resolve(_.iO))return d.yield(M(),6);W=_.lx().resolve(_.Da);return d.yield(W.put("service:topbar:fallback",new _.$0({innertubeResponse:H.get("response.topbar",U)})),0)}return(w=d.yieldResult)?d.yield(w.put("service:topbar:fallback",new _.$0({innertubeResponse:H.get("response.topbar",U)})),0):d.jumpTo(0)})};
_.X.computeTopbarData=function(H){if(!H)return null;var U;return this.isShortsPage&&this.topbarData&&!_.p((U=H.response)==null?void 0:U.topbar,NU7)?this.topbarData:H.response&&"topbar"in H.response?_.p(H.response.topbar,NU7)||null:null};
_.X.onSetTheaterModeEnabled=function(H,U){this.isTheaterModeSession=U.enabled;this.setTheaterModeStyles(U.enabled)};
_.X.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.X.onDarkModeToggledAction=function(){var H=_.DU(window.location.href);if(!_.eqc(H)){(H=!!_.rD(window.location.href).themeRefresh)&&_.Na(new _.bD("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!H){n2$();H={themeRefresh:1};var U=_.lx().resolve(_.SI);if(U.isOnWatch()){var A,M;U=((A=U.getPlayerFromWatch())==null?void 0:(M=A.getPlayer())==null?void 0:M.getCurrentTime())||0;U>=1&&(H.time_continue=Math.floor(U))}_.wi()||_.Kf()!=="USER_INTERFACE_THEME_DARK"||(H.theme="dark");_.ff(_.ey(window.location.href,
H))}_.S("web_appshell_refresh_trigger")&&_.Mr.caches&&this.refreshAppShellResponse();A=_.$Z(window.location.href);_.Y0(_.lx().resolve(_.qM),_.js(A,"theme"))}};
_.X.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.X.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.X.onPlayerFullscreen=function(H){_.L1();this.playerFullscreen=H};
_.X.setRestrictedMode=function(H){var U=_.TR();_.jb(0,58,H);U.save();_.lx().resolve(_.l1).reload()};
_.X.onPageChanged=function(H){H.detail.newPageType==="ytd-watch-flexy"||H.detail.newPageType==="ytd-watch-fixie"||H.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.Wu("WEB_PAGE_TYPE_WATCH")):H.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.Wu("WEB_PAGE_TYPE_SHORTS")):H.detail.newPageType==="ytd-browse"&&H.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.Wu("WEB_PAGE_TYPE_MINI_APP")):_.S("web_frosted_glass")&&H.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.Wu("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.Wu("WEB_PAGE_TYPE_UNKNOWN"));H.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.X.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.X.onGuideToggleTap=function(){_.cg(this.hostElement,"yt-guide-toggle")};
_.X.onGuideToggleHover=function(){_.cg(this.hostElement,"yt-guide-hover")};
_.X.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.X.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.X.setMastheadTheme=function(){var H=_.yf(this.hostElement).querySelector("#masthead");H&&(H.dark=H.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),H.isDarkThemeForced=!1)};
_.X.onRequestPanelModeChange=function(H,U){this.hideHeaderShadow=U.mode!=="seamed"};
_.X.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.X.onDrawerIronSelect=function(H){_.Rr(H).id==="guide"&&this.processDrawerIronSelect()};
_.X.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var H="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(H="opened"));_.cg(this.hostElement,"yt-autonav-pause-guide-"+H)};
_.X.onAddElementToApp=function(H){_.c4(this.hostElement).appendChild(H.detail)};
_.X.onThrottledScroll=function(){var H=_.lx().resolve(_.SI).getCurrentPage();H&&(this.scrollAtTopInternal=H.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.X.canHideMasthead=function(){return this.scrollAtTopInternal&&!!this.fullscreen};
_.X.setFullscreen=function(){if(_.S("external_fullscreen")||!this.isWatchPage){var H=_.S("kevlar_fullerscreen_root_only_killswitch")?!!_.L1():!!_.L1()&&_.L1()===document.documentElement;H=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(H||this.isFullWindowSession);this.fullscreen!==H&&((this.fullscreen=H)&&_.Bg(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Lq().dispatch(_.Xvg(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.yr(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.X.setFullscreenLoggingForShorts=function(H){var U,A,M;return _.u(function(W){if(W.nextAddress==1)return W.yield((U=_.Ly())==null?void 0:U.getPlayerPromise(),2);A=W.yieldResult;(M=A)==null||M.setAppFullscreen(H);_.DO(W)})};
_.X.updateMastheadCssHeight=function(){var H=this.mastheadHeight;this.fullscreen&&(H=0);_.Dt(this.hostElement,{"--ytd-masthead-height":H+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.X.updateNetworkStatusBannerDisplayStatus=function(){var H="unset";this.fullscreen&&(H="none");_.Dt(this.hostElement,{"--ytd-network-status-banner-display":H})};
_.X.updateNetworkStatusBannerCssHeight=function(){var H="unset";this.fullscreen&&(H="0px");_.Dt(this.hostElement,{"--ytd-network-status-banner-max-height":H})};
_.X.updateScrollAndMasthead=function(H,U,A,M){this.iMaxTheaterMode||(M=!1);var W=_.lx().resolve(_.SI).getCurrentPage();H||U||M?(document.body.classList.add("no-scroll"),W.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.lN(this,this.onScroll)),W.setScrollTop(0),_.Dt(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":Hz()+"px"})):A?_.cg(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.cg(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
W.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.lN(this,this.onScroll)));this.mastheadHidden=H||U||A;this.updateMastheadCssHeight();_.S("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.X.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.X.onYtNavigateAction=function(H){H=this.get("navigateAction.endpoint",H);_.cg(this.hostElement,"yt-navigate",{endpoint:H})};
_.X.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var H=document.createElement("yt-create-family-dialog");_.c4(this.hostElement).appendChild(H);this.hasCreateFamilyDialog=!0}};
_.X.onSetPushNotificationsEnabledCommand=function(H){var U=this,A=_.p(H,sj5);A&&typeof A.enabled==="boolean"&&(Notification.permission!=="granted"?CHh().then(function(){Notification.permission==="granted"?(O1B(!A.enabled).then(JP5),A.successAction&&_.rs(U.hostElement,[A.successAction])):A.failureAction&&_.rs(U.hostElement,[A.failureAction])}):(O1B(!A.enabled).then(JP5),A.successAction&&_.rs(this.hostElement,[A.successAction])))};
_.X.onYtSignalActionEnableChromeNotifications=function(){tbj(!0)};
_.X.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.p(this.topbarData.hotkeyDialog,ENm)}}})};
_.X.onYtSignalActionShowKeyboardShortcutDialog=function(){_.yr(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.X.onYtEndpointChangeHandler=function(H,U){var A=_.gz(_.$6);A.pendingPrefetchJob_&&(U=!(!U||U.autonav!="1"),A.pendingPrefetchJob_.resolve(H&&_.$k8(H)?_.lCN(H,U):""),A.pendingPrefetchJob_=null);_.yr(this.hostElement,"yt-pause-active-page-context");_.yr(this.hostElement,"ytd-log-youthere-nav");_.yr(this.hostElement,"yt-prepare-page-dispose")};
_.X.handleCommandWithCommandHandler=function(H,U){_.$$.instance.resolveCommand(H,{form:{element:U}})};
_.X.onYtTimedCommand=function(H){var U=this;H=_.p(H,jpB);var A=H.command;A&&_.qT(_.Fl,function(){var M=_.p(A,_.ter);M?(_.$$.instance.resolveCommand(A),U.maybeLogGetAnswerRequestTick(M)):_.eb(U.hostElement,[A],U.hostElement)},H.timeoutMs||0)};
_.X.maybeLogGetAnswerRequestTick=function(H){H&&H.isFirstRequest&&(_.ia("search_overview_answer"),_.ba("so_rq",void 0,"search_overview_answer"))};
_.X.onYtSignalActionSkipNavigation=function(){var H=_.lx().resolve(_.SI).getCurrentPage();_.cW(H)};
_.X.onYtSignalActionCopyDebugData=function(){dY5()};
_.X.handleEntityUpdateCommand=function(H){_.qY(_.p(H,_.QUr).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.X.logFlowLoggingEventCommand=function(H){if(H=_.p(H,_.Ju7))if(H.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var U=H.flowEventNamespace,A=H.flowEventType,M=H.flowType;M&&U&&A&&_.Ck7(_.ep(U,A,H.flowEventMetadata),M)}else{U=_.DY();A=H.flowEventNamespace;M=H.flowEventType;var W=H.flowType;W&&A&&M&&U.logFlowEvent(_.ep(A,M,H.flowEventMetadata),W,H.flowNonce)}};
_.X.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.X.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.X.onTouchStart=function(){var H=_.vd();_.XK()&&_.uZ(H.JSC$13614_screenManager,{visualElement:H.ve})};
_.X.handleSelectLanguageCommand=function(H){if(H=_.p(H,OjB).hl){var U=_.TR();U.set("hl",H);U.save();_.lx().resolve(_.l1).reload()}};
_.X.handleConfirmDialogEndpoint=function(H){(H=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(H))&&this.ytOpenPopupBehavior.openPopup(H)};
_.X.handleOpenPopupNavigationEndpoints=function(H,U){(H=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(H))&&this.ytOpenPopupBehavior.openPopup(H,U)};
_.X.handleSaveCommandToSessionStorage=function(H){if(H=_.p(H,_.t2B)){var U=H.key;U&&H.command&&window.sessionStorage.setItem(U,JSON.stringify(H.command))}};
_.X.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(H){H&&H.active&&H.active.postMessage({type:"refresh_shell"})}).catch(function(H){H.name!=="SecurityError"&&_.sD(H)})};
_.X.onDeviceThemeChanged=function(){var H=_.JG();_.jb(_.TR(),185,H);_.TR().save()};
_.X.handleYtRegisterPromoCommand=function(H){if(_.p(H,Php)){var U=_.lx().resolve(_.SI).getCurrentPage()||this.hostElement;JZh().registerPromoCommand(_.p(H,Php),U)}};
_.X.onYtNavigateHomeAction=function(){if(!_.S("kevlar_miniplayer_navigate_home_from_app_killswitch")){var H,U,A,M,W=(M=(H=this.topbarData)==null?void 0:(U=H.logo)==null?void 0:(A=U.topbarLogoRenderer)==null?void 0:A.endpoint)!=null?M:_.jR;this.ytComponentBehavior.resolveCommand(W)}};
_.X.onYtLocationCollectionCommand=function(H){sxh(_.p(H,eI8))};
_.X.onYtGetLocationCommand=function(H){Tzh(_.p(H,rSh),this)};
_.X.updateRenderGuideFromBinding=function(H){this.renderGuide=H.detail.value};
_.X.updateGuidePersistentAndVisibleFromBinding=function(H){this.guidePersistentAndVisible=H.detail.value};
_.X.updateMiniGuideVisibleFromBinding=function(H){this.miniGuideVisible=H.detail.value};
_.X.onThemeSelected=function(H,U){var A=_.TR(),M=H||U?H:_.JG(),W=(M&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!M&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.eqc(_.DU(window.location.href));_.jb(0,165,H);_.jb(0,174,U);A.save();W&&_.yr(this.hostElement,"yt-dark-mode-toggled-action",[M]);_.yr(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.X.getCurrentTheme=function(){return _.or()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Kf()};
_.X.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.X.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.X.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.X.handleShowConsentPrimitive=function(H){var U=this,A,M;return _.u(function(W){if(W.nextAddress==1){try{A=(M=_.Ly())==null?void 0:M.getPlayerPromise()}catch(w){}return W.yield(Dbp(H,A),2)}_.yr(U.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.DO(W)})};
_.X.handleSelectActiveIdentityEndpointInternal=function(H){_.uN();H=_.p(H,_.jJr);if(H!=null&&H.supportedTokens){H=_.b(H.supportedTokens);for(var U=H.next();!U.done;U=H.next())U=U.value,U.accountSigninToken&&_.ff(U.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.X.handleUpdatePermissionRoleCommand=function(H){if(H=_.p(H,_.Tvn)){var U;this.hasDelegation=!((U=_.p(H.renderer,_.vyg))==null||!U.status)}};
_.X.registerWithViewTransitionManager=function(){var H=_.lx().resolve(_.$V(_.Vc));if(H){var U,A=(U=this.guide)==null?void 0:U.querySelector("#scrim"),M;U=(M=this.guide)==null?void 0:M.querySelector("#contentContainer");A&&U&&H.isAnyTransitionEnabled&&(M={},H.viewTransitionCoordinator.registerElement(A,(M.slide="app-drawer-scrim-page-transition",M["lockup-to-watch"]="app-drawer-scrim-page-transition",M["learning-journey"]="app-drawer-scrim-page-transition",M)),A={},H.viewTransitionCoordinator.registerElement(U,
(A.slide="app-drawer-container-page-transition",A["lockup-to-watch"]="app-drawer-container-page-transition",A["learning-journey"]="app-drawer-container-page-transition",A)))}};
_.D5.Object.defineProperties(Gc.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.S("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky&&(!this.scrollAtTop||!_.S("kevlar_show_chips_on_scroll"))}}});
_.D5.Object.defineProperties(Gc,{template:{configurable:!0,enumerable:!0,get:function(){if(eKS===void 0){var H=document.createElement("template");_.E(H,'\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 id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\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<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
H.content.insertBefore(_.k().content.cloneNode(!0),H.content.firstChild);eKS=H}H=eKS;return H}}});
Gc.prototype.onOpenHotkeyDialog=Gc.prototype.onOpenHotkeyDialog;Gc.prototype.setFullscreen=Gc.prototype.setFullscreen;Gc.prototype.onAddElementToApp=Gc.prototype.onAddElementToApp;Gc.prototype.onDrawerIronSelect=Gc.prototype.onDrawerIronSelect;Gc.prototype.onGuideOpenButtonHover=Gc.prototype.onGuideOpenButtonHover;Gc.prototype.onRequestPanelModeChange=Gc.prototype.onRequestPanelModeChange;Gc.prototype.onPageDataUpdated=Gc.prototype.onPageDataUpdated;Gc.prototype.onPageChanged=Gc.prototype.onPageChanged;
Gc.prototype.onSetTheaterModeEnabled=Gc.prototype.onSetTheaterModeEnabled;Gc.prototype.updateMastheadData=Gc.prototype.updateMastheadData;Gc.prototype.onYtPageManagerAttached=Gc.prototype.onYtPageManagerAttached;Gc.prototype.observePersistentPanelVisibility=Gc.prototype.observePersistentPanelVisibility;Gc.prototype.observeGuideVisibility=Gc.prototype.observeGuideVisibility;Gc.prototype.guideIsVisibleButNotPersistentSelectorChanged=Gc.prototype.guideIsVisibleButNotPersistentSelectorChanged;
Gc.prototype.isInlinePreviewEnabledChanged=Gc.prototype.isInlinePreviewEnabledChanged;Gc.prototype.isWatchPageChanged=Gc.prototype.isWatchPageChanged;Gc.prototype.dispatchFrostedGlassMode=Gc.prototype.dispatchFrostedGlassMode;_.G([_.g(_.dF),_.q("design:type",Object)],Gc.prototype,"ytdReduxBehavior",void 0);_.G([_.g(_.H6.YtEventForwardingBehavior),_.q("design:type",Object)],Gc.prototype,"ytEventForwardingBehavior",void 0);
_.G([_.g(_.e4.YtOpenPopupBehavior),_.q("design:type",Object)],Gc.prototype,"ytOpenPopupBehavior",void 0);_.G([_.g(_.$y.YtActionHandlerBehavior),_.q("design:type",Object)],Gc.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.g({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.a1.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.S("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var H;((H=this.actionRouterNode.hostElement)!=null?H:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var H;((H=this.actionRouterNode.hostElement)!=null?H:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(H){this.actionRouter_.handleAction(H.detail)}}),
_.q("design:type",Object)],Gc.prototype,"ytActionRouterBehavior",void 0);_.G([_.g(TEf.YtdAppBehavior),_.q("design:type",Object)],Gc.prototype,"ytdAppBehavior",void 0);_.G([_.g(_.D1.YtEndpointBehavior),_.q("design:type",Object)],Gc.prototype,"ytEndpointBehavior",void 0);_.G([_.g(YrM.YtEndpointHandlerWithYpcBehavior),_.q("design:type",Object)],Gc.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.G([_.g(Do5.YtLogYpcFlowCommandsBehavior),_.q("design:type",Object)],Gc.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.G([_.g(_.I.YtRendererBehavior),_.q("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.G([_.g(_.uK.YtComponentBehavior),_.q("design:type",Object)],Gc.prototype,"ytComponentBehavior",void 0);_.G([_.y({selector:PUB}),_.q("design:type",Object)],Gc.prototype,"tabGesturesIsActive",void 0);_.G([_.y(),_.q("design:type",Boolean)],Gc.prototype,"renderGuide",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Gc.prototype,"guidePersistentAndVisible",void 0);_.G([_.y({selector:o8m}),_.q("design:type",Boolean)],Gc.prototype,"guideIsVisibleButNotPersistent",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Gc.prototype,"standalone",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Gc.prototype,"miniGuideVisible",void 0);
_.G([_.y(),_.q("design:type",Object)],Gc.prototype,"persistentPanelEnabled",void 0);_.G([_.y({selector:bFY,reflectToAttribute:!0}),_.q("design:type",Boolean)],Gc.prototype,"persistentPanelVisible",void 0);_.G([_.y({selector:_.FEF}),_.q("design:type",Number)],Gc.prototype,"miniplayerPlaybackState",void 0);_.G([_.y({selector:_.iE,reflectToAttribute:!0}),_.q("design:type",Boolean)],Gc.prototype,"miniplayerIsActive",void 0);
_.G([_.y({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.q("design:type",Boolean)],Gc.prototype,"isInlinePreviewEnabled",void 0);_.G([_.y(),_.q("design:type",Boolean)],Gc.prototype,"isInlinePreviewDisabled",void 0);_.G([_.y({reflectToAttribute:!0,value:function(){return _.xV("START_IN_FULL_WINDOW_MODE")}}),
_.q("design:type",Boolean)],Gc.prototype,"mastheadHidden",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Gc.prototype,"playerFullscreen",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Gc.prototype,"fullscreen",void 0);_.G([_.y({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Gc.prototype,"hideHeaderShadow",void 0);
_.G([_.y({value:{GUIDE_ALT_LABEL:_.hP("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.q("design:type",Object)],Gc.prototype,"menuStrings",void 0);_.G([_.y({computed:"computeTopbarData(data)"}),_.q("design:type",Object)],Gc.prototype,"topbarData",void 0);_.G([_.y({selector:_.fat,reflectToAttribute:!0}),_.q("design:type",Boolean)],Gc.prototype,"isWatchPage",void 0);_.G([_.y({selector:_.J1F,reflectToAttribute:!0}),_.q("design:type",Boolean)],Gc.prototype,"isShortsPage",void 0);
_.G([_.y({selector:function(H){return _.bE(H)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.q("design:type",Boolean)],Gc.prototype,"isMiniAppPage",void 0);_.G([_.y({selector:function(H){return _.bE(H)==="WEB_PAGE_TYPE_BROWSE"}}),
_.q("design:type",Boolean)],Gc.prototype,"isBrowsePage",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Boolean)],Gc.prototype,"scrolling",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Gc.prototype,"hasDelegation",void 0);_.G([_.y({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Gc.prototype,"guideScrolledByTouch",void 0);_.G([_.y(),_.q("design:type",Object)],Gc.prototype,"isFrostedGlassInitialized",void 0);
_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Gc.prototype,"frostedGlassExp",void 0);_.G([_.y({selector:function(H){return H.ui.chipBarIsSticky}}),
_.q("design:type",Boolean)],Gc.prototype,"chipBarIsSticky",void 0);_.G([_.y({selector:Fzh}),_.q("design:type",Boolean)],Gc.prototype,"scrollAtTop",void 0);_.G([_.y({computed:"computeIsHomePage(isBrowsePage, data)"}),_.q("design:type",Boolean)],Gc.prototype,"isHomePage",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Gc.prototype,"hasPendingWatchNavigation",void 0);_.G([_.y({reflectToAttribute:!0}),_.q("design:type",Object)],Gc.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.G([_.y(),_.q("design:type",Object)],Gc.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.G([X2("guide"),_.q("design:type",Object)],Gc.prototype,"guide",void 0);_.G([X2("guide-service"),_.q("design:type",Wjj)],Gc.prototype,"guideService",void 0);_.G([X2("guide-inner-content"),_.q("design:type",HTMLDivElement)],Gc.prototype,"guideInnerContent",void 0);_.G([_.hG("#persistent-panel-container"),_.q("design:type",HTMLElement)],Gc.prototype,"persistentPanelContainer",void 0);
_.G([_.y({selector:_.PQK}),_.q("design:type",String)],Gc.prototype,"frostedGlassMode",void 0);_.G([_.Ya("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gc.prototype,"dispatchFrostedGlassMode",null);_.G([_.y({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.q("design:type",Object)],Gc.prototype,"isFrostedGlassDisabled",void 0);
_.G([_.Ya("isWatchPage"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gc.prototype,"isWatchPageChanged",null);_.G([_.a("isHomePage","chipBarIsSticky","scrollAtTop"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Gc.prototype,"applyFrostedGlassToChipBar",null);_.G([_.y(),_.q("design:type",Object)],Gc.prototype,"isChannelOrPlaylistPage",void 0);
_.G([_.jk("isInlinePreviewEnabled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gc.prototype,"isInlinePreviewEnabledChanged",null);_.G([_.Ya("guideIsVisibleButNotPersistent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gc.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.G([_.Ya("guidePersistentAndVisible","miniGuideVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gc.prototype,"observeGuideVisibility",null);_.G([_.Ya("persistentPanelVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gc.prototype,"observePersistentPanelVisibility",null);
_.G([_.Gl("attached"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],Gc.prototype,"onYtPageManagerAttached",null);_.G([_.Ya("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],Gc.prototype,"updateMastheadData",null);_.G([_.Gl("yt-set-theater-mode-enabled"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],Gc.prototype,"onSetTheaterModeEnabled",null);
_.G([_.Gl("yt-page-type-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Gc.prototype,"onPageChanged",null);_.G([_.Gl("yt-page-data-updated"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gc.prototype,"onPageDataUpdated",null);_.G([_.Gl("yt-request-panel-mode-change"),_.q("design:type",Function),_.q("design:paramtypes",[Event,Object]),_.q("design:returntype")],Gc.prototype,"onRequestPanelModeChange",null);
_.G([_.Gl("yt-guide-hover"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gc.prototype,"onGuideOpenButtonHover",null);_.G([_.Gl("app-drawer-transitioned"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],Gc.prototype,"onDrawerIronSelect",null);_.G([_.Gl("yt-add-element-to-app"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Gc.prototype,"onAddElementToApp",null);
_.G([_.Gl("yt-set-fullerscreen-styles"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gc.prototype,"setFullscreen",null);_.G([_.Gl("yt-open-hotkey-dialog"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gc.prototype,"onOpenHotkeyDialog",null);_.G([_.dX({is:"ytd-app"})],Gc);_.sC().processSignal("eor");
_.s5&&_.s5.JSC$11364_setLoaded();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
